vue-data-ui 2.16.6 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,13 +1,14 @@
|
|
|
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 ye, af as Ae, 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-pPGk-uhD.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-DjACxgdZ.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 h, createVNode as le, createSlots as et, withCtx as B, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as
|
|
6
|
-
import { S as it } from "./Slicer-
|
|
7
|
-
import at from "./Title-
|
|
8
|
-
import { _ as st } from "./Shape-
|
|
9
|
-
import
|
|
10
|
-
|
|
5
|
+
import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as a, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as h, 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-CL6-MRI6.js";
|
|
7
|
+
import at from "./Title-B-2bV0SW.js";
|
|
8
|
+
import { _ as st } from "./Shape-DtFT5EJa.js";
|
|
9
|
+
import nt from "./img-Y_hYz-ZC.js";
|
|
10
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const ot = ne(), ht = {
|
|
11
12
|
name: "vue-ui-xy",
|
|
12
13
|
props: {
|
|
13
14
|
config: {
|
|
@@ -29,15 +30,15 @@ const ct = ne(), ot = {
|
|
|
29
30
|
Title: at,
|
|
30
31
|
// Must be ready in responsive mode
|
|
31
32
|
Shape: st,
|
|
32
|
-
DataTable: Z(() => import("./DataTable-
|
|
33
|
-
Tooltip: Z(() => import("./Tooltip-
|
|
34
|
-
UserOptions: Z(() => import("./UserOptions-
|
|
35
|
-
BaseIcon: Z(() => import("./BaseIcon-
|
|
36
|
-
TableSparkline: Z(() => import("./vue-ui-table-sparkline-
|
|
37
|
-
Skeleton: Z(() => import("./vue-ui-skeleton-
|
|
38
|
-
Accordion: Z(() => import("./vue-ui-accordion-
|
|
39
|
-
PackageVersion: Z(() => import("./PackageVersion-
|
|
40
|
-
PenAndPaper: Z(() => import("./PenAndPaper-
|
|
33
|
+
DataTable: Z(() => import("./DataTable-D0VYDhfx.js")),
|
|
34
|
+
Tooltip: Z(() => import("./Tooltip-CoQnTnr-.js")),
|
|
35
|
+
UserOptions: Z(() => import("./UserOptions-Dd34lEKb.js")),
|
|
36
|
+
BaseIcon: Z(() => import("./BaseIcon-naqtCxVi.js")),
|
|
37
|
+
TableSparkline: Z(() => import("./vue-ui-table-sparkline-D4RubyLj.js")),
|
|
38
|
+
Skeleton: Z(() => import("./vue-ui-skeleton-DJPjyNYn.js")),
|
|
39
|
+
Accordion: Z(() => import("./vue-ui-accordion-CVnA550V.js")),
|
|
40
|
+
PackageVersion: Z(() => import("./PackageVersion-5TR4ocqp.js")),
|
|
41
|
+
PenAndPaper: Z(() => import("./PenAndPaper-D6AqipIO.js"))
|
|
41
42
|
},
|
|
42
43
|
data() {
|
|
43
44
|
this.dataset.forEach((f, l) => {
|
|
@@ -48,9 +49,9 @@ const ct = ne(), ot = {
|
|
|
48
49
|
index: l
|
|
49
50
|
});
|
|
50
51
|
});
|
|
51
|
-
const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500,
|
|
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)), u = {
|
|
52
53
|
start: 0,
|
|
53
|
-
end:
|
|
54
|
+
end: c
|
|
54
55
|
};
|
|
55
56
|
return {
|
|
56
57
|
resizeObserver: null,
|
|
@@ -101,12 +102,12 @@ const ct = ne(), ot = {
|
|
|
101
102
|
step: 0,
|
|
102
103
|
tableStep: 0,
|
|
103
104
|
titleStep: 0,
|
|
104
|
-
slicer:
|
|
105
|
+
slicer: u,
|
|
105
106
|
__to__: null,
|
|
106
|
-
maxX:
|
|
107
|
+
maxX: c,
|
|
107
108
|
showSparklineTable: !0,
|
|
108
109
|
segregateStep: 0,
|
|
109
|
-
sliderId:
|
|
110
|
+
sliderId: ot,
|
|
110
111
|
fontSizes: {
|
|
111
112
|
xAxis: 18,
|
|
112
113
|
yAxis: 12,
|
|
@@ -128,9 +129,9 @@ const ct = ne(), ot = {
|
|
|
128
129
|
},
|
|
129
130
|
watch: {
|
|
130
131
|
dataset: {
|
|
131
|
-
handler(r,
|
|
132
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
133
|
-
data:
|
|
132
|
+
handler(r, c) {
|
|
133
|
+
this.maxX = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({
|
|
134
|
+
data: u.series,
|
|
134
135
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
135
136
|
}).length)), this.slicer = {
|
|
136
137
|
start: 0,
|
|
@@ -140,7 +141,7 @@ const ct = ne(), ot = {
|
|
|
140
141
|
deep: !0
|
|
141
142
|
},
|
|
142
143
|
config: {
|
|
143
|
-
handler(r,
|
|
144
|
+
handler(r, c) {
|
|
144
145
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
|
|
145
146
|
dataLabels: {
|
|
146
147
|
show: !0
|
|
@@ -159,8 +160,8 @@ const ct = ne(), ot = {
|
|
|
159
160
|
return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.formatter.locale;
|
|
160
161
|
},
|
|
161
162
|
chartAriaLabel() {
|
|
162
|
-
const r = this.FINAL_CONFIG.chart.title.text || "Chart visualization",
|
|
163
|
-
return `${r}. ${
|
|
163
|
+
const r = this.FINAL_CONFIG.chart.title.text || "Chart visualization", c = this.FINAL_CONFIG.chart.title.subtitle.text || "";
|
|
164
|
+
return `${r}. ${c}`;
|
|
164
165
|
},
|
|
165
166
|
optimize() {
|
|
166
167
|
return {
|
|
@@ -172,11 +173,11 @@ const ct = ne(), ot = {
|
|
|
172
173
|
},
|
|
173
174
|
minimap() {
|
|
174
175
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
175
|
-
const r = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)),
|
|
176
|
-
for (let l = 0; l <
|
|
177
|
-
|
|
178
|
-
const f = Math.min(...
|
|
179
|
-
return
|
|
176
|
+
const r = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), c = Math.max(...r.map((l) => l.series.length)), u = [];
|
|
177
|
+
for (let l = 0; l < c; l += 1)
|
|
178
|
+
u.push(r.map((e) => e.series[l] || 0).reduce((e, i) => (e || 0) + (i || 0), 0));
|
|
179
|
+
const f = Math.min(...u);
|
|
180
|
+
return u.map((l) => l + (f < 0 ? Math.abs(f) : 0));
|
|
180
181
|
},
|
|
181
182
|
customPalette() {
|
|
182
183
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -200,7 +201,7 @@ const ct = ne(), ot = {
|
|
|
200
201
|
yOffset: e.yOffset || 0,
|
|
201
202
|
individualHeight: e.individualHeight || this.drawingArea.height,
|
|
202
203
|
autoScaleYLabels: e.autoScaleYLabels
|
|
203
|
-
})),
|
|
204
|
+
})), c = this.barSet.map((e) => ({
|
|
204
205
|
name: e.name,
|
|
205
206
|
color: e.color,
|
|
206
207
|
scale: e.individualScale,
|
|
@@ -211,7 +212,7 @@ const ct = ne(), ot = {
|
|
|
211
212
|
id: e.id,
|
|
212
213
|
yOffset: e.yOffset || 0,
|
|
213
214
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
214
|
-
})),
|
|
215
|
+
})), u = this.plotSet.map((e) => ({
|
|
215
216
|
name: e.name,
|
|
216
217
|
color: e.color,
|
|
217
218
|
scale: e.individualScale,
|
|
@@ -223,7 +224,7 @@ const ct = ne(), ot = {
|
|
|
223
224
|
id: e.id,
|
|
224
225
|
yOffset: e.yOffset || 0,
|
|
225
226
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
226
|
-
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...r, ...
|
|
227
|
+
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...r, ...c, ...u], l = f.flatMap((e) => e).length;
|
|
227
228
|
return f.flatMap((e, i) => ({
|
|
228
229
|
unique: e.unique,
|
|
229
230
|
id: e.id,
|
|
@@ -235,9 +236,9 @@ const ct = ne(), ot = {
|
|
|
235
236
|
yOffset: e.yOffset,
|
|
236
237
|
individualHeight: e.individualHeight,
|
|
237
238
|
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / l * (i + 1),
|
|
238
|
-
yLabels: e.scaleYLabels || e.scale.ticks.map((
|
|
239
|
-
y:
|
|
240
|
-
value:
|
|
239
|
+
yLabels: e.scaleYLabels || e.scale.ticks.map((A) => ({
|
|
240
|
+
y: A >= 0 ? e.zero - e.individualHeight * (A / e.max) : e.zero + e.individualHeight * Math.abs(A) / e.max,
|
|
241
|
+
value: A
|
|
241
242
|
}))
|
|
242
243
|
}));
|
|
243
244
|
},
|
|
@@ -261,9 +262,9 @@ const ct = ne(), ot = {
|
|
|
261
262
|
},
|
|
262
263
|
highlightAreas() {
|
|
263
264
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
264
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
265
|
-
...
|
|
266
|
-
span:
|
|
265
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((c) => ({
|
|
266
|
+
...c,
|
|
267
|
+
span: c.from === c.to ? 1 : c.to < c.from ? 0 : c.to - c.from + 1
|
|
267
268
|
}));
|
|
268
269
|
const r = this.FINAL_CONFIG.chart.highlightArea;
|
|
269
270
|
return [{ ...r, span: r.from === r.to ? 1 : r.to < r.from ? 0 : r.to - r.from + 1 }];
|
|
@@ -278,46 +279,46 @@ const ct = ne(), ot = {
|
|
|
278
279
|
return this.niceScale.max + this.relativeZero;
|
|
279
280
|
},
|
|
280
281
|
datasetWithIds() {
|
|
281
|
-
return this.useSafeValues ? this.dataset.map((r,
|
|
282
|
+
return this.useSafeValues ? this.dataset.map((r, c) => ({
|
|
282
283
|
...r,
|
|
283
284
|
series: this.largestTriangleThreeBucketsArray({
|
|
284
285
|
data: r.series,
|
|
285
286
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
286
287
|
}),
|
|
287
|
-
id: `uniqueId_${
|
|
288
|
+
id: `uniqueId_${c}`
|
|
288
289
|
})) : this.dataset;
|
|
289
290
|
},
|
|
290
291
|
safeDataset() {
|
|
291
|
-
return this.useSafeValues ? this.dataset.map((r,
|
|
292
|
-
const
|
|
292
|
+
return this.useSafeValues ? this.dataset.map((r, c) => {
|
|
293
|
+
const u = this.largestTriangleThreeBucketsArray({
|
|
293
294
|
data: r.series,
|
|
294
295
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
295
|
-
}), f = `uniqueId_${
|
|
296
|
+
}), f = `uniqueId_${c}`;
|
|
296
297
|
return {
|
|
297
298
|
...r,
|
|
298
|
-
slotAbsoluteIndex:
|
|
299
|
-
series:
|
|
300
|
-
color: this.convertColorToHex(r.color ? r.color : this.customPalette[
|
|
299
|
+
slotAbsoluteIndex: c,
|
|
300
|
+
series: u.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
|
|
301
|
+
color: this.convertColorToHex(r.color ? r.color : this.customPalette[c] ? this.customPalette[c] : this.palette[c]),
|
|
301
302
|
id: f,
|
|
302
303
|
scaleLabel: r.scaleLabel || f
|
|
303
304
|
};
|
|
304
305
|
}) : this.dataset;
|
|
305
306
|
},
|
|
306
307
|
relativeDataset() {
|
|
307
|
-
return this.safeDataset.map((r,
|
|
308
|
+
return this.safeDataset.map((r, c) => ({
|
|
308
309
|
...r,
|
|
309
|
-
series: r.series.map((
|
|
310
|
+
series: r.series.map((u) => u + this.relativeZero),
|
|
310
311
|
absoluteValues: r.series
|
|
311
312
|
})).filter((r) => !this.segregatedSeries.includes(r.id));
|
|
312
313
|
},
|
|
313
314
|
tableSparklineDataset() {
|
|
314
315
|
return this.relativeDataset.map((r) => {
|
|
315
|
-
const
|
|
316
|
+
const c = r.absoluteValues.map((u) => [void 0, null].includes(u) ? 0 : u);
|
|
316
317
|
return {
|
|
317
318
|
id: r.id,
|
|
318
319
|
name: r.name,
|
|
319
320
|
color: r.color,
|
|
320
|
-
values: this.fillArray(this.maxSeries,
|
|
321
|
+
values: this.fillArray(this.maxSeries, c)
|
|
321
322
|
};
|
|
322
323
|
});
|
|
323
324
|
},
|
|
@@ -348,10 +349,10 @@ const ct = ne(), ot = {
|
|
|
348
349
|
};
|
|
349
350
|
},
|
|
350
351
|
absoluteDataset() {
|
|
351
|
-
return this.safeDataset.map((r,
|
|
352
|
-
absoluteIndex:
|
|
352
|
+
return this.safeDataset.map((r, c) => ({
|
|
353
|
+
absoluteIndex: c,
|
|
353
354
|
...r,
|
|
354
|
-
series: r.series.map((
|
|
355
|
+
series: r.series.map((u) => u + this.relativeZero),
|
|
355
356
|
absoluteValues: r.series,
|
|
356
357
|
segregate: () => this.segregate(r),
|
|
357
358
|
isSegregated: this.segregatedSeries.includes(r.id)
|
|
@@ -364,20 +365,20 @@ const ct = ne(), ot = {
|
|
|
364
365
|
return this.assignStackRatios(this.absoluteDataset.filter((r) => !this.segregatedSeries.includes(r.id)));
|
|
365
366
|
},
|
|
366
367
|
scaleGroups() {
|
|
367
|
-
const r = Object.groupBy(this.activeSeriesWithStackRatios, (
|
|
368
|
-
for (const [
|
|
368
|
+
const r = Object.groupBy(this.activeSeriesWithStackRatios, (u) => u.scaleLabel), c = {};
|
|
369
|
+
for (const [u, f] of Object.entries(r)) {
|
|
369
370
|
const l = f.flatMap((e) => e.absoluteValues);
|
|
370
|
-
|
|
371
|
+
c[u] = {
|
|
371
372
|
min: Math.min(...l) || 0,
|
|
372
373
|
max: Math.max(...l) || 1,
|
|
373
374
|
groupId: `scale_group_${this.createUid()}`
|
|
374
375
|
};
|
|
375
376
|
}
|
|
376
|
-
return
|
|
377
|
+
return c;
|
|
377
378
|
},
|
|
378
379
|
barSet() {
|
|
379
|
-
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)),
|
|
380
|
-
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, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (c - 1) : 0, e = this.drawingArea.height - l;
|
|
381
|
+
return r.filter((i) => i.type === "bar").map((i, A) => {
|
|
381
382
|
this.checkAutoScaleError(i);
|
|
382
383
|
const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
|
|
383
384
|
i.absoluteValues.filter((C) => ![null, void 0].includes(C)).map((C) => (C - z) / (O - z));
|
|
@@ -387,8 +388,8 @@ const ct = ne(), ot = {
|
|
|
387
388
|
}, F = {
|
|
388
389
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
389
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)))
|
|
390
|
-
}, 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,
|
|
391
|
-
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 + u * 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 * A + this.slot.bar * R * W - this.barSlot / 2 - A * this.barPeriodGap;
|
|
392
393
|
return {
|
|
393
394
|
yOffset: this.checkNaN(S),
|
|
394
395
|
individualHeight: this.checkNaN(k),
|
|
@@ -400,7 +401,7 @@ const ct = ne(), ot = {
|
|
|
400
401
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[R] || ""
|
|
401
402
|
};
|
|
402
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) => {
|
|
403
|
-
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 * A + this.slot.bar * R * this.absoluteDataset.filter((Q) => Q.type === "bar").filter((Q) => !this.segregatedSeries.includes(Q.id)).length;
|
|
404
405
|
return {
|
|
405
406
|
yOffset: this.checkNaN(S),
|
|
406
407
|
individualHeight: this.checkNaN(k),
|
|
@@ -427,14 +428,14 @@ const ct = ne(), ot = {
|
|
|
427
428
|
datapoint: i
|
|
428
429
|
};
|
|
429
430
|
});
|
|
430
|
-
return 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 ? P : w, this.scaleGroups[i.scaleLabel].zeroPosition = i.autoScaling ? Y : T, this.scaleGroups[i.scaleLabel].individualMax = i.autoScaling ?
|
|
431
|
+
return 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 ? P : w, 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 = P, this.scaleGroups[i.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((C) => C.scaleLabel === i.scaleLabel).length === 1, {
|
|
431
432
|
...i,
|
|
432
433
|
yOffset: S,
|
|
433
434
|
autoScaleYLabels: P,
|
|
434
435
|
individualHeight: k,
|
|
435
436
|
scaleYLabels: i.autoScaling ? P : w,
|
|
436
437
|
individualScale: i.autoScaling ? b : L,
|
|
437
|
-
individualMax: i.autoScaling ?
|
|
438
|
+
individualMax: i.autoScaling ? o : t,
|
|
438
439
|
zeroPosition: i.autoScaling ? Y : T,
|
|
439
440
|
plots: i.autoScaling ? J : te,
|
|
440
441
|
groupId: this.scaleGroups[i.scaleLabel].groupId
|
|
@@ -442,26 +443,26 @@ const ct = ne(), ot = {
|
|
|
442
443
|
});
|
|
443
444
|
},
|
|
444
445
|
lineSet() {
|
|
445
|
-
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)),
|
|
446
|
-
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, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (c - 1) : 0, e = this.drawingArea.height - l;
|
|
447
|
+
return r.filter((i) => i.type === "line").map((i, A) => {
|
|
447
448
|
this.checkAutoScaleError(i);
|
|
448
449
|
const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
|
|
449
|
-
i.absoluteValues.filter((
|
|
450
|
+
i.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - z) / (O - z));
|
|
450
451
|
const N = {
|
|
451
452
|
valueMin: z,
|
|
452
453
|
valueMax: O
|
|
453
454
|
}, F = {
|
|
454
455
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
455
456
|
min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
|
|
456
|
-
}, 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),
|
|
457
|
-
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 + u * 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((y, D) => {
|
|
458
|
+
const he = this.mutableConfig.useIndividualScale ? (i.absoluteValues[D] + Math.abs(M)) / t : this.ratioToMax(y);
|
|
458
459
|
return {
|
|
459
460
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * D),
|
|
460
461
|
y: this.checkNaN(this.drawingArea.bottom - S - k * he),
|
|
461
462
|
value: i.absoluteValues[D],
|
|
462
463
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[D] || ""
|
|
463
464
|
};
|
|
464
|
-
}), te = i.absoluteValues.map((
|
|
465
|
+
}), te = i.absoluteValues.map((y) => b.min >= 0 ? (y - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (y + Math.abs(b.min)) / (b.max + Math.abs(b.min))), E = i.series.map((y, D) => [void 0, null].includes(i.absoluteValues[D]) ? {
|
|
465
466
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * D),
|
|
466
467
|
y: T,
|
|
467
468
|
value: i.absoluteValues[D],
|
|
@@ -471,23 +472,23 @@ const ct = ne(), ot = {
|
|
|
471
472
|
y: this.checkNaN(this.drawingArea.bottom - S - (k * te[D] || 0)),
|
|
472
473
|
value: i.absoluteValues[D],
|
|
473
474
|
comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[D] || ""
|
|
474
|
-
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((
|
|
475
|
-
y:
|
|
476
|
-
value:
|
|
475
|
+
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((y) => y.value !== null)), w = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((y) => y.value !== null)), P = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(W) : this.createStraightPath(W.filter((y) => y.value !== null)), C = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(E) : this.createStraightPath(E.filter((y) => y.value !== null)), R = L.ticks.map((y) => ({
|
|
476
|
+
y: y >= 0 ? T - k * (y / t) : T + k * Math.abs(y) / t,
|
|
477
|
+
value: y,
|
|
477
478
|
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
478
479
|
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
479
480
|
datapoint: i
|
|
480
|
-
})), K = b.ticks.map((
|
|
481
|
-
const D = (
|
|
481
|
+
})), K = b.ticks.map((y) => {
|
|
482
|
+
const D = (y - b.min) / (b.max - b.min);
|
|
482
483
|
return {
|
|
483
|
-
y:
|
|
484
|
-
value:
|
|
484
|
+
y: y >= 0 ? Y - k * D : Y + k * D,
|
|
485
|
+
value: y,
|
|
485
486
|
prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
486
487
|
suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
487
488
|
datapoint: i
|
|
488
489
|
};
|
|
489
490
|
});
|
|
490
|
-
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 ?
|
|
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((y) => y.scaleLabel === i.scaleLabel).length === 1;
|
|
491
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);
|
|
492
493
|
return {
|
|
493
494
|
...i,
|
|
@@ -496,7 +497,7 @@ const ct = ne(), ot = {
|
|
|
496
497
|
individualHeight: k,
|
|
497
498
|
scaleYLabels: i.autoScaling ? K : R,
|
|
498
499
|
individualScale: i.autoScaling ? b : L,
|
|
499
|
-
individualMax: i.autoScaling ?
|
|
500
|
+
individualMax: i.autoScaling ? o : t,
|
|
500
501
|
zeroPosition: i.autoScaling ? Y : T,
|
|
501
502
|
curve: i.autoScaling ? w : J,
|
|
502
503
|
plots: i.autoScaling ? E : W,
|
|
@@ -504,11 +505,11 @@ const ct = ne(), ot = {
|
|
|
504
505
|
i.autoScaling ? E : W,
|
|
505
506
|
re
|
|
506
507
|
) : this.createIndividualArea(
|
|
507
|
-
i.autoScaling ? E.filter((
|
|
508
|
+
i.autoScaling ? E.filter((y) => y.value !== null) : W.filter((y) => y.value !== null),
|
|
508
509
|
re
|
|
509
|
-
) : this.createIndividualArea(W.filter((
|
|
510
|
+
) : this.createIndividualArea(W.filter((y) => y.value !== null), re) : "",
|
|
510
511
|
curveAreas: i.useArea ? ce(
|
|
511
|
-
i.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((
|
|
512
|
+
i.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((y) => y.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((y) => y.value !== null),
|
|
512
513
|
re,
|
|
513
514
|
this.FINAL_CONFIG.line.cutNullValues
|
|
514
515
|
) : [],
|
|
@@ -518,18 +519,18 @@ const ct = ne(), ot = {
|
|
|
518
519
|
});
|
|
519
520
|
},
|
|
520
521
|
plotSet() {
|
|
521
|
-
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)),
|
|
522
|
+
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (c - 1) : 0, e = this.drawingArea.height - l;
|
|
522
523
|
return r.filter((i) => i.type === "plot").map((i) => {
|
|
523
524
|
this.checkAutoScaleError(i);
|
|
524
|
-
const
|
|
525
|
-
i.absoluteValues.filter((w) => ![null, void 0].includes(w)).map((w) => (w -
|
|
525
|
+
const A = this.scaleGroups[i.scaleLabel].min, z = this.scaleGroups[i.scaleLabel].max;
|
|
526
|
+
i.absoluteValues.filter((w) => ![null, void 0].includes(w)).map((w) => (w - A) / (z - A));
|
|
526
527
|
const O = {
|
|
527
|
-
valueMin:
|
|
528
|
+
valueMin: A,
|
|
528
529
|
valueMax: z
|
|
529
530
|
}, N = {
|
|
530
531
|
max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
|
|
531
532
|
min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
|
|
532
|
-
}, 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),
|
|
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 + u * 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) => {
|
|
533
534
|
const C = this.mutableConfig.useIndividualScale ? (i.absoluteValues[P] + Math.abs(b)) / H : this.ratioToMax(w);
|
|
534
535
|
return {
|
|
535
536
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * P),
|
|
@@ -580,14 +581,14 @@ const ct = ne(), ot = {
|
|
|
580
581
|
l.add(i);
|
|
581
582
|
}), l.size;
|
|
582
583
|
}
|
|
583
|
-
const
|
|
584
|
+
const c = r(this.absoluteDataset.filter((f) => !this.segregatedSeries.includes(f.id))), u = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? c * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
584
585
|
return {
|
|
585
586
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
586
587
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
587
588
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
588
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
589
|
+
left: this.FINAL_CONFIG.chart.padding.left + u,
|
|
589
590
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
590
|
-
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 + u)
|
|
591
592
|
};
|
|
592
593
|
},
|
|
593
594
|
max() {
|
|
@@ -596,7 +597,7 @@ const ct = ne(), ot = {
|
|
|
596
597
|
min() {
|
|
597
598
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
598
599
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
599
|
-
const r = Math.min(...this.safeDataset.filter((
|
|
600
|
+
const r = Math.min(...this.safeDataset.filter((c) => !this.segregatedSeries.includes(c.id)).map((c) => Math.min(...c.series)));
|
|
600
601
|
return r > 0 ? 0 : r;
|
|
601
602
|
},
|
|
602
603
|
niceScale() {
|
|
@@ -606,7 +607,7 @@ const ct = ne(), ot = {
|
|
|
606
607
|
return this.slicer.end - this.slicer.start;
|
|
607
608
|
},
|
|
608
609
|
timeLabels() {
|
|
609
|
-
const r = Math.max(...this.dataset.map((
|
|
610
|
+
const r = Math.max(...this.dataset.map((c) => this.largestTriangleThreeBucketsArray({ data: c.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
610
611
|
return $e({
|
|
611
612
|
values: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values,
|
|
612
613
|
maxDatapoints: r,
|
|
@@ -623,7 +624,7 @@ const ct = ne(), ot = {
|
|
|
623
624
|
};
|
|
624
625
|
},
|
|
625
626
|
barSlot() {
|
|
626
|
-
const r = this.safeDataset.filter((
|
|
627
|
+
const r = this.safeDataset.filter((c) => c.type === "bar").filter((c) => !this.segregatedSeries.includes(c.id)).length;
|
|
627
628
|
return this.drawingArea.width / this.maxSeries / r - this.barPeriodGap * r;
|
|
628
629
|
},
|
|
629
630
|
barPeriodGap() {
|
|
@@ -634,36 +635,36 @@ const ct = ne(), ot = {
|
|
|
634
635
|
},
|
|
635
636
|
table() {
|
|
636
637
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
637
|
-
const r = this.relativeDataset.map((
|
|
638
|
-
label:
|
|
639
|
-
color:
|
|
640
|
-
type:
|
|
641
|
-
})),
|
|
642
|
-
return this.timeLabels.forEach((
|
|
643
|
-
const l = [
|
|
638
|
+
const r = this.relativeDataset.map((u) => ({
|
|
639
|
+
label: u.name,
|
|
640
|
+
color: u.color,
|
|
641
|
+
type: u.type
|
|
642
|
+
})), c = [];
|
|
643
|
+
return this.timeLabels.forEach((u, f) => {
|
|
644
|
+
const l = [u.text];
|
|
644
645
|
this.relativeDataset.forEach((e) => {
|
|
645
646
|
l.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
646
|
-
}),
|
|
647
|
-
}), { head: r, body:
|
|
647
|
+
}), c.push(l);
|
|
648
|
+
}), { head: r, body: c };
|
|
648
649
|
},
|
|
649
650
|
dataTable() {
|
|
650
651
|
const r = this.FINAL_CONFIG.table.showSum;
|
|
651
|
-
let
|
|
652
|
-
r && (
|
|
653
|
-
let
|
|
652
|
+
let c = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
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 u = [];
|
|
654
655
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
655
|
-
const i = this.relativeDataset.map((
|
|
656
|
-
|
|
656
|
+
const i = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, z) => A + z, 0);
|
|
657
|
+
u.push(
|
|
657
658
|
[
|
|
658
659
|
this.timeLabels[e].text ?? "-"
|
|
659
660
|
].concat(this.relativeDataset.map(
|
|
660
|
-
(
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
(A) => this.applyDataLabel(
|
|
662
|
+
A.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : A.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
663
|
+
A.absoluteValues[e] ?? 0,
|
|
663
664
|
this.dataLabel({
|
|
664
|
-
p:
|
|
665
|
-
v:
|
|
666
|
-
s:
|
|
665
|
+
p: A.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
666
|
+
v: A.absoluteValues[e] ?? 0,
|
|
667
|
+
s: A.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
667
668
|
r: this.FINAL_CONFIG.table.rounding
|
|
668
669
|
})
|
|
669
670
|
)
|
|
@@ -683,7 +684,7 @@ const ct = ne(), ot = {
|
|
|
683
684
|
},
|
|
684
685
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
685
686
|
}, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
686
|
-
return { head:
|
|
687
|
+
return { head: c, body: u, config: f, colNames: l };
|
|
687
688
|
},
|
|
688
689
|
dataTooltipSlot() {
|
|
689
690
|
return {
|
|
@@ -703,15 +704,15 @@ const ct = ne(), ot = {
|
|
|
703
704
|
name: r.name,
|
|
704
705
|
color: r.color,
|
|
705
706
|
type: r.type,
|
|
706
|
-
value: r.absoluteValues.find((
|
|
707
|
+
value: r.absoluteValues.find((c, u) => u === this.selectedSerieIndex),
|
|
707
708
|
comments: r.comments || [],
|
|
708
709
|
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
709
710
|
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
710
711
|
}));
|
|
711
712
|
},
|
|
712
713
|
tooltipContent() {
|
|
713
|
-
let r = "",
|
|
714
|
-
const
|
|
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 u = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
715
716
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
716
717
|
seriesIndex: this.selectedSerieIndex,
|
|
717
718
|
datapoint: this.selectedSeries,
|
|
@@ -728,7 +729,7 @@ const ct = ne(), ot = {
|
|
|
728
729
|
lines: this.lineSet,
|
|
729
730
|
plots: this.plotSet,
|
|
730
731
|
config: this.FINAL_CONFIG
|
|
731
|
-
}) : (
|
|
732
|
+
}) : (u && u.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%">${u.text}</div>`), this.selectedSeries.forEach((l) => {
|
|
732
733
|
if (this.isSafeValue(l.value)) {
|
|
733
734
|
let e = "", i = "";
|
|
734
735
|
switch (this.icons[l.type]) {
|
|
@@ -779,7 +780,7 @@ const ct = ne(), ot = {
|
|
|
779
780
|
}),
|
|
780
781
|
{ datapoint: l }
|
|
781
782
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${oe({
|
|
782
|
-
v: this.checkNaN(Math.abs(l.value) /
|
|
783
|
+
v: this.checkNaN(Math.abs(l.value) / c * 100),
|
|
783
784
|
s: "%",
|
|
784
785
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
785
786
|
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && l.comments.length && l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (r += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
@@ -806,21 +807,21 @@ const ct = ne(), ot = {
|
|
|
806
807
|
annotationsY() {
|
|
807
808
|
const r = this.FINAL_CONFIG.chart.annotations;
|
|
808
809
|
if (!r || !Array.isArray(r) || r.every((N) => !N.show)) return [];
|
|
809
|
-
const
|
|
810
|
+
const c = r.filter(
|
|
810
811
|
(N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
|
|
811
812
|
);
|
|
812
|
-
if (!
|
|
813
|
-
const { left:
|
|
813
|
+
if (!c.length) return [];
|
|
814
|
+
const { left: u, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, i = this.niceScale.min, z = this.niceScale.max - i, O = (N) => {
|
|
814
815
|
const F = (N - 0) / z;
|
|
815
816
|
return l - F * e;
|
|
816
817
|
};
|
|
817
|
-
return
|
|
818
|
+
return c.map((N) => {
|
|
818
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);
|
|
819
820
|
H.font = `${m.fontSize}px sans-serif`;
|
|
820
|
-
const t = H.measureText(m.text).width,
|
|
821
|
+
const t = H.measureText(m.text).width, o = m.fontSize, n = (m.position === "start" ? u + 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;
|
|
821
822
|
let S;
|
|
822
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;
|
|
823
|
-
const k = p -
|
|
824
|
+
const k = p - o * 0.75 - m.padding.top;
|
|
824
825
|
return {
|
|
825
826
|
show: ![b, M, k].includes(NaN),
|
|
826
827
|
id: `annotation_y_${this.createUid()}`,
|
|
@@ -829,14 +830,14 @@ const ct = ne(), ot = {
|
|
|
829
830
|
yTop: b,
|
|
830
831
|
yBottom: M,
|
|
831
832
|
config: N.yAxis,
|
|
832
|
-
x1:
|
|
833
|
+
x1: u,
|
|
833
834
|
x2: f,
|
|
834
835
|
_text: { x: n, y: p },
|
|
835
836
|
_box: {
|
|
836
837
|
x: S,
|
|
837
838
|
y: k,
|
|
838
839
|
width: t + m.padding.left + m.padding.right,
|
|
839
|
-
height:
|
|
840
|
+
height: o + m.padding.top + m.padding.bottom,
|
|
840
841
|
fill: m.backgroundColor,
|
|
841
842
|
stroke: m.border.stroke,
|
|
842
843
|
rx: m.border.rx,
|
|
@@ -883,8 +884,8 @@ const ct = ne(), ot = {
|
|
|
883
884
|
functionReturnsString: Se,
|
|
884
885
|
hasDeepProperty: Ce,
|
|
885
886
|
isFunction: Le,
|
|
886
|
-
isSafeValue:
|
|
887
|
-
largestTriangleThreeBucketsArray:
|
|
887
|
+
isSafeValue: Ae,
|
|
888
|
+
largestTriangleThreeBucketsArray: ye,
|
|
888
889
|
objectIsEmpty: _e,
|
|
889
890
|
setOpacity: Fe,
|
|
890
891
|
shiftHue: be,
|
|
@@ -903,19 +904,19 @@ const ct = ne(), ot = {
|
|
|
903
904
|
usesSelectTimeLabelEvent() {
|
|
904
905
|
return !!this.$.vnode.props?.onSelectTimeLabel;
|
|
905
906
|
},
|
|
906
|
-
getTextMeasurer(r,
|
|
907
|
+
getTextMeasurer(r, c, u) {
|
|
907
908
|
if (!this._textMeasurer) {
|
|
908
909
|
const f = document.createElement("canvas");
|
|
909
910
|
this._textMeasurer = f.getContext("2d");
|
|
910
911
|
}
|
|
911
|
-
return this._textMeasurer.font = `${
|
|
912
|
+
return this._textMeasurer.font = `${u || "normal"} ${r}px ${c || "sans-serif"}`, this._textMeasurer;
|
|
912
913
|
},
|
|
913
914
|
hideTags() {
|
|
914
915
|
const r = document.querySelectorAll(".vue-ui-xy-tag");
|
|
915
|
-
r.length && Array.from(r).forEach((
|
|
916
|
+
r.length && Array.from(r).forEach((c) => c.style.opacity = "0");
|
|
916
917
|
},
|
|
917
|
-
setTagRef(r,
|
|
918
|
-
|
|
918
|
+
setTagRef(r, c, u, f, l) {
|
|
919
|
+
u && (this.tagRefs[`${r}_${c}_${f}_${l}`] = u);
|
|
919
920
|
},
|
|
920
921
|
setUserOptionsVisibility(r = !1) {
|
|
921
922
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = r);
|
|
@@ -923,65 +924,65 @@ const ct = ne(), ot = {
|
|
|
923
924
|
toggleAnnotator() {
|
|
924
925
|
this.isAnnotator = !this.isAnnotator;
|
|
925
926
|
},
|
|
926
|
-
selectTimeLabel(r,
|
|
927
|
-
const
|
|
927
|
+
selectTimeLabel(r, c) {
|
|
928
|
+
const u = this.relativeDataset.map((f) => ({
|
|
928
929
|
shape: f.shape || null,
|
|
929
930
|
name: f.name,
|
|
930
931
|
color: f.color,
|
|
931
932
|
type: f.type,
|
|
932
|
-
value: f.absoluteValues.find((l, e) => e ===
|
|
933
|
+
value: f.absoluteValues.find((l, e) => e === c),
|
|
933
934
|
comments: f.comments || [],
|
|
934
935
|
prefix: f.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
935
936
|
suffix: f.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
936
937
|
}));
|
|
937
938
|
this.$emit("selectTimeLabel", {
|
|
938
|
-
datapoint:
|
|
939
|
+
datapoint: u,
|
|
939
940
|
absoluteIndex: r.absoluteIndex,
|
|
940
941
|
label: r.text
|
|
941
942
|
});
|
|
942
943
|
},
|
|
943
944
|
getHighlightAreaPosition(r) {
|
|
944
|
-
const
|
|
945
|
+
const c = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (r.from - this.slicer.start), u = 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;
|
|
945
946
|
return {
|
|
946
|
-
x:
|
|
947
|
-
width:
|
|
947
|
+
x: c < this.drawingArea.left ? this.drawingArea.left : c,
|
|
948
|
+
width: u
|
|
948
949
|
};
|
|
949
950
|
},
|
|
950
951
|
prepareConfig() {
|
|
951
952
|
const r = Ue().vue_ui_xy;
|
|
952
953
|
if (!Object.keys(this.config || {}).length)
|
|
953
954
|
return r;
|
|
954
|
-
const
|
|
955
|
+
const c = this.useNestedProp({
|
|
955
956
|
userConfig: this.config,
|
|
956
957
|
defaultConfig: r
|
|
957
958
|
});
|
|
958
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
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((u) => ae({
|
|
959
960
|
defaultConfig: r.chart.annotations[0],
|
|
960
|
-
userConfig:
|
|
961
|
-
})) :
|
|
961
|
+
userConfig: u
|
|
962
|
+
})) : c.chart.annotations = [], c.theme ? {
|
|
962
963
|
...ae({
|
|
963
|
-
userConfig: this.themes.vue_ui_xy[
|
|
964
|
-
defaultConfig:
|
|
964
|
+
userConfig: this.themes.vue_ui_xy[c.theme] || this.config,
|
|
965
|
+
defaultConfig: c
|
|
965
966
|
}),
|
|
966
|
-
customPalette: this.themePalettes[
|
|
967
|
-
} :
|
|
967
|
+
customPalette: this.themePalettes[c.theme] || this.palette
|
|
968
|
+
} : c;
|
|
968
969
|
},
|
|
969
970
|
prepareChart() {
|
|
970
971
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
971
972
|
componentName: "VueUiXy",
|
|
972
973
|
type: "dataset"
|
|
973
|
-
}) : this.dataset.forEach((r,
|
|
974
|
+
}) : this.dataset.forEach((r, c) => {
|
|
974
975
|
[null, void 0].includes(r.name) && this.error({
|
|
975
976
|
componentName: "VueUiXy",
|
|
976
977
|
type: "datasetSerieAttribute",
|
|
977
978
|
property: "name (string)",
|
|
978
|
-
index:
|
|
979
|
+
index: c
|
|
979
980
|
});
|
|
980
981
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((r) => {
|
|
981
|
-
r.series.forEach((
|
|
982
|
-
this.isSafeValue(
|
|
983
|
-
-----> The serie '${r.name}' contains the value '${
|
|
984
|
-
'${
|
|
982
|
+
r.series.forEach((c, u) => {
|
|
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 ${u}.
|
|
985
|
+
'${c}' was converted to null to allow the chart to display.`);
|
|
985
986
|
});
|
|
986
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 = {
|
|
987
988
|
dataLabels: {
|
|
@@ -992,26 +993,26 @@ const ct = ne(), ot = {
|
|
|
992
993
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
993
994
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
994
995
|
}, this.FINAL_CONFIG.responsive) {
|
|
995
|
-
const
|
|
996
|
+
const c = this.$refs.chart.parentNode;
|
|
996
997
|
this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
997
|
-
const { height:
|
|
998
|
+
const { height: u, width: f } = c.getBoundingClientRect();
|
|
998
999
|
let l = null, e = 0;
|
|
999
1000
|
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
|
|
1000
|
-
let i = null,
|
|
1001
|
-
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, A = 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, A = i.getBoundingClientRect().height);
|
|
1002
1003
|
let z = null, O = 0;
|
|
1003
1004
|
this.FINAL_CONFIG.chart.legend.show && this.$refs.chartLegend && (z = this.$refs.chartLegend, O = z.getBoundingClientRect().height);
|
|
1004
1005
|
let N = 0;
|
|
1005
1006
|
this.$refs.source && (N = this.$refs.source.getBoundingClientRect().height);
|
|
1006
1007
|
let F = 0;
|
|
1007
|
-
this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height), this.height =
|
|
1008
|
+
this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height), this.height = u - e - O - A - N - F - 12, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
1008
1009
|
const v = new ResizeObserver((m) => {
|
|
1009
1010
|
for (const L of m)
|
|
1010
|
-
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ?
|
|
1011
|
-
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 ? A = this.$refs.chartSlicer.$el.getBoundingClientRect().height : A = 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 - A - 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();
|
|
1012
1013
|
});
|
|
1013
1014
|
});
|
|
1014
|
-
this.resizeObserver = v, this.observedEl =
|
|
1015
|
+
this.resizeObserver = v, this.observedEl = c, v.observe(c);
|
|
1015
1016
|
} else
|
|
1016
1017
|
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
|
|
1017
1018
|
},
|
|
@@ -1076,20 +1077,20 @@ const ct = ne(), ot = {
|
|
|
1076
1077
|
checkAutoScaleError(r) {
|
|
1077
1078
|
r.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1078
1079
|
},
|
|
1079
|
-
createArea(r,
|
|
1080
|
+
createArea(r, c) {
|
|
1080
1081
|
if (!r[0]) return [-10, -10, "", -10, -10];
|
|
1081
|
-
const
|
|
1082
|
+
const u = { x: r[0].x, y: c }, f = { x: r.at(-1).x, y: c }, l = [];
|
|
1082
1083
|
return r.forEach((e) => {
|
|
1083
1084
|
l.push(`${e.x},${e.y} `);
|
|
1084
|
-
}), [
|
|
1085
|
+
}), [u.x, u.y, ...l, f.x, f.y].toString();
|
|
1085
1086
|
},
|
|
1086
1087
|
createStar: ie,
|
|
1087
1088
|
createPolygonPath: X,
|
|
1088
|
-
fillArray(r,
|
|
1089
|
-
let
|
|
1090
|
-
for (let f = 0; f <
|
|
1091
|
-
|
|
1092
|
-
return
|
|
1089
|
+
fillArray(r, c) {
|
|
1090
|
+
let u = Array(r).fill(0);
|
|
1091
|
+
for (let f = 0; f < c.length && f < r; f += 1)
|
|
1092
|
+
u[f] = c[f];
|
|
1093
|
+
return u;
|
|
1093
1094
|
},
|
|
1094
1095
|
async setupSlicer() {
|
|
1095
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 = {
|
|
@@ -1101,12 +1102,12 @@ const ct = ne(), ot = {
|
|
|
1101
1102
|
this.setupSlicer();
|
|
1102
1103
|
},
|
|
1103
1104
|
validSlicerEnd(r) {
|
|
1104
|
-
const
|
|
1105
|
-
return r >
|
|
1105
|
+
const c = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({ data: u.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
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;
|
|
1106
1107
|
},
|
|
1107
1108
|
calcRectHeight(r) {
|
|
1108
|
-
const
|
|
1109
|
-
return r.value >= 0 ? this.checkNaN(
|
|
1109
|
+
const c = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
|
|
1110
|
+
return r.value >= 0 ? this.checkNaN(c - r.y <= 0 ? 1e-5 : c - r.y) : this.checkNaN(r.y - this.zero <= 0 ? 1e-5 : r.y - this.zero);
|
|
1110
1111
|
},
|
|
1111
1112
|
calcIndividualHeight(r) {
|
|
1112
1113
|
return r.value >= 0 ? this.checkNaN(r.zeroPosition - r.y <= 0 ? 1e-5 : r.zeroPosition - r.y) : this.checkNaN(r.y - r.zeroPosition <= 0 ? 1e-5 : r.zeroPosition - r.y);
|
|
@@ -1126,13 +1127,13 @@ const ct = ne(), ot = {
|
|
|
1126
1127
|
canShowValue(r) {
|
|
1127
1128
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(r);
|
|
1128
1129
|
},
|
|
1129
|
-
findClosestValue(r,
|
|
1130
|
-
let
|
|
1131
|
-
for (let l = 1; l <
|
|
1132
|
-
const e = Math.abs(r -
|
|
1133
|
-
e < f &&
|
|
1130
|
+
findClosestValue(r, c) {
|
|
1131
|
+
let u = c[0], f = Math.abs(r - c[0]);
|
|
1132
|
+
for (let l = 1; l < c.length; l += 1) {
|
|
1133
|
+
const e = Math.abs(r - c[l]);
|
|
1134
|
+
e < f && c[l] < r && (u = c[l], f = e);
|
|
1134
1135
|
}
|
|
1135
|
-
return
|
|
1136
|
+
return u;
|
|
1136
1137
|
},
|
|
1137
1138
|
ratioToMax(r) {
|
|
1138
1139
|
return r / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
@@ -1141,11 +1142,11 @@ const ct = ne(), ot = {
|
|
|
1141
1142
|
this.$emit(
|
|
1142
1143
|
"selectX",
|
|
1143
1144
|
{
|
|
1144
|
-
dataset: this.relativeDataset.map((
|
|
1145
|
-
name:
|
|
1146
|
-
value: [null, void 0, NaN].includes(
|
|
1147
|
-
color:
|
|
1148
|
-
type:
|
|
1145
|
+
dataset: this.relativeDataset.map((c) => ({
|
|
1146
|
+
name: c.name,
|
|
1147
|
+
value: [null, void 0, NaN].includes(c.absoluteValues[r]) ? null : c.absoluteValues[r],
|
|
1148
|
+
color: c.color,
|
|
1149
|
+
type: c.type
|
|
1149
1150
|
})),
|
|
1150
1151
|
index: r,
|
|
1151
1152
|
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]
|
|
@@ -1160,22 +1161,27 @@ const ct = ne(), ot = {
|
|
|
1160
1161
|
type: r.type
|
|
1161
1162
|
}));
|
|
1162
1163
|
},
|
|
1164
|
+
async getImage({ scale: r = 2 } = {}) {
|
|
1165
|
+
if (!this.$refs.chart) return;
|
|
1166
|
+
const { imageUri: c, base64: u } = await nt({ domElement: this.$refs.chart, base64: !0, img: !0, scale: r });
|
|
1167
|
+
return { imageUri: c, base64: u };
|
|
1168
|
+
},
|
|
1163
1169
|
segregate(r) {
|
|
1164
1170
|
if (this.segregatedSeries.includes(r.id))
|
|
1165
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1171
|
+
this.segregatedSeries = this.segregatedSeries.filter((c) => c !== r.id);
|
|
1166
1172
|
else {
|
|
1167
1173
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1168
1174
|
this.segregatedSeries.push(r.id);
|
|
1169
1175
|
}
|
|
1170
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1171
|
-
name:
|
|
1172
|
-
values:
|
|
1173
|
-
color:
|
|
1174
|
-
type:
|
|
1176
|
+
this.$emit("selectLegend", this.relativeDataset.map((c) => ({
|
|
1177
|
+
name: c.name,
|
|
1178
|
+
values: c.absoluteValues,
|
|
1179
|
+
color: c.color,
|
|
1180
|
+
type: c.type
|
|
1175
1181
|
}))), this.segregateStep += 1;
|
|
1176
1182
|
},
|
|
1177
|
-
toggleTooltipVisibility(r,
|
|
1178
|
-
this.isTooltip = r, r ? this.selectedSerieIndex =
|
|
1183
|
+
toggleTooltipVisibility(r, c = null) {
|
|
1184
|
+
this.isTooltip = r, r ? this.selectedSerieIndex = c : this.selectedSerieIndex = null;
|
|
1179
1185
|
},
|
|
1180
1186
|
toggleFullscreen(r) {
|
|
1181
1187
|
this.isFullscreen = r, this.step += 1;
|
|
@@ -1186,7 +1192,7 @@ const ct = ne(), ot = {
|
|
|
1186
1192
|
async generatePdf() {
|
|
1187
1193
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1188
1194
|
try {
|
|
1189
|
-
const { default: r } = await import("./pdf-
|
|
1195
|
+
const { default: r } = await import("./pdf-yfk3d1is.js");
|
|
1190
1196
|
await r({
|
|
1191
1197
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1192
1198
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1200,7 +1206,7 @@ const ct = ne(), ot = {
|
|
|
1200
1206
|
}, 100);
|
|
1201
1207
|
},
|
|
1202
1208
|
generateCsv(r = null) {
|
|
1203
|
-
const
|
|
1209
|
+
const c = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], u = ["", ...this.table.head.map((i) => i.label)], f = this.table.body, l = c.concat([u]).concat(f), e = this.createCsvContent(l);
|
|
1204
1210
|
r ? r(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1205
1211
|
},
|
|
1206
1212
|
showSpinnerImage() {
|
|
@@ -1209,7 +1215,7 @@ const ct = ne(), ot = {
|
|
|
1209
1215
|
async generateImage() {
|
|
1210
1216
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1211
1217
|
try {
|
|
1212
|
-
const { default: r } = await import("./img-
|
|
1218
|
+
const { default: r } = await import("./img-Y_hYz-ZC.js");
|
|
1213
1219
|
await r({
|
|
1214
1220
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1215
1221
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1224,74 +1230,74 @@ const ct = ne(), ot = {
|
|
|
1224
1230
|
}, 100);
|
|
1225
1231
|
}
|
|
1226
1232
|
}
|
|
1227
|
-
},
|
|
1233
|
+
}, ut = ["id"], dt = {
|
|
1228
1234
|
key: 1,
|
|
1229
1235
|
ref: "noTitle",
|
|
1230
1236
|
class: "vue-data-ui-no-title-space",
|
|
1231
1237
|
style: "height:36px; width: 100%; background:transparent"
|
|
1232
|
-
},
|
|
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"], yt = ["x1", "x2", "y1", "y2", "stroke"], At = { 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 }, yl = { key: 0 }, Al = ["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 = {
|
|
1233
1239
|
key: 14,
|
|
1234
1240
|
style: { "pointer-events": "none" }
|
|
1235
|
-
},
|
|
1241
|
+
}, _r = ["x", "y"], yr = ["cx", "cy", "r", "fill"], Ar = {
|
|
1236
1242
|
key: 5,
|
|
1237
1243
|
class: "vue-data-ui-watermark"
|
|
1238
|
-
},
|
|
1244
|
+
}, Lr = {
|
|
1239
1245
|
class: "vue-ui-xy-tag-arrow",
|
|
1240
1246
|
height: "20",
|
|
1241
1247
|
viewBox: "0 0 10 20",
|
|
1242
1248
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1243
|
-
},
|
|
1249
|
+
}, Cr = ["fill"], Sr = ["innerHTML"], kr = {
|
|
1244
1250
|
class: "vue-ui-xy-tag-arrow",
|
|
1245
1251
|
height: "100%",
|
|
1246
1252
|
viewBox: "0 0 10 20",
|
|
1247
1253
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1248
|
-
},
|
|
1254
|
+
}, wr = ["fill"], Or = ["innerHTML"], Gr = {
|
|
1249
1255
|
class: "vue-ui-xy-tag-arrow",
|
|
1250
1256
|
height: "20",
|
|
1251
1257
|
viewBox: "0 0 10 20",
|
|
1252
1258
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1253
|
-
},
|
|
1259
|
+
}, vr = ["fill"], pr = ["innerHTML"], zr = {
|
|
1254
1260
|
class: "vue-ui-xy-tag-arrow",
|
|
1255
1261
|
height: "100%",
|
|
1256
1262
|
viewBox: "0 0 10 20",
|
|
1257
1263
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1258
|
-
},
|
|
1264
|
+
}, Mr = ["fill"], Tr = ["innerHTML"], Pr = ["onClick"], Vr = {
|
|
1259
1265
|
key: 0,
|
|
1260
1266
|
viewBox: "0 0 20 12",
|
|
1261
1267
|
height: "14",
|
|
1262
1268
|
width: "20"
|
|
1263
|
-
},
|
|
1269
|
+
}, Rr = ["stroke", "fill"], Hr = {
|
|
1264
1270
|
key: 1,
|
|
1265
1271
|
viewBox: "0 0 40 40",
|
|
1266
1272
|
height: "14",
|
|
1267
1273
|
width: "14"
|
|
1268
|
-
},
|
|
1274
|
+
}, Dr = ["fill"], Br = ["fill"], Wr = {
|
|
1269
1275
|
key: 2,
|
|
1270
1276
|
viewBox: "0 0 12 12",
|
|
1271
1277
|
height: "14",
|
|
1272
1278
|
width: "14"
|
|
1273
|
-
},
|
|
1279
|
+
}, Er = {
|
|
1274
1280
|
key: 9,
|
|
1275
1281
|
ref: "chartLegend"
|
|
1276
|
-
},
|
|
1282
|
+
}, Yr = {
|
|
1277
1283
|
key: 10,
|
|
1278
1284
|
ref: "source",
|
|
1279
1285
|
dir: "auto"
|
|
1280
|
-
},
|
|
1286
|
+
}, qr = {
|
|
1281
1287
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1282
1288
|
"data-dom-to-png-ignore": ""
|
|
1283
|
-
},
|
|
1284
|
-
function
|
|
1285
|
-
const i = q("PenAndPaper"),
|
|
1289
|
+
}, Xr = ["innerHTML"];
|
|
1290
|
+
function Ur(r, c, u, f, l, e) {
|
|
1291
|
+
const i = q("PenAndPaper"), A = 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");
|
|
1286
1292
|
return a(), s("div", {
|
|
1287
1293
|
id: `vue-ui-xy_${l.uniqueId}`,
|
|
1288
1294
|
class: j(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1289
1295
|
ref: "chart",
|
|
1290
1296
|
style: _(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
|
|
1291
|
-
onMouseenter:
|
|
1292
|
-
onMouseleave:
|
|
1297
|
+
onMouseenter: c[7] || (c[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1298
|
+
onMouseleave: c[8] || (c[8] = () => e.setUserOptionsVisibility(!1))
|
|
1293
1299
|
}, [
|
|
1294
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), U(i, {
|
|
1300
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator && l.svgRef ? (a(), U(i, {
|
|
1295
1301
|
key: 0,
|
|
1296
1302
|
svgRef: l.svgRef,
|
|
1297
1303
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1299,14 +1305,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1299
1305
|
active: l.isAnnotator,
|
|
1300
1306
|
onClose: e.toggleAnnotator
|
|
1301
1307
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : h("", !0),
|
|
1302
|
-
e.hasOptionsNoTitle ? (a(), s("div",
|
|
1308
|
+
e.hasOptionsNoTitle ? (a(), s("div", dt, null, 512)) : h("", !0),
|
|
1303
1309
|
e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
|
|
1304
1310
|
key: 2,
|
|
1305
1311
|
ref: "chartTitle",
|
|
1306
1312
|
class: "vue-ui-xy-title",
|
|
1307
1313
|
style: _(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1308
1314
|
}, [
|
|
1309
|
-
(a(), U(
|
|
1315
|
+
(a(), U(A, {
|
|
1310
1316
|
key: `title_${l.titleStep}`,
|
|
1311
1317
|
config: {
|
|
1312
1318
|
title: {
|
|
@@ -1334,7 +1340,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1334
1340
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1335
1341
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1336
1342
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1337
|
-
hasStack:
|
|
1343
|
+
hasStack: u.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1338
1344
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1339
1345
|
isStacked: l.mutableConfig.isStacked,
|
|
1340
1346
|
isFullscreen: l.isFullscreen,
|
|
@@ -1361,8 +1367,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1361
1367
|
}, et({ _: 2 }, [
|
|
1362
1368
|
r.$slots.menuIcon ? {
|
|
1363
1369
|
name: "menuIcon",
|
|
1364
|
-
fn: B(({ isOpen: t, color:
|
|
1365
|
-
G(r.$slots, "menuIcon", $(ee({ isOpen: t, color:
|
|
1370
|
+
fn: B(({ isOpen: t, color: o }) => [
|
|
1371
|
+
G(r.$slots, "menuIcon", $(ee({ isOpen: t, color: o })), void 0, !0)
|
|
1366
1372
|
]),
|
|
1367
1373
|
key: "0"
|
|
1368
1374
|
} : void 0,
|
|
@@ -1417,15 +1423,15 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1417
1423
|
} : void 0,
|
|
1418
1424
|
r.$slots.optionFullscreen ? {
|
|
1419
1425
|
name: "optionFullscreen",
|
|
1420
|
-
fn: B(({ toggleFullscreen: t, isFullscreen:
|
|
1421
|
-
G(r.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen:
|
|
1426
|
+
fn: B(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
1427
|
+
G(r.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
1422
1428
|
]),
|
|
1423
1429
|
key: "8"
|
|
1424
1430
|
} : void 0,
|
|
1425
1431
|
r.$slots.optionAnnotator ? {
|
|
1426
1432
|
name: "optionAnnotator",
|
|
1427
|
-
fn: B(({ toggleAnnotator: t, isAnnotator:
|
|
1428
|
-
G(r.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator:
|
|
1433
|
+
fn: B(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
1434
|
+
G(r.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
1429
1435
|
]),
|
|
1430
1436
|
key: "9"
|
|
1431
1437
|
} : void 0
|
|
@@ -1454,9 +1460,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1454
1460
|
}
|
|
1455
1461
|
}, [
|
|
1456
1462
|
G(r.$slots, "chart-background", {}, void 0, !0)
|
|
1457
|
-
], 8,
|
|
1458
|
-
e.maxSeries > 0 ? (a(), s("g",
|
|
1459
|
-
I("g",
|
|
1463
|
+
], 8, ft)) : h("", !0),
|
|
1464
|
+
e.maxSeries > 0 ? (a(), s("g", It, [
|
|
1465
|
+
I("g", xt, [
|
|
1460
1466
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
|
|
1461
1467
|
key: 0,
|
|
1462
1468
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1467,28 +1473,28 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1467
1473
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1468
1474
|
"stroke-linecap": "round",
|
|
1469
1475
|
style: { animation: "none !important" }
|
|
1470
|
-
}, null, 8,
|
|
1471
|
-
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(
|
|
1472
|
-
t.id === l.selectedScale && t.yLabels.length ? (a(!0), s(
|
|
1476
|
+
}, null, 8, Nt)) : h("", !0),
|
|
1477
|
+
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(d, { key: 2 }, x(e.allScales, (t) => (a(), s("g", null, [
|
|
1478
|
+
t.id === l.selectedScale && t.yLabels.length ? (a(!0), s(d, { key: 0 }, x(t.yLabels, (o) => (a(), s("line", {
|
|
1473
1479
|
x1: e.drawingArea.left + e.xPadding,
|
|
1474
1480
|
x2: e.drawingArea.right - e.xPadding,
|
|
1475
|
-
y1: e.forceValidValue(
|
|
1476
|
-
y2: e.forceValidValue(
|
|
1481
|
+
y1: e.forceValidValue(o.y),
|
|
1482
|
+
y2: e.forceValidValue(o.y),
|
|
1477
1483
|
stroke: t.color,
|
|
1478
1484
|
"stroke-width": 0.5,
|
|
1479
1485
|
"stroke-linecap": "round",
|
|
1480
1486
|
style: { animation: "none !important" }
|
|
1481
|
-
}, null, 8,
|
|
1487
|
+
}, null, 8, _t))), 256)) : t.yLabels.length ? (a(!0), s(d, { key: 1 }, x(t.yLabels, (o) => (a(), s("line", {
|
|
1482
1488
|
x1: e.drawingArea.left + e.xPadding,
|
|
1483
1489
|
x2: e.drawingArea.right - e.xPadding,
|
|
1484
|
-
y1: e.forceValidValue(
|
|
1485
|
-
y2: e.forceValidValue(
|
|
1490
|
+
y1: e.forceValidValue(o.y),
|
|
1491
|
+
y2: e.forceValidValue(o.y),
|
|
1486
1492
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1487
1493
|
"stroke-width": 0.5,
|
|
1488
1494
|
"stroke-linecap": "round",
|
|
1489
1495
|
style: { animation: "none !important" }
|
|
1490
|
-
}, null, 8,
|
|
1491
|
-
]))), 256)) : h("", !0) : (a(), s(
|
|
1496
|
+
}, null, 8, yt))), 256)) : h("", !0)
|
|
1497
|
+
]))), 256)) : h("", !0) : (a(), s(d, { key: 1 }, [
|
|
1492
1498
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
|
|
1493
1499
|
key: 0,
|
|
1494
1500
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1499,9 +1505,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1499
1505
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1500
1506
|
"stroke-linecap": "round",
|
|
1501
1507
|
style: { animation: "none !important" }
|
|
1502
|
-
}, null, 8,
|
|
1503
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g",
|
|
1504
|
-
(a(!0), s(
|
|
1508
|
+
}, null, 8, mt)) : h("", !0),
|
|
1509
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", bt, [
|
|
1510
|
+
(a(!0), s(d, null, x(e.yLabels, (t) => (a(), s("line", {
|
|
1505
1511
|
x1: e.drawingArea.left + e.xPadding,
|
|
1506
1512
|
x2: e.drawingArea.right - e.xPadding,
|
|
1507
1513
|
y1: e.forceValidValue(t.y),
|
|
@@ -1510,86 +1516,86 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1510
1516
|
"stroke-width": 0.5,
|
|
1511
1517
|
"stroke-linecap": "round",
|
|
1512
1518
|
style: { animation: "none !important" }
|
|
1513
|
-
}, null, 8,
|
|
1519
|
+
}, null, 8, Ft))), 256))
|
|
1514
1520
|
])) : h("", !0)
|
|
1515
1521
|
], 64)),
|
|
1516
1522
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", At, [
|
|
1517
|
-
(a(!0), s(
|
|
1518
|
-
key: `grid_vertical_line_${
|
|
1519
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1520
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1523
|
+
(a(!0), s(d, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, o) => (a(), s("line", {
|
|
1524
|
+
key: `grid_vertical_line_${o}`,
|
|
1525
|
+
x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1526
|
+
x2: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1521
1527
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1522
1528
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1523
1529
|
"stroke-width": "0.5",
|
|
1524
1530
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1525
1531
|
style: { animation: "none !important" }
|
|
1526
|
-
}, null, 8,
|
|
1532
|
+
}, null, 8, Lt))), 128))
|
|
1527
1533
|
])) : h("", !0),
|
|
1528
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g",
|
|
1529
|
-
(a(!0), s(
|
|
1530
|
-
key: `time_label_${
|
|
1534
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", Ct, [
|
|
1535
|
+
(a(!0), s(d, null, x(e.timeLabels, (t, o) => (a(), s("g", {
|
|
1536
|
+
key: `time_label_${o}`
|
|
1531
1537
|
}, [
|
|
1532
|
-
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (
|
|
1538
|
+
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s(d, { key: 0 }, [
|
|
1533
1539
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (a(), s("line", {
|
|
1534
1540
|
key: 0,
|
|
1535
1541
|
y1: e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? e.zero - (e.zero === e.drawingArea.bottom ? 0 : e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize / 2) : e.drawingArea.bottom,
|
|
1536
1542
|
y2: e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? e.zero + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize / (e.zero === e.drawingArea.bottom ? 1 : 2) : e.drawingArea.bottom + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize,
|
|
1537
|
-
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1538
|
-
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1543
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
|
|
1544
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
|
|
1539
1545
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1540
1546
|
"stroke-width": 1,
|
|
1541
1547
|
"stroke-linecap": "round",
|
|
1542
1548
|
style: { animation: "none !important" }
|
|
1543
|
-
}, null, 8,
|
|
1549
|
+
}, null, 8, St)) : h("", !0)
|
|
1544
1550
|
], 64)) : h("", !0)
|
|
1545
1551
|
]))), 128))
|
|
1546
1552
|
])) : h("", !0)
|
|
1547
1553
|
]),
|
|
1548
|
-
(a(!0), s(
|
|
1549
|
-
key: `def_rect_${
|
|
1554
|
+
(a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s("defs", {
|
|
1555
|
+
key: `def_rect_${o}`
|
|
1550
1556
|
}, [
|
|
1551
1557
|
I("linearGradient", {
|
|
1552
|
-
id: `rectGradient_pos_${
|
|
1558
|
+
id: `rectGradient_pos_${o}_${l.uniqueId}`,
|
|
1553
1559
|
x2: "0%",
|
|
1554
1560
|
y2: "100%"
|
|
1555
1561
|
}, [
|
|
1556
1562
|
I("stop", {
|
|
1557
1563
|
offset: "0%",
|
|
1558
1564
|
"stop-color": t.color
|
|
1559
|
-
}, null, 8,
|
|
1565
|
+
}, null, 8, wt),
|
|
1560
1566
|
I("stop", {
|
|
1561
1567
|
offset: "62%",
|
|
1562
1568
|
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1563
|
-
}, null, 8,
|
|
1569
|
+
}, null, 8, Ot),
|
|
1564
1570
|
I("stop", {
|
|
1565
1571
|
offset: "100%",
|
|
1566
1572
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1567
|
-
}, null, 8,
|
|
1568
|
-
], 8,
|
|
1573
|
+
}, null, 8, Gt)
|
|
1574
|
+
], 8, kt),
|
|
1569
1575
|
I("linearGradient", {
|
|
1570
|
-
id: `rectGradient_neg_${
|
|
1576
|
+
id: `rectGradient_neg_${o}_${l.uniqueId}`,
|
|
1571
1577
|
x2: "0%",
|
|
1572
1578
|
y2: "100%"
|
|
1573
1579
|
}, [
|
|
1574
1580
|
I("stop", {
|
|
1575
1581
|
offset: "0%",
|
|
1576
1582
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1577
|
-
}, null, 8,
|
|
1583
|
+
}, null, 8, pt),
|
|
1578
1584
|
I("stop", {
|
|
1579
1585
|
offset: "38%",
|
|
1580
1586
|
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1581
|
-
}, null, 8,
|
|
1587
|
+
}, null, 8, zt),
|
|
1582
1588
|
I("stop", {
|
|
1583
1589
|
offset: "100%",
|
|
1584
1590
|
"stop-color": t.color
|
|
1585
|
-
}, null, 8,
|
|
1586
|
-
], 8,
|
|
1591
|
+
}, null, 8, Mt)
|
|
1592
|
+
], 8, vt)
|
|
1587
1593
|
]))), 128)),
|
|
1588
|
-
(a(!0), s(
|
|
1589
|
-
key: `def_plot_${
|
|
1594
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("defs", {
|
|
1595
|
+
key: `def_plot_${o}`
|
|
1590
1596
|
}, [
|
|
1591
1597
|
I("radialGradient", {
|
|
1592
|
-
id: `plotGradient_${
|
|
1598
|
+
id: `plotGradient_${o}_${l.uniqueId}`,
|
|
1593
1599
|
cx: "50%",
|
|
1594
1600
|
cy: "50%",
|
|
1595
1601
|
r: "50%",
|
|
@@ -1599,18 +1605,18 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1599
1605
|
I("stop", {
|
|
1600
1606
|
offset: "0%",
|
|
1601
1607
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1602
|
-
}, null, 8,
|
|
1608
|
+
}, null, 8, Pt),
|
|
1603
1609
|
I("stop", {
|
|
1604
1610
|
offset: "100%",
|
|
1605
1611
|
"stop-color": t.color
|
|
1606
|
-
}, null, 8,
|
|
1607
|
-
], 8,
|
|
1612
|
+
}, null, 8, Vt)
|
|
1613
|
+
], 8, Tt)
|
|
1608
1614
|
]))), 128)),
|
|
1609
|
-
(a(!0), s(
|
|
1610
|
-
key: `def_line_${
|
|
1615
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("defs", {
|
|
1616
|
+
key: `def_line_${o}`
|
|
1611
1617
|
}, [
|
|
1612
1618
|
I("radialGradient", {
|
|
1613
|
-
id: `lineGradient_${
|
|
1619
|
+
id: `lineGradient_${o}_${l.uniqueId}`,
|
|
1614
1620
|
cx: "50%",
|
|
1615
1621
|
cy: "50%",
|
|
1616
1622
|
r: "50%",
|
|
@@ -1620,14 +1626,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1620
1626
|
I("stop", {
|
|
1621
1627
|
offset: "0%",
|
|
1622
1628
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1623
|
-
}, null, 8,
|
|
1629
|
+
}, null, 8, Ht),
|
|
1624
1630
|
I("stop", {
|
|
1625
1631
|
offset: "100%",
|
|
1626
1632
|
"stop-color": t.color
|
|
1627
|
-
}, null, 8,
|
|
1628
|
-
], 8,
|
|
1633
|
+
}, null, 8, Dt)
|
|
1634
|
+
], 8, Rt),
|
|
1629
1635
|
I("linearGradient", {
|
|
1630
|
-
id: `areaGradient_${
|
|
1636
|
+
id: `areaGradient_${o}_${l.uniqueId}`,
|
|
1631
1637
|
x1: "0%",
|
|
1632
1638
|
x2: "100%",
|
|
1633
1639
|
y1: "0%",
|
|
@@ -1636,16 +1642,16 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1636
1642
|
I("stop", {
|
|
1637
1643
|
offset: "0%",
|
|
1638
1644
|
"stop-color": `${e.setOpacity(e.shiftHue(t.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1639
|
-
}, null, 8,
|
|
1645
|
+
}, null, 8, Wt),
|
|
1640
1646
|
I("stop", {
|
|
1641
1647
|
offset: "100%",
|
|
1642
1648
|
"stop-color": `${e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1643
|
-
}, null, 8,
|
|
1644
|
-
], 8,
|
|
1649
|
+
}, null, 8, Et)
|
|
1650
|
+
], 8, Bt)
|
|
1645
1651
|
]))), 128)),
|
|
1646
|
-
(a(!0), s(
|
|
1647
|
-
t.show ? (a(), s(
|
|
1648
|
-
(a(!0), s(
|
|
1652
|
+
(a(!0), s(d, null, x(e.highlightAreas, (t) => (a(), s("g", null, [
|
|
1653
|
+
t.show ? (a(), s(d, { key: 0 }, [
|
|
1654
|
+
(a(!0), s(d, null, x(t.span, (o, n) => (a(), s("g", null, [
|
|
1649
1655
|
I("rect", {
|
|
1650
1656
|
style: _({
|
|
1651
1657
|
transition: "none",
|
|
@@ -1656,9 +1662,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1656
1662
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1657
1663
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1658
1664
|
fill: e.setOpacity(t.color, t.opacity)
|
|
1659
|
-
}, null, 12,
|
|
1665
|
+
}, null, 12, Yt)
|
|
1660
1666
|
]))), 256)),
|
|
1661
|
-
(a(!0), s(
|
|
1667
|
+
(a(!0), s(d, null, x(t.span, (o, n) => (a(), s("g", null, [
|
|
1662
1668
|
t.caption.text && n === 0 ? (a(), s("foreignObject", {
|
|
1663
1669
|
key: 0,
|
|
1664
1670
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + n - l.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
|
|
@@ -1673,30 +1679,30 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1673
1679
|
I("div", {
|
|
1674
1680
|
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"}`)
|
|
1675
1681
|
}, V(t.caption.text), 5)
|
|
1676
|
-
], 12,
|
|
1682
|
+
], 12, qt)) : h("", !0)
|
|
1677
1683
|
]))), 256))
|
|
1678
1684
|
], 64)) : h("", !0)
|
|
1679
1685
|
]))), 256)),
|
|
1680
1686
|
I("g", null, [
|
|
1681
|
-
(a(!0), s(
|
|
1682
|
-
key: `tooltip_trap_highlighter_${
|
|
1687
|
+
(a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("g", {
|
|
1688
|
+
key: `tooltip_trap_highlighter_${o}`
|
|
1683
1689
|
}, [
|
|
1684
1690
|
I("rect", {
|
|
1685
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1691
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
1686
1692
|
y: e.drawingArea.top,
|
|
1687
1693
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1688
1694
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1689
|
-
fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(
|
|
1690
|
-
}, null, 8,
|
|
1695
|
+
fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(o) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1696
|
+
}, null, 8, Xt)
|
|
1691
1697
|
]))), 128))
|
|
1692
1698
|
]),
|
|
1693
|
-
e.barSet.length ? (a(!0), s(
|
|
1694
|
-
key: `serie_bar_${
|
|
1695
|
-
class: j(`serie_bar_${
|
|
1699
|
+
e.barSet.length ? (a(!0), s(d, { key: 0 }, x(e.barSet, (t, o) => (a(), s("g", {
|
|
1700
|
+
key: `serie_bar_${o}`,
|
|
1701
|
+
class: j(`serie_bar_${o}`),
|
|
1696
1702
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1697
1703
|
}, [
|
|
1698
|
-
(a(!0), s(
|
|
1699
|
-
key: `bar_plot_${
|
|
1704
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s("g", {
|
|
1705
|
+
key: `bar_plot_${o}_${g}`
|
|
1700
1706
|
}, [
|
|
1701
1707
|
e.canShowValue(n.value) ? (a(), s("rect", {
|
|
1702
1708
|
key: 0,
|
|
@@ -1705,10 +1711,10 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1705
1711
|
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1706
1712
|
width: e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1707
1713
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1708
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${
|
|
1714
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${o}_${l.uniqueId})` : `url(#rectGradient_neg_${o}_${l.uniqueId})` : t.color,
|
|
1709
1715
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1710
1716
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1711
|
-
}, null, 8,
|
|
1717
|
+
}, null, 8, Ut)) : h("", !0),
|
|
1712
1718
|
e.canShowValue(n.value) && r.$slots.pattern ? (a(), s("rect", {
|
|
1713
1719
|
key: 1,
|
|
1714
1720
|
x: e.calcRectX(n),
|
|
@@ -1719,7 +1725,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1719
1725
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`,
|
|
1720
1726
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1721
1727
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1722
|
-
}, null, 8,
|
|
1728
|
+
}, null, 8, Zt)) : h("", !0),
|
|
1723
1729
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1724
1730
|
key: 2,
|
|
1725
1731
|
style: { overflow: "visible" },
|
|
@@ -1729,14 +1735,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1729
1735
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1730
1736
|
}, [
|
|
1731
1737
|
G(r.$slots, "plot-comment", {
|
|
1732
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
1738
|
+
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1733
1739
|
}, void 0, !0)
|
|
1734
|
-
], 8,
|
|
1740
|
+
], 8, Jt)) : h("", !0)
|
|
1735
1741
|
]))), 128)),
|
|
1736
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g",
|
|
1742
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", Kt, [
|
|
1737
1743
|
I("defs", null, [
|
|
1738
1744
|
I("marker", {
|
|
1739
|
-
id: `bar_arrow_${
|
|
1745
|
+
id: `bar_arrow_${o}`,
|
|
1740
1746
|
markerWidth: 7,
|
|
1741
1747
|
markerHeight: 7,
|
|
1742
1748
|
refX: "0",
|
|
@@ -1746,8 +1752,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1746
1752
|
I("polygon", {
|
|
1747
1753
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1748
1754
|
fill: t.color
|
|
1749
|
-
}, null, 8,
|
|
1750
|
-
], 8,
|
|
1755
|
+
}, null, 8, jt)
|
|
1756
|
+
], 8, Qt)
|
|
1751
1757
|
]),
|
|
1752
1758
|
t.plots.length > 1 ? (a(), s("line", {
|
|
1753
1759
|
key: 0,
|
|
@@ -1758,8 +1764,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1758
1764
|
"stroke-width": 1,
|
|
1759
1765
|
stroke: t.color,
|
|
1760
1766
|
"stroke-dasharray": 2,
|
|
1761
|
-
"marker-end": `url(#bar_arrow_${
|
|
1762
|
-
}, null, 8,
|
|
1767
|
+
"marker-end": `url(#bar_arrow_${o})`
|
|
1768
|
+
}, null, 8, $t)) : h("", !0),
|
|
1763
1769
|
t.plots.length > 1 ? (a(), s("text", {
|
|
1764
1770
|
key: 1,
|
|
1765
1771
|
"text-anchor": "middle",
|
|
@@ -1771,7 +1777,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1771
1777
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1772
1778
|
s: "%",
|
|
1773
1779
|
r: 2
|
|
1774
|
-
})), 9,
|
|
1780
|
+
})), 9, el)) : h("", !0)
|
|
1775
1781
|
])) : h("", !0)
|
|
1776
1782
|
], 6))), 128)) : h("", !0),
|
|
1777
1783
|
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
|
|
@@ -1784,8 +1790,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1784
1790
|
y2: e.forceValidValue(e.zero),
|
|
1785
1791
|
"stroke-linecap": "round",
|
|
1786
1792
|
style: { animation: "none !important" }
|
|
1787
|
-
}, null, 8,
|
|
1788
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g",
|
|
1793
|
+
}, null, 8, tl)) : h("", !0),
|
|
1794
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", ll, [
|
|
1789
1795
|
I("line", {
|
|
1790
1796
|
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,
|
|
1791
1797
|
x2: 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,
|
|
@@ -1796,7 +1802,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1796
1802
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1797
1803
|
"stroke-linecap": "round",
|
|
1798
1804
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1799
|
-
}, null, 8,
|
|
1805
|
+
}, null, 8, rl)
|
|
1800
1806
|
])) : h("", !0),
|
|
1801
1807
|
e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
|
|
1802
1808
|
key: 3,
|
|
@@ -1811,10 +1817,10 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1811
1817
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1812
1818
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1813
1819
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1814
|
-
}, null, 8,
|
|
1815
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g",
|
|
1816
|
-
l.mutableConfig.useIndividualScale ? (a(), s(
|
|
1817
|
-
(a(!0), s(
|
|
1820
|
+
}, null, 8, il)) : h("", !0),
|
|
1821
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", al, [
|
|
1822
|
+
l.mutableConfig.useIndividualScale ? (a(), s(d, { key: 0 }, [
|
|
1823
|
+
(a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", null, [
|
|
1818
1824
|
I("line", {
|
|
1819
1825
|
x1: t.x + e.xPadding,
|
|
1820
1826
|
x2: t.x + e.xPadding,
|
|
@@ -1824,9 +1830,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1824
1830
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1825
1831
|
"stroke-linecap": "round",
|
|
1826
1832
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1827
|
-
}, null, 12,
|
|
1833
|
+
}, null, 12, sl)
|
|
1828
1834
|
]))), 256)),
|
|
1829
|
-
(a(!0), s(
|
|
1835
|
+
(a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", {
|
|
1830
1836
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1831
1837
|
}, [
|
|
1832
1838
|
I("text", {
|
|
@@ -1834,40 +1840,40 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1834
1840
|
"font-size": l.fontSizes.dataLabels,
|
|
1835
1841
|
"text-anchor": "middle",
|
|
1836
1842
|
transform: `translate(${t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${l.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset - t.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1837
|
-
}, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9,
|
|
1838
|
-
(a(!0), s(
|
|
1843
|
+
}, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9, nl),
|
|
1844
|
+
(a(!0), s(d, null, x(t.yLabels, (o, n) => (a(), s(d, null, [
|
|
1839
1845
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), s("line", {
|
|
1840
1846
|
key: 0,
|
|
1841
1847
|
x1: t.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
|
|
1842
1848
|
x2: t.x + e.xPadding,
|
|
1843
|
-
y1: e.forceValidValue(
|
|
1844
|
-
y2: e.forceValidValue(
|
|
1849
|
+
y1: e.forceValidValue(o.y),
|
|
1850
|
+
y2: e.forceValidValue(o.y),
|
|
1845
1851
|
stroke: t.color,
|
|
1846
1852
|
"stroke-width": 1,
|
|
1847
1853
|
"stroke-linecap": "round",
|
|
1848
1854
|
style: { animation: "none !important" }
|
|
1849
|
-
}, null, 8,
|
|
1855
|
+
}, null, 8, cl)) : h("", !0)
|
|
1850
1856
|
], 64))), 256)),
|
|
1851
|
-
(a(!0), s(
|
|
1857
|
+
(a(!0), s(d, null, x(t.yLabels, (o, n) => (a(), s("text", {
|
|
1852
1858
|
x: t.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1853
|
-
y: e.forceValidValue(
|
|
1859
|
+
y: e.forceValidValue(o.y) + l.fontSizes.dataLabels / 3,
|
|
1854
1860
|
"font-size": l.fontSizes.dataLabels,
|
|
1855
1861
|
"text-anchor": "end",
|
|
1856
1862
|
fill: t.color
|
|
1857
1863
|
}, V(e.applyDataLabel(
|
|
1858
1864
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1859
|
-
|
|
1865
|
+
o.value,
|
|
1860
1866
|
e.dataLabel({
|
|
1861
|
-
p:
|
|
1862
|
-
v:
|
|
1863
|
-
s:
|
|
1867
|
+
p: o.prefix,
|
|
1868
|
+
v: o.value,
|
|
1869
|
+
s: o.suffix,
|
|
1864
1870
|
r: 1
|
|
1865
1871
|
}),
|
|
1866
|
-
{ datapoint:
|
|
1867
|
-
)), 9,
|
|
1872
|
+
{ datapoint: o.datapoint, seriesIndex: n }
|
|
1873
|
+
)), 9, ol))), 256))
|
|
1868
1874
|
], 4))), 256))
|
|
1869
|
-
], 64)) : (a(!0), s(
|
|
1870
|
-
key: `yLabel_${
|
|
1875
|
+
], 64)) : (a(!0), s(d, { key: 1 }, x(e.yLabels, (t, o) => (a(), s("g", {
|
|
1876
|
+
key: `yLabel_${o}`
|
|
1871
1877
|
}, [
|
|
1872
1878
|
e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), s("line", {
|
|
1873
1879
|
key: 0,
|
|
@@ -1879,7 +1885,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1879
1885
|
"stroke-width": "1",
|
|
1880
1886
|
"stroke-linecap": "round",
|
|
1881
1887
|
style: { animation: "none !important" }
|
|
1882
|
-
}, null, 8,
|
|
1888
|
+
}, null, 8, hl)) : h("", !0),
|
|
1883
1889
|
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (a(), s("text", {
|
|
1884
1890
|
key: 1,
|
|
1885
1891
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
@@ -1896,21 +1902,21 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1896
1902
|
s: t.suffix,
|
|
1897
1903
|
r: 1
|
|
1898
1904
|
})
|
|
1899
|
-
) : ""), 9,
|
|
1905
|
+
) : ""), 9, ul)) : h("", !0)
|
|
1900
1906
|
]))), 128))
|
|
1901
1907
|
])) : h("", !0),
|
|
1902
|
-
(a(!0), s(
|
|
1903
|
-
key: `serie_plot_${
|
|
1904
|
-
class: j(`serie_plot_${
|
|
1908
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("g", {
|
|
1909
|
+
key: `serie_plot_${o}`,
|
|
1910
|
+
class: j(`serie_plot_${o}`),
|
|
1905
1911
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1906
1912
|
}, [
|
|
1907
|
-
(a(!0), s(
|
|
1908
|
-
key: `circle_plot_${
|
|
1913
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s("g", {
|
|
1914
|
+
key: `circle_plot_${o}_${g}`
|
|
1909
1915
|
}, [
|
|
1910
1916
|
n && e.canShowValue(n.value) ? (a(), U(N, {
|
|
1911
1917
|
key: 0,
|
|
1912
1918
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1913
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1919
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${o}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? t.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1914
1920
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1915
1921
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
|
|
1916
1922
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
@@ -1924,17 +1930,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1924
1930
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1925
1931
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1926
1932
|
}, [
|
|
1927
|
-
I("div",
|
|
1933
|
+
I("div", gl, [
|
|
1928
1934
|
G(r.$slots, "plot-comment", {
|
|
1929
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
1935
|
+
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1930
1936
|
}, void 0, !0)
|
|
1931
1937
|
])
|
|
1932
|
-
], 8,
|
|
1938
|
+
], 8, dl)) : h("", !0)
|
|
1933
1939
|
]))), 128)),
|
|
1934
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g",
|
|
1940
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", fl, [
|
|
1935
1941
|
I("defs", null, [
|
|
1936
1942
|
I("marker", {
|
|
1937
|
-
id: `plot_arrow_${
|
|
1943
|
+
id: `plot_arrow_${o}`,
|
|
1938
1944
|
markerWidth: 7,
|
|
1939
1945
|
markerHeight: 7,
|
|
1940
1946
|
refX: "0",
|
|
@@ -1944,8 +1950,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1944
1950
|
I("polygon", {
|
|
1945
1951
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1946
1952
|
fill: t.color
|
|
1947
|
-
}, null, 8,
|
|
1948
|
-
], 8,
|
|
1953
|
+
}, null, 8, xl)
|
|
1954
|
+
], 8, Il)
|
|
1949
1955
|
]),
|
|
1950
1956
|
t.plots.length > 1 ? (a(), s("line", {
|
|
1951
1957
|
key: 0,
|
|
@@ -1956,8 +1962,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1956
1962
|
"stroke-width": 1,
|
|
1957
1963
|
stroke: t.color,
|
|
1958
1964
|
"stroke-dasharray": 2,
|
|
1959
|
-
"marker-end": `url(#plot_arrow_${
|
|
1960
|
-
}, null, 8,
|
|
1965
|
+
"marker-end": `url(#plot_arrow_${o})`
|
|
1966
|
+
}, null, 8, Nl)) : h("", !0),
|
|
1961
1967
|
t.plots.length > 1 ? (a(), s("text", {
|
|
1962
1968
|
key: 1,
|
|
1963
1969
|
"text-anchor": "middle",
|
|
@@ -1969,12 +1975,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1969
1975
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1970
1976
|
s: "%",
|
|
1971
1977
|
r: 2
|
|
1972
|
-
})), 9,
|
|
1978
|
+
})), 9, ml)) : h("", !0)
|
|
1973
1979
|
])) : h("", !0)
|
|
1974
1980
|
], 6))), 128)),
|
|
1975
|
-
(a(!0), s(
|
|
1976
|
-
key: `serie_line_${
|
|
1977
|
-
class: j(`serie_line_${
|
|
1981
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
|
|
1982
|
+
key: `serie_line_${o}`,
|
|
1983
|
+
class: j(`serie_line_${o}`),
|
|
1978
1984
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1979
1985
|
}, [
|
|
1980
1986
|
t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
|
|
@@ -1984,7 +1990,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1984
1990
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1985
1991
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1986
1992
|
fill: "none"
|
|
1987
|
-
}, null, 8,
|
|
1993
|
+
}, null, 8, bl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
|
|
1988
1994
|
key: 1,
|
|
1989
1995
|
d: `M${t.straight}`,
|
|
1990
1996
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1993,39 +1999,39 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1993
1999
|
fill: "none",
|
|
1994
2000
|
"stroke-linecap": "round",
|
|
1995
2001
|
"stroke-linejoin": "round"
|
|
1996
|
-
}, null, 8,
|
|
2002
|
+
}, null, 8, Fl)) : h("", !0)
|
|
1997
2003
|
], 6))), 128)),
|
|
1998
|
-
r.$slots.pattern ? (a(), s("defs",
|
|
1999
|
-
(a(!0), s(
|
|
2000
|
-
key: `serie_pattern_slot_${
|
|
2001
|
-
}, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${
|
|
2004
|
+
r.$slots.pattern ? (a(), s("defs", _l, [
|
|
2005
|
+
(a(!0), s(d, null, x(e.safeDataset, (t, o) => G(r.$slots, "pattern", se({
|
|
2006
|
+
key: `serie_pattern_slot_${o}`
|
|
2007
|
+
}, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${o}` }), void 0, !0)), 128))
|
|
2002
2008
|
])) : h("", !0),
|
|
2003
|
-
(a(!0), s(
|
|
2004
|
-
key: `serie_line_${
|
|
2005
|
-
class: j(`serie_line_${
|
|
2009
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
|
|
2010
|
+
key: `serie_line_${o}`,
|
|
2011
|
+
class: j(`serie_line_${o}`),
|
|
2006
2012
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2007
2013
|
}, [
|
|
2008
|
-
t.useArea && t.plots.length > 1 ? (a(), s("g",
|
|
2009
|
-
t.smooth ? (a(!0), s(
|
|
2014
|
+
t.useArea && t.plots.length > 1 ? (a(), s("g", yl, [
|
|
2015
|
+
t.smooth ? (a(!0), s(d, { key: 0 }, x(t.curveAreas, (n, g) => (a(), s(d, { key: g }, [
|
|
2010
2016
|
I("path", {
|
|
2011
2017
|
d: n,
|
|
2012
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
2018
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2013
2019
|
}, null, 8, Al),
|
|
2014
2020
|
r.$slots.pattern ? (a(), s("path", {
|
|
2015
2021
|
key: 0,
|
|
2016
2022
|
d: n,
|
|
2017
2023
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2018
|
-
}, null, 8,
|
|
2019
|
-
], 64))), 128)) : (a(!0), s(
|
|
2024
|
+
}, null, 8, Ll)) : h("", !0)
|
|
2025
|
+
], 64))), 128)) : (a(!0), s(d, { key: 1 }, x(t.area.split(";"), (n, g) => (a(), s(d, { key: g }, [
|
|
2020
2026
|
I("path", {
|
|
2021
2027
|
d: `M${n}Z`,
|
|
2022
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
2023
|
-
}, null, 8,
|
|
2028
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2029
|
+
}, null, 8, Cl),
|
|
2024
2030
|
r.$slots.pattern ? (a(), s("path", {
|
|
2025
2031
|
key: 0,
|
|
2026
2032
|
d: `M${n}Z`,
|
|
2027
2033
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2028
|
-
}, null, 8,
|
|
2034
|
+
}, null, 8, Sl)) : h("", !0)
|
|
2029
2035
|
], 64))), 128))
|
|
2030
2036
|
])) : h("", !0),
|
|
2031
2037
|
t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
|
|
@@ -2036,7 +2042,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2036
2042
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
2037
2043
|
fill: "none",
|
|
2038
2044
|
"stroke-linecap": "round"
|
|
2039
|
-
}, null, 8,
|
|
2045
|
+
}, null, 8, kl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
|
|
2040
2046
|
key: 2,
|
|
2041
2047
|
d: `M${t.straight}`,
|
|
2042
2048
|
stroke: t.color,
|
|
@@ -2045,14 +2051,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2045
2051
|
fill: "none",
|
|
2046
2052
|
"stroke-linecap": "round",
|
|
2047
2053
|
"stroke-linejoin": "round"
|
|
2048
|
-
}, null, 8,
|
|
2049
|
-
(a(!0), s(
|
|
2050
|
-
key: `circle_line_${
|
|
2054
|
+
}, null, 8, wl)) : h("", !0),
|
|
2055
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2056
|
+
key: `circle_line_${o}_${g}`
|
|
2051
2057
|
}, [
|
|
2052
2058
|
!e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) ? (a(), U(N, {
|
|
2053
2059
|
key: 0,
|
|
2054
2060
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
2055
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
2061
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${o}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? t.color : e.FINAL_CONFIG.line.dot.fill,
|
|
2056
2062
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
2057
2063
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
|
|
2058
2064
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
@@ -2066,17 +2072,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2066
2072
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
2067
2073
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
2068
2074
|
}, [
|
|
2069
|
-
I("div",
|
|
2075
|
+
I("div", Gl, [
|
|
2070
2076
|
G(r.$slots, "plot-comment", {
|
|
2071
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
2077
|
+
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
2072
2078
|
}, void 0, !0)
|
|
2073
2079
|
])
|
|
2074
|
-
], 8,
|
|
2080
|
+
], 8, Ol)) : h("", !0)
|
|
2075
2081
|
], 64))), 128)),
|
|
2076
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g",
|
|
2082
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", vl, [
|
|
2077
2083
|
I("defs", null, [
|
|
2078
2084
|
I("marker", {
|
|
2079
|
-
id: `line_arrow_${
|
|
2085
|
+
id: `line_arrow_${o}`,
|
|
2080
2086
|
markerWidth: 7,
|
|
2081
2087
|
markerHeight: 7,
|
|
2082
2088
|
refX: "0",
|
|
@@ -2086,8 +2092,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2086
2092
|
I("polygon", {
|
|
2087
2093
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2088
2094
|
fill: t.color
|
|
2089
|
-
}, null, 8,
|
|
2090
|
-
], 8,
|
|
2095
|
+
}, null, 8, zl)
|
|
2096
|
+
], 8, pl)
|
|
2091
2097
|
]),
|
|
2092
2098
|
t.plots.length > 1 ? (a(), s("line", {
|
|
2093
2099
|
key: 0,
|
|
@@ -2098,8 +2104,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2098
2104
|
"stroke-width": 1,
|
|
2099
2105
|
stroke: t.color,
|
|
2100
2106
|
"stroke-dasharray": 2,
|
|
2101
|
-
"marker-end": `url(#line_arrow_${
|
|
2102
|
-
}, null, 8,
|
|
2107
|
+
"marker-end": `url(#line_arrow_${o})`
|
|
2108
|
+
}, null, 8, Ml)) : h("", !0),
|
|
2103
2109
|
t.plots.length > 1 ? (a(), s("text", {
|
|
2104
2110
|
key: 1,
|
|
2105
2111
|
"text-anchor": "middle",
|
|
@@ -2111,15 +2117,15 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2111
2117
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
2112
2118
|
s: "%",
|
|
2113
2119
|
r: 2
|
|
2114
|
-
})), 9,
|
|
2120
|
+
})), 9, Tl)) : h("", !0)
|
|
2115
2121
|
])) : h("", !0)
|
|
2116
2122
|
], 6))), 128)),
|
|
2117
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), s("g",
|
|
2118
|
-
(a(!0), s(
|
|
2119
|
-
key: `xLabel_bar_${
|
|
2123
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), s("g", Pl, [
|
|
2124
|
+
(a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s(d, {
|
|
2125
|
+
key: `xLabel_bar_${o}`
|
|
2120
2126
|
}, [
|
|
2121
|
-
(a(!0), s(
|
|
2122
|
-
key: `xLabel_bar_${
|
|
2127
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2128
|
+
key: `xLabel_bar_${o}_${g}`
|
|
2123
2129
|
}, [
|
|
2124
2130
|
n && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) && e.FINAL_CONFIG.bar.labels.show ? (a(), s("text", {
|
|
2125
2131
|
key: 0,
|
|
@@ -2142,7 +2148,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2142
2148
|
datapoint: n,
|
|
2143
2149
|
serie: t
|
|
2144
2150
|
}
|
|
2145
|
-
) : ""), 13,
|
|
2151
|
+
) : ""), 13, Vl)) : h("", !0),
|
|
2146
2152
|
n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
|
|
2147
2153
|
key: 1,
|
|
2148
2154
|
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
@@ -2152,16 +2158,16 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2152
2158
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2153
2159
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2154
2160
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2155
|
-
}, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13,
|
|
2161
|
+
}, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) : h("", !0)
|
|
2156
2162
|
], 64))), 128))
|
|
2157
2163
|
], 64))), 128))
|
|
2158
2164
|
])) : h("", !0),
|
|
2159
|
-
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g",
|
|
2160
|
-
(a(!0), s(
|
|
2161
|
-
key: `xLabel_plot_${
|
|
2165
|
+
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Hl, [
|
|
2166
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2167
|
+
key: `xLabel_plot_${o}`
|
|
2162
2168
|
}, [
|
|
2163
|
-
(a(!0), s(
|
|
2164
|
-
key: `xLabel_plot_${
|
|
2169
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2170
|
+
key: `xLabel_plot_${o}_${g}`
|
|
2165
2171
|
}, [
|
|
2166
2172
|
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (a(), s("text", {
|
|
2167
2173
|
key: 0,
|
|
@@ -2184,17 +2190,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2184
2190
|
datapoint: n,
|
|
2185
2191
|
serie: t
|
|
2186
2192
|
}
|
|
2187
|
-
) : ""), 13,
|
|
2193
|
+
) : ""), 13, Dl)) : h("", !0)
|
|
2188
2194
|
], 64))), 128))
|
|
2189
2195
|
], 64))), 128))
|
|
2190
|
-
])) : (a(), s("g",
|
|
2191
|
-
(a(!0), s(
|
|
2192
|
-
key: `xLabel_plot_${
|
|
2196
|
+
])) : (a(), s("g", Bl, [
|
|
2197
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2198
|
+
key: `xLabel_plot_${o}`
|
|
2193
2199
|
}, [
|
|
2194
|
-
(a(!0), s(
|
|
2195
|
-
key: `xLabel_plot_${
|
|
2200
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2201
|
+
key: `xLabel_plot_${o}_${g}`
|
|
2196
2202
|
}, [
|
|
2197
|
-
e.FINAL_CONFIG.plot.tag.followValue ? (a(), s(
|
|
2203
|
+
e.FINAL_CONFIG.plot.tag.followValue ? (a(), s(d, { key: 1 }, [
|
|
2198
2204
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (a(), s("line", {
|
|
2199
2205
|
key: 0,
|
|
2200
2206
|
class: "vue-ui-xy-tag-plot",
|
|
@@ -2206,8 +2212,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2206
2212
|
"stroke-linecap": "round",
|
|
2207
2213
|
"stroke-dasharray": "2",
|
|
2208
2214
|
stroke: t.color
|
|
2209
|
-
}, null, 8,
|
|
2210
|
-
], 64)) : (a(), s(
|
|
2215
|
+
}, null, 8, Xl)) : h("", !0)
|
|
2216
|
+
], 64)) : (a(), s(d, { key: 0 }, [
|
|
2211
2217
|
n && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
|
|
2212
2218
|
key: 0,
|
|
2213
2219
|
x: n.x,
|
|
@@ -2228,8 +2234,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2228
2234
|
serieName: t.name
|
|
2229
2235
|
}
|
|
2230
2236
|
)
|
|
2231
|
-
}, null, 12,
|
|
2232
|
-
], 12,
|
|
2237
|
+
}, null, 12, El)
|
|
2238
|
+
], 12, Wl)) : h("", !0),
|
|
2233
2239
|
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
|
|
2234
2240
|
key: 1,
|
|
2235
2241
|
x: n.x - t.name.length * (l.fontSizes.plotLabels / 2),
|
|
@@ -2250,18 +2256,18 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2250
2256
|
serieName: t.name
|
|
2251
2257
|
}
|
|
2252
2258
|
)
|
|
2253
|
-
}, null, 12,
|
|
2254
|
-
], 12,
|
|
2259
|
+
}, null, 12, ql)
|
|
2260
|
+
], 12, Yl)) : h("", !0)
|
|
2255
2261
|
], 64))
|
|
2256
2262
|
], 64))), 128))
|
|
2257
2263
|
], 64))), 128))
|
|
2258
2264
|
])),
|
|
2259
|
-
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g",
|
|
2260
|
-
(a(!0), s(
|
|
2261
|
-
key: `xLabel_line_${
|
|
2265
|
+
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Ul, [
|
|
2266
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2267
|
+
key: `xLabel_line_${o}`
|
|
2262
2268
|
}, [
|
|
2263
|
-
(a(!0), s(
|
|
2264
|
-
key: `xLabel_line_${
|
|
2269
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2270
|
+
key: `xLabel_line_${o}_${g}`
|
|
2265
2271
|
}, [
|
|
2266
2272
|
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (a(), s("text", {
|
|
2267
2273
|
key: 0,
|
|
@@ -2284,17 +2290,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2284
2290
|
datapoint: n,
|
|
2285
2291
|
serie: t
|
|
2286
2292
|
}
|
|
2287
|
-
) : ""), 13,
|
|
2293
|
+
) : ""), 13, Zl)) : h("", !0)
|
|
2288
2294
|
], 64))), 128))
|
|
2289
2295
|
], 64))), 128))
|
|
2290
|
-
])) : (a(), s("g",
|
|
2291
|
-
(a(!0), s(
|
|
2292
|
-
key: `xLabel_line_${
|
|
2296
|
+
])) : (a(), s("g", Jl, [
|
|
2297
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2298
|
+
key: `xLabel_line_${o}`
|
|
2293
2299
|
}, [
|
|
2294
|
-
(a(!0), s(
|
|
2295
|
-
key: `xLabel_line_${
|
|
2300
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2301
|
+
key: `xLabel_line_${o}_${g}`
|
|
2296
2302
|
}, [
|
|
2297
|
-
e.FINAL_CONFIG.line.tag.followValue ? (a(), s(
|
|
2303
|
+
e.FINAL_CONFIG.line.tag.followValue ? (a(), s(d, { key: 1 }, [
|
|
2298
2304
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (a(), s("line", {
|
|
2299
2305
|
key: 0,
|
|
2300
2306
|
class: "vue-ui-xy-tag-line",
|
|
@@ -2306,8 +2312,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2306
2312
|
"stroke-linecap": "round",
|
|
2307
2313
|
"stroke-dasharray": "2",
|
|
2308
2314
|
stroke: t.color
|
|
2309
|
-
}, null, 8,
|
|
2310
|
-
], 64)) : (a(), s(
|
|
2315
|
+
}, null, 8, er)) : h("", !0)
|
|
2316
|
+
], 64)) : (a(), s(d, { key: 0 }, [
|
|
2311
2317
|
n && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
|
|
2312
2318
|
key: 0,
|
|
2313
2319
|
x: n.x,
|
|
@@ -2328,8 +2334,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2328
2334
|
serieName: t.name
|
|
2329
2335
|
}
|
|
2330
2336
|
)
|
|
2331
|
-
}, null, 12,
|
|
2332
|
-
], 12,
|
|
2337
|
+
}, null, 12, Ql)
|
|
2338
|
+
], 12, Kl)) : h("", !0),
|
|
2333
2339
|
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
|
|
2334
2340
|
key: 1,
|
|
2335
2341
|
x: n.x,
|
|
@@ -2350,17 +2356,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2350
2356
|
serieName: t.name
|
|
2351
2357
|
}
|
|
2352
2358
|
)
|
|
2353
|
-
}, null, 12,
|
|
2354
|
-
], 12,
|
|
2359
|
+
}, null, 12, $l)
|
|
2360
|
+
], 12, jl)) : h("", !0)
|
|
2355
2361
|
], 64))
|
|
2356
2362
|
], 64))), 128))
|
|
2357
2363
|
], 64))), 128))
|
|
2358
2364
|
])),
|
|
2359
|
-
(a(!0), s(
|
|
2360
|
-
key: `xLabel_line_${
|
|
2365
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2366
|
+
key: `xLabel_line_${o}`
|
|
2361
2367
|
}, [
|
|
2362
|
-
(a(!0), s(
|
|
2363
|
-
key: `xLabel_line_${
|
|
2368
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2369
|
+
key: `xLabel_line_${o}_${g}`
|
|
2364
2370
|
}, [
|
|
2365
2371
|
n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (a(), s("text", {
|
|
2366
2372
|
key: 0,
|
|
@@ -2378,7 +2384,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2378
2384
|
maxWords: 2
|
|
2379
2385
|
}),
|
|
2380
2386
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2381
|
-
}, null, 12,
|
|
2387
|
+
}, null, 12, tr)) : h("", !0),
|
|
2382
2388
|
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
|
|
2383
2389
|
key: 1,
|
|
2384
2390
|
x: n.x + l.fontSizes.plotLabels,
|
|
@@ -2395,14 +2401,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2395
2401
|
maxWords: 2
|
|
2396
2402
|
}),
|
|
2397
2403
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2398
|
-
}, null, 12,
|
|
2404
|
+
}, null, 12, lr)) : h("", !0)
|
|
2399
2405
|
], 64))), 128))
|
|
2400
2406
|
], 64))), 128)),
|
|
2401
|
-
(a(!0), s(
|
|
2402
|
-
key: `xLabel_plot_${
|
|
2407
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2408
|
+
key: `xLabel_plot_${o}`
|
|
2403
2409
|
}, [
|
|
2404
|
-
(a(!0), s(
|
|
2405
|
-
key: `xLabel_plot_${
|
|
2410
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2411
|
+
key: `xLabel_plot_${o}_${g}`
|
|
2406
2412
|
}, [
|
|
2407
2413
|
n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (a(), s("text", {
|
|
2408
2414
|
key: 0,
|
|
@@ -2420,7 +2426,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2420
2426
|
maxWords: 2
|
|
2421
2427
|
}),
|
|
2422
2428
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2423
|
-
}, null, 12,
|
|
2429
|
+
}, null, 12, rr)) : h("", !0),
|
|
2424
2430
|
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
|
|
2425
2431
|
key: 1,
|
|
2426
2432
|
x: n.x + l.fontSizes.plotLabels,
|
|
@@ -2437,13 +2443,13 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2437
2443
|
maxWords: 2
|
|
2438
2444
|
}),
|
|
2439
2445
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2440
|
-
}, null, 12,
|
|
2446
|
+
}, null, 12, ir)) : h("", !0)
|
|
2441
2447
|
], 64))), 128))
|
|
2442
2448
|
], 64))), 128)),
|
|
2443
|
-
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), s(
|
|
2449
|
+
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), s(d, { key: 11 }, [
|
|
2444
2450
|
I("defs", null, [
|
|
2445
|
-
(a(!0), s(
|
|
2446
|
-
id: `individual_scale_gradient_${l.uniqueId}_${
|
|
2451
|
+
(a(!0), s(d, null, x(e.allScales, (t, o) => (a(), s("linearGradient", {
|
|
2452
|
+
id: `individual_scale_gradient_${l.uniqueId}_${o}`,
|
|
2447
2453
|
x1: "0%",
|
|
2448
2454
|
x2: "100%",
|
|
2449
2455
|
y1: "0%",
|
|
@@ -2453,23 +2459,23 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2453
2459
|
offset: "0%",
|
|
2454
2460
|
"stop-color": e.FINAL_CONFIG.chart.backgroundColor,
|
|
2455
2461
|
"stop-opacity": "0"
|
|
2456
|
-
}, null, 8,
|
|
2462
|
+
}, null, 8, sr),
|
|
2457
2463
|
I("stop", {
|
|
2458
2464
|
offset: "100%",
|
|
2459
2465
|
"stop-color": t.color,
|
|
2460
2466
|
"stop-opacity": "0.2"
|
|
2461
|
-
}, null, 8,
|
|
2462
|
-
], 8,
|
|
2467
|
+
}, null, 8, nr)
|
|
2468
|
+
], 8, ar))), 256))
|
|
2463
2469
|
]),
|
|
2464
|
-
(a(!0), s(
|
|
2470
|
+
(a(!0), s(d, null, x(e.allScales, (t, o) => (a(), s("rect", {
|
|
2465
2471
|
x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2466
2472
|
y: e.drawingArea.top,
|
|
2467
2473
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2468
2474
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2469
|
-
fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${
|
|
2475
|
+
fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${o})` : "transparent",
|
|
2470
2476
|
onMouseenter: (n) => l.selectedScale = t.groupId,
|
|
2471
|
-
onMouseleave:
|
|
2472
|
-
}, null, 40,
|
|
2477
|
+
onMouseleave: c[0] || (c[0] = (n) => l.selectedScale = null)
|
|
2478
|
+
}, null, 40, cr))), 256))
|
|
2473
2479
|
], 64)) : h("", !0),
|
|
2474
2480
|
I("g", null, [
|
|
2475
2481
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (a(), s("text", {
|
|
@@ -2479,7 +2485,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2479
2485
|
transform: `translate(${l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2480
2486
|
"text-anchor": "middle",
|
|
2481
2487
|
style: { transition: "none" }
|
|
2482
|
-
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2488
|
+
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, or)) : h("", !0),
|
|
2483
2489
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
|
|
2484
2490
|
key: 1,
|
|
2485
2491
|
"text-anchor": "middle",
|
|
@@ -2487,33 +2493,33 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2487
2493
|
y: e.drawingArea.bottom + l.fontSizes.yAxis + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2488
2494
|
"font-size": l.fontSizes.yAxis,
|
|
2489
2495
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2490
|
-
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2496
|
+
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hr)) : h("", !0)
|
|
2491
2497
|
]),
|
|
2492
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g",
|
|
2493
|
-
r.$slots["time-label"] ? (a(!0), s(
|
|
2494
|
-
key: `time_label_${
|
|
2498
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", ur, [
|
|
2499
|
+
r.$slots["time-label"] ? (a(!0), s(d, { key: 0 }, x(e.timeLabels, (t, o) => G(r.$slots, "time-label", se({
|
|
2500
|
+
key: `time_label_${o}`,
|
|
2495
2501
|
ref_for: !0
|
|
2496
2502
|
}, {
|
|
2497
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2503
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
|
|
2498
2504
|
y: e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2499
2505
|
fontSize: l.fontSizes.xAxis,
|
|
2500
2506
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2501
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2507
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2502
2508
|
absoluteIndex: t.absoluteIndex,
|
|
2503
2509
|
content: t.text,
|
|
2504
2510
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2505
|
-
show: t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (
|
|
2506
|
-
}), void 0, !0)), 128)) : (a(!0), s(
|
|
2507
|
-
key: `time_label_${
|
|
2511
|
+
show: t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2512
|
+
}), void 0, !0)), 128)) : (a(!0), s(d, { key: 1 }, x(e.timeLabels, (t, o) => (a(), s("g", {
|
|
2513
|
+
key: `time_label_${o}`
|
|
2508
2514
|
}, [
|
|
2509
|
-
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (
|
|
2515
|
+
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s(d, { key: 0 }, [
|
|
2510
2516
|
String(t.text).includes(`
|
|
2511
2517
|
`) ? (a(), s("text", {
|
|
2512
2518
|
key: 1,
|
|
2513
2519
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2514
2520
|
"font-size": l.fontSizes.xAxis,
|
|
2515
2521
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2516
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2522
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2517
2523
|
style: _({
|
|
2518
2524
|
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2519
2525
|
}),
|
|
@@ -2524,23 +2530,23 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2524
2530
|
x: 0,
|
|
2525
2531
|
y: 0
|
|
2526
2532
|
}),
|
|
2527
|
-
onClick: () => e.selectTimeLabel(t,
|
|
2528
|
-
}, null, 12,
|
|
2533
|
+
onClick: () => e.selectTimeLabel(t, o)
|
|
2534
|
+
}, null, 12, gr)) : (a(), s("text", {
|
|
2529
2535
|
key: 0,
|
|
2530
2536
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2531
2537
|
"font-size": l.fontSizes.xAxis,
|
|
2532
2538
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2533
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2539
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2534
2540
|
style: _({
|
|
2535
2541
|
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2536
2542
|
}),
|
|
2537
|
-
onClick: () => e.selectTimeLabel(t,
|
|
2538
|
-
}, V(t.text || ""), 13,
|
|
2543
|
+
onClick: () => e.selectTimeLabel(t, o)
|
|
2544
|
+
}, V(t.text || ""), 13, dr))
|
|
2539
2545
|
], 64)) : h("", !0)
|
|
2540
2546
|
]))), 128))
|
|
2541
2547
|
])) : h("", !0),
|
|
2542
|
-
e.annotationsY.length && !l.mutableConfig.isStacked ? (a(), s("g",
|
|
2543
|
-
(a(!0), s(
|
|
2548
|
+
e.annotationsY.length && !l.mutableConfig.isStacked ? (a(), s("g", fr, [
|
|
2549
|
+
(a(!0), s(d, null, x(e.annotationsY, (t) => (a(), s("g", {
|
|
2544
2550
|
key: t.uid
|
|
2545
2551
|
}, [
|
|
2546
2552
|
t.yTop && t.show && isFinite(t.yTop) ? (a(), s("line", {
|
|
@@ -2554,7 +2560,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2554
2560
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2555
2561
|
"stroke-linecap": "round",
|
|
2556
2562
|
style: { animation: "none !important" }
|
|
2557
|
-
}, null, 8,
|
|
2563
|
+
}, null, 8, Ir)) : h("", !0),
|
|
2558
2564
|
t.yBottom && t.show && isFinite(t.yBottom) ? (a(), s("line", {
|
|
2559
2565
|
key: 1,
|
|
2560
2566
|
x1: t.x1,
|
|
@@ -2566,7 +2572,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2566
2572
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2567
2573
|
"stroke-linecap": "round",
|
|
2568
2574
|
style: { animation: "none !important" }
|
|
2569
|
-
}, null, 8,
|
|
2575
|
+
}, null, 8, xr)) : h("", !0),
|
|
2570
2576
|
t.hasArea && t.show && isFinite(t.yTop) && isFinite(t.yBottom) ? (a(), s("rect", {
|
|
2571
2577
|
key: 2,
|
|
2572
2578
|
y: Math.min(t.yTop, t.yBottom),
|
|
@@ -2575,7 +2581,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2575
2581
|
height: e.checkNaN(t.areaHeight, 0),
|
|
2576
2582
|
fill: e.setOpacity(t.config.area.fill, t.config.area.opacity),
|
|
2577
2583
|
style: { animation: "none !important" }
|
|
2578
|
-
}, null, 8,
|
|
2584
|
+
}, null, 8, Nr)) : h("", !0),
|
|
2579
2585
|
t.config.label.text && t.show && isFinite(t._box.y) ? (a(), s("rect", se({
|
|
2580
2586
|
key: 3,
|
|
2581
2587
|
class: "vue-ui-xy-annotation-label-box"
|
|
@@ -2589,23 +2595,23 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2589
2595
|
"font-size": t.config.label.fontSize,
|
|
2590
2596
|
fill: t.config.label.color,
|
|
2591
2597
|
"text-anchor": t.config.label.textAnchor
|
|
2592
|
-
}, V(t.config.label.text), 9,
|
|
2598
|
+
}, V(t.config.label.text), 9, mr)) : h("", !0)
|
|
2593
2599
|
]))), 128))
|
|
2594
2600
|
])) : h("", !0),
|
|
2595
2601
|
I("g", null, [
|
|
2596
|
-
(a(!0), s(
|
|
2597
|
-
key: `tooltip_trap_${
|
|
2598
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2602
|
+
(a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("rect", {
|
|
2603
|
+
key: `tooltip_trap_${o}`,
|
|
2604
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
2599
2605
|
y: e.drawingArea.top,
|
|
2600
2606
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2601
2607
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2602
2608
|
fill: "transparent",
|
|
2603
|
-
onMouseenter: (n) => e.toggleTooltipVisibility(!0,
|
|
2604
|
-
onMouseleave:
|
|
2605
|
-
onClick: (n) => e.selectX(
|
|
2606
|
-
}, null, 40,
|
|
2609
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, o),
|
|
2610
|
+
onMouseleave: c[1] || (c[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2611
|
+
onClick: (n) => e.selectX(o)
|
|
2612
|
+
}, null, 40, br))), 128))
|
|
2607
2613
|
]),
|
|
2608
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g",
|
|
2614
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", Fr, [
|
|
2609
2615
|
(a(), s("foreignObject", {
|
|
2610
2616
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2611
2617
|
y: e.drawingArea.bottom,
|
|
@@ -2617,30 +2623,30 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2617
2623
|
class: "vue-ui-xy-time-tag",
|
|
2618
2624
|
style: _(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2619
2625
|
}, V(e.timeLabels[(l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)].text || (l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)), 5)
|
|
2620
|
-
], 8,
|
|
2626
|
+
], 8, _r)),
|
|
2621
2627
|
I("circle", {
|
|
2622
2628
|
cx: 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,
|
|
2623
2629
|
cy: e.drawingArea.bottom,
|
|
2624
2630
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2625
2631
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2626
|
-
}, null, 8,
|
|
2632
|
+
}, null, 8, yr)
|
|
2627
2633
|
])) : h("", !0)
|
|
2628
2634
|
])) : h("", !0),
|
|
2629
2635
|
G(r.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2630
|
-
], 14,
|
|
2636
|
+
], 14, gt)) : h("", !0),
|
|
2631
2637
|
r.$slots.watermark ? (a(), s("div", Ar, [
|
|
2632
2638
|
G(r.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
|
|
2633
2639
|
])) : h("", !0),
|
|
2634
|
-
(a(!0), s(
|
|
2635
|
-
key: `tag_line_${
|
|
2640
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2641
|
+
key: `tag_line_${o}`
|
|
2636
2642
|
}, [
|
|
2637
|
-
(a(!0), s(
|
|
2638
|
-
key: `tag_line_${
|
|
2643
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2644
|
+
key: `tag_line_${o}_${g}`
|
|
2639
2645
|
}, [
|
|
2640
2646
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
|
|
2641
2647
|
key: 0,
|
|
2642
2648
|
ref_for: !0,
|
|
2643
|
-
ref: (p) => e.setTagRef(
|
|
2649
|
+
ref: (p) => e.setTagRef(o, g, p, "right", "line"),
|
|
2644
2650
|
class: "vue-ui-xy-tag",
|
|
2645
2651
|
"data-tag": "right",
|
|
2646
2652
|
style: _({
|
|
@@ -2649,14 +2655,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2649
2655
|
svgElement: l.svgRef,
|
|
2650
2656
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2651
2657
|
y: n.y,
|
|
2652
|
-
element: l.tagRefs[`${
|
|
2658
|
+
element: l.tagRefs[`${o}_${g}_right_line`],
|
|
2653
2659
|
position: "right"
|
|
2654
2660
|
}).top + "px",
|
|
2655
2661
|
left: e.placeXYTag({
|
|
2656
2662
|
svgElement: l.svgRef,
|
|
2657
2663
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2658
2664
|
y: n.y,
|
|
2659
|
-
element: l.tagRefs[`${
|
|
2665
|
+
element: l.tagRefs[`${o}_${g}_right_line`],
|
|
2660
2666
|
position: "right"
|
|
2661
2667
|
}).left + "px",
|
|
2662
2668
|
height: "fit-content",
|
|
@@ -2668,12 +2674,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2668
2674
|
opacity: 1
|
|
2669
2675
|
})
|
|
2670
2676
|
}, [
|
|
2671
|
-
(a(), s("svg",
|
|
2677
|
+
(a(), s("svg", Lr, [
|
|
2672
2678
|
I("path", {
|
|
2673
2679
|
d: "M 0,10 10,0 10,20 Z",
|
|
2674
2680
|
fill: t.color,
|
|
2675
2681
|
stroke: "none"
|
|
2676
|
-
}, null, 8,
|
|
2682
|
+
}, null, 8, Cr)
|
|
2677
2683
|
])),
|
|
2678
2684
|
I("div", {
|
|
2679
2685
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2687,12 +2693,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2687
2693
|
serieName: t.name
|
|
2688
2694
|
}
|
|
2689
2695
|
)
|
|
2690
|
-
}, null, 8,
|
|
2696
|
+
}, null, 8, Sr)
|
|
2691
2697
|
], 4)) : h("", !0),
|
|
2692
2698
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
|
|
2693
2699
|
key: 1,
|
|
2694
2700
|
ref_for: !0,
|
|
2695
|
-
ref: (p) => e.setTagRef(
|
|
2701
|
+
ref: (p) => e.setTagRef(o, g, p, "left", "line"),
|
|
2696
2702
|
class: "vue-ui-xy-tag",
|
|
2697
2703
|
"data-tag": "left",
|
|
2698
2704
|
style: _({
|
|
@@ -2701,14 +2707,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2701
2707
|
svgElement: l.svgRef,
|
|
2702
2708
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2703
2709
|
y: n.y,
|
|
2704
|
-
element: l.tagRefs[`${
|
|
2710
|
+
element: l.tagRefs[`${o}_${g}_left_line`],
|
|
2705
2711
|
position: "left"
|
|
2706
2712
|
}).top + "px",
|
|
2707
2713
|
left: e.placeXYTag({
|
|
2708
2714
|
svgElement: l.svgRef,
|
|
2709
2715
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2710
2716
|
y: n.y,
|
|
2711
|
-
element: l.tagRefs[`${
|
|
2717
|
+
element: l.tagRefs[`${o}_${g}_left_line`],
|
|
2712
2718
|
position: "left"
|
|
2713
2719
|
}).left + "px",
|
|
2714
2720
|
height: "fit-content",
|
|
@@ -2720,12 +2726,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2720
2726
|
opacity: 1
|
|
2721
2727
|
})
|
|
2722
2728
|
}, [
|
|
2723
|
-
(a(), s("svg",
|
|
2729
|
+
(a(), s("svg", kr, [
|
|
2724
2730
|
I("path", {
|
|
2725
2731
|
d: "M 0,0 10,10 0,20 Z",
|
|
2726
2732
|
fill: t.color,
|
|
2727
2733
|
stroke: "none"
|
|
2728
|
-
}, null, 8,
|
|
2734
|
+
}, null, 8, wr)
|
|
2729
2735
|
])),
|
|
2730
2736
|
I("div", {
|
|
2731
2737
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2739,20 +2745,20 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2739
2745
|
serieName: t.name
|
|
2740
2746
|
}
|
|
2741
2747
|
)
|
|
2742
|
-
}, null, 8,
|
|
2748
|
+
}, null, 8, Or)
|
|
2743
2749
|
], 4)) : h("", !0)
|
|
2744
2750
|
], 64))), 128))
|
|
2745
2751
|
], 64))), 128)),
|
|
2746
|
-
(a(!0), s(
|
|
2747
|
-
key: `tag_plot_${
|
|
2752
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2753
|
+
key: `tag_plot_${o}`
|
|
2748
2754
|
}, [
|
|
2749
|
-
(a(!0), s(
|
|
2750
|
-
key: `tag_plot_${
|
|
2755
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2756
|
+
key: `tag_plot_${o}_${g}`
|
|
2751
2757
|
}, [
|
|
2752
2758
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
|
|
2753
2759
|
key: 0,
|
|
2754
2760
|
ref_for: !0,
|
|
2755
|
-
ref: (p) => e.setTagRef(
|
|
2761
|
+
ref: (p) => e.setTagRef(o, g, p, "right", "plot"),
|
|
2756
2762
|
class: "vue-ui-xy-tag",
|
|
2757
2763
|
"data-tag": "right",
|
|
2758
2764
|
style: _({
|
|
@@ -2761,14 +2767,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2761
2767
|
svgElement: l.svgRef,
|
|
2762
2768
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2763
2769
|
y: n.y,
|
|
2764
|
-
element: l.tagRefs[`${
|
|
2770
|
+
element: l.tagRefs[`${o}_${g}_right_plot`],
|
|
2765
2771
|
position: "right"
|
|
2766
2772
|
}).top + "px",
|
|
2767
2773
|
left: e.placeXYTag({
|
|
2768
2774
|
svgElement: l.svgRef,
|
|
2769
2775
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2770
2776
|
y: n.y,
|
|
2771
|
-
element: l.tagRefs[`${
|
|
2777
|
+
element: l.tagRefs[`${o}_${g}_right_plot`],
|
|
2772
2778
|
position: "right"
|
|
2773
2779
|
}).left + "px",
|
|
2774
2780
|
height: "fit-content",
|
|
@@ -2780,12 +2786,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2780
2786
|
opacity: 1
|
|
2781
2787
|
})
|
|
2782
2788
|
}, [
|
|
2783
|
-
(a(), s("svg",
|
|
2789
|
+
(a(), s("svg", Gr, [
|
|
2784
2790
|
I("path", {
|
|
2785
2791
|
d: "M 0,10 10,0 10,20 Z",
|
|
2786
2792
|
fill: t.color,
|
|
2787
2793
|
stroke: "none"
|
|
2788
|
-
}, null, 8,
|
|
2794
|
+
}, null, 8, vr)
|
|
2789
2795
|
])),
|
|
2790
2796
|
I("div", {
|
|
2791
2797
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2799,12 +2805,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2799
2805
|
serieName: t.name
|
|
2800
2806
|
}
|
|
2801
2807
|
)
|
|
2802
|
-
}, null, 8,
|
|
2808
|
+
}, null, 8, pr)
|
|
2803
2809
|
], 4)) : h("", !0),
|
|
2804
2810
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
|
|
2805
2811
|
key: 1,
|
|
2806
2812
|
ref_for: !0,
|
|
2807
|
-
ref: (p) => e.setTagRef(
|
|
2813
|
+
ref: (p) => e.setTagRef(o, g, p, "left", "plot"),
|
|
2808
2814
|
class: "vue-ui-xy-tag",
|
|
2809
2815
|
"data-tag": "left",
|
|
2810
2816
|
style: _({
|
|
@@ -2813,14 +2819,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2813
2819
|
svgElement: l.svgRef,
|
|
2814
2820
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2815
2821
|
y: n.y,
|
|
2816
|
-
element: l.tagRefs[`${
|
|
2822
|
+
element: l.tagRefs[`${o}_${g}_left_plot`],
|
|
2817
2823
|
position: "left"
|
|
2818
2824
|
}).top + "px",
|
|
2819
2825
|
left: e.placeXYTag({
|
|
2820
2826
|
svgElement: l.svgRef,
|
|
2821
2827
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2822
2828
|
y: n.y,
|
|
2823
|
-
element: l.tagRefs[`${
|
|
2829
|
+
element: l.tagRefs[`${o}_${g}_left_plot`],
|
|
2824
2830
|
position: "left"
|
|
2825
2831
|
}).left + "px",
|
|
2826
2832
|
height: "fit-content",
|
|
@@ -2832,12 +2838,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2832
2838
|
opacity: 1
|
|
2833
2839
|
})
|
|
2834
2840
|
}, [
|
|
2835
|
-
(a(), s("svg",
|
|
2841
|
+
(a(), s("svg", zr, [
|
|
2836
2842
|
I("path", {
|
|
2837
2843
|
d: "M 0,0 10,10 0,20 Z",
|
|
2838
2844
|
fill: t.color,
|
|
2839
2845
|
stroke: "none"
|
|
2840
|
-
}, null, 8,
|
|
2846
|
+
}, null, 8, Mr)
|
|
2841
2847
|
])),
|
|
2842
2848
|
I("div", {
|
|
2843
2849
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2851,7 +2857,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2851
2857
|
serieName: t.name
|
|
2852
2858
|
}
|
|
2853
2859
|
)
|
|
2854
|
-
}, null, 8,
|
|
2860
|
+
}, null, 8, Tr)
|
|
2855
2861
|
], 4)) : h("", !0)
|
|
2856
2862
|
], 64))), 128))
|
|
2857
2863
|
], 64))), 128)),
|
|
@@ -2899,11 +2905,11 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2899
2905
|
valueStart: l.slicer.start,
|
|
2900
2906
|
valueEnd: l.slicer.end,
|
|
2901
2907
|
start: l.slicer.start,
|
|
2902
|
-
"onUpdate:start":
|
|
2908
|
+
"onUpdate:start": c[2] || (c[2] = (t) => l.slicer.start = t),
|
|
2903
2909
|
end: l.slicer.end,
|
|
2904
|
-
"onUpdate:end":
|
|
2910
|
+
"onUpdate:end": c[3] || (c[3] = (t) => l.slicer.end = t),
|
|
2905
2911
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2906
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...
|
|
2912
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...u.dataset.map((t) => e.largestTriangleThreeBucketsArray({ data: t.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2907
2913
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2908
2914
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2909
2915
|
onReset: e.refreshSlicer,
|
|
@@ -2920,12 +2926,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2920
2926
|
class: "vue-ui-xy-legend",
|
|
2921
2927
|
style: _(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2922
2928
|
}, [
|
|
2923
|
-
(a(!0), s(
|
|
2924
|
-
key: `div_legend_item_${
|
|
2929
|
+
(a(!0), s(d, null, x(e.absoluteDataset, (t, o) => (a(), s("div", {
|
|
2930
|
+
key: `div_legend_item_${o}`,
|
|
2925
2931
|
onClick: (n) => e.segregate(t),
|
|
2926
2932
|
class: j({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(t.id) })
|
|
2927
2933
|
}, [
|
|
2928
|
-
l.icons[t.type] === "line" ? (a(), s("svg",
|
|
2934
|
+
l.icons[t.type] === "line" ? (a(), s("svg", Vr, [
|
|
2929
2935
|
I("rect", {
|
|
2930
2936
|
x: "0",
|
|
2931
2937
|
y: "7.5",
|
|
@@ -2935,7 +2941,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2935
2941
|
height: "3",
|
|
2936
2942
|
width: "20",
|
|
2937
2943
|
fill: t.color
|
|
2938
|
-
}, null, 8,
|
|
2944
|
+
}, null, 8, Rr),
|
|
2939
2945
|
le(N, {
|
|
2940
2946
|
plot: { x: 10, y: 9 },
|
|
2941
2947
|
radius: 4,
|
|
@@ -2944,7 +2950,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2944
2950
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2945
2951
|
strokeWidth: 0.5
|
|
2946
2952
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2947
|
-
])) : l.icons[t.type] === "bar" ? (a(), s("svg",
|
|
2953
|
+
])) : l.icons[t.type] === "bar" ? (a(), s("svg", Hr, [
|
|
2948
2954
|
l.icons[t.type] === "bar" && r.$slots.pattern ? (a(), s("rect", {
|
|
2949
2955
|
key: 0,
|
|
2950
2956
|
x: "0",
|
|
@@ -2954,7 +2960,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2954
2960
|
width: "40",
|
|
2955
2961
|
stroke: "none",
|
|
2956
2962
|
fill: t.color
|
|
2957
|
-
}, null, 8,
|
|
2963
|
+
}, null, 8, Dr)) : h("", !0),
|
|
2958
2964
|
l.icons[t.type] === "bar" ? (a(), s("rect", {
|
|
2959
2965
|
key: 1,
|
|
2960
2966
|
x: "0",
|
|
@@ -2964,8 +2970,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2964
2970
|
width: "40",
|
|
2965
2971
|
stroke: "none",
|
|
2966
2972
|
fill: r.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
|
|
2967
|
-
}, null, 8,
|
|
2968
|
-
])) : (a(), s("svg",
|
|
2973
|
+
}, null, 8, Br)) : h("", !0)
|
|
2974
|
+
])) : (a(), s("svg", Wr, [
|
|
2969
2975
|
le(N, {
|
|
2970
2976
|
plot: { x: 6, y: 6 },
|
|
2971
2977
|
radius: 5,
|
|
@@ -2976,11 +2982,11 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2976
2982
|
I("span", {
|
|
2977
2983
|
style: _(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2978
2984
|
}, V(t.name), 5)
|
|
2979
|
-
], 10,
|
|
2980
|
-
], 4)) : (a(), s("div",
|
|
2985
|
+
], 10, Pr))), 128))
|
|
2986
|
+
], 4)) : (a(), s("div", Er, [
|
|
2981
2987
|
G(r.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2982
2988
|
], 512)),
|
|
2983
|
-
r.$slots.source ? (a(), s("div",
|
|
2989
|
+
r.$slots.source ? (a(), s("div", Yr, [
|
|
2984
2990
|
G(r.$slots, "source", {}, void 0, !0)
|
|
2985
2991
|
], 512)) : h("", !0),
|
|
2986
2992
|
le(m, {
|
|
@@ -3027,15 +3033,15 @@ function Xr(r, o, d, f, l, e) {
|
|
|
3027
3033
|
I("div", {
|
|
3028
3034
|
style: _(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
3029
3035
|
}, [
|
|
3030
|
-
I("div",
|
|
3036
|
+
I("div", qr, [
|
|
3031
3037
|
tt(I("input", {
|
|
3032
3038
|
type: "checkbox",
|
|
3033
|
-
"onUpdate:modelValue":
|
|
3039
|
+
"onUpdate:modelValue": c[4] || (c[4] = (t) => l.showSparklineTable = t)
|
|
3034
3040
|
}, null, 512), [
|
|
3035
3041
|
[lt, l.showSparklineTable]
|
|
3036
3042
|
]),
|
|
3037
3043
|
I("div", {
|
|
3038
|
-
onClick:
|
|
3044
|
+
onClick: c[5] || (c[5] = (t) => l.showSparklineTable = !l.showSparklineTable),
|
|
3039
3045
|
style: { cursor: "pointer" }
|
|
3040
3046
|
}, [
|
|
3041
3047
|
le(L, {
|
|
@@ -3056,10 +3062,10 @@ function Xr(r, o, d, f, l, e) {
|
|
|
3056
3062
|
body: e.dataTable.body,
|
|
3057
3063
|
config: e.dataTable.config,
|
|
3058
3064
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
3059
|
-
onClose:
|
|
3065
|
+
onClose: c[6] || (c[6] = (t) => l.mutableConfig.showTable = !1)
|
|
3060
3066
|
}, {
|
|
3061
3067
|
th: B(({ th: t }) => [
|
|
3062
|
-
I("div", { innerHTML: t }, null, 8,
|
|
3068
|
+
I("div", { innerHTML: t }, null, 8, Xr)
|
|
3063
3069
|
]),
|
|
3064
3070
|
td: B(({ td: t }) => [
|
|
3065
3071
|
rt(V(isNaN(Number(t)) ? t : e.dataLabel({
|
|
@@ -3075,9 +3081,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
3075
3081
|
]),
|
|
3076
3082
|
_: 1
|
|
3077
3083
|
}, 8, ["config"])) : h("", !0)
|
|
3078
|
-
], 46,
|
|
3084
|
+
], 46, ut);
|
|
3079
3085
|
}
|
|
3080
|
-
const
|
|
3086
|
+
const ii = /* @__PURE__ */ ct(ht, [["render", Ur], ["__scopeId", "data-v-234126f5"]]);
|
|
3081
3087
|
export {
|
|
3082
|
-
|
|
3088
|
+
ii as default
|
|
3083
3089
|
};
|