billboard.js 3.5.1 → 3.6.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +87 -35
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +2343 -2107
- package/dist/billboard.pkgd.min.js +3 -3
- 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 +7 -3
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +7 -3
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +7 -3
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +7 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2258 -2074
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2264 -2076
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +2265 -2077
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +2266 -2078
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +2267 -2079
- 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-esm/billboard.js +90 -35
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +6 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +6 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +6 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +6 -2
- package/package.json +32 -30
- package/src/Chart/api/chart.ts +11 -3
- package/src/Chart/api/group.ts +1 -1
- package/src/ChartInternal/Axis/AxisRenderer.ts +2 -2
- package/src/ChartInternal/ChartInternal.ts +5 -4
- package/src/ChartInternal/data/convert.ts +1 -1
- package/src/ChartInternal/internals/color.ts +4 -1
- package/src/ChartInternal/internals/grid.ts +0 -1
- package/src/ChartInternal/internals/legend.ts +3 -2
- package/src/ChartInternal/shape/arc.ts +1 -1
- package/src/ChartInternal/shape/bar.ts +2 -1
- package/src/ChartInternal/shape/candlestick.ts +4 -3
- package/src/ChartInternal/shape/line.ts +5 -1
- package/src/ChartInternal/shape/shape.ts +36 -15
- package/src/config/Options/common/grid.ts +2 -2
- package/src/config/Options/common/legend.ts +3 -2
- package/src/config/Options/data/data.ts +18 -0
- package/src/config/Options/shape/bar.ts +6 -0
- package/src/config/Store/State.ts +1 -0
- package/src/config/config.ts +7 -1
- package/types/axis.d.ts +17 -2
- package/types/chart.d.ts +3 -1
- package/types/index.d.ts +1 -0
- package/types/options.d.ts +14 -0
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.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;font-size:11px;line-height:1}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-font-smoothing:antialiased;fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis{stroke-width:.7px}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:.7px}.bb-circle{fill:#fff!important}.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:1px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;stroke-dasharray:1 20;transform:translate(7px,1px)}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{-webkit-font-smoothing:antialiased;background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;empty-cells:show;font-size:11px;text-align:left}.bb-tooltip th{background-color:#0b00b1;border-bottom:2px solid #ff2d2d;color:#fffdfd;font-size:13px;padding:2px 8px;text-align:left}.bb-tooltip td{padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{border:1px solid #000;border-radius:3px;display:inline-block;height:8px;margin-right:6px;vertical-align:middle;width:8px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:18px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#000;font-size:18px!important;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-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:#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.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#8c8c8c}.bb .bb-button,.bb text{fill:#555;font-size:12px;letter-spacing:-.3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#8c8c8c}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ffb6b6;stroke-dasharray:3px}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_,rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1px;opacity:.75}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;box-shadow:.5px .5px 1px #999;empty-cells:show;font-size:12px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-tooltip th{background-color:#efefef;border-bottom:1px dotted #000;color:#000;font-size:12px;padding:4px 8px;text-align:center}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{background-color:#fff;border-bottom:1px solid #eee;padding:3px 6px}.bb-tooltip td:first-child{border-right:1px solid #eee;padding-left:5px}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:12px;margin-right:6px;vertical-align:middle;width:5px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:1px;font-size:12px}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#8c8c8c;font-size:16px!important;font-style:italic}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-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.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-family:sans-serif,Arial,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#c4c4c4}.bb .bb-button,.bb text{fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{fill:#fff!important;stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-spacing:0;empty-cells:show;font-size:11px;text-align:left}.bb-tooltip th{border-bottom:1px solid #eee;font-size:12px;padding:4px 8px;text-align:left}.bb-tooltip td{background-color:#fff;padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{border-radius:5px;display:inline-block;height:10px;margin-right:6px;vertical-align:middle;width:10px}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:12px;font-weight:800;padding-left:5px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#000;font-size:16px!important;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-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-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.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
*/
|
|
10
10
|
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
|
|
11
11
|
import { pointer, select, namespaces, selectAll } from 'd3-selection';
|
|
@@ -1210,6 +1210,7 @@ var State = /** @class */ (function () {
|
|
|
1210
1210
|
hasNegativeValue: false,
|
|
1211
1211
|
hasPositiveValue: true,
|
|
1212
1212
|
orgAreaOpacity: "0.2",
|
|
1213
|
+
orgConfig: {},
|
|
1213
1214
|
// ID strings
|
|
1214
1215
|
hiddenTargetIds: [],
|
|
1215
1216
|
hiddenLegendIds: [],
|
|
@@ -1912,6 +1913,23 @@ var data$2 = {
|
|
|
1912
1913
|
* }
|
|
1913
1914
|
*/
|
|
1914
1915
|
data_groups: [],
|
|
1916
|
+
/**
|
|
1917
|
+
* Set how zero value will be treated on groups.<br>
|
|
1918
|
+
* Possible values:
|
|
1919
|
+
* - `zero`: 0 will be positioned at absolute axis zero point.
|
|
1920
|
+
* - `positive`: 0 will be positioned at the top of a stack.
|
|
1921
|
+
* - `negative`: 0 will be positioned at the bottom of a stack.
|
|
1922
|
+
* @name data․groupsZeroAs
|
|
1923
|
+
* @memberof Options
|
|
1924
|
+
* @type {string}
|
|
1925
|
+
* @default "positive"
|
|
1926
|
+
* @see [Demo](https://naver.github.io/billboard.js/demo/#Data.Groups)
|
|
1927
|
+
* @example
|
|
1928
|
+
* data: {
|
|
1929
|
+
* groupsZeroAs: "zero" // "positive" or "negative"
|
|
1930
|
+
* }
|
|
1931
|
+
*/
|
|
1932
|
+
data_groupsZeroAs: "positive",
|
|
1915
1933
|
/**
|
|
1916
1934
|
* Set color converter function.<br><br>
|
|
1917
1935
|
* This option should a function and the specified function receives color (e.g. '#ff0000') and d that has data parameters like id, value, index, etc. And it must return a string that represents color (e.g. '#00ff00').
|
|
@@ -2627,7 +2645,8 @@ var legend$2 = {
|
|
|
2627
2645
|
* @property {boolean} [legend.hide=false] Hide legend
|
|
2628
2646
|
* If true given, all legend will be hidden. If string or array given, only the legend that has the id will be hidden.
|
|
2629
2647
|
* @property {string|HTMLElement} [legend.contents.bindto=undefined] Set CSS selector or element reference to bind legend items.
|
|
2630
|
-
*
|
|
2648
|
+
* - **NOTE:** Should be used along with `legend.contents.template`.
|
|
2649
|
+
* @property {string|Function} [legend.contents.template="<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>"] Set item's template.<br>
|
|
2631
2650
|
* - If set `string` value, within template the 'color' and 'title' can be replaced using template-like syntax string:
|
|
2632
2651
|
* - {=COLOR}: data color value
|
|
2633
2652
|
* - {=TITLE}: data title value
|
|
@@ -2705,7 +2724,7 @@ var legend$2 = {
|
|
|
2705
2724
|
legend_show: true,
|
|
2706
2725
|
legend_hide: false,
|
|
2707
2726
|
legend_contents_bindto: undefined,
|
|
2708
|
-
legend_contents_template:
|
|
2727
|
+
legend_contents_template: "<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",
|
|
2709
2728
|
legend_position: "bottom",
|
|
2710
2729
|
legend_inset_anchor: "top-left",
|
|
2711
2730
|
legend_inset_x: 10,
|
|
@@ -3618,6 +3637,7 @@ var dataConvert = {
|
|
|
3618
3637
|
});
|
|
3619
3638
|
// finish targets
|
|
3620
3639
|
targets.forEach(function (t) {
|
|
3640
|
+
var _a;
|
|
3621
3641
|
// sort values by its x
|
|
3622
3642
|
if (config.data_xSort) {
|
|
3623
3643
|
t.values = t.values.sort(function (v1, v2) {
|
|
@@ -3629,7 +3649,7 @@ var dataConvert = {
|
|
|
3629
3649
|
// indexing each value
|
|
3630
3650
|
t.values.forEach(function (v, i) { return (v.index = i); });
|
|
3631
3651
|
// this needs to be sorted because its index and value.index is identical
|
|
3632
|
-
$$.data.xs[t.id].sort(function (v1, v2) { return v1 - v2; });
|
|
3652
|
+
(_a = $$.data.xs[t.id]) === null || _a === void 0 ? void 0 : _a.sort(function (v1, v2) { return v1 - v2; });
|
|
3633
3653
|
});
|
|
3634
3654
|
// cache information about values
|
|
3635
3655
|
state.hasNegativeValue = $$.hasNegativeValueInTargets(targets);
|
|
@@ -4986,7 +5006,9 @@ var color = {
|
|
|
4986
5006
|
}
|
|
4987
5007
|
return function (d) {
|
|
4988
5008
|
var _a;
|
|
4989
|
-
var id = d.id ||
|
|
5009
|
+
var id = d.id ||
|
|
5010
|
+
((_a = d.data) === null || _a === void 0 ? void 0 : _a.id) ||
|
|
5011
|
+
d;
|
|
4990
5012
|
var isLine = $$.isTypeOf(id, ["line", "spline", "step"]) || !config.data_types[id];
|
|
4991
5013
|
var color;
|
|
4992
5014
|
// if callback function is provided
|
|
@@ -5983,9 +6005,10 @@ var legend$1 = {
|
|
|
5983
6005
|
.attr("y", isLegendRightOrInset ? pos : yForLegendRect);
|
|
5984
6006
|
var getColor = function (id) {
|
|
5985
6007
|
var data = $$.getDataById(id);
|
|
5986
|
-
|
|
6008
|
+
var color = $$.levelColor ?
|
|
5987
6009
|
$$.levelColor(data.values[0].value) :
|
|
5988
6010
|
$$.color(data);
|
|
6011
|
+
return color;
|
|
5989
6012
|
};
|
|
5990
6013
|
var usePoint = config.legend_usePoint;
|
|
5991
6014
|
if (usePoint) {
|
|
@@ -6643,8 +6666,10 @@ var shape = {
|
|
|
6643
6666
|
var $$ = this;
|
|
6644
6667
|
var config = $$.config, scale = $$.scale;
|
|
6645
6668
|
var currScale = isSub ? scale.subX : (scale.zoom || scale.x);
|
|
6669
|
+
var barOverlap = config.bar_overlap;
|
|
6646
6670
|
var barPadding = config.bar_padding;
|
|
6647
6671
|
var sum = function (p, c) { return p + c; };
|
|
6672
|
+
// total shapes half width
|
|
6648
6673
|
var halfWidth = isObjectType(offset) && (offset._$total.length ? offset._$total.reduce(sum) / 2 : 0);
|
|
6649
6674
|
return function (d) {
|
|
6650
6675
|
var ind = $$.getIndices(indices, d, "getShapeX");
|
|
@@ -6654,15 +6679,17 @@ var shape = {
|
|
|
6654
6679
|
if (notEmpty(d.x)) {
|
|
6655
6680
|
var xPos = currScale(d.x, true);
|
|
6656
6681
|
if (halfWidth) {
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6682
|
+
var offsetWidth = offset[d.id] || offset._$width;
|
|
6683
|
+
x = barOverlap ?
|
|
6684
|
+
xPos - offsetWidth / 2 :
|
|
6685
|
+
xPos - offsetWidth + offset._$total.slice(0, index + 1).reduce(sum) - halfWidth;
|
|
6660
6686
|
}
|
|
6661
6687
|
else {
|
|
6662
|
-
x = xPos - (isNumber(offset) ? offset : offset._$width) *
|
|
6688
|
+
x = xPos - (isNumber(offset) ? offset : offset._$width) *
|
|
6689
|
+
(targetsNum / 2 - (barOverlap ? 1 : index));
|
|
6663
6690
|
}
|
|
6664
6691
|
}
|
|
6665
|
-
// adjust x position for bar.padding
|
|
6692
|
+
// adjust x position for bar.padding option
|
|
6666
6693
|
if (offset && x && targetsNum > 1 && barPadding) {
|
|
6667
6694
|
if (index) {
|
|
6668
6695
|
x += barPadding * index;
|
|
@@ -6751,6 +6778,7 @@ var shape = {
|
|
|
6751
6778
|
getShapeOffset: function (typeFilter, indices, isSub) {
|
|
6752
6779
|
var $$ = this;
|
|
6753
6780
|
var _a = $$.getShapeOffsetData(typeFilter), shapeOffsetTargets = _a.shapeOffsetTargets, indexMapByTargetId = _a.indexMapByTargetId;
|
|
6781
|
+
var groupsZeroAs = $$.config.data_groupsZeroAs;
|
|
6754
6782
|
return function (d, idx) {
|
|
6755
6783
|
var id = d.id, value = d.value, x = d.x;
|
|
6756
6784
|
var ind = $$.getIndices(indices, d);
|
|
@@ -6759,22 +6787,27 @@ var shape = {
|
|
|
6759
6787
|
// TODO use range.getStart()
|
|
6760
6788
|
return scale(value[0]);
|
|
6761
6789
|
}
|
|
6762
|
-
var y0 = scale($$.getShapeYMin(id));
|
|
6763
6790
|
var dataXAsNumber = Number(x);
|
|
6791
|
+
var y0 = scale(groupsZeroAs === "zero" ? 0 : $$.getShapeYMin(id));
|
|
6764
6792
|
var offset = y0;
|
|
6765
6793
|
shapeOffsetTargets
|
|
6766
|
-
.filter(function (t) { return t.id !== id; })
|
|
6794
|
+
.filter(function (t) { return t.id !== id && ind[t.id] === ind[id]; })
|
|
6767
6795
|
.forEach(function (t) {
|
|
6768
6796
|
var tid = t.id, rowValueMapByXValue = t.rowValueMapByXValue, rowValues = t.rowValues, tvalues = t.values;
|
|
6769
6797
|
// for same stacked group (ind[tid] === ind[id])
|
|
6770
|
-
if (
|
|
6798
|
+
if (indexMapByTargetId[tid] < indexMapByTargetId[id]) {
|
|
6799
|
+
var rValue = tvalues[dataXAsNumber];
|
|
6771
6800
|
var row = rowValues[idx];
|
|
6772
6801
|
// check if the x values line up
|
|
6773
6802
|
if (!row || Number(row.x) !== dataXAsNumber) {
|
|
6774
6803
|
row = rowValueMapByXValue[dataXAsNumber];
|
|
6775
6804
|
}
|
|
6776
|
-
if ((row === null || row === void 0 ? void 0 : row.value) * value >= 0 && isNumber(
|
|
6777
|
-
|
|
6805
|
+
if ((row === null || row === void 0 ? void 0 : row.value) * value >= 0 && isNumber(rValue)) {
|
|
6806
|
+
var addOffset = value === 0 ? ((groupsZeroAs === "positive" && rValue > 0) ||
|
|
6807
|
+
(groupsZeroAs === "negative" && rValue < 0)) : true;
|
|
6808
|
+
if (addOffset) {
|
|
6809
|
+
offset += scale(rValue) - y0;
|
|
6810
|
+
}
|
|
6778
6811
|
}
|
|
6779
6812
|
}
|
|
6780
6813
|
});
|
|
@@ -8355,7 +8388,7 @@ var transform = {
|
|
|
8355
8388
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
8356
8389
|
* billboard.js project is licensed under the MIT license
|
|
8357
8390
|
*/
|
|
8358
|
-
var
|
|
8391
|
+
var typeInternals = {
|
|
8359
8392
|
setTargetType: function (targetIds, type) {
|
|
8360
8393
|
var $$ = this;
|
|
8361
8394
|
var config = $$.config, withoutFadeIn = $$.state.withoutFadeIn;
|
|
@@ -8905,8 +8938,9 @@ var ChartInternal = /** @class */ (function () {
|
|
|
8905
8938
|
!config.clipPath && $$.axis.init();
|
|
8906
8939
|
}
|
|
8907
8940
|
// Define g for chart area
|
|
8908
|
-
main.append("g")
|
|
8909
|
-
.
|
|
8941
|
+
main.append("g")
|
|
8942
|
+
.classed($COMMON.chart, true)
|
|
8943
|
+
.attr("clip-path", hasAxis ? state.clip.path : null);
|
|
8910
8944
|
$$.callPluginHook("$init");
|
|
8911
8945
|
if (hasAxis) {
|
|
8912
8946
|
// Cover whole with rects for events
|
|
@@ -9051,14 +9085,14 @@ var ChartInternal = /** @class */ (function () {
|
|
|
9051
9085
|
// Arc, Polar, Radar
|
|
9052
9086
|
}
|
|
9053
9087
|
else if ($$.hasArcType(targets)) {
|
|
9054
|
-
var
|
|
9088
|
+
var type = "Arc";
|
|
9055
9089
|
if (hasRadar) {
|
|
9056
|
-
|
|
9090
|
+
type = "Radar";
|
|
9057
9091
|
}
|
|
9058
9092
|
else if ($$.hasType("polar")) {
|
|
9059
|
-
|
|
9093
|
+
type = "Polar";
|
|
9060
9094
|
}
|
|
9061
|
-
helper(
|
|
9095
|
+
helper(type);
|
|
9062
9096
|
}
|
|
9063
9097
|
// Point types
|
|
9064
9098
|
var hasPointType = $$.hasType("bubble") || $$.hasType("scatter");
|
|
@@ -9186,7 +9220,7 @@ extend(ChartInternal.prototype, [
|
|
|
9186
9220
|
title,
|
|
9187
9221
|
tooltip$1,
|
|
9188
9222
|
transform,
|
|
9189
|
-
|
|
9223
|
+
typeInternals
|
|
9190
9224
|
]);
|
|
9191
9225
|
|
|
9192
9226
|
/**
|
|
@@ -9222,6 +9256,10 @@ function loadConfig(config) {
|
|
|
9222
9256
|
thisConfig[key] = read;
|
|
9223
9257
|
}
|
|
9224
9258
|
});
|
|
9259
|
+
// only should run in the ChartInternal context
|
|
9260
|
+
if (this.api) {
|
|
9261
|
+
this.state.orgConfig = config;
|
|
9262
|
+
}
|
|
9225
9263
|
}
|
|
9226
9264
|
|
|
9227
9265
|
/**
|
|
@@ -9350,7 +9388,9 @@ var apiChart = {
|
|
|
9350
9388
|
return null;
|
|
9351
9389
|
},
|
|
9352
9390
|
/**
|
|
9353
|
-
* Get or set
|
|
9391
|
+
* Get or set config option value.
|
|
9392
|
+
* - **NOTE:** for without parameter occasion
|
|
9393
|
+
* - will return all specified generation options object only. (will exclude any other options not specified at the initialization)
|
|
9354
9394
|
* @function config
|
|
9355
9395
|
* @instance
|
|
9356
9396
|
* @memberof Chart
|
|
@@ -9360,9 +9400,13 @@ var apiChart = {
|
|
|
9360
9400
|
* - **NOTE:** Doesn't guarantee work in all circumstances. It can be applied for limited options only.
|
|
9361
9401
|
* @returns {*}
|
|
9362
9402
|
* @example
|
|
9403
|
+
*
|
|
9363
9404
|
* // Getter
|
|
9364
9405
|
* chart.config("gauge.max");
|
|
9365
9406
|
*
|
|
9407
|
+
* // without any arguments, it returns generation config object
|
|
9408
|
+
* chart.config(); // {data: { ... }, axis: { ... }, ...}
|
|
9409
|
+
*
|
|
9366
9410
|
* // Setter
|
|
9367
9411
|
* chart.config("gauge.max", 100);
|
|
9368
9412
|
*
|
|
@@ -9371,10 +9415,10 @@ var apiChart = {
|
|
|
9371
9415
|
*/
|
|
9372
9416
|
config: function (name, value, redraw) {
|
|
9373
9417
|
var $$ = this.internal;
|
|
9374
|
-
var config = $$.config;
|
|
9418
|
+
var config = $$.config, state = $$.state;
|
|
9375
9419
|
var key = name === null || name === void 0 ? void 0 : name.replace(/\./g, "_");
|
|
9376
9420
|
var res;
|
|
9377
|
-
if (key in config) {
|
|
9421
|
+
if (name && key in config) {
|
|
9378
9422
|
if (isDefined(value)) {
|
|
9379
9423
|
config[key] = value;
|
|
9380
9424
|
res = value;
|
|
@@ -9384,6 +9428,9 @@ var apiChart = {
|
|
|
9384
9428
|
res = config[key];
|
|
9385
9429
|
}
|
|
9386
9430
|
}
|
|
9431
|
+
else {
|
|
9432
|
+
res = state.orgConfig;
|
|
9433
|
+
}
|
|
9387
9434
|
return res;
|
|
9388
9435
|
}
|
|
9389
9436
|
};
|
|
@@ -11605,10 +11652,11 @@ var AxisRenderer = /** @class */ (function () {
|
|
|
11605
11652
|
* @private
|
|
11606
11653
|
*/
|
|
11607
11654
|
AxisRenderer.prototype.getGeneratedTicks = function (count) {
|
|
11608
|
-
var
|
|
11655
|
+
var _a;
|
|
11656
|
+
var len = ((_a = this.generatedTicks) === null || _a === void 0 ? void 0 : _a.length) - 1;
|
|
11609
11657
|
var res = this.generatedTicks;
|
|
11610
11658
|
if (len > count) {
|
|
11611
|
-
var interval_1 = Math.round((len / count)
|
|
11659
|
+
var interval_1 = Math.round((len / count) + 0.1);
|
|
11612
11660
|
res = this.generatedTicks
|
|
11613
11661
|
.map(function (v, i) { return (i % interval_1 === 0 ? v : null); })
|
|
11614
11662
|
.filter(function (v) { return v !== null; })
|
|
@@ -15831,7 +15879,7 @@ var optGrid = {
|
|
|
15831
15879
|
* @property {boolean} [y.show=false] Show grids along x axis.
|
|
15832
15880
|
* @property {Array} [y.lines=[]] Show additional grid lines along y axis.<br>
|
|
15833
15881
|
* This option accepts array including object that has value, text, position and class.
|
|
15834
|
-
* @property {number} [y.ticks=
|
|
15882
|
+
* @property {number} [y.ticks=undefined] Number of y grids to be shown.
|
|
15835
15883
|
* @property {object} focus Grid focus object
|
|
15836
15884
|
* @property {boolean} [focus.edge=false] Show edged focus grid line.<br>**NOTE:** Available when [`tooltip.grouped=false`](#.tooltip) option is set.
|
|
15837
15885
|
* @property {boolean} [focus.show=true] Show grid line when focus.
|
|
@@ -15879,7 +15927,7 @@ var optGrid = {
|
|
|
15879
15927
|
grid_x_lines: [],
|
|
15880
15928
|
grid_y_show: false,
|
|
15881
15929
|
grid_y_lines: [],
|
|
15882
|
-
grid_y_ticks:
|
|
15930
|
+
grid_y_ticks: undefined,
|
|
15883
15931
|
grid_focus_edge: false,
|
|
15884
15932
|
grid_focus_show: true,
|
|
15885
15933
|
grid_focus_y: false,
|
|
@@ -15945,7 +15993,7 @@ var shapeArc = {
|
|
|
15945
15993
|
var gaugeArcWidth = $$.filterTargetsToShow($$.data.targets).length *
|
|
15946
15994
|
config.gauge_arcs_minWidth;
|
|
15947
15995
|
// determine radius
|
|
15948
|
-
state.radiusExpanded = Math.min(state.arcWidth, state.arcHeight) / 2 * ($$.hasMultiArcGauge() ? 0.85 : 1);
|
|
15996
|
+
state.radiusExpanded = Math.min(state.arcWidth, state.arcHeight) / 2 * ($$.hasMultiArcGauge() && config.gauge_label_show ? 0.85 : 1);
|
|
15949
15997
|
state.radius = state.radiusExpanded * 0.95;
|
|
15950
15998
|
state.innerRadiusRatio = w ? (state.radius - w) / state.radius : 0.6;
|
|
15951
15999
|
state.gaugeArcWidth = w || (gaugeArcWidth <= state.radius - state.innerRadius ?
|
|
@@ -17418,7 +17466,8 @@ var shapeLine = {
|
|
|
17418
17466
|
.attr("class", classLines);
|
|
17419
17467
|
// Areas
|
|
17420
17468
|
if ($$.hasTypeOf("Area")) {
|
|
17421
|
-
|
|
17469
|
+
var mainLine = (!area && mainLineEnter.empty() ? mainLineUpdate : mainLineEnter).filter($$.isAreaType.bind($$));
|
|
17470
|
+
$$.initArea(mainLine);
|
|
17422
17471
|
}
|
|
17423
17472
|
$$.updateTargetForCircle(targets, mainLineEnter);
|
|
17424
17473
|
},
|
|
@@ -18728,6 +18777,7 @@ var optBar = {
|
|
|
18728
18777
|
* @property {object} bar Bar object
|
|
18729
18778
|
* @property {number} [bar.indices.removeNull=false] Remove nullish data on bar indices positions.
|
|
18730
18779
|
* @property {number} [bar.label.threshold=0] Set threshold ratio to show/hide labels.
|
|
18780
|
+
* @property {boolean} [bar.overlap=false] Bars will be rendered at same position, which will be overlapped each other. (for non-grouped bars only)
|
|
18731
18781
|
* @property {number} [bar.padding=0] The padding pixel value between each bar.
|
|
18732
18782
|
* @property {number} [bar.radius] Set the radius of bar edge in pixel.
|
|
18733
18783
|
* @property {number} [bar.radius.ratio] Set the radius ratio of bar edge in relative the bar's width.
|
|
@@ -18743,6 +18793,7 @@ var optBar = {
|
|
|
18743
18793
|
* @property {number} [bar.width.dataname.max] The maximum width value for ratio.
|
|
18744
18794
|
* @property {boolean} [bar.zerobased=true] Set if min or max value will be 0 on bar chart.
|
|
18745
18795
|
* @see [Demo: bar indices](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarIndices)
|
|
18796
|
+
* @see [Demo: bar overlap](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarOverlap)
|
|
18746
18797
|
* @see [Demo: bar padding](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarPadding)
|
|
18747
18798
|
* @see [Demo: bar radius](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarRadius)
|
|
18748
18799
|
* @see [Demo: bar width](https://naver.github.io/billboard.js/demo/#BarChartOptions.BarWidth)
|
|
@@ -18754,6 +18805,9 @@ var optBar = {
|
|
|
18754
18805
|
* removeNull: true
|
|
18755
18806
|
* },
|
|
18756
18807
|
*
|
|
18808
|
+
* // remove nullish da
|
|
18809
|
+
* overlap: true,
|
|
18810
|
+
*
|
|
18757
18811
|
* padding: 1,
|
|
18758
18812
|
*
|
|
18759
18813
|
* // bar radius
|
|
@@ -18794,6 +18848,7 @@ var optBar = {
|
|
|
18794
18848
|
*/
|
|
18795
18849
|
bar_label_threshold: 0,
|
|
18796
18850
|
bar_indices_removeNull: false,
|
|
18851
|
+
bar_overlap: false,
|
|
18797
18852
|
bar_padding: 0,
|
|
18798
18853
|
bar_radius: undefined,
|
|
18799
18854
|
bar_radius_ratio: undefined,
|
|
@@ -21197,7 +21252,7 @@ var zoomModule = function () {
|
|
|
21197
21252
|
var defaults = {};
|
|
21198
21253
|
/**
|
|
21199
21254
|
* @namespace bb
|
|
21200
|
-
* @version 3.
|
|
21255
|
+
* @version 3.6.0-next.2
|
|
21201
21256
|
*/
|
|
21202
21257
|
var bb = {
|
|
21203
21258
|
/**
|
|
@@ -21207,7 +21262,7 @@ var bb = {
|
|
|
21207
21262
|
* bb.version; // "1.0.0"
|
|
21208
21263
|
* @memberof bb
|
|
21209
21264
|
*/
|
|
21210
|
-
version: "3.
|
|
21265
|
+
version: "3.6.0-next.2",
|
|
21211
21266
|
/**
|
|
21212
21267
|
* Generate chart
|
|
21213
21268
|
* - **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.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -111,7 +111,7 @@ var Plugin = /** @class */ (function () {
|
|
|
111
111
|
delete _this[key];
|
|
112
112
|
});
|
|
113
113
|
};
|
|
114
|
-
Plugin.version = "3.
|
|
114
|
+
Plugin.version = "3.6.0-next.2";
|
|
115
115
|
return Plugin;
|
|
116
116
|
}());
|
|
117
117
|
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.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -286,7 +286,7 @@ var Plugin = /** @class */ (function () {
|
|
|
286
286
|
delete _this[key];
|
|
287
287
|
});
|
|
288
288
|
};
|
|
289
|
-
Plugin.version = "3.
|
|
289
|
+
Plugin.version = "3.6.0-next.2";
|
|
290
290
|
return Plugin;
|
|
291
291
|
}());
|
|
292
292
|
var Plugin$1 = Plugin;
|
|
@@ -466,6 +466,10 @@ function loadConfig(config) {
|
|
|
466
466
|
thisConfig[key] = read;
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
|
+
// only should run in the ChartInternal context
|
|
470
|
+
if (this.api) {
|
|
471
|
+
this.state.orgConfig = config;
|
|
472
|
+
}
|
|
469
473
|
}
|
|
470
474
|
|
|
471
475
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -430,6 +430,10 @@ function loadConfig(config) {
|
|
|
430
430
|
thisConfig[key] = read;
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
+
// only should run in the ChartInternal context
|
|
434
|
+
if (this.api) {
|
|
435
|
+
this.state.orgConfig = config;
|
|
436
|
+
}
|
|
433
437
|
}
|
|
434
438
|
|
|
435
439
|
/**
|
|
@@ -490,7 +494,7 @@ var Plugin = /** @class */ (function () {
|
|
|
490
494
|
delete _this[key];
|
|
491
495
|
});
|
|
492
496
|
};
|
|
493
|
-
Plugin.version = "3.
|
|
497
|
+
Plugin.version = "3.6.0-next.2";
|
|
494
498
|
return Plugin;
|
|
495
499
|
}());
|
|
496
500
|
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.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -134,7 +134,7 @@ var Plugin = /** @class */ (function () {
|
|
|
134
134
|
delete _this[key];
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
Plugin.version = "3.
|
|
137
|
+
Plugin.version = "3.6.0-next.2";
|
|
138
138
|
return Plugin;
|
|
139
139
|
}());
|
|
140
140
|
var Plugin$1 = Plugin;
|
|
@@ -417,6 +417,10 @@ function loadConfig(config) {
|
|
|
417
417
|
thisConfig[key] = read;
|
|
418
418
|
}
|
|
419
419
|
});
|
|
420
|
+
// only should run in the ChartInternal context
|
|
421
|
+
if (this.api) {
|
|
422
|
+
this.state.orgConfig = config;
|
|
423
|
+
}
|
|
420
424
|
}
|
|
421
425
|
|
|
422
426
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.6.0-next.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -206,6 +206,10 @@ function loadConfig(config) {
|
|
|
206
206
|
thisConfig[key] = read;
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
+
// only should run in the ChartInternal context
|
|
210
|
+
if (this.api) {
|
|
211
|
+
this.state.orgConfig = config;
|
|
212
|
+
}
|
|
209
213
|
}
|
|
210
214
|
|
|
211
215
|
/**
|
|
@@ -266,7 +270,7 @@ var Plugin = /** @class */ (function () {
|
|
|
266
270
|
delete _this[key];
|
|
267
271
|
});
|
|
268
272
|
};
|
|
269
|
-
Plugin.version = "3.
|
|
273
|
+
Plugin.version = "3.6.0-next.2";
|
|
270
274
|
return Plugin;
|
|
271
275
|
}());
|
|
272
276
|
var Plugin$1 = Plugin;
|