vue-data-ui 2.13.3 → 2.13.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BE9mfJkL.js → Arrow-nJWOreP4.js} +1 -1
- package/dist/{BaseDraggableDialog-B9pXvCsc.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
- package/dist/{BaseIcon-5s68maMg.js → BaseIcon-lwpKi6Wa.js} +1 -1
- package/dist/{ColorPicker-BGBMbOup.js → ColorPicker-D8TZj-R5.js} +2 -2
- package/dist/{DataTable-C8F2aovs.js → DataTable-CuFlXUxm.js} +2 -2
- package/dist/{Legend-CoAmfx-7.js → Legend-DwNuhYnG.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DqqOehOr.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
- package/dist/{PackageVersion-BP504Bvs.js → PackageVersion-1psmmuzo.js} +2 -2
- package/dist/{PenAndPaper-CXfm6LDW.js → PenAndPaper-DgUkj01g.js} +3 -3
- package/dist/{Shape-CbwWTjj8.js → Shape-CmlBrd-F.js} +1 -1
- package/dist/Slicer-B-5jXhhw.js +577 -0
- package/dist/{SparkTooltip-HSZVAB1L.js → SparkTooltip-BGjRXPbu.js} +1 -1
- package/dist/{Title-VtPtUhFq.js → Title-BoKeR6i0.js} +1 -1
- package/dist/{Tooltip-Buu8aWuU.js → Tooltip-Df2iF7bv.js} +1 -1
- package/dist/{UserOptions-7VcV_QUc.js → UserOptions-NrArsCuC.js} +2 -2
- package/dist/{dom-to-png-BjOvlJis.js → dom-to-png-DK9TIQio.js} +1 -1
- package/dist/{img-ClKzlGeA.js → img-CqqmkwDl.js} +1 -1
- package/dist/{index-edeP1M3x.js → index-C137VZkI.js} +675 -656
- package/dist/{pdf-2Tyxymwm.js → pdf-DTB7aasS.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useNestedProp-RNi-Fxfm.js → useNestedProp-ZNu8JrRX.js} +1 -1
- package/dist/{usePrinter-B3nKJKAm.js → usePrinter-B63T3abI.js} +2 -2
- package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
- package/dist/{vue-data-ui-BfYXPWao.js → vue-data-ui-CBTXw5iV.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-4eGejORW.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
- package/dist/{vue-ui-accordion-C4DquMtU.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Dvrd6Gun.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
- package/dist/{vue-ui-annotator-Db5OBDjC.js → vue-ui-annotator-BokgyAXW.js} +2 -2
- package/dist/{vue-ui-bullet-BlT3571K.js → vue-ui-bullet-D5TWFElT.js} +6 -6
- package/dist/{vue-ui-candlestick-0aDroQCS.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
- package/dist/{vue-ui-carousel-table-Dav_41vI.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
- package/dist/{vue-ui-chestnut-CosLSi7b.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
- package/dist/{vue-ui-chord-BxHp31c3.js → vue-ui-chord-Drxbeh2P.js} +7 -7
- package/dist/{vue-ui-circle-pack-BVbRVfDq.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
- package/dist/{vue-ui-cursor-ByPGYWlO.js → vue-ui-cursor-DaT20eFb.js} +2 -2
- package/dist/{vue-ui-dashboard-cC6brbws.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
- package/dist/{vue-ui-digits-Bb-6Adj7.js → vue-ui-digits-D6kq38s9.js} +2 -2
- package/dist/{vue-ui-donut-B3WltwRF.js → vue-ui-donut-_kVdFrZR.js} +7 -7
- package/dist/{vue-ui-donut-evolution-21zgSmm1.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
- package/dist/{vue-ui-dumbbell-BRRWW41S.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
- package/dist/{vue-ui-flow-1nJK3SOO.js → vue-ui-flow-DTx267Ka.js} +6 -6
- package/dist/{vue-ui-funnel-Bo78n4pQ.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
- package/dist/{vue-ui-galaxy-DViqZ_WR.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
- package/dist/{vue-ui-gauge-B_8skcc5.js → vue-ui-gauge-CAKj45DE.js} +5 -5
- package/dist/{vue-ui-gizmo-B06tu-EV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
- package/dist/{vue-ui-heatmap-9cZQCsYz.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
- package/dist/{vue-ui-history-plot-q9GGP9lk.js → vue-ui-history-plot-DfduurUS.js} +103 -103
- package/dist/{vue-ui-kpi-D6hwxL-7.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
- package/dist/{vue-ui-mini-loader-5K1b5iwf.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
- package/dist/{vue-ui-molecule-CZJZM3v3.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
- package/dist/{vue-ui-mood-radar-B4ysiT_U.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
- package/dist/{vue-ui-nested-donuts-Bp4pT3D5.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
- package/dist/{vue-ui-onion-BnCFgrkZ.js → vue-ui-onion-BV3A2JCN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B_BhXrKI.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
- package/dist/{vue-ui-quadrant-GclnmYO6.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
- package/dist/{vue-ui-quick-chart-CFaBCkfP.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
- package/dist/{vue-ui-radar-BA45g7F0.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
- package/dist/{vue-ui-rating-hTWz-pBq.js → vue-ui-rating-FuSmmUE8.js} +2 -2
- package/dist/{vue-ui-relation-circle-CkOaN_CX.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
- package/dist/{vue-ui-ridgeline-B2BIUDB-.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
- package/dist/{vue-ui-rings-CSO7Zd_g.js → vue-ui-rings-DMx8sMKa.js} +7 -7
- package/dist/{vue-ui-scatter-17gG4jRb.js → vue-ui-scatter-DX42tHz8.js} +7 -7
- package/dist/{vue-ui-skeleton-EoGn9JbB.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
- package/dist/{vue-ui-smiley-C_HkNW2f.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
- package/dist/{vue-ui-spark-trend-AXaOXuBl.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWZCWNKx.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BZVcBexd.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BrCxiefW.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
- package/dist/{vue-ui-sparkline-CFwBsRfj.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-bwY9BxUo.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
- package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
- package/dist/{vue-ui-strip-plot-C02lCys6.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
- package/dist/{vue-ui-table-C04CtiEi.js → vue-ui-table-Cfb6eIU4.js} +3 -3
- package/dist/{vue-ui-table-heatmap-IERP9tp0.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CgXchDEY.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
- package/dist/{vue-ui-thermometer-lf9mJ8LP.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
- package/dist/{vue-ui-timer-BZLtxymy.js → vue-ui-timer-By6_kV9k.js} +8 -8
- package/dist/{vue-ui-tiremarks-Cu1TXwev.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
- package/dist/{vue-ui-treemap-BVyxf-77.js → vue-ui-treemap-DivJblJW.js} +7 -7
- package/dist/{vue-ui-vertical-bar-C_euYHER.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
- package/dist/{vue-ui-waffle-BW6LSfBe.js → vue-ui-waffle-DSzMjANd.js} +7 -7
- package/dist/{vue-ui-wheel-DoARpgpJ.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
- package/dist/{vue-ui-word-cloud-BVmpg5X_.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
- package/dist/{vue-ui-world-DzbMOJbm.js → vue-ui-world-BhGGmeGq.js} +5 -5
- package/dist/{vue-ui-xy-DD5417b2.js → vue-ui-xy-CZpcKEkV.js} +680 -668
- package/dist/{vue-ui-xy-canvas-9m7qMGHS.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
- package/package.json +1 -1
- package/dist/Slicer-BNnP0Y2C.js +0 -537
- package/dist/vue-ui-stackbar-Bgc7lS0v.js +0 -1132
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ae, ac as ie, ad as se, c as
|
|
1
|
+
import { Q as H, Z, a7 as te, a8 as j, a9 as le, aa as re, ab as ae, ac as ie, ad as se, c as J, A as ne, F as ce, w as oe, s as he, o as ue, a1 as de, ae as ge, x as fe, C as Ie, y as Ne, a6 as xe, e as me, r as be, f as $, af as Fe, T as _e, U as ye, q as Ae, b as Le, z as Ce, d as Se, ag as ke, v as we, ah as Oe, D as Ge, a4 as ve, ai as pe, i as ze, G as Me, K as Te, u as Pe, p as Ve, B as Re, a as He, t as De } from "./index-C137VZkI.js";
|
|
2
2
|
import { u as We } from "./useMouse-AicQS8Vf.js";
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import Ue from "./
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
9
|
-
|
|
3
|
+
import { u as K } from "./useNestedProp-ZNu8JrRX.js";
|
|
4
|
+
import { u as Be } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
|
+
import { defineAsyncComponent as B, resolveComponent as R, createElementBlock as i, openBlock as a, normalizeStyle as y, normalizeClass as E, createBlock as W, createCommentVNode as h, createVNode as U, createSlots as Ee, withCtx as V, renderSlot as p, normalizeProps as Y, guardReactiveProps as q, createElementVNode as f, Fragment as d, renderList as I, toDisplayString as T, mergeProps as Q, withDirectives as Ye, vModelCheckbox as qe, createTextVNode as Xe } from "vue";
|
|
6
|
+
import { S as Ue } from "./Slicer-B-5jXhhw.js";
|
|
7
|
+
import Ze from "./Title-BoKeR6i0.js";
|
|
8
|
+
import { _ as Ke } from "./Shape-CmlBrd-F.js";
|
|
9
|
+
import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const Je = J(), je = {
|
|
10
11
|
name: "vue-ui-xy",
|
|
11
12
|
props: {
|
|
12
13
|
config: {
|
|
@@ -23,20 +24,20 @@ const Ke = Q(), Qe = {
|
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
26
|
components: {
|
|
26
|
-
Slicer:
|
|
27
|
+
Slicer: Ue,
|
|
27
28
|
// Must be ready in responsive mode
|
|
28
|
-
Title:
|
|
29
|
+
Title: Ze,
|
|
29
30
|
// Must be ready in responsive mode
|
|
30
|
-
Shape:
|
|
31
|
-
DataTable: B(() => import("./DataTable-
|
|
32
|
-
Tooltip: B(() => import("./Tooltip-
|
|
33
|
-
UserOptions: B(() => import("./UserOptions-
|
|
34
|
-
BaseIcon: B(() => import("./BaseIcon-
|
|
35
|
-
TableSparkline: B(() => import("./vue-ui-table-sparkline-
|
|
36
|
-
Skeleton: B(() => import("./vue-ui-skeleton-
|
|
37
|
-
Accordion: B(() => import("./vue-ui-accordion-
|
|
38
|
-
PackageVersion: B(() => import("./PackageVersion-
|
|
39
|
-
PenAndPaper: B(() => import("./PenAndPaper-
|
|
31
|
+
Shape: Ke,
|
|
32
|
+
DataTable: B(() => import("./DataTable-CuFlXUxm.js")),
|
|
33
|
+
Tooltip: B(() => import("./Tooltip-Df2iF7bv.js")),
|
|
34
|
+
UserOptions: B(() => import("./UserOptions-NrArsCuC.js")),
|
|
35
|
+
BaseIcon: B(() => import("./BaseIcon-lwpKi6Wa.js")),
|
|
36
|
+
TableSparkline: B(() => import("./vue-ui-table-sparkline-MJ8lvKbd.js")),
|
|
37
|
+
Skeleton: B(() => import("./vue-ui-skeleton-CO_Hk6A_.js")),
|
|
38
|
+
Accordion: B(() => import("./vue-ui-accordion-BI2rBS5z.js")),
|
|
39
|
+
PackageVersion: B(() => import("./PackageVersion-1psmmuzo.js")),
|
|
40
|
+
PenAndPaper: B(() => import("./PenAndPaper-DgUkj01g.js"))
|
|
40
41
|
},
|
|
41
42
|
data() {
|
|
42
43
|
this.dataset.forEach((g, r) => {
|
|
@@ -47,9 +48,9 @@ const Ke = Q(), Qe = {
|
|
|
47
48
|
index: r
|
|
48
49
|
});
|
|
49
50
|
});
|
|
50
|
-
const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500,
|
|
51
|
+
const t = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, c = Math.max(...this.dataset.map((g) => this.largestTriangleThreeBucketsArray({ data: g.series, threshold: t }).length)), u = {
|
|
51
52
|
start: 0,
|
|
52
|
-
end:
|
|
53
|
+
end: c
|
|
53
54
|
};
|
|
54
55
|
return {
|
|
55
56
|
resizeObserver: null,
|
|
@@ -96,16 +97,16 @@ const Ke = Q(), Qe = {
|
|
|
96
97
|
selectedSerieIndex: null,
|
|
97
98
|
selectedRowIndex: null,
|
|
98
99
|
segregatedSeries: [],
|
|
99
|
-
uniqueId:
|
|
100
|
+
uniqueId: J(),
|
|
100
101
|
step: 0,
|
|
101
102
|
tableStep: 0,
|
|
102
103
|
titleStep: 0,
|
|
103
|
-
slicer:
|
|
104
|
+
slicer: u,
|
|
104
105
|
__to__: null,
|
|
105
|
-
maxX:
|
|
106
|
+
maxX: c,
|
|
106
107
|
showSparklineTable: !0,
|
|
107
108
|
segregateStep: 0,
|
|
108
|
-
sliderId:
|
|
109
|
+
sliderId: Je,
|
|
109
110
|
fontSizes: {
|
|
110
111
|
xAxis: 18,
|
|
111
112
|
yAxis: 12,
|
|
@@ -127,9 +128,9 @@ const Ke = Q(), Qe = {
|
|
|
127
128
|
},
|
|
128
129
|
watch: {
|
|
129
130
|
dataset: {
|
|
130
|
-
handler(t,
|
|
131
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
132
|
-
data:
|
|
131
|
+
handler(t, c) {
|
|
132
|
+
this.maxX = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({
|
|
133
|
+
data: u.series,
|
|
133
134
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
134
135
|
}).length)), this.slicer = {
|
|
135
136
|
start: 0,
|
|
@@ -139,7 +140,7 @@ const Ke = Q(), Qe = {
|
|
|
139
140
|
deep: !0
|
|
140
141
|
},
|
|
141
142
|
config: {
|
|
142
|
-
handler(t,
|
|
143
|
+
handler(t, c) {
|
|
143
144
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
|
|
144
145
|
dataLabels: {
|
|
145
146
|
show: !0
|
|
@@ -154,9 +155,12 @@ const Ke = Q(), Qe = {
|
|
|
154
155
|
}
|
|
155
156
|
},
|
|
156
157
|
computed: {
|
|
158
|
+
locale() {
|
|
159
|
+
return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.formatter.locale;
|
|
160
|
+
},
|
|
157
161
|
chartAriaLabel() {
|
|
158
|
-
const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization",
|
|
159
|
-
return `${t}. ${
|
|
162
|
+
const t = this.FINAL_CONFIG.chart.title.text || "Chart visualization", c = this.FINAL_CONFIG.chart.title.subtitle.text || "";
|
|
163
|
+
return `${t}. ${c}`;
|
|
160
164
|
},
|
|
161
165
|
optimize() {
|
|
162
166
|
return {
|
|
@@ -168,11 +172,11 @@ const Ke = Q(), Qe = {
|
|
|
168
172
|
},
|
|
169
173
|
minimap() {
|
|
170
174
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
171
|
-
const t = this.datasetWithIds.filter((r) => !this.segregatedSeries.includes(r.id)),
|
|
172
|
-
for (let r = 0; r <
|
|
173
|
-
|
|
174
|
-
const g = Math.min(...
|
|
175
|
-
return
|
|
175
|
+
const t = this.datasetWithIds.filter((r) => !this.segregatedSeries.includes(r.id)), c = Math.max(...t.map((r) => r.series.length)), u = [];
|
|
176
|
+
for (let r = 0; r < c; r += 1)
|
|
177
|
+
u.push(t.map((e) => e.series[r] || 0).reduce((e, b) => (e || 0) + (b || 0), 0));
|
|
178
|
+
const g = Math.min(...u);
|
|
179
|
+
return u.map((r) => r + (g < 0 ? Math.abs(g) : 0));
|
|
176
180
|
},
|
|
177
181
|
customPalette() {
|
|
178
182
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -196,7 +200,7 @@ const Ke = Q(), Qe = {
|
|
|
196
200
|
yOffset: e.yOffset || 0,
|
|
197
201
|
individualHeight: e.individualHeight || this.drawingArea.height,
|
|
198
202
|
autoScaleYLabels: e.autoScaleYLabels
|
|
199
|
-
})),
|
|
203
|
+
})), c = this.barSet.map((e) => ({
|
|
200
204
|
name: e.name,
|
|
201
205
|
color: e.color,
|
|
202
206
|
scale: e.individualScale,
|
|
@@ -207,7 +211,7 @@ const Ke = Q(), Qe = {
|
|
|
207
211
|
id: e.id,
|
|
208
212
|
yOffset: e.yOffset || 0,
|
|
209
213
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
210
|
-
})),
|
|
214
|
+
})), u = this.plotSet.map((e) => ({
|
|
211
215
|
name: e.name,
|
|
212
216
|
color: e.color,
|
|
213
217
|
scale: e.individualScale,
|
|
@@ -219,7 +223,7 @@ const Ke = Q(), Qe = {
|
|
|
219
223
|
id: e.id,
|
|
220
224
|
yOffset: e.yOffset || 0,
|
|
221
225
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
222
|
-
})), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...
|
|
226
|
+
})), g = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...t, ...c, ...u], r = g.flatMap((e) => e).length;
|
|
223
227
|
return g.flatMap((e, b) => ({
|
|
224
228
|
unique: e.unique,
|
|
225
229
|
id: e.id,
|
|
@@ -257,9 +261,9 @@ const Ke = Q(), Qe = {
|
|
|
257
261
|
},
|
|
258
262
|
highlightAreas() {
|
|
259
263
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
260
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
261
|
-
...
|
|
262
|
-
span:
|
|
264
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((c) => ({
|
|
265
|
+
...c,
|
|
266
|
+
span: c.from === c.to ? 1 : c.to < c.from ? 0 : c.to - c.from + 1
|
|
263
267
|
}));
|
|
264
268
|
const t = this.FINAL_CONFIG.chart.highlightArea;
|
|
265
269
|
return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
|
|
@@ -274,46 +278,46 @@ const Ke = Q(), Qe = {
|
|
|
274
278
|
return this.niceScale.max + this.relativeZero;
|
|
275
279
|
},
|
|
276
280
|
datasetWithIds() {
|
|
277
|
-
return this.useSafeValues ? this.dataset.map((t,
|
|
281
|
+
return this.useSafeValues ? this.dataset.map((t, c) => ({
|
|
278
282
|
...t,
|
|
279
283
|
series: this.largestTriangleThreeBucketsArray({
|
|
280
284
|
data: t.series,
|
|
281
285
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
282
286
|
}),
|
|
283
|
-
id: `uniqueId_${
|
|
287
|
+
id: `uniqueId_${c}`
|
|
284
288
|
})) : this.dataset;
|
|
285
289
|
},
|
|
286
290
|
safeDataset() {
|
|
287
|
-
return this.useSafeValues ? this.dataset.map((t,
|
|
288
|
-
const
|
|
291
|
+
return this.useSafeValues ? this.dataset.map((t, c) => {
|
|
292
|
+
const u = this.largestTriangleThreeBucketsArray({
|
|
289
293
|
data: t.series,
|
|
290
294
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
291
|
-
}), g = `uniqueId_${
|
|
295
|
+
}), g = `uniqueId_${c}`;
|
|
292
296
|
return {
|
|
293
297
|
...t,
|
|
294
|
-
slotAbsoluteIndex:
|
|
295
|
-
series:
|
|
296
|
-
color: this.convertColorToHex(t.color ? t.color : this.customPalette[
|
|
298
|
+
slotAbsoluteIndex: c,
|
|
299
|
+
series: u.map((r) => this.isSafeValue(r) ? r : null).slice(this.slicer.start, this.slicer.end),
|
|
300
|
+
color: this.convertColorToHex(t.color ? t.color : this.customPalette[c] ? this.customPalette[c] : this.palette[c]),
|
|
297
301
|
id: g,
|
|
298
302
|
scaleLabel: t.scaleLabel || g
|
|
299
303
|
};
|
|
300
304
|
}) : this.dataset;
|
|
301
305
|
},
|
|
302
306
|
relativeDataset() {
|
|
303
|
-
return this.safeDataset.map((t,
|
|
307
|
+
return this.safeDataset.map((t, c) => ({
|
|
304
308
|
...t,
|
|
305
|
-
series: t.series.map((
|
|
309
|
+
series: t.series.map((u) => u + this.relativeZero),
|
|
306
310
|
absoluteValues: t.series
|
|
307
311
|
})).filter((t) => !this.segregatedSeries.includes(t.id));
|
|
308
312
|
},
|
|
309
313
|
tableSparklineDataset() {
|
|
310
314
|
return this.relativeDataset.map((t) => {
|
|
311
|
-
const
|
|
315
|
+
const c = t.absoluteValues.map((u) => [void 0, null].includes(u) ? 0 : u);
|
|
312
316
|
return {
|
|
313
317
|
id: t.id,
|
|
314
318
|
name: t.name,
|
|
315
319
|
color: t.color,
|
|
316
|
-
values: this.fillArray(this.maxSeries,
|
|
320
|
+
values: this.fillArray(this.maxSeries, c)
|
|
317
321
|
};
|
|
318
322
|
});
|
|
319
323
|
},
|
|
@@ -327,7 +331,7 @@ const Ke = Q(), Qe = {
|
|
|
327
331
|
fontFamily: this.FINAL_CONFIG.chart.fontFamily,
|
|
328
332
|
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
329
333
|
suffix: this.FINAL_CONFIG.chart.labels.suffix,
|
|
330
|
-
colNames:
|
|
334
|
+
colNames: this.timeLabels.map((t) => t.text),
|
|
331
335
|
thead: {
|
|
332
336
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
333
337
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -344,10 +348,10 @@ const Ke = Q(), Qe = {
|
|
|
344
348
|
};
|
|
345
349
|
},
|
|
346
350
|
absoluteDataset() {
|
|
347
|
-
return this.safeDataset.map((t,
|
|
348
|
-
absoluteIndex:
|
|
351
|
+
return this.safeDataset.map((t, c) => ({
|
|
352
|
+
absoluteIndex: c,
|
|
349
353
|
...t,
|
|
350
|
-
series: t.series.map((
|
|
354
|
+
series: t.series.map((u) => u + this.relativeZero),
|
|
351
355
|
absoluteValues: t.series,
|
|
352
356
|
segregate: () => this.segregate(t),
|
|
353
357
|
isSegregated: this.segregatedSeries.includes(t.id)
|
|
@@ -360,69 +364,69 @@ const Ke = Q(), Qe = {
|
|
|
360
364
|
return this.assignStackRatios(this.absoluteDataset.filter((t) => !this.segregatedSeries.includes(t.id)));
|
|
361
365
|
},
|
|
362
366
|
scaleGroups() {
|
|
363
|
-
const t = Object.groupBy(this.activeSeriesWithStackRatios, (
|
|
364
|
-
for (const [
|
|
367
|
+
const t = Object.groupBy(this.activeSeriesWithStackRatios, (u) => u.scaleLabel), c = {};
|
|
368
|
+
for (const [u, g] of Object.entries(t)) {
|
|
365
369
|
const r = g.flatMap((e) => e.absoluteValues);
|
|
366
|
-
|
|
370
|
+
c[u] = {
|
|
367
371
|
min: Math.min(...r) || 0,
|
|
368
372
|
max: Math.max(...r) || 1,
|
|
369
373
|
groupId: `scale_group_${this.createUid()}`
|
|
370
374
|
};
|
|
371
375
|
}
|
|
372
|
-
return
|
|
376
|
+
return c;
|
|
373
377
|
},
|
|
374
378
|
barSet() {
|
|
375
|
-
return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t,
|
|
379
|
+
return this.activeSeriesWithStackRatios.filter((t) => t.type === "bar").map((t, c) => {
|
|
376
380
|
this.checkAutoScaleError(t);
|
|
377
|
-
const
|
|
378
|
-
t.absoluteValues.filter((
|
|
381
|
+
const u = this.scaleGroups[t.scaleLabel].min, g = this.scaleGroups[t.scaleLabel].max;
|
|
382
|
+
t.absoluteValues.filter((A) => ![null, void 0].includes(A)).map((A) => (A - u) / (g - u));
|
|
379
383
|
const r = {
|
|
380
|
-
valueMin:
|
|
384
|
+
valueMin: u,
|
|
381
385
|
valueMax: g < 0 ? 0 : g
|
|
382
386
|
}, e = {
|
|
383
387
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
384
|
-
min: t.scaleMin || Math.min(...t.absoluteValues.filter((
|
|
385
|
-
}, b = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(e.min, e.max === e.min ? e.max * m : e.max, b) : this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * m : e.max, b), S = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * m : r.valueMax, b) : this.calculateNiceScaleWithExactExtremes(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * m : r.valueMax, b), k = x.min >= 0 ? 0 : Math.abs(x.min), w = 0, G = x.max + k, N = S.max + Math.abs(w), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, O = this.drawingArea.bottom - F - C * k / G,
|
|
386
|
-
const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[
|
|
388
|
+
min: t.scaleMin || Math.min(...t.absoluteValues.filter((A) => ![void 0, null].includes(A))) > 0 ? 0 : Math.min(...t.absoluteValues.filter((A) => ![null, void 0].includes(A)))
|
|
389
|
+
}, b = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(e.min, e.max === e.min ? e.max * m : e.max, b) : this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * m : e.max, b), S = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * m : r.valueMax, b) : this.calculateNiceScaleWithExactExtremes(r.valueMin, r.valueMax === r.valueMin ? r.valueMax * m : r.valueMax, b), k = x.min >= 0 ? 0 : Math.abs(x.min), w = 0, G = x.max + k, N = S.max + Math.abs(w), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, O = this.drawingArea.bottom - F - C * k / G, z = this.drawingArea.bottom - F - C * w / N, l = this.absoluteDataset.filter((A) => A.type === "bar").filter((A) => !this.segregatedSeries.includes(A.id)).length, n = t.series.map((A, M) => {
|
|
390
|
+
const X = this.mutableConfig.useIndividualScale ? (t.absoluteValues[M] + k) / G : this.ratioToMax(A), D = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left + this.slot.bar * c + this.slot.bar * M * l - this.barSlot / 2 - c * this.barPeriodGap;
|
|
387
391
|
return {
|
|
388
392
|
yOffset: this.checkNaN(F),
|
|
389
393
|
individualHeight: this.checkNaN(C),
|
|
390
394
|
x: this.checkNaN(D),
|
|
391
395
|
y: this.drawingArea.bottom - F - C * X,
|
|
392
|
-
value: t.absoluteValues[
|
|
396
|
+
value: t.absoluteValues[M],
|
|
393
397
|
zeroPosition: this.checkNaN(O),
|
|
394
398
|
individualMax: this.checkNaN(G),
|
|
395
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
399
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
396
400
|
};
|
|
397
|
-
}), s = t.absoluteValues.map((
|
|
398
|
-
const X = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries *
|
|
401
|
+
}), s = t.absoluteValues.map((A) => S.min >= 0 ? (A - Math.abs(S.min)) / (S.max - Math.abs(S.min)) : (A + Math.abs(S.min)) / (S.max + Math.abs(S.min))), o = t.series.map((A, M) => {
|
|
402
|
+
const X = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * c + this.slot.bar * M * this.absoluteDataset.filter((D) => D.type === "bar").filter((D) => !this.segregatedSeries.includes(D.id)).length;
|
|
399
403
|
return {
|
|
400
404
|
yOffset: this.checkNaN(F),
|
|
401
405
|
individualHeight: this.checkNaN(C),
|
|
402
406
|
x: this.checkNaN(X),
|
|
403
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * s[
|
|
404
|
-
value: t.absoluteValues[
|
|
407
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * s[M] || 0)),
|
|
408
|
+
value: t.absoluteValues[M],
|
|
405
409
|
zeroPosition: this.checkNaN(O),
|
|
406
410
|
individualMax: this.checkNaN(G),
|
|
407
|
-
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[
|
|
411
|
+
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
|
|
408
412
|
};
|
|
409
|
-
}), L = x.ticks.map((
|
|
410
|
-
y:
|
|
411
|
-
value:
|
|
413
|
+
}), L = x.ticks.map((A) => ({
|
|
414
|
+
y: A >= 0 ? O - C * (A / G) : O + C * Math.abs(A) / G,
|
|
415
|
+
value: A,
|
|
412
416
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
413
417
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
414
418
|
datapoint: t
|
|
415
|
-
})), v = S.ticks.map((
|
|
416
|
-
const
|
|
419
|
+
})), v = S.ticks.map((A) => {
|
|
420
|
+
const M = (A - S.min) / (S.max - S.min);
|
|
417
421
|
return {
|
|
418
|
-
y:
|
|
419
|
-
value:
|
|
422
|
+
y: A >= 0 ? z - C * M : z + C * M,
|
|
423
|
+
value: A,
|
|
420
424
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
421
425
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
422
426
|
datapoint: t
|
|
423
427
|
};
|
|
424
428
|
});
|
|
425
|
-
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? v : L, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ?
|
|
429
|
+
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? v : L, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? z : O, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? N : G, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = F, this.scaleGroups[t.scaleLabel].individualHeight = C, this.scaleGroups[t.scaleLabel].autoScaleYLabels = v, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((A) => A.scaleLabel === t.scaleLabel).length === 1, {
|
|
426
430
|
...t,
|
|
427
431
|
yOffset: F,
|
|
428
432
|
autoScaleYLabels: v,
|
|
@@ -430,8 +434,8 @@ const Ke = Q(), Qe = {
|
|
|
430
434
|
scaleYLabels: t.autoScaling ? v : L,
|
|
431
435
|
individualScale: t.autoScaling ? S : x,
|
|
432
436
|
individualMax: t.autoScaling ? N : G,
|
|
433
|
-
zeroPosition: t.autoScaling ?
|
|
434
|
-
plots: t.autoScaling ?
|
|
437
|
+
zeroPosition: t.autoScaling ? z : O,
|
|
438
|
+
plots: t.autoScaling ? o : n,
|
|
435
439
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
436
440
|
};
|
|
437
441
|
});
|
|
@@ -439,15 +443,15 @@ const Ke = Q(), Qe = {
|
|
|
439
443
|
lineSet() {
|
|
440
444
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "line").map((t) => {
|
|
441
445
|
this.checkAutoScaleError(t);
|
|
442
|
-
const
|
|
443
|
-
t.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ -
|
|
446
|
+
const c = this.scaleGroups[t.scaleLabel].min, u = this.scaleGroups[t.scaleLabel].max;
|
|
447
|
+
t.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ - c) / (u - c));
|
|
444
448
|
const g = {
|
|
445
|
-
valueMin:
|
|
446
|
-
valueMax:
|
|
449
|
+
valueMin: c,
|
|
450
|
+
valueMax: u
|
|
447
451
|
}, r = {
|
|
448
452
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
449
453
|
min: t.scaleMin || (Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues))
|
|
450
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, m = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.min, r.max === r.min ? r.max * b : r.max, e) : this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * b : r.max, e), x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e) : this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e), S = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, w = m.max + Math.abs(S), G = x.max + Math.abs(k), N = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - N - F * S / w, O = this.drawingArea.bottom - N - F * k / G,
|
|
454
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, m = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(r.min, r.max === r.min ? r.max * b : r.max, e) : this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * b : r.max, e), x = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e) : this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e), S = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, w = m.max + Math.abs(S), G = x.max + Math.abs(k), N = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - N - F * S / w, O = this.drawingArea.bottom - N - F * k / G, z = t.series.map((_, P) => {
|
|
451
455
|
const ee = this.mutableConfig.useIndividualScale ? (t.absoluteValues[P] + Math.abs(S)) / w : this.ratioToMax(_);
|
|
452
456
|
return {
|
|
453
457
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
@@ -455,7 +459,7 @@ const Ke = Q(), Qe = {
|
|
|
455
459
|
value: t.absoluteValues[P],
|
|
456
460
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
457
461
|
};
|
|
458
|
-
}), l = t.absoluteValues.map((_) => x.min >= 0 ? (_ - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (_ + Math.abs(x.min)) / (x.max + Math.abs(x.min))),
|
|
462
|
+
}), l = t.absoluteValues.map((_) => x.min >= 0 ? (_ - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (_ + Math.abs(x.min)) / (x.max + Math.abs(x.min))), n = t.series.map((_, P) => [void 0, null].includes(t.absoluteValues[P]) ? {
|
|
459
463
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * P),
|
|
460
464
|
y: C,
|
|
461
465
|
value: t.absoluteValues[P],
|
|
@@ -465,13 +469,13 @@ const Ke = Q(), Qe = {
|
|
|
465
469
|
y: this.checkNaN(this.drawingArea.bottom - N - (F * l[P] || 0)),
|
|
466
470
|
value: t.absoluteValues[P],
|
|
467
471
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
468
|
-
}), s = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(
|
|
472
|
+
}), s = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(z) : this.createSmoothPath(z.filter((_) => _.value !== null)), o = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(n) : this.createSmoothPath(n.filter((_) => _.value !== null)), L = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(z) : this.createStraightPath(z.filter((_) => _.value !== null)), v = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(n) : this.createStraightPath(n.filter((_) => _.value !== null)), A = m.ticks.map((_) => ({
|
|
469
473
|
y: _ >= 0 ? C - F * (_ / w) : C + F * Math.abs(_) / w,
|
|
470
474
|
value: _,
|
|
471
475
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
472
476
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
473
477
|
datapoint: t
|
|
474
|
-
})),
|
|
478
|
+
})), M = x.ticks.map((_) => {
|
|
475
479
|
const P = (_ - x.min) / (x.max - x.min);
|
|
476
480
|
return {
|
|
477
481
|
y: _ >= 0 ? O - F * P : O + F * P,
|
|
@@ -481,28 +485,28 @@ const Ke = Q(), Qe = {
|
|
|
481
485
|
datapoint: t
|
|
482
486
|
};
|
|
483
487
|
});
|
|
484
|
-
this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ?
|
|
485
|
-
const X = this.mutableConfig.useIndividualScale ? t.autoScaling ? O : C : this.zero, D = Math.max(Math.max(t.autoScaling ? O :
|
|
488
|
+
this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? M : A, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? O : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? G : w, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = N, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = M, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((_) => _.scaleLabel === t.scaleLabel).length === 1;
|
|
489
|
+
const X = this.mutableConfig.useIndividualScale ? t.autoScaling ? O : C : this.zero, D = Math.max(Math.max(t.autoScaling ? O : A.at(-1).y || 0, this.drawingArea.top), X);
|
|
486
490
|
return {
|
|
487
491
|
...t,
|
|
488
492
|
yOffset: N,
|
|
489
|
-
autoScaleYLabels:
|
|
493
|
+
autoScaleYLabels: M,
|
|
490
494
|
individualHeight: F,
|
|
491
|
-
scaleYLabels: t.autoScaling ?
|
|
495
|
+
scaleYLabels: t.autoScaling ? M : A,
|
|
492
496
|
individualScale: t.autoScaling ? x : m,
|
|
493
497
|
individualMax: t.autoScaling ? G : w,
|
|
494
498
|
zeroPosition: t.autoScaling ? O : C,
|
|
495
|
-
curve: t.autoScaling ?
|
|
496
|
-
plots: t.autoScaling ?
|
|
499
|
+
curve: t.autoScaling ? o : s,
|
|
500
|
+
plots: t.autoScaling ? n : z,
|
|
497
501
|
area: t.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
|
|
498
|
-
t.autoScaling ?
|
|
502
|
+
t.autoScaling ? n : z,
|
|
499
503
|
D
|
|
500
504
|
) : this.createIndividualArea(
|
|
501
|
-
t.autoScaling ?
|
|
505
|
+
t.autoScaling ? n.filter((_) => _.value !== null) : z.filter((_) => _.value !== null),
|
|
502
506
|
D
|
|
503
|
-
) : this.createIndividualArea(
|
|
507
|
+
) : this.createIndividualArea(z.filter((_) => _.value !== null), D) : "",
|
|
504
508
|
curveAreas: t.useArea ? j(
|
|
505
|
-
t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ?
|
|
509
|
+
t.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? n : n.filter((_) => _.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? z : z.filter((_) => _.value !== null),
|
|
506
510
|
D,
|
|
507
511
|
this.FINAL_CONFIG.line.cutNullValues
|
|
508
512
|
) : [],
|
|
@@ -514,23 +518,23 @@ const Ke = Q(), Qe = {
|
|
|
514
518
|
plotSet() {
|
|
515
519
|
return this.activeSeriesWithStackRatios.filter((t) => t.type === "plot").map((t) => {
|
|
516
520
|
this.checkAutoScaleError(t);
|
|
517
|
-
const
|
|
518
|
-
t.absoluteValues.filter((L) => ![null, void 0].includes(L)).map((L) => (L -
|
|
521
|
+
const c = this.scaleGroups[t.scaleLabel].min, u = this.scaleGroups[t.scaleLabel].max;
|
|
522
|
+
t.absoluteValues.filter((L) => ![null, void 0].includes(L)).map((L) => (L - c) / (u - c));
|
|
519
523
|
const g = {
|
|
520
|
-
valueMin:
|
|
521
|
-
valueMax:
|
|
524
|
+
valueMin: c,
|
|
525
|
+
valueMax: u
|
|
522
526
|
}, r = {
|
|
523
527
|
max: t.scaleMax || Math.max(...t.absoluteValues) || 1,
|
|
524
528
|
min: t.scaleMin || Math.min(...t.absoluteValues) > 0 ? 0 : Math.min(...t.absoluteValues)
|
|
525
|
-
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * b : r.max, e), x = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e), S = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, w = m.max + S, G = x.max + Math.abs(k), N = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - N - F * S / w, O = this.drawingArea.bottom - N - F * k / G,
|
|
526
|
-
const
|
|
529
|
+
}, e = t.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(r.min, r.max === r.min ? r.max * b : r.max, e), x = this.calculateNiceScaleWithExactExtremes(g.valueMin, g.valueMax === g.valueMin ? g.valueMax * b : g.valueMax, e), S = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, w = m.max + S, G = x.max + Math.abs(k), N = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - t.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * t.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - N - F * S / w, O = this.drawingArea.bottom - N - F * k / G, z = t.series.map((L, v) => {
|
|
530
|
+
const A = this.mutableConfig.useIndividualScale ? (t.absoluteValues[v] + Math.abs(S)) / w : this.ratioToMax(L);
|
|
527
531
|
return {
|
|
528
532
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * v),
|
|
529
|
-
y: this.checkNaN(this.drawingArea.bottom - N - F *
|
|
533
|
+
y: this.checkNaN(this.drawingArea.bottom - N - F * A),
|
|
530
534
|
value: t.absoluteValues[v],
|
|
531
535
|
comment: t.comments && t.comments.slice(this.slicer.start, this.slicer.end)[v] || ""
|
|
532
536
|
};
|
|
533
|
-
}), l = t.absoluteValues.map((L) => x.min >= 0 ? (L - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (L + Math.abs(x.min)) / (x.max + Math.abs(x.min))),
|
|
537
|
+
}), l = t.absoluteValues.map((L) => x.min >= 0 ? (L - Math.abs(x.min)) / (x.max - Math.abs(x.min)) : (L + Math.abs(x.min)) / (x.max + Math.abs(x.min))), n = t.series.map((L, v) => ({
|
|
534
538
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * v),
|
|
535
539
|
y: this.checkNaN(this.drawingArea.bottom - N - (F * l[v] || 0)),
|
|
536
540
|
value: t.absoluteValues[v],
|
|
@@ -541,7 +545,7 @@ const Ke = Q(), Qe = {
|
|
|
541
545
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
542
546
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
543
547
|
datapoint: t
|
|
544
|
-
})),
|
|
548
|
+
})), o = x.ticks.map((L) => {
|
|
545
549
|
const v = (L - x.min) / (x.max - x.min);
|
|
546
550
|
return {
|
|
547
551
|
y: L >= 0 ? O - F * v : O + F * v,
|
|
@@ -551,16 +555,16 @@ const Ke = Q(), Qe = {
|
|
|
551
555
|
datapoint: t
|
|
552
556
|
};
|
|
553
557
|
});
|
|
554
|
-
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ?
|
|
558
|
+
return this.scaleGroups[t.scaleLabel].name = t.name, this.scaleGroups[t.scaleLabel].groupName = t.scaleLabel, this.scaleGroups[t.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || t.color, this.scaleGroups[t.scaleLabel].color = t.color, this.scaleGroups[t.scaleLabel].scaleYLabels = t.autoScaling ? o : s, this.scaleGroups[t.scaleLabel].zeroPosition = t.autoScaling ? O : C, this.scaleGroups[t.scaleLabel].individualMax = t.autoScaling ? G : w, this.scaleGroups[t.scaleLabel].scaleLabel = t.scaleLabel, this.scaleGroups[t.scaleLabel].id = t.id, this.scaleGroups[t.scaleLabel].yOffset = N, this.scaleGroups[t.scaleLabel].individualHeight = F, this.scaleGroups[t.scaleLabel].autoScaleYLabels = o, this.scaleGroups[t.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((L) => L.scaleLabel === t.scaleLabel).length === 1, {
|
|
555
559
|
...t,
|
|
556
560
|
yOffset: N,
|
|
557
|
-
autoScaleYLabels:
|
|
561
|
+
autoScaleYLabels: o,
|
|
558
562
|
individualHeight: F,
|
|
559
|
-
scaleYLabels: t.autoScaling ?
|
|
563
|
+
scaleYLabels: t.autoScaling ? o : s,
|
|
560
564
|
individualScale: t.autoScaling ? x : m,
|
|
561
565
|
individualMax: t.autoScaling ? G : w,
|
|
562
566
|
zeroPosition: t.autoScaling ? O : C,
|
|
563
|
-
plots: t.autoScaling ?
|
|
567
|
+
plots: t.autoScaling ? n : z,
|
|
564
568
|
groupId: this.scaleGroups[t.scaleLabel].groupId
|
|
565
569
|
};
|
|
566
570
|
});
|
|
@@ -573,14 +577,14 @@ const Ke = Q(), Qe = {
|
|
|
573
577
|
r.add(b);
|
|
574
578
|
}), r.size;
|
|
575
579
|
}
|
|
576
|
-
const
|
|
580
|
+
const c = t(this.absoluteDataset.filter((g) => !this.segregatedSeries.includes(g.id))), u = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? c * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
577
581
|
return {
|
|
578
582
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
579
583
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
580
584
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
581
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
585
|
+
left: this.FINAL_CONFIG.chart.padding.left + u,
|
|
582
586
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
583
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
587
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + u)
|
|
584
588
|
};
|
|
585
589
|
},
|
|
586
590
|
max() {
|
|
@@ -589,7 +593,7 @@ const Ke = Q(), Qe = {
|
|
|
589
593
|
min() {
|
|
590
594
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
591
595
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
592
|
-
const t = Math.min(...this.safeDataset.filter((
|
|
596
|
+
const t = Math.min(...this.safeDataset.filter((c) => !this.segregatedSeries.includes(c.id)).map((c) => Math.min(...c.series)));
|
|
593
597
|
return t > 0 ? 0 : t;
|
|
594
598
|
},
|
|
595
599
|
niceScale() {
|
|
@@ -599,13 +603,14 @@ const Ke = Q(), Qe = {
|
|
|
599
603
|
return this.slicer.end - this.slicer.start;
|
|
600
604
|
},
|
|
601
605
|
timeLabels() {
|
|
602
|
-
const t = Math.max(...this.dataset.map((
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
606
|
+
const t = Math.max(...this.dataset.map((c) => this.largestTriangleThreeBucketsArray({ data: c.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
607
|
+
return Be({
|
|
608
|
+
values: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values,
|
|
609
|
+
maxDatapoints: t,
|
|
610
|
+
formatter: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.formatter,
|
|
611
|
+
start: this.slicer.start,
|
|
612
|
+
end: this.slicer.end
|
|
613
|
+
});
|
|
609
614
|
},
|
|
610
615
|
slot() {
|
|
611
616
|
return {
|
|
@@ -615,7 +620,7 @@ const Ke = Q(), Qe = {
|
|
|
615
620
|
};
|
|
616
621
|
},
|
|
617
622
|
barSlot() {
|
|
618
|
-
const t = this.safeDataset.filter((
|
|
623
|
+
const t = this.safeDataset.filter((c) => c.type === "bar").filter((c) => !this.segregatedSeries.includes(c.id)).length;
|
|
619
624
|
return this.drawingArea.width / this.maxSeries / t - this.barPeriodGap * t;
|
|
620
625
|
},
|
|
621
626
|
barPeriodGap() {
|
|
@@ -626,26 +631,26 @@ const Ke = Q(), Qe = {
|
|
|
626
631
|
},
|
|
627
632
|
table() {
|
|
628
633
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
629
|
-
const t = this.relativeDataset.map((
|
|
630
|
-
label:
|
|
631
|
-
color:
|
|
632
|
-
type:
|
|
633
|
-
})),
|
|
634
|
-
return this.timeLabels.forEach((
|
|
635
|
-
const r = [
|
|
634
|
+
const t = this.relativeDataset.map((u) => ({
|
|
635
|
+
label: u.name,
|
|
636
|
+
color: u.color,
|
|
637
|
+
type: u.type
|
|
638
|
+
})), c = [];
|
|
639
|
+
return this.timeLabels.forEach((u, g) => {
|
|
640
|
+
const r = [u.text];
|
|
636
641
|
this.relativeDataset.forEach((e) => {
|
|
637
642
|
r.push(this.canShowValue(e.absoluteValues[g]) ? Number(e.absoluteValues[g].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
638
|
-
}),
|
|
639
|
-
}), { head: t, body:
|
|
643
|
+
}), c.push(r);
|
|
644
|
+
}), { head: t, body: c };
|
|
640
645
|
},
|
|
641
646
|
dataTable() {
|
|
642
647
|
const t = this.FINAL_CONFIG.table.showSum;
|
|
643
|
-
let
|
|
644
|
-
t && (
|
|
645
|
-
let
|
|
648
|
+
let c = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
649
|
+
t && (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>'));
|
|
650
|
+
let u = [];
|
|
646
651
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
647
652
|
const b = this.relativeDataset.map((m) => m.absoluteValues[e] ?? 0).reduce((m, x) => m + x, 0);
|
|
648
|
-
|
|
653
|
+
u.push(
|
|
649
654
|
[
|
|
650
655
|
this.timeLabels[e].text ?? "-"
|
|
651
656
|
].concat(this.relativeDataset.map(
|
|
@@ -675,7 +680,7 @@ const Ke = Q(), Qe = {
|
|
|
675
680
|
},
|
|
676
681
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
677
682
|
}, r = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
678
|
-
return { head:
|
|
683
|
+
return { head: c, body: u, config: g, colNames: r };
|
|
679
684
|
},
|
|
680
685
|
dataTooltipSlot() {
|
|
681
686
|
return {
|
|
@@ -695,15 +700,15 @@ const Ke = Q(), Qe = {
|
|
|
695
700
|
name: t.name,
|
|
696
701
|
color: t.color,
|
|
697
702
|
type: t.type,
|
|
698
|
-
value: t.absoluteValues.find((
|
|
703
|
+
value: t.absoluteValues.find((c, u) => u === this.selectedSerieIndex),
|
|
699
704
|
comments: t.comments || [],
|
|
700
705
|
prefix: t.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
701
706
|
suffix: t.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
702
707
|
}));
|
|
703
708
|
},
|
|
704
709
|
tooltipContent() {
|
|
705
|
-
let t = "",
|
|
706
|
-
const
|
|
710
|
+
let t = "", c = this.selectedSeries.map((r) => r.value).filter((r) => this.isSafeValue(r) && r !== null).reduce((r, e) => Math.abs(r) + Math.abs(e), 0);
|
|
711
|
+
const u = this.timeLabels[this.selectedSerieIndex], g = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
707
712
|
return this.isFunction(g) && this.functionReturnsString(() => g({
|
|
708
713
|
seriesIndex: this.selectedSerieIndex,
|
|
709
714
|
datapoint: this.selectedSeries,
|
|
@@ -720,7 +725,7 @@ const Ke = Q(), Qe = {
|
|
|
720
725
|
lines: this.lineSet,
|
|
721
726
|
plots: this.plotSet,
|
|
722
727
|
config: this.FINAL_CONFIG
|
|
723
|
-
}) : (
|
|
728
|
+
}) : (u && u.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${u.text}</div>`), this.selectedSeries.forEach((r) => {
|
|
724
729
|
if (this.isSafeValue(r.value)) {
|
|
725
730
|
let e = "", b = "";
|
|
726
731
|
switch (this.icons[r.type]) {
|
|
@@ -771,7 +776,7 @@ const Ke = Q(), Qe = {
|
|
|
771
776
|
}),
|
|
772
777
|
{ datapoint: r }
|
|
773
778
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${$({
|
|
774
|
-
v: this.checkNaN(Math.abs(r.value) /
|
|
779
|
+
v: this.checkNaN(Math.abs(r.value) / c * 100),
|
|
775
780
|
s: "%",
|
|
776
781
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
777
782
|
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && r.comments.length && r.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (t += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
@@ -798,37 +803,37 @@ const Ke = Q(), Qe = {
|
|
|
798
803
|
annotationsY() {
|
|
799
804
|
const t = this.FINAL_CONFIG.chart.annotations;
|
|
800
805
|
if (!Array.isArray(t) || t.every((k) => !k.show)) return [];
|
|
801
|
-
const
|
|
806
|
+
const c = t.filter(
|
|
802
807
|
(k) => k.show && (k.yAxis.yTop != null || k.yAxis.yBottom != null)
|
|
803
808
|
);
|
|
804
|
-
if (!
|
|
805
|
-
const { left:
|
|
809
|
+
if (!c.length) return [];
|
|
810
|
+
const { left: u, right: g } = this.drawingArea, r = this.zero, e = this.drawingArea.height, b = this.niceScale.min, x = this.niceScale.max - b, S = (k) => {
|
|
806
811
|
const w = (k - 0) / x;
|
|
807
812
|
return r - w * e;
|
|
808
813
|
};
|
|
809
|
-
return
|
|
810
|
-
const { yAxis: { yTop: w, yBottom: G, label: N } } = k, F = w != null && G != null && w !== G, C = w == null ? null : S(w), O = G == null ? null : S(G),
|
|
811
|
-
|
|
812
|
-
const l =
|
|
814
|
+
return c.map((k) => {
|
|
815
|
+
const { yAxis: { yTop: w, yBottom: G, label: N } } = k, F = w != null && G != null && w !== G, C = w == null ? null : S(w), O = G == null ? null : S(G), z = this.getTextMeasurer(N.fontSize);
|
|
816
|
+
z.font = `${N.fontSize}px sans-serif`;
|
|
817
|
+
const l = z.measureText(N.text).width, n = N.fontSize, s = (N.position === "start" ? u + N.padding.left : g - N.padding.right) + N.offsetX, L = (C != null && O != null ? Math.min(C, O) : C ?? O) - N.fontSize / 3 + N.offsetY - N.padding.top;
|
|
813
818
|
let v;
|
|
814
819
|
N.textAnchor === "middle" ? v = s - l / 2 - N.padding.left : N.textAnchor === "end" ? v = s - l - N.padding.right : v = s - N.padding.left;
|
|
815
|
-
const
|
|
820
|
+
const A = L - n * 0.75 - N.padding.top;
|
|
816
821
|
return {
|
|
817
|
-
show: ![C, O,
|
|
822
|
+
show: ![C, O, A].includes(NaN),
|
|
818
823
|
id: `annotation_y_${this.createUid()}`,
|
|
819
824
|
hasArea: F,
|
|
820
825
|
areaHeight: F ? Math.abs(C - O) : 0,
|
|
821
826
|
yTop: C,
|
|
822
827
|
yBottom: O,
|
|
823
828
|
config: k.yAxis,
|
|
824
|
-
x1:
|
|
829
|
+
x1: u,
|
|
825
830
|
x2: g,
|
|
826
831
|
_text: { x: s, y: L },
|
|
827
832
|
_box: {
|
|
828
833
|
x: v,
|
|
829
|
-
y,
|
|
834
|
+
y: A,
|
|
830
835
|
width: l + N.padding.left + N.padding.right,
|
|
831
|
-
height:
|
|
836
|
+
height: n + N.padding.top + N.padding.bottom,
|
|
832
837
|
fill: N.backgroundColor,
|
|
833
838
|
stroke: N.border.stroke,
|
|
834
839
|
rx: N.border.rx,
|
|
@@ -852,8 +857,8 @@ const Ke = Q(), Qe = {
|
|
|
852
857
|
},
|
|
853
858
|
methods: {
|
|
854
859
|
abbreviate: Te,
|
|
855
|
-
adaptColorToBackground:
|
|
856
|
-
applyDataLabel:
|
|
860
|
+
adaptColorToBackground: Me,
|
|
861
|
+
applyDataLabel: ze,
|
|
857
862
|
assignStackRatios: pe,
|
|
858
863
|
calcLinearProgression: ve,
|
|
859
864
|
calculateNiceScale: Ge,
|
|
@@ -882,8 +887,8 @@ const Ke = Q(), Qe = {
|
|
|
882
887
|
translateSize: ce,
|
|
883
888
|
treeShake: ne,
|
|
884
889
|
useMouse: We,
|
|
885
|
-
useNestedProp:
|
|
886
|
-
createUid:
|
|
890
|
+
useNestedProp: K,
|
|
891
|
+
createUid: J,
|
|
887
892
|
placeXYTag: se,
|
|
888
893
|
createSmoothPathWithCuts: ie,
|
|
889
894
|
createStraightPathWithCuts: ae,
|
|
@@ -891,19 +896,22 @@ const Ke = Q(), Qe = {
|
|
|
891
896
|
createIndividualAreaWithCuts: le,
|
|
892
897
|
createSmoothAreaSegments: j,
|
|
893
898
|
createIndividualArea: te,
|
|
894
|
-
|
|
899
|
+
usesSelectTimeLabelEvent() {
|
|
900
|
+
return !!this.$.vnode.props?.onSelectTimeLabel;
|
|
901
|
+
},
|
|
902
|
+
getTextMeasurer(t, c, u) {
|
|
895
903
|
if (!this._textMeasurer) {
|
|
896
904
|
const g = document.createElement("canvas");
|
|
897
905
|
this._textMeasurer = g.getContext("2d");
|
|
898
906
|
}
|
|
899
|
-
return this._textMeasurer.font = `${
|
|
907
|
+
return this._textMeasurer.font = `${u || "normal"} ${t}px ${c || "sans-serif"}`, this._textMeasurer;
|
|
900
908
|
},
|
|
901
909
|
hideTags() {
|
|
902
910
|
const t = document.querySelectorAll(".vue-ui-xy-tag");
|
|
903
|
-
t.length && Array.from(t).forEach((
|
|
911
|
+
t.length && Array.from(t).forEach((c) => c.style.opacity = "0");
|
|
904
912
|
},
|
|
905
|
-
setTagRef(t,
|
|
906
|
-
|
|
913
|
+
setTagRef(t, c, u, g, r) {
|
|
914
|
+
u && (this.tagRefs[`${t}_${c}_${g}_${r}`] = u);
|
|
907
915
|
},
|
|
908
916
|
setUserOptionsVisibility(t = !1) {
|
|
909
917
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = t);
|
|
@@ -911,65 +919,65 @@ const Ke = Q(), Qe = {
|
|
|
911
919
|
toggleAnnotator() {
|
|
912
920
|
this.isAnnotator = !this.isAnnotator;
|
|
913
921
|
},
|
|
914
|
-
selectTimeLabel(t,
|
|
915
|
-
const
|
|
922
|
+
selectTimeLabel(t, c) {
|
|
923
|
+
const u = this.relativeDataset.map((g) => ({
|
|
916
924
|
shape: g.shape || null,
|
|
917
925
|
name: g.name,
|
|
918
926
|
color: g.color,
|
|
919
927
|
type: g.type,
|
|
920
|
-
value: g.absoluteValues.find((r, e) => e ===
|
|
928
|
+
value: g.absoluteValues.find((r, e) => e === c),
|
|
921
929
|
comments: g.comments || [],
|
|
922
930
|
prefix: g.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
923
931
|
suffix: g.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
924
932
|
}));
|
|
925
933
|
this.$emit("selectTimeLabel", {
|
|
926
|
-
datapoint:
|
|
934
|
+
datapoint: u,
|
|
927
935
|
absoluteIndex: t.absoluteIndex,
|
|
928
936
|
label: t.text
|
|
929
937
|
});
|
|
930
938
|
},
|
|
931
939
|
getHighlightAreaPosition(t) {
|
|
932
|
-
const
|
|
940
|
+
const c = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), u = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
|
|
933
941
|
return {
|
|
934
|
-
x:
|
|
935
|
-
width:
|
|
942
|
+
x: c < this.drawingArea.left ? this.drawingArea.left : c,
|
|
943
|
+
width: u
|
|
936
944
|
};
|
|
937
945
|
},
|
|
938
946
|
prepareConfig() {
|
|
939
947
|
const t = Pe().vue_ui_xy;
|
|
940
948
|
if (!Object.keys(this.config || {}).length)
|
|
941
949
|
return t;
|
|
942
|
-
const
|
|
950
|
+
const c = this.useNestedProp({
|
|
943
951
|
userConfig: this.config,
|
|
944
952
|
defaultConfig: t
|
|
945
953
|
});
|
|
946
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
954
|
+
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 && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length && (c.chart.annotations = this.config.chart.annotations.map((u) => K({
|
|
947
955
|
defaultConfig: t.chart.annotations[0],
|
|
948
|
-
userConfig:
|
|
949
|
-
}))),
|
|
950
|
-
...
|
|
951
|
-
userConfig: this.themes.vue_ui_xy[
|
|
952
|
-
defaultConfig:
|
|
956
|
+
userConfig: u
|
|
957
|
+
}))), c.theme ? {
|
|
958
|
+
...K({
|
|
959
|
+
userConfig: this.themes.vue_ui_xy[c.theme] || this.config,
|
|
960
|
+
defaultConfig: c
|
|
953
961
|
}),
|
|
954
|
-
customPalette: this.themePalettes[
|
|
955
|
-
} :
|
|
962
|
+
customPalette: this.themePalettes[c.theme] || this.palette
|
|
963
|
+
} : c;
|
|
956
964
|
},
|
|
957
965
|
prepareChart() {
|
|
958
966
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
959
967
|
componentName: "VueUiXy",
|
|
960
968
|
type: "dataset"
|
|
961
|
-
}) : this.dataset.forEach((t,
|
|
969
|
+
}) : this.dataset.forEach((t, c) => {
|
|
962
970
|
[null, void 0].includes(t.name) && this.error({
|
|
963
971
|
componentName: "VueUiXy",
|
|
964
972
|
type: "datasetSerieAttribute",
|
|
965
973
|
property: "name (string)",
|
|
966
|
-
index:
|
|
974
|
+
index: c
|
|
967
975
|
});
|
|
968
976
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((t) => {
|
|
969
|
-
t.series.forEach((
|
|
970
|
-
this.isSafeValue(
|
|
971
|
-
-----> The serie '${t.name}' contains the value '${
|
|
972
|
-
'${
|
|
977
|
+
t.series.forEach((c, u) => {
|
|
978
|
+
this.isSafeValue(c) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
979
|
+
-----> The serie '${t.name}' contains the value '${c}' at index ${u}.
|
|
980
|
+
'${c}' was converted to null to allow the chart to display.`);
|
|
973
981
|
});
|
|
974
982
|
}), 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 = {
|
|
975
983
|
dataLabels: {
|
|
@@ -980,9 +988,9 @@ const Ke = Q(), Qe = {
|
|
|
980
988
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
981
989
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
982
990
|
}, this.FINAL_CONFIG.responsive) {
|
|
983
|
-
const
|
|
991
|
+
const c = this.$refs.chart.parentNode;
|
|
984
992
|
this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
985
|
-
const { height:
|
|
993
|
+
const { height: u, width: g } = c.getBoundingClientRect();
|
|
986
994
|
let r = null, e = 0;
|
|
987
995
|
this.FINAL_CONFIG.chart.title.show && (r = this.$refs.chartTitle, e = r.getBoundingClientRect().height);
|
|
988
996
|
let b = null, m = 0;
|
|
@@ -992,14 +1000,14 @@ const Ke = Q(), Qe = {
|
|
|
992
1000
|
let k = 0;
|
|
993
1001
|
this.$refs.source && (k = this.$refs.source.getBoundingClientRect().height);
|
|
994
1002
|
let w = 0;
|
|
995
|
-
this.$refs.noTitle && (w = this.$refs.noTitle.getBoundingClientRect().height), this.height =
|
|
1003
|
+
this.$refs.noTitle && (w = this.$refs.noTitle.getBoundingClientRect().height), this.height = u - e - S - m - k - w, this.width = g, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
996
1004
|
const G = new ResizeObserver((N) => {
|
|
997
1005
|
for (const F of N)
|
|
998
1006
|
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (m = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (S = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (k = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
|
|
999
1007
|
this.height = F.contentBoxSize[0].blockSize - e - S - m - k - 24, this.width = F.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
1000
1008
|
});
|
|
1001
1009
|
});
|
|
1002
|
-
this.resizeObserver = G, this.observedEl =
|
|
1010
|
+
this.resizeObserver = G, this.observedEl = c, G.observe(c);
|
|
1003
1011
|
} else
|
|
1004
1012
|
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;
|
|
1005
1013
|
},
|
|
@@ -1007,7 +1015,11 @@ const Ke = Q(), Qe = {
|
|
|
1007
1015
|
this.selectedMinimapIndex = t;
|
|
1008
1016
|
},
|
|
1009
1017
|
convertSizes() {
|
|
1010
|
-
this.FINAL_CONFIG.responsiveProportionalSizing
|
|
1018
|
+
if (!this.FINAL_CONFIG.responsiveProportionalSizing) {
|
|
1019
|
+
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;
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
this.fontSizes.dataLabels = this.translateSize({
|
|
1011
1023
|
relator: this.height,
|
|
1012
1024
|
adjuster: 400,
|
|
1013
1025
|
source: this.FINAL_CONFIG.chart.grid.labels.fontSize,
|
|
@@ -1043,7 +1055,7 @@ const Ke = Q(), Qe = {
|
|
|
1043
1055
|
source: this.FINAL_CONFIG.line.radius,
|
|
1044
1056
|
threshold: 1,
|
|
1045
1057
|
fallback: 1
|
|
1046
|
-
})
|
|
1058
|
+
});
|
|
1047
1059
|
},
|
|
1048
1060
|
toggleStack() {
|
|
1049
1061
|
this.mutableConfig.isStacked = !this.mutableConfig.isStacked, this.mutableConfig.isStacked ? this.mutableConfig.useIndividualScale = !0 : this.mutableConfig.useIndividualScale = this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale;
|
|
@@ -1060,20 +1072,20 @@ const Ke = Q(), Qe = {
|
|
|
1060
1072
|
checkAutoScaleError(t) {
|
|
1061
1073
|
t.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.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: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1062
1074
|
},
|
|
1063
|
-
createArea(t,
|
|
1075
|
+
createArea(t, c) {
|
|
1064
1076
|
if (!t[0]) return [-10, -10, "", -10, -10];
|
|
1065
|
-
const
|
|
1077
|
+
const u = { x: t[0].x, y: c }, g = { x: t.at(-1).x, y: c }, r = [];
|
|
1066
1078
|
return t.forEach((e) => {
|
|
1067
1079
|
r.push(`${e.x},${e.y} `);
|
|
1068
|
-
}), [
|
|
1080
|
+
}), [u.x, u.y, ...r, g.x, g.y].toString();
|
|
1069
1081
|
},
|
|
1070
1082
|
createStar: Z,
|
|
1071
1083
|
createPolygonPath: H,
|
|
1072
|
-
fillArray(t,
|
|
1073
|
-
let
|
|
1074
|
-
for (let g = 0; g <
|
|
1075
|
-
|
|
1076
|
-
return
|
|
1084
|
+
fillArray(t, c) {
|
|
1085
|
+
let u = Array(t).fill(0);
|
|
1086
|
+
for (let g = 0; g < c.length && g < t; g += 1)
|
|
1087
|
+
u[g] = c[g];
|
|
1088
|
+
return u;
|
|
1077
1089
|
},
|
|
1078
1090
|
async setupSlicer() {
|
|
1079
1091
|
(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 = {
|
|
@@ -1085,12 +1097,12 @@ const Ke = Q(), Qe = {
|
|
|
1085
1097
|
this.setupSlicer();
|
|
1086
1098
|
},
|
|
1087
1099
|
validSlicerEnd(t) {
|
|
1088
|
-
const
|
|
1089
|
-
return t >
|
|
1100
|
+
const c = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({ data: u.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
1101
|
+
return t > c ? c : t < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && t < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : t;
|
|
1090
1102
|
},
|
|
1091
1103
|
calcRectHeight(t) {
|
|
1092
|
-
const
|
|
1093
|
-
return t.value >= 0 ? this.checkNaN(
|
|
1104
|
+
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;
|
|
1105
|
+
return t.value >= 0 ? this.checkNaN(c - t.y <= 0 ? 1e-5 : c - t.y) : this.checkNaN(t.y - this.zero <= 0 ? 1e-5 : t.y - this.zero);
|
|
1094
1106
|
},
|
|
1095
1107
|
calcIndividualHeight(t) {
|
|
1096
1108
|
return t.value >= 0 ? this.checkNaN(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : this.checkNaN(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
|
|
@@ -1110,13 +1122,13 @@ const Ke = Q(), Qe = {
|
|
|
1110
1122
|
canShowValue(t) {
|
|
1111
1123
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
1112
1124
|
},
|
|
1113
|
-
findClosestValue(t,
|
|
1114
|
-
let
|
|
1115
|
-
for (let r = 1; r <
|
|
1116
|
-
const e = Math.abs(t -
|
|
1117
|
-
e < g &&
|
|
1125
|
+
findClosestValue(t, c) {
|
|
1126
|
+
let u = c[0], g = Math.abs(t - c[0]);
|
|
1127
|
+
for (let r = 1; r < c.length; r += 1) {
|
|
1128
|
+
const e = Math.abs(t - c[r]);
|
|
1129
|
+
e < g && c[r] < t && (u = c[r], g = e);
|
|
1118
1130
|
}
|
|
1119
|
-
return
|
|
1131
|
+
return u;
|
|
1120
1132
|
},
|
|
1121
1133
|
ratioToMax(t) {
|
|
1122
1134
|
return t / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
@@ -1125,11 +1137,11 @@ const Ke = Q(), Qe = {
|
|
|
1125
1137
|
this.$emit(
|
|
1126
1138
|
"selectX",
|
|
1127
1139
|
{
|
|
1128
|
-
dataset: this.relativeDataset.map((
|
|
1129
|
-
name:
|
|
1130
|
-
value: [null, void 0, NaN].includes(
|
|
1131
|
-
color:
|
|
1132
|
-
type:
|
|
1140
|
+
dataset: this.relativeDataset.map((c) => ({
|
|
1141
|
+
name: c.name,
|
|
1142
|
+
value: [null, void 0, NaN].includes(c.absoluteValues[t]) ? null : c.absoluteValues[t],
|
|
1143
|
+
color: c.color,
|
|
1144
|
+
type: c.type
|
|
1133
1145
|
})),
|
|
1134
1146
|
index: t,
|
|
1135
1147
|
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[t]
|
|
@@ -1146,20 +1158,20 @@ const Ke = Q(), Qe = {
|
|
|
1146
1158
|
},
|
|
1147
1159
|
segregate(t) {
|
|
1148
1160
|
if (this.segregatedSeries.includes(t.id))
|
|
1149
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1161
|
+
this.segregatedSeries = this.segregatedSeries.filter((c) => c !== t.id);
|
|
1150
1162
|
else {
|
|
1151
1163
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1152
1164
|
this.segregatedSeries.push(t.id);
|
|
1153
1165
|
}
|
|
1154
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1155
|
-
name:
|
|
1156
|
-
values:
|
|
1157
|
-
color:
|
|
1158
|
-
type:
|
|
1166
|
+
this.$emit("selectLegend", this.relativeDataset.map((c) => ({
|
|
1167
|
+
name: c.name,
|
|
1168
|
+
values: c.absoluteValues,
|
|
1169
|
+
color: c.color,
|
|
1170
|
+
type: c.type
|
|
1159
1171
|
}))), this.segregateStep += 1;
|
|
1160
1172
|
},
|
|
1161
|
-
toggleTooltipVisibility(t,
|
|
1162
|
-
this.isTooltip = t, t ? this.selectedSerieIndex =
|
|
1173
|
+
toggleTooltipVisibility(t, c = null) {
|
|
1174
|
+
this.isTooltip = t, t ? this.selectedSerieIndex = c : this.selectedSerieIndex = null;
|
|
1163
1175
|
},
|
|
1164
1176
|
toggleFullscreen(t) {
|
|
1165
1177
|
this.isFullscreen = t, this.step += 1;
|
|
@@ -1170,7 +1182,7 @@ const Ke = Q(), Qe = {
|
|
|
1170
1182
|
async generatePdf() {
|
|
1171
1183
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1172
1184
|
try {
|
|
1173
|
-
const { default: t } = await import("./pdf-
|
|
1185
|
+
const { default: t } = await import("./pdf-DTB7aasS.js");
|
|
1174
1186
|
await t({
|
|
1175
1187
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1176
1188
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1184,7 +1196,7 @@ const Ke = Q(), Qe = {
|
|
|
1184
1196
|
}, 100);
|
|
1185
1197
|
},
|
|
1186
1198
|
generateCsv(t = null) {
|
|
1187
|
-
const
|
|
1199
|
+
const c = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], u = ["", ...this.table.head.map((b) => b.label)], g = this.table.body, r = c.concat([u]).concat(g), e = this.createCsvContent(r);
|
|
1188
1200
|
t ? t(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1189
1201
|
},
|
|
1190
1202
|
showSpinnerImage() {
|
|
@@ -1193,7 +1205,7 @@ const Ke = Q(), Qe = {
|
|
|
1193
1205
|
async generateImage() {
|
|
1194
1206
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1195
1207
|
try {
|
|
1196
|
-
const { default: t } = await import("./img-
|
|
1208
|
+
const { default: t } = await import("./img-CqqmkwDl.js");
|
|
1197
1209
|
await t({
|
|
1198
1210
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1199
1211
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1208,72 +1220,72 @@ const Ke = Q(), Qe = {
|
|
|
1208
1220
|
}, 100);
|
|
1209
1221
|
}
|
|
1210
1222
|
}
|
|
1211
|
-
},
|
|
1223
|
+
}, $e = ["id"], et = {
|
|
1212
1224
|
key: 1,
|
|
1213
1225
|
ref: "noTitle",
|
|
1214
1226
|
class: "vue-data-ui-no-title-space",
|
|
1215
1227
|
style: "height:36px; width: 100%; background:transparent"
|
|
1216
|
-
},
|
|
1228
|
+
}, tt = ["viewBox", "aria-label"], lt = ["x", "y", "width", "height"], rt = { key: 1 }, at = { class: "vue-ui-xy-grid" }, it = ["stroke", "x1", "x2", "y1", "y2"], st = ["stroke", "x1", "x2", "y1", "y2"], nt = { key: 1 }, ct = ["x1", "x2", "y1", "y2", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke"], ut = { key: 3 }, dt = ["x1", "x2", "y1", "y2", "stroke"], gt = { key: 4 }, ft = ["y1", "y2", "x1", "x2", "stroke"], It = ["id"], Nt = ["stop-color"], xt = ["stop-color"], mt = ["stop-color"], bt = ["id"], Ft = ["stop-color"], _t = ["stop-color"], yt = ["stop-color"], At = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["id"], kt = ["stop-color"], wt = ["stop-color"], Ot = ["id"], Gt = ["stop-color"], vt = ["stop-color"], pt = ["x", "y", "height", "width", "fill"], zt = ["x", "y", "width"], Mt = ["x", "y", "height", "width", "fill"], Tt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Pt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Vt = ["width", "x", "y"], Rt = { key: 0 }, Ht = ["id"], Dt = ["fill"], Wt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Bt = ["x", "y", "font-size", "fill"], Et = ["stroke", "x1", "x2", "y1", "y2"], Yt = { key: 2 }, qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Xt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Ut = { key: 4 }, Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["fill", "font-size", "transform"], Qt = ["x1", "x2", "y1", "y2", "stroke"], Jt = ["x", "y", "font-size", "fill"], jt = ["x1", "x2", "y1", "y2", "stroke"], $t = ["x", "y", "font-size", "fill"], el = ["width", "x", "y"], tl = { style: { width: "100%" } }, ll = { key: 0 }, rl = ["id"], al = ["fill"], il = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], sl = ["x", "y", "font-size", "fill"], nl = ["d", "stroke", "stroke-width", "stroke-dasharray"], cl = ["d", "stroke", "stroke-width", "stroke-dasharray"], ol = { key: 5 }, hl = { key: 0 }, ul = ["d", "fill"], dl = ["d", "fill"], gl = ["d", "fill"], fl = ["d", "fill"], Il = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nl = ["d", "stroke", "stroke-width", "stroke-dasharray"], xl = ["width", "x", "y"], ml = { style: { width: "100%" } }, bl = { key: 3 }, Fl = ["id"], _l = ["fill"], yl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Al = ["x", "y", "font-size", "fill"], Ll = { key: 6 }, Cl = ["x", "y", "font-size", "fill"], Sl = ["x", "y", "font-size", "fill", "font-weight"], kl = { key: 7 }, wl = ["x", "y", "font-size", "fill"], Ol = { key: 8 }, Gl = ["x", "y"], vl = ["innerHTML"], pl = ["x", "y"], zl = ["innerHTML"], Ml = ["x1", "x2", "y1", "y2", "stroke"], Tl = { key: 9 }, Pl = ["x", "y", "font-size", "fill"], Vl = { key: 10 }, Rl = ["x", "y"], Hl = ["innerHTML"], Dl = ["x", "y"], Wl = ["innerHTML"], Bl = ["x1", "x2", "y1", "y2", "stroke"], El = ["x", "y", "font-size", "fill", "innerHTML"], Yl = ["x", "y", "font-size", "fill", "innerHTML"], ql = ["x", "y", "font-size", "fill", "innerHTML"], Xl = ["x", "y", "font-size", "fill", "innerHTML"], Ul = ["id"], Zl = ["stop-color"], Kl = ["stop-color"], Ql = ["x", "y", "width", "height", "fill", "onMouseenter"], Jl = ["font-size", "fill", "transform"], jl = ["x", "y", "font-size", "fill"], $l = { key: 12 }, er = ["text-anchor", "font-size", "fill", "transform", "onClick"], tr = { key: 13 }, lr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], rr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ar = ["y", "x", "width", "height", "fill"], ir = ["id", "x", "y", "font-size", "fill", "text-anchor"], sr = ["x", "y", "height", "width", "onMouseenter", "onClick"], nr = {
|
|
1217
1229
|
key: 14,
|
|
1218
1230
|
style: { "pointer-events": "none" }
|
|
1219
|
-
},
|
|
1231
|
+
}, cr = ["x", "y"], or = ["cx", "cy", "r", "fill"], hr = {
|
|
1220
1232
|
key: 5,
|
|
1221
1233
|
class: "vue-data-ui-watermark"
|
|
1222
|
-
},
|
|
1234
|
+
}, ur = {
|
|
1223
1235
|
class: "vue-ui-xy-tag-arrow",
|
|
1224
1236
|
height: "20",
|
|
1225
1237
|
viewBox: "0 0 10 20",
|
|
1226
1238
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1227
|
-
},
|
|
1239
|
+
}, dr = ["fill"], gr = ["innerHTML"], fr = {
|
|
1228
1240
|
class: "vue-ui-xy-tag-arrow",
|
|
1229
1241
|
height: "100%",
|
|
1230
1242
|
viewBox: "0 0 10 20",
|
|
1231
1243
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1232
|
-
},
|
|
1244
|
+
}, Ir = ["fill"], Nr = ["innerHTML"], xr = {
|
|
1233
1245
|
class: "vue-ui-xy-tag-arrow",
|
|
1234
1246
|
height: "20",
|
|
1235
1247
|
viewBox: "0 0 10 20",
|
|
1236
1248
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1237
|
-
},
|
|
1249
|
+
}, mr = ["fill"], br = ["innerHTML"], Fr = {
|
|
1238
1250
|
class: "vue-ui-xy-tag-arrow",
|
|
1239
1251
|
height: "100%",
|
|
1240
1252
|
viewBox: "0 0 10 20",
|
|
1241
1253
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1242
|
-
},
|
|
1254
|
+
}, _r = ["fill"], yr = ["innerHTML"], Ar = ["onClick"], Lr = {
|
|
1243
1255
|
key: 0,
|
|
1244
1256
|
viewBox: "0 0 20 12",
|
|
1245
1257
|
height: "14",
|
|
1246
1258
|
width: "20"
|
|
1247
|
-
},
|
|
1259
|
+
}, Cr = ["stroke", "fill"], Sr = {
|
|
1248
1260
|
key: 1,
|
|
1249
1261
|
viewBox: "0 0 40 40",
|
|
1250
1262
|
height: "14",
|
|
1251
1263
|
width: "14"
|
|
1252
|
-
},
|
|
1264
|
+
}, kr = ["fill"], wr = ["fill"], Or = {
|
|
1253
1265
|
key: 2,
|
|
1254
1266
|
viewBox: "0 0 12 12",
|
|
1255
1267
|
height: "14",
|
|
1256
1268
|
width: "14"
|
|
1257
|
-
},
|
|
1269
|
+
}, Gr = {
|
|
1258
1270
|
key: 9,
|
|
1259
1271
|
ref: "chartLegend"
|
|
1260
|
-
},
|
|
1272
|
+
}, vr = {
|
|
1261
1273
|
key: 10,
|
|
1262
1274
|
ref: "source",
|
|
1263
1275
|
dir: "auto"
|
|
1264
|
-
},
|
|
1276
|
+
}, pr = {
|
|
1265
1277
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1266
1278
|
"data-dom-to-png-ignore": ""
|
|
1267
|
-
},
|
|
1268
|
-
function Mr(t,
|
|
1269
|
-
const b = R("PenAndPaper"), m = R("Title"), x = R("UserOptions"), S = R("PackageVersion"), k = R("Shape"), w = R("Skeleton"), G = R("Slicer"), N = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), O = R("DataTable"),
|
|
1279
|
+
}, zr = ["innerHTML"];
|
|
1280
|
+
function Mr(t, c, u, g, r, e) {
|
|
1281
|
+
const b = R("PenAndPaper"), m = R("Title"), x = R("UserOptions"), S = R("PackageVersion"), k = R("Shape"), w = R("Skeleton"), G = R("Slicer"), N = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), O = R("DataTable"), z = R("Accordion");
|
|
1270
1282
|
return a(), i("div", {
|
|
1271
1283
|
id: `vue-ui-xy_${r.uniqueId}`,
|
|
1272
1284
|
class: E(`vue-ui-xy ${r.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1273
1285
|
ref: "chart",
|
|
1274
|
-
style:
|
|
1275
|
-
onMouseenter:
|
|
1276
|
-
onMouseleave:
|
|
1286
|
+
style: y(`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%" : ""}`),
|
|
1287
|
+
onMouseenter: c[7] || (c[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1288
|
+
onMouseleave: c[8] || (c[8] = () => e.setUserOptionsVisibility(!1))
|
|
1277
1289
|
}, [
|
|
1278
1290
|
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), W(b, {
|
|
1279
1291
|
key: 0,
|
|
@@ -1282,13 +1294,13 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1282
1294
|
color: e.FINAL_CONFIG.chart.color,
|
|
1283
1295
|
active: r.isAnnotator,
|
|
1284
1296
|
onClose: e.toggleAnnotator
|
|
1285
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) :
|
|
1286
|
-
e.hasOptionsNoTitle ? (a(), i("div",
|
|
1297
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : h("", !0),
|
|
1298
|
+
e.hasOptionsNoTitle ? (a(), i("div", et, null, 512)) : h("", !0),
|
|
1287
1299
|
e.FINAL_CONFIG.chart.title.show ? (a(), i("div", {
|
|
1288
1300
|
key: 2,
|
|
1289
1301
|
ref: "chartTitle",
|
|
1290
1302
|
class: "vue-ui-xy-title",
|
|
1291
|
-
style:
|
|
1303
|
+
style: y(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1292
1304
|
}, [
|
|
1293
1305
|
(a(), W(m, {
|
|
1294
1306
|
key: `title_${r.titleStep}`,
|
|
@@ -1303,7 +1315,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1303
1315
|
}
|
|
1304
1316
|
}
|
|
1305
1317
|
}, null, 8, ["config"]))
|
|
1306
|
-
], 4)) :
|
|
1318
|
+
], 4)) : h("", !0),
|
|
1307
1319
|
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (r.keepUserOptionState || r.userOptionsVisible) ? (a(), W(x, {
|
|
1308
1320
|
ref: "defails",
|
|
1309
1321
|
key: `user_options_${r.step}`,
|
|
@@ -1318,7 +1330,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1318
1330
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1319
1331
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1320
1332
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1321
|
-
hasStack:
|
|
1333
|
+
hasStack: u.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1322
1334
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1323
1335
|
isStacked: r.mutableConfig.isStacked,
|
|
1324
1336
|
isFullscreen: r.isFullscreen,
|
|
@@ -1338,14 +1350,14 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1338
1350
|
onToggleStack: e.toggleStack,
|
|
1339
1351
|
onToggleTooltip: e.toggleTooltip,
|
|
1340
1352
|
onToggleAnnotator: e.toggleAnnotator,
|
|
1341
|
-
style:
|
|
1353
|
+
style: y({
|
|
1342
1354
|
visibility: r.keepUserOptionState ? r.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1343
1355
|
})
|
|
1344
|
-
},
|
|
1356
|
+
}, Ee({ _: 2 }, [
|
|
1345
1357
|
t.$slots.menuIcon ? {
|
|
1346
1358
|
name: "menuIcon",
|
|
1347
|
-
fn: V(({ isOpen: l, color:
|
|
1348
|
-
p(t.$slots, "menuIcon", Y(q({ isOpen: l, color:
|
|
1359
|
+
fn: V(({ isOpen: l, color: n }) => [
|
|
1360
|
+
p(t.$slots, "menuIcon", Y(q({ isOpen: l, color: n })), void 0, !0)
|
|
1349
1361
|
]),
|
|
1350
1362
|
key: "0"
|
|
1351
1363
|
} : void 0,
|
|
@@ -1400,19 +1412,19 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1400
1412
|
} : void 0,
|
|
1401
1413
|
t.$slots.optionFullscreen ? {
|
|
1402
1414
|
name: "optionFullscreen",
|
|
1403
|
-
fn: V(({ toggleFullscreen: l, isFullscreen:
|
|
1404
|
-
p(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen:
|
|
1415
|
+
fn: V(({ toggleFullscreen: l, isFullscreen: n }) => [
|
|
1416
|
+
p(t.$slots, "optionFullscreen", Y(q({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
|
|
1405
1417
|
]),
|
|
1406
1418
|
key: "8"
|
|
1407
1419
|
} : void 0,
|
|
1408
1420
|
t.$slots.optionAnnotator ? {
|
|
1409
1421
|
name: "optionAnnotator",
|
|
1410
|
-
fn: V(({ toggleAnnotator: l, isAnnotator:
|
|
1411
|
-
p(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator:
|
|
1422
|
+
fn: V(({ toggleAnnotator: l, isAnnotator: n }) => [
|
|
1423
|
+
p(t.$slots, "optionAnnotator", Y(q({ toggleAnnotator: l, isAnnotator: n })), void 0, !0)
|
|
1412
1424
|
]),
|
|
1413
1425
|
key: "9"
|
|
1414
1426
|
} : void 0
|
|
1415
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) :
|
|
1427
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : h("", !0),
|
|
1416
1428
|
e.isDataset ? (a(), i("svg", {
|
|
1417
1429
|
key: 4,
|
|
1418
1430
|
ref: "svgRef",
|
|
@@ -1420,7 +1432,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1420
1432
|
class: E([{ "vue-data-ui-fullscreen--on": r.isFullscreen, "vue-data-ui-fulscreen--off": !r.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1421
1433
|
width: "100%",
|
|
1422
1434
|
viewBox: r.viewBox,
|
|
1423
|
-
style:
|
|
1435
|
+
style: y(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
|
|
1424
1436
|
"aria-label": e.chartAriaLabel,
|
|
1425
1437
|
role: "img",
|
|
1426
1438
|
"aria-live": "polite"
|
|
@@ -1437,9 +1449,9 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1437
1449
|
}
|
|
1438
1450
|
}, [
|
|
1439
1451
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
1440
|
-
], 8,
|
|
1441
|
-
e.maxSeries > 0 ? (a(), i("g",
|
|
1442
|
-
f("g",
|
|
1452
|
+
], 8, lt)) : h("", !0),
|
|
1453
|
+
e.maxSeries > 0 ? (a(), i("g", rt, [
|
|
1454
|
+
f("g", at, [
|
|
1443
1455
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), i("line", {
|
|
1444
1456
|
key: 0,
|
|
1445
1457
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1450,28 +1462,28 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1450
1462
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1451
1463
|
"stroke-linecap": "round",
|
|
1452
1464
|
style: { animation: "none !important" }
|
|
1453
|
-
}, null, 8,
|
|
1465
|
+
}, null, 8, it)) : h("", !0),
|
|
1454
1466
|
r.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), i(d, { key: 2 }, I(e.allScales, (l) => (a(), i("g", null, [
|
|
1455
|
-
l.id === r.selectedScale && l.yLabels.length ? (a(!0), i(d, { key: 0 }, I(l.yLabels, (
|
|
1467
|
+
l.id === r.selectedScale && l.yLabels.length ? (a(!0), i(d, { key: 0 }, I(l.yLabels, (n) => (a(), i("line", {
|
|
1456
1468
|
x1: e.drawingArea.left + e.xPadding,
|
|
1457
1469
|
x2: e.drawingArea.right - e.xPadding,
|
|
1458
|
-
y1: e.forceValidValue(
|
|
1459
|
-
y2: e.forceValidValue(
|
|
1470
|
+
y1: e.forceValidValue(n.y),
|
|
1471
|
+
y2: e.forceValidValue(n.y),
|
|
1460
1472
|
stroke: l.color,
|
|
1461
1473
|
"stroke-width": 0.5,
|
|
1462
1474
|
"stroke-linecap": "round",
|
|
1463
1475
|
style: { animation: "none !important" }
|
|
1464
|
-
}, null, 8,
|
|
1476
|
+
}, null, 8, ot))), 256)) : l.yLabels.length ? (a(!0), i(d, { key: 1 }, I(l.yLabels, (n) => (a(), i("line", {
|
|
1465
1477
|
x1: e.drawingArea.left + e.xPadding,
|
|
1466
1478
|
x2: e.drawingArea.right - e.xPadding,
|
|
1467
|
-
y1: e.forceValidValue(
|
|
1468
|
-
y2: e.forceValidValue(
|
|
1479
|
+
y1: e.forceValidValue(n.y),
|
|
1480
|
+
y2: e.forceValidValue(n.y),
|
|
1469
1481
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1470
1482
|
"stroke-width": 0.5,
|
|
1471
1483
|
"stroke-linecap": "round",
|
|
1472
1484
|
style: { animation: "none !important" }
|
|
1473
|
-
}, null, 8,
|
|
1474
|
-
]))), 256)) :
|
|
1485
|
+
}, null, 8, ht))), 256)) : h("", !0)
|
|
1486
|
+
]))), 256)) : h("", !0) : (a(), i(d, { key: 1 }, [
|
|
1475
1487
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), i("line", {
|
|
1476
1488
|
key: 0,
|
|
1477
1489
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1482,8 +1494,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1482
1494
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1483
1495
|
"stroke-linecap": "round",
|
|
1484
1496
|
style: { animation: "none !important" }
|
|
1485
|
-
}, null, 8,
|
|
1486
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), i("g",
|
|
1497
|
+
}, null, 8, st)) : h("", !0),
|
|
1498
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), i("g", nt, [
|
|
1487
1499
|
(a(!0), i(d, null, I(e.yLabels, (l) => (a(), i("line", {
|
|
1488
1500
|
x1: e.drawingArea.left + e.xPadding,
|
|
1489
1501
|
x2: e.drawingArea.right - e.xPadding,
|
|
@@ -1493,86 +1505,86 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1493
1505
|
"stroke-width": 0.5,
|
|
1494
1506
|
"stroke-linecap": "round",
|
|
1495
1507
|
style: { animation: "none !important" }
|
|
1496
|
-
}, null, 8,
|
|
1497
|
-
])) :
|
|
1508
|
+
}, null, 8, ct))), 256))
|
|
1509
|
+
])) : h("", !0)
|
|
1498
1510
|
], 64)),
|
|
1499
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), i("g",
|
|
1500
|
-
(a(!0), i(d, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (l,
|
|
1501
|
-
key: `grid_vertical_line_${
|
|
1502
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1503
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1511
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), i("g", ut, [
|
|
1512
|
+
(a(!0), i(d, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (l, n) => (a(), i("line", {
|
|
1513
|
+
key: `grid_vertical_line_${n}`,
|
|
1514
|
+
x1: e.drawingArea.width / e.maxSeries * n + e.drawingArea.left + e.xPadding,
|
|
1515
|
+
x2: e.drawingArea.width / e.maxSeries * n + e.drawingArea.left + e.xPadding,
|
|
1504
1516
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1505
1517
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1506
1518
|
"stroke-width": "0.5",
|
|
1507
1519
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1508
1520
|
style: { animation: "none !important" }
|
|
1509
|
-
}, null, 8,
|
|
1510
|
-
])) :
|
|
1511
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g",
|
|
1512
|
-
(a(!0), i(d, null, I(e.timeLabels, (l,
|
|
1513
|
-
key: `time_label_${
|
|
1521
|
+
}, null, 8, dt))), 128))
|
|
1522
|
+
])) : h("", !0),
|
|
1523
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g", gt, [
|
|
1524
|
+
(a(!0), i(d, null, I(e.timeLabels, (l, n) => (a(), i("g", {
|
|
1525
|
+
key: `time_label_${n}`
|
|
1514
1526
|
}, [
|
|
1515
|
-
l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (
|
|
1527
|
+
l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (n === 0 || n === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === n && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && n % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), i(d, { key: 0 }, [
|
|
1516
1528
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (a(), i("line", {
|
|
1517
1529
|
key: 0,
|
|
1518
1530
|
y1: e.drawingArea.bottom,
|
|
1519
1531
|
y2: e.drawingArea.bottom + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize,
|
|
1520
|
-
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1521
|
-
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1532
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * n + e.drawingArea.width / e.maxSeries / 2,
|
|
1533
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * n + e.drawingArea.width / e.maxSeries / 2,
|
|
1522
1534
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1523
1535
|
"stroke-width": 1,
|
|
1524
1536
|
"stroke-linecap": "round",
|
|
1525
1537
|
style: { animation: "none !important " }
|
|
1526
|
-
}, null, 8,
|
|
1527
|
-
], 64)) :
|
|
1538
|
+
}, null, 8, ft)) : h("", !0)
|
|
1539
|
+
], 64)) : h("", !0)
|
|
1528
1540
|
]))), 128))
|
|
1529
|
-
])) :
|
|
1541
|
+
])) : h("", !0)
|
|
1530
1542
|
]),
|
|
1531
|
-
(a(!0), i(d, null, I(e.barSet, (l,
|
|
1532
|
-
key: `def_rect_${
|
|
1543
|
+
(a(!0), i(d, null, I(e.barSet, (l, n) => (a(), i("defs", {
|
|
1544
|
+
key: `def_rect_${n}`
|
|
1533
1545
|
}, [
|
|
1534
1546
|
f("linearGradient", {
|
|
1535
|
-
id: `rectGradient_pos_${
|
|
1547
|
+
id: `rectGradient_pos_${n}_${r.uniqueId}`,
|
|
1536
1548
|
x2: "0%",
|
|
1537
1549
|
y2: "100%"
|
|
1538
1550
|
}, [
|
|
1539
1551
|
f("stop", {
|
|
1540
1552
|
offset: "0%",
|
|
1541
1553
|
"stop-color": l.color
|
|
1542
|
-
}, null, 8,
|
|
1554
|
+
}, null, 8, Nt),
|
|
1543
1555
|
f("stop", {
|
|
1544
1556
|
offset: "62%",
|
|
1545
1557
|
"stop-color": `${e.shiftHue(l.color, 0.02)}`
|
|
1546
|
-
}, null, 8,
|
|
1558
|
+
}, null, 8, xt),
|
|
1547
1559
|
f("stop", {
|
|
1548
1560
|
offset: "100%",
|
|
1549
1561
|
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1550
|
-
}, null, 8,
|
|
1551
|
-
], 8,
|
|
1562
|
+
}, null, 8, mt)
|
|
1563
|
+
], 8, It),
|
|
1552
1564
|
f("linearGradient", {
|
|
1553
|
-
id: `rectGradient_neg_${
|
|
1565
|
+
id: `rectGradient_neg_${n}_${r.uniqueId}`,
|
|
1554
1566
|
x2: "0%",
|
|
1555
1567
|
y2: "100%"
|
|
1556
1568
|
}, [
|
|
1557
1569
|
f("stop", {
|
|
1558
1570
|
offset: "0%",
|
|
1559
1571
|
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1560
|
-
}, null, 8,
|
|
1572
|
+
}, null, 8, Ft),
|
|
1561
1573
|
f("stop", {
|
|
1562
1574
|
offset: "38%",
|
|
1563
1575
|
"stop-color": `${e.shiftHue(l.color, 0.02)}`
|
|
1564
|
-
}, null, 8,
|
|
1576
|
+
}, null, 8, _t),
|
|
1565
1577
|
f("stop", {
|
|
1566
1578
|
offset: "100%",
|
|
1567
1579
|
"stop-color": l.color
|
|
1568
|
-
}, null, 8,
|
|
1569
|
-
], 8,
|
|
1580
|
+
}, null, 8, yt)
|
|
1581
|
+
], 8, bt)
|
|
1570
1582
|
]))), 128)),
|
|
1571
|
-
(a(!0), i(d, null, I(e.plotSet, (l,
|
|
1572
|
-
key: `def_plot_${
|
|
1583
|
+
(a(!0), i(d, null, I(e.plotSet, (l, n) => (a(), i("defs", {
|
|
1584
|
+
key: `def_plot_${n}`
|
|
1573
1585
|
}, [
|
|
1574
1586
|
f("radialGradient", {
|
|
1575
|
-
id: `plotGradient_${
|
|
1587
|
+
id: `plotGradient_${n}_${r.uniqueId}`,
|
|
1576
1588
|
cx: "50%",
|
|
1577
1589
|
cy: "50%",
|
|
1578
1590
|
r: "50%",
|
|
@@ -1582,18 +1594,18 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1582
1594
|
f("stop", {
|
|
1583
1595
|
offset: "0%",
|
|
1584
1596
|
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1585
|
-
}, null, 8,
|
|
1597
|
+
}, null, 8, Lt),
|
|
1586
1598
|
f("stop", {
|
|
1587
1599
|
offset: "100%",
|
|
1588
1600
|
"stop-color": l.color
|
|
1589
|
-
}, null, 8,
|
|
1590
|
-
], 8,
|
|
1601
|
+
}, null, 8, Ct)
|
|
1602
|
+
], 8, At)
|
|
1591
1603
|
]))), 128)),
|
|
1592
|
-
(a(!0), i(d, null, I(e.lineSet, (l,
|
|
1593
|
-
key: `def_line_${
|
|
1604
|
+
(a(!0), i(d, null, I(e.lineSet, (l, n) => (a(), i("defs", {
|
|
1605
|
+
key: `def_line_${n}`
|
|
1594
1606
|
}, [
|
|
1595
1607
|
f("radialGradient", {
|
|
1596
|
-
id: `lineGradient_${
|
|
1608
|
+
id: `lineGradient_${n}_${r.uniqueId}`,
|
|
1597
1609
|
cx: "50%",
|
|
1598
1610
|
cy: "50%",
|
|
1599
1611
|
r: "50%",
|
|
@@ -1603,14 +1615,14 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1603
1615
|
f("stop", {
|
|
1604
1616
|
offset: "0%",
|
|
1605
1617
|
"stop-color": `${e.shiftHue(l.color, 0.05)}`
|
|
1606
|
-
}, null, 8,
|
|
1618
|
+
}, null, 8, kt),
|
|
1607
1619
|
f("stop", {
|
|
1608
1620
|
offset: "100%",
|
|
1609
1621
|
"stop-color": l.color
|
|
1610
|
-
}, null, 8,
|
|
1611
|
-
], 8,
|
|
1622
|
+
}, null, 8, wt)
|
|
1623
|
+
], 8, St),
|
|
1612
1624
|
f("linearGradient", {
|
|
1613
|
-
id: `areaGradient_${
|
|
1625
|
+
id: `areaGradient_${n}_${r.uniqueId}`,
|
|
1614
1626
|
x1: "0%",
|
|
1615
1627
|
x2: "100%",
|
|
1616
1628
|
y1: "0%",
|
|
@@ -1619,17 +1631,17 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1619
1631
|
f("stop", {
|
|
1620
1632
|
offset: "0%",
|
|
1621
1633
|
"stop-color": `${e.setOpacity(e.shiftHue(l.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1622
|
-
}, null, 8,
|
|
1634
|
+
}, null, 8, Gt),
|
|
1623
1635
|
f("stop", {
|
|
1624
1636
|
offset: "100%",
|
|
1625
1637
|
"stop-color": `${e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1626
|
-
}, null, 8,
|
|
1627
|
-
], 8,
|
|
1638
|
+
}, null, 8, vt)
|
|
1639
|
+
], 8, Ot)
|
|
1628
1640
|
]))), 128)),
|
|
1629
1641
|
(a(!0), i(d, null, I(e.highlightAreas, (l) => (a(), i("g", null, [
|
|
1630
|
-
l.show ? (a(!0), i(d, { key: 0 }, I(l.span, (
|
|
1642
|
+
l.show ? (a(!0), i(d, { key: 0 }, I(l.span, (n, s) => (a(), i("g", null, [
|
|
1631
1643
|
f("rect", {
|
|
1632
|
-
style:
|
|
1644
|
+
style: y({
|
|
1633
1645
|
transition: "none",
|
|
1634
1646
|
opacity: l.from + s >= r.slicer.start && l.from + s <= r.slicer.end - 1 ? 1 : 0
|
|
1635
1647
|
}),
|
|
@@ -1638,12 +1650,12 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1638
1650
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1639
1651
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1640
1652
|
fill: e.setOpacity(l.color, l.opacity)
|
|
1641
|
-
}, null, 12,
|
|
1653
|
+
}, null, 12, pt),
|
|
1642
1654
|
l.caption.text && s === 0 ? (a(), i("foreignObject", {
|
|
1643
1655
|
key: 0,
|
|
1644
1656
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (l.from + s - r.slicer.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - e.drawingArea.width / e.maxSeries * l.span / 2),
|
|
1645
1657
|
y: e.drawingArea.top + l.caption.offsetY,
|
|
1646
|
-
style:
|
|
1658
|
+
style: y({
|
|
1647
1659
|
overflow: "visible",
|
|
1648
1660
|
opacity: l.to >= r.slicer.start && l.from < r.slicer.end ? 1 : 0
|
|
1649
1661
|
}),
|
|
@@ -1651,31 +1663,31 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1651
1663
|
width: l.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * l.span : l.caption.width
|
|
1652
1664
|
}, [
|
|
1653
1665
|
f("div", {
|
|
1654
|
-
style:
|
|
1666
|
+
style: y(`padding:${l.caption.padding}px;text-align:${l.caption.textAlign};font-size:${l.caption.fontSize}px;color:${l.caption.color};font-weight:${l.caption.bold ? "bold" : "normal"}`)
|
|
1655
1667
|
}, T(l.caption.text), 5)
|
|
1656
|
-
], 12,
|
|
1657
|
-
]))), 256)) :
|
|
1668
|
+
], 12, zt)) : h("", !0)
|
|
1669
|
+
]))), 256)) : h("", !0)
|
|
1658
1670
|
]))), 256)),
|
|
1659
1671
|
f("g", null, [
|
|
1660
|
-
(a(!0), i(d, null, I(e.maxSeries, (l,
|
|
1661
|
-
key: `tooltip_trap_highlighter_${
|
|
1672
|
+
(a(!0), i(d, null, I(e.maxSeries, (l, n) => (a(), i("g", {
|
|
1673
|
+
key: `tooltip_trap_highlighter_${n}`
|
|
1662
1674
|
}, [
|
|
1663
1675
|
f("rect", {
|
|
1664
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1676
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * n,
|
|
1665
1677
|
y: e.drawingArea.top,
|
|
1666
1678
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1667
1679
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1668
|
-
fill: [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(
|
|
1680
|
+
fill: [r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(n) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1669
1681
|
}, null, 8, Mt)
|
|
1670
1682
|
]))), 128))
|
|
1671
1683
|
]),
|
|
1672
|
-
e.barSet.length ? (a(!0), i(d, { key: 0 }, I(e.barSet, (l,
|
|
1673
|
-
key: `serie_bar_${
|
|
1674
|
-
class: E(`serie_bar_${
|
|
1675
|
-
style:
|
|
1684
|
+
e.barSet.length ? (a(!0), i(d, { key: 0 }, I(e.barSet, (l, n) => (a(), i("g", {
|
|
1685
|
+
key: `serie_bar_${n}`,
|
|
1686
|
+
class: E(`serie_bar_${n}`),
|
|
1687
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1676
1688
|
}, [
|
|
1677
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
1678
|
-
key: `bar_plot_${
|
|
1689
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i("g", {
|
|
1690
|
+
key: `bar_plot_${n}_${o}`
|
|
1679
1691
|
}, [
|
|
1680
1692
|
e.canShowValue(s.value) ? (a(), i("rect", {
|
|
1681
1693
|
key: 0,
|
|
@@ -1684,10 +1696,10 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1684
1696
|
height: r.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
|
|
1685
1697
|
width: e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1686
1698
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1687
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? s.value >= 0 ? `url(#rectGradient_pos_${
|
|
1699
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? s.value >= 0 ? `url(#rectGradient_pos_${n}_${r.uniqueId})` : `url(#rectGradient_neg_${n}_${r.uniqueId})` : l.color,
|
|
1688
1700
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? l.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1689
1701
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1690
|
-
}, null, 8,
|
|
1702
|
+
}, null, 8, Tt)) : h("", !0),
|
|
1691
1703
|
e.canShowValue(s.value) && t.$slots.pattern ? (a(), i("rect", {
|
|
1692
1704
|
key: 1,
|
|
1693
1705
|
x: e.calcRectX(s),
|
|
@@ -1698,7 +1710,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1698
1710
|
fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`,
|
|
1699
1711
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? l.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1700
1712
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1701
|
-
}, null, 8,
|
|
1713
|
+
}, null, 8, Pt)) : h("", !0),
|
|
1702
1714
|
s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
|
|
1703
1715
|
key: 2,
|
|
1704
1716
|
style: { overflow: "visible" },
|
|
@@ -1708,14 +1720,14 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1708
1720
|
y: e.checkNaN(s.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1709
1721
|
}, [
|
|
1710
1722
|
p(t.$slots, "plot-comment", {
|
|
1711
|
-
plot: { ...s, color: l.color, seriesIndex:
|
|
1723
|
+
plot: { ...s, color: l.color, seriesIndex: n, datapointIndex: o }
|
|
1712
1724
|
}, void 0, !0)
|
|
1713
|
-
], 8,
|
|
1725
|
+
], 8, Vt)) : h("", !0)
|
|
1714
1726
|
]))), 128)),
|
|
1715
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g",
|
|
1727
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", Rt, [
|
|
1716
1728
|
f("defs", null, [
|
|
1717
1729
|
f("marker", {
|
|
1718
|
-
id: `bar_arrow_${
|
|
1730
|
+
id: `bar_arrow_${n}`,
|
|
1719
1731
|
markerWidth: 7,
|
|
1720
1732
|
markerHeight: 7,
|
|
1721
1733
|
refX: "0",
|
|
@@ -1725,8 +1737,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1725
1737
|
f("polygon", {
|
|
1726
1738
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1727
1739
|
fill: l.color
|
|
1728
|
-
}, null, 8,
|
|
1729
|
-
], 8,
|
|
1740
|
+
}, null, 8, Dt)
|
|
1741
|
+
], 8, Ht)
|
|
1730
1742
|
]),
|
|
1731
1743
|
l.plots.length > 1 ? (a(), i("line", {
|
|
1732
1744
|
key: 0,
|
|
@@ -1737,8 +1749,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1737
1749
|
"stroke-width": 1,
|
|
1738
1750
|
stroke: l.color,
|
|
1739
1751
|
"stroke-dasharray": 2,
|
|
1740
|
-
"marker-end": `url(#bar_arrow_${
|
|
1741
|
-
}, null, 8,
|
|
1752
|
+
"marker-end": `url(#bar_arrow_${n})`
|
|
1753
|
+
}, null, 8, Wt)) : h("", !0),
|
|
1742
1754
|
l.plots.length > 1 ? (a(), i("text", {
|
|
1743
1755
|
key: 1,
|
|
1744
1756
|
"text-anchor": "middle",
|
|
@@ -1750,9 +1762,9 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1750
1762
|
v: e.calcLinearProgression(l.plots).trend * 100,
|
|
1751
1763
|
s: "%",
|
|
1752
1764
|
r: 2
|
|
1753
|
-
})), 9,
|
|
1754
|
-
])) :
|
|
1755
|
-
], 6))), 128)) :
|
|
1765
|
+
})), 9, Bt)) : h("", !0)
|
|
1766
|
+
])) : h("", !0)
|
|
1767
|
+
], 6))), 128)) : h("", !0),
|
|
1756
1768
|
!r.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), i("line", {
|
|
1757
1769
|
key: 1,
|
|
1758
1770
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1763,8 +1775,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1763
1775
|
y2: e.forceValidValue(e.zero),
|
|
1764
1776
|
"stroke-linecap": "round",
|
|
1765
1777
|
style: { animation: "none !important" }
|
|
1766
|
-
}, null, 8,
|
|
1767
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (a(), i("g",
|
|
1778
|
+
}, null, 8, Et)) : h("", !0),
|
|
1779
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (a(), i("g", Yt, [
|
|
1768
1780
|
f("line", {
|
|
1769
1781
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1770
1782
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1775,8 +1787,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1775
1787
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1776
1788
|
"stroke-linecap": "round",
|
|
1777
1789
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1778
|
-
}, null, 8,
|
|
1779
|
-
])) :
|
|
1790
|
+
}, null, 8, qt)
|
|
1791
|
+
])) : h("", !0),
|
|
1780
1792
|
e.FINAL_CONFIG.chart.grid.frame.show ? (a(), i("rect", {
|
|
1781
1793
|
key: 3,
|
|
1782
1794
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
@@ -1790,8 +1802,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1790
1802
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1791
1803
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1792
1804
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1793
|
-
}, null, 8,
|
|
1794
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), i("g",
|
|
1805
|
+
}, null, 8, Xt)) : h("", !0),
|
|
1806
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (a(), i("g", Ut, [
|
|
1795
1807
|
r.mutableConfig.useIndividualScale ? (a(), i(d, { key: 0 }, [
|
|
1796
1808
|
(a(!0), i(d, null, I(e.allScales, (l) => (a(), i("g", null, [
|
|
1797
1809
|
f("line", {
|
|
@@ -1802,51 +1814,51 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1802
1814
|
stroke: l.color,
|
|
1803
1815
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1804
1816
|
"stroke-linecap": "round",
|
|
1805
|
-
style:
|
|
1806
|
-
}, null, 12,
|
|
1817
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1818
|
+
}, null, 12, Zt)
|
|
1807
1819
|
]))), 256)),
|
|
1808
1820
|
(a(!0), i(d, null, I(e.allScales, (l) => (a(), i("g", {
|
|
1809
|
-
style:
|
|
1821
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1810
1822
|
}, [
|
|
1811
1823
|
f("text", {
|
|
1812
1824
|
fill: l.color,
|
|
1813
1825
|
"font-size": r.fontSizes.dataLabels,
|
|
1814
1826
|
"text-anchor": "middle",
|
|
1815
1827
|
transform: `translate(${l.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${r.mutableConfig.isStacked ? e.drawingArea.bottom - l.yOffset - l.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1816
|
-
}, T(l.name) + " " + T(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9,
|
|
1817
|
-
(a(!0), i(d, null, I(l.yLabels, (
|
|
1828
|
+
}, T(l.name) + " " + T(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9, Kt),
|
|
1829
|
+
(a(!0), i(d, null, I(l.yLabels, (n, s) => (a(), i(d, null, [
|
|
1818
1830
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), i("line", {
|
|
1819
1831
|
key: 0,
|
|
1820
1832
|
x1: l.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
|
|
1821
1833
|
x2: l.x + e.xPadding,
|
|
1822
|
-
y1: e.forceValidValue(
|
|
1823
|
-
y2: e.forceValidValue(
|
|
1834
|
+
y1: e.forceValidValue(n.y),
|
|
1835
|
+
y2: e.forceValidValue(n.y),
|
|
1824
1836
|
stroke: l.color,
|
|
1825
1837
|
"stroke-width": 1,
|
|
1826
1838
|
"stroke-linecap": "round",
|
|
1827
1839
|
style: { animation: "none !important" }
|
|
1828
|
-
}, null, 8,
|
|
1840
|
+
}, null, 8, Qt)) : h("", !0)
|
|
1829
1841
|
], 64))), 256)),
|
|
1830
|
-
(a(!0), i(d, null, I(l.yLabels, (
|
|
1842
|
+
(a(!0), i(d, null, I(l.yLabels, (n, s) => (a(), i("text", {
|
|
1831
1843
|
x: l.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1832
|
-
y: e.forceValidValue(
|
|
1844
|
+
y: e.forceValidValue(n.y) + r.fontSizes.dataLabels / 3,
|
|
1833
1845
|
"font-size": r.fontSizes.dataLabels,
|
|
1834
1846
|
"text-anchor": "end",
|
|
1835
1847
|
fill: l.color
|
|
1836
1848
|
}, T(e.applyDataLabel(
|
|
1837
1849
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1838
|
-
|
|
1850
|
+
n.value,
|
|
1839
1851
|
e.dataLabel({
|
|
1840
|
-
p:
|
|
1841
|
-
v:
|
|
1842
|
-
s:
|
|
1852
|
+
p: n.prefix,
|
|
1853
|
+
v: n.value,
|
|
1854
|
+
s: n.suffix,
|
|
1843
1855
|
r: 1
|
|
1844
1856
|
}),
|
|
1845
|
-
{ datapoint:
|
|
1846
|
-
)), 9,
|
|
1857
|
+
{ datapoint: n.datapoint, seriesIndex: s }
|
|
1858
|
+
)), 9, Jt))), 256))
|
|
1847
1859
|
], 4))), 256))
|
|
1848
|
-
], 64)) : (a(!0), i(d, { key: 1 }, I(e.yLabels, (l,
|
|
1849
|
-
key: `yLabel_${
|
|
1860
|
+
], 64)) : (a(!0), i(d, { key: 1 }, I(e.yLabels, (l, n) => (a(), i("g", {
|
|
1861
|
+
key: `yLabel_${n}`
|
|
1850
1862
|
}, [
|
|
1851
1863
|
e.canShowValue(l) && l.value >= e.niceScale.min && l.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (a(), i("line", {
|
|
1852
1864
|
key: 0,
|
|
@@ -1858,7 +1870,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1858
1870
|
"stroke-width": "1",
|
|
1859
1871
|
"stroke-linecap": "round",
|
|
1860
1872
|
style: { animation: "none !important" }
|
|
1861
|
-
}, null, 8,
|
|
1873
|
+
}, null, 8, jt)) : h("", !0),
|
|
1862
1874
|
l.value >= e.niceScale.min && l.value <= e.niceScale.max ? (a(), i("text", {
|
|
1863
1875
|
key: 1,
|
|
1864
1876
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
@@ -1875,26 +1887,26 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1875
1887
|
s: l.suffix,
|
|
1876
1888
|
r: 1
|
|
1877
1889
|
})
|
|
1878
|
-
) : ""), 9,
|
|
1890
|
+
) : ""), 9, $t)) : h("", !0)
|
|
1879
1891
|
]))), 128))
|
|
1880
|
-
])) :
|
|
1881
|
-
(a(!0), i(d, null, I(e.plotSet, (l,
|
|
1882
|
-
key: `serie_plot_${
|
|
1883
|
-
class: E(`serie_plot_${
|
|
1884
|
-
style:
|
|
1892
|
+
])) : h("", !0),
|
|
1893
|
+
(a(!0), i(d, null, I(e.plotSet, (l, n) => (a(), i("g", {
|
|
1894
|
+
key: `serie_plot_${n}`,
|
|
1895
|
+
class: E(`serie_plot_${n}`),
|
|
1896
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1885
1897
|
}, [
|
|
1886
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
1887
|
-
key: `circle_plot_${
|
|
1898
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i("g", {
|
|
1899
|
+
key: `circle_plot_${n}_${o}`
|
|
1888
1900
|
}, [
|
|
1889
1901
|
s && e.canShowValue(s.value) ? (a(), W(k, {
|
|
1890
1902
|
key: 0,
|
|
1891
1903
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
1892
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1904
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${n}_${r.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? l.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1893
1905
|
plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
|
|
1894
|
-
radius: r.selectedSerieIndex !== null && r.selectedSerieIndex ===
|
|
1906
|
+
radius: r.selectedSerieIndex !== null && r.selectedSerieIndex === o || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === o ? (r.plotRadii.plot || 6) * 1.5 : r.plotRadii.plot || 6,
|
|
1895
1907
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : l.color,
|
|
1896
1908
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1897
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1909
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : h("", !0),
|
|
1898
1910
|
s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
|
|
1899
1911
|
key: 1,
|
|
1900
1912
|
style: { overflow: "visible" },
|
|
@@ -1903,17 +1915,17 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1903
1915
|
x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1904
1916
|
y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1905
1917
|
}, [
|
|
1906
|
-
f("div",
|
|
1918
|
+
f("div", tl, [
|
|
1907
1919
|
p(t.$slots, "plot-comment", {
|
|
1908
|
-
plot: { ...s, color: l.color, seriesIndex:
|
|
1920
|
+
plot: { ...s, color: l.color, seriesIndex: n, datapointIndex: o }
|
|
1909
1921
|
}, void 0, !0)
|
|
1910
1922
|
])
|
|
1911
|
-
], 8,
|
|
1923
|
+
], 8, el)) : h("", !0)
|
|
1912
1924
|
]))), 128)),
|
|
1913
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g",
|
|
1925
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", ll, [
|
|
1914
1926
|
f("defs", null, [
|
|
1915
1927
|
f("marker", {
|
|
1916
|
-
id: `plot_arrow_${
|
|
1928
|
+
id: `plot_arrow_${n}`,
|
|
1917
1929
|
markerWidth: 7,
|
|
1918
1930
|
markerHeight: 7,
|
|
1919
1931
|
refX: "0",
|
|
@@ -1923,8 +1935,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1923
1935
|
f("polygon", {
|
|
1924
1936
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1925
1937
|
fill: l.color
|
|
1926
|
-
}, null, 8,
|
|
1927
|
-
], 8,
|
|
1938
|
+
}, null, 8, al)
|
|
1939
|
+
], 8, rl)
|
|
1928
1940
|
]),
|
|
1929
1941
|
l.plots.length > 1 ? (a(), i("line", {
|
|
1930
1942
|
key: 0,
|
|
@@ -1935,8 +1947,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1935
1947
|
"stroke-width": 1,
|
|
1936
1948
|
stroke: l.color,
|
|
1937
1949
|
"stroke-dasharray": 2,
|
|
1938
|
-
"marker-end": `url(#plot_arrow_${
|
|
1939
|
-
}, null, 8,
|
|
1950
|
+
"marker-end": `url(#plot_arrow_${n})`
|
|
1951
|
+
}, null, 8, il)) : h("", !0),
|
|
1940
1952
|
l.plots.length > 1 ? (a(), i("text", {
|
|
1941
1953
|
key: 1,
|
|
1942
1954
|
"text-anchor": "middle",
|
|
@@ -1948,13 +1960,13 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1948
1960
|
v: e.calcLinearProgression(l.plots).trend * 100,
|
|
1949
1961
|
s: "%",
|
|
1950
1962
|
r: 2
|
|
1951
|
-
})), 9,
|
|
1952
|
-
])) :
|
|
1963
|
+
})), 9, sl)) : h("", !0)
|
|
1964
|
+
])) : h("", !0)
|
|
1953
1965
|
], 6))), 128)),
|
|
1954
|
-
(a(!0), i(d, null, I(e.lineSet, (l,
|
|
1955
|
-
key: `serie_line_${
|
|
1956
|
-
class: E(`serie_line_${
|
|
1957
|
-
style:
|
|
1966
|
+
(a(!0), i(d, null, I(e.lineSet, (l, n) => (a(), i("g", {
|
|
1967
|
+
key: `serie_line_${n}`,
|
|
1968
|
+
class: E(`serie_line_${n}`),
|
|
1969
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1958
1970
|
}, [
|
|
1959
1971
|
l.smooth && l.plots.length > 1 && l.curve ? (a(), i("path", {
|
|
1960
1972
|
key: 0,
|
|
@@ -1963,7 +1975,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1963
1975
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1964
1976
|
"stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1965
1977
|
fill: "none"
|
|
1966
|
-
}, null, 8,
|
|
1978
|
+
}, null, 8, nl)) : l.plots.length > 1 && l.straight ? (a(), i("path", {
|
|
1967
1979
|
key: 1,
|
|
1968
1980
|
d: `M${l.straight}`,
|
|
1969
1981
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1972,41 +1984,41 @@ function Mr(t, n, o, g, r, e) {
|
|
|
1972
1984
|
fill: "none",
|
|
1973
1985
|
"stroke-linecap": "round",
|
|
1974
1986
|
"stroke-linejoin": "round"
|
|
1975
|
-
}, null, 8,
|
|
1987
|
+
}, null, 8, cl)) : h("", !0)
|
|
1976
1988
|
], 6))), 128)),
|
|
1977
|
-
t.$slots.pattern ? (a(), i("defs",
|
|
1978
|
-
(a(!0), i(d, null, I(e.safeDataset, (l,
|
|
1979
|
-
key: `serie_pattern_slot_${
|
|
1980
|
-
}, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${r.uniqueId}_${
|
|
1981
|
-
])) :
|
|
1982
|
-
(a(!0), i(d, null, I(e.lineSet, (l,
|
|
1983
|
-
key: `serie_line_${
|
|
1984
|
-
class: E(`serie_line_${
|
|
1985
|
-
style:
|
|
1989
|
+
t.$slots.pattern ? (a(), i("defs", ol, [
|
|
1990
|
+
(a(!0), i(d, null, I(e.safeDataset, (l, n) => p(t.$slots, "pattern", Q({
|
|
1991
|
+
key: `serie_pattern_slot_${n}`
|
|
1992
|
+
}, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${r.uniqueId}_${n}` }), void 0, !0)), 128))
|
|
1993
|
+
])) : h("", !0),
|
|
1994
|
+
(a(!0), i(d, null, I(e.lineSet, (l, n) => (a(), i("g", {
|
|
1995
|
+
key: `serie_line_${n}`,
|
|
1996
|
+
class: E(`serie_line_${n}`),
|
|
1997
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1986
1998
|
}, [
|
|
1987
|
-
l.useArea && l.plots.length > 1 ? (a(), i("g",
|
|
1988
|
-
l.smooth ? (a(!0), i(d, { key: 0 }, I(l.curveAreas, (s,
|
|
1999
|
+
l.useArea && l.plots.length > 1 ? (a(), i("g", hl, [
|
|
2000
|
+
l.smooth ? (a(!0), i(d, { key: 0 }, I(l.curveAreas, (s, o) => (a(), i(d, { key: o }, [
|
|
1989
2001
|
f("path", {
|
|
1990
2002
|
d: s,
|
|
1991
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1992
|
-
}, null, 8,
|
|
2003
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${n}_${r.uniqueId})` : e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2004
|
+
}, null, 8, ul),
|
|
1993
2005
|
t.$slots.pattern ? (a(), i("path", {
|
|
1994
2006
|
key: 0,
|
|
1995
2007
|
d: s,
|
|
1996
2008
|
fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`
|
|
1997
|
-
}, null, 8,
|
|
1998
|
-
], 64))), 128)) : (a(!0), i(d, { key: 1 }, I(l.area.split(";"), (s,
|
|
2009
|
+
}, null, 8, dl)) : h("", !0)
|
|
2010
|
+
], 64))), 128)) : (a(!0), i(d, { key: 1 }, I(l.area.split(";"), (s, o) => (a(), i(d, { key: o }, [
|
|
1999
2011
|
f("path", {
|
|
2000
2012
|
d: `M${s}Z`,
|
|
2001
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
2002
|
-
}, null, 8,
|
|
2013
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${n}_${r.uniqueId})` : e.setOpacity(l.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2014
|
+
}, null, 8, gl),
|
|
2003
2015
|
t.$slots.pattern ? (a(), i("path", {
|
|
2004
2016
|
key: 0,
|
|
2005
2017
|
d: `M${s}Z`,
|
|
2006
2018
|
fill: `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})`
|
|
2007
|
-
}, null, 8,
|
|
2019
|
+
}, null, 8, fl)) : h("", !0)
|
|
2008
2020
|
], 64))), 128))
|
|
2009
|
-
])) :
|
|
2021
|
+
])) : h("", !0),
|
|
2010
2022
|
l.smooth && l.plots.length > 1 && l.curve ? (a(), i("path", {
|
|
2011
2023
|
key: 1,
|
|
2012
2024
|
d: `M${l.curve}`,
|
|
@@ -2015,7 +2027,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2015
2027
|
"stroke-dasharray": l.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
2016
2028
|
fill: "none",
|
|
2017
2029
|
"stroke-linecap": "round"
|
|
2018
|
-
}, null, 8,
|
|
2030
|
+
}, null, 8, Il)) : l.plots.length > 1 && l.straight ? (a(), i("path", {
|
|
2019
2031
|
key: 2,
|
|
2020
2032
|
d: `M${l.straight}`,
|
|
2021
2033
|
stroke: l.color,
|
|
@@ -2024,19 +2036,19 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2024
2036
|
fill: "none",
|
|
2025
2037
|
"stroke-linecap": "round",
|
|
2026
2038
|
"stroke-linejoin": "round"
|
|
2027
|
-
}, null, 8,
|
|
2028
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2029
|
-
key: `circle_line_${
|
|
2039
|
+
}, null, 8, Nl)) : h("", !0),
|
|
2040
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2041
|
+
key: `circle_line_${n}_${o}`
|
|
2030
2042
|
}, [
|
|
2031
|
-
!e.optimize.linePlot && s && e.canShowValue(s.value) || e.optimize.linePlot && s && e.canShowValue(s.value) && (r.selectedSerieIndex !== null && r.selectedSerieIndex ===
|
|
2043
|
+
!e.optimize.linePlot && s && e.canShowValue(s.value) || e.optimize.linePlot && s && e.canShowValue(s.value) && (r.selectedSerieIndex !== null && r.selectedSerieIndex === o || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === o) ? (a(), W(k, {
|
|
2032
2044
|
key: 0,
|
|
2033
2045
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
2034
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
2046
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${n}_${r.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? l.color : e.FINAL_CONFIG.line.dot.fill,
|
|
2035
2047
|
plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
|
|
2036
|
-
radius: r.selectedSerieIndex !== null && r.selectedSerieIndex ===
|
|
2048
|
+
radius: r.selectedSerieIndex !== null && r.selectedSerieIndex === o || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === o ? (r.plotRadii.line || 6) * 1.5 : r.plotRadii.line || 6,
|
|
2037
2049
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : l.color,
|
|
2038
2050
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
2039
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
2051
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : h("", !0),
|
|
2040
2052
|
s.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), i("foreignObject", {
|
|
2041
2053
|
key: 1,
|
|
2042
2054
|
style: { overflow: "visible" },
|
|
@@ -2045,17 +2057,17 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2045
2057
|
x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
2046
2058
|
y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
2047
2059
|
}, [
|
|
2048
|
-
f("div",
|
|
2060
|
+
f("div", ml, [
|
|
2049
2061
|
p(t.$slots, "plot-comment", {
|
|
2050
|
-
plot: { ...s, color: l.color, seriesIndex:
|
|
2062
|
+
plot: { ...s, color: l.color, seriesIndex: n, datapointIndex: o }
|
|
2051
2063
|
}, void 0, !0)
|
|
2052
2064
|
])
|
|
2053
|
-
], 8,
|
|
2065
|
+
], 8, xl)) : h("", !0)
|
|
2054
2066
|
], 64))), 128)),
|
|
2055
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g",
|
|
2067
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(e.calcLinearProgression(l.plots).trend) ? (a(), i("g", bl, [
|
|
2056
2068
|
f("defs", null, [
|
|
2057
2069
|
f("marker", {
|
|
2058
|
-
id: `line_arrow_${
|
|
2070
|
+
id: `line_arrow_${n}`,
|
|
2059
2071
|
markerWidth: 7,
|
|
2060
2072
|
markerHeight: 7,
|
|
2061
2073
|
refX: "0",
|
|
@@ -2065,8 +2077,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2065
2077
|
f("polygon", {
|
|
2066
2078
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2067
2079
|
fill: l.color
|
|
2068
|
-
}, null, 8,
|
|
2069
|
-
], 8,
|
|
2080
|
+
}, null, 8, _l)
|
|
2081
|
+
], 8, Fl)
|
|
2070
2082
|
]),
|
|
2071
2083
|
l.plots.length > 1 ? (a(), i("line", {
|
|
2072
2084
|
key: 0,
|
|
@@ -2077,8 +2089,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2077
2089
|
"stroke-width": 1,
|
|
2078
2090
|
stroke: l.color,
|
|
2079
2091
|
"stroke-dasharray": 2,
|
|
2080
|
-
"marker-end": `url(#line_arrow_${
|
|
2081
|
-
}, null, 8,
|
|
2092
|
+
"marker-end": `url(#line_arrow_${n})`
|
|
2093
|
+
}, null, 8, yl)) : h("", !0),
|
|
2082
2094
|
l.plots.length > 1 ? (a(), i("text", {
|
|
2083
2095
|
key: 1,
|
|
2084
2096
|
"text-anchor": "middle",
|
|
@@ -2090,24 +2102,24 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2090
2102
|
v: e.calcLinearProgression(l.plots).trend * 100,
|
|
2091
2103
|
s: "%",
|
|
2092
2104
|
r: 2
|
|
2093
|
-
})), 9,
|
|
2094
|
-
])) :
|
|
2105
|
+
})), 9, Al)) : h("", !0)
|
|
2106
|
+
])) : h("", !0)
|
|
2095
2107
|
], 6))), 128)),
|
|
2096
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && r.mutableConfig.dataLabels.show ? (a(), i("g",
|
|
2097
|
-
(a(!0), i(d, null, I(e.barSet, (l,
|
|
2098
|
-
key: `xLabel_bar_${
|
|
2108
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && r.mutableConfig.dataLabels.show ? (a(), i("g", Ll, [
|
|
2109
|
+
(a(!0), i(d, null, I(e.barSet, (l, n) => (a(), i(d, {
|
|
2110
|
+
key: `xLabel_bar_${n}`
|
|
2099
2111
|
}, [
|
|
2100
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2101
|
-
key: `xLabel_bar_${
|
|
2112
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2113
|
+
key: `xLabel_bar_${n}_${o}`
|
|
2102
2114
|
}, [
|
|
2103
|
-
s && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex ===
|
|
2115
|
+
s && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === o || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === o) && e.FINAL_CONFIG.bar.labels.show ? (a(), i("text", {
|
|
2104
2116
|
key: 0,
|
|
2105
2117
|
x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? s.x + e.slot.line / 2 : e.calcRectX(s) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
2106
2118
|
y: e.checkNaN(s.y) + (s.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
2107
2119
|
"text-anchor": "middle",
|
|
2108
2120
|
"font-size": r.fontSizes.plotLabels,
|
|
2109
2121
|
fill: e.FINAL_CONFIG.bar.labels.color,
|
|
2110
|
-
style:
|
|
2122
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2111
2123
|
}, T(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
2112
2124
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
2113
2125
|
s.value,
|
|
@@ -2121,7 +2133,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2121
2133
|
datapoint: s,
|
|
2122
2134
|
serie: l
|
|
2123
2135
|
}
|
|
2124
|
-
) : ""), 13,
|
|
2136
|
+
) : ""), 13, Cl)) : h("", !0),
|
|
2125
2137
|
s && e.FINAL_CONFIG.bar.serieName.show ? (a(), i("text", {
|
|
2126
2138
|
key: 1,
|
|
2127
2139
|
x: r.mutableConfig.useIndividualScale && r.mutableConfig.isStacked ? s.x + e.slot.line / 2 : s.x + e.calcRectWidth() * 1.1,
|
|
@@ -2130,26 +2142,26 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2130
2142
|
"font-size": r.fontSizes.plotLabels,
|
|
2131
2143
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? l.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2132
2144
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2133
|
-
style:
|
|
2134
|
-
}, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: l.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : l.name), 13,
|
|
2145
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2146
|
+
}, T(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: l.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : l.name), 13, Sl)) : h("", !0)
|
|
2135
2147
|
], 64))), 128))
|
|
2136
2148
|
], 64))), 128))
|
|
2137
|
-
])) :
|
|
2138
|
-
e.FINAL_CONFIG.plot.labels.show && r.mutableConfig.dataLabels.show ? (a(), i("g",
|
|
2139
|
-
(a(!0), i(d, null, I(e.plotSet, (l,
|
|
2140
|
-
key: `xLabel_plot_${
|
|
2149
|
+
])) : h("", !0),
|
|
2150
|
+
e.FINAL_CONFIG.plot.labels.show && r.mutableConfig.dataLabels.show ? (a(), i("g", kl, [
|
|
2151
|
+
(a(!0), i(d, null, I(e.plotSet, (l, n) => (a(), i(d, {
|
|
2152
|
+
key: `xLabel_plot_${n}`
|
|
2141
2153
|
}, [
|
|
2142
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2143
|
-
key: `xLabel_plot_${
|
|
2154
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2155
|
+
key: `xLabel_plot_${n}_${o}`
|
|
2144
2156
|
}, [
|
|
2145
|
-
s && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex ===
|
|
2157
|
+
s && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === o || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === o ? (a(), i("text", {
|
|
2146
2158
|
key: 0,
|
|
2147
2159
|
x: s.x,
|
|
2148
2160
|
y: s.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
2149
2161
|
"text-anchor": "middle",
|
|
2150
2162
|
"font-size": r.fontSizes.plotLabels,
|
|
2151
2163
|
fill: e.FINAL_CONFIG.plot.labels.color,
|
|
2152
|
-
style:
|
|
2164
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2153
2165
|
}, T(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
2154
2166
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
2155
2167
|
s.value,
|
|
@@ -2163,18 +2175,18 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2163
2175
|
datapoint: s,
|
|
2164
2176
|
serie: l
|
|
2165
2177
|
}
|
|
2166
|
-
) : ""), 13,
|
|
2178
|
+
) : ""), 13, wl)) : h("", !0)
|
|
2167
2179
|
], 64))), 128))
|
|
2168
2180
|
], 64))), 128))
|
|
2169
|
-
])) : (a(), i("g",
|
|
2170
|
-
(a(!0), i(d, null, I(e.plotSet, (l,
|
|
2171
|
-
key: `xLabel_plot_${
|
|
2181
|
+
])) : (a(), i("g", Ol, [
|
|
2182
|
+
(a(!0), i(d, null, I(e.plotSet, (l, n) => (a(), i(d, {
|
|
2183
|
+
key: `xLabel_plot_${n}`
|
|
2172
2184
|
}, [
|
|
2173
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2174
|
-
key: `xLabel_plot_${
|
|
2185
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2186
|
+
key: `xLabel_plot_${n}_${o}`
|
|
2175
2187
|
}, [
|
|
2176
2188
|
e.FINAL_CONFIG.plot.tag.followValue ? (a(), i(d, { key: 1 }, [
|
|
2177
|
-
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(
|
|
2189
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(o) && l.useTag ? (a(), i("line", {
|
|
2178
2190
|
key: 0,
|
|
2179
2191
|
class: "vue-ui-xy-tag-plot",
|
|
2180
2192
|
x1: e.drawingArea.left,
|
|
@@ -2185,71 +2197,71 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2185
2197
|
"stroke-linecap": "round",
|
|
2186
2198
|
"stroke-dasharray": "2",
|
|
2187
2199
|
stroke: l.color
|
|
2188
|
-
}, null, 8, Ml)) :
|
|
2200
|
+
}, null, 8, Ml)) : h("", !0)
|
|
2189
2201
|
], 64)) : (a(), i(d, { key: 0 }, [
|
|
2190
|
-
s &&
|
|
2202
|
+
s && o === 0 && l.useTag && l.useTag === "start" ? (a(), i("foreignObject", {
|
|
2191
2203
|
key: 0,
|
|
2192
2204
|
x: s.x,
|
|
2193
2205
|
y: s.y - 20,
|
|
2194
2206
|
height: 24,
|
|
2195
2207
|
width: "150",
|
|
2196
|
-
style:
|
|
2208
|
+
style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2197
2209
|
}, [
|
|
2198
2210
|
f("div", {
|
|
2199
|
-
style:
|
|
2211
|
+
style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2200
2212
|
innerHTML: e.applyDataLabel(
|
|
2201
2213
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2202
2214
|
s.value,
|
|
2203
2215
|
l.name,
|
|
2204
2216
|
{
|
|
2205
2217
|
datapoint: s,
|
|
2206
|
-
seriesIndex:
|
|
2218
|
+
seriesIndex: o,
|
|
2207
2219
|
serieName: l.name
|
|
2208
2220
|
}
|
|
2209
2221
|
)
|
|
2210
|
-
}, null, 12,
|
|
2211
|
-
], 12,
|
|
2212
|
-
s &&
|
|
2222
|
+
}, null, 12, vl)
|
|
2223
|
+
], 12, Gl)) : h("", !0),
|
|
2224
|
+
s && o === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (a(), i("foreignObject", {
|
|
2213
2225
|
key: 1,
|
|
2214
2226
|
x: s.x - l.name.length * (r.fontSizes.plotLabels / 2),
|
|
2215
2227
|
y: s.y - 20,
|
|
2216
2228
|
height: 24,
|
|
2217
2229
|
width: "150",
|
|
2218
|
-
style:
|
|
2230
|
+
style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2219
2231
|
}, [
|
|
2220
2232
|
f("div", {
|
|
2221
|
-
style:
|
|
2233
|
+
style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2222
2234
|
innerHTML: e.applyDataLabel(
|
|
2223
2235
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2224
2236
|
s.value,
|
|
2225
2237
|
l.name,
|
|
2226
2238
|
{
|
|
2227
2239
|
datapoint: s,
|
|
2228
|
-
seriesIndex:
|
|
2240
|
+
seriesIndex: o,
|
|
2229
2241
|
serieName: l.name
|
|
2230
2242
|
}
|
|
2231
2243
|
)
|
|
2232
|
-
}, null, 12,
|
|
2233
|
-
], 12,
|
|
2244
|
+
}, null, 12, zl)
|
|
2245
|
+
], 12, pl)) : h("", !0)
|
|
2234
2246
|
], 64))
|
|
2235
2247
|
], 64))), 128))
|
|
2236
2248
|
], 64))), 128))
|
|
2237
2249
|
])),
|
|
2238
|
-
e.FINAL_CONFIG.line.labels.show && r.mutableConfig.dataLabels.show ? (a(), i("g",
|
|
2239
|
-
(a(!0), i(d, null, I(e.lineSet, (l,
|
|
2240
|
-
key: `xLabel_line_${
|
|
2250
|
+
e.FINAL_CONFIG.line.labels.show && r.mutableConfig.dataLabels.show ? (a(), i("g", Tl, [
|
|
2251
|
+
(a(!0), i(d, null, I(e.lineSet, (l, n) => (a(), i(d, {
|
|
2252
|
+
key: `xLabel_line_${n}`
|
|
2241
2253
|
}, [
|
|
2242
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2243
|
-
key: `xLabel_line_${
|
|
2254
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2255
|
+
key: `xLabel_line_${n}_${o}`
|
|
2244
2256
|
}, [
|
|
2245
|
-
s && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex ===
|
|
2257
|
+
s && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || r.selectedSerieIndex !== null && r.selectedSerieIndex === o || r.selectedMinimapIndex !== null && r.selectedMinimapIndex === o ? (a(), i("text", {
|
|
2246
2258
|
key: 0,
|
|
2247
2259
|
x: s.x,
|
|
2248
2260
|
y: s.y + (s.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
2249
2261
|
"text-anchor": "middle",
|
|
2250
2262
|
"font-size": r.fontSizes.plotLabels,
|
|
2251
2263
|
fill: e.FINAL_CONFIG.line.labels.color,
|
|
2252
|
-
style:
|
|
2264
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2253
2265
|
}, T(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
2254
2266
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2255
2267
|
s.value,
|
|
@@ -2263,18 +2275,18 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2263
2275
|
datapoint: s,
|
|
2264
2276
|
serie: l
|
|
2265
2277
|
}
|
|
2266
|
-
) : ""), 13,
|
|
2278
|
+
) : ""), 13, Pl)) : h("", !0)
|
|
2267
2279
|
], 64))), 128))
|
|
2268
2280
|
], 64))), 128))
|
|
2269
|
-
])) : (a(), i("g",
|
|
2270
|
-
(a(!0), i(d, null, I(e.lineSet, (l,
|
|
2271
|
-
key: `xLabel_line_${
|
|
2281
|
+
])) : (a(), i("g", Vl, [
|
|
2282
|
+
(a(!0), i(d, null, I(e.lineSet, (l, n) => (a(), i(d, {
|
|
2283
|
+
key: `xLabel_line_${n}`
|
|
2272
2284
|
}, [
|
|
2273
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2274
|
-
key: `xLabel_line_${
|
|
2285
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2286
|
+
key: `xLabel_line_${n}_${o}`
|
|
2275
2287
|
}, [
|
|
2276
2288
|
e.FINAL_CONFIG.line.tag.followValue ? (a(), i(d, { key: 1 }, [
|
|
2277
|
-
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(
|
|
2289
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(o) && l.useTag ? (a(), i("line", {
|
|
2278
2290
|
key: 0,
|
|
2279
2291
|
class: "vue-ui-xy-tag-line",
|
|
2280
2292
|
x1: e.drawingArea.left,
|
|
@@ -2285,63 +2297,63 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2285
2297
|
"stroke-linecap": "round",
|
|
2286
2298
|
"stroke-dasharray": "2",
|
|
2287
2299
|
stroke: l.color
|
|
2288
|
-
}, null, 8,
|
|
2300
|
+
}, null, 8, Bl)) : h("", !0)
|
|
2289
2301
|
], 64)) : (a(), i(d, { key: 0 }, [
|
|
2290
|
-
s &&
|
|
2302
|
+
s && o === 0 && l.useTag && l.useTag === "start" ? (a(), i("foreignObject", {
|
|
2291
2303
|
key: 0,
|
|
2292
2304
|
x: s.x,
|
|
2293
2305
|
y: s.y - 20,
|
|
2294
2306
|
height: 24,
|
|
2295
2307
|
width: "150",
|
|
2296
|
-
style:
|
|
2308
|
+
style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2297
2309
|
}, [
|
|
2298
2310
|
f("div", {
|
|
2299
|
-
style:
|
|
2311
|
+
style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2300
2312
|
innerHTML: e.applyDataLabel(
|
|
2301
2313
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2302
2314
|
s.value,
|
|
2303
2315
|
l.name,
|
|
2304
2316
|
{
|
|
2305
2317
|
datapoint: s,
|
|
2306
|
-
seriesIndex:
|
|
2318
|
+
seriesIndex: o,
|
|
2307
2319
|
serieName: l.name
|
|
2308
2320
|
}
|
|
2309
2321
|
)
|
|
2310
|
-
}, null, 12,
|
|
2311
|
-
], 12,
|
|
2312
|
-
s &&
|
|
2322
|
+
}, null, 12, Hl)
|
|
2323
|
+
], 12, Rl)) : h("", !0),
|
|
2324
|
+
s && o === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (a(), i("foreignObject", {
|
|
2313
2325
|
key: 1,
|
|
2314
2326
|
x: s.x,
|
|
2315
2327
|
y: s.y - 20,
|
|
2316
2328
|
height: 24,
|
|
2317
2329
|
width: "150",
|
|
2318
|
-
style:
|
|
2330
|
+
style: y(`overflow: visible; opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2319
2331
|
}, [
|
|
2320
2332
|
f("div", {
|
|
2321
|
-
style:
|
|
2333
|
+
style: y(`padding: 3px; background:${e.setOpacity(l.color, 80)};color:${e.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2322
2334
|
innerHTML: e.applyDataLabel(
|
|
2323
2335
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2324
2336
|
s.value,
|
|
2325
2337
|
l.name,
|
|
2326
2338
|
{
|
|
2327
2339
|
datapoint: s,
|
|
2328
|
-
seriesIndex:
|
|
2340
|
+
seriesIndex: o,
|
|
2329
2341
|
serieName: l.name
|
|
2330
2342
|
}
|
|
2331
2343
|
)
|
|
2332
|
-
}, null, 12,
|
|
2333
|
-
], 12,
|
|
2344
|
+
}, null, 12, Wl)
|
|
2345
|
+
], 12, Dl)) : h("", !0)
|
|
2334
2346
|
], 64))
|
|
2335
2347
|
], 64))), 128))
|
|
2336
2348
|
], 64))), 128))
|
|
2337
2349
|
])),
|
|
2338
|
-
(a(!0), i(d, null, I(e.lineSet, (l,
|
|
2339
|
-
key: `xLabel_line_${
|
|
2350
|
+
(a(!0), i(d, null, I(e.lineSet, (l, n) => (a(), i(d, {
|
|
2351
|
+
key: `xLabel_line_${n}`
|
|
2340
2352
|
}, [
|
|
2341
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2342
|
-
key: `xLabel_line_${
|
|
2353
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2354
|
+
key: `xLabel_line_${n}_${o}`
|
|
2343
2355
|
}, [
|
|
2344
|
-
s &&
|
|
2356
|
+
s && o === 0 && l.showSerieName && l.showSerieName === "start" ? (a(), i("text", {
|
|
2345
2357
|
key: 0,
|
|
2346
2358
|
x: s.x - r.fontSizes.plotLabels,
|
|
2347
2359
|
y: s.y,
|
|
@@ -2356,9 +2368,9 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2356
2368
|
y: s.y,
|
|
2357
2369
|
maxWords: 2
|
|
2358
2370
|
}),
|
|
2359
|
-
style:
|
|
2360
|
-
}, null, 12,
|
|
2361
|
-
s &&
|
|
2371
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2372
|
+
}, null, 12, El)) : h("", !0),
|
|
2373
|
+
s && o === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (a(), i("text", {
|
|
2362
2374
|
key: 1,
|
|
2363
2375
|
x: s.x + r.fontSizes.plotLabels,
|
|
2364
2376
|
y: s.y,
|
|
@@ -2373,17 +2385,17 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2373
2385
|
y: s.y,
|
|
2374
2386
|
maxWords: 2
|
|
2375
2387
|
}),
|
|
2376
|
-
style:
|
|
2377
|
-
}, null, 12,
|
|
2388
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2389
|
+
}, null, 12, Yl)) : h("", !0)
|
|
2378
2390
|
], 64))), 128))
|
|
2379
2391
|
], 64))), 128)),
|
|
2380
|
-
(a(!0), i(d, null, I(e.plotSet, (l,
|
|
2381
|
-
key: `xLabel_plot_${
|
|
2392
|
+
(a(!0), i(d, null, I(e.plotSet, (l, n) => (a(), i(d, {
|
|
2393
|
+
key: `xLabel_plot_${n}`
|
|
2382
2394
|
}, [
|
|
2383
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2384
|
-
key: `xLabel_plot_${
|
|
2395
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2396
|
+
key: `xLabel_plot_${n}_${o}`
|
|
2385
2397
|
}, [
|
|
2386
|
-
s &&
|
|
2398
|
+
s && o === 0 && l.showSerieName && l.showSerieName === "start" ? (a(), i("text", {
|
|
2387
2399
|
key: 0,
|
|
2388
2400
|
x: s.x - r.fontSizes.plotLabels,
|
|
2389
2401
|
y: s.y,
|
|
@@ -2398,9 +2410,9 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2398
2410
|
y: s.y,
|
|
2399
2411
|
maxWords: 2
|
|
2400
2412
|
}),
|
|
2401
|
-
style:
|
|
2402
|
-
}, null, 12,
|
|
2403
|
-
s &&
|
|
2413
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2414
|
+
}, null, 12, ql)) : h("", !0),
|
|
2415
|
+
s && o === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (a(), i("text", {
|
|
2404
2416
|
key: 1,
|
|
2405
2417
|
x: s.x + r.fontSizes.plotLabels,
|
|
2406
2418
|
y: s.y,
|
|
@@ -2415,14 +2427,14 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2415
2427
|
y: s.y,
|
|
2416
2428
|
maxWords: 2
|
|
2417
2429
|
}),
|
|
2418
|
-
style:
|
|
2419
|
-
}, null, 12,
|
|
2430
|
+
style: y(`opacity:${r.selectedScale ? r.selectedScale === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2431
|
+
}, null, 12, Xl)) : h("", !0)
|
|
2420
2432
|
], 64))), 128))
|
|
2421
2433
|
], 64))), 128)),
|
|
2422
2434
|
r.mutableConfig.useIndividualScale && !r.mutableConfig.isStacked ? (a(), i(d, { key: 11 }, [
|
|
2423
2435
|
f("defs", null, [
|
|
2424
|
-
(a(!0), i(d, null, I(e.allScales, (l,
|
|
2425
|
-
id: `individual_scale_gradient_${r.uniqueId}_${
|
|
2436
|
+
(a(!0), i(d, null, I(e.allScales, (l, n) => (a(), i("linearGradient", {
|
|
2437
|
+
id: `individual_scale_gradient_${r.uniqueId}_${n}`,
|
|
2426
2438
|
x1: "0%",
|
|
2427
2439
|
x2: "100%",
|
|
2428
2440
|
y1: "0%",
|
|
@@ -2432,24 +2444,24 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2432
2444
|
offset: "0%",
|
|
2433
2445
|
"stop-color": e.FINAL_CONFIG.chart.backgroundColor,
|
|
2434
2446
|
"stop-opacity": "0"
|
|
2435
|
-
}, null, 8,
|
|
2447
|
+
}, null, 8, Zl),
|
|
2436
2448
|
f("stop", {
|
|
2437
2449
|
offset: "100%",
|
|
2438
2450
|
"stop-color": l.color,
|
|
2439
2451
|
"stop-opacity": "0.2"
|
|
2440
|
-
}, null, 8,
|
|
2441
|
-
], 8,
|
|
2452
|
+
}, null, 8, Kl)
|
|
2453
|
+
], 8, Ul))), 256))
|
|
2442
2454
|
]),
|
|
2443
|
-
(a(!0), i(d, null, I(e.allScales, (l,
|
|
2455
|
+
(a(!0), i(d, null, I(e.allScales, (l, n) => (a(), i("rect", {
|
|
2444
2456
|
x: l.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2445
2457
|
y: e.drawingArea.top,
|
|
2446
2458
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2447
2459
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2448
|
-
fill: r.selectedScale === l.groupId ? `url(#individual_scale_gradient_${r.uniqueId}_${
|
|
2460
|
+
fill: r.selectedScale === l.groupId ? `url(#individual_scale_gradient_${r.uniqueId}_${n})` : "transparent",
|
|
2449
2461
|
onMouseenter: (s) => r.selectedScale = l.groupId,
|
|
2450
|
-
onMouseleave:
|
|
2451
|
-
}, null, 40,
|
|
2452
|
-
], 64)) :
|
|
2462
|
+
onMouseleave: c[0] || (c[0] = (s) => r.selectedScale = null)
|
|
2463
|
+
}, null, 40, Ql))), 256))
|
|
2464
|
+
], 64)) : h("", !0),
|
|
2453
2465
|
f("g", null, [
|
|
2454
2466
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !r.mutableConfig.useIndividualScale ? (a(), i("text", {
|
|
2455
2467
|
key: 0,
|
|
@@ -2458,7 +2470,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2458
2470
|
transform: `translate(${r.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2459
2471
|
"text-anchor": "middle",
|
|
2460
2472
|
style: { transition: "none" }
|
|
2461
|
-
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2473
|
+
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Jl)) : h("", !0),
|
|
2462
2474
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), i("text", {
|
|
2463
2475
|
key: 1,
|
|
2464
2476
|
"text-anchor": "middle",
|
|
@@ -2466,39 +2478,39 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2466
2478
|
y: e.drawingArea.bottom + r.fontSizes.yAxis + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2467
2479
|
"font-size": r.fontSizes.yAxis,
|
|
2468
2480
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2469
|
-
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2481
|
+
}, T(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, jl)) : h("", !0)
|
|
2470
2482
|
]),
|
|
2471
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g",
|
|
2472
|
-
t.$slots["time-label"] ? (a(!0), i(d, { key: 0 }, I(e.timeLabels, (l,
|
|
2473
|
-
key: `time_label_${
|
|
2483
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), i("g", $l, [
|
|
2484
|
+
t.$slots["time-label"] ? (a(!0), i(d, { key: 0 }, I(e.timeLabels, (l, n) => p(t.$slots, "time-label", Q({
|
|
2485
|
+
key: `time_label_${n}`,
|
|
2474
2486
|
ref_for: !0
|
|
2475
2487
|
}, {
|
|
2476
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2488
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * n + e.drawingArea.width / e.maxSeries / 2,
|
|
2477
2489
|
y: e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2478
2490
|
fontSize: r.fontSizes.xAxis,
|
|
2479
2491
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2480
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2492
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * n + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2481
2493
|
absoluteIndex: l.absoluteIndex,
|
|
2482
2494
|
content: l.text,
|
|
2483
2495
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2484
|
-
show: l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (
|
|
2485
|
-
}), void 0, !0)), 128)) : (a(!0), i(d, { key: 1 }, I(e.timeLabels, (l,
|
|
2486
|
-
key: `time_label_${
|
|
2496
|
+
show: l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (n === 0 || n === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === n && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && n % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2497
|
+
}), void 0, !0)), 128)) : (a(!0), i(d, { key: 1 }, I(e.timeLabels, (l, n) => (a(), i("g", {
|
|
2498
|
+
key: `time_label_${n}`
|
|
2487
2499
|
}, [
|
|
2488
|
-
l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (
|
|
2500
|
+
l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (n === 0 || n === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && r.selectedSerieIndex === n && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && n % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), i("text", {
|
|
2489
2501
|
key: 0,
|
|
2490
2502
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2491
2503
|
"font-size": r.fontSizes.xAxis,
|
|
2492
2504
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2493
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2494
|
-
style: {
|
|
2495
|
-
cursor: "pointer"
|
|
2496
|
-
},
|
|
2497
|
-
onClick: () => e.selectTimeLabel(l,
|
|
2498
|
-
}, T(l.text || ""),
|
|
2505
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * n + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + r.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2506
|
+
style: y({
|
|
2507
|
+
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2508
|
+
}),
|
|
2509
|
+
onClick: () => e.selectTimeLabel(l, n)
|
|
2510
|
+
}, T(l.text || ""), 13, er)) : h("", !0)
|
|
2499
2511
|
]))), 128))
|
|
2500
|
-
])) :
|
|
2501
|
-
e.annotationsY.length && !r.mutableConfig.isStacked ? (a(), i("g",
|
|
2512
|
+
])) : h("", !0),
|
|
2513
|
+
e.annotationsY.length && !r.mutableConfig.isStacked ? (a(), i("g", tr, [
|
|
2502
2514
|
(a(!0), i(d, null, I(e.annotationsY, (l) => (a(), i("g", {
|
|
2503
2515
|
key: l.uid
|
|
2504
2516
|
}, [
|
|
@@ -2513,7 +2525,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2513
2525
|
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
2514
2526
|
"stroke-linecap": "round",
|
|
2515
2527
|
style: { animation: "none !important" }
|
|
2516
|
-
}, null, 8,
|
|
2528
|
+
}, null, 8, lr)) : h("", !0),
|
|
2517
2529
|
l.yBottom && l.show ? (a(), i("line", {
|
|
2518
2530
|
key: 1,
|
|
2519
2531
|
x1: l.x1,
|
|
@@ -2525,7 +2537,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2525
2537
|
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
2526
2538
|
"stroke-linecap": "round",
|
|
2527
2539
|
style: { animation: "none !important" }
|
|
2528
|
-
}, null, 8,
|
|
2540
|
+
}, null, 8, rr)) : h("", !0),
|
|
2529
2541
|
l.hasArea && l.show ? (a(), i("rect", {
|
|
2530
2542
|
key: 2,
|
|
2531
2543
|
y: Math.min(l.yTop, l.yBottom),
|
|
@@ -2534,11 +2546,11 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2534
2546
|
height: e.checkNaN(l.areaHeight, 0),
|
|
2535
2547
|
fill: e.setOpacity(l.config.area.fill, l.config.area.opacity),
|
|
2536
2548
|
style: { animation: "none !important" }
|
|
2537
|
-
}, null, 8,
|
|
2538
|
-
l.config.label.text && l.show ? (a(), i("rect",
|
|
2549
|
+
}, null, 8, ar)) : h("", !0),
|
|
2550
|
+
l.config.label.text && l.show ? (a(), i("rect", Q({
|
|
2539
2551
|
key: 3,
|
|
2540
2552
|
class: "vue-ui-xy-annotation-label-box"
|
|
2541
|
-
}, { ref_for: !0 }, l._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) :
|
|
2553
|
+
}, { ref_for: !0 }, l._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
|
|
2542
2554
|
l.config.label.text && l.show ? (a(), i("text", {
|
|
2543
2555
|
key: 4,
|
|
2544
2556
|
id: l.id,
|
|
@@ -2548,23 +2560,23 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2548
2560
|
"font-size": l.config.label.fontSize,
|
|
2549
2561
|
fill: l.config.label.color,
|
|
2550
2562
|
"text-anchor": l.config.label.textAnchor
|
|
2551
|
-
}, T(l.config.label.text), 9,
|
|
2563
|
+
}, T(l.config.label.text), 9, ir)) : h("", !0)
|
|
2552
2564
|
]))), 128))
|
|
2553
|
-
])) :
|
|
2565
|
+
])) : h("", !0),
|
|
2554
2566
|
f("g", null, [
|
|
2555
|
-
(a(!0), i(d, null, I(e.maxSeries, (l,
|
|
2556
|
-
key: `tooltip_trap_${
|
|
2557
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2567
|
+
(a(!0), i(d, null, I(e.maxSeries, (l, n) => (a(), i("rect", {
|
|
2568
|
+
key: `tooltip_trap_${n}`,
|
|
2569
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * n,
|
|
2558
2570
|
y: e.drawingArea.top,
|
|
2559
2571
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2560
2572
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2561
2573
|
fill: "transparent",
|
|
2562
|
-
onMouseenter: (s) => e.toggleTooltipVisibility(!0,
|
|
2563
|
-
onMouseleave:
|
|
2564
|
-
onClick: (s) => e.selectX(
|
|
2565
|
-
}, null, 40,
|
|
2574
|
+
onMouseenter: (s) => e.toggleTooltipVisibility(!0, n),
|
|
2575
|
+
onMouseleave: c[1] || (c[1] = (s) => e.toggleTooltipVisibility(!1)),
|
|
2576
|
+
onClick: (s) => e.selectX(n)
|
|
2577
|
+
}, null, 40, sr))), 128))
|
|
2566
2578
|
]),
|
|
2567
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (a(), i("g",
|
|
2579
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(r.selectedSerieIndex) || ![null, void 0].includes(r.selectedMinimapIndex)) ? (a(), i("g", nr, [
|
|
2568
2580
|
(a(), i("foreignObject", {
|
|
2569
2581
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2570
2582
|
y: e.drawingArea.bottom,
|
|
@@ -2574,48 +2586,48 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2574
2586
|
}, [
|
|
2575
2587
|
f("div", {
|
|
2576
2588
|
class: "vue-ui-xy-time-tag",
|
|
2577
|
-
style:
|
|
2589
|
+
style: y(`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`)
|
|
2578
2590
|
}, T(e.timeLabels[(r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)].text || (r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)), 5)
|
|
2579
|
-
], 8,
|
|
2591
|
+
], 8, cr)),
|
|
2580
2592
|
f("circle", {
|
|
2581
2593
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((r.selectedSerieIndex !== null ? r.selectedSerieIndex : 0) || (r.selectedMinimapIndex !== null ? r.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2582
2594
|
cy: e.drawingArea.bottom,
|
|
2583
2595
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2584
2596
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2585
|
-
}, null, 8,
|
|
2586
|
-
])) :
|
|
2587
|
-
])) :
|
|
2597
|
+
}, null, 8, or)
|
|
2598
|
+
])) : h("", !0)
|
|
2599
|
+
])) : h("", !0),
|
|
2588
2600
|
p(t.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2589
|
-
], 14,
|
|
2590
|
-
t.$slots.watermark ? (a(), i("div",
|
|
2601
|
+
], 14, tt)) : h("", !0),
|
|
2602
|
+
t.$slots.watermark ? (a(), i("div", hr, [
|
|
2591
2603
|
p(t.$slots, "watermark", Y(q({ isPrinting: r.isPrinting || r.isImaging })), void 0, !0)
|
|
2592
|
-
])) :
|
|
2593
|
-
(a(!0), i(d, null, I(e.lineSet, (l,
|
|
2594
|
-
key: `tag_line_${
|
|
2604
|
+
])) : h("", !0),
|
|
2605
|
+
(a(!0), i(d, null, I(e.lineSet, (l, n) => (a(), i(d, {
|
|
2606
|
+
key: `tag_line_${n}`
|
|
2595
2607
|
}, [
|
|
2596
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2597
|
-
key: `tag_line_${
|
|
2608
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2609
|
+
key: `tag_line_${n}_${o}`
|
|
2598
2610
|
}, [
|
|
2599
|
-
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(
|
|
2611
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(o) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
|
|
2600
2612
|
key: 0,
|
|
2601
2613
|
ref_for: !0,
|
|
2602
|
-
ref: (L) => e.setTagRef(
|
|
2614
|
+
ref: (L) => e.setTagRef(n, o, L, "right", "line"),
|
|
2603
2615
|
class: "vue-ui-xy-tag",
|
|
2604
2616
|
"data-tag": "right",
|
|
2605
|
-
style:
|
|
2617
|
+
style: y({
|
|
2606
2618
|
position: "fixed",
|
|
2607
2619
|
top: e.placeXYTag({
|
|
2608
2620
|
svgElement: r.svgRef,
|
|
2609
2621
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2610
2622
|
y: s.y,
|
|
2611
|
-
element: r.tagRefs[`${
|
|
2623
|
+
element: r.tagRefs[`${n}_${o}_right_line`],
|
|
2612
2624
|
position: "right"
|
|
2613
2625
|
}).top + "px",
|
|
2614
2626
|
left: e.placeXYTag({
|
|
2615
2627
|
svgElement: r.svgRef,
|
|
2616
2628
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2617
2629
|
y: s.y,
|
|
2618
|
-
element: r.tagRefs[`${
|
|
2630
|
+
element: r.tagRefs[`${n}_${o}_right_line`],
|
|
2619
2631
|
position: "right"
|
|
2620
2632
|
}).left + "px",
|
|
2621
2633
|
height: "fit-content",
|
|
@@ -2627,12 +2639,12 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2627
2639
|
opacity: 1
|
|
2628
2640
|
})
|
|
2629
2641
|
}, [
|
|
2630
|
-
(a(), i("svg",
|
|
2642
|
+
(a(), i("svg", ur, [
|
|
2631
2643
|
f("path", {
|
|
2632
2644
|
d: "M 0,10 10,0 10,20 Z",
|
|
2633
2645
|
fill: l.color,
|
|
2634
2646
|
stroke: "none"
|
|
2635
|
-
}, null, 8,
|
|
2647
|
+
}, null, 8, dr)
|
|
2636
2648
|
])),
|
|
2637
2649
|
f("div", {
|
|
2638
2650
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2642,32 +2654,32 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2642
2654
|
l.name,
|
|
2643
2655
|
{
|
|
2644
2656
|
datapoint: s,
|
|
2645
|
-
seriesIndex:
|
|
2657
|
+
seriesIndex: o,
|
|
2646
2658
|
serieName: l.name
|
|
2647
2659
|
}
|
|
2648
2660
|
)
|
|
2649
|
-
}, null, 8,
|
|
2650
|
-
], 4)) :
|
|
2651
|
-
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(
|
|
2661
|
+
}, null, 8, gr)
|
|
2662
|
+
], 4)) : h("", !0),
|
|
2663
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(o) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (a(), i("div", {
|
|
2652
2664
|
key: 1,
|
|
2653
2665
|
ref_for: !0,
|
|
2654
|
-
ref: (L) => e.setTagRef(
|
|
2666
|
+
ref: (L) => e.setTagRef(n, o, L, "left", "line"),
|
|
2655
2667
|
class: "vue-ui-xy-tag",
|
|
2656
2668
|
"data-tag": "left",
|
|
2657
|
-
style:
|
|
2669
|
+
style: y({
|
|
2658
2670
|
position: "fixed",
|
|
2659
2671
|
top: e.placeXYTag({
|
|
2660
2672
|
svgElement: r.svgRef,
|
|
2661
2673
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2662
2674
|
y: s.y,
|
|
2663
|
-
element: r.tagRefs[`${
|
|
2675
|
+
element: r.tagRefs[`${n}_${o}_left_line`],
|
|
2664
2676
|
position: "left"
|
|
2665
2677
|
}).top + "px",
|
|
2666
2678
|
left: e.placeXYTag({
|
|
2667
2679
|
svgElement: r.svgRef,
|
|
2668
2680
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2669
2681
|
y: s.y,
|
|
2670
|
-
element: r.tagRefs[`${
|
|
2682
|
+
element: r.tagRefs[`${n}_${o}_left_line`],
|
|
2671
2683
|
position: "left"
|
|
2672
2684
|
}).left + "px",
|
|
2673
2685
|
height: "fit-content",
|
|
@@ -2679,12 +2691,12 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2679
2691
|
opacity: 1
|
|
2680
2692
|
})
|
|
2681
2693
|
}, [
|
|
2682
|
-
(a(), i("svg",
|
|
2694
|
+
(a(), i("svg", fr, [
|
|
2683
2695
|
f("path", {
|
|
2684
2696
|
d: "M 0,0 10,10 0,20 Z",
|
|
2685
2697
|
fill: l.color,
|
|
2686
2698
|
stroke: "none"
|
|
2687
|
-
}, null, 8,
|
|
2699
|
+
}, null, 8, Ir)
|
|
2688
2700
|
])),
|
|
2689
2701
|
f("div", {
|
|
2690
2702
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2694,40 +2706,40 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2694
2706
|
l.name,
|
|
2695
2707
|
{
|
|
2696
2708
|
datapoint: s,
|
|
2697
|
-
seriesIndex:
|
|
2709
|
+
seriesIndex: o,
|
|
2698
2710
|
serieName: l.name
|
|
2699
2711
|
}
|
|
2700
2712
|
)
|
|
2701
|
-
}, null, 8,
|
|
2702
|
-
], 4)) :
|
|
2713
|
+
}, null, 8, Nr)
|
|
2714
|
+
], 4)) : h("", !0)
|
|
2703
2715
|
], 64))), 128))
|
|
2704
2716
|
], 64))), 128)),
|
|
2705
|
-
(a(!0), i(d, null, I(e.plotSet, (l,
|
|
2706
|
-
key: `tag_plot_${
|
|
2717
|
+
(a(!0), i(d, null, I(e.plotSet, (l, n) => (a(), i(d, {
|
|
2718
|
+
key: `tag_plot_${n}`
|
|
2707
2719
|
}, [
|
|
2708
|
-
(a(!0), i(d, null, I(l.plots, (s,
|
|
2709
|
-
key: `tag_plot_${
|
|
2720
|
+
(a(!0), i(d, null, I(l.plots, (s, o) => (a(), i(d, {
|
|
2721
|
+
key: `tag_plot_${n}_${o}`
|
|
2710
2722
|
}, [
|
|
2711
|
-
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(
|
|
2723
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(o) && l.useTag && l.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
|
|
2712
2724
|
key: 0,
|
|
2713
2725
|
ref_for: !0,
|
|
2714
|
-
ref: (L) => e.setTagRef(
|
|
2726
|
+
ref: (L) => e.setTagRef(n, o, L, "right", "plot"),
|
|
2715
2727
|
class: "vue-ui-xy-tag",
|
|
2716
2728
|
"data-tag": "right",
|
|
2717
|
-
style:
|
|
2729
|
+
style: y({
|
|
2718
2730
|
position: "fixed",
|
|
2719
2731
|
top: e.placeXYTag({
|
|
2720
2732
|
svgElement: r.svgRef,
|
|
2721
2733
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2722
2734
|
y: s.y,
|
|
2723
|
-
element: r.tagRefs[`${
|
|
2735
|
+
element: r.tagRefs[`${n}_${o}_right_plot`],
|
|
2724
2736
|
position: "right"
|
|
2725
2737
|
}).top + "px",
|
|
2726
2738
|
left: e.placeXYTag({
|
|
2727
2739
|
svgElement: r.svgRef,
|
|
2728
2740
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2729
2741
|
y: s.y,
|
|
2730
|
-
element: r.tagRefs[`${
|
|
2742
|
+
element: r.tagRefs[`${n}_${o}_right_plot`],
|
|
2731
2743
|
position: "right"
|
|
2732
2744
|
}).left + "px",
|
|
2733
2745
|
height: "fit-content",
|
|
@@ -2739,12 +2751,12 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2739
2751
|
opacity: 1
|
|
2740
2752
|
})
|
|
2741
2753
|
}, [
|
|
2742
|
-
(a(), i("svg",
|
|
2754
|
+
(a(), i("svg", xr, [
|
|
2743
2755
|
f("path", {
|
|
2744
2756
|
d: "M 0,10 10,0 10,20 Z",
|
|
2745
2757
|
fill: l.color,
|
|
2746
2758
|
stroke: "none"
|
|
2747
|
-
}, null, 8,
|
|
2759
|
+
}, null, 8, mr)
|
|
2748
2760
|
])),
|
|
2749
2761
|
f("div", {
|
|
2750
2762
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2754,32 +2766,32 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2754
2766
|
l.name,
|
|
2755
2767
|
{
|
|
2756
2768
|
datapoint: s,
|
|
2757
|
-
seriesIndex:
|
|
2769
|
+
seriesIndex: o,
|
|
2758
2770
|
serieName: l.name
|
|
2759
2771
|
}
|
|
2760
2772
|
)
|
|
2761
|
-
}, null, 8,
|
|
2762
|
-
], 4)) :
|
|
2763
|
-
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(
|
|
2773
|
+
}, null, 8, br)
|
|
2774
|
+
], 4)) : h("", !0),
|
|
2775
|
+
[r.selectedMinimapIndex, r.selectedSerieIndex, r.selectedRowIndex].includes(o) && l.useTag && l.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (a(), i("div", {
|
|
2764
2776
|
key: 1,
|
|
2765
2777
|
ref_for: !0,
|
|
2766
|
-
ref: (L) => e.setTagRef(
|
|
2778
|
+
ref: (L) => e.setTagRef(n, o, L, "left", "plot"),
|
|
2767
2779
|
class: "vue-ui-xy-tag",
|
|
2768
2780
|
"data-tag": "left",
|
|
2769
|
-
style:
|
|
2781
|
+
style: y({
|
|
2770
2782
|
position: "fixed",
|
|
2771
2783
|
top: e.placeXYTag({
|
|
2772
2784
|
svgElement: r.svgRef,
|
|
2773
2785
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2774
2786
|
y: s.y,
|
|
2775
|
-
element: r.tagRefs[`${
|
|
2787
|
+
element: r.tagRefs[`${n}_${o}_left_plot`],
|
|
2776
2788
|
position: "left"
|
|
2777
2789
|
}).top + "px",
|
|
2778
2790
|
left: e.placeXYTag({
|
|
2779
2791
|
svgElement: r.svgRef,
|
|
2780
2792
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2781
2793
|
y: s.y,
|
|
2782
|
-
element: r.tagRefs[`${
|
|
2794
|
+
element: r.tagRefs[`${n}_${o}_left_plot`],
|
|
2783
2795
|
position: "left"
|
|
2784
2796
|
}).left + "px",
|
|
2785
2797
|
height: "fit-content",
|
|
@@ -2791,12 +2803,12 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2791
2803
|
opacity: 1
|
|
2792
2804
|
})
|
|
2793
2805
|
}, [
|
|
2794
|
-
(a(), i("svg",
|
|
2806
|
+
(a(), i("svg", Fr, [
|
|
2795
2807
|
f("path", {
|
|
2796
2808
|
d: "M 0,0 10,10 0,20 Z",
|
|
2797
2809
|
fill: l.color,
|
|
2798
2810
|
stroke: "none"
|
|
2799
|
-
}, null, 8,
|
|
2811
|
+
}, null, 8, _r)
|
|
2800
2812
|
])),
|
|
2801
2813
|
f("div", {
|
|
2802
2814
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2806,15 +2818,15 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2806
2818
|
l.name,
|
|
2807
2819
|
{
|
|
2808
2820
|
datapoint: s,
|
|
2809
|
-
seriesIndex:
|
|
2821
|
+
seriesIndex: o,
|
|
2810
2822
|
serieName: l.name
|
|
2811
2823
|
}
|
|
2812
2824
|
)
|
|
2813
|
-
}, null, 8,
|
|
2814
|
-
], 4)) :
|
|
2825
|
+
}, null, 8, yr)
|
|
2826
|
+
], 4)) : h("", !0)
|
|
2815
2827
|
], 64))), 128))
|
|
2816
2828
|
], 64))), 128)),
|
|
2817
|
-
e.isDataset ?
|
|
2829
|
+
e.isDataset ? h("", !0) : (a(), W(w, {
|
|
2818
2830
|
key: 6,
|
|
2819
2831
|
config: {
|
|
2820
2832
|
type: "line",
|
|
@@ -2838,8 +2850,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2838
2850
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
2839
2851
|
fontSize: e.FINAL_CONFIG.chart.zoom.fontSize,
|
|
2840
2852
|
useResetSlot: e.FINAL_CONFIG.chart.zoom.useResetSlot,
|
|
2841
|
-
labelLeft: e.
|
|
2842
|
-
labelRight: e.
|
|
2853
|
+
labelLeft: e.timeLabels[0].text,
|
|
2854
|
+
labelRight: e.timeLabels.at(-1).text,
|
|
2843
2855
|
textColor: e.FINAL_CONFIG.chart.color,
|
|
2844
2856
|
inputColor: e.FINAL_CONFIG.chart.zoom.color,
|
|
2845
2857
|
selectColor: e.FINAL_CONFIG.chart.zoom.highlightColor,
|
|
@@ -2858,11 +2870,11 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2858
2870
|
valueStart: r.slicer.start,
|
|
2859
2871
|
valueEnd: r.slicer.end,
|
|
2860
2872
|
start: r.slicer.start,
|
|
2861
|
-
"onUpdate:start":
|
|
2873
|
+
"onUpdate:start": c[2] || (c[2] = (l) => r.slicer.start = l),
|
|
2862
2874
|
end: r.slicer.end,
|
|
2863
|
-
"onUpdate:end":
|
|
2875
|
+
"onUpdate:end": c[3] || (c[3] = (l) => r.slicer.end = l),
|
|
2864
2876
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2865
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...
|
|
2877
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...u.dataset.map((l) => e.largestTriangleThreeBucketsArray({ data: l.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2866
2878
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2867
2879
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2868
2880
|
onReset: e.refreshSlicer,
|
|
@@ -2872,19 +2884,19 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2872
2884
|
p(t.$slots, "reset-action", Y(q({ reset: l })), void 0, !0)
|
|
2873
2885
|
]),
|
|
2874
2886
|
_: 3
|
|
2875
|
-
}, 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"])) :
|
|
2887
|
+
}, 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"])) : h("", !0),
|
|
2876
2888
|
e.FINAL_CONFIG.chart.legend.show ? (a(), i("div", {
|
|
2877
2889
|
key: 8,
|
|
2878
2890
|
ref: "chartLegend",
|
|
2879
2891
|
class: "vue-ui-xy-legend",
|
|
2880
|
-
style:
|
|
2892
|
+
style: y(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2881
2893
|
}, [
|
|
2882
|
-
(a(!0), i(d, null, I(e.absoluteDataset, (l,
|
|
2883
|
-
key: `div_legend_item_${
|
|
2894
|
+
(a(!0), i(d, null, I(e.absoluteDataset, (l, n) => (a(), i("div", {
|
|
2895
|
+
key: `div_legend_item_${n}`,
|
|
2884
2896
|
onClick: (s) => e.segregate(l),
|
|
2885
2897
|
class: E({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": r.segregatedSeries.includes(l.id) })
|
|
2886
2898
|
}, [
|
|
2887
|
-
r.icons[l.type] === "line" ? (a(), i("svg",
|
|
2899
|
+
r.icons[l.type] === "line" ? (a(), i("svg", Lr, [
|
|
2888
2900
|
f("rect", {
|
|
2889
2901
|
x: "0",
|
|
2890
2902
|
y: "7.5",
|
|
@@ -2894,7 +2906,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2894
2906
|
height: "3",
|
|
2895
2907
|
width: "20",
|
|
2896
2908
|
fill: l.color
|
|
2897
|
-
}, null, 8,
|
|
2909
|
+
}, null, 8, Cr),
|
|
2898
2910
|
U(k, {
|
|
2899
2911
|
plot: { x: 10, y: 9 },
|
|
2900
2912
|
radius: 4,
|
|
@@ -2903,7 +2915,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2903
2915
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2904
2916
|
strokeWidth: 0.5
|
|
2905
2917
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2906
|
-
])) : r.icons[l.type] === "bar" ? (a(), i("svg",
|
|
2918
|
+
])) : r.icons[l.type] === "bar" ? (a(), i("svg", Sr, [
|
|
2907
2919
|
r.icons[l.type] === "bar" && t.$slots.pattern ? (a(), i("rect", {
|
|
2908
2920
|
key: 0,
|
|
2909
2921
|
x: "0",
|
|
@@ -2913,7 +2925,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2913
2925
|
width: "40",
|
|
2914
2926
|
stroke: "none",
|
|
2915
2927
|
fill: l.color
|
|
2916
|
-
}, null, 8,
|
|
2928
|
+
}, null, 8, kr)) : h("", !0),
|
|
2917
2929
|
r.icons[l.type] === "bar" ? (a(), i("rect", {
|
|
2918
2930
|
key: 1,
|
|
2919
2931
|
x: "0",
|
|
@@ -2923,8 +2935,8 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2923
2935
|
width: "40",
|
|
2924
2936
|
stroke: "none",
|
|
2925
2937
|
fill: t.$slots.pattern ? `url(#pattern_${r.uniqueId}_${l.slotAbsoluteIndex})` : l.color
|
|
2926
|
-
}, null, 8,
|
|
2927
|
-
])) : (a(), i("svg",
|
|
2938
|
+
}, null, 8, wr)) : h("", !0)
|
|
2939
|
+
])) : (a(), i("svg", Or, [
|
|
2928
2940
|
U(k, {
|
|
2929
2941
|
plot: { x: 6, y: 6 },
|
|
2930
2942
|
radius: 5,
|
|
@@ -2933,15 +2945,15 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2933
2945
|
}, null, 8, ["color", "shape"])
|
|
2934
2946
|
])),
|
|
2935
2947
|
f("span", {
|
|
2936
|
-
style:
|
|
2948
|
+
style: y(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2937
2949
|
}, T(l.name), 5)
|
|
2938
|
-
], 10,
|
|
2939
|
-
], 4)) : (a(), i("div",
|
|
2950
|
+
], 10, Ar))), 128))
|
|
2951
|
+
], 4)) : (a(), i("div", Gr, [
|
|
2940
2952
|
p(t.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2941
2953
|
], 512)),
|
|
2942
|
-
t.$slots.source ? (a(), i("div",
|
|
2954
|
+
t.$slots.source ? (a(), i("div", vr, [
|
|
2943
2955
|
p(t.$slots, "source", {}, void 0, !0)
|
|
2944
|
-
], 512)) :
|
|
2956
|
+
], 512)) : h("", !0),
|
|
2945
2957
|
U(N, {
|
|
2946
2958
|
show: r.mutableConfig.showTooltip && r.isTooltip,
|
|
2947
2959
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
@@ -2966,7 +2978,7 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2966
2978
|
]),
|
|
2967
2979
|
_: 3
|
|
2968
2980
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2969
|
-
e.isDataset ? (a(), W(
|
|
2981
|
+
e.isDataset ? (a(), W(z, {
|
|
2970
2982
|
key: 11,
|
|
2971
2983
|
hideDetails: "",
|
|
2972
2984
|
config: {
|
|
@@ -2984,17 +2996,17 @@ function Mr(t, n, o, g, r, e) {
|
|
|
2984
2996
|
}, {
|
|
2985
2997
|
content: V(() => [
|
|
2986
2998
|
f("div", {
|
|
2987
|
-
style:
|
|
2999
|
+
style: y(`${r.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2988
3000
|
}, [
|
|
2989
|
-
f("div",
|
|
2990
|
-
|
|
3001
|
+
f("div", pr, [
|
|
3002
|
+
Ye(f("input", {
|
|
2991
3003
|
type: "checkbox",
|
|
2992
|
-
"onUpdate:modelValue":
|
|
3004
|
+
"onUpdate:modelValue": c[4] || (c[4] = (l) => r.showSparklineTable = l)
|
|
2993
3005
|
}, null, 512), [
|
|
2994
|
-
[
|
|
3006
|
+
[qe, r.showSparklineTable]
|
|
2995
3007
|
]),
|
|
2996
3008
|
f("div", {
|
|
2997
|
-
onClick:
|
|
3009
|
+
onClick: c[5] || (c[5] = (l) => r.showSparklineTable = !r.showSparklineTable),
|
|
2998
3010
|
style: { cursor: "pointer" }
|
|
2999
3011
|
}, [
|
|
3000
3012
|
U(F, {
|
|
@@ -3015,13 +3027,13 @@ function Mr(t, n, o, g, r, e) {
|
|
|
3015
3027
|
body: e.dataTable.body,
|
|
3016
3028
|
config: e.dataTable.config,
|
|
3017
3029
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
3018
|
-
onClose:
|
|
3030
|
+
onClose: c[6] || (c[6] = (l) => r.mutableConfig.showTable = !1)
|
|
3019
3031
|
}, {
|
|
3020
3032
|
th: V(({ th: l }) => [
|
|
3021
|
-
f("div", { innerHTML: l }, null, 8,
|
|
3033
|
+
f("div", { innerHTML: l }, null, 8, zr)
|
|
3022
3034
|
]),
|
|
3023
3035
|
td: V(({ td: l }) => [
|
|
3024
|
-
|
|
3036
|
+
Xe(T(isNaN(Number(l)) ? l : e.dataLabel({
|
|
3025
3037
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
3026
3038
|
v: l,
|
|
3027
3039
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -3033,10 +3045,10 @@ function Mr(t, n, o, g, r, e) {
|
|
|
3033
3045
|
], 4)
|
|
3034
3046
|
]),
|
|
3035
3047
|
_: 1
|
|
3036
|
-
}, 8, ["config"])) :
|
|
3037
|
-
], 46,
|
|
3048
|
+
}, 8, ["config"])) : h("", !0)
|
|
3049
|
+
], 46, $e);
|
|
3038
3050
|
}
|
|
3039
|
-
const
|
|
3051
|
+
const Yr = /* @__PURE__ */ Qe(je, [["render", Mr], ["__scopeId", "data-v-fc22fb5f"]]);
|
|
3040
3052
|
export {
|
|
3041
|
-
|
|
3053
|
+
Yr as default
|
|
3042
3054
|
};
|