billboard.js 3.10.2 → 3.10.3

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 (54) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +80 -65
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +192 -338
  6. package/dist/billboard.pkgd.min.js +4 -4
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +112 -273
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +113 -274
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +114 -275
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +114 -275
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +114 -275
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/billboard.js +60 -46
  38. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  39. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  40. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  43. package/package.json +17 -17
  44. package/src/ChartInternal/Axis/Axis.ts +7 -4
  45. package/src/ChartInternal/data/data.ts +15 -9
  46. package/src/ChartInternal/internals/clip.ts +1 -2
  47. package/src/ChartInternal/internals/format.ts +15 -4
  48. package/src/ChartInternal/internals/size.axis.ts +4 -17
  49. package/src/ChartInternal/internals/size.ts +11 -5
  50. package/src/ChartInternal/internals/text.ts +3 -3
  51. package/src/ChartInternal/internals/tooltip.ts +2 -2
  52. package/src/ChartInternal/internals/transform.ts +1 -1
  53. package/src/ChartInternal/shape/arc.ts +1 -1
  54. package/src/ChartInternal/shape/shape.ts +2 -0
@@ -5,11 +5,11 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.10.2
8
+ * @version 3.10.3
9
9
  *
10
10
  * All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
11
- * - @types/d3-selection ^3.0.8
12
- * - @types/d3-transition ^3.0.6
11
+ * - @types/d3-selection ^3.0.9
12
+ * - @types/d3-transition ^3.0.7
13
13
  * - d3-axis ^3.0.0
14
14
  * - d3-brush ^3.0.0
15
15
  * - d3-drag ^3.0.0
@@ -294,14 +294,14 @@ __webpack_require__(502);
294
294
  __webpack_require__(507);
295
295
  __webpack_require__(508);
296
296
  __webpack_require__(509);
297
- __webpack_require__(517);
298
- __webpack_require__(520);
297
+ __webpack_require__(516);
298
+ __webpack_require__(519);
299
+ __webpack_require__(524);
299
300
  __webpack_require__(525);
300
301
  __webpack_require__(526);
301
302
  __webpack_require__(527);
302
303
  __webpack_require__(528);
303
304
  __webpack_require__(529);
304
- __webpack_require__(530);
305
305
 
306
306
  /* unused reexport */ __webpack_require__(82);
307
307
 
@@ -1258,10 +1258,10 @@ var store = __webpack_require__(37);
1258
1258
  (module.exports = function (key, value) {
1259
1259
  return store[key] || (store[key] = value !== undefined ? value : {});
1260
1260
  })('versions', []).push({
1261
- version: '3.33.1',
1261
+ version: '3.33.2',
1262
1262
  mode: IS_PURE ? 'pure' : 'global',
1263
1263
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
1264
- license: 'https://github.com/zloirock/core-js/blob/v3.33.1/LICENSE',
1264
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',
1265
1265
  source: 'https://github.com/zloirock/core-js'
1266
1266
  });
1267
1267
 
@@ -5827,7 +5827,9 @@ module.exports = function (Constructor, list) {
5827
5827
  var global = __webpack_require__(4);
5828
5828
 
5829
5829
  module.exports = function (CONSTRUCTOR, METHOD) {
5830
- return global[CONSTRUCTOR].prototype[METHOD];
5830
+ var Constructor = global[CONSTRUCTOR];
5831
+ var Prototype = Constructor && Constructor.prototype;
5832
+ return Prototype && Prototype[METHOD];
5831
5833
  };
5832
5834
 
5833
5835
 
@@ -16394,7 +16396,7 @@ try {
16394
16396
  var IS_PURE = __webpack_require__(36);
16395
16397
  var $ = __webpack_require__(3);
16396
16398
  var global = __webpack_require__(4);
16397
- var getBuiltin = __webpack_require__(24);
16399
+ var getBuiltIn = __webpack_require__(24);
16398
16400
  var uncurryThis = __webpack_require__(14);
16399
16401
  var fails = __webpack_require__(7);
16400
16402
  var uid = __webpack_require__(41);
@@ -16414,33 +16416,26 @@ var validateArgumentsLength = __webpack_require__(329);
16414
16416
  var getRegExpFlags = __webpack_require__(369);
16415
16417
  var MapHelpers = __webpack_require__(510);
16416
16418
  var SetHelpers = __webpack_require__(511);
16417
- var arrayBufferTransfer = __webpack_require__(512);
16419
+ var setIterate = __webpack_require__(512);
16420
+ var detachTransferable = __webpack_require__(514);
16418
16421
  var ERROR_STACK_INSTALLABLE = __webpack_require__(125);
16419
- var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(516);
16422
+ var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(515);
16420
16423
 
16421
16424
  var Object = global.Object;
16422
16425
  var Array = global.Array;
16423
16426
  var Date = global.Date;
16424
16427
  var Error = global.Error;
16425
- var EvalError = global.EvalError;
16426
- var RangeError = global.RangeError;
16427
- var ReferenceError = global.ReferenceError;
16428
- var SyntaxError = global.SyntaxError;
16429
16428
  var TypeError = global.TypeError;
16430
- var URIError = global.URIError;
16431
16429
  var PerformanceMark = global.PerformanceMark;
16432
- var WebAssembly = global.WebAssembly;
16433
- var CompileError = WebAssembly && WebAssembly.CompileError || Error;
16434
- var LinkError = WebAssembly && WebAssembly.LinkError || Error;
16435
- var RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error;
16436
- var DOMException = getBuiltin('DOMException');
16430
+ var DOMException = getBuiltIn('DOMException');
16437
16431
  var Map = MapHelpers.Map;
16438
16432
  var mapHas = MapHelpers.has;
16439
16433
  var mapGet = MapHelpers.get;
16440
16434
  var mapSet = MapHelpers.set;
16441
16435
  var Set = SetHelpers.Set;
16442
16436
  var setAdd = SetHelpers.add;
16443
- var objectKeys = getBuiltin('Object', 'keys');
16437
+ var setHas = SetHelpers.has;
16438
+ var objectKeys = getBuiltIn('Object', 'keys');
16444
16439
  var push = uncurryThis([].push);
16445
16440
  var thisBooleanValue = uncurryThis(true.valueOf);
16446
16441
  var thisNumberValue = uncurryThis(1.0.valueOf);
@@ -16455,7 +16450,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
16455
16450
  var set1 = new global.Set([7]);
16456
16451
  var set2 = structuredCloneImplementation(set1);
16457
16452
  var number = structuredCloneImplementation(Object(7));
16458
- return set2 === set1 || !set2.has(7) || typeof number != 'object' || +number !== 7;
16453
+ return set2 === set1 || !set2.has(7) || !isObject(number) || +number !== 7;
16459
16454
  }) && structuredCloneImplementation;
16460
16455
  };
16461
16456
 
@@ -16551,10 +16546,10 @@ var cloneBuffer = function (value, map, $type) {
16551
16546
 
16552
16547
  // `ArrayBuffer#slice` is not available in IE10
16553
16548
  // `ArrayBuffer#slice` and `DataView` are not available in old FF
16554
- if (!DataView && typeof value.slice != 'function') throwUnpolyfillable('ArrayBuffer');
16549
+ if (!DataView && !isCallable(value.slice)) throwUnpolyfillable('ArrayBuffer');
16555
16550
  // detached buffers throws in `DataView` and `.slice`
16556
16551
  try {
16557
- if (typeof value.slice == 'function' && !value.resizable) {
16552
+ if (isCallable(value.slice) && !value.resizable) {
16558
16553
  clone = value.slice(0);
16559
16554
  } else {
16560
16555
  length = value.byteLength;
@@ -16584,13 +16579,7 @@ var cloneView = function (value, type, offset, length, map) {
16584
16579
  return new C(cloneBuffer(value.buffer, map), offset, length);
16585
16580
  };
16586
16581
 
16587
- var Placeholder = function (object, type, metadata) {
16588
- this.object = object;
16589
- this.type = type;
16590
- this.metadata = metadata;
16591
- };
16592
-
16593
- var structuredCloneInternal = function (value, map, transferredBuffers) {
16582
+ var structuredCloneInternal = function (value, map) {
16594
16583
  if (isSymbol(value)) throwUncloneable('Symbol');
16595
16584
  if (!isObject(value)) return value;
16596
16585
  // effectively preserves circular references
@@ -16623,34 +16612,21 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
16623
16612
  name = value.name;
16624
16613
  switch (name) {
16625
16614
  case 'AggregateError':
16626
- cloned = new (getBuiltin('AggregateError'))([]);
16615
+ cloned = new (getBuiltIn(name))([]);
16627
16616
  break;
16628
16617
  case 'EvalError':
16629
- cloned = new EvalError();
16630
- break;
16631
16618
  case 'RangeError':
16632
- cloned = new RangeError();
16633
- break;
16634
16619
  case 'ReferenceError':
16635
- cloned = new ReferenceError();
16636
- break;
16620
+ case 'SuppressedError':
16637
16621
  case 'SyntaxError':
16638
- cloned = new SyntaxError();
16639
- break;
16640
16622
  case 'TypeError':
16641
- cloned = new TypeError();
16642
- break;
16643
16623
  case 'URIError':
16644
- cloned = new URIError();
16624
+ cloned = new (getBuiltIn(name))();
16645
16625
  break;
16646
16626
  case 'CompileError':
16647
- cloned = new CompileError();
16648
- break;
16649
16627
  case 'LinkError':
16650
- cloned = new LinkError();
16651
- break;
16652
16628
  case 'RuntimeError':
16653
- cloned = new RuntimeError();
16629
+ cloned = new (getBuiltIn('WebAssembly', name))();
16654
16630
  break;
16655
16631
  default:
16656
16632
  cloned = new Error();
@@ -16661,9 +16637,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
16661
16637
  break;
16662
16638
  case 'ArrayBuffer':
16663
16639
  case 'SharedArrayBuffer':
16664
- cloned = transferredBuffers
16665
- ? new Placeholder(value, type)
16666
- : cloneBuffer(value, map, type);
16640
+ cloned = cloneBuffer(value, map, type);
16667
16641
  break;
16668
16642
  case 'DataView':
16669
16643
  case 'Int8Array':
@@ -16679,17 +16653,15 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
16679
16653
  case 'BigInt64Array':
16680
16654
  case 'BigUint64Array':
16681
16655
  length = type === 'DataView' ? value.byteLength : value.length;
16682
- cloned = transferredBuffers
16683
- ? new Placeholder(value, type, { offset: value.byteOffset, length: length })
16684
- : cloneView(value, type, value.byteOffset, length, map);
16656
+ cloned = cloneView(value, type, value.byteOffset, length, map);
16685
16657
  break;
16686
16658
  case 'DOMQuad':
16687
16659
  try {
16688
16660
  cloned = new DOMQuad(
16689
- structuredCloneInternal(value.p1, map, transferredBuffers),
16690
- structuredCloneInternal(value.p2, map, transferredBuffers),
16691
- structuredCloneInternal(value.p3, map, transferredBuffers),
16692
- structuredCloneInternal(value.p4, map, transferredBuffers)
16661
+ structuredCloneInternal(value.p1, map),
16662
+ structuredCloneInternal(value.p2, map),
16663
+ structuredCloneInternal(value.p3, map),
16664
+ structuredCloneInternal(value.p4, map)
16693
16665
  );
16694
16666
  } catch (error) {
16695
16667
  cloned = tryNativeRestrictedStructuredClone(value, type);
@@ -16710,7 +16682,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
16710
16682
  dataTransfer = createDataTransfer();
16711
16683
  if (dataTransfer) {
16712
16684
  for (i = 0, length = lengthOfArrayLike(value); i < length; i++) {
16713
- dataTransfer.items.add(structuredCloneInternal(value[i], map, transferredBuffers));
16685
+ dataTransfer.items.add(structuredCloneInternal(value[i], map));
16714
16686
  }
16715
16687
  cloned = dataTransfer.files;
16716
16688
  } else cloned = tryNativeRestrictedStructuredClone(value, type);
@@ -16719,7 +16691,7 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
16719
16691
  // Safari 9 ImageData is a constructor, but typeof ImageData is 'object'
16720
16692
  try {
16721
16693
  cloned = new ImageData(
16722
- structuredCloneInternal(value.data, map, transferredBuffers),
16694
+ structuredCloneInternal(value.data, map),
16723
16695
  value.width,
16724
16696
  value.height,
16725
16697
  { colorSpace: value.colorSpace }
@@ -16816,105 +16788,38 @@ var structuredCloneInternal = function (value, map, transferredBuffers) {
16816
16788
  keys = objectKeys(value);
16817
16789
  for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
16818
16790
  key = keys[i];
16819
- createProperty(cloned, key, structuredCloneInternal(value[key], map, transferredBuffers));
16791
+ createProperty(cloned, key, structuredCloneInternal(value[key], map));
16820
16792
  } break;
16821
16793
  case 'Map':
16822
16794
  value.forEach(function (v, k) {
16823
- mapSet(cloned, structuredCloneInternal(k, map, transferredBuffers), structuredCloneInternal(v, map, transferredBuffers));
16795
+ mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map));
16824
16796
  });
16825
16797
  break;
16826
16798
  case 'Set':
16827
16799
  value.forEach(function (v) {
16828
- setAdd(cloned, structuredCloneInternal(v, map, transferredBuffers));
16800
+ setAdd(cloned, structuredCloneInternal(v, map));
16829
16801
  });
16830
16802
  break;
16831
16803
  case 'Error':
16832
- createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map, transferredBuffers));
16804
+ createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map));
16833
16805
  if (hasOwn(value, 'cause')) {
16834
- createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map, transferredBuffers));
16806
+ createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map));
16835
16807
  }
16836
16808
  if (name === 'AggregateError') {
16837
- cloned.errors = structuredCloneInternal(value.errors, map, transferredBuffers);
16809
+ cloned.errors = structuredCloneInternal(value.errors, map);
16810
+ } else if (name === 'SuppressedError') {
16811
+ cloned.error = structuredCloneInternal(value.error, map);
16812
+ cloned.suppressed = structuredCloneInternal(value.suppressed, map);
16838
16813
  } // break omitted
16839
16814
  case 'DOMException':
16840
16815
  if (ERROR_STACK_INSTALLABLE) {
16841
- createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map, transferredBuffers));
16816
+ createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map));
16842
16817
  }
16843
16818
  }
16844
16819
 
16845
16820
  return cloned;
16846
16821
  };
16847
16822
 
16848
- var replacePlaceholders = function (value, map) {
16849
- if (!isObject(value)) return value;
16850
- if (mapHas(map, value)) return mapGet(map, value);
16851
-
16852
- var type, object, metadata, i, length, keys, key, replacement;
16853
-
16854
- if (value instanceof Placeholder) {
16855
- type = value.type;
16856
- object = value.object;
16857
-
16858
- switch (type) {
16859
- case 'ArrayBuffer':
16860
- case 'SharedArrayBuffer':
16861
- replacement = cloneBuffer(object, map, type);
16862
- break;
16863
- case 'DataView':
16864
- case 'Int8Array':
16865
- case 'Uint8Array':
16866
- case 'Uint8ClampedArray':
16867
- case 'Int16Array':
16868
- case 'Uint16Array':
16869
- case 'Int32Array':
16870
- case 'Uint32Array':
16871
- case 'Float16Array':
16872
- case 'Float32Array':
16873
- case 'Float64Array':
16874
- case 'BigInt64Array':
16875
- case 'BigUint64Array':
16876
- metadata = value.metadata;
16877
- replacement = cloneView(object, type, metadata.offset, metadata.length, map);
16878
- }
16879
- } else switch (classof(value)) {
16880
- case 'Array':
16881
- case 'Object':
16882
- keys = objectKeys(value);
16883
- for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
16884
- key = keys[i];
16885
- value[key] = replacePlaceholders(value[key], map);
16886
- } break;
16887
- case 'Map':
16888
- replacement = new Map();
16889
- value.forEach(function (v, k) {
16890
- mapSet(replacement, replacePlaceholders(k, map), replacePlaceholders(v, map));
16891
- });
16892
- break;
16893
- case 'Set':
16894
- replacement = new Set();
16895
- value.forEach(function (v) {
16896
- setAdd(replacement, replacePlaceholders(v, map));
16897
- });
16898
- break;
16899
- case 'Error':
16900
- value.message = replacePlaceholders(value.message, map);
16901
- if (hasOwn(value, 'cause')) {
16902
- value.cause = replacePlaceholders(value.cause, map);
16903
- }
16904
- if (value.name === 'AggregateError') {
16905
- value.errors = replacePlaceholders(value.errors, map);
16906
- } // break omitted
16907
- case 'DOMException':
16908
- if (ERROR_STACK_INSTALLABLE) {
16909
- value.stack = replacePlaceholders(value.stack, map);
16910
- }
16911
- }
16912
-
16913
- mapSet(map, value, replacement || value);
16914
-
16915
- return replacement || value;
16916
- };
16917
-
16918
16823
  var tryToTransfer = function (rawTransfer, map) {
16919
16824
  if (!isObject(rawTransfer)) throw new TypeError('Transfer option cannot be converted to a sequence');
16920
16825
 
@@ -16926,7 +16831,7 @@ var tryToTransfer = function (rawTransfer, map) {
16926
16831
 
16927
16832
  var i = 0;
16928
16833
  var length = lengthOfArrayLike(transfer);
16929
- var buffers = [];
16834
+ var buffers = new Set();
16930
16835
  var value, type, C, transferred, canvas, context;
16931
16836
 
16932
16837
  while (i < length) {
@@ -16934,13 +16839,15 @@ var tryToTransfer = function (rawTransfer, map) {
16934
16839
 
16935
16840
  type = classof(value);
16936
16841
 
16842
+ if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) {
16843
+ throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
16844
+ }
16845
+
16937
16846
  if (type === 'ArrayBuffer') {
16938
- push(buffers, value);
16847
+ setAdd(buffers, value);
16939
16848
  continue;
16940
16849
  }
16941
16850
 
16942
- if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
16943
-
16944
16851
  if (PROPER_STRUCTURED_CLONE_TRANSFER) {
16945
16852
  transferred = nativeStructuredClone(value, { transfer: [value] });
16946
16853
  } else switch (type) {
@@ -16979,25 +16886,18 @@ var tryToTransfer = function (rawTransfer, map) {
16979
16886
  return buffers;
16980
16887
  };
16981
16888
 
16982
- var tryToTransferBuffers = function (transfer, map) {
16983
- var i = 0;
16984
- var length = lengthOfArrayLike(transfer);
16985
- var value, transferred;
16986
-
16987
- while (i < length) {
16988
- value = transfer[i++];
16989
-
16990
- if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
16991
-
16992
- if (arrayBufferTransfer) {
16993
- transferred = arrayBufferTransfer(value, undefined, true);
16889
+ var detachBuffers = function (buffers) {
16890
+ setIterate(buffers, function (buffer) {
16891
+ if (PROPER_STRUCTURED_CLONE_TRANSFER) {
16892
+ nativeRestrictedStructuredClone(buffer, { transfer: [buffer] });
16893
+ } else if (isCallable(buffer.transfer)) {
16894
+ buffer.transfer();
16895
+ } else if (detachTransferable) {
16896
+ detachTransferable(buffer);
16994
16897
  } else {
16995
- if (!isCallable(value.transfer)) throwUnpolyfillable('ArrayBuffer', TRANSFERRING);
16996
- transferred = value.transfer();
16898
+ throwUnpolyfillable('ArrayBuffer', TRANSFERRING);
16997
16899
  }
16998
-
16999
- mapSet(map, value, transferred);
17000
- }
16900
+ });
17001
16901
  };
17002
16902
 
17003
16903
  // `structuredClone` method
@@ -17006,24 +16906,18 @@ $({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, for
17006
16906
  structuredClone: function structuredClone(value /* , { transfer } */) {
17007
16907
  var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;
17008
16908
  var transfer = options ? options.transfer : undefined;
17009
- var transferredBuffers = false;
17010
16909
  var map, buffers;
17011
16910
 
17012
16911
  if (transfer !== undefined) {
17013
16912
  map = new Map();
17014
16913
  buffers = tryToTransfer(transfer, map);
17015
- transferredBuffers = !!lengthOfArrayLike(buffers);
17016
16914
  }
17017
16915
 
17018
- var clone = structuredCloneInternal(value, map, transferredBuffers);
16916
+ var clone = structuredCloneInternal(value, map);
17019
16917
 
17020
- // since of an issue with cloning views of transferred buffers, we a forced to transfer / clone them in 2 steps
16918
+ // since of an issue with cloning views of transferred buffers, we a forced to detach them later
17021
16919
  // https://github.com/zloirock/core-js/issues/1265
17022
- if (transferredBuffers) {
17023
- map = new Map();
17024
- tryToTransferBuffers(transfer, map);
17025
- clone = replacePlaceholders(clone, map);
17026
- }
16920
+ if (buffers) detachBuffers(buffers);
17027
16921
 
17028
16922
  return clone;
17029
16923
  }
@@ -17079,50 +16973,18 @@ module.exports = {
17079
16973
 
17080
16974
  "use strict";
17081
16975
 
17082
- var global = __webpack_require__(4);
17083
16976
  var uncurryThis = __webpack_require__(14);
17084
- var uncurryThisAccessor = __webpack_require__(117);
17085
- var toIndex = __webpack_require__(212);
17086
- var isDetached = __webpack_require__(513);
17087
- var arrayBufferByteLength = __webpack_require__(514);
17088
- var detachTransferable = __webpack_require__(515);
17089
- var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(516);
16977
+ var iterateSimple = __webpack_require__(513);
16978
+ var SetHelpers = __webpack_require__(511);
17090
16979
 
17091
- var structuredClone = global.structuredClone;
17092
- var ArrayBuffer = global.ArrayBuffer;
17093
- var DataView = global.DataView;
17094
- var TypeError = global.TypeError;
17095
- var min = Math.min;
17096
- var ArrayBufferPrototype = ArrayBuffer.prototype;
17097
- var DataViewPrototype = DataView.prototype;
17098
- var slice = uncurryThis(ArrayBufferPrototype.slice);
17099
- var isResizable = uncurryThisAccessor(ArrayBufferPrototype, 'resizable', 'get');
17100
- var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, 'maxByteLength', 'get');
17101
- var getInt8 = uncurryThis(DataViewPrototype.getInt8);
17102
- var setInt8 = uncurryThis(DataViewPrototype.setInt8);
17103
-
17104
- module.exports = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferable) && function (arrayBuffer, newLength, preserveResizability) {
17105
- var byteLength = arrayBufferByteLength(arrayBuffer);
17106
- var newByteLength = newLength === undefined ? byteLength : toIndex(newLength);
17107
- var fixedLength = !isResizable || !isResizable(arrayBuffer);
17108
- var newBuffer;
17109
- if (isDetached(arrayBuffer)) throw new TypeError('ArrayBuffer is detached');
17110
- if (PROPER_STRUCTURED_CLONE_TRANSFER) {
17111
- arrayBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
17112
- if (byteLength === newByteLength && (preserveResizability || fixedLength)) return arrayBuffer;
17113
- }
17114
- if (byteLength >= newByteLength && (!preserveResizability || fixedLength)) {
17115
- newBuffer = slice(arrayBuffer, 0, newByteLength);
17116
- } else {
17117
- var options = preserveResizability && !fixedLength && maxByteLength ? { maxByteLength: maxByteLength(arrayBuffer) } : undefined;
17118
- newBuffer = new ArrayBuffer(newByteLength, options);
17119
- var a = new DataView(arrayBuffer);
17120
- var b = new DataView(newBuffer);
17121
- var copyLength = min(newByteLength, byteLength);
17122
- for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i));
17123
- }
17124
- if (!PROPER_STRUCTURED_CLONE_TRANSFER) detachTransferable(arrayBuffer);
17125
- return newBuffer;
16980
+ var Set = SetHelpers.Set;
16981
+ var SetPrototype = SetHelpers.proto;
16982
+ var forEach = uncurryThis(SetPrototype.forEach);
16983
+ var keys = uncurryThis(SetPrototype.keys);
16984
+ var next = keys(new Set()).next;
16985
+
16986
+ module.exports = function (set, fn, interruptible) {
16987
+ return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
17126
16988
  };
17127
16989
 
17128
16990
 
@@ -17132,18 +16994,15 @@ module.exports = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferable) && fun
17132
16994
 
17133
16995
  "use strict";
17134
16996
 
17135
- var uncurryThis = __webpack_require__(14);
17136
- var arrayBufferByteLength = __webpack_require__(514);
17137
-
17138
- var slice = uncurryThis(ArrayBuffer.prototype.slice);
16997
+ var call = __webpack_require__(8);
17139
16998
 
17140
- module.exports = function (O) {
17141
- if (arrayBufferByteLength(O) !== 0) return false;
17142
- try {
17143
- slice(O, 0, 0);
17144
- return false;
17145
- } catch (error) {
17146
- return true;
16999
+ module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
17000
+ var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
17001
+ var next = record.next;
17002
+ var step, result;
17003
+ while (!(step = call(next, iterator)).done) {
17004
+ result = fn(step.value);
17005
+ if (result !== undefined) return result;
17147
17006
  }
17148
17007
  };
17149
17008
 
@@ -17154,29 +17013,9 @@ module.exports = function (O) {
17154
17013
 
17155
17014
  "use strict";
17156
17015
 
17157
- var uncurryThisAccessor = __webpack_require__(117);
17158
- var classof = __webpack_require__(15);
17159
-
17160
- var $TypeError = TypeError;
17161
-
17162
- // Includes
17163
- // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
17164
- // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
17165
- module.exports = uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
17166
- if (classof(O) !== 'ArrayBuffer') throw new $TypeError('ArrayBuffer expected');
17167
- return O.byteLength;
17168
- };
17169
-
17170
-
17171
- /***/ }),
17172
- /* 515 */
17173
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
17174
-
17175
- "use strict";
17176
-
17177
17016
  var global = __webpack_require__(4);
17178
17017
  var tryNodeRequire = __webpack_require__(498);
17179
- var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(516);
17018
+ var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(515);
17180
17019
 
17181
17020
  var structuredClone = global.structuredClone;
17182
17021
  var $ArrayBuffer = global.ArrayBuffer;
@@ -17213,7 +17052,7 @@ module.exports = detach;
17213
17052
 
17214
17053
 
17215
17054
  /***/ }),
17216
- /* 516 */
17055
+ /* 515 */
17217
17056
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
17218
17057
 
17219
17058
  "use strict";
@@ -17238,18 +17077,18 @@ module.exports = !!structuredClone && !fails(function () {
17238
17077
 
17239
17078
 
17240
17079
  /***/ }),
17241
- /* 517 */
17080
+ /* 516 */
17242
17081
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
17243
17082
 
17244
17083
  "use strict";
17245
17084
 
17246
17085
  // TODO: Remove this module from `core-js@4` since it's split to modules listed below
17086
+ __webpack_require__(517);
17247
17087
  __webpack_require__(518);
17248
- __webpack_require__(519);
17249
17088
 
17250
17089
 
17251
17090
  /***/ }),
17252
- /* 518 */
17091
+ /* 517 */
17253
17092
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
17254
17093
 
17255
17094
  "use strict";
@@ -17268,7 +17107,7 @@ $({ global: true, bind: true, forced: global.setInterval !== setInterval }, {
17268
17107
 
17269
17108
 
17270
17109
  /***/ }),
17271
- /* 519 */
17110
+ /* 518 */
17272
17111
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
17273
17112
 
17274
17113
  "use strict";
@@ -17287,17 +17126,17 @@ $({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, {
17287
17126
 
17288
17127
 
17289
17128
  /***/ }),
17290
- /* 520 */
17129
+ /* 519 */
17291
17130
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
17292
17131
 
17293
17132
  "use strict";
17294
17133
 
17295
17134
  // TODO: Remove this module from `core-js@4` since it's replaced to module below
17296
- __webpack_require__(521);
17135
+ __webpack_require__(520);
17297
17136
 
17298
17137
 
17299
17138
  /***/ }),
17300
- /* 521 */
17139
+ /* 520 */
17301
17140
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
17302
17141
 
17303
17142
  "use strict";
@@ -17306,7 +17145,7 @@ __webpack_require__(521);
17306
17145
  __webpack_require__(392);
17307
17146
  var $ = __webpack_require__(3);
17308
17147
  var DESCRIPTORS = __webpack_require__(6);
17309
- var USE_NATIVE_URL = __webpack_require__(522);
17148
+ var USE_NATIVE_URL = __webpack_require__(521);
17310
17149
  var global = __webpack_require__(4);
17311
17150
  var bind = __webpack_require__(86);
17312
17151
  var uncurryThis = __webpack_require__(14);
@@ -17318,11 +17157,11 @@ var assign = __webpack_require__(293);
17318
17157
  var arrayFrom = __webpack_require__(163);
17319
17158
  var arraySlice = __webpack_require__(77);
17320
17159
  var codeAt = (__webpack_require__(385).codeAt);
17321
- var toASCII = __webpack_require__(523);
17160
+ var toASCII = __webpack_require__(522);
17322
17161
  var $toString = __webpack_require__(69);
17323
17162
  var setToStringTag = __webpack_require__(84);
17324
17163
  var validateArgumentsLength = __webpack_require__(329);
17325
- var URLSearchParamsModule = __webpack_require__(524);
17164
+ var URLSearchParamsModule = __webpack_require__(523);
17326
17165
  var InternalStateModule = __webpack_require__(52);
17327
17166
 
17328
17167
  var setInternalState = InternalStateModule.set;
@@ -18352,7 +18191,7 @@ $({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS
18352
18191
 
18353
18192
 
18354
18193
  /***/ }),
18355
- /* 522 */
18194
+ /* 521 */
18356
18195
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18357
18196
 
18358
18197
  "use strict";
@@ -18401,7 +18240,7 @@ module.exports = !fails(function () {
18401
18240
 
18402
18241
 
18403
18242
  /***/ }),
18404
- /* 523 */
18243
+ /* 522 */
18405
18244
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18406
18245
 
18407
18246
  "use strict";
@@ -18589,7 +18428,7 @@ module.exports = function (input) {
18589
18428
 
18590
18429
 
18591
18430
  /***/ }),
18592
- /* 524 */
18431
+ /* 523 */
18593
18432
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
18594
18433
 
18595
18434
  "use strict";
@@ -18601,7 +18440,7 @@ var global = __webpack_require__(4);
18601
18440
  var call = __webpack_require__(8);
18602
18441
  var uncurryThis = __webpack_require__(14);
18603
18442
  var DESCRIPTORS = __webpack_require__(6);
18604
- var USE_NATIVE_URL = __webpack_require__(522);
18443
+ var USE_NATIVE_URL = __webpack_require__(521);
18605
18444
  var defineBuiltIn = __webpack_require__(48);
18606
18445
  var defineBuiltInAccessor = __webpack_require__(79);
18607
18446
  var defineBuiltIns = __webpack_require__(210);
@@ -19020,7 +18859,7 @@ module.exports = {
19020
18859
 
19021
18860
 
19022
18861
  /***/ }),
19023
- /* 525 */
18862
+ /* 524 */
19024
18863
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19025
18864
 
19026
18865
  "use strict";
@@ -19030,7 +18869,7 @@ var getBuiltIn = __webpack_require__(24);
19030
18869
  var fails = __webpack_require__(7);
19031
18870
  var validateArgumentsLength = __webpack_require__(329);
19032
18871
  var toString = __webpack_require__(69);
19033
- var USE_NATIVE_URL = __webpack_require__(522);
18872
+ var USE_NATIVE_URL = __webpack_require__(521);
19034
18873
 
19035
18874
  var URL = getBuiltIn('URL');
19036
18875
 
@@ -19057,7 +18896,7 @@ $({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {
19057
18896
 
19058
18897
 
19059
18898
  /***/ }),
19060
- /* 526 */
18899
+ /* 525 */
19061
18900
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19062
18901
 
19063
18902
  "use strict";
@@ -19075,17 +18914,17 @@ $({ target: 'URL', proto: true, enumerable: true }, {
19075
18914
 
19076
18915
 
19077
18916
  /***/ }),
19078
- /* 527 */
18917
+ /* 526 */
19079
18918
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19080
18919
 
19081
18920
  "use strict";
19082
18921
 
19083
18922
  // TODO: Remove this module from `core-js@4` since it's replaced to module below
19084
- __webpack_require__(524);
18923
+ __webpack_require__(523);
19085
18924
 
19086
18925
 
19087
18926
  /***/ }),
19088
- /* 528 */
18927
+ /* 527 */
19089
18928
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19090
18929
 
19091
18930
  "use strict";
@@ -19141,7 +18980,7 @@ if (params + '' !== 'a=2') {
19141
18980
 
19142
18981
 
19143
18982
  /***/ }),
19144
- /* 529 */
18983
+ /* 528 */
19145
18984
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19146
18985
 
19147
18986
  "use strict";
@@ -19176,7 +19015,7 @@ if (params.has('a', 2) || !params.has('a', undefined)) {
19176
19015
 
19177
19016
 
19178
19017
  /***/ }),
19179
- /* 530 */
19018
+ /* 529 */
19180
19019
  /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
19181
19020
 
19182
19021
  "use strict";
@@ -19204,7 +19043,7 @@ if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
19204
19043
 
19205
19044
 
19206
19045
  /***/ }),
19207
- /* 531 */
19046
+ /* 530 */
19208
19047
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
19209
19048
 
19210
19049
  "use strict";
@@ -20908,7 +20747,7 @@ function dispatchFunction(type, params) {
20908
20747
  return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type, params));
20909
20748
  }
20910
20749
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
20911
- var regenerator = __webpack_require__(532);
20750
+ var regenerator = __webpack_require__(531);
20912
20751
  ;// CONCATENATED MODULE: ./node_modules/d3-selection/src/selection/iterator.js
20913
20752
 
20914
20753
  var _marked = /*#__PURE__*/regenerator.mark(_callee);
@@ -28789,6 +28628,7 @@ function getDataKeyForJson(keysParam, config) {
28789
28628
  return current;
28790
28629
  },
28791
28630
  getRangedData: function getRangedData(d, key, type) {
28631
+ var _this39 = this;
28792
28632
  if (key === void 0) {
28793
28633
  key = "";
28794
28634
  }
@@ -28797,13 +28637,20 @@ function getDataKeyForJson(keysParam, config) {
28797
28637
  }
28798
28638
  const value = d == null ? void 0 : d.value;
28799
28639
  if (isArray(value)) {
28800
- // @ts-ignore
28801
- const index = {
28802
- areaRange: ["high", "mid", "low"],
28803
- candlestick: ["open", "high", "low", "close", "volume"]
28804
- }[type].indexOf(key);
28805
- return index >= 0 && value ? value[index] : undefined;
28806
- } else if (value) {
28640
+ if (type === "bar") {
28641
+ return value.reduce(function (a, c) {
28642
+ _newArrowCheck(this, _this39);
28643
+ return c - a;
28644
+ }.bind(this));
28645
+ } else {
28646
+ // @ts-ignore
28647
+ const index = {
28648
+ areaRange: ["high", "mid", "low"],
28649
+ candlestick: ["open", "high", "low", "close", "volume"]
28650
+ }[type].indexOf(key);
28651
+ return index >= 0 && value ? value[index] : undefined;
28652
+ }
28653
+ } else if (value && key) {
28807
28654
  return value[key];
28808
28655
  }
28809
28656
  return value;
@@ -28814,20 +28661,20 @@ function getDataKeyForJson(keysParam, config) {
28814
28661
  * @private
28815
28662
  */
28816
28663
  setRatioForGroupedData: function setRatioForGroupedData(data) {
28817
- var _this39 = this;
28664
+ var _this40 = this;
28818
28665
  const $$ = this,
28819
28666
  config = $$.config;
28820
28667
  // calculate ratio if grouped data exists
28821
28668
  if (config.data_groups.length && data.some(function (d) {
28822
- _newArrowCheck(this, _this39);
28669
+ _newArrowCheck(this, _this40);
28823
28670
  return $$.isGrouped(d.id);
28824
28671
  }.bind(this))) {
28825
28672
  const setter = function (d) {
28826
- _newArrowCheck(this, _this39);
28673
+ _newArrowCheck(this, _this40);
28827
28674
  return $$.getRatio("index", d, !0);
28828
28675
  }.bind(this);
28829
28676
  data.forEach(function (v) {
28830
- _newArrowCheck(this, _this39);
28677
+ _newArrowCheck(this, _this40);
28831
28678
  "values" in v ? v.values.forEach(setter) : setter(v);
28832
28679
  }.bind(this));
28833
28680
  }
@@ -28841,7 +28688,7 @@ function getDataKeyForJson(keysParam, config) {
28841
28688
  * @private
28842
28689
  */
28843
28690
  getRatio: function getRatio(type, d, asPercent) {
28844
- var _this40 = this;
28691
+ var _this41 = this;
28845
28692
  if (asPercent === void 0) {
28846
28693
  asPercent = !1;
28847
28694
  }
@@ -28870,15 +28717,15 @@ function getDataKeyForJson(keysParam, config) {
28870
28717
  let hiddenSum = dataValues(state.hiddenTargetIds, !1);
28871
28718
  if (hiddenSum.length) {
28872
28719
  hiddenSum = hiddenSum.reduce(function (acc, curr) {
28873
- var _this41 = this;
28874
- _newArrowCheck(this, _this40);
28720
+ var _this42 = this;
28721
+ _newArrowCheck(this, _this41);
28875
28722
  return acc.map(function (v, i) {
28876
- _newArrowCheck(this, _this41);
28723
+ _newArrowCheck(this, _this42);
28877
28724
  return (isNumber(v) ? v : 0) + curr[i];
28878
28725
  }.bind(this));
28879
28726
  }.bind(this));
28880
28727
  total = total.map(function (v, i) {
28881
- _newArrowCheck(this, _this40);
28728
+ _newArrowCheck(this, _this41);
28882
28729
  return v - hiddenSum[i];
28883
28730
  }.bind(this));
28884
28731
  }
@@ -28891,11 +28738,11 @@ function getDataKeyForJson(keysParam, config) {
28891
28738
  } else if (type === "bar") {
28892
28739
  const yScale = $$.getYScaleById.bind($$)(d.id),
28893
28740
  max = yScale.domain().reduce(function (a, c) {
28894
- _newArrowCheck(this, _this40);
28741
+ _newArrowCheck(this, _this41);
28895
28742
  return c - a;
28896
28743
  }.bind(this));
28897
28744
  // when all data are 0, return 0
28898
- ratio = max === 0 ? 0 : Math.abs(d.value) / max;
28745
+ ratio = max === 0 ? 0 : Math.abs($$.getRangedData(d, null, type) / max);
28899
28746
  } else if (type === "treemap") {
28900
28747
  ratio /= $$.getTotalDataSum(!0);
28901
28748
  }
@@ -28908,18 +28755,18 @@ function getDataKeyForJson(keysParam, config) {
28908
28755
  * @private
28909
28756
  */
28910
28757
  updateDataIndexByX: function updateDataIndexByX(tickValues) {
28911
- var _this42 = this;
28758
+ var _this43 = this;
28912
28759
  const $$ = this,
28913
28760
  tickValueMap = tickValues.reduce(function (out, tick, index) {
28914
- _newArrowCheck(this, _this42);
28761
+ _newArrowCheck(this, _this43);
28915
28762
  out[+tick.x] = index;
28916
28763
  return out;
28917
28764
  }.bind(this), {});
28918
28765
  $$.data.targets.forEach(function (t) {
28919
- var _this43 = this;
28920
- _newArrowCheck(this, _this42);
28766
+ var _this44 = this;
28767
+ _newArrowCheck(this, _this43);
28921
28768
  t.values.forEach(function (value, valueIndex) {
28922
- _newArrowCheck(this, _this43);
28769
+ _newArrowCheck(this, _this44);
28923
28770
  let index = tickValueMap[+value.x];
28924
28771
  if (index === undefined) {
28925
28772
  index = valueIndex;
@@ -28945,11 +28792,11 @@ function getDataKeyForJson(keysParam, config) {
28945
28792
  * @private
28946
28793
  */
28947
28794
  isBarRangeType: function isBarRangeType(d) {
28948
- var _this44 = this;
28795
+ var _this45 = this;
28949
28796
  const $$ = this,
28950
28797
  value = d.value;
28951
28798
  return $$.isBarType(d) && isArray(value) && value.length >= 2 && value.every(function (v) {
28952
- _newArrowCheck(this, _this44);
28799
+ _newArrowCheck(this, _this45);
28953
28800
  return isNumber(v);
28954
28801
  }.bind(this));
28955
28802
  },
@@ -30781,7 +30628,7 @@ function getFormat($$, typeValue, v) {
30781
30628
  };
30782
30629
  },
30783
30630
  defaultValueFormat: function defaultValueFormat(v) {
30784
- return isValue(v) ? +v : "";
30631
+ return isArray(v) ? v.join("~") : isValue(v) ? +v : "";
30785
30632
  },
30786
30633
  defaultArcValueFormat: function defaultArcValueFormat(v, ratio) {
30787
30634
  return (ratio * 100).toFixed(1) + "%";
@@ -30795,7 +30642,14 @@ function getFormat($$, typeValue, v) {
30795
30642
  dataLabels = $$.config.data_labels,
30796
30643
  defaultFormat = function (v) {
30797
30644
  _newArrowCheck(this, _this);
30798
- return isValue(v) ? +v : "";
30645
+ const delimiter = "~";
30646
+ let res = v;
30647
+ if (isArray(v)) {
30648
+ res = v.join(delimiter);
30649
+ } else if (isObject(v)) {
30650
+ res = Object.values(v).join(delimiter);
30651
+ }
30652
+ return res;
30799
30653
  }.bind(this);
30800
30654
  let format = defaultFormat;
30801
30655
 
@@ -34486,6 +34340,8 @@ function getGroupedDataPointsFn(d) {
34486
34340
  let value = d.value;
34487
34341
  if (isNumber(d)) {
34488
34342
  value = d;
34343
+ } else if ($$.isAreaRangeType(d)) {
34344
+ value = $$.getBaseValue(d, "mid");
34489
34345
  } else if (isStackNormalized) {
34490
34346
  value = $$.getRatio("index", d, !0);
34491
34347
  } else if ($$.isBubbleZType(d)) {
@@ -34896,14 +34752,18 @@ function getGroupedDataPointsFn(d) {
34896
34752
  * Get padding by the direction.
34897
34753
  * @param {string} type "top" | "bottom" | "left" | "right"
34898
34754
  * @param {boolean} [withoutRecompute=false] If set true, do not recompute the padding value.
34755
+ * @param {boolean} [withXAxisTickTextOverflow=false] If set true, calculate x axis tick text overflow.
34899
34756
  * @returns {number} padding value
34900
34757
  * @private
34901
34758
  */
34902
- getCurrentPaddingByDirection: function getCurrentPaddingByDirection(type, withoutRecompute) {
34759
+ getCurrentPaddingByDirection: function getCurrentPaddingByDirection(type, withoutRecompute, withXAxisTickTextOverflow) {
34903
34760
  var _config$padding;
34904
34761
  if (withoutRecompute === void 0) {
34905
34762
  withoutRecompute = !1;
34906
34763
  }
34764
+ if (withXAxisTickTextOverflow === void 0) {
34765
+ withXAxisTickTextOverflow = !1;
34766
+ }
34907
34767
  const $$ = this,
34908
34768
  config = $$.config,
34909
34769
  $el = $$.$el,
@@ -34922,6 +34782,7 @@ function getGroupedDataPointsFn(d) {
34922
34782
  isAxisShow = axisId && config["axis_" + axisId + "_show"],
34923
34783
  axesLen = axisId ? config["axis_" + axisId + "_axes"].length : 0;
34924
34784
  let axisSize = axisId ? isLeftRight ? $$.getAxisWidthByAxisId(axisId, withoutRecompute) : $$.getHorizontalAxisHeight(axisId) : 0;
34785
+ const defaultPadding = 20;
34925
34786
  let gap = 0;
34926
34787
  if (!isFitPadding && isLeftRight) {
34927
34788
  axisSize = ceil10(axisSize);
@@ -34929,10 +34790,11 @@ function getGroupedDataPointsFn(d) {
34929
34790
  let padding = hasAxis && isLeftRight && (isAxisInner || isUndefined(paddingOption) && !isAxisShow) ? 0 : isFitPadding ? (isAxisShow ? axisSize : 0) + (paddingOption != null ? paddingOption : 0) : isUndefined(paddingOption) ? axisSize : paddingOption;
34930
34791
  if (isLeftRight && hasAxis) {
34931
34792
  if (axisId && (isFitPadding || isAxisInner) && config["axis_" + axisId + "_label"].text) {
34932
- padding += $$.axis.getAxisLabelPosition(axisId).isOuter ? 20 : 0;
34793
+ padding += $$.axis.getAxisLabelPosition(axisId).isOuter ? defaultPadding : 0;
34933
34794
  }
34934
34795
  if (type === "right") {
34935
34796
  padding += isRotated ? !isFitPadding && isUndefined(paddingOption) ? 10 : 2 : !isAxisShow || isAxisInner ? isFitPadding ? 2 : 1 : 0;
34797
+ padding += withXAxisTickTextOverflow ? $$.axis.getXAxisTickTextY2Overflow(defaultPadding) : 0;
34936
34798
  } else if (type === "left" && isRotated && isUndefined(paddingOption)) {
34937
34799
  padding = !config.axis_x_show ? 1 : isFitPadding ? axisSize : Math.max(axisSize, 40);
34938
34800
  }
@@ -34948,12 +34810,15 @@ function getGroupedDataPointsFn(d) {
34948
34810
  }
34949
34811
  return padding + axisSize * axesLen - gap;
34950
34812
  },
34951
- getCurrentPadding: function getCurrentPadding() {
34813
+ getCurrentPadding: function getCurrentPadding(withXAxisTickTextOverflow) {
34952
34814
  var _this = this;
34815
+ if (withXAxisTickTextOverflow === void 0) {
34816
+ withXAxisTickTextOverflow = !1;
34817
+ }
34953
34818
  const $$ = this,
34954
34819
  _map = ["top", "bottom", "left", "right"].map(function (v) {
34955
34820
  _newArrowCheck(this, _this);
34956
- return $$.getCurrentPaddingByDirection(v);
34821
+ return $$.getCurrentPaddingByDirection(v, null, withXAxisTickTextOverflow);
34957
34822
  }.bind(this)),
34958
34823
  top = _map[0],
34959
34824
  bottom = _map[1],
@@ -35013,14 +34878,14 @@ function getGroupedDataPointsFn(d) {
35013
34878
  $$.updateXAxisTickClip();
35014
34879
  }
35015
34880
  const legendSize = {
35016
- right: config.legend_show && state.isLegendRight ? $$.getLegendWidth() + 20 : 0,
34881
+ right: config.legend_show && state.isLegendRight ? $$.getLegendWidth() + (isFitPadding ? 0 : 20) : 0,
35017
34882
  bottom: !config.legend_show || state.isLegendRight || state.isLegendInset ? 0 : currLegend.height
35018
34883
  },
35019
34884
  xAxisHeight = isRotated || isNonAxis ? 0 : $$.getHorizontalAxisHeight("x"),
35020
34885
  subchartXAxisHeight = config.subchart_axis_x_show && config.subchart_axis_x_tick_text_show ? xAxisHeight : 30,
35021
34886
  subchartHeight = config.subchart_show && !isNonAxis ? config.subchart_size_height + subchartXAxisHeight : 0,
35022
34887
  gaugeHeight = $$.hasType("gauge") && config.arc_needle_show && !config.gauge_fullCircle && !config.gauge_label_show ? 10 : 0,
35023
- padding = $$.getCurrentPadding(); // when needle is shown with legend, it need some bottom space to not overlap with legend text
34888
+ padding = $$.getCurrentPadding(!0); // when needle is shown with legend, it need some bottom space to not overlap with legend text
35024
34889
  // for main
35025
34890
  state.margin = !isNonAxis && isRotated ? {
35026
34891
  top: padding.top,
@@ -35352,7 +35217,7 @@ function getTextPos(d, type) {
35352
35217
  * @returns {string|null}
35353
35218
  * @private
35354
35219
  */
35355
- updateTextBacgroundColor: function updateTextBacgroundColor(d) {
35220
+ updateTextBackgroundColor: function updateTextBackgroundColor(d) {
35356
35221
  const $$ = this,
35357
35222
  $el = $$.$el,
35358
35223
  config = $$.config,
@@ -35387,7 +35252,7 @@ function getTextPos(d, type) {
35387
35252
  angle = config.data_labels.rotate,
35388
35253
  anchorString = getRotateAnchor(angle),
35389
35254
  rotateString = angle ? "rotate(" + angle + ")" : "";
35390
- $$.$el.text.style("fill", $$.getStylePropValue($$.updateTextColor)).attr("filter", $$.updateTextBacgroundColor.bind($$)).style("fill-opacity", forFlow ? 0 : $$.opacityForText.bind($$)).each(function (d, i) {
35255
+ $$.$el.text.style("fill", $$.getStylePropValue($$.updateTextColor)).attr("filter", $$.updateTextBackgroundColor.bind($$)).style("fill-opacity", forFlow ? 0 : $$.opacityForText.bind($$)).each(function (d, i) {
35391
35256
  // do not apply transition for newly added text elements
35392
35257
  const node = $T(hasTreemap && this.childElementCount ? this.parentNode : this, !!(withTransition && this.getAttribute("x")), t),
35393
35258
  isInverted = config["axis_" + (axis == null ? void 0 : axis.getId(d.id)) + "_inverted"];
@@ -35483,7 +35348,7 @@ function getTextPos(d, type) {
35483
35348
  if (config.data_labels.centered && (isBarType || isTreemapType)) {
35484
35349
  const rect = getBoundingRect(textElement);
35485
35350
  if (isBarType) {
35486
- const isPositive = d.value >= 0;
35351
+ const isPositive = $$.getRangedData(d, null, "bar") >= 0;
35487
35352
  if (isRotated) {
35488
35353
  const w = (isPositive ? points[1][1] - points[0][1] : points[0][1] - points[1][1]) / 2 + rect.width / 2;
35489
35354
  return isPositive ? -w - 3 : w + 2;
@@ -35942,12 +35807,10 @@ function getTextXPos(pos, width) {
35942
35807
  value = "<b>Open:</b> " + open + " <b>High:</b> " + high + " <b>Low:</b> " + low + " <b>Close:</b> " + close + (volume ? " <b>Volume:</b> " + volume : "");
35943
35808
  } else if ($$.isBarRangeType(row)) {
35944
35809
  const _row = row,
35945
- _row$value = _row.value,
35946
- start = _row$value[0],
35947
- end = _row$value[1],
35810
+ rangeValue = _row.value,
35948
35811
  id = _row.id,
35949
35812
  index = _row.index;
35950
- value = valueFormat(start, undefined, id, index) + " ~ " + valueFormat(end, undefined, id, index);
35813
+ value = "" + valueFormat(rangeValue, undefined, id, index);
35951
35814
  } else {
35952
35815
  value = valueFormat.apply(void 0, [getRowValue(row)].concat(param));
35953
35816
  }
@@ -36361,7 +36224,7 @@ function getTextXPos(pos, width) {
36361
36224
  y = isRotated ? state.height + padding : 0;
36362
36225
  } else if (target === "y2") {
36363
36226
  x = isRotated ? 0 : state.width + padding;
36364
- y = isRotated ? 1 - padding : 0;
36227
+ y = isRotated ? -padding - 1 : 0;
36365
36228
  } else if (target === "subX") {
36366
36229
  x = 0;
36367
36230
  y = isRotated ? 0 : state.height2;
@@ -41229,11 +41092,12 @@ let Axis_Axis = /*#__PURE__*/function () {
41229
41092
  svg = _$$$$el2.svg,
41230
41093
  chart = _$$$$el2.chart,
41231
41094
  currentTickMax = current.maxTickSize[id],
41095
+ configPrefix = "axis_" + id,
41232
41096
  max = {
41233
41097
  width: 0,
41234
41098
  height: 0
41235
41099
  };
41236
- if (withoutRecompute || !config["axis_" + id + "_show"] || currentTickMax.width > 0 && $$.filterTargetsToShow().length === 0) {
41100
+ if (withoutRecompute || !config[configPrefix + "_show"] || currentTickMax.width > 0 && $$.filterTargetsToShow().length === 0) {
41237
41101
  return currentTickMax;
41238
41102
  }
41239
41103
  if (svg) {
@@ -41261,8 +41125,9 @@ let Axis_Axis = /*#__PURE__*/function () {
41261
41125
  currentTickMax.ticks.splice(0);
41262
41126
  }
41263
41127
  const axis = this.getAxis(id, scale, !1, !1, !0),
41264
- tickCount = config["axis_" + id + "_tick_count"],
41265
- tickValues = config["axis_" + id + "_tick_values"];
41128
+ tickRotate = config[configPrefix + "_tick_rotate"],
41129
+ tickCount = config[configPrefix + "_tick_count"],
41130
+ tickValues = config[configPrefix + "_tick_values"];
41266
41131
  // Make to generate the final tick text to be rendered
41267
41132
  // https://github.com/naver/billboard.js/issues/920
41268
41133
  // Do not generate if 'tick values' option is given
@@ -41273,7 +41138,7 @@ let Axis_Axis = /*#__PURE__*/function () {
41273
41138
  isYAxis || this.updateXAxisTickValues(targetsToShow, axis);
41274
41139
  const dummy = chart.append("svg").style("visibility", "hidden").style("position", "fixed").style("top", "0").style("left", "0");
41275
41140
  axis.create(dummy);
41276
- dummy.selectAll("text").each(function (d, i) {
41141
+ dummy.selectAll("text").attr("transform", isNumber(tickRotate) ? "rotate(" + tickRotate + ")" : null).each(function (d, i) {
41277
41142
  const _this$getBoundingClie = this.getBoundingClientRect(),
41278
41143
  width = _this$getBoundingClie.width,
41279
41144
  height = _this$getBoundingClie.height;
@@ -41301,7 +41166,7 @@ let Axis_Axis = /*#__PURE__*/function () {
41301
41166
  config = $$.config,
41302
41167
  state = $$.state,
41303
41168
  xAxisTickRotate = $$.getAxisTickRotate("x");
41304
- if ((axis.isCategorized() || axis.isTimeSeries()) && config.axis_x_tick_fit && !config.axis_x_tick_culling && !config.axis_x_tick_multiline && xAxisTickRotate > 0 && xAxisTickRotate < 90) {
41169
+ if ((axis.isCategorized() || axis.isTimeSeries()) && config.axis_x_tick_fit && (!config.axis_x_tick_culling || isEmpty(config.axis_x_tick_culling)) && !config.axis_x_tick_multiline && xAxisTickRotate > 0 && xAxisTickRotate < 90) {
41305
41170
  const widthWithoutCurrentPaddingLeft = state.current.width - $$.getCurrentPaddingByDirection("left"),
41306
41171
  maxOverflow = this.getXAxisTickMaxOverflow(xAxisTickRotate, widthWithoutCurrentPaddingLeft - defaultPadding),
41307
41172
  xAxisTickTextY2Overflow = Math.max(0, maxOverflow) + defaultPadding;
@@ -42464,7 +42329,6 @@ const src_linear_linear = function (t) {
42464
42329
  * @private
42465
42330
  */
42466
42331
  setYAxisClipPath: function setYAxisClipPath(node) {
42467
- var _config$padding;
42468
42332
  const $$ = this,
42469
42333
  config = $$.config,
42470
42334
  _$$$state3 = $$.state,
@@ -42477,7 +42341,7 @@ const src_linear_linear = function (t) {
42477
42341
  x = isInner && !isRotated ? config.axis_y_label.text ? -20 : -1 : isRotated ? -(1 + left) : -(left - 1),
42478
42342
  y = -(isRotated ? 20 : margin.top),
42479
42343
  w = (isRotated ? width + 15 + left : margin.left + 20) + (isInner ? 20 : 0),
42480
- h = (isRotated ? margin.bottom + (((_config$padding = config.padding) == null ? void 0 : _config$padding.mode) === "fit" ? 10 : 0) : margin.top + height) + 10;
42344
+ h = (isRotated ? margin.bottom + 10 : margin.top + height) + 10;
42481
42345
  node.attr("x", x).attr("y", y).attr("width", w).attr("height", h);
42482
42346
  },
42483
42347
  updateXAxisTickClip: function updateXAxisTickClip() {
@@ -43112,7 +42976,6 @@ function smoothLines(el, type) {
43112
42976
  config = $$.config,
43113
42977
  state = $$.state,
43114
42978
  _state = state,
43115
- current = _state.current,
43116
42979
  rotatedPadding = _state.rotatedPadding,
43117
42980
  isLegendRight = _state.isLegendRight,
43118
42981
  isLegendInset = _state.isLegendInset,
@@ -43133,17 +42996,8 @@ function smoothLines(el, type) {
43133
42996
  if (id === "y2" && !config.axis_y2_show) {
43134
42997
  return isFitPadding ? 0 : rotatedPadding.top;
43135
42998
  }
43136
- const maxtickSize = $$.axis.getMaxTickSize(id),
43137
- rotate = $$.getAxisTickRotate(id);
43138
- // Calculate x/y axis height when tick rotated
43139
- if ((id === "x" && !isRotated || /y2?/.test(id) && isRotated) && rotate) {
43140
- h += maxtickSize.width * Math.cos(Math.PI * (90 - Math.abs(rotate)) / 180);
43141
- if (!config.axis_x_tick_multiline && current.height) {
43142
- if (h > current.height / 2) {
43143
- h = current.height / 2;
43144
- }
43145
- }
43146
- } else if (maxtickSize.height > 13 && config.legend_show) {
42999
+ const maxtickSize = $$.axis.getMaxTickSize(id);
43000
+ if (maxtickSize.height > 13) {
43147
43001
  h += maxtickSize.height - 13;
43148
43002
  }
43149
43003
  return h + ($$.axis.getLabelPositionById(id).isInner ? 0 : 10) + (id === "y2" && !isRotated ? -10 : 0);
@@ -43186,7 +43040,7 @@ function smoothLines(el, type) {
43186
43040
  }
43187
43041
  state.axis.x.tickCount = tickCount;
43188
43042
  }
43189
- if ($el.svg && config.axis_x_tick_fit && !config.axis_x_tick_multiline && !config.axis_x_tick_culling && config.axis_x_tick_autorotate && allowedXAxisTypes) {
43043
+ if ($el.svg && config.axis_x_tick_autorotate && config.axis_x_tick_fit && !config.axis_x_tick_multiline && !config.axis_x_tick_culling && allowedXAxisTypes) {
43190
43044
  rotate = $$.needToRotateXAxisTickTexts() ? config.axis_x_tick_rotate : 0;
43191
43045
  }
43192
43046
  }
@@ -46033,7 +45887,7 @@ function getAttrTweenFn(fn) {
46033
45887
  const $$ = this,
46034
45888
  hasGauge = $$.hasType("gauge");
46035
45889
  if ($$.shouldShowArcLabel()) {
46036
- selection.style("fill", $$.updateTextColor.bind($$)).attr("filter", $$.updateTextBacgroundColor.bind($$)).each(function (d) {
45890
+ selection.style("fill", $$.updateTextColor.bind($$)).attr("filter", $$.updateTextBackgroundColor.bind($$)).each(function (d) {
46037
45891
  var _filter;
46038
45892
  const node = src_select(this),
46039
45893
  updated = $$.updateAngle(d),
@@ -53629,7 +53483,7 @@ let _defaults = {};
53629
53483
 
53630
53484
  /**
53631
53485
  * @namespace bb
53632
- * @version 3.10.2
53486
+ * @version 3.10.3
53633
53487
  */
53634
53488
  const bb = {
53635
53489
  /**
@@ -53639,7 +53493,7 @@ const bb = {
53639
53493
  * bb.version; // "1.0.0"
53640
53494
  * @memberof bb
53641
53495
  */
53642
- version: "3.10.2",
53496
+ version: "3.10.3",
53643
53497
  /**
53644
53498
  * Generate chart
53645
53499
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -53791,12 +53645,12 @@ Object.keys(resolver_interaction_namespaceObject).forEach(function (v) {
53791
53645
 
53792
53646
 
53793
53647
  /***/ }),
53794
- /* 532 */
53648
+ /* 531 */
53795
53649
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
53796
53650
 
53797
53651
  // TODO(Babel 8): Remove this file.
53798
53652
 
53799
- var runtime = __webpack_require__(533)();
53653
+ var runtime = __webpack_require__(532)();
53800
53654
  module.exports = runtime;
53801
53655
 
53802
53656
  // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
@@ -53812,10 +53666,10 @@ try {
53812
53666
 
53813
53667
 
53814
53668
  /***/ }),
53815
- /* 533 */
53669
+ /* 532 */
53816
53670
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
53817
53671
 
53818
- var _typeof = (__webpack_require__(534)["default"]);
53672
+ var _typeof = (__webpack_require__(533)["default"]);
53819
53673
  function _regeneratorRuntime() {
53820
53674
  "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
53821
53675
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
@@ -54121,7 +53975,7 @@ function _regeneratorRuntime() {
54121
53975
  module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
54122
53976
 
54123
53977
  /***/ }),
54124
- /* 534 */
53978
+ /* 533 */
54125
53979
  /***/ (function(module) {
54126
53980
 
54127
53981
  function _typeof(o) {
@@ -54197,7 +54051,7 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
54197
54051
  /******/ // Load entry module and return exports
54198
54052
  /******/ // This entry module used 'module' so it can't be inlined
54199
54053
  /******/ __webpack_require__(0);
54200
- /******/ var __webpack_exports__ = __webpack_require__(531);
54054
+ /******/ var __webpack_exports__ = __webpack_require__(530);
54201
54055
  /******/
54202
54056
  /******/ return __webpack_exports__;
54203
54057
  /******/ })()