vue-data-ui 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +63 -160
- package/dist/types/vue-data-ui.d.ts +63 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
- package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
- package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { R as X, _ as ie, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as
|
|
1
|
+
import { R as X, _ as ie, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as Ae, af as ye, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as He, ai as De, D as Be, a5 as We, aj as Ee, i as Ye, F as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-CobsZUkv.js";
|
|
2
2
|
import { u as je } from "./useMouse-AicQS8Vf.js";
|
|
3
|
-
import { u as ae } from "./useNestedProp-
|
|
3
|
+
import { u as ae } from "./useNestedProp-BwL5wmVa.js";
|
|
4
4
|
import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
|
-
import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as a, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as
|
|
6
|
-
import { S as it } from "./Slicer-
|
|
7
|
-
import at from "./Title-
|
|
8
|
-
import { _ as st } from "./Shape-
|
|
9
|
-
import nt from "./img-
|
|
5
|
+
import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as a, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as u, createVNode as le, createSlots as et, withCtx as B, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as d, renderList as x, toDisplayString as V, mergeProps as se, withDirectives as tt, vModelCheckbox as lt, createTextVNode as rt } from "vue";
|
|
6
|
+
import { S as it } from "./Slicer-CpSu7plp.js";
|
|
7
|
+
import at from "./Title-DpERl1yr.js";
|
|
8
|
+
import { _ as st } from "./Shape-C75836Jl.js";
|
|
9
|
+
import nt from "./img-utitT2Gd.js";
|
|
10
10
|
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const ot = ne(), ht = {
|
|
12
12
|
name: "vue-ui-xy",
|
|
@@ -30,15 +30,15 @@ const ot = ne(), ht = {
|
|
|
30
30
|
Title: at,
|
|
31
31
|
// Must be ready in responsive mode
|
|
32
32
|
Shape: st,
|
|
33
|
-
DataTable: Z(() => import("./DataTable-
|
|
34
|
-
Tooltip: Z(() => import("./Tooltip-
|
|
35
|
-
UserOptions: Z(() => import("./UserOptions-
|
|
36
|
-
BaseIcon: Z(() => import("./BaseIcon-
|
|
37
|
-
TableSparkline: Z(() => import("./vue-ui-table-sparkline-
|
|
38
|
-
Skeleton: Z(() => import("./vue-ui-skeleton-
|
|
39
|
-
Accordion: Z(() => import("./vue-ui-accordion-
|
|
40
|
-
PackageVersion: Z(() => import("./PackageVersion-
|
|
41
|
-
PenAndPaper: Z(() => import("./PenAndPaper-
|
|
33
|
+
DataTable: Z(() => import("./DataTable-Dt-TIOyY.js")),
|
|
34
|
+
Tooltip: Z(() => import("./Tooltip-DA0bYKFG.js")),
|
|
35
|
+
UserOptions: Z(() => import("./UserOptions-DTEJ3UM_.js")),
|
|
36
|
+
BaseIcon: Z(() => import("./BaseIcon-D9Tz8ARD.js")),
|
|
37
|
+
TableSparkline: Z(() => import("./vue-ui-table-sparkline-D7wz-sCj.js")),
|
|
38
|
+
Skeleton: Z(() => import("./vue-ui-skeleton-8s4xts8z.js")),
|
|
39
|
+
Accordion: Z(() => import("./vue-ui-accordion-UewqY6OI.js")),
|
|
40
|
+
PackageVersion: Z(() => import("./PackageVersion-C-4Ee8BQ.js")),
|
|
41
|
+
PenAndPaper: Z(() => import("./PenAndPaper-Cde-wJ3N.js"))
|
|
42
42
|
},
|
|
43
43
|
data() {
|
|
44
44
|
this.dataset.forEach((f, l) => {
|
|
@@ -49,7 +49,7 @@ const ot = ne(), ht = {
|
|
|
49
49
|
index: l
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
|
-
const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, c = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: r }).length)),
|
|
52
|
+
const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, c = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: r }).length)), h = {
|
|
53
53
|
start: 0,
|
|
54
54
|
end: c
|
|
55
55
|
};
|
|
@@ -102,7 +102,7 @@ const ot = ne(), ht = {
|
|
|
102
102
|
step: 0,
|
|
103
103
|
tableStep: 0,
|
|
104
104
|
titleStep: 0,
|
|
105
|
-
slicer:
|
|
105
|
+
slicer: h,
|
|
106
106
|
__to__: null,
|
|
107
107
|
maxX: c,
|
|
108
108
|
showSparklineTable: !0,
|
|
@@ -130,8 +130,8 @@ const ot = ne(), ht = {
|
|
|
130
130
|
watch: {
|
|
131
131
|
dataset: {
|
|
132
132
|
handler(r, c) {
|
|
133
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
134
|
-
data:
|
|
133
|
+
this.maxX = Math.max(...this.dataset.map((h) => this.largestTriangleThreeBucketsArray({
|
|
134
|
+
data: h.series,
|
|
135
135
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
136
136
|
}).length)), this.slicer = {
|
|
137
137
|
start: 0,
|
|
@@ -173,11 +173,11 @@ const ot = ne(), ht = {
|
|
|
173
173
|
},
|
|
174
174
|
minimap() {
|
|
175
175
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
176
|
-
const r = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), c = Math.max(...r.map((l) => l.series.length)),
|
|
176
|
+
const r = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), c = Math.max(...r.map((l) => l.series.length)), h = [];
|
|
177
177
|
for (let l = 0; l < c; l += 1)
|
|
178
|
-
|
|
179
|
-
const f = Math.min(...
|
|
180
|
-
return
|
|
178
|
+
h.push(r.map((e) => e.series[l] || 0).reduce((e, i) => (e || 0) + (i || 0), 0));
|
|
179
|
+
const f = Math.min(...h);
|
|
180
|
+
return h.map((l) => l + (f < 0 ? Math.abs(f) : 0));
|
|
181
181
|
},
|
|
182
182
|
customPalette() {
|
|
183
183
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -212,7 +212,7 @@ const ot = ne(), ht = {
|
|
|
212
212
|
id: e.id,
|
|
213
213
|
yOffset: e.yOffset || 0,
|
|
214
214
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
215
|
-
})),
|
|
215
|
+
})), h = this.plotSet.map((e) => ({
|
|
216
216
|
name: e.name,
|
|
217
217
|
color: e.color,
|
|
218
218
|
scale: e.individualScale,
|
|
@@ -224,7 +224,7 @@ const ot = ne(), ht = {
|
|
|
224
224
|
id: e.id,
|
|
225
225
|
yOffset: e.yOffset || 0,
|
|
226
226
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
227
|
-
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...r, ...c, ...
|
|
227
|
+
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...r, ...c, ...h], l = f.flatMap((e) => e).length;
|
|
228
228
|
return f.flatMap((e, i) => ({
|
|
229
229
|
unique: e.unique,
|
|
230
230
|
id: e.id,
|
|
@@ -236,9 +236,9 @@ const ot = ne(), ht = {
|
|
|
236
236
|
yOffset: e.yOffset,
|
|
237
237
|
individualHeight: e.individualHeight,
|
|
238
238
|
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / l * (i + 1),
|
|
239
|
-
yLabels: e.scaleYLabels || e.scale.ticks.map((
|
|
240
|
-
y:
|
|
241
|
-
value:
|
|
239
|
+
yLabels: e.scaleYLabels || e.scale.ticks.map((y) => ({
|
|
240
|
+
y: y >= 0 ? e.zero - e.individualHeight * (y / e.max) : e.zero + e.individualHeight * Math.abs(y) / e.max,
|
|
241
|
+
value: y
|
|
242
242
|
}))
|
|
243
243
|
}));
|
|
244
244
|
},
|
|
@@ -290,14 +290,14 @@ const ot = ne(), ht = {
|
|
|
290
290
|
},
|
|
291
291
|
safeDataset() {
|
|
292
292
|
return this.useSafeValues ? this.dataset.map((r, c) => {
|
|
293
|
-
const
|
|
293
|
+
const h = this.largestTriangleThreeBucketsArray({
|
|
294
294
|
data: r.series,
|
|
295
295
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
296
296
|
}), f = `uniqueId_${c}`;
|
|
297
297
|
return {
|
|
298
298
|
...r,
|
|
299
299
|
slotAbsoluteIndex: c,
|
|
300
|
-
series:
|
|
300
|
+
series: h.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
|
|
301
301
|
color: this.convertColorToHex(r.color ? r.color : this.customPalette[c] ? this.customPalette[c] : this.palette[c]),
|
|
302
302
|
id: f,
|
|
303
303
|
scaleLabel: r.scaleLabel || f
|
|
@@ -307,13 +307,13 @@ const ot = ne(), ht = {
|
|
|
307
307
|
relativeDataset() {
|
|
308
308
|
return this.safeDataset.map((r, c) => ({
|
|
309
309
|
...r,
|
|
310
|
-
series: r.series.map((
|
|
310
|
+
series: r.series.map((h) => h + this.relativeZero),
|
|
311
311
|
absoluteValues: r.series
|
|
312
312
|
})).filter((r) => !this.segregatedSeries.includes(r.id));
|
|
313
313
|
},
|
|
314
314
|
tableSparklineDataset() {
|
|
315
315
|
return this.relativeDataset.map((r) => {
|
|
316
|
-
const c = r.absoluteValues.map((
|
|
316
|
+
const c = r.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
|
|
317
317
|
return {
|
|
318
318
|
id: r.id,
|
|
319
319
|
name: r.name,
|
|
@@ -352,7 +352,7 @@ const ot = ne(), ht = {
|
|
|
352
352
|
return this.safeDataset.map((r, c) => ({
|
|
353
353
|
absoluteIndex: c,
|
|
354
354
|
...r,
|
|
355
|
-
series: r.series.map((
|
|
355
|
+
series: r.series.map((h) => h + this.relativeZero),
|
|
356
356
|
absoluteValues: r.series,
|
|
357
357
|
segregate: () => this.segregate(r),
|
|
358
358
|
isSegregated: this.segregatedSeries.includes(r.id)
|
|
@@ -365,10 +365,10 @@ const ot = ne(), ht = {
|
|
|
365
365
|
return this.assignStackRatios(this.absoluteDataset.filter((r) => !this.segregatedSeries.includes(r.id)));
|
|
366
366
|
},
|
|
367
367
|
scaleGroups() {
|
|
368
|
-
const r = Object.groupBy(this.activeSeriesWithStackRatios, (
|
|
369
|
-
for (const [
|
|
368
|
+
const r = Object.groupBy(this.activeSeriesWithStackRatios, (h) => h.scaleLabel), c = {};
|
|
369
|
+
for (const [h, f] of Object.entries(r)) {
|
|
370
370
|
const l = f.flatMap((e) => e.absoluteValues);
|
|
371
|
-
c[
|
|
371
|
+
c[h] = {
|
|
372
372
|
min: Math.min(...l) || 0,
|
|
373
373
|
max: Math.max(...l) || 1,
|
|
374
374
|
groupId: `scale_group_${this.createUid()}`
|
|
@@ -377,8 +377,8 @@ const ot = ne(), ht = {
|
|
|
377
377
|
return c;
|
|
378
378
|
},
|
|
379
379
|
barSet() {
|
|
380
|
-
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length,
|
|
381
|
-
return r.filter((i) => i.type === "bar").map((i,
|
|
380
|
+
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (c - 1) : 0, e = this.drawingArea.height - l;
|
|
381
|
+
return r.filter((i) => i.type === "bar").map((i, y) => {
|
|
382
382
|
this.checkAutoScaleError(i);
|
|
383
383
|
const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
|
|
384
384
|
i.absoluteValues.filter((C) => ![null, void 0].includes(C)).map((C) => (C - z) / (O - z));
|
|
@@ -388,8 +388,8 @@ const ot = ne(), ht = {
|
|
|
388
388
|
}, F = {
|
|
389
389
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
390
390
|
min: i.scaleMin || Math.min(...i.absoluteValues.filter((C) => ![void 0, null].includes(C))) > 0 ? 0 : Math.min(...i.absoluteValues.filter((C) => ![null, void 0].includes(C)))
|
|
391
|
-
}, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + M, o = b.max + Math.abs(H), n = i.stackIndex, g = c - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p +
|
|
392
|
-
const K = this.mutableConfig.useIndividualScale ? (i.absoluteValues[R] + M) / t : this.ratioToMax(C), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left + this.slot.bar *
|
|
391
|
+
}, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + M, o = b.max + Math.abs(H), n = i.stackIndex, g = c - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p + h * g : 0, k = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / o, W = this.absoluteDataset.filter((C) => C.type === "bar").filter((C) => !this.segregatedSeries.includes(C.id)).length, te = i.series.map((C, R) => {
|
|
392
|
+
const K = this.mutableConfig.useIndividualScale ? (i.absoluteValues[R] + M) / t : this.ratioToMax(C), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left + this.slot.bar * y + this.slot.bar * R * W - this.barSlot / 2 - y * this.barPeriodGap;
|
|
393
393
|
return {
|
|
394
394
|
yOffset: this.checkNaN(S),
|
|
395
395
|
individualHeight: this.checkNaN(k),
|
|
@@ -401,7 +401,7 @@ const ot = ne(), ht = {
|
|
|
401
401
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[R] || ""
|
|
402
402
|
};
|
|
403
403
|
}), E = i.absoluteValues.map((C) => b.min >= 0 ? (C - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (C + Math.abs(b.min)) / (b.max + Math.abs(b.min))), J = i.series.map((C, R) => {
|
|
404
|
-
const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar *
|
|
404
|
+
const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * y + this.slot.bar * R * this.absoluteDataset.filter((Q) => Q.type === "bar").filter((Q) => !this.segregatedSeries.includes(Q.id)).length;
|
|
405
405
|
return {
|
|
406
406
|
yOffset: this.checkNaN(S),
|
|
407
407
|
individualHeight: this.checkNaN(k),
|
|
@@ -443,26 +443,26 @@ const ot = ne(), ht = {
|
|
|
443
443
|
});
|
|
444
444
|
},
|
|
445
445
|
lineSet() {
|
|
446
|
-
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length,
|
|
447
|
-
return r.filter((i) => i.type === "line").map((i,
|
|
446
|
+
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (c - 1) : 0, e = this.drawingArea.height - l;
|
|
447
|
+
return r.filter((i) => i.type === "line").map((i, y) => {
|
|
448
448
|
this.checkAutoScaleError(i);
|
|
449
449
|
const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
|
|
450
|
-
i.absoluteValues.filter((
|
|
450
|
+
i.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - z) / (O - z));
|
|
451
451
|
const N = {
|
|
452
452
|
valueMin: z,
|
|
453
453
|
valueMax: O
|
|
454
454
|
}, F = {
|
|
455
455
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
456
456
|
min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
|
|
457
|
-
}, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + Math.abs(M), o = b.max + Math.abs(H), n = i.stackIndex, g = c - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p +
|
|
458
|
-
const he = this.mutableConfig.useIndividualScale ? (i.absoluteValues[D] + Math.abs(M)) / t : this.ratioToMax(
|
|
457
|
+
}, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + Math.abs(M), o = b.max + Math.abs(H), n = i.stackIndex, g = c - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p + h * g : 0, k = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / o, W = i.series.map((A, D) => {
|
|
458
|
+
const he = this.mutableConfig.useIndividualScale ? (i.absoluteValues[D] + Math.abs(M)) / t : this.ratioToMax(A);
|
|
459
459
|
return {
|
|
460
460
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * D),
|
|
461
461
|
y: this.checkNaN(this.drawingArea.bottom - S - k * he),
|
|
462
462
|
value: i.absoluteValues[D],
|
|
463
463
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[D] || ""
|
|
464
464
|
};
|
|
465
|
-
}), te = i.absoluteValues.map((
|
|
465
|
+
}), te = i.absoluteValues.map((A) => b.min >= 0 ? (A - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (A + Math.abs(b.min)) / (b.max + Math.abs(b.min))), E = i.series.map((A, D) => [void 0, null].includes(i.absoluteValues[D]) ? {
|
|
466
466
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * D),
|
|
467
467
|
y: T,
|
|
468
468
|
value: i.absoluteValues[D],
|
|
@@ -472,23 +472,23 @@ const ot = ne(), ht = {
|
|
|
472
472
|
y: this.checkNaN(this.drawingArea.bottom - S - (k * te[D] || 0)),
|
|
473
473
|
value: i.absoluteValues[D],
|
|
474
474
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[D] || ""
|
|
475
|
-
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((
|
|
476
|
-
y:
|
|
477
|
-
value:
|
|
475
|
+
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((A) => A.value !== null)), w = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((A) => A.value !== null)), P = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(W) : this.createStraightPath(W.filter((A) => A.value !== null)), C = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(E) : this.createStraightPath(E.filter((A) => A.value !== null)), R = L.ticks.map((A) => ({
|
|
476
|
+
y: A >= 0 ? T - k * (A / t) : T + k * Math.abs(A) / t,
|
|
477
|
+
value: A,
|
|
478
478
|
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
479
479
|
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
480
480
|
datapoint: i
|
|
481
|
-
})), K = b.ticks.map((
|
|
482
|
-
const D = (
|
|
481
|
+
})), K = b.ticks.map((A) => {
|
|
482
|
+
const D = (A - b.min) / (b.max - b.min);
|
|
483
483
|
return {
|
|
484
|
-
y:
|
|
485
|
-
value:
|
|
484
|
+
y: A >= 0 ? Y - k * D : Y + k * D,
|
|
485
|
+
value: A,
|
|
486
486
|
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
487
487
|
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
488
488
|
datapoint: i
|
|
489
489
|
};
|
|
490
490
|
});
|
|
491
|
-
this.scaleGroups[i.scaleLabel].name = i.name, this.scaleGroups[i.scaleLabel].groupName = i.scaleLabel, this.scaleGroups[i.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || i.color, this.scaleGroups[i.scaleLabel].color = i.color, this.scaleGroups[i.scaleLabel].scaleYLabels = i.autoScaling ? K : R, this.scaleGroups[i.scaleLabel].zeroPosition = i.autoScaling ? Y : T, this.scaleGroups[i.scaleLabel].individualMax = i.autoScaling ? o : t, this.scaleGroups[i.scaleLabel].scaleLabel = i.scaleLabel, this.scaleGroups[i.scaleLabel].id = i.id, this.scaleGroups[i.scaleLabel].yOffset = S, this.scaleGroups[i.scaleLabel].individualHeight = k, this.scaleGroups[i.scaleLabel].autoScaleYLabels = K, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((
|
|
491
|
+
this.scaleGroups[i.scaleLabel].name = i.name, this.scaleGroups[i.scaleLabel].groupName = i.scaleLabel, this.scaleGroups[i.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || i.color, this.scaleGroups[i.scaleLabel].color = i.color, this.scaleGroups[i.scaleLabel].scaleYLabels = i.autoScaling ? K : R, this.scaleGroups[i.scaleLabel].zeroPosition = i.autoScaling ? Y : T, this.scaleGroups[i.scaleLabel].individualMax = i.autoScaling ? o : t, this.scaleGroups[i.scaleLabel].scaleLabel = i.scaleLabel, this.scaleGroups[i.scaleLabel].id = i.id, this.scaleGroups[i.scaleLabel].yOffset = S, this.scaleGroups[i.scaleLabel].individualHeight = k, this.scaleGroups[i.scaleLabel].autoScaleYLabels = K, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((A) => A.scaleLabel === i.scaleLabel).length === 1;
|
|
492
492
|
const Q = this.mutableConfig.useIndividualScale ? i.autoScaling ? Y : T : this.zero, re = Math.max(Math.max(i.autoScaling ? Y : R.at(-1).y || 0, this.drawingArea.top), Q);
|
|
493
493
|
return {
|
|
494
494
|
...i,
|
|
@@ -505,11 +505,11 @@ const ot = ne(), ht = {
|
|
|
505
505
|
i.autoScaling ? E : W,
|
|
506
506
|
re
|
|
507
507
|
) : this.createIndividualArea(
|
|
508
|
-
i.autoScaling ? E.filter((
|
|
508
|
+
i.autoScaling ? E.filter((A) => A.value !== null) : W.filter((A) => A.value !== null),
|
|
509
509
|
re
|
|
510
|
-
) : this.createIndividualArea(W.filter((
|
|
510
|
+
) : this.createIndividualArea(W.filter((A) => A.value !== null), re) : "",
|
|
511
511
|
curveAreas: i.useArea ? ce(
|
|
512
|
-
i.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((
|
|
512
|
+
i.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((A) => A.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((A) => A.value !== null),
|
|
513
513
|
re,
|
|
514
514
|
this.FINAL_CONFIG.line.cutNullValues
|
|
515
515
|
) : [],
|
|
@@ -519,18 +519,18 @@ const ot = ne(), ht = {
|
|
|
519
519
|
});
|
|
520
520
|
},
|
|
521
521
|
plotSet() {
|
|
522
|
-
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length,
|
|
522
|
+
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (c - 1) : 0, e = this.drawingArea.height - l;
|
|
523
523
|
return r.filter((i) => i.type === "plot").map((i) => {
|
|
524
524
|
this.checkAutoScaleError(i);
|
|
525
|
-
const
|
|
526
|
-
i.absoluteValues.filter((w) => ![null, void 0].includes(w)).map((w) => (w -
|
|
525
|
+
const y = this.scaleGroups[i.scaleLabel].min, z = this.scaleGroups[i.scaleLabel].max;
|
|
526
|
+
i.absoluteValues.filter((w) => ![null, void 0].includes(w)).map((w) => (w - y) / (z - y));
|
|
527
527
|
const O = {
|
|
528
|
-
valueMin:
|
|
528
|
+
valueMin: y,
|
|
529
529
|
valueMax: z
|
|
530
530
|
}, N = {
|
|
531
531
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
532
532
|
min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
|
|
533
|
-
}, F = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, v = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(N.min, N.max === N.min ? N.max * v : N.max, F), L = this.calculateNiceScaleWithExactExtremes(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * v : O.valueMax, F), b = m.min >= 0 ? 0 : Math.abs(m.min), M = 0, H = m.max + b, t = L.max + Math.abs(M), o = i.stackIndex, n = c - 1 - o, g = f ? 1 - i.cumulatedStackRatio : 0, p = f ? e * g +
|
|
533
|
+
}, F = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, v = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(N.min, N.max === N.min ? N.max * v : N.max, F), L = this.calculateNiceScaleWithExactExtremes(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * v : O.valueMax, F), b = m.min >= 0 ? 0 : Math.abs(m.min), M = 0, H = m.max + b, t = L.max + Math.abs(M), o = i.stackIndex, n = c - 1 - o, g = f ? 1 - i.cumulatedStackRatio : 0, p = f ? e * g + h * n : 0, S = f ? e * i.stackRatio : this.drawingArea.height, k = this.drawingArea.bottom - p - S * b / H, T = this.drawingArea.bottom - p - S * M / t, Y = i.series.map((w, P) => {
|
|
534
534
|
const C = this.mutableConfig.useIndividualScale ? (i.absoluteValues[P] + Math.abs(b)) / H : this.ratioToMax(w);
|
|
535
535
|
return {
|
|
536
536
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * P),
|
|
@@ -581,14 +581,14 @@ const ot = ne(), ht = {
|
|
|
581
581
|
l.add(i);
|
|
582
582
|
}), l.size;
|
|
583
583
|
}
|
|
584
|
-
const c = r(this.absoluteDataset.filter((f) => !this.segregatedSeries.includes(f.id))),
|
|
584
|
+
const c = r(this.absoluteDataset.filter((f) => !this.segregatedSeries.includes(f.id))), h = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? c * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
585
585
|
return {
|
|
586
586
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
587
587
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
588
588
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
589
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
589
|
+
left: this.FINAL_CONFIG.chart.padding.left + h,
|
|
590
590
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
591
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
591
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + h)
|
|
592
592
|
};
|
|
593
593
|
},
|
|
594
594
|
max() {
|
|
@@ -635,13 +635,13 @@ const ot = ne(), ht = {
|
|
|
635
635
|
},
|
|
636
636
|
table() {
|
|
637
637
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
638
|
-
const r = this.relativeDataset.map((
|
|
639
|
-
label:
|
|
640
|
-
color:
|
|
641
|
-
type:
|
|
638
|
+
const r = this.relativeDataset.map((h) => ({
|
|
639
|
+
label: h.name,
|
|
640
|
+
color: h.color,
|
|
641
|
+
type: h.type
|
|
642
642
|
})), c = [];
|
|
643
|
-
return this.timeLabels.forEach((
|
|
644
|
-
const l = [
|
|
643
|
+
return this.timeLabels.forEach((h, f) => {
|
|
644
|
+
const l = [h.text];
|
|
645
645
|
this.relativeDataset.forEach((e) => {
|
|
646
646
|
l.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
647
647
|
}), c.push(l);
|
|
@@ -651,20 +651,20 @@ const ot = ne(), ht = {
|
|
|
651
651
|
const r = this.FINAL_CONFIG.table.showSum;
|
|
652
652
|
let c = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
653
653
|
r && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
654
|
-
let
|
|
654
|
+
let h = [];
|
|
655
655
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
656
|
-
const i = this.relativeDataset.map((
|
|
657
|
-
|
|
656
|
+
const i = this.relativeDataset.map((y) => y.absoluteValues[e] ?? 0).reduce((y, z) => y + z, 0);
|
|
657
|
+
h.push(
|
|
658
658
|
[
|
|
659
659
|
this.timeLabels[e].text ?? "-"
|
|
660
660
|
].concat(this.relativeDataset.map(
|
|
661
|
-
(
|
|
662
|
-
|
|
663
|
-
|
|
661
|
+
(y) => this.applyDataLabel(
|
|
662
|
+
y.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : y.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
663
|
+
y.absoluteValues[e] ?? 0,
|
|
664
664
|
this.dataLabel({
|
|
665
|
-
p:
|
|
666
|
-
v:
|
|
667
|
-
s:
|
|
665
|
+
p: y.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
666
|
+
v: y.absoluteValues[e] ?? 0,
|
|
667
|
+
s: y.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
668
668
|
r: this.FINAL_CONFIG.table.rounding
|
|
669
669
|
})
|
|
670
670
|
)
|
|
@@ -684,7 +684,7 @@ const ot = ne(), ht = {
|
|
|
684
684
|
},
|
|
685
685
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
686
686
|
}, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
687
|
-
return { head: c, body:
|
|
687
|
+
return { head: c, body: h, config: f, colNames: l };
|
|
688
688
|
},
|
|
689
689
|
dataTooltipSlot() {
|
|
690
690
|
return {
|
|
@@ -704,7 +704,7 @@ const ot = ne(), ht = {
|
|
|
704
704
|
name: r.name,
|
|
705
705
|
color: r.color,
|
|
706
706
|
type: r.type,
|
|
707
|
-
value: r.absoluteValues.find((c,
|
|
707
|
+
value: r.absoluteValues.find((c, h) => h === this.selectedSerieIndex),
|
|
708
708
|
comments: r.comments || [],
|
|
709
709
|
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
710
710
|
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
@@ -712,7 +712,7 @@ const ot = ne(), ht = {
|
|
|
712
712
|
},
|
|
713
713
|
tooltipContent() {
|
|
714
714
|
let r = "", c = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
|
|
715
|
-
const
|
|
715
|
+
const h = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
716
716
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
717
717
|
seriesIndex: this.selectedSerieIndex,
|
|
718
718
|
datapoint: this.selectedSeries,
|
|
@@ -729,7 +729,7 @@ const ot = ne(), ht = {
|
|
|
729
729
|
lines: this.lineSet,
|
|
730
730
|
plots: this.plotSet,
|
|
731
731
|
config: this.FINAL_CONFIG
|
|
732
|
-
}) : (
|
|
732
|
+
}) : (h && h.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h.text}</div>`), this.selectedSeries.forEach((l) => {
|
|
733
733
|
if (this.isSafeValue(l.value)) {
|
|
734
734
|
let e = "", i = "";
|
|
735
735
|
switch (this.icons[l.type]) {
|
|
@@ -811,14 +811,14 @@ const ot = ne(), ht = {
|
|
|
811
811
|
(N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
|
|
812
812
|
);
|
|
813
813
|
if (!c.length) return [];
|
|
814
|
-
const { left:
|
|
814
|
+
const { left: h, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, i = this.niceScale.min, z = this.niceScale.max - i, O = (N) => {
|
|
815
815
|
const F = (N - 0) / z;
|
|
816
816
|
return l - F * e;
|
|
817
817
|
};
|
|
818
818
|
return c.map((N) => {
|
|
819
819
|
const { yAxis: { yTop: F, yBottom: v, label: m } } = N, L = F != null && v != null && F !== v, b = F == null ? null : O(F), M = v == null ? null : O(v), H = this.getTextMeasurer(m.fontSize);
|
|
820
820
|
H.font = `${m.fontSize}px sans-serif`;
|
|
821
|
-
const t = H.measureText(m.text).width, o = m.fontSize, n = (m.position === "start" ?
|
|
821
|
+
const t = H.measureText(m.text).width, o = m.fontSize, n = (m.position === "start" ? h + m.padding.left : f - m.padding.right) + m.offsetX, p = (b != null && M != null ? Math.min(b, M) : b ?? M) - m.fontSize / 3 + m.offsetY - m.padding.top;
|
|
822
822
|
let S;
|
|
823
823
|
m.textAnchor === "middle" ? S = n - t / 2 - m.padding.left : m.textAnchor === "end" ? S = n - t - m.padding.right : S = n - m.padding.left;
|
|
824
824
|
const k = p - o * 0.75 - m.padding.top;
|
|
@@ -830,7 +830,7 @@ const ot = ne(), ht = {
|
|
|
830
830
|
yTop: b,
|
|
831
831
|
yBottom: M,
|
|
832
832
|
config: N.yAxis,
|
|
833
|
-
x1:
|
|
833
|
+
x1: h,
|
|
834
834
|
x2: f,
|
|
835
835
|
_text: { x: n, y: p },
|
|
836
836
|
_box: {
|
|
@@ -884,8 +884,8 @@ const ot = ne(), ht = {
|
|
|
884
884
|
functionReturnsString: Se,
|
|
885
885
|
hasDeepProperty: Ce,
|
|
886
886
|
isFunction: Le,
|
|
887
|
-
isSafeValue:
|
|
888
|
-
largestTriangleThreeBucketsArray:
|
|
887
|
+
isSafeValue: ye,
|
|
888
|
+
largestTriangleThreeBucketsArray: Ae,
|
|
889
889
|
objectIsEmpty: _e,
|
|
890
890
|
setOpacity: Fe,
|
|
891
891
|
shiftHue: be,
|
|
@@ -904,19 +904,19 @@ const ot = ne(), ht = {
|
|
|
904
904
|
usesSelectTimeLabelEvent() {
|
|
905
905
|
return !!this.$.vnode.props?.onSelectTimeLabel;
|
|
906
906
|
},
|
|
907
|
-
getTextMeasurer(r, c,
|
|
907
|
+
getTextMeasurer(r, c, h) {
|
|
908
908
|
if (!this._textMeasurer) {
|
|
909
909
|
const f = document.createElement("canvas");
|
|
910
910
|
this._textMeasurer = f.getContext("2d");
|
|
911
911
|
}
|
|
912
|
-
return this._textMeasurer.font = `${
|
|
912
|
+
return this._textMeasurer.font = `${h || "normal"} ${r}px ${c || "sans-serif"}`, this._textMeasurer;
|
|
913
913
|
},
|
|
914
914
|
hideTags() {
|
|
915
915
|
const r = document.querySelectorAll(".vue-ui-xy-tag");
|
|
916
916
|
r.length && Array.from(r).forEach((c) => c.style.opacity = "0");
|
|
917
917
|
},
|
|
918
|
-
setTagRef(r, c,
|
|
919
|
-
|
|
918
|
+
setTagRef(r, c, h, f, l) {
|
|
919
|
+
h && (this.tagRefs[`${r}_${c}_${f}_${l}`] = h);
|
|
920
920
|
},
|
|
921
921
|
setUserOptionsVisibility(r = !1) {
|
|
922
922
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = r);
|
|
@@ -925,7 +925,7 @@ const ot = ne(), ht = {
|
|
|
925
925
|
this.isAnnotator = !this.isAnnotator;
|
|
926
926
|
},
|
|
927
927
|
selectTimeLabel(r, c) {
|
|
928
|
-
const
|
|
928
|
+
const h = this.relativeDataset.map((f) => ({
|
|
929
929
|
shape: f.shape || null,
|
|
930
930
|
name: f.name,
|
|
931
931
|
color: f.color,
|
|
@@ -936,16 +936,16 @@ const ot = ne(), ht = {
|
|
|
936
936
|
suffix: f.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
937
937
|
}));
|
|
938
938
|
this.$emit("selectTimeLabel", {
|
|
939
|
-
datapoint:
|
|
939
|
+
datapoint: h,
|
|
940
940
|
absoluteIndex: r.absoluteIndex,
|
|
941
941
|
label: r.text
|
|
942
942
|
});
|
|
943
943
|
},
|
|
944
944
|
getHighlightAreaPosition(r) {
|
|
945
|
-
const c = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (r.from - this.slicer.start),
|
|
945
|
+
const c = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (r.from - this.slicer.start), h = this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span;
|
|
946
946
|
return {
|
|
947
947
|
x: c < this.drawingArea.left ? this.drawingArea.left : c,
|
|
948
|
-
width:
|
|
948
|
+
width: h
|
|
949
949
|
};
|
|
950
950
|
},
|
|
951
951
|
prepareConfig() {
|
|
@@ -956,9 +956,9 @@ const ot = ne(), ht = {
|
|
|
956
956
|
userConfig: this.config,
|
|
957
957
|
defaultConfig: r
|
|
958
958
|
});
|
|
959
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? c.chart.highlightArea = this.config.chart.highlightArea : c.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? c.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : c.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? c.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : c.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? c.chart.zoom.startIndex = this.config.chart.zoom.startIndex : c.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? c.chart.zoom.endIndex = this.config.chart.zoom.endIndex : c.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? c.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : c.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? c.chart.annotations = this.config.chart.annotations.map((
|
|
959
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? c.chart.highlightArea = this.config.chart.highlightArea : c.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? c.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : c.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? c.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : c.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? c.chart.zoom.startIndex = this.config.chart.zoom.startIndex : c.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? c.chart.zoom.endIndex = this.config.chart.zoom.endIndex : c.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? c.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : c.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? c.chart.annotations = this.config.chart.annotations.map((h) => ae({
|
|
960
960
|
defaultConfig: r.chart.annotations[0],
|
|
961
|
-
userConfig:
|
|
961
|
+
userConfig: h
|
|
962
962
|
})) : c.chart.annotations = [], c.theme ? {
|
|
963
963
|
...ae({
|
|
964
964
|
userConfig: this.themes.vue_ui_xy[c.theme] || this.config,
|
|
@@ -979,9 +979,9 @@ const ot = ne(), ht = {
|
|
|
979
979
|
index: c
|
|
980
980
|
});
|
|
981
981
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((r) => {
|
|
982
|
-
r.series.forEach((c,
|
|
982
|
+
r.series.forEach((c, h) => {
|
|
983
983
|
this.isSafeValue(c) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
984
|
-
-----> The serie '${r.name}' contains the value '${c}' at index ${
|
|
984
|
+
-----> The serie '${r.name}' contains the value '${c}' at index ${h}.
|
|
985
985
|
'${c}' was converted to null to allow the chart to display.`);
|
|
986
986
|
});
|
|
987
987
|
}), this.showUserOptionsOnChartHover = this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.keepUserOptionState = this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave, this.userOptionsVisible = !this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.mutableConfig = {
|
|
@@ -995,21 +995,21 @@ const ot = ne(), ht = {
|
|
|
995
995
|
}, this.FINAL_CONFIG.responsive) {
|
|
996
996
|
const c = this.$refs.chart.parentNode;
|
|
997
997
|
this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
998
|
-
const { height:
|
|
998
|
+
const { height: h, width: f } = c.getBoundingClientRect();
|
|
999
999
|
let l = null, e = 0;
|
|
1000
1000
|
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
|
|
1001
|
-
let i = null,
|
|
1002
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (i = this.$refs.chartSlicer.$el,
|
|
1001
|
+
let i = null, y = 0;
|
|
1002
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (i = this.$refs.chartSlicer.$el, y = i.getBoundingClientRect().height);
|
|
1003
1003
|
let z = null, O = 0;
|
|
1004
1004
|
this.FINAL_CONFIG.chart.legend.show && this.$refs.chartLegend && (z = this.$refs.chartLegend, O = z.getBoundingClientRect().height);
|
|
1005
1005
|
let N = 0;
|
|
1006
1006
|
this.$refs.source && (N = this.$refs.source.getBoundingClientRect().height);
|
|
1007
1007
|
let F = 0;
|
|
1008
|
-
this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height), this.height =
|
|
1008
|
+
this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height), this.height = h - e - O - y - N - F - 12, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
1009
1009
|
const v = new ResizeObserver((m) => {
|
|
1010
1010
|
for (const L of m)
|
|
1011
|
-
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ?
|
|
1012
|
-
this.height = L.contentRect.height - e - O -
|
|
1011
|
+
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ? y = this.$refs.chartSlicer.$el.getBoundingClientRect().height : y = 0, this.$refs.chartLegend ? O = this.$refs.chartLegend.getBoundingClientRect().height : O = 0, this.$refs.source ? N = this.$refs.source.getBoundingClientRect().height : N = 0, this.$refs.noTitle ? F = this.$refs.noTitle.getBoundingClientRect().height : F = 0, requestAnimationFrame(() => {
|
|
1012
|
+
this.height = L.contentRect.height - e - O - y - N - F - 12, this.width = L.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
1013
1013
|
});
|
|
1014
1014
|
});
|
|
1015
1015
|
this.resizeObserver = v, this.observedEl = c, v.observe(c);
|
|
@@ -1079,18 +1079,18 @@ const ot = ne(), ht = {
|
|
|
1079
1079
|
},
|
|
1080
1080
|
createArea(r, c) {
|
|
1081
1081
|
if (!r[0]) return [-10, -10, "", -10, -10];
|
|
1082
|
-
const
|
|
1082
|
+
const h = { x: r[0].x, y: c }, f = { x: r.at(-1).x, y: c }, l = [];
|
|
1083
1083
|
return r.forEach((e) => {
|
|
1084
1084
|
l.push(`${e.x},${e.y} `);
|
|
1085
|
-
}), [
|
|
1085
|
+
}), [h.x, h.y, ...l, f.x, f.y].toString();
|
|
1086
1086
|
},
|
|
1087
1087
|
createStar: ie,
|
|
1088
1088
|
createPolygonPath: X,
|
|
1089
1089
|
fillArray(r, c) {
|
|
1090
|
-
let
|
|
1090
|
+
let h = Array(r).fill(0);
|
|
1091
1091
|
for (let f = 0; f < c.length && f < r; f += 1)
|
|
1092
|
-
|
|
1093
|
-
return
|
|
1092
|
+
h[f] = c[f];
|
|
1093
|
+
return h;
|
|
1094
1094
|
},
|
|
1095
1095
|
async setupSlicer() {
|
|
1096
1096
|
(this.FINAL_CONFIG.chart.zoom.startIndex !== null || this.FINAL_CONFIG.chart.zoom.endIndex !== null) && this.$refs.chartSlicer ? (this.FINAL_CONFIG.chart.zoom.startIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)), this.FINAL_CONFIG.chart.zoom.endIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex + 1)))) : (this.slicer = {
|
|
@@ -1102,7 +1102,7 @@ const ot = ne(), ht = {
|
|
|
1102
1102
|
this.setupSlicer();
|
|
1103
1103
|
},
|
|
1104
1104
|
validSlicerEnd(r) {
|
|
1105
|
-
const c = Math.max(...this.dataset.map((
|
|
1105
|
+
const c = Math.max(...this.dataset.map((h) => this.largestTriangleThreeBucketsArray({ data: h.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
1106
1106
|
return r > c ? c : r < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && r < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : r;
|
|
1107
1107
|
},
|
|
1108
1108
|
calcRectHeight(r) {
|
|
@@ -1128,12 +1128,12 @@ const ot = ne(), ht = {
|
|
|
1128
1128
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(r);
|
|
1129
1129
|
},
|
|
1130
1130
|
findClosestValue(r, c) {
|
|
1131
|
-
let
|
|
1131
|
+
let h = c[0], f = Math.abs(r - c[0]);
|
|
1132
1132
|
for (let l = 1; l < c.length; l += 1) {
|
|
1133
1133
|
const e = Math.abs(r - c[l]);
|
|
1134
|
-
e < f && c[l] < r && (
|
|
1134
|
+
e < f && c[l] < r && (h = c[l], f = e);
|
|
1135
1135
|
}
|
|
1136
|
-
return
|
|
1136
|
+
return h;
|
|
1137
1137
|
},
|
|
1138
1138
|
ratioToMax(r) {
|
|
1139
1139
|
return r / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
@@ -1163,8 +1163,15 @@ const ot = ne(), ht = {
|
|
|
1163
1163
|
},
|
|
1164
1164
|
async getImage({ scale: r = 2 } = {}) {
|
|
1165
1165
|
if (!this.$refs.chart) return;
|
|
1166
|
-
const {
|
|
1167
|
-
return {
|
|
1166
|
+
const { width: c, height: h } = this.$refs.chart.getBoundingClientRect(), f = c / h, { imageUri: l, base64: e } = await nt({ domElement: this.$refs.chart, base64: !0, img: !0, scale: r });
|
|
1167
|
+
return {
|
|
1168
|
+
imageUri: l,
|
|
1169
|
+
base64: e,
|
|
1170
|
+
title: this.FINAL_CONFIG.chart.title.text,
|
|
1171
|
+
width: c,
|
|
1172
|
+
height: h,
|
|
1173
|
+
aspectRatio: f
|
|
1174
|
+
};
|
|
1168
1175
|
},
|
|
1169
1176
|
segregate(r) {
|
|
1170
1177
|
if (this.segregatedSeries.includes(r.id))
|
|
@@ -1192,7 +1199,7 @@ const ot = ne(), ht = {
|
|
|
1192
1199
|
async generatePdf() {
|
|
1193
1200
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1194
1201
|
try {
|
|
1195
|
-
const { default: r } = await import("./pdf-
|
|
1202
|
+
const { default: r } = await import("./pdf-DWZ8IB56.js");
|
|
1196
1203
|
await r({
|
|
1197
1204
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1198
1205
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1206,7 +1213,7 @@ const ot = ne(), ht = {
|
|
|
1206
1213
|
}, 100);
|
|
1207
1214
|
},
|
|
1208
1215
|
generateCsv(r = null) {
|
|
1209
|
-
const c = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]],
|
|
1216
|
+
const c = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], h = ["", ...this.table.head.map((i) => i.label)], f = this.table.body, l = c.concat([h]).concat(f), e = this.createCsvContent(l);
|
|
1210
1217
|
r ? r(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1211
1218
|
},
|
|
1212
1219
|
showSpinnerImage() {
|
|
@@ -1215,7 +1222,7 @@ const ot = ne(), ht = {
|
|
|
1215
1222
|
async generateImage() {
|
|
1216
1223
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1217
1224
|
try {
|
|
1218
|
-
const { default: r } = await import("./img-
|
|
1225
|
+
const { default: r } = await import("./img-utitT2Gd.js");
|
|
1219
1226
|
await r({
|
|
1220
1227
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1221
1228
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1235,10 +1242,10 @@ const ot = ne(), ht = {
|
|
|
1235
1242
|
ref: "noTitle",
|
|
1236
1243
|
class: "vue-data-ui-no-title-space",
|
|
1237
1244
|
style: "height:36px; width: 100%; background:transparent"
|
|
1238
|
-
}, gt = ["viewBox", "aria-label"], ft = ["x", "y", "width", "height"], It = { key: 1 }, xt = { class: "vue-ui-xy-grid" }, Nt = ["stroke", "x1", "x2", "y1", "y2"], mt = ["stroke", "x1", "x2", "y1", "y2"], bt = { key: 1 }, Ft = ["x1", "x2", "y1", "y2", "stroke"], _t = ["x1", "x2", "y1", "y2", "stroke"],
|
|
1245
|
+
}, gt = ["viewBox", "aria-label"], ft = ["x", "y", "width", "height"], It = { key: 1 }, xt = { class: "vue-ui-xy-grid" }, Nt = ["stroke", "x1", "x2", "y1", "y2"], mt = ["stroke", "x1", "x2", "y1", "y2"], bt = { key: 1 }, Ft = ["x1", "x2", "y1", "y2", "stroke"], _t = ["x1", "x2", "y1", "y2", "stroke"], At = ["x1", "x2", "y1", "y2", "stroke"], yt = { key: 3 }, Lt = ["x1", "x2", "y1", "y2", "stroke"], Ct = { key: 4 }, St = ["y1", "y2", "x1", "x2", "stroke"], kt = ["id"], wt = ["stop-color"], Ot = ["stop-color"], Gt = ["stop-color"], vt = ["id"], pt = ["stop-color"], zt = ["stop-color"], Mt = ["stop-color"], Tt = ["id"], Pt = ["stop-color"], Vt = ["stop-color"], Rt = ["id"], Ht = ["stop-color"], Dt = ["stop-color"], Bt = ["id"], Wt = ["stop-color"], Et = ["stop-color"], Yt = ["x", "y", "height", "width", "fill"], qt = ["x", "y", "width"], Xt = ["x", "y", "height", "width", "fill"], Ut = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jt = ["width", "x", "y"], Kt = { key: 0 }, Qt = ["id"], jt = ["fill"], $t = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], el = ["x", "y", "font-size", "fill"], tl = ["stroke", "x1", "x2", "y1", "y2"], ll = { key: 2 }, rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], al = { key: 4 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["fill", "font-size", "transform"], cl = ["x1", "x2", "y1", "y2", "stroke"], ol = ["x", "y", "font-size", "fill"], hl = ["x1", "x2", "y1", "y2", "stroke"], ul = ["x", "y", "font-size", "fill"], dl = ["width", "x", "y"], gl = { style: { width: "100%" } }, fl = { key: 0 }, Il = ["id"], xl = ["fill"], Nl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ml = ["x", "y", "font-size", "fill"], bl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fl = ["d", "stroke", "stroke-width", "stroke-dasharray"], _l = { key: 5 }, Al = { key: 0 }, yl = ["d", "fill"], Ll = ["d", "fill"], Cl = ["d", "fill"], Sl = ["d", "fill"], kl = ["d", "stroke", "stroke-width", "stroke-dasharray"], wl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["width", "x", "y"], Gl = { style: { width: "100%" } }, vl = { key: 3 }, pl = ["id"], zl = ["fill"], Ml = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Tl = ["x", "y", "font-size", "fill"], Pl = { key: 6 }, Vl = ["x", "y", "font-size", "fill"], Rl = ["x", "y", "font-size", "fill", "font-weight"], Hl = { key: 7 }, Dl = ["x", "y", "font-size", "fill"], Bl = { key: 8 }, Wl = ["x", "y"], El = ["innerHTML"], Yl = ["x", "y"], ql = ["innerHTML"], Xl = ["x1", "x2", "y1", "y2", "stroke"], Ul = { key: 9 }, Zl = ["x", "y", "font-size", "fill"], Jl = { key: 10 }, Kl = ["x", "y"], Ql = ["innerHTML"], jl = ["x", "y"], $l = ["innerHTML"], er = ["x1", "x2", "y1", "y2", "stroke"], tr = ["x", "y", "font-size", "fill", "innerHTML"], lr = ["x", "y", "font-size", "fill", "innerHTML"], rr = ["x", "y", "font-size", "fill", "innerHTML"], ir = ["x", "y", "font-size", "fill", "innerHTML"], ar = ["id"], sr = ["stop-color"], nr = ["stop-color"], cr = ["x", "y", "width", "height", "fill", "onMouseenter"], or = ["font-size", "fill", "transform"], hr = ["x", "y", "font-size", "fill"], ur = { key: 12 }, dr = ["text-anchor", "font-size", "fill", "transform", "onClick"], gr = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], fr = { key: 13 }, Ir = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Nr = ["y", "x", "width", "height", "fill"], mr = ["id", "x", "y", "font-size", "fill", "text-anchor"], br = ["x", "y", "height", "width", "onMouseenter", "onClick"], Fr = {
|
|
1239
1246
|
key: 14,
|
|
1240
1247
|
style: { "pointer-events": "none" }
|
|
1241
|
-
}, _r = ["x", "y"],
|
|
1248
|
+
}, _r = ["x", "y"], Ar = ["cx", "cy", "r", "fill"], yr = {
|
|
1242
1249
|
key: 5,
|
|
1243
1250
|
class: "vue-data-ui-watermark"
|
|
1244
1251
|
}, Lr = {
|
|
@@ -1287,8 +1294,8 @@ const ot = ne(), ht = {
|
|
|
1287
1294
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1288
1295
|
"data-dom-to-png-ignore": ""
|
|
1289
1296
|
}, Xr = ["innerHTML"];
|
|
1290
|
-
function Ur(r, c,
|
|
1291
|
-
const i = q("PenAndPaper"),
|
|
1297
|
+
function Ur(r, c, h, f, l, e) {
|
|
1298
|
+
const i = q("PenAndPaper"), y = q("Title"), z = q("UserOptions"), O = q("PackageVersion"), N = q("Shape"), F = q("Skeleton"), v = q("Slicer"), m = q("Tooltip"), L = q("BaseIcon"), b = q("TableSparkline"), M = q("DataTable"), H = q("Accordion");
|
|
1292
1299
|
return a(), s("div", {
|
|
1293
1300
|
id: `vue-ui-xy_${l.uniqueId}`,
|
|
1294
1301
|
class: j(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -1304,15 +1311,15 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1304
1311
|
color: e.FINAL_CONFIG.chart.color,
|
|
1305
1312
|
active: l.isAnnotator,
|
|
1306
1313
|
onClose: e.toggleAnnotator
|
|
1307
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) :
|
|
1308
|
-
e.hasOptionsNoTitle ? (a(), s("div", dt, null, 512)) :
|
|
1314
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : u("", !0),
|
|
1315
|
+
e.hasOptionsNoTitle ? (a(), s("div", dt, null, 512)) : u("", !0),
|
|
1309
1316
|
e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
|
|
1310
1317
|
key: 2,
|
|
1311
1318
|
ref: "chartTitle",
|
|
1312
1319
|
class: "vue-ui-xy-title",
|
|
1313
1320
|
style: _(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1314
1321
|
}, [
|
|
1315
|
-
(a(), U(
|
|
1322
|
+
(a(), U(y, {
|
|
1316
1323
|
key: `title_${l.titleStep}`,
|
|
1317
1324
|
config: {
|
|
1318
1325
|
title: {
|
|
@@ -1325,7 +1332,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1325
1332
|
}
|
|
1326
1333
|
}
|
|
1327
1334
|
}, null, 8, ["config"]))
|
|
1328
|
-
], 4)) :
|
|
1335
|
+
], 4)) : u("", !0),
|
|
1329
1336
|
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (a(), U(z, {
|
|
1330
1337
|
ref: "defails",
|
|
1331
1338
|
key: `user_options_${l.step}`,
|
|
@@ -1340,7 +1347,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1340
1347
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1341
1348
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1342
1349
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1343
|
-
hasStack:
|
|
1350
|
+
hasStack: h.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1344
1351
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1345
1352
|
isStacked: l.mutableConfig.isStacked,
|
|
1346
1353
|
isFullscreen: l.isFullscreen,
|
|
@@ -1435,7 +1442,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1435
1442
|
]),
|
|
1436
1443
|
key: "9"
|
|
1437
1444
|
} : void 0
|
|
1438
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) :
|
|
1445
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : u("", !0),
|
|
1439
1446
|
e.isDataset ? (a(), s("svg", {
|
|
1440
1447
|
key: 4,
|
|
1441
1448
|
ref: "svgRef",
|
|
@@ -1460,7 +1467,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1460
1467
|
}
|
|
1461
1468
|
}, [
|
|
1462
1469
|
G(r.$slots, "chart-background", {}, void 0, !0)
|
|
1463
|
-
], 8, ft)) :
|
|
1470
|
+
], 8, ft)) : u("", !0),
|
|
1464
1471
|
e.maxSeries > 0 ? (a(), s("g", It, [
|
|
1465
1472
|
I("g", xt, [
|
|
1466
1473
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
|
|
@@ -1473,7 +1480,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1473
1480
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1474
1481
|
"stroke-linecap": "round",
|
|
1475
1482
|
style: { animation: "none !important" }
|
|
1476
|
-
}, null, 8, Nt)) :
|
|
1483
|
+
}, null, 8, Nt)) : u("", !0),
|
|
1477
1484
|
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(d, { key: 2 }, x(e.allScales, (t) => (a(), s("g", null, [
|
|
1478
1485
|
t.id === l.selectedScale && t.yLabels.length ? (a(!0), s(d, { key: 0 }, x(t.yLabels, (o) => (a(), s("line", {
|
|
1479
1486
|
x1: e.drawingArea.left + e.xPadding,
|
|
@@ -1493,8 +1500,8 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1493
1500
|
"stroke-width": 0.5,
|
|
1494
1501
|
"stroke-linecap": "round",
|
|
1495
1502
|
style: { animation: "none !important" }
|
|
1496
|
-
}, null, 8,
|
|
1497
|
-
]))), 256)) :
|
|
1503
|
+
}, null, 8, At))), 256)) : u("", !0)
|
|
1504
|
+
]))), 256)) : u("", !0) : (a(), s(d, { key: 1 }, [
|
|
1498
1505
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
|
|
1499
1506
|
key: 0,
|
|
1500
1507
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1505,7 +1512,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1505
1512
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1506
1513
|
"stroke-linecap": "round",
|
|
1507
1514
|
style: { animation: "none !important" }
|
|
1508
|
-
}, null, 8, mt)) :
|
|
1515
|
+
}, null, 8, mt)) : u("", !0),
|
|
1509
1516
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", bt, [
|
|
1510
1517
|
(a(!0), s(d, null, x(e.yLabels, (t) => (a(), s("line", {
|
|
1511
1518
|
x1: e.drawingArea.left + e.xPadding,
|
|
@@ -1517,9 +1524,9 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1517
1524
|
"stroke-linecap": "round",
|
|
1518
1525
|
style: { animation: "none !important" }
|
|
1519
1526
|
}, null, 8, Ft))), 256))
|
|
1520
|
-
])) :
|
|
1527
|
+
])) : u("", !0)
|
|
1521
1528
|
], 64)),
|
|
1522
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g",
|
|
1529
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", yt, [
|
|
1523
1530
|
(a(!0), s(d, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, o) => (a(), s("line", {
|
|
1524
1531
|
key: `grid_vertical_line_${o}`,
|
|
1525
1532
|
x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
@@ -1530,7 +1537,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1530
1537
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1531
1538
|
style: { animation: "none !important" }
|
|
1532
1539
|
}, null, 8, Lt))), 128))
|
|
1533
|
-
])) :
|
|
1540
|
+
])) : u("", !0),
|
|
1534
1541
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", Ct, [
|
|
1535
1542
|
(a(!0), s(d, null, x(e.timeLabels, (t, o) => (a(), s("g", {
|
|
1536
1543
|
key: `time_label_${o}`
|
|
@@ -1546,10 +1553,10 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1546
1553
|
"stroke-width": 1,
|
|
1547
1554
|
"stroke-linecap": "round",
|
|
1548
1555
|
style: { animation: "none !important" }
|
|
1549
|
-
}, null, 8, St)) :
|
|
1550
|
-
], 64)) :
|
|
1556
|
+
}, null, 8, St)) : u("", !0)
|
|
1557
|
+
], 64)) : u("", !0)
|
|
1551
1558
|
]))), 128))
|
|
1552
|
-
])) :
|
|
1559
|
+
])) : u("", !0)
|
|
1553
1560
|
]),
|
|
1554
1561
|
(a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s("defs", {
|
|
1555
1562
|
key: `def_rect_${o}`
|
|
@@ -1679,9 +1686,9 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1679
1686
|
I("div", {
|
|
1680
1687
|
style: _(`padding:${t.caption.padding}px;text-align:${t.caption.textAlign};font-size:${t.caption.fontSize}px;color:${t.caption.color};font-weight:${t.caption.bold ? "bold" : "normal"}`)
|
|
1681
1688
|
}, V(t.caption.text), 5)
|
|
1682
|
-
], 12, qt)) :
|
|
1689
|
+
], 12, qt)) : u("", !0)
|
|
1683
1690
|
]))), 256))
|
|
1684
|
-
], 64)) :
|
|
1691
|
+
], 64)) : u("", !0)
|
|
1685
1692
|
]))), 256)),
|
|
1686
1693
|
I("g", null, [
|
|
1687
1694
|
(a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("g", {
|
|
@@ -1714,7 +1721,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1714
1721
|
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${o}_${l.uniqueId})` : `url(#rectGradient_neg_${o}_${l.uniqueId})` : t.color,
|
|
1715
1722
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1716
1723
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1717
|
-
}, null, 8, Ut)) :
|
|
1724
|
+
}, null, 8, Ut)) : u("", !0),
|
|
1718
1725
|
e.canShowValue(n.value) && r.$slots.pattern ? (a(), s("rect", {
|
|
1719
1726
|
key: 1,
|
|
1720
1727
|
x: e.calcRectX(n),
|
|
@@ -1725,7 +1732,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1725
1732
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`,
|
|
1726
1733
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1727
1734
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1728
|
-
}, null, 8, Zt)) :
|
|
1735
|
+
}, null, 8, Zt)) : u("", !0),
|
|
1729
1736
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1730
1737
|
key: 2,
|
|
1731
1738
|
style: { overflow: "visible" },
|
|
@@ -1737,7 +1744,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1737
1744
|
G(r.$slots, "plot-comment", {
|
|
1738
1745
|
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1739
1746
|
}, void 0, !0)
|
|
1740
|
-
], 8, Jt)) :
|
|
1747
|
+
], 8, Jt)) : u("", !0)
|
|
1741
1748
|
]))), 128)),
|
|
1742
1749
|
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", Kt, [
|
|
1743
1750
|
I("defs", null, [
|
|
@@ -1765,7 +1772,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1765
1772
|
stroke: t.color,
|
|
1766
1773
|
"stroke-dasharray": 2,
|
|
1767
1774
|
"marker-end": `url(#bar_arrow_${o})`
|
|
1768
|
-
}, null, 8, $t)) :
|
|
1775
|
+
}, null, 8, $t)) : u("", !0),
|
|
1769
1776
|
t.plots.length > 1 ? (a(), s("text", {
|
|
1770
1777
|
key: 1,
|
|
1771
1778
|
"text-anchor": "middle",
|
|
@@ -1777,9 +1784,9 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1777
1784
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1778
1785
|
s: "%",
|
|
1779
1786
|
r: 2
|
|
1780
|
-
})), 9, el)) :
|
|
1781
|
-
])) :
|
|
1782
|
-
], 6))), 128)) :
|
|
1787
|
+
})), 9, el)) : u("", !0)
|
|
1788
|
+
])) : u("", !0)
|
|
1789
|
+
], 6))), 128)) : u("", !0),
|
|
1783
1790
|
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
|
|
1784
1791
|
key: 1,
|
|
1785
1792
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1790,7 +1797,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1790
1797
|
y2: e.forceValidValue(e.zero),
|
|
1791
1798
|
"stroke-linecap": "round",
|
|
1792
1799
|
style: { animation: "none !important" }
|
|
1793
|
-
}, null, 8, tl)) :
|
|
1800
|
+
}, null, 8, tl)) : u("", !0),
|
|
1794
1801
|
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", ll, [
|
|
1795
1802
|
I("line", {
|
|
1796
1803
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1803,7 +1810,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1803
1810
|
"stroke-linecap": "round",
|
|
1804
1811
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1805
1812
|
}, null, 8, rl)
|
|
1806
|
-
])) :
|
|
1813
|
+
])) : u("", !0),
|
|
1807
1814
|
e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
|
|
1808
1815
|
key: 3,
|
|
1809
1816
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
@@ -1817,7 +1824,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1817
1824
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1818
1825
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1819
1826
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1820
|
-
}, null, 8, il)) :
|
|
1827
|
+
}, null, 8, il)) : u("", !0),
|
|
1821
1828
|
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", al, [
|
|
1822
1829
|
l.mutableConfig.useIndividualScale ? (a(), s(d, { key: 0 }, [
|
|
1823
1830
|
(a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", null, [
|
|
@@ -1852,7 +1859,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1852
1859
|
"stroke-width": 1,
|
|
1853
1860
|
"stroke-linecap": "round",
|
|
1854
1861
|
style: { animation: "none !important" }
|
|
1855
|
-
}, null, 8, cl)) :
|
|
1862
|
+
}, null, 8, cl)) : u("", !0)
|
|
1856
1863
|
], 64))), 256)),
|
|
1857
1864
|
(a(!0), s(d, null, x(t.yLabels, (o, n) => (a(), s("text", {
|
|
1858
1865
|
x: t.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
@@ -1885,7 +1892,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1885
1892
|
"stroke-width": "1",
|
|
1886
1893
|
"stroke-linecap": "round",
|
|
1887
1894
|
style: { animation: "none !important" }
|
|
1888
|
-
}, null, 8, hl)) :
|
|
1895
|
+
}, null, 8, hl)) : u("", !0),
|
|
1889
1896
|
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (a(), s("text", {
|
|
1890
1897
|
key: 1,
|
|
1891
1898
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
@@ -1902,9 +1909,9 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1902
1909
|
s: t.suffix,
|
|
1903
1910
|
r: 1
|
|
1904
1911
|
})
|
|
1905
|
-
) : ""), 9, ul)) :
|
|
1912
|
+
) : ""), 9, ul)) : u("", !0)
|
|
1906
1913
|
]))), 128))
|
|
1907
|
-
])) :
|
|
1914
|
+
])) : u("", !0),
|
|
1908
1915
|
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("g", {
|
|
1909
1916
|
key: `serie_plot_${o}`,
|
|
1910
1917
|
class: j(`serie_plot_${o}`),
|
|
@@ -1921,7 +1928,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1921
1928
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
|
|
1922
1929
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
1923
1930
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1924
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1931
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
1925
1932
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1926
1933
|
key: 1,
|
|
1927
1934
|
style: { overflow: "visible" },
|
|
@@ -1935,7 +1942,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1935
1942
|
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1936
1943
|
}, void 0, !0)
|
|
1937
1944
|
])
|
|
1938
|
-
], 8, dl)) :
|
|
1945
|
+
], 8, dl)) : u("", !0)
|
|
1939
1946
|
]))), 128)),
|
|
1940
1947
|
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", fl, [
|
|
1941
1948
|
I("defs", null, [
|
|
@@ -1963,7 +1970,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1963
1970
|
stroke: t.color,
|
|
1964
1971
|
"stroke-dasharray": 2,
|
|
1965
1972
|
"marker-end": `url(#plot_arrow_${o})`
|
|
1966
|
-
}, null, 8, Nl)) :
|
|
1973
|
+
}, null, 8, Nl)) : u("", !0),
|
|
1967
1974
|
t.plots.length > 1 ? (a(), s("text", {
|
|
1968
1975
|
key: 1,
|
|
1969
1976
|
"text-anchor": "middle",
|
|
@@ -1975,8 +1982,8 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1975
1982
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1976
1983
|
s: "%",
|
|
1977
1984
|
r: 2
|
|
1978
|
-
})), 9, ml)) :
|
|
1979
|
-
])) :
|
|
1985
|
+
})), 9, ml)) : u("", !0)
|
|
1986
|
+
])) : u("", !0)
|
|
1980
1987
|
], 6))), 128)),
|
|
1981
1988
|
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
|
|
1982
1989
|
key: `serie_line_${o}`,
|
|
@@ -1999,29 +2006,29 @@ function Ur(r, c, u, f, l, e) {
|
|
|
1999
2006
|
fill: "none",
|
|
2000
2007
|
"stroke-linecap": "round",
|
|
2001
2008
|
"stroke-linejoin": "round"
|
|
2002
|
-
}, null, 8, Fl)) :
|
|
2009
|
+
}, null, 8, Fl)) : u("", !0)
|
|
2003
2010
|
], 6))), 128)),
|
|
2004
2011
|
r.$slots.pattern ? (a(), s("defs", _l, [
|
|
2005
2012
|
(a(!0), s(d, null, x(e.safeDataset, (t, o) => G(r.$slots, "pattern", se({
|
|
2006
2013
|
key: `serie_pattern_slot_${o}`
|
|
2007
2014
|
}, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${o}` }), void 0, !0)), 128))
|
|
2008
|
-
])) :
|
|
2015
|
+
])) : u("", !0),
|
|
2009
2016
|
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
|
|
2010
2017
|
key: `serie_line_${o}`,
|
|
2011
2018
|
class: j(`serie_line_${o}`),
|
|
2012
2019
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2013
2020
|
}, [
|
|
2014
|
-
t.useArea && t.plots.length > 1 ? (a(), s("g",
|
|
2021
|
+
t.useArea && t.plots.length > 1 ? (a(), s("g", Al, [
|
|
2015
2022
|
t.smooth ? (a(!0), s(d, { key: 0 }, x(t.curveAreas, (n, g) => (a(), s(d, { key: g }, [
|
|
2016
2023
|
I("path", {
|
|
2017
2024
|
d: n,
|
|
2018
2025
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2019
|
-
}, null, 8,
|
|
2026
|
+
}, null, 8, yl),
|
|
2020
2027
|
r.$slots.pattern ? (a(), s("path", {
|
|
2021
2028
|
key: 0,
|
|
2022
2029
|
d: n,
|
|
2023
2030
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2024
|
-
}, null, 8, Ll)) :
|
|
2031
|
+
}, null, 8, Ll)) : u("", !0)
|
|
2025
2032
|
], 64))), 128)) : (a(!0), s(d, { key: 1 }, x(t.area.split(";"), (n, g) => (a(), s(d, { key: g }, [
|
|
2026
2033
|
I("path", {
|
|
2027
2034
|
d: `M${n}Z`,
|
|
@@ -2031,9 +2038,9 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2031
2038
|
key: 0,
|
|
2032
2039
|
d: `M${n}Z`,
|
|
2033
2040
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2034
|
-
}, null, 8, Sl)) :
|
|
2041
|
+
}, null, 8, Sl)) : u("", !0)
|
|
2035
2042
|
], 64))), 128))
|
|
2036
|
-
])) :
|
|
2043
|
+
])) : u("", !0),
|
|
2037
2044
|
t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
|
|
2038
2045
|
key: 1,
|
|
2039
2046
|
d: `M${t.curve}`,
|
|
@@ -2051,7 +2058,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2051
2058
|
fill: "none",
|
|
2052
2059
|
"stroke-linecap": "round",
|
|
2053
2060
|
"stroke-linejoin": "round"
|
|
2054
|
-
}, null, 8, wl)) :
|
|
2061
|
+
}, null, 8, wl)) : u("", !0),
|
|
2055
2062
|
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2056
2063
|
key: `circle_line_${o}_${g}`
|
|
2057
2064
|
}, [
|
|
@@ -2063,7 +2070,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2063
2070
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
|
|
2064
2071
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
2065
2072
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
2066
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
2073
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
2067
2074
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
2068
2075
|
key: 1,
|
|
2069
2076
|
style: { overflow: "visible" },
|
|
@@ -2077,7 +2084,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2077
2084
|
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
2078
2085
|
}, void 0, !0)
|
|
2079
2086
|
])
|
|
2080
|
-
], 8, Ol)) :
|
|
2087
|
+
], 8, Ol)) : u("", !0)
|
|
2081
2088
|
], 64))), 128)),
|
|
2082
2089
|
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", vl, [
|
|
2083
2090
|
I("defs", null, [
|
|
@@ -2105,7 +2112,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2105
2112
|
stroke: t.color,
|
|
2106
2113
|
"stroke-dasharray": 2,
|
|
2107
2114
|
"marker-end": `url(#line_arrow_${o})`
|
|
2108
|
-
}, null, 8, Ml)) :
|
|
2115
|
+
}, null, 8, Ml)) : u("", !0),
|
|
2109
2116
|
t.plots.length > 1 ? (a(), s("text", {
|
|
2110
2117
|
key: 1,
|
|
2111
2118
|
"text-anchor": "middle",
|
|
@@ -2117,8 +2124,8 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2117
2124
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
2118
2125
|
s: "%",
|
|
2119
2126
|
r: 2
|
|
2120
|
-
})), 9, Tl)) :
|
|
2121
|
-
])) :
|
|
2127
|
+
})), 9, Tl)) : u("", !0)
|
|
2128
|
+
])) : u("", !0)
|
|
2122
2129
|
], 6))), 128)),
|
|
2123
2130
|
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), s("g", Pl, [
|
|
2124
2131
|
(a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s(d, {
|
|
@@ -2148,7 +2155,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2148
2155
|
datapoint: n,
|
|
2149
2156
|
serie: t
|
|
2150
2157
|
}
|
|
2151
|
-
) : ""), 13, Vl)) :
|
|
2158
|
+
) : ""), 13, Vl)) : u("", !0),
|
|
2152
2159
|
n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
|
|
2153
2160
|
key: 1,
|
|
2154
2161
|
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
@@ -2158,10 +2165,10 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2158
2165
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2159
2166
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2160
2167
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2161
|
-
}, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) :
|
|
2168
|
+
}, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) : u("", !0)
|
|
2162
2169
|
], 64))), 128))
|
|
2163
2170
|
], 64))), 128))
|
|
2164
|
-
])) :
|
|
2171
|
+
])) : u("", !0),
|
|
2165
2172
|
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Hl, [
|
|
2166
2173
|
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2167
2174
|
key: `xLabel_plot_${o}`
|
|
@@ -2190,7 +2197,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2190
2197
|
datapoint: n,
|
|
2191
2198
|
serie: t
|
|
2192
2199
|
}
|
|
2193
|
-
) : ""), 13, Dl)) :
|
|
2200
|
+
) : ""), 13, Dl)) : u("", !0)
|
|
2194
2201
|
], 64))), 128))
|
|
2195
2202
|
], 64))), 128))
|
|
2196
2203
|
])) : (a(), s("g", Bl, [
|
|
@@ -2212,7 +2219,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2212
2219
|
"stroke-linecap": "round",
|
|
2213
2220
|
"stroke-dasharray": "2",
|
|
2214
2221
|
stroke: t.color
|
|
2215
|
-
}, null, 8, Xl)) :
|
|
2222
|
+
}, null, 8, Xl)) : u("", !0)
|
|
2216
2223
|
], 64)) : (a(), s(d, { key: 0 }, [
|
|
2217
2224
|
n && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
|
|
2218
2225
|
key: 0,
|
|
@@ -2235,7 +2242,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2235
2242
|
}
|
|
2236
2243
|
)
|
|
2237
2244
|
}, null, 12, El)
|
|
2238
|
-
], 12, Wl)) :
|
|
2245
|
+
], 12, Wl)) : u("", !0),
|
|
2239
2246
|
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
|
|
2240
2247
|
key: 1,
|
|
2241
2248
|
x: n.x - t.name.length * (l.fontSizes.plotLabels / 2),
|
|
@@ -2257,7 +2264,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2257
2264
|
}
|
|
2258
2265
|
)
|
|
2259
2266
|
}, null, 12, ql)
|
|
2260
|
-
], 12, Yl)) :
|
|
2267
|
+
], 12, Yl)) : u("", !0)
|
|
2261
2268
|
], 64))
|
|
2262
2269
|
], 64))), 128))
|
|
2263
2270
|
], 64))), 128))
|
|
@@ -2290,7 +2297,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2290
2297
|
datapoint: n,
|
|
2291
2298
|
serie: t
|
|
2292
2299
|
}
|
|
2293
|
-
) : ""), 13, Zl)) :
|
|
2300
|
+
) : ""), 13, Zl)) : u("", !0)
|
|
2294
2301
|
], 64))), 128))
|
|
2295
2302
|
], 64))), 128))
|
|
2296
2303
|
])) : (a(), s("g", Jl, [
|
|
@@ -2312,7 +2319,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2312
2319
|
"stroke-linecap": "round",
|
|
2313
2320
|
"stroke-dasharray": "2",
|
|
2314
2321
|
stroke: t.color
|
|
2315
|
-
}, null, 8, er)) :
|
|
2322
|
+
}, null, 8, er)) : u("", !0)
|
|
2316
2323
|
], 64)) : (a(), s(d, { key: 0 }, [
|
|
2317
2324
|
n && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
|
|
2318
2325
|
key: 0,
|
|
@@ -2335,7 +2342,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2335
2342
|
}
|
|
2336
2343
|
)
|
|
2337
2344
|
}, null, 12, Ql)
|
|
2338
|
-
], 12, Kl)) :
|
|
2345
|
+
], 12, Kl)) : u("", !0),
|
|
2339
2346
|
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
|
|
2340
2347
|
key: 1,
|
|
2341
2348
|
x: n.x,
|
|
@@ -2357,7 +2364,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2357
2364
|
}
|
|
2358
2365
|
)
|
|
2359
2366
|
}, null, 12, $l)
|
|
2360
|
-
], 12, jl)) :
|
|
2367
|
+
], 12, jl)) : u("", !0)
|
|
2361
2368
|
], 64))
|
|
2362
2369
|
], 64))), 128))
|
|
2363
2370
|
], 64))), 128))
|
|
@@ -2384,7 +2391,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2384
2391
|
maxWords: 2
|
|
2385
2392
|
}),
|
|
2386
2393
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2387
|
-
}, null, 12, tr)) :
|
|
2394
|
+
}, null, 12, tr)) : u("", !0),
|
|
2388
2395
|
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
|
|
2389
2396
|
key: 1,
|
|
2390
2397
|
x: n.x + l.fontSizes.plotLabels,
|
|
@@ -2401,7 +2408,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2401
2408
|
maxWords: 2
|
|
2402
2409
|
}),
|
|
2403
2410
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2404
|
-
}, null, 12, lr)) :
|
|
2411
|
+
}, null, 12, lr)) : u("", !0)
|
|
2405
2412
|
], 64))), 128))
|
|
2406
2413
|
], 64))), 128)),
|
|
2407
2414
|
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
@@ -2426,7 +2433,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2426
2433
|
maxWords: 2
|
|
2427
2434
|
}),
|
|
2428
2435
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2429
|
-
}, null, 12, rr)) :
|
|
2436
|
+
}, null, 12, rr)) : u("", !0),
|
|
2430
2437
|
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
|
|
2431
2438
|
key: 1,
|
|
2432
2439
|
x: n.x + l.fontSizes.plotLabels,
|
|
@@ -2443,7 +2450,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2443
2450
|
maxWords: 2
|
|
2444
2451
|
}),
|
|
2445
2452
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2446
|
-
}, null, 12, ir)) :
|
|
2453
|
+
}, null, 12, ir)) : u("", !0)
|
|
2447
2454
|
], 64))), 128))
|
|
2448
2455
|
], 64))), 128)),
|
|
2449
2456
|
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), s(d, { key: 11 }, [
|
|
@@ -2476,7 +2483,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2476
2483
|
onMouseenter: (n) => l.selectedScale = t.groupId,
|
|
2477
2484
|
onMouseleave: c[0] || (c[0] = (n) => l.selectedScale = null)
|
|
2478
2485
|
}, null, 40, cr))), 256))
|
|
2479
|
-
], 64)) :
|
|
2486
|
+
], 64)) : u("", !0),
|
|
2480
2487
|
I("g", null, [
|
|
2481
2488
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (a(), s("text", {
|
|
2482
2489
|
key: 0,
|
|
@@ -2485,7 +2492,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2485
2492
|
transform: `translate(${l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2486
2493
|
"text-anchor": "middle",
|
|
2487
2494
|
style: { transition: "none" }
|
|
2488
|
-
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, or)) :
|
|
2495
|
+
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, or)) : u("", !0),
|
|
2489
2496
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
|
|
2490
2497
|
key: 1,
|
|
2491
2498
|
"text-anchor": "middle",
|
|
@@ -2493,7 +2500,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2493
2500
|
y: e.drawingArea.bottom + l.fontSizes.yAxis + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2494
2501
|
"font-size": l.fontSizes.yAxis,
|
|
2495
2502
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2496
|
-
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hr)) :
|
|
2503
|
+
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hr)) : u("", !0)
|
|
2497
2504
|
]),
|
|
2498
2505
|
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", ur, [
|
|
2499
2506
|
r.$slots["time-label"] ? (a(!0), s(d, { key: 0 }, x(e.timeLabels, (t, o) => G(r.$slots, "time-label", se({
|
|
@@ -2542,9 +2549,9 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2542
2549
|
}),
|
|
2543
2550
|
onClick: () => e.selectTimeLabel(t, o)
|
|
2544
2551
|
}, V(t.text || ""), 13, dr))
|
|
2545
|
-
], 64)) :
|
|
2552
|
+
], 64)) : u("", !0)
|
|
2546
2553
|
]))), 128))
|
|
2547
|
-
])) :
|
|
2554
|
+
])) : u("", !0),
|
|
2548
2555
|
e.annotationsY.length && !l.mutableConfig.isStacked ? (a(), s("g", fr, [
|
|
2549
2556
|
(a(!0), s(d, null, x(e.annotationsY, (t) => (a(), s("g", {
|
|
2550
2557
|
key: t.uid
|
|
@@ -2560,7 +2567,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2560
2567
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2561
2568
|
"stroke-linecap": "round",
|
|
2562
2569
|
style: { animation: "none !important" }
|
|
2563
|
-
}, null, 8, Ir)) :
|
|
2570
|
+
}, null, 8, Ir)) : u("", !0),
|
|
2564
2571
|
t.yBottom && t.show && isFinite(t.yBottom) ? (a(), s("line", {
|
|
2565
2572
|
key: 1,
|
|
2566
2573
|
x1: t.x1,
|
|
@@ -2572,7 +2579,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2572
2579
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2573
2580
|
"stroke-linecap": "round",
|
|
2574
2581
|
style: { animation: "none !important" }
|
|
2575
|
-
}, null, 8, xr)) :
|
|
2582
|
+
}, null, 8, xr)) : u("", !0),
|
|
2576
2583
|
t.hasArea && t.show && isFinite(t.yTop) && isFinite(t.yBottom) ? (a(), s("rect", {
|
|
2577
2584
|
key: 2,
|
|
2578
2585
|
y: Math.min(t.yTop, t.yBottom),
|
|
@@ -2581,11 +2588,11 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2581
2588
|
height: e.checkNaN(t.areaHeight, 0),
|
|
2582
2589
|
fill: e.setOpacity(t.config.area.fill, t.config.area.opacity),
|
|
2583
2590
|
style: { animation: "none !important" }
|
|
2584
|
-
}, null, 8, Nr)) :
|
|
2591
|
+
}, null, 8, Nr)) : u("", !0),
|
|
2585
2592
|
t.config.label.text && t.show && isFinite(t._box.y) ? (a(), s("rect", se({
|
|
2586
2593
|
key: 3,
|
|
2587
2594
|
class: "vue-ui-xy-annotation-label-box"
|
|
2588
|
-
}, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) :
|
|
2595
|
+
}, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : u("", !0),
|
|
2589
2596
|
t.config.label.text && t.show && isFinite(t._text.y) ? (a(), s("text", {
|
|
2590
2597
|
key: 4,
|
|
2591
2598
|
id: t.id,
|
|
@@ -2595,9 +2602,9 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2595
2602
|
"font-size": t.config.label.fontSize,
|
|
2596
2603
|
fill: t.config.label.color,
|
|
2597
2604
|
"text-anchor": t.config.label.textAnchor
|
|
2598
|
-
}, V(t.config.label.text), 9, mr)) :
|
|
2605
|
+
}, V(t.config.label.text), 9, mr)) : u("", !0)
|
|
2599
2606
|
]))), 128))
|
|
2600
|
-
])) :
|
|
2607
|
+
])) : u("", !0),
|
|
2601
2608
|
I("g", null, [
|
|
2602
2609
|
(a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("rect", {
|
|
2603
2610
|
key: `tooltip_trap_${o}`,
|
|
@@ -2629,14 +2636,14 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2629
2636
|
cy: e.drawingArea.bottom,
|
|
2630
2637
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2631
2638
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2632
|
-
}, null, 8,
|
|
2633
|
-
])) :
|
|
2634
|
-
])) :
|
|
2639
|
+
}, null, 8, Ar)
|
|
2640
|
+
])) : u("", !0)
|
|
2641
|
+
])) : u("", !0),
|
|
2635
2642
|
G(r.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2636
|
-
], 14, gt)) :
|
|
2637
|
-
r.$slots.watermark ? (a(), s("div",
|
|
2643
|
+
], 14, gt)) : u("", !0),
|
|
2644
|
+
r.$slots.watermark ? (a(), s("div", yr, [
|
|
2638
2645
|
G(r.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
|
|
2639
|
-
])) :
|
|
2646
|
+
])) : u("", !0),
|
|
2640
2647
|
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2641
2648
|
key: `tag_line_${o}`
|
|
2642
2649
|
}, [
|
|
@@ -2694,7 +2701,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2694
2701
|
}
|
|
2695
2702
|
)
|
|
2696
2703
|
}, null, 8, Sr)
|
|
2697
|
-
], 4)) :
|
|
2704
|
+
], 4)) : u("", !0),
|
|
2698
2705
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
|
|
2699
2706
|
key: 1,
|
|
2700
2707
|
ref_for: !0,
|
|
@@ -2746,7 +2753,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2746
2753
|
}
|
|
2747
2754
|
)
|
|
2748
2755
|
}, null, 8, Or)
|
|
2749
|
-
], 4)) :
|
|
2756
|
+
], 4)) : u("", !0)
|
|
2750
2757
|
], 64))), 128))
|
|
2751
2758
|
], 64))), 128)),
|
|
2752
2759
|
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
@@ -2806,7 +2813,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2806
2813
|
}
|
|
2807
2814
|
)
|
|
2808
2815
|
}, null, 8, pr)
|
|
2809
|
-
], 4)) :
|
|
2816
|
+
], 4)) : u("", !0),
|
|
2810
2817
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
|
|
2811
2818
|
key: 1,
|
|
2812
2819
|
ref_for: !0,
|
|
@@ -2858,10 +2865,10 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2858
2865
|
}
|
|
2859
2866
|
)
|
|
2860
2867
|
}, null, 8, Tr)
|
|
2861
|
-
], 4)) :
|
|
2868
|
+
], 4)) : u("", !0)
|
|
2862
2869
|
], 64))), 128))
|
|
2863
2870
|
], 64))), 128)),
|
|
2864
|
-
e.isDataset ?
|
|
2871
|
+
e.isDataset ? u("", !0) : (a(), U(F, {
|
|
2865
2872
|
key: 6,
|
|
2866
2873
|
config: {
|
|
2867
2874
|
type: "line",
|
|
@@ -2909,7 +2916,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2909
2916
|
end: l.slicer.end,
|
|
2910
2917
|
"onUpdate:end": c[3] || (c[3] = (t) => l.slicer.end = t),
|
|
2911
2918
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2912
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...
|
|
2919
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...h.dataset.map((t) => e.largestTriangleThreeBucketsArray({ data: t.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2913
2920
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2914
2921
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2915
2922
|
onReset: e.refreshSlicer,
|
|
@@ -2919,7 +2926,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2919
2926
|
G(r.$slots, "reset-action", $(ee({ reset: t })), void 0, !0)
|
|
2920
2927
|
]),
|
|
2921
2928
|
_: 3
|
|
2922
|
-
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) :
|
|
2929
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : u("", !0),
|
|
2923
2930
|
e.FINAL_CONFIG.chart.legend.show ? (a(), s("div", {
|
|
2924
2931
|
key: 8,
|
|
2925
2932
|
ref: "chartLegend",
|
|
@@ -2960,7 +2967,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2960
2967
|
width: "40",
|
|
2961
2968
|
stroke: "none",
|
|
2962
2969
|
fill: t.color
|
|
2963
|
-
}, null, 8, Dr)) :
|
|
2970
|
+
}, null, 8, Dr)) : u("", !0),
|
|
2964
2971
|
l.icons[t.type] === "bar" ? (a(), s("rect", {
|
|
2965
2972
|
key: 1,
|
|
2966
2973
|
x: "0",
|
|
@@ -2970,7 +2977,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2970
2977
|
width: "40",
|
|
2971
2978
|
stroke: "none",
|
|
2972
2979
|
fill: r.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
|
|
2973
|
-
}, null, 8, Br)) :
|
|
2980
|
+
}, null, 8, Br)) : u("", !0)
|
|
2974
2981
|
])) : (a(), s("svg", Wr, [
|
|
2975
2982
|
le(N, {
|
|
2976
2983
|
plot: { x: 6, y: 6 },
|
|
@@ -2988,7 +2995,7 @@ function Ur(r, c, u, f, l, e) {
|
|
|
2988
2995
|
], 512)),
|
|
2989
2996
|
r.$slots.source ? (a(), s("div", Yr, [
|
|
2990
2997
|
G(r.$slots, "source", {}, void 0, !0)
|
|
2991
|
-
], 512)) :
|
|
2998
|
+
], 512)) : u("", !0),
|
|
2992
2999
|
le(m, {
|
|
2993
3000
|
show: l.mutableConfig.showTooltip && l.isTooltip,
|
|
2994
3001
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
@@ -3080,10 +3087,10 @@ function Ur(r, c, u, f, l, e) {
|
|
|
3080
3087
|
], 4)
|
|
3081
3088
|
]),
|
|
3082
3089
|
_: 1
|
|
3083
|
-
}, 8, ["config"])) :
|
|
3090
|
+
}, 8, ["config"])) : u("", !0)
|
|
3084
3091
|
], 46, ut);
|
|
3085
3092
|
}
|
|
3086
|
-
const ii = /* @__PURE__ */ ct(ht, [["render", Ur], ["__scopeId", "data-v-
|
|
3093
|
+
const ii = /* @__PURE__ */ ct(ht, [["render", Ur], ["__scopeId", "data-v-887f093d"]]);
|
|
3087
3094
|
export {
|
|
3088
3095
|
ii as default
|
|
3089
3096
|
};
|