vue-data-ui 2.16.6 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -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 Ae, af as ye, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as He, ai as De, D as Be, a5 as We, aj as Ee, i as Ye, F as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-
|
|
1
|
+
import { R as X, _ as ie, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as Ae, af as ye, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as He, ai as De, D as Be, a5 as We, aj as Ee, i as Ye, F as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-CobsZUkv.js";
|
|
2
2
|
import { u as je } from "./useMouse-AicQS8Vf.js";
|
|
3
|
-
import { u as ae } from "./useNestedProp-
|
|
3
|
+
import { u as ae } from "./useNestedProp-BwL5wmVa.js";
|
|
4
4
|
import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
|
-
import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as a, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as
|
|
6
|
-
import { S as it } from "./Slicer-
|
|
7
|
-
import at from "./Title-
|
|
8
|
-
import { _ as st } from "./Shape-
|
|
9
|
-
import
|
|
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 u, createVNode as le, createSlots as et, withCtx as B, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as d, renderList as x, toDisplayString as V, mergeProps as se, withDirectives as tt, vModelCheckbox as lt, createTextVNode as rt } from "vue";
|
|
6
|
+
import { S as it } from "./Slicer-CpSu7plp.js";
|
|
7
|
+
import at from "./Title-DpERl1yr.js";
|
|
8
|
+
import { _ as st } from "./Shape-C75836Jl.js";
|
|
9
|
+
import nt from "./img-utitT2Gd.js";
|
|
10
|
+
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-Dt-TIOyY.js")),
|
|
34
|
+
Tooltip: Z(() => import("./Tooltip-DA0bYKFG.js")),
|
|
35
|
+
UserOptions: Z(() => import("./UserOptions-DTEJ3UM_.js")),
|
|
36
|
+
BaseIcon: Z(() => import("./BaseIcon-D9Tz8ARD.js")),
|
|
37
|
+
TableSparkline: Z(() => import("./vue-ui-table-sparkline-D7wz-sCj.js")),
|
|
38
|
+
Skeleton: Z(() => import("./vue-ui-skeleton-8s4xts8z.js")),
|
|
39
|
+
Accordion: Z(() => import("./vue-ui-accordion-UewqY6OI.js")),
|
|
40
|
+
PackageVersion: Z(() => import("./PackageVersion-C-4Ee8BQ.js")),
|
|
41
|
+
PenAndPaper: Z(() => import("./PenAndPaper-Cde-wJ3N.js"))
|
|
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)), h = {
|
|
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: h,
|
|
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((h) => this.largestTriangleThreeBucketsArray({
|
|
134
|
+
data: h.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)), h = [];
|
|
177
|
+
for (let l = 0; l < c; l += 1)
|
|
178
|
+
h.push(r.map((e) => e.series[l] || 0).reduce((e, i) => (e || 0) + (i || 0), 0));
|
|
179
|
+
const f = Math.min(...h);
|
|
180
|
+
return h.map((l) => l + (f < 0 ? Math.abs(f) : 0));
|
|
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
|
+
})), h = 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, ...h], l = f.flatMap((e) => e).length;
|
|
227
228
|
return f.flatMap((e, i) => ({
|
|
228
229
|
unique: e.unique,
|
|
229
230
|
id: e.id,
|
|
@@ -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 h = 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: h.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((h) => h + 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((h) => [void 0, null].includes(h) ? 0 : h);
|
|
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((h) => h + this.relativeZero),
|
|
355
356
|
absoluteValues: r.series,
|
|
356
357
|
segregate: () => this.segregate(r),
|
|
357
358
|
isSegregated: this.segregatedSeries.includes(r.id)
|
|
@@ -364,19 +365,19 @@ 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, (h) => h.scaleLabel), c = {};
|
|
369
|
+
for (const [h, f] of Object.entries(r)) {
|
|
369
370
|
const l = f.flatMap((e) => e.absoluteValues);
|
|
370
|
-
|
|
371
|
+
c[h] = {
|
|
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
|
+
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (c - 1) : 0, e = this.drawingArea.height - l;
|
|
380
381
|
return r.filter((i) => i.type === "bar").map((i, y) => {
|
|
381
382
|
this.checkAutoScaleError(i);
|
|
382
383
|
const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
|
|
@@ -387,7 +388,7 @@ 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
|
+
}, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + M, o = b.max + Math.abs(H), n = i.stackIndex, g = c - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p + h * g : 0, k = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / o, W = this.absoluteDataset.filter((C) => C.type === "bar").filter((C) => !this.segregatedSeries.includes(C.id)).length, te = i.series.map((C, R) => {
|
|
391
392
|
const K = this.mutableConfig.useIndividualScale ? (i.absoluteValues[R] + M) / t : this.ratioToMax(C), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left + this.slot.bar * y + this.slot.bar * R * W - this.barSlot / 2 - y * this.barPeriodGap;
|
|
392
393
|
return {
|
|
393
394
|
yOffset: this.checkNaN(S),
|
|
@@ -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,7 +443,7 @@ 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
|
+
const r = this.activeSeriesWithStackRatios.filter((i) => ["bar", "line", "plot"].includes(i.type)), c = r.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (c - 1) : 0, e = this.drawingArea.height - l;
|
|
446
447
|
return r.filter((i) => i.type === "line").map((i, y) => {
|
|
447
448
|
this.checkAutoScaleError(i);
|
|
448
449
|
const z = this.scaleGroups[i.scaleLabel].min, O = this.scaleGroups[i.scaleLabel].max;
|
|
@@ -453,7 +454,7 @@ const ct = ne(), ot = {
|
|
|
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
|
+
}, v = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = L.min >= 0 ? 0 : Math.abs(L.min), H = 0, t = L.max + Math.abs(M), o = b.max + Math.abs(H), n = i.stackIndex, g = c - 1 - n, p = f ? 1 - i.cumulatedStackRatio : 0, S = f ? e * p + h * g : 0, k = f ? e * i.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / o, W = i.series.map((A, D) => {
|
|
457
458
|
const he = this.mutableConfig.useIndividualScale ? (i.absoluteValues[D] + Math.abs(M)) / t : this.ratioToMax(A);
|
|
458
459
|
return {
|
|
459
460
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * D),
|
|
@@ -487,7 +488,7 @@ const ct = ne(), ot = {
|
|
|
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((A) => A.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,
|
|
@@ -518,7 +519,7 @@ 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, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (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
525
|
const y = this.scaleGroups[i.scaleLabel].min, z = this.scaleGroups[i.scaleLabel].max;
|
|
@@ -529,7 +530,7 @@ const ct = ne(), ot = {
|
|
|
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 + h * n : 0, S = f ? e * i.stackRatio : this.drawingArea.height, k = this.drawingArea.bottom - p - S * b / H, T = this.drawingArea.bottom - p - S * M / t, Y = i.series.map((w, P) => {
|
|
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))), h = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? c * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
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 + h,
|
|
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 + h)
|
|
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,26 +635,26 @@ 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((h) => ({
|
|
639
|
+
label: h.name,
|
|
640
|
+
color: h.color,
|
|
641
|
+
type: h.type
|
|
642
|
+
})), c = [];
|
|
643
|
+
return this.timeLabels.forEach((h, f) => {
|
|
644
|
+
const l = [h.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 h = [];
|
|
654
655
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
655
656
|
const i = this.relativeDataset.map((y) => y.absoluteValues[e] ?? 0).reduce((y, z) => y + z, 0);
|
|
656
|
-
|
|
657
|
+
h.push(
|
|
657
658
|
[
|
|
658
659
|
this.timeLabels[e].text ?? "-"
|
|
659
660
|
].concat(this.relativeDataset.map(
|
|
@@ -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: h, 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, h) => h === 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 h = 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
|
+
}) : (h && h.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h.text}</div>`), this.selectedSeries.forEach((l) => {
|
|
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: h, 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" ? h + m.padding.left : f - m.padding.right) + m.offsetX, p = (b != null && M != null ? Math.min(b, M) : b ?? M) - m.fontSize / 3 + m.offsetY - m.padding.top;
|
|
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: h,
|
|
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,
|
|
@@ -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, h) {
|
|
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 = `${h || "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, h, f, l) {
|
|
919
|
+
h && (this.tagRefs[`${r}_${c}_${f}_${l}`] = h);
|
|
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 h = 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: h,
|
|
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), h = this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span;
|
|
945
946
|
return {
|
|
946
|
-
x:
|
|
947
|
-
width:
|
|
947
|
+
x: c < this.drawingArea.left ? this.drawingArea.left : c,
|
|
948
|
+
width: h
|
|
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((h) => ae({
|
|
959
960
|
defaultConfig: r.chart.annotations[0],
|
|
960
|
-
userConfig:
|
|
961
|
-
})) :
|
|
961
|
+
userConfig: h
|
|
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, h) => {
|
|
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 ${h}.
|
|
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,9 +993,9 @@ 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: h, 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
1001
|
let i = null, y = 0;
|
|
@@ -1004,14 +1005,14 @@ const ct = ne(), ot = {
|
|
|
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 = h - e - O - y - N - F - 12, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
1008
1009
|
const v = new ResizeObserver((m) => {
|
|
1009
1010
|
for (const L of m)
|
|
1010
1011
|
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ? y = this.$refs.chartSlicer.$el.getBoundingClientRect().height : y = 0, this.$refs.chartLegend ? O = this.$refs.chartLegend.getBoundingClientRect().height : O = 0, this.$refs.source ? N = this.$refs.source.getBoundingClientRect().height : N = 0, this.$refs.noTitle ? F = this.$refs.noTitle.getBoundingClientRect().height : F = 0, requestAnimationFrame(() => {
|
|
1011
1012
|
this.height = L.contentRect.height - e - O - y - N - F - 12, this.width = L.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
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 h = { 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
|
+
}), [h.x, h.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 h = Array(r).fill(0);
|
|
1091
|
+
for (let f = 0; f < c.length && f < r; f += 1)
|
|
1092
|
+
h[f] = c[f];
|
|
1093
|
+
return h;
|
|
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((h) => this.largestTriangleThreeBucketsArray({ data: h.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 h = 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 && (h = c[l], f = e);
|
|
1134
1135
|
}
|
|
1135
|
-
return
|
|
1136
|
+
return h;
|
|
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,34 @@ 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 { width: c, height: h } = this.$refs.chart.getBoundingClientRect(), f = c / h, { imageUri: l, base64: e } = await nt({ domElement: this.$refs.chart, base64: !0, img: !0, scale: r });
|
|
1167
|
+
return {
|
|
1168
|
+
imageUri: l,
|
|
1169
|
+
base64: e,
|
|
1170
|
+
title: this.FINAL_CONFIG.chart.title.text,
|
|
1171
|
+
width: c,
|
|
1172
|
+
height: h,
|
|
1173
|
+
aspectRatio: f
|
|
1174
|
+
};
|
|
1175
|
+
},
|
|
1163
1176
|
segregate(r) {
|
|
1164
1177
|
if (this.segregatedSeries.includes(r.id))
|
|
1165
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1178
|
+
this.segregatedSeries = this.segregatedSeries.filter((c) => c !== r.id);
|
|
1166
1179
|
else {
|
|
1167
1180
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1168
1181
|
this.segregatedSeries.push(r.id);
|
|
1169
1182
|
}
|
|
1170
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1171
|
-
name:
|
|
1172
|
-
values:
|
|
1173
|
-
color:
|
|
1174
|
-
type:
|
|
1183
|
+
this.$emit("selectLegend", this.relativeDataset.map((c) => ({
|
|
1184
|
+
name: c.name,
|
|
1185
|
+
values: c.absoluteValues,
|
|
1186
|
+
color: c.color,
|
|
1187
|
+
type: c.type
|
|
1175
1188
|
}))), this.segregateStep += 1;
|
|
1176
1189
|
},
|
|
1177
|
-
toggleTooltipVisibility(r,
|
|
1178
|
-
this.isTooltip = r, r ? this.selectedSerieIndex =
|
|
1190
|
+
toggleTooltipVisibility(r, c = null) {
|
|
1191
|
+
this.isTooltip = r, r ? this.selectedSerieIndex = c : this.selectedSerieIndex = null;
|
|
1179
1192
|
},
|
|
1180
1193
|
toggleFullscreen(r) {
|
|
1181
1194
|
this.isFullscreen = r, this.step += 1;
|
|
@@ -1186,7 +1199,7 @@ const ct = ne(), ot = {
|
|
|
1186
1199
|
async generatePdf() {
|
|
1187
1200
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1188
1201
|
try {
|
|
1189
|
-
const { default: r } = await import("./pdf-
|
|
1202
|
+
const { default: r } = await import("./pdf-DWZ8IB56.js");
|
|
1190
1203
|
await r({
|
|
1191
1204
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1192
1205
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1200,7 +1213,7 @@ const ct = ne(), ot = {
|
|
|
1200
1213
|
}, 100);
|
|
1201
1214
|
},
|
|
1202
1215
|
generateCsv(r = null) {
|
|
1203
|
-
const
|
|
1216
|
+
const c = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], h = ["", ...this.table.head.map((i) => i.label)], f = this.table.body, l = c.concat([h]).concat(f), e = this.createCsvContent(l);
|
|
1204
1217
|
r ? r(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1205
1218
|
},
|
|
1206
1219
|
showSpinnerImage() {
|
|
@@ -1209,7 +1222,7 @@ const ct = ne(), ot = {
|
|
|
1209
1222
|
async generateImage() {
|
|
1210
1223
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1211
1224
|
try {
|
|
1212
|
-
const { default: r } = await import("./img-
|
|
1225
|
+
const { default: r } = await import("./img-utitT2Gd.js");
|
|
1213
1226
|
await r({
|
|
1214
1227
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1215
1228
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1224,82 +1237,82 @@ const ct = ne(), ot = {
|
|
|
1224
1237
|
}, 100);
|
|
1225
1238
|
}
|
|
1226
1239
|
}
|
|
1227
|
-
},
|
|
1240
|
+
}, ut = ["id"], dt = {
|
|
1228
1241
|
key: 1,
|
|
1229
1242
|
ref: "noTitle",
|
|
1230
1243
|
class: "vue-data-ui-no-title-space",
|
|
1231
1244
|
style: "height:36px; width: 100%; background:transparent"
|
|
1232
|
-
},
|
|
1245
|
+
}, gt = ["viewBox", "aria-label"], ft = ["x", "y", "width", "height"], It = { key: 1 }, xt = { class: "vue-ui-xy-grid" }, Nt = ["stroke", "x1", "x2", "y1", "y2"], mt = ["stroke", "x1", "x2", "y1", "y2"], bt = { key: 1 }, Ft = ["x1", "x2", "y1", "y2", "stroke"], _t = ["x1", "x2", "y1", "y2", "stroke"], At = ["x1", "x2", "y1", "y2", "stroke"], yt = { key: 3 }, Lt = ["x1", "x2", "y1", "y2", "stroke"], Ct = { key: 4 }, St = ["y1", "y2", "x1", "x2", "stroke"], kt = ["id"], wt = ["stop-color"], Ot = ["stop-color"], Gt = ["stop-color"], vt = ["id"], pt = ["stop-color"], zt = ["stop-color"], Mt = ["stop-color"], Tt = ["id"], Pt = ["stop-color"], Vt = ["stop-color"], Rt = ["id"], Ht = ["stop-color"], Dt = ["stop-color"], Bt = ["id"], Wt = ["stop-color"], Et = ["stop-color"], Yt = ["x", "y", "height", "width", "fill"], qt = ["x", "y", "width"], Xt = ["x", "y", "height", "width", "fill"], Ut = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jt = ["width", "x", "y"], Kt = { key: 0 }, Qt = ["id"], jt = ["fill"], $t = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], el = ["x", "y", "font-size", "fill"], tl = ["stroke", "x1", "x2", "y1", "y2"], ll = { key: 2 }, rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], al = { key: 4 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["fill", "font-size", "transform"], cl = ["x1", "x2", "y1", "y2", "stroke"], ol = ["x", "y", "font-size", "fill"], hl = ["x1", "x2", "y1", "y2", "stroke"], ul = ["x", "y", "font-size", "fill"], dl = ["width", "x", "y"], gl = { style: { width: "100%" } }, fl = { key: 0 }, Il = ["id"], xl = ["fill"], Nl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ml = ["x", "y", "font-size", "fill"], bl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fl = ["d", "stroke", "stroke-width", "stroke-dasharray"], _l = { key: 5 }, Al = { key: 0 }, yl = ["d", "fill"], Ll = ["d", "fill"], Cl = ["d", "fill"], Sl = ["d", "fill"], kl = ["d", "stroke", "stroke-width", "stroke-dasharray"], wl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["width", "x", "y"], Gl = { style: { width: "100%" } }, vl = { key: 3 }, pl = ["id"], zl = ["fill"], Ml = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Tl = ["x", "y", "font-size", "fill"], Pl = { key: 6 }, Vl = ["x", "y", "font-size", "fill"], Rl = ["x", "y", "font-size", "fill", "font-weight"], Hl = { key: 7 }, Dl = ["x", "y", "font-size", "fill"], Bl = { key: 8 }, Wl = ["x", "y"], El = ["innerHTML"], Yl = ["x", "y"], ql = ["innerHTML"], Xl = ["x1", "x2", "y1", "y2", "stroke"], Ul = { key: 9 }, Zl = ["x", "y", "font-size", "fill"], Jl = { key: 10 }, Kl = ["x", "y"], Ql = ["innerHTML"], jl = ["x", "y"], $l = ["innerHTML"], er = ["x1", "x2", "y1", "y2", "stroke"], tr = ["x", "y", "font-size", "fill", "innerHTML"], lr = ["x", "y", "font-size", "fill", "innerHTML"], rr = ["x", "y", "font-size", "fill", "innerHTML"], ir = ["x", "y", "font-size", "fill", "innerHTML"], ar = ["id"], sr = ["stop-color"], nr = ["stop-color"], cr = ["x", "y", "width", "height", "fill", "onMouseenter"], or = ["font-size", "fill", "transform"], hr = ["x", "y", "font-size", "fill"], ur = { key: 12 }, dr = ["text-anchor", "font-size", "fill", "transform", "onClick"], gr = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], fr = { key: 13 }, Ir = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Nr = ["y", "x", "width", "height", "fill"], mr = ["id", "x", "y", "font-size", "fill", "text-anchor"], br = ["x", "y", "height", "width", "onMouseenter", "onClick"], Fr = {
|
|
1233
1246
|
key: 14,
|
|
1234
1247
|
style: { "pointer-events": "none" }
|
|
1235
|
-
},
|
|
1248
|
+
}, _r = ["x", "y"], Ar = ["cx", "cy", "r", "fill"], yr = {
|
|
1236
1249
|
key: 5,
|
|
1237
1250
|
class: "vue-data-ui-watermark"
|
|
1238
|
-
},
|
|
1251
|
+
}, Lr = {
|
|
1239
1252
|
class: "vue-ui-xy-tag-arrow",
|
|
1240
1253
|
height: "20",
|
|
1241
1254
|
viewBox: "0 0 10 20",
|
|
1242
1255
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1243
|
-
},
|
|
1256
|
+
}, Cr = ["fill"], Sr = ["innerHTML"], kr = {
|
|
1244
1257
|
class: "vue-ui-xy-tag-arrow",
|
|
1245
1258
|
height: "100%",
|
|
1246
1259
|
viewBox: "0 0 10 20",
|
|
1247
1260
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1248
|
-
},
|
|
1261
|
+
}, wr = ["fill"], Or = ["innerHTML"], Gr = {
|
|
1249
1262
|
class: "vue-ui-xy-tag-arrow",
|
|
1250
1263
|
height: "20",
|
|
1251
1264
|
viewBox: "0 0 10 20",
|
|
1252
1265
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1253
|
-
},
|
|
1266
|
+
}, vr = ["fill"], pr = ["innerHTML"], zr = {
|
|
1254
1267
|
class: "vue-ui-xy-tag-arrow",
|
|
1255
1268
|
height: "100%",
|
|
1256
1269
|
viewBox: "0 0 10 20",
|
|
1257
1270
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1258
|
-
},
|
|
1271
|
+
}, Mr = ["fill"], Tr = ["innerHTML"], Pr = ["onClick"], Vr = {
|
|
1259
1272
|
key: 0,
|
|
1260
1273
|
viewBox: "0 0 20 12",
|
|
1261
1274
|
height: "14",
|
|
1262
1275
|
width: "20"
|
|
1263
|
-
},
|
|
1276
|
+
}, Rr = ["stroke", "fill"], Hr = {
|
|
1264
1277
|
key: 1,
|
|
1265
1278
|
viewBox: "0 0 40 40",
|
|
1266
1279
|
height: "14",
|
|
1267
1280
|
width: "14"
|
|
1268
|
-
},
|
|
1281
|
+
}, Dr = ["fill"], Br = ["fill"], Wr = {
|
|
1269
1282
|
key: 2,
|
|
1270
1283
|
viewBox: "0 0 12 12",
|
|
1271
1284
|
height: "14",
|
|
1272
1285
|
width: "14"
|
|
1273
|
-
},
|
|
1286
|
+
}, Er = {
|
|
1274
1287
|
key: 9,
|
|
1275
1288
|
ref: "chartLegend"
|
|
1276
|
-
},
|
|
1289
|
+
}, Yr = {
|
|
1277
1290
|
key: 10,
|
|
1278
1291
|
ref: "source",
|
|
1279
1292
|
dir: "auto"
|
|
1280
|
-
},
|
|
1293
|
+
}, qr = {
|
|
1281
1294
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1282
1295
|
"data-dom-to-png-ignore": ""
|
|
1283
|
-
},
|
|
1284
|
-
function
|
|
1296
|
+
}, Xr = ["innerHTML"];
|
|
1297
|
+
function Ur(r, c, h, f, l, e) {
|
|
1285
1298
|
const i = q("PenAndPaper"), y = q("Title"), z = q("UserOptions"), O = q("PackageVersion"), N = q("Shape"), F = q("Skeleton"), v = q("Slicer"), m = q("Tooltip"), L = q("BaseIcon"), b = q("TableSparkline"), M = q("DataTable"), H = q("Accordion");
|
|
1286
1299
|
return a(), s("div", {
|
|
1287
1300
|
id: `vue-ui-xy_${l.uniqueId}`,
|
|
1288
1301
|
class: j(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1289
1302
|
ref: "chart",
|
|
1290
1303
|
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:
|
|
1304
|
+
onMouseenter: c[7] || (c[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1305
|
+
onMouseleave: c[8] || (c[8] = () => e.setUserOptionsVisibility(!1))
|
|
1293
1306
|
}, [
|
|
1294
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), U(i, {
|
|
1307
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator && l.svgRef ? (a(), U(i, {
|
|
1295
1308
|
key: 0,
|
|
1296
1309
|
svgRef: l.svgRef,
|
|
1297
1310
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1298
1311
|
color: e.FINAL_CONFIG.chart.color,
|
|
1299
1312
|
active: l.isAnnotator,
|
|
1300
1313
|
onClose: e.toggleAnnotator
|
|
1301
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) :
|
|
1302
|
-
e.hasOptionsNoTitle ? (a(), s("div",
|
|
1314
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : u("", !0),
|
|
1315
|
+
e.hasOptionsNoTitle ? (a(), s("div", dt, null, 512)) : u("", !0),
|
|
1303
1316
|
e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
|
|
1304
1317
|
key: 2,
|
|
1305
1318
|
ref: "chartTitle",
|
|
@@ -1319,7 +1332,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1319
1332
|
}
|
|
1320
1333
|
}
|
|
1321
1334
|
}, null, 8, ["config"]))
|
|
1322
|
-
], 4)) :
|
|
1335
|
+
], 4)) : u("", !0),
|
|
1323
1336
|
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (a(), U(z, {
|
|
1324
1337
|
ref: "defails",
|
|
1325
1338
|
key: `user_options_${l.step}`,
|
|
@@ -1334,7 +1347,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1334
1347
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1335
1348
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1336
1349
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1337
|
-
hasStack:
|
|
1350
|
+
hasStack: h.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1338
1351
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1339
1352
|
isStacked: l.mutableConfig.isStacked,
|
|
1340
1353
|
isFullscreen: l.isFullscreen,
|
|
@@ -1361,8 +1374,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1361
1374
|
}, et({ _: 2 }, [
|
|
1362
1375
|
r.$slots.menuIcon ? {
|
|
1363
1376
|
name: "menuIcon",
|
|
1364
|
-
fn: B(({ isOpen: t, color:
|
|
1365
|
-
G(r.$slots, "menuIcon", $(ee({ isOpen: t, color:
|
|
1377
|
+
fn: B(({ isOpen: t, color: o }) => [
|
|
1378
|
+
G(r.$slots, "menuIcon", $(ee({ isOpen: t, color: o })), void 0, !0)
|
|
1366
1379
|
]),
|
|
1367
1380
|
key: "0"
|
|
1368
1381
|
} : void 0,
|
|
@@ -1417,19 +1430,19 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1417
1430
|
} : void 0,
|
|
1418
1431
|
r.$slots.optionFullscreen ? {
|
|
1419
1432
|
name: "optionFullscreen",
|
|
1420
|
-
fn: B(({ toggleFullscreen: t, isFullscreen:
|
|
1421
|
-
G(r.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen:
|
|
1433
|
+
fn: B(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
1434
|
+
G(r.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
1422
1435
|
]),
|
|
1423
1436
|
key: "8"
|
|
1424
1437
|
} : void 0,
|
|
1425
1438
|
r.$slots.optionAnnotator ? {
|
|
1426
1439
|
name: "optionAnnotator",
|
|
1427
|
-
fn: B(({ toggleAnnotator: t, isAnnotator:
|
|
1428
|
-
G(r.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator:
|
|
1440
|
+
fn: B(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
1441
|
+
G(r.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
1429
1442
|
]),
|
|
1430
1443
|
key: "9"
|
|
1431
1444
|
} : void 0
|
|
1432
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) :
|
|
1445
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : u("", !0),
|
|
1433
1446
|
e.isDataset ? (a(), s("svg", {
|
|
1434
1447
|
key: 4,
|
|
1435
1448
|
ref: "svgRef",
|
|
@@ -1454,9 +1467,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1454
1467
|
}
|
|
1455
1468
|
}, [
|
|
1456
1469
|
G(r.$slots, "chart-background", {}, void 0, !0)
|
|
1457
|
-
], 8,
|
|
1458
|
-
e.maxSeries > 0 ? (a(), s("g",
|
|
1459
|
-
I("g",
|
|
1470
|
+
], 8, ft)) : u("", !0),
|
|
1471
|
+
e.maxSeries > 0 ? (a(), s("g", It, [
|
|
1472
|
+
I("g", xt, [
|
|
1460
1473
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
|
|
1461
1474
|
key: 0,
|
|
1462
1475
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1467,28 +1480,28 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1467
1480
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1468
1481
|
"stroke-linecap": "round",
|
|
1469
1482
|
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(
|
|
1483
|
+
}, null, 8, Nt)) : u("", !0),
|
|
1484
|
+
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(d, { key: 2 }, x(e.allScales, (t) => (a(), s("g", null, [
|
|
1485
|
+
t.id === l.selectedScale && t.yLabels.length ? (a(!0), s(d, { key: 0 }, x(t.yLabels, (o) => (a(), s("line", {
|
|
1473
1486
|
x1: e.drawingArea.left + e.xPadding,
|
|
1474
1487
|
x2: e.drawingArea.right - e.xPadding,
|
|
1475
|
-
y1: e.forceValidValue(
|
|
1476
|
-
y2: e.forceValidValue(
|
|
1488
|
+
y1: e.forceValidValue(o.y),
|
|
1489
|
+
y2: e.forceValidValue(o.y),
|
|
1477
1490
|
stroke: t.color,
|
|
1478
1491
|
"stroke-width": 0.5,
|
|
1479
1492
|
"stroke-linecap": "round",
|
|
1480
1493
|
style: { animation: "none !important" }
|
|
1481
|
-
}, null, 8,
|
|
1494
|
+
}, null, 8, _t))), 256)) : t.yLabels.length ? (a(!0), s(d, { key: 1 }, x(t.yLabels, (o) => (a(), s("line", {
|
|
1482
1495
|
x1: e.drawingArea.left + e.xPadding,
|
|
1483
1496
|
x2: e.drawingArea.right - e.xPadding,
|
|
1484
|
-
y1: e.forceValidValue(
|
|
1485
|
-
y2: e.forceValidValue(
|
|
1497
|
+
y1: e.forceValidValue(o.y),
|
|
1498
|
+
y2: e.forceValidValue(o.y),
|
|
1486
1499
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1487
1500
|
"stroke-width": 0.5,
|
|
1488
1501
|
"stroke-linecap": "round",
|
|
1489
1502
|
style: { animation: "none !important" }
|
|
1490
|
-
}, null, 8,
|
|
1491
|
-
]))), 256)) :
|
|
1503
|
+
}, null, 8, At))), 256)) : u("", !0)
|
|
1504
|
+
]))), 256)) : u("", !0) : (a(), s(d, { key: 1 }, [
|
|
1492
1505
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
|
|
1493
1506
|
key: 0,
|
|
1494
1507
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1499,9 +1512,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1499
1512
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1500
1513
|
"stroke-linecap": "round",
|
|
1501
1514
|
style: { animation: "none !important" }
|
|
1502
|
-
}, null, 8,
|
|
1503
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g",
|
|
1504
|
-
(a(!0), s(
|
|
1515
|
+
}, null, 8, mt)) : u("", !0),
|
|
1516
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", bt, [
|
|
1517
|
+
(a(!0), s(d, null, x(e.yLabels, (t) => (a(), s("line", {
|
|
1505
1518
|
x1: e.drawingArea.left + e.xPadding,
|
|
1506
1519
|
x2: e.drawingArea.right - e.xPadding,
|
|
1507
1520
|
y1: e.forceValidValue(t.y),
|
|
@@ -1510,86 +1523,86 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1510
1523
|
"stroke-width": 0.5,
|
|
1511
1524
|
"stroke-linecap": "round",
|
|
1512
1525
|
style: { animation: "none !important" }
|
|
1513
|
-
}, null, 8,
|
|
1514
|
-
])) :
|
|
1526
|
+
}, null, 8, Ft))), 256))
|
|
1527
|
+
])) : u("", !0)
|
|
1515
1528
|
], 64)),
|
|
1516
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g",
|
|
1517
|
-
(a(!0), s(
|
|
1518
|
-
key: `grid_vertical_line_${
|
|
1519
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1520
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1529
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", yt, [
|
|
1530
|
+
(a(!0), s(d, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, o) => (a(), s("line", {
|
|
1531
|
+
key: `grid_vertical_line_${o}`,
|
|
1532
|
+
x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1533
|
+
x2: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1521
1534
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1522
1535
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1523
1536
|
"stroke-width": "0.5",
|
|
1524
1537
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1525
1538
|
style: { animation: "none !important" }
|
|
1526
|
-
}, null, 8,
|
|
1527
|
-
])) :
|
|
1528
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g",
|
|
1529
|
-
(a(!0), s(
|
|
1530
|
-
key: `time_label_${
|
|
1539
|
+
}, null, 8, Lt))), 128))
|
|
1540
|
+
])) : u("", !0),
|
|
1541
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", Ct, [
|
|
1542
|
+
(a(!0), s(d, null, x(e.timeLabels, (t, o) => (a(), s("g", {
|
|
1543
|
+
key: `time_label_${o}`
|
|
1531
1544
|
}, [
|
|
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 && (
|
|
1545
|
+
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
1546
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (a(), s("line", {
|
|
1534
1547
|
key: 0,
|
|
1535
1548
|
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
1549
|
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 *
|
|
1550
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
|
|
1551
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
|
|
1539
1552
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1540
1553
|
"stroke-width": 1,
|
|
1541
1554
|
"stroke-linecap": "round",
|
|
1542
1555
|
style: { animation: "none !important" }
|
|
1543
|
-
}, null, 8,
|
|
1544
|
-
], 64)) :
|
|
1556
|
+
}, null, 8, St)) : u("", !0)
|
|
1557
|
+
], 64)) : u("", !0)
|
|
1545
1558
|
]))), 128))
|
|
1546
|
-
])) :
|
|
1559
|
+
])) : u("", !0)
|
|
1547
1560
|
]),
|
|
1548
|
-
(a(!0), s(
|
|
1549
|
-
key: `def_rect_${
|
|
1561
|
+
(a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s("defs", {
|
|
1562
|
+
key: `def_rect_${o}`
|
|
1550
1563
|
}, [
|
|
1551
1564
|
I("linearGradient", {
|
|
1552
|
-
id: `rectGradient_pos_${
|
|
1565
|
+
id: `rectGradient_pos_${o}_${l.uniqueId}`,
|
|
1553
1566
|
x2: "0%",
|
|
1554
1567
|
y2: "100%"
|
|
1555
1568
|
}, [
|
|
1556
1569
|
I("stop", {
|
|
1557
1570
|
offset: "0%",
|
|
1558
1571
|
"stop-color": t.color
|
|
1559
|
-
}, null, 8,
|
|
1572
|
+
}, null, 8, wt),
|
|
1560
1573
|
I("stop", {
|
|
1561
1574
|
offset: "62%",
|
|
1562
1575
|
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1563
|
-
}, null, 8,
|
|
1576
|
+
}, null, 8, Ot),
|
|
1564
1577
|
I("stop", {
|
|
1565
1578
|
offset: "100%",
|
|
1566
1579
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1567
|
-
}, null, 8,
|
|
1568
|
-
], 8,
|
|
1580
|
+
}, null, 8, Gt)
|
|
1581
|
+
], 8, kt),
|
|
1569
1582
|
I("linearGradient", {
|
|
1570
|
-
id: `rectGradient_neg_${
|
|
1583
|
+
id: `rectGradient_neg_${o}_${l.uniqueId}`,
|
|
1571
1584
|
x2: "0%",
|
|
1572
1585
|
y2: "100%"
|
|
1573
1586
|
}, [
|
|
1574
1587
|
I("stop", {
|
|
1575
1588
|
offset: "0%",
|
|
1576
1589
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1577
|
-
}, null, 8,
|
|
1590
|
+
}, null, 8, pt),
|
|
1578
1591
|
I("stop", {
|
|
1579
1592
|
offset: "38%",
|
|
1580
1593
|
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1581
|
-
}, null, 8,
|
|
1594
|
+
}, null, 8, zt),
|
|
1582
1595
|
I("stop", {
|
|
1583
1596
|
offset: "100%",
|
|
1584
1597
|
"stop-color": t.color
|
|
1585
|
-
}, null, 8,
|
|
1586
|
-
], 8,
|
|
1598
|
+
}, null, 8, Mt)
|
|
1599
|
+
], 8, vt)
|
|
1587
1600
|
]))), 128)),
|
|
1588
|
-
(a(!0), s(
|
|
1589
|
-
key: `def_plot_${
|
|
1601
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("defs", {
|
|
1602
|
+
key: `def_plot_${o}`
|
|
1590
1603
|
}, [
|
|
1591
1604
|
I("radialGradient", {
|
|
1592
|
-
id: `plotGradient_${
|
|
1605
|
+
id: `plotGradient_${o}_${l.uniqueId}`,
|
|
1593
1606
|
cx: "50%",
|
|
1594
1607
|
cy: "50%",
|
|
1595
1608
|
r: "50%",
|
|
@@ -1599,18 +1612,18 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1599
1612
|
I("stop", {
|
|
1600
1613
|
offset: "0%",
|
|
1601
1614
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1602
|
-
}, null, 8,
|
|
1615
|
+
}, null, 8, Pt),
|
|
1603
1616
|
I("stop", {
|
|
1604
1617
|
offset: "100%",
|
|
1605
1618
|
"stop-color": t.color
|
|
1606
|
-
}, null, 8,
|
|
1607
|
-
], 8,
|
|
1619
|
+
}, null, 8, Vt)
|
|
1620
|
+
], 8, Tt)
|
|
1608
1621
|
]))), 128)),
|
|
1609
|
-
(a(!0), s(
|
|
1610
|
-
key: `def_line_${
|
|
1622
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("defs", {
|
|
1623
|
+
key: `def_line_${o}`
|
|
1611
1624
|
}, [
|
|
1612
1625
|
I("radialGradient", {
|
|
1613
|
-
id: `lineGradient_${
|
|
1626
|
+
id: `lineGradient_${o}_${l.uniqueId}`,
|
|
1614
1627
|
cx: "50%",
|
|
1615
1628
|
cy: "50%",
|
|
1616
1629
|
r: "50%",
|
|
@@ -1620,14 +1633,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1620
1633
|
I("stop", {
|
|
1621
1634
|
offset: "0%",
|
|
1622
1635
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1623
|
-
}, null, 8,
|
|
1636
|
+
}, null, 8, Ht),
|
|
1624
1637
|
I("stop", {
|
|
1625
1638
|
offset: "100%",
|
|
1626
1639
|
"stop-color": t.color
|
|
1627
|
-
}, null, 8,
|
|
1628
|
-
], 8,
|
|
1640
|
+
}, null, 8, Dt)
|
|
1641
|
+
], 8, Rt),
|
|
1629
1642
|
I("linearGradient", {
|
|
1630
|
-
id: `areaGradient_${
|
|
1643
|
+
id: `areaGradient_${o}_${l.uniqueId}`,
|
|
1631
1644
|
x1: "0%",
|
|
1632
1645
|
x2: "100%",
|
|
1633
1646
|
y1: "0%",
|
|
@@ -1636,16 +1649,16 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1636
1649
|
I("stop", {
|
|
1637
1650
|
offset: "0%",
|
|
1638
1651
|
"stop-color": `${e.setOpacity(e.shiftHue(t.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1639
|
-
}, null, 8,
|
|
1652
|
+
}, null, 8, Wt),
|
|
1640
1653
|
I("stop", {
|
|
1641
1654
|
offset: "100%",
|
|
1642
1655
|
"stop-color": `${e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1643
|
-
}, null, 8,
|
|
1644
|
-
], 8,
|
|
1656
|
+
}, null, 8, Et)
|
|
1657
|
+
], 8, Bt)
|
|
1645
1658
|
]))), 128)),
|
|
1646
|
-
(a(!0), s(
|
|
1647
|
-
t.show ? (a(), s(
|
|
1648
|
-
(a(!0), s(
|
|
1659
|
+
(a(!0), s(d, null, x(e.highlightAreas, (t) => (a(), s("g", null, [
|
|
1660
|
+
t.show ? (a(), s(d, { key: 0 }, [
|
|
1661
|
+
(a(!0), s(d, null, x(t.span, (o, n) => (a(), s("g", null, [
|
|
1649
1662
|
I("rect", {
|
|
1650
1663
|
style: _({
|
|
1651
1664
|
transition: "none",
|
|
@@ -1656,9 +1669,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1656
1669
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1657
1670
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1658
1671
|
fill: e.setOpacity(t.color, t.opacity)
|
|
1659
|
-
}, null, 12,
|
|
1672
|
+
}, null, 12, Yt)
|
|
1660
1673
|
]))), 256)),
|
|
1661
|
-
(a(!0), s(
|
|
1674
|
+
(a(!0), s(d, null, x(t.span, (o, n) => (a(), s("g", null, [
|
|
1662
1675
|
t.caption.text && n === 0 ? (a(), s("foreignObject", {
|
|
1663
1676
|
key: 0,
|
|
1664
1677
|
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 +1686,30 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1673
1686
|
I("div", {
|
|
1674
1687
|
style: _(`padding:${t.caption.padding}px;text-align:${t.caption.textAlign};font-size:${t.caption.fontSize}px;color:${t.caption.color};font-weight:${t.caption.bold ? "bold" : "normal"}`)
|
|
1675
1688
|
}, V(t.caption.text), 5)
|
|
1676
|
-
], 12,
|
|
1689
|
+
], 12, qt)) : u("", !0)
|
|
1677
1690
|
]))), 256))
|
|
1678
|
-
], 64)) :
|
|
1691
|
+
], 64)) : u("", !0)
|
|
1679
1692
|
]))), 256)),
|
|
1680
1693
|
I("g", null, [
|
|
1681
|
-
(a(!0), s(
|
|
1682
|
-
key: `tooltip_trap_highlighter_${
|
|
1694
|
+
(a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("g", {
|
|
1695
|
+
key: `tooltip_trap_highlighter_${o}`
|
|
1683
1696
|
}, [
|
|
1684
1697
|
I("rect", {
|
|
1685
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1698
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
1686
1699
|
y: e.drawingArea.top,
|
|
1687
1700
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1688
1701
|
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,
|
|
1702
|
+
fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(o) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1703
|
+
}, null, 8, Xt)
|
|
1691
1704
|
]))), 128))
|
|
1692
1705
|
]),
|
|
1693
|
-
e.barSet.length ? (a(!0), s(
|
|
1694
|
-
key: `serie_bar_${
|
|
1695
|
-
class: j(`serie_bar_${
|
|
1706
|
+
e.barSet.length ? (a(!0), s(d, { key: 0 }, x(e.barSet, (t, o) => (a(), s("g", {
|
|
1707
|
+
key: `serie_bar_${o}`,
|
|
1708
|
+
class: j(`serie_bar_${o}`),
|
|
1696
1709
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1697
1710
|
}, [
|
|
1698
|
-
(a(!0), s(
|
|
1699
|
-
key: `bar_plot_${
|
|
1711
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s("g", {
|
|
1712
|
+
key: `bar_plot_${o}_${g}`
|
|
1700
1713
|
}, [
|
|
1701
1714
|
e.canShowValue(n.value) ? (a(), s("rect", {
|
|
1702
1715
|
key: 0,
|
|
@@ -1705,10 +1718,10 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1705
1718
|
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1706
1719
|
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
1720
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1708
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${
|
|
1721
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${o}_${l.uniqueId})` : `url(#rectGradient_neg_${o}_${l.uniqueId})` : t.color,
|
|
1709
1722
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1710
1723
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1711
|
-
}, null, 8,
|
|
1724
|
+
}, null, 8, Ut)) : u("", !0),
|
|
1712
1725
|
e.canShowValue(n.value) && r.$slots.pattern ? (a(), s("rect", {
|
|
1713
1726
|
key: 1,
|
|
1714
1727
|
x: e.calcRectX(n),
|
|
@@ -1719,7 +1732,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1719
1732
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`,
|
|
1720
1733
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1721
1734
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1722
|
-
}, null, 8,
|
|
1735
|
+
}, null, 8, Zt)) : u("", !0),
|
|
1723
1736
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1724
1737
|
key: 2,
|
|
1725
1738
|
style: { overflow: "visible" },
|
|
@@ -1729,14 +1742,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1729
1742
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1730
1743
|
}, [
|
|
1731
1744
|
G(r.$slots, "plot-comment", {
|
|
1732
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
1745
|
+
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1733
1746
|
}, void 0, !0)
|
|
1734
|
-
], 8,
|
|
1747
|
+
], 8, Jt)) : u("", !0)
|
|
1735
1748
|
]))), 128)),
|
|
1736
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g",
|
|
1749
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", Kt, [
|
|
1737
1750
|
I("defs", null, [
|
|
1738
1751
|
I("marker", {
|
|
1739
|
-
id: `bar_arrow_${
|
|
1752
|
+
id: `bar_arrow_${o}`,
|
|
1740
1753
|
markerWidth: 7,
|
|
1741
1754
|
markerHeight: 7,
|
|
1742
1755
|
refX: "0",
|
|
@@ -1746,8 +1759,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1746
1759
|
I("polygon", {
|
|
1747
1760
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1748
1761
|
fill: t.color
|
|
1749
|
-
}, null, 8,
|
|
1750
|
-
], 8,
|
|
1762
|
+
}, null, 8, jt)
|
|
1763
|
+
], 8, Qt)
|
|
1751
1764
|
]),
|
|
1752
1765
|
t.plots.length > 1 ? (a(), s("line", {
|
|
1753
1766
|
key: 0,
|
|
@@ -1758,8 +1771,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1758
1771
|
"stroke-width": 1,
|
|
1759
1772
|
stroke: t.color,
|
|
1760
1773
|
"stroke-dasharray": 2,
|
|
1761
|
-
"marker-end": `url(#bar_arrow_${
|
|
1762
|
-
}, null, 8,
|
|
1774
|
+
"marker-end": `url(#bar_arrow_${o})`
|
|
1775
|
+
}, null, 8, $t)) : u("", !0),
|
|
1763
1776
|
t.plots.length > 1 ? (a(), s("text", {
|
|
1764
1777
|
key: 1,
|
|
1765
1778
|
"text-anchor": "middle",
|
|
@@ -1771,9 +1784,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1771
1784
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1772
1785
|
s: "%",
|
|
1773
1786
|
r: 2
|
|
1774
|
-
})), 9,
|
|
1775
|
-
])) :
|
|
1776
|
-
], 6))), 128)) :
|
|
1787
|
+
})), 9, el)) : u("", !0)
|
|
1788
|
+
])) : u("", !0)
|
|
1789
|
+
], 6))), 128)) : u("", !0),
|
|
1777
1790
|
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
|
|
1778
1791
|
key: 1,
|
|
1779
1792
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1784,8 +1797,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1784
1797
|
y2: e.forceValidValue(e.zero),
|
|
1785
1798
|
"stroke-linecap": "round",
|
|
1786
1799
|
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",
|
|
1800
|
+
}, null, 8, tl)) : u("", !0),
|
|
1801
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", ll, [
|
|
1789
1802
|
I("line", {
|
|
1790
1803
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1791
1804
|
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,8 +1809,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1796
1809
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1797
1810
|
"stroke-linecap": "round",
|
|
1798
1811
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1799
|
-
}, null, 8,
|
|
1800
|
-
])) :
|
|
1812
|
+
}, null, 8, rl)
|
|
1813
|
+
])) : u("", !0),
|
|
1801
1814
|
e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
|
|
1802
1815
|
key: 3,
|
|
1803
1816
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
@@ -1811,10 +1824,10 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1811
1824
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1812
1825
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1813
1826
|
"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(
|
|
1827
|
+
}, null, 8, il)) : u("", !0),
|
|
1828
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", al, [
|
|
1829
|
+
l.mutableConfig.useIndividualScale ? (a(), s(d, { key: 0 }, [
|
|
1830
|
+
(a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", null, [
|
|
1818
1831
|
I("line", {
|
|
1819
1832
|
x1: t.x + e.xPadding,
|
|
1820
1833
|
x2: t.x + e.xPadding,
|
|
@@ -1824,9 +1837,9 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1824
1837
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1825
1838
|
"stroke-linecap": "round",
|
|
1826
1839
|
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,
|
|
1840
|
+
}, null, 12, sl)
|
|
1828
1841
|
]))), 256)),
|
|
1829
|
-
(a(!0), s(
|
|
1842
|
+
(a(!0), s(d, null, x(e.allScales, (t) => (a(), s("g", {
|
|
1830
1843
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1831
1844
|
}, [
|
|
1832
1845
|
I("text", {
|
|
@@ -1834,40 +1847,40 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1834
1847
|
"font-size": l.fontSizes.dataLabels,
|
|
1835
1848
|
"text-anchor": "middle",
|
|
1836
1849
|
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(
|
|
1850
|
+
}, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9, nl),
|
|
1851
|
+
(a(!0), s(d, null, x(t.yLabels, (o, n) => (a(), s(d, null, [
|
|
1839
1852
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), s("line", {
|
|
1840
1853
|
key: 0,
|
|
1841
1854
|
x1: t.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
|
|
1842
1855
|
x2: t.x + e.xPadding,
|
|
1843
|
-
y1: e.forceValidValue(
|
|
1844
|
-
y2: e.forceValidValue(
|
|
1856
|
+
y1: e.forceValidValue(o.y),
|
|
1857
|
+
y2: e.forceValidValue(o.y),
|
|
1845
1858
|
stroke: t.color,
|
|
1846
1859
|
"stroke-width": 1,
|
|
1847
1860
|
"stroke-linecap": "round",
|
|
1848
1861
|
style: { animation: "none !important" }
|
|
1849
|
-
}, null, 8,
|
|
1862
|
+
}, null, 8, cl)) : u("", !0)
|
|
1850
1863
|
], 64))), 256)),
|
|
1851
|
-
(a(!0), s(
|
|
1864
|
+
(a(!0), s(d, null, x(t.yLabels, (o, n) => (a(), s("text", {
|
|
1852
1865
|
x: t.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1853
|
-
y: e.forceValidValue(
|
|
1866
|
+
y: e.forceValidValue(o.y) + l.fontSizes.dataLabels / 3,
|
|
1854
1867
|
"font-size": l.fontSizes.dataLabels,
|
|
1855
1868
|
"text-anchor": "end",
|
|
1856
1869
|
fill: t.color
|
|
1857
1870
|
}, V(e.applyDataLabel(
|
|
1858
1871
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1859
|
-
|
|
1872
|
+
o.value,
|
|
1860
1873
|
e.dataLabel({
|
|
1861
|
-
p:
|
|
1862
|
-
v:
|
|
1863
|
-
s:
|
|
1874
|
+
p: o.prefix,
|
|
1875
|
+
v: o.value,
|
|
1876
|
+
s: o.suffix,
|
|
1864
1877
|
r: 1
|
|
1865
1878
|
}),
|
|
1866
|
-
{ datapoint:
|
|
1867
|
-
)), 9,
|
|
1879
|
+
{ datapoint: o.datapoint, seriesIndex: n }
|
|
1880
|
+
)), 9, ol))), 256))
|
|
1868
1881
|
], 4))), 256))
|
|
1869
|
-
], 64)) : (a(!0), s(
|
|
1870
|
-
key: `yLabel_${
|
|
1882
|
+
], 64)) : (a(!0), s(d, { key: 1 }, x(e.yLabels, (t, o) => (a(), s("g", {
|
|
1883
|
+
key: `yLabel_${o}`
|
|
1871
1884
|
}, [
|
|
1872
1885
|
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
1886
|
key: 0,
|
|
@@ -1879,7 +1892,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1879
1892
|
"stroke-width": "1",
|
|
1880
1893
|
"stroke-linecap": "round",
|
|
1881
1894
|
style: { animation: "none !important" }
|
|
1882
|
-
}, null, 8,
|
|
1895
|
+
}, null, 8, hl)) : u("", !0),
|
|
1883
1896
|
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (a(), s("text", {
|
|
1884
1897
|
key: 1,
|
|
1885
1898
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
@@ -1896,26 +1909,26 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1896
1909
|
s: t.suffix,
|
|
1897
1910
|
r: 1
|
|
1898
1911
|
})
|
|
1899
|
-
) : ""), 9,
|
|
1912
|
+
) : ""), 9, ul)) : u("", !0)
|
|
1900
1913
|
]))), 128))
|
|
1901
|
-
])) :
|
|
1902
|
-
(a(!0), s(
|
|
1903
|
-
key: `serie_plot_${
|
|
1904
|
-
class: j(`serie_plot_${
|
|
1914
|
+
])) : u("", !0),
|
|
1915
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s("g", {
|
|
1916
|
+
key: `serie_plot_${o}`,
|
|
1917
|
+
class: j(`serie_plot_${o}`),
|
|
1905
1918
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1906
1919
|
}, [
|
|
1907
|
-
(a(!0), s(
|
|
1908
|
-
key: `circle_plot_${
|
|
1920
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s("g", {
|
|
1921
|
+
key: `circle_plot_${o}_${g}`
|
|
1909
1922
|
}, [
|
|
1910
1923
|
n && e.canShowValue(n.value) ? (a(), U(N, {
|
|
1911
1924
|
key: 0,
|
|
1912
1925
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1913
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1926
|
+
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
1927
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1915
1928
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
|
|
1916
1929
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
1917
1930
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1918
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1931
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
1919
1932
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
1920
1933
|
key: 1,
|
|
1921
1934
|
style: { overflow: "visible" },
|
|
@@ -1924,17 +1937,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1924
1937
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1925
1938
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1926
1939
|
}, [
|
|
1927
|
-
I("div",
|
|
1940
|
+
I("div", gl, [
|
|
1928
1941
|
G(r.$slots, "plot-comment", {
|
|
1929
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
1942
|
+
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1930
1943
|
}, void 0, !0)
|
|
1931
1944
|
])
|
|
1932
|
-
], 8,
|
|
1945
|
+
], 8, dl)) : u("", !0)
|
|
1933
1946
|
]))), 128)),
|
|
1934
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g",
|
|
1947
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", fl, [
|
|
1935
1948
|
I("defs", null, [
|
|
1936
1949
|
I("marker", {
|
|
1937
|
-
id: `plot_arrow_${
|
|
1950
|
+
id: `plot_arrow_${o}`,
|
|
1938
1951
|
markerWidth: 7,
|
|
1939
1952
|
markerHeight: 7,
|
|
1940
1953
|
refX: "0",
|
|
@@ -1944,8 +1957,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1944
1957
|
I("polygon", {
|
|
1945
1958
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1946
1959
|
fill: t.color
|
|
1947
|
-
}, null, 8,
|
|
1948
|
-
], 8,
|
|
1960
|
+
}, null, 8, xl)
|
|
1961
|
+
], 8, Il)
|
|
1949
1962
|
]),
|
|
1950
1963
|
t.plots.length > 1 ? (a(), s("line", {
|
|
1951
1964
|
key: 0,
|
|
@@ -1956,8 +1969,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1956
1969
|
"stroke-width": 1,
|
|
1957
1970
|
stroke: t.color,
|
|
1958
1971
|
"stroke-dasharray": 2,
|
|
1959
|
-
"marker-end": `url(#plot_arrow_${
|
|
1960
|
-
}, null, 8,
|
|
1972
|
+
"marker-end": `url(#plot_arrow_${o})`
|
|
1973
|
+
}, null, 8, Nl)) : u("", !0),
|
|
1961
1974
|
t.plots.length > 1 ? (a(), s("text", {
|
|
1962
1975
|
key: 1,
|
|
1963
1976
|
"text-anchor": "middle",
|
|
@@ -1969,12 +1982,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1969
1982
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1970
1983
|
s: "%",
|
|
1971
1984
|
r: 2
|
|
1972
|
-
})), 9,
|
|
1973
|
-
])) :
|
|
1985
|
+
})), 9, ml)) : u("", !0)
|
|
1986
|
+
])) : u("", !0)
|
|
1974
1987
|
], 6))), 128)),
|
|
1975
|
-
(a(!0), s(
|
|
1976
|
-
key: `serie_line_${
|
|
1977
|
-
class: j(`serie_line_${
|
|
1988
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
|
|
1989
|
+
key: `serie_line_${o}`,
|
|
1990
|
+
class: j(`serie_line_${o}`),
|
|
1978
1991
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1979
1992
|
}, [
|
|
1980
1993
|
t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
|
|
@@ -1984,7 +1997,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1984
1997
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1985
1998
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1986
1999
|
fill: "none"
|
|
1987
|
-
}, null, 8,
|
|
2000
|
+
}, null, 8, bl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
|
|
1988
2001
|
key: 1,
|
|
1989
2002
|
d: `M${t.straight}`,
|
|
1990
2003
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1993,41 +2006,41 @@ function Xr(r, o, d, f, l, e) {
|
|
|
1993
2006
|
fill: "none",
|
|
1994
2007
|
"stroke-linecap": "round",
|
|
1995
2008
|
"stroke-linejoin": "round"
|
|
1996
|
-
}, null, 8,
|
|
2009
|
+
}, null, 8, Fl)) : u("", !0)
|
|
1997
2010
|
], 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}_${
|
|
2002
|
-
])) :
|
|
2003
|
-
(a(!0), s(
|
|
2004
|
-
key: `serie_line_${
|
|
2005
|
-
class: j(`serie_line_${
|
|
2011
|
+
r.$slots.pattern ? (a(), s("defs", _l, [
|
|
2012
|
+
(a(!0), s(d, null, x(e.safeDataset, (t, o) => G(r.$slots, "pattern", se({
|
|
2013
|
+
key: `serie_pattern_slot_${o}`
|
|
2014
|
+
}, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${o}` }), void 0, !0)), 128))
|
|
2015
|
+
])) : u("", !0),
|
|
2016
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s("g", {
|
|
2017
|
+
key: `serie_line_${o}`,
|
|
2018
|
+
class: j(`serie_line_${o}`),
|
|
2006
2019
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2007
2020
|
}, [
|
|
2008
|
-
t.useArea && t.plots.length > 1 ? (a(), s("g",
|
|
2009
|
-
t.smooth ? (a(!0), s(
|
|
2021
|
+
t.useArea && t.plots.length > 1 ? (a(), s("g", Al, [
|
|
2022
|
+
t.smooth ? (a(!0), s(d, { key: 0 }, x(t.curveAreas, (n, g) => (a(), s(d, { key: g }, [
|
|
2010
2023
|
I("path", {
|
|
2011
2024
|
d: n,
|
|
2012
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
2013
|
-
}, null, 8,
|
|
2025
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2026
|
+
}, null, 8, yl),
|
|
2014
2027
|
r.$slots.pattern ? (a(), s("path", {
|
|
2015
2028
|
key: 0,
|
|
2016
2029
|
d: n,
|
|
2017
2030
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2018
|
-
}, null, 8,
|
|
2019
|
-
], 64))), 128)) : (a(!0), s(
|
|
2031
|
+
}, null, 8, Ll)) : u("", !0)
|
|
2032
|
+
], 64))), 128)) : (a(!0), s(d, { key: 1 }, x(t.area.split(";"), (n, g) => (a(), s(d, { key: g }, [
|
|
2020
2033
|
I("path", {
|
|
2021
2034
|
d: `M${n}Z`,
|
|
2022
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
2023
|
-
}, null, 8,
|
|
2035
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2036
|
+
}, null, 8, Cl),
|
|
2024
2037
|
r.$slots.pattern ? (a(), s("path", {
|
|
2025
2038
|
key: 0,
|
|
2026
2039
|
d: `M${n}Z`,
|
|
2027
2040
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2028
|
-
}, null, 8,
|
|
2041
|
+
}, null, 8, Sl)) : u("", !0)
|
|
2029
2042
|
], 64))), 128))
|
|
2030
|
-
])) :
|
|
2043
|
+
])) : u("", !0),
|
|
2031
2044
|
t.smooth && t.plots.length > 1 && t.curve ? (a(), s("path", {
|
|
2032
2045
|
key: 1,
|
|
2033
2046
|
d: `M${t.curve}`,
|
|
@@ -2036,7 +2049,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2036
2049
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
2037
2050
|
fill: "none",
|
|
2038
2051
|
"stroke-linecap": "round"
|
|
2039
|
-
}, null, 8,
|
|
2052
|
+
}, null, 8, kl)) : t.plots.length > 1 && t.straight ? (a(), s("path", {
|
|
2040
2053
|
key: 2,
|
|
2041
2054
|
d: `M${t.straight}`,
|
|
2042
2055
|
stroke: t.color,
|
|
@@ -2045,19 +2058,19 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2045
2058
|
fill: "none",
|
|
2046
2059
|
"stroke-linecap": "round",
|
|
2047
2060
|
"stroke-linejoin": "round"
|
|
2048
|
-
}, null, 8,
|
|
2049
|
-
(a(!0), s(
|
|
2050
|
-
key: `circle_line_${
|
|
2061
|
+
}, null, 8, wl)) : u("", !0),
|
|
2062
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2063
|
+
key: `circle_line_${o}_${g}`
|
|
2051
2064
|
}, [
|
|
2052
2065
|
!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
2066
|
key: 0,
|
|
2054
2067
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
2055
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
2068
|
+
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
2069
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
2057
2070
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
|
|
2058
2071
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
2059
2072
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
2060
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
2073
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
2061
2074
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
|
|
2062
2075
|
key: 1,
|
|
2063
2076
|
style: { overflow: "visible" },
|
|
@@ -2066,17 +2079,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2066
2079
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
2067
2080
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
2068
2081
|
}, [
|
|
2069
|
-
I("div",
|
|
2082
|
+
I("div", Gl, [
|
|
2070
2083
|
G(r.$slots, "plot-comment", {
|
|
2071
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
2084
|
+
plot: { ...n, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
2072
2085
|
}, void 0, !0)
|
|
2073
2086
|
])
|
|
2074
|
-
], 8,
|
|
2087
|
+
], 8, Ol)) : u("", !0)
|
|
2075
2088
|
], 64))), 128)),
|
|
2076
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g",
|
|
2089
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (a(), s("g", vl, [
|
|
2077
2090
|
I("defs", null, [
|
|
2078
2091
|
I("marker", {
|
|
2079
|
-
id: `line_arrow_${
|
|
2092
|
+
id: `line_arrow_${o}`,
|
|
2080
2093
|
markerWidth: 7,
|
|
2081
2094
|
markerHeight: 7,
|
|
2082
2095
|
refX: "0",
|
|
@@ -2086,8 +2099,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2086
2099
|
I("polygon", {
|
|
2087
2100
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2088
2101
|
fill: t.color
|
|
2089
|
-
}, null, 8,
|
|
2090
|
-
], 8,
|
|
2102
|
+
}, null, 8, zl)
|
|
2103
|
+
], 8, pl)
|
|
2091
2104
|
]),
|
|
2092
2105
|
t.plots.length > 1 ? (a(), s("line", {
|
|
2093
2106
|
key: 0,
|
|
@@ -2098,8 +2111,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2098
2111
|
"stroke-width": 1,
|
|
2099
2112
|
stroke: t.color,
|
|
2100
2113
|
"stroke-dasharray": 2,
|
|
2101
|
-
"marker-end": `url(#line_arrow_${
|
|
2102
|
-
}, null, 8,
|
|
2114
|
+
"marker-end": `url(#line_arrow_${o})`
|
|
2115
|
+
}, null, 8, Ml)) : u("", !0),
|
|
2103
2116
|
t.plots.length > 1 ? (a(), s("text", {
|
|
2104
2117
|
key: 1,
|
|
2105
2118
|
"text-anchor": "middle",
|
|
@@ -2111,15 +2124,15 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2111
2124
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
2112
2125
|
s: "%",
|
|
2113
2126
|
r: 2
|
|
2114
|
-
})), 9,
|
|
2115
|
-
])) :
|
|
2127
|
+
})), 9, Tl)) : u("", !0)
|
|
2128
|
+
])) : u("", !0)
|
|
2116
2129
|
], 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_${
|
|
2130
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (a(), s("g", Pl, [
|
|
2131
|
+
(a(!0), s(d, null, x(e.barSet, (t, o) => (a(), s(d, {
|
|
2132
|
+
key: `xLabel_bar_${o}`
|
|
2120
2133
|
}, [
|
|
2121
|
-
(a(!0), s(
|
|
2122
|
-
key: `xLabel_bar_${
|
|
2134
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2135
|
+
key: `xLabel_bar_${o}_${g}`
|
|
2123
2136
|
}, [
|
|
2124
2137
|
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
2138
|
key: 0,
|
|
@@ -2142,7 +2155,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2142
2155
|
datapoint: n,
|
|
2143
2156
|
serie: t
|
|
2144
2157
|
}
|
|
2145
|
-
) : ""), 13,
|
|
2158
|
+
) : ""), 13, Vl)) : u("", !0),
|
|
2146
2159
|
n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
|
|
2147
2160
|
key: 1,
|
|
2148
2161
|
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
@@ -2152,16 +2165,16 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2152
2165
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2153
2166
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2154
2167
|
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,
|
|
2168
|
+
}, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) : u("", !0)
|
|
2156
2169
|
], 64))), 128))
|
|
2157
2170
|
], 64))), 128))
|
|
2158
|
-
])) :
|
|
2159
|
-
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g",
|
|
2160
|
-
(a(!0), s(
|
|
2161
|
-
key: `xLabel_plot_${
|
|
2171
|
+
])) : u("", !0),
|
|
2172
|
+
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Hl, [
|
|
2173
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2174
|
+
key: `xLabel_plot_${o}`
|
|
2162
2175
|
}, [
|
|
2163
|
-
(a(!0), s(
|
|
2164
|
-
key: `xLabel_plot_${
|
|
2176
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2177
|
+
key: `xLabel_plot_${o}_${g}`
|
|
2165
2178
|
}, [
|
|
2166
2179
|
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (a(), s("text", {
|
|
2167
2180
|
key: 0,
|
|
@@ -2184,17 +2197,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2184
2197
|
datapoint: n,
|
|
2185
2198
|
serie: t
|
|
2186
2199
|
}
|
|
2187
|
-
) : ""), 13,
|
|
2200
|
+
) : ""), 13, Dl)) : u("", !0)
|
|
2188
2201
|
], 64))), 128))
|
|
2189
2202
|
], 64))), 128))
|
|
2190
|
-
])) : (a(), s("g",
|
|
2191
|
-
(a(!0), s(
|
|
2192
|
-
key: `xLabel_plot_${
|
|
2203
|
+
])) : (a(), s("g", Bl, [
|
|
2204
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2205
|
+
key: `xLabel_plot_${o}`
|
|
2193
2206
|
}, [
|
|
2194
|
-
(a(!0), s(
|
|
2195
|
-
key: `xLabel_plot_${
|
|
2207
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2208
|
+
key: `xLabel_plot_${o}_${g}`
|
|
2196
2209
|
}, [
|
|
2197
|
-
e.FINAL_CONFIG.plot.tag.followValue ? (a(), s(
|
|
2210
|
+
e.FINAL_CONFIG.plot.tag.followValue ? (a(), s(d, { key: 1 }, [
|
|
2198
2211
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (a(), s("line", {
|
|
2199
2212
|
key: 0,
|
|
2200
2213
|
class: "vue-ui-xy-tag-plot",
|
|
@@ -2206,8 +2219,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2206
2219
|
"stroke-linecap": "round",
|
|
2207
2220
|
"stroke-dasharray": "2",
|
|
2208
2221
|
stroke: t.color
|
|
2209
|
-
}, null, 8,
|
|
2210
|
-
], 64)) : (a(), s(
|
|
2222
|
+
}, null, 8, Xl)) : u("", !0)
|
|
2223
|
+
], 64)) : (a(), s(d, { key: 0 }, [
|
|
2211
2224
|
n && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
|
|
2212
2225
|
key: 0,
|
|
2213
2226
|
x: n.x,
|
|
@@ -2228,8 +2241,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2228
2241
|
serieName: t.name
|
|
2229
2242
|
}
|
|
2230
2243
|
)
|
|
2231
|
-
}, null, 12,
|
|
2232
|
-
], 12,
|
|
2244
|
+
}, null, 12, El)
|
|
2245
|
+
], 12, Wl)) : u("", !0),
|
|
2233
2246
|
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
|
|
2234
2247
|
key: 1,
|
|
2235
2248
|
x: n.x - t.name.length * (l.fontSizes.plotLabels / 2),
|
|
@@ -2250,18 +2263,18 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2250
2263
|
serieName: t.name
|
|
2251
2264
|
}
|
|
2252
2265
|
)
|
|
2253
|
-
}, null, 12,
|
|
2254
|
-
], 12,
|
|
2266
|
+
}, null, 12, ql)
|
|
2267
|
+
], 12, Yl)) : u("", !0)
|
|
2255
2268
|
], 64))
|
|
2256
2269
|
], 64))), 128))
|
|
2257
2270
|
], 64))), 128))
|
|
2258
2271
|
])),
|
|
2259
|
-
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g",
|
|
2260
|
-
(a(!0), s(
|
|
2261
|
-
key: `xLabel_line_${
|
|
2272
|
+
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (a(), s("g", Ul, [
|
|
2273
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2274
|
+
key: `xLabel_line_${o}`
|
|
2262
2275
|
}, [
|
|
2263
|
-
(a(!0), s(
|
|
2264
|
-
key: `xLabel_line_${
|
|
2276
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2277
|
+
key: `xLabel_line_${o}_${g}`
|
|
2265
2278
|
}, [
|
|
2266
2279
|
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (a(), s("text", {
|
|
2267
2280
|
key: 0,
|
|
@@ -2284,17 +2297,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2284
2297
|
datapoint: n,
|
|
2285
2298
|
serie: t
|
|
2286
2299
|
}
|
|
2287
|
-
) : ""), 13,
|
|
2300
|
+
) : ""), 13, Zl)) : u("", !0)
|
|
2288
2301
|
], 64))), 128))
|
|
2289
2302
|
], 64))), 128))
|
|
2290
|
-
])) : (a(), s("g",
|
|
2291
|
-
(a(!0), s(
|
|
2292
|
-
key: `xLabel_line_${
|
|
2303
|
+
])) : (a(), s("g", Jl, [
|
|
2304
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2305
|
+
key: `xLabel_line_${o}`
|
|
2293
2306
|
}, [
|
|
2294
|
-
(a(!0), s(
|
|
2295
|
-
key: `xLabel_line_${
|
|
2307
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2308
|
+
key: `xLabel_line_${o}_${g}`
|
|
2296
2309
|
}, [
|
|
2297
|
-
e.FINAL_CONFIG.line.tag.followValue ? (a(), s(
|
|
2310
|
+
e.FINAL_CONFIG.line.tag.followValue ? (a(), s(d, { key: 1 }, [
|
|
2298
2311
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (a(), s("line", {
|
|
2299
2312
|
key: 0,
|
|
2300
2313
|
class: "vue-ui-xy-tag-line",
|
|
@@ -2306,8 +2319,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2306
2319
|
"stroke-linecap": "round",
|
|
2307
2320
|
"stroke-dasharray": "2",
|
|
2308
2321
|
stroke: t.color
|
|
2309
|
-
}, null, 8,
|
|
2310
|
-
], 64)) : (a(), s(
|
|
2322
|
+
}, null, 8, er)) : u("", !0)
|
|
2323
|
+
], 64)) : (a(), s(d, { key: 0 }, [
|
|
2311
2324
|
n && g === 0 && t.useTag && t.useTag === "start" ? (a(), s("foreignObject", {
|
|
2312
2325
|
key: 0,
|
|
2313
2326
|
x: n.x,
|
|
@@ -2328,8 +2341,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2328
2341
|
serieName: t.name
|
|
2329
2342
|
}
|
|
2330
2343
|
)
|
|
2331
|
-
}, null, 12,
|
|
2332
|
-
], 12,
|
|
2344
|
+
}, null, 12, Ql)
|
|
2345
|
+
], 12, Kl)) : u("", !0),
|
|
2333
2346
|
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (a(), s("foreignObject", {
|
|
2334
2347
|
key: 1,
|
|
2335
2348
|
x: n.x,
|
|
@@ -2350,17 +2363,17 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2350
2363
|
serieName: t.name
|
|
2351
2364
|
}
|
|
2352
2365
|
)
|
|
2353
|
-
}, null, 12,
|
|
2354
|
-
], 12,
|
|
2366
|
+
}, null, 12, $l)
|
|
2367
|
+
], 12, jl)) : u("", !0)
|
|
2355
2368
|
], 64))
|
|
2356
2369
|
], 64))), 128))
|
|
2357
2370
|
], 64))), 128))
|
|
2358
2371
|
])),
|
|
2359
|
-
(a(!0), s(
|
|
2360
|
-
key: `xLabel_line_${
|
|
2372
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2373
|
+
key: `xLabel_line_${o}`
|
|
2361
2374
|
}, [
|
|
2362
|
-
(a(!0), s(
|
|
2363
|
-
key: `xLabel_line_${
|
|
2375
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2376
|
+
key: `xLabel_line_${o}_${g}`
|
|
2364
2377
|
}, [
|
|
2365
2378
|
n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (a(), s("text", {
|
|
2366
2379
|
key: 0,
|
|
@@ -2378,7 +2391,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2378
2391
|
maxWords: 2
|
|
2379
2392
|
}),
|
|
2380
2393
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2381
|
-
}, null, 12,
|
|
2394
|
+
}, null, 12, tr)) : u("", !0),
|
|
2382
2395
|
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
|
|
2383
2396
|
key: 1,
|
|
2384
2397
|
x: n.x + l.fontSizes.plotLabels,
|
|
@@ -2395,14 +2408,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2395
2408
|
maxWords: 2
|
|
2396
2409
|
}),
|
|
2397
2410
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2398
|
-
}, null, 12,
|
|
2411
|
+
}, null, 12, lr)) : u("", !0)
|
|
2399
2412
|
], 64))), 128))
|
|
2400
2413
|
], 64))), 128)),
|
|
2401
|
-
(a(!0), s(
|
|
2402
|
-
key: `xLabel_plot_${
|
|
2414
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2415
|
+
key: `xLabel_plot_${o}`
|
|
2403
2416
|
}, [
|
|
2404
|
-
(a(!0), s(
|
|
2405
|
-
key: `xLabel_plot_${
|
|
2417
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2418
|
+
key: `xLabel_plot_${o}_${g}`
|
|
2406
2419
|
}, [
|
|
2407
2420
|
n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (a(), s("text", {
|
|
2408
2421
|
key: 0,
|
|
@@ -2420,7 +2433,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2420
2433
|
maxWords: 2
|
|
2421
2434
|
}),
|
|
2422
2435
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2423
|
-
}, null, 12,
|
|
2436
|
+
}, null, 12, rr)) : u("", !0),
|
|
2424
2437
|
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (a(), s("text", {
|
|
2425
2438
|
key: 1,
|
|
2426
2439
|
x: n.x + l.fontSizes.plotLabels,
|
|
@@ -2437,13 +2450,13 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2437
2450
|
maxWords: 2
|
|
2438
2451
|
}),
|
|
2439
2452
|
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2440
|
-
}, null, 12,
|
|
2453
|
+
}, null, 12, ir)) : u("", !0)
|
|
2441
2454
|
], 64))), 128))
|
|
2442
2455
|
], 64))), 128)),
|
|
2443
|
-
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), s(
|
|
2456
|
+
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (a(), s(d, { key: 11 }, [
|
|
2444
2457
|
I("defs", null, [
|
|
2445
|
-
(a(!0), s(
|
|
2446
|
-
id: `individual_scale_gradient_${l.uniqueId}_${
|
|
2458
|
+
(a(!0), s(d, null, x(e.allScales, (t, o) => (a(), s("linearGradient", {
|
|
2459
|
+
id: `individual_scale_gradient_${l.uniqueId}_${o}`,
|
|
2447
2460
|
x1: "0%",
|
|
2448
2461
|
x2: "100%",
|
|
2449
2462
|
y1: "0%",
|
|
@@ -2453,24 +2466,24 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2453
2466
|
offset: "0%",
|
|
2454
2467
|
"stop-color": e.FINAL_CONFIG.chart.backgroundColor,
|
|
2455
2468
|
"stop-opacity": "0"
|
|
2456
|
-
}, null, 8,
|
|
2469
|
+
}, null, 8, sr),
|
|
2457
2470
|
I("stop", {
|
|
2458
2471
|
offset: "100%",
|
|
2459
2472
|
"stop-color": t.color,
|
|
2460
2473
|
"stop-opacity": "0.2"
|
|
2461
|
-
}, null, 8,
|
|
2462
|
-
], 8,
|
|
2474
|
+
}, null, 8, nr)
|
|
2475
|
+
], 8, ar))), 256))
|
|
2463
2476
|
]),
|
|
2464
|
-
(a(!0), s(
|
|
2477
|
+
(a(!0), s(d, null, x(e.allScales, (t, o) => (a(), s("rect", {
|
|
2465
2478
|
x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2466
2479
|
y: e.drawingArea.top,
|
|
2467
2480
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2468
2481
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2469
|
-
fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${
|
|
2482
|
+
fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${o})` : "transparent",
|
|
2470
2483
|
onMouseenter: (n) => l.selectedScale = t.groupId,
|
|
2471
|
-
onMouseleave:
|
|
2472
|
-
}, null, 40,
|
|
2473
|
-
], 64)) :
|
|
2484
|
+
onMouseleave: c[0] || (c[0] = (n) => l.selectedScale = null)
|
|
2485
|
+
}, null, 40, cr))), 256))
|
|
2486
|
+
], 64)) : u("", !0),
|
|
2474
2487
|
I("g", null, [
|
|
2475
2488
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (a(), s("text", {
|
|
2476
2489
|
key: 0,
|
|
@@ -2479,7 +2492,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2479
2492
|
transform: `translate(${l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2480
2493
|
"text-anchor": "middle",
|
|
2481
2494
|
style: { transition: "none" }
|
|
2482
|
-
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2495
|
+
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, or)) : u("", !0),
|
|
2483
2496
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
|
|
2484
2497
|
key: 1,
|
|
2485
2498
|
"text-anchor": "middle",
|
|
@@ -2487,33 +2500,33 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2487
2500
|
y: e.drawingArea.bottom + l.fontSizes.yAxis + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2488
2501
|
"font-size": l.fontSizes.yAxis,
|
|
2489
2502
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2490
|
-
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2503
|
+
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hr)) : u("", !0)
|
|
2491
2504
|
]),
|
|
2492
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g",
|
|
2493
|
-
r.$slots["time-label"] ? (a(!0), s(
|
|
2494
|
-
key: `time_label_${
|
|
2505
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", ur, [
|
|
2506
|
+
r.$slots["time-label"] ? (a(!0), s(d, { key: 0 }, x(e.timeLabels, (t, o) => G(r.$slots, "time-label", se({
|
|
2507
|
+
key: `time_label_${o}`,
|
|
2495
2508
|
ref_for: !0
|
|
2496
2509
|
}, {
|
|
2497
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2510
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2,
|
|
2498
2511
|
y: e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2499
2512
|
fontSize: l.fontSizes.xAxis,
|
|
2500
2513
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2501
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2514
|
+
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
2515
|
absoluteIndex: t.absoluteIndex,
|
|
2503
2516
|
content: t.text,
|
|
2504
2517
|
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_${
|
|
2518
|
+
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
|
|
2519
|
+
}), void 0, !0)), 128)) : (a(!0), s(d, { key: 1 }, x(e.timeLabels, (t, o) => (a(), s("g", {
|
|
2520
|
+
key: `time_label_${o}`
|
|
2508
2521
|
}, [
|
|
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 && (
|
|
2522
|
+
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
2523
|
String(t.text).includes(`
|
|
2511
2524
|
`) ? (a(), s("text", {
|
|
2512
2525
|
key: 1,
|
|
2513
2526
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2514
2527
|
"font-size": l.fontSizes.xAxis,
|
|
2515
2528
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2516
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2529
|
+
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
2530
|
style: _({
|
|
2518
2531
|
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2519
2532
|
}),
|
|
@@ -2524,23 +2537,23 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2524
2537
|
x: 0,
|
|
2525
2538
|
y: 0
|
|
2526
2539
|
}),
|
|
2527
|
-
onClick: () => e.selectTimeLabel(t,
|
|
2528
|
-
}, null, 12,
|
|
2540
|
+
onClick: () => e.selectTimeLabel(t, o)
|
|
2541
|
+
}, null, 12, gr)) : (a(), s("text", {
|
|
2529
2542
|
key: 0,
|
|
2530
2543
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2531
2544
|
"font-size": l.fontSizes.xAxis,
|
|
2532
2545
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2533
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2546
|
+
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
2547
|
style: _({
|
|
2535
2548
|
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2536
2549
|
}),
|
|
2537
|
-
onClick: () => e.selectTimeLabel(t,
|
|
2538
|
-
}, V(t.text || ""), 13,
|
|
2539
|
-
], 64)) :
|
|
2550
|
+
onClick: () => e.selectTimeLabel(t, o)
|
|
2551
|
+
}, V(t.text || ""), 13, dr))
|
|
2552
|
+
], 64)) : u("", !0)
|
|
2540
2553
|
]))), 128))
|
|
2541
|
-
])) :
|
|
2542
|
-
e.annotationsY.length && !l.mutableConfig.isStacked ? (a(), s("g",
|
|
2543
|
-
(a(!0), s(
|
|
2554
|
+
])) : u("", !0),
|
|
2555
|
+
e.annotationsY.length && !l.mutableConfig.isStacked ? (a(), s("g", fr, [
|
|
2556
|
+
(a(!0), s(d, null, x(e.annotationsY, (t) => (a(), s("g", {
|
|
2544
2557
|
key: t.uid
|
|
2545
2558
|
}, [
|
|
2546
2559
|
t.yTop && t.show && isFinite(t.yTop) ? (a(), s("line", {
|
|
@@ -2554,7 +2567,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2554
2567
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2555
2568
|
"stroke-linecap": "round",
|
|
2556
2569
|
style: { animation: "none !important" }
|
|
2557
|
-
}, null, 8,
|
|
2570
|
+
}, null, 8, Ir)) : u("", !0),
|
|
2558
2571
|
t.yBottom && t.show && isFinite(t.yBottom) ? (a(), s("line", {
|
|
2559
2572
|
key: 1,
|
|
2560
2573
|
x1: t.x1,
|
|
@@ -2566,7 +2579,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2566
2579
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2567
2580
|
"stroke-linecap": "round",
|
|
2568
2581
|
style: { animation: "none !important" }
|
|
2569
|
-
}, null, 8,
|
|
2582
|
+
}, null, 8, xr)) : u("", !0),
|
|
2570
2583
|
t.hasArea && t.show && isFinite(t.yTop) && isFinite(t.yBottom) ? (a(), s("rect", {
|
|
2571
2584
|
key: 2,
|
|
2572
2585
|
y: Math.min(t.yTop, t.yBottom),
|
|
@@ -2575,11 +2588,11 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2575
2588
|
height: e.checkNaN(t.areaHeight, 0),
|
|
2576
2589
|
fill: e.setOpacity(t.config.area.fill, t.config.area.opacity),
|
|
2577
2590
|
style: { animation: "none !important" }
|
|
2578
|
-
}, null, 8,
|
|
2591
|
+
}, null, 8, Nr)) : u("", !0),
|
|
2579
2592
|
t.config.label.text && t.show && isFinite(t._box.y) ? (a(), s("rect", se({
|
|
2580
2593
|
key: 3,
|
|
2581
2594
|
class: "vue-ui-xy-annotation-label-box"
|
|
2582
|
-
}, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) :
|
|
2595
|
+
}, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : u("", !0),
|
|
2583
2596
|
t.config.label.text && t.show && isFinite(t._text.y) ? (a(), s("text", {
|
|
2584
2597
|
key: 4,
|
|
2585
2598
|
id: t.id,
|
|
@@ -2589,23 +2602,23 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2589
2602
|
"font-size": t.config.label.fontSize,
|
|
2590
2603
|
fill: t.config.label.color,
|
|
2591
2604
|
"text-anchor": t.config.label.textAnchor
|
|
2592
|
-
}, V(t.config.label.text), 9,
|
|
2605
|
+
}, V(t.config.label.text), 9, mr)) : u("", !0)
|
|
2593
2606
|
]))), 128))
|
|
2594
|
-
])) :
|
|
2607
|
+
])) : u("", !0),
|
|
2595
2608
|
I("g", null, [
|
|
2596
|
-
(a(!0), s(
|
|
2597
|
-
key: `tooltip_trap_${
|
|
2598
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2609
|
+
(a(!0), s(d, null, x(e.maxSeries, (t, o) => (a(), s("rect", {
|
|
2610
|
+
key: `tooltip_trap_${o}`,
|
|
2611
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
2599
2612
|
y: e.drawingArea.top,
|
|
2600
2613
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2601
2614
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2602
2615
|
fill: "transparent",
|
|
2603
|
-
onMouseenter: (n) => e.toggleTooltipVisibility(!0,
|
|
2604
|
-
onMouseleave:
|
|
2605
|
-
onClick: (n) => e.selectX(
|
|
2606
|
-
}, null, 40,
|
|
2616
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, o),
|
|
2617
|
+
onMouseleave: c[1] || (c[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2618
|
+
onClick: (n) => e.selectX(o)
|
|
2619
|
+
}, null, 40, br))), 128))
|
|
2607
2620
|
]),
|
|
2608
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g",
|
|
2621
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (a(), s("g", Fr, [
|
|
2609
2622
|
(a(), s("foreignObject", {
|
|
2610
2623
|
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
2624
|
y: e.drawingArea.bottom,
|
|
@@ -2617,30 +2630,30 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2617
2630
|
class: "vue-ui-xy-time-tag",
|
|
2618
2631
|
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
2632
|
}, 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,
|
|
2633
|
+
], 8, _r)),
|
|
2621
2634
|
I("circle", {
|
|
2622
2635
|
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
2636
|
cy: e.drawingArea.bottom,
|
|
2624
2637
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2625
2638
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2626
|
-
}, null, 8,
|
|
2627
|
-
])) :
|
|
2628
|
-
])) :
|
|
2639
|
+
}, null, 8, Ar)
|
|
2640
|
+
])) : u("", !0)
|
|
2641
|
+
])) : u("", !0),
|
|
2629
2642
|
G(r.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2630
|
-
], 14,
|
|
2631
|
-
r.$slots.watermark ? (a(), s("div",
|
|
2643
|
+
], 14, gt)) : u("", !0),
|
|
2644
|
+
r.$slots.watermark ? (a(), s("div", yr, [
|
|
2632
2645
|
G(r.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
|
|
2633
|
-
])) :
|
|
2634
|
-
(a(!0), s(
|
|
2635
|
-
key: `tag_line_${
|
|
2646
|
+
])) : u("", !0),
|
|
2647
|
+
(a(!0), s(d, null, x(e.lineSet, (t, o) => (a(), s(d, {
|
|
2648
|
+
key: `tag_line_${o}`
|
|
2636
2649
|
}, [
|
|
2637
|
-
(a(!0), s(
|
|
2638
|
-
key: `tag_line_${
|
|
2650
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2651
|
+
key: `tag_line_${o}_${g}`
|
|
2639
2652
|
}, [
|
|
2640
2653
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
|
|
2641
2654
|
key: 0,
|
|
2642
2655
|
ref_for: !0,
|
|
2643
|
-
ref: (p) => e.setTagRef(
|
|
2656
|
+
ref: (p) => e.setTagRef(o, g, p, "right", "line"),
|
|
2644
2657
|
class: "vue-ui-xy-tag",
|
|
2645
2658
|
"data-tag": "right",
|
|
2646
2659
|
style: _({
|
|
@@ -2649,14 +2662,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2649
2662
|
svgElement: l.svgRef,
|
|
2650
2663
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2651
2664
|
y: n.y,
|
|
2652
|
-
element: l.tagRefs[`${
|
|
2665
|
+
element: l.tagRefs[`${o}_${g}_right_line`],
|
|
2653
2666
|
position: "right"
|
|
2654
2667
|
}).top + "px",
|
|
2655
2668
|
left: e.placeXYTag({
|
|
2656
2669
|
svgElement: l.svgRef,
|
|
2657
2670
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2658
2671
|
y: n.y,
|
|
2659
|
-
element: l.tagRefs[`${
|
|
2672
|
+
element: l.tagRefs[`${o}_${g}_right_line`],
|
|
2660
2673
|
position: "right"
|
|
2661
2674
|
}).left + "px",
|
|
2662
2675
|
height: "fit-content",
|
|
@@ -2668,12 +2681,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2668
2681
|
opacity: 1
|
|
2669
2682
|
})
|
|
2670
2683
|
}, [
|
|
2671
|
-
(a(), s("svg",
|
|
2684
|
+
(a(), s("svg", Lr, [
|
|
2672
2685
|
I("path", {
|
|
2673
2686
|
d: "M 0,10 10,0 10,20 Z",
|
|
2674
2687
|
fill: t.color,
|
|
2675
2688
|
stroke: "none"
|
|
2676
|
-
}, null, 8,
|
|
2689
|
+
}, null, 8, Cr)
|
|
2677
2690
|
])),
|
|
2678
2691
|
I("div", {
|
|
2679
2692
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2687,12 +2700,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2687
2700
|
serieName: t.name
|
|
2688
2701
|
}
|
|
2689
2702
|
)
|
|
2690
|
-
}, null, 8,
|
|
2691
|
-
], 4)) :
|
|
2703
|
+
}, null, 8, Sr)
|
|
2704
|
+
], 4)) : u("", !0),
|
|
2692
2705
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), s("div", {
|
|
2693
2706
|
key: 1,
|
|
2694
2707
|
ref_for: !0,
|
|
2695
|
-
ref: (p) => e.setTagRef(
|
|
2708
|
+
ref: (p) => e.setTagRef(o, g, p, "left", "line"),
|
|
2696
2709
|
class: "vue-ui-xy-tag",
|
|
2697
2710
|
"data-tag": "left",
|
|
2698
2711
|
style: _({
|
|
@@ -2701,14 +2714,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2701
2714
|
svgElement: l.svgRef,
|
|
2702
2715
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2703
2716
|
y: n.y,
|
|
2704
|
-
element: l.tagRefs[`${
|
|
2717
|
+
element: l.tagRefs[`${o}_${g}_left_line`],
|
|
2705
2718
|
position: "left"
|
|
2706
2719
|
}).top + "px",
|
|
2707
2720
|
left: e.placeXYTag({
|
|
2708
2721
|
svgElement: l.svgRef,
|
|
2709
2722
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2710
2723
|
y: n.y,
|
|
2711
|
-
element: l.tagRefs[`${
|
|
2724
|
+
element: l.tagRefs[`${o}_${g}_left_line`],
|
|
2712
2725
|
position: "left"
|
|
2713
2726
|
}).left + "px",
|
|
2714
2727
|
height: "fit-content",
|
|
@@ -2720,12 +2733,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2720
2733
|
opacity: 1
|
|
2721
2734
|
})
|
|
2722
2735
|
}, [
|
|
2723
|
-
(a(), s("svg",
|
|
2736
|
+
(a(), s("svg", kr, [
|
|
2724
2737
|
I("path", {
|
|
2725
2738
|
d: "M 0,0 10,10 0,20 Z",
|
|
2726
2739
|
fill: t.color,
|
|
2727
2740
|
stroke: "none"
|
|
2728
|
-
}, null, 8,
|
|
2741
|
+
}, null, 8, wr)
|
|
2729
2742
|
])),
|
|
2730
2743
|
I("div", {
|
|
2731
2744
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2739,20 +2752,20 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2739
2752
|
serieName: t.name
|
|
2740
2753
|
}
|
|
2741
2754
|
)
|
|
2742
|
-
}, null, 8,
|
|
2743
|
-
], 4)) :
|
|
2755
|
+
}, null, 8, Or)
|
|
2756
|
+
], 4)) : u("", !0)
|
|
2744
2757
|
], 64))), 128))
|
|
2745
2758
|
], 64))), 128)),
|
|
2746
|
-
(a(!0), s(
|
|
2747
|
-
key: `tag_plot_${
|
|
2759
|
+
(a(!0), s(d, null, x(e.plotSet, (t, o) => (a(), s(d, {
|
|
2760
|
+
key: `tag_plot_${o}`
|
|
2748
2761
|
}, [
|
|
2749
|
-
(a(!0), s(
|
|
2750
|
-
key: `tag_plot_${
|
|
2762
|
+
(a(!0), s(d, null, x(t.plots, (n, g) => (a(), s(d, {
|
|
2763
|
+
key: `tag_plot_${o}_${g}`
|
|
2751
2764
|
}, [
|
|
2752
2765
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
|
|
2753
2766
|
key: 0,
|
|
2754
2767
|
ref_for: !0,
|
|
2755
|
-
ref: (p) => e.setTagRef(
|
|
2768
|
+
ref: (p) => e.setTagRef(o, g, p, "right", "plot"),
|
|
2756
2769
|
class: "vue-ui-xy-tag",
|
|
2757
2770
|
"data-tag": "right",
|
|
2758
2771
|
style: _({
|
|
@@ -2761,14 +2774,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2761
2774
|
svgElement: l.svgRef,
|
|
2762
2775
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2763
2776
|
y: n.y,
|
|
2764
|
-
element: l.tagRefs[`${
|
|
2777
|
+
element: l.tagRefs[`${o}_${g}_right_plot`],
|
|
2765
2778
|
position: "right"
|
|
2766
2779
|
}).top + "px",
|
|
2767
2780
|
left: e.placeXYTag({
|
|
2768
2781
|
svgElement: l.svgRef,
|
|
2769
2782
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2770
2783
|
y: n.y,
|
|
2771
|
-
element: l.tagRefs[`${
|
|
2784
|
+
element: l.tagRefs[`${o}_${g}_right_plot`],
|
|
2772
2785
|
position: "right"
|
|
2773
2786
|
}).left + "px",
|
|
2774
2787
|
height: "fit-content",
|
|
@@ -2780,12 +2793,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2780
2793
|
opacity: 1
|
|
2781
2794
|
})
|
|
2782
2795
|
}, [
|
|
2783
|
-
(a(), s("svg",
|
|
2796
|
+
(a(), s("svg", Gr, [
|
|
2784
2797
|
I("path", {
|
|
2785
2798
|
d: "M 0,10 10,0 10,20 Z",
|
|
2786
2799
|
fill: t.color,
|
|
2787
2800
|
stroke: "none"
|
|
2788
|
-
}, null, 8,
|
|
2801
|
+
}, null, 8, vr)
|
|
2789
2802
|
])),
|
|
2790
2803
|
I("div", {
|
|
2791
2804
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2799,12 +2812,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2799
2812
|
serieName: t.name
|
|
2800
2813
|
}
|
|
2801
2814
|
)
|
|
2802
|
-
}, null, 8,
|
|
2803
|
-
], 4)) :
|
|
2815
|
+
}, null, 8, pr)
|
|
2816
|
+
], 4)) : u("", !0),
|
|
2804
2817
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), s("div", {
|
|
2805
2818
|
key: 1,
|
|
2806
2819
|
ref_for: !0,
|
|
2807
|
-
ref: (p) => e.setTagRef(
|
|
2820
|
+
ref: (p) => e.setTagRef(o, g, p, "left", "plot"),
|
|
2808
2821
|
class: "vue-ui-xy-tag",
|
|
2809
2822
|
"data-tag": "left",
|
|
2810
2823
|
style: _({
|
|
@@ -2813,14 +2826,14 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2813
2826
|
svgElement: l.svgRef,
|
|
2814
2827
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2815
2828
|
y: n.y,
|
|
2816
|
-
element: l.tagRefs[`${
|
|
2829
|
+
element: l.tagRefs[`${o}_${g}_left_plot`],
|
|
2817
2830
|
position: "left"
|
|
2818
2831
|
}).top + "px",
|
|
2819
2832
|
left: e.placeXYTag({
|
|
2820
2833
|
svgElement: l.svgRef,
|
|
2821
2834
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2822
2835
|
y: n.y,
|
|
2823
|
-
element: l.tagRefs[`${
|
|
2836
|
+
element: l.tagRefs[`${o}_${g}_left_plot`],
|
|
2824
2837
|
position: "left"
|
|
2825
2838
|
}).left + "px",
|
|
2826
2839
|
height: "fit-content",
|
|
@@ -2832,12 +2845,12 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2832
2845
|
opacity: 1
|
|
2833
2846
|
})
|
|
2834
2847
|
}, [
|
|
2835
|
-
(a(), s("svg",
|
|
2848
|
+
(a(), s("svg", zr, [
|
|
2836
2849
|
I("path", {
|
|
2837
2850
|
d: "M 0,0 10,10 0,20 Z",
|
|
2838
2851
|
fill: t.color,
|
|
2839
2852
|
stroke: "none"
|
|
2840
|
-
}, null, 8,
|
|
2853
|
+
}, null, 8, Mr)
|
|
2841
2854
|
])),
|
|
2842
2855
|
I("div", {
|
|
2843
2856
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2851,11 +2864,11 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2851
2864
|
serieName: t.name
|
|
2852
2865
|
}
|
|
2853
2866
|
)
|
|
2854
|
-
}, null, 8,
|
|
2855
|
-
], 4)) :
|
|
2867
|
+
}, null, 8, Tr)
|
|
2868
|
+
], 4)) : u("", !0)
|
|
2856
2869
|
], 64))), 128))
|
|
2857
2870
|
], 64))), 128)),
|
|
2858
|
-
e.isDataset ?
|
|
2871
|
+
e.isDataset ? u("", !0) : (a(), U(F, {
|
|
2859
2872
|
key: 6,
|
|
2860
2873
|
config: {
|
|
2861
2874
|
type: "line",
|
|
@@ -2899,11 +2912,11 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2899
2912
|
valueStart: l.slicer.start,
|
|
2900
2913
|
valueEnd: l.slicer.end,
|
|
2901
2914
|
start: l.slicer.start,
|
|
2902
|
-
"onUpdate:start":
|
|
2915
|
+
"onUpdate:start": c[2] || (c[2] = (t) => l.slicer.start = t),
|
|
2903
2916
|
end: l.slicer.end,
|
|
2904
|
-
"onUpdate:end":
|
|
2917
|
+
"onUpdate:end": c[3] || (c[3] = (t) => l.slicer.end = t),
|
|
2905
2918
|
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(...
|
|
2919
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...h.dataset.map((t) => e.largestTriangleThreeBucketsArray({ data: t.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2907
2920
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2908
2921
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2909
2922
|
onReset: e.refreshSlicer,
|
|
@@ -2913,19 +2926,19 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2913
2926
|
G(r.$slots, "reset-action", $(ee({ reset: t })), void 0, !0)
|
|
2914
2927
|
]),
|
|
2915
2928
|
_: 3
|
|
2916
|
-
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) :
|
|
2929
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : u("", !0),
|
|
2917
2930
|
e.FINAL_CONFIG.chart.legend.show ? (a(), s("div", {
|
|
2918
2931
|
key: 8,
|
|
2919
2932
|
ref: "chartLegend",
|
|
2920
2933
|
class: "vue-ui-xy-legend",
|
|
2921
2934
|
style: _(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2922
2935
|
}, [
|
|
2923
|
-
(a(!0), s(
|
|
2924
|
-
key: `div_legend_item_${
|
|
2936
|
+
(a(!0), s(d, null, x(e.absoluteDataset, (t, o) => (a(), s("div", {
|
|
2937
|
+
key: `div_legend_item_${o}`,
|
|
2925
2938
|
onClick: (n) => e.segregate(t),
|
|
2926
2939
|
class: j({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(t.id) })
|
|
2927
2940
|
}, [
|
|
2928
|
-
l.icons[t.type] === "line" ? (a(), s("svg",
|
|
2941
|
+
l.icons[t.type] === "line" ? (a(), s("svg", Vr, [
|
|
2929
2942
|
I("rect", {
|
|
2930
2943
|
x: "0",
|
|
2931
2944
|
y: "7.5",
|
|
@@ -2935,7 +2948,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2935
2948
|
height: "3",
|
|
2936
2949
|
width: "20",
|
|
2937
2950
|
fill: t.color
|
|
2938
|
-
}, null, 8,
|
|
2951
|
+
}, null, 8, Rr),
|
|
2939
2952
|
le(N, {
|
|
2940
2953
|
plot: { x: 10, y: 9 },
|
|
2941
2954
|
radius: 4,
|
|
@@ -2944,7 +2957,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2944
2957
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2945
2958
|
strokeWidth: 0.5
|
|
2946
2959
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2947
|
-
])) : l.icons[t.type] === "bar" ? (a(), s("svg",
|
|
2960
|
+
])) : l.icons[t.type] === "bar" ? (a(), s("svg", Hr, [
|
|
2948
2961
|
l.icons[t.type] === "bar" && r.$slots.pattern ? (a(), s("rect", {
|
|
2949
2962
|
key: 0,
|
|
2950
2963
|
x: "0",
|
|
@@ -2954,7 +2967,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2954
2967
|
width: "40",
|
|
2955
2968
|
stroke: "none",
|
|
2956
2969
|
fill: t.color
|
|
2957
|
-
}, null, 8,
|
|
2970
|
+
}, null, 8, Dr)) : u("", !0),
|
|
2958
2971
|
l.icons[t.type] === "bar" ? (a(), s("rect", {
|
|
2959
2972
|
key: 1,
|
|
2960
2973
|
x: "0",
|
|
@@ -2964,8 +2977,8 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2964
2977
|
width: "40",
|
|
2965
2978
|
stroke: "none",
|
|
2966
2979
|
fill: r.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
|
|
2967
|
-
}, null, 8,
|
|
2968
|
-
])) : (a(), s("svg",
|
|
2980
|
+
}, null, 8, Br)) : u("", !0)
|
|
2981
|
+
])) : (a(), s("svg", Wr, [
|
|
2969
2982
|
le(N, {
|
|
2970
2983
|
plot: { x: 6, y: 6 },
|
|
2971
2984
|
radius: 5,
|
|
@@ -2976,13 +2989,13 @@ function Xr(r, o, d, f, l, e) {
|
|
|
2976
2989
|
I("span", {
|
|
2977
2990
|
style: _(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2978
2991
|
}, V(t.name), 5)
|
|
2979
|
-
], 10,
|
|
2980
|
-
], 4)) : (a(), s("div",
|
|
2992
|
+
], 10, Pr))), 128))
|
|
2993
|
+
], 4)) : (a(), s("div", Er, [
|
|
2981
2994
|
G(r.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2982
2995
|
], 512)),
|
|
2983
|
-
r.$slots.source ? (a(), s("div",
|
|
2996
|
+
r.$slots.source ? (a(), s("div", Yr, [
|
|
2984
2997
|
G(r.$slots, "source", {}, void 0, !0)
|
|
2985
|
-
], 512)) :
|
|
2998
|
+
], 512)) : u("", !0),
|
|
2986
2999
|
le(m, {
|
|
2987
3000
|
show: l.mutableConfig.showTooltip && l.isTooltip,
|
|
2988
3001
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
@@ -3027,15 +3040,15 @@ function Xr(r, o, d, f, l, e) {
|
|
|
3027
3040
|
I("div", {
|
|
3028
3041
|
style: _(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
3029
3042
|
}, [
|
|
3030
|
-
I("div",
|
|
3043
|
+
I("div", qr, [
|
|
3031
3044
|
tt(I("input", {
|
|
3032
3045
|
type: "checkbox",
|
|
3033
|
-
"onUpdate:modelValue":
|
|
3046
|
+
"onUpdate:modelValue": c[4] || (c[4] = (t) => l.showSparklineTable = t)
|
|
3034
3047
|
}, null, 512), [
|
|
3035
3048
|
[lt, l.showSparklineTable]
|
|
3036
3049
|
]),
|
|
3037
3050
|
I("div", {
|
|
3038
|
-
onClick:
|
|
3051
|
+
onClick: c[5] || (c[5] = (t) => l.showSparklineTable = !l.showSparklineTable),
|
|
3039
3052
|
style: { cursor: "pointer" }
|
|
3040
3053
|
}, [
|
|
3041
3054
|
le(L, {
|
|
@@ -3056,10 +3069,10 @@ function Xr(r, o, d, f, l, e) {
|
|
|
3056
3069
|
body: e.dataTable.body,
|
|
3057
3070
|
config: e.dataTable.config,
|
|
3058
3071
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
3059
|
-
onClose:
|
|
3072
|
+
onClose: c[6] || (c[6] = (t) => l.mutableConfig.showTable = !1)
|
|
3060
3073
|
}, {
|
|
3061
3074
|
th: B(({ th: t }) => [
|
|
3062
|
-
I("div", { innerHTML: t }, null, 8,
|
|
3075
|
+
I("div", { innerHTML: t }, null, 8, Xr)
|
|
3063
3076
|
]),
|
|
3064
3077
|
td: B(({ td: t }) => [
|
|
3065
3078
|
rt(V(isNaN(Number(t)) ? t : e.dataLabel({
|
|
@@ -3074,10 +3087,10 @@ function Xr(r, o, d, f, l, e) {
|
|
|
3074
3087
|
], 4)
|
|
3075
3088
|
]),
|
|
3076
3089
|
_: 1
|
|
3077
|
-
}, 8, ["config"])) :
|
|
3078
|
-
], 46,
|
|
3090
|
+
}, 8, ["config"])) : u("", !0)
|
|
3091
|
+
], 46, ut);
|
|
3079
3092
|
}
|
|
3080
|
-
const
|
|
3093
|
+
const ii = /* @__PURE__ */ ct(ht, [["render", Ur], ["__scopeId", "data-v-887f093d"]]);
|
|
3081
3094
|
export {
|
|
3082
|
-
|
|
3095
|
+
ii as default
|
|
3083
3096
|
};
|