billboard.js 3.16.0-next.2 → 3.16.0

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 (46) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +95 -91
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +8 -8
  5. package/dist/billboard.pkgd.js +95 -91
  6. package/dist/billboard.pkgd.min.js +13 -13
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/billboard.js +128 -114
  38. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  39. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  40. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  43. package/package.json +11 -11
  44. package/src/ChartInternal/ChartInternal.ts +51 -60
  45. package/src/ChartInternal/data/convert.ts +71 -45
  46. package/src/config/Options/axis/y2.ts +0 -13
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
9
9
  */
10
10
  /*-- Dark 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.16.0-next.2
8
+ * @version 3.16.0
9
9
  */.bb-color-pattern{background-image:url(#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;)}.bb svg{font-size:12px;font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#8d9cab}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#8d9cab;font-size:11px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid,.bb-line{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#8d9cab}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#8d9cab}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#5c666e}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ccd9e6}.bb-text.bb-empty{fill:#8d9cab}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px;stroke:8d9cab}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.selection{stroke:none;fill:#ccd9e6}.bb-selected-circle{fill:#ccd9e6;stroke-width:2px}.bb-bar{stroke-width:.5px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.5!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.5}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.25;fill:#ccd9e6}.bb-brush .extent{fill-opacity:.5}.bb-legend-item{user-select:none}.bb-legend-item line{stroke-width:10px;stroke-dasharray:3px}.bb-legend-item text{transform:translateY(-1px)}.bb-legend-item-hidden{opacity:.5}.bb-legend-background{opacity:.75;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#8d9cab;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;user-select:none;transform:translateZ(0)}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #828181;border-radius:5px;background-color:#000;text-align:left;font-size:11px;color:#fff;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:solid 1px #828181}.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{display:inline-block;width:7px;height:7px;margin:-1px 6px 0 0;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.5}.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:#3f3f3f;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#828181;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#b6c2ce;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#b6c2ce}.bb-chart-arc rect{stroke:#8d9cab;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{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#000;color:#fff;padding:5px;border-radius:5px;cursor:pointer}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
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.16.0-next.2
8
+ * @version 3.16.0
9
9
  */.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-size:11px;font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#000}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-font-smoothing:antialiased;user-select:none;fill:#555;font-size:11px}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{stroke-width:.7px}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.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:#27c9030d}.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-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none;transform:translateZ(0)}.bb-tooltip{border-collapse:separate;border-spacing:0;border-radius:2px;empty-cells:show;border:1px solid #999;background-color:#fff;text-align:left;font-size:11px;-webkit-font-smoothing:antialiased;white-space:nowrap}.bb-tooltip th{font-size:13px;padding:2px 8px;text-align:left;border-bottom:solid 2px #ff2d2d;background-color:#0b00b1;color:#fffdfd}.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{display:inline-block;width:8px;height:8px;margin-right:6px;border:solid 1px #000;border-radius:3px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:11px}.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-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:18px!important;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-line{shape-rendering:crispEdges}.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{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:.7px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
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.16.0-next.2
8
+ * @version 3.16.0
9
9
  */.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-size:12px;font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#8c8c8c}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:12px;letter-spacing:-.3px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.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:#27c9030d}.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_{stroke-width:2px}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-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1px}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none;transform:translateZ(0)}.bb-tooltip{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;border-radius:2px;background-color:#fff;text-align:left;font-size:12px;box-shadow:.5px .5px 1px #999;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:center;border-bottom:dotted 1px #000;background-color:#efefef;color:#000}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{padding:3px 6px;background-color:#fff;border-bottom:solid 1px #eee}.bb-tooltip td:first-child{padding-left:5px;border-right:solid 1px #eee}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:5px;height:12px;margin-right:6px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800}.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-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#8c8c8c;font-style:italic}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.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{font-size:1.15em;font-weight:700;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer;opacity:.8;box-shadow:1px 1px 2px #ccc}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
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.16.0-next.2
8
+ * @version 3.16.0
9
9
  */.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-size:12px;font-family:sans-serif,Arial,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#c4c4c4}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:11px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.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:#27c9030d}.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-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none;transform:translateZ(0)}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;background-color:#fff;text-align:left;font-size:11px;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:solid 1px #eee}.bb-tooltip td{padding:4px 6px;background-color:#fff}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.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-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.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{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
9
9
  */
10
10
  @charset "UTF-8";
11
11
  /*-- Insight Theme --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
9
9
  */.bb-color-pattern{background-image:url(#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;)}.bb svg{font-size:12px;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;line-height:1}.bb path,.bb line{fill:none;stroke:#cecece}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:10.5px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.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:#27c9030d}.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:#d2bad8}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{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-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#71808d}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.1;fill:#838181}.bb-brush .extent{fill-opacity:.1}.bb-brush .selection{fill:#838181;fill-opacity:.2}.bb-brush path{stroke:#838181}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:.5px}.bb-tooltip-container{z-index:10;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;user-select:none;transform:translateZ(0)}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;color:#fff;border-radius:5px;background-color:#404244;text-align:left;font-size:11px;white-space:nowrap;opacity:.9}.bb-tooltip th{font-size:11px;padding:3px 6px 0;text-align:left}.bb-tooltip td{padding:3px}.bb-tooltip td:first-child{padding-left:7px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;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{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.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:#ccc}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:1.8em;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.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:11px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:1px solid #999;background-color:#404244;color:#fff;opacity:.9;padding:5px;border-radius:5px;cursor:pointer}
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
9
9
  */
10
10
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
11
11
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
@@ -3882,6 +3882,55 @@ function getDataKeyForJson(keysParam, config) {
3882
3882
  }
3883
3883
  return keys;
3884
3884
  }
3885
+ /**
3886
+ * Set `xs` for each id
3887
+ * @param {string[]} ids Ids to set xs
3888
+ * @param {object[]} data Data to set xs from
3889
+ * @param {object} params Parameters for setting xs
3890
+ * @param {boolean} params.appendXs Whether to append xs
3891
+ * @param {string[]} params.xs X keys to set xs from
3892
+ * @param {boolean} params.categorized Whether the axis is categorized
3893
+ * @param {boolean} params.timeSeries Whether the axis is time series
3894
+ * @param {boolean} params.customX Whether the x is custom
3895
+ * @private
3896
+ */
3897
+ function setXS(ids, data, params) {
3898
+ var _this = this;
3899
+ var $$ = this;
3900
+ var config = $$.config;
3901
+ var xsData;
3902
+ ids.forEach(function (id) {
3903
+ var xKey = $$.getXKey(id);
3904
+ if (params.customX || params.timeSeries) {
3905
+ // if included in input data
3906
+ if (params.xs.indexOf(xKey) >= 0) {
3907
+ xsData = ((params.appendXs && $$.data.xs[id]) || [])
3908
+ .concat(data.map(function (d, i) {
3909
+ var rawX = isValue(d[xKey]);
3910
+ return rawX ? $$.generateTargetX(rawX, id, i) : false;
3911
+ }).filter(function (v) { return v !== false; }));
3912
+ }
3913
+ else if (config.data_x) {
3914
+ // if not included in input data, find from preloaded data of other id's x
3915
+ xsData = _this.getOtherTargetXs();
3916
+ }
3917
+ else if (notEmpty(config.data_xs)) {
3918
+ // if not included in input data, find from preloaded data
3919
+ xsData = $$.getXValuesOfXKey(xKey, $$.data.targets);
3920
+ }
3921
+ // MEMO: if no x included, use same x of current will be used
3922
+ }
3923
+ else {
3924
+ xsData = data.map(function (d, i) { return i; });
3925
+ }
3926
+ if (xsData) {
3927
+ $$.data.xs[id] = xsData;
3928
+ }
3929
+ else {
3930
+ throw new Error("x is not defined for id = \"".concat(id, "\"."));
3931
+ }
3932
+ });
3933
+ }
3885
3934
  /**
3886
3935
  * Data convert
3887
3936
  * @memberof ChartInternal
@@ -3924,19 +3973,17 @@ var dataConvert = {
3924
3973
  throw Error("url or json or rows or columns is required.");
3925
3974
  }
3926
3975
  },
3976
+ /**
3977
+ * Convert data to targets
3978
+ * @param {object[]} data Data to convert
3979
+ * @param {boolean} appendXs Whether to append xs
3980
+ * @returns {IData[]} Converted targets
3981
+ * @private
3982
+ */
3927
3983
  convertDataToTargets: function (data, appendXs) {
3928
- var _this = this;
3929
3984
  var $$ = this;
3930
3985
  var axis = $$.axis, config = $$.config, state = $$.state;
3931
3986
  var chartType = config.data_type;
3932
- var isCategorized = false;
3933
- var isTimeSeries = false;
3934
- var isCustomX = false;
3935
- if (axis) {
3936
- isCategorized = axis.isCategorized();
3937
- isTimeSeries = axis.isTimeSeries();
3938
- isCustomX = axis.isCustomX();
3939
- }
3940
3987
  var dataKeys = Object.keys(data[0] || {});
3941
3988
  // Extract ids and xs from data keys to handle x and non-x values
3942
3989
  var _a = dataKeys.length ?
@@ -3950,44 +3997,21 @@ var dataConvert = {
3950
3997
  return acc;
3951
3998
  }, { ids: [], xs: [] }) :
3952
3999
  { ids: [], xs: [] }, ids = _a.ids, xs = _a.xs;
3953
- var xsData;
4000
+ var params = {
4001
+ appendXs: appendXs,
4002
+ xs: xs,
4003
+ idConverter: config.data_idConverter.bind($$.api),
4004
+ categorized: axis === null || axis === void 0 ? void 0 : axis.isCategorized(),
4005
+ timeSeries: axis === null || axis === void 0 ? void 0 : axis.isTimeSeries(),
4006
+ customX: axis === null || axis === void 0 ? void 0 : axis.isCustomX()
4007
+ };
3954
4008
  // save x for update data by load when custom x and bb.x API
3955
- ids.forEach(function (id) {
3956
- var xKey = _this.getXKey(id);
3957
- if (isCustomX || isTimeSeries) {
3958
- // if included in input data
3959
- if (xs.indexOf(xKey) >= 0) {
3960
- xsData = ((appendXs && $$.data.xs[id]) || [])
3961
- .concat(data.map(function (d) { return d[xKey]; })
3962
- .filter(isValue)
3963
- .map(function (rawX, i) { return $$.generateTargetX(rawX, id, i); }));
3964
- }
3965
- else if (config.data_x) {
3966
- // if not included in input data, find from preloaded data of other id's x
3967
- xsData = _this.getOtherTargetXs();
3968
- }
3969
- else if (notEmpty(config.data_xs)) {
3970
- // if not included in input data, find from preloaded data
3971
- xsData = $$.getXValuesOfXKey(xKey, $$.data.targets);
3972
- }
3973
- // MEMO: if no x included, use same x of current will be used
3974
- }
3975
- else {
3976
- xsData = data.map(function (d, i) { return i; });
3977
- }
3978
- xsData && (_this.data.xs[id] = xsData);
3979
- });
3980
- // check x is defined
3981
- ids.forEach(function (id) {
3982
- if (!_this.data.xs[id]) {
3983
- throw new Error("x is not defined for id = \"".concat(id, "\"."));
3984
- }
3985
- });
4009
+ setXS.bind($$)(ids, data, params);
3986
4010
  // convert to target
3987
4011
  var targets = ids.map(function (id, index) {
3988
4012
  var convertedId = config.data_idConverter.bind($$.api)(id);
3989
4013
  var xKey = $$.getXKey(id);
3990
- var isCategory = isCustomX && isCategorized;
4014
+ var isCategory = params.customX && params.categorized;
3991
4015
  var hasCategory = isCategory && (function () {
3992
4016
  var categorySet = new Set(config.axis_x_categories);
3993
4017
  return data.every(function (v) { return categorySet.has(v.x); });
@@ -9917,15 +9941,16 @@ var ChartInternal = /** @class */ (function () {
9917
9941
  ChartInternal.prototype.init = function () {
9918
9942
  var $$ = this;
9919
9943
  var config = $$.config, state = $$.state, $el = $$.$el;
9920
- var useCssRule = config.boost_useCssRule;
9944
+ var boost_useCssRule = config.boost_useCssRule, bindto = config.bindto;
9921
9945
  checkModuleImport($$);
9946
+ var hasArcType = $$.hasArcType();
9922
9947
  state.hasRadar = !state.hasAxis && $$.hasType("radar");
9923
9948
  state.hasFunnel = !state.hasAxis && $$.hasType("funnel");
9924
9949
  state.hasTreemap = !state.hasAxis && $$.hasType("treemap");
9925
- state.hasAxis = !$$.hasArcType() && !state.hasFunnel && !state.hasTreemap;
9950
+ state.hasAxis = !hasArcType && !state.hasFunnel && !state.hasTreemap;
9926
9951
  // datetime to be used for uniqueness
9927
9952
  state.datetimeId = "bb-".concat(+new Date() * getRandom());
9928
- if (useCssRule) {
9953
+ if (boost_useCssRule) {
9929
9954
  // append style element
9930
9955
  var styleEl = doc.createElement("style");
9931
9956
  // styleEl.id = styleId;
@@ -9938,24 +9963,24 @@ var ChartInternal = /** @class */ (function () {
9938
9963
  // used on .destroy()
9939
9964
  $el.style = styleEl;
9940
9965
  }
9941
- var bindto = {
9942
- element: config.bindto,
9966
+ var bindConfig = {
9967
+ element: bindto,
9943
9968
  classname: "bb"
9944
9969
  };
9945
- if (isObject(config.bindto)) {
9946
- bindto.element = config.bindto.element || "#chart";
9947
- bindto.classname = config.bindto.classname || bindto.classname;
9970
+ if (isObject(bindto)) {
9971
+ bindConfig.element = bindto.element || "#chart";
9972
+ bindConfig.classname = bindto.classname || bindConfig.classname;
9948
9973
  }
9949
9974
  // select bind element
9950
- $el.chart = isFunction(bindto.element.node) ?
9951
- config.bindto.element :
9952
- select(bindto.element || []);
9975
+ $el.chart = isFunction(bindConfig.element.node) ?
9976
+ bindto.element :
9977
+ select(bindConfig.element || []);
9953
9978
  if ($el.chart.empty()) {
9954
9979
  $el.chart = select(doc.body.appendChild(doc.createElement("div")));
9955
9980
  }
9956
9981
  $el.chart.html("")
9957
- .classed(bindto.classname, true)
9958
- .classed(state.datetimeId, useCssRule)
9982
+ .classed(bindConfig.classname, true)
9983
+ .classed(state.datetimeId, boost_useCssRule)
9959
9984
  .style("position", "relative");
9960
9985
  $$.initParams();
9961
9986
  $$.initToRender();
@@ -9993,7 +10018,6 @@ var ChartInternal = /** @class */ (function () {
9993
10018
  var _a;
9994
10019
  var $$ = this;
9995
10020
  var config = $$.config, format = $$.format, state = $$.state;
9996
- var isRotated = config.axis_rotated;
9997
10021
  // color settings
9998
10022
  $$.color = $$.generateColor();
9999
10023
  $$.levelColor = $$.generateLevelColor();
@@ -10012,7 +10036,7 @@ var ChartInternal = /** @class */ (function () {
10012
10036
  format.extraLineClasses = $$.generateExtraLineClass();
10013
10037
  format.dataTime = config.data_xLocaltime ? timeParse : utcParse;
10014
10038
  format.axisTime = config.axis_x_localtime ? timeFormat : utcFormat;
10015
- var isDragZoom_1 = $$.config.zoom_enabled && $$.config.zoom_type === "drag";
10039
+ var isDragZoom_1 = config.zoom_enabled && config.zoom_type === "drag";
10016
10040
  format.defaultAxisTime = function (d) {
10017
10041
  var _a = $$.scale, x = _a.x, zoom = _a.zoom;
10018
10042
  var isZoomed = isDragZoom_1 ?
@@ -10028,14 +10052,15 @@ var ChartInternal = /** @class */ (function () {
10028
10052
  return format.axisTime(specifier)(d);
10029
10053
  };
10030
10054
  }
10031
- state.isLegendRight = config.legend_position === "right";
10032
- state.isLegendInset = config.legend_position === "inset";
10033
- state.isLegendTop = config.legend_inset_anchor === "top-left" ||
10034
- config.legend_inset_anchor === "top-right";
10035
- state.isLegendLeft = config.legend_inset_anchor === "top-left" ||
10036
- config.legend_inset_anchor === "bottom-left";
10055
+ var legend_position = config.legend_position, legend_inset_anchor = config.legend_inset_anchor, axis_rotated = config.axis_rotated;
10056
+ state.isLegendRight = legend_position === "right";
10057
+ state.isLegendInset = legend_position === "inset";
10058
+ state.isLegendTop = legend_inset_anchor === "top-left" ||
10059
+ legend_inset_anchor === "top-right";
10060
+ state.isLegendLeft = legend_inset_anchor === "top-left" ||
10061
+ legend_inset_anchor === "bottom-left";
10037
10062
  state.rotatedPadding.top = $$.getResettedPadding(state.rotatedPadding.top);
10038
- state.rotatedPadding.right = isRotated && !config.axis_x_show ? 0 : 30;
10063
+ state.rotatedPadding.right = axis_rotated && !config.axis_x_show ? 0 : 30;
10039
10064
  state.inputType = convertInputType(config.interaction_inputType_mouse, config.interaction_inputType_touch);
10040
10065
  };
10041
10066
  ChartInternal.prototype.initWithData = function (data) {
@@ -10106,7 +10131,7 @@ var ChartInternal = /** @class */ (function () {
10106
10131
  labelsBGColor || ((_a = $$.hasLegendDefsPoint) === null || _a === void 0 ? void 0 : _a.call($$))) {
10107
10132
  $el.defs = $el.svg.append("defs");
10108
10133
  if (hasAxis) {
10109
- ["id", "idXAxis", "idYAxis", "idY2Axis", "idGrid"].forEach(function (v) {
10134
+ ["id", "idXAxis", "idYAxis", "idGrid"].forEach(function (v) {
10110
10135
  $$.appendClip($el.defs, state.clip[v]);
10111
10136
  });
10112
10137
  }
@@ -10196,12 +10221,13 @@ var ChartInternal = /** @class */ (function () {
10196
10221
  if ($$.config.bar_front) {
10197
10222
  shapes.push(shapes.shift());
10198
10223
  }
10199
- shapes.forEach(function (v) {
10200
- var name = capitalize(v);
10201
- if ((v === "line" && $$.hasTypeOf(name)) || $$.hasType(v)) {
10202
- types.push(name);
10224
+ for (var _i = 0, shapes_1 = shapes; _i < shapes_1.length; _i++) {
10225
+ var shape_1 = shapes_1[_i];
10226
+ var name_1 = capitalize(shape_1);
10227
+ if ((shape_1 === "line" && $$.hasTypeOf(name_1)) || $$.hasType(shape_1)) {
10228
+ types.push(name_1);
10203
10229
  }
10204
- });
10230
+ }
10205
10231
  }
10206
10232
  else if (hasTreemap) {
10207
10233
  types.push("Treemap");
@@ -10211,10 +10237,11 @@ var ChartInternal = /** @class */ (function () {
10211
10237
  }
10212
10238
  else {
10213
10239
  var hasPolar = $$.hasType("polar");
10240
+ var hasGauge = $$.hasType("gauge");
10214
10241
  if (!hasRadar) {
10215
10242
  types.push("Arc", "Pie");
10216
10243
  }
10217
- if ($$.hasType("gauge")) {
10244
+ if (hasGauge) {
10218
10245
  types.push("Gauge");
10219
10246
  }
10220
10247
  else if (hasRadar) {
@@ -10224,10 +10251,13 @@ var ChartInternal = /** @class */ (function () {
10224
10251
  types.push("Polar");
10225
10252
  }
10226
10253
  }
10227
- types.forEach(function (v) {
10228
- $$["init".concat(v)]();
10229
- });
10230
- notEmpty($$.config.data_labels) && !$$.hasArcType(null, ["radar"]) && $$.initText();
10254
+ for (var _b = 0, types_1 = types; _b < types_1.length; _b++) {
10255
+ var type = types_1[_b];
10256
+ $$["init".concat(type)]();
10257
+ }
10258
+ if (notEmpty($$.config.data_labels) && !$$.hasArcType(null, ["radar"])) {
10259
+ $$.initText();
10260
+ }
10231
10261
  };
10232
10262
  /**
10233
10263
  * Set chart elements
@@ -10285,24 +10315,25 @@ var ChartInternal = /** @class */ (function () {
10285
10315
  * @private
10286
10316
  */
10287
10317
  ChartInternal.prototype.updateTargets = function (targets) {
10288
- var _a;
10318
+ var _a, _b;
10289
10319
  var $$ = this;
10290
- var _b = $$.state, hasAxis = _b.hasAxis, hasFunnel = _b.hasFunnel, hasRadar = _b.hasRadar, hasTreemap = _b.hasTreemap;
10320
+ var _c = $$.state, hasAxis = _c.hasAxis, hasFunnel = _c.hasFunnel, hasRadar = _c.hasRadar, hasTreemap = _c.hasTreemap;
10291
10321
  var helper = function (type) {
10292
10322
  return $$["updateTargetsFor".concat(type)](targets.filter($$["is".concat(type, "Type")].bind($$)));
10293
10323
  };
10294
10324
  // Text
10295
10325
  $$.updateTargetsForText(targets);
10296
10326
  if (hasAxis) {
10297
- ["bar", "candlestick", "line"].forEach(function (v) {
10298
- var name = capitalize(v);
10299
- if ((v === "line" && $$.hasTypeOf(name)) || $$.hasType(v)) {
10300
- helper(name);
10327
+ var shapes = ["bar", "candlestick", "line"];
10328
+ for (var _i = 0, shapes_2 = shapes; _i < shapes_2.length; _i++) {
10329
+ var shape_2 = shapes_2[_i];
10330
+ var name_2 = capitalize(shape_2);
10331
+ if ((shape_2 === "line" && $$.hasTypeOf(name_2)) || $$.hasType(shape_2)) {
10332
+ helper(name_2);
10301
10333
  }
10302
- });
10334
+ }
10303
10335
  // Sub Chart
10304
- $$.updateTargetsForSubchart &&
10305
- $$.updateTargetsForSubchart(targets);
10336
+ (_a = $$.updateTargetsForSubchart) === null || _a === void 0 ? void 0 : _a.call($$, targets);
10306
10337
  // Arc, Polar, Radar
10307
10338
  }
10308
10339
  else if ($$.hasArcType(targets)) {
@@ -10324,7 +10355,7 @@ var ChartInternal = /** @class */ (function () {
10324
10355
  // Point types
10325
10356
  var hasPointType = $$.hasType("bubble") || $$.hasType("scatter");
10326
10357
  if (hasPointType) {
10327
- (_a = $$.updateTargetForCircle) === null || _a === void 0 ? void 0 : _a.call($$);
10358
+ (_b = $$.updateTargetForCircle) === null || _b === void 0 ? void 0 : _b.call($$);
10328
10359
  }
10329
10360
  // Fade-in each chart
10330
10361
  $$.filterTargetsToShowAtInit(hasPointType);
@@ -10361,31 +10392,26 @@ var ChartInternal = /** @class */ (function () {
10361
10392
  TransitionForAxis: "Transition",
10362
10393
  Y: true
10363
10394
  };
10364
- Object.keys(withOptions).forEach(function (key) {
10365
- var defVal = withOptions[key];
10366
- if (isString(defVal)) {
10367
- defVal = withOptions[defVal];
10368
- }
10369
- withOptions[key] = getOption(options, "with".concat(key), defVal);
10370
- });
10395
+ for (var _i = 0, _a = Object.entries(withOptions); _i < _a.length; _i++) {
10396
+ var _b = _a[_i], key = _b[0], defVal = _b[1];
10397
+ var value = isString(defVal) ? withOptions[defVal] : defVal;
10398
+ withOptions[key] = getOption(options, "with".concat(key), value);
10399
+ }
10371
10400
  return withOptions;
10372
10401
  };
10373
10402
  ChartInternal.prototype.initialOpacity = function (d) {
10374
10403
  var $$ = this;
10375
10404
  var withoutFadeIn = $$.state.withoutFadeIn;
10376
- var r = $$.getBaseValue(d) !== null &&
10377
- withoutFadeIn[d.id] ?
10378
- null :
10379
- "0";
10380
- return r;
10405
+ return $$.getBaseValue(d) !== null && withoutFadeIn[d.id] ? null : "0";
10381
10406
  };
10382
10407
  ChartInternal.prototype.bindResize = function () {
10383
10408
  var $$ = this;
10384
10409
  var $el = $$.$el, config = $$.config, state = $$.state;
10385
10410
  var resizeFunction = generateResize(config.resize_timer);
10411
+ var resize_auto = config.resize_auto;
10386
10412
  var list = [];
10387
10413
  list.push(function () { return callFn(config.onresize, $$.api); });
10388
- if (/^(true|parent)$/.test(config.resize_auto)) {
10414
+ if (/^(true|parent)$/.test(resize_auto)) {
10389
10415
  list.push(function () {
10390
10416
  state.resizing = true;
10391
10417
  // https://github.com/naver/billboard.js/issues/2650
@@ -10404,7 +10430,7 @@ var ChartInternal = /** @class */ (function () {
10404
10430
  list.forEach(function (v) { return resizeFunction.add(v); });
10405
10431
  $$.resizeFunction = resizeFunction;
10406
10432
  // attach resize event
10407
- if (config.resize_auto === "parent") {
10433
+ if (resize_auto === "parent") {
10408
10434
  ($$.resizeFunction.resizeObserver = new ResizeObserver($$.resizeFunction.bind($$)))
10409
10435
  .observe($el.chart.node().parentNode);
10410
10436
  }
@@ -17212,18 +17238,6 @@ var y = {
17212
17238
  * y2 Axis config options
17213
17239
  */
17214
17240
  var y2 = {
17215
- /**
17216
- * Set clip-path attribute for y2 axis element
17217
- * - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
17218
- * @name axis․y2․clipPath
17219
- * @memberof Options
17220
- * @type {boolean}
17221
- * @default true
17222
- * @example
17223
- * // don't set 'clip-path' attribute
17224
- * clipPath: false
17225
- */
17226
- axis_y2_clipPath: true,
17227
17241
  /**
17228
17242
  * Show or hide y2 axis.
17229
17243
  * - **NOTE**:
@@ -24957,7 +24971,7 @@ var zoomModule = function () {
24957
24971
  var defaults = Object.create(null);
24958
24972
  /**
24959
24973
  * @namespace bb
24960
- * @version 3.16.0-next.2
24974
+ * @version 3.16.0
24961
24975
  */
24962
24976
  var bb = {
24963
24977
  /**
@@ -24967,7 +24981,7 @@ var bb = {
24967
24981
  * bb.version; // "1.0.0"
24968
24982
  * @memberof bb
24969
24983
  */
24970
- version: "3.16.0-next.2",
24984
+ version: "3.16.0",
24971
24985
  /**
24972
24986
  * Generate chart
24973
24987
  * - **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.16.0-next.2
8
+ * @version 3.16.0
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -100,7 +100,7 @@ var Plugin = /** @class */ (function () {
100
100
  delete _this[key];
101
101
  });
102
102
  };
103
- Plugin.version = "3.16.0-next.2";
103
+ Plugin.version = "3.16.0";
104
104
  return Plugin;
105
105
  }());
106
106
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -374,7 +374,7 @@ var Plugin = /** @class */ (function () {
374
374
  delete _this[key];
375
375
  });
376
376
  };
377
- Plugin.version = "3.16.0-next.2";
377
+ Plugin.version = "3.16.0";
378
378
  return Plugin;
379
379
  }());
380
380
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -432,7 +432,7 @@ var Plugin = /** @class */ (function () {
432
432
  delete _this[key];
433
433
  });
434
434
  };
435
- Plugin.version = "3.16.0-next.2";
435
+ Plugin.version = "3.16.0";
436
436
  return Plugin;
437
437
  }());
438
438
 
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -217,7 +217,7 @@ var Plugin = /** @class */ (function () {
217
217
  delete _this[key];
218
218
  });
219
219
  };
220
- Plugin.version = "3.16.0-next.2";
220
+ Plugin.version = "3.16.0";
221
221
  return Plugin;
222
222
  }());
223
223