@oliasoft-open-source/charts-library 4.3.9 → 4.3.10

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.
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import { produce } from "immer";
12
12
  import { round as round$2, displayNumber, isCloseTo, roundByMagnitude } from "@oliasoft-open-source/units";
13
13
  import cx from "classnames";
14
14
  import { Icon, Tooltip as Tooltip$2, Button, Flex, Text, Menu, Popover, Field, InputGroup, NumberInput, InputGroupAddon, Select, ButtonGroup, Spacer, Portal } from "@oliasoft-open-source/react-ui-library";
15
- import { isEmpty, isArray as isArray$2, some, has, cloneDeep, defaultTo, findIndex, set as set$2, debounce as debounce$3, isNil, map as map$3, find, get as get$1, values } from "lodash";
15
+ import { isEmpty, isArray as isArray$2, some, has, cloneDeep, defaultTo, findIndex, set as set$2, debounce as debounce$3, isNil, map as map$3, find, get as get$1 } from "lodash";
16
16
  import { roundNumberToPrecision } from "@oliasoft-open-source/units/dist/rounding/rounding";
17
17
  /*!
18
18
  * @kurkle/color v0.3.2
@@ -922,16 +922,16 @@ const _lookupByKey$1 = (table2, key, value, last) => _lookup$1(table2, value, la
922
922
  return ti < value || ti === value && table2[index2 + 1][key] === value;
923
923
  } : (index2) => table2[index2][key] < value);
924
924
  const _rlookupByKey$1 = (table2, key, value) => _lookup$1(table2, value, (index2) => table2[index2][key] >= value);
925
- function _filterBetween$1(values2, min, max) {
925
+ function _filterBetween$1(values, min, max) {
926
926
  let start = 0;
927
- let end = values2.length;
928
- while (start < end && values2[start] < min) {
927
+ let end = values.length;
928
+ while (start < end && values[start] < min) {
929
929
  start++;
930
930
  }
931
- while (end > start && values2[end - 1] > max) {
931
+ while (end > start && values[end - 1] > max) {
932
932
  end--;
933
933
  }
934
- return start > 0 || end < values2.length ? values2.slice(start, end) : values2;
934
+ return start > 0 || end < values.length ? values.slice(start, end) : values;
935
935
  }
936
936
  const arrayEvents$1 = [
937
937
  "push",
@@ -1405,9 +1405,9 @@ function getScope$1$1(node, key) {
1405
1405
  }
1406
1406
  return node;
1407
1407
  }
1408
- function set$1(root, scope2, values2) {
1408
+ function set$1(root, scope2, values) {
1409
1409
  if (typeof scope2 === "string") {
1410
- return merge$1(getScope$1$1(root, scope2), values2);
1410
+ return merge$1(getScope$1$1(root, scope2), values);
1411
1411
  }
1412
1412
  return merge$1(getScope$1$1(root, ""), scope2);
1413
1413
  }
@@ -1457,17 +1457,17 @@ let Defaults$1 = class Defaults {
1457
1457
  this.describe(_descriptors2);
1458
1458
  this.apply(_appliers);
1459
1459
  }
1460
- set(scope2, values2) {
1461
- return set$1(this, scope2, values2);
1460
+ set(scope2, values) {
1461
+ return set$1(this, scope2, values);
1462
1462
  }
1463
1463
  get(scope2) {
1464
1464
  return getScope$1$1(this, scope2);
1465
1465
  }
1466
- describe(scope2, values2) {
1467
- return set$1(descriptors$1, scope2, values2);
1466
+ describe(scope2, values) {
1467
+ return set$1(descriptors$1, scope2, values);
1468
1468
  }
1469
- override(scope2, values2) {
1470
- return set$1(overrides$1, scope2, values2);
1469
+ override(scope2, values) {
1470
+ return set$1(overrides$1, scope2, values);
1471
1471
  }
1472
1472
  route(scope2, name, targetScope, targetName) {
1473
1473
  const scopeObject = getScope$1$1(this, scope2);
@@ -3176,8 +3176,8 @@ let Animations$1 = class Animations {
3176
3176
  });
3177
3177
  });
3178
3178
  }
3179
- _animateOptions(target, values2) {
3180
- const newOptions = values2.options;
3179
+ _animateOptions(target, values) {
3180
+ const newOptions = values.options;
3181
3181
  const options = resolveTargetOptions$1(target, newOptions);
3182
3182
  if (!options) {
3183
3183
  return [];
@@ -3191,11 +3191,11 @@ let Animations$1 = class Animations {
3191
3191
  }
3192
3192
  return animations;
3193
3193
  }
3194
- _createAnimations(target, values2) {
3194
+ _createAnimations(target, values) {
3195
3195
  const animatedProps = this._properties;
3196
3196
  const animations = [];
3197
3197
  const running = target.$animations || (target.$animations = {});
3198
- const props = Object.keys(values2);
3198
+ const props = Object.keys(values);
3199
3199
  const date = Date.now();
3200
3200
  let i2;
3201
3201
  for (i2 = props.length - 1; i2 >= 0; --i2) {
@@ -3204,10 +3204,10 @@ let Animations$1 = class Animations {
3204
3204
  continue;
3205
3205
  }
3206
3206
  if (prop === "options") {
3207
- animations.push(...this._animateOptions(target, values2));
3207
+ animations.push(...this._animateOptions(target, values));
3208
3208
  continue;
3209
3209
  }
3210
- const value = values2[prop];
3210
+ const value = values[prop];
3211
3211
  let animation = running[prop];
3212
3212
  const cfg = animatedProps.get(prop);
3213
3213
  if (animation) {
@@ -3227,12 +3227,12 @@ let Animations$1 = class Animations {
3227
3227
  }
3228
3228
  return animations;
3229
3229
  }
3230
- update(target, values2) {
3230
+ update(target, values) {
3231
3231
  if (this._properties.size === 0) {
3232
- Object.assign(target, values2);
3232
+ Object.assign(target, values);
3233
3233
  return;
3234
3234
  }
3235
- const animations = this._createAnimations(target, values2);
3235
+ const animations = this._createAnimations(target, values);
3236
3236
  if (animations.length) {
3237
3237
  animator$1.add(this._chart, animations);
3238
3238
  return true;
@@ -3685,9 +3685,9 @@ let DatasetController$1 = (_a = class {
3685
3685
  updateRangeFromParsed(range, scale, parsed, stack) {
3686
3686
  const parsedValue = parsed[scale.axis];
3687
3687
  let value = parsedValue === null ? NaN : parsedValue;
3688
- const values2 = stack && parsed._stacks[scale.axis];
3689
- if (stack && values2) {
3690
- stack.values = values2;
3688
+ const values = stack && parsed._stacks[scale.axis];
3689
+ if (stack && values) {
3690
+ stack.values = values;
3691
3691
  value = applyStack$1(stack, parsedValue, this._cachedMeta.index);
3692
3692
  }
3693
3693
  range.min = Math.min(range.min, value);
@@ -3733,15 +3733,15 @@ let DatasetController$1 = (_a = class {
3733
3733
  }
3734
3734
  getAllParsedValues(scale) {
3735
3735
  const parsed = this._cachedMeta._parsed;
3736
- const values2 = [];
3736
+ const values = [];
3737
3737
  let i2, ilen, value;
3738
3738
  for (i2 = 0, ilen = parsed.length; i2 < ilen; ++i2) {
3739
3739
  value = parsed[i2][scale.axis];
3740
3740
  if (isNumberFinite$1(value)) {
3741
- values2.push(value);
3741
+ values.push(value);
3742
3742
  }
3743
3743
  }
3744
- return values2;
3744
+ return values;
3745
3745
  }
3746
3746
  getMaxOverflow() {
3747
3747
  return false;
@@ -3843,12 +3843,12 @@ let DatasetController$1 = (_a = class {
3843
3843
  const scopes = config2.getOptionScopes(this.getDataset(), scopeKeys);
3844
3844
  const names2 = Object.keys(defaults$2.elements[elementType]);
3845
3845
  const context = () => this.getContext(index2, active, mode);
3846
- const values2 = config2.resolveNamedOptions(scopes, names2, context, prefixes);
3847
- if (values2.$shared) {
3848
- values2.$shared = sharing;
3849
- cache2[cacheKey] = Object.freeze(cloneIfNotShared$1(values2, sharing));
3846
+ const values = config2.resolveNamedOptions(scopes, names2, context, prefixes);
3847
+ if (values.$shared) {
3848
+ values.$shared = sharing;
3849
+ cache2[cacheKey] = Object.freeze(cloneIfNotShared$1(values, sharing));
3850
3850
  }
3851
- return values2;
3851
+ return values;
3852
3852
  }
3853
3853
  _resolveAnimations(index2, transition, active) {
3854
3854
  const chart2 = this.chart;
@@ -4044,17 +4044,17 @@ let DatasetController$1 = (_a = class {
4044
4044
  function getAllScaleValues$1(scale, type) {
4045
4045
  if (!scale._cache.$bar) {
4046
4046
  const visibleMetas = scale.getMatchingVisibleMetas(type);
4047
- let values2 = [];
4047
+ let values = [];
4048
4048
  for (let i2 = 0, ilen = visibleMetas.length; i2 < ilen; i2++) {
4049
- values2 = values2.concat(visibleMetas[i2].controller.getAllParsedValues(scale));
4049
+ values = values.concat(visibleMetas[i2].controller.getAllParsedValues(scale));
4050
4050
  }
4051
- scale._cache.$bar = _arrayUnique$1(values2.sort((a2, b2) => a2 - b2));
4051
+ scale._cache.$bar = _arrayUnique$1(values.sort((a2, b2) => a2 - b2));
4052
4052
  }
4053
4053
  return scale._cache.$bar;
4054
4054
  }
4055
4055
  function computeMinSampleSize$1(meta) {
4056
4056
  const scale = meta.iScale;
4057
- const values2 = getAllScaleValues$1(scale, meta.type);
4057
+ const values = getAllScaleValues$1(scale, meta.type);
4058
4058
  let min = scale._length;
4059
4059
  let i2, ilen, curr, prev;
4060
4060
  const updateMinAndPrev = () => {
@@ -4066,8 +4066,8 @@ function computeMinSampleSize$1(meta) {
4066
4066
  }
4067
4067
  prev = curr;
4068
4068
  };
4069
- for (i2 = 0, ilen = values2.length; i2 < ilen; ++i2) {
4070
- curr = scale.getPixelForValue(values2[i2]);
4069
+ for (i2 = 0, ilen = values.length; i2 < ilen; ++i2) {
4070
+ curr = scale.getPixelForValue(values[i2]);
4071
4071
  updateMinAndPrev();
4072
4072
  }
4073
4073
  prev = void 0;
@@ -12563,13 +12563,13 @@ function setMajorTicks$1(scale, ticks, map2, majorUnit) {
12563
12563
  }
12564
12564
  return ticks;
12565
12565
  }
12566
- function ticksFromTimestamps$1(scale, values2, majorUnit) {
12566
+ function ticksFromTimestamps$1(scale, values, majorUnit) {
12567
12567
  const ticks = [];
12568
12568
  const map2 = {};
12569
- const ilen = values2.length;
12569
+ const ilen = values.length;
12570
12570
  let i2, value;
12571
12571
  for (i2 = 0; i2 < ilen; ++i2) {
12572
- value = values2[i2];
12572
+ value = values[i2];
12573
12573
  map2[value] = i2;
12574
12574
  ticks.push({
12575
12575
  value,
@@ -12841,8 +12841,8 @@ let TimeScale$1 = (_q = class extends Scale$1 {
12841
12841
  }
12842
12842
  return this._cache.labels = this._normalized ? timestamps : this.normalize(timestamps);
12843
12843
  }
12844
- normalize(values2) {
12845
- return _arrayUnique$1(values2.sort(sorter$1));
12844
+ normalize(values) {
12845
+ return _arrayUnique$1(values.sort(sorter$1));
12846
12846
  }
12847
12847
  }, __publicField(_q, "id", "time"), __publicField(_q, "defaults", {
12848
12848
  bounds: "data",
@@ -13267,14 +13267,14 @@ var hammer = { exports: {} };
13267
13267
  }
13268
13268
  function uniqueArray(src, key, sort) {
13269
13269
  var results = [];
13270
- var values2 = [];
13270
+ var values = [];
13271
13271
  var i2 = 0;
13272
13272
  while (i2 < src.length) {
13273
13273
  var val = key ? src[i2][key] : src[i2];
13274
- if (inArray(values2, val) < 0) {
13274
+ if (inArray(values, val) < 0) {
13275
13275
  results.push(src[i2]);
13276
13276
  }
13277
- values2[i2] = val;
13277
+ values[i2] = val;
13278
13278
  i2++;
13279
13279
  }
13280
13280
  if (sort) {
@@ -22661,8 +22661,8 @@ const getAxisTypeFromKey = (string) => {
22661
22661
  var _a2;
22662
22662
  return ((_a2 = string == null ? void 0 : string.match(/[^0-9/]+/gi)) == null ? void 0 : _a2[0]) ?? "";
22663
22663
  };
22664
- const generateKey = (values2) => {
22665
- const key = values2.join("");
22664
+ const generateKey = (values) => {
22665
+ const key = values.join("");
22666
22666
  return key;
22667
22667
  };
22668
22668
  const isPrimitiveValue = (value) => typeof value === "string" || typeof value === "number" || typeof value === "boolean" || value === null;
@@ -26572,13 +26572,15 @@ const LegendItem = ({
26572
26572
  );
26573
26573
  };
26574
26574
  const generateAnnotationLabels = (chart2) => {
26575
- const annotations = cloneDeep(
26576
- get$1(chart2, "options.plugins.annotation.annotations", {})
26575
+ const annotations = get$1(
26576
+ chart2,
26577
+ "options.plugins.annotation.annotations",
26578
+ null
26577
26579
  );
26578
26580
  if (!annotations || !Object.keys(annotations).length) {
26579
26581
  return [];
26580
26582
  }
26581
- return values(annotations);
26583
+ return Object.values(annotations);
26582
26584
  };
26583
26585
  const generatedLabels = (chart2) => {
26584
26586
  var _a2, _b2, _c2, _d2, _e2;
@@ -27595,16 +27597,16 @@ function _lookup(table2, value, cmp) {
27595
27597
  }
27596
27598
  const _lookupByKey = (table2, key, value, last) => _lookup(table2, value, last ? (index2) => table2[index2][key] <= value : (index2) => table2[index2][key] < value);
27597
27599
  const _rlookupByKey = (table2, key, value) => _lookup(table2, value, (index2) => table2[index2][key] >= value);
27598
- function _filterBetween(values2, min, max) {
27600
+ function _filterBetween(values, min, max) {
27599
27601
  let start = 0;
27600
- let end = values2.length;
27601
- while (start < end && values2[start] < min) {
27602
+ let end = values.length;
27603
+ while (start < end && values[start] < min) {
27602
27604
  start++;
27603
27605
  }
27604
- while (end > start && values2[end - 1] > max) {
27606
+ while (end > start && values[end - 1] > max) {
27605
27607
  end--;
27606
27608
  }
27607
- return start > 0 || end < values2.length ? values2.slice(start, end) : values2;
27609
+ return start > 0 || end < values.length ? values.slice(start, end) : values;
27608
27610
  }
27609
27611
  const arrayEvents = ["push", "pop", "shift", "splice", "unshift"];
27610
27612
  function listenArrayEvents(array, listener) {
@@ -28407,9 +28409,9 @@ function getScope$1(node, key) {
28407
28409
  }
28408
28410
  return node;
28409
28411
  }
28410
- function set(root, scope2, values2) {
28412
+ function set(root, scope2, values) {
28411
28413
  if (typeof scope2 === "string") {
28412
- return merge(getScope$1(root, scope2), values2);
28414
+ return merge(getScope$1(root, scope2), values);
28413
28415
  }
28414
28416
  return merge(getScope$1(root, ""), scope2);
28415
28417
  }
@@ -28458,17 +28460,17 @@ class Defaults2 {
28458
28460
  this.drawActiveElementsOnTop = true;
28459
28461
  this.describe(_descriptors2);
28460
28462
  }
28461
- set(scope2, values2) {
28462
- return set(this, scope2, values2);
28463
+ set(scope2, values) {
28464
+ return set(this, scope2, values);
28463
28465
  }
28464
28466
  get(scope2) {
28465
28467
  return getScope$1(this, scope2);
28466
28468
  }
28467
- describe(scope2, values2) {
28468
- return set(descriptors, scope2, values2);
28469
+ describe(scope2, values) {
28470
+ return set(descriptors, scope2, values);
28469
28471
  }
28470
- override(scope2, values2) {
28471
- return set(overrides, scope2, values2);
28472
+ override(scope2, values) {
28473
+ return set(overrides, scope2, values);
28472
28474
  }
28473
28475
  route(scope2, name, targetScope, targetName) {
28474
28476
  const scopeObject = getScope$1(this, scope2);
@@ -30133,8 +30135,8 @@ class Animations2 {
30133
30135
  });
30134
30136
  });
30135
30137
  }
30136
- _animateOptions(target, values2) {
30137
- const newOptions = values2.options;
30138
+ _animateOptions(target, values) {
30139
+ const newOptions = values.options;
30138
30140
  const options = resolveTargetOptions(target, newOptions);
30139
30141
  if (!options) {
30140
30142
  return [];
@@ -30148,11 +30150,11 @@ class Animations2 {
30148
30150
  }
30149
30151
  return animations;
30150
30152
  }
30151
- _createAnimations(target, values2) {
30153
+ _createAnimations(target, values) {
30152
30154
  const animatedProps = this._properties;
30153
30155
  const animations = [];
30154
30156
  const running = target.$animations || (target.$animations = {});
30155
- const props = Object.keys(values2);
30157
+ const props = Object.keys(values);
30156
30158
  const date = Date.now();
30157
30159
  let i2;
30158
30160
  for (i2 = props.length - 1; i2 >= 0; --i2) {
@@ -30161,10 +30163,10 @@ class Animations2 {
30161
30163
  continue;
30162
30164
  }
30163
30165
  if (prop === "options") {
30164
- animations.push(...this._animateOptions(target, values2));
30166
+ animations.push(...this._animateOptions(target, values));
30165
30167
  continue;
30166
30168
  }
30167
- const value = values2[prop];
30169
+ const value = values[prop];
30168
30170
  let animation = running[prop];
30169
30171
  const cfg = animatedProps.get(prop);
30170
30172
  if (animation) {
@@ -30184,12 +30186,12 @@ class Animations2 {
30184
30186
  }
30185
30187
  return animations;
30186
30188
  }
30187
- update(target, values2) {
30189
+ update(target, values) {
30188
30190
  if (this._properties.size === 0) {
30189
- Object.assign(target, values2);
30191
+ Object.assign(target, values);
30190
30192
  return;
30191
30193
  }
30192
- const animations = this._createAnimations(target, values2);
30194
+ const animations = this._createAnimations(target, values);
30193
30195
  if (animations.length) {
30194
30196
  animator.add(this._chart, animations);
30195
30197
  return true;
@@ -30627,9 +30629,9 @@ class DatasetController {
30627
30629
  updateRangeFromParsed(range, scale, parsed, stack) {
30628
30630
  const parsedValue = parsed[scale.axis];
30629
30631
  let value = parsedValue === null ? NaN : parsedValue;
30630
- const values2 = stack && parsed._stacks[scale.axis];
30631
- if (stack && values2) {
30632
- stack.values = values2;
30632
+ const values = stack && parsed._stacks[scale.axis];
30633
+ if (stack && values) {
30634
+ stack.values = values;
30633
30635
  value = applyStack(stack, parsedValue, this._cachedMeta.index);
30634
30636
  }
30635
30637
  range.min = Math.min(range.min, value);
@@ -30672,15 +30674,15 @@ class DatasetController {
30672
30674
  }
30673
30675
  getAllParsedValues(scale) {
30674
30676
  const parsed = this._cachedMeta._parsed;
30675
- const values2 = [];
30677
+ const values = [];
30676
30678
  let i2, ilen, value;
30677
30679
  for (i2 = 0, ilen = parsed.length; i2 < ilen; ++i2) {
30678
30680
  value = parsed[i2][scale.axis];
30679
30681
  if (isNumberFinite(value)) {
30680
- values2.push(value);
30682
+ values.push(value);
30681
30683
  }
30682
30684
  }
30683
- return values2;
30685
+ return values;
30684
30686
  }
30685
30687
  getMaxOverflow() {
30686
30688
  return false;
@@ -30774,12 +30776,12 @@ class DatasetController {
30774
30776
  const scopes = config2.getOptionScopes(this.getDataset(), scopeKeys);
30775
30777
  const names2 = Object.keys(defaults.elements[elementType]);
30776
30778
  const context = () => this.getContext(index2, active);
30777
- const values2 = config2.resolveNamedOptions(scopes, names2, context, prefixes);
30778
- if (values2.$shared) {
30779
- values2.$shared = sharing;
30780
- cache2[cacheKey] = Object.freeze(cloneIfNotShared(values2, sharing));
30779
+ const values = config2.resolveNamedOptions(scopes, names2, context, prefixes);
30780
+ if (values.$shared) {
30781
+ values.$shared = sharing;
30782
+ cache2[cacheKey] = Object.freeze(cloneIfNotShared(values, sharing));
30781
30783
  }
30782
- return values2;
30784
+ return values;
30783
30785
  }
30784
30786
  _resolveAnimations(index2, transition, active) {
30785
30787
  const chart2 = this.chart;
@@ -30948,17 +30950,17 @@ DatasetController.prototype.dataElementType = null;
30948
30950
  function getAllScaleValues(scale, type) {
30949
30951
  if (!scale._cache.$bar) {
30950
30952
  const visibleMetas = scale.getMatchingVisibleMetas(type);
30951
- let values2 = [];
30953
+ let values = [];
30952
30954
  for (let i2 = 0, ilen = visibleMetas.length; i2 < ilen; i2++) {
30953
- values2 = values2.concat(visibleMetas[i2].controller.getAllParsedValues(scale));
30955
+ values = values.concat(visibleMetas[i2].controller.getAllParsedValues(scale));
30954
30956
  }
30955
- scale._cache.$bar = _arrayUnique(values2.sort((a2, b2) => a2 - b2));
30957
+ scale._cache.$bar = _arrayUnique(values.sort((a2, b2) => a2 - b2));
30956
30958
  }
30957
30959
  return scale._cache.$bar;
30958
30960
  }
30959
30961
  function computeMinSampleSize(meta) {
30960
30962
  const scale = meta.iScale;
30961
- const values2 = getAllScaleValues(scale, meta.type);
30963
+ const values = getAllScaleValues(scale, meta.type);
30962
30964
  let min = scale._length;
30963
30965
  let i2, ilen, curr, prev;
30964
30966
  const updateMinAndPrev = () => {
@@ -30970,8 +30972,8 @@ function computeMinSampleSize(meta) {
30970
30972
  }
30971
30973
  prev = curr;
30972
30974
  };
30973
- for (i2 = 0, ilen = values2.length; i2 < ilen; ++i2) {
30974
- curr = scale.getPixelForValue(values2[i2]);
30975
+ for (i2 = 0, ilen = values.length; i2 < ilen; ++i2) {
30976
+ curr = scale.getPixelForValue(values[i2]);
30975
30977
  updateMinAndPrev();
30976
30978
  }
30977
30979
  prev = void 0;
@@ -31471,16 +31473,16 @@ class BubbleController extends DatasetController {
31471
31473
  }
31472
31474
  resolveDataElementOptions(index2, mode) {
31473
31475
  const parsed = this.getParsed(index2);
31474
- let values2 = super.resolveDataElementOptions(index2, mode);
31475
- if (values2.$shared) {
31476
- values2 = Object.assign({}, values2, { $shared: false });
31476
+ let values = super.resolveDataElementOptions(index2, mode);
31477
+ if (values.$shared) {
31478
+ values = Object.assign({}, values, { $shared: false });
31477
31479
  }
31478
- const radius = values2.radius;
31480
+ const radius = values.radius;
31479
31481
  if (mode !== "active") {
31480
- values2.radius = 0;
31482
+ values.radius = 0;
31481
31483
  }
31482
- values2.radius += valueOrDefault(parsed && parsed._custom, radius);
31483
- return values2;
31484
+ values.radius += valueOrDefault(parsed && parsed._custom, radius);
31485
+ return values;
31484
31486
  }
31485
31487
  }
31486
31488
  BubbleController.id = "bubble";
@@ -38503,13 +38505,13 @@ function setMajorTicks(scale, ticks, map2, majorUnit) {
38503
38505
  }
38504
38506
  return ticks;
38505
38507
  }
38506
- function ticksFromTimestamps(scale, values2, majorUnit) {
38508
+ function ticksFromTimestamps(scale, values, majorUnit) {
38507
38509
  const ticks = [];
38508
38510
  const map2 = {};
38509
- const ilen = values2.length;
38511
+ const ilen = values.length;
38510
38512
  let i2, value;
38511
38513
  for (i2 = 0; i2 < ilen; ++i2) {
38512
- value = values2[i2];
38514
+ value = values[i2];
38513
38515
  map2[value] = i2;
38514
38516
  ticks.push({
38515
38517
  value,
@@ -38759,8 +38761,8 @@ class TimeScale extends Scale2 {
38759
38761
  }
38760
38762
  return this._cache.labels = this._normalized ? timestamps : this.normalize(timestamps);
38761
38763
  }
38762
- normalize(values2) {
38763
- return _arrayUnique(values2.sort(sorter));
38764
+ normalize(values) {
38765
+ return _arrayUnique(values.sort(sorter));
38764
38766
  }
38765
38767
  }
38766
38768
  TimeScale.id = "time";