billboard.js 3.2.2 → 3.3.0-next.1

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 (52) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +230 -68
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +3196 -1856
  6. package/dist/billboard.pkgd.min.js +3 -3
  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 +10 -9
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +10 -9
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +12 -11
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +10 -9
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2976 -1798
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2985 -1806
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +2986 -1807
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +3045 -1866
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +3045 -1866
  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 +198 -55
  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 +29 -29
  35. package/src/ChartInternal/ChartInternal.ts +10 -1
  36. package/src/ChartInternal/data/convert.ts +1 -1
  37. package/src/ChartInternal/data/data.ts +27 -10
  38. package/src/ChartInternal/internals/domain.ts +4 -2
  39. package/src/ChartInternal/internals/scale.ts +3 -2
  40. package/src/ChartInternal/internals/size.ts +32 -1
  41. package/src/ChartInternal/internals/text.ts +2 -2
  42. package/src/ChartInternal/internals/tooltip.ts +4 -0
  43. package/src/ChartInternal/shape/bar.ts +78 -33
  44. package/src/ChartInternal/shape/shape.ts +33 -2
  45. package/src/Plugin/tableview/index.ts +1 -1
  46. package/src/config/Options/axis/x.ts +2 -2
  47. package/src/config/Options/common/main.ts +11 -1
  48. package/src/config/Options/data/data.ts +22 -0
  49. package/src/config/Options/shape/bar.ts +1 -2
  50. package/src/module/util.ts +16 -15
  51. package/types/options.d.ts +8 -1
  52. package/types/types.d.ts +4 -4
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.2.2
8
+ * @version 3.3.0-next.1
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.2.2
8
+ * @version 3.3.0-next.1
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-y2 text,.bb-axis-y 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.2.2
8
+ * @version 3.3.0-next.1
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.2.2
8
+ * @version 3.3.0-next.1
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-y2 text,.bb-axis-y 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.2.2
8
+ * @version 3.3.0-next.1
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.2.2
8
+ * @version 3.3.0-next.1
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-y2 text,.bb-axis-y 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.2.2
8
+ * @version 3.3.0-next.1
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
@@ -338,17 +338,18 @@ function hasValue(dict, value) {
338
338
  /**
339
339
  * Call function with arguments
340
340
  * @param {Function} fn Function to be called
341
- * @param {*} args Arguments
341
+ * @param {*} thisArg "this" value for fn
342
+ * @param {*} args Arguments for fn
342
343
  * @returns {boolean} true: fn is function, false: fn is not function
343
344
  * @private
344
345
  */
345
- function callFn(fn) {
346
+ function callFn(fn, thisArg) {
346
347
  var args = [];
347
- for (var _i = 1; _i < arguments.length; _i++) {
348
- args[_i - 1] = arguments[_i];
348
+ for (var _i = 2; _i < arguments.length; _i++) {
349
+ args[_i - 2] = arguments[_i];
349
350
  }
350
351
  var isFn = isFunction(fn);
351
- isFn && fn.call.apply(fn, args);
352
+ isFn && fn.call.apply(fn, __spreadArray([thisArg], args, false));
352
353
  return isFn;
353
354
  }
354
355
  /**
@@ -1262,12 +1263,21 @@ var main = {
1262
1263
  * @name padding
1263
1264
  * @memberof Options
1264
1265
  * @type {object}
1265
- * @property {object} [padding] padding object
1266
+ * @property {object|boolean} [padding=true] Set padding of chart, and accepts object or boolean type.
1267
+ * - `Object`: Specify each side's padding.
1268
+ * - `false`: Remove padding completely and make shape to fully occupy the container element.
1269
+ * - In this case, axes and subchart will be hidden.
1270
+ * - To adjust some padding from this state, use `axis.[x|y].padding` option.
1266
1271
  * @property {number} [padding.top] padding on the top of chart
1267
1272
  * @property {number} [padding.right] padding on the right of chart
1268
1273
  * @property {number} [padding.bottom] padding on the bottom of chart
1269
1274
  * @property {number} [padding.left] padding on the left of chart
1275
+ * @see [Demo](https://naver.github.io/billboard.js/demo/#ChartOptions.Padding)
1270
1276
  * @example
1277
+ * // remove padding completely.
1278
+ * padding: false,
1279
+ *
1280
+ * // or specify padding value for each side
1271
1281
  * padding: {
1272
1282
  * top: 20,
1273
1283
  * right: 20,
@@ -1275,6 +1285,7 @@ var main = {
1275
1285
  * left: 20
1276
1286
  * }
1277
1287
  */
1288
+ padding: true,
1278
1289
  padding_left: undefined,
1279
1290
  padding_right: undefined,
1280
1291
  padding_top: undefined,
@@ -2090,6 +2101,18 @@ var data$2 = {
2090
2101
  * ]
2091
2102
  * }
2092
2103
  *
2104
+ * // for 'bar' type, data can contain:
2105
+ * // - an array of [start, end] data following the order
2106
+ * data: {
2107
+ * rows: [
2108
+ * ["data1", "data2"],
2109
+ * [[100, 150], 120],
2110
+ * [[200, 300], 55],
2111
+ * [[-400, 500], 60]
2112
+ * ],
2113
+ * type: "bar"
2114
+ * }
2115
+ *
2093
2116
  * // for 'range' types('area-line-range' or 'area-spline-range'), data should contain:
2094
2117
  * // - an array of [high, mid, low] data following the order
2095
2118
  * // - or an object with 'high', 'mid' and 'low' key value
@@ -2165,6 +2188,16 @@ var data$2 = {
2165
2188
  * ]
2166
2189
  * }
2167
2190
  *
2191
+ * // for 'bar' type, data can contain:
2192
+ * // - an array of [start, end] data following the order
2193
+ * data: {
2194
+ * columns: [
2195
+ * ["data1", -100, 50, [100, 200], [200, 300]],
2196
+ * ["data2", -200, 300, [-100, 100], [-50, -30]],
2197
+ * ],
2198
+ * type: "bar"
2199
+ * }
2200
+ *
2168
2201
  * // for 'range' types('area-line-range' or 'area-spline-range'), data should contain:
2169
2202
  * // - an array of [high, mid, low] data following the order
2170
2203
  * // - or an object with 'high', 'mid' and 'low' key value
@@ -3735,6 +3768,7 @@ var data$1 = {
3735
3768
  },
3736
3769
  /**
3737
3770
  * Sort targets data
3771
+ * Note: For stacked bar, will sort from the total sum of data series, not for each stacked bar
3738
3772
  * @param {Array} targetsValue Target value
3739
3773
  * @returns {Array}
3740
3774
  * @private
@@ -3763,8 +3797,8 @@ var data$1 = {
3763
3797
  if (orderAsc || orderDesc) {
3764
3798
  var reducer_1 = function (p, c) { return p + Math.abs(c.value); };
3765
3799
  fn = function (t1, t2) {
3766
- var t1Sum = t1.values.reduce(reducer_1, 0);
3767
- var t2Sum = t2.values.reduce(reducer_1, 0);
3800
+ var t1Sum = "values" in t1 ? t1.values.reduce(reducer_1, 0) : t1.value;
3801
+ var t2Sum = "values" in t2 ? t2.values.reduce(reducer_1, 0) : t2.value;
3768
3802
  return isArc ?
3769
3803
  (orderAsc ? t1Sum - t2Sum : t2Sum - t1Sum) :
3770
3804
  (orderAsc ? t2Sum - t1Sum : t1Sum - t2Sum);
@@ -3859,18 +3893,21 @@ var data$1 = {
3859
3893
  var data = values.filter(function (v) { return v && isValue(v.value); });
3860
3894
  var minDist = config.point_sensitivity;
3861
3895
  var closest;
3862
- // find mouseovering bar
3896
+ // find mouseovering bar/candlestick
3897
+ // https://github.com/naver/billboard.js/issues/2434
3863
3898
  data
3864
- .filter(function (v) { return $$.isBarType(v.id); })
3899
+ .filter(function (v) { return $$.isBarType(v.id) || $$.isCandlestickType(v.id); })
3865
3900
  .forEach(function (v) {
3866
- var shape = main.select(".".concat(CLASS.bars).concat($$.getTargetSelectorSuffix(v.id), " .").concat(CLASS.bar, "-").concat(v.index)).node();
3867
- if (!closest && $$.isWithinBar(shape)) {
3901
+ var selector = $$.isBarType(v.id) ?
3902
+ ".".concat(CLASS.chartBar, ".").concat(CLASS.target).concat($$.getTargetSelectorSuffix(v.id), " .").concat(CLASS.bar, "-").concat(v.index) :
3903
+ ".".concat(CLASS.chartCandlestick, ".").concat(CLASS.target).concat($$.getTargetSelectorSuffix(v.id), " .").concat(CLASS.candlestick, "-").concat(v.index, " path");
3904
+ if (!closest && $$.isWithinBar(main.select(selector).node())) {
3868
3905
  closest = v;
3869
3906
  }
3870
3907
  });
3871
- // find closest point from non-bar
3908
+ // find closest point from non-bar/candlestick
3872
3909
  data
3873
- .filter(function (v) { return !$$.isBarType(v.id); })
3910
+ .filter(function (v) { return !$$.isBarType(v.id) && !$$.isCandlestickType(v.id); })
3874
3911
  .forEach(function (v) {
3875
3912
  var d = $$.dist(v, pos);
3876
3913
  if (d < minDist) {
@@ -4055,6 +4092,17 @@ var data$1 = {
4055
4092
  return $$.isBubbleType(d) && ((isObject(d.value) && ("z" in d.value || "y" in d.value)) ||
4056
4093
  (isArray(d.value) && d.value.length === 2));
4057
4094
  },
4095
+ /**
4096
+ * Determine if bar has ranged data
4097
+ * @param {Array} d data value
4098
+ * @returns {boolean}
4099
+ * @private
4100
+ */
4101
+ isBarRangeType: function (d) {
4102
+ var $$ = this;
4103
+ var value = d.value;
4104
+ return $$.isBarType(d) && isArray(value) && value.length === 2 && value.every(function (v) { return isNumber(v); });
4105
+ },
4058
4106
  /**
4059
4107
  * Get data object by id
4060
4108
  * @param {string} id data id
@@ -4814,6 +4862,7 @@ var domain = {
4814
4862
  padding[v] += $$.convertPixelToScale("y", lengths_1[i], domainLength);
4815
4863
  });
4816
4864
  }
4865
+ padding = $$.getResettedPadding(padding);
4817
4866
  // if padding is set, the domain will be updated relative the current domain value
4818
4867
  // ex) $$.height=300, padding.top=150, domainLength=4 --> domain=6
4819
4868
  var p = config["".concat(pfx, "_padding")];
@@ -4866,7 +4915,7 @@ var domain = {
4866
4915
  defaultValue = maxDataCount > 1 ? (diff / (maxDataCount - 1)) / 2 : 0.5;
4867
4916
  }
4868
4917
  else {
4869
- defaultValue = diff * 0.01;
4918
+ defaultValue = $$.getResettedPadding(diff * 0.01);
4870
4919
  }
4871
4920
  var _a = isNumber(padding) ?
4872
4921
  { left: padding, right: padding } : padding, _b = _a.left, left = _b === void 0 ? defaultValue : _b, _c = _a.right, right = _c === void 0 ? defaultValue : _c;
@@ -5998,16 +6047,17 @@ var scale = {
5998
6047
  var axis = $$.axis, config = $$.config, format = $$.format, org = $$.org, scale = $$.scale, _c = $$.state, width = _c.width, height = _c.height, width2 = _c.width2, height2 = _c.height2, hasAxis = _c.hasAxis;
5999
6048
  if (hasAxis) {
6000
6049
  var isRotated = config.axis_rotated;
6050
+ var resettedPadding = $$.getResettedPadding(1);
6001
6051
  // update edges
6002
6052
  var min = {
6003
- x: isRotated ? 1 : 0,
6053
+ x: isRotated ? resettedPadding : 0,
6004
6054
  y: isRotated ? 0 : height,
6005
6055
  subX: isRotated ? 1 : 0,
6006
6056
  subY: isRotated ? 0 : height2
6007
6057
  };
6008
6058
  var max = {
6009
6059
  x: isRotated ? height : width,
6010
- y: isRotated ? width : 1,
6060
+ y: isRotated ? width : resettedPadding,
6011
6061
  subX: isRotated ? height : width,
6012
6062
  subY: isRotated ? width2 : 1
6013
6063
  };
@@ -6225,6 +6275,10 @@ var shape = {
6225
6275
  else if ($$.isBubbleZType(d)) {
6226
6276
  value = $$.getBubbleZData(d.value, "y");
6227
6277
  }
6278
+ else if ($$.isBarRangeType(d)) {
6279
+ // TODO use range.getEnd() like method
6280
+ value = value[1];
6281
+ }
6228
6282
  return $$.getYScaleById(d.id, isSub)(value);
6229
6283
  };
6230
6284
  },
@@ -6283,6 +6337,10 @@ var shape = {
6283
6337
  var id = d.id, value = d.value, x = d.x;
6284
6338
  var ind = $$.getIndices(indices, id);
6285
6339
  var scale = $$.getYScaleById(id, isSub);
6340
+ if ($$.isBarRangeType(d)) {
6341
+ // TODO use range.getStart()
6342
+ return scale(value[0]);
6343
+ }
6286
6344
  var y0 = scale($$.getShapeYMin(id));
6287
6345
  var dataXAsNumber = Number(x);
6288
6346
  var offset = y0;
@@ -6290,6 +6348,7 @@ var shape = {
6290
6348
  .filter(function (t) { return t.id !== id; })
6291
6349
  .forEach(function (t) {
6292
6350
  var tid = t.id, rowValueMapByXValue = t.rowValueMapByXValue, rowValues = t.rowValues, tvalues = t.values;
6351
+ // for same stacked group (ind[tid] === ind[id])
6293
6352
  if (ind[tid] === ind[id] && indexMapByTargetId[tid] < indexMapByTargetId[id]) {
6294
6353
  var row = rowValues[idx];
6295
6354
  // check if the x values line up
@@ -6409,6 +6468,24 @@ var shape = {
6409
6468
  return $$.isSplineType(d) ?
6410
6469
  interpolation : ($$.isStepType(d) ?
6411
6470
  config.line_step_type : "linear");
6471
+ },
6472
+ isWithinBar: function (that) {
6473
+ var mouse = getPointer(this.state.event, that);
6474
+ var list = getRectSegList(that);
6475
+ var seg0 = list[0], seg1 = list[1];
6476
+ var x = Math.min(seg0.x, seg1.x);
6477
+ var y = Math.min(seg0.y, seg1.y);
6478
+ var offset = this.config.bar_sensitivity;
6479
+ var _a = that.getBBox(), width = _a.width, height = _a.height;
6480
+ var sx = x - offset;
6481
+ var ex = x + width + offset;
6482
+ var sy = y + height + offset;
6483
+ var ey = y - offset;
6484
+ var isWithin = sx < mouse[0] &&
6485
+ mouse[0] < ex &&
6486
+ ey < mouse[1] &&
6487
+ mouse[1] < sy;
6488
+ return isWithin;
6412
6489
  }
6413
6490
  };
6414
6491
 
@@ -6604,6 +6681,31 @@ var size = {
6604
6681
  .attr("height", brushSize.height);
6605
6682
  }
6606
6683
  },
6684
+ /**
6685
+ * Get resetted padding values when 'padding=false' option is set
6686
+ * https://github.com/naver/billboard.js/issues/2367
6687
+ * @param {number|object} v Padding values to be resetted
6688
+ * @returns {number|object} Padding value
6689
+ * @private
6690
+ */
6691
+ getResettedPadding: function (v) {
6692
+ var $$ = this;
6693
+ var config = $$.config;
6694
+ var isNum = isNumber(v);
6695
+ var p = isNum ? 0 : {};
6696
+ if (config.padding === false) {
6697
+ !isNum && Object.keys(v).forEach(function (key) {
6698
+ // when data.lables=true, do not reset top padding
6699
+ p[key] = (!isEmpty(config.data_labels) &&
6700
+ config.data_labels !== false &&
6701
+ key === "top") ? v[key] : 0;
6702
+ });
6703
+ }
6704
+ else {
6705
+ p = v;
6706
+ }
6707
+ return p;
6708
+ },
6607
6709
  /**
6608
6710
  * Update size values
6609
6711
  * @param {boolean} isInit If is called at initialization
@@ -6641,6 +6743,7 @@ var size = {
6641
6743
  bottom: xAxisHeight + subchartHeight + legendHeightForBottom + $$.getCurrentPaddingBottom(),
6642
6744
  left: hasArc ? 0 : $$.getCurrentPaddingLeft()
6643
6745
  };
6746
+ state.margin = $$.getResettedPadding(state.margin);
6644
6747
  // for subchart
6645
6748
  state.margin2 = isRotated ? {
6646
6749
  top: state.margin.top,
@@ -6965,13 +7068,14 @@ var text = {
6965
7068
  * @private
6966
7069
  */
6967
7070
  getXForText: function (points, d, textElement) {
7071
+ var _a;
6968
7072
  var $$ = this;
6969
7073
  var config = $$.config, state = $$.state;
6970
7074
  var isRotated = config.axis_rotated;
6971
7075
  var xPos = points[0][0];
6972
- if ($$.hasType("candlestick")) {
7076
+ if ($$.isCandlestickType(d)) {
6973
7077
  if (isRotated) {
6974
- xPos = $$.getCandlestickData(d)._isUp ?
7078
+ xPos = ((_a = $$.getCandlestickData(d)) === null || _a === void 0 ? void 0 : _a._isUp) ?
6975
7079
  points[2][2] + 4 : points[2][1] - 4;
6976
7080
  }
6977
7081
  else {
@@ -7386,6 +7490,10 @@ var tooltip$1 = {
7386
7490
  var _c = ["open", "high", "low", "close", "volume"].map(function (v) { return sanitise(valueFormat.apply(void 0, __spreadArray([$$.getRangedData(row, v, "candlestick")], param, false))); }), open_1 = _c[0], high = _c[1], low = _c[2], close_1 = _c[3], volume = _c[4];
7387
7491
  value = "<b>Open:</b> ".concat(open_1, " <b>High:</b> ").concat(high, " <b>Low:</b> ").concat(low, " <b>Close:</b> ").concat(close_1).concat(volume ? " <b>Volume:</b> ".concat(volume) : "");
7388
7492
  }
7493
+ else if ($$.isBarRangeType(row)) {
7494
+ var _d = row.value, start = _d[0], end = _d[1];
7495
+ value = "".concat(valueFormat(start), " ~ ").concat(valueFormat(end));
7496
+ }
7389
7497
  if (value !== undefined) {
7390
7498
  // Skip elements when their name is set to null
7391
7499
  if (row.name === null) {
@@ -8028,6 +8136,13 @@ var ChartInternal = /** @class */ (function () {
8028
8136
  checkModuleImport($$);
8029
8137
  state.hasAxis = !$$.hasArcType();
8030
8138
  state.hasRadar = !state.hasAxis && $$.hasType("radar");
8139
+ // when 'padding=false' is set, disable axes and subchart. Because they are useless.
8140
+ if (config.padding === false) {
8141
+ config.axis_x_show = false;
8142
+ config.axis_y_show = false;
8143
+ config.axis_y2_show = false;
8144
+ config.subchart_show = false;
8145
+ }
8031
8146
  $$.initParams();
8032
8147
  var bindto = {
8033
8148
  element: config.bindto,
@@ -8111,7 +8226,8 @@ var ChartInternal = /** @class */ (function () {
8111
8226
  config.legend_inset_anchor === "top-right";
8112
8227
  state.isLegendLeft = config.legend_inset_anchor === "top-left" ||
8113
8228
  config.legend_inset_anchor === "bottom-left";
8114
- state.rotatedPaddingRight = isRotated && !config.axis_x_show ? 0 : 30;
8229
+ state.rotatedPadding.top = $$.getResettedPadding(state.rotatedPadding.top);
8230
+ state.rotatedPadding.right = isRotated && !config.axis_x_show ? 0 : 30;
8115
8231
  state.inputType = convertInputType(config.interaction_inputType_mouse, config.interaction_inputType_touch);
8116
8232
  };
8117
8233
  ChartInternal.prototype.initWithData = function (data) {
@@ -13649,8 +13765,8 @@ var x = {
13649
13765
  axis_x_tick_text_position: { x: 0, y: 0 },
13650
13766
  /**
13651
13767
  * Fit x axis ticks.
13652
- * - **true**: ticks will be positioned nicely to have same intervals.
13653
- * - **false**: ticks will be positioned according to x value of the data points.
13768
+ * - **true**: ticks will be shown according to x value of the data points.
13769
+ * - **false**: ticks will be shown as to have same intervals.
13654
13770
  * @name axis․x․tick․fit
13655
13771
  * @memberof Options
13656
13772
  * @type {boolean}
@@ -15907,10 +16023,6 @@ var shapeArea = {
15907
16023
  }
15908
16024
  };
15909
16025
 
15910
- /**
15911
- * Copyright (c) 2017 ~ present NAVER Corp.
15912
- * billboard.js project is licensed under the MIT license
15913
- */
15914
16026
  var shapeBar = {
15915
16027
  initBar: function () {
15916
16028
  var _a = this, $el = _a.$el, config = _a.config, clip = _a.state.clip;
@@ -15938,7 +16050,7 @@ var shapeBar = {
15938
16050
  .selectAll(".".concat(CLASS.chartBar))
15939
16051
  .data(
15940
16052
  // remove
15941
- targets.filter(function (v) { return !v.values.every(function (d) { return !isNumber(d.value); }); }))
16053
+ targets.filter(function (v) { return v.values.some(function (d) { return (isNumber(d.value) || $$.isBarRangeType(d)); }); }))
15942
16054
  .attr("class", function (d) { return classChartBar(d) + classFocus(d); });
15943
16055
  var mainBarEnter = mainBarUpdate.enter().append("g")
15944
16056
  .attr("class", classChartBar)
@@ -15976,7 +16088,7 @@ var shapeBar = {
15976
16088
  },
15977
16089
  /**
15978
16090
  * Redraw function
15979
- * @param {Function} drawFn Retuned functino from .generateDrawCandlestick()
16091
+ * @param {Function} drawFn Retuned function from .getDrawShape() => .generateDrawBar()
15980
16092
  * @param {boolean} withTransition With or without transition
15981
16093
  * @param {boolean} isSub Subchart draw
15982
16094
  * @returns {Array}
@@ -15987,17 +16099,36 @@ var shapeBar = {
15987
16099
  var bar = (isSub ? $$.$el.subchart : $$.$el).bar;
15988
16100
  return [
15989
16101
  $$.$T(bar, withTransition, getRandom())
15990
- .attr("d", function (d) { return isNumber(d.value) && drawFn(d); })
16102
+ .attr("d", function (d) { return (isNumber(d.value) || $$.isBarRangeType(d)) && drawFn(d); })
15991
16103
  .style("fill", this.color)
15992
16104
  .style("opacity", null)
15993
16105
  ];
15994
16106
  },
16107
+ /**
16108
+ * Generate draw function
16109
+ * @param {object} barIndices data order within x axis.
16110
+ * barIndices ==> {data1: 0, data2: 0, data3: 1, data4: 1, __max__: 1}
16111
+ *
16112
+ * When gropus given as:
16113
+ * groups: [
16114
+ * ["data1", "data2"],
16115
+ * ["data3", "data4"]
16116
+ * ],
16117
+ *
16118
+ * Will be rendered as:
16119
+ * data1 data3 data1 data3
16120
+ * data2 data4 data2 data4
16121
+ * -------------------------
16122
+ * 0 1
16123
+ * @param {boolean} isSub If is for subchart
16124
+ * @returns {Function}
16125
+ * @private
16126
+ */
15995
16127
  generateDrawBar: function (barIndices, isSub) {
15996
16128
  var $$ = this;
15997
16129
  var config = $$.config;
15998
16130
  var getPoints = $$.generateGetBarPoints(barIndices, isSub);
15999
16131
  var isRotated = config.axis_rotated;
16000
- var isGrouped = config.data_groups.length;
16001
16132
  var barRadius = config.bar_radius;
16002
16133
  var barRadiusRatio = config.bar_radius_ratio;
16003
16134
  // get the bar radius
@@ -16012,7 +16143,8 @@ var shapeBar = {
16012
16143
  var isNegative = d.value < 0;
16013
16144
  var pathRadius = ["", ""];
16014
16145
  var radius = 0;
16015
- if (d.value !== 0 && getRadius && !isGrouped) {
16146
+ var isRadiusData = $$.isGrouped(d.id) ? $$.isStackingRadiusData(d) : false;
16147
+ if ((d.value !== 0 && getRadius) && (!$$.isGrouped(d.id) || isRadiusData)) {
16016
16148
  var index = isRotated ? indexY : indexX;
16017
16149
  var barW = points[2][index] - points[0][index];
16018
16150
  radius = getRadius(barW);
@@ -16029,6 +16161,34 @@ var shapeBar = {
16029
16161
  return "M".concat(points[0][indexX], ",").concat(points[0][indexY]).concat(path, "z");
16030
16162
  };
16031
16163
  },
16164
+ /**
16165
+ * Determine if given stacking bar data is radius type
16166
+ * @param {Object} d Data row
16167
+ * @returns {boolean}
16168
+ */
16169
+ isStackingRadiusData: function (d) {
16170
+ var $$ = this;
16171
+ var config = $$.config, data = $$.data;
16172
+ var id = d.id, index = d.index, value = d.value;
16173
+ // Find same grouped ids
16174
+ var keys = config.data_groups.find(function (v) { return v.indexOf(id) > -1; });
16175
+ // Get sorted list
16176
+ var sortedList = $$.orderTargets($$.filterTargetsToShow(data.targets.filter($$.isBarType, $$))).filter(function (v) { return keys.indexOf(v.id) > -1; });
16177
+ // Get sorted Ids. Filter positive or negative values Ids from given value
16178
+ var sortedIds = sortedList
16179
+ .map(function (v) { return v.values.filter(function (v2) { return v2.index === index && (value > 0 ? v2.value > 0 : v2.value < 0); })[0]; })
16180
+ .filter(Boolean)
16181
+ .map(function (v) { return v.id; });
16182
+ // If the given id stays in the last position, then radius should be applied.
16183
+ return value !== 0 && (sortedIds.indexOf(id) === sortedIds.length - 1);
16184
+ },
16185
+ /**
16186
+ * Generate bar coordinate points data
16187
+ * @param {object} barIndices Data order within x axis.
16188
+ * @param {boolean} isSub If is for subchart
16189
+ * @returns {Array} Array of coordinate points
16190
+ * @private
16191
+ */
16032
16192
  generateGetBarPoints: function (barIndices, isSub) {
16033
16193
  var $$ = this;
16034
16194
  var config = $$.config;
@@ -16049,7 +16209,9 @@ var shapeBar = {
16049
16209
  if (config.axis_rotated && ((d.value > 0 && posY < y0) || (d.value < 0 && y0 < posY))) {
16050
16210
  posY = y0;
16051
16211
  }
16052
- posY -= (y0 - offset);
16212
+ if (!$$.isBarRangeType(d)) {
16213
+ posY -= (y0 - offset);
16214
+ }
16053
16215
  var startPosX = posX + width;
16054
16216
  // 4 points that make a bar
16055
16217
  return [
@@ -16059,24 +16221,6 @@ var shapeBar = {
16059
16221
  [startPosX, offset]
16060
16222
  ];
16061
16223
  };
16062
- },
16063
- isWithinBar: function (that) {
16064
- var mouse = getPointer(this.state.event, that);
16065
- var list = getRectSegList(that);
16066
- var seg0 = list[0], seg1 = list[1];
16067
- var x = Math.min(seg0.x, seg1.x);
16068
- var y = Math.min(seg0.y, seg1.y);
16069
- var offset = this.config.bar_sensitivity;
16070
- var _a = that.getBBox(), width = _a.width, height = _a.height;
16071
- var sx = x - offset;
16072
- var ex = x + width + offset;
16073
- var sy = y + height + offset;
16074
- var ey = y - offset;
16075
- var isWithin = sx < mouse[0] &&
16076
- mouse[0] < ex &&
16077
- ey < mouse[1] &&
16078
- mouse[1] < sy;
16079
- return isWithin;
16080
16224
  }
16081
16225
  };
16082
16226
 
@@ -17675,7 +17819,6 @@ var optBar = {
17675
17819
  * @property {number} [bar.label.threshold=0] Set threshold ratio to show/hide labels.
17676
17820
  * @property {number} [bar.padding=0] The padding pixel value between each bar.
17677
17821
  * @property {number} [bar.radius] Set the radius of bar edge in pixel.
17678
- * - **NOTE:** Works only for non-stacked bar
17679
17822
  * @property {number} [bar.radius.ratio] Set the radius ratio of bar edge in relative the bar's width.
17680
17823
  * @property {number} [bar.sensitivity=2] The senstivity offset value for interaction boundary.
17681
17824
  * @property {number} [bar.width] Change the width of bar chart.
@@ -17696,7 +17839,7 @@ var optBar = {
17696
17839
  * bar: {
17697
17840
  * padding: 1,
17698
17841
  *
17699
- * // the 'radius' option can be used only for non-stacking bars
17842
+ * // bar radius
17700
17843
  * radius: 10,
17701
17844
  * // or
17702
17845
  * radius: {
@@ -20042,7 +20185,7 @@ var zoomModule = function () {
20042
20185
  var defaults = {};
20043
20186
  /**
20044
20187
  * @namespace bb
20045
- * @version 3.2.2
20188
+ * @version 3.3.0-next.1
20046
20189
  */
20047
20190
  var bb = {
20048
20191
  /**
@@ -20052,7 +20195,7 @@ var bb = {
20052
20195
  * bb.version; // "1.0.0"
20053
20196
  * @memberof bb
20054
20197
  */
20055
- version: "3.2.2",
20198
+ version: "3.3.0-next.1",
20056
20199
  /**
20057
20200
  * Generate chart
20058
20201
  * - **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.2.2
8
+ * @version 3.3.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -144,7 +144,7 @@ var Plugin = /*#__PURE__*/function () {
144
144
  return Plugin;
145
145
  }();
146
146
 
147
- Plugin.version = "#3.2.2#";
147
+ Plugin.version = "#3.3.0-next.1#";
148
148
 
149
149
  /**
150
150
  * 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.2.2
8
+ * @version 3.3.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -268,7 +268,7 @@ var Plugin = /*#__PURE__*/function () {
268
268
  return Plugin;
269
269
  }();
270
270
 
271
- Plugin.version = "#3.2.2#";
271
+ Plugin.version = "#3.3.0-next.1#";
272
272
 
273
273
  /**
274
274
  * 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.2.2
8
+ * @version 3.3.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -467,7 +467,7 @@ var Plugin = /*#__PURE__*/function () {
467
467
  return Plugin;
468
468
  }();
469
469
 
470
- Plugin.version = "#3.2.2#";
470
+ Plugin.version = "#3.3.0-next.1#";
471
471
 
472
472
  /**
473
473
  * Copyright (c) 2017 ~ present NAVER Corp.