apexcharts 7.3.0 → 7.5.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/LICENSE +39 -11
- package/dist/apexcharts.common.js +2 -2
- package/dist/apexcharts.core.js +579 -467
- package/dist/apexcharts.core.min.js +2 -2
- package/dist/apexcharts.esm.js +1347 -810
- package/dist/apexcharts.js +896 -267
- package/dist/apexcharts.min.js +2 -2
- package/dist/apexcharts.ssr.common.js +2 -2
- package/dist/apexcharts.ssr.esm.js +896 -267
- package/dist/area.common.js +1 -1
- package/dist/area.esm.js +1 -1
- package/dist/bar.common.js +2 -2
- package/dist/bar.esm.js +20 -10
- package/dist/bar.js +2 -2
- package/dist/boxPlot.common.js +2 -2
- package/dist/boxPlot.esm.js +20 -10
- package/dist/bubble.common.js +1 -1
- package/dist/bubble.esm.js +1 -1
- package/dist/candlestick.common.js +2 -2
- package/dist/candlestick.esm.js +20 -10
- package/dist/candlestick.js +2 -2
- package/dist/column.common.js +2 -2
- package/dist/column.esm.js +20 -10
- package/dist/core.common.js +2 -2
- package/dist/core.esm.js +579 -467
- package/dist/donut.common.js +1 -1
- package/dist/donut.esm.js +1 -1
- package/dist/dumbbell.common.js +2 -2
- package/dist/dumbbell.esm.js +20 -10
- package/dist/features/all.common.js +2 -2
- package/dist/features/all.esm.js +536 -34
- package/dist/features/annotations.common.js +1 -1
- package/dist/features/annotations.esm.js +1 -1
- package/dist/features/annotations.js +1 -1
- package/dist/features/context-menu.common.js +1 -1
- package/dist/features/context-menu.esm.js +1 -1
- package/dist/features/context-menu.js +1 -1
- package/dist/features/drilldown.common.js +1 -1
- package/dist/features/drilldown.esm.js +1 -1
- package/dist/features/drilldown.js +1 -1
- package/dist/features/dumbbell.common.js +1 -1
- package/dist/features/dumbbell.esm.js +1 -1
- package/dist/features/dumbbell.js +1 -1
- package/dist/features/exports.common.js +2 -2
- package/dist/features/exports.esm.js +12 -14
- package/dist/features/exports.js +2 -2
- package/dist/features/facet.common.js +1 -1
- package/dist/features/facet.esm.js +1 -1
- package/dist/features/facet.js +1 -1
- package/dist/features/history.common.js +1 -1
- package/dist/features/history.esm.js +1 -1
- package/dist/features/history.js +1 -1
- package/dist/features/ink.common.js +1 -1
- package/dist/features/ink.esm.js +1 -1
- package/dist/features/ink.js +1 -1
- package/dist/features/keyboard.common.js +2 -2
- package/dist/features/keyboard.esm.js +14 -1
- package/dist/features/keyboard.js +2 -2
- package/dist/features/legend.common.js +1 -1
- package/dist/features/legend.esm.js +1 -1
- package/dist/features/legend.js +1 -1
- package/dist/features/link.common.js +1 -1
- package/dist/features/link.esm.js +38 -38
- package/dist/features/link.js +1 -1
- package/dist/features/marks.common.js +1 -1
- package/dist/features/marks.esm.js +1 -1
- package/dist/features/marks.js +1 -1
- package/dist/features/measure.common.js +1 -1
- package/dist/features/measure.esm.js +1 -1
- package/dist/features/measure.js +1 -1
- package/dist/features/morph.common.js +1 -1
- package/dist/features/morph.esm.js +1 -1
- package/dist/features/morph.js +1 -1
- package/dist/features/perspectives.common.js +1 -1
- package/dist/features/perspectives.esm.js +11 -11
- package/dist/features/perspectives.js +1 -1
- package/dist/features/raincloud.common.js +1 -1
- package/dist/features/raincloud.esm.js +1 -1
- package/dist/features/raincloud.js +1 -1
- package/dist/features/renderer-canvas.common.js +1 -1
- package/dist/features/renderer-canvas.esm.js +1 -1
- package/dist/features/renderer-canvas.js +1 -1
- package/dist/features/stats.common.js +1 -1
- package/dist/features/stats.esm.js +1 -1
- package/dist/features/stats.js +1 -1
- package/dist/features/storyboard.common.js +1 -1
- package/dist/features/storyboard.esm.js +11 -11
- package/dist/features/storyboard.js +1 -1
- package/dist/features/streamgraph.common.js +1 -1
- package/dist/features/streamgraph.esm.js +1 -1
- package/dist/features/streamgraph.js +1 -1
- package/dist/features/toolbar.common.js +2 -2
- package/dist/features/toolbar.esm.js +172 -25
- package/dist/features/toolbar.js +2 -2
- package/dist/features/trellis.common.js +1 -1
- package/dist/features/trellis.esm.js +1 -1
- package/dist/features/trellis.js +1 -1
- package/dist/features/waterfall.common.js +1 -1
- package/dist/features/waterfall.esm.js +1 -1
- package/dist/features/waterfall.js +1 -1
- package/dist/features/weave.common.js +2 -2
- package/dist/features/weave.esm.js +352 -10
- package/dist/features/weave.js +2 -2
- package/dist/heatmap.common.js +1 -1
- package/dist/heatmap.esm.js +1 -1
- package/dist/heatmap.js +1 -1
- package/dist/histogram.common.js +2 -2
- package/dist/histogram.esm.js +20 -10
- package/dist/line.common.js +1 -1
- package/dist/line.esm.js +1 -1
- package/dist/line.js +1 -1
- package/dist/pictograms.common.js +1 -1
- package/dist/pictograms.esm.js +1 -1
- package/dist/pictograms.js +1 -1
- package/dist/pie.common.js +1 -1
- package/dist/pie.esm.js +1 -1
- package/dist/pie.js +1 -1
- package/dist/polarArea.common.js +1 -1
- package/dist/polarArea.esm.js +1 -1
- package/dist/radar.common.js +1 -1
- package/dist/radar.esm.js +1 -1
- package/dist/radar.js +1 -1
- package/dist/radialBar.common.js +2 -2
- package/dist/radialBar.esm.js +27 -2
- package/dist/radialBar.js +2 -2
- package/dist/raincloud.common.js +2 -2
- package/dist/raincloud.esm.js +20 -10
- package/dist/rangeArea.common.js +1 -1
- package/dist/rangeArea.esm.js +1 -1
- package/dist/rangeBar.common.js +2 -2
- package/dist/rangeBar.esm.js +20 -10
- package/dist/scatter.common.js +1 -1
- package/dist/scatter.esm.js +1 -1
- package/dist/streamgraph.common.js +1 -1
- package/dist/streamgraph.esm.js +1 -1
- package/dist/sunburst.common.js +1 -1
- package/dist/sunburst.esm.js +1 -1
- package/dist/sunburst.js +1 -1
- package/dist/treemap.common.js +1 -1
- package/dist/treemap.esm.js +1 -1
- package/dist/treemap.js +1 -1
- package/dist/unit-shapes.common.js +1 -1
- package/dist/unit-shapes.esm.js +1 -1
- package/dist/unit-shapes.js +1 -1
- package/dist/unit.common.js +1 -1
- package/dist/unit.esm.js +79 -79
- package/dist/unit.js +1 -1
- package/dist/violin.common.js +2 -2
- package/dist/violin.esm.js +20 -10
- package/dist/violin.js +2 -2
- package/dist/waterfall.common.js +2 -2
- package/dist/waterfall.esm.js +20 -10
- package/package.json +2 -2
- package/src/apexcharts.js +39 -15
- package/src/charts/Radial.js +12 -3
- package/src/charts/common/bar/Helpers.js +31 -12
- package/src/modules/Data.js +8 -2
- package/src/modules/DataLabels.js +14 -4
- package/src/modules/Exports.js +14 -12
- package/src/modules/Formatters.js +24 -1
- package/src/modules/Graphics.js +10 -0
- package/src/modules/Range.js +28 -1
- package/src/modules/Toolbar.js +112 -2
- package/src/modules/ZoomPanSelection.js +85 -7
- package/src/modules/accessibility/KeyboardNavigation.js +14 -0
- package/src/modules/axes/YAxis.js +12 -15
- package/src/modules/helpers/UpdateHelpers.js +25 -8
- package/src/modules/settings/Globals.js +5 -10
- package/src/modules/settings/Options.js +15 -0
- package/src/modules/weave/Claims.js +231 -0
- package/src/modules/weave/Drawn.js +169 -0
- package/src/modules/weave/PluginAPI.js +195 -4
- package/src/modules/weave/WeaveHost.js +76 -3
- package/src/ssr/DOMShim.js +50 -0
- package/src/types/internal.d.ts +1 -1
- package/src/utils/Utils.js +6 -9
- package/types/apexcharts.d.ts +92 -0
package/dist/apexcharts.core.js
CHANGED
|
@@ -42,7 +42,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
/*!
|
|
45
|
-
* ApexCharts v7.
|
|
45
|
+
* ApexCharts v7.5.0
|
|
46
46
|
* (c) 2018-2026 ApexCharts
|
|
47
47
|
*/
|
|
48
48
|
|
|
@@ -82,6 +82,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
82
82
|
return {};
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
const CHAR_WIDTH_EM = 0.55;
|
|
86
|
+
const ASCENT_EM = 0.917;
|
|
87
|
+
const DESCENT_EM = 0.25;
|
|
88
|
+
const LINE_HEIGHT_EM = 1.1;
|
|
89
|
+
const DEFAULT_FONT_SIZE = 11;
|
|
85
90
|
class SSRElement {
|
|
86
91
|
/**
|
|
87
92
|
* @param {string} nodeName
|
|
@@ -202,6 +207,43 @@ var __async = (__this, __arguments, generator) => {
|
|
|
202
207
|
y: 0
|
|
203
208
|
};
|
|
204
209
|
}
|
|
210
|
+
getBBox() {
|
|
211
|
+
if (this.nodeName !== "text" && this.nodeName !== "tspan") {
|
|
212
|
+
return { x: 0, y: 0, width: 0, height: 0 };
|
|
213
|
+
}
|
|
214
|
+
const lines = this._textLines();
|
|
215
|
+
const longest = lines.reduce((acc, line) => Math.max(acc, line.length), 0);
|
|
216
|
+
if (!longest) {
|
|
217
|
+
return { x: 0, y: 0, width: 0, height: 0 };
|
|
218
|
+
}
|
|
219
|
+
const fontSize = parseFloat(this.attributes.get("font-size")) || DEFAULT_FONT_SIZE;
|
|
220
|
+
const width = longest * fontSize * CHAR_WIDTH_EM;
|
|
221
|
+
const height = fontSize * (ASCENT_EM + DESCENT_EM) + (lines.length - 1) * fontSize * LINE_HEIGHT_EM;
|
|
222
|
+
const anchor = this.attributes.get("text-anchor");
|
|
223
|
+
const x = parseFloat(this.attributes.get("x")) || 0;
|
|
224
|
+
const y = parseFloat(this.attributes.get("y")) || 0;
|
|
225
|
+
return {
|
|
226
|
+
x: anchor === "middle" ? x - width / 2 : anchor === "end" ? x - width : x,
|
|
227
|
+
y: y - fontSize * ASCENT_EM,
|
|
228
|
+
width,
|
|
229
|
+
height
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Text of this element, one entry per rendered line
|
|
234
|
+
* @returns {string[]}
|
|
235
|
+
*/
|
|
236
|
+
_textLines() {
|
|
237
|
+
var _a;
|
|
238
|
+
const tspans = this.children.filter((child) => child.nodeName === "tspan");
|
|
239
|
+
if (tspans.length) {
|
|
240
|
+
return tspans.map((tspan) => {
|
|
241
|
+
var _a2;
|
|
242
|
+
return String((_a2 = tspan.textContent) != null ? _a2 : "");
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
return [String((_a = this.textContent) != null ? _a : "")];
|
|
246
|
+
}
|
|
205
247
|
getRootNode() {
|
|
206
248
|
let root = this;
|
|
207
249
|
while (root.parentNode) {
|
|
@@ -691,15 +733,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
691
733
|
return output;
|
|
692
734
|
}
|
|
693
735
|
// A per-series shallow copy: the series OBJECTS are copied, their data arrays
|
|
694
|
-
// are shared.
|
|
695
|
-
//
|
|
696
|
-
//
|
|
697
|
-
// this way because the series object was copied at capture time.
|
|
698
|
-
//
|
|
699
|
-
//
|
|
700
|
-
// note above defineLazyInitialSeries(). This is the same cheap shape
|
|
701
|
-
// `globals.initialSeries` captures, so snapshotting a config stays O(n)
|
|
702
|
-
// instead of deep-cloning every point.
|
|
736
|
+
// are shared. Every internal "mutation" of a series' data is a property
|
|
737
|
+
// REPLACEMENT (`series[i].data = []` on legend collapse, `series[i] = 0` for
|
|
738
|
+
// non-axis charts, appendData's concat), and those cannot reach a copy made
|
|
739
|
+
// this way because the series object was copied at capture time. This is the
|
|
740
|
+
// same cheap shape `globals.initialSeries` captures, so snapshotting a config
|
|
741
|
+
// stays O(n) instead of deep-cloning every point.
|
|
703
742
|
/**
|
|
704
743
|
* @param {any} series
|
|
705
744
|
*/
|
|
@@ -1355,11 +1394,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
1355
1394
|
format = format.replace(/(^|[^\\])yyyy+/g, "$1" + y);
|
|
1356
1395
|
format = format.replace(/(^|[^\\])yy/g, "$1" + y.toString().substr(2, 2));
|
|
1357
1396
|
format = format.replace(/(^|[^\\])y/g, "$1" + y);
|
|
1358
|
-
const
|
|
1397
|
+
const M = (utc ? date.getUTCMonth() : date.getMonth()) + 1;
|
|
1359
1398
|
format = format.replace(/(^|[^\\])MMMM+/g, "$1" + MMMM[0]);
|
|
1360
1399
|
format = format.replace(/(^|[^\\])MMM/g, "$1" + MMM[0]);
|
|
1361
|
-
format = format.replace(/(^|[^\\])MM/g, "$1" + ii(
|
|
1362
|
-
format = format.replace(/(^|[^\\])M/g, "$1" +
|
|
1400
|
+
format = format.replace(/(^|[^\\])MM/g, "$1" + ii(M));
|
|
1401
|
+
format = format.replace(/(^|[^\\])M/g, "$1" + M);
|
|
1363
1402
|
const d = utc ? date.getUTCDate() : date.getDate();
|
|
1364
1403
|
format = format.replace(/(^|[^\\])dddd+/g, "$1" + dddd[0]);
|
|
1365
1404
|
format = format.replace(/(^|[^\\])ddd/g, "$1" + ddd[0]);
|
|
@@ -1401,8 +1440,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
1401
1440
|
const day = (utc ? date.getUTCDay() : date.getDay()) + 1;
|
|
1402
1441
|
format = format.replace(new RegExp(dddd[0], "g"), dddd[day]);
|
|
1403
1442
|
format = format.replace(new RegExp(ddd[0], "g"), ddd[day]);
|
|
1404
|
-
format = format.replace(new RegExp(MMMM[0], "g"), MMMM[
|
|
1405
|
-
format = format.replace(new RegExp(MMM[0], "g"), MMM[
|
|
1443
|
+
format = format.replace(new RegExp(MMMM[0], "g"), MMMM[M]);
|
|
1444
|
+
format = format.replace(new RegExp(MMM[0], "g"), MMM[M]);
|
|
1406
1445
|
format = format.replace(/\\(.)/g, "$1");
|
|
1407
1446
|
return format;
|
|
1408
1447
|
}
|
|
@@ -1870,6 +1909,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
1870
1909
|
setLabelFormatters() {
|
|
1871
1910
|
const w = this.w;
|
|
1872
1911
|
const fmt = w.formatters;
|
|
1912
|
+
const inferredNumericX = w.axisFlags.isXNumeric && w.axisFlags.dataFormatXNumeric && w.config.xaxis.type !== "datetime" && !w.config.xaxis.convertedCatToNumeric && !w.globals.isBarHorizontal;
|
|
1873
1913
|
fmt.xaxisTooltipFormatter = (val) => {
|
|
1874
1914
|
return this.defaultGeneralFormatter(val);
|
|
1875
1915
|
};
|
|
@@ -1886,8 +1926,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
1886
1926
|
fmt.xLabelFormatter = w.config.xaxis.labels.formatter;
|
|
1887
1927
|
} else {
|
|
1888
1928
|
fmt.xLabelFormatter = (val) => {
|
|
1929
|
+
var _a;
|
|
1889
1930
|
if (Utils$1.isNumber(val)) {
|
|
1890
|
-
if (!w.config.xaxis.convertedCatToNumeric && w.config.xaxis.type === "numeric") {
|
|
1931
|
+
if (!w.config.xaxis.convertedCatToNumeric && (w.config.xaxis.type === "numeric" || inferredNumericX)) {
|
|
1932
|
+
const ticks = (_a = w.globals.xAxisScale) == null ? void 0 : _a.result;
|
|
1933
|
+
if (inferredNumericX && Array.isArray(ticks) && ticks.every(Number.isInteger)) {
|
|
1934
|
+
return val.toFixed(0);
|
|
1935
|
+
}
|
|
1891
1936
|
if (Utils$1.isNumber(w.config.xaxis.decimalsInFloat)) {
|
|
1892
1937
|
return val.toFixed(w.config.xaxis.decimalsInFloat);
|
|
1893
1938
|
} else {
|
|
@@ -1913,6 +1958,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
1913
1958
|
}
|
|
1914
1959
|
if (typeof w.config.tooltip.x.formatter === "function") {
|
|
1915
1960
|
fmt.ttKeyFormatter = w.config.tooltip.x.formatter;
|
|
1961
|
+
} else if (w.config.xaxis.labels.formatter === void 0 && inferredNumericX) {
|
|
1962
|
+
const xLabelFormatter = (
|
|
1963
|
+
/** @type {(val: any) => any} */
|
|
1964
|
+
fmt.xLabelFormatter
|
|
1965
|
+
);
|
|
1966
|
+
fmt.ttKeyFormatter = (val) => Number.isInteger(val) ? val.toFixed(0) : xLabelFormatter(val);
|
|
1916
1967
|
} else {
|
|
1917
1968
|
fmt.ttKeyFormatter = fmt.xLabelFormatter;
|
|
1918
1969
|
}
|
|
@@ -2771,6 +2822,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2771
2822
|
// around the pinch centroid (matching the x-only wheel/toolbar zoom),
|
|
2772
2823
|
// frame-by-frame rather than the 400ms wheel throttle.
|
|
2773
2824
|
pinch: "auto",
|
|
2825
|
+
// Drag-to-zoom is deliberate, so it is not gated the way those two
|
|
2826
|
+
// are: it stays on with the toolbar hidden. The reset button that
|
|
2827
|
+
// undoes it does not, which leaves the viewer in a window with no
|
|
2828
|
+
// exit. So while the chart IS zoomed and nothing else on screen can
|
|
2829
|
+
// reset it, one reset control is drawn where the toolbar would have
|
|
2830
|
+
// been, and it goes when the range does. A chart nobody zooms is
|
|
2831
|
+
// untouched. Set false for a page that supplies its own reset (which
|
|
2832
|
+
// also turns off the Escape shortcut), or true to force the control
|
|
2833
|
+
// on whenever the chart is zoomed, even where `toolbar.tools.reset`
|
|
2834
|
+
// is off.
|
|
2835
|
+
resetControl: "auto",
|
|
2774
2836
|
zoomedArea: {
|
|
2775
2837
|
fill: {
|
|
2776
2838
|
color: "#90CAF9",
|
|
@@ -2837,6 +2899,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2837
2899
|
borderRadius: 0,
|
|
2838
2900
|
borderRadiusApplication: "around",
|
|
2839
2901
|
// [around, end]
|
|
2902
|
+
// Which segments of a stack round. 'all' caps both ends of the
|
|
2903
|
+
// stack (baseline and far end); 'last' caps only the far end, so
|
|
2904
|
+
// the stack sits square on the baseline. Stacked charts only.
|
|
2905
|
+
borderRadiusWhenStacked: "all",
|
|
2906
|
+
// [all, last]
|
|
2840
2907
|
rangeBarOverlap: true,
|
|
2841
2908
|
rangeBarGroupRows: false,
|
|
2842
2909
|
hideZeroBarsWhenGrouped: false,
|
|
@@ -7625,16 +7692,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
7625
7692
|
* which cannot reach the captured copies because each series object was
|
|
7626
7693
|
* copied at capture time.
|
|
7627
7694
|
*
|
|
7628
|
-
*
|
|
7629
|
-
*
|
|
7630
|
-
*
|
|
7631
|
-
*
|
|
7632
|
-
*
|
|
7633
|
-
* case is not honoured for a separate, older reason: Data.parseData()
|
|
7634
|
-
* re-captures initialSeries unconditionally on the re-render appendData
|
|
7635
|
-
* triggers. Detaching would mean copying the data arrays, which is exactly
|
|
7636
|
-
* the per-point cost this snapshot exists to avoid. The same exception
|
|
7637
|
-
* applies to `initialConfig.series`, which is captured with the same shape.
|
|
7695
|
+
* appendData() used to be the exception, growing the shared data array in
|
|
7696
|
+
* place. It now replaces the array instead (`data = data.concat(newData)`):
|
|
7697
|
+
* one array copy per call, against the per-point cost this snapshot exists
|
|
7698
|
+
* to avoid. With that, no internal edit can reach a captured copy. The same
|
|
7699
|
+
* holds for `initialConfig.series`, which is captured with the same shape.
|
|
7638
7700
|
*
|
|
7639
7701
|
* @param {Record<string, any>} globals
|
|
7640
7702
|
*/
|
|
@@ -8161,9 +8223,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8161
8223
|
if (w.seriesData.series.length === 0) return total;
|
|
8162
8224
|
for (let i2 = 0; i2 < w.seriesData.series[w.globals.maxValsInArrayIndex].length; i2++) {
|
|
8163
8225
|
let t2 = 0;
|
|
8164
|
-
for (let
|
|
8165
|
-
if (typeof w.seriesData.series[
|
|
8166
|
-
t2 += w.seriesData.series[
|
|
8226
|
+
for (let j2 = 0; j2 < w.seriesData.series.length; j2++) {
|
|
8227
|
+
if (typeof w.seriesData.series[j2][i2] !== "undefined" && excludedSeriesIndices.indexOf(j2) === -1) {
|
|
8228
|
+
t2 += w.seriesData.series[j2][i2];
|
|
8167
8229
|
}
|
|
8168
8230
|
}
|
|
8169
8231
|
total.push(t2);
|
|
@@ -8409,8 +8471,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8409
8471
|
w.globals.seriesTotals = w.seriesData.series.map((ser) => {
|
|
8410
8472
|
let total = 0;
|
|
8411
8473
|
if (Array.isArray(ser)) {
|
|
8412
|
-
for (let
|
|
8413
|
-
total += ser[
|
|
8474
|
+
for (let j2 = 0; j2 < ser.length; j2++) {
|
|
8475
|
+
total += ser[j2];
|
|
8414
8476
|
}
|
|
8415
8477
|
} else {
|
|
8416
8478
|
total += ser;
|
|
@@ -8426,9 +8488,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8426
8488
|
const w = this.w;
|
|
8427
8489
|
const seriesTotalsXRange = w.seriesData.series.map((ser, index) => {
|
|
8428
8490
|
let total = 0;
|
|
8429
|
-
for (let
|
|
8430
|
-
if (w.seriesData.seriesX[index][
|
|
8431
|
-
total += ser[
|
|
8491
|
+
for (let j2 = 0; j2 < ser.length; j2++) {
|
|
8492
|
+
if (w.seriesData.seriesX[index][j2] > minX && w.seriesData.seriesX[index][j2] < maxX) {
|
|
8493
|
+
total += ser[j2];
|
|
8432
8494
|
}
|
|
8433
8495
|
}
|
|
8434
8496
|
return total;
|
|
@@ -8446,11 +8508,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8446
8508
|
w.globals.seriesPercent = w.seriesData.series.map((ser) => {
|
|
8447
8509
|
const seriesPercent = [];
|
|
8448
8510
|
if (Array.isArray(ser)) {
|
|
8449
|
-
for (let
|
|
8450
|
-
const total = w.seriesData.stackedSeriesTotals[
|
|
8511
|
+
for (let j2 = 0; j2 < ser.length; j2++) {
|
|
8512
|
+
const total = w.seriesData.stackedSeriesTotals[j2];
|
|
8451
8513
|
let percent = 0;
|
|
8452
8514
|
if (total) {
|
|
8453
|
-
percent = 100 * ser[
|
|
8515
|
+
percent = 100 * ser[j2] / total;
|
|
8454
8516
|
}
|
|
8455
8517
|
seriesPercent.push(percent);
|
|
8456
8518
|
}
|
|
@@ -8825,44 +8887,44 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8825
8887
|
if (cmd === "Z") {
|
|
8826
8888
|
commands.push(["Z"]);
|
|
8827
8889
|
} else if (cmd === "M" || cmd === "L" || cmd === "T") {
|
|
8828
|
-
for (let
|
|
8829
|
-
commands.push([cmd, nums[
|
|
8890
|
+
for (let j2 = 0; j2 < nums.length; j2 += 2) {
|
|
8891
|
+
commands.push([cmd, nums[j2], nums[j2 + 1]]);
|
|
8830
8892
|
}
|
|
8831
8893
|
} else if (cmd === "H") {
|
|
8832
|
-
for (let
|
|
8833
|
-
commands.push([cmd, nums[
|
|
8894
|
+
for (let j2 = 0; j2 < nums.length; j2++) {
|
|
8895
|
+
commands.push([cmd, nums[j2]]);
|
|
8834
8896
|
}
|
|
8835
8897
|
} else if (cmd === "V") {
|
|
8836
|
-
for (let
|
|
8837
|
-
commands.push([cmd, nums[
|
|
8898
|
+
for (let j2 = 0; j2 < nums.length; j2++) {
|
|
8899
|
+
commands.push([cmd, nums[j2]]);
|
|
8838
8900
|
}
|
|
8839
8901
|
} else if (cmd === "C") {
|
|
8840
|
-
for (let
|
|
8902
|
+
for (let j2 = 0; j2 < nums.length; j2 += 6) {
|
|
8841
8903
|
commands.push([
|
|
8842
8904
|
cmd,
|
|
8843
|
-
nums[
|
|
8844
|
-
nums[
|
|
8845
|
-
nums[
|
|
8846
|
-
nums[
|
|
8847
|
-
nums[
|
|
8848
|
-
nums[
|
|
8905
|
+
nums[j2],
|
|
8906
|
+
nums[j2 + 1],
|
|
8907
|
+
nums[j2 + 2],
|
|
8908
|
+
nums[j2 + 3],
|
|
8909
|
+
nums[j2 + 4],
|
|
8910
|
+
nums[j2 + 5]
|
|
8849
8911
|
]);
|
|
8850
8912
|
}
|
|
8851
8913
|
} else if (cmd === "S" || cmd === "Q") {
|
|
8852
|
-
for (let
|
|
8853
|
-
commands.push([cmd, nums[
|
|
8914
|
+
for (let j2 = 0; j2 < nums.length; j2 += 4) {
|
|
8915
|
+
commands.push([cmd, nums[j2], nums[j2 + 1], nums[j2 + 2], nums[j2 + 3]]);
|
|
8854
8916
|
}
|
|
8855
8917
|
} else if (cmd === "A") {
|
|
8856
|
-
for (let
|
|
8918
|
+
for (let j2 = 0; j2 < nums.length; j2 += 7) {
|
|
8857
8919
|
commands.push([
|
|
8858
8920
|
cmd,
|
|
8859
|
-
nums[
|
|
8860
|
-
nums[
|
|
8861
|
-
nums[
|
|
8862
|
-
nums[
|
|
8863
|
-
nums[
|
|
8864
|
-
nums[
|
|
8865
|
-
nums[
|
|
8921
|
+
nums[j2],
|
|
8922
|
+
nums[j2 + 1],
|
|
8923
|
+
nums[j2 + 2],
|
|
8924
|
+
nums[j2 + 3],
|
|
8925
|
+
nums[j2 + 4],
|
|
8926
|
+
nums[j2 + 5],
|
|
8927
|
+
nums[j2 + 6]
|
|
8866
8928
|
]);
|
|
8867
8929
|
}
|
|
8868
8930
|
}
|
|
@@ -8982,11 +9044,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
8982
9044
|
return false;
|
|
8983
9045
|
}
|
|
8984
9046
|
function arcToBezier(pos, val) {
|
|
8985
|
-
var rx = Math.abs(val[1]), ry = Math.abs(val[2]), xAxisRotation = val[3] % 360, largeArcFlag = val[4], sweepFlag = val[5], x = val[6], y = val[7],
|
|
8986
|
-
if (rx === 0 || ry === 0 ||
|
|
8987
|
-
return [["C",
|
|
9047
|
+
var rx = Math.abs(val[1]), ry = Math.abs(val[2]), xAxisRotation = val[3] % 360, largeArcFlag = val[4], sweepFlag = val[5], x = val[6], y = val[7], A = new Point(pos[0], pos[1]), B = new Point(x, y), primedCoord, lambda, mat, k, c, cSquare, t2, O, OA, OB, tetaStart, tetaEnd, deltaTeta, nbSectors, f, arcSegPoints, angle, sinAngle, cosAngle, pt, i2, il, retVal = [], x1, y1, x2, y2;
|
|
9048
|
+
if (rx === 0 || ry === 0 || A.x === B.x && A.y === B.y) {
|
|
9049
|
+
return [["C", A.x, A.y, B.x, B.y, B.x, B.y]];
|
|
8988
9050
|
}
|
|
8989
|
-
primedCoord = new Point((
|
|
9051
|
+
primedCoord = new Point((A.x - B.x) / 2, (A.y - B.y) / 2).transform(
|
|
8990
9052
|
// Start with the identity matrix (no args → Matrix defaults a=d=1, others 0).
|
|
8991
9053
|
// Passing all-zero args here would produce a degenerate zero matrix, since
|
|
8992
9054
|
// `0 ?? 1` is `0`, not `1` — every subsequent transform then yields (0,0)
|
|
@@ -9002,9 +9064,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9002
9064
|
}
|
|
9003
9065
|
mat = /** @type {any} */
|
|
9004
9066
|
new Matrix().rotate(xAxisRotation).scale(1 / rx, 1 / ry).rotate(-xAxisRotation);
|
|
9005
|
-
|
|
9067
|
+
A = A.transform(mat);
|
|
9006
9068
|
B = B.transform(mat);
|
|
9007
|
-
k = [B.x -
|
|
9069
|
+
k = [B.x - A.x, B.y - A.y];
|
|
9008
9070
|
cSquare = k[0] * k[0] + k[1] * k[1];
|
|
9009
9071
|
c = Math.sqrt(cSquare);
|
|
9010
9072
|
k[0] /= c;
|
|
@@ -9013,8 +9075,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9013
9075
|
if (largeArcFlag === sweepFlag) {
|
|
9014
9076
|
t2 *= -1;
|
|
9015
9077
|
}
|
|
9016
|
-
O = new Point((B.x +
|
|
9017
|
-
OA = new Point(
|
|
9078
|
+
O = new Point((B.x + A.x) / 2 + t2 * -k[1], (B.y + A.y) / 2 + t2 * k[0]);
|
|
9079
|
+
OA = new Point(A.x - O.x, A.y - O.y);
|
|
9018
9080
|
OB = new Point(B.x - O.x, B.y - O.y);
|
|
9019
9081
|
tetaStart = Math.acos(OA.x / Math.sqrt(OA.x * OA.x + OA.y * OA.y));
|
|
9020
9082
|
if (OA.y < 0) tetaStart *= -1;
|
|
@@ -9804,7 +9866,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9804
9866
|
const {
|
|
9805
9867
|
el,
|
|
9806
9868
|
realIndex,
|
|
9807
|
-
j,
|
|
9869
|
+
j: j2,
|
|
9808
9870
|
fill,
|
|
9809
9871
|
pathFrom,
|
|
9810
9872
|
pathTo,
|
|
@@ -9825,7 +9887,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9825
9887
|
me.morphSVG(
|
|
9826
9888
|
el,
|
|
9827
9889
|
realIndex,
|
|
9828
|
-
|
|
9890
|
+
j2,
|
|
9829
9891
|
w.config.chart.type === "line" && !w.globals.comboCharts ? "stroke" : fill,
|
|
9830
9892
|
pathFrom,
|
|
9831
9893
|
pathTo,
|
|
@@ -9901,7 +9963,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9901
9963
|
* @param {any} el - SVG.js path element
|
|
9902
9964
|
* @param {{realIndex: number, j?: number, isFill: boolean, isLast: boolean, speed: number, delay: number, mask?: {type: 'rect'|'radial', cx?: number, cy?: number, r?: number}}} params
|
|
9903
9965
|
*/
|
|
9904
|
-
animateDraw(el, { realIndex, j, isFill, isLast, speed, delay, mask: maskShape }) {
|
|
9966
|
+
animateDraw(el, { realIndex, j: j2, isFill, isLast, speed, delay, mask: maskShape }) {
|
|
9905
9967
|
const w = this.w;
|
|
9906
9968
|
const me = this;
|
|
9907
9969
|
const finalize = () => {
|
|
@@ -9922,7 +9984,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
9922
9984
|
const radialCx = maskShape && maskShape.cx || 0;
|
|
9923
9985
|
const radialCy = maskShape && maskShape.cy || 0;
|
|
9924
9986
|
const targetRadius = (maskShape && maskShape.r || w.layout.gridWidth / 2) + pad;
|
|
9925
|
-
const maskId = `apexDrawMask${w.globals.cuid}-${realIndex}-${
|
|
9987
|
+
const maskId = `apexDrawMask${w.globals.cuid}-${realIndex}-${j2 != null ? j2 : 0}-${isFill ? "f" : "s"}`;
|
|
9926
9988
|
const mask = BrowserAPIs.createElementNS(SVGNS, "mask");
|
|
9927
9989
|
mask.setAttribute("id", maskId);
|
|
9928
9990
|
mask.setAttribute("maskUnits", "userSpaceOnUse");
|
|
@@ -10034,7 +10096,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10034
10096
|
* pathTo (extra anchors sitting exactly on the final geometry) and snap to
|
|
10035
10097
|
* the clean pathTo at the end.
|
|
10036
10098
|
*/
|
|
10037
|
-
morphSVG(el, realIndex,
|
|
10099
|
+
morphSVG(el, realIndex, j2, fill, pathFrom, pathTo, speed, delay, scrollMorph, pathToInterp) {
|
|
10038
10100
|
var _a, _b;
|
|
10039
10101
|
const w = this.w;
|
|
10040
10102
|
if (!pathFrom) {
|
|
@@ -10082,9 +10144,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10082
10144
|
morphAlgo,
|
|
10083
10145
|
pathToInterp ? pathTo : void 0
|
|
10084
10146
|
).after(() => {
|
|
10085
|
-
if (Utils$1.isNumber(
|
|
10147
|
+
if (Utils$1.isNumber(j2)) {
|
|
10086
10148
|
const maxSeries = w.seriesData.series[w.globals.maxValsInArrayIndex];
|
|
10087
|
-
if (maxSeries &&
|
|
10149
|
+
if (maxSeries && j2 === maxSeries.length - 2 && w.globals.shouldAnimate) {
|
|
10088
10150
|
this.animationCompleted(el);
|
|
10089
10151
|
}
|
|
10090
10152
|
} else if (fill !== "none" && w.globals.shouldAnimate) {
|
|
@@ -10319,6 +10381,26 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10319
10381
|
});
|
|
10320
10382
|
}
|
|
10321
10383
|
}
|
|
10384
|
+
function indexOfSeries(w, series) {
|
|
10385
|
+
if (typeof series === "number") return series;
|
|
10386
|
+
const list = w.config && w.config.series || [];
|
|
10387
|
+
for (let i2 = 0; i2 < list.length; i2++) {
|
|
10388
|
+
if (list[i2] && list[i2].name === series) return i2;
|
|
10389
|
+
}
|
|
10390
|
+
return -1;
|
|
10391
|
+
}
|
|
10392
|
+
function resolveClaimed(w, option, seriesIndex, fallback) {
|
|
10393
|
+
if (!w || !w.weaveClaims) return fallback;
|
|
10394
|
+
const list = w.weaveClaims.byOption.get(option);
|
|
10395
|
+
if (!list || !list.length) return fallback;
|
|
10396
|
+
let resolved = fallback;
|
|
10397
|
+
for (const claim of list) {
|
|
10398
|
+
for (const entry of claim.entries) {
|
|
10399
|
+
if (indexOfSeries(w, entry.series) === seriesIndex) resolved = entry.value;
|
|
10400
|
+
}
|
|
10401
|
+
}
|
|
10402
|
+
return resolved;
|
|
10403
|
+
}
|
|
10322
10404
|
class Graphics {
|
|
10323
10405
|
/**
|
|
10324
10406
|
* @param {import('../types/internal').ChartStateW} w
|
|
@@ -10657,7 +10739,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10657
10739
|
* @return {any} svg.js path object
|
|
10658
10740
|
**/
|
|
10659
10741
|
renderPaths({
|
|
10660
|
-
j,
|
|
10742
|
+
j: j2,
|
|
10661
10743
|
realIndex,
|
|
10662
10744
|
pathFrom,
|
|
10663
10745
|
pathTo,
|
|
@@ -10716,6 +10798,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10716
10798
|
} else {
|
|
10717
10799
|
strokeDashArray = w.config.stroke.dashArray;
|
|
10718
10800
|
}
|
|
10801
|
+
strokeDashArray = resolveClaimed(
|
|
10802
|
+
w,
|
|
10803
|
+
"stroke.dashArray",
|
|
10804
|
+
realIndex,
|
|
10805
|
+
strokeDashArray
|
|
10806
|
+
);
|
|
10719
10807
|
const el = this.drawPath({
|
|
10720
10808
|
d,
|
|
10721
10809
|
stroke,
|
|
@@ -10752,7 +10840,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10752
10840
|
});
|
|
10753
10841
|
const defaultAnimateOpts = {
|
|
10754
10842
|
el,
|
|
10755
|
-
j,
|
|
10843
|
+
j: j2,
|
|
10756
10844
|
realIndex,
|
|
10757
10845
|
pathFrom,
|
|
10758
10846
|
pathTo,
|
|
@@ -10770,7 +10858,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
10770
10858
|
const isLast = w.globals.comboCharts ? true : realIndex === seriesCount - 1;
|
|
10771
10859
|
anim.animateDraw(el, {
|
|
10772
10860
|
realIndex,
|
|
10773
|
-
j,
|
|
10861
|
+
j: j2,
|
|
10774
10862
|
isFill,
|
|
10775
10863
|
isLast,
|
|
10776
10864
|
speed: drawSpeed,
|
|
@@ -11138,19 +11226,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11138
11226
|
const w = this.w;
|
|
11139
11227
|
const filters = new Filters(this.w);
|
|
11140
11228
|
const i2 = parseInt((_a = path.node.getAttribute("index")) != null ? _a : "", 10);
|
|
11141
|
-
const
|
|
11142
|
-
if (isNaN(i2) || isNaN(
|
|
11229
|
+
const j2 = parseInt((_b = path.node.getAttribute("j")) != null ? _b : "", 10);
|
|
11230
|
+
if (isNaN(i2) || isNaN(j2)) return;
|
|
11143
11231
|
if (typeof w.config.chart.events.dataPointMouseEnter === "function") {
|
|
11144
11232
|
w.config.chart.events.dataPointMouseEnter(e2, this.ctx, {
|
|
11145
11233
|
seriesIndex: i2,
|
|
11146
|
-
dataPointIndex:
|
|
11234
|
+
dataPointIndex: j2,
|
|
11147
11235
|
w
|
|
11148
11236
|
});
|
|
11149
11237
|
}
|
|
11150
11238
|
Graphics._fireEvent(w, "dataPointMouseEnter", [
|
|
11151
11239
|
e2,
|
|
11152
11240
|
this.ctx,
|
|
11153
|
-
{ seriesIndex: i2, dataPointIndex:
|
|
11241
|
+
{ seriesIndex: i2, dataPointIndex: j2, w }
|
|
11154
11242
|
]);
|
|
11155
11243
|
if (w.config.states.active.filter.type !== "none") {
|
|
11156
11244
|
if (path.node.getAttribute("selected") === "true") {
|
|
@@ -11174,19 +11262,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11174
11262
|
const w = this.w;
|
|
11175
11263
|
const filters = new Filters(this.w);
|
|
11176
11264
|
const i2 = parseInt((_a = path.node.getAttribute("index")) != null ? _a : "", 10);
|
|
11177
|
-
const
|
|
11178
|
-
if (isNaN(i2) || isNaN(
|
|
11265
|
+
const j2 = parseInt((_b = path.node.getAttribute("j")) != null ? _b : "", 10);
|
|
11266
|
+
if (isNaN(i2) || isNaN(j2)) return;
|
|
11179
11267
|
if (typeof w.config.chart.events.dataPointMouseLeave === "function") {
|
|
11180
11268
|
w.config.chart.events.dataPointMouseLeave(e2, this.ctx, {
|
|
11181
11269
|
seriesIndex: i2,
|
|
11182
|
-
dataPointIndex:
|
|
11270
|
+
dataPointIndex: j2,
|
|
11183
11271
|
w
|
|
11184
11272
|
});
|
|
11185
11273
|
}
|
|
11186
11274
|
Graphics._fireEvent(w, "dataPointMouseLeave", [
|
|
11187
11275
|
e2,
|
|
11188
11276
|
this.ctx,
|
|
11189
|
-
{ seriesIndex: i2, dataPointIndex:
|
|
11277
|
+
{ seriesIndex: i2, dataPointIndex: j2, w }
|
|
11190
11278
|
]);
|
|
11191
11279
|
if (w.config.states.active.filter.type !== "none") {
|
|
11192
11280
|
if (path.node.getAttribute("selected") === "true") {
|
|
@@ -11230,11 +11318,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11230
11318
|
* @param {any} path @param {any} filters @param {number} i @param {number} j
|
|
11231
11319
|
* @returns {'true' | 'false'}
|
|
11232
11320
|
*/
|
|
11233
|
-
_togglePointSelection(path, filters, i2,
|
|
11321
|
+
_togglePointSelection(path, filters, i2, j2) {
|
|
11234
11322
|
const w = this.w;
|
|
11235
11323
|
if (path.node.getAttribute("selected") === "true") {
|
|
11236
11324
|
path.node.setAttribute("selected", "false");
|
|
11237
|
-
const index = w.interact.selectedDataPoints[i2].indexOf(
|
|
11325
|
+
const index = w.interact.selectedDataPoints[i2].indexOf(j2);
|
|
11238
11326
|
if (index > -1) {
|
|
11239
11327
|
w.interact.selectedDataPoints[i2].splice(index, 1);
|
|
11240
11328
|
}
|
|
@@ -11247,7 +11335,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11247
11335
|
if (typeof w.interact.selectedDataPoints[i2] === "undefined") {
|
|
11248
11336
|
w.interact.selectedDataPoints[i2] = [];
|
|
11249
11337
|
}
|
|
11250
|
-
w.interact.selectedDataPoints[i2].push(
|
|
11338
|
+
w.interact.selectedDataPoints[i2].push(j2);
|
|
11251
11339
|
return "true";
|
|
11252
11340
|
}
|
|
11253
11341
|
/**
|
|
@@ -11291,19 +11379,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11291
11379
|
const w = this.w;
|
|
11292
11380
|
const filters = new Filters(this.w);
|
|
11293
11381
|
const i2 = parseInt((_a = path.node.getAttribute("index")) != null ? _a : "", 10);
|
|
11294
|
-
const
|
|
11295
|
-
if (isNaN(i2) || isNaN(
|
|
11382
|
+
const j2 = parseInt((_b = path.node.getAttribute("j")) != null ? _b : "", 10);
|
|
11383
|
+
if (isNaN(i2) || isNaN(j2)) return;
|
|
11296
11384
|
const link = w.config.chart.link;
|
|
11297
11385
|
const crossfilterClick = !!(link && (typeof link.dimension === "function" || link.enabled));
|
|
11298
11386
|
if (!crossfilterClick) {
|
|
11299
|
-
const selected = this._togglePointSelection(path, filters, i2,
|
|
11387
|
+
const selected = this._togglePointSelection(path, filters, i2, j2);
|
|
11300
11388
|
this._applyPointSelectionFilter(path, filters, i2, selected);
|
|
11301
11389
|
}
|
|
11302
11390
|
if (typeof w.config.chart.events.dataPointSelection === "function") {
|
|
11303
11391
|
w.config.chart.events.dataPointSelection(e2, this.ctx, {
|
|
11304
11392
|
selectedDataPoints: w.interact.selectedDataPoints,
|
|
11305
11393
|
seriesIndex: i2,
|
|
11306
|
-
dataPointIndex:
|
|
11394
|
+
dataPointIndex: j2,
|
|
11307
11395
|
w
|
|
11308
11396
|
});
|
|
11309
11397
|
}
|
|
@@ -11314,7 +11402,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
11314
11402
|
{
|
|
11315
11403
|
selectedDataPoints: w.interact.selectedDataPoints,
|
|
11316
11404
|
seriesIndex: i2,
|
|
11317
|
-
dataPointIndex:
|
|
11405
|
+
dataPointIndex: j2,
|
|
11318
11406
|
w
|
|
11319
11407
|
}
|
|
11320
11408
|
]);
|
|
@@ -12066,9 +12154,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12066
12154
|
/** @type {Record<string, any>} */
|
|
12067
12155
|
(_e = w.config.series[i2]) == null ? void 0 : _e.data
|
|
12068
12156
|
);
|
|
12069
|
-
for (let
|
|
12070
|
-
if (series[i2][
|
|
12071
|
-
const d = Array.isArray(data) ? data[
|
|
12157
|
+
for (let j2 = 0; j2 < series[i2].length; j2++) {
|
|
12158
|
+
if (series[i2][j2] === null) hasNull = true;
|
|
12159
|
+
const d = Array.isArray(data) ? data[j2] : null;
|
|
12072
12160
|
if (d && (d.fillColor || d.strokeColor)) {
|
|
12073
12161
|
perPointStyle = true;
|
|
12074
12162
|
break;
|
|
@@ -12106,7 +12194,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12106
12194
|
plotChartMarkers({
|
|
12107
12195
|
pointsPos,
|
|
12108
12196
|
seriesIndex,
|
|
12109
|
-
j,
|
|
12197
|
+
j: j2,
|
|
12110
12198
|
pSize,
|
|
12111
12199
|
alwaysDrawMarker = false,
|
|
12112
12200
|
isVirtualPoint = false
|
|
@@ -12121,13 +12209,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12121
12209
|
if (Array.isArray(p.x)) {
|
|
12122
12210
|
for (let q = 0; q < p.x.length; q++) {
|
|
12123
12211
|
let markerElement;
|
|
12124
|
-
let dataPointIndex =
|
|
12212
|
+
let dataPointIndex = j2;
|
|
12125
12213
|
let invalidMarker = !Utils$1.isNumber(p.y[q]);
|
|
12126
|
-
if (w.globals.markers.largestSize === 0 && w.globals.hasNullValues && w.seriesData.series[i2][
|
|
12214
|
+
if (w.globals.markers.largestSize === 0 && w.globals.hasNullValues && w.seriesData.series[i2][j2 + 1] !== null && !isVirtualPoint) {
|
|
12127
12215
|
invalidMarker = true;
|
|
12128
12216
|
}
|
|
12129
|
-
if (
|
|
12130
|
-
if (
|
|
12217
|
+
if (j2 === 1 && q === 0) dataPointIndex = 0;
|
|
12218
|
+
if (j2 === 1 && q === 1) dataPointIndex = 1;
|
|
12131
12219
|
let markerClasses = "apexcharts-marker";
|
|
12132
12220
|
if (Markers.markersAreInert(w)) {
|
|
12133
12221
|
markerClasses += " no-pointer-events";
|
|
@@ -12432,7 +12520,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12432
12520
|
* @param {number} j
|
|
12433
12521
|
* @param {Record<string, any>} opts
|
|
12434
12522
|
*/
|
|
12435
|
-
draw(elSeries,
|
|
12523
|
+
draw(elSeries, j2, opts) {
|
|
12436
12524
|
const w = this.w;
|
|
12437
12525
|
const graphics = this.graphics;
|
|
12438
12526
|
const emit = seriesEmitter(this.ctx, graphics);
|
|
@@ -12457,10 +12545,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12457
12545
|
}
|
|
12458
12546
|
if (Array.isArray(pointsPos.x)) {
|
|
12459
12547
|
for (let q = 0; q < pointsPos.x.length; q++) {
|
|
12460
|
-
let dataPointIndex =
|
|
12548
|
+
let dataPointIndex = j2 + 1;
|
|
12461
12549
|
let shouldDraw = true;
|
|
12462
|
-
if (
|
|
12463
|
-
if (
|
|
12550
|
+
if (j2 === 0 && q === 0) dataPointIndex = 0;
|
|
12551
|
+
if (j2 === 0 && q === 1) dataPointIndex = 1;
|
|
12464
12552
|
let radius = w.globals.markers.size[realIndex];
|
|
12465
12553
|
if (zRatio !== Infinity) {
|
|
12466
12554
|
const bubble = w.config.plotOptions.bubble;
|
|
@@ -12488,7 +12576,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12488
12576
|
radius,
|
|
12489
12577
|
realIndex,
|
|
12490
12578
|
dataPointIndex,
|
|
12491
|
-
|
|
12579
|
+
j2
|
|
12492
12580
|
);
|
|
12493
12581
|
elPointsWrap.add(point);
|
|
12494
12582
|
if (emit.kind === "canvas") {
|
|
@@ -12539,7 +12627,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12539
12627
|
* @param {number} dataPointIndex
|
|
12540
12628
|
* @param {number} j
|
|
12541
12629
|
*/
|
|
12542
|
-
drawPoint(x, y, radius, realIndex, dataPointIndex,
|
|
12630
|
+
drawPoint(x, y, radius, realIndex, dataPointIndex, j2) {
|
|
12543
12631
|
var _a;
|
|
12544
12632
|
const w = this.w;
|
|
12545
12633
|
const i2 = realIndex;
|
|
@@ -12592,7 +12680,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12592
12680
|
dataPointIndex,
|
|
12593
12681
|
color: markerConfig.pointFillColor,
|
|
12594
12682
|
patternUnits: "objectBoundingBox",
|
|
12595
|
-
value: w.seriesData.series[realIndex][
|
|
12683
|
+
value: w.seriesData.series[realIndex][j2]
|
|
12596
12684
|
});
|
|
12597
12685
|
if (ps.fillCacheable === void 0) {
|
|
12598
12686
|
ps.fillCacheable = ps.canCacheConfig && fill.getFillType(realIndex) === "solid" && typeof markerConfig.pointFillColor === "string" && !!markerConfig.pointFillColor;
|
|
@@ -12746,13 +12834,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12746
12834
|
};
|
|
12747
12835
|
}
|
|
12748
12836
|
/** @param {{type: any, pos: any, i: any, j: any, isRangeStart: any, strokeWidth?: any}} opts */
|
|
12749
|
-
drawDataLabel({ type, pos, i: i2, j, isRangeStart, strokeWidth = 2 }) {
|
|
12837
|
+
drawDataLabel({ type, pos, i: i2, j: j2, isRangeStart, strokeWidth = 2 }) {
|
|
12750
12838
|
const w = this.w;
|
|
12751
12839
|
const graphics = new Graphics(this.w);
|
|
12752
12840
|
const dataLabelsConfig = w.config.dataLabels;
|
|
12753
12841
|
let x = 0;
|
|
12754
12842
|
let y = 0;
|
|
12755
|
-
let dataPointIndex =
|
|
12843
|
+
let dataPointIndex = j2;
|
|
12756
12844
|
let elDataLabelsWrap = null;
|
|
12757
12845
|
const seriesCollapsed = w.globals.collapsedSeriesIndices.indexOf(i2) !== -1;
|
|
12758
12846
|
if (seriesCollapsed || !dataLabelsConfig.enabled || !Array.isArray(pos.x)) {
|
|
@@ -12762,8 +12850,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12762
12850
|
class: "apexcharts-data-labels"
|
|
12763
12851
|
});
|
|
12764
12852
|
for (let q = 0; q < pos.x.length; q++) {
|
|
12765
|
-
if (
|
|
12766
|
-
if (
|
|
12853
|
+
if (j2 === 1 && q === 0) dataPointIndex = 0;
|
|
12854
|
+
if (j2 === 1 && q === 1) dataPointIndex = 1;
|
|
12767
12855
|
x = pos.x[q] + resolveDataLabelOffset(dataLabelsConfig.offsetX, w, i2, dataPointIndex);
|
|
12768
12856
|
y = pos.y[q] + resolveDataLabelOffset(dataLabelsConfig.offsetY, w, i2, dataPointIndex) + strokeWidth;
|
|
12769
12857
|
if (!isNaN(x)) {
|
|
@@ -12835,7 +12923,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12835
12923
|
x,
|
|
12836
12924
|
y,
|
|
12837
12925
|
i: i2,
|
|
12838
|
-
j,
|
|
12926
|
+
j: j2,
|
|
12839
12927
|
text,
|
|
12840
12928
|
textAnchor,
|
|
12841
12929
|
fontSize,
|
|
@@ -12848,13 +12936,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12848
12936
|
// some callers (radar) reuse `j` for something other than the data point
|
|
12849
12937
|
// index, so per-point offsets take these explicit indices when supplied
|
|
12850
12938
|
seriesIndex = i2,
|
|
12851
|
-
dataPointIndex =
|
|
12939
|
+
dataPointIndex = j2
|
|
12852
12940
|
} = opts;
|
|
12853
12941
|
let dataLabelText = null;
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12942
|
+
const labelsOn = resolveClaimed(
|
|
12943
|
+
w,
|
|
12944
|
+
"dataLabels.enabledOnSeries",
|
|
12945
|
+
i2,
|
|
12946
|
+
Array.isArray(w.config.dataLabels.enabledOnSeries) ? w.config.dataLabels.enabledOnSeries.indexOf(i2) >= 0 : true
|
|
12947
|
+
);
|
|
12948
|
+
if (!labelsOn) {
|
|
12949
|
+
return dataLabelText;
|
|
12858
12950
|
}
|
|
12859
12951
|
let correctedLabels = {
|
|
12860
12952
|
x,
|
|
@@ -12868,7 +12960,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12868
12960
|
y,
|
|
12869
12961
|
text,
|
|
12870
12962
|
i2,
|
|
12871
|
-
|
|
12963
|
+
j2,
|
|
12872
12964
|
alwaysDrawDataLabel,
|
|
12873
12965
|
parseInt(
|
|
12874
12966
|
/** @type {any} */
|
|
@@ -12891,14 +12983,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12891
12983
|
}
|
|
12892
12984
|
let dataLabelColor = w.globals.dataLabels.style.colors[i2];
|
|
12893
12985
|
if ((w.config.chart.type === "bar" || w.config.chart.type === "rangeBar") && w.config.plotOptions.bar.distributed || w.config.dataLabels.distributed) {
|
|
12894
|
-
dataLabelColor = w.globals.dataLabels.style.colors[
|
|
12986
|
+
dataLabelColor = w.globals.dataLabels.style.colors[j2];
|
|
12895
12987
|
}
|
|
12896
12988
|
if (typeof dataLabelColor === "function") {
|
|
12897
12989
|
dataLabelColor = /** @type {any} */
|
|
12898
12990
|
dataLabelColor({
|
|
12899
12991
|
series: w.seriesData.series,
|
|
12900
12992
|
seriesIndex: i2,
|
|
12901
|
-
dataPointIndex:
|
|
12993
|
+
dataPointIndex: j2,
|
|
12902
12994
|
w
|
|
12903
12995
|
});
|
|
12904
12996
|
}
|
|
@@ -12921,10 +13013,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12921
13013
|
let offX = resolvedOffX;
|
|
12922
13014
|
const offY = resolvedOffY;
|
|
12923
13015
|
if (w.globals.isSlopeChart) {
|
|
12924
|
-
if (
|
|
13016
|
+
if (j2 !== 0) {
|
|
12925
13017
|
offX = resolvedOffX * -2 + 5;
|
|
12926
13018
|
}
|
|
12927
|
-
if (
|
|
13019
|
+
if (j2 !== 0 && j2 !== /** @type {Record<string,any>} */
|
|
12928
13020
|
w.config.series[i2].data.length - 1) {
|
|
12929
13021
|
offX = 0;
|
|
12930
13022
|
}
|
|
@@ -12960,7 +13052,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
12960
13052
|
if (typeof w.globals.lastDrawnDataLabelsIndexes[i2] === "undefined") {
|
|
12961
13053
|
w.globals.lastDrawnDataLabelsIndexes[i2] = [];
|
|
12962
13054
|
}
|
|
12963
|
-
w.globals.lastDrawnDataLabelsIndexes[i2].push(
|
|
13055
|
+
w.globals.lastDrawnDataLabelsIndexes[i2].push(j2);
|
|
12964
13056
|
}
|
|
12965
13057
|
return dataLabelText;
|
|
12966
13058
|
}
|
|
@@ -14867,14 +14959,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
14867
14959
|
/** @type {Record<string,any>} */
|
|
14868
14960
|
cnf.series[si].group === gn
|
|
14869
14961
|
) {
|
|
14870
|
-
for (let
|
|
14871
|
-
const val = this.w.seriesData.series[si][
|
|
14962
|
+
for (let j2 = 0; j2 < this.w.seriesData.series[si].length; j2++) {
|
|
14963
|
+
const val = this.w.seriesData.series[si][j2];
|
|
14872
14964
|
if (val >= 0) {
|
|
14873
|
-
posSeries[gni][
|
|
14965
|
+
posSeries[gni][j2] += val;
|
|
14874
14966
|
} else {
|
|
14875
|
-
negSeries[gni][
|
|
14967
|
+
negSeries[gni][j2] += val;
|
|
14876
14968
|
}
|
|
14877
|
-
sumSeries[gni][
|
|
14969
|
+
sumSeries[gni][j2] += val;
|
|
14878
14970
|
lowestY = Math.min(lowestY, val);
|
|
14879
14971
|
highestY = Math.max(highestY, val);
|
|
14880
14972
|
}
|
|
@@ -15201,8 +15293,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15201
15293
|
} else {
|
|
15202
15294
|
let yDec = gl.yValueDecimal;
|
|
15203
15295
|
let hasNulls = false;
|
|
15204
|
-
for (let
|
|
15205
|
-
const val = arr[
|
|
15296
|
+
for (let j2 = firstXIndex; j2 <= jEnd; j2++) {
|
|
15297
|
+
const val = arr[j2];
|
|
15206
15298
|
if (val !== null && typeof val === "number" && val === val && val !== Infinity && val !== -Infinity) {
|
|
15207
15299
|
if (val > maxY) maxY = val;
|
|
15208
15300
|
if (val < lowestY) lowestY = val;
|
|
@@ -15241,58 +15333,58 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15241
15333
|
}
|
|
15242
15334
|
continue;
|
|
15243
15335
|
}
|
|
15244
|
-
for (let
|
|
15245
|
-
let val = series[i2][
|
|
15336
|
+
for (let j2 = firstXIndex; j2 <= lastXIndex && j2 < this.w.seriesData.series[i2].length; j2++) {
|
|
15337
|
+
let val = series[i2][j2];
|
|
15246
15338
|
if (val !== null && Utils$1.isNumber(val)) {
|
|
15247
|
-
if (typeof ((_b = seriesMax[i2]) == null ? void 0 : _b[
|
|
15248
|
-
maxY = Math.max(maxY, seriesMax[i2][
|
|
15249
|
-
lowestY = Math.min(lowestY, seriesMax[i2][
|
|
15339
|
+
if (typeof ((_b = seriesMax[i2]) == null ? void 0 : _b[j2]) !== "undefined") {
|
|
15340
|
+
maxY = Math.max(maxY, seriesMax[i2][j2]);
|
|
15341
|
+
lowestY = Math.min(lowestY, seriesMax[i2][j2]);
|
|
15250
15342
|
}
|
|
15251
|
-
if (typeof ((_c = seriesMin[i2]) == null ? void 0 : _c[
|
|
15252
|
-
lowestY = Math.min(lowestY, seriesMin[i2][
|
|
15253
|
-
highestY = Math.max(highestY, seriesMin[i2][
|
|
15343
|
+
if (typeof ((_c = seriesMin[i2]) == null ? void 0 : _c[j2]) !== "undefined") {
|
|
15344
|
+
lowestY = Math.min(lowestY, seriesMin[i2][j2]);
|
|
15345
|
+
highestY = Math.max(highestY, seriesMin[i2][j2]);
|
|
15254
15346
|
}
|
|
15255
15347
|
switch (seriesType) {
|
|
15256
15348
|
case "candlestick":
|
|
15257
15349
|
{
|
|
15258
|
-
if (typeof this.w.candleData.seriesCandleC[i2][
|
|
15259
|
-
maxY = Math.max(maxY, this.w.candleData.seriesCandleH[i2][
|
|
15350
|
+
if (typeof this.w.candleData.seriesCandleC[i2][j2] !== "undefined") {
|
|
15351
|
+
maxY = Math.max(maxY, this.w.candleData.seriesCandleH[i2][j2]);
|
|
15260
15352
|
lowestY = Math.min(
|
|
15261
15353
|
lowestY,
|
|
15262
|
-
this.w.candleData.seriesCandleL[i2][
|
|
15354
|
+
this.w.candleData.seriesCandleL[i2][j2]
|
|
15263
15355
|
);
|
|
15264
15356
|
}
|
|
15265
15357
|
}
|
|
15266
15358
|
break;
|
|
15267
15359
|
case "boxPlot":
|
|
15268
15360
|
{
|
|
15269
|
-
if (typeof this.w.candleData.seriesCandleC[i2][
|
|
15270
|
-
maxY = Math.max(maxY, this.w.candleData.seriesCandleC[i2][
|
|
15361
|
+
if (typeof this.w.candleData.seriesCandleC[i2][j2] !== "undefined") {
|
|
15362
|
+
maxY = Math.max(maxY, this.w.candleData.seriesCandleC[i2][j2]);
|
|
15271
15363
|
lowestY = Math.min(
|
|
15272
15364
|
lowestY,
|
|
15273
|
-
this.w.candleData.seriesCandleO[i2][
|
|
15365
|
+
this.w.candleData.seriesCandleO[i2][j2]
|
|
15274
15366
|
);
|
|
15275
15367
|
}
|
|
15276
15368
|
}
|
|
15277
15369
|
break;
|
|
15278
15370
|
case "violin":
|
|
15279
15371
|
{
|
|
15280
|
-
if (typeof ((_d = this.w.violinData.seriesViolinMax[i2]) == null ? void 0 : _d[
|
|
15281
|
-
maxY = Math.max(maxY, this.w.violinData.seriesViolinMax[i2][
|
|
15372
|
+
if (typeof ((_d = this.w.violinData.seriesViolinMax[i2]) == null ? void 0 : _d[j2]) !== "undefined") {
|
|
15373
|
+
maxY = Math.max(maxY, this.w.violinData.seriesViolinMax[i2][j2]);
|
|
15282
15374
|
lowestY = Math.min(
|
|
15283
15375
|
lowestY,
|
|
15284
|
-
this.w.violinData.seriesViolinMin[i2][
|
|
15376
|
+
this.w.violinData.seriesViolinMin[i2][j2]
|
|
15285
15377
|
);
|
|
15286
15378
|
}
|
|
15287
15379
|
}
|
|
15288
15380
|
break;
|
|
15289
15381
|
}
|
|
15290
15382
|
if (seriesType && seriesType !== "candlestick" && seriesType !== "boxPlot" && seriesType !== "violin" && seriesType !== "rangeArea" && seriesType !== "rangeBar") {
|
|
15291
|
-
maxY = Math.max(maxY, this.w.seriesData.series[i2][
|
|
15292
|
-
lowestY = Math.min(lowestY, this.w.seriesData.series[i2][
|
|
15383
|
+
maxY = Math.max(maxY, this.w.seriesData.series[i2][j2]);
|
|
15384
|
+
lowestY = Math.min(lowestY, this.w.seriesData.series[i2][j2]);
|
|
15293
15385
|
}
|
|
15294
|
-
if (this.w.seriesData.seriesGoals[i2] && this.w.seriesData.seriesGoals[i2][
|
|
15295
|
-
this.w.seriesData.seriesGoals[i2][
|
|
15386
|
+
if (this.w.seriesData.seriesGoals[i2] && this.w.seriesData.seriesGoals[i2][j2] && Array.isArray(this.w.seriesData.seriesGoals[i2][j2])) {
|
|
15387
|
+
this.w.seriesData.seriesGoals[i2][j2].forEach(
|
|
15296
15388
|
(g) => {
|
|
15297
15389
|
maxY = Math.max(maxY, g.value);
|
|
15298
15390
|
lowestY = Math.min(lowestY, g.value);
|
|
@@ -15300,7 +15392,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15300
15392
|
);
|
|
15301
15393
|
}
|
|
15302
15394
|
if (this.w.config.chart.type === "boxPlot" || seriesType === "boxPlot") {
|
|
15303
|
-
const boxPts = (_f = (_e = this.w.candleData.seriesBoxPoints) == null ? void 0 : _e[i2]) == null ? void 0 : _f[
|
|
15395
|
+
const boxPts = (_f = (_e = this.w.candleData.seriesBoxPoints) == null ? void 0 : _e[i2]) == null ? void 0 : _f[j2];
|
|
15304
15396
|
if (boxPts) {
|
|
15305
15397
|
for (let p = 0; p < boxPts.length; p++) {
|
|
15306
15398
|
const pv = boxPts[p];
|
|
@@ -15319,8 +15411,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15319
15411
|
val.toString().split(".")[1].length
|
|
15320
15412
|
);
|
|
15321
15413
|
}
|
|
15322
|
-
if (minY > ((_g = seriesMin[i2]) == null ? void 0 : _g[
|
|
15323
|
-
minY = seriesMin[i2][
|
|
15414
|
+
if (minY > ((_g = seriesMin[i2]) == null ? void 0 : _g[j2]) && ((_h = seriesMin[i2]) == null ? void 0 : _h[j2]) < 0) {
|
|
15415
|
+
minY = seriesMin[i2][j2];
|
|
15324
15416
|
}
|
|
15325
15417
|
} else {
|
|
15326
15418
|
gl.hasNullValues = true;
|
|
@@ -15501,8 +15593,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15501
15593
|
if (pe.minX < minX) minX = pe.minX;
|
|
15502
15594
|
continue;
|
|
15503
15595
|
}
|
|
15504
|
-
for (let
|
|
15505
|
-
const v = lbls[
|
|
15596
|
+
for (let j2 = 0; j2 < lbls.length; j2++) {
|
|
15597
|
+
const v = lbls[j2];
|
|
15506
15598
|
if (v !== null && typeof v === "number" && v === v) {
|
|
15507
15599
|
if (v > maxX) maxX = v;
|
|
15508
15600
|
if (v < minX) minX = v;
|
|
@@ -15531,7 +15623,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15531
15623
|
let ticks = 10;
|
|
15532
15624
|
if (cnf.xaxis.tickAmount === void 0) {
|
|
15533
15625
|
ticks = Math.round(gl.svgWidth / 150);
|
|
15534
|
-
|
|
15626
|
+
const inferredNumericX = this.w.axisFlags.isXNumeric && this.w.axisFlags.dataFormatXNumeric && cnf.xaxis.type !== "datetime" && !cnf.xaxis.convertedCatToNumeric && !gl.isBarHorizontal;
|
|
15627
|
+
const fontSize = parseFloat(cnf.xaxis.labels.style.fontSize) || 12;
|
|
15628
|
+
const widestLabelLength = this.w.labelData.labels.reduce(
|
|
15629
|
+
(widest, seriesLabels) => Array.isArray(seriesLabels) ? seriesLabels.reduce(
|
|
15630
|
+
(seriesWidest, label) => Math.max(seriesWidest, String(label).length),
|
|
15631
|
+
widest
|
|
15632
|
+
) : widest,
|
|
15633
|
+
0
|
|
15634
|
+
);
|
|
15635
|
+
const allPointLabelsFit = gl.dataPoints * widestLabelLength * fontSize * 0.6 <= gl.svgWidth;
|
|
15636
|
+
if ((cnf.xaxis.type === "numeric" || inferredNumericX && allPointLabelsFit) && gl.dataPoints < 30) {
|
|
15535
15637
|
ticks = gl.dataPoints - 1;
|
|
15536
15638
|
}
|
|
15537
15639
|
if (ticks > gl.dataPoints && gl.dataPoints !== 0) {
|
|
@@ -15615,10 +15717,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15615
15717
|
if (!this.w.axisFlags.isDataXYZ) return;
|
|
15616
15718
|
for (let i2 = 0; i2 < this.w.seriesData.series.length; i2++) {
|
|
15617
15719
|
if (typeof this.w.seriesData.seriesZ[i2] !== "undefined") {
|
|
15618
|
-
for (let
|
|
15619
|
-
if (this.w.seriesData.seriesZ[i2][
|
|
15620
|
-
gl.maxZ = Math.max(gl.maxZ, this.w.seriesData.seriesZ[i2][
|
|
15621
|
-
gl.minZ = Math.min(gl.minZ, this.w.seriesData.seriesZ[i2][
|
|
15720
|
+
for (let j2 = 0; j2 < this.w.seriesData.seriesZ[i2].length; j2++) {
|
|
15721
|
+
if (this.w.seriesData.seriesZ[i2][j2] !== null && Utils$1.isNumber(this.w.seriesData.seriesZ[i2][j2])) {
|
|
15722
|
+
gl.maxZ = Math.max(gl.maxZ, this.w.seriesData.seriesZ[i2][j2]);
|
|
15723
|
+
gl.minZ = Math.min(gl.minZ, this.w.seriesData.seriesZ[i2][j2]);
|
|
15622
15724
|
}
|
|
15623
15725
|
}
|
|
15624
15726
|
}
|
|
@@ -15680,8 +15782,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15680
15782
|
}
|
|
15681
15783
|
let presorted = true;
|
|
15682
15784
|
let minDiff = gl.minXDiff;
|
|
15683
|
-
for (let
|
|
15684
|
-
const d = sX[
|
|
15785
|
+
for (let j2 = 1; j2 < sX.length; j2++) {
|
|
15786
|
+
const d = sX[j2] - sX[j2 - 1];
|
|
15685
15787
|
if (d > 0) {
|
|
15686
15788
|
if (d < minDiff) minDiff = d;
|
|
15687
15789
|
} else if (d < 0) {
|
|
@@ -15698,9 +15800,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15698
15800
|
}
|
|
15699
15801
|
const seriesX = sX.slice();
|
|
15700
15802
|
seriesX.sort((a2, b) => a2 - b);
|
|
15701
|
-
seriesX.forEach((s2,
|
|
15702
|
-
if (
|
|
15703
|
-
const xDiff = s2 - seriesX[
|
|
15803
|
+
seriesX.forEach((s2, j2) => {
|
|
15804
|
+
if (j2 > 0) {
|
|
15805
|
+
const xDiff = s2 - seriesX[j2 - 1];
|
|
15704
15806
|
if (xDiff > 0) {
|
|
15705
15807
|
gl.minXDiff = Math.min(xDiff, gl.minXDiff);
|
|
15706
15808
|
}
|
|
@@ -15734,19 +15836,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15734
15836
|
const bounds = windowed ? this._autoScaleXBounds(i2) : null;
|
|
15735
15837
|
const xs = this.w.seriesData.seriesX[i2];
|
|
15736
15838
|
const hasX = !!(bounds && xs && xs.length);
|
|
15737
|
-
for (let
|
|
15738
|
-
if (hasX && (xs[
|
|
15739
|
-
if (typeof stackedPoss[group][
|
|
15740
|
-
stackedPoss[group][
|
|
15741
|
-
stackedNegs[group][
|
|
15839
|
+
for (let j2 = 0; j2 < this.w.seriesData.series[gl.maxValsInArrayIndex].length; j2++) {
|
|
15840
|
+
if (hasX && (xs[j2] < bounds.lo || xs[j2] > bounds.hi)) continue;
|
|
15841
|
+
if (typeof stackedPoss[group][j2] === "undefined") {
|
|
15842
|
+
stackedPoss[group][j2] = 0;
|
|
15843
|
+
stackedNegs[group][j2] = 0;
|
|
15742
15844
|
}
|
|
15743
15845
|
const stackSeries = this.w.config.chart.stacked && !gl.comboCharts || this.w.config.chart.stacked && gl.comboCharts && (!this.w.config.chart.stackOnlyBar || /** @type {Record<string,any>} */
|
|
15744
15846
|
((_b = (_a = this.w.config.series) == null ? void 0 : _a[i2]) == null ? void 0 : _b.type) === "bar" || /** @type {Record<string,any>} */
|
|
15745
15847
|
((_d = (_c = this.w.config.series) == null ? void 0 : _c[i2]) == null ? void 0 : _d.type) === "column");
|
|
15746
15848
|
if (stackSeries) {
|
|
15747
|
-
if (this.w.seriesData.series[i2][
|
|
15748
|
-
this.w.seriesData.series[i2][
|
|
15749
|
-
String(this.w.seriesData.series[i2][
|
|
15849
|
+
if (this.w.seriesData.series[i2][j2] !== null && Utils$1.isNumber(this.w.seriesData.series[i2][j2])) {
|
|
15850
|
+
this.w.seriesData.series[i2][j2] > 0 ? stackedPoss[group][j2] += parseFloat(String(this.w.seriesData.series[i2][j2])) + 1e-4 : stackedNegs[group][j2] += parseFloat(
|
|
15851
|
+
String(this.w.seriesData.series[i2][j2])
|
|
15750
15852
|
);
|
|
15751
15853
|
}
|
|
15752
15854
|
}
|
|
@@ -16226,42 +16328,30 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16226
16328
|
}
|
|
16227
16329
|
setYAxisTextAlignments() {
|
|
16228
16330
|
const w = this.w;
|
|
16229
|
-
|
|
16230
|
-
w.dom.baseEl.getElementsByClassName("apexcharts-yaxis")
|
|
16231
|
-
);
|
|
16232
|
-
yaxis.forEach((y, index) => {
|
|
16233
|
-
const yaxe = w.config.yaxis[index];
|
|
16331
|
+
w.config.yaxis.forEach((yaxe, index) => {
|
|
16234
16332
|
if (yaxe && !yaxe.floating && yaxe.labels.align !== void 0) {
|
|
16235
16333
|
const yAxisInner = w.dom.baseEl.querySelector(
|
|
16236
16334
|
`.apexcharts-yaxis[rel='${index}'] .apexcharts-yaxis-texts-g`
|
|
16237
16335
|
);
|
|
16336
|
+
if (!yAxisInner) return;
|
|
16238
16337
|
const yAxisTexts = Array.from(
|
|
16239
16338
|
w.dom.baseEl.querySelectorAll(
|
|
16240
16339
|
`.apexcharts-yaxis[rel='${index}'] .apexcharts-yaxis-label`
|
|
16241
16340
|
)
|
|
16242
16341
|
);
|
|
16243
|
-
const rect = (
|
|
16244
|
-
/** @type {Element} */
|
|
16245
|
-
yAxisInner.getBoundingClientRect()
|
|
16246
|
-
);
|
|
16342
|
+
const rect = yAxisInner.getBoundingClientRect();
|
|
16247
16343
|
yAxisTexts.forEach((label) => {
|
|
16248
16344
|
label.setAttribute("text-anchor", yaxe.labels.align);
|
|
16249
16345
|
});
|
|
16250
16346
|
if (yaxe.labels.align === "left" && !yaxe.opposite) {
|
|
16251
|
-
yAxisInner.setAttribute(
|
|
16252
|
-
"transform",
|
|
16253
|
-
`translate(-${rect.width}, 0)`
|
|
16254
|
-
);
|
|
16347
|
+
yAxisInner.setAttribute("transform", `translate(-${rect.width}, 0)`);
|
|
16255
16348
|
} else if (yaxe.labels.align === "center") {
|
|
16256
16349
|
yAxisInner.setAttribute(
|
|
16257
16350
|
"transform",
|
|
16258
16351
|
`translate(${rect.width / 2 * (!yaxe.opposite ? -1 : 1)}, 0)`
|
|
16259
16352
|
);
|
|
16260
16353
|
} else if (yaxe.labels.align === "right" && yaxe.opposite) {
|
|
16261
|
-
yAxisInner.setAttribute(
|
|
16262
|
-
"transform",
|
|
16263
|
-
`translate(${rect.width}, 0)`
|
|
16264
|
-
);
|
|
16354
|
+
yAxisInner.setAttribute("transform", `translate(${rect.width}, 0)`);
|
|
16265
16355
|
}
|
|
16266
16356
|
}
|
|
16267
16357
|
});
|
|
@@ -16699,15 +16789,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16699
16789
|
w.dom.baseEl.querySelectorAll(".apexcharts-marker").forEach((node) => {
|
|
16700
16790
|
var _a2, _b2, _c2, _d, _e;
|
|
16701
16791
|
const ri = parseInt((_a2 = node.getAttribute("index")) != null ? _a2 : "", 10);
|
|
16702
|
-
const
|
|
16792
|
+
const j2 = parseInt(
|
|
16703
16793
|
(_c2 = (_b2 = node.getAttribute("j")) != null ? _b2 : node.getAttribute("rel")) != null ? _c2 : "",
|
|
16704
16794
|
10
|
|
16705
16795
|
);
|
|
16706
16796
|
const r2 = parseFloat(
|
|
16707
16797
|
(_e = (_d = node.getAttribute("r")) != null ? _d : node.getAttribute("default-marker-size")) != null ? _e : ""
|
|
16708
16798
|
);
|
|
16709
|
-
if (isFinite(ri) && isFinite(
|
|
16710
|
-
(rPixels[ri] = rPixels[ri] || [])[
|
|
16799
|
+
if (isFinite(ri) && isFinite(j2) && isFinite(r2)) {
|
|
16800
|
+
(rPixels[ri] = rPixels[ri] || [])[j2] = r2;
|
|
16711
16801
|
}
|
|
16712
16802
|
});
|
|
16713
16803
|
}
|
|
@@ -16762,29 +16852,29 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16762
16852
|
if (largeThreshold > 0 && w.globals.dataPoints > largeThreshold) return false;
|
|
16763
16853
|
return !!(Environment.isBrowser() && w.globals.dataChanged && w.globals.shouldAnimate);
|
|
16764
16854
|
}
|
|
16765
|
-
function datumKey(w, realIndex,
|
|
16855
|
+
function datumKey(w, realIndex, j2) {
|
|
16766
16856
|
var _a, _b, _c, _d;
|
|
16767
16857
|
if ((_a = w.axisFlags) == null ? void 0 : _a.isXNumeric) {
|
|
16768
16858
|
const sx = (_c = (_b = w.seriesData) == null ? void 0 : _b.seriesX) == null ? void 0 : _c[realIndex];
|
|
16769
|
-
if (sx && sx.length && sx[
|
|
16859
|
+
if (sx && sx.length && sx[j2] != null) return "x:" + sx[j2];
|
|
16770
16860
|
}
|
|
16771
|
-
const lbl = (_d = w.globals.labels) == null ? void 0 : _d[
|
|
16861
|
+
const lbl = (_d = w.globals.labels) == null ? void 0 : _d[j2];
|
|
16772
16862
|
if (lbl != null && String(lbl) !== "") {
|
|
16773
16863
|
return "c:" + (Array.isArray(lbl) ? lbl.join(" ") : String(lbl));
|
|
16774
16864
|
}
|
|
16775
|
-
return "j:" +
|
|
16865
|
+
return "j:" + j2;
|
|
16776
16866
|
}
|
|
16777
|
-
function frameDatumKey(frame, realIndex,
|
|
16867
|
+
function frameDatumKey(frame, realIndex, j2) {
|
|
16778
16868
|
var _a, _b;
|
|
16779
16869
|
if (frame.isXNumeric) {
|
|
16780
16870
|
const sx = (_a = frame.seriesX) == null ? void 0 : _a[realIndex];
|
|
16781
|
-
if (sx && sx.length && sx[
|
|
16871
|
+
if (sx && sx.length && sx[j2] != null) return "x:" + sx[j2];
|
|
16782
16872
|
}
|
|
16783
|
-
const lbl = (_b = frame.labels) == null ? void 0 : _b[
|
|
16873
|
+
const lbl = (_b = frame.labels) == null ? void 0 : _b[j2];
|
|
16784
16874
|
if (lbl != null && String(lbl) !== "") {
|
|
16785
16875
|
return "c:" + (Array.isArray(lbl) ? lbl.join(" ") : String(lbl));
|
|
16786
16876
|
}
|
|
16787
|
-
return "j:" +
|
|
16877
|
+
return "j:" + j2;
|
|
16788
16878
|
}
|
|
16789
16879
|
function joinKeys(oldKeys, newKeys) {
|
|
16790
16880
|
const oldIndex = /* @__PURE__ */ new Map();
|
|
@@ -16830,9 +16920,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16830
16920
|
if (!Array.isArray(oldY) || !Array.isArray(newY)) return null;
|
|
16831
16921
|
if (!oldY.length || !newY.length) return null;
|
|
16832
16922
|
const oldKeys = uniquifyKeys(
|
|
16833
|
-
oldY.map((_,
|
|
16923
|
+
oldY.map((_, j2) => frameDatumKey(frame, realIndex, j2))
|
|
16834
16924
|
);
|
|
16835
|
-
const newKeys = uniquifyKeys(newY.map((_,
|
|
16925
|
+
const newKeys = uniquifyKeys(newY.map((_, j2) => datumKey(w, realIndex, j2)));
|
|
16836
16926
|
const join = joinKeys(oldKeys, newKeys);
|
|
16837
16927
|
if (!join.ordered && !allowReorder) return null;
|
|
16838
16928
|
if (!join.changed && !includeIdentity) return null;
|
|
@@ -17374,7 +17464,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17374
17464
|
}
|
|
17375
17465
|
if (countUp && old) {
|
|
17376
17466
|
const realIndex = parseInt(key, 10);
|
|
17377
|
-
const
|
|
17467
|
+
const j2 = parseInt(group.getAttribute("data:dlJ") || "", 10);
|
|
17378
17468
|
countUpText(w, {
|
|
17379
17469
|
el: textEl,
|
|
17380
17470
|
from: old.val,
|
|
@@ -17385,7 +17475,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17385
17475
|
// of `w` on every frame. Same shape the bar formatter gets.
|
|
17386
17476
|
fmtOpts: __spreadProps(__spreadValues({}, w), {
|
|
17387
17477
|
seriesIndex: realIndex,
|
|
17388
|
-
dataPointIndex: isFinite(
|
|
17478
|
+
dataPointIndex: isFinite(j2) ? j2 : 0,
|
|
17389
17479
|
w
|
|
17390
17480
|
}),
|
|
17391
17481
|
duration,
|
|
@@ -17672,20 +17762,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17672
17762
|
const nextRecords = [];
|
|
17673
17763
|
const nextIndices = [];
|
|
17674
17764
|
records.forEach((rec) => {
|
|
17675
|
-
const
|
|
17676
|
-
if (
|
|
17765
|
+
const j2 = rec && rec.name != null ? newNames.indexOf(rec.name) : rec.index;
|
|
17766
|
+
if (j2 == null || j2 < 0 || j2 >= target.length) return;
|
|
17677
17767
|
const s2 = (
|
|
17678
17768
|
/** @type {any} */
|
|
17679
|
-
target[
|
|
17769
|
+
target[j2]
|
|
17680
17770
|
);
|
|
17681
|
-
rec.index =
|
|
17771
|
+
rec.index = j2;
|
|
17682
17772
|
if (gl.axisCharts) {
|
|
17683
17773
|
if (s2 && Array.isArray(s2.data) && s2.data.length) rec.data = s2.data.slice();
|
|
17684
17774
|
} else {
|
|
17685
17775
|
rec.data = s2;
|
|
17686
17776
|
}
|
|
17687
17777
|
nextRecords.push(rec);
|
|
17688
|
-
nextIndices.push(
|
|
17778
|
+
nextIndices.push(j2);
|
|
17689
17779
|
});
|
|
17690
17780
|
return { records: nextRecords, indices: nextIndices };
|
|
17691
17781
|
};
|
|
@@ -17953,14 +18043,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17953
18043
|
),
|
|
17954
18044
|
realIndex: seriesEls[i2].getAttribute("data:realIndex")
|
|
17955
18045
|
};
|
|
17956
|
-
for (let
|
|
17957
|
-
if (paths[
|
|
17958
|
-
const d = paths[
|
|
18046
|
+
for (let j2 = 0; j2 < paths.length; j2++) {
|
|
18047
|
+
if (paths[j2].hasAttribute("pathTo")) {
|
|
18048
|
+
const d = paths[j2].getAttribute("pathTo");
|
|
17959
18049
|
dArr.paths.push({
|
|
17960
18050
|
d,
|
|
17961
|
-
key: paths[
|
|
17962
|
-
fill: paths[
|
|
17963
|
-
flip: paths[
|
|
18051
|
+
key: paths[j2].getAttribute("data:pathKey"),
|
|
18052
|
+
fill: paths[j2].getAttribute("fill"),
|
|
18053
|
+
flip: paths[j2].classList.contains("apexcharts-flip-y") || paths[j2].classList.contains("apexcharts-flip-x")
|
|
17964
18054
|
});
|
|
17965
18055
|
}
|
|
17966
18056
|
}
|
|
@@ -18071,7 +18161,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18071
18161
|
const w = this.w;
|
|
18072
18162
|
for (let sl = 0; sl < series.length; sl++) {
|
|
18073
18163
|
if (series[sl].length === 0) {
|
|
18074
|
-
for (let
|
|
18164
|
+
for (let j2 = 0; j2 < series[w.globals.maxValsInArrayIndex].length; j2++) {
|
|
18075
18165
|
series[sl].push(0);
|
|
18076
18166
|
}
|
|
18077
18167
|
}
|
|
@@ -19261,8 +19351,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19261
19351
|
if (!totals.length) return;
|
|
19262
19352
|
const formatter = totalConfig.formatter || w.config.dataLabels.formatter;
|
|
19263
19353
|
const labels = totals.map(
|
|
19264
|
-
(val,
|
|
19265
|
-
formatter ? formatter(val, __spreadProps(__spreadValues({}, w), { seriesIndex: 0, dataPointIndex:
|
|
19354
|
+
(val, j2) => String(
|
|
19355
|
+
formatter ? formatter(val, __spreadProps(__spreadValues({}, w), { seriesIndex: 0, dataPointIndex: j2, w })) : val
|
|
19266
19356
|
)
|
|
19267
19357
|
);
|
|
19268
19358
|
const graphics = new Graphics(w);
|
|
@@ -20957,7 +21047,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20957
21047
|
if (opts.keepDatum) node._datum = d;
|
|
20958
21048
|
if (isObj && Array.isArray(d.children) && d.children.length) {
|
|
20959
21049
|
node.children = d.children.map(
|
|
20960
|
-
(c,
|
|
21050
|
+
(c, j2) => toNode(w, c, j2, null, node._key, seenIds, opts)
|
|
20961
21051
|
);
|
|
20962
21052
|
} else if (isObj && d.drilldown != null && opts.expandDrilldown !== false) {
|
|
20963
21053
|
const visited = seenIds || /* @__PURE__ */ new Set();
|
|
@@ -20968,7 +21058,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20968
21058
|
nextSeen.add(d.drilldown);
|
|
20969
21059
|
const palette = Array.isArray(dd.colors) ? dd.colors : null;
|
|
20970
21060
|
node.children = dd.data.map(
|
|
20971
|
-
(c,
|
|
21061
|
+
(c, j2) => toNode(w, c, j2, palette, node._key, nextSeen, opts)
|
|
20972
21062
|
);
|
|
20973
21063
|
}
|
|
20974
21064
|
}
|
|
@@ -20992,7 +21082,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20992
21082
|
_key: key,
|
|
20993
21083
|
_seriesIndex: i2,
|
|
20994
21084
|
children: data.map(
|
|
20995
|
-
(d,
|
|
21085
|
+
(d, j2) => toNode(w, d, j2, null, key, null, opts)
|
|
20996
21086
|
)
|
|
20997
21087
|
};
|
|
20998
21088
|
return root;
|
|
@@ -21016,8 +21106,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21016
21106
|
for (let i2 = 0; i2 < series.length; i2++) {
|
|
21017
21107
|
const data = series[i2] && series[i2].data;
|
|
21018
21108
|
if (!Array.isArray(data)) continue;
|
|
21019
|
-
for (let
|
|
21020
|
-
const d = data[
|
|
21109
|
+
for (let j2 = 0; j2 < data.length; j2++) {
|
|
21110
|
+
const d = data[j2];
|
|
21021
21111
|
if (!d || typeof d !== "object") continue;
|
|
21022
21112
|
if (Array.isArray(d.children) && d.children.length) return true;
|
|
21023
21113
|
if (countDrilldown && d.drilldown != null) return true;
|
|
@@ -21174,8 +21264,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21174
21264
|
let xSorted = true;
|
|
21175
21265
|
let minXDiff = Infinity;
|
|
21176
21266
|
let prevX = NaN;
|
|
21177
|
-
for (let
|
|
21178
|
-
const point = data[
|
|
21267
|
+
for (let j2 = 0; j2 < n2; j2++) {
|
|
21268
|
+
const point = data[j2];
|
|
21179
21269
|
if (!Array.isArray(point) || point.length > 2) return false;
|
|
21180
21270
|
const x = point[0];
|
|
21181
21271
|
const y = point[1];
|
|
@@ -21223,8 +21313,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21223
21313
|
} else {
|
|
21224
21314
|
return false;
|
|
21225
21315
|
}
|
|
21226
|
-
ys[
|
|
21227
|
-
xs[
|
|
21316
|
+
ys[j2] = y;
|
|
21317
|
+
xs[j2] = x;
|
|
21228
21318
|
}
|
|
21229
21319
|
this.twoDSeries = ys;
|
|
21230
21320
|
this.twoDSeriesX = xs;
|
|
@@ -21259,8 +21349,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21259
21349
|
if (!isBoxPlot && cnf.xaxis.type !== "datetime" && this._fast2DArrayParse(data, i2)) {
|
|
21260
21350
|
return;
|
|
21261
21351
|
}
|
|
21262
|
-
for (let
|
|
21263
|
-
const point = data[
|
|
21352
|
+
for (let j2 = 0; j2 < data.length; j2++) {
|
|
21353
|
+
const point = data[j2];
|
|
21264
21354
|
const x = point[0];
|
|
21265
21355
|
const y = point[1];
|
|
21266
21356
|
const z = point[2];
|
|
@@ -21300,8 +21390,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21300
21390
|
activeI = this.activeSeriesIndex;
|
|
21301
21391
|
}
|
|
21302
21392
|
const activeData = ser[activeI].data;
|
|
21303
|
-
for (let
|
|
21304
|
-
const point = data[
|
|
21393
|
+
for (let j2 = 0; j2 < data.length; j2++) {
|
|
21394
|
+
const point = data[j2];
|
|
21305
21395
|
if (typeof point.y !== "undefined") {
|
|
21306
21396
|
const val = Array.isArray(point.y) ? Utils$1.parseNumber(point.y[point.y.length - 1]) : Utils$1.parseNumber(point.y);
|
|
21307
21397
|
this.twoDSeries.push(val);
|
|
@@ -21319,8 +21409,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21319
21409
|
this.w.axisFlags.isDataXYZ = true;
|
|
21320
21410
|
}
|
|
21321
21411
|
}
|
|
21322
|
-
for (let
|
|
21323
|
-
const point = activeData[
|
|
21412
|
+
for (let j2 = 0; j2 < activeData.length; j2++) {
|
|
21413
|
+
const point = activeData[j2];
|
|
21324
21414
|
const x = point.x;
|
|
21325
21415
|
const isXString = typeof x === "string";
|
|
21326
21416
|
const isXArr = Array.isArray(x);
|
|
@@ -21427,12 +21517,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21427
21517
|
const data = ser[i2].data || [];
|
|
21428
21518
|
const start = [];
|
|
21429
21519
|
const end = [];
|
|
21430
|
-
for (let
|
|
21431
|
-
const datum = data[
|
|
21520
|
+
for (let j2 = 0; j2 < data.length; j2++) {
|
|
21521
|
+
const datum = data[j2];
|
|
21432
21522
|
let lo;
|
|
21433
21523
|
let hi;
|
|
21434
21524
|
if (typeof yExtent === "function") {
|
|
21435
|
-
let ext = yExtent(datum,
|
|
21525
|
+
let ext = yExtent(datum, j2);
|
|
21436
21526
|
if (!Array.isArray(ext)) ext = [ext];
|
|
21437
21527
|
const nums = ext.map((v) => Utils$1.parseNumber(v)).filter((v) => v !== null && !isNaN(v));
|
|
21438
21528
|
lo = nums.length ? Math.min(...nums) : null;
|
|
@@ -21499,8 +21589,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21499
21589
|
const minArr = [];
|
|
21500
21590
|
const maxArr = [];
|
|
21501
21591
|
const placeholders = [];
|
|
21502
|
-
for (let
|
|
21503
|
-
const d = data[
|
|
21592
|
+
for (let j2 = 0; j2 < data.length; j2++) {
|
|
21593
|
+
const d = data[j2];
|
|
21504
21594
|
const dens = (_c = (_b = (_a = d == null ? void 0 : d.y) == null ? void 0 : _a.density) != null ? _b : d == null ? void 0 : d[1]) != null ? _c : [];
|
|
21505
21595
|
const pts = (_f = (_e = (_d = d == null ? void 0 : d.y) == null ? void 0 : _d.points) != null ? _e : d == null ? void 0 : d[2]) != null ? _f : [];
|
|
21506
21596
|
const summary = this._parseViolinSummary((_h = (_g = d == null ? void 0 : d.y) == null ? void 0 : _g.summary) != null ? _h : d == null ? void 0 : d[3]);
|
|
@@ -21592,29 +21682,29 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21592
21682
|
}
|
|
21593
21683
|
});
|
|
21594
21684
|
if (format === "array") {
|
|
21595
|
-
for (let
|
|
21596
|
-
if (Array.isArray(ser[i2].data[
|
|
21597
|
-
rangeStart.push(ser[i2].data[
|
|
21598
|
-
rangeEnd.push(ser[i2].data[
|
|
21685
|
+
for (let j2 = 0; j2 < ser[i2].data.length; j2++) {
|
|
21686
|
+
if (Array.isArray(ser[i2].data[j2])) {
|
|
21687
|
+
rangeStart.push(ser[i2].data[j2][1][0]);
|
|
21688
|
+
rangeEnd.push(ser[i2].data[j2][1][1]);
|
|
21599
21689
|
} else {
|
|
21600
|
-
rangeStart.push(ser[i2].data[
|
|
21601
|
-
rangeEnd.push(ser[i2].data[
|
|
21690
|
+
rangeStart.push(ser[i2].data[j2]);
|
|
21691
|
+
rangeEnd.push(ser[i2].data[j2]);
|
|
21602
21692
|
}
|
|
21603
21693
|
}
|
|
21604
21694
|
} else if (format === "xy") {
|
|
21605
|
-
for (let
|
|
21606
|
-
const isDataPoint2D = Array.isArray(ser[i2].data[
|
|
21695
|
+
for (let j2 = 0; j2 < ser[i2].data.length; j2++) {
|
|
21696
|
+
const isDataPoint2D = Array.isArray(ser[i2].data[j2].y);
|
|
21607
21697
|
const id = Utils$1.randomId();
|
|
21608
|
-
const x = ser[i2].data[
|
|
21698
|
+
const x = ser[i2].data[j2].x;
|
|
21609
21699
|
const y = {
|
|
21610
|
-
y1: isDataPoint2D ? ser[i2].data[
|
|
21611
|
-
y2: isDataPoint2D ? ser[i2].data[
|
|
21700
|
+
y1: isDataPoint2D ? ser[i2].data[j2].y[0] : ser[i2].data[j2].y,
|
|
21701
|
+
y2: isDataPoint2D ? ser[i2].data[j2].y[1] : ser[i2].data[j2].y,
|
|
21612
21702
|
rangeName: id
|
|
21613
21703
|
};
|
|
21614
21704
|
const gl = this.w.globals;
|
|
21615
21705
|
if (!gl.seriesRangeName) gl.seriesRangeName = {};
|
|
21616
21706
|
if (!gl.seriesRangeName[i2]) gl.seriesRangeName[i2] = {};
|
|
21617
|
-
gl.seriesRangeName[i2][
|
|
21707
|
+
gl.seriesRangeName[i2][j2] = id;
|
|
21618
21708
|
const keyObj = uniqueKeysMap.get(x);
|
|
21619
21709
|
if (keyObj) {
|
|
21620
21710
|
keyObj.y.push(y);
|
|
@@ -21657,8 +21747,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21657
21747
|
} else {
|
|
21658
21748
|
getVals = (d) => Array.isArray(d.y) ? d.y : [];
|
|
21659
21749
|
}
|
|
21660
|
-
for (let
|
|
21661
|
-
const vals = getVals(data[
|
|
21750
|
+
for (let j2 = 0; j2 < data.length; j2++) {
|
|
21751
|
+
const vals = getVals(data[j2]);
|
|
21662
21752
|
if (vals && vals.length >= 2) {
|
|
21663
21753
|
serO.push(vals[0]);
|
|
21664
21754
|
serH.push(vals[1]);
|
|
@@ -21671,8 +21761,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21671
21761
|
serC.push(vals[3]);
|
|
21672
21762
|
}
|
|
21673
21763
|
}
|
|
21674
|
-
const pts = data[
|
|
21675
|
-
data[
|
|
21764
|
+
const pts = data[j2] && /** @type {any} */
|
|
21765
|
+
data[j2].points;
|
|
21676
21766
|
serPoints.push(Array.isArray(pts) ? pts : []);
|
|
21677
21767
|
}
|
|
21678
21768
|
return {
|
|
@@ -21720,18 +21810,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21720
21810
|
});
|
|
21721
21811
|
this.w.labelData.seriesGroups = buckets;
|
|
21722
21812
|
const handleDates = () => {
|
|
21723
|
-
for (let
|
|
21724
|
-
if (typeof xlabels[
|
|
21725
|
-
const isDate = dt.isValidDate(xlabels[
|
|
21813
|
+
for (let j2 = 0; j2 < xlabels.length; j2++) {
|
|
21814
|
+
if (typeof xlabels[j2] === "string") {
|
|
21815
|
+
const isDate = dt.isValidDate(xlabels[j2]);
|
|
21726
21816
|
if (isDate) {
|
|
21727
|
-
this.twoDSeriesX.push(dt.parseDate(xlabels[
|
|
21817
|
+
this.twoDSeriesX.push(dt.parseDate(xlabels[j2]));
|
|
21728
21818
|
} else {
|
|
21729
21819
|
throw new Error(
|
|
21730
21820
|
"You have provided invalid Date format. Please provide a valid JavaScript Date"
|
|
21731
21821
|
);
|
|
21732
21822
|
}
|
|
21733
21823
|
} else {
|
|
21734
|
-
this.twoDSeriesX.push(xlabels[
|
|
21824
|
+
this.twoDSeriesX.push(xlabels[j2]);
|
|
21735
21825
|
}
|
|
21736
21826
|
}
|
|
21737
21827
|
};
|
|
@@ -22474,8 +22564,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22474
22564
|
// Segregate user provided data into appropriate vars
|
|
22475
22565
|
/**
|
|
22476
22566
|
* @param {any[]} ser
|
|
22567
|
+
* @param {boolean} [overwriteInitialSeries=true] false when the caller hands
|
|
22568
|
+
* back the series the chart already has (an internal re-render), so the
|
|
22569
|
+
* baseline resetSeries() restores must not move.
|
|
22477
22570
|
*/
|
|
22478
|
-
parseData(ser) {
|
|
22571
|
+
parseData(ser, overwriteInitialSeries = true) {
|
|
22479
22572
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
22480
22573
|
const w = this.w;
|
|
22481
22574
|
const cnf = w.config;
|
|
@@ -22508,7 +22601,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22508
22601
|
ser = ser.map((s2) => __spreadValues({}, s2));
|
|
22509
22602
|
}
|
|
22510
22603
|
cnf.series = ser;
|
|
22511
|
-
if (
|
|
22604
|
+
if (!overwriteInitialSeries) ;
|
|
22605
|
+
else if (gl.dataReducerRawSeries && ((_g = cnf.chart.dataReducer) == null ? void 0 : _g.enabled)) {
|
|
22512
22606
|
const stash = gl.dataReducerRawSeries;
|
|
22513
22607
|
gl.initialSeries = ser.map((s2, i2) => {
|
|
22514
22608
|
var _a2, _b2, _c2;
|
|
@@ -22727,9 +22821,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22727
22821
|
let avgX = 0;
|
|
22728
22822
|
let avgY = 0;
|
|
22729
22823
|
const avgRangeLen = avgRangeEnd - avgRangeStart;
|
|
22730
|
-
for (let
|
|
22731
|
-
avgX += getX(data[
|
|
22732
|
-
avgY += getY(data[
|
|
22824
|
+
for (let j2 = avgRangeStart; j2 < avgRangeEnd; j2++) {
|
|
22825
|
+
avgX += getX(data[j2]);
|
|
22826
|
+
avgY += getY(data[j2]);
|
|
22733
22827
|
}
|
|
22734
22828
|
avgX /= avgRangeLen;
|
|
22735
22829
|
avgY /= avgRangeLen;
|
|
@@ -22739,13 +22833,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22739
22833
|
const pointAY = getY(data[a2]);
|
|
22740
22834
|
let maxArea = -1;
|
|
22741
22835
|
let maxAreaIdx = rangeStart;
|
|
22742
|
-
for (let
|
|
22836
|
+
for (let j2 = rangeStart; j2 < rangeEnd; j2++) {
|
|
22743
22837
|
const area = Math.abs(
|
|
22744
|
-
(pointAX - avgX) * (getY(data[
|
|
22838
|
+
(pointAX - avgX) * (getY(data[j2]) - pointAY) - (pointAX - getX(data[j2])) * (avgY - pointAY)
|
|
22745
22839
|
) * 0.5;
|
|
22746
22840
|
if (area > maxArea) {
|
|
22747
22841
|
maxArea = area;
|
|
22748
|
-
maxAreaIdx =
|
|
22842
|
+
maxAreaIdx = j2;
|
|
22749
22843
|
}
|
|
22750
22844
|
}
|
|
22751
22845
|
sampled.push(data[maxAreaIdx]);
|
|
@@ -22787,8 +22881,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22787
22881
|
let high = firstY[1];
|
|
22788
22882
|
let low = firstY[2];
|
|
22789
22883
|
let close = firstY[3];
|
|
22790
|
-
for (let
|
|
22791
|
-
const y = getY(data[
|
|
22884
|
+
for (let j2 = start + 1; j2 < end; j2++) {
|
|
22885
|
+
const y = getY(data[j2]);
|
|
22792
22886
|
if (y[1] > high) high = y[1];
|
|
22793
22887
|
if (y[2] < low) low = y[2];
|
|
22794
22888
|
close = y[3];
|
|
@@ -22828,8 +22922,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22828
22922
|
if (end <= start) continue;
|
|
22829
22923
|
let low = Infinity;
|
|
22830
22924
|
let high = -Infinity;
|
|
22831
|
-
for (let
|
|
22832
|
-
const y = getY(data[
|
|
22925
|
+
for (let j2 = start; j2 < end; j2++) {
|
|
22926
|
+
const y = getY(data[j2]);
|
|
22833
22927
|
if (y == null) continue;
|
|
22834
22928
|
for (let k = 0; k < 2; k++) {
|
|
22835
22929
|
const v = y[k];
|
|
@@ -22948,7 +23042,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22948
23042
|
);
|
|
22949
23043
|
initialConfig.series = !options2.series && prevInitialSeries ? prevInitialSeries : Utils$1.copySeriesShallow(w.config.series);
|
|
22950
23044
|
w.globals.initialConfig = initialConfig;
|
|
22951
|
-
|
|
23045
|
+
if (options2.series) {
|
|
23046
|
+
w.globals.initialSeries = w.config.series;
|
|
23047
|
+
}
|
|
22952
23048
|
}
|
|
22953
23049
|
if (options2.series && (w.globals.collapsedSeriesIndices.length > 0 || w.globals.ancillaryCollapsedSeriesIndices.length > 0)) {
|
|
22954
23050
|
ch.series.reconcileCollapsedByName();
|
|
@@ -22997,14 +23093,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22997
23093
|
w.globals.streamgraphRawSeries = null;
|
|
22998
23094
|
w.globals.treemapRawSeries = null;
|
|
22999
23095
|
}
|
|
23096
|
+
const definedSeries = newSeries;
|
|
23097
|
+
let reconciledCollapses = false;
|
|
23000
23098
|
if (w.globals.axisCharts && (w.globals.collapsedSeriesIndices.length > 0 || w.globals.ancillaryCollapsedSeriesIndices.length > 0)) {
|
|
23001
23099
|
newSeries = newSeries.map(
|
|
23002
23100
|
(s2) => s2 && typeof s2 === "object" ? __spreadValues({}, s2) : s2
|
|
23003
23101
|
);
|
|
23004
23102
|
this.ctx.series.reconcileCollapsedByName(newSeries);
|
|
23103
|
+
reconciledCollapses = true;
|
|
23005
23104
|
}
|
|
23006
23105
|
this.ctx.data.resetParsingFlags();
|
|
23007
|
-
const parsedState = this.ctx.data.parseData(
|
|
23106
|
+
const parsedState = this.ctx.data.parseData(
|
|
23107
|
+
newSeries,
|
|
23108
|
+
overwriteInitialSeries
|
|
23109
|
+
);
|
|
23008
23110
|
this.ctx._writeParsedSeriesData(parsedState.seriesData);
|
|
23009
23111
|
this.ctx._writeParsedRangeData(parsedState.rangeData);
|
|
23010
23112
|
this.ctx._writeParsedCandleData(parsedState.candleData);
|
|
@@ -23013,10 +23115,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23013
23115
|
if (overwriteInitialSeries) {
|
|
23014
23116
|
if (w.globals.initialConfig) {
|
|
23015
23117
|
w.globals.initialConfig.series = Utils$1.copySeriesShallow(
|
|
23016
|
-
w.config.series
|
|
23118
|
+
reconciledCollapses ? definedSeries : w.config.series
|
|
23017
23119
|
);
|
|
23018
23120
|
}
|
|
23019
|
-
|
|
23121
|
+
if (reconciledCollapses) {
|
|
23122
|
+
w.globals.initialSeries = definedSeries;
|
|
23123
|
+
}
|
|
23020
23124
|
}
|
|
23021
23125
|
if (this._canUseFastPath(newSeries, prevSeriesCount, prevDataLengths, w)) {
|
|
23022
23126
|
return this.ctx.fastUpdate(animate, prevAxisScaleSig).then(() => {
|
|
@@ -23347,11 +23451,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23347
23451
|
hoverArea.classList.add("hovering-pan");
|
|
23348
23452
|
}
|
|
23349
23453
|
}
|
|
23350
|
-
let
|
|
23454
|
+
let j2 = Math.round(hoverX / xDivisor);
|
|
23351
23455
|
const jHorz = Math.floor(hoverY / yDivisor);
|
|
23352
23456
|
if (hasBars && !w.config.xaxis.convertedCatToNumeric) {
|
|
23353
|
-
|
|
23354
|
-
|
|
23457
|
+
j2 = Math.ceil(hoverX / xDivisor);
|
|
23458
|
+
j2 = j2 - 1;
|
|
23355
23459
|
}
|
|
23356
23460
|
let capturedSeries = null;
|
|
23357
23461
|
let closest = null;
|
|
@@ -23377,7 +23481,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23377
23481
|
seriesYValArr
|
|
23378
23482
|
);
|
|
23379
23483
|
capturedSeries = closest.index;
|
|
23380
|
-
|
|
23484
|
+
j2 = (_a = closest.j) != null ? _a : 0;
|
|
23381
23485
|
const wasCompacted = seriesXValArr.some(
|
|
23382
23486
|
(arr, i2) => arr.length !== w.globals.seriesXvalues[i2].length
|
|
23383
23487
|
);
|
|
@@ -23393,19 +23497,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23393
23497
|
nearest = i2;
|
|
23394
23498
|
}
|
|
23395
23499
|
}
|
|
23396
|
-
if (nearest !== null)
|
|
23500
|
+
if (nearest !== null) j2 = nearest;
|
|
23397
23501
|
}
|
|
23398
23502
|
}
|
|
23399
23503
|
w.interact.capturedSeriesIndex = capturedSeries === null ? -1 : capturedSeries;
|
|
23400
|
-
if (!
|
|
23504
|
+
if (!j2 || j2 < 1) j2 = 0;
|
|
23401
23505
|
if (w.globals.isBarHorizontal) {
|
|
23402
23506
|
w.interact.capturedDataPointIndex = jHorz;
|
|
23403
23507
|
} else {
|
|
23404
|
-
w.interact.capturedDataPointIndex =
|
|
23508
|
+
w.interact.capturedDataPointIndex = j2;
|
|
23405
23509
|
}
|
|
23406
23510
|
return {
|
|
23407
23511
|
capturedSeries,
|
|
23408
|
-
j: w.globals.isBarHorizontal ? jHorz :
|
|
23512
|
+
j: w.globals.isBarHorizontal ? jHorz : j2,
|
|
23409
23513
|
hoverX,
|
|
23410
23514
|
hoverY
|
|
23411
23515
|
};
|
|
@@ -23452,11 +23556,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23452
23556
|
const xArr = Xarrays[i2];
|
|
23453
23557
|
const yArr = Yarrays[i2];
|
|
23454
23558
|
const len = Math.min(xArr.length, yArr.length);
|
|
23455
|
-
for (let
|
|
23456
|
-
const distX = Math.abs(hoverX - xArr[
|
|
23559
|
+
for (let j2 = 0; j2 < len; j2++) {
|
|
23560
|
+
const distX = Math.abs(hoverX - xArr[j2]);
|
|
23457
23561
|
if (distX < bucketDistX) {
|
|
23458
23562
|
bucketDistX = distX;
|
|
23459
|
-
closestPointIndex =
|
|
23563
|
+
closestPointIndex = j2;
|
|
23460
23564
|
}
|
|
23461
23565
|
}
|
|
23462
23566
|
}
|
|
@@ -23478,14 +23582,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23478
23582
|
}
|
|
23479
23583
|
continue;
|
|
23480
23584
|
}
|
|
23481
|
-
for (let
|
|
23585
|
+
for (let j2 = 0; j2 < len - 1; j2++) {
|
|
23482
23586
|
const seg = this._distanceToSegment(
|
|
23483
23587
|
hoverX,
|
|
23484
23588
|
hoverY,
|
|
23485
|
-
xArr[
|
|
23486
|
-
yArr[
|
|
23487
|
-
xArr[
|
|
23488
|
-
yArr[
|
|
23589
|
+
xArr[j2],
|
|
23590
|
+
yArr[j2],
|
|
23591
|
+
xArr[j2 + 1],
|
|
23592
|
+
yArr[j2 + 1]
|
|
23489
23593
|
);
|
|
23490
23594
|
if (seg.dist < bestSegDist) {
|
|
23491
23595
|
bestSegDist = seg.dist;
|
|
@@ -23520,33 +23624,33 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23520
23624
|
const yArr = Yarrays[i2];
|
|
23521
23625
|
const len = Math.min(xArr.length, yArr.length);
|
|
23522
23626
|
if (isLineArea && len >= 2) {
|
|
23523
|
-
for (let
|
|
23627
|
+
for (let j2 = 0; j2 < len - 1; j2++) {
|
|
23524
23628
|
const seg = this._distanceToSegment(
|
|
23525
23629
|
hoverX,
|
|
23526
23630
|
hoverY,
|
|
23527
|
-
xArr[
|
|
23528
|
-
yArr[
|
|
23529
|
-
xArr[
|
|
23530
|
-
yArr[
|
|
23631
|
+
xArr[j2],
|
|
23632
|
+
yArr[j2],
|
|
23633
|
+
xArr[j2 + 1],
|
|
23634
|
+
yArr[j2 + 1]
|
|
23531
23635
|
);
|
|
23532
23636
|
if (seg.dist < closestDist) {
|
|
23533
23637
|
closestDist = seg.dist;
|
|
23534
23638
|
closestSeriesIndex = i2;
|
|
23535
|
-
closestPointIndex = seg.t < 0.5 ?
|
|
23639
|
+
closestPointIndex = seg.t < 0.5 ? j2 : j2 + 1;
|
|
23536
23640
|
}
|
|
23537
23641
|
}
|
|
23538
23642
|
continue;
|
|
23539
23643
|
}
|
|
23540
|
-
for (let
|
|
23541
|
-
const xVal = xArr[
|
|
23644
|
+
for (let j2 = 0; j2 < len; j2++) {
|
|
23645
|
+
const xVal = xArr[j2];
|
|
23542
23646
|
const distX = hoverX - xVal;
|
|
23543
|
-
const yVal = yArr[
|
|
23647
|
+
const yVal = yArr[j2];
|
|
23544
23648
|
const distY = hoverY - yVal;
|
|
23545
23649
|
const dist = Math.sqrt(distX * distX + distY * distY);
|
|
23546
23650
|
if (dist < closestDist) {
|
|
23547
23651
|
closestDist = dist;
|
|
23548
23652
|
closestSeriesIndex = i2;
|
|
23549
|
-
closestPointIndex =
|
|
23653
|
+
closestPointIndex = j2;
|
|
23550
23654
|
}
|
|
23551
23655
|
}
|
|
23552
23656
|
}
|
|
@@ -23608,7 +23712,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23608
23712
|
* @param {number} j - the inner index of series (series[i][j])
|
|
23609
23713
|
* @return {boolean}
|
|
23610
23714
|
*/
|
|
23611
|
-
isXoverlap(
|
|
23715
|
+
isXoverlap(j2) {
|
|
23612
23716
|
const w = this.w;
|
|
23613
23717
|
const xSameForAllSeriesJArr = [];
|
|
23614
23718
|
const seriesX = w.seriesData.seriesX.filter(
|
|
@@ -23616,8 +23720,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23616
23720
|
);
|
|
23617
23721
|
if (seriesX.length > 0) {
|
|
23618
23722
|
for (let i2 = 0; i2 < seriesX.length - 1; i2++) {
|
|
23619
|
-
if (typeof seriesX[i2][
|
|
23620
|
-
if (seriesX[i2][
|
|
23723
|
+
if (typeof seriesX[i2][j2] !== "undefined" && typeof seriesX[i2 + 1][j2] !== "undefined") {
|
|
23724
|
+
if (seriesX[i2][j2] !== seriesX[i2 + 1][j2]) {
|
|
23621
23725
|
xSameForAllSeriesJArr.push("unEqual");
|
|
23622
23726
|
}
|
|
23623
23727
|
}
|
|
@@ -23768,20 +23872,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23768
23872
|
this.tooltipUtil = new Utils(tooltipContext);
|
|
23769
23873
|
}
|
|
23770
23874
|
/** @param {{ shared?: boolean, ttItems?: any, i?: number, j?: any, y1?: any, y2?: any, e?: any }} opts */
|
|
23771
|
-
drawSeriesTexts({ shared = true, ttItems, i: i2 = 0, j = null, y1, y2, e: e2 }) {
|
|
23875
|
+
drawSeriesTexts({ shared = true, ttItems, i: i2 = 0, j: j2 = null, y1, y2, e: e2 }) {
|
|
23772
23876
|
const w = this.w;
|
|
23773
23877
|
if (w.config.tooltip.custom !== void 0) {
|
|
23774
|
-
this.handleCustomTooltip({ i: i2, j, y1, y2, w });
|
|
23878
|
+
this.handleCustomTooltip({ i: i2, j: j2, y1, y2, w });
|
|
23775
23879
|
} else {
|
|
23776
23880
|
this.toggleActiveInactiveSeries(shared, i2);
|
|
23777
23881
|
}
|
|
23778
23882
|
const values = this.getValuesToPrint({
|
|
23779
23883
|
i: i2,
|
|
23780
|
-
j
|
|
23884
|
+
j: j2
|
|
23781
23885
|
});
|
|
23782
23886
|
this.printLabels({
|
|
23783
23887
|
i: i2,
|
|
23784
|
-
j,
|
|
23888
|
+
j: j2,
|
|
23785
23889
|
values,
|
|
23786
23890
|
ttItems,
|
|
23787
23891
|
shared,
|
|
@@ -23794,16 +23898,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23794
23898
|
}
|
|
23795
23899
|
}
|
|
23796
23900
|
/** @param {{i: any, j: any, values: any, ttItems: any, shared: any, e: any}} opts */
|
|
23797
|
-
printLabels({ i: i2, j, values, ttItems, shared, e: e2 }) {
|
|
23901
|
+
printLabels({ i: i2, j: j2, values, ttItems, shared, e: e2 }) {
|
|
23798
23902
|
const w = this.w;
|
|
23799
23903
|
const { xVal, zVal, xAxisTTVal } = values;
|
|
23800
23904
|
const seriesLen = w.seriesData.series.length;
|
|
23801
|
-
const basePColor =
|
|
23905
|
+
const basePColor = j2 !== null && w.config.plotOptions.bar.distributed ? w.globals.colors[j2] : w.globals.colors[i2];
|
|
23802
23906
|
for (let t2 = 0; t2 < seriesLen; t2++) {
|
|
23803
23907
|
const tIndex = w.config.tooltip.inverseOrder ? seriesLen - 1 - t2 : t2;
|
|
23804
23908
|
const row = this.computeSeriesRow({
|
|
23805
23909
|
i: i2,
|
|
23806
|
-
j,
|
|
23910
|
+
j: j2,
|
|
23807
23911
|
t: t2,
|
|
23808
23912
|
tIndex,
|
|
23809
23913
|
shared,
|
|
@@ -23813,7 +23917,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23813
23917
|
this.DOMHandling({
|
|
23814
23918
|
i: i2,
|
|
23815
23919
|
t: tIndex,
|
|
23816
|
-
j,
|
|
23920
|
+
j: j2,
|
|
23817
23921
|
ttItems,
|
|
23818
23922
|
values: {
|
|
23819
23923
|
val: row.val,
|
|
@@ -23834,7 +23938,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23834
23938
|
* printLabels() to keep the outer loop scannable.
|
|
23835
23939
|
* @param {{i: number, j: any, t: number, tIndex: number, shared: boolean, e: any, basePColor: string}} opts
|
|
23836
23940
|
*/
|
|
23837
|
-
computeSeriesRow({ i: i2, j, tIndex, shared, e: e2, basePColor }) {
|
|
23941
|
+
computeSeriesRow({ i: i2, j: j2, tIndex, shared, e: e2, basePColor }) {
|
|
23838
23942
|
const w = this.w;
|
|
23839
23943
|
let f = this.getFormatters(i2);
|
|
23840
23944
|
let pColor = basePColor;
|
|
@@ -23846,19 +23950,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23846
23950
|
let seriesName = w.config.chart.type === "treemap" ? f.yLbTitleFormatter(
|
|
23847
23951
|
String(
|
|
23848
23952
|
/** @type {any} */
|
|
23849
|
-
w.config.series[i2].data[
|
|
23953
|
+
w.config.series[i2].data[j2].x
|
|
23850
23954
|
),
|
|
23851
23955
|
{
|
|
23852
23956
|
series: w.seriesData.series,
|
|
23853
23957
|
seriesIndex: i2,
|
|
23854
|
-
dataPointIndex:
|
|
23958
|
+
dataPointIndex: j2,
|
|
23855
23959
|
w
|
|
23856
23960
|
}
|
|
23857
23961
|
) : this.getSeriesName({
|
|
23858
23962
|
fn: f.yLbTitleFormatter,
|
|
23859
23963
|
index: i2,
|
|
23860
23964
|
seriesIndex: i2,
|
|
23861
|
-
j
|
|
23965
|
+
j: j2
|
|
23862
23966
|
});
|
|
23863
23967
|
if (w.globals.axisCharts) {
|
|
23864
23968
|
if (shared) {
|
|
@@ -23867,18 +23971,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23867
23971
|
fn: f.yLbTitleFormatter,
|
|
23868
23972
|
index: tIndex,
|
|
23869
23973
|
seriesIndex: i2,
|
|
23870
|
-
j
|
|
23974
|
+
j: j2
|
|
23871
23975
|
});
|
|
23872
23976
|
pColor = w.globals.colors[tIndex];
|
|
23873
|
-
val = this.formatYValue(f, tIndex,
|
|
23874
|
-
goalVals = this.formatGoalVals(f, tIndex,
|
|
23977
|
+
val = this.formatYValue(f, tIndex, j2);
|
|
23978
|
+
goalVals = this.formatGoalVals(f, tIndex, j2);
|
|
23875
23979
|
} else {
|
|
23876
23980
|
pColor = this.resolvePatternColor(e2, pColor);
|
|
23877
|
-
val = this.formatYValue(f, i2,
|
|
23878
|
-
goalVals = this.formatGoalVals(f, i2,
|
|
23981
|
+
val = this.formatYValue(f, i2, j2);
|
|
23982
|
+
goalVals = this.formatGoalVals(f, i2, j2);
|
|
23879
23983
|
}
|
|
23880
23984
|
}
|
|
23881
|
-
if (
|
|
23985
|
+
if (j2 === null) {
|
|
23882
23986
|
val = f.yLbFormatter(w.seriesData.series[i2], __spreadProps(__spreadValues({}, w), {
|
|
23883
23987
|
seriesIndex: i2,
|
|
23884
23988
|
dataPointIndex: i2
|
|
@@ -23893,35 +23997,35 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23893
23997
|
* @param {number} index
|
|
23894
23998
|
* @param {any} j
|
|
23895
23999
|
*/
|
|
23896
|
-
formatYValue(f, index,
|
|
24000
|
+
formatYValue(f, index, j2) {
|
|
23897
24001
|
var _a, _b, _c, _d;
|
|
23898
24002
|
const w = this.w;
|
|
23899
24003
|
const steps = w.waterfallData && w.waterfallData.values;
|
|
23900
|
-
if (steps && steps[index] && steps[index][
|
|
23901
|
-
return f.yLbFormatter(steps[index][
|
|
24004
|
+
if (steps && steps[index] && steps[index][j2] != null) {
|
|
24005
|
+
return f.yLbFormatter(steps[index][j2], {
|
|
23902
24006
|
series: steps,
|
|
23903
24007
|
seriesIndex: index,
|
|
23904
|
-
dataPointIndex:
|
|
24008
|
+
dataPointIndex: j2,
|
|
23905
24009
|
w
|
|
23906
24010
|
});
|
|
23907
24011
|
}
|
|
23908
24012
|
if (w.axisFlags.isRangeData) {
|
|
23909
|
-
return f.yLbFormatter((_b = (_a = w.rangeData.seriesRangeStart) == null ? void 0 : _a[index]) == null ? void 0 : _b[
|
|
24013
|
+
return f.yLbFormatter((_b = (_a = w.rangeData.seriesRangeStart) == null ? void 0 : _a[index]) == null ? void 0 : _b[j2], {
|
|
23910
24014
|
series: w.rangeData.seriesRangeStart,
|
|
23911
24015
|
seriesIndex: index,
|
|
23912
|
-
dataPointIndex:
|
|
24016
|
+
dataPointIndex: j2,
|
|
23913
24017
|
w
|
|
23914
|
-
}) + " - " + f.yLbFormatter((_d = (_c = w.rangeData.seriesRangeEnd) == null ? void 0 : _c[index]) == null ? void 0 : _d[
|
|
24018
|
+
}) + " - " + f.yLbFormatter((_d = (_c = w.rangeData.seriesRangeEnd) == null ? void 0 : _c[index]) == null ? void 0 : _d[j2], {
|
|
23915
24019
|
series: w.rangeData.seriesRangeEnd,
|
|
23916
24020
|
seriesIndex: index,
|
|
23917
|
-
dataPointIndex:
|
|
24021
|
+
dataPointIndex: j2,
|
|
23918
24022
|
w
|
|
23919
24023
|
});
|
|
23920
24024
|
}
|
|
23921
|
-
return f.yLbFormatter(w.seriesData.series[index][
|
|
24025
|
+
return f.yLbFormatter(w.seriesData.series[index][j2], {
|
|
23922
24026
|
series: w.seriesData.series,
|
|
23923
24027
|
seriesIndex: index,
|
|
23924
|
-
dataPointIndex:
|
|
24028
|
+
dataPointIndex: j2,
|
|
23925
24029
|
w
|
|
23926
24030
|
});
|
|
23927
24031
|
}
|
|
@@ -23932,16 +24036,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23932
24036
|
* @param {number} index
|
|
23933
24037
|
* @param {any} j
|
|
23934
24038
|
*/
|
|
23935
|
-
formatGoalVals(f, index,
|
|
24039
|
+
formatGoalVals(f, index, j2) {
|
|
23936
24040
|
var _a;
|
|
23937
24041
|
const w = this.w;
|
|
23938
|
-
const goals = (_a = w.seriesData.seriesGoals[index]) == null ? void 0 : _a[
|
|
24042
|
+
const goals = (_a = w.seriesData.seriesGoals[index]) == null ? void 0 : _a[j2];
|
|
23939
24043
|
if (!Array.isArray(goals)) return [];
|
|
23940
24044
|
return goals.map((goal) => ({
|
|
23941
24045
|
attrs: goal,
|
|
23942
24046
|
val: f.yLbFormatter(goal.value, {
|
|
23943
24047
|
seriesIndex: index,
|
|
23944
|
-
dataPointIndex:
|
|
24048
|
+
dataPointIndex: j2,
|
|
23945
24049
|
w
|
|
23946
24050
|
})
|
|
23947
24051
|
}));
|
|
@@ -24013,17 +24117,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24013
24117
|
};
|
|
24014
24118
|
}
|
|
24015
24119
|
/** @param {{fn: any, index: any, seriesIndex: any, j: any}} opts */
|
|
24016
|
-
getSeriesName({ fn, index, seriesIndex, j }) {
|
|
24120
|
+
getSeriesName({ fn, index, seriesIndex, j: j2 }) {
|
|
24017
24121
|
const w = this.w;
|
|
24018
24122
|
return fn(String(w.seriesData.seriesNames[index]), {
|
|
24019
24123
|
series: w.seriesData.series,
|
|
24020
24124
|
seriesIndex,
|
|
24021
|
-
dataPointIndex:
|
|
24125
|
+
dataPointIndex: j2,
|
|
24022
24126
|
w
|
|
24023
24127
|
});
|
|
24024
24128
|
}
|
|
24025
24129
|
/** @param {{ t?: any, j?: any, i?: any, ttItems?: any, values?: any, seriesName?: any, shared?: any, pColor?: any }} opts */
|
|
24026
|
-
DOMHandling({ t: t2, j, ttItems, values, seriesName, shared, pColor }) {
|
|
24130
|
+
DOMHandling({ t: t2, j: j2, ttItems, values, seriesName, shared, pColor }) {
|
|
24027
24131
|
const w = this.w;
|
|
24028
24132
|
const ttCtx = this.ttCtx;
|
|
24029
24133
|
const { val, goalVals, xVal, xAxisTTVal, zVal } = values;
|
|
@@ -24090,7 +24194,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24090
24194
|
ttGVal.innerHTML = gVals + `</div>`;
|
|
24091
24195
|
};
|
|
24092
24196
|
if (shared) {
|
|
24093
|
-
if (w.seriesData.seriesGoals[t2][
|
|
24197
|
+
if (w.seriesData.seriesGoals[t2][j2] && Array.isArray(w.seriesData.seriesGoals[t2][j2])) {
|
|
24094
24198
|
createGoalsHtml();
|
|
24095
24199
|
} else {
|
|
24096
24200
|
ttGLabel.innerHTML = "";
|
|
@@ -24162,7 +24266,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24162
24266
|
}
|
|
24163
24267
|
}
|
|
24164
24268
|
/** @param {{i: any, j: any}} opts */
|
|
24165
|
-
getValuesToPrint({ i: i2, j }) {
|
|
24269
|
+
getValuesToPrint({ i: i2, j: j2 }) {
|
|
24166
24270
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
24167
24271
|
const w = this.w;
|
|
24168
24272
|
const filteredSeriesX = w.seriesData.seriesX.map(
|
|
@@ -24175,29 +24279,29 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24175
24279
|
const customFormatterOpts = {
|
|
24176
24280
|
series: w.seriesData.series,
|
|
24177
24281
|
seriesIndex: i2,
|
|
24178
|
-
dataPointIndex:
|
|
24282
|
+
dataPointIndex: j2,
|
|
24179
24283
|
w
|
|
24180
24284
|
};
|
|
24181
24285
|
const zFormatter = w.formatters.ttZFormatter;
|
|
24182
|
-
if (
|
|
24286
|
+
if (j2 === null) {
|
|
24183
24287
|
val = w.seriesData.series[i2];
|
|
24184
24288
|
} else {
|
|
24185
24289
|
if (w.axisFlags.isXNumeric && w.config.chart.type !== "treemap") {
|
|
24186
|
-
xVal = filteredSeriesX[i2][
|
|
24290
|
+
xVal = filteredSeriesX[i2][j2];
|
|
24187
24291
|
if (filteredSeriesX[i2].length === 0) {
|
|
24188
24292
|
const firstActiveSeriesIndex = this.tooltipUtil.getFirstActiveXArray(filteredSeriesX);
|
|
24189
|
-
xVal = filteredSeriesX[firstActiveSeriesIndex][
|
|
24293
|
+
xVal = filteredSeriesX[firstActiveSeriesIndex][j2];
|
|
24190
24294
|
}
|
|
24191
24295
|
} else {
|
|
24192
24296
|
const dataFormat = new Data(this.w);
|
|
24193
24297
|
if (dataFormat.isFormatXY()) {
|
|
24194
24298
|
xVal = typeof /** @type {any} */
|
|
24195
|
-
w.config.series[i2].data[
|
|
24299
|
+
w.config.series[i2].data[j2] !== "undefined" ? (
|
|
24196
24300
|
/** @type {any} */
|
|
24197
|
-
w.config.series[i2].data[
|
|
24301
|
+
w.config.series[i2].data[j2].x
|
|
24198
24302
|
) : "";
|
|
24199
24303
|
} else {
|
|
24200
|
-
xVal = typeof w.labelData.labels[
|
|
24304
|
+
xVal = typeof w.labelData.labels[j2] !== "undefined" ? w.labelData.labels[j2] : "";
|
|
24201
24305
|
}
|
|
24202
24306
|
}
|
|
24203
24307
|
}
|
|
@@ -24226,7 +24330,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24226
24330
|
xVal = (_f = (_e = (_d = w.formatters).ttKeyFormatter) == null ? void 0 : _e.call(_d, bufferXVal, customFormatterOpts)) != null ? _f : bufferXVal;
|
|
24227
24331
|
}
|
|
24228
24332
|
if (w.seriesData.seriesZ.length > 0 && w.seriesData.seriesZ[i2].length > 0) {
|
|
24229
|
-
zVal = zFormatter == null ? void 0 : zFormatter(w.seriesData.seriesZ[i2][
|
|
24333
|
+
zVal = zFormatter == null ? void 0 : zFormatter(w.seriesData.seriesZ[i2][j2], w);
|
|
24230
24334
|
}
|
|
24231
24335
|
if (typeof w.config.xaxis.tooltip.formatter === "function") {
|
|
24232
24336
|
xAxisTTVal = (_h = (_g = w.formatters).xaxisTooltipFormatter) == null ? void 0 : _h.call(
|
|
@@ -24245,7 +24349,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24245
24349
|
};
|
|
24246
24350
|
}
|
|
24247
24351
|
/** @param {{i: any, j: any, y1: any, y2: any, w: any}} opts */
|
|
24248
|
-
handleCustomTooltip({ i: i2, j, y1, y2, w }) {
|
|
24352
|
+
handleCustomTooltip({ i: i2, j: j2, y1, y2, w }) {
|
|
24249
24353
|
const tooltipEl = this.ttCtx.getElTooltip();
|
|
24250
24354
|
let fn = w.config.tooltip.custom;
|
|
24251
24355
|
if (Array.isArray(fn)) {
|
|
@@ -24255,7 +24359,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24255
24359
|
const customTooltip = fn({
|
|
24256
24360
|
series: w.seriesData.series,
|
|
24257
24361
|
seriesIndex: i2,
|
|
24258
|
-
dataPointIndex:
|
|
24362
|
+
dataPointIndex: j2,
|
|
24259
24363
|
y1,
|
|
24260
24364
|
y2,
|
|
24261
24365
|
w
|
|
@@ -24289,14 +24393,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24289
24393
|
* @param {number} cx - point's x position, wherever point's x is, you need to move crosshair
|
|
24290
24394
|
* @param {number | null} [j]
|
|
24291
24395
|
*/
|
|
24292
|
-
moveXCrosshairs(cx,
|
|
24396
|
+
moveXCrosshairs(cx, j2 = null) {
|
|
24293
24397
|
const ttCtx = this.ttCtx;
|
|
24294
24398
|
const w = this.w;
|
|
24295
24399
|
const xcrosshairs = ttCtx.getElXCrosshairs();
|
|
24296
24400
|
let x = cx - ttCtx.xcrosshairsWidth / 2;
|
|
24297
24401
|
const tickAmount = w.labelData.labels.slice().length;
|
|
24298
|
-
if (
|
|
24299
|
-
x = w.layout.gridWidth / tickAmount *
|
|
24402
|
+
if (j2 !== null) {
|
|
24403
|
+
x = w.layout.gridWidth / tickAmount * j2;
|
|
24300
24404
|
}
|
|
24301
24405
|
if (xcrosshairs !== null && !w.globals.isBarHorizontal) {
|
|
24302
24406
|
xcrosshairs.setAttribute("x", String(x));
|
|
@@ -24572,7 +24676,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24572
24676
|
* @param {number} i
|
|
24573
24677
|
* @param {number} j
|
|
24574
24678
|
*/
|
|
24575
|
-
moveMarkers(i2,
|
|
24679
|
+
moveMarkers(i2, j2) {
|
|
24576
24680
|
var _a;
|
|
24577
24681
|
const w = this.w;
|
|
24578
24682
|
const ttCtx = this.ttCtx;
|
|
@@ -24581,14 +24685,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24581
24685
|
` .apexcharts-series[data\\:realIndex='${i2}'] .apexcharts-marker`
|
|
24582
24686
|
);
|
|
24583
24687
|
for (let p = 0; p < allPoints.length; p++) {
|
|
24584
|
-
if (parseInt((_a = allPoints[p].getAttribute("rel")) != null ? _a : "0", 10) ===
|
|
24688
|
+
if (parseInt((_a = allPoints[p].getAttribute("rel")) != null ? _a : "0", 10) === j2) {
|
|
24585
24689
|
ttCtx.marker.resetPointsSize();
|
|
24586
|
-
ttCtx.marker.enlargeCurrentPoint(
|
|
24690
|
+
ttCtx.marker.enlargeCurrentPoint(j2, allPoints[p]);
|
|
24587
24691
|
}
|
|
24588
24692
|
}
|
|
24589
24693
|
} else {
|
|
24590
24694
|
ttCtx.marker.resetPointsSize();
|
|
24591
|
-
this.moveDynamicPointOnHover(
|
|
24695
|
+
this.moveDynamicPointOnHover(j2, i2);
|
|
24592
24696
|
}
|
|
24593
24697
|
}
|
|
24594
24698
|
// This function is used when you need to show markers/points only on hover -
|
|
@@ -24597,7 +24701,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24597
24701
|
* @param {number} j
|
|
24598
24702
|
* @param {number} capturedSeries
|
|
24599
24703
|
*/
|
|
24600
|
-
moveDynamicPointOnHover(
|
|
24704
|
+
moveDynamicPointOnHover(j2, capturedSeries) {
|
|
24601
24705
|
var _a, _b, _c, _d, _e;
|
|
24602
24706
|
const w = this.w;
|
|
24603
24707
|
const ttCtx = this.ttCtx;
|
|
@@ -24613,8 +24717,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24613
24717
|
if (serType && (serType === "column" || serType === "candlestick" || serType === "boxPlot" || serType === "violin")) {
|
|
24614
24718
|
return;
|
|
24615
24719
|
}
|
|
24616
|
-
cx = (_b = (_a = pointsArr[capturedSeries]) == null ? void 0 : _a[
|
|
24617
|
-
cy = ((_d = (_c = pointsArr[capturedSeries]) == null ? void 0 : _c[
|
|
24720
|
+
cx = (_b = (_a = pointsArr[capturedSeries]) == null ? void 0 : _a[j2]) == null ? void 0 : _b[0];
|
|
24721
|
+
cy = ((_d = (_c = pointsArr[capturedSeries]) == null ? void 0 : _c[j2]) == null ? void 0 : _d[1]) || 0;
|
|
24618
24722
|
const point = w.dom.baseEl.querySelector(
|
|
24619
24723
|
`.apexcharts-series[data\\:realIndex='${capturedSeries}'] .apexcharts-series-markers path`
|
|
24620
24724
|
);
|
|
@@ -24633,7 +24737,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24633
24737
|
/**
|
|
24634
24738
|
* @param {number} j
|
|
24635
24739
|
*/
|
|
24636
|
-
moveDynamicPointsOnHover(
|
|
24740
|
+
moveDynamicPointsOnHover(j2) {
|
|
24637
24741
|
var _a, _b;
|
|
24638
24742
|
const ttCtx = this.ttCtx;
|
|
24639
24743
|
const w = ttCtx.w;
|
|
@@ -24650,9 +24754,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24650
24754
|
"bubble"
|
|
24651
24755
|
]);
|
|
24652
24756
|
const hoverSize = ttCtx.tooltipUtil.getHoverMarkerSize(activeSeries);
|
|
24653
|
-
if ((_a = pointsArr[activeSeries]) == null ? void 0 : _a[
|
|
24654
|
-
cx = pointsArr[activeSeries][
|
|
24655
|
-
cy = pointsArr[activeSeries][
|
|
24757
|
+
if ((_a = pointsArr[activeSeries]) == null ? void 0 : _a[j2]) {
|
|
24758
|
+
cx = pointsArr[activeSeries][j2][0];
|
|
24759
|
+
cy = pointsArr[activeSeries][j2][1];
|
|
24656
24760
|
}
|
|
24657
24761
|
if (isNaN(cx)) {
|
|
24658
24762
|
return;
|
|
@@ -24667,12 +24771,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24667
24771
|
}
|
|
24668
24772
|
}
|
|
24669
24773
|
if (points[p] && pointArr && pointArr.length) {
|
|
24670
|
-
let pcy = pointsArr[p][
|
|
24774
|
+
let pcy = pointsArr[p][j2][1];
|
|
24671
24775
|
let pcy2;
|
|
24672
24776
|
points[p].setAttribute("cx", cx);
|
|
24673
24777
|
const shape = (_b = points[p].getAttribute("shape")) != null ? _b : "circle";
|
|
24674
24778
|
if (w.config.chart.type === "rangeArea" && !w.globals.comboCharts) {
|
|
24675
|
-
const rangeStartIndex =
|
|
24779
|
+
const rangeStartIndex = j2 + w.seriesData.series[p].length;
|
|
24676
24780
|
pcy2 = pointsArr[p][rangeStartIndex][1];
|
|
24677
24781
|
const pcyDiff = Math.abs(pcy - pcy2) / 2;
|
|
24678
24782
|
pcy = pcy - pcyDiff;
|
|
@@ -24695,7 +24799,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24695
24799
|
* @param {number} j
|
|
24696
24800
|
* @param {number} capturedSeries
|
|
24697
24801
|
*/
|
|
24698
|
-
moveStickyTooltipOverBars(
|
|
24802
|
+
moveStickyTooltipOverBars(j2, capturedSeries) {
|
|
24699
24803
|
var _a, _b, _c, _d, _e;
|
|
24700
24804
|
const w = this.w;
|
|
24701
24805
|
const ttCtx = this.ttCtx;
|
|
@@ -24712,15 +24816,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24712
24816
|
i2 = series.getActiveConfigSeriesIndex("desc") + 1;
|
|
24713
24817
|
}
|
|
24714
24818
|
let jBar = w.dom.baseEl.querySelector(
|
|
24715
|
-
`.apexcharts-bar-series .apexcharts-series[rel='${i2}'] path[j='${
|
|
24819
|
+
`.apexcharts-bar-series .apexcharts-series[rel='${i2}'] path[j='${j2}'], .apexcharts-candlestick-series .apexcharts-series[rel='${i2}'] path[j='${j2}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${i2}'] path[j='${j2}'], .apexcharts-violin-series .apexcharts-series[rel='${i2}'] path[j='${j2}'], .apexcharts-rangebar-series .apexcharts-series[rel='${i2}'] path[j='${j2}']`
|
|
24716
24820
|
);
|
|
24717
24821
|
if (!jBar && typeof capturedSeries === "number") {
|
|
24718
24822
|
jBar = w.dom.baseEl.querySelector(
|
|
24719
|
-
`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${
|
|
24720
|
-
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${
|
|
24721
|
-
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${
|
|
24722
|
-
.apexcharts-violin-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${
|
|
24723
|
-
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${
|
|
24823
|
+
`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${j2}'],
|
|
24824
|
+
.apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${j2}'],
|
|
24825
|
+
.apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${j2}'],
|
|
24826
|
+
.apexcharts-violin-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${j2}'],
|
|
24827
|
+
.apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${capturedSeries}'] path[j='${j2}']`
|
|
24724
24828
|
);
|
|
24725
24829
|
}
|
|
24726
24830
|
let bc = null;
|
|
@@ -24729,11 +24833,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24729
24833
|
w.globals.barCanvasCoords
|
|
24730
24834
|
);
|
|
24731
24835
|
if (!jBar && bcc) {
|
|
24732
|
-
bc = typeof capturedSeries === "number" && ((_a = bcc[capturedSeries]) == null ? void 0 : _a[
|
|
24836
|
+
bc = typeof capturedSeries === "number" && ((_a = bcc[capturedSeries]) == null ? void 0 : _a[j2]) || null;
|
|
24733
24837
|
if (!bc) {
|
|
24734
24838
|
for (const key in bcc) {
|
|
24735
|
-
if ((_b = bcc[key]) == null ? void 0 : _b[
|
|
24736
|
-
bc = bcc[key][
|
|
24839
|
+
if ((_b = bcc[key]) == null ? void 0 : _b[j2]) {
|
|
24840
|
+
bc = bcc[key][j2];
|
|
24737
24841
|
break;
|
|
24738
24842
|
}
|
|
24739
24843
|
}
|
|
@@ -24748,7 +24852,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24748
24852
|
const isBoxOrCandle = jBar && (jBar.classList.contains("apexcharts-candlestick-area") || jBar.classList.contains("apexcharts-boxPlot-area"));
|
|
24749
24853
|
if (w.axisFlags.isXNumeric) {
|
|
24750
24854
|
if (jBar && !isBoxOrCandle) {
|
|
24751
|
-
const center = this._datapointCenterXFromBars(
|
|
24855
|
+
const center = this._datapointCenterXFromBars(j2);
|
|
24752
24856
|
if (center != null) {
|
|
24753
24857
|
bcx = center;
|
|
24754
24858
|
} else {
|
|
@@ -24761,9 +24865,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24761
24865
|
}
|
|
24762
24866
|
} else {
|
|
24763
24867
|
if (!w.globals.isBarHorizontal && !bc) {
|
|
24764
|
-
bcx = ttCtx.xAxisTicksPositions[
|
|
24868
|
+
bcx = ttCtx.xAxisTicksPositions[j2 - 1] + ttCtx.dataPointsDividedWidth / 2;
|
|
24765
24869
|
if (isNaN(bcx)) {
|
|
24766
|
-
bcx = ttCtx.xAxisTicksPositions[
|
|
24870
|
+
bcx = ttCtx.xAxisTicksPositions[j2] - ttCtx.dataPointsDividedWidth / 2;
|
|
24767
24871
|
}
|
|
24768
24872
|
}
|
|
24769
24873
|
}
|
|
@@ -24783,7 +24887,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24783
24887
|
}
|
|
24784
24888
|
if (!ttCtx.fixedTooltip) {
|
|
24785
24889
|
if (w.globals.isBarHorizontal && !w.config.tooltip.followCursor) {
|
|
24786
|
-
const placed = this.placeHorizontalSharedTooltip(
|
|
24890
|
+
const placed = this.placeHorizontalSharedTooltip(j2);
|
|
24787
24891
|
if (placed) return;
|
|
24788
24892
|
}
|
|
24789
24893
|
this.moveTooltip(bcx, bcy || w.layout.gridHeight);
|
|
@@ -24800,11 +24904,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24800
24904
|
* @param {number} j
|
|
24801
24905
|
* @returns {number | null}
|
|
24802
24906
|
*/
|
|
24803
|
-
_datapointCenterXFromBars(
|
|
24907
|
+
_datapointCenterXFromBars(j2) {
|
|
24804
24908
|
var _a, _b;
|
|
24805
24909
|
const w = this.w;
|
|
24806
24910
|
const bars = w.dom.baseEl.querySelectorAll(
|
|
24807
|
-
`.apexcharts-bar-series path[j='${
|
|
24911
|
+
`.apexcharts-bar-series path[j='${j2}'],.apexcharts-rangebar-series path[j='${j2}']`
|
|
24808
24912
|
);
|
|
24809
24913
|
if (!bars.length) return null;
|
|
24810
24914
|
let unionLeft = Infinity;
|
|
@@ -24833,7 +24937,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24833
24937
|
* @param {number} j
|
|
24834
24938
|
* @returns {boolean}
|
|
24835
24939
|
*/
|
|
24836
|
-
placeHorizontalSharedTooltip(
|
|
24940
|
+
placeHorizontalSharedTooltip(j2) {
|
|
24837
24941
|
var _a, _b;
|
|
24838
24942
|
const w = this.w;
|
|
24839
24943
|
const ttCtx = this.ttCtx;
|
|
@@ -24843,7 +24947,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
24843
24947
|
if (!elGrid) return false;
|
|
24844
24948
|
const gridRect = elGrid.getBoundingClientRect();
|
|
24845
24949
|
const bars = w.dom.baseEl.querySelectorAll(
|
|
24846
|
-
`.apexcharts-bar-series path[j='${
|
|
24950
|
+
`.apexcharts-bar-series path[j='${j2}'],.apexcharts-rangebar-series path[j='${j2}'],.apexcharts-boxPlot-series path[j='${j2}']`
|
|
24847
24951
|
);
|
|
24848
24952
|
if (!bars.length) return false;
|
|
24849
24953
|
let unionLeft = Infinity;
|
|
@@ -25012,12 +25116,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25012
25116
|
/**
|
|
25013
25117
|
* @param {number} j
|
|
25014
25118
|
*/
|
|
25015
|
-
enlargePoints(
|
|
25119
|
+
enlargePoints(j2) {
|
|
25016
25120
|
var _a, _b;
|
|
25017
25121
|
const w = this.w;
|
|
25018
25122
|
const me = this;
|
|
25019
25123
|
const ttCtx = this.ttCtx;
|
|
25020
|
-
const col =
|
|
25124
|
+
const col = j2;
|
|
25021
25125
|
const points = w.dom.baseEl.querySelectorAll(
|
|
25022
25126
|
".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"
|
|
25023
25127
|
);
|
|
@@ -25132,7 +25236,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25132
25236
|
const renderer = w.globals.activeRenderer;
|
|
25133
25237
|
const canvasCells = type === "heatmap" && renderer && renderer.kind === "canvas" && typeof renderer.hitTest === "function";
|
|
25134
25238
|
const hovered = Utils.hoverTarget(e2);
|
|
25135
|
-
let i2,
|
|
25239
|
+
let i2, j2, cx, cy, width, height;
|
|
25136
25240
|
if (canvasCells) {
|
|
25137
25241
|
const seriesBound = opt.elGrid.getBoundingClientRect();
|
|
25138
25242
|
const clientX = (_a = opt.clientX) != null ? _a : e2.type === "touchmove" ? e2.touches[0].clientX : e2.clientX;
|
|
@@ -25145,14 +25249,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25145
25249
|
return { x, y, noHit: true };
|
|
25146
25250
|
}
|
|
25147
25251
|
i2 = hit.seriesIndex;
|
|
25148
|
-
|
|
25252
|
+
j2 = hit.dataPointIndex;
|
|
25149
25253
|
cx = hit.x;
|
|
25150
25254
|
cy = hit.y;
|
|
25151
25255
|
width = hit.width;
|
|
25152
25256
|
height = hit.height;
|
|
25153
25257
|
} else if (hovered.classList.contains(`apexcharts-${type}-rect`)) {
|
|
25154
25258
|
i2 = this.getAttr(e2, "i");
|
|
25155
|
-
|
|
25259
|
+
j2 = this.getAttr(e2, "j");
|
|
25156
25260
|
cx = this.getAttr(e2, "cx");
|
|
25157
25261
|
cy = this.getAttr(e2, "cy");
|
|
25158
25262
|
width = this.getAttr(e2, "width");
|
|
@@ -25163,12 +25267,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25163
25267
|
ttCtx.tooltipLabels.drawSeriesTexts({
|
|
25164
25268
|
ttItems: opt.ttItems,
|
|
25165
25269
|
i: i2,
|
|
25166
|
-
j,
|
|
25270
|
+
j: j2,
|
|
25167
25271
|
shared: false,
|
|
25168
25272
|
e: e2
|
|
25169
25273
|
});
|
|
25170
25274
|
w.interact.capturedSeriesIndex = i2;
|
|
25171
|
-
w.interact.capturedDataPointIndex =
|
|
25275
|
+
w.interact.capturedDataPointIndex = j2;
|
|
25172
25276
|
ttCtx.tooltipPosition.moveXCrosshairs(cx + width / 2);
|
|
25173
25277
|
const tooltipEl = ttCtx.getElTooltip();
|
|
25174
25278
|
if (type === "heatmap" && w.config.tooltip.arrow && !w.config.tooltip.followCursor && tooltipEl) {
|
|
@@ -25251,12 +25355,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25251
25355
|
const w = this.w;
|
|
25252
25356
|
const ttCtx = this.ttCtx;
|
|
25253
25357
|
let i2;
|
|
25254
|
-
let
|
|
25358
|
+
let j2;
|
|
25255
25359
|
if (Utils.hoverTarget(e2).classList.contains("apexcharts-marker")) {
|
|
25256
25360
|
const cx = parseInt(opt.paths.getAttribute("cx"), 10);
|
|
25257
25361
|
const cy = parseInt(opt.paths.getAttribute("cy"), 10);
|
|
25258
25362
|
const val = parseFloat(opt.paths.getAttribute("val"));
|
|
25259
|
-
|
|
25363
|
+
j2 = parseInt(opt.paths.getAttribute("rel"), 10);
|
|
25260
25364
|
i2 = parseInt(
|
|
25261
25365
|
opt.paths.parentNode.parentNode.parentNode.getAttribute("rel"),
|
|
25262
25366
|
10
|
|
@@ -25270,15 +25374,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25270
25374
|
ttCtx.tooltipLabels.drawSeriesTexts({
|
|
25271
25375
|
ttItems: opt.ttItems,
|
|
25272
25376
|
i: i2,
|
|
25273
|
-
j,
|
|
25377
|
+
j: j2,
|
|
25274
25378
|
shared: ttCtx.showOnIntersect ? false : w.config.tooltip.shared,
|
|
25275
25379
|
e: e2
|
|
25276
25380
|
});
|
|
25277
25381
|
if (e2.type === "mouseup") {
|
|
25278
|
-
ttCtx.markerClick(e2, i2,
|
|
25382
|
+
ttCtx.markerClick(e2, i2, j2);
|
|
25279
25383
|
}
|
|
25280
25384
|
w.interact.capturedSeriesIndex = i2;
|
|
25281
|
-
w.interact.capturedDataPointIndex =
|
|
25385
|
+
w.interact.capturedDataPointIndex = j2;
|
|
25282
25386
|
const arrowEnabled = !!w.config.tooltip.arrow;
|
|
25283
25387
|
x = cx;
|
|
25284
25388
|
if (arrowEnabled) {
|
|
@@ -25295,7 +25399,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25295
25399
|
const seriesBound = elGrid.getBoundingClientRect();
|
|
25296
25400
|
y = ttCtx.e.clientY + w.layout.translateY - seriesBound.top;
|
|
25297
25401
|
}
|
|
25298
|
-
ttCtx.marker.enlargeCurrentPoint(
|
|
25402
|
+
ttCtx.marker.enlargeCurrentPoint(j2, opt.paths, x, y);
|
|
25299
25403
|
}
|
|
25300
25404
|
return {
|
|
25301
25405
|
x,
|
|
@@ -25324,9 +25428,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25324
25428
|
return;
|
|
25325
25429
|
}
|
|
25326
25430
|
i2 = barXY.i;
|
|
25327
|
-
const
|
|
25431
|
+
const j2 = barXY.j;
|
|
25328
25432
|
w.interact.capturedSeriesIndex = i2;
|
|
25329
|
-
w.interact.capturedDataPointIndex =
|
|
25433
|
+
w.interact.capturedDataPointIndex = j2 !== null ? j2 : w.interact.capturedDataPointIndex;
|
|
25330
25434
|
if (w.globals.isBarHorizontal && ttCtx.tooltipUtil.hasBars() || !w.config.tooltip.shared) {
|
|
25331
25435
|
x = barXY.x;
|
|
25332
25436
|
y = barXY.y;
|
|
@@ -25442,7 +25546,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25442
25546
|
/** @param {{e: any, opt: any}} opts */
|
|
25443
25547
|
getBarTooltipXY({ e: e2, opt }) {
|
|
25444
25548
|
const w = this.w;
|
|
25445
|
-
let
|
|
25549
|
+
let j2 = null;
|
|
25446
25550
|
const ttCtx = this.ttCtx;
|
|
25447
25551
|
let i2 = 0;
|
|
25448
25552
|
let x = 0;
|
|
@@ -25481,7 +25585,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25481
25585
|
bottom: rectTopInGrid + bh
|
|
25482
25586
|
};
|
|
25483
25587
|
const clientX = e2.type === "touchmove" ? e2.touches[0].clientX : e2.clientX;
|
|
25484
|
-
|
|
25588
|
+
j2 = parseInt(bar.getAttribute("j"), 10);
|
|
25485
25589
|
i2 = parseInt(bar.parentNode.getAttribute("rel"), 10) - 1;
|
|
25486
25590
|
const y1 = bar.getAttribute("data-range-y1");
|
|
25487
25591
|
const y2 = bar.getAttribute("data-range-y2");
|
|
@@ -25506,7 +25610,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25506
25610
|
ttCtx.tooltipLabels.drawSeriesTexts({
|
|
25507
25611
|
ttItems: opt.ttItems,
|
|
25508
25612
|
i: i2,
|
|
25509
|
-
j,
|
|
25613
|
+
j: j2,
|
|
25510
25614
|
y1: y1 ? parseInt(y1, 10) : null,
|
|
25511
25615
|
y2: y2 ? parseInt(y2, 10) : null,
|
|
25512
25616
|
shared: ttCtx.showOnIntersect ? false : w.config.tooltip.shared,
|
|
@@ -25539,7 +25643,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
25539
25643
|
barHeight,
|
|
25540
25644
|
barWidth,
|
|
25541
25645
|
i: i2,
|
|
25542
|
-
j,
|
|
25646
|
+
j: j2,
|
|
25543
25647
|
// SVG attribute values — left for any caller that still wants them.
|
|
25544
25648
|
barCx,
|
|
25545
25649
|
barCy,
|
|
@@ -26500,9 +26604,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26500
26604
|
const tooltipEl = this.getElTooltip();
|
|
26501
26605
|
if (!tooltipEl) return;
|
|
26502
26606
|
const i2 = parseInt(dotEl.getAttribute("i") || "0", 10);
|
|
26503
|
-
const
|
|
26607
|
+
const j2 = parseInt(dotEl.getAttribute("j") || "0", 10);
|
|
26504
26608
|
if (typeof w.config.tooltip.custom === "function") {
|
|
26505
|
-
this.tooltipLabels.handleCustomTooltip({ i: i2, j, y1: null, y2: null, w });
|
|
26609
|
+
this.tooltipLabels.handleCustomTooltip({ i: i2, j: j2, y1: null, y2: null, w });
|
|
26506
26610
|
return;
|
|
26507
26611
|
}
|
|
26508
26612
|
const seriesName = w.seriesData.seriesNames[i2] || `series-${i2 + 1}`;
|
|
@@ -26512,7 +26616,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26512
26616
|
const unitOpts = w.config.plotOptions.unit || {};
|
|
26513
26617
|
const unitValue = unitOpts.unitValue > 0 ? unitOpts.unitValue : 1;
|
|
26514
26618
|
const catData = w.seriesData.unitData && w.seriesData.unitData[i2];
|
|
26515
|
-
const datum = catData ? catData[
|
|
26619
|
+
const datum = catData ? catData[j2] : void 0;
|
|
26516
26620
|
const datumObj = datum && typeof datum === "object" ? datum : null;
|
|
26517
26621
|
const color = datumObj && datumObj.fillColor || w.globals.colors && w.globals.colors[i2] || "#008FFB";
|
|
26518
26622
|
let body;
|
|
@@ -26521,7 +26625,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26521
26625
|
body = fmt({
|
|
26522
26626
|
seriesName,
|
|
26523
26627
|
seriesIndex: i2,
|
|
26524
|
-
dataPointIndex:
|
|
26628
|
+
dataPointIndex: j2,
|
|
26525
26629
|
count,
|
|
26526
26630
|
value,
|
|
26527
26631
|
unitValue,
|
|
@@ -26532,9 +26636,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26532
26636
|
} else if (datum !== void 0 && datum !== null) {
|
|
26533
26637
|
const label = datumObj ? (_c = (_b = (_a = datumObj.name) != null ? _a : datumObj.label) != null ? _b : datumObj.x) != null ? _c : null : null;
|
|
26534
26638
|
const dVal = datumObj ? (_e = (_d = datumObj.value) != null ? _d : datumObj.y) != null ? _e : null : datum;
|
|
26535
|
-
body = label != null && dVal != null ? `${label}: ${dVal}` : label != null ? String(label) : dVal != null ? String(dVal) : `#${(
|
|
26639
|
+
body = label != null && dVal != null ? `${label}: ${dVal}` : label != null ? String(label) : dVal != null ? String(dVal) : `#${(j2 + 1).toLocaleString()} of ${count.toLocaleString()}`;
|
|
26536
26640
|
} else {
|
|
26537
|
-
body = `#${(
|
|
26641
|
+
body = `#${(j2 + 1).toLocaleString()} of ${count.toLocaleString()}`;
|
|
26538
26642
|
if (unitValue !== 1) {
|
|
26539
26643
|
body += ` · ${unitValue.toLocaleString()} per dot`;
|
|
26540
26644
|
}
|
|
@@ -26563,7 +26667,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26563
26667
|
clientX,
|
|
26564
26668
|
clientY
|
|
26565
26669
|
});
|
|
26566
|
-
const
|
|
26670
|
+
const j2 = capj.j;
|
|
26567
26671
|
let capturedSeries = capj.capturedSeries;
|
|
26568
26672
|
if (capturedSeries !== null && w.globals.collapsedSeriesIndices.includes(capturedSeries != null ? capturedSeries : -1))
|
|
26569
26673
|
capturedSeries = null;
|
|
@@ -26573,9 +26677,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26573
26677
|
return;
|
|
26574
26678
|
}
|
|
26575
26679
|
if (capturedSeries !== null) {
|
|
26576
|
-
this.handleStickyCapturedSeries(e2, capturedSeries != null ? capturedSeries : -1, opt,
|
|
26680
|
+
this.handleStickyCapturedSeries(e2, capturedSeries != null ? capturedSeries : -1, opt, j2 != null ? j2 : 0);
|
|
26577
26681
|
} else {
|
|
26578
|
-
if (this.tooltipUtil.isXoverlap(
|
|
26682
|
+
if (this.tooltipUtil.isXoverlap(j2 != null ? j2 : 0) || w.globals.isBarHorizontal) {
|
|
26579
26683
|
const firstVisibleSeries = w.seriesData.series.findIndex(
|
|
26580
26684
|
/**
|
|
26581
26685
|
* @param {any} s
|
|
@@ -26583,7 +26687,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26583
26687
|
*/
|
|
26584
26688
|
(s2, i2) => !w.globals.collapsedSeriesIndices.includes(i2)
|
|
26585
26689
|
);
|
|
26586
|
-
this.create(e2, this, firstVisibleSeries,
|
|
26690
|
+
this.create(e2, this, firstVisibleSeries, j2 != null ? j2 : 0, opt.ttItems);
|
|
26587
26691
|
}
|
|
26588
26692
|
}
|
|
26589
26693
|
}
|
|
@@ -26593,23 +26697,23 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26593
26697
|
* @param {Record<string, any>} opt
|
|
26594
26698
|
* @param {number} j
|
|
26595
26699
|
*/
|
|
26596
|
-
handleStickyCapturedSeries(e2, capturedSeries, opt,
|
|
26700
|
+
handleStickyCapturedSeries(e2, capturedSeries, opt, j2) {
|
|
26597
26701
|
const w = this.w;
|
|
26598
26702
|
if (!this.tConfig.shared) {
|
|
26599
|
-
const ignoreNull = w.seriesData.series[capturedSeries][
|
|
26703
|
+
const ignoreNull = w.seriesData.series[capturedSeries][j2] === null;
|
|
26600
26704
|
if (ignoreNull) {
|
|
26601
26705
|
this.handleMouseOut(opt);
|
|
26602
26706
|
return;
|
|
26603
26707
|
}
|
|
26604
26708
|
}
|
|
26605
|
-
if (typeof w.seriesData.series[capturedSeries][
|
|
26606
|
-
if (this.tConfig.shared && this.tooltipUtil.isXoverlap(
|
|
26607
|
-
this.create(e2, this, capturedSeries,
|
|
26709
|
+
if (typeof w.seriesData.series[capturedSeries][j2] !== "undefined") {
|
|
26710
|
+
if (this.tConfig.shared && this.tooltipUtil.isXoverlap(j2) && this.tooltipUtil.isInitialSeriesSameLen()) {
|
|
26711
|
+
this.create(e2, this, capturedSeries, j2, opt.ttItems);
|
|
26608
26712
|
} else {
|
|
26609
|
-
this.create(e2, this, capturedSeries,
|
|
26713
|
+
this.create(e2, this, capturedSeries, j2, opt.ttItems, false);
|
|
26610
26714
|
}
|
|
26611
26715
|
} else {
|
|
26612
|
-
if (this.tooltipUtil.isXoverlap(
|
|
26716
|
+
if (this.tooltipUtil.isXoverlap(j2)) {
|
|
26613
26717
|
const firstVisibleSeries = w.seriesData.series.findIndex(
|
|
26614
26718
|
/**
|
|
26615
26719
|
* @param {any} s
|
|
@@ -26617,7 +26721,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26617
26721
|
*/
|
|
26618
26722
|
(s2, i2) => !w.globals.collapsedSeriesIndices.includes(i2)
|
|
26619
26723
|
);
|
|
26620
|
-
this.create(e2, this, firstVisibleSeries,
|
|
26724
|
+
this.create(e2, this, firstVisibleSeries, j2, opt.ttItems);
|
|
26621
26725
|
}
|
|
26622
26726
|
}
|
|
26623
26727
|
}
|
|
@@ -26725,12 +26829,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26725
26829
|
* @param {any} ttItems
|
|
26726
26830
|
* @param {boolean | null} shared
|
|
26727
26831
|
*/
|
|
26728
|
-
create(e2, context, capturedSeries,
|
|
26832
|
+
create(e2, context, capturedSeries, j2, ttItems, shared = null) {
|
|
26729
26833
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
26730
26834
|
const w = this.w;
|
|
26731
26835
|
const ttCtx = context;
|
|
26732
26836
|
if (e2.type === "mouseup") {
|
|
26733
|
-
this.markerClick(e2, capturedSeries,
|
|
26837
|
+
this.markerClick(e2, capturedSeries, j2);
|
|
26734
26838
|
}
|
|
26735
26839
|
if (shared === null) shared = this.tConfig.shared;
|
|
26736
26840
|
const hasMarkers = this.tooltipUtil.hasMarkers(capturedSeries);
|
|
@@ -26741,9 +26845,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26741
26845
|
const bars = this.tooltipUtil.getElBars();
|
|
26742
26846
|
const handlePoints = () => {
|
|
26743
26847
|
if (w.globals.markers.largestSize > 0 && !canvasMode && !w.globals.markers.batched) {
|
|
26744
|
-
ttCtx.marker.enlargePoints(
|
|
26848
|
+
ttCtx.marker.enlargePoints(j2);
|
|
26745
26849
|
} else {
|
|
26746
|
-
ttCtx.tooltipPosition.moveDynamicPointsOnHover(
|
|
26850
|
+
ttCtx.tooltipPosition.moveDynamicPointsOnHover(j2);
|
|
26747
26851
|
}
|
|
26748
26852
|
};
|
|
26749
26853
|
if (w.config.legend.tooltipHoverFormatter) {
|
|
@@ -26764,7 +26868,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26764
26868
|
);
|
|
26765
26869
|
const text = legendFormatter(legendName, {
|
|
26766
26870
|
seriesIndex: shared ? lsIndex : capturedSeries,
|
|
26767
|
-
dataPointIndex:
|
|
26871
|
+
dataPointIndex: j2,
|
|
26768
26872
|
w
|
|
26769
26873
|
});
|
|
26770
26874
|
if (!shared) {
|
|
@@ -26784,11 +26888,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26784
26888
|
const commonSeriesTextsParams = __spreadValues(__spreadValues({
|
|
26785
26889
|
ttItems,
|
|
26786
26890
|
i: capturedSeries,
|
|
26787
|
-
j
|
|
26788
|
-
}, ((_i = (_h = (_g = (_f = _rangeData.seriesRange) == null ? void 0 : _f[capturedSeries]) == null ? void 0 : _g[
|
|
26789
|
-
y1: (_m = (_l = (_k = (_j = _rangeData.seriesRange) == null ? void 0 : _j[capturedSeries]) == null ? void 0 : _k[
|
|
26790
|
-
}), ((_q = (_p = (_o = (_n = _rangeData.seriesRange) == null ? void 0 : _n[capturedSeries]) == null ? void 0 : _o[
|
|
26791
|
-
y2: (_u = (_t = (_s = (_r = _rangeData.seriesRange) == null ? void 0 : _r[capturedSeries]) == null ? void 0 : _s[
|
|
26891
|
+
j: j2
|
|
26892
|
+
}, ((_i = (_h = (_g = (_f = _rangeData.seriesRange) == null ? void 0 : _f[capturedSeries]) == null ? void 0 : _g[j2]) == null ? void 0 : _h.y[0]) == null ? void 0 : _i.y1) !== void 0 && {
|
|
26893
|
+
y1: (_m = (_l = (_k = (_j = _rangeData.seriesRange) == null ? void 0 : _j[capturedSeries]) == null ? void 0 : _k[j2]) == null ? void 0 : _l.y[0]) == null ? void 0 : _m.y1
|
|
26894
|
+
}), ((_q = (_p = (_o = (_n = _rangeData.seriesRange) == null ? void 0 : _n[capturedSeries]) == null ? void 0 : _o[j2]) == null ? void 0 : _p.y[0]) == null ? void 0 : _q.y2) !== void 0 && {
|
|
26895
|
+
y2: (_u = (_t = (_s = (_r = _rangeData.seriesRange) == null ? void 0 : _r[capturedSeries]) == null ? void 0 : _s[j2]) == null ? void 0 : _t.y[0]) == null ? void 0 : _u.y2
|
|
26792
26896
|
});
|
|
26793
26897
|
if (shared) {
|
|
26794
26898
|
ttCtx.tooltipLabels.drawSeriesTexts(__spreadProps(__spreadValues({}, commonSeriesTextsParams), {
|
|
@@ -26798,7 +26902,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26798
26902
|
handlePoints();
|
|
26799
26903
|
} else if (this.tooltipUtil.hasBars()) {
|
|
26800
26904
|
if (canvasMode) {
|
|
26801
|
-
ttCtx.tooltipPosition.moveStickyTooltipOverBars(
|
|
26905
|
+
ttCtx.tooltipPosition.moveStickyTooltipOverBars(j2, capturedSeries);
|
|
26802
26906
|
}
|
|
26803
26907
|
this.barSeriesHeight = this.tooltipUtil.getBarsHeight(
|
|
26804
26908
|
/** @type {any[]} */
|
|
@@ -26806,13 +26910,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26806
26910
|
);
|
|
26807
26911
|
if (this.barSeriesHeight > 0) {
|
|
26808
26912
|
const graphics = new Graphics(this.w, this.ctx);
|
|
26809
|
-
const paths = w.dom.Paper.find(`.apexcharts-bar-area[j='${
|
|
26913
|
+
const paths = w.dom.Paper.find(`.apexcharts-bar-area[j='${j2}']`);
|
|
26810
26914
|
this.deactivateHoverFilter();
|
|
26811
26915
|
const points = ttCtx.tooltipUtil.getAllMarkers(true);
|
|
26812
26916
|
if (points.length && !this.barSeriesHeight) {
|
|
26813
26917
|
handlePoints();
|
|
26814
26918
|
}
|
|
26815
|
-
ttCtx.tooltipPosition.moveStickyTooltipOverBars(
|
|
26919
|
+
ttCtx.tooltipPosition.moveStickyTooltipOverBars(j2, capturedSeries);
|
|
26816
26920
|
for (let b = 0; b < paths.length; b++) {
|
|
26817
26921
|
graphics.pathMouseEnter(
|
|
26818
26922
|
/** @type {any} */
|
|
@@ -26828,12 +26932,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
26828
26932
|
shared: false
|
|
26829
26933
|
}, commonSeriesTextsParams));
|
|
26830
26934
|
if (this.tooltipUtil.hasBars()) {
|
|
26831
|
-
ttCtx.tooltipPosition.moveStickyTooltipOverBars(
|
|
26935
|
+
ttCtx.tooltipPosition.moveStickyTooltipOverBars(j2, capturedSeries);
|
|
26832
26936
|
}
|
|
26833
26937
|
if (hasMarkers) {
|
|
26834
|
-
ttCtx.tooltipPosition.moveMarkers(capturedSeries,
|
|
26938
|
+
ttCtx.tooltipPosition.moveMarkers(capturedSeries, j2);
|
|
26835
26939
|
} else if (dynamicPoints) {
|
|
26836
|
-
ttCtx.tooltipPosition.moveDynamicPointOnHover(
|
|
26940
|
+
ttCtx.tooltipPosition.moveDynamicPointOnHover(j2, capturedSeries);
|
|
26837
26941
|
}
|
|
26838
26942
|
}
|
|
26839
26943
|
}
|
|
@@ -28646,14 +28750,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
28646
28750
|
const t2 = __spreadProps(__spreadValues({}, n2), { signatureVerified: true });
|
|
28647
28751
|
return void (this.licenseKey === e2 ? this.publish(t2) : this.notify(t2));
|
|
28648
28752
|
}
|
|
28649
|
-
const
|
|
28650
|
-
this.licenseKey === e2 ? this.publish(
|
|
28753
|
+
const u = "Invalid license key. The license signature does not verify.", h = { data: i2.data, expired: false, message: u, signatureVerified: true, valid: false };
|
|
28754
|
+
this.licenseKey === e2 ? this.publish(h) : this.notify(h), t(`[Apex] ${u}`);
|
|
28651
28755
|
});
|
|
28652
28756
|
}
|
|
28653
28757
|
};
|
|
28654
28758
|
l.publicKeysSpki = ["MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEQIaK9UMD6n0oR/FIy8QdL0uSzKMQlf1BB+tOrji4/WuHsyRNxeDhVykoSsNURozMi1xhmqWvBH1L//xIfugTPA=="], l.verdicts = /* @__PURE__ */ new Map(), l.verifying = /* @__PURE__ */ new Set(), l.warnedUnverifiable = false, l.epoch = 0;
|
|
28655
28759
|
let o = l;
|
|
28656
|
-
const
|
|
28760
|
+
const j = class {
|
|
28657
28761
|
static applyStyles(e2) {
|
|
28658
28762
|
Object.assign(e2.style, this.CRITICAL_STYLES, { backgroundImage: this.createWatermarkPattern(), backgroundRepeat: "repeat" });
|
|
28659
28763
|
}
|
|
@@ -28711,8 +28815,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
28711
28815
|
})));
|
|
28712
28816
|
}
|
|
28713
28817
|
};
|
|
28714
|
-
|
|
28715
|
-
let
|
|
28818
|
+
j.WATERMARK_ATTR = "data-apexcharts-watermark", j.WATERMARK_TEXT = "APEXCHARTS", j.ATTR = "data-apexcharts-watermark", j.CRITICAL_STYLES = { bottom: "0", display: "block", left: "0", msUserSelect: "none", opacity: "1", pointerEvents: "none", position: "absolute", right: "0", top: "0", userSelect: "none", visibility: "visible", webkitUserSelect: "none", zIndex: "10000" }, j.managed = /* @__PURE__ */ new Set(), j.subscribed = false;
|
|
28819
|
+
let C = j;
|
|
28716
28820
|
const PRICING_URL = "https://apexcharts.com/pricing";
|
|
28717
28821
|
let _perspectivesTokenDecoded = false;
|
|
28718
28822
|
const enforced = /* @__PURE__ */ new Set();
|
|
@@ -28765,15 +28869,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
28765
28869
|
return typeof plan === "string" && PREMIUM_PLANS.has(plan.toLowerCase());
|
|
28766
28870
|
}
|
|
28767
28871
|
function reinstateWatermark(ctx, elWrap) {
|
|
28768
|
-
const node =
|
|
28872
|
+
const node = C.add(elWrap, { manage: false });
|
|
28769
28873
|
if (!node || typeof MutationObserver === "undefined") return;
|
|
28770
28874
|
if (ctx._wmNodeObserver && ctx._wmObservedNode === node) return;
|
|
28771
28875
|
if (ctx._wmNodeObserver) ctx._wmNodeObserver.disconnect();
|
|
28772
28876
|
const nodeObs = new MutationObserver(() => {
|
|
28773
|
-
const n2 =
|
|
28877
|
+
const n2 = C.node(elWrap);
|
|
28774
28878
|
if (!n2) return;
|
|
28775
28879
|
nodeObs.disconnect();
|
|
28776
|
-
|
|
28880
|
+
C.applyStyles(n2);
|
|
28777
28881
|
nodeObs.takeRecords();
|
|
28778
28882
|
nodeObs.observe(n2, { attributes: true, attributeFilter: ["style"] });
|
|
28779
28883
|
});
|
|
@@ -28785,7 +28889,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
28785
28889
|
reinstateWatermark(ctx, elWrap);
|
|
28786
28890
|
if (typeof MutationObserver === "undefined" || ctx._wmWrapObserver) return;
|
|
28787
28891
|
const wrapObs = new MutationObserver(() => {
|
|
28788
|
-
if (!
|
|
28892
|
+
if (!C.node(elWrap)) reinstateWatermark(ctx, elWrap);
|
|
28789
28893
|
});
|
|
28790
28894
|
wrapObs.observe(elWrap, { childList: true });
|
|
28791
28895
|
ctx._wmWrapObserver = wrapObs;
|
|
@@ -28801,7 +28905,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
28801
28905
|
}
|
|
28802
28906
|
ctx._wmObservedNode = null;
|
|
28803
28907
|
const wrap = elWrap || ctx.w && ctx.w.dom && ctx.w.dom.elWrap;
|
|
28804
|
-
if (wrap)
|
|
28908
|
+
if (wrap) C.remove(wrap, { manage: false });
|
|
28805
28909
|
}
|
|
28806
28910
|
function notifyTrial(ctx, key, features) {
|
|
28807
28911
|
if (ctx._premiumLicenseNotified) return;
|
|
@@ -29178,8 +29282,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
29178
29282
|
/**
|
|
29179
29283
|
* @param {any[]} ser
|
|
29180
29284
|
* @param {object} opts
|
|
29285
|
+
* @param {boolean} [overwriteInitialSeries=true]
|
|
29181
29286
|
*/
|
|
29182
|
-
create(ser, opts) {
|
|
29287
|
+
create(ser, opts, overwriteInitialSeries = true) {
|
|
29183
29288
|
var _a, _b, _c, _d, _e, _f;
|
|
29184
29289
|
const w = this.w;
|
|
29185
29290
|
if (!this.core) {
|
|
@@ -29226,7 +29331,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
29226
29331
|
if (Environment.isBrowser()) {
|
|
29227
29332
|
this.events.setupEventHandlers();
|
|
29228
29333
|
}
|
|
29229
|
-
const parsedState = this.data.parseData(series);
|
|
29334
|
+
const parsedState = this.data.parseData(series, overwriteInitialSeries);
|
|
29230
29335
|
this._writeParsedSeriesData(parsedState.seriesData);
|
|
29231
29336
|
this._writeParsedRangeData(parsedState.rangeData);
|
|
29232
29337
|
this._writeParsedCandleData(parsedState.candleData);
|
|
@@ -29293,7 +29398,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
29293
29398
|
const me = this;
|
|
29294
29399
|
const w = me.w;
|
|
29295
29400
|
return new Promise((resolve, reject) => {
|
|
29296
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
29401
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
29297
29402
|
if (me.el === null) {
|
|
29298
29403
|
return reject(
|
|
29299
29404
|
new Error("Not enough data to display or target element not found")
|
|
@@ -29391,9 +29496,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
29391
29496
|
}
|
|
29392
29497
|
if (w.config.chart.toolbar.show && !w.globals.allSeriesCollapsed) {
|
|
29393
29498
|
(_k = me.toolbar) == null ? void 0 : _k.createToolbar();
|
|
29499
|
+
} else if (!w.globals.allSeriesCollapsed && ((_l = me.toolbar) == null ? void 0 : _l.resetControlDue())) {
|
|
29500
|
+
me.toolbar.createToolbar({ resetOnly: true });
|
|
29394
29501
|
}
|
|
29395
29502
|
}
|
|
29396
|
-
(
|
|
29503
|
+
(_m = me.weave) == null ? void 0 : _m.dispatch("draw", {
|
|
29397
29504
|
pass: "full",
|
|
29398
29505
|
xyRatios: graphData == null ? void 0 : graphData.xyRatios
|
|
29399
29506
|
});
|
|
@@ -29582,6 +29689,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
29582
29689
|
* @returns {Promise<ApexCharts>} Resolves with the chart instance after re-render.
|
|
29583
29690
|
*/
|
|
29584
29691
|
appendData(newData, overwriteInitialSeries = true) {
|
|
29692
|
+
var _a;
|
|
29585
29693
|
const me = this;
|
|
29586
29694
|
me.data.resetParsingFlags();
|
|
29587
29695
|
me.w.globals.dataChanged = true;
|
|
@@ -29596,14 +29704,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
29596
29704
|
newData[i2]
|
|
29597
29705
|
);
|
|
29598
29706
|
if (src && Array.isArray(src.data) && Array.isArray(derivedRaw[i2].data)) {
|
|
29599
|
-
|
|
29600
|
-
derivedRaw[i2].data.push(src.data[j]);
|
|
29601
|
-
}
|
|
29707
|
+
derivedRaw[i2].data = derivedRaw[i2].data.concat(src.data);
|
|
29602
29708
|
}
|
|
29603
29709
|
}
|
|
29604
|
-
return this.update();
|
|
29710
|
+
return this.update(void 0, overwriteInitialSeries);
|
|
29605
29711
|
}
|
|
29606
29712
|
const newSeries = me.w.config.series.slice();
|
|
29713
|
+
const reducerRaw = me.w.globals.dataReducerRawSeries;
|
|
29607
29714
|
for (let i2 = 0; i2 < newSeries.length; i2++) {
|
|
29608
29715
|
if (newData[i2] !== null && typeof newData[i2] !== "undefined") {
|
|
29609
29716
|
const srcSerie = (
|
|
@@ -29614,17 +29721,15 @@ var __async = (__this, __arguments, generator) => {
|
|
|
29614
29721
|
/** @type {any} */
|
|
29615
29722
|
newSeries[i2]
|
|
29616
29723
|
);
|
|
29617
|
-
|
|
29618
|
-
|
|
29724
|
+
dstSerie.data = dstSerie.data.concat(srcSerie.data);
|
|
29725
|
+
if (reducerRaw && Array.isArray((_a = reducerRaw[i2]) == null ? void 0 : _a.data)) {
|
|
29726
|
+
reducerRaw[i2].data = reducerRaw[i2].data.concat(srcSerie.data);
|
|
29619
29727
|
}
|
|
29620
29728
|
}
|
|
29621
29729
|
}
|
|
29622
29730
|
trimStreamingSeries(newSeries, me.w);
|
|
29623
29731
|
me.w.config.series = newSeries;
|
|
29624
|
-
|
|
29625
|
-
me.w.globals.initialSeries = me.w.config.series;
|
|
29626
|
-
}
|
|
29627
|
-
return this.update();
|
|
29732
|
+
return this.update(void 0, overwriteInitialSeries);
|
|
29628
29733
|
}
|
|
29629
29734
|
/**
|
|
29630
29735
|
* True when an options object carries enough series data that a
|
|
@@ -29646,15 +29751,22 @@ var __async = (__this, __arguments, generator) => {
|
|
|
29646
29751
|
}
|
|
29647
29752
|
/**
|
|
29648
29753
|
* @param {object} [options]
|
|
29754
|
+
* @param {boolean} [overwriteInitialSeries=false] true only when the caller
|
|
29755
|
+
* redefined the series before triggering this re-render, so the parse it
|
|
29756
|
+
* runs is the one that captures the new baseline.
|
|
29649
29757
|
*/
|
|
29650
|
-
update(options2) {
|
|
29758
|
+
update(options2, overwriteInitialSeries = false) {
|
|
29651
29759
|
return new Promise((resolve, reject) => {
|
|
29652
29760
|
if (options2 && this.lastUpdateOptions && !_ApexCharts._optionsTooBigToCompare(options2) && Utils$1.stringifyForCompare(this.lastUpdateOptions) === Utils$1.stringifyForCompare(options2)) {
|
|
29653
29761
|
return resolve(this);
|
|
29654
29762
|
}
|
|
29655
29763
|
this.lastUpdateOptions = options2 && !_ApexCharts._optionsTooBigToCompare(options2) ? Utils$1.clone(options2) : null;
|
|
29656
29764
|
new Destroy(this.ctx).clear({ isUpdating: true });
|
|
29657
|
-
const graphData = this.create(
|
|
29765
|
+
const graphData = this.create(
|
|
29766
|
+
this.w.config.series,
|
|
29767
|
+
options2 != null ? options2 : {},
|
|
29768
|
+
overwriteInitialSeries
|
|
29769
|
+
);
|
|
29658
29770
|
if (!graphData) return resolve(this);
|
|
29659
29771
|
this.mount(graphData).then(() => {
|
|
29660
29772
|
var _a;
|