billboard.js 3.10.2 → 3.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +80 -65
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +192 -338
  6. package/dist/billboard.pkgd.min.js +4 -4
  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.pkgd.js +112 -273
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +113 -274
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +114 -275
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +114 -275
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +114 -275
  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 +60 -46
  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 +17 -17
  44. package/src/ChartInternal/Axis/Axis.ts +7 -4
  45. package/src/ChartInternal/data/data.ts +15 -9
  46. package/src/ChartInternal/internals/clip.ts +1 -2
  47. package/src/ChartInternal/internals/format.ts +15 -4
  48. package/src/ChartInternal/internals/size.axis.ts +4 -17
  49. package/src/ChartInternal/internals/size.ts +11 -5
  50. package/src/ChartInternal/internals/text.ts +3 -3
  51. package/src/ChartInternal/internals/tooltip.ts +2 -2
  52. package/src/ChartInternal/internals/transform.ts +1 -1
  53. package/src/ChartInternal/shape/arc.ts +1 -1
  54. package/src/ChartInternal/shape/shape.ts +2 -0
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.10.2
8
+ * @version 3.10.3
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.10.2
8
+ * @version 3.10.3
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 rect{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.10.2
8
+ * @version 3.10.3
9
9
  */
10
10
  /*-- Datalab Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.10.2
8
+ * @version 3.10.3
9
9
  */.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;font-size:11px;line-height:1}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-font-smoothing:antialiased;fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-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 rect{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.10.2
8
+ * @version 3.10.3
9
9
  */
10
10
  /*-- Graph Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.10.2
8
+ * @version 3.10.3
9
9
  */.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#8c8c8c}.bb .bb-button,.bb text{fill:#555;font-size:12px;letter-spacing:-.3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-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 rect{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.10.2
8
+ * @version 3.10.3
9
9
  */
10
10
  /*-- Insight Theme --*/
11
11
  /*-- Default color pattern --*/
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.10.2
8
+ * @version 3.10.3
9
9
  */.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-family:sans-serif,Arial,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#c4c4c4}.bb .bb-button,.bb text{fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-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 rect{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.10.2
8
+ * @version 3.10.3
9
9
  */
10
10
  @charset "UTF-8";
11
11
  /*-- Insight Theme --*/
@@ -6,5 +6,5 @@
6
6
  * billboard.js, JavaScript chart library
7
7
  * https://naver.github.io/billboard.js/
8
8
  *
9
- * @version 3.10.2
9
+ * @version 3.10.3
10
10
  */.bb-color-pattern{background-image:url(#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;)}.bb svg{font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,맑은 고딕,helvetica,Apple SD Gothic Neo,sans-serif;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#cecece}.bb .bb-button,.bb text{fill:#555;font-size:10.5px;-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:#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-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 rect{fill:#71808d;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;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:.5px}.bb-tooltip-container{font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,맑은 고딕,helvetica,Apple SD Gothic Neo,sans-serif;user-select:none;z-index:10}.bb-tooltip{background-color:#404244;border:1px solid #999;border-collapse:separate;border-radius:5px;border-spacing:0;color:#fff;empty-cells:show;opacity:.9;white-space:nowrap}.bb-tooltip,.bb-tooltip th{font-size:11px;text-align:left}.bb-tooltip th{padding:3px 6px 0}.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{border-radius:5px;display:inline-block;height:7px;margin-right:6px;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:.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-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#000;font-size:1.8em;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{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:#404244;border:1px solid #999;border-radius:5px;color:#fff;cursor:pointer;opacity:.9;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.10.2
8
+ * @version 3.10.3
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
@@ -4546,14 +4546,19 @@ var data$1 = {
4546
4546
  if (type === void 0) { type = "areaRange"; }
4547
4547
  var value = d === null || d === void 0 ? void 0 : d.value;
4548
4548
  if (isArray(value)) {
4549
- // @ts-ignore
4550
- var index = {
4551
- areaRange: ["high", "mid", "low"],
4552
- candlestick: ["open", "high", "low", "close", "volume"]
4553
- }[type].indexOf(key);
4554
- return index >= 0 && value ? value[index] : undefined;
4549
+ if (type === "bar") {
4550
+ return value.reduce(function (a, c) { return c - a; });
4551
+ }
4552
+ else {
4553
+ // @ts-ignore
4554
+ var index = {
4555
+ areaRange: ["high", "mid", "low"],
4556
+ candlestick: ["open", "high", "low", "close", "volume"]
4557
+ }[type].indexOf(key);
4558
+ return index >= 0 && value ? value[index] : undefined;
4559
+ }
4555
4560
  }
4556
- else if (value) {
4561
+ else if (value && key) {
4557
4562
  return value[key];
4558
4563
  }
4559
4564
  return value;
@@ -4626,7 +4631,7 @@ var data$1 = {
4626
4631
  var yScale = $$.getYScaleById.bind($$)(d.id);
4627
4632
  var max = yScale.domain().reduce(function (a, c) { return c - a; });
4628
4633
  // when all data are 0, return 0
4629
- ratio = max === 0 ? 0 : Math.abs(d.value) / max;
4634
+ ratio = max === 0 ? 0 : Math.abs($$.getRangedData(d, null, type) / max);
4630
4635
  }
4631
4636
  else if (type === "treemap") {
4632
4637
  ratio /= $$.getTotalDataSum(true);
@@ -5784,7 +5789,7 @@ var format = {
5784
5789
  };
5785
5790
  },
5786
5791
  defaultValueFormat: function (v) {
5787
- return isValue(v) ? +v : "";
5792
+ return isArray(v) ? v.join("~") : (isValue(v) ? +v : "");
5788
5793
  },
5789
5794
  defaultArcValueFormat: function (v, ratio) {
5790
5795
  return "".concat((ratio * 100).toFixed(1), "%");
@@ -5795,7 +5800,17 @@ var format = {
5795
5800
  dataLabelFormat: function (targetId) {
5796
5801
  var $$ = this;
5797
5802
  var dataLabels = $$.config.data_labels;
5798
- var defaultFormat = function (v) { return (isValue(v) ? +v : ""); };
5803
+ var defaultFormat = function (v) {
5804
+ var delimiter = "~";
5805
+ var res = v;
5806
+ if (isArray(v)) {
5807
+ res = v.join(delimiter);
5808
+ }
5809
+ else if (isObject(v)) {
5810
+ res = Object.values(v).join(delimiter);
5811
+ }
5812
+ return res;
5813
+ };
5799
5814
  var format = defaultFormat;
5800
5815
  // find format according to axis id
5801
5816
  if (isFunction(dataLabels.format)) {
@@ -7157,6 +7172,9 @@ var shape = {
7157
7172
  if (isNumber(d)) {
7158
7173
  value = d;
7159
7174
  }
7175
+ else if ($$.isAreaRangeType(d)) {
7176
+ value = $$.getBaseValue(d, "mid");
7177
+ }
7160
7178
  else if (isStackNormalized) {
7161
7179
  value = $$.getRatio("index", d, true);
7162
7180
  }
@@ -7538,12 +7556,14 @@ var size = {
7538
7556
  * Get padding by the direction.
7539
7557
  * @param {string} type "top" | "bottom" | "left" | "right"
7540
7558
  * @param {boolean} [withoutRecompute=false] If set true, do not recompute the padding value.
7559
+ * @param {boolean} [withXAxisTickTextOverflow=false] If set true, calculate x axis tick text overflow.
7541
7560
  * @returns {number} padding value
7542
7561
  * @private
7543
7562
  */
7544
- getCurrentPaddingByDirection: function (type, withoutRecompute) {
7563
+ getCurrentPaddingByDirection: function (type, withoutRecompute, withXAxisTickTextOverflow) {
7545
7564
  var _a;
7546
7565
  if (withoutRecompute === void 0) { withoutRecompute = false; }
7566
+ if (withXAxisTickTextOverflow === void 0) { withXAxisTickTextOverflow = false; }
7547
7567
  var $$ = this;
7548
7568
  var config = $$.config, $el = $$.$el, hasAxis = $$.state.hasAxis;
7549
7569
  var isRotated = config.axis_rotated;
@@ -7574,6 +7594,7 @@ var size = {
7574
7594
  }
7575
7595
  if (type === "right") {
7576
7596
  padding += isRotated ? (!isFitPadding && isUndefined(paddingOption) ? 10 : 2) : !isAxisShow || isAxisInner ? (isFitPadding ? 2 : 1) : 0;
7597
+ padding += withXAxisTickTextOverflow ? $$.axis.getXAxisTickTextY2Overflow(defaultPadding) : 0;
7577
7598
  }
7578
7599
  else if (type === "left" && isRotated && isUndefined(paddingOption)) {
7579
7600
  padding = !config.axis_x_show ?
@@ -7593,10 +7614,11 @@ var size = {
7593
7614
  }
7594
7615
  return padding + (axisSize * axesLen) - gap;
7595
7616
  },
7596
- getCurrentPadding: function () {
7617
+ getCurrentPadding: function (withXAxisTickTextOverflow) {
7618
+ if (withXAxisTickTextOverflow === void 0) { withXAxisTickTextOverflow = false; }
7597
7619
  var $$ = this;
7598
7620
  var _a = ["top", "bottom", "left", "right"]
7599
- .map(function (v) { return $$.getCurrentPaddingByDirection(v); }), top = _a[0], bottom = _a[1], left = _a[2], right = _a[3];
7621
+ .map(function (v) { return $$.getCurrentPaddingByDirection(v, null, withXAxisTickTextOverflow); }), top = _a[0], bottom = _a[1], left = _a[2], right = _a[3];
7600
7622
  return { top: top, bottom: bottom, left: left, right: right };
7601
7623
  },
7602
7624
  /**
@@ -7645,7 +7667,8 @@ var size = {
7645
7667
  $$.updateXAxisTickClip();
7646
7668
  }
7647
7669
  var legendSize = {
7648
- right: config.legend_show && state.isLegendRight ? $$.getLegendWidth() + 20 : 0,
7670
+ right: config.legend_show && state.isLegendRight ?
7671
+ $$.getLegendWidth() + (isFitPadding ? 0 : 20) : 0,
7649
7672
  bottom: !config.legend_show || state.isLegendRight || state.isLegendInset ? 0 : currLegend.height
7650
7673
  };
7651
7674
  var xAxisHeight = isRotated || isNonAxis ? 0 : $$.getHorizontalAxisHeight("x");
@@ -7656,7 +7679,7 @@ var size = {
7656
7679
  // when needle is shown with legend, it need some bottom space to not overlap with legend text
7657
7680
  var gaugeHeight = $$.hasType("gauge") && config.arc_needle_show &&
7658
7681
  !config.gauge_fullCircle && !config.gauge_label_show ? 10 : 0;
7659
- var padding = $$.getCurrentPadding();
7682
+ var padding = $$.getCurrentPadding(true);
7660
7683
  // for main
7661
7684
  state.margin = !isNonAxis && isRotated ? {
7662
7685
  top: padding.top,
@@ -7975,7 +7998,7 @@ var text = {
7975
7998
  * @returns {string|null}
7976
7999
  * @private
7977
8000
  */
7978
- updateTextBacgroundColor: function (d) {
8001
+ updateTextBackgroundColor: function (d) {
7979
8002
  var $$ = this;
7980
8003
  var $el = $$.$el, config = $$.config;
7981
8004
  var backgroundColor = config.data_labels_backgroundColors;
@@ -8008,7 +8031,7 @@ var text = {
8008
8031
  var rotateString = angle ? "rotate(".concat(angle, ")") : "";
8009
8032
  $$.$el.text
8010
8033
  .style("fill", $$.getStylePropValue($$.updateTextColor))
8011
- .attr("filter", $$.updateTextBacgroundColor.bind($$))
8034
+ .attr("filter", $$.updateTextBackgroundColor.bind($$))
8012
8035
  .style("fill-opacity", forFlow ? 0 : $$.opacityForText.bind($$))
8013
8036
  .each(function (d, i) {
8014
8037
  // do not apply transition for newly added text elements
@@ -8109,7 +8132,7 @@ var text = {
8109
8132
  if (config.data_labels.centered && (isBarType || isTreemapType)) {
8110
8133
  var rect = getBoundingRect(textElement);
8111
8134
  if (isBarType) {
8112
- var isPositive = d.value >= 0;
8135
+ var isPositive = $$.getRangedData(d, null, "bar") >= 0;
8113
8136
  if (isRotated) {
8114
8137
  var w = (isPositive ?
8115
8138
  points[1][1] - points[0][1] :
@@ -8552,8 +8575,8 @@ var tooltip$1 = {
8552
8575
  value = "<b>Open:</b> ".concat(open_1, " <b>High:</b> ").concat(high, " <b>Low:</b> ").concat(low, " <b>Close:</b> ").concat(close_1).concat(volume ? " <b>Volume:</b> ".concat(volume) : "");
8553
8576
  }
8554
8577
  else if ($$.isBarRangeType(row)) {
8555
- var _d = row.value, start = _d[0], end = _d[1], id = row.id, index = row.index;
8556
- value = "".concat(valueFormat(start, undefined, id, index), " ~ ").concat(valueFormat(end, undefined, id, index));
8578
+ var rangeValue = row.value, id = row.id, index = row.index;
8579
+ value = "".concat(valueFormat(rangeValue, undefined, id, index));
8557
8580
  }
8558
8581
  else {
8559
8582
  value = valueFormat.apply(void 0, __spreadArray([getRowValue(row)], param, false));
@@ -8904,7 +8927,7 @@ var transform = {
8904
8927
  }
8905
8928
  else if (target === "y2") {
8906
8929
  x = isRotated ? 0 : state.width + padding;
8907
- y = isRotated ? 1 - padding : 0;
8930
+ y = isRotated ? -padding - 1 : 0;
8908
8931
  }
8909
8932
  else if (target === "subX") {
8910
8933
  x = 0;
@@ -13191,11 +13214,12 @@ var Axis = /** @class */ (function () {
13191
13214
  var $$ = this.owner;
13192
13215
  var config = $$.config, current = $$.state.current, _a = $$.$el, svg = _a.svg, chart = _a.chart;
13193
13216
  var currentTickMax = current.maxTickSize[id];
13217
+ var configPrefix = "axis_".concat(id);
13194
13218
  var max = {
13195
13219
  width: 0,
13196
13220
  height: 0
13197
13221
  };
13198
- if (withoutRecompute || !config["axis_".concat(id, "_show")] || (currentTickMax.width > 0 && $$.filterTargetsToShow().length === 0)) {
13222
+ if (withoutRecompute || !config["".concat(configPrefix, "_show")] || (currentTickMax.width > 0 && $$.filterTargetsToShow().length === 0)) {
13199
13223
  return currentTickMax;
13200
13224
  }
13201
13225
  if (svg) {
@@ -13219,8 +13243,9 @@ var Axis = /** @class */ (function () {
13219
13243
  currentTickMax.ticks.splice(0);
13220
13244
  }
13221
13245
  var axis = this.getAxis(id, scale, false, false, true);
13222
- var tickCount = config["axis_".concat(id, "_tick_count")];
13223
- var tickValues = config["axis_".concat(id, "_tick_values")];
13246
+ var tickRotate = config["".concat(configPrefix, "_tick_rotate")];
13247
+ var tickCount = config["".concat(configPrefix, "_tick_count")];
13248
+ var tickValues = config["".concat(configPrefix, "_tick_values")];
13224
13249
  // Make to generate the final tick text to be rendered
13225
13250
  // https://github.com/naver/billboard.js/issues/920
13226
13251
  // Do not generate if 'tick values' option is given
@@ -13236,6 +13261,7 @@ var Axis = /** @class */ (function () {
13236
13261
  .style("left", "0");
13237
13262
  axis.create(dummy);
13238
13263
  dummy.selectAll("text")
13264
+ .attr("transform", isNumber(tickRotate) ? "rotate(".concat(tickRotate, ")") : null)
13239
13265
  .each(function (d, i) {
13240
13266
  var _a = this.getBoundingClientRect(), width = _a.width, height = _a.height;
13241
13267
  max.width = Math.max(max.width, width);
@@ -13261,7 +13287,7 @@ var Axis = /** @class */ (function () {
13261
13287
  var positiveRotation = xAxisTickRotate > 0 && xAxisTickRotate < 90;
13262
13288
  if ((axis.isCategorized() || axis.isTimeSeries()) &&
13263
13289
  config.axis_x_tick_fit &&
13264
- !config.axis_x_tick_culling &&
13290
+ (!config.axis_x_tick_culling || isEmpty(config.axis_x_tick_culling)) &&
13265
13291
  !config.axis_x_tick_multiline &&
13266
13292
  positiveRotation) {
13267
13293
  var widthWithoutCurrentPaddingLeft = state.current.width - $$.getCurrentPaddingByDirection("left");
@@ -14313,9 +14339,8 @@ var clip = {
14313
14339
  * @private
14314
14340
  */
14315
14341
  setYAxisClipPath: function (node) {
14316
- var _a;
14317
14342
  var $$ = this;
14318
- var config = $$.config, _b = $$.state, margin = _b.margin, width = _b.width, height = _b.height;
14343
+ var config = $$.config, _a = $$.state, margin = _a.margin, width = _a.width, height = _a.height;
14319
14344
  var isRotated = config.axis_rotated;
14320
14345
  var left = Math.max(30, margin.left) - (isRotated ? 20 : 0);
14321
14346
  var isInner = config.axis_y_inner;
@@ -14323,7 +14348,7 @@ var clip = {
14323
14348
  (isRotated ? -(1 + left) : -(left - 1));
14324
14349
  var y = -(isRotated ? 20 : margin.top);
14325
14350
  var w = (isRotated ? width + 15 + left : margin.left + 20) + (isInner ? 20 : 0);
14326
- var h = (isRotated ? margin.bottom + (((_a = config.padding) === null || _a === void 0 ? void 0 : _a.mode) === "fit" ? 10 : 0) : (margin.top + height)) + 10;
14351
+ var h = (isRotated ? margin.bottom + 10 : (margin.top + height)) + 10;
14327
14352
  node
14328
14353
  .attr("x", x)
14329
14354
  .attr("y", y)
@@ -14935,7 +14960,7 @@ var sizeAxis = {
14935
14960
  var _a, _b;
14936
14961
  var $$ = this;
14937
14962
  var config = $$.config, state = $$.state;
14938
- var current = state.current, rotatedPadding = state.rotatedPadding, isLegendRight = state.isLegendRight, isLegendInset = state.isLegendInset;
14963
+ var rotatedPadding = state.rotatedPadding, isLegendRight = state.isLegendRight, isLegendInset = state.isLegendInset;
14939
14964
  var isRotated = config.axis_rotated;
14940
14965
  var isFitPadding = ((_a = config.padding) === null || _a === void 0 ? void 0 : _a.mode) === "fit";
14941
14966
  var isInner = config["axis_".concat(id, "_inner")];
@@ -14957,18 +14982,7 @@ var sizeAxis = {
14957
14982
  return isFitPadding ? 0 : rotatedPadding.top;
14958
14983
  }
14959
14984
  var maxtickSize = $$.axis.getMaxTickSize(id);
14960
- var rotate = $$.getAxisTickRotate(id);
14961
- // Calculate x/y axis height when tick rotated
14962
- if (((id === "x" && !isRotated) || (/y2?/.test(id) && isRotated)) && rotate) {
14963
- h += maxtickSize.width *
14964
- Math.cos(Math.PI * (90 - Math.abs(rotate)) / 180);
14965
- if (!config.axis_x_tick_multiline && current.height) {
14966
- if (h > current.height / 2) {
14967
- h = current.height / 2;
14968
- }
14969
- }
14970
- }
14971
- else if (maxtickSize.height > defaultHeight && config.legend_show) {
14985
+ if (maxtickSize.height > defaultHeight) {
14972
14986
  h += maxtickSize.height - defaultHeight;
14973
14987
  }
14974
14988
  return h +
@@ -15014,10 +15028,10 @@ var sizeAxis = {
15014
15028
  state.axis.x.tickCount = tickCount;
15015
15029
  }
15016
15030
  if ($el.svg &&
15031
+ config.axis_x_tick_autorotate &&
15017
15032
  config.axis_x_tick_fit &&
15018
15033
  !config.axis_x_tick_multiline &&
15019
15034
  !config.axis_x_tick_culling &&
15020
- config.axis_x_tick_autorotate &&
15021
15035
  allowedXAxisTypes) {
15022
15036
  rotate = $$.needToRotateXAxisTickTexts() ?
15023
15037
  config.axis_x_tick_rotate : 0;
@@ -17266,7 +17280,7 @@ var shapeArc = {
17266
17280
  if ($$.shouldShowArcLabel()) {
17267
17281
  selection
17268
17282
  .style("fill", $$.updateTextColor.bind($$))
17269
- .attr("filter", $$.updateTextBacgroundColor.bind($$))
17283
+ .attr("filter", $$.updateTextBackgroundColor.bind($$))
17270
17284
  .each(function (d) {
17271
17285
  var _a;
17272
17286
  var node = select(this);
@@ -23023,7 +23037,7 @@ var zoomModule = function () {
23023
23037
  var defaults = {};
23024
23038
  /**
23025
23039
  * @namespace bb
23026
- * @version 3.10.2
23040
+ * @version 3.10.3
23027
23041
  */
23028
23042
  var bb = {
23029
23043
  /**
@@ -23033,7 +23047,7 @@ var bb = {
23033
23047
  * bb.version; // "1.0.0"
23034
23048
  * @memberof bb
23035
23049
  */
23036
- version: "3.10.2",
23050
+ version: "3.10.3",
23037
23051
  /**
23038
23052
  * Generate chart
23039
23053
  * - **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.10.2
8
+ * @version 3.10.3
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.10.2";
107
+ Plugin.version = "3.10.3";
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.10.2
8
+ * @version 3.10.3
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.10.2";
282
+ Plugin.version = "3.10.3";
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.10.2
8
+ * @version 3.10.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -493,7 +493,7 @@ var Plugin = /** @class */ (function () {
493
493
  delete _this[key];
494
494
  });
495
495
  };
496
- Plugin.version = "3.10.2";
496
+ Plugin.version = "3.10.3";
497
497
  return Plugin;
498
498
  }());
499
499
  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.10.2
8
+ * @version 3.10.3
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.10.2";
124
+ Plugin.version = "3.10.3";
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.10.2
8
+ * @version 3.10.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -269,7 +269,7 @@ var Plugin = /** @class */ (function () {
269
269
  delete _this[key];
270
270
  });
271
271
  };
272
- Plugin.version = "3.10.2";
272
+ Plugin.version = "3.10.3";
273
273
  return Plugin;
274
274
  }());
275
275
  var Plugin$1 = Plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billboard.js",
3
- "version": "3.10.2",
3
+ "version": "3.10.3",
4
4
  "description": "Re-usable easy interface JavaScript chart library, based on D3 v4+",
5
5
  "homepage": "https://naver.github.io/billboard.js/",
6
6
  "main": "dist/billboard.js",
@@ -85,8 +85,8 @@
85
85
  "license": "MIT",
86
86
  "readmeFilename": "README.md",
87
87
  "dependencies": {
88
- "@types/d3-selection": "^3.0.8",
89
- "@types/d3-transition": "^3.0.6",
88
+ "@types/d3-selection": "^3.0.9",
89
+ "@types/d3-transition": "^3.0.7",
90
90
  "d3-axis": "^3.0.0",
91
91
  "d3-brush": "^3.0.0",
92
92
  "d3-drag": "^3.0.0",
@@ -110,24 +110,24 @@
110
110
  "@babel/preset-env": "^7.23.2",
111
111
  "@babel/preset-typescript": "^7.23.2",
112
112
  "@babel/runtime": "^7.23.2",
113
- "@commitlint/cli": "18.0.0",
114
- "@commitlint/config-conventional": "^18.0.0",
113
+ "@commitlint/cli": "18.2.0",
114
+ "@commitlint/config-conventional": "^18.1.0",
115
115
  "@rollup/plugin-babel": "^6.0.4",
116
116
  "@rollup/plugin-node-resolve": "^15.2.3",
117
- "@rollup/plugin-replace": "^5.0.4",
117
+ "@rollup/plugin-replace": "^5.0.5",
118
118
  "@rollup/plugin-typescript": "^11.1.5",
119
119
  "@semantic-release/changelog": "^6.0.3",
120
- "@semantic-release/commit-analyzer": "^11.0.0",
120
+ "@semantic-release/commit-analyzer": "^11.1.0",
121
121
  "@semantic-release/exec": "^6.0.3",
122
122
  "@semantic-release/git": "^10.0.1",
123
- "@semantic-release/npm": "^11.0.0",
124
- "@semantic-release/release-notes-generator": "^12.0.0",
123
+ "@semantic-release/npm": "^11.0.1",
124
+ "@semantic-release/release-notes-generator": "^12.1.0",
125
125
  "@types/chai": "^4.3.9",
126
126
  "@types/d3": "^7.4.2",
127
127
  "@types/mocha": "^10.0.3",
128
- "@types/sinon": "^10.0.20",
129
- "@typescript-eslint/eslint-plugin": "^6.9.0",
130
- "@typescript-eslint/parser": "^6.9.0",
128
+ "@types/sinon": "^17.0.0",
129
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
130
+ "@typescript-eslint/parser": "^6.10.0",
131
131
  "babel-helper-modules": "^6.0.0",
132
132
  "babel-loader": "^9.1.3",
133
133
  "babel-plugin-add-module-exports": "^1.0.4",
@@ -143,7 +143,7 @@
143
143
  "chai": "^4.3.10",
144
144
  "clean-webpack-plugin": "^4.0.0",
145
145
  "cloc": "^2.11.0",
146
- "core-js": "^3.33.1",
146
+ "core-js": "^3.33.2",
147
147
  "coveralls": "^3.1.1",
148
148
  "cross-env": "^7.0.3",
149
149
  "css-loader": "^6.8.1",
@@ -154,7 +154,7 @@
154
154
  "d3-polygon": "^3.0.1",
155
155
  "docdash": "^2.0.2",
156
156
  "dtslint": "^4.2.1",
157
- "eslint": "^8.52.0",
157
+ "eslint": "^8.53.0",
158
158
  "eslint-config-naver": "^2.1.0",
159
159
  "eslint-plugin-import": "^2.29.0",
160
160
  "eslint-plugin-jsdoc": "^46.8.2",
@@ -181,12 +181,12 @@
181
181
  "mocha": "^10.2.0",
182
182
  "node-sass": "^9.0.0",
183
183
  "regenerator-runtime": "^0.14.0",
184
- "rollup": "^4.1.4",
184
+ "rollup": "^4.3.0",
185
185
  "rollup-plugin-delete": "^2.0.0",
186
186
  "sass-loader": "^13.3.2",
187
- "semantic-release": "^22.0.5",
187
+ "semantic-release": "^22.0.7",
188
188
  "simulant": "^0.2.2",
189
- "sinon": "^17.0.0",
189
+ "sinon": "^17.0.1",
190
190
  "string-replace-loader": "^3.1.0",
191
191
  "style-loader": "^3.3.3",
192
192
  "taffydb": "^2.7.3",