billboard.js 3.10.1 → 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.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +91 -74
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +203 -347
- package/dist/billboard.pkgd.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +13 -11
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +13 -11
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +13 -11
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +13 -11
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +112 -273
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +124 -283
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +125 -284
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +125 -284
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +125 -284
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +69 -53
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +17 -17
- package/src/ChartInternal/Axis/Axis.ts +7 -4
- package/src/ChartInternal/data/data.ts +15 -9
- package/src/ChartInternal/internals/clip.ts +1 -2
- package/src/ChartInternal/internals/format.ts +15 -4
- package/src/ChartInternal/internals/size.axis.ts +4 -17
- package/src/ChartInternal/internals/size.ts +11 -5
- package/src/ChartInternal/internals/text.ts +3 -3
- package/src/ChartInternal/internals/tooltip.ts +2 -2
- package/src/ChartInternal/internals/transform.ts +1 -1
- package/src/ChartInternal/shape/arc.ts +1 -1
- package/src/ChartInternal/shape/shape.ts +2 -0
- package/src/module/browser.ts +8 -6
package/dist/theme/dark.css
CHANGED
package/dist/theme/dark.min.css
CHANGED
|
@@ -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.
|
|
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}
|
package/dist/theme/datalab.css
CHANGED
|
@@ -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.
|
|
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}
|
package/dist/theme/graph.css
CHANGED
package/dist/theme/graph.min.css
CHANGED
|
@@ -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.
|
|
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}
|
package/dist/theme/insight.css
CHANGED
|
@@ -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.
|
|
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}
|
package/dist/theme/modern.css
CHANGED
|
@@ -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.
|
|
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}
|
package/dist-esm/billboard.js
CHANGED
|
@@ -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.
|
|
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';
|
|
@@ -48,18 +48,20 @@ function getGlobal() {
|
|
|
48
48
|
* @private
|
|
49
49
|
*/
|
|
50
50
|
function getFallback(w) {
|
|
51
|
-
var hasRAF = typeof (w === null || w === void 0 ? void 0 : w.requestAnimationFrame) === "function";
|
|
52
|
-
var hasRIC = typeof (w === null || w === void 0 ? void 0 : w.requestIdleCallback) === "function";
|
|
51
|
+
var hasRAF = typeof (w === null || w === void 0 ? void 0 : w.requestAnimationFrame) === "function" && typeof (w === null || w === void 0 ? void 0 : w.cancelAnimationFrame) === "function";
|
|
52
|
+
var hasRIC = typeof (w === null || w === void 0 ? void 0 : w.requestIdleCallback) === "function" && typeof (w === null || w === void 0 ? void 0 : w.cancelIdleCallback) === "function";
|
|
53
|
+
var request = function (cb) { return setTimeout(cb, 1); };
|
|
54
|
+
var cancel = function (id) { return clearTimeout(id); };
|
|
53
55
|
return [
|
|
54
|
-
hasRAF ? w.requestAnimationFrame :
|
|
55
|
-
hasRAF ? w.cancelAnimationFrame :
|
|
56
|
-
hasRIC ? w.requestIdleCallback :
|
|
57
|
-
hasRIC ? w.cancelIdleCallback :
|
|
56
|
+
hasRAF ? w.requestAnimationFrame : request,
|
|
57
|
+
hasRAF ? w.cancelAnimationFrame : cancel,
|
|
58
|
+
hasRIC ? w.requestIdleCallback : request,
|
|
59
|
+
hasRIC ? w.cancelIdleCallback : cancel
|
|
58
60
|
];
|
|
59
61
|
}
|
|
60
62
|
var win = getGlobal();
|
|
61
63
|
var doc = win === null || win === void 0 ? void 0 : win.document;
|
|
62
|
-
var _a = getFallback(win), requestAnimationFrame = _a[0],
|
|
64
|
+
var _a = getFallback(win), requestAnimationFrame = _a[0], requestIdleCallback = _a[2];
|
|
63
65
|
|
|
64
66
|
/**
|
|
65
67
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
@@ -4544,14 +4546,19 @@ var data$1 = {
|
|
|
4544
4546
|
if (type === void 0) { type = "areaRange"; }
|
|
4545
4547
|
var value = d === null || d === void 0 ? void 0 : d.value;
|
|
4546
4548
|
if (isArray(value)) {
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
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
|
+
}
|
|
4553
4560
|
}
|
|
4554
|
-
else if (value) {
|
|
4561
|
+
else if (value && key) {
|
|
4555
4562
|
return value[key];
|
|
4556
4563
|
}
|
|
4557
4564
|
return value;
|
|
@@ -4624,7 +4631,7 @@ var data$1 = {
|
|
|
4624
4631
|
var yScale = $$.getYScaleById.bind($$)(d.id);
|
|
4625
4632
|
var max = yScale.domain().reduce(function (a, c) { return c - a; });
|
|
4626
4633
|
// when all data are 0, return 0
|
|
4627
|
-
ratio = max === 0 ? 0 : Math.abs(d
|
|
4634
|
+
ratio = max === 0 ? 0 : Math.abs($$.getRangedData(d, null, type) / max);
|
|
4628
4635
|
}
|
|
4629
4636
|
else if (type === "treemap") {
|
|
4630
4637
|
ratio /= $$.getTotalDataSum(true);
|
|
@@ -5782,7 +5789,7 @@ var format = {
|
|
|
5782
5789
|
};
|
|
5783
5790
|
},
|
|
5784
5791
|
defaultValueFormat: function (v) {
|
|
5785
|
-
return isValue(v) ? +v : "";
|
|
5792
|
+
return isArray(v) ? v.join("~") : (isValue(v) ? +v : "");
|
|
5786
5793
|
},
|
|
5787
5794
|
defaultArcValueFormat: function (v, ratio) {
|
|
5788
5795
|
return "".concat((ratio * 100).toFixed(1), "%");
|
|
@@ -5793,7 +5800,17 @@ var format = {
|
|
|
5793
5800
|
dataLabelFormat: function (targetId) {
|
|
5794
5801
|
var $$ = this;
|
|
5795
5802
|
var dataLabels = $$.config.data_labels;
|
|
5796
|
-
var defaultFormat = function (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
|
+
};
|
|
5797
5814
|
var format = defaultFormat;
|
|
5798
5815
|
// find format according to axis id
|
|
5799
5816
|
if (isFunction(dataLabels.format)) {
|
|
@@ -7155,6 +7172,9 @@ var shape = {
|
|
|
7155
7172
|
if (isNumber(d)) {
|
|
7156
7173
|
value = d;
|
|
7157
7174
|
}
|
|
7175
|
+
else if ($$.isAreaRangeType(d)) {
|
|
7176
|
+
value = $$.getBaseValue(d, "mid");
|
|
7177
|
+
}
|
|
7158
7178
|
else if (isStackNormalized) {
|
|
7159
7179
|
value = $$.getRatio("index", d, true);
|
|
7160
7180
|
}
|
|
@@ -7536,12 +7556,14 @@ var size = {
|
|
|
7536
7556
|
* Get padding by the direction.
|
|
7537
7557
|
* @param {string} type "top" | "bottom" | "left" | "right"
|
|
7538
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.
|
|
7539
7560
|
* @returns {number} padding value
|
|
7540
7561
|
* @private
|
|
7541
7562
|
*/
|
|
7542
|
-
getCurrentPaddingByDirection: function (type, withoutRecompute) {
|
|
7563
|
+
getCurrentPaddingByDirection: function (type, withoutRecompute, withXAxisTickTextOverflow) {
|
|
7543
7564
|
var _a;
|
|
7544
7565
|
if (withoutRecompute === void 0) { withoutRecompute = false; }
|
|
7566
|
+
if (withXAxisTickTextOverflow === void 0) { withXAxisTickTextOverflow = false; }
|
|
7545
7567
|
var $$ = this;
|
|
7546
7568
|
var config = $$.config, $el = $$.$el, hasAxis = $$.state.hasAxis;
|
|
7547
7569
|
var isRotated = config.axis_rotated;
|
|
@@ -7572,6 +7594,7 @@ var size = {
|
|
|
7572
7594
|
}
|
|
7573
7595
|
if (type === "right") {
|
|
7574
7596
|
padding += isRotated ? (!isFitPadding && isUndefined(paddingOption) ? 10 : 2) : !isAxisShow || isAxisInner ? (isFitPadding ? 2 : 1) : 0;
|
|
7597
|
+
padding += withXAxisTickTextOverflow ? $$.axis.getXAxisTickTextY2Overflow(defaultPadding) : 0;
|
|
7575
7598
|
}
|
|
7576
7599
|
else if (type === "left" && isRotated && isUndefined(paddingOption)) {
|
|
7577
7600
|
padding = !config.axis_x_show ?
|
|
@@ -7591,10 +7614,11 @@ var size = {
|
|
|
7591
7614
|
}
|
|
7592
7615
|
return padding + (axisSize * axesLen) - gap;
|
|
7593
7616
|
},
|
|
7594
|
-
getCurrentPadding: function () {
|
|
7617
|
+
getCurrentPadding: function (withXAxisTickTextOverflow) {
|
|
7618
|
+
if (withXAxisTickTextOverflow === void 0) { withXAxisTickTextOverflow = false; }
|
|
7595
7619
|
var $$ = this;
|
|
7596
7620
|
var _a = ["top", "bottom", "left", "right"]
|
|
7597
|
-
.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];
|
|
7598
7622
|
return { top: top, bottom: bottom, left: left, right: right };
|
|
7599
7623
|
},
|
|
7600
7624
|
/**
|
|
@@ -7643,7 +7667,8 @@ var size = {
|
|
|
7643
7667
|
$$.updateXAxisTickClip();
|
|
7644
7668
|
}
|
|
7645
7669
|
var legendSize = {
|
|
7646
|
-
right: config.legend_show && state.isLegendRight ?
|
|
7670
|
+
right: config.legend_show && state.isLegendRight ?
|
|
7671
|
+
$$.getLegendWidth() + (isFitPadding ? 0 : 20) : 0,
|
|
7647
7672
|
bottom: !config.legend_show || state.isLegendRight || state.isLegendInset ? 0 : currLegend.height
|
|
7648
7673
|
};
|
|
7649
7674
|
var xAxisHeight = isRotated || isNonAxis ? 0 : $$.getHorizontalAxisHeight("x");
|
|
@@ -7654,7 +7679,7 @@ var size = {
|
|
|
7654
7679
|
// when needle is shown with legend, it need some bottom space to not overlap with legend text
|
|
7655
7680
|
var gaugeHeight = $$.hasType("gauge") && config.arc_needle_show &&
|
|
7656
7681
|
!config.gauge_fullCircle && !config.gauge_label_show ? 10 : 0;
|
|
7657
|
-
var padding = $$.getCurrentPadding();
|
|
7682
|
+
var padding = $$.getCurrentPadding(true);
|
|
7658
7683
|
// for main
|
|
7659
7684
|
state.margin = !isNonAxis && isRotated ? {
|
|
7660
7685
|
top: padding.top,
|
|
@@ -7973,7 +7998,7 @@ var text = {
|
|
|
7973
7998
|
* @returns {string|null}
|
|
7974
7999
|
* @private
|
|
7975
8000
|
*/
|
|
7976
|
-
|
|
8001
|
+
updateTextBackgroundColor: function (d) {
|
|
7977
8002
|
var $$ = this;
|
|
7978
8003
|
var $el = $$.$el, config = $$.config;
|
|
7979
8004
|
var backgroundColor = config.data_labels_backgroundColors;
|
|
@@ -8006,7 +8031,7 @@ var text = {
|
|
|
8006
8031
|
var rotateString = angle ? "rotate(".concat(angle, ")") : "";
|
|
8007
8032
|
$$.$el.text
|
|
8008
8033
|
.style("fill", $$.getStylePropValue($$.updateTextColor))
|
|
8009
|
-
.attr("filter", $$.
|
|
8034
|
+
.attr("filter", $$.updateTextBackgroundColor.bind($$))
|
|
8010
8035
|
.style("fill-opacity", forFlow ? 0 : $$.opacityForText.bind($$))
|
|
8011
8036
|
.each(function (d, i) {
|
|
8012
8037
|
// do not apply transition for newly added text elements
|
|
@@ -8107,7 +8132,7 @@ var text = {
|
|
|
8107
8132
|
if (config.data_labels.centered && (isBarType || isTreemapType)) {
|
|
8108
8133
|
var rect = getBoundingRect(textElement);
|
|
8109
8134
|
if (isBarType) {
|
|
8110
|
-
var isPositive = d
|
|
8135
|
+
var isPositive = $$.getRangedData(d, null, "bar") >= 0;
|
|
8111
8136
|
if (isRotated) {
|
|
8112
8137
|
var w = (isPositive ?
|
|
8113
8138
|
points[1][1] - points[0][1] :
|
|
@@ -8550,8 +8575,8 @@ var tooltip$1 = {
|
|
|
8550
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) : "");
|
|
8551
8576
|
}
|
|
8552
8577
|
else if ($$.isBarRangeType(row)) {
|
|
8553
|
-
var
|
|
8554
|
-
value = "".concat(valueFormat(
|
|
8578
|
+
var rangeValue = row.value, id = row.id, index = row.index;
|
|
8579
|
+
value = "".concat(valueFormat(rangeValue, undefined, id, index));
|
|
8555
8580
|
}
|
|
8556
8581
|
else {
|
|
8557
8582
|
value = valueFormat.apply(void 0, __spreadArray([getRowValue(row)], param, false));
|
|
@@ -8902,7 +8927,7 @@ var transform = {
|
|
|
8902
8927
|
}
|
|
8903
8928
|
else if (target === "y2") {
|
|
8904
8929
|
x = isRotated ? 0 : state.width + padding;
|
|
8905
|
-
y = isRotated ?
|
|
8930
|
+
y = isRotated ? -padding - 1 : 0;
|
|
8906
8931
|
}
|
|
8907
8932
|
else if (target === "subX") {
|
|
8908
8933
|
x = 0;
|
|
@@ -13189,11 +13214,12 @@ var Axis = /** @class */ (function () {
|
|
|
13189
13214
|
var $$ = this.owner;
|
|
13190
13215
|
var config = $$.config, current = $$.state.current, _a = $$.$el, svg = _a.svg, chart = _a.chart;
|
|
13191
13216
|
var currentTickMax = current.maxTickSize[id];
|
|
13217
|
+
var configPrefix = "axis_".concat(id);
|
|
13192
13218
|
var max = {
|
|
13193
13219
|
width: 0,
|
|
13194
13220
|
height: 0
|
|
13195
13221
|
};
|
|
13196
|
-
if (withoutRecompute || !config["
|
|
13222
|
+
if (withoutRecompute || !config["".concat(configPrefix, "_show")] || (currentTickMax.width > 0 && $$.filterTargetsToShow().length === 0)) {
|
|
13197
13223
|
return currentTickMax;
|
|
13198
13224
|
}
|
|
13199
13225
|
if (svg) {
|
|
@@ -13217,8 +13243,9 @@ var Axis = /** @class */ (function () {
|
|
|
13217
13243
|
currentTickMax.ticks.splice(0);
|
|
13218
13244
|
}
|
|
13219
13245
|
var axis = this.getAxis(id, scale, false, false, true);
|
|
13220
|
-
var
|
|
13221
|
-
var
|
|
13246
|
+
var tickRotate = config["".concat(configPrefix, "_tick_rotate")];
|
|
13247
|
+
var tickCount = config["".concat(configPrefix, "_tick_count")];
|
|
13248
|
+
var tickValues = config["".concat(configPrefix, "_tick_values")];
|
|
13222
13249
|
// Make to generate the final tick text to be rendered
|
|
13223
13250
|
// https://github.com/naver/billboard.js/issues/920
|
|
13224
13251
|
// Do not generate if 'tick values' option is given
|
|
@@ -13234,6 +13261,7 @@ var Axis = /** @class */ (function () {
|
|
|
13234
13261
|
.style("left", "0");
|
|
13235
13262
|
axis.create(dummy);
|
|
13236
13263
|
dummy.selectAll("text")
|
|
13264
|
+
.attr("transform", isNumber(tickRotate) ? "rotate(".concat(tickRotate, ")") : null)
|
|
13237
13265
|
.each(function (d, i) {
|
|
13238
13266
|
var _a = this.getBoundingClientRect(), width = _a.width, height = _a.height;
|
|
13239
13267
|
max.width = Math.max(max.width, width);
|
|
@@ -13259,7 +13287,7 @@ var Axis = /** @class */ (function () {
|
|
|
13259
13287
|
var positiveRotation = xAxisTickRotate > 0 && xAxisTickRotate < 90;
|
|
13260
13288
|
if ((axis.isCategorized() || axis.isTimeSeries()) &&
|
|
13261
13289
|
config.axis_x_tick_fit &&
|
|
13262
|
-
!config.axis_x_tick_culling &&
|
|
13290
|
+
(!config.axis_x_tick_culling || isEmpty(config.axis_x_tick_culling)) &&
|
|
13263
13291
|
!config.axis_x_tick_multiline &&
|
|
13264
13292
|
positiveRotation) {
|
|
13265
13293
|
var widthWithoutCurrentPaddingLeft = state.current.width - $$.getCurrentPaddingByDirection("left");
|
|
@@ -14311,9 +14339,8 @@ var clip = {
|
|
|
14311
14339
|
* @private
|
|
14312
14340
|
*/
|
|
14313
14341
|
setYAxisClipPath: function (node) {
|
|
14314
|
-
var _a;
|
|
14315
14342
|
var $$ = this;
|
|
14316
|
-
var config = $$.config,
|
|
14343
|
+
var config = $$.config, _a = $$.state, margin = _a.margin, width = _a.width, height = _a.height;
|
|
14317
14344
|
var isRotated = config.axis_rotated;
|
|
14318
14345
|
var left = Math.max(30, margin.left) - (isRotated ? 20 : 0);
|
|
14319
14346
|
var isInner = config.axis_y_inner;
|
|
@@ -14321,7 +14348,7 @@ var clip = {
|
|
|
14321
14348
|
(isRotated ? -(1 + left) : -(left - 1));
|
|
14322
14349
|
var y = -(isRotated ? 20 : margin.top);
|
|
14323
14350
|
var w = (isRotated ? width + 15 + left : margin.left + 20) + (isInner ? 20 : 0);
|
|
14324
|
-
var h = (isRotated ? margin.bottom +
|
|
14351
|
+
var h = (isRotated ? margin.bottom + 10 : (margin.top + height)) + 10;
|
|
14325
14352
|
node
|
|
14326
14353
|
.attr("x", x)
|
|
14327
14354
|
.attr("y", y)
|
|
@@ -14933,7 +14960,7 @@ var sizeAxis = {
|
|
|
14933
14960
|
var _a, _b;
|
|
14934
14961
|
var $$ = this;
|
|
14935
14962
|
var config = $$.config, state = $$.state;
|
|
14936
|
-
var
|
|
14963
|
+
var rotatedPadding = state.rotatedPadding, isLegendRight = state.isLegendRight, isLegendInset = state.isLegendInset;
|
|
14937
14964
|
var isRotated = config.axis_rotated;
|
|
14938
14965
|
var isFitPadding = ((_a = config.padding) === null || _a === void 0 ? void 0 : _a.mode) === "fit";
|
|
14939
14966
|
var isInner = config["axis_".concat(id, "_inner")];
|
|
@@ -14955,18 +14982,7 @@ var sizeAxis = {
|
|
|
14955
14982
|
return isFitPadding ? 0 : rotatedPadding.top;
|
|
14956
14983
|
}
|
|
14957
14984
|
var maxtickSize = $$.axis.getMaxTickSize(id);
|
|
14958
|
-
|
|
14959
|
-
// Calculate x/y axis height when tick rotated
|
|
14960
|
-
if (((id === "x" && !isRotated) || (/y2?/.test(id) && isRotated)) && rotate) {
|
|
14961
|
-
h += maxtickSize.width *
|
|
14962
|
-
Math.cos(Math.PI * (90 - Math.abs(rotate)) / 180);
|
|
14963
|
-
if (!config.axis_x_tick_multiline && current.height) {
|
|
14964
|
-
if (h > current.height / 2) {
|
|
14965
|
-
h = current.height / 2;
|
|
14966
|
-
}
|
|
14967
|
-
}
|
|
14968
|
-
}
|
|
14969
|
-
else if (maxtickSize.height > defaultHeight && config.legend_show) {
|
|
14985
|
+
if (maxtickSize.height > defaultHeight) {
|
|
14970
14986
|
h += maxtickSize.height - defaultHeight;
|
|
14971
14987
|
}
|
|
14972
14988
|
return h +
|
|
@@ -15012,10 +15028,10 @@ var sizeAxis = {
|
|
|
15012
15028
|
state.axis.x.tickCount = tickCount;
|
|
15013
15029
|
}
|
|
15014
15030
|
if ($el.svg &&
|
|
15031
|
+
config.axis_x_tick_autorotate &&
|
|
15015
15032
|
config.axis_x_tick_fit &&
|
|
15016
15033
|
!config.axis_x_tick_multiline &&
|
|
15017
15034
|
!config.axis_x_tick_culling &&
|
|
15018
|
-
config.axis_x_tick_autorotate &&
|
|
15019
15035
|
allowedXAxisTypes) {
|
|
15020
15036
|
rotate = $$.needToRotateXAxisTickTexts() ?
|
|
15021
15037
|
config.axis_x_tick_rotate : 0;
|
|
@@ -17264,7 +17280,7 @@ var shapeArc = {
|
|
|
17264
17280
|
if ($$.shouldShowArcLabel()) {
|
|
17265
17281
|
selection
|
|
17266
17282
|
.style("fill", $$.updateTextColor.bind($$))
|
|
17267
|
-
.attr("filter", $$.
|
|
17283
|
+
.attr("filter", $$.updateTextBackgroundColor.bind($$))
|
|
17268
17284
|
.each(function (d) {
|
|
17269
17285
|
var _a;
|
|
17270
17286
|
var node = select(this);
|
|
@@ -23021,7 +23037,7 @@ var zoomModule = function () {
|
|
|
23021
23037
|
var defaults = {};
|
|
23022
23038
|
/**
|
|
23023
23039
|
* @namespace bb
|
|
23024
|
-
* @version 3.10.
|
|
23040
|
+
* @version 3.10.3
|
|
23025
23041
|
*/
|
|
23026
23042
|
var bb = {
|
|
23027
23043
|
/**
|
|
@@ -23031,7 +23047,7 @@ var bb = {
|
|
|
23031
23047
|
* bb.version; // "1.0.0"
|
|
23032
23048
|
* @memberof bb
|
|
23033
23049
|
*/
|
|
23034
|
-
version: "3.10.
|
|
23050
|
+
version: "3.10.3",
|
|
23035
23051
|
/**
|
|
23036
23052
|
* Generate chart
|
|
23037
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
272
|
+
Plugin.version = "3.10.3";
|
|
273
273
|
return Plugin;
|
|
274
274
|
}());
|
|
275
275
|
var Plugin$1 = Plugin;
|