smarter-charts 2.2.0 → 2.3.0
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 +22 -24
- package/dist/{apexcharts.ssr.esm-fe46cd2d-C4I5ONZa.js → apexcharts.ssr.esm-fe46cd2d-BxO-IQ5_.js} +199 -203
- package/dist/smarter-charts.es.js +31776 -20879
- package/dist/smarter-charts.umd.js +957 -128
- package/package.json +12 -12
package/dist/{apexcharts.ssr.esm-fe46cd2d-C4I5ONZa.js → apexcharts.ssr.esm-fe46cd2d-BxO-IQ5_.js}
RENAMED
|
@@ -287,12 +287,13 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
287
287
|
if (typeof e != "object" || !e) return e;
|
|
288
288
|
if (t.has(e)) return t.get(e);
|
|
289
289
|
let r;
|
|
290
|
-
if (Array.isArray(e))
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
290
|
+
if (Array.isArray(e)) {
|
|
291
|
+
if (n) r = e.slice();
|
|
292
|
+
else {
|
|
293
|
+
r = [], t.set(e, r);
|
|
294
|
+
for (let n = 0; n < e.length; n++) r[n] = this.clone(e[n], t, !1);
|
|
295
|
+
}
|
|
296
|
+
} else if (e instanceof Date) r = new Date(e.getTime());
|
|
296
297
|
else if (n) r = Object.assign({}, e);
|
|
297
298
|
else {
|
|
298
299
|
r = {}, t.set(e, r);
|
|
@@ -632,9 +633,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
632
633
|
case this.months31.indexOf(e) > -1:
|
|
633
634
|
n = 31;
|
|
634
635
|
break;
|
|
635
|
-
default:
|
|
636
|
-
n = 31;
|
|
637
|
-
break;
|
|
636
|
+
default: n = 31;
|
|
638
637
|
}
|
|
639
638
|
return n;
|
|
640
639
|
}
|
|
@@ -655,16 +654,18 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
655
654
|
}
|
|
656
655
|
defaultYFormatter(e, t) {
|
|
657
656
|
let n = this.w;
|
|
658
|
-
if (y.isNumber(e))
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
657
|
+
if (y.isNumber(e)) {
|
|
658
|
+
if (n.globals.yValueDecimal !== 0) e = e.toFixed(t.decimalsInFloat === void 0 ? n.globals.yValueDecimal : t.decimalsInFloat);
|
|
659
|
+
else {
|
|
660
|
+
let t = e.toFixed(0);
|
|
661
|
+
e = e == t ? t : e.toFixed(1);
|
|
662
|
+
}
|
|
662
663
|
}
|
|
663
664
|
return e;
|
|
664
665
|
}
|
|
665
666
|
setLabelFormatters() {
|
|
666
667
|
let e = this.w, t = e.formatters;
|
|
667
|
-
return t.xaxisTooltipFormatter = (e) => this.defaultGeneralFormatter(e), t.ttKeyFormatter = (e) => this.defaultGeneralFormatter(e), t.ttZFormatter = (e) => e, t.legendFormatter = (e) => this.defaultGeneralFormatter(e), e.config.xaxis.labels.formatter === void 0 ?
|
|
668
|
+
return t.xaxisTooltipFormatter = (e) => this.defaultGeneralFormatter(e), t.ttKeyFormatter = (e) => this.defaultGeneralFormatter(e), t.ttZFormatter = (e) => e, t.legendFormatter = (e) => this.defaultGeneralFormatter(e), t.xLabelFormatter = e.config.xaxis.labels.formatter === void 0 ? (t) => {
|
|
668
669
|
if (y.isNumber(t)) {
|
|
669
670
|
if (!e.config.xaxis.convertedCatToNumeric && e.config.xaxis.type === "numeric") {
|
|
670
671
|
if (y.isNumber(e.config.xaxis.decimalsInFloat)) return t.toFixed(e.config.xaxis.decimalsInFloat);
|
|
@@ -676,7 +677,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
676
677
|
return e.globals.isBarHorizontal && e.globals.maxY - e.globals.minYArr < 4 ? t.toFixed(1) : t.toFixed(0);
|
|
677
678
|
}
|
|
678
679
|
return t;
|
|
679
|
-
} :
|
|
680
|
+
} : e.config.xaxis.labels.formatter, t.ttKeyFormatter = typeof e.config.tooltip.x.formatter == "function" ? e.config.tooltip.x.formatter : t.xLabelFormatter, typeof e.config.xaxis.tooltip.formatter == "function" && (t.xaxisTooltipFormatter = e.config.xaxis.tooltip.formatter), (Array.isArray(e.config.tooltip.y) || e.config.tooltip.y.formatter !== void 0) && (t.ttVal = e.config.tooltip.y), e.config.tooltip.z.formatter !== void 0 && (t.ttZFormatter = e.config.tooltip.z.formatter), e.config.legend.formatter !== void 0 && (t.legendFormatter = e.config.legend.formatter), t.yLabelFormatters = [], e.config.yaxis.forEach((n, r) => {
|
|
680
681
|
n.labels.formatter === void 0 ? t.yLabelFormatters[r] = (t) => e.globals.xyCharts ? Array.isArray(t) ? t.map((e) => this.defaultYFormatter(e, n, r)) : this.defaultYFormatter(t, n, r) : t : t.yLabelFormatters[r] = n.labels.formatter;
|
|
681
682
|
}), e.globals;
|
|
682
683
|
}
|
|
@@ -703,11 +704,12 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
703
704
|
w: a
|
|
704
705
|
})), typeof d == "function" && (l = d(l, p)), Number.isFinite(r) && Number.isFinite(i) && (s = r, c = i);
|
|
705
706
|
let m = "", h = "", g = a.globals.colors[t];
|
|
706
|
-
if (a.config.tooltip.x.formatter === void 0)
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
707
|
+
if (a.config.tooltip.x.formatter === void 0) {
|
|
708
|
+
if (a.config.xaxis.type === "datetime") {
|
|
709
|
+
let e = new b(a);
|
|
710
|
+
m = e.formatDate(e.getDate(s), a.config.tooltip.x.format), h = e.formatDate(e.getDate(c), a.config.tooltip.x.format);
|
|
711
|
+
} else m = s, h = c;
|
|
712
|
+
} else m = a.config.tooltip.x.formatter(s), h = a.config.tooltip.x.formatter(c);
|
|
711
713
|
return {
|
|
712
714
|
start: s,
|
|
713
715
|
end: c,
|
|
@@ -2576,7 +2578,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
2576
2578
|
let n = new E();
|
|
2577
2579
|
(typeof e.yaxis > "u" || !e.yaxis || Array.isArray(e.yaxis) && e.yaxis.length === 0) && (e.yaxis = {});
|
|
2578
2580
|
let r = d.getApex();
|
|
2579
|
-
e.yaxis.constructor !== Array && r.yaxis && r.yaxis.constructor !== Array && (e.yaxis = y.extend(e.yaxis, r.yaxis)), e.yaxis.constructor === Array ?
|
|
2581
|
+
e.yaxis.constructor !== Array && r.yaxis && r.yaxis.constructor !== Array && (e.yaxis = y.extend(e.yaxis, r.yaxis)), e.yaxis = e.yaxis.constructor === Array ? y.extendArray(e.yaxis, n.yAxis) : [y.extend(n.yAxis, e.yaxis)];
|
|
2580
2582
|
let i = !1;
|
|
2581
2583
|
e.yaxis.forEach((e) => {
|
|
2582
2584
|
e.logarithmic && (i = !0);
|
|
@@ -3744,12 +3746,10 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
3744
3746
|
r /= 1.1, i = `M ${e - r} ${t}
|
|
3745
3747
|
L ${e + r} ${t}`;
|
|
3746
3748
|
break;
|
|
3747
|
-
default:
|
|
3748
|
-
r *= 2, i = `M ${e}, ${t}
|
|
3749
|
+
default: r *= 2, i = `M ${e}, ${t}
|
|
3749
3750
|
m -${r / 2}, 0
|
|
3750
3751
|
a ${r / 2},${r / 2} 0 1,0 ${r},0
|
|
3751
3752
|
a ${r / 2},${r / 2} 0 1,0 -${r},0`;
|
|
3752
|
-
break;
|
|
3753
3753
|
}
|
|
3754
3754
|
return i;
|
|
3755
3755
|
}
|
|
@@ -3792,7 +3792,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
3792
3792
|
dataPointIndex: o,
|
|
3793
3793
|
w: r
|
|
3794
3794
|
}
|
|
3795
|
-
]),
|
|
3795
|
+
]), (r.config.states.active.filter.type === "none" || t.node.getAttribute("selected") !== "true") && r.config.states.hover.filter.type !== "none" && !r.interact.isTouchDevice) {
|
|
3796
3796
|
let e = r.config.states.hover.filter;
|
|
3797
3797
|
i.applyFilter(t, a, e.type);
|
|
3798
3798
|
}
|
|
@@ -3811,7 +3811,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
3811
3811
|
dataPointIndex: o,
|
|
3812
3812
|
w: r
|
|
3813
3813
|
}
|
|
3814
|
-
]),
|
|
3814
|
+
]), (r.config.states.active.filter.type === "none" || t.node.getAttribute("selected") !== "true") && r.config.states.hover.filter.type !== "none" && i.getDefaultFilter(t, a);
|
|
3815
3815
|
}
|
|
3816
3816
|
pathMouseDown(t, n) {
|
|
3817
3817
|
let r = this.w, i = new F(this.w), a = parseInt(t.node.getAttribute("index"), 10), o = parseInt(t.node.getAttribute("j"), 10), s = "false";
|
|
@@ -3839,10 +3839,12 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
3839
3839
|
let e = r.config.states.hover.filter;
|
|
3840
3840
|
i.applyFilter(t, a, e.type);
|
|
3841
3841
|
}
|
|
3842
|
-
} else if (r.config.states.active.filter.type !== "none")
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3842
|
+
} else if (r.config.states.active.filter.type !== "none") {
|
|
3843
|
+
if (r.config.states.hover.filter.type !== "none" && !r.interact.isTouchDevice) {
|
|
3844
|
+
let e = r.config.states.hover.filter;
|
|
3845
|
+
i.applyFilter(t, a, e.type);
|
|
3846
|
+
} else i.getDefaultFilter(t, a);
|
|
3847
|
+
}
|
|
3846
3848
|
typeof r.config.chart.events.dataPointSelection == "function" && r.config.chart.events.dataPointSelection(n, this.ctx, {
|
|
3847
3849
|
selectedDataPoints: r.interact.selectedDataPoints,
|
|
3848
3850
|
seriesIndex: a,
|
|
@@ -3983,7 +3985,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
3983
3985
|
}
|
|
3984
3986
|
getSeriesIndex(e) {
|
|
3985
3987
|
let t = this.w, n = t.config.chart.type;
|
|
3986
|
-
return (n === "bar" || n === "rangeBar") && t.config.plotOptions.bar.distributed || n === "heatmap" || n === "treemap" ?
|
|
3988
|
+
return this.seriesIndex = (n === "bar" || n === "rangeBar") && t.config.plotOptions.bar.distributed || n === "heatmap" || n === "treemap" ? e.seriesNumber : e.seriesNumber % t.seriesData.series.length, this.seriesIndex;
|
|
3987
3989
|
}
|
|
3988
3990
|
computeColorStops(e, t) {
|
|
3989
3991
|
let n = this.w, r = null, i = null;
|
|
@@ -4159,7 +4161,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
4159
4161
|
let n = t + 1, i = !0;
|
|
4160
4162
|
t === 0 && e === 0 && (n = 0), t === 0 && e === 1 && (n = 1);
|
|
4161
4163
|
let u = r.globals.markers.size[a];
|
|
4162
|
-
if (s !==
|
|
4164
|
+
if (s !== 1 / 0) {
|
|
4163
4165
|
let e = r.config.plotOptions.bubble;
|
|
4164
4166
|
u = r.seriesData.seriesZ[a][n], e.zScaling && (u /= s), e.minBubbleRadius && u < e.minBubbleRadius && (u = e.minBubbleRadius), e.maxBubbleRadius && u > e.maxBubbleRadius && (u = e.maxBubbleRadius);
|
|
4165
4167
|
}
|
|
@@ -4407,7 +4409,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
4407
4409
|
this.w = e, this.ctx = t, this.elgrid = n, this.axesUtils = new H(e, {
|
|
4408
4410
|
theme: t.theme,
|
|
4409
4411
|
timeScale: t.timeScale
|
|
4410
|
-
}), this.xaxisLabels = e.labelData.labels.slice(), e.labelData.timescaleLabels.length > 0 && !e.globals.isBarHorizontal && (this.xaxisLabels = e.labelData.timescaleLabels.slice()), e.config.xaxis.overwriteCategories && (this.xaxisLabels = e.config.xaxis.overwriteCategories), this.drawnLabels = [], this.drawnLabelsRects = [], e.config.xaxis.position === "top" ?
|
|
4412
|
+
}), this.xaxisLabels = e.labelData.labels.slice(), e.labelData.timescaleLabels.length > 0 && !e.globals.isBarHorizontal && (this.xaxisLabels = e.labelData.timescaleLabels.slice()), e.config.xaxis.overwriteCategories && (this.xaxisLabels = e.config.xaxis.overwriteCategories), this.drawnLabels = [], this.drawnLabelsRects = [], this.offY = e.config.xaxis.position === "top" ? 0 : e.layout.gridHeight, this.offY += e.config.xaxis.axisBorder.offsetY, this.isCategoryBarHorizontal = e.config.chart.type === "bar" && e.config.plotOptions.bar.horizontal, this.xaxisFontSize = e.config.xaxis.labels.style.fontSize, this.xaxisFontFamily = e.config.xaxis.labels.style.fontFamily, this.xaxisForeColors = e.config.xaxis.labels.style.colors, this.xaxisBorderWidth = e.config.xaxis.axisBorder.width, this.isCategoryBarHorizontal && (this.xaxisBorderWidth = e.config.yaxis[0].axisBorder.width.toString()), this.xaxisBorderWidth = String(this.xaxisBorderWidth).indexOf("%") > -1 ? e.layout.gridWidth * parseInt(this.xaxisBorderWidth, 10) / 100 : parseInt(this.xaxisBorderWidth, 10), this.xaxisBorderHeight = e.config.xaxis.axisBorder.height, this.yaxis = e.config.yaxis[0];
|
|
4411
4413
|
}
|
|
4412
4414
|
drawXaxis() {
|
|
4413
4415
|
let e = this.w, t = new I(this.w), n = t.group({
|
|
@@ -4699,19 +4701,19 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
4699
4701
|
}), r += n.layout.gridWidth / (n.axisFlags.isXNumeric ? t - 1 : t), a = r;
|
|
4700
4702
|
};
|
|
4701
4703
|
if (n.config.grid.xaxis.lines.show || n.config.xaxis.axisTicks.show) {
|
|
4702
|
-
let t = n.globals.padHorizontal, a = n.layout.gridHeight;
|
|
4704
|
+
let t = n.globals.padHorizontal, a, o = n.layout.gridHeight;
|
|
4703
4705
|
n.labelData.timescaleLabels.length ? r({
|
|
4704
4706
|
xC: e,
|
|
4705
4707
|
x1: t,
|
|
4706
4708
|
y1: 0,
|
|
4707
|
-
x2:
|
|
4708
|
-
y2:
|
|
4709
|
+
x2: a,
|
|
4710
|
+
y2: o
|
|
4709
4711
|
}) : (n.axisFlags.isXNumeric && (e = n.globals.xAxisScale.result.length), i({
|
|
4710
4712
|
xC: e,
|
|
4711
4713
|
x1: t,
|
|
4712
4714
|
y1: 0,
|
|
4713
|
-
x2:
|
|
4714
|
-
y2:
|
|
4715
|
+
x2: a,
|
|
4716
|
+
y2: o
|
|
4715
4717
|
}));
|
|
4716
4718
|
}
|
|
4717
4719
|
if (n.config.grid.yaxis.lines.show) {
|
|
@@ -4819,12 +4821,14 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
4819
4821
|
let g = m / p, _ = g, v = Math.floor(Math.log10(_)), b = 10 ** v, x = Math.ceil(_ / b);
|
|
4820
4822
|
if (x = k[i.yValueDecimal === 0 ? 0 : 1][x], _ = x * b, g = _, i.isBarHorizontal && a.stepSize && a.type !== "datetime" ? (g = a.stepSize, l = !0) : l && (g = a.stepSize), l && a.forceNiceScale && (g *= 10 ** (v - Math.floor(Math.log10(g)))), s && c) {
|
|
4821
4823
|
let e = m / p;
|
|
4822
|
-
if (u)
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4824
|
+
if (u) {
|
|
4825
|
+
if (l) {
|
|
4826
|
+
if (y.mod(m, g) != 0) {
|
|
4827
|
+
let t = y.getGCD(g, e);
|
|
4828
|
+
g = e / t < 10 ? t : e;
|
|
4829
|
+
} else y.mod(g, e) == 0 ? g = e : (e = g, u = !1);
|
|
4830
|
+
} else g = e;
|
|
4831
|
+
} else if (l) y.mod(m, g) == 0 ? e = g : g = e;
|
|
4828
4832
|
else if (y.mod(m, g) == 0) e = g;
|
|
4829
4833
|
else {
|
|
4830
4834
|
p = Math.ceil(m / g), e = m / p;
|
|
@@ -4833,19 +4837,23 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
4833
4837
|
}
|
|
4834
4838
|
p = Math.round(m / g);
|
|
4835
4839
|
} else {
|
|
4836
|
-
if (!s && !c)
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
else {
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4840
|
+
if (!s && !c) {
|
|
4841
|
+
if (i.isMultipleYAxis && u) {
|
|
4842
|
+
let n = g * Math.floor(e / g), r = n + g * p;
|
|
4843
|
+
r < t && (g *= 2), e = n, r = t, t = e + g * p, m = Math.abs(t - e), e > 0 && e < Math.abs(r - t) && (e = 0, t = g * p), t < 0 && -t < Math.abs(n - e) && (t = 0, e = -g * p);
|
|
4844
|
+
} else e = g * Math.floor(e / g), t = g * Math.ceil(t / g);
|
|
4845
|
+
} else if (c) {
|
|
4846
|
+
if (u) e = t - g * p;
|
|
4847
|
+
else {
|
|
4848
|
+
let n = e;
|
|
4849
|
+
e = g * Math.floor(e / g), Math.abs(t - e) / y.getGCD(m, g) > o && (e = t - g * d, e += g * Math.floor((n - e) / g));
|
|
4850
|
+
}
|
|
4851
|
+
} else if (s) {
|
|
4852
|
+
if (u) t = e + g * p;
|
|
4853
|
+
else {
|
|
4854
|
+
let n = t;
|
|
4855
|
+
t = g * Math.ceil(t / g), Math.abs(t - e) / y.getGCD(m, g) > o && (t = e + g * d, t += g * Math.ceil((n - t) / g));
|
|
4856
|
+
}
|
|
4849
4857
|
}
|
|
4850
4858
|
m = Math.abs(t - e), g = y.getGCD(m, g), p = Math.round(m / g);
|
|
4851
4859
|
}
|
|
@@ -5009,9 +5017,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
5009
5017
|
case "candlestick":
|
|
5010
5018
|
typeof this.w.candleData.seriesCandleC[f][i] < "u" && (o = Math.max(o, this.w.candleData.seriesCandleH[f][i]), t = Math.min(t, this.w.candleData.seriesCandleL[f][i]));
|
|
5011
5019
|
break;
|
|
5012
|
-
case "boxPlot":
|
|
5013
|
-
typeof this.w.candleData.seriesCandleC[f][i] < "u" && (o = Math.max(o, this.w.candleData.seriesCandleC[f][i]), t = Math.min(t, this.w.candleData.seriesCandleO[f][i]));
|
|
5014
|
-
break;
|
|
5020
|
+
case "boxPlot": typeof this.w.candleData.seriesCandleC[f][i] < "u" && (o = Math.max(o, this.w.candleData.seriesCandleC[f][i]), t = Math.min(t, this.w.candleData.seriesCandleO[f][i]));
|
|
5015
5021
|
}
|
|
5016
5022
|
e && e !== "candlestick" && e !== "boxPlot" && e !== "rangeArea" && e !== "rangeBar" && (o = Math.max(o, this.w.seriesData.series[f][i]), t = Math.min(t, this.w.seriesData.series[f][i])), this.w.seriesData.seriesGoals[f] && this.w.seriesData.seriesGoals[f][i] && Array.isArray(this.w.seriesData.seriesGoals[f][i]) && this.w.seriesData.seriesGoals[f][i].forEach((e) => {
|
|
5017
5023
|
o = Math.max(o, e.value), t = Math.min(t, e.value);
|
|
@@ -5048,9 +5054,7 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
5048
5054
|
case "line":
|
|
5049
5055
|
e.lineGroups.push(n.group);
|
|
5050
5056
|
break;
|
|
5051
|
-
case "area":
|
|
5052
|
-
e.areaGroups.push(n.group);
|
|
5053
|
-
break;
|
|
5057
|
+
case "area": e.areaGroups.push(n.group);
|
|
5054
5058
|
}
|
|
5055
5059
|
}), e.barGroups = e.barGroups.filter((e, t, n) => n.indexOf(e) === t), e.lineGroups = e.lineGroups.filter((e, t, n) => n.indexOf(e) === t), e.areaGroups = e.areaGroups.filter((e, t, n) => n.indexOf(e) === t), {
|
|
5056
5060
|
minY: e.minY,
|
|
@@ -5073,16 +5077,17 @@ var e = Object.defineProperty, t = Object.defineProperties, n = Object.getOwnPro
|
|
|
5073
5077
|
t < 30 && (r = t);
|
|
5074
5078
|
}
|
|
5075
5079
|
} else r = t.xaxis.tickAmount;
|
|
5076
|
-
if (e.xTickAmount = r, t.xaxis.max !== void 0 && typeof t.xaxis.max == "number" && (e.maxX = t.xaxis.max), t.xaxis.min !== void 0 && typeof t.xaxis.min == "number" && (e.minX = t.xaxis.min), t.xaxis.range !== void 0 && (e.minX = e.maxX - t.xaxis.range), e.minX !== Number.MAX_VALUE && e.maxX !== -Number.MAX_VALUE)
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5080
|
+
if (e.xTickAmount = r, t.xaxis.max !== void 0 && typeof t.xaxis.max == "number" && (e.maxX = t.xaxis.max), t.xaxis.min !== void 0 && typeof t.xaxis.min == "number" && (e.minX = t.xaxis.min), t.xaxis.range !== void 0 && (e.minX = e.maxX - t.xaxis.range), e.minX !== Number.MAX_VALUE && e.maxX !== -Number.MAX_VALUE) {
|
|
5081
|
+
if (t.xaxis.convertedCatToNumeric && !this.w.axisFlags.dataFormatXNumeric) {
|
|
5082
|
+
let t = [];
|
|
5083
|
+
for (let n = e.minX - 1; n < e.maxX; n++) t.push(n + 1);
|
|
5084
|
+
e.xAxisScale = {
|
|
5085
|
+
result: t,
|
|
5086
|
+
niceMin: t[0],
|
|
5087
|
+
niceMax: t[t.length - 1]
|
|
5088
|
+
};
|
|
5089
|
+
} else e.xAxisScale = this.scales.setXScale(e.minX, e.maxX);
|
|
5090
|
+
} else e.xAxisScale = this.scales.linearScale(0, r, r, 0, t.xaxis.stepSize), this.w.axisFlags.noLabelsProvided && this.w.labelData.labels.length > 0 && (e.xAxisScale = this.scales.linearScale(1, this.w.labelData.labels.length, r - 1, 0, t.xaxis.stepSize), this.w.seriesData.seriesX = this.w.labelData.labels.slice());
|
|
5086
5091
|
n && (this.w.labelData.labels = e.xAxisScale.result.slice());
|
|
5087
5092
|
}
|
|
5088
5093
|
return e.isBarHorizontal && this.w.labelData.labels.length && (e.xTickAmount = this.w.labelData.labels.length), this._handleSingleDataPoint(), this._getMinXDiff(), {
|
|
@@ -5650,12 +5655,13 @@ var se = class {
|
|
|
5650
5655
|
let t = this.w, n = this.getSeriesByName(e), r = parseInt(n?.getAttribute("data:realIndex"), 10), i = "highlightSeriesEls", a = t.globals.cachedSelectors[i];
|
|
5651
5656
|
a || (a = t.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"), t.globals.cachedSelectors[i] = a);
|
|
5652
5657
|
let o = null, s = null, c = null;
|
|
5653
|
-
if (t.globals.axisCharts || t.config.chart.type === "radialBar")
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5658
|
+
if (t.globals.axisCharts || t.config.chart.type === "radialBar") {
|
|
5659
|
+
if (t.globals.axisCharts) {
|
|
5660
|
+
o = t.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${r}']`), s = t.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${r}']`);
|
|
5661
|
+
let e = t.globals.seriesYAxisReverseMap[r];
|
|
5662
|
+
c = t.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}']`);
|
|
5663
|
+
} else o = t.dom.baseEl.querySelector(`.apexcharts-series[rel='${r + 1}']`);
|
|
5664
|
+
} else o = t.dom.baseEl.querySelector(`.apexcharts-series[rel='${r + 1}'] path`);
|
|
5659
5665
|
for (let e = 0; e < a.length; e++) a[e].classList.add(this.legendInactiveClass);
|
|
5660
5666
|
if (o) t.globals.axisCharts || o.parentNode.classList.remove(this.legendInactiveClass), o.classList.remove(this.legendInactiveClass), s !== null && s.classList.remove(this.legendInactiveClass), c !== null && c.classList.remove(this.legendInactiveClass);
|
|
5661
5667
|
else for (let e = 0; e < a.length; e++) a[e].classList.remove(this.legendInactiveClass);
|
|
@@ -6339,9 +6345,7 @@ var se = class {
|
|
|
6339
6345
|
break;
|
|
6340
6346
|
case "seconds_tens":
|
|
6341
6347
|
case "seconds_fives":
|
|
6342
|
-
case "seconds":
|
|
6343
|
-
this.generateSecondScale(y);
|
|
6344
|
-
break;
|
|
6348
|
+
case "seconds": this.generateSecondScale(y);
|
|
6345
6349
|
}
|
|
6346
6350
|
let x = this.timeScaleArray.map((e) => {
|
|
6347
6351
|
let t = {
|
|
@@ -6399,9 +6403,7 @@ var se = class {
|
|
|
6399
6403
|
case "seconds_tens":
|
|
6400
6404
|
i % 10 != 0 && (o = !0);
|
|
6401
6405
|
break;
|
|
6402
|
-
case "seconds_fives":
|
|
6403
|
-
i % 5 != 0 && (o = !0);
|
|
6404
|
-
break;
|
|
6406
|
+
case "seconds_fives": i % 5 != 0 && (o = !0);
|
|
6405
6407
|
}
|
|
6406
6408
|
if (this.tickInterval === "hours" || this.tickInterval === "minutes_fives" || this.tickInterval === "seconds_tens" || this.tickInterval === "seconds_fives") {
|
|
6407
6409
|
if (!o) return !0;
|
|
@@ -6453,9 +6455,7 @@ var se = class {
|
|
|
6453
6455
|
case i > 20:
|
|
6454
6456
|
this.tickInterval = "seconds_fives";
|
|
6455
6457
|
break;
|
|
6456
|
-
default:
|
|
6457
|
-
this.tickInterval = "seconds";
|
|
6458
|
-
break;
|
|
6458
|
+
default: this.tickInterval = "seconds";
|
|
6459
6459
|
}
|
|
6460
6460
|
}
|
|
6461
6461
|
generateYearScale({ firstVal: e, currentMonth: t, currentYear: n, daysWidthOnXAxis: r, numberOfYears: i }) {
|
|
@@ -6636,7 +6636,8 @@ var se = class {
|
|
|
6636
6636
|
if (o > 0 && this.w.config.xaxis.labels.hideOverlappingLabels) {
|
|
6637
6637
|
let s = n ? r : t.getTextRects(e[i].value).width, c = e[i].position;
|
|
6638
6638
|
return a.position > c + s + 10 ? (i = o, a) : null;
|
|
6639
|
-
}
|
|
6639
|
+
}
|
|
6640
|
+
return a;
|
|
6640
6641
|
});
|
|
6641
6642
|
return a = a.filter((e) => e !== null), a;
|
|
6642
6643
|
}
|
|
@@ -6787,10 +6788,12 @@ var Te = class {
|
|
|
6787
6788
|
let f = [];
|
|
6788
6789
|
if (a.comboCharts) {
|
|
6789
6790
|
let e = new N(this.w);
|
|
6790
|
-
if (o.area.series.length > 0 && f.push(...e.drawSeriesByGroup(o.area, a.areaGroups, "area", u)), o.bar.series.length > 0)
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6791
|
+
if (o.area.series.length > 0 && f.push(...e.drawSeriesByGroup(o.area, a.areaGroups, "area", u)), o.bar.series.length > 0) {
|
|
6792
|
+
if (i.chart.stacked) {
|
|
6793
|
+
let e = new (K("barStacked"))(r.w, r, t);
|
|
6794
|
+
f.push(e.draw(o.bar.series, o.bar.i));
|
|
6795
|
+
} else r.bar = new (K("bar"))(r.w, r, t), f.push(r.bar.draw(o.bar.series, o.bar.i));
|
|
6796
|
+
}
|
|
6794
6797
|
if (o.rangeArea.series.length > 0 && f.push(u.draw(o.rangeArea.series, "rangeArea", o.rangeArea.i, o.rangeArea.seriesRangeEnd)), o.line.series.length > 0 && f.push(...e.drawSeriesByGroup(o.line, a.lineGroups, "line", u)), o.candlestick.series.length > 0 && f.push(d.draw(o.candlestick.series, "candlestick", o.candlestick.i)), o.boxPlot.series.length > 0 && f.push(d.draw(o.boxPlot.series, "boxPlot", o.boxPlot.i)), o.rangeBar.series.length > 0 && f.push(r.rangeBar.draw(o.rangeBar.series, o.rangeBar.i)), o.scatter.series.length > 0) {
|
|
6795
6798
|
let e = new (K("line"))(r.w, r, t, !0);
|
|
6796
6799
|
f.push(e.draw(o.scatter.series, "scatter", o.scatter.i));
|
|
@@ -6851,7 +6854,7 @@ var Te = class {
|
|
|
6851
6854
|
let n = y.getDimensions(this.el), r = t.chart.width.toString().split(/[0-9]+/g).pop();
|
|
6852
6855
|
r === "%" ? y.isNumber(n[0]) && (n[0].width === 0 && (n = y.getDimensions(this.el.parentNode)), e.svgWidth = n[0] * parseInt(t.chart.width, 10) / 100) : (r === "px" || r === "") && (e.svgWidth = parseInt(t.chart.width, 10));
|
|
6853
6856
|
let i = String(t.chart.height).toString().split(/[0-9]+/g).pop();
|
|
6854
|
-
if (e.svgHeight !== "auto" && e.svgHeight !== "" ? i === "%" ?
|
|
6857
|
+
if (e.svgHeight = e.svgHeight !== "auto" && e.svgHeight !== "" ? i === "%" ? y.getDimensions(this.el.parentNode)[1] * parseInt(t.chart.height, 10) / 100 : parseInt(t.chart.height, 10) : e.axisCharts ? e.svgWidth / 1.61 : e.svgWidth / 1.2, e.svgWidth = Math.max(e.svgWidth, 0), e.svgHeight = Math.max(e.svgHeight, 0), I.setAttrs(this.w.dom.Paper.node, {
|
|
6855
6858
|
width: e.svgWidth,
|
|
6856
6859
|
height: e.svgHeight
|
|
6857
6860
|
}), i !== "%" && d.isBrowser()) {
|
|
@@ -6978,11 +6981,12 @@ var Te = class {
|
|
|
6978
6981
|
}
|
|
6979
6982
|
for (let e = 0; e < s.length; e++) {
|
|
6980
6983
|
let t = s[e].x, a = typeof t == "string", o = Array.isArray(t), c = !o && !!i.isValidDate(t);
|
|
6981
|
-
if (a || c)
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6984
|
+
if (a || c) {
|
|
6985
|
+
if (a || n.xaxis.convertedCatToNumeric) {
|
|
6986
|
+
let e = r.isBarHorizontal && this.w.axisFlags.isRangeData;
|
|
6987
|
+
n.xaxis.type === "datetime" && !e ? this.twoDSeriesX.push(i.parseDate(t)) : (this.fallbackToCategory = !0, this.twoDSeriesX.push(t), !isNaN(t) && this.w.config.xaxis.type !== "category" && typeof t != "string" && (this.w.axisFlags.isXNumeric = !0));
|
|
6988
|
+
} else n.xaxis.type === "datetime" ? this.twoDSeriesX.push(i.parseDate(t.toString())) : (this.w.axisFlags.dataFormatXNumeric = !0, this.w.axisFlags.isXNumeric = !0, this.twoDSeriesX.push(parseFloat(t)));
|
|
6989
|
+
} else o ? (this.fallbackToCategory = !0, this.twoDSeriesX.push(t)) : (this.w.axisFlags.isXNumeric = !0, this.w.axisFlags.dataFormatXNumeric = !0, this.twoDSeriesX.push(t));
|
|
6986
6990
|
}
|
|
6987
6991
|
}
|
|
6988
6992
|
handleRangeData(e, t) {
|
|
@@ -7058,9 +7062,10 @@ var Te = class {
|
|
|
7058
7062
|
a[n] || (a[n] = []), a[n].push(this.w.seriesData.seriesNames[t]);
|
|
7059
7063
|
}), this.w.labelData.seriesGroups = a;
|
|
7060
7064
|
let s = () => {
|
|
7061
|
-
for (let e = 0; e < i.length; e++) if (typeof i[e] == "string")
|
|
7062
|
-
|
|
7063
|
-
|
|
7065
|
+
for (let e = 0; e < i.length; e++) if (typeof i[e] == "string") {
|
|
7066
|
+
if (r.isValidDate(i[e])) this.twoDSeriesX.push(r.parseDate(i[e]));
|
|
7067
|
+
else throw Error("You have provided invalid Date format. Please provide a valid JavaScript Date");
|
|
7068
|
+
} else this.twoDSeriesX.push(i[e]);
|
|
7064
7069
|
};
|
|
7065
7070
|
for (let n = 0; n < e.length; n++) {
|
|
7066
7071
|
if (this.twoDSeries = [], this.twoDSeriesX = [], this.threeDSeries = [], typeof e[n].data > "u") {
|
|
@@ -7146,10 +7151,12 @@ var Te = class {
|
|
|
7146
7151
|
_generateExternalLabels(e) {
|
|
7147
7152
|
let t = this.w.globals, n = this.w.config, r = [];
|
|
7148
7153
|
if (t.axisCharts) {
|
|
7149
|
-
if (this.w.seriesData.series.length > 0)
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7154
|
+
if (this.w.seriesData.series.length > 0) {
|
|
7155
|
+
if (this.isFormatXY()) {
|
|
7156
|
+
let e = n.series.map((e) => e.data.filter((e, t, n) => n.findIndex((t) => t.x === e.x) === t)), t = e.reduce((e, t, n, r) => r[e].length > t.length ? e : n, 0);
|
|
7157
|
+
for (let n = 0; n < e[t].length; n++) r.push(n + 1);
|
|
7158
|
+
} else for (let e = 0; e < this.w.seriesData.series[t.maxValsInArrayIndex].length; e++) r.push(e + 1);
|
|
7159
|
+
}
|
|
7153
7160
|
this.w.seriesData.seriesX = [];
|
|
7154
7161
|
for (let t = 0; t < e.length; t++) this.w.seriesData.seriesX.push(r);
|
|
7155
7162
|
this.w.globals.isBarHorizontal || (this.w.axisFlags.isXNumeric = !0);
|
|
@@ -7411,7 +7418,7 @@ var Te = class {
|
|
|
7411
7418
|
return n;
|
|
7412
7419
|
}
|
|
7413
7420
|
closestInMultiArray(e, t, n, r) {
|
|
7414
|
-
let i = this.w, a = (e) => i.globals.collapsedSeriesIndices.indexOf(e) === -1 && i.globals.ancillaryCollapsedSeriesIndices.indexOf(e) === -1, o =
|
|
7421
|
+
let i = this.w, a = (e) => i.globals.collapsedSeriesIndices.indexOf(e) === -1 && i.globals.ancillaryCollapsedSeriesIndices.indexOf(e) === -1, o = 1 / 0, s = null, c = null;
|
|
7415
7422
|
for (let l = 0; l < n.length; l++) {
|
|
7416
7423
|
if (!a(l)) continue;
|
|
7417
7424
|
let u = n[l], d = r[l], f = Math.min(u.length, d.length);
|
|
@@ -8011,7 +8018,7 @@ var Te = class {
|
|
|
8011
8018
|
t.xcrosshairsWidth = e.layout.gridWidth / n;
|
|
8012
8019
|
} else if (e.config.xaxis.crosshairs.width === "barWidth") {
|
|
8013
8020
|
let n = e.dom.baseEl.querySelector(".apexcharts-bar-area");
|
|
8014
|
-
n === null ?
|
|
8021
|
+
t.xcrosshairsWidth = n === null ? 1 : parseFloat(n.getAttribute("barWidth"));
|
|
8015
8022
|
}
|
|
8016
8023
|
e.globals.isBarHorizontal && (t.xcrosshairsWidth = 0), n !== null && t.xcrosshairsWidth > 0 && n.setAttribute("width", t.xcrosshairsWidth);
|
|
8017
8024
|
}
|
|
@@ -8186,7 +8193,7 @@ var Te = class {
|
|
|
8186
8193
|
seriesHover(e, t) {
|
|
8187
8194
|
this.lastHoverTime = Date.now();
|
|
8188
8195
|
let n = [], r = this.w;
|
|
8189
|
-
r.config.chart.group && (n = this.ctx.getGroupedCharts()), !(r.globals.axisCharts && (r.globals.minX === -
|
|
8196
|
+
r.config.chart.group && (n = this.ctx.getGroupedCharts()), !(r.globals.axisCharts && (r.globals.minX === -1 / 0 && r.globals.maxX === 1 / 0 || r.globals.dataPoints === 0)) && (n.length ? n.forEach((n) => {
|
|
8190
8197
|
let r = this.getElTooltip(n), i = {
|
|
8191
8198
|
paths: e.paths,
|
|
8192
8199
|
tooltipEl: r,
|
|
@@ -8479,7 +8486,7 @@ var Te = class {
|
|
|
8479
8486
|
}), this._listeners = [];
|
|
8480
8487
|
else if (e && !t) {
|
|
8481
8488
|
let t = e.split(".")[0];
|
|
8482
|
-
this._listeners = this._listeners.filter((e) => e.eventType
|
|
8489
|
+
this._listeners = this._listeners.filter((e) => e.eventType !== t || (this.node.removeEventListener(e.eventType, e.handler), !1));
|
|
8483
8490
|
} else {
|
|
8484
8491
|
let n = e.split(".")[0];
|
|
8485
8492
|
this._listeners = this._listeners.filter((e) => e.eventType === n && e.handler === t ? (this.node.removeEventListener(e.eventType, e.handler), !1) : !0);
|
|
@@ -8809,13 +8816,13 @@ function Je(e) {
|
|
|
8809
8816
|
]), t;
|
|
8810
8817
|
}
|
|
8811
8818
|
function Ye(e) {
|
|
8812
|
-
let t =
|
|
8819
|
+
let t = 1 / 0, n = 1 / 0, r = -1 / 0, i = -1 / 0;
|
|
8813
8820
|
return e.forEach((e) => {
|
|
8814
8821
|
for (let a = 1; a < e.length; a += 2) if (a + 1 <= e.length) {
|
|
8815
8822
|
let o = e[a], s = e[a + 1];
|
|
8816
8823
|
typeof o == "number" && typeof s == "number" && (o < t && (t = o), o > r && (r = o), s < n && (n = s), s > i && (i = s));
|
|
8817
8824
|
}
|
|
8818
|
-
}), t ===
|
|
8825
|
+
}), t === 1 / 0 ? {
|
|
8819
8826
|
x: 0,
|
|
8820
8827
|
y: 0,
|
|
8821
8828
|
width: 0,
|
|
@@ -8845,9 +8852,7 @@ function Ze(e) {
|
|
|
8845
8852
|
case "T":
|
|
8846
8853
|
e[0] = "Q", e[3] = e[1], e[4] = e[2], e[1] = this.reflection[1], e[2] = this.reflection[0];
|
|
8847
8854
|
break;
|
|
8848
|
-
case "S":
|
|
8849
|
-
e[0] = "C", e[6] = e[4], e[5] = e[3], e[4] = e[2], e[3] = e[1], e[2] = this.reflection[1], e[1] = this.reflection[0];
|
|
8850
|
-
break;
|
|
8855
|
+
case "S": e[0] = "C", e[6] = e[4], e[5] = e[3], e[4] = e[2], e[3] = e[1], e[2] = this.reflection[1], e[1] = this.reflection[0];
|
|
8851
8856
|
}
|
|
8852
8857
|
return e;
|
|
8853
8858
|
}
|
|
@@ -8865,9 +8870,7 @@ function $e(e) {
|
|
|
8865
8870
|
case "Q":
|
|
8866
8871
|
e[6] = e[4], e[5] = e[3], e[4] = e[4] * 1 / 3 + e[2] * 2 / 3, e[3] = e[3] * 1 / 3 + e[1] * 2 / 3, e[2] = this.pos[1] * 1 / 3 + e[2] * 2 / 3, e[1] = this.pos[0] * 1 / 3 + e[1] * 2 / 3;
|
|
8867
8872
|
break;
|
|
8868
|
-
case "A":
|
|
8869
|
-
t = tt(this.pos, e), e = t[0];
|
|
8870
|
-
break;
|
|
8873
|
+
case "A": t = tt(this.pos, e), e = t[0];
|
|
8871
8874
|
}
|
|
8872
8875
|
return e[0] = "C", this.pos = [e[5], e[6]], this.reflection = [2 * e[5] - e[3], 2 * e[6] - e[4]], t;
|
|
8873
8876
|
}
|
|
@@ -8911,7 +8914,7 @@ function nt(e, t, n, r, i, a) {
|
|
|
8911
8914
|
}, u = {
|
|
8912
8915
|
pos: [0, 0],
|
|
8913
8916
|
start: [0, 0]
|
|
8914
|
-
}; o[c] = Ze.call(l, o[c]), s[c] = Ze.call(u, s[c]), o[c][0] != s[c][0] || o[c][0] == "M" || o[c][0] == "A" && (o[c][4] != s[c][4] || o[c][5] != s[c][5]) ? (Array.prototype.splice.apply(o, [c, 1].concat($e.call(l, o[c]))), Array.prototype.splice.apply(s, [c, 1].concat($e.call(u, s[c])))) : (o[c] = Qe.call(l, o[c]), s[c] = Qe.call(u, s[c])),
|
|
8917
|
+
}; o[c] = Ze.call(l, o[c]), s[c] = Ze.call(u, s[c]), o[c][0] != s[c][0] || o[c][0] == "M" || o[c][0] == "A" && (o[c][4] != s[c][4] || o[c][5] != s[c][5]) ? (Array.prototype.splice.apply(o, [c, 1].concat($e.call(l, o[c]))), Array.prototype.splice.apply(s, [c, 1].concat($e.call(u, s[c])))) : (o[c] = Qe.call(l, o[c]), s[c] = Qe.call(u, s[c])), ++c != o.length || c != s.length;) c == o.length && o.push([
|
|
8915
8918
|
"C",
|
|
8916
8919
|
l.pos[0],
|
|
8917
8920
|
l.pos[1],
|
|
@@ -8934,7 +8937,7 @@ function nt(e, t, n, r, i, a) {
|
|
|
8934
8937
|
};
|
|
8935
8938
|
}
|
|
8936
8939
|
function rt(e, t) {
|
|
8937
|
-
for (var n = Je(e), r = Je(t), i = 0, a = 0, o = !1, s = !1, c;
|
|
8940
|
+
for (var n = Je(e), r = Je(t), i = 0, a = 0, o = !1, s = !1, c; i !== !1 || a !== !1;) {
|
|
8938
8941
|
if (o = et(n, i !== !1 && i + 1), s = et(r, a !== !1 && a + 1), i === !1) {
|
|
8939
8942
|
let e = Ye(c.start);
|
|
8940
8943
|
i = e.height == 0 || e.width == 0 ? n.push(n[0]) - 1 : n.push([
|
|
@@ -9055,15 +9058,17 @@ var ct = class e {
|
|
|
9055
9058
|
}
|
|
9056
9059
|
let o = performance.now(), s = (c) => {
|
|
9057
9060
|
let l = c - o, u = Math.min(l / n, 1), d = at(u);
|
|
9058
|
-
if (this._attrTarget)
|
|
9059
|
-
|
|
9060
|
-
let n = {};
|
|
9061
|
-
for (let t of Object.keys(this._attrTarget)) if (r[t] && i[t]) n[t] = st(r[t], i[t], d);
|
|
9061
|
+
if (this._attrTarget) {
|
|
9062
|
+
if (u >= 1) t.attr(this._attrTarget);
|
|
9062
9063
|
else {
|
|
9063
|
-
let
|
|
9064
|
-
|
|
9064
|
+
let n = {};
|
|
9065
|
+
for (let t of Object.keys(this._attrTarget)) if (r[t] && i[t]) n[t] = st(r[t], i[t], d);
|
|
9066
|
+
else {
|
|
9067
|
+
let r = parseFloat(e[t]), i = parseFloat(this._attrTarget[t]);
|
|
9068
|
+
!isNaN(r) && !isNaN(i) && (n[t] = r + (i - r) * d);
|
|
9069
|
+
}
|
|
9070
|
+
t.attr(n);
|
|
9065
9071
|
}
|
|
9066
|
-
t.attr(n);
|
|
9067
9072
|
}
|
|
9068
9073
|
a && u < 1 && t.attr("d", a(d)), this._duringCb && this._duringCb(d), u < 1 ? v.requestAnimationFrame(s) : (this._plotTarget && t.attr("d", this._plotTarget), this._afterCb && this._afterCb.call(t));
|
|
9069
9074
|
};
|
|
@@ -9799,14 +9804,16 @@ var _t = "@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacit
|
|
|
9799
9804
|
let t = "";
|
|
9800
9805
|
if (!i.globals.axisCharts) t = i.config.labels[e];
|
|
9801
9806
|
else {
|
|
9802
|
-
if (i.config.xaxis.type === "category" || i.config.xaxis.convertedCatToNumeric)
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9807
|
+
if (i.config.xaxis.type === "category" || i.config.xaxis.convertedCatToNumeric) {
|
|
9808
|
+
if (i.globals.isBarHorizontal) {
|
|
9809
|
+
let n = i.formatters.yLabelFormatters[0], r = new W(this.ctx.w).getActiveConfigSeriesIndex();
|
|
9810
|
+
t = n(i.labelData.labels[e], {
|
|
9811
|
+
seriesIndex: r,
|
|
9812
|
+
dataPointIndex: e,
|
|
9813
|
+
w: i
|
|
9814
|
+
});
|
|
9815
|
+
} else t = p.getLabel(i.labelData.labels, i.labelData.timescaleLabels, 0, e).text;
|
|
9816
|
+
}
|
|
9810
9817
|
i.config.xaxis.type === "datetime" && (i.config.xaxis.categories.length ? t = i.config.xaxis.categories[e] : i.config.labels.length && (t = i.config.labels[e]));
|
|
9811
9818
|
}
|
|
9812
9819
|
return t === null ? "nullvalue" : (Array.isArray(t) && (t = t.join(" ")), y.isNumber(t) ? t : t.split(n).join(""));
|
|
@@ -10342,12 +10349,10 @@ var St = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.
|
|
|
10342
10349
|
case "png":
|
|
10343
10350
|
n.exportToPng(this.ctx);
|
|
10344
10351
|
break;
|
|
10345
|
-
case "csv":
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
});
|
|
10350
|
-
break;
|
|
10352
|
+
case "csv": n.exportToCSV({
|
|
10353
|
+
series: t.config.series,
|
|
10354
|
+
columnDelimiter: t.config.chart.toolbar.export.csv.columnDelimiter
|
|
10355
|
+
});
|
|
10351
10356
|
}
|
|
10352
10357
|
}
|
|
10353
10358
|
handleZoomReset() {
|
|
@@ -10383,15 +10388,15 @@ var St = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.
|
|
|
10383
10388
|
}
|
|
10384
10389
|
init({ xyRatios: e }) {
|
|
10385
10390
|
let t = this.w, n = this;
|
|
10386
|
-
this.xyRatios = e, this.zoomRect = this.graphics.drawRect(0, 0, 0, 0), this.selectionRect = this.graphics.drawRect(0, 0, 0, 0), this.gridRect = t.dom.baseEl.querySelector(".apexcharts-grid"), this.constraints = new te(0, 0, t.layout.gridWidth, t.layout.gridHeight), this.zoomRect.node.classList.add("apexcharts-zoom-rect"), this.selectionRect.node.classList.add("apexcharts-selection-rect"), t.dom.Paper.add(this.zoomRect), t.dom.Paper.add(this.selectionRect), t.config.chart.selection.type === "x" ? this.
|
|
10391
|
+
this.xyRatios = e, this.zoomRect = this.graphics.drawRect(0, 0, 0, 0), this.selectionRect = this.graphics.drawRect(0, 0, 0, 0), this.gridRect = t.dom.baseEl.querySelector(".apexcharts-grid"), this.constraints = new te(0, 0, t.layout.gridWidth, t.layout.gridHeight), this.zoomRect.node.classList.add("apexcharts-zoom-rect"), this.selectionRect.node.classList.add("apexcharts-selection-rect"), t.dom.Paper.add(this.zoomRect), t.dom.Paper.add(this.selectionRect), this.slDraggableRect = t.config.chart.selection.type === "x" ? this.selectionRect.draggable({
|
|
10387
10392
|
minX: 0,
|
|
10388
10393
|
minY: 0,
|
|
10389
10394
|
maxX: t.layout.gridWidth,
|
|
10390
10395
|
maxY: t.layout.gridHeight
|
|
10391
|
-
}).on("dragmove.namespace", this.selectionDragging.bind(this, "dragging")) : t.config.chart.selection.type === "y" ? this.
|
|
10396
|
+
}).on("dragmove.namespace", this.selectionDragging.bind(this, "dragging")) : t.config.chart.selection.type === "y" ? this.selectionRect.draggable({
|
|
10392
10397
|
minX: 0,
|
|
10393
10398
|
maxX: t.layout.gridWidth
|
|
10394
|
-
}).on("dragmove.namespace", this.selectionDragging.bind(this, "dragging")) : this.
|
|
10399
|
+
}).on("dragmove.namespace", this.selectionDragging.bind(this, "dragging")) : this.selectionRect.draggable().on("dragmove.namespace", this.selectionDragging.bind(this, "dragging")), this.preselectedSelection(), this.hoverArea = t.dom.baseEl.querySelector(`${t.globals.chartClass} .apexcharts-svg`), this.hoverArea.classList.add("apexcharts-zoomable"), this.eventList.forEach((t) => {
|
|
10395
10400
|
this.hoverArea.addEventListener(t, n.svgMouseEvents.bind(n, e), {
|
|
10396
10401
|
capture: !1,
|
|
10397
10402
|
passive: !0
|
|
@@ -10994,9 +10999,7 @@ var jt = class {
|
|
|
10994
10999
|
case "yaxis":
|
|
10995
11000
|
this.addYaxisAnnotation(d, s, c);
|
|
10996
11001
|
break;
|
|
10997
|
-
case "point":
|
|
10998
|
-
this.addPointAnnotation(d, s, c);
|
|
10999
|
-
break;
|
|
11002
|
+
case "point": this.addPointAnnotation(d, s, c);
|
|
11000
11003
|
}
|
|
11001
11004
|
let f = o.dom.baseEl.querySelector(`.apexcharts-${r}-annotations .apexcharts-${r}-annotation-label[rel='${c}']`), p = this.helpers.addBackgroundToAnno(f, d);
|
|
11002
11005
|
return p && s.insertBefore(p.node, f), t && o.globals.memory.methodsToExec.push({
|
|
@@ -11050,7 +11053,7 @@ var It = class {
|
|
|
11050
11053
|
this.active && (this.active = !1, this._hideFocus());
|
|
11051
11054
|
}
|
|
11052
11055
|
_onKeyDown(e) {
|
|
11053
|
-
if (
|
|
11056
|
+
if (this._isNavEnabled() && this.active) switch (e.key) {
|
|
11054
11057
|
case "ArrowRight":
|
|
11055
11058
|
e.preventDefault(), this._move(0, 1);
|
|
11056
11059
|
break;
|
|
@@ -11073,9 +11076,7 @@ var It = class {
|
|
|
11073
11076
|
case " ":
|
|
11074
11077
|
e.preventDefault(), this._fireClick();
|
|
11075
11078
|
break;
|
|
11076
|
-
case "Escape":
|
|
11077
|
-
e.preventDefault(), this.active = !1, this._hideFocus();
|
|
11078
|
-
break;
|
|
11079
|
+
case "Escape": e.preventDefault(), this.active = !1, this._hideFocus();
|
|
11079
11080
|
}
|
|
11080
11081
|
}
|
|
11081
11082
|
_move(e, t) {
|
|
@@ -11430,9 +11431,7 @@ var Lt = class {
|
|
|
11430
11431
|
case "bottom":
|
|
11431
11432
|
d = x ? w ? T - c + _ : T + c - _ : w ? T - c + l.height + h + _ : T + c - l.height / 2 + h - _;
|
|
11432
11433
|
break;
|
|
11433
|
-
case "top":
|
|
11434
|
-
d = x ? w ? T + _ : T - _ : w ? T - l.height / 2 - _ : T + l.height + _;
|
|
11435
|
-
break;
|
|
11434
|
+
case "top": d = x ? w ? T + _ : T - _ : w ? T - l.height / 2 - _ : T + l.height + _;
|
|
11436
11435
|
}
|
|
11437
11436
|
let E = T;
|
|
11438
11437
|
if (t.labelData.seriesGroups.forEach((e) => {
|
|
@@ -11475,9 +11474,7 @@ var Lt = class {
|
|
|
11475
11474
|
case "bottom":
|
|
11476
11475
|
u = C ? w + c - d - h : w - c + d + h;
|
|
11477
11476
|
break;
|
|
11478
|
-
case "top":
|
|
11479
|
-
u = C ? w - d - h : w - d + h;
|
|
11480
|
-
break;
|
|
11477
|
+
case "top": u = C ? w - d - h : w - d + h;
|
|
11481
11478
|
}
|
|
11482
11479
|
let T = w;
|
|
11483
11480
|
if (t.labelData.seriesGroups.forEach((e) => {
|
|
@@ -11518,7 +11515,7 @@ var Lt = class {
|
|
|
11518
11515
|
w: d
|
|
11519
11516
|
}))), !n && d.config.plotOptions.bar.hideZeroBarsWhenGrouped && (_ = "");
|
|
11520
11517
|
let v = d.seriesData.series[r][i] < 0, y = d.config.plotOptions.bar.dataLabels.position;
|
|
11521
|
-
d.config.plotOptions.bar.dataLabels.orientation === "vertical" && (y === "top" && (
|
|
11518
|
+
d.config.plotOptions.bar.dataLabels.orientation === "vertical" && (y === "top" && (u.textAnchor = v ? "end" : "start"), y === "center" && (u.textAnchor = "middle"), y === "bottom" && (u.textAnchor = v ? "end" : "start")), this.barCtx.isRangeBar && this.barCtx.barOptions.dataLabels.hideOverflowingLabels && l < m.getTextRects(_, parseFloat(u.style.fontSize)).width && (_ = ""), d.config.chart.stacked && this.barCtx.barOptions.dataLabels.hideOverflowingLabels && (this.barCtx.isHorizontal ? a.width / 1.6 > Math.abs(l) && (_ = "") : a.height / 1.6 > Math.abs(o) && (_ = ""));
|
|
11522
11519
|
let b = s({}, u);
|
|
11523
11520
|
this.barCtx.isHorizontal && n < 0 && (u.textAnchor === "start" ? b.textAnchor = "end" : u.textAnchor === "end" && (b.textAnchor = "start")), p.plotDataLabelsText({
|
|
11524
11521
|
x: e,
|
|
@@ -11627,17 +11624,19 @@ var Lt = class {
|
|
|
11627
11624
|
let r = e[i][t];
|
|
11628
11625
|
r > 0 ? (n.push(i), c++) : r < 0 && (s.push(i), c++);
|
|
11629
11626
|
}
|
|
11630
|
-
if (n.length > 0 && s.length === 0)
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
else {
|
|
11637
|
-
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11627
|
+
if (n.length > 0 && s.length === 0) {
|
|
11628
|
+
if (n.length === 1) a[n[0]][t] = o === "bar" && i === 1 ? "top" : "both";
|
|
11629
|
+
else {
|
|
11630
|
+
let e = n[0], r = n[n.length - 1];
|
|
11631
|
+
for (let s of n) s === e ? a[s][t] = o === "bar" && i === 1 ? "top" : "bottom" : s === r ? a[s][t] = "top" : a[s][t] = "none";
|
|
11632
|
+
}
|
|
11633
|
+
} else if (s.length > 0 && n.length === 0) {
|
|
11634
|
+
if (s.length === 1) a[s[0]][t] = "both";
|
|
11635
|
+
else {
|
|
11636
|
+
let e = Math.max(...s), n = Math.min(...s);
|
|
11637
|
+
for (let r of s) r === e ? a[r][t] = "bottom" : r === n ? a[r][t] = "top" : a[r][t] = "none";
|
|
11638
|
+
}
|
|
11639
|
+
} else if (n.length > 0 && s.length > 0) {
|
|
11641
11640
|
let e = n[n.length - 1];
|
|
11642
11641
|
for (let r of n) r === e ? a[r][t] = "top" : a[r][t] = "none";
|
|
11643
11642
|
let r = Math.max(...s);
|
|
@@ -12403,12 +12402,14 @@ var Lt = class {
|
|
|
12403
12402
|
let i = this.w, a = 1, o = i.config.plotOptions[e].shadeIntensity, s = this.determineColor(e, t, n);
|
|
12404
12403
|
i.globals.hasNegs || r ? a = i.config.plotOptions[e].reverseNegativeShade ? s.percent < 0 ? s.percent / 100 * (o * 1.25) : (1 - s.percent / 100) * (o * 1.25) : s.percent <= 0 ? 1 - (1 + s.percent / 100) * o : (1 - s.percent / 100) * o : (a = 1 - s.percent / 100, e === "treemap" && (a = (1 - s.percent / 100) * (o * 1.25)));
|
|
12405
12404
|
let c = s.color, l = new y();
|
|
12406
|
-
if (i.config.plotOptions[e].enableShades)
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12405
|
+
if (i.config.plotOptions[e].enableShades) {
|
|
12406
|
+
if (this.w.config.theme.mode === "dark") {
|
|
12407
|
+
let e = l.shadeColor(a * -1, s.color);
|
|
12408
|
+
c = y.hexToRgba(y.isColorHex(e) ? e : y.rgb2hex(e), i.config.fill.opacity);
|
|
12409
|
+
} else {
|
|
12410
|
+
let e = l.shadeColor(a, s.color);
|
|
12411
|
+
c = y.hexToRgba(y.isColorHex(e) ? e : y.rgb2hex(e), i.config.fill.opacity);
|
|
12412
|
+
}
|
|
12412
12413
|
}
|
|
12413
12414
|
return {
|
|
12414
12415
|
color: c,
|
|
@@ -12655,7 +12656,7 @@ function Jt(e) {
|
|
|
12655
12656
|
}
|
|
12656
12657
|
var Q = class {
|
|
12657
12658
|
constructor(e, t, n, r) {
|
|
12658
|
-
this.ctx = t, this.w = e, this.xyRatios = n, this.pointsChart =
|
|
12659
|
+
this.ctx = t, this.w = e, this.xyRatios = n, this.pointsChart = this.w.config.chart.type === "bubble" || this.w.config.chart.type === "scatter" || r, this.scatter = new ne(this.w, this.ctx), this.noNegatives = this.w.globals.minX === Number.MAX_VALUE, this.lineHelpers = new Ut(this), this.markers = new B(this.w, this.ctx), this.prevSeriesY = [], this.categoryAxisCorrection = 0, this.yaxisIndex = 0;
|
|
12659
12660
|
}
|
|
12660
12661
|
draw(e, t, n, r) {
|
|
12661
12662
|
let i = this.w, a = new I(this.w), o = i.globals.comboCharts ? t : i.config.chart.type, l = a.group({ class: `apexcharts-${o}-series apexcharts-plot-series` }), u = new N(this.w);
|
|
@@ -12925,7 +12926,7 @@ var Q = class {
|
|
|
12925
12926
|
curve: N,
|
|
12926
12927
|
isRangeStart: v
|
|
12927
12928
|
});
|
|
12928
|
-
f = C.areaPaths, d = C.linePaths, c = C.pX, l = C.pY, P = C.pathState, F = C.segmentStartX, E = C.areaPath, T = C.linePath, this.appendPathFrom && !x.globals.hasNullValues &&
|
|
12929
|
+
f = C.areaPaths, d = C.linePaths, c = C.pX, l = C.pY, P = C.pathState, F = C.segmentStartX, E = C.areaPath, T = C.linePath, this.appendPathFrom && !x.globals.hasNullValues && (N !== "monotoneCubic" || e !== "rangeArea") && (D += S.line(o, this.areaBottomY), O += S.line(o, this.areaBottomY)), this.handleNullDataPoints(t, y, a, i, r), this._handleMarkersAndLabels({
|
|
12929
12930
|
type: e,
|
|
12930
12931
|
pointsPos: y,
|
|
12931
12932
|
i: a,
|
|
@@ -13024,13 +13025,11 @@ var Q = class {
|
|
|
13024
13025
|
m += t, h += t;
|
|
13025
13026
|
break;
|
|
13026
13027
|
}
|
|
13027
|
-
case 1:
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
}
|
|
13033
|
-
break;
|
|
13028
|
+
case 1: if (t[n][r + 1] === null) m += C ? b.line(u, c) : b.move(u, d), h += b.line(u, x) + b.line(p, x) + "z", g.push(m), _.push(h), f = -1;
|
|
13029
|
+
else {
|
|
13030
|
+
let o = b.curve(u + e, d, i - e, a, i, a);
|
|
13031
|
+
m += o, h += o, r >= t[n].length - 2 && (C && (m += b.curve(i, a, i, a, i, c) + b.move(i, c)), h += b.curve(i, a, i, a, i, x) + b.line(p, x) + "z", g.push(m), _.push(h), f = -1);
|
|
13032
|
+
}
|
|
13034
13033
|
}
|
|
13035
13034
|
u = i, d = a;
|
|
13036
13035
|
break;
|
|
@@ -13045,9 +13044,7 @@ var Q = class {
|
|
|
13045
13044
|
case "linestep":
|
|
13046
13045
|
r = b.line(null, n, "V") + b.line(t, null, "H");
|
|
13047
13046
|
break;
|
|
13048
|
-
case "straight":
|
|
13049
|
-
r = b.line(t, n);
|
|
13050
|
-
break;
|
|
13047
|
+
case "straight": r = b.line(t, n);
|
|
13051
13048
|
}
|
|
13052
13049
|
return r;
|
|
13053
13050
|
};
|
|
@@ -13063,13 +13060,11 @@ var Q = class {
|
|
|
13063
13060
|
m += t, h += t;
|
|
13064
13061
|
break;
|
|
13065
13062
|
}
|
|
13066
|
-
case 1:
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
}
|
|
13072
|
-
break;
|
|
13063
|
+
case 1: if (t[n][r + 1] === null) m += C ? b.line(u, c) : b.move(u, d), h += b.line(u, x) + b.line(p, x) + "z", g.push(m), _.push(h), f = -1;
|
|
13064
|
+
else {
|
|
13065
|
+
let o = e(v, i, a);
|
|
13066
|
+
m += o, h += o, r >= t[n].length - 2 && (C && (m += b.line(i, c)), h += b.line(i, x) + b.line(p, x) + "z", g.push(m), _.push(h), f = -1);
|
|
13067
|
+
}
|
|
13073
13068
|
}
|
|
13074
13069
|
u = i, d = a;
|
|
13075
13070
|
break;
|
|
@@ -13119,7 +13114,7 @@ var Q = class {
|
|
|
13119
13114
|
}
|
|
13120
13115
|
}, Xt = class {
|
|
13121
13116
|
constructor(e, t) {
|
|
13122
|
-
this.ctx = t, this.w = e, this.chartType = this.w.config.chart.type, this.initialAnim = this.w.config.chart.animations.enabled, this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled, this.animBeginArr = [0], this.animDur = 0, this.donutDataLabels = this.w.config.plotOptions.pie.donut.labels, this.lineColorArr = e.globals.stroke.colors === void 0 ? e.globals.colors : e.globals.stroke.colors, this.defaultSize = Math.min(e.layout.gridWidth, e.layout.gridHeight), this.centerY = this.defaultSize / 2, this.centerX = e.layout.gridWidth / 2, e.config.chart.type === "radialBar" ?
|
|
13117
|
+
this.ctx = t, this.w = e, this.chartType = this.w.config.chart.type, this.initialAnim = this.w.config.chart.animations.enabled, this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled, this.animBeginArr = [0], this.animDur = 0, this.donutDataLabels = this.w.config.plotOptions.pie.donut.labels, this.lineColorArr = e.globals.stroke.colors === void 0 ? e.globals.colors : e.globals.stroke.colors, this.defaultSize = Math.min(e.layout.gridWidth, e.layout.gridHeight), this.centerY = this.defaultSize / 2, this.centerX = e.layout.gridWidth / 2, this.fullAngle = e.config.chart.type === "radialBar" ? 360 : Math.abs(e.config.plotOptions.pie.endAngle - e.config.plotOptions.pie.startAngle), this.initialAngle = e.config.plotOptions.pie.startAngle % this.fullAngle, e.globals.radialSize = this.defaultSize / 2.05 - e.config.stroke.width - (e.config.chart.sparkline.enabled ? 0 : e.config.chart.dropShadow.blur), this.donutSize = e.globals.radialSize * parseInt(e.config.plotOptions.pie.donut.size, 10) / 100;
|
|
13123
13118
|
let n = e.config.plotOptions.pie.customScale, r = e.layout.gridWidth / 2, i = e.layout.gridHeight / 2;
|
|
13124
13119
|
this.translateX = r - r * n, this.translateY = i - i * n, this.dataLabelsGroup = new I(this.w).group({
|
|
13125
13120
|
class: "apexcharts-datalabels-group",
|
|
@@ -13304,7 +13299,8 @@ var Q = class {
|
|
|
13304
13299
|
let e = i.attr("data:pathOrig");
|
|
13305
13300
|
i.attr({ d: e });
|
|
13306
13301
|
return;
|
|
13307
|
-
}
|
|
13302
|
+
}
|
|
13303
|
+
{
|
|
13308
13304
|
let n = t.dom.baseEl.getElementsByClassName("apexcharts-pie-area");
|
|
13309
13305
|
Array.prototype.forEach.call(n, (e) => {
|
|
13310
13306
|
e.setAttribute("data:pieClicked", "false");
|
|
@@ -14151,7 +14147,7 @@ function rn(e, t, n, r, i, a, o, s) {
|
|
|
14151
14147
|
function an(e, t, n, r, i) {
|
|
14152
14148
|
let a = [], o = e.length;
|
|
14153
14149
|
if (o === 0) return a;
|
|
14154
|
-
let s = Array(o), c = 0, l = 0, u =
|
|
14150
|
+
let s = Array(o), c = 0, l = 0, u = 1 / 0, d = -1 / 0, f = 0;
|
|
14155
14151
|
for (; f < o;) {
|
|
14156
14152
|
let o = Math.min(r, i), p = e[f];
|
|
14157
14153
|
if (nn(c, u, d, l, p, o)) s[c] = p, c++, l += p, p < u && (u = p), p > d && (d = p), f++;
|
|
@@ -14163,7 +14159,7 @@ function an(e, t, n, r, i) {
|
|
|
14163
14159
|
let e = l / r;
|
|
14164
14160
|
n += e, i -= e;
|
|
14165
14161
|
}
|
|
14166
|
-
c = 0, l = 0, u =
|
|
14162
|
+
c = 0, l = 0, u = 1 / 0, d = -1 / 0;
|
|
14167
14163
|
}
|
|
14168
14164
|
}
|
|
14169
14165
|
return c > 0 && rn(a, s, c, l, t, n, r, i), a;
|
|
@@ -14209,10 +14205,10 @@ var sn = { generate: on }, cn = class {
|
|
|
14209
14205
|
new F(this.w).dropShadow(i, e, o);
|
|
14210
14206
|
}
|
|
14211
14207
|
let c = n.group({ class: "apexcharts-data-labels" }), l = {
|
|
14212
|
-
xMin:
|
|
14213
|
-
yMin:
|
|
14214
|
-
xMax: -
|
|
14215
|
-
yMax: -
|
|
14208
|
+
xMin: 1 / 0,
|
|
14209
|
+
yMin: 1 / 0,
|
|
14210
|
+
xMax: -1 / 0,
|
|
14211
|
+
yMax: -1 / 0
|
|
14216
14212
|
};
|
|
14217
14213
|
a.forEach((i, a) => {
|
|
14218
14214
|
let c = i[0], u = i[1], d = i[2], f = i[3];
|
|
@@ -14273,7 +14269,7 @@ var sn = { generate: on }, cn = class {
|
|
|
14273
14269
|
let u = t.config.plotOptions.treemap.seriesTitle;
|
|
14274
14270
|
if (t.config.series.length > 1 && u && u.show) {
|
|
14275
14271
|
let e = t.config.series[o].name || "";
|
|
14276
|
-
if (e && l.xMin <
|
|
14272
|
+
if (e && l.xMin < 1 / 0 && l.yMin < 1 / 0) {
|
|
14277
14273
|
let { offsetX: r, offsetY: i, borderColor: a, borderWidth: o, borderRadius: c, style: d } = u, f = d.color || t.config.chart.foreColor, p = {
|
|
14278
14274
|
left: d.padding.left,
|
|
14279
14275
|
right: d.padding.right,
|