billboard.js 3.7.4 → 3.7.5
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 +57 -40
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +1751 -1327
- package/dist/billboard.pkgd.min.js +2 -2
- 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 +4 -3
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +4 -3
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +4 -3
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +4 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +1696 -1289
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +1699 -1291
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +1700 -1292
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +1701 -1293
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +1702 -1294
- 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 +25 -12
- 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 +19 -19
- package/src/ChartInternal/data/IData.ts +1 -1
- package/src/ChartInternal/data/data.ts +3 -4
- package/src/ChartInternal/interactions/eventrect.ts +4 -0
- package/src/ChartInternal/shape/bar.ts +2 -3
- package/src/config/Options/data/axis.ts +10 -1
- package/src/module/util.ts +5 -2
package/dist/billboard.css
CHANGED
package/dist/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.7.
|
|
8
|
+
* @version 3.7.5
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -691,7 +691,8 @@ function getRandom(asStr, min, max) {
|
|
|
691
691
|
if (max === void 0) {
|
|
692
692
|
max = 1e4;
|
|
693
693
|
}
|
|
694
|
-
var
|
|
694
|
+
var crpt = win.crypto || win.msCrypto,
|
|
695
|
+
rand = crpt ? min + crpt.getRandomValues(new Uint32Array(1))[0] % (max - min + 1) : Math.floor(Math.random() * (max - min) + min);
|
|
695
696
|
return asStr ? rand + "" : rand;
|
|
696
697
|
}
|
|
697
698
|
|
|
@@ -4394,7 +4395,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4394
4395
|
}.bind(this));
|
|
4395
4396
|
},
|
|
4396
4397
|
isMultipleX: function isMultipleX() {
|
|
4397
|
-
return notEmpty(this.config.data_xs) ||
|
|
4398
|
+
return notEmpty(this.config.data_xs) || this.hasType("bubble") || this.hasType("scatter");
|
|
4398
4399
|
},
|
|
4399
4400
|
addName: function addName(data) {
|
|
4400
4401
|
var $$ = this,
|
|
@@ -4698,7 +4699,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
4698
4699
|
};
|
|
4699
4700
|
}.bind(this));
|
|
4700
4701
|
} else if (length) {
|
|
4701
|
-
target = target[0].values;
|
|
4702
|
+
target = target[0].values.concat();
|
|
4702
4703
|
}
|
|
4703
4704
|
return target;
|
|
4704
4705
|
},
|
|
@@ -5306,7 +5307,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
5306
5307
|
*/
|
|
5307
5308
|
isBubbleZType: function isBubbleZType(d) {
|
|
5308
5309
|
var $$ = this;
|
|
5309
|
-
return $$.isBubbleType(d) && (isObject(d.value) && ("z" in d.value || "y" in d.value) || isArray(d.value) && d.value.length
|
|
5310
|
+
return $$.isBubbleType(d) && (isObject(d.value) && ("z" in d.value || "y" in d.value) || isArray(d.value) && d.value.length >= 2);
|
|
5310
5311
|
},
|
|
5311
5312
|
/**
|
|
5312
5313
|
* Determine if bar has ranged data
|
|
@@ -5318,7 +5319,7 @@ function getDataKeyForJson(keysParam, config) {
|
|
|
5318
5319
|
var _this44 = this,
|
|
5319
5320
|
$$ = this,
|
|
5320
5321
|
value = d.value;
|
|
5321
|
-
return $$.isBarType(d) && isArray(value) && value.length
|
|
5322
|
+
return $$.isBarType(d) && isArray(value) && value.length >= 2 && value.every(function (v) {
|
|
5322
5323
|
_newArrowCheck(this, _this44);
|
|
5323
5324
|
return isNumber(v);
|
|
5324
5325
|
}.bind(this));
|
|
@@ -14848,7 +14849,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14848
14849
|
* @private
|
|
14849
14850
|
*/
|
|
14850
14851
|
redrawEventRect: function redrawEventRect() {
|
|
14851
|
-
var
|
|
14852
|
+
var _this = this,
|
|
14853
|
+
$$ = this,
|
|
14852
14854
|
config = $$.config,
|
|
14853
14855
|
state = $$.state,
|
|
14854
14856
|
$el = $$.$el,
|
|
@@ -14873,6 +14875,12 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14873
14875
|
if (!isMultipleX) {
|
|
14874
14876
|
// Set data and update eventReceiver.data
|
|
14875
14877
|
var xAxisTickValues = $$.getMaxDataCountTarget();
|
|
14878
|
+
if (!config.data_xSort) {
|
|
14879
|
+
xAxisTickValues.sort(function (a, b) {
|
|
14880
|
+
_newArrowCheck(this, _this);
|
|
14881
|
+
return a.x - b.x;
|
|
14882
|
+
}.bind(this));
|
|
14883
|
+
}
|
|
14876
14884
|
|
|
14877
14885
|
// update data's index value to be alinged with the x Axis
|
|
14878
14886
|
$$.updateDataIndexByX(xAxisTickValues);
|
|
@@ -14883,7 +14891,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14883
14891
|
$$.updateEventRectData();
|
|
14884
14892
|
},
|
|
14885
14893
|
bindTouchOnEventRect: function bindTouchOnEventRect(isMultipleX) {
|
|
14886
|
-
var
|
|
14894
|
+
var _this2 = this,
|
|
14887
14895
|
$$ = this,
|
|
14888
14896
|
config = $$.config,
|
|
14889
14897
|
state = $$.state,
|
|
@@ -14891,7 +14899,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14891
14899
|
eventRect = _$$$$el.eventRect,
|
|
14892
14900
|
svg = _$$$$el.svg,
|
|
14893
14901
|
selectRect = function (context) {
|
|
14894
|
-
_newArrowCheck(this,
|
|
14902
|
+
_newArrowCheck(this, _this2);
|
|
14895
14903
|
if (isMultipleX) {
|
|
14896
14904
|
$$.selectRectForMultipleXs(context);
|
|
14897
14905
|
} else {
|
|
@@ -14901,7 +14909,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14901
14909
|
}
|
|
14902
14910
|
}.bind(this),
|
|
14903
14911
|
unselectRect = function () {
|
|
14904
|
-
_newArrowCheck(this,
|
|
14912
|
+
_newArrowCheck(this, _this2);
|
|
14905
14913
|
$$.unselectRect();
|
|
14906
14914
|
$$.callOverOutForTouch();
|
|
14907
14915
|
}.bind(this),
|
|
@@ -14910,7 +14918,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14910
14918
|
preventThreshold = !isNaN(preventDefault) && preventDefault || null,
|
|
14911
14919
|
startPx,
|
|
14912
14920
|
preventEvent = function (event) {
|
|
14913
|
-
_newArrowCheck(this,
|
|
14921
|
+
_newArrowCheck(this, _this2);
|
|
14914
14922
|
var eventType = event.type,
|
|
14915
14923
|
touch = event.changedTouches[0],
|
|
14916
14924
|
currentXY = touch["client" + (config.axis_rotated ? "Y" : "X")];
|
|
@@ -14931,11 +14939,11 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14931
14939
|
}.bind(this);
|
|
14932
14940
|
// bind touch events
|
|
14933
14941
|
eventRect.on("touchstart", function (event) {
|
|
14934
|
-
_newArrowCheck(this,
|
|
14942
|
+
_newArrowCheck(this, _this2);
|
|
14935
14943
|
state.event = event;
|
|
14936
14944
|
$$.updateEventRect();
|
|
14937
14945
|
}.bind(this)).on("touchstart.eventRect touchmove.eventRect", function (event) {
|
|
14938
|
-
_newArrowCheck(this,
|
|
14946
|
+
_newArrowCheck(this, _this2);
|
|
14939
14947
|
state.event = event;
|
|
14940
14948
|
if (!eventRect.empty() && eventRect.classed($EVENT.eventRect)) {
|
|
14941
14949
|
// if touch points are > 1, means doing zooming interaction. In this case do not execute tooltip codes.
|
|
@@ -14948,7 +14956,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14948
14956
|
unselectRect();
|
|
14949
14957
|
}
|
|
14950
14958
|
}.bind(this), !0).on("touchend.eventRect", function (event) {
|
|
14951
|
-
_newArrowCheck(this,
|
|
14959
|
+
_newArrowCheck(this, _this2);
|
|
14952
14960
|
state.event = event;
|
|
14953
14961
|
if (!eventRect.empty() && eventRect.classed($EVENT.eventRect)) {
|
|
14954
14962
|
if ($$.hasArcType() || !$$.toggleShape || state.cancelClick) {
|
|
@@ -14957,7 +14965,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14957
14965
|
}
|
|
14958
14966
|
}.bind(this), !0);
|
|
14959
14967
|
svg.on("touchstart", function (event) {
|
|
14960
|
-
_newArrowCheck(this,
|
|
14968
|
+
_newArrowCheck(this, _this2);
|
|
14961
14969
|
state.event = event;
|
|
14962
14970
|
var target = event.target;
|
|
14963
14971
|
if (target && target !== eventRect.node()) {
|
|
@@ -14972,7 +14980,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14972
14980
|
* @private
|
|
14973
14981
|
*/
|
|
14974
14982
|
updateEventRect: function updateEventRect(eventRect, force) {
|
|
14975
|
-
var
|
|
14983
|
+
var _this3 = this;
|
|
14976
14984
|
if (force === void 0) {
|
|
14977
14985
|
force = !1;
|
|
14978
14986
|
}
|
|
@@ -14987,7 +14995,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14987
14995
|
resizing = _state.resizing,
|
|
14988
14996
|
rectElement = eventRect || $el.eventRect,
|
|
14989
14997
|
updateClientRect = function () {
|
|
14990
|
-
_newArrowCheck(this,
|
|
14998
|
+
_newArrowCheck(this, _this3);
|
|
14991
14999
|
eventReceiver && (eventReceiver.rect = rectElement.node().getBoundingClientRect());
|
|
14992
15000
|
}.bind(this);
|
|
14993
15001
|
if (!rendered || resizing || force) {
|
|
@@ -15005,7 +15013,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15005
15013
|
* @private
|
|
15006
15014
|
*/
|
|
15007
15015
|
updateEventRectData: function updateEventRectData() {
|
|
15008
|
-
var
|
|
15016
|
+
var _this4 = this,
|
|
15009
15017
|
$$ = this,
|
|
15010
15018
|
config = $$.config,
|
|
15011
15019
|
scale = $$.scale,
|
|
@@ -15027,21 +15035,21 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15027
15035
|
if ($$.axis.isCategorized()) {
|
|
15028
15036
|
rectW = $$.getEventRectWidth();
|
|
15029
15037
|
rectX = function (d) {
|
|
15030
|
-
_newArrowCheck(this,
|
|
15038
|
+
_newArrowCheck(this, _this4);
|
|
15031
15039
|
return xScale(d.x) - rectW / 2;
|
|
15032
15040
|
}.bind(this);
|
|
15033
15041
|
} else {
|
|
15034
15042
|
var getPrevNextX = function (_ref) {
|
|
15035
15043
|
var index = _ref.index;
|
|
15036
|
-
_newArrowCheck(this,
|
|
15044
|
+
_newArrowCheck(this, _this4);
|
|
15037
15045
|
return {
|
|
15038
15046
|
prev: $$.getPrevX(index),
|
|
15039
15047
|
next: $$.getNextX(index)
|
|
15040
15048
|
};
|
|
15041
15049
|
}.bind(this);
|
|
15042
15050
|
rectW = function (d) {
|
|
15043
|
-
var
|
|
15044
|
-
_newArrowCheck(this,
|
|
15051
|
+
var _this5 = this;
|
|
15052
|
+
_newArrowCheck(this, _this4);
|
|
15045
15053
|
var x = getPrevNextX(d),
|
|
15046
15054
|
xDomain = xScale.domain();
|
|
15047
15055
|
var val;
|
|
@@ -15056,7 +15064,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15056
15064
|
} else {
|
|
15057
15065
|
Object.keys(x).forEach(function (key, i) {
|
|
15058
15066
|
var _x$key;
|
|
15059
|
-
_newArrowCheck(this,
|
|
15067
|
+
_newArrowCheck(this, _this5);
|
|
15060
15068
|
x[key] = (_x$key = x[key]) != null ? _x$key : xDomain[i];
|
|
15061
15069
|
}.bind(this));
|
|
15062
15070
|
val = Math.max(0, (xScale(x.next) - xScale(x.prev)) / 2);
|
|
@@ -15064,7 +15072,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15064
15072
|
return val;
|
|
15065
15073
|
}.bind(this);
|
|
15066
15074
|
rectX = function (d) {
|
|
15067
|
-
_newArrowCheck(this,
|
|
15075
|
+
_newArrowCheck(this, _this4);
|
|
15068
15076
|
var x = getPrevNextX(d);
|
|
15069
15077
|
var val;
|
|
15070
15078
|
|
|
@@ -15086,13 +15094,13 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15086
15094
|
}
|
|
15087
15095
|
var eventReceiver = state.eventReceiver,
|
|
15088
15096
|
call = function (fn, v) {
|
|
15089
|
-
_newArrowCheck(this,
|
|
15097
|
+
_newArrowCheck(this, _this4);
|
|
15090
15098
|
return isFunction(fn) ? fn(v) : fn;
|
|
15091
15099
|
}.bind(this);
|
|
15092
15100
|
// reset for possible remains coords data before the data loading
|
|
15093
15101
|
eventReceiver.coords.splice(eventReceiver.data.length);
|
|
15094
15102
|
eventReceiver.data.forEach(function (d, i) {
|
|
15095
|
-
_newArrowCheck(this,
|
|
15103
|
+
_newArrowCheck(this, _this4);
|
|
15096
15104
|
eventReceiver.coords[i] = {
|
|
15097
15105
|
x: call(x, d),
|
|
15098
15106
|
y: call(y, d),
|
|
@@ -15102,7 +15110,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15102
15110
|
}.bind(this));
|
|
15103
15111
|
},
|
|
15104
15112
|
selectRectForMultipleXs: function selectRectForMultipleXs(context) {
|
|
15105
|
-
var
|
|
15113
|
+
var _this6 = this,
|
|
15106
15114
|
$$ = this,
|
|
15107
15115
|
config = $$.config,
|
|
15108
15116
|
state = $$.state,
|
|
@@ -15123,7 +15131,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15123
15131
|
}
|
|
15124
15132
|
var sameXData = $$.isBubbleType(closest) || $$.isScatterType(closest) || !config.tooltip_grouped ? [closest] : $$.filterByX(targetsToShow, closest.x),
|
|
15125
15133
|
selectedData = sameXData.map(function (d) {
|
|
15126
|
-
_newArrowCheck(this,
|
|
15134
|
+
_newArrowCheck(this, _this6);
|
|
15127
15135
|
return $$.addName(d);
|
|
15128
15136
|
}.bind(this)); // show tooltip when cursor is close to some point
|
|
15129
15137
|
$$.showTooltip(selectedData, context);
|
|
@@ -15170,7 +15178,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15170
15178
|
* @private
|
|
15171
15179
|
*/
|
|
15172
15180
|
generateEventRectsForSingleX: function generateEventRectsForSingleX(eventRectEnter) {
|
|
15173
|
-
var
|
|
15181
|
+
var _this7 = this,
|
|
15174
15182
|
$$ = this,
|
|
15175
15183
|
config = $$.config,
|
|
15176
15184
|
state = $$.state,
|
|
@@ -15184,12 +15192,12 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15184
15192
|
});
|
|
15185
15193
|
if (state.inputType === "mouse") {
|
|
15186
15194
|
var getData = function (event) {
|
|
15187
|
-
_newArrowCheck(this,
|
|
15195
|
+
_newArrowCheck(this, _this7);
|
|
15188
15196
|
var index = event ? $$.getDataIndexFromEvent(event) : eventReceiver.currentIdx;
|
|
15189
15197
|
return index > -1 ? eventReceiver.data[index] : null;
|
|
15190
15198
|
}.bind(this);
|
|
15191
15199
|
rect.on("mouseover", function (event) {
|
|
15192
|
-
_newArrowCheck(this,
|
|
15200
|
+
_newArrowCheck(this, _this7);
|
|
15193
15201
|
state.event = event;
|
|
15194
15202
|
$$.updateEventRect();
|
|
15195
15203
|
}.bind(this)).on("mousemove", function (event) {
|
|
@@ -15227,7 +15235,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15227
15235
|
// to determine current interacting element, so use 'mousemove' event instead.
|
|
15228
15236
|
$$.setOverOut(index !== -1, index);
|
|
15229
15237
|
}).on("mouseout", function (event) {
|
|
15230
|
-
_newArrowCheck(this,
|
|
15238
|
+
_newArrowCheck(this, _this7);
|
|
15231
15239
|
state.event = event;
|
|
15232
15240
|
|
|
15233
15241
|
// chart is destroyed
|
|
@@ -15267,7 +15275,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15267
15275
|
* @private
|
|
15268
15276
|
*/
|
|
15269
15277
|
generateEventRectsForMultipleXs: function generateEventRectsForMultipleXs(eventRectEnter) {
|
|
15270
|
-
var
|
|
15278
|
+
var _this8 = this,
|
|
15271
15279
|
$$ = this,
|
|
15272
15280
|
state = $$.state;
|
|
15273
15281
|
eventRectEnter.on("click", function (event) {
|
|
@@ -15279,7 +15287,7 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15279
15287
|
state.event = event;
|
|
15280
15288
|
$$.selectRectForMultipleXs(this);
|
|
15281
15289
|
}).on("mouseout", function (event) {
|
|
15282
|
-
_newArrowCheck(this,
|
|
15290
|
+
_newArrowCheck(this, _this8);
|
|
15283
15291
|
state.event = event;
|
|
15284
15292
|
|
|
15285
15293
|
// chart is destroyed
|
|
@@ -16398,13 +16406,22 @@ function smoothLines(el, type) {
|
|
|
16398
16406
|
data_xLocaltime: !0,
|
|
16399
16407
|
/**
|
|
16400
16408
|
* Sort on x axis.
|
|
16409
|
+
* - **NOTE:** This option works for lineish(area/line/spline/step) types only.
|
|
16401
16410
|
* @name data․xSort
|
|
16402
16411
|
* @memberof Options
|
|
16403
16412
|
* @type {boolean}
|
|
16404
16413
|
* @default true
|
|
16414
|
+
* @see [Demo](https://naver.github.io/billboard.js/demo/#Data.DataXSort)
|
|
16405
16415
|
* @example
|
|
16406
16416
|
* data: {
|
|
16407
|
-
* xSort: false
|
|
16417
|
+
* xSort: false,
|
|
16418
|
+
* x: "x",
|
|
16419
|
+
* columns: [
|
|
16420
|
+
* // The line graph will start to be drawn following the x axis sequence
|
|
16421
|
+
* // Below data, wil start drawing x=1: 200, x=2: 300, x=3: 100
|
|
16422
|
+
* ["x", 3, 1, 2],
|
|
16423
|
+
* ["data1", 100, 200, 300]
|
|
16424
|
+
* ]
|
|
16408
16425
|
* }
|
|
16409
16426
|
*/
|
|
16410
16427
|
data_xSort: !0,
|
|
@@ -19320,11 +19337,11 @@ function getAttrTweenFn(fn) {
|
|
|
19320
19337
|
pathRadius = ["", ""]; // switch points if axis is rotated, not applicable for sub chart
|
|
19321
19338
|
var radius = 0;
|
|
19322
19339
|
var isGrouped = $$.isGrouped(d.id),
|
|
19323
|
-
isRadiusData = getRadius && isGrouped ? $$.isStackingRadiusData(d) : !1;
|
|
19324
|
-
if (getRadius
|
|
19340
|
+
isRadiusData = getRadius && isGrouped ? $$.isStackingRadiusData(d) : !1;
|
|
19341
|
+
if (getRadius) {
|
|
19325
19342
|
var index = isRotated ? indexY : indexX,
|
|
19326
19343
|
barW = points[2][index] - points[0][index];
|
|
19327
|
-
radius = getRadius(barW);
|
|
19344
|
+
radius = !isGrouped || isRadiusData ? getRadius(barW) : 0;
|
|
19328
19345
|
var arc = "a" + radius + "," + radius + " " + (isNegative ? "1 0 0" : "0 0 1") + " ";
|
|
19329
19346
|
pathRadius[+!isRotated] = "" + arc + radius + "," + radius;
|
|
19330
19347
|
pathRadius[+isRotated] = "" + arc + [-radius, radius][isRotated ? "sort" : "reverse"]();
|
|
@@ -24506,7 +24523,7 @@ var _defaults = {};
|
|
|
24506
24523
|
|
|
24507
24524
|
/**
|
|
24508
24525
|
* @namespace bb
|
|
24509
|
-
* @version 3.7.
|
|
24526
|
+
* @version 3.7.5
|
|
24510
24527
|
*/
|
|
24511
24528
|
var bb = {
|
|
24512
24529
|
/**
|
|
@@ -24516,7 +24533,7 @@ var bb = {
|
|
|
24516
24533
|
* bb.version; // "1.0.0"
|
|
24517
24534
|
* @memberof bb
|
|
24518
24535
|
*/
|
|
24519
|
-
version: "3.7.
|
|
24536
|
+
version: "3.7.5",
|
|
24520
24537
|
/**
|
|
24521
24538
|
* Generate chart
|
|
24522
24539
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
package/dist/billboard.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.7.
|
|
8
|
+
* @version 3.7.5
|
|
9
9
|
*/.bb svg{-webkit-tap-highlight-color:rgba(0,0,0,0);font:10px sans-serif}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-bars path,.bb-event-rect,.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.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-axis{shape-rendering:crispEdges}.bb-grid{pointer-events:none}.bb-grid line{stroke:#aaa}.bb-grid text{fill:#aaa}.bb-xgrid,.bb-ygrid{stroke-dasharray:3 3}.bb-text.bb-empty{fill:grey;font-size:2em}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:1px;stroke:#fff}.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}.bb-brush .extent,.bb-region,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border-collapse:collapse;border-spacing:0;-webkit-box-shadow:7px 7px 12px -9px #777;-moz-box-shadow:7px 7px 12px -9px #777;box-shadow:7px 7px 12px -9px #777;empty-cells:show;opacity:.9}.bb-tooltip tr{border:1px solid #ccc}.bb-tooltip th{background-color:#aaa;color:#fff;font-size:14px;padding:2px 5px;text-align:left}.bb-tooltip td{background-color:#fff;border-left:1px dotted #999;font-size:13px;padding:3px 6px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:10px;margin-right:6px;width:10px}.bb-tooltip.value{text-align:right}.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-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.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;font-size:11px;padding:5px}
|