billboard.js 3.3.2 → 3.3.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 (37) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +18 -7
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +22 -11
  6. package/dist/billboard.pkgd.min.js +2 -2
  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 +14 -4
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +14 -4
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +14 -4
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +14 -4
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +6 -6
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +18 -8
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +18 -8
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +18 -8
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +18 -8
  22. package/dist/theme/datalab.css +1 -1
  23. package/dist/theme/datalab.min.css +1 -1
  24. package/dist/theme/graph.css +1 -1
  25. package/dist/theme/graph.min.css +1 -1
  26. package/dist/theme/insight.css +1 -1
  27. package/dist/theme/insight.min.css +1 -1
  28. package/dist-esm/billboard.js +12 -8
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  34. package/package.json +11 -11
  35. package/src/ChartInternal/Axis/Axis.ts +3 -2
  36. package/src/ChartInternal/ChartInternal.ts +2 -2
  37. package/src/module/util.ts +4 -2
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1178,10 +1178,10 @@ var store = __webpack_require__(34);
1178
1178
  (module.exports = function (key, value) {
1179
1179
  return store[key] || (store[key] = value !== undefined ? value : {});
1180
1180
  })('versions', []).push({
1181
- version: '3.21.0',
1181
+ version: '3.21.1',
1182
1182
  mode: IS_PURE ? 'pure' : 'global',
1183
1183
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
1184
- license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',
1184
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
1185
1185
  source: 'https://github.com/zloirock/core-js'
1186
1186
  });
1187
1187
 
@@ -3460,8 +3460,8 @@ var fails = __webpack_require__(6);
3460
3460
  module.exports = function (METHOD_NAME, argument) {
3461
3461
  var method = [][METHOD_NAME];
3462
3462
  return !!method && fails(function () {
3463
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
3464
- method.call(null, argument || function () { throw 1; }, 1);
3463
+ // eslint-disable-next-line no-useless-call -- required for testing
3464
+ method.call(null, argument || function () { return 1; }, 1);
3465
3465
  });
3466
3466
  };
3467
3467
 
@@ -17172,7 +17172,7 @@ var Plugin = /*#__PURE__*/function () {
17172
17172
  return Plugin;
17173
17173
  }();
17174
17174
 
17175
- Plugin.version = "3.3.1";
17175
+ Plugin.version = "3.3.3";
17176
17176
 
17177
17177
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/Options.ts
17178
17178
  /**
@@ -21413,17 +21413,27 @@ function getBoundingRect(node) {
21413
21413
  /**
21414
21414
  * Retrun random number
21415
21415
  * @param {boolean} asStr Convert returned value as string
21416
+ * @param {number} min Minimum value
21417
+ * @param {number} max Maximum value
21416
21418
  * @returns {number|string}
21417
21419
  * @private
21418
21420
  */
21419
21421
 
21420
21422
 
21421
- function getRandom(asStr) {
21423
+ function getRandom(asStr, min, max) {
21422
21424
  if (asStr === void 0) {
21423
21425
  asStr = !0;
21424
21426
  }
21425
21427
 
21426
- var rand = Math.random();
21428
+ if (min === void 0) {
21429
+ min = 0;
21430
+ }
21431
+
21432
+ if (max === void 0) {
21433
+ max = 1e4;
21434
+ }
21435
+
21436
+ var rand = Math.floor(Math.random() * (max - min) + min);
21427
21437
  return asStr ? rand + "" : rand;
21428
21438
  }
21429
21439
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1178,10 +1178,10 @@ var store = __webpack_require__(34);
1178
1178
  (module.exports = function (key, value) {
1179
1179
  return store[key] || (store[key] = value !== undefined ? value : {});
1180
1180
  })('versions', []).push({
1181
- version: '3.21.0',
1181
+ version: '3.21.1',
1182
1182
  mode: IS_PURE ? 'pure' : 'global',
1183
1183
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
1184
- license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',
1184
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
1185
1185
  source: 'https://github.com/zloirock/core-js'
1186
1186
  });
1187
1187
 
@@ -3460,8 +3460,8 @@ var fails = __webpack_require__(6);
3460
3460
  module.exports = function (METHOD_NAME, argument) {
3461
3461
  var method = [][METHOD_NAME];
3462
3462
  return !!method && fails(function () {
3463
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
3464
- method.call(null, argument || function () { throw 1; }, 1);
3463
+ // eslint-disable-next-line no-useless-call -- required for testing
3464
+ method.call(null, argument || function () { return 1; }, 1);
3465
3465
  });
3466
3466
  };
3467
3467
 
@@ -25154,17 +25154,27 @@ function getBoundingRect(node) {
25154
25154
  /**
25155
25155
  * Retrun random number
25156
25156
  * @param {boolean} asStr Convert returned value as string
25157
+ * @param {number} min Minimum value
25158
+ * @param {number} max Maximum value
25157
25159
  * @returns {number|string}
25158
25160
  * @private
25159
25161
  */
25160
25162
 
25161
25163
 
25162
- function getRandom(asStr) {
25164
+ function getRandom(asStr, min, max) {
25163
25165
  if (asStr === void 0) {
25164
25166
  asStr = !0;
25165
25167
  }
25166
25168
 
25167
- var rand = Math.random();
25169
+ if (min === void 0) {
25170
+ min = 0;
25171
+ }
25172
+
25173
+ if (max === void 0) {
25174
+ max = 1e4;
25175
+ }
25176
+
25177
+ var rand = Math.floor(Math.random() * (max - min) + min);
25168
25178
  return asStr ? rand + "" : rand;
25169
25179
  }
25170
25180
  /**
@@ -25783,7 +25793,7 @@ var Plugin = /*#__PURE__*/function () {
25783
25793
  return Plugin;
25784
25794
  }();
25785
25795
 
25786
- Plugin.version = "3.3.1";
25796
+ Plugin.version = "3.3.3";
25787
25797
 
25788
25798
  ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
25789
25799
  /**
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  */
10
10
  /*-- Datalab Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  */.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;font-size:11px;line-height:1}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-font-smoothing:antialiased;fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis{stroke-width:.7px}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:.7px}.bb-circle{fill:#fff!important}.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:1px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;stroke-dasharray:1 20;transform:translate(7px,1px)}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{-webkit-font-smoothing:antialiased;background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;empty-cells:show;font-size:11px;text-align:left}.bb-tooltip th{background-color:#0b00b1;border-bottom:2px solid #ff2d2d;color:#fffdfd;font-size:13px;padding:2px 8px;text-align:left}.bb-tooltip td{padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{border:1px solid #000;border-radius:3px;display:inline-block;height:8px;margin-right:6px;vertical-align:middle;width:8px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:18px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#000;font-size:18px!important;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arc .bb-gauge-value{fill:#3b6969}.bb-chart-arc path{stroke:#000;stroke-width:.5px}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:14px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:.7px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;padding:5px}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  */
10
10
  /*-- Graph Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  */.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#8c8c8c}.bb .bb-button,.bb text{fill:#555;font-size:12px;letter-spacing:-.3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#8c8c8c}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ffb6b6;stroke-dasharray:3px}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_,rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1px;opacity:.75}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;box-shadow:.5px .5px 1px #999;empty-cells:show;font-size:12px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-tooltip th{background-color:#efefef;border-bottom:1px dotted #000;color:#000;font-size:12px;padding:4px 8px;text-align:center}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{background-color:#fff;border-bottom:1px solid #eee;padding:3px 6px}.bb-tooltip td:first-child{border-right:1px solid #eee;padding-left:5px}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:12px;margin-right:6px;vertical-align:middle;width:5px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:1px;font-size:12px}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#8c8c8c;font-size:16px!important;font-style:italic}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arc .bb-gauge-value{fill:#8c8c8c;font-style:italic}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px;font-weight:700}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#8c8c8c}.bb-chart-radars .bb-axis line{stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em;font-weight:700}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;box-shadow:1px 1px 2px #ccc;cursor:pointer;opacity:.8;padding:5px}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  */
10
10
  /*-- Insight Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  */.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-family:sans-serif,Arial,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#c4c4c4}.bb .bb-button,.bb text{fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{fill:#fff!important;stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-spacing:0;empty-cells:show;font-size:11px;text-align:left}.bb-tooltip th{border-bottom:1px solid #eee;font-size:12px;padding:4px 8px;text-align:left}.bb-tooltip td{background-color:#fff;padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{border-radius:5px;display:inline-block;height:10px;margin-right:6px;vertical-align:middle;width:10px}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:12px;font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#000;font-size:16px!important;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;padding:5px}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
@@ -395,12 +395,16 @@ function getBoundingRect(node) {
395
395
  /**
396
396
  * Retrun random number
397
397
  * @param {boolean} asStr Convert returned value as string
398
+ * @param {number} min Minimum value
399
+ * @param {number} max Maximum value
398
400
  * @returns {number|string}
399
401
  * @private
400
402
  */
401
- function getRandom(asStr) {
403
+ function getRandom(asStr, min, max) {
402
404
  if (asStr === void 0) { asStr = true; }
403
- var rand = Math.random();
405
+ if (min === void 0) { min = 0; }
406
+ if (max === void 0) { max = 10000; }
407
+ var rand = Math.floor(Math.random() * (max - min) + min);
404
408
  return asStr ? String(rand) : rand;
405
409
  }
406
410
  /**
@@ -8313,7 +8317,7 @@ var ChartInternal = /** @class */ (function () {
8313
8317
  var _a = $$, config = _a.config, format = _a.format, state = _a.state;
8314
8318
  var isRotated = config.axis_rotated;
8315
8319
  // datetime to be used for uniqueness
8316
- state.datetimeId = "bb-".concat(+new Date());
8320
+ state.datetimeId = "bb-".concat(+new Date() * getRandom());
8317
8321
  $$.color = $$.generateColor();
8318
8322
  $$.levelColor = $$.generateLevelColor();
8319
8323
  if ($$.hasPointType()) {
@@ -12052,8 +12056,8 @@ var Axis = /** @class */ (function () {
12052
12056
  }
12053
12057
  tickNodes.each(function (d) {
12054
12058
  if (tickValues_1.indexOf(d) % intervalForCulling_1) {
12055
- (lines_1 ? this.querySelector("text") : this)
12056
- .style.display = "none";
12059
+ var node = (lines_1 ? this.querySelector("text") : this);
12060
+ node && (node.style.display = "none");
12057
12061
  }
12058
12062
  });
12059
12063
  }
@@ -20387,7 +20391,7 @@ var zoomModule = function () {
20387
20391
  var defaults = {};
20388
20392
  /**
20389
20393
  * @namespace bb
20390
- * @version 3.3.2
20394
+ * @version 3.3.3
20391
20395
  */
20392
20396
  var bb = {
20393
20397
  /**
@@ -20397,7 +20401,7 @@ var bb = {
20397
20401
  * bb.version; // "1.0.0"
20398
20402
  * @memberof bb
20399
20403
  */
20400
- version: "3.3.2",
20404
+ version: "3.3.3",
20401
20405
  /**
20402
20406
  * Generate chart
20403
20407
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -142,7 +142,7 @@ var Plugin = /*#__PURE__*/function () {
142
142
  return Plugin;
143
143
  }();
144
144
 
145
- Plugin.version = "#3.3.2#";
145
+ Plugin.version = "#3.3.3#";
146
146
 
147
147
  /**
148
148
  * Bubble compare diagram plugin.<br>
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -319,7 +319,7 @@ var Plugin = /*#__PURE__*/function () {
319
319
  return Plugin;
320
320
  }();
321
321
 
322
- Plugin.version = "#3.3.2#";
322
+ Plugin.version = "#3.3.3#";
323
323
 
324
324
  /**
325
325
  * Copyright (c) 2021 ~ present NAVER Corp.
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -519,7 +519,7 @@ var Plugin = /*#__PURE__*/function () {
519
519
  return Plugin;
520
520
  }();
521
521
 
522
- Plugin.version = "#3.3.2#";
522
+ Plugin.version = "#3.3.3#";
523
523
 
524
524
  /**
525
525
  * Copyright (c) 2017 ~ present NAVER Corp.
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -165,7 +165,7 @@ var Plugin = /*#__PURE__*/function () {
165
165
  return Plugin;
166
166
  }();
167
167
 
168
- Plugin.version = "#3.3.2#";
168
+ Plugin.version = "#3.3.3#";
169
169
 
170
170
  /**
171
171
  * Copyright (c) 2021 ~ present NAVER Corp.
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.3.2
8
+ * @version 3.3.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -296,7 +296,7 @@ var Plugin = /*#__PURE__*/function () {
296
296
  return Plugin;
297
297
  }();
298
298
 
299
- Plugin.version = "#3.3.2#";
299
+ Plugin.version = "#3.3.3#";
300
300
 
301
301
  /**
302
302
  * Copyright (c) 2017 ~ present NAVER Corp.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billboard.js",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "Re-usable easy interface JavaScript chart library, based on D3 v4+",
5
5
  "homepage": "https://naver.github.io/billboard.js/",
6
6
  "main": "dist/billboard.js",
@@ -95,10 +95,10 @@
95
95
  "d3-zoom": "^3.0.0"
96
96
  },
97
97
  "devDependencies": {
98
- "@babel/core": "^7.17.2",
98
+ "@babel/core": "^7.17.5",
99
99
  "@babel/eslint-parser": "^7.17.0",
100
100
  "@babel/plugin-proposal-class-properties": "^7.16.7",
101
- "@babel/plugin-proposal-object-rest-spread": "^7.16.7",
101
+ "@babel/plugin-proposal-object-rest-spread": "^7.17.3",
102
102
  "@babel/plugin-transform-runtime": "^7.17.0",
103
103
  "@babel/preset-env": "^7.16.8",
104
104
  "@babel/preset-typescript": "^7.16.7",
@@ -119,8 +119,8 @@
119
119
  "@types/d3": "^7.1.0",
120
120
  "@types/mocha": "^9.0.0",
121
121
  "@types/sinon": "^10.0.11",
122
- "@typescript-eslint/eslint-plugin": "^5.11.0",
123
- "@typescript-eslint/parser": "^5.11.0",
122
+ "@typescript-eslint/eslint-plugin": "^5.12.1",
123
+ "@typescript-eslint/parser": "^5.12.1",
124
124
  "babel-helper-modules": "^6.0.0",
125
125
  "babel-loader": "^8.2.3",
126
126
  "babel-plugin-add-module-exports": "^1.0.4",
@@ -136,7 +136,7 @@
136
136
  "chai": "^4.3.4",
137
137
  "clean-webpack-plugin": "^4.0.0",
138
138
  "cloc": "^2.9.0",
139
- "core-js": "^3.21.0",
139
+ "core-js": "^3.21.1",
140
140
  "coveralls": "^3.1.1",
141
141
  "cross-env": "^7.0.3",
142
142
  "css-loader": "^6.6.0",
@@ -150,7 +150,7 @@
150
150
  "eslint": "^8.9.0",
151
151
  "eslint-config-naver": "^2.1.0",
152
152
  "eslint-plugin-import": "^2.25.4",
153
- "eslint-plugin-jsdoc": "^37.9.1",
153
+ "eslint-plugin-jsdoc": "^37.9.4",
154
154
  "eslint-webpack-plugin": "^3.1.1",
155
155
  "exports-loader": "^3.1.0",
156
156
  "hammer-simulator": "0.0.1",
@@ -170,12 +170,12 @@
170
170
  "karma-webpack": "^5.0.0",
171
171
  "lite-fixture": "^1.0.2",
172
172
  "mini-css-extract-plugin": "^2.5.2",
173
- "mocha": "^9.1.4",
173
+ "mocha": "^9.2.1",
174
174
  "node-sass": "^7.0.1",
175
175
  "regenerator-runtime": "^0.13.7",
176
- "rollup": "^2.67.2",
176
+ "rollup": "^2.67.3",
177
177
  "rollup-plugin-delete": "^2.0.0",
178
- "sass-loader": "^12.4.0",
178
+ "sass-loader": "^12.6.0",
179
179
  "semantic-release": "^19.0.2",
180
180
  "simulant": "^0.2.2",
181
181
  "sinon": "^13.0.1",
@@ -184,7 +184,7 @@
184
184
  "terser-webpack-plugin": "^5.3.1",
185
185
  "tslib": "^2.3.1",
186
186
  "typescript": "^4.5.4",
187
- "webpack": "^5.68.0",
187
+ "webpack": "^5.69.1",
188
188
  "webpack-bundle-analyzer": "^4.5.0",
189
189
  "webpack-clean": "^1.2.5",
190
190
  "webpack-cli": "^4.9.1",
@@ -968,8 +968,9 @@ class Axis {
968
968
 
969
969
  tickNodes.each(function(d) {
970
970
  if (tickValues.indexOf(d) % intervalForCulling) {
971
- (lines ? this.querySelector("text") : this)
972
- .style.display = "none";
971
+ const node = (lines ? this.querySelector("text") : this);
972
+
973
+ node && (node.style.display = "none");
973
974
  }
974
975
  });
975
976
  } else {
@@ -18,7 +18,7 @@ import Options from "../config/Options/Options";
18
18
  import {document, window} from "../module/browser";
19
19
  import Cache from "../module/Cache";
20
20
  import {generateResize} from "../module/generator";
21
- import {capitalize, extend, notEmpty, convertInputType, getOption, isFunction, isObject, isString, callFn, sortValue} from "../module/util";
21
+ import {capitalize, extend, notEmpty, convertInputType, getOption, getRandom, isFunction, isObject, isString, callFn, sortValue} from "../module/util";
22
22
 
23
23
  // data
24
24
  import dataConvert from "./data/convert";
@@ -255,7 +255,7 @@ export default class ChartInternal {
255
255
  const isRotated = config.axis_rotated;
256
256
 
257
257
  // datetime to be used for uniqueness
258
- state.datetimeId = `bb-${+new Date()}`;
258
+ state.datetimeId = `bb-${+new Date() * (getRandom() as number)}`;
259
259
 
260
260
  $$.color = $$.generateColor();
261
261
  $$.levelColor = $$.generateLevelColor();
@@ -312,11 +312,13 @@ function getBoundingRect(node): {
312
312
  /**
313
313
  * Retrun random number
314
314
  * @param {boolean} asStr Convert returned value as string
315
+ * @param {number} min Minimum value
316
+ * @param {number} max Maximum value
315
317
  * @returns {number|string}
316
318
  * @private
317
319
  */
318
- function getRandom(asStr: boolean = true): number | string {
319
- const rand = Math.random();
320
+ function getRandom(asStr: boolean = true, min = 0, max = 10000): number | string {
321
+ const rand = Math.floor(Math.random() * (max - min) + min);
320
322
 
321
323
  return asStr ? String(rand) : rand;
322
324
  }