billboard.js 3.9.1 → 3.9.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 (46) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +225 -131
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +1109 -294
  6. package/dist/billboard.pkgd.min.js +2 -2
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +886 -165
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +887 -166
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +888 -167
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +888 -167
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +888 -167
  22. package/dist/theme/dark.css +1 -1
  23. package/dist/theme/dark.min.css +1 -1
  24. package/dist/theme/datalab.css +1 -1
  25. package/dist/theme/datalab.min.css +1 -1
  26. package/dist/theme/graph.css +1 -1
  27. package/dist/theme/graph.min.css +1 -1
  28. package/dist/theme/insight.css +1 -1
  29. package/dist/theme/insight.min.css +1 -1
  30. package/dist-esm/billboard.js +175 -86
  31. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  34. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  35. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  36. package/package.json +17 -17
  37. package/src/Chart/api/load.ts +4 -2
  38. package/src/Chart/api/tooltip.ts +11 -3
  39. package/src/ChartInternal/data/data.ts +29 -12
  40. package/src/ChartInternal/interactions/eventrect.ts +75 -8
  41. package/src/ChartInternal/interactions/interaction.ts +2 -57
  42. package/src/ChartInternal/internals/redraw.ts +2 -0
  43. package/src/ChartInternal/internals/tooltip.ts +58 -2
  44. package/src/ChartInternal/shape/arc.ts +20 -2
  45. package/src/ChartInternal/shape/line.ts +0 -1
  46. package/src/ChartInternal/shape/radar.ts +5 -14
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.1
8
+ * @version 3.9.2
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.9.1
8
+ * @version 3.9.2
9
9
  */.bb-color-pattern{background-image:url(#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;)}.bb svg{font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#8d9cab}.bb .bb-button,.bb text{fill:#8d9cab;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-legend-item-title,.bb-line,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#8d9cab}.bb-axis{shape-rendering:crispEdges}.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:rgba(39,201,3,.05)}.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-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:.5!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;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{stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#8d9cab;stroke-width:1px}.bb-tooltip-container{font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#000;border:1px solid #828181;border-collapse:separate;border-radius:5px;border-spacing:0;color:#fff;empty-cells:show;font-size:11px;text-align:left;white-space:nowrap}.bb-tooltip th{border-bottom:1px solid #828181;font-size:12px;padding:4px 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{display:inline-block;height:7px;margin:-1px 6px 0 0;vertical-align:middle;width:7px}.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:12px;font-weight:800;padding-left:5px}.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#b6c2ce;font-size:16px!important;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{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:#000;border:1px solid #ccc;border-radius:5px;color:#fff;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.9.1
8
+ * @version 3.9.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.9.1
8
+ * @version 3.9.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-chart-arcs .bb-needle{fill:#000}.bb-axis{stroke-width:.7px}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:.7px}.bb-circle{fill:#fff!important}.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:1px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;stroke-dasharray:1 20;transform:translate(7px,1px)}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:1px}.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;white-space:nowrap}.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-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{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.9.1
8
+ * @version 3.9.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.9.1
8
+ * @version 3.9.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-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-axis{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#8c8c8c}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ffb6b6;stroke-dasharray:3px}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_,rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1px;opacity:.75}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.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;white-space:nowrap}.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-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{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.9.1
8
+ * @version 3.9.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.9.1
8
+ * @version 3.9.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-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-axis{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{fill:#fff!important;stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.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;white-space:nowrap}.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-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{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.9.1
8
+ * @version 3.9.2
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
@@ -4295,11 +4295,23 @@ var data$1 = {
4295
4295
  */
4296
4296
  getDataIndexFromEvent: function (event) {
4297
4297
  var $$ = this;
4298
- var config = $$.config, _a = $$.state, inputType = _a.inputType, _b = _a.eventReceiver, coords = _b.coords, rect = _b.rect;
4299
- var isRotated = config.axis_rotated;
4300
- // get data based on the mouse coords
4301
- var e = inputType === "touch" && event.changedTouches ? event.changedTouches[0] : event;
4302
- var index = findIndex(coords, isRotated ? e.clientY - rect.top : e.clientX - rect.left, 0, coords.length - 1, isRotated);
4298
+ var config = $$.config, _a = $$.state, hasRadar = _a.hasRadar, inputType = _a.inputType, _b = _a.eventReceiver, coords = _b.coords, rect = _b.rect;
4299
+ var index;
4300
+ if (hasRadar) {
4301
+ var target = event.target;
4302
+ // in case of multilined axis text
4303
+ if (/tspan/i.test(target.tagName)) {
4304
+ target = target.parentNode;
4305
+ }
4306
+ var d = select(target).datum();
4307
+ index = d && Object.keys(d).length === 1 ? d.index : undefined;
4308
+ }
4309
+ else {
4310
+ var isRotated = config.axis_rotated;
4311
+ // get data based on the mouse coords
4312
+ var e = inputType === "touch" && event.changedTouches ? event.changedTouches[0] : event;
4313
+ index = findIndex(coords, isRotated ? e.clientY - rect.top : e.clientX - rect.left, 0, coords.length - 1, isRotated);
4314
+ }
4303
4315
  return index;
4304
4316
  },
4305
4317
  getDataLabelLength: function (min, max, key) {
@@ -4721,51 +4733,6 @@ var dataLoad = {
4721
4733
  * billboard.js project is licensed under the MIT license
4722
4734
  */
4723
4735
  var interaction = {
4724
- selectRectForSingle: function (context, eventRect, index) {
4725
- var _a, _b;
4726
- var $$ = this;
4727
- var config = $$.config, _c = $$.$el, main = _c.main, circle = _c.circle;
4728
- var isSelectionEnabled = config.data_selection_enabled;
4729
- var isSelectionGrouped = config.data_selection_grouped;
4730
- var isSelectable = config.data_selection_isselectable;
4731
- var isTooltipGrouped = config.tooltip_grouped;
4732
- var selectedData = $$.getAllValuesOnIndex(index);
4733
- if (isTooltipGrouped) {
4734
- $$.showTooltip(selectedData, context);
4735
- (_a = $$.showGridFocus) === null || _a === void 0 ? void 0 : _a.call($$, selectedData);
4736
- if (!isSelectionEnabled || isSelectionGrouped) {
4737
- return;
4738
- }
4739
- }
4740
- // remove possible previous focused state
4741
- !circle && main.selectAll(".".concat($COMMON.EXPANDED, ":not(.").concat($SHAPE.shape, "-").concat(index, ")")).classed($COMMON.EXPANDED, false);
4742
- var shapeAtIndex = main.selectAll(".".concat($SHAPE.shape, "-").concat(index))
4743
- .classed($COMMON.EXPANDED, true)
4744
- .style("cursor", isSelectable ? "pointer" : null)
4745
- .filter(function (d) {
4746
- return $$.isWithinShape(this, d);
4747
- });
4748
- if (shapeAtIndex.empty() && !isTooltipGrouped) {
4749
- (_b = $$.hideGridFocus) === null || _b === void 0 ? void 0 : _b.call($$);
4750
- $$.hideTooltip();
4751
- !isSelectionGrouped && $$.setExpand(index);
4752
- }
4753
- shapeAtIndex
4754
- .call(function (selected) {
4755
- var _a, _b;
4756
- var d = selected.data();
4757
- if (isSelectionEnabled &&
4758
- (isSelectionGrouped || (isSelectable === null || isSelectable === void 0 ? void 0 : isSelectable.bind($$.api)(d)))) {
4759
- eventRect.style("cursor", "pointer");
4760
- }
4761
- if (!isTooltipGrouped) {
4762
- $$.showTooltip(d, context);
4763
- (_a = $$.showGridFocus) === null || _a === void 0 ? void 0 : _a.call($$, d);
4764
- (_b = $$.unexpandCircles) === null || _b === void 0 ? void 0 : _b.call($$);
4765
- selected.each(function (d) { return $$.setExpand(index, d.id); });
4766
- }
4767
- });
4768
- },
4769
4736
  /**
4770
4737
  * Expand data shape/point
4771
4738
  * @param {number} index Index number
@@ -4903,14 +4870,14 @@ var interaction = {
4903
4870
  * @param {Array} mouse x and y coordinate value
4904
4871
  */
4905
4872
  dispatchEvent: function (type, index, mouse) {
4906
- var _a;
4873
+ var _a, _b;
4907
4874
  var $$ = this;
4908
- var config = $$.config, _b = $$.state, eventReceiver = _b.eventReceiver, hasAxis = _b.hasAxis, hasRadar = _b.hasRadar, hasTreemap = _b.hasTreemap, _c = $$.$el, eventRect = _c.eventRect, arcs = _c.arcs, radar = _c.radar, treemap = _c.treemap;
4909
- var element = (_a = ((hasTreemap && eventReceiver.rect) ||
4910
- (hasRadar && radar.axes.select(".".concat($AXIS.axis, "-").concat(index, " text"))) || (eventRect || (arcs === null || arcs === void 0 ? void 0 : arcs.selectAll(".".concat($COMMON.target, " path")).filter(function (d, i) { return i === index; }))))) === null || _a === void 0 ? void 0 : _a.node();
4875
+ var config = $$.config, _c = $$.state, eventReceiver = _c.eventReceiver, hasAxis = _c.hasAxis, hasRadar = _c.hasRadar, hasTreemap = _c.hasTreemap, _d = $$.$el, eventRect = _d.eventRect, radar = _d.radar, treemap = _d.treemap;
4876
+ var element = (_b = ((hasTreemap && eventReceiver.rect) ||
4877
+ (hasRadar && radar.axes.select(".".concat($AXIS.axis, "-").concat(index, " text"))) || (eventRect || ((_a = $$.getArcElementByIdOrIndex) === null || _a === void 0 ? void 0 : _a.call($$, index))))) === null || _b === void 0 ? void 0 : _b.node();
4911
4878
  if (element) {
4912
4879
  var isMultipleX = $$.isMultipleX();
4913
- var _d = element.getBoundingClientRect(), width = _d.width, left = _d.left, top_1 = _d.top;
4880
+ var _e = element.getBoundingClientRect(), width = _e.width, left = _e.left, top_1 = _e.top;
4914
4881
  if (hasAxis && !hasRadar && !isMultipleX) {
4915
4882
  var coords = eventReceiver.coords[index];
4916
4883
  width = coords.w;
@@ -6528,6 +6495,7 @@ var redraw = {
6528
6495
  (_c = $$.redrawTitle) === null || _c === void 0 ? void 0 : _c.call($$);
6529
6496
  initializing && $$.updateTypesElements();
6530
6497
  $$.generateRedrawList(targetsToShow, flow, duration, wth.Subchart);
6498
+ $$.updateTooltipOnRedraw();
6531
6499
  $$.callPluginHook("$redraw", options, duration);
6532
6500
  },
6533
6501
  /**
@@ -8516,7 +8484,7 @@ var tooltip$1 = {
8516
8484
  var bindto = config.tooltip_contents.bindto;
8517
8485
  var datum = tooltip.datum();
8518
8486
  if (!bindto && datum) {
8519
- var _d = getPointer(state.event, eventTarget !== null && eventTarget !== void 0 ? eventTarget : eventRect.node()), x = _d[0], y = _d[1]; // get mouse event position
8487
+ var _d = getPointer(state.event, eventTarget !== null && eventTarget !== void 0 ? eventTarget : eventRect === null || eventRect === void 0 ? void 0 : eventRect.node()), x = _d[0], y = _d[1]; // get mouse event position
8520
8488
  var currPos = { x: x, y: y };
8521
8489
  if (scale.x && datum && "x" in datum) {
8522
8490
  currPos.xAxis = scale.x(datum.x);
@@ -8699,6 +8667,55 @@ var tooltip$1 = {
8699
8667
  }
8700
8668
  });
8701
8669
  }
8670
+ },
8671
+ /**
8672
+ * Update tooltip content on redraw
8673
+ * - In a situation where tooltip is displayed and data load happens, it should reflect loaded data to tooltip
8674
+ * @param {d3Selection} context Event rect element
8675
+ * @param {number} index Data index
8676
+ * @private
8677
+ */
8678
+ updateTooltipOnRedraw: function (context, index) {
8679
+ var _a;
8680
+ var $$ = this;
8681
+ var config = $$.config, _b = $$.$el, eventRect = _b.eventRect, svg = _b.svg, tooltip = _b.tooltip, _c = $$.state, event = _c.event, hasAxis = _c.hasAxis, hasRadar = _c.hasRadar, hasTreemap = _c.hasTreemap;
8682
+ // Update tooltip, when tooltip is in shown state
8683
+ if ((tooltip === null || tooltip === void 0 ? void 0 : tooltip.style("display")) === "block" && event) {
8684
+ var rect = context !== null && context !== void 0 ? context : (_a = (hasRadar ? svg : eventRect)) === null || _a === void 0 ? void 0 : _a.node();
8685
+ // for Axis based & Radar
8686
+ if (hasAxis || hasRadar) {
8687
+ if ($$.isMultipleX()) {
8688
+ $$.selectRectForMultipleXs(rect, false);
8689
+ }
8690
+ else {
8691
+ var idx = index !== null && index !== void 0 ? index : $$.getDataIndexFromEvent(event);
8692
+ if (index === -1) {
8693
+ $$.api.tooltip.hide();
8694
+ }
8695
+ else {
8696
+ $$.selectRectForSingle(rect, idx);
8697
+ $$.setExpand(idx, null, true);
8698
+ }
8699
+ }
8700
+ // for Arc & Treemap
8701
+ }
8702
+ else {
8703
+ var clientX_1 = event.clientX, clientY_1 = event.clientY;
8704
+ setTimeout(function () {
8705
+ var target = doc.elementFromPoint(clientX_1, clientY_1);
8706
+ var data = select(target).datum();
8707
+ if (data) {
8708
+ var d = $$.hasArcType() ?
8709
+ $$.convertToArcData($$.updateAngle(data)) : data === null || data === void 0 ? void 0 : data.data;
8710
+ hasTreemap && (target = svg.node());
8711
+ d && $$.showTooltip([d], target);
8712
+ }
8713
+ else {
8714
+ $$.api.tooltip.hide();
8715
+ }
8716
+ }, config.transition_duration);
8717
+ }
8718
+ }
8702
8719
  }
8703
8720
  };
8704
8721
 
@@ -10654,7 +10671,6 @@ var apiLoad = {
10654
10671
  });
10655
10672
  }
10656
10673
  else {
10657
- $$.api.tooltip.hide();
10658
10674
  $$.loadFromArgs(args);
10659
10675
  }
10660
10676
  },
@@ -10686,6 +10702,8 @@ var apiLoad = {
10686
10702
  unload: function (argsValue) {
10687
10703
  var $$ = this.internal;
10688
10704
  var args = argsValue || {};
10705
+ // hide possible tooltip display when data is completely unloaded
10706
+ isEmpty(args) && this.tooltip.hide();
10689
10707
  if (isArray(args)) {
10690
10708
  args = { ids: args };
10691
10709
  }
@@ -10878,6 +10896,10 @@ var tooltip = {
10878
10896
  * }
10879
10897
  * });
10880
10898
  *
10899
+ * // for Arc types, specify 'id' or 'index'
10900
+ * chart.tooltip.show({ data: { id: "data2" }});
10901
+ * chart.tooltip.show({ data: { index: 2 }});
10902
+ *
10881
10903
  * // when data.xs is used
10882
10904
  * chart.tooltip.show({
10883
10905
  * data: {
@@ -10897,8 +10919,9 @@ var tooltip = {
10897
10919
  * });
10898
10920
  */
10899
10921
  show: function (args) {
10922
+ var _a, _b, _c;
10900
10923
  var $$ = this.internal;
10901
- var $el = $$.$el, config = $$.config, _a = $$.state, eventReceiver = _a.eventReceiver, hasTreemap = _a.hasTreemap, inputType = _a.inputType;
10924
+ var $el = $$.$el, config = $$.config, _d = $$.state, eventReceiver = _d.eventReceiver, hasTreemap = _d.hasTreemap, inputType = _d.inputType;
10902
10925
  var index;
10903
10926
  var mouse;
10904
10927
  // determine mouse position on the chart
@@ -10908,7 +10931,7 @@ var tooltip = {
10908
10931
  // determine focus data
10909
10932
  if (args.data) {
10910
10933
  var data = args.data;
10911
- var y = $$.getYScaleById(data.id)(data.value);
10934
+ var y = (_a = $$.getYScaleById(data.id)) === null || _a === void 0 ? void 0 : _a(data.value);
10912
10935
  if (hasTreemap && data.id) {
10913
10936
  eventReceiver.rect = $el.main.select("".concat($$.selectorTarget(data.id, undefined, "rect")));
10914
10937
  }
@@ -10920,7 +10943,9 @@ var tooltip = {
10920
10943
  if (!config.tooltip_grouped) {
10921
10944
  mouse = [0, y];
10922
10945
  }
10923
- index = isValue(data.index) ? data.index : $$.getIndexByX(data.x);
10946
+ index = (_b = data.index) !== null && _b !== void 0 ? _b : ($$.hasArcType() && data.id ?
10947
+ (_c = $$.getArcElementByIdOrIndex(data.id)) === null || _c === void 0 ? void 0 : _c.datum().index :
10948
+ $$.getIndexByX(data.x));
10924
10949
  }
10925
10950
  }
10926
10951
  else if (isDefined(args.x)) {
@@ -13383,7 +13408,7 @@ var eventrect = {
13383
13408
  eventRectUpdate.call($$.getDraggableSelection());
13384
13409
  $el.eventRect = eventRectUpdate;
13385
13410
  if ($$.state.inputType === "touch" && !$el.svg.on("touchstart.eventRect") && !$$.hasArcType()) {
13386
- $$.bindTouchOnEventRect(isMultipleX);
13411
+ $$.bindTouchOnEventRect();
13387
13412
  }
13388
13413
  // when initilazed with empty data and data loaded later, need to update eventRect
13389
13414
  state.rendered && $$.updateEventRect($el.eventRect, true);
@@ -13402,11 +13427,11 @@ var eventrect = {
13402
13427
  }
13403
13428
  $$.updateEventRectData();
13404
13429
  },
13405
- bindTouchOnEventRect: function (isMultipleX) {
13430
+ bindTouchOnEventRect: function () {
13406
13431
  var $$ = this;
13407
13432
  var config = $$.config, state = $$.state, _a = $$.$el, eventRect = _a.eventRect, svg = _a.svg;
13408
13433
  var selectRect = function (context) {
13409
- if (isMultipleX) {
13434
+ if ($$.isMultipleX()) {
13410
13435
  $$.selectRectForMultipleXs(context);
13411
13436
  }
13412
13437
  else {
@@ -13414,7 +13439,7 @@ var eventrect = {
13414
13439
  $$.callOverOutForTouch(index);
13415
13440
  index === -1 ?
13416
13441
  $$.unselectRect() :
13417
- $$.selectRectForSingle(context, eventRect, index);
13442
+ $$.selectRectForSingle(context, index);
13418
13443
  }
13419
13444
  };
13420
13445
  var unselectRect = function () {
@@ -13604,7 +13629,65 @@ var eventrect = {
13604
13629
  };
13605
13630
  });
13606
13631
  },
13607
- selectRectForMultipleXs: function (context) {
13632
+ /**
13633
+ * Seletct rect for single x value
13634
+ * @param {d3Selection} context Event rect element
13635
+ * @param {number} index x Axis index
13636
+ * @private
13637
+ */
13638
+ selectRectForSingle: function (context, index) {
13639
+ var _a, _b;
13640
+ var $$ = this;
13641
+ var config = $$.config, _c = $$.$el, main = _c.main, circle = _c.circle;
13642
+ var isSelectionEnabled = config.data_selection_enabled;
13643
+ var isSelectionGrouped = config.data_selection_grouped;
13644
+ var isSelectable = config.data_selection_isselectable;
13645
+ var isTooltipGrouped = config.tooltip_grouped;
13646
+ var selectedData = $$.getAllValuesOnIndex(index);
13647
+ if (isTooltipGrouped) {
13648
+ $$.showTooltip(selectedData, context);
13649
+ (_a = $$.showGridFocus) === null || _a === void 0 ? void 0 : _a.call($$, selectedData);
13650
+ if (!isSelectionEnabled || isSelectionGrouped) {
13651
+ return;
13652
+ }
13653
+ }
13654
+ // remove possible previous focused state
13655
+ !circle && main.selectAll(".".concat($COMMON.EXPANDED, ":not(.").concat($SHAPE.shape, "-").concat(index, ")")).classed($COMMON.EXPANDED, false);
13656
+ var shapeAtIndex = main.selectAll(".".concat($SHAPE.shape, "-").concat(index))
13657
+ .classed($COMMON.EXPANDED, true)
13658
+ .style("cursor", isSelectable ? "pointer" : null)
13659
+ .filter(function (d) {
13660
+ return $$.isWithinShape(this, d);
13661
+ });
13662
+ if (shapeAtIndex.empty() && !isTooltipGrouped) {
13663
+ (_b = $$.hideGridFocus) === null || _b === void 0 ? void 0 : _b.call($$);
13664
+ $$.hideTooltip();
13665
+ !isSelectionGrouped && $$.setExpand(index);
13666
+ }
13667
+ shapeAtIndex
13668
+ .call(function (selected) {
13669
+ var _a, _b;
13670
+ var d = selected.data();
13671
+ if (isSelectionEnabled &&
13672
+ (isSelectionGrouped || (isSelectable === null || isSelectable === void 0 ? void 0 : isSelectable.bind($$.api)(d)))) {
13673
+ context.style.cursor = "pointer";
13674
+ }
13675
+ if (!isTooltipGrouped) {
13676
+ $$.showTooltip(d, context);
13677
+ (_a = $$.showGridFocus) === null || _a === void 0 ? void 0 : _a.call($$, d);
13678
+ (_b = $$.unexpandCircles) === null || _b === void 0 ? void 0 : _b.call($$);
13679
+ selected.each(function (d) { return $$.setExpand(index, d.id); });
13680
+ }
13681
+ });
13682
+ },
13683
+ /**
13684
+ * Select rect for multiple x values
13685
+ * @param {d3Selection} context Event rect element
13686
+ * @param {boolean} [triggerEvent=true] Whether trigger event or not
13687
+ * @private
13688
+ */
13689
+ selectRectForMultipleXs: function (context, triggerEvent) {
13690
+ if (triggerEvent === void 0) { triggerEvent = true; }
13608
13691
  var $$ = this;
13609
13692
  var config = $$.config, state = $$.state;
13610
13693
  var targetsToShow = $$.filterTargetsToShow($$.data.targets);
@@ -13614,7 +13697,7 @@ var eventrect = {
13614
13697
  }
13615
13698
  var mouse = getPointer(state.event, context);
13616
13699
  var closest = $$.findClosestFromTargets(targetsToShow, mouse);
13617
- if (state.mouseover && (!closest || closest.id !== state.mouseover.id)) {
13700
+ if (triggerEvent && state.mouseover && (!closest || closest.id !== state.mouseover.id)) {
13618
13701
  config.data_onout.call($$.api, state.mouseover);
13619
13702
  state.mouseover = undefined;
13620
13703
  }
@@ -13634,7 +13717,7 @@ var eventrect = {
13634
13717
  // Show cursor as pointer if point is close to mouse position
13635
13718
  if ($$.isBarType(closest.id) || dist < $$.getPointSensitivity(closest)) {
13636
13719
  $$.$el.svg.select(".".concat($EVENT.eventRect)).style("cursor", "pointer");
13637
- if (!state.mouseover) {
13720
+ if (triggerEvent && !state.mouseover) {
13638
13721
  config.data_onover.call($$.api, closest);
13639
13722
  state.mouseover = closest;
13640
13723
  }
@@ -13717,7 +13800,7 @@ var eventrect = {
13717
13800
  eventReceiver.currentIdx = index;
13718
13801
  }
13719
13802
  index === -1 ?
13720
- $$.unselectRect() : $$.selectRectForSingle(this, rect, index);
13803
+ $$.unselectRect() : $$.selectRectForSingle(this, index);
13721
13804
  // As of individual data point(or <path>) element can't bind mouseover/out event
13722
13805
  // to determine current interacting element, so use 'mousemove' event instead.
13723
13806
  $$.setOverOut(index !== -1, index);
@@ -17234,7 +17317,8 @@ var shapeArc = {
17234
17317
  .duration(durationForExit)
17235
17318
  .style("opacity", "0")
17236
17319
  .remove();
17237
- mainArc = mainArc.enter().append("path")
17320
+ mainArc = mainArc.enter()
17321
+ .append("path")
17238
17322
  .attr("class", $$.getClass("arc", true))
17239
17323
  .style("fill", function (d) { return $$.color(d.data); })
17240
17324
  .style("cursor", function (d) { var _a; return (((_a = isSelectable === null || isSelectable === void 0 ? void 0 : isSelectable.bind) === null || _a === void 0 ? void 0 : _a.call(isSelectable, $$.api)(d)) ? "pointer" : null); })
@@ -17298,7 +17382,7 @@ var shapeArc = {
17298
17382
  .call(endall, function () {
17299
17383
  if ($$.levelColor) {
17300
17384
  var path = select(this);
17301
- var d = path.datum();
17385
+ var d = path.datum(this._current);
17302
17386
  $$.updateLegendItemColor(d.data.id, path.style("fill"));
17303
17387
  }
17304
17388
  state.transiting = false;
@@ -17577,6 +17661,20 @@ var shapeArc = {
17577
17661
  .text($$.textForGaugeMinMax(config.gauge_max, true));
17578
17662
  }
17579
17663
  }
17664
+ },
17665
+ /**
17666
+ * Get Arc element by id or index
17667
+ * @param {string|number} value id or index of Arc
17668
+ * @returns {d3Selection} Arc path element
17669
+ * @private
17670
+ */
17671
+ getArcElementByIdOrIndex: function (value) {
17672
+ var $$ = this;
17673
+ var arcs = $$.$el.arcs;
17674
+ var filterFn = isNumber(value) ?
17675
+ function (d) { return d.index === value; } :
17676
+ function (d) { return d.data.id === value; };
17677
+ return arcs === null || arcs === void 0 ? void 0 : arcs.selectAll(".".concat($COMMON.target, " path")).filter(filterFn);
17580
17678
  }
17581
17679
  };
17582
17680
 
@@ -18406,7 +18504,6 @@ var shapeLine = {
18406
18504
  .style("stroke", $$.color)
18407
18505
  .merge(line)
18408
18506
  .style("opacity", $$.initialOpacity.bind($$))
18409
- .style("shape-rendering", function (d) { return ($$.isStepType(d) ? "crispEdges" : ""); })
18410
18507
  .attr("transform", null);
18411
18508
  },
18412
18509
  /**
@@ -19436,18 +19533,10 @@ var shapeRadar = {
19436
19533
  var inputType = state.inputType, transiting = state.transiting;
19437
19534
  if (config.interaction_enabled) {
19438
19535
  var isMouse_1 = inputType === "mouse";
19439
- var getIndex_1 = function (event) {
19440
- var target = event.target;
19441
- // in case of multilined axis text
19442
- if (/tspan/i.test(target.tagName)) {
19443
- target = target.parentNode;
19444
- }
19445
- var d = select(target).datum();
19446
- return d && Object.keys(d).length === 1 ? d.index : undefined;
19447
- };
19448
19536
  var hide = function (event) {
19449
19537
  state.event = event;
19450
- var index = getIndex_1(event);
19538
+ // const index = getIndex(event);
19539
+ var index = $$.getDataIndexFromEvent(event);
19451
19540
  var noIndex = isUndefined(index);
19452
19541
  if (isMouse_1 || noIndex) {
19453
19542
  $$.hideTooltip();
@@ -19468,8 +19557,8 @@ var shapeRadar = {
19468
19557
  return;
19469
19558
  }
19470
19559
  state.event = event;
19471
- var index = getIndex_1(event);
19472
- $$.selectRectForSingle(svg.node(), null, index);
19560
+ var index = $$.getDataIndexFromEvent(event);
19561
+ $$.selectRectForSingle(svg.node(), index);
19473
19562
  isMouse_1 ? $$.setOverOut(true, index) : $$.callOverOutForTouch(index);
19474
19563
  })
19475
19564
  .on("mouseout", isMouse_1 ? hide : null);
@@ -22652,7 +22741,7 @@ var zoomModule = function () {
22652
22741
  var defaults = {};
22653
22742
  /**
22654
22743
  * @namespace bb
22655
- * @version 3.9.1
22744
+ * @version 3.9.2
22656
22745
  */
22657
22746
  var bb = {
22658
22747
  /**
@@ -22662,7 +22751,7 @@ var bb = {
22662
22751
  * bb.version; // "1.0.0"
22663
22752
  * @memberof bb
22664
22753
  */
22665
- version: "3.9.1",
22754
+ version: "3.9.2",
22666
22755
  /**
22667
22756
  * Generate chart
22668
22757
  * - **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.9.1
8
+ * @version 3.9.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -104,7 +104,7 @@ var Plugin = /** @class */ (function () {
104
104
  delete _this[key];
105
105
  });
106
106
  };
107
- Plugin.version = "3.9.1";
107
+ Plugin.version = "3.9.2";
108
108
  return Plugin;
109
109
  }());
110
110
  var Plugin$1 = Plugin;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.1
8
+ * @version 3.9.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -279,7 +279,7 @@ var Plugin = /** @class */ (function () {
279
279
  delete _this[key];
280
280
  });
281
281
  };
282
- Plugin.version = "3.9.1";
282
+ Plugin.version = "3.9.2";
283
283
  return Plugin;
284
284
  }());
285
285
  var Plugin$1 = Plugin;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.1
8
+ * @version 3.9.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -487,7 +487,7 @@ var Plugin = /** @class */ (function () {
487
487
  delete _this[key];
488
488
  });
489
489
  };
490
- Plugin.version = "3.9.1";
490
+ Plugin.version = "3.9.2";
491
491
  return Plugin;
492
492
  }());
493
493
  var Plugin$1 = Plugin;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.1
8
+ * @version 3.9.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -121,7 +121,7 @@ var Plugin = /** @class */ (function () {
121
121
  delete _this[key];
122
122
  });
123
123
  };
124
- Plugin.version = "3.9.1";
124
+ Plugin.version = "3.9.2";
125
125
  return Plugin;
126
126
  }());
127
127
  var Plugin$1 = Plugin;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.1
8
+ * @version 3.9.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -263,7 +263,7 @@ var Plugin = /** @class */ (function () {
263
263
  delete _this[key];
264
264
  });
265
265
  };
266
- Plugin.version = "3.9.1";
266
+ Plugin.version = "3.9.2";
267
267
  return Plugin;
268
268
  }());
269
269
  var Plugin$1 = Plugin;