@nova-ui/charts 13.0.1 → 13.0.2-3955

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/chart-popover/chart-popover.component.d.ts +1 -1
  2. package/chart-tooltips/chart-tooltips.component.d.ts +1 -1
  3. package/core/common/data-manager.d.ts +1 -1
  4. package/core/plugins/chart-popover-plugin.d.ts +2 -7
  5. package/core/plugins/gauge/donut-gauge-labels-plugin.d.ts +1 -1
  6. package/core/plugins/gauge/linear-gauge-labels-plugin.d.ts +1 -1
  7. package/core/plugins/interaction/interaction-label-plugin.d.ts +1 -1
  8. package/core/plugins/interaction/interaction-line-plugin.d.ts +1 -1
  9. package/core/plugins/mouse-interactive-area-plugin.d.ts +1 -1
  10. package/core/plugins/radial-popover-plugin.d.ts +2 -6
  11. package/core/plugins/render-engine-plugin.d.ts +1 -1
  12. package/core/plugins/tooltips/chart-tooltips-plugin.d.ts +1 -1
  13. package/core/plugins/zoom-plugin.d.ts +1 -1
  14. package/esm2020/chart/chart.component.mjs +1 -1
  15. package/esm2020/chart-donut-content/chart-donut-content.component.mjs +1 -1
  16. package/esm2020/chart-popover/chart-popover.component.mjs +1 -1
  17. package/esm2020/chart-tooltips/chart-tooltip.directive.mjs +4 -5
  18. package/esm2020/chart-tooltips/chart-tooltips.component.mjs +6 -6
  19. package/esm2020/core/chart-assists/chart-assist.mjs +5 -2
  20. package/esm2020/core/chart-assists/spark-chart-assist.mjs +2 -2
  21. package/esm2020/core/chart.mjs +1 -1
  22. package/esm2020/core/common/data-manager.mjs +1 -1
  23. package/esm2020/core/common/event-bus.mjs +1 -1
  24. package/esm2020/core/common/palette/markers/path-marker.mjs +1 -1
  25. package/esm2020/core/common/renderer.mjs +2 -2
  26. package/esm2020/core/common/scales/band-scale.mjs +3 -3
  27. package/esm2020/core/common/scales/domain-calculation/domain-with-auxiliary-series.mjs +1 -1
  28. package/esm2020/core/common/scales/domain-calculation/merge-domains.mjs +2 -2
  29. package/esm2020/core/common/scales/formatters/datetime-formatter.mjs +22 -12
  30. package/esm2020/core/common/scales/helpers/domain.mjs +1 -1
  31. package/esm2020/core/common/scales/time-interval-scale.mjs +1 -1
  32. package/esm2020/core/common/utility.service.mjs +2 -2
  33. package/esm2020/core/grid/radial-grid.mjs +1 -1
  34. package/esm2020/core/grid/xy-grid.mjs +2 -2
  35. package/esm2020/core/plugins/chart-donut-content-plugin.mjs +1 -1
  36. package/esm2020/core/plugins/chart-popover-plugin.mjs +1 -1
  37. package/esm2020/core/plugins/gauge/donut-gauge-labels-plugin.mjs +1 -1
  38. package/esm2020/core/plugins/gauge/linear-gauge-labels-plugin.mjs +1 -1
  39. package/esm2020/core/plugins/interaction/interaction-label-plugin.mjs +1 -1
  40. package/esm2020/core/plugins/interaction/interaction-line-plugin.mjs +1 -1
  41. package/esm2020/core/plugins/mouse-interactive-area-plugin.mjs +1 -1
  42. package/esm2020/core/plugins/radial-popover-plugin.mjs +1 -1
  43. package/esm2020/core/plugins/render-engine-plugin.mjs +1 -1
  44. package/esm2020/core/plugins/tooltips/chart-tooltips-plugin.mjs +1 -1
  45. package/esm2020/core/plugins/zoom-plugin.mjs +1 -1
  46. package/esm2020/gauge/gauge-util.mjs +1 -1
  47. package/esm2020/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.mjs +1 -1
  48. package/esm2020/legend/legend.component.mjs +1 -1
  49. package/esm2020/renderers/accessors/xy-accessors.mjs +1 -1
  50. package/esm2020/renderers/area/area-renderer.mjs +3 -3
  51. package/esm2020/renderers/area/stacked-percentage-area-preprocessor.mjs +1 -1
  52. package/esm2020/renderers/bar/bar-renderer.mjs +1 -2
  53. package/esm2020/renderers/bar/highlight-strategies/bar-highlight-strategy.mjs +3 -3
  54. package/esm2020/renderers/bar/highlight-strategies/bar-series-highlight-strategy.mjs +1 -1
  55. package/esm2020/renderers/bar/stacked-preprocessor.mjs +2 -2
  56. package/esm2020/renderers/line/line-renderer.mjs +2 -2
  57. package/esm2020/renderers/marker-utils.mjs +1 -1
  58. package/esm2020/renderers/radial/pie-renderer.mjs +1 -1
  59. package/esm2020/renderers/radial/radial-grid-fn.mjs +1 -1
  60. package/esm2020/renderers/radial/radial-renderer.mjs +4 -6
  61. package/esm2020/renderers/side-indicator-renderer.mjs +1 -1
  62. package/esm2020/thresholds/thresholds-service.mjs +1 -1
  63. package/fesm2015/nova-ui-charts.mjs +61 -55
  64. package/fesm2015/nova-ui-charts.mjs.map +1 -1
  65. package/fesm2020/nova-ui-charts.mjs +61 -55
  66. package/fesm2020/nova-ui-charts.mjs.map +1 -1
  67. package/package.json +2 -2
  68. package/renderers/area/area-renderer.d.ts +1 -1
  69. package/sdk/atoms/chart/atoms/chart.atom.d.ts +4 -4
  70. package/sdk/atoms/chart/atoms/chart.atom.js +28 -28
  71. package/sdk/atoms/chart/atoms/chart.atom.js.map +1 -1
  72. package/sdk/atoms/chart/atoms/lasagna.atom.d.ts +1 -1
  73. package/sdk/atoms/chart/atoms/lasagna.atom.js +8 -7
  74. package/sdk/atoms/chart/atoms/lasagna.atom.js.map +1 -1
  75. package/sdk/atoms/chart/atoms/marker.atom.js +1 -1
  76. package/sdk/atoms/chart/atoms/marker.atom.js.map +1 -1
  77. package/sdk/atoms/chart/boosters/interactive.booster.js +1 -1
  78. package/sdk/atoms/chart/boosters/interactive.booster.js.map +1 -1
  79. package/sdk/atoms/chart/boosters/zoom.booster.js +2 -2
  80. package/sdk/atoms/chart/boosters/zoom.booster.js.map +1 -1
  81. package/sdk/locale/messages.en.xlf +16 -16
@@ -9,11 +9,9 @@ import * as i1 from '@angular/common';
9
9
  import isUndefined from 'lodash/isUndefined';
10
10
  import { arc, curveLinear, line, pie, area } from 'd3-shape';
11
11
  import defaultsDeep from 'lodash/defaultsDeep';
12
- import { extent, min, max, bisect } from 'd3-array';
12
+ import { extent, forceCollide, forceSimulation, select, min as min$1, max as max$1, scaleBand, bisect, axisLeft, axisRight, axisBottom, axisTop, timeMinute, timeDay, timeMonth, timeYear } from 'd3';
13
13
  import each from 'lodash/each';
14
14
  import get from 'lodash/get';
15
- import { forceCollide, forceSimulation } from 'd3-force';
16
- import { select, local, event, mouse } from 'd3-selection';
17
15
  import isEqual from 'lodash/isEqual';
18
16
  import isNil from 'lodash/isNil';
19
17
  import { takeUntil, filter as filter$1, map, switchMap } from 'rxjs/operators';
@@ -35,21 +33,21 @@ import startsWith from 'lodash/startsWith';
35
33
  import trim from 'lodash/trim';
36
34
  import trimEnd from 'lodash/trimEnd';
37
35
  import trimStart from 'lodash/trimStart';
36
+ import { min, max, bisect as bisect$1 } from 'd3-array';
37
+ import { local, select as select$1, event, mouse } from 'd3-selection';
38
38
  import flatten from 'lodash/flatten';
39
39
  import uniq from 'lodash/uniq';
40
40
  import identity from 'lodash/identity';
41
41
  import filter from 'lodash/filter';
42
42
  import includes from 'lodash/includes';
43
43
  import keyBy from 'lodash/keyBy';
44
- import { axisLeft, axisRight, axisBottom, axisTop } from 'd3-axis';
45
44
  import clone from 'lodash/clone';
46
- import { scaleLinear, scaleBand, scalePoint, scaleTime } from 'd3-scale';
47
45
  import toString from 'lodash/toString';
46
+ import { scaleLinear, scalePoint, scaleTime, scaleBand as scaleBand$1 } from 'd3-scale';
48
47
  import indexOf from 'lodash/indexOf';
49
48
  import find from 'lodash/find';
50
49
  import orderBy from 'lodash/orderBy';
51
50
  import unionBy from 'lodash/unionBy';
52
- import { timeMinute, timeDay, timeMonth, timeYear } from 'd3-time';
53
51
  import moment, { duration } from 'moment/moment';
54
52
  import { brushX } from 'd3-brush';
55
53
  import findIndex from 'lodash/findIndex';
@@ -116,11 +114,10 @@ class ChartTooltipDirective {
116
114
  show() {
117
115
  if (this.overlayRef.hasAttached()) {
118
116
  this.positionStrategy.apply();
117
+ return;
119
118
  }
120
- else {
121
- const tooltipRef = this.overlayRef.attach(new ComponentPortal(ChartTooltipComponent));
122
- tooltipRef.instance.template = this.template;
123
- }
119
+ const tooltipRef = this.overlayRef.attach(new ComponentPortal(ChartTooltipComponent));
120
+ tooltipRef.instance.template = this.template;
124
121
  }
125
122
  hide() {
126
123
  this.overlayRef.detach();
@@ -583,11 +580,9 @@ class RadialRenderer extends Renderer {
583
580
  if (!(this.config.maxThickness && this.config.annularGrowth)) {
584
581
  return this.config.annularWidth;
585
582
  }
586
- else {
587
- return Math.min((renderSeries.scales.r.range()[1] -
588
- renderSeries.scales.r.range()[0]) *
589
- this.config.annularGrowth, this.config.maxThickness);
590
- }
583
+ return Math.min((renderSeries.scales.r.range()[1] -
584
+ renderSeries.scales.r.range()[0]) *
585
+ this.config.annularGrowth, this.config.maxThickness);
591
586
  }
592
587
  emitDataPointHighlight(renderSeries, data, i, rendererSubject) {
593
588
  const position = this.getDataPointPosition(renderSeries.dataSeries, i, renderSeries.scales);
@@ -946,10 +941,10 @@ class ChartTooltipsComponent {
946
941
  const directivesChanged = !isEqual(currentTooltipDirectivesIndex, this.tooltipDirectivesIndex);
947
942
  if (this.closePending || directivesChanged || !this.isOpen) {
948
943
  clearTimeout(this.openTimeout);
949
- this.openTimeout = setTimeout(() => {
944
+ this.openTimeout = window.setTimeout(() => {
950
945
  this.openTooltips.next();
951
946
  clearTimeout(this.collisionTimeout);
952
- this.collisionTimeout = setTimeout(() => {
947
+ this.collisionTimeout = window.setTimeout(() => {
953
948
  this.avoidTooltipCollisions();
954
949
  this.isOpen = true;
955
950
  });
@@ -967,7 +962,7 @@ class ChartTooltipsComponent {
967
962
  }
968
963
  this.closePending = true;
969
964
  clearTimeout(this.closeTimeout);
970
- this.closeTimeout = setTimeout(() => {
965
+ this.closeTimeout = window.setTimeout(() => {
971
966
  this.closeTooltips.next();
972
967
  this.closePending = false;
973
968
  this.isOpen = false;
@@ -2477,7 +2472,7 @@ class UtilityService {
2477
2472
  if (haystack.length === 1) {
2478
2473
  return 0;
2479
2474
  }
2480
- else if (haystack.length === 0) {
2475
+ if (haystack.length === 0) {
2481
2476
  return;
2482
2477
  }
2483
2478
  const valueAccessor = UtilityService.getValueAccessor(accessor, haystack[0]);
@@ -2757,7 +2752,6 @@ class BarRenderer extends XYRenderer {
2757
2752
  .merge(bars)
2758
2753
  .property(generatedAttrs, (d, i) => attrsGenerator(d, i)) // This saves attrsGenerator() output to local d3 variable generatedAttrs
2759
2754
  .select("rect")
2760
- // eslint-disable-next-line max-len
2761
2755
  .attr("class", (d, i) => `${BarRenderer.BAR_RECT_CLASS} ${this.config.barClass}${this.config.pointerEvents ? " pointer-events" : ""}` + getCssClass(d, i))
2762
2756
  .style("cursor", this.config.cursor ?? "")
2763
2757
  .style("stroke-width", this.config?.strokeWidth ?? "")
@@ -4453,7 +4447,7 @@ class Chart {
4453
4447
  build(element) {
4454
4448
  this.element = element;
4455
4449
  // @ts-ignore: Workaround to avoid strict build crash because of type
4456
- this.target = select(this.element)
4450
+ this.target = select$1(this.element)
4457
4451
  .append("svg")
4458
4452
  .attrs({
4459
4453
  class: "nui-chart",
@@ -4700,7 +4694,9 @@ class ChartAssist {
4700
4694
  .pipe(filter$1((event) => event.data.interactionType === InteractionType.MouseMove), map((event) => event.data.dataPoints[chartSeries.id]));
4701
4695
  // if there is no highlightData, or index is "-1", we'll show the last value from series (if possible)
4702
4696
  const highlightDataPresentPredicate = (highlightData) => highlightData && highlightData.index >= 0;
4703
- return seriesHighlight$.pipe(switchMap((highlightData) => highlightDataPresentPredicate(highlightData)
4697
+ return seriesHighlight$.pipe(
4698
+ // eslint-disable-next-line import/no-deprecated
4699
+ switchMap((highlightData) => highlightDataPresentPredicate(highlightData)
4704
4700
  ? of(highlightData.data)
4705
4701
  : of(chartSeries.data && chartSeries.data.length
4706
4702
  ? chartSeries.data[chartSeries.data.length - 1]
@@ -5321,10 +5317,10 @@ function mergeDomains(domains, scale) {
5321
5317
  if (nonEmptyDomains.length === 0) {
5322
5318
  return EMPTY_CONTINUOUS_DOMAIN;
5323
5319
  }
5324
- const domainMin = min(nonEmptyDomains
5320
+ const domainMin = min$1(nonEmptyDomains
5325
5321
  .filter((e) => typeof e[0] !== undefined)
5326
5322
  .map((e) => e[0]));
5327
- const domainMax = max(nonEmptyDomains
5323
+ const domainMax = max$1(nonEmptyDomains
5328
5324
  .filter((e) => typeof e[1] !== undefined)
5329
5325
  .map((e) => e[1]));
5330
5326
  return [domainMin, domainMax];
@@ -6215,7 +6211,7 @@ class Grid {
6215
6211
  if (!this.borders.bottom) {
6216
6212
  throw new Error("BottomBorder is not defined");
6217
6213
  }
6218
- select(this.borders.bottom)
6214
+ select$1(this.borders.bottom)
6219
6215
  .attrs({
6220
6216
  x1: 0,
6221
6217
  y1: this.config().dimension.height() - borderMidpoint,
@@ -6233,7 +6229,7 @@ class Grid {
6233
6229
  this.updateBottomBorder();
6234
6230
  }
6235
6231
  if (this.borders.top) {
6236
- select(this.borders.top)
6232
+ select$1(this.borders.top)
6237
6233
  .attrs({
6238
6234
  x1: 0,
6239
6235
  y1: borderMidpoint,
@@ -6244,7 +6240,7 @@ class Grid {
6244
6240
  .classed("hidden", !this._config.borders.top?.visible);
6245
6241
  }
6246
6242
  if (this.borders.right) {
6247
- select(this.borders.right)
6243
+ select$1(this.borders.right)
6248
6244
  .attrs({
6249
6245
  x1: this.config().dimension.width() - borderMidpoint,
6250
6246
  y1: 0,
@@ -6255,7 +6251,7 @@ class Grid {
6255
6251
  .classed("hidden", !this._config.borders.right?.visible);
6256
6252
  }
6257
6253
  if (this.borders.left) {
6258
- select(this.borders.left)
6254
+ select$1(this.borders.left)
6259
6255
  .attrs({
6260
6256
  x1: borderMidpoint,
6261
6257
  y1: 0,
@@ -6613,18 +6609,18 @@ class XYGrid extends Grid {
6613
6609
  const textOfTicks = [];
6614
6610
  labelGroup.attr("cursor", "default");
6615
6611
  labelGroup.selectAll("g").each(function () {
6616
- select(this)
6612
+ select$1(this)
6617
6613
  .classed("sw-hidden", false)
6618
6614
  .classed("tick-hidden-text", false);
6619
6615
  textOfTicks.push(this);
6620
6616
  });
6621
6617
  const toRemove = this.filterRepeatedElements(textOfTicks);
6622
6618
  toRemove.forEach((group) => {
6623
- select(group).classed("tick-hidden-text", true);
6619
+ select$1(group).classed("tick-hidden-text", true);
6624
6620
  });
6625
6621
  const allAxisLabels = this.selectAllAxisLabels(labelGroup);
6626
6622
  allAxisLabels.forEach((group) => {
6627
- const groupSelection = select(group);
6623
+ const groupSelection = select$1(group);
6628
6624
  // zero-out the d3-provided x position of all labels since we're manually translating the x position of the entire group;
6629
6625
  // add IGNORE_INTERACTION_CLASS so that mouse events used for displaying the title don't propagate from the mouse-interactive-area
6630
6626
  groupSelection
@@ -6649,7 +6645,7 @@ class XYGrid extends Grid {
6649
6645
  !axisConfig.bottom.tickLabel.overflowHandler)) {
6650
6646
  const textToHide = this.getElementsToHide(axisLabels, this._config.dimension.width(), true);
6651
6647
  textToHide.forEach((group) => {
6652
- const groupSelection = select(group);
6648
+ const groupSelection = select$1(group);
6653
6649
  groupSelection.classed("tick-hidden-text", true);
6654
6650
  // disable pointer-events so the title doesn't display for hidden labels
6655
6651
  groupSelection.classed("pointer-events", false);
@@ -6659,7 +6655,7 @@ class XYGrid extends Grid {
6659
6655
  if (scale.id === this.rightScaleId || scale.id === this.leftScaleId) {
6660
6656
  const textToHide = this.getElementsToHide(axisLabels, this._config.dimension.height(), false);
6661
6657
  textToHide.forEach((group) => {
6662
- select(group).classed("sw-hidden", true);
6658
+ select$1(group).classed("sw-hidden", true);
6663
6659
  });
6664
6660
  }
6665
6661
  const margin = this.config().dimension.margin;
@@ -6761,12 +6757,12 @@ class XYGrid extends Grid {
6761
6757
  // hide the labels and disable pointer-events while debouncing
6762
6758
  labelGroup.classed("tick-hidden-text", true);
6763
6759
  axisLabels.forEach((group) => {
6764
- select(group).classed("pointer-events", false);
6760
+ select$1(group).classed("pointer-events", false);
6765
6761
  });
6766
6762
  // setTimeout used for debounce when the chart is resized
6767
6763
  this.handleTickLabelOverflowDebounceIndex[scale.id] = setTimeout(() => {
6768
6764
  axisLabels.forEach((group) => {
6769
- const groupSelection = select(group);
6765
+ const groupSelection = select$1(group);
6770
6766
  // invoke the handler for each text element
6771
6767
  groupSelection
6772
6768
  .select("text")
@@ -6848,12 +6844,12 @@ class XYGrid extends Grid {
6848
6844
  filterRepeatedElements(elementsToFilter) {
6849
6845
  const arr = [elementsToFilter[0]];
6850
6846
  elementsToFilter.reduce((prev, next) => {
6851
- const textInsideNext = select(next).text();
6847
+ const textInsideNext = select$1(next).text();
6852
6848
  if (textInsideNext !== prev) {
6853
6849
  arr.push(next);
6854
6850
  }
6855
6851
  return textInsideNext;
6856
- }, elementsToFilter[0] && select(elementsToFilter[0]).text());
6852
+ }, elementsToFilter[0] && select$1(elementsToFilter[0]).text());
6857
6853
  return elementsToFilter.filter((element) => arr.indexOf(element) === -1);
6858
6854
  }
6859
6855
  getElementsToHide(elementsToFilter, measurement, isBottomAxis) {
@@ -7547,7 +7543,7 @@ function stackedPreprocessor(chartSeriesSet, isVisible) {
7547
7543
  }
7548
7544
  const categories = gatherCategories(chartSeriesSet);
7549
7545
  // This is adding metadata to the dataset and filling missing
7550
- const forExtents = chartSeriesSet.reduce((acc, chartSeries) => {
7546
+ chartSeriesSet.reduce((acc, chartSeries) => {
7551
7547
  if (!isUndefined(chartSeries.preprocess) && !chartSeries.preprocess) {
7552
7548
  return acc;
7553
7549
  }
@@ -8318,7 +8314,7 @@ class PointScale extends Scale {
8318
8314
  .map(this._d3Scale)
8319
8315
  .slice(0, -1)
8320
8316
  .map((d) => d + this._d3Scale.step() / 2);
8321
- return domain[bisect(rangeMidPoints, coordinate)];
8317
+ return domain[bisect$1(rangeMidPoints, coordinate)];
8322
8318
  }
8323
8319
  round(round) {
8324
8320
  if (round) {
@@ -8367,19 +8363,29 @@ const formatSecond = (d) => intlFormat(d, {
8367
8363
  hour: "numeric",
8368
8364
  minute: "2-digit",
8369
8365
  second: "2-digit",
8370
- }), formatMinute = (d) => intlFormat(d, { hour: "numeric", minute: "2-digit" }), formatWeek = (d) => intlFormat(d, { month: "short", day: "2-digit" }), formatMonth = (d) => intlFormat(d, { month: "short" }), formatYear = (d) => intlFormat(d, { year: "numeric" });
8366
+ });
8367
+ const formatMinute = (d) => intlFormat(d, { hour: "numeric", minute: "2-digit" });
8368
+ const formatWeek = (d) => intlFormat(d, { month: "short", day: "2-digit" });
8369
+ const formatMonth = (d) => intlFormat(d, { month: "short" });
8370
+ const formatYear = (d) => intlFormat(d, { year: "numeric" });
8371
8371
  /**
8372
8372
  * Formatter for dates
8373
8373
  */
8374
- const datetimeFormatter = (date) => (timeMinute(date) < date
8375
- ? formatSecond
8376
- : timeDay(date) < date
8377
- ? formatMinute
8378
- : timeMonth(date) < date
8379
- ? formatWeek
8380
- : timeYear(date) < date
8381
- ? formatMonth
8382
- : formatYear)(date);
8374
+ const datetimeFormatter = (date) => {
8375
+ if (timeMinute(date) < date) {
8376
+ return formatSecond(date);
8377
+ }
8378
+ if (timeDay(date) < date) {
8379
+ return formatMinute(date);
8380
+ }
8381
+ if (timeMonth(date) < date) {
8382
+ return formatWeek(date);
8383
+ }
8384
+ if (timeYear(date) < date) {
8385
+ return formatMonth(date);
8386
+ }
8387
+ return formatYear(date);
8388
+ };
8383
8389
 
8384
8390
  // © 2022 SolarWinds Worldwide, LLC. All rights reserved.
8385
8391
  /**
@@ -8443,7 +8449,7 @@ class TimeIntervalScale extends TimeScale {
8443
8449
  return (datetimeFormatter(adjustedDate) + " - " + datetimeFormatter(endDate));
8444
8450
  };
8445
8451
  this.interval(interval);
8446
- this._bandScale = scaleBand();
8452
+ this._bandScale = scaleBand$1();
8447
8453
  this.formatters.title = this.defaultTitleFormatter;
8448
8454
  }
8449
8455
  interval(value) {
@@ -9108,7 +9114,7 @@ class SparkChartAssist {
9108
9114
  * and assign this function to the ngFor trackBy property
9109
9115
  */
9110
9116
  trackByFn(_index, spark) {
9111
- return spark.id;
9117
+ return spark?.id;
9112
9118
  }
9113
9119
  setRenderState(_seriesId, _state) {
9114
9120
  // not used
@@ -9279,7 +9285,7 @@ class BarHighlightStrategy {
9279
9285
  if (typeof value === "string") {
9280
9286
  return findIndex(series.data, (d, i) => value === startAccessor?.(d, i, series.data, series));
9281
9287
  }
9282
- else if (isArray(value)) {
9288
+ if (isArray(value)) {
9283
9289
  return findIndex(series.data, (d, i) => {
9284
9290
  const start = startAccessor?.(d, i, series.data, series);
9285
9291
  const lengthLimit = Math.min(this.levels, value.length, start.length);
@@ -9292,7 +9298,7 @@ class BarHighlightStrategy {
9292
9298
  return true;
9293
9299
  });
9294
9300
  }
9295
- else if (value.valueOf) {
9301
+ if (value.valueOf) {
9296
9302
  const valueOf = value.valueOf();
9297
9303
  if (scales && scales[scaleKey]?.isContinuous()) {
9298
9304
  let index = findIndex(series.data, (d, i) => valueOf >=
@@ -9352,7 +9358,7 @@ class BarHighlightStrategy {
9352
9358
  else {
9353
9359
  renderState = RenderState.deemphasized;
9354
9360
  }
9355
- select(this).attrs(barStylesFn(renderState));
9361
+ select$1(this).attrs(barStylesFn(renderState));
9356
9362
  });
9357
9363
  // rendererSubject.next({
9358
9364
  // eventName: HIGHLIGHT_SERIES_EVENT,
@@ -9721,7 +9727,7 @@ class AreaRenderer extends XYRenderer {
9721
9727
  MarkerUtils.manageMarker(renderSeries.dataSeries, renderSeries.scales, dataPointIndex, container, rendererSubject, this.config.markerInteraction);
9722
9728
  }
9723
9729
  safetyCheck(value) {
9724
- return isNaN(value) || typeof value === "undefined" ? 0 : value;
9730
+ return typeof value === "undefined" || isNaN(value) ? 0 : value;
9725
9731
  }
9726
9732
  }
9727
9733