billboard.js 3.3.0-next.1 → 3.3.0-next.2

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 (61) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +139 -29
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +1600 -1391
  6. package/dist/billboard.pkgd.min.js +2 -2
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.d.ts +7 -0
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.d.ts +7 -0
  11. package/dist/plugin/billboardjs-plugin-sparkline.js +4 -4
  12. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-stanford.d.ts +7 -0
  14. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-tableview.d.ts +7 -0
  17. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  18. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  19. package/dist/plugin/billboardjs-plugin-textoverlap.d.ts +7 -0
  20. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  21. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  22. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +1463 -1364
  23. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +1466 -1367
  24. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +1465 -1366
  25. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +1466 -1367
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +1466 -1367
  27. package/dist/theme/datalab.css +1 -1
  28. package/dist/theme/datalab.min.css +1 -1
  29. package/dist/theme/graph.css +1 -1
  30. package/dist/theme/graph.min.css +1 -1
  31. package/dist/theme/insight.css +1 -1
  32. package/dist/theme/insight.min.css +1 -1
  33. package/dist-esm/billboard.js +131 -29
  34. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.d.ts +7 -0
  35. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  36. package/dist-esm/plugin/billboardjs-plugin-sparkline.d.ts +7 -0
  37. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +4 -4
  38. package/dist-esm/plugin/billboardjs-plugin-stanford.d.ts +7 -0
  39. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  40. package/dist-esm/plugin/billboardjs-plugin-tableview.d.ts +7 -0
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.d.ts +7 -0
  43. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  44. package/package.json +17 -16
  45. package/src/Chart/api/data.ts +3 -4
  46. package/src/ChartInternal/Axis/Axis.ts +13 -7
  47. package/src/ChartInternal/data/IData.ts +9 -0
  48. package/src/ChartInternal/data/data.ts +1 -1
  49. package/src/ChartInternal/shape/arc.ts +2 -0
  50. package/src/ChartInternal/shape/bar.ts +4 -2
  51. package/src/ChartInternal/shape/radar.ts +2 -0
  52. package/src/ChartInternal/shape/shape.ts +39 -9
  53. package/src/Plugin/sparkline/index.ts +2 -2
  54. package/src/config/Options/axis/x.ts +25 -5
  55. package/src/config/Options/axis/y.ts +24 -3
  56. package/src/config/Options/axis/y2.ts +24 -3
  57. package/src/config/Options/shape/bar.ts +8 -0
  58. package/types/axis.d.ts +18 -4
  59. package/types/options.d.ts +32 -32
  60. package/types/plugin/tableview/index.d.ts +3 -3
  61. package/types/plugin/tableview/options.d.ts +1 -1
@@ -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.0-next.1
8
+ * @version 3.3.0-next.2
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.0-next.1
8
+ * @version 3.3.0-next.2
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.3.0-next.1
8
+ * @version 3.3.0-next.2
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.0-next.1
8
+ * @version 3.3.0-next.2
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.3.0-next.1
8
+ * @version 3.3.0-next.2
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.0-next.1
8
+ * @version 3.3.0-next.2
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.3.0-next.1
8
+ * @version 3.3.0-next.2
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
@@ -3416,7 +3416,7 @@ var data$1 = {
3416
3416
  var value = $$.filterTargetsToShow($$.data.targets)
3417
3417
  .map(function (t) { return $$.addName($$.getValueOnIndex(t.values, index)); });
3418
3418
  if (filterNull) {
3419
- value = value.filter(function (v) { return isValue(v.value); });
3419
+ value = value.filter(function (v) { return v && "value" in v && isValue(v.value); });
3420
3420
  }
3421
3421
  return value;
3422
3422
  },
@@ -6162,6 +6162,19 @@ var shape = {
6162
6162
  }
6163
6163
  return shape;
6164
6164
  },
6165
+ /**
6166
+ * Get shape's indices according it's position
6167
+ *
6168
+ * From the below example, indices will be:
6169
+ * ==> {data1: 0, data2: 0, data3: 1, data4: 1, __max__: 1}
6170
+ *
6171
+ * data1 data3 data1 data3
6172
+ * data2 data4 data2 data4
6173
+ * -------------------------
6174
+ * 0 1
6175
+ * @param {Function} typeFilter Chart type filter function
6176
+ * @returns {object} Indices object with its position
6177
+ */
6165
6178
  getShapeIndices: function (typeFilter) {
6166
6179
  var $$ = this;
6167
6180
  var config = $$.config;
@@ -6201,12 +6214,25 @@ var shape = {
6201
6214
  /**
6202
6215
  * Get indices value based on data ID value
6203
6216
  * @param {object} indices Indices object
6204
- * @param {string} id Data id value
6217
+ * @param {object} d Data row
6218
+ * @param {string} caller Caller function name (Used only for 'sparkline' plugin)
6205
6219
  * @returns {object} Indices object
6206
6220
  * @private
6207
6221
  */
6208
- getIndices: function (indices, id) {
6209
- var xs = this.config.data_xs;
6222
+ getIndices: function (indices, d, caller) {
6223
+ var $$ = this;
6224
+ var _a = $$.config, xs = _a.data_xs, removeNull = _a.bar_indices_removeNull;
6225
+ var id = d.id, index = d.index;
6226
+ if ($$.isBarType(id) && removeNull) {
6227
+ var ind_1 = {};
6228
+ // redefine bar indices order
6229
+ $$.getAllValuesOnIndex(index, true)
6230
+ .forEach(function (v, i) {
6231
+ ind_1[v.id] = i;
6232
+ ind_1.__max__ = i;
6233
+ });
6234
+ return ind_1;
6235
+ }
6210
6236
  return notEmpty(xs) ?
6211
6237
  indices[xs[id]] : indices;
6212
6238
  },
@@ -6231,7 +6257,7 @@ var shape = {
6231
6257
  var sum = function (p, c) { return p + c; };
6232
6258
  var halfWidth = isObjectType(offset) && (offset._$total.length ? offset._$total.reduce(sum) / 2 : 0);
6233
6259
  return function (d) {
6234
- var ind = $$.getIndices(indices, d.id, "getShapeX");
6260
+ var ind = $$.getIndices(indices, d, "getShapeX");
6235
6261
  var index = d.id in ind ? ind[d.id] : 0;
6236
6262
  var targetsNum = (ind.__max__ || 0) + 1;
6237
6263
  var x = 0;
@@ -6335,7 +6361,7 @@ var shape = {
6335
6361
  var _a = $$.getShapeOffsetData(typeFilter), shapeOffsetTargets = _a.shapeOffsetTargets, indexMapByTargetId = _a.indexMapByTargetId;
6336
6362
  return function (d, idx) {
6337
6363
  var id = d.id, value = d.value, x = d.x;
6338
- var ind = $$.getIndices(indices, id);
6364
+ var ind = $$.getIndices(indices, d);
6339
6365
  var scale = $$.getYScaleById(id, isSub);
6340
6366
  if ($$.isBarRangeType(d)) {
6341
6367
  // TODO use range.getStart()
@@ -11909,12 +11935,14 @@ var Axis = /** @class */ (function () {
11909
11935
  var axis = $el.axis[type];
11910
11936
  // subchart x axis should be aligned with x axis culling
11911
11937
  var id = type === "subX" ? "x" : type;
11912
- var toCull = config["axis_".concat(id, "_tick_culling")];
11938
+ var cullingOptionPrefix = "axis_".concat(id, "_tick_culling");
11939
+ var toCull = config[cullingOptionPrefix];
11913
11940
  if (axis && toCull) {
11914
- var tickText = axis.selectAll(".tick text");
11915
- var tickValues_1 = sortValue(tickText.data());
11941
+ var tickNodes = axis.selectAll(".tick");
11942
+ var tickValues_1 = sortValue(tickNodes.data());
11916
11943
  var tickSize = tickValues_1.length;
11917
- var cullingMax = config["axis_".concat(id, "_tick_culling_max")];
11944
+ var cullingMax = config["".concat(cullingOptionPrefix, "_max")];
11945
+ var lines_1 = config["".concat(cullingOptionPrefix, "_lines")];
11918
11946
  var intervalForCulling_1;
11919
11947
  if (tickSize) {
11920
11948
  for (var i = 1; i < tickSize; i++) {
@@ -11923,12 +11951,15 @@ var Axis = /** @class */ (function () {
11923
11951
  break;
11924
11952
  }
11925
11953
  }
11926
- tickText.each(function (d) {
11927
- this.style.display = tickValues_1.indexOf(d) % intervalForCulling_1 ? "none" : null;
11954
+ tickNodes.each(function (d) {
11955
+ if (tickValues_1.indexOf(d) % intervalForCulling_1) {
11956
+ (lines_1 ? this.querySelector("text") : this)
11957
+ .style.display = "none";
11958
+ }
11928
11959
  });
11929
11960
  }
11930
11961
  else {
11931
- tickText.style("display", null);
11962
+ tickNodes.style("display", null);
11932
11963
  }
11933
11964
  // set/unset x_axis_tick_clippath
11934
11965
  if (type === "x") {
@@ -13652,15 +13683,16 @@ var x = {
13652
13683
  */
13653
13684
  axis_x_tick_format: undefined,
13654
13685
  /**
13655
- * Setting for culling ticks.<br><br>
13656
- * If true is set, the ticks will be culled, then only limitted tick text will be shown. This option does not hide the tick lines. If false is set, all of ticks will be shown.<br><br>
13657
- * We can change the number of ticks to be shown by axis.x.tick.culling.max.
13686
+ * Setting for culling ticks.
13687
+ * - `true`: the ticks will be culled, then only limited tick text will be shown.<br>
13688
+ * This option does not hide the tick lines by default, if want to hide tick lines, set `axis.x.tick.culling.lines=false`.
13689
+ * - `false`: all of ticks will be shown.<br><br>
13690
+ * The number of ticks to be shown can be chaned by `axis.x.tick.culling.max`.
13658
13691
  * @name axis․x․tick․culling
13659
13692
  * @memberof Options
13660
13693
  * @type {boolean}
13661
13694
  * @default
13662
- * - true for indexed axis and timeseries axis
13663
- * - false for category axis
13695
+ * `true` for indexed axis and timeseries axis, `false` for category axis
13664
13696
  * @example
13665
13697
  * axis: {
13666
13698
  * x: {
@@ -13689,6 +13721,24 @@ var x = {
13689
13721
  * }
13690
13722
  */
13691
13723
  axis_x_tick_culling_max: 10,
13724
+ /**
13725
+ * Control visibility of tick lines within culling option, along with tick text.
13726
+ * @name axis․x․tick․culling․lines
13727
+ * @memberof Options
13728
+ * @type {boolean}
13729
+ * @default true
13730
+ * @example
13731
+ * axis: {
13732
+ * x: {
13733
+ * tick: {
13734
+ * culling: {
13735
+ * lines: false,
13736
+ * }
13737
+ * }
13738
+ * }
13739
+ * }
13740
+ */
13741
+ axis_x_tick_culling_lines: true,
13692
13742
  /**
13693
13743
  * The number of x axis ticks to show.<br><br>
13694
13744
  * This option hides tick lines together with tick text. If this option is used on timeseries axis, the ticks position will be determined precisely and not nicely positioned (e.g. it will have rough second value).
@@ -14330,9 +14380,11 @@ var y = {
14330
14380
  */
14331
14381
  axis_y_tick_format: undefined,
14332
14382
  /**
14333
- * Setting for culling ticks.<br><br>
14334
- * If true is set, the ticks will be culled, then only limitted tick text will be shown. This option does not hide the tick lines. If false is set, all of ticks will be shown.<br><br>
14335
- * We can change the number of ticks to be shown by axis.y.tick.culling.max.
14383
+ * Setting for culling ticks.
14384
+ * - `true`: the ticks will be culled, then only limited tick text will be shown.<br>
14385
+ * This option does not hide the tick lines by default, if want to hide tick lines, set `axis.y.tick.culling.lines=false`.
14386
+ * - `false`: all of ticks will be shown.<br><br>
14387
+ * The number of ticks to be shown can be chaned by `axis.y.tick.culling.max`.
14336
14388
  * @name axis․y․tick․culling
14337
14389
  * @memberof Options
14338
14390
  * @type {boolean}
@@ -14365,6 +14417,24 @@ var y = {
14365
14417
  * }
14366
14418
  */
14367
14419
  axis_y_tick_culling_max: 5,
14420
+ /**
14421
+ * Control visibility of tick lines within culling option, along with tick text.
14422
+ * @name axis․y․tick․culling․lines
14423
+ * @memberof Options
14424
+ * @type {boolean}
14425
+ * @default true
14426
+ * @example
14427
+ * axis: {
14428
+ * y: {
14429
+ * tick: {
14430
+ * culling: {
14431
+ * lines: false,
14432
+ * }
14433
+ * }
14434
+ * }
14435
+ * }
14436
+ */
14437
+ axis_y_tick_culling_lines: true,
14368
14438
  /**
14369
14439
  * Show y axis outer tick.
14370
14440
  * @name axis․y․tick․outer
@@ -14784,9 +14854,11 @@ var y2 = {
14784
14854
  */
14785
14855
  axis_y2_tick_format: undefined,
14786
14856
  /**
14787
- * Setting for culling ticks.<br><br>
14788
- * If true is set, the ticks will be culled, then only limitted tick text will be shown. This option does not hide the tick lines. If false is set, all of ticks will be shown.<br><br>
14789
- * We can change the number of ticks to be shown by axis.y.tick.culling.max.
14857
+ * Setting for culling ticks.
14858
+ * - `true`: the ticks will be culled, then only limited tick text will be shown.<br>
14859
+ * This option does not hide the tick lines by default, if want to hide tick lines, set `axis.y2.tick.culling.lines=false`.
14860
+ * - `false`: all of ticks will be shown.<br><br>
14861
+ * The number of ticks to be shown can be chaned by `axis.y2.tick.culling.max`.
14790
14862
  * @name axis․y2․tick․culling
14791
14863
  * @memberof Options
14792
14864
  * @type {boolean}
@@ -14819,6 +14891,24 @@ var y2 = {
14819
14891
  * }
14820
14892
  */
14821
14893
  axis_y2_tick_culling_max: 5,
14894
+ /**
14895
+ * Control visibility of tick lines within culling option, along with tick text.
14896
+ * @name axis․y2․tick․culling․lines
14897
+ * @memberof Options
14898
+ * @type {boolean}
14899
+ * @default true
14900
+ * @example
14901
+ * axis: {
14902
+ * y2: {
14903
+ * tick: {
14904
+ * culling: {
14905
+ * lines: false,
14906
+ * }
14907
+ * }
14908
+ * }
14909
+ * }
14910
+ */
14911
+ axis_y2_tick_culling_lines: true,
14822
14912
  /**
14823
14913
  * Show or hide y2 axis outer tick.
14824
14914
  * @name axis․y2․tick․outer
@@ -15795,6 +15885,7 @@ var shapeArc = {
15795
15885
  if (state.transiting) { // skip while transiting
15796
15886
  return;
15797
15887
  }
15888
+ state.event = event;
15798
15889
  var eventArc = getEventArc_1(event);
15799
15890
  var datum = eventArc.datum();
15800
15891
  var updated = ((datum === null || datum === void 0 ? void 0 : datum.data) && datum.data.id) ? $$.updateAngle(datum) : null;
@@ -16143,8 +16234,10 @@ var shapeBar = {
16143
16234
  var isNegative = d.value < 0;
16144
16235
  var pathRadius = ["", ""];
16145
16236
  var radius = 0;
16146
- var isRadiusData = $$.isGrouped(d.id) ? $$.isStackingRadiusData(d) : false;
16147
- if ((d.value !== 0 && getRadius) && (!$$.isGrouped(d.id) || isRadiusData)) {
16237
+ var isGrouped = $$.isGrouped(d.id);
16238
+ var hasRadius = d.value !== 0 && getRadius;
16239
+ var isRadiusData = hasRadius && isGrouped ? $$.isStackingRadiusData(d) : false;
16240
+ if (hasRadius && (!isGrouped || isRadiusData)) {
16148
16241
  var index = isRotated ? indexY : indexX;
16149
16242
  var barW = points[2][index] - points[0][index];
16150
16243
  radius = getRadius(barW);
@@ -17566,6 +17659,7 @@ var shapeRadar = {
17566
17659
  return d && Object.keys(d).length === 1 ? d.index : undefined;
17567
17660
  };
17568
17661
  var hide = function (event) {
17662
+ state.event = event;
17569
17663
  var index = getIndex_1(event);
17570
17664
  var noIndex = isUndefined(index);
17571
17665
  if (isMouse_1 || noIndex) {
@@ -17816,6 +17910,7 @@ var optBar = {
17816
17910
  * @memberof Options
17817
17911
  * @type {object}
17818
17912
  * @property {object} bar Bar object
17913
+ * @property {number} [bar.indices.removeNull=false] Remove nullish data on bar indices positions.
17819
17914
  * @property {number} [bar.label.threshold=0] Set threshold ratio to show/hide labels.
17820
17915
  * @property {number} [bar.padding=0] The padding pixel value between each bar.
17821
17916
  * @property {number} [bar.radius] Set the radius of bar edge in pixel.
@@ -17831,12 +17926,18 @@ var optBar = {
17831
17926
  * @property {number} [bar.width.dataname.ratio=0.6] Change the width of bar chart by ratio.
17832
17927
  * @property {number} [bar.width.dataname.max] The maximum width value for ratio.
17833
17928
  * @property {boolean} [bar.zerobased=true] Set if min or max value will be 0 on bar chart.
17929
+ * @see [Demo: bar indices](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarIndices)
17834
17930
  * @see [Demo: bar padding](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarPadding)
17835
17931
  * @see [Demo: bar radius](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarRadius)
17836
17932
  * @see [Demo: bar width](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarWidth)
17837
17933
  * @see [Demo: bar width variant](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarWidthVariant)
17838
17934
  * @example
17839
17935
  * bar: {
17936
+ * // remove nullish data on bar indices postions
17937
+ * indices: {
17938
+ * removeNull: true
17939
+ * },
17940
+ *
17840
17941
  * padding: 1,
17841
17942
  *
17842
17943
  * // bar radius
@@ -17876,6 +17977,7 @@ var optBar = {
17876
17977
  * }
17877
17978
  */
17878
17979
  bar_label_threshold: 0,
17980
+ bar_indices_removeNull: false,
17879
17981
  bar_padding: 0,
17880
17982
  bar_radius: undefined,
17881
17983
  bar_radius_ratio: undefined,
@@ -20185,7 +20287,7 @@ var zoomModule = function () {
20185
20287
  var defaults = {};
20186
20288
  /**
20187
20289
  * @namespace bb
20188
- * @version 3.3.0-next.1
20290
+ * @version 3.3.0-next.2
20189
20291
  */
20190
20292
  var bb = {
20191
20293
  /**
@@ -20195,7 +20297,7 @@ var bb = {
20195
20297
  * bb.version; // "1.0.0"
20196
20298
  * @memberof bb
20197
20299
  */
20198
- version: "3.3.0-next.1",
20300
+ version: "3.3.0-next.2",
20199
20301
  /**
20200
20302
  * Generate chart
20201
20303
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2017 ~ present NAVER Corp.
3
+ * billboard.js project is licensed under the MIT license
4
+ */
5
+ import PluginClass from "../../types/plugin/bubblecompare";
6
+
7
+ export default PluginClass;
@@ -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.0-next.1
8
+ * @version 3.3.0-next.2
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.3.0-next.1#";
147
+ Plugin.version = "#3.3.0-next.2#";
148
148
 
149
149
  /**
150
150
  * Bubble compare diagram plugin.<br>
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2017 ~ present NAVER Corp.
3
+ * billboard.js project is licensed under the MIT license
4
+ */
5
+ import PluginClass from "../../types/plugin/sparkline";
6
+
7
+ export default PluginClass;
@@ -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.0-next.1
8
+ * @version 3.3.0-next.2
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.3.0-next.1#";
271
+ Plugin.version = "#3.3.0-next.2#";
272
272
 
273
273
  /**
274
274
  * Copyright (c) 2021 ~ present NAVER Corp.
@@ -527,8 +527,8 @@ var Sparkline = /** @class */ (function (_super) {
527
527
  var $$ = this.$$;
528
528
  var getBarW = $$.getBarW, getIndices = $$.getIndices;
529
529
  // override internal methods to positioning bars
530
- $$.getIndices = function (indices, id, caller) {
531
- return caller === "getShapeX" ? {} : getIndices.call(this, indices, id);
530
+ $$.getIndices = function (indices, d, caller) {
531
+ return caller === "getShapeX" ? {} : getIndices.call(this, indices, d);
532
532
  };
533
533
  $$.getBarW = function (type, axis) {
534
534
  return getBarW.call(this, type, axis, 1);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2017 ~ present NAVER Corp.
3
+ * billboard.js project is licensed under the MIT license
4
+ */
5
+ import PluginClass from "../../types/plugin/stanford";
6
+
7
+ export default PluginClass;
@@ -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.0-next.1
8
+ * @version 3.3.0-next.2
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.3.0-next.1#";
470
+ Plugin.version = "#3.3.0-next.2#";
471
471
 
472
472
  /**
473
473
  * Copyright (c) 2017 ~ present NAVER Corp.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2017 ~ present NAVER Corp.
3
+ * billboard.js project is licensed under the MIT license
4
+ */
5
+ import PluginClass from "../../types/plugin/tableview";
6
+
7
+ export default PluginClass;
@@ -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.0-next.1
8
+ * @version 3.3.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -170,7 +170,7 @@ var Plugin = /*#__PURE__*/function () {
170
170
  return Plugin;
171
171
  }();
172
172
 
173
- Plugin.version = "#3.3.0-next.1#";
173
+ Plugin.version = "#3.3.0-next.2#";
174
174
 
175
175
  /**
176
176
  * Copyright (c) 2021 ~ present NAVER Corp.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) 2017 ~ present NAVER Corp.
3
+ * billboard.js project is licensed under the MIT license
4
+ */
5
+ import PluginClass from "../../types/plugin/textoverlap";
6
+
7
+ export default PluginClass;
@@ -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.0-next.1
8
+ * @version 3.3.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -300,7 +300,7 @@ var Plugin = /*#__PURE__*/function () {
300
300
  return Plugin;
301
301
  }();
302
302
 
303
- Plugin.version = "#3.3.0-next.1#";
303
+ Plugin.version = "#3.3.0-next.2#";
304
304
 
305
305
  /**
306
306
  * Copyright (c) 2017 ~ present NAVER Corp.