vue-data-ui 2.15.6-beta.0 → 2.15.6-beta.2
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-7CtGUd2c.js → Arrow-GPO9LVH8.js} +1 -1
- package/dist/{BaseDraggableDialog-DMzlY1LV.js → BaseDraggableDialog-DHoNoFHj.js} +2 -2
- package/dist/{BaseIcon-CJHXqPgs.js → BaseIcon-Dp9dacYe.js} +1 -1
- package/dist/{ColorPicker-CBS1uc5f.js → ColorPicker-BzhOo1ot.js} +2 -2
- package/dist/{DataTable-xkeRPRWr.js → DataTable-DTw4Wb-0.js} +2 -2
- package/dist/{Legend-BzxnWZQQ.js → Legend-C6hgGuRg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BaZ7MEYP.js → NonSvgPenAndPaper-WVx3nUz9.js} +3 -3
- package/dist/{PackageVersion-Bx7Duwo_.js → PackageVersion-BwCRb6li.js} +1 -1
- package/dist/{PenAndPaper-BpDdU2pw.js → PenAndPaper-wPLe65BY.js} +3 -3
- package/dist/{Shape-CCmBnBeJ.js → Shape-CN9mpcil.js} +1 -1
- package/dist/{Slicer-XCdPNvSR.js → Slicer-C2-pp00y.js} +2 -2
- package/dist/{SparkTooltip-DvnnaGGW.js → SparkTooltip-C77TZ8Uu.js} +1 -1
- package/dist/{Title-BiUlPqJ6.js → Title-DWUBnGSS.js} +1 -1
- package/dist/{Tooltip-DOYGtO6A.js → Tooltip-D9Jx-sTW.js} +1 -1
- package/dist/{UserOptions-D6Ou5zsU.js → UserOptions-CSbWEsAB.js} +2 -2
- package/dist/{dom-to-png-BEunG1XE.js → dom-to-png-BroHXPrj.js} +1 -1
- package/dist/{img-DnX4eLxW.js → img-F41ob8sE.js} +1 -1
- package/dist/{index-CKFIZRRC.js → index-C105UlW4.js} +1268 -1199
- package/dist/{pdf-ptdmUaVZ.js → pdf-CLOacSiV.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CTDjXbu-.js → useNestedProp-Ik0O2Bx-.js} +1 -1
- package/dist/{usePrinter-DnlRuPQL.js → usePrinter-DHkpNryF.js} +2 -2
- package/dist/{vue-data-ui-CoT0Iab7.js → vue-data-ui-BetYP3GL.js} +63 -63
- package/dist/vue-data-ui.js +17 -16
- package/dist/{vue-ui-3d-bar-DzIs0Km-.js → vue-ui-3d-bar-vr7kJvPq.js} +5 -5
- package/dist/{vue-ui-accordion-BYCbqbFm.js → vue-ui-accordion-K6A5AUee.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BZhHqkZ8.js → vue-ui-age-pyramid-CQZsYtIG.js} +5 -5
- package/dist/{vue-ui-annotator-CPZ8B6Al.js → vue-ui-annotator-1MhSI4z-.js} +2 -2
- package/dist/{vue-ui-bullet-sNxy6WGS.js → vue-ui-bullet-Do_o6iLD.js} +6 -6
- package/dist/{vue-ui-candlestick-Bp8rzZrF.js → vue-ui-candlestick-D-ybMgD_.js} +6 -6
- package/dist/{vue-ui-carousel-table-DWq6eY06.js → vue-ui-carousel-table-BRcrLgj5.js} +4 -4
- package/dist/{vue-ui-chestnut-CJtV5Lp7.js → vue-ui-chestnut-Csk6O9Q4.js} +4 -4
- package/dist/{vue-ui-chord-CD8cg6V0.js → vue-ui-chord-BdZdfK0m.js} +7 -7
- package/dist/{vue-ui-circle-pack-wQqr7mVc.js → vue-ui-circle-pack-DO812sqD.js} +5 -5
- package/dist/{vue-ui-cursor-BkWV-oeZ.js → vue-ui-cursor-epDxzf8G.js} +2 -2
- package/dist/{vue-ui-dashboard-C-BLtPmP.js → vue-ui-dashboard-Do2xCA9Q.js} +62 -62
- package/dist/{vue-ui-digits-DhCHh3cw.js → vue-ui-digits-DqShjFp6.js} +2 -2
- package/dist/{vue-ui-donut-jm3d6EMv.js → vue-ui-donut-FpeRestz.js} +7 -7
- package/dist/{vue-ui-donut-evolution-WkCZUqn5.js → vue-ui-donut-evolution-BY73RgZ3.js} +7 -7
- package/dist/{vue-ui-dumbbell-CUSfLKry.js → vue-ui-dumbbell-BOI6x_Ij.js} +6 -6
- package/dist/{vue-ui-flow-fFBWZUoD.js → vue-ui-flow-BWPa5r7C.js} +6 -6
- package/dist/{vue-ui-funnel-C1f2-oPu.js → vue-ui-funnel-BCxfFUuh.js} +5 -5
- package/dist/{vue-ui-galaxy-DG8wKkOi.js → vue-ui-galaxy-soaioiR4.js} +4 -4
- package/dist/{vue-ui-gauge-DiPhnrDM.js → vue-ui-gauge-DZseh5v-.js} +5 -5
- package/dist/{vue-ui-gizmo-l19sXZlZ.js → vue-ui-gizmo-DeiUC9d9.js} +3 -3
- package/dist/{vue-ui-heatmap-DmkoaMFW.js → vue-ui-heatmap-DOq6z5Pk.js} +6 -6
- package/dist/{vue-ui-history-plot-BPNGukiK.js → vue-ui-history-plot-wO4-9pBn.js} +6 -6
- package/dist/{vue-ui-kpi-CBae6xnx.js → vue-ui-kpi-Dn2POQ3e.js} +3 -3
- package/dist/{vue-ui-mini-loader-VxJTtzhp.js → vue-ui-mini-loader-0UYyx9Dg.js} +2 -2
- package/dist/{vue-ui-molecule-DgSckvvc.js → vue-ui-molecule-vpvPqHVo.js} +4 -4
- package/dist/{vue-ui-mood-radar-C8WiiaVL.js → vue-ui-mood-radar-9aeno5kE.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CiaPPgP9.js → vue-ui-nested-donuts-AmFbOphT.js} +6 -6
- package/dist/{vue-ui-onion-l3ghP0NR.js → vue-ui-onion-JdjIjDQC.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-Jkq5N0IW.js → vue-ui-parallel-coordinate-plot-D59xe2YN.js} +7 -7
- package/dist/{vue-ui-quadrant-CssqTQNV.js → vue-ui-quadrant-CfoSpAi2.js} +7 -7
- package/dist/{vue-ui-quick-chart-DhuqsDVZ.js → vue-ui-quick-chart-B4_MecKf.js} +5 -5
- package/dist/{vue-ui-radar-CukYMAGu.js → vue-ui-radar-v0Q9MUEh.js} +6 -6
- package/dist/{vue-ui-rating-DpU_yTsi.js → vue-ui-rating-brp_e1ob.js} +2 -2
- package/dist/{vue-ui-relation-circle-A-Rczr2V.js → vue-ui-relation-circle-BpymSYy8.js} +5 -5
- package/dist/{vue-ui-ridgeline-COh9tuKK.js → vue-ui-ridgeline-Cx43R6kA.js} +7 -7
- package/dist/{vue-ui-rings-ByDVFvi3.js → vue-ui-rings-Dmkr02rA.js} +7 -7
- package/dist/{vue-ui-scatter-6hllL9hr.js → vue-ui-scatter-BTxr3JPV.js} +7 -7
- package/dist/{vue-ui-skeleton-DhFJYDTn.js → vue-ui-skeleton-Czaz-GOG.js} +3 -3
- package/dist/{vue-ui-smiley-J4WstQlh.js → vue-ui-smiley-DRKM1rUy.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bl0PnT2V.js → vue-ui-spark-trend-B-uovzwr.js} +3 -3
- package/dist/{vue-ui-sparkbar-DzmAY8ie.js → vue-ui-sparkbar-DDrnMfDT.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D-Ck11nK.js → vue-ui-sparkgauge-DVMLiVoM.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cp5Xr557.js → vue-ui-sparkhistogram-B7nOLC8V.js} +4 -4
- package/dist/{vue-ui-sparkline-D7ZX0old.js → vue-ui-sparkline-mv7V-Q7J.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CXymF8dq.js → vue-ui-sparkstackbar-q2kY6_ik.js} +3 -3
- package/dist/{vue-ui-stackbar-BLUvVwgp.js → vue-ui-stackbar-DuhMhx3T.js} +8 -8
- package/dist/{vue-ui-strip-plot-D-lRQH1I.js → vue-ui-strip-plot-CC0Apm9f.js} +6 -6
- package/dist/{vue-ui-table-DLgF8tGT.js → vue-ui-table-DElqsOIB.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BO37ZIHF.js → vue-ui-table-heatmap-DZf-J-y8.js} +5 -5
- package/dist/{vue-ui-table-sparkline-btEebUXB.js → vue-ui-table-sparkline-B_ZgXOh0.js} +4 -4
- package/dist/{vue-ui-thermometer-u1PvQSeL.js → vue-ui-thermometer-CNhHV_Ib.js} +5 -5
- package/dist/{vue-ui-timer-B48HT4eW.js → vue-ui-timer-DgtXozNk.js} +5 -5
- package/dist/{vue-ui-tiremarks-CiJXoCJR.js → vue-ui-tiremarks-D2GTp4h2.js} +5 -5
- package/dist/{vue-ui-treemap-w-MtZzrD.js → vue-ui-treemap-Bn5mp_h4.js} +7 -7
- package/dist/{vue-ui-vertical-bar-B2NFYukn.js → vue-ui-vertical-bar-Ds6AkgMG.js} +8 -8
- package/dist/{vue-ui-waffle-Cfg34ICq.js → vue-ui-waffle-D4zF3R48.js} +7 -7
- package/dist/{vue-ui-wheel-D7x2HZCc.js → vue-ui-wheel-Cm_KcJZD.js} +5 -5
- package/dist/{vue-ui-word-cloud-DRjkBdUN.js → vue-ui-word-cloud-BKim6GYT.js} +5 -5
- package/dist/{vue-ui-world-D4FgKXT2.js → vue-ui-world-DDEUK5Uv.js} +5 -5
- package/dist/{vue-ui-xy-lLTOcI_N.js → vue-ui-xy-Bi4XIob2.js} +450 -449
- package/dist/{vue-ui-xy-canvas-BRKsTfoq.js → vue-ui-xy-canvas-EdHc0Zci.js} +7 -7
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as q, _ as ae, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as ye, af as Ae, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as Me, q as ze, b as Te, z as Ve, d as Pe, ah as Re, v as Be, ai as He, D as De, a5 as Ee, aj as We, i as Ye, F as Xe, L as qe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-
|
|
1
|
+
import { R as q, _ as ae, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as ye, af as Ae, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as Me, q as ze, b as Te, z as Ve, d as Pe, ah as Re, v as Be, ai as He, D as De, a5 as Ee, aj as We, i as Ye, F as Xe, L as qe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-C105UlW4.js";
|
|
2
2
|
import { u as je } from "./useMouse-AicQS8Vf.js";
|
|
3
|
-
import { u as
|
|
3
|
+
import { u as re } from "./useNestedProp-Ik0O2Bx-.js";
|
|
4
4
|
import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
|
-
import { defineAsyncComponent as Z, resolveComponent as X, createElementBlock as
|
|
6
|
-
import { S as at } from "./Slicer-
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
5
|
+
import { defineAsyncComponent as Z, resolveComponent as X, createElementBlock as i, openBlock as r, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as u, createVNode as le, createSlots as et, withCtx as D, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as d, renderList as x, toDisplayString as R, mergeProps as ie, withDirectives as tt, vModelCheckbox as lt, createTextVNode as st } from "vue";
|
|
6
|
+
import { S as at } from "./Slicer-C2-pp00y.js";
|
|
7
|
+
import rt from "./Title-DWUBnGSS.js";
|
|
8
|
+
import { _ as it } from "./Shape-CN9mpcil.js";
|
|
9
9
|
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const ct = ne(), ot = {
|
|
11
11
|
name: "vue-ui-xy",
|
|
@@ -26,18 +26,18 @@ const ct = ne(), ot = {
|
|
|
26
26
|
components: {
|
|
27
27
|
Slicer: at,
|
|
28
28
|
// Must be ready in responsive mode
|
|
29
|
-
Title:
|
|
29
|
+
Title: rt,
|
|
30
30
|
// Must be ready in responsive mode
|
|
31
|
-
Shape:
|
|
32
|
-
DataTable: Z(() => import("./DataTable-
|
|
33
|
-
Tooltip: Z(() => import("./Tooltip-
|
|
34
|
-
UserOptions: Z(() => import("./UserOptions-
|
|
35
|
-
BaseIcon: Z(() => import("./BaseIcon-
|
|
36
|
-
TableSparkline: Z(() => import("./vue-ui-table-sparkline-
|
|
37
|
-
Skeleton: Z(() => import("./vue-ui-skeleton-
|
|
38
|
-
Accordion: Z(() => import("./vue-ui-accordion-
|
|
39
|
-
PackageVersion: Z(() => import("./PackageVersion-
|
|
40
|
-
PenAndPaper: Z(() => import("./PenAndPaper-
|
|
31
|
+
Shape: it,
|
|
32
|
+
DataTable: Z(() => import("./DataTable-DTw4Wb-0.js")),
|
|
33
|
+
Tooltip: Z(() => import("./Tooltip-D9Jx-sTW.js")),
|
|
34
|
+
UserOptions: Z(() => import("./UserOptions-CSbWEsAB.js")),
|
|
35
|
+
BaseIcon: Z(() => import("./BaseIcon-Dp9dacYe.js")),
|
|
36
|
+
TableSparkline: Z(() => import("./vue-ui-table-sparkline-B_ZgXOh0.js")),
|
|
37
|
+
Skeleton: Z(() => import("./vue-ui-skeleton-Czaz-GOG.js")),
|
|
38
|
+
Accordion: Z(() => import("./vue-ui-accordion-K6A5AUee.js")),
|
|
39
|
+
PackageVersion: Z(() => import("./PackageVersion-BwCRb6li.js")),
|
|
40
|
+
PenAndPaper: Z(() => import("./PenAndPaper-wPLe65BY.js"))
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
this.dataset.forEach((f, l) => {
|
|
@@ -48,7 +48,7 @@ const ct = ne(), ot = {
|
|
|
48
48
|
index: l
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
-
const s = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: s }).length)),
|
|
51
|
+
const s = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, n = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: s }).length)), h = {
|
|
52
52
|
start: 0,
|
|
53
53
|
end: n
|
|
54
54
|
};
|
|
@@ -101,7 +101,7 @@ const ct = ne(), ot = {
|
|
|
101
101
|
step: 0,
|
|
102
102
|
tableStep: 0,
|
|
103
103
|
titleStep: 0,
|
|
104
|
-
slicer:
|
|
104
|
+
slicer: h,
|
|
105
105
|
__to__: null,
|
|
106
106
|
maxX: n,
|
|
107
107
|
showSparklineTable: !0,
|
|
@@ -141,8 +141,8 @@ const ct = ne(), ot = {
|
|
|
141
141
|
watch: {
|
|
142
142
|
dataset: {
|
|
143
143
|
handler(s, n) {
|
|
144
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
145
|
-
data:
|
|
144
|
+
this.maxX = Math.max(...this.dataset.map((h) => this.largestTriangleThreeBucketsArray({
|
|
145
|
+
data: h.series,
|
|
146
146
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
147
147
|
}).length)), this.slicer = {
|
|
148
148
|
start: 0,
|
|
@@ -184,11 +184,11 @@ const ct = ne(), ot = {
|
|
|
184
184
|
},
|
|
185
185
|
minimap() {
|
|
186
186
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
187
|
-
const s = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), n = Math.max(...s.map((l) => l.series.length)),
|
|
187
|
+
const s = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), n = Math.max(...s.map((l) => l.series.length)), h = [];
|
|
188
188
|
for (let l = 0; l < n; l += 1)
|
|
189
|
-
|
|
190
|
-
const f = Math.min(...
|
|
191
|
-
return
|
|
189
|
+
h.push(s.map((e) => e.series[l] || 0).reduce((e, a) => (e || 0) + (a || 0), 0));
|
|
190
|
+
const f = Math.min(...h);
|
|
191
|
+
return h.map((l) => l + (f < 0 ? Math.abs(f) : 0));
|
|
192
192
|
},
|
|
193
193
|
customPalette() {
|
|
194
194
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -223,7 +223,7 @@ const ct = ne(), ot = {
|
|
|
223
223
|
id: e.id,
|
|
224
224
|
yOffset: e.yOffset || 0,
|
|
225
225
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
226
|
-
})),
|
|
226
|
+
})), h = this.plotSet.map((e) => ({
|
|
227
227
|
name: e.name,
|
|
228
228
|
color: e.color,
|
|
229
229
|
scale: e.individualScale,
|
|
@@ -235,7 +235,7 @@ const ct = ne(), ot = {
|
|
|
235
235
|
id: e.id,
|
|
236
236
|
yOffset: e.yOffset || 0,
|
|
237
237
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
238
|
-
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...s, ...n, ...
|
|
238
|
+
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...s, ...n, ...h], l = f.flatMap((e) => e).length;
|
|
239
239
|
return f.flatMap((e, a) => ({
|
|
240
240
|
unique: e.unique,
|
|
241
241
|
id: e.id,
|
|
@@ -247,9 +247,9 @@ const ct = ne(), ot = {
|
|
|
247
247
|
yOffset: e.yOffset,
|
|
248
248
|
individualHeight: e.individualHeight,
|
|
249
249
|
x: (this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / l * (a + 1)) - this.fontSizes.dataLabels * 1.2,
|
|
250
|
-
yLabels: e.scaleYLabels || e.scale.ticks.map((
|
|
251
|
-
y:
|
|
252
|
-
value:
|
|
250
|
+
yLabels: e.scaleYLabels || e.scale.ticks.map((A) => ({
|
|
251
|
+
y: A >= 0 ? e.zero - e.individualHeight * (A / e.max) : e.zero + e.individualHeight * Math.abs(A) / e.max,
|
|
252
|
+
value: A
|
|
253
253
|
}))
|
|
254
254
|
}));
|
|
255
255
|
},
|
|
@@ -301,14 +301,14 @@ const ct = ne(), ot = {
|
|
|
301
301
|
},
|
|
302
302
|
safeDataset() {
|
|
303
303
|
return this.useSafeValues ? this.dataset.map((s, n) => {
|
|
304
|
-
const
|
|
304
|
+
const h = this.largestTriangleThreeBucketsArray({
|
|
305
305
|
data: s.series,
|
|
306
306
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
307
307
|
}), f = `uniqueId_${n}`;
|
|
308
308
|
return {
|
|
309
309
|
...s,
|
|
310
310
|
slotAbsoluteIndex: n,
|
|
311
|
-
series:
|
|
311
|
+
series: h.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
|
|
312
312
|
color: this.convertColorToHex(s.color ? s.color : this.customPalette[n] ? this.customPalette[n] : this.palette[n]),
|
|
313
313
|
id: f,
|
|
314
314
|
scaleLabel: s.scaleLabel || f
|
|
@@ -318,13 +318,13 @@ const ct = ne(), ot = {
|
|
|
318
318
|
relativeDataset() {
|
|
319
319
|
return this.safeDataset.map((s, n) => ({
|
|
320
320
|
...s,
|
|
321
|
-
series: s.series.map((
|
|
321
|
+
series: s.series.map((h) => h + this.relativeZero),
|
|
322
322
|
absoluteValues: s.series
|
|
323
323
|
})).filter((s) => !this.segregatedSeries.includes(s.id));
|
|
324
324
|
},
|
|
325
325
|
tableSparklineDataset() {
|
|
326
326
|
return this.relativeDataset.map((s) => {
|
|
327
|
-
const n = s.absoluteValues.map((
|
|
327
|
+
const n = s.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
|
|
328
328
|
return {
|
|
329
329
|
id: s.id,
|
|
330
330
|
name: s.name,
|
|
@@ -363,7 +363,7 @@ const ct = ne(), ot = {
|
|
|
363
363
|
return this.safeDataset.map((s, n) => ({
|
|
364
364
|
absoluteIndex: n,
|
|
365
365
|
...s,
|
|
366
|
-
series: s.series.map((
|
|
366
|
+
series: s.series.map((h) => h + this.relativeZero),
|
|
367
367
|
absoluteValues: s.series,
|
|
368
368
|
segregate: () => this.segregate(s),
|
|
369
369
|
isSegregated: this.segregatedSeries.includes(s.id)
|
|
@@ -376,10 +376,10 @@ const ct = ne(), ot = {
|
|
|
376
376
|
return this.assignStackRatios(this.absoluteDataset.filter((s) => !this.segregatedSeries.includes(s.id)));
|
|
377
377
|
},
|
|
378
378
|
scaleGroups() {
|
|
379
|
-
const s = Object.groupBy(this.activeSeriesWithStackRatios, (
|
|
380
|
-
for (const [
|
|
379
|
+
const s = Object.groupBy(this.activeSeriesWithStackRatios, (h) => h.scaleLabel), n = {};
|
|
380
|
+
for (const [h, f] of Object.entries(s)) {
|
|
381
381
|
const l = f.flatMap((e) => e.absoluteValues);
|
|
382
|
-
n[
|
|
382
|
+
n[h] = {
|
|
383
383
|
min: Math.min(...l) || 0,
|
|
384
384
|
max: Math.max(...l) || 1,
|
|
385
385
|
groupId: `scale_group_${this.createUid()}`
|
|
@@ -388,19 +388,19 @@ const ct = ne(), ot = {
|
|
|
388
388
|
return n;
|
|
389
389
|
},
|
|
390
390
|
barSet() {
|
|
391
|
-
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length,
|
|
392
|
-
return s.filter((a) => a.type === "bar").map((a,
|
|
391
|
+
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
|
|
392
|
+
return s.filter((a) => a.type === "bar").map((a, A) => {
|
|
393
393
|
this.checkAutoScaleError(a);
|
|
394
|
-
const
|
|
395
|
-
a.absoluteValues.filter((C) => ![null, void 0].includes(C)).map((C) => (C -
|
|
394
|
+
const M = this.scaleGroups[a.scaleLabel].min, w = this.scaleGroups[a.scaleLabel].max;
|
|
395
|
+
a.absoluteValues.filter((C) => ![null, void 0].includes(C)).map((C) => (C - M) / (w - M));
|
|
396
396
|
const N = {
|
|
397
|
-
valueMin:
|
|
397
|
+
valueMin: M,
|
|
398
398
|
valueMax: w < 0 ? 0 : w
|
|
399
|
-
},
|
|
399
|
+
}, F = {
|
|
400
400
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
401
401
|
min: a.scaleMin || Math.min(...a.absoluteValues.filter((C) => ![void 0, null].includes(C))) > 0 ? 0 : Math.min(...a.absoluteValues.filter((C) => ![null, void 0].includes(C)))
|
|
402
|
-
},
|
|
403
|
-
const K = this.mutableConfig.useIndividualScale ? (a.absoluteValues[P] +
|
|
402
|
+
}, v = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), p = L.min >= 0 ? 0 : Math.abs(L.min), B = 0, t = L.max + p, o = b.max + Math.abs(B), c = a.stackIndex, g = n - 1 - c, z = f ? 1 - a.cumulatedStackRatio : 0, S = f ? e * z + h * g : 0, k = f ? e * a.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * p / t, Y = this.drawingArea.bottom - S - k * B / o, E = this.absoluteDataset.filter((C) => C.type === "bar").filter((C) => !this.segregatedSeries.includes(C.id)).length, te = a.series.map((C, P) => {
|
|
403
|
+
const K = this.mutableConfig.useIndividualScale ? (a.absoluteValues[P] + p) / t : this.ratioToMax(C), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * P : this.drawingArea.left + this.slot.bar * A + this.slot.bar * P * E - this.barSlot / 2 - A * this.barPeriodGap;
|
|
404
404
|
return {
|
|
405
405
|
yOffset: this.checkNaN(S),
|
|
406
406
|
individualHeight: this.checkNaN(k),
|
|
@@ -412,7 +412,7 @@ const ct = ne(), ot = {
|
|
|
412
412
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
413
413
|
};
|
|
414
414
|
}), W = a.absoluteValues.map((C) => b.min >= 0 ? (C - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (C + Math.abs(b.min)) / (b.max + Math.abs(b.min))), J = a.series.map((C, P) => {
|
|
415
|
-
const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * P : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar *
|
|
415
|
+
const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * P : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * A + this.slot.bar * P * this.absoluteDataset.filter((Q) => Q.type === "bar").filter((Q) => !this.segregatedSeries.includes(Q.id)).length;
|
|
416
416
|
return {
|
|
417
417
|
yOffset: this.checkNaN(S),
|
|
418
418
|
individualHeight: this.checkNaN(k),
|
|
@@ -454,26 +454,26 @@ const ct = ne(), ot = {
|
|
|
454
454
|
});
|
|
455
455
|
},
|
|
456
456
|
lineSet() {
|
|
457
|
-
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length,
|
|
458
|
-
return s.filter((a) => a.type === "line").map((a,
|
|
457
|
+
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
|
|
458
|
+
return s.filter((a) => a.type === "line").map((a, A) => {
|
|
459
459
|
this.checkAutoScaleError(a);
|
|
460
|
-
const
|
|
461
|
-
a.absoluteValues.filter((
|
|
460
|
+
const M = this.scaleGroups[a.scaleLabel].min, w = this.scaleGroups[a.scaleLabel].max;
|
|
461
|
+
a.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - M) / (w - M));
|
|
462
462
|
const N = {
|
|
463
|
-
valueMin:
|
|
463
|
+
valueMin: M,
|
|
464
464
|
valueMax: w
|
|
465
|
-
},
|
|
465
|
+
}, F = {
|
|
466
466
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
467
467
|
min: a.scaleMin || (Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues))
|
|
468
|
-
},
|
|
469
|
-
const he = this.mutableConfig.useIndividualScale ? (a.absoluteValues[H] + Math.abs(
|
|
468
|
+
}, v = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, L = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(F.min, F.max === F.min ? F.max * m : F.max, v) : this.calculateNiceScaleWithExactExtremes(F.min, F.max === F.min ? F.max * m : F.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), p = L.min >= 0 ? 0 : Math.abs(L.min), B = 0, t = L.max + Math.abs(p), o = b.max + Math.abs(B), c = a.stackIndex, g = n - 1 - c, z = f ? 1 - a.cumulatedStackRatio : 0, S = f ? e * z + h * g : 0, k = f ? e * a.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * p / t, Y = this.drawingArea.bottom - S - k * B / o, E = a.series.map((y, H) => {
|
|
469
|
+
const he = this.mutableConfig.useIndividualScale ? (a.absoluteValues[H] + Math.abs(p)) / t : this.ratioToMax(y);
|
|
470
470
|
return {
|
|
471
471
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * H),
|
|
472
472
|
y: this.checkNaN(this.drawingArea.bottom - S - k * he),
|
|
473
473
|
value: a.absoluteValues[H],
|
|
474
474
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[H] || ""
|
|
475
475
|
};
|
|
476
|
-
}), te = a.absoluteValues.map((
|
|
476
|
+
}), te = a.absoluteValues.map((y) => b.min >= 0 ? (y - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (y + Math.abs(b.min)) / (b.max + Math.abs(b.min))), W = a.series.map((y, H) => [void 0, null].includes(a.absoluteValues[H]) ? {
|
|
477
477
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * H),
|
|
478
478
|
y: T,
|
|
479
479
|
value: a.absoluteValues[H],
|
|
@@ -483,23 +483,23 @@ const ct = ne(), ot = {
|
|
|
483
483
|
y: this.checkNaN(this.drawingArea.bottom - S - (k * te[H] || 0)),
|
|
484
484
|
value: a.absoluteValues[H],
|
|
485
485
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[H] || ""
|
|
486
|
-
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((
|
|
487
|
-
y:
|
|
488
|
-
value:
|
|
486
|
+
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((y) => y.value !== null)), O = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((y) => y.value !== null)), V = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(E) : this.createStraightPath(E.filter((y) => y.value !== null)), C = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(W) : this.createStraightPath(W.filter((y) => y.value !== null)), P = L.ticks.map((y) => ({
|
|
487
|
+
y: y >= 0 ? T - k * (y / t) : T + k * Math.abs(y) / t,
|
|
488
|
+
value: y,
|
|
489
489
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
490
490
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
491
491
|
datapoint: a
|
|
492
|
-
})), K = b.ticks.map((
|
|
493
|
-
const H = (
|
|
492
|
+
})), K = b.ticks.map((y) => {
|
|
493
|
+
const H = (y - b.min) / (b.max - b.min);
|
|
494
494
|
return {
|
|
495
|
-
y:
|
|
496
|
-
value:
|
|
495
|
+
y: y >= 0 ? Y - k * H : Y + k * H,
|
|
496
|
+
value: y,
|
|
497
497
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
498
498
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
499
499
|
datapoint: a
|
|
500
500
|
};
|
|
501
501
|
});
|
|
502
|
-
this.scaleGroups[a.scaleLabel].name = a.name, this.scaleGroups[a.scaleLabel].groupName = a.scaleLabel, this.scaleGroups[a.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || a.color, this.scaleGroups[a.scaleLabel].color = a.color, this.scaleGroups[a.scaleLabel].scaleYLabels = a.autoScaling ? K : P, this.scaleGroups[a.scaleLabel].zeroPosition = a.autoScaling ? Y : T, this.scaleGroups[a.scaleLabel].individualMax = a.autoScaling ? o : t, this.scaleGroups[a.scaleLabel].scaleLabel = a.scaleLabel, this.scaleGroups[a.scaleLabel].id = a.id, this.scaleGroups[a.scaleLabel].yOffset = S, this.scaleGroups[a.scaleLabel].individualHeight = k, this.scaleGroups[a.scaleLabel].autoScaleYLabels = K, this.scaleGroups[a.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((
|
|
502
|
+
this.scaleGroups[a.scaleLabel].name = a.name, this.scaleGroups[a.scaleLabel].groupName = a.scaleLabel, this.scaleGroups[a.scaleLabel].groupColor = this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor || a.color, this.scaleGroups[a.scaleLabel].color = a.color, this.scaleGroups[a.scaleLabel].scaleYLabels = a.autoScaling ? K : P, this.scaleGroups[a.scaleLabel].zeroPosition = a.autoScaling ? Y : T, this.scaleGroups[a.scaleLabel].individualMax = a.autoScaling ? o : t, this.scaleGroups[a.scaleLabel].scaleLabel = a.scaleLabel, this.scaleGroups[a.scaleLabel].id = a.id, this.scaleGroups[a.scaleLabel].yOffset = S, this.scaleGroups[a.scaleLabel].individualHeight = k, this.scaleGroups[a.scaleLabel].autoScaleYLabels = K, this.scaleGroups[a.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((y) => y.scaleLabel === a.scaleLabel).length === 1;
|
|
503
503
|
const Q = this.mutableConfig.useIndividualScale ? a.autoScaling ? Y : T : this.zero, se = Math.max(Math.max(a.autoScaling ? Y : P.length ? P.at(-1).y : 0, this.drawingArea.top), Q);
|
|
504
504
|
return {
|
|
505
505
|
...a,
|
|
@@ -516,11 +516,11 @@ const ct = ne(), ot = {
|
|
|
516
516
|
a.autoScaling ? W : E,
|
|
517
517
|
se
|
|
518
518
|
) : this.createIndividualArea(
|
|
519
|
-
a.autoScaling ? W.filter((
|
|
519
|
+
a.autoScaling ? W.filter((y) => y.value !== null) : E.filter((y) => y.value !== null),
|
|
520
520
|
se
|
|
521
|
-
) : this.createIndividualArea(E.filter((
|
|
521
|
+
) : this.createIndividualArea(E.filter((y) => y.value !== null), se) : "",
|
|
522
522
|
curveAreas: a.useArea ? ce(
|
|
523
|
-
a.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((
|
|
523
|
+
a.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((y) => y.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((y) => y.value !== null),
|
|
524
524
|
se,
|
|
525
525
|
this.FINAL_CONFIG.line.cutNullValues
|
|
526
526
|
) : [],
|
|
@@ -530,18 +530,18 @@ const ct = ne(), ot = {
|
|
|
530
530
|
});
|
|
531
531
|
},
|
|
532
532
|
plotSet() {
|
|
533
|
-
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length,
|
|
533
|
+
const s = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), n = s.length, h = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? h * (n - 1) : 0, e = this.drawingArea.height - l;
|
|
534
534
|
return s.filter((a) => a.type === "plot").map((a) => {
|
|
535
535
|
this.checkAutoScaleError(a);
|
|
536
|
-
const
|
|
537
|
-
a.absoluteValues.filter((O) => ![null, void 0].includes(O)).map((O) => (O -
|
|
536
|
+
const A = this.scaleGroups[a.scaleLabel].min, M = this.scaleGroups[a.scaleLabel].max;
|
|
537
|
+
a.absoluteValues.filter((O) => ![null, void 0].includes(O)).map((O) => (O - A) / (M - A));
|
|
538
538
|
const w = {
|
|
539
|
-
valueMin:
|
|
540
|
-
valueMax:
|
|
539
|
+
valueMin: A,
|
|
540
|
+
valueMax: M
|
|
541
541
|
}, N = {
|
|
542
542
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
543
543
|
min: a.scaleMin || Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues)
|
|
544
|
-
},
|
|
544
|
+
}, F = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, v = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(N.min, N.max === N.min ? N.max * v : N.max, F), L = this.calculateNiceScaleWithExactExtremes(w.valueMin, w.valueMax === w.valueMin ? w.valueMax * v : w.valueMax, F), b = m.min >= 0 ? 0 : Math.abs(m.min), p = 0, B = m.max + b, t = L.max + Math.abs(p), o = a.stackIndex, c = n - 1 - o, g = f ? 1 - a.cumulatedStackRatio : 0, z = f ? e * g + h * c : 0, S = f ? e * a.stackRatio : this.drawingArea.height, k = this.drawingArea.bottom - z - S * b / B, T = this.drawingArea.bottom - z - S * p / t, Y = a.series.map((O, V) => {
|
|
545
545
|
const C = this.mutableConfig.useIndividualScale ? (a.absoluteValues[V] + Math.abs(b)) / B : this.ratioToMax(O);
|
|
546
546
|
return {
|
|
547
547
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * V),
|
|
@@ -588,18 +588,18 @@ const ct = ne(), ot = {
|
|
|
588
588
|
function s(l) {
|
|
589
589
|
const e = /* @__PURE__ */ new Set();
|
|
590
590
|
return l.forEach((a) => {
|
|
591
|
-
const
|
|
592
|
-
e.add(
|
|
591
|
+
const A = a.scaleLabel || "__noScaleLabel__";
|
|
592
|
+
e.add(A);
|
|
593
593
|
}), e.size;
|
|
594
594
|
}
|
|
595
|
-
const n = s(this.absoluteDataset.filter((l) => !this.segregatedSeries.includes(l.id))),
|
|
595
|
+
const n = s(this.absoluteDataset.filter((l) => !this.segregatedSeries.includes(l.id))), h = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? n * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + this.fontSizes.dataLabels * 1.2) : 0, f = this.mutableConfig.isStacked ? this.fontSizes.dataLabels * 2 : 0;
|
|
596
596
|
return {
|
|
597
597
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
598
598
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
599
599
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
600
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
600
|
+
left: this.FINAL_CONFIG.chart.padding.left + h + f,
|
|
601
601
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
602
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
602
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + h + f)
|
|
603
603
|
};
|
|
604
604
|
},
|
|
605
605
|
max() {
|
|
@@ -646,13 +646,13 @@ const ct = ne(), ot = {
|
|
|
646
646
|
},
|
|
647
647
|
table() {
|
|
648
648
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
649
|
-
const s = this.relativeDataset.map((
|
|
650
|
-
label:
|
|
651
|
-
color:
|
|
652
|
-
type:
|
|
649
|
+
const s = this.relativeDataset.map((h) => ({
|
|
650
|
+
label: h.name,
|
|
651
|
+
color: h.color,
|
|
652
|
+
type: h.type
|
|
653
653
|
})), n = [];
|
|
654
|
-
return this.timeLabels.forEach((
|
|
655
|
-
const l = [
|
|
654
|
+
return this.timeLabels.forEach((h, f) => {
|
|
655
|
+
const l = [h.text];
|
|
656
656
|
this.relativeDataset.forEach((e) => {
|
|
657
657
|
l.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
658
658
|
}), n.push(l);
|
|
@@ -662,20 +662,20 @@ const ct = ne(), ot = {
|
|
|
662
662
|
const s = this.FINAL_CONFIG.table.showSum;
|
|
663
663
|
let n = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
664
664
|
s && (n = n.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>'));
|
|
665
|
-
let
|
|
665
|
+
let h = [];
|
|
666
666
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
667
|
-
const a = this.relativeDataset.map((
|
|
668
|
-
|
|
667
|
+
const a = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, M) => A + M, 0);
|
|
668
|
+
h.push(
|
|
669
669
|
[
|
|
670
670
|
this.timeLabels[e].text ?? "-"
|
|
671
671
|
].concat(this.relativeDataset.map(
|
|
672
|
-
(
|
|
673
|
-
|
|
674
|
-
|
|
672
|
+
(A) => this.applyDataLabel(
|
|
673
|
+
A.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : A.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
674
|
+
A.absoluteValues[e] ?? 0,
|
|
675
675
|
this.dataLabel({
|
|
676
|
-
p:
|
|
677
|
-
v:
|
|
678
|
-
s:
|
|
676
|
+
p: A.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
677
|
+
v: A.absoluteValues[e] ?? 0,
|
|
678
|
+
s: A.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
679
679
|
r: this.FINAL_CONFIG.table.rounding
|
|
680
680
|
})
|
|
681
681
|
)
|
|
@@ -695,7 +695,7 @@ const ct = ne(), ot = {
|
|
|
695
695
|
},
|
|
696
696
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
697
697
|
}, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
698
|
-
return { head: n, body:
|
|
698
|
+
return { head: n, body: h, config: f, colNames: l };
|
|
699
699
|
},
|
|
700
700
|
dataTooltipSlot() {
|
|
701
701
|
return {
|
|
@@ -715,7 +715,7 @@ const ct = ne(), ot = {
|
|
|
715
715
|
name: s.name,
|
|
716
716
|
color: s.color,
|
|
717
717
|
type: s.type,
|
|
718
|
-
value: s.absoluteValues.find((n,
|
|
718
|
+
value: s.absoluteValues.find((n, h) => h === this.selectedSerieIndex),
|
|
719
719
|
comments: s.comments || [],
|
|
720
720
|
prefix: s.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
721
721
|
suffix: s.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
@@ -723,7 +723,7 @@ const ct = ne(), ot = {
|
|
|
723
723
|
},
|
|
724
724
|
tooltipContent() {
|
|
725
725
|
let s = "", n = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
|
|
726
|
-
const
|
|
726
|
+
const h = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
727
727
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
728
728
|
seriesIndex: this.selectedSerieIndex,
|
|
729
729
|
datapoint: this.selectedSeries,
|
|
@@ -740,7 +740,7 @@ const ct = ne(), ot = {
|
|
|
740
740
|
lines: this.lineSet,
|
|
741
741
|
plots: this.plotSet,
|
|
742
742
|
config: this.FINAL_CONFIG
|
|
743
|
-
}) : (
|
|
743
|
+
}) : (h && h.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h.text}</div>`), this.selectedSeries.forEach((l) => {
|
|
744
744
|
if (this.isSafeValue(l.value)) {
|
|
745
745
|
let e = "", a = "";
|
|
746
746
|
switch (this.icons[l.type]) {
|
|
@@ -822,26 +822,26 @@ const ct = ne(), ot = {
|
|
|
822
822
|
(N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
|
|
823
823
|
);
|
|
824
824
|
if (!n.length) return [];
|
|
825
|
-
const { left:
|
|
826
|
-
const
|
|
827
|
-
return l -
|
|
825
|
+
const { left: h, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, a = this.niceScale.min, M = this.niceScale.max - a, w = (N) => {
|
|
826
|
+
const F = (N - 0) / M;
|
|
827
|
+
return l - F * e;
|
|
828
828
|
};
|
|
829
829
|
return n.map((N) => {
|
|
830
|
-
const { yAxis: { yTop:
|
|
830
|
+
const { yAxis: { yTop: F, yBottom: v, label: m } } = N, L = F != null && v != null && F !== v, b = F == null ? null : w(F), p = v == null ? null : w(v), B = this.getTextMeasurer(m.fontSize);
|
|
831
831
|
B.font = `${m.fontSize}px sans-serif`;
|
|
832
|
-
const t = B.measureText(m.text).width, o = m.fontSize, c = (m.position === "start" ?
|
|
832
|
+
const t = B.measureText(m.text).width, o = m.fontSize, c = (m.position === "start" ? h + m.padding.left : f - m.padding.right) + m.offsetX, z = (b != null && p != null ? Math.min(b, p) : b ?? p) - m.fontSize / 3 + m.offsetY - m.padding.top;
|
|
833
833
|
let S;
|
|
834
834
|
m.textAnchor === "middle" ? S = c - t / 2 - m.padding.left : m.textAnchor === "end" ? S = c - t - m.padding.right : S = c - m.padding.left;
|
|
835
835
|
const k = z - o * 0.75 - m.padding.top;
|
|
836
836
|
return {
|
|
837
|
-
show: ![b,
|
|
837
|
+
show: ![b, p, k].includes(NaN),
|
|
838
838
|
id: `annotation_y_${this.createUid()}`,
|
|
839
839
|
hasArea: L,
|
|
840
|
-
areaHeight: L ? Math.abs(b -
|
|
840
|
+
areaHeight: L ? Math.abs(b - p) : 0,
|
|
841
841
|
yTop: b,
|
|
842
|
-
yBottom:
|
|
842
|
+
yBottom: p,
|
|
843
843
|
config: N.yAxis,
|
|
844
|
-
x1:
|
|
844
|
+
x1: h,
|
|
845
845
|
x2: f,
|
|
846
846
|
_text: { x: c, y: z },
|
|
847
847
|
_box: {
|
|
@@ -903,7 +903,7 @@ const ct = ne(), ot = {
|
|
|
903
903
|
translateSize: me,
|
|
904
904
|
treeShake: Ne,
|
|
905
905
|
useMouse: je,
|
|
906
|
-
useNestedProp:
|
|
906
|
+
useNestedProp: re,
|
|
907
907
|
createUid: ne,
|
|
908
908
|
placeXYTag: xe,
|
|
909
909
|
createSmoothPathWithCuts: Ie,
|
|
@@ -915,19 +915,19 @@ const ct = ne(), ot = {
|
|
|
915
915
|
usesSelectTimeLabelEvent() {
|
|
916
916
|
return !!this.$.vnode.props?.onSelectTimeLabel;
|
|
917
917
|
},
|
|
918
|
-
getTextMeasurer(s, n,
|
|
918
|
+
getTextMeasurer(s, n, h) {
|
|
919
919
|
if (!this._textMeasurer) {
|
|
920
920
|
const f = document.createElement("canvas");
|
|
921
921
|
this._textMeasurer = f.getContext("2d");
|
|
922
922
|
}
|
|
923
|
-
return this._textMeasurer.font = `${
|
|
923
|
+
return this._textMeasurer.font = `${h || "normal"} ${s}px ${n || "sans-serif"}`, this._textMeasurer;
|
|
924
924
|
},
|
|
925
925
|
hideTags() {
|
|
926
926
|
const s = document.querySelectorAll(".vue-ui-xy-tag");
|
|
927
927
|
s.length && Array.from(s).forEach((n) => n.style.opacity = "0");
|
|
928
928
|
},
|
|
929
|
-
setTagRef(s, n,
|
|
930
|
-
|
|
929
|
+
setTagRef(s, n, h, f, l) {
|
|
930
|
+
h && (this.tagRefs[`${s}_${n}_${f}_${l}`] = h);
|
|
931
931
|
},
|
|
932
932
|
setUserOptionsVisibility(s = !1) {
|
|
933
933
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = s);
|
|
@@ -936,7 +936,7 @@ const ct = ne(), ot = {
|
|
|
936
936
|
this.isAnnotator = !this.isAnnotator;
|
|
937
937
|
},
|
|
938
938
|
selectTimeLabel(s, n) {
|
|
939
|
-
const
|
|
939
|
+
const h = this.relativeDataset.map((f) => ({
|
|
940
940
|
shape: f.shape || null,
|
|
941
941
|
name: f.name,
|
|
942
942
|
color: f.color,
|
|
@@ -947,16 +947,16 @@ const ct = ne(), ot = {
|
|
|
947
947
|
suffix: f.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
948
948
|
}));
|
|
949
949
|
this.$emit("selectTimeLabel", {
|
|
950
|
-
datapoint:
|
|
950
|
+
datapoint: h,
|
|
951
951
|
absoluteIndex: s.absoluteIndex,
|
|
952
952
|
label: s.text
|
|
953
953
|
});
|
|
954
954
|
},
|
|
955
955
|
getHighlightAreaPosition(s) {
|
|
956
|
-
const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (s.from - this.slicer.start),
|
|
956
|
+
const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (s.from - this.slicer.start), h = this.drawingArea.width / (this.slicer.end - this.slicer.start) * s.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * s.span;
|
|
957
957
|
return {
|
|
958
958
|
x: n < this.drawingArea.left ? this.drawingArea.left : n,
|
|
959
|
-
width:
|
|
959
|
+
width: h
|
|
960
960
|
};
|
|
961
961
|
},
|
|
962
962
|
prepareConfig() {
|
|
@@ -967,28 +967,29 @@ const ct = ne(), ot = {
|
|
|
967
967
|
userConfig: this.config,
|
|
968
968
|
defaultConfig: s
|
|
969
969
|
});
|
|
970
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? n.chart.highlightArea = this.config.chart.highlightArea : n.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? n.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : n.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? n.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : n.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? n.chart.zoom.startIndex = this.config.chart.zoom.startIndex : n.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? n.chart.zoom.endIndex = this.config.chart.zoom.endIndex : n.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? n.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : n.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? n.chart.annotations = this.config.chart.annotations.map((
|
|
970
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? n.chart.highlightArea = this.config.chart.highlightArea : n.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? n.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : n.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? n.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : n.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? n.chart.zoom.startIndex = this.config.chart.zoom.startIndex : n.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? n.chart.zoom.endIndex = this.config.chart.zoom.endIndex : n.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? n.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : n.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? n.chart.annotations = this.config.chart.annotations.map((h) => re({
|
|
971
971
|
defaultConfig: s.chart.annotations[0],
|
|
972
|
-
userConfig:
|
|
972
|
+
userConfig: h
|
|
973
973
|
})) : n.chart.annotations = [], n.theme ? {
|
|
974
|
-
...
|
|
974
|
+
...re({
|
|
975
975
|
userConfig: this.themes.vue_ui_xy[n.theme] || this.config,
|
|
976
976
|
defaultConfig: n
|
|
977
977
|
}),
|
|
978
978
|
customPalette: this.themePalettes[n.theme] || this.palette
|
|
979
979
|
} : n;
|
|
980
980
|
},
|
|
981
|
-
|
|
981
|
+
setViewBox() {
|
|
982
982
|
const s = this.$refs.G;
|
|
983
983
|
if (!s) return;
|
|
984
984
|
const n = this.$refs.chart;
|
|
985
985
|
n && n.classList.add("no-transition");
|
|
986
|
-
const
|
|
987
|
-
let
|
|
988
|
-
this.$refs.yAxisLabel && (
|
|
989
|
-
let
|
|
990
|
-
this.$refs.xAxisLabel && (
|
|
991
|
-
|
|
986
|
+
const h = this.fontSizes.plotLabels;
|
|
987
|
+
let f = 0;
|
|
988
|
+
this.$refs.yAxisLabel && (f += this.$refs.yAxisLabel.getBBox().width);
|
|
989
|
+
let l = 0;
|
|
990
|
+
this.$refs.xAxisLabel && (l += this.$refs.xAxisLabel.getBBox().height + this.fontSizes.yAxis + this.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY), this.viewBox = `0 0 ${this.width} ${this.height}`, this.$nextTick(() => {
|
|
991
|
+
const { x: e, y: a, width: A, height: M } = s.getBBox();
|
|
992
|
+
if (this.viewBox = `${e - f} ${a - h} ${A + f} ${M + h + l}`, this.$refs.scaleLabels) {
|
|
992
993
|
const { x: w, width: N } = this.$refs.scaleLabels.getBBox();
|
|
993
994
|
this.scaleBox.x = w, this.scaleBox.width = N;
|
|
994
995
|
} else
|
|
@@ -1008,9 +1009,9 @@ const ct = ne(), ot = {
|
|
|
1008
1009
|
index: n
|
|
1009
1010
|
});
|
|
1010
1011
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((s) => {
|
|
1011
|
-
s.series.forEach((n,
|
|
1012
|
+
s.series.forEach((n, h) => {
|
|
1012
1013
|
this.isSafeValue(n) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1013
|
-
-----> The serie '${s.name}' contains the value '${n}' at index ${
|
|
1014
|
+
-----> The serie '${s.name}' contains the value '${n}' at index ${h}.
|
|
1014
1015
|
'${n}' was converted to null to allow the chart to display.`);
|
|
1015
1016
|
});
|
|
1016
1017
|
}), 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 = {
|
|
@@ -1024,30 +1025,30 @@ const ct = ne(), ot = {
|
|
|
1024
1025
|
}, this.FINAL_CONFIG.responsive) {
|
|
1025
1026
|
const n = this.$refs.chart.parentNode;
|
|
1026
1027
|
this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
1027
|
-
const { height:
|
|
1028
|
+
const { height: h, width: f } = n.getBoundingClientRect();
|
|
1028
1029
|
let l = null, e = 0;
|
|
1029
1030
|
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
|
|
1030
|
-
let a = null,
|
|
1031
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (a = this.$refs.chartSlicer.$el,
|
|
1032
|
-
let
|
|
1033
|
-
this.FINAL_CONFIG.chart.legend.show && this.$refs.chartLegend && (
|
|
1031
|
+
let a = null, A = 0;
|
|
1032
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (a = this.$refs.chartSlicer.$el, A = a.getBoundingClientRect().height);
|
|
1033
|
+
let M = null, w = 0;
|
|
1034
|
+
this.FINAL_CONFIG.chart.legend.show && this.$refs.chartLegend && (M = this.$refs.chartLegend, w = M.getBoundingClientRect().height);
|
|
1034
1035
|
let N = 0;
|
|
1035
1036
|
this.$refs.source && (N = this.$refs.source.getBoundingClientRect().height);
|
|
1036
|
-
let
|
|
1037
|
-
this.$refs.noTitle && (
|
|
1038
|
-
const
|
|
1039
|
-
this.height =
|
|
1037
|
+
let F = 0;
|
|
1038
|
+
this.$refs.noTitle && (F = this.$refs.noTitle.getBoundingClientRect().height);
|
|
1039
|
+
const v = e + F + A + w + N + 12;
|
|
1040
|
+
this.height = h - v, this.width = f, this.convertSizes(), this.$nextTick(this.setViewBox);
|
|
1040
1041
|
const m = this.$refs.svgRef;
|
|
1041
|
-
m && m.setAttribute("height", `calc(100% - ${
|
|
1042
|
+
m && m.setAttribute("height", `calc(100% - ${v}px`);
|
|
1042
1043
|
const L = new ResizeObserver((b) => {
|
|
1043
|
-
for (const
|
|
1044
|
-
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ?
|
|
1045
|
-
this.height = Math.max(12,
|
|
1044
|
+
for (const p of b)
|
|
1045
|
+
this.FINAL_CONFIG.chart.title.show && this.$refs.chartTitle ? e = this.$refs.chartTitle.getBoundingClientRect().height : e = 0, this.$refs.chartSlicer && this.$refs.chartSlicer.$el ? A = this.$refs.chartSlicer.$el.getBoundingClientRect().height : A = 0, this.$refs.chartLegend ? w = this.$refs.chartLegend.getBoundingClientRect().height : w = 0, this.$refs.source ? N = this.$refs.source.getBoundingClientRect().height : N = 0, this.$refs.noTitle ? F = this.$refs.noTitle.getBoundingClientRect().height : F = 0, requestAnimationFrame(() => {
|
|
1046
|
+
this.height = Math.max(12, p.contentRect.height - e - w - A - N - F - 12), this.width = Math.max(12, p.contentBoxSize[0].inlineSize), this.convertSizes(), this.$nextTick(this.setViewBox);
|
|
1046
1047
|
});
|
|
1047
1048
|
});
|
|
1048
1049
|
this.resizeObserver = L, this.observedEl = n, L.observe(n);
|
|
1049
1050
|
} else
|
|
1050
|
-
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.
|
|
1051
|
+
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, 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, this.$nextTick(this.setViewBox);
|
|
1051
1052
|
},
|
|
1052
1053
|
selectMinimapIndex(s) {
|
|
1053
1054
|
this.selectedMinimapIndex = s;
|
|
@@ -1112,18 +1113,18 @@ const ct = ne(), ot = {
|
|
|
1112
1113
|
},
|
|
1113
1114
|
createArea(s, n) {
|
|
1114
1115
|
if (!s[0]) return [-10, -10, "", -10, -10];
|
|
1115
|
-
const
|
|
1116
|
+
const h = { x: s[0].x, y: n }, f = { x: s.at(-1).x, y: n }, l = [];
|
|
1116
1117
|
return s.forEach((e) => {
|
|
1117
1118
|
l.push(`${e.x},${e.y} `);
|
|
1118
|
-
}), [
|
|
1119
|
+
}), [h.x, h.y, ...l, f.x, f.y].toString();
|
|
1119
1120
|
},
|
|
1120
1121
|
createStar: ae,
|
|
1121
1122
|
createPolygonPath: q,
|
|
1122
1123
|
fillArray(s, n) {
|
|
1123
|
-
let
|
|
1124
|
+
let h = Array(s).fill(0);
|
|
1124
1125
|
for (let f = 0; f < n.length && f < s; f += 1)
|
|
1125
|
-
|
|
1126
|
-
return
|
|
1126
|
+
h[f] = n[f];
|
|
1127
|
+
return h;
|
|
1127
1128
|
},
|
|
1128
1129
|
async setupSlicer() {
|
|
1129
1130
|
(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 = {
|
|
@@ -1135,7 +1136,7 @@ const ct = ne(), ot = {
|
|
|
1135
1136
|
this.setupSlicer();
|
|
1136
1137
|
},
|
|
1137
1138
|
validSlicerEnd(s) {
|
|
1138
|
-
const n = Math.max(...this.dataset.map((
|
|
1139
|
+
const n = Math.max(...this.dataset.map((h) => this.largestTriangleThreeBucketsArray({ data: h.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
1139
1140
|
return s > n ? n : s < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && s < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : s;
|
|
1140
1141
|
},
|
|
1141
1142
|
calcRectHeight(s) {
|
|
@@ -1161,12 +1162,12 @@ const ct = ne(), ot = {
|
|
|
1161
1162
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(s);
|
|
1162
1163
|
},
|
|
1163
1164
|
findClosestValue(s, n) {
|
|
1164
|
-
let
|
|
1165
|
+
let h = n[0], f = Math.abs(s - n[0]);
|
|
1165
1166
|
for (let l = 1; l < n.length; l += 1) {
|
|
1166
1167
|
const e = Math.abs(s - n[l]);
|
|
1167
|
-
e < f && n[l] < s && (
|
|
1168
|
+
e < f && n[l] < s && (h = n[l], f = e);
|
|
1168
1169
|
}
|
|
1169
|
-
return
|
|
1170
|
+
return h;
|
|
1170
1171
|
},
|
|
1171
1172
|
ratioToMax(s) {
|
|
1172
1173
|
return s / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
@@ -1220,7 +1221,7 @@ const ct = ne(), ot = {
|
|
|
1220
1221
|
async generatePdf() {
|
|
1221
1222
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1222
1223
|
try {
|
|
1223
|
-
const { default: s } = await import("./pdf-
|
|
1224
|
+
const { default: s } = await import("./pdf-CLOacSiV.js");
|
|
1224
1225
|
await s({
|
|
1225
1226
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1226
1227
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1234,7 +1235,7 @@ const ct = ne(), ot = {
|
|
|
1234
1235
|
}, 100);
|
|
1235
1236
|
},
|
|
1236
1237
|
generateCsv(s = null) {
|
|
1237
|
-
const n = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]],
|
|
1238
|
+
const n = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], h = ["", ...this.table.head.map((a) => a.label)], f = this.table.body, l = n.concat([h]).concat(f), e = this.createCsvContent(l);
|
|
1238
1239
|
s ? s(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1239
1240
|
},
|
|
1240
1241
|
showSpinnerImage() {
|
|
@@ -1243,7 +1244,7 @@ const ct = ne(), ot = {
|
|
|
1243
1244
|
async generateImage() {
|
|
1244
1245
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1245
1246
|
try {
|
|
1246
|
-
const { default: s } = await import("./img-
|
|
1247
|
+
const { default: s } = await import("./img-F41ob8sE.js");
|
|
1247
1248
|
await s({
|
|
1248
1249
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1249
1250
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1263,10 +1264,10 @@ const ct = ne(), ot = {
|
|
|
1263
1264
|
ref: "noTitle",
|
|
1264
1265
|
class: "vue-data-ui-no-title-space",
|
|
1265
1266
|
style: "height:36px; width: 100%; background:transparent"
|
|
1266
|
-
}, dt = ["viewBox", "aria-label"], gt = { ref: "G" }, ft = ["x", "y", "width", "height"], It = { key: 1 }, xt = { class: "vue-ui-xy-grid" }, Nt = ["stroke", "x1", "x2", "y1", "y2"], mt = ["stroke", "x1", "x2", "y1", "y2"], bt = { key: 1 }, Ft = ["x1", "x2", "y1", "y2", "stroke"], _t = ["x1", "x2", "y1", "y2", "stroke"], yt = ["x1", "x2", "y1", "y2", "stroke"], At = { key: 3 }, Lt = ["x1", "x2", "y1", "y2", "stroke"], Ct = { key: 4 }, St = ["y1", "y2", "x1", "x2", "stroke"], kt = ["id"], wt = ["stop-color"], Ot = ["stop-color"], Gt = ["stop-color"], vt = ["id"], pt = ["stop-color"], Mt = ["stop-color"], zt = ["stop-color"], Tt = ["id"], Vt = ["stop-color"], Pt = ["stop-color"], Rt = ["id"], Bt = ["stop-color"], Ht = ["stop-color"], Dt = ["id"], Et = ["stop-color"], Wt = ["stop-color"], Yt = ["x", "y", "height", "width", "fill"], Xt = ["x", "y", "width"], qt = ["x", "y", "height", "width", "fill"], Ut = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jt = ["width", "x", "y"], Kt = { key: 0 }, Qt = ["id"], jt = ["fill"], $t = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], el = ["x", "y", "font-size", "fill"], tl = ["stroke", "x1", "x2", "y1", "y2"], ll = { key: 2 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"],
|
|
1267
|
+
}, dt = ["viewBox", "aria-label"], gt = { ref: "G" }, ft = ["x", "y", "width", "height"], It = { key: 1 }, xt = { class: "vue-ui-xy-grid" }, Nt = ["stroke", "x1", "x2", "y1", "y2"], mt = ["stroke", "x1", "x2", "y1", "y2"], bt = { key: 1 }, Ft = ["x1", "x2", "y1", "y2", "stroke"], _t = ["x1", "x2", "y1", "y2", "stroke"], yt = ["x1", "x2", "y1", "y2", "stroke"], At = { key: 3 }, Lt = ["x1", "x2", "y1", "y2", "stroke"], Ct = { key: 4 }, St = ["y1", "y2", "x1", "x2", "stroke"], kt = ["id"], wt = ["stop-color"], Ot = ["stop-color"], Gt = ["stop-color"], vt = ["id"], pt = ["stop-color"], Mt = ["stop-color"], zt = ["stop-color"], Tt = ["id"], Vt = ["stop-color"], Pt = ["stop-color"], Rt = ["id"], Bt = ["stop-color"], Ht = ["stop-color"], Dt = ["id"], Et = ["stop-color"], Wt = ["stop-color"], Yt = ["x", "y", "height", "width", "fill"], Xt = ["x", "y", "width"], qt = ["x", "y", "height", "width", "fill"], Ut = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jt = ["width", "x", "y"], Kt = { key: 0 }, Qt = ["id"], jt = ["fill"], $t = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], el = ["x", "y", "font-size", "fill"], tl = ["stroke", "x1", "x2", "y1", "y2"], ll = { key: 2 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], rl = {
|
|
1267
1268
|
key: 4,
|
|
1268
1269
|
ref: "scaleLabels"
|
|
1269
|
-
},
|
|
1270
|
+
}, il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["fill", "font-size", "transform"], cl = ["x1", "x2", "y1", "y2", "stroke"], ol = ["x", "y", "font-size", "fill"], hl = ["x1", "x2", "y1", "y2", "stroke"], ul = ["x", "y", "font-size", "fill"], dl = ["width", "x", "y"], gl = { style: { width: "100%" } }, fl = { key: 0 }, Il = ["id"], xl = ["fill"], Nl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ml = ["x", "y", "font-size", "fill"], bl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fl = ["d", "stroke", "stroke-width", "stroke-dasharray"], _l = { key: 5 }, yl = { key: 0 }, Al = ["d", "fill"], Ll = ["d", "fill"], Cl = ["d", "fill"], Sl = ["d", "fill"], kl = ["d", "stroke", "stroke-width", "stroke-dasharray"], wl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ol = ["width", "x", "y"], Gl = { style: { width: "100%" } }, vl = { key: 3 }, pl = ["id"], Ml = ["fill"], zl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Tl = ["x", "y", "font-size", "fill"], Vl = { key: 6 }, Pl = ["x", "y", "font-size", "fill"], Rl = ["x", "y", "font-size", "fill", "font-weight"], Bl = { key: 7 }, Hl = ["x", "y", "font-size", "fill"], Dl = { key: 8 }, El = ["x", "y"], Wl = ["innerHTML"], Yl = ["x", "y"], Xl = ["innerHTML"], ql = ["x1", "x2", "y1", "y2", "stroke"], Ul = { key: 9 }, Zl = ["x", "y", "font-size", "fill"], Jl = { key: 10 }, Kl = ["x", "y"], Ql = ["innerHTML"], jl = ["x", "y"], $l = ["innerHTML"], es = ["x1", "x2", "y1", "y2", "stroke"], ts = ["x", "y", "font-size", "fill", "innerHTML"], ls = ["x", "y", "font-size", "fill", "innerHTML"], ss = ["x", "y", "font-size", "fill", "innerHTML"], as = ["x", "y", "font-size", "fill", "innerHTML"], rs = ["id"], is = ["stop-color"], ns = ["stop-color"], cs = ["x", "y", "width", "height", "fill", "onMouseenter"], os = ["font-size", "fill", "transform"], hs = ["x", "y", "font-size", "fill"], us = {
|
|
1270
1271
|
key: 12,
|
|
1271
1272
|
ref: "timeLabels"
|
|
1272
1273
|
}, ds = ["text-anchor", "font-size", "fill", "transform", "onClick"], gs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], fs = { key: 13 }, Is = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xs = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ns = ["y", "x", "width", "height", "fill"], ms = ["id", "x", "y", "font-size", "fill", "text-anchor"], bs = ["x", "y", "height", "width", "onMouseenter", "onClick"], Fs = {
|
|
@@ -1321,32 +1322,32 @@ const ct = ne(), ot = {
|
|
|
1321
1322
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1322
1323
|
"data-dom-to-png-ignore": ""
|
|
1323
1324
|
}, qs = ["innerHTML"];
|
|
1324
|
-
function Us(s, n,
|
|
1325
|
-
const a = X("PenAndPaper"),
|
|
1326
|
-
return
|
|
1325
|
+
function Us(s, n, h, f, l, e) {
|
|
1326
|
+
const a = X("PenAndPaper"), A = X("Title"), M = X("UserOptions"), w = X("PackageVersion"), N = X("Shape"), F = X("Skeleton"), v = X("Slicer"), m = X("Tooltip"), L = X("BaseIcon"), b = X("TableSparkline"), p = X("DataTable"), B = X("Accordion");
|
|
1327
|
+
return r(), i("div", {
|
|
1327
1328
|
id: `vue-ui-xy_${l.uniqueId}`,
|
|
1328
1329
|
class: j(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1329
1330
|
ref: "chart",
|
|
1330
|
-
style:
|
|
1331
|
+
style: _(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
|
|
1331
1332
|
onMouseenter: n[7] || (n[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1332
1333
|
onMouseleave: n[8] || (n[8] = () => e.setUserOptionsVisibility(!1))
|
|
1333
1334
|
}, [
|
|
1334
|
-
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (
|
|
1335
|
+
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (r(), U(a, {
|
|
1335
1336
|
key: 0,
|
|
1336
1337
|
svgRef: l.svgRef,
|
|
1337
1338
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1338
1339
|
color: e.FINAL_CONFIG.chart.color,
|
|
1339
1340
|
active: l.isAnnotator,
|
|
1340
1341
|
onClose: e.toggleAnnotator
|
|
1341
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) :
|
|
1342
|
-
e.hasOptionsNoTitle ? (
|
|
1343
|
-
e.FINAL_CONFIG.chart.title.show ? (
|
|
1342
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : u("", !0),
|
|
1343
|
+
e.hasOptionsNoTitle ? (r(), i("div", ut, null, 512)) : u("", !0),
|
|
1344
|
+
e.FINAL_CONFIG.chart.title.show ? (r(), i("div", {
|
|
1344
1345
|
key: 2,
|
|
1345
1346
|
ref: "chartTitle",
|
|
1346
1347
|
class: "vue-ui-xy-title",
|
|
1347
|
-
style:
|
|
1348
|
+
style: _(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1348
1349
|
}, [
|
|
1349
|
-
(
|
|
1350
|
+
(r(), U(A, {
|
|
1350
1351
|
key: `title_${l.titleStep}`,
|
|
1351
1352
|
config: {
|
|
1352
1353
|
title: {
|
|
@@ -1359,8 +1360,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1359
1360
|
}
|
|
1360
1361
|
}
|
|
1361
1362
|
}, null, 8, ["config"]))
|
|
1362
|
-
], 4)) :
|
|
1363
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (
|
|
1363
|
+
], 4)) : u("", !0),
|
|
1364
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (l.keepUserOptionState || l.userOptionsVisible) ? (r(), U(M, {
|
|
1364
1365
|
ref: "defails",
|
|
1365
1366
|
key: `user_options_${l.step}`,
|
|
1366
1367
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1374,7 +1375,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1374
1375
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1375
1376
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1376
1377
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1377
|
-
hasStack:
|
|
1378
|
+
hasStack: h.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1378
1379
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1379
1380
|
isStacked: l.mutableConfig.isStacked,
|
|
1380
1381
|
isFullscreen: l.isFullscreen,
|
|
@@ -1394,7 +1395,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1394
1395
|
onToggleStack: e.toggleStack,
|
|
1395
1396
|
onToggleTooltip: e.toggleTooltip,
|
|
1396
1397
|
onToggleAnnotator: e.toggleAnnotator,
|
|
1397
|
-
style:
|
|
1398
|
+
style: _({
|
|
1398
1399
|
visibility: l.keepUserOptionState ? l.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1399
1400
|
})
|
|
1400
1401
|
}, et({ _: 2 }, [
|
|
@@ -1468,15 +1469,15 @@ function Us(s, n, u, f, l, e) {
|
|
|
1468
1469
|
]),
|
|
1469
1470
|
key: "9"
|
|
1470
1471
|
} : void 0
|
|
1471
|
-
]), 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"])) :
|
|
1472
|
-
e.isDataset ? (
|
|
1472
|
+
]), 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"])) : u("", !0),
|
|
1473
|
+
e.isDataset ? (r(), i("svg", {
|
|
1473
1474
|
key: 4,
|
|
1474
1475
|
ref: "svgRef",
|
|
1475
1476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1476
1477
|
class: j([{ "vue-data-ui-fullscreen--on": l.isFullscreen, "vue-data-ui-fulscreen--off": !l.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1477
1478
|
width: "100%",
|
|
1478
1479
|
viewBox: l.viewBox,
|
|
1479
|
-
style:
|
|
1480
|
+
style: _(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
|
|
1480
1481
|
"aria-label": e.chartAriaLabel,
|
|
1481
1482
|
role: "img",
|
|
1482
1483
|
"aria-live": "polite",
|
|
@@ -1484,7 +1485,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1484
1485
|
}, [
|
|
1485
1486
|
I("g", gt, [
|
|
1486
1487
|
le(w),
|
|
1487
|
-
s.$slots["chart-background"] ? (
|
|
1488
|
+
s.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
1488
1489
|
key: 0,
|
|
1489
1490
|
x: Math.max(0, e.drawingArea.left + e.xPadding),
|
|
1490
1491
|
y: e.drawingArea.top,
|
|
@@ -1495,10 +1496,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
1495
1496
|
}
|
|
1496
1497
|
}, [
|
|
1497
1498
|
G(s.$slots, "chart-background", {}, void 0, !0)
|
|
1498
|
-
], 8, ft)) :
|
|
1499
|
-
e.maxSeries > 0 ? (
|
|
1499
|
+
], 8, ft)) : u("", !0),
|
|
1500
|
+
e.maxSeries > 0 ? (r(), i("g", It, [
|
|
1500
1501
|
I("g", xt, [
|
|
1501
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (
|
|
1502
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), i("line", {
|
|
1502
1503
|
key: 0,
|
|
1503
1504
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1504
1505
|
"stroke-width": "1",
|
|
@@ -1508,9 +1509,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
1508
1509
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1509
1510
|
"stroke-linecap": "round",
|
|
1510
1511
|
style: { animation: "none !important" }
|
|
1511
|
-
}, null, 8, Nt)) :
|
|
1512
|
-
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1513
|
-
t.id === l.selectedScale && t.yLabels.length ? (
|
|
1512
|
+
}, null, 8, Nt)) : u("", !0),
|
|
1513
|
+
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), i(d, { key: 2 }, x(e.allScales, (t) => (r(), i("g", null, [
|
|
1514
|
+
t.id === l.selectedScale && t.yLabels.length ? (r(!0), i(d, { key: 0 }, x(t.yLabels, (o) => (r(), i("line", {
|
|
1514
1515
|
x1: e.drawingArea.left + e.xPadding,
|
|
1515
1516
|
x2: e.drawingArea.right - e.xPadding,
|
|
1516
1517
|
y1: e.forceValidValue(o.y),
|
|
@@ -1519,7 +1520,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1519
1520
|
"stroke-width": 0.5,
|
|
1520
1521
|
"stroke-linecap": "round",
|
|
1521
1522
|
style: { animation: "none !important" }
|
|
1522
|
-
}, null, 8, _t))), 256)) : t.yLabels.length ? (
|
|
1523
|
+
}, null, 8, _t))), 256)) : t.yLabels.length ? (r(!0), i(d, { key: 1 }, x(t.yLabels, (o) => (r(), i("line", {
|
|
1523
1524
|
x1: e.drawingArea.left + e.xPadding,
|
|
1524
1525
|
x2: e.drawingArea.right - e.xPadding,
|
|
1525
1526
|
y1: e.forceValidValue(o.y),
|
|
@@ -1528,9 +1529,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
1528
1529
|
"stroke-width": 0.5,
|
|
1529
1530
|
"stroke-linecap": "round",
|
|
1530
1531
|
style: { animation: "none !important" }
|
|
1531
|
-
}, null, 8, yt))), 256)) :
|
|
1532
|
-
]))), 256)) :
|
|
1533
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (
|
|
1532
|
+
}, null, 8, yt))), 256)) : u("", !0)
|
|
1533
|
+
]))), 256)) : u("", !0) : (r(), i(d, { key: 1 }, [
|
|
1534
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (r(), i("line", {
|
|
1534
1535
|
key: 0,
|
|
1535
1536
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1536
1537
|
"stroke-width": "1",
|
|
@@ -1540,9 +1541,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
1540
1541
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1541
1542
|
"stroke-linecap": "round",
|
|
1542
1543
|
style: { animation: "none !important" }
|
|
1543
|
-
}, null, 8, mt)) :
|
|
1544
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1545
|
-
(
|
|
1544
|
+
}, null, 8, mt)) : u("", !0),
|
|
1545
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), i("g", bt, [
|
|
1546
|
+
(r(!0), i(d, null, x(e.yLabels, (t) => (r(), i("line", {
|
|
1546
1547
|
x1: e.drawingArea.left + e.xPadding,
|
|
1547
1548
|
x2: e.drawingArea.right - e.xPadding,
|
|
1548
1549
|
y1: e.forceValidValue(t.y),
|
|
@@ -1552,10 +1553,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
1552
1553
|
"stroke-linecap": "round",
|
|
1553
1554
|
style: { animation: "none !important" }
|
|
1554
1555
|
}, null, 8, Ft))), 256))
|
|
1555
|
-
])) :
|
|
1556
|
+
])) : u("", !0)
|
|
1556
1557
|
], 64)),
|
|
1557
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (
|
|
1558
|
-
(
|
|
1558
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), i("g", At, [
|
|
1559
|
+
(r(!0), i(d, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, o) => (r(), i("line", {
|
|
1559
1560
|
key: `grid_vertical_line_${o}`,
|
|
1560
1561
|
x1: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
1561
1562
|
x2: e.drawingArea.width / e.maxSeries * o + e.drawingArea.left + e.xPadding,
|
|
@@ -1565,13 +1566,13 @@ function Us(s, n, u, f, l, e) {
|
|
|
1565
1566
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1566
1567
|
style: { animation: "none !important" }
|
|
1567
1568
|
}, null, 8, Lt))), 128))
|
|
1568
|
-
])) :
|
|
1569
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (
|
|
1570
|
-
(
|
|
1569
|
+
])) : u("", !0),
|
|
1570
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), i("g", Ct, [
|
|
1571
|
+
(r(!0), i(d, null, x(e.timeLabels, (t, o) => (r(), i("g", {
|
|
1571
1572
|
key: `time_label_${o}`
|
|
1572
1573
|
}, [
|
|
1573
|
-
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (
|
|
1574
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (
|
|
1574
|
+
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), i(d, { key: 0 }, [
|
|
1575
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (r(), i("line", {
|
|
1575
1576
|
key: 0,
|
|
1576
1577
|
y1: e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? e.zero - (e.zero === e.drawingArea.bottom ? 0 : e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize / 2) : e.drawingArea.bottom,
|
|
1577
1578
|
y2: e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? e.zero + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize / (e.zero === e.drawingArea.bottom ? 1 : 2) : e.drawingArea.bottom + e.FINAL_CONFIG.chart.grid.labels.xAxis.crosshairSize,
|
|
@@ -1581,12 +1582,12 @@ function Us(s, n, u, f, l, e) {
|
|
|
1581
1582
|
"stroke-width": 1,
|
|
1582
1583
|
"stroke-linecap": "round",
|
|
1583
1584
|
style: { animation: "none !important" }
|
|
1584
|
-
}, null, 8, St)) :
|
|
1585
|
-
], 64)) :
|
|
1585
|
+
}, null, 8, St)) : u("", !0)
|
|
1586
|
+
], 64)) : u("", !0)
|
|
1586
1587
|
]))), 128))
|
|
1587
|
-
])) :
|
|
1588
|
+
])) : u("", !0)
|
|
1588
1589
|
]),
|
|
1589
|
-
(
|
|
1590
|
+
(r(!0), i(d, null, x(e.barSet, (t, o) => (r(), i("defs", {
|
|
1590
1591
|
key: `def_rect_${o}`
|
|
1591
1592
|
}, [
|
|
1592
1593
|
I("linearGradient", {
|
|
@@ -1626,7 +1627,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1626
1627
|
}, null, 8, zt)
|
|
1627
1628
|
], 8, vt)
|
|
1628
1629
|
]))), 128)),
|
|
1629
|
-
(
|
|
1630
|
+
(r(!0), i(d, null, x(e.plotSet, (t, o) => (r(), i("defs", {
|
|
1630
1631
|
key: `def_plot_${o}`
|
|
1631
1632
|
}, [
|
|
1632
1633
|
I("radialGradient", {
|
|
@@ -1647,7 +1648,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1647
1648
|
}, null, 8, Pt)
|
|
1648
1649
|
], 8, Tt)
|
|
1649
1650
|
]))), 128)),
|
|
1650
|
-
(
|
|
1651
|
+
(r(!0), i(d, null, x(e.lineSet, (t, o) => (r(), i("defs", {
|
|
1651
1652
|
key: `def_line_${o}`
|
|
1652
1653
|
}, [
|
|
1653
1654
|
I("radialGradient", {
|
|
@@ -1684,11 +1685,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
1684
1685
|
}, null, 8, Wt)
|
|
1685
1686
|
], 8, Dt)
|
|
1686
1687
|
]))), 128)),
|
|
1687
|
-
(
|
|
1688
|
-
t.show ? (
|
|
1689
|
-
(
|
|
1688
|
+
(r(!0), i(d, null, x(e.highlightAreas, (t) => (r(), i("g", null, [
|
|
1689
|
+
t.show ? (r(), i(d, { key: 0 }, [
|
|
1690
|
+
(r(!0), i(d, null, x(t.span, (o, c) => (r(), i("g", null, [
|
|
1690
1691
|
I("rect", {
|
|
1691
|
-
style:
|
|
1692
|
+
style: _({
|
|
1692
1693
|
transition: "none",
|
|
1693
1694
|
opacity: t.from + c >= l.slicer.start && t.from + c <= l.slicer.end - 1 ? 1 : 0
|
|
1694
1695
|
}),
|
|
@@ -1699,12 +1700,12 @@ function Us(s, n, u, f, l, e) {
|
|
|
1699
1700
|
fill: e.setOpacity(t.color, t.opacity)
|
|
1700
1701
|
}, null, 12, Yt)
|
|
1701
1702
|
]))), 256)),
|
|
1702
|
-
(
|
|
1703
|
-
t.caption.text && c === 0 ? (
|
|
1703
|
+
(r(!0), i(d, null, x(t.span, (o, c) => (r(), i("g", null, [
|
|
1704
|
+
t.caption.text && c === 0 ? (r(), i("foreignObject", {
|
|
1704
1705
|
key: 0,
|
|
1705
1706
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + c - l.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
|
|
1706
1707
|
y: e.drawingArea.top + t.caption.offsetY,
|
|
1707
|
-
style:
|
|
1708
|
+
style: _({
|
|
1708
1709
|
overflow: "visible",
|
|
1709
1710
|
opacity: t.to >= l.slicer.start && t.from < l.slicer.end ? 1 : 0
|
|
1710
1711
|
}),
|
|
@@ -1712,14 +1713,14 @@ function Us(s, n, u, f, l, e) {
|
|
|
1712
1713
|
width: Math.max(0, t.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * t.span : t.caption.width)
|
|
1713
1714
|
}, [
|
|
1714
1715
|
I("div", {
|
|
1715
|
-
style:
|
|
1716
|
+
style: _(`padding:${t.caption.padding}px;text-align:${t.caption.textAlign};font-size:${t.caption.fontSize}px;color:${t.caption.color};font-weight:${t.caption.bold ? "bold" : "normal"}`)
|
|
1716
1717
|
}, R(t.caption.text), 5)
|
|
1717
|
-
], 12, Xt)) :
|
|
1718
|
+
], 12, Xt)) : u("", !0)
|
|
1718
1719
|
]))), 256))
|
|
1719
|
-
], 64)) :
|
|
1720
|
+
], 64)) : u("", !0)
|
|
1720
1721
|
]))), 256)),
|
|
1721
1722
|
I("g", null, [
|
|
1722
|
-
(
|
|
1723
|
+
(r(!0), i(d, null, x(e.maxSeries, (t, o) => (r(), i("g", {
|
|
1723
1724
|
key: `tooltip_trap_highlighter_${o}`
|
|
1724
1725
|
}, [
|
|
1725
1726
|
I("rect", {
|
|
@@ -1731,15 +1732,15 @@ function Us(s, n, u, f, l, e) {
|
|
|
1731
1732
|
}, null, 8, qt)
|
|
1732
1733
|
]))), 128))
|
|
1733
1734
|
]),
|
|
1734
|
-
e.barSet.length ? (
|
|
1735
|
+
e.barSet.length ? (r(!0), i(d, { key: 0 }, x(e.barSet, (t, o) => (r(), i("g", {
|
|
1735
1736
|
key: `serie_bar_${o}`,
|
|
1736
1737
|
class: j(`serie_bar_${o}`),
|
|
1737
|
-
style:
|
|
1738
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1738
1739
|
}, [
|
|
1739
|
-
(
|
|
1740
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i("g", {
|
|
1740
1741
|
key: `bar_plot_${o}_${g}`
|
|
1741
1742
|
}, [
|
|
1742
|
-
e.canShowValue(c.value) ? (
|
|
1743
|
+
e.canShowValue(c.value) ? (r(), i("rect", {
|
|
1743
1744
|
key: 0,
|
|
1744
1745
|
x: e.calcRectX(c),
|
|
1745
1746
|
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(c) : e.calcRectY(c),
|
|
@@ -1749,8 +1750,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1749
1750
|
fill: e.FINAL_CONFIG.bar.useGradient ? c.value >= 0 ? `url(#rectGradient_pos_${o}_${l.uniqueId})` : `url(#rectGradient_neg_${o}_${l.uniqueId})` : t.color,
|
|
1750
1751
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1751
1752
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1752
|
-
}, null, 8, Ut)) :
|
|
1753
|
-
e.canShowValue(c.value) && s.$slots.pattern ? (
|
|
1753
|
+
}, null, 8, Ut)) : u("", !0),
|
|
1754
|
+
e.canShowValue(c.value) && s.$slots.pattern ? (r(), i("rect", {
|
|
1754
1755
|
key: 1,
|
|
1755
1756
|
x: e.calcRectX(c),
|
|
1756
1757
|
y: l.mutableConfig.useIndividualScale ? e.calcIndividualRectY(c) : e.calcRectY(c),
|
|
@@ -1760,8 +1761,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1760
1761
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`,
|
|
1761
1762
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1762
1763
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1763
|
-
}, null, 8, Zt)) :
|
|
1764
|
-
c.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1764
|
+
}, null, 8, Zt)) : u("", !0),
|
|
1765
|
+
c.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1765
1766
|
key: 2,
|
|
1766
1767
|
style: { overflow: "visible" },
|
|
1767
1768
|
height: "12",
|
|
@@ -1772,9 +1773,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
1772
1773
|
G(s.$slots, "plot-comment", {
|
|
1773
1774
|
plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1774
1775
|
}, void 0, !0)
|
|
1775
|
-
], 8, Jt)) :
|
|
1776
|
+
], 8, Jt)) : u("", !0)
|
|
1776
1777
|
]))), 128)),
|
|
1777
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (
|
|
1778
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (r(), i("g", Kt, [
|
|
1778
1779
|
I("defs", null, [
|
|
1779
1780
|
I("marker", {
|
|
1780
1781
|
id: `bar_arrow_${o}`,
|
|
@@ -1790,7 +1791,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1790
1791
|
}, null, 8, jt)
|
|
1791
1792
|
], 8, Qt)
|
|
1792
1793
|
]),
|
|
1793
|
-
t.plots.length > 1 ? (
|
|
1794
|
+
t.plots.length > 1 ? (r(), i("line", {
|
|
1794
1795
|
key: 0,
|
|
1795
1796
|
x1: e.calcLinearProgression(t.plots).x1 + e.calcRectWidth(),
|
|
1796
1797
|
x2: e.calcLinearProgression(t.plots).x2 + e.calcRectWidth(),
|
|
@@ -1800,8 +1801,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1800
1801
|
stroke: t.color,
|
|
1801
1802
|
"stroke-dasharray": 2,
|
|
1802
1803
|
"marker-end": `url(#bar_arrow_${o})`
|
|
1803
|
-
}, null, 8, $t)) :
|
|
1804
|
-
t.plots.length > 1 ? (
|
|
1804
|
+
}, null, 8, $t)) : u("", !0),
|
|
1805
|
+
t.plots.length > 1 ? (r(), i("text", {
|
|
1805
1806
|
key: 1,
|
|
1806
1807
|
"text-anchor": "middle",
|
|
1807
1808
|
x: e.calcLinearProgression(t.plots).x2 + e.calcRectWidth(),
|
|
@@ -1812,10 +1813,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
1812
1813
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1813
1814
|
s: "%",
|
|
1814
1815
|
r: 2
|
|
1815
|
-
})), 9, el)) :
|
|
1816
|
-
])) :
|
|
1817
|
-
], 6))), 128)) :
|
|
1818
|
-
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (
|
|
1816
|
+
})), 9, el)) : u("", !0)
|
|
1817
|
+
])) : u("", !0)
|
|
1818
|
+
], 6))), 128)) : u("", !0),
|
|
1819
|
+
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (r(), i("line", {
|
|
1819
1820
|
key: 1,
|
|
1820
1821
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1821
1822
|
"stroke-width": "1",
|
|
@@ -1825,8 +1826,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1825
1826
|
y2: e.forceValidValue(e.zero),
|
|
1826
1827
|
"stroke-linecap": "round",
|
|
1827
1828
|
style: { animation: "none !important" }
|
|
1828
|
-
}, null, 8, tl)) :
|
|
1829
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (
|
|
1829
|
+
}, null, 8, tl)) : u("", !0),
|
|
1830
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), i("g", ll, [
|
|
1830
1831
|
I("line", {
|
|
1831
1832
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1832
1833
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1838,8 +1839,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1838
1839
|
"stroke-linecap": "round",
|
|
1839
1840
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1840
1841
|
}, null, 8, sl)
|
|
1841
|
-
])) :
|
|
1842
|
-
e.FINAL_CONFIG.chart.grid.frame.show ? (
|
|
1842
|
+
])) : u("", !0),
|
|
1843
|
+
e.FINAL_CONFIG.chart.grid.frame.show ? (r(), i("rect", {
|
|
1843
1844
|
key: 3,
|
|
1844
1845
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
1845
1846
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
@@ -1852,10 +1853,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
1852
1853
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1853
1854
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1854
1855
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1855
|
-
}, null, 8, al)) :
|
|
1856
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (
|
|
1857
|
-
l.mutableConfig.useIndividualScale ? (
|
|
1858
|
-
(
|
|
1856
|
+
}, null, 8, al)) : u("", !0),
|
|
1857
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), i("g", rl, [
|
|
1858
|
+
l.mutableConfig.useIndividualScale ? (r(), i(d, { key: 0 }, [
|
|
1859
|
+
(r(!0), i(d, null, x(e.allScales, (t) => (r(), i("g", null, [
|
|
1859
1860
|
I("line", {
|
|
1860
1861
|
x1: t.x + e.xPadding,
|
|
1861
1862
|
x2: t.x + e.xPadding,
|
|
@@ -1864,11 +1865,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
1864
1865
|
stroke: t.color,
|
|
1865
1866
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1866
1867
|
"stroke-linecap": "round",
|
|
1867
|
-
style:
|
|
1868
|
-
}, null, 12,
|
|
1868
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1869
|
+
}, null, 12, il)
|
|
1869
1870
|
]))), 256)),
|
|
1870
|
-
(
|
|
1871
|
-
style:
|
|
1871
|
+
(r(!0), i(d, null, x(e.allScales, (t) => (r(), i("g", {
|
|
1872
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1872
1873
|
}, [
|
|
1873
1874
|
I("text", {
|
|
1874
1875
|
fill: t.color,
|
|
@@ -1876,8 +1877,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1876
1877
|
"text-anchor": "middle",
|
|
1877
1878
|
transform: `translate(${t.x + l.fontSizes.dataLabels + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${l.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset - t.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1878
1879
|
}, R(t.name) + " " + R(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9, nl),
|
|
1879
|
-
(
|
|
1880
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (
|
|
1880
|
+
(r(!0), i(d, null, x(t.yLabels, (o, c) => (r(), i(d, null, [
|
|
1881
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (r(), i("line", {
|
|
1881
1882
|
key: 0,
|
|
1882
1883
|
x1: t.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
|
|
1883
1884
|
x2: t.x + e.xPadding,
|
|
@@ -1887,9 +1888,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
1887
1888
|
"stroke-width": 1,
|
|
1888
1889
|
"stroke-linecap": "round",
|
|
1889
1890
|
style: { animation: "none !important" }
|
|
1890
|
-
}, null, 8, cl)) :
|
|
1891
|
+
}, null, 8, cl)) : u("", !0)
|
|
1891
1892
|
], 64))), 256)),
|
|
1892
|
-
(
|
|
1893
|
+
(r(!0), i(d, null, x(t.yLabels, (o, c) => (r(), i("text", {
|
|
1893
1894
|
x: t.x + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX - 5,
|
|
1894
1895
|
y: e.forceValidValue(o.y) + l.fontSizes.dataLabels / 3,
|
|
1895
1896
|
"font-size": l.fontSizes.dataLabels,
|
|
@@ -1907,10 +1908,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
1907
1908
|
{ datapoint: o.datapoint, seriesIndex: c }
|
|
1908
1909
|
)), 9, ol))), 256))
|
|
1909
1910
|
], 4))), 256))
|
|
1910
|
-
], 64)) : (
|
|
1911
|
+
], 64)) : (r(!0), i(d, { key: 1 }, x(e.yLabels, (t, o) => (r(), i("g", {
|
|
1911
1912
|
key: `yLabel_${o}`
|
|
1912
1913
|
}, [
|
|
1913
|
-
e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (
|
|
1914
|
+
e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (r(), i("line", {
|
|
1914
1915
|
key: 0,
|
|
1915
1916
|
x1: e.drawingArea.left + e.xPadding,
|
|
1916
1917
|
x2: e.drawingArea.left - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize + e.xPadding,
|
|
@@ -1920,8 +1921,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1920
1921
|
"stroke-width": "1",
|
|
1921
1922
|
"stroke-linecap": "round",
|
|
1922
1923
|
style: { animation: "none !important" }
|
|
1923
|
-
}, null, 8, hl)) :
|
|
1924
|
-
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (
|
|
1924
|
+
}, null, 8, hl)) : u("", !0),
|
|
1925
|
+
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (r(), i("text", {
|
|
1925
1926
|
key: 1,
|
|
1926
1927
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1927
1928
|
y: e.checkNaN(t.y + l.fontSizes.dataLabels / 3),
|
|
@@ -1937,18 +1938,18 @@ function Us(s, n, u, f, l, e) {
|
|
|
1937
1938
|
s: t.suffix,
|
|
1938
1939
|
r: 1
|
|
1939
1940
|
})
|
|
1940
|
-
) : ""), 9, ul)) :
|
|
1941
|
+
) : ""), 9, ul)) : u("", !0)
|
|
1941
1942
|
]))), 128))
|
|
1942
|
-
], 512)) :
|
|
1943
|
-
(
|
|
1943
|
+
], 512)) : u("", !0),
|
|
1944
|
+
(r(!0), i(d, null, x(e.plotSet, (t, o) => (r(), i("g", {
|
|
1944
1945
|
key: `serie_plot_${o}`,
|
|
1945
1946
|
class: j(`serie_plot_${o}`),
|
|
1946
|
-
style:
|
|
1947
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1947
1948
|
}, [
|
|
1948
|
-
(
|
|
1949
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i("g", {
|
|
1949
1950
|
key: `circle_plot_${o}_${g}`
|
|
1950
1951
|
}, [
|
|
1951
|
-
c && e.canShowValue(c.value) ? (
|
|
1952
|
+
c && e.canShowValue(c.value) ? (r(), U(N, {
|
|
1952
1953
|
key: 0,
|
|
1953
1954
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1954
1955
|
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${o}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? t.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
@@ -1956,8 +1957,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1956
1957
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
|
|
1957
1958
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
1958
1959
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1959
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
1960
|
-
c.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
1960
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
1961
|
+
c.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
1961
1962
|
key: 1,
|
|
1962
1963
|
style: { overflow: "visible" },
|
|
1963
1964
|
height: "12",
|
|
@@ -1970,9 +1971,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
1970
1971
|
plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
1971
1972
|
}, void 0, !0)
|
|
1972
1973
|
])
|
|
1973
|
-
], 8, dl)) :
|
|
1974
|
+
], 8, dl)) : u("", !0)
|
|
1974
1975
|
]))), 128)),
|
|
1975
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (
|
|
1976
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (r(), i("g", fl, [
|
|
1976
1977
|
I("defs", null, [
|
|
1977
1978
|
I("marker", {
|
|
1978
1979
|
id: `plot_arrow_${o}`,
|
|
@@ -1988,7 +1989,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
1988
1989
|
}, null, 8, xl)
|
|
1989
1990
|
], 8, Il)
|
|
1990
1991
|
]),
|
|
1991
|
-
t.plots.length > 1 ? (
|
|
1992
|
+
t.plots.length > 1 ? (r(), i("line", {
|
|
1992
1993
|
key: 0,
|
|
1993
1994
|
x1: e.calcLinearProgression(t.plots).x1,
|
|
1994
1995
|
x2: e.calcLinearProgression(t.plots).x2,
|
|
@@ -1998,8 +1999,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
1998
1999
|
stroke: t.color,
|
|
1999
2000
|
"stroke-dasharray": 2,
|
|
2000
2001
|
"marker-end": `url(#plot_arrow_${o})`
|
|
2001
|
-
}, null, 8, Nl)) :
|
|
2002
|
-
t.plots.length > 1 ? (
|
|
2002
|
+
}, null, 8, Nl)) : u("", !0),
|
|
2003
|
+
t.plots.length > 1 ? (r(), i("text", {
|
|
2003
2004
|
key: 1,
|
|
2004
2005
|
"text-anchor": "middle",
|
|
2005
2006
|
x: e.calcLinearProgression(t.plots).x2,
|
|
@@ -2010,22 +2011,22 @@ function Us(s, n, u, f, l, e) {
|
|
|
2010
2011
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
2011
2012
|
s: "%",
|
|
2012
2013
|
r: 2
|
|
2013
|
-
})), 9, ml)) :
|
|
2014
|
-
])) :
|
|
2014
|
+
})), 9, ml)) : u("", !0)
|
|
2015
|
+
])) : u("", !0)
|
|
2015
2016
|
], 6))), 128)),
|
|
2016
|
-
(
|
|
2017
|
+
(r(!0), i(d, null, x(e.lineSet, (t, o) => (r(), i("g", {
|
|
2017
2018
|
key: `serie_line_${o}`,
|
|
2018
2019
|
class: j(`serie_line_${o}`),
|
|
2019
|
-
style:
|
|
2020
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2020
2021
|
}, [
|
|
2021
|
-
t.smooth && t.plots.length > 1 && t.curve ? (
|
|
2022
|
+
t.smooth && t.plots.length > 1 && t.curve ? (r(), i("path", {
|
|
2022
2023
|
key: 0,
|
|
2023
2024
|
d: `M${t.curve}`,
|
|
2024
2025
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2025
2026
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
2026
2027
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
2027
2028
|
fill: "none"
|
|
2028
|
-
}, null, 8, bl)) : t.plots.length > 1 && t.straight ? (
|
|
2029
|
+
}, null, 8, bl)) : t.plots.length > 1 && t.straight ? (r(), i("path", {
|
|
2029
2030
|
key: 1,
|
|
2030
2031
|
d: `M${t.straight}`,
|
|
2031
2032
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -2034,42 +2035,42 @@ function Us(s, n, u, f, l, e) {
|
|
|
2034
2035
|
fill: "none",
|
|
2035
2036
|
"stroke-linecap": "round",
|
|
2036
2037
|
"stroke-linejoin": "round"
|
|
2037
|
-
}, null, 8, Fl)) :
|
|
2038
|
+
}, null, 8, Fl)) : u("", !0)
|
|
2038
2039
|
], 6))), 128)),
|
|
2039
|
-
s.$slots.pattern ? (
|
|
2040
|
-
(
|
|
2040
|
+
s.$slots.pattern ? (r(), i("defs", _l, [
|
|
2041
|
+
(r(!0), i(d, null, x(e.safeDataset, (t, o) => G(s.$slots, "pattern", ie({
|
|
2041
2042
|
key: `serie_pattern_slot_${o}`
|
|
2042
2043
|
}, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${o}` }), void 0, !0)), 128))
|
|
2043
|
-
])) :
|
|
2044
|
-
(
|
|
2044
|
+
])) : u("", !0),
|
|
2045
|
+
(r(!0), i(d, null, x(e.lineSet, (t, o) => (r(), i("g", {
|
|
2045
2046
|
key: `serie_line_${o}`,
|
|
2046
2047
|
class: j(`serie_line_${o}`),
|
|
2047
|
-
style:
|
|
2048
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2048
2049
|
}, [
|
|
2049
|
-
t.useArea && t.plots.length > 1 ? (
|
|
2050
|
-
t.smooth ? (
|
|
2050
|
+
t.useArea && t.plots.length > 1 ? (r(), i("g", yl, [
|
|
2051
|
+
t.smooth ? (r(!0), i(d, { key: 0 }, x(t.curveAreas, (c, g) => (r(), i(d, { key: g }, [
|
|
2051
2052
|
I("path", {
|
|
2052
2053
|
d: c,
|
|
2053
2054
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2054
2055
|
}, null, 8, Al),
|
|
2055
|
-
s.$slots.pattern ? (
|
|
2056
|
+
s.$slots.pattern ? (r(), i("path", {
|
|
2056
2057
|
key: 0,
|
|
2057
2058
|
d: c,
|
|
2058
2059
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2059
|
-
}, null, 8, Ll)) :
|
|
2060
|
-
], 64))), 128)) : (
|
|
2060
|
+
}, null, 8, Ll)) : u("", !0)
|
|
2061
|
+
], 64))), 128)) : (r(!0), i(d, { key: 1 }, x(t.area.split(";"), (c, g) => (r(), i(d, { key: g }, [
|
|
2061
2062
|
I("path", {
|
|
2062
2063
|
d: `M${c}Z`,
|
|
2063
2064
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${o}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2064
2065
|
}, null, 8, Cl),
|
|
2065
|
-
s.$slots.pattern ? (
|
|
2066
|
+
s.$slots.pattern ? (r(), i("path", {
|
|
2066
2067
|
key: 0,
|
|
2067
2068
|
d: `M${c}Z`,
|
|
2068
2069
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2069
|
-
}, null, 8, Sl)) :
|
|
2070
|
+
}, null, 8, Sl)) : u("", !0)
|
|
2070
2071
|
], 64))), 128))
|
|
2071
|
-
])) :
|
|
2072
|
-
t.smooth && t.plots.length > 1 && t.curve ? (
|
|
2072
|
+
])) : u("", !0),
|
|
2073
|
+
t.smooth && t.plots.length > 1 && t.curve ? (r(), i("path", {
|
|
2073
2074
|
key: 1,
|
|
2074
2075
|
d: `M${t.curve}`,
|
|
2075
2076
|
stroke: t.color,
|
|
@@ -2077,7 +2078,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2077
2078
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
2078
2079
|
fill: "none",
|
|
2079
2080
|
"stroke-linecap": "round"
|
|
2080
|
-
}, null, 8, kl)) : t.plots.length > 1 && t.straight ? (
|
|
2081
|
+
}, null, 8, kl)) : t.plots.length > 1 && t.straight ? (r(), i("path", {
|
|
2081
2082
|
key: 2,
|
|
2082
2083
|
d: `M${t.straight}`,
|
|
2083
2084
|
stroke: t.color,
|
|
@@ -2086,11 +2087,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
2086
2087
|
fill: "none",
|
|
2087
2088
|
"stroke-linecap": "round",
|
|
2088
2089
|
"stroke-linejoin": "round"
|
|
2089
|
-
}, null, 8, wl)) :
|
|
2090
|
-
(
|
|
2090
|
+
}, null, 8, wl)) : u("", !0),
|
|
2091
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2091
2092
|
key: `circle_line_${o}_${g}`
|
|
2092
2093
|
}, [
|
|
2093
|
-
!e.optimize.linePlot && c && e.canShowValue(c.value) || e.optimize.linePlot && c && e.canShowValue(c.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) ? (
|
|
2094
|
+
!e.optimize.linePlot && c && e.canShowValue(c.value) || e.optimize.linePlot && c && e.canShowValue(c.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) ? (r(), U(N, {
|
|
2094
2095
|
key: 0,
|
|
2095
2096
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
2096
2097
|
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${o}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? t.color : e.FINAL_CONFIG.line.dot.fill,
|
|
@@ -2098,8 +2099,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2098
2099
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
|
|
2099
2100
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
2100
2101
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
2101
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) :
|
|
2102
|
-
c.comment && e.FINAL_CONFIG.chart.comments.show ? (
|
|
2102
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : u("", !0),
|
|
2103
|
+
c.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), i("foreignObject", {
|
|
2103
2104
|
key: 1,
|
|
2104
2105
|
style: { overflow: "visible" },
|
|
2105
2106
|
height: "12",
|
|
@@ -2112,9 +2113,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
2112
2113
|
plot: { ...c, color: t.color, seriesIndex: o, datapointIndex: g }
|
|
2113
2114
|
}, void 0, !0)
|
|
2114
2115
|
])
|
|
2115
|
-
], 8, Ol)) :
|
|
2116
|
+
], 8, Ol)) : u("", !0)
|
|
2116
2117
|
], 64))), 128)),
|
|
2117
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (
|
|
2118
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (r(), i("g", vl, [
|
|
2118
2119
|
I("defs", null, [
|
|
2119
2120
|
I("marker", {
|
|
2120
2121
|
id: `line_arrow_${o}`,
|
|
@@ -2130,7 +2131,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2130
2131
|
}, null, 8, Ml)
|
|
2131
2132
|
], 8, pl)
|
|
2132
2133
|
]),
|
|
2133
|
-
t.plots.length > 1 ? (
|
|
2134
|
+
t.plots.length > 1 ? (r(), i("line", {
|
|
2134
2135
|
key: 0,
|
|
2135
2136
|
x1: e.calcLinearProgression(t.plots).x1,
|
|
2136
2137
|
x2: e.calcLinearProgression(t.plots).x2,
|
|
@@ -2140,8 +2141,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2140
2141
|
stroke: t.color,
|
|
2141
2142
|
"stroke-dasharray": 2,
|
|
2142
2143
|
"marker-end": `url(#line_arrow_${o})`
|
|
2143
|
-
}, null, 8, zl)) :
|
|
2144
|
-
t.plots.length > 1 ? (
|
|
2144
|
+
}, null, 8, zl)) : u("", !0),
|
|
2145
|
+
t.plots.length > 1 ? (r(), i("text", {
|
|
2145
2146
|
key: 1,
|
|
2146
2147
|
"text-anchor": "middle",
|
|
2147
2148
|
x: e.calcLinearProgression(t.plots).x2,
|
|
@@ -2152,24 +2153,24 @@ function Us(s, n, u, f, l, e) {
|
|
|
2152
2153
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
2153
2154
|
s: "%",
|
|
2154
2155
|
r: 2
|
|
2155
|
-
})), 9, Tl)) :
|
|
2156
|
-
])) :
|
|
2156
|
+
})), 9, Tl)) : u("", !0)
|
|
2157
|
+
])) : u("", !0)
|
|
2157
2158
|
], 6))), 128)),
|
|
2158
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (
|
|
2159
|
-
(
|
|
2159
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (r(), i("g", Vl, [
|
|
2160
|
+
(r(!0), i(d, null, x(e.barSet, (t, o) => (r(), i(d, {
|
|
2160
2161
|
key: `xLabel_bar_${o}`
|
|
2161
2162
|
}, [
|
|
2162
|
-
(
|
|
2163
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2163
2164
|
key: `xLabel_bar_${o}_${g}`
|
|
2164
2165
|
}, [
|
|
2165
|
-
c && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) && e.FINAL_CONFIG.bar.labels.show ? (
|
|
2166
|
+
c && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g) && e.FINAL_CONFIG.bar.labels.show ? (r(), i("text", {
|
|
2166
2167
|
key: 0,
|
|
2167
2168
|
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? c.x + e.slot.line / 2 : e.calcRectX(c) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
2168
2169
|
y: e.checkNaN(c.y) + (c.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
2169
2170
|
"text-anchor": "middle",
|
|
2170
2171
|
"font-size": l.fontSizes.plotLabels,
|
|
2171
2172
|
fill: e.FINAL_CONFIG.bar.labels.color,
|
|
2172
|
-
style:
|
|
2173
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2173
2174
|
}, R(e.canShowValue(c.value) ? e.applyDataLabel(
|
|
2174
2175
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
2175
2176
|
c.value,
|
|
@@ -2183,8 +2184,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2183
2184
|
datapoint: c,
|
|
2184
2185
|
serie: t
|
|
2185
2186
|
}
|
|
2186
|
-
) : ""), 13, Pl)) :
|
|
2187
|
-
c && e.FINAL_CONFIG.bar.serieName.show ? (
|
|
2187
|
+
) : ""), 13, Pl)) : u("", !0),
|
|
2188
|
+
c && e.FINAL_CONFIG.bar.serieName.show ? (r(), i("text", {
|
|
2188
2189
|
key: 1,
|
|
2189
2190
|
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? c.x + e.slot.line / 2 : c.x + e.calcRectWidth() * 1.1,
|
|
2190
2191
|
y: c.y + (c.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
@@ -2192,26 +2193,26 @@ function Us(s, n, u, f, l, e) {
|
|
|
2192
2193
|
"font-size": l.fontSizes.plotLabels,
|
|
2193
2194
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2194
2195
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2195
|
-
style:
|
|
2196
|
-
}, R(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) :
|
|
2196
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2197
|
+
}, R(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Rl)) : u("", !0)
|
|
2197
2198
|
], 64))), 128))
|
|
2198
2199
|
], 64))), 128))
|
|
2199
|
-
])) :
|
|
2200
|
-
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (
|
|
2201
|
-
(
|
|
2200
|
+
])) : u("", !0),
|
|
2201
|
+
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (r(), i("g", Bl, [
|
|
2202
|
+
(r(!0), i(d, null, x(e.plotSet, (t, o) => (r(), i(d, {
|
|
2202
2203
|
key: `xLabel_plot_${o}`
|
|
2203
2204
|
}, [
|
|
2204
|
-
(
|
|
2205
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2205
2206
|
key: `xLabel_plot_${o}_${g}`
|
|
2206
2207
|
}, [
|
|
2207
|
-
c && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (
|
|
2208
|
+
c && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (r(), i("text", {
|
|
2208
2209
|
key: 0,
|
|
2209
2210
|
x: c.x,
|
|
2210
2211
|
y: c.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
2211
2212
|
"text-anchor": "middle",
|
|
2212
2213
|
"font-size": l.fontSizes.plotLabels,
|
|
2213
2214
|
fill: e.FINAL_CONFIG.plot.labels.color,
|
|
2214
|
-
style:
|
|
2215
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2215
2216
|
}, R(e.canShowValue(c.value) ? e.applyDataLabel(
|
|
2216
2217
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
2217
2218
|
c.value,
|
|
@@ -2225,18 +2226,18 @@ function Us(s, n, u, f, l, e) {
|
|
|
2225
2226
|
datapoint: c,
|
|
2226
2227
|
serie: t
|
|
2227
2228
|
}
|
|
2228
|
-
) : ""), 13, Hl)) :
|
|
2229
|
+
) : ""), 13, Hl)) : u("", !0)
|
|
2229
2230
|
], 64))), 128))
|
|
2230
2231
|
], 64))), 128))
|
|
2231
|
-
])) : (
|
|
2232
|
-
(
|
|
2232
|
+
])) : (r(), i("g", Dl, [
|
|
2233
|
+
(r(!0), i(d, null, x(e.plotSet, (t, o) => (r(), i(d, {
|
|
2233
2234
|
key: `xLabel_plot_${o}`
|
|
2234
2235
|
}, [
|
|
2235
|
-
(
|
|
2236
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2236
2237
|
key: `xLabel_plot_${o}_${g}`
|
|
2237
2238
|
}, [
|
|
2238
|
-
e.FINAL_CONFIG.plot.tag.followValue ? (
|
|
2239
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (
|
|
2239
|
+
e.FINAL_CONFIG.plot.tag.followValue ? (r(), i(d, { key: 1 }, [
|
|
2240
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (r(), i("line", {
|
|
2240
2241
|
key: 0,
|
|
2241
2242
|
class: "vue-ui-xy-tag-plot",
|
|
2242
2243
|
x1: e.drawingArea.left,
|
|
@@ -2247,18 +2248,18 @@ function Us(s, n, u, f, l, e) {
|
|
|
2247
2248
|
"stroke-linecap": "round",
|
|
2248
2249
|
"stroke-dasharray": "2",
|
|
2249
2250
|
stroke: t.color
|
|
2250
|
-
}, null, 8, ql)) :
|
|
2251
|
-
], 64)) : (
|
|
2252
|
-
c && g === 0 && t.useTag && t.useTag === "start" ? (
|
|
2251
|
+
}, null, 8, ql)) : u("", !0)
|
|
2252
|
+
], 64)) : (r(), i(d, { key: 0 }, [
|
|
2253
|
+
c && g === 0 && t.useTag && t.useTag === "start" ? (r(), i("foreignObject", {
|
|
2253
2254
|
key: 0,
|
|
2254
2255
|
x: c.x,
|
|
2255
2256
|
y: c.y - 20,
|
|
2256
2257
|
height: 24,
|
|
2257
2258
|
width: "150",
|
|
2258
|
-
style:
|
|
2259
|
+
style: _(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2259
2260
|
}, [
|
|
2260
2261
|
I("div", {
|
|
2261
|
-
style:
|
|
2262
|
+
style: _(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2262
2263
|
innerHTML: e.applyDataLabel(
|
|
2263
2264
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2264
2265
|
c.value,
|
|
@@ -2270,17 +2271,17 @@ function Us(s, n, u, f, l, e) {
|
|
|
2270
2271
|
}
|
|
2271
2272
|
)
|
|
2272
2273
|
}, null, 12, Wl)
|
|
2273
|
-
], 12, El)) :
|
|
2274
|
-
c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (
|
|
2274
|
+
], 12, El)) : u("", !0),
|
|
2275
|
+
c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (r(), i("foreignObject", {
|
|
2275
2276
|
key: 1,
|
|
2276
2277
|
x: c.x - t.name.length * (l.fontSizes.plotLabels / 2),
|
|
2277
2278
|
y: c.y - 20,
|
|
2278
2279
|
height: 24,
|
|
2279
2280
|
width: "150",
|
|
2280
|
-
style:
|
|
2281
|
+
style: _(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2281
2282
|
}, [
|
|
2282
2283
|
I("div", {
|
|
2283
|
-
style:
|
|
2284
|
+
style: _(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2284
2285
|
innerHTML: e.applyDataLabel(
|
|
2285
2286
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2286
2287
|
c.value,
|
|
@@ -2292,26 +2293,26 @@ function Us(s, n, u, f, l, e) {
|
|
|
2292
2293
|
}
|
|
2293
2294
|
)
|
|
2294
2295
|
}, null, 12, Xl)
|
|
2295
|
-
], 12, Yl)) :
|
|
2296
|
+
], 12, Yl)) : u("", !0)
|
|
2296
2297
|
], 64))
|
|
2297
2298
|
], 64))), 128))
|
|
2298
2299
|
], 64))), 128))
|
|
2299
2300
|
])),
|
|
2300
|
-
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (
|
|
2301
|
-
(
|
|
2301
|
+
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (r(), i("g", Ul, [
|
|
2302
|
+
(r(!0), i(d, null, x(e.lineSet, (t, o) => (r(), i(d, {
|
|
2302
2303
|
key: `xLabel_line_${o}`
|
|
2303
2304
|
}, [
|
|
2304
|
-
(
|
|
2305
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2305
2306
|
key: `xLabel_line_${o}_${g}`
|
|
2306
2307
|
}, [
|
|
2307
|
-
c && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (
|
|
2308
|
+
c && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === g || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === g ? (r(), i("text", {
|
|
2308
2309
|
key: 0,
|
|
2309
2310
|
x: c.x,
|
|
2310
2311
|
y: c.y + (c.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
2311
2312
|
"text-anchor": "middle",
|
|
2312
2313
|
"font-size": l.fontSizes.plotLabels,
|
|
2313
2314
|
fill: e.FINAL_CONFIG.line.labels.color,
|
|
2314
|
-
style:
|
|
2315
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2315
2316
|
}, R(e.canShowValue(c.value) ? e.applyDataLabel(
|
|
2316
2317
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2317
2318
|
c.value,
|
|
@@ -2325,18 +2326,18 @@ function Us(s, n, u, f, l, e) {
|
|
|
2325
2326
|
datapoint: c,
|
|
2326
2327
|
serie: t
|
|
2327
2328
|
}
|
|
2328
|
-
) : ""), 13, Zl)) :
|
|
2329
|
+
) : ""), 13, Zl)) : u("", !0)
|
|
2329
2330
|
], 64))), 128))
|
|
2330
2331
|
], 64))), 128))
|
|
2331
|
-
])) : (
|
|
2332
|
-
(
|
|
2332
|
+
])) : (r(), i("g", Jl, [
|
|
2333
|
+
(r(!0), i(d, null, x(e.lineSet, (t, o) => (r(), i(d, {
|
|
2333
2334
|
key: `xLabel_line_${o}`
|
|
2334
2335
|
}, [
|
|
2335
|
-
(
|
|
2336
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2336
2337
|
key: `xLabel_line_${o}_${g}`
|
|
2337
2338
|
}, [
|
|
2338
|
-
e.FINAL_CONFIG.line.tag.followValue ? (
|
|
2339
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (
|
|
2339
|
+
e.FINAL_CONFIG.line.tag.followValue ? (r(), i(d, { key: 1 }, [
|
|
2340
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag ? (r(), i("line", {
|
|
2340
2341
|
key: 0,
|
|
2341
2342
|
class: "vue-ui-xy-tag-line",
|
|
2342
2343
|
x1: e.drawingArea.left,
|
|
@@ -2347,18 +2348,18 @@ function Us(s, n, u, f, l, e) {
|
|
|
2347
2348
|
"stroke-linecap": "round",
|
|
2348
2349
|
"stroke-dasharray": "2",
|
|
2349
2350
|
stroke: t.color
|
|
2350
|
-
}, null, 8, es)) :
|
|
2351
|
-
], 64)) : (
|
|
2352
|
-
c && g === 0 && t.useTag && t.useTag === "start" ? (
|
|
2351
|
+
}, null, 8, es)) : u("", !0)
|
|
2352
|
+
], 64)) : (r(), i(d, { key: 0 }, [
|
|
2353
|
+
c && g === 0 && t.useTag && t.useTag === "start" ? (r(), i("foreignObject", {
|
|
2353
2354
|
key: 0,
|
|
2354
2355
|
x: c.x,
|
|
2355
2356
|
y: c.y - 20,
|
|
2356
2357
|
height: 24,
|
|
2357
2358
|
width: "150",
|
|
2358
|
-
style:
|
|
2359
|
+
style: _(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2359
2360
|
}, [
|
|
2360
2361
|
I("div", {
|
|
2361
|
-
style:
|
|
2362
|
+
style: _(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2362
2363
|
innerHTML: e.applyDataLabel(
|
|
2363
2364
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2364
2365
|
c.value,
|
|
@@ -2370,17 +2371,17 @@ function Us(s, n, u, f, l, e) {
|
|
|
2370
2371
|
}
|
|
2371
2372
|
)
|
|
2372
2373
|
}, null, 12, Ql)
|
|
2373
|
-
], 12, Kl)) :
|
|
2374
|
-
c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (
|
|
2374
|
+
], 12, Kl)) : u("", !0),
|
|
2375
|
+
c && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (r(), i("foreignObject", {
|
|
2375
2376
|
key: 1,
|
|
2376
2377
|
x: c.x,
|
|
2377
2378
|
y: c.y - 20,
|
|
2378
2379
|
height: 24,
|
|
2379
2380
|
width: "150",
|
|
2380
|
-
style:
|
|
2381
|
+
style: _(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2381
2382
|
}, [
|
|
2382
2383
|
I("div", {
|
|
2383
|
-
style:
|
|
2384
|
+
style: _(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`),
|
|
2384
2385
|
innerHTML: e.applyDataLabel(
|
|
2385
2386
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2386
2387
|
c.value,
|
|
@@ -2392,18 +2393,18 @@ function Us(s, n, u, f, l, e) {
|
|
|
2392
2393
|
}
|
|
2393
2394
|
)
|
|
2394
2395
|
}, null, 12, $l)
|
|
2395
|
-
], 12, jl)) :
|
|
2396
|
+
], 12, jl)) : u("", !0)
|
|
2396
2397
|
], 64))
|
|
2397
2398
|
], 64))), 128))
|
|
2398
2399
|
], 64))), 128))
|
|
2399
2400
|
])),
|
|
2400
|
-
(
|
|
2401
|
+
(r(!0), i(d, null, x(e.lineSet, (t, o) => (r(), i(d, {
|
|
2401
2402
|
key: `xLabel_line_${o}`
|
|
2402
2403
|
}, [
|
|
2403
|
-
(
|
|
2404
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2404
2405
|
key: `xLabel_line_${o}_${g}`
|
|
2405
2406
|
}, [
|
|
2406
|
-
c && g === 0 && t.showSerieName && t.showSerieName === "start" ? (
|
|
2407
|
+
c && g === 0 && t.showSerieName && t.showSerieName === "start" ? (r(), i("text", {
|
|
2407
2408
|
key: 0,
|
|
2408
2409
|
x: c.x - l.fontSizes.plotLabels,
|
|
2409
2410
|
y: c.y,
|
|
@@ -2418,9 +2419,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
2418
2419
|
y: c.y,
|
|
2419
2420
|
maxWords: 2
|
|
2420
2421
|
}),
|
|
2421
|
-
style:
|
|
2422
|
-
}, null, 12, ts)) :
|
|
2423
|
-
c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (
|
|
2422
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2423
|
+
}, null, 12, ts)) : u("", !0),
|
|
2424
|
+
c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (r(), i("text", {
|
|
2424
2425
|
key: 1,
|
|
2425
2426
|
x: c.x + l.fontSizes.plotLabels,
|
|
2426
2427
|
y: c.y,
|
|
@@ -2435,17 +2436,17 @@ function Us(s, n, u, f, l, e) {
|
|
|
2435
2436
|
y: c.y,
|
|
2436
2437
|
maxWords: 2
|
|
2437
2438
|
}),
|
|
2438
|
-
style:
|
|
2439
|
-
}, null, 12, ls)) :
|
|
2439
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2440
|
+
}, null, 12, ls)) : u("", !0)
|
|
2440
2441
|
], 64))), 128))
|
|
2441
2442
|
], 64))), 128)),
|
|
2442
|
-
(
|
|
2443
|
+
(r(!0), i(d, null, x(e.plotSet, (t, o) => (r(), i(d, {
|
|
2443
2444
|
key: `xLabel_plot_${o}`
|
|
2444
2445
|
}, [
|
|
2445
|
-
(
|
|
2446
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2446
2447
|
key: `xLabel_plot_${o}_${g}`
|
|
2447
2448
|
}, [
|
|
2448
|
-
c && g === 0 && t.showSerieName && t.showSerieName === "start" ? (
|
|
2449
|
+
c && g === 0 && t.showSerieName && t.showSerieName === "start" ? (r(), i("text", {
|
|
2449
2450
|
key: 0,
|
|
2450
2451
|
x: c.x - l.fontSizes.plotLabels,
|
|
2451
2452
|
y: c.y,
|
|
@@ -2460,9 +2461,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
2460
2461
|
y: c.y,
|
|
2461
2462
|
maxWords: 2
|
|
2462
2463
|
}),
|
|
2463
|
-
style:
|
|
2464
|
-
}, null, 12, ss)) :
|
|
2465
|
-
c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (
|
|
2464
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2465
|
+
}, null, 12, ss)) : u("", !0),
|
|
2466
|
+
c && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (r(), i("text", {
|
|
2466
2467
|
key: 1,
|
|
2467
2468
|
x: c.x + l.fontSizes.plotLabels,
|
|
2468
2469
|
y: c.y,
|
|
@@ -2477,13 +2478,13 @@ function Us(s, n, u, f, l, e) {
|
|
|
2477
2478
|
y: c.y,
|
|
2478
2479
|
maxWords: 2
|
|
2479
2480
|
}),
|
|
2480
|
-
style:
|
|
2481
|
-
}, null, 12, as)) :
|
|
2481
|
+
style: _(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2482
|
+
}, null, 12, as)) : u("", !0)
|
|
2482
2483
|
], 64))), 128))
|
|
2483
2484
|
], 64))), 128)),
|
|
2484
|
-
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (
|
|
2485
|
+
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (r(), i(d, { key: 11 }, [
|
|
2485
2486
|
I("defs", null, [
|
|
2486
|
-
(
|
|
2487
|
+
(r(!0), i(d, null, x(e.allScales, (t, o) => (r(), i("linearGradient", {
|
|
2487
2488
|
id: `individual_scale_gradient_${l.uniqueId}_${o}`,
|
|
2488
2489
|
x1: "0%",
|
|
2489
2490
|
x2: "100%",
|
|
@@ -2494,15 +2495,15 @@ function Us(s, n, u, f, l, e) {
|
|
|
2494
2495
|
offset: "0%",
|
|
2495
2496
|
"stop-color": e.FINAL_CONFIG.chart.backgroundColor,
|
|
2496
2497
|
"stop-opacity": "0"
|
|
2497
|
-
}, null, 8,
|
|
2498
|
+
}, null, 8, is),
|
|
2498
2499
|
I("stop", {
|
|
2499
2500
|
offset: "100%",
|
|
2500
2501
|
"stop-color": t.color,
|
|
2501
2502
|
"stop-opacity": "0.2"
|
|
2502
2503
|
}, null, 8, ns)
|
|
2503
|
-
], 8,
|
|
2504
|
+
], 8, rs))), 256))
|
|
2504
2505
|
]),
|
|
2505
|
-
(
|
|
2506
|
+
(r(!0), i(d, null, x(e.allScales, (t, o) => (r(), i("rect", {
|
|
2506
2507
|
x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2507
2508
|
y: e.drawingArea.top,
|
|
2508
2509
|
width: Math.max(0, e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth),
|
|
@@ -2511,9 +2512,9 @@ function Us(s, n, u, f, l, e) {
|
|
|
2511
2512
|
onMouseenter: (c) => l.selectedScale = t.groupId,
|
|
2512
2513
|
onMouseleave: n[0] || (n[0] = (c) => l.selectedScale = null)
|
|
2513
2514
|
}, null, 40, cs))), 256))
|
|
2514
|
-
], 64)) :
|
|
2515
|
+
], 64)) : u("", !0),
|
|
2515
2516
|
I("g", null, [
|
|
2516
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (
|
|
2517
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (r(), i("text", {
|
|
2517
2518
|
key: 0,
|
|
2518
2519
|
ref: "yAxisLabel",
|
|
2519
2520
|
"font-size": l.fontSizes.yAxis,
|
|
@@ -2521,8 +2522,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2521
2522
|
transform: `translate(${l.scaleBox.x + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2522
2523
|
"text-anchor": "middle",
|
|
2523
2524
|
style: { transition: "none" }
|
|
2524
|
-
}, R(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, os)) :
|
|
2525
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (
|
|
2525
|
+
}, R(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, os)) : u("", !0),
|
|
2526
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (r(), i("text", {
|
|
2526
2527
|
key: 1,
|
|
2527
2528
|
ref: "xAxisLabel",
|
|
2528
2529
|
"text-anchor": "middle",
|
|
@@ -2530,10 +2531,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
2530
2531
|
y: l.timeLabelBox.y + l.timeLabelBox.height + l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2531
2532
|
"font-size": l.fontSizes.yAxis,
|
|
2532
2533
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2533
|
-
}, R(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hs)) :
|
|
2534
|
+
}, R(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, hs)) : u("", !0)
|
|
2534
2535
|
]),
|
|
2535
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (
|
|
2536
|
-
s.$slots["time-label"] ? (
|
|
2536
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), i("g", us, [
|
|
2537
|
+
s.$slots["time-label"] ? (r(!0), i(d, { key: 0 }, x(e.timeLabels, (t, o) => G(s.$slots, "time-label", ie({
|
|
2537
2538
|
key: `time_label_${o}`,
|
|
2538
2539
|
ref_for: !0
|
|
2539
2540
|
}, {
|
|
@@ -2546,18 +2547,18 @@ function Us(s, n, u, f, l, e) {
|
|
|
2546
2547
|
content: t.text,
|
|
2547
2548
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2548
2549
|
show: t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2549
|
-
}), void 0, !0)), 128)) : (
|
|
2550
|
+
}), void 0, !0)), 128)) : (r(!0), i(d, { key: 1 }, x(e.timeLabels, (t, o) => (r(), i("g", {
|
|
2550
2551
|
key: `time_label_${o}`
|
|
2551
2552
|
}, [
|
|
2552
|
-
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (
|
|
2553
|
+
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (o === 0 || o === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === o && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && o % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), i(d, { key: 0 }, [
|
|
2553
2554
|
String(t.text).includes(`
|
|
2554
|
-
`) ? (
|
|
2555
|
+
`) ? (r(), i("text", {
|
|
2555
2556
|
key: 1,
|
|
2556
2557
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2557
2558
|
"font-size": l.fontSizes.xAxis,
|
|
2558
2559
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2559
2560
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2560
|
-
style:
|
|
2561
|
+
style: _({
|
|
2561
2562
|
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2562
2563
|
}),
|
|
2563
2564
|
innerHTML: e.createTSpansFromLineBreaksOnX({
|
|
@@ -2568,25 +2569,25 @@ function Us(s, n, u, f, l, e) {
|
|
|
2568
2569
|
y: 0
|
|
2569
2570
|
}),
|
|
2570
2571
|
onClick: () => e.selectTimeLabel(t, o)
|
|
2571
|
-
}, null, 12, gs)) : (
|
|
2572
|
+
}, null, 12, gs)) : (r(), i("text", {
|
|
2572
2573
|
key: 0,
|
|
2573
2574
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2574
2575
|
"font-size": l.fontSizes.xAxis,
|
|
2575
2576
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2576
2577
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * o + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2577
|
-
style:
|
|
2578
|
+
style: _({
|
|
2578
2579
|
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2579
2580
|
}),
|
|
2580
2581
|
onClick: () => e.selectTimeLabel(t, o)
|
|
2581
2582
|
}, R(t.text || ""), 13, ds))
|
|
2582
|
-
], 64)) :
|
|
2583
|
+
], 64)) : u("", !0)
|
|
2583
2584
|
]))), 128))
|
|
2584
|
-
], 512)) :
|
|
2585
|
-
e.annotationsY.length && !l.mutableConfig.isStacked ? (
|
|
2586
|
-
(
|
|
2585
|
+
], 512)) : u("", !0),
|
|
2586
|
+
e.annotationsY.length && !l.mutableConfig.isStacked ? (r(), i("g", fs, [
|
|
2587
|
+
(r(!0), i(d, null, x(e.annotationsY, (t) => (r(), i("g", {
|
|
2587
2588
|
key: t.uid
|
|
2588
2589
|
}, [
|
|
2589
|
-
t.yTop && t.show ? (
|
|
2590
|
+
t.yTop && t.show ? (r(), i("line", {
|
|
2590
2591
|
key: 0,
|
|
2591
2592
|
x1: t.x1,
|
|
2592
2593
|
y1: t.yTop,
|
|
@@ -2597,8 +2598,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2597
2598
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2598
2599
|
"stroke-linecap": "round",
|
|
2599
2600
|
style: { animation: "none !important" }
|
|
2600
|
-
}, null, 8, Is)) :
|
|
2601
|
-
t.yBottom && t.show ? (
|
|
2601
|
+
}, null, 8, Is)) : u("", !0),
|
|
2602
|
+
t.yBottom && t.show ? (r(), i("line", {
|
|
2602
2603
|
key: 1,
|
|
2603
2604
|
x1: t.x1,
|
|
2604
2605
|
y1: t.yBottom,
|
|
@@ -2609,8 +2610,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2609
2610
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2610
2611
|
"stroke-linecap": "round",
|
|
2611
2612
|
style: { animation: "none !important" }
|
|
2612
|
-
}, null, 8, xs)) :
|
|
2613
|
-
t.hasArea && t.show ? (
|
|
2613
|
+
}, null, 8, xs)) : u("", !0),
|
|
2614
|
+
t.hasArea && t.show ? (r(), i("rect", {
|
|
2614
2615
|
key: 2,
|
|
2615
2616
|
y: Math.min(t.yTop, t.yBottom),
|
|
2616
2617
|
x: t.x1,
|
|
@@ -2618,12 +2619,12 @@ function Us(s, n, u, f, l, e) {
|
|
|
2618
2619
|
height: e.checkNaN(t.areaHeight, 0),
|
|
2619
2620
|
fill: e.setOpacity(t.config.area.fill, t.config.area.opacity),
|
|
2620
2621
|
style: { animation: "none !important" }
|
|
2621
|
-
}, null, 8, Ns)) :
|
|
2622
|
-
t.config.label.text && t.show ? (
|
|
2622
|
+
}, null, 8, Ns)) : u("", !0),
|
|
2623
|
+
t.config.label.text && t.show ? (r(), i("rect", ie({
|
|
2623
2624
|
key: 3,
|
|
2624
2625
|
class: "vue-ui-xy-annotation-label-box"
|
|
2625
|
-
}, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) :
|
|
2626
|
-
t.config.label.text && t.show ? (
|
|
2626
|
+
}, { ref_for: !0 }, t._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : u("", !0),
|
|
2627
|
+
t.config.label.text && t.show ? (r(), i("text", {
|
|
2627
2628
|
key: 4,
|
|
2628
2629
|
id: t.id,
|
|
2629
2630
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -2632,11 +2633,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
2632
2633
|
"font-size": t.config.label.fontSize,
|
|
2633
2634
|
fill: t.config.label.color,
|
|
2634
2635
|
"text-anchor": t.config.label.textAnchor
|
|
2635
|
-
}, R(t.config.label.text), 9, ms)) :
|
|
2636
|
+
}, R(t.config.label.text), 9, ms)) : u("", !0)
|
|
2636
2637
|
]))), 128))
|
|
2637
|
-
])) :
|
|
2638
|
+
])) : u("", !0),
|
|
2638
2639
|
I("g", null, [
|
|
2639
|
-
(
|
|
2640
|
+
(r(!0), i(d, null, x(e.maxSeries, (t, o) => (r(), i("rect", {
|
|
2640
2641
|
key: `tooltip_trap_${o}`,
|
|
2641
2642
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
2642
2643
|
y: e.drawingArea.top,
|
|
@@ -2648,8 +2649,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2648
2649
|
onClick: (c) => e.selectX(o)
|
|
2649
2650
|
}, null, 40, bs))), 128))
|
|
2650
2651
|
]),
|
|
2651
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (
|
|
2652
|
-
(
|
|
2652
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (r(), i("g", Fs, [
|
|
2653
|
+
(r(), i("foreignObject", {
|
|
2653
2654
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2654
2655
|
y: e.drawingArea.bottom,
|
|
2655
2656
|
width: "200",
|
|
@@ -2658,7 +2659,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2658
2659
|
}, [
|
|
2659
2660
|
I("div", {
|
|
2660
2661
|
class: "vue-ui-xy-time-tag",
|
|
2661
|
-
style:
|
|
2662
|
+
style: _(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2662
2663
|
}, R(e.timeLabels[(l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)].text || (l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)), 5)
|
|
2663
2664
|
], 8, _s)),
|
|
2664
2665
|
I("circle", {
|
|
@@ -2667,27 +2668,27 @@ function Us(s, n, u, f, l, e) {
|
|
|
2667
2668
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2668
2669
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2669
2670
|
}, null, 8, ys)
|
|
2670
|
-
])) :
|
|
2671
|
-
])) :
|
|
2671
|
+
])) : u("", !0)
|
|
2672
|
+
])) : u("", !0),
|
|
2672
2673
|
G(s.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2673
2674
|
], 512)
|
|
2674
|
-
], 14, dt)) :
|
|
2675
|
-
s.$slots.watermark ? (
|
|
2675
|
+
], 14, dt)) : u("", !0),
|
|
2676
|
+
s.$slots.watermark ? (r(), i("div", As, [
|
|
2676
2677
|
G(s.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
|
|
2677
|
-
])) :
|
|
2678
|
-
(
|
|
2678
|
+
])) : u("", !0),
|
|
2679
|
+
(r(!0), i(d, null, x(e.lineSet, (t, o) => (r(), i(d, {
|
|
2679
2680
|
key: `tag_line_${o}`
|
|
2680
2681
|
}, [
|
|
2681
|
-
(
|
|
2682
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2682
2683
|
key: `tag_line_${o}_${g}`
|
|
2683
2684
|
}, [
|
|
2684
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (
|
|
2685
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (r(), i("div", {
|
|
2685
2686
|
key: 0,
|
|
2686
2687
|
ref_for: !0,
|
|
2687
2688
|
ref: (z) => e.setTagRef(o, g, z, "right", "line"),
|
|
2688
2689
|
class: "vue-ui-xy-tag",
|
|
2689
2690
|
"data-tag": "right",
|
|
2690
|
-
style:
|
|
2691
|
+
style: _({
|
|
2691
2692
|
position: "fixed",
|
|
2692
2693
|
top: e.placeXYTag({
|
|
2693
2694
|
svgElement: l.svgRef,
|
|
@@ -2712,7 +2713,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2712
2713
|
opacity: 1
|
|
2713
2714
|
})
|
|
2714
2715
|
}, [
|
|
2715
|
-
(
|
|
2716
|
+
(r(), i("svg", Ls, [
|
|
2716
2717
|
I("path", {
|
|
2717
2718
|
d: "M 0,10 10,0 10,20 Z",
|
|
2718
2719
|
fill: t.color,
|
|
@@ -2732,14 +2733,14 @@ function Us(s, n, u, f, l, e) {
|
|
|
2732
2733
|
}
|
|
2733
2734
|
)
|
|
2734
2735
|
}, null, 8, Ss)
|
|
2735
|
-
], 4)) :
|
|
2736
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (
|
|
2736
|
+
], 4)) : u("", !0),
|
|
2737
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (r(), i("div", {
|
|
2737
2738
|
key: 1,
|
|
2738
2739
|
ref_for: !0,
|
|
2739
2740
|
ref: (z) => e.setTagRef(o, g, z, "left", "line"),
|
|
2740
2741
|
class: "vue-ui-xy-tag",
|
|
2741
2742
|
"data-tag": "left",
|
|
2742
|
-
style:
|
|
2743
|
+
style: _({
|
|
2743
2744
|
position: "fixed",
|
|
2744
2745
|
top: e.placeXYTag({
|
|
2745
2746
|
svgElement: l.svgRef,
|
|
@@ -2764,7 +2765,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2764
2765
|
opacity: 1
|
|
2765
2766
|
})
|
|
2766
2767
|
}, [
|
|
2767
|
-
(
|
|
2768
|
+
(r(), i("svg", ks, [
|
|
2768
2769
|
I("path", {
|
|
2769
2770
|
d: "M 0,0 10,10 0,20 Z",
|
|
2770
2771
|
fill: t.color,
|
|
@@ -2784,22 +2785,22 @@ function Us(s, n, u, f, l, e) {
|
|
|
2784
2785
|
}
|
|
2785
2786
|
)
|
|
2786
2787
|
}, null, 8, Os)
|
|
2787
|
-
], 4)) :
|
|
2788
|
+
], 4)) : u("", !0)
|
|
2788
2789
|
], 64))), 128))
|
|
2789
2790
|
], 64))), 128)),
|
|
2790
|
-
(
|
|
2791
|
+
(r(!0), i(d, null, x(e.plotSet, (t, o) => (r(), i(d, {
|
|
2791
2792
|
key: `tag_plot_${o}`
|
|
2792
2793
|
}, [
|
|
2793
|
-
(
|
|
2794
|
+
(r(!0), i(d, null, x(t.plots, (c, g) => (r(), i(d, {
|
|
2794
2795
|
key: `tag_plot_${o}_${g}`
|
|
2795
2796
|
}, [
|
|
2796
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (
|
|
2797
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (r(), i("div", {
|
|
2797
2798
|
key: 0,
|
|
2798
2799
|
ref_for: !0,
|
|
2799
2800
|
ref: (z) => e.setTagRef(o, g, z, "right", "plot"),
|
|
2800
2801
|
class: "vue-ui-xy-tag",
|
|
2801
2802
|
"data-tag": "right",
|
|
2802
|
-
style:
|
|
2803
|
+
style: _({
|
|
2803
2804
|
position: "fixed",
|
|
2804
2805
|
top: e.placeXYTag({
|
|
2805
2806
|
svgElement: l.svgRef,
|
|
@@ -2824,7 +2825,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2824
2825
|
opacity: 1
|
|
2825
2826
|
})
|
|
2826
2827
|
}, [
|
|
2827
|
-
(
|
|
2828
|
+
(r(), i("svg", Gs, [
|
|
2828
2829
|
I("path", {
|
|
2829
2830
|
d: "M 0,10 10,0 10,20 Z",
|
|
2830
2831
|
fill: t.color,
|
|
@@ -2844,14 +2845,14 @@ function Us(s, n, u, f, l, e) {
|
|
|
2844
2845
|
}
|
|
2845
2846
|
)
|
|
2846
2847
|
}, null, 8, ps)
|
|
2847
|
-
], 4)) :
|
|
2848
|
-
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (
|
|
2848
|
+
], 4)) : u("", !0),
|
|
2849
|
+
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(g) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (r(), i("div", {
|
|
2849
2850
|
key: 1,
|
|
2850
2851
|
ref_for: !0,
|
|
2851
2852
|
ref: (z) => e.setTagRef(o, g, z, "left", "plot"),
|
|
2852
2853
|
class: "vue-ui-xy-tag",
|
|
2853
2854
|
"data-tag": "left",
|
|
2854
|
-
style:
|
|
2855
|
+
style: _({
|
|
2855
2856
|
position: "fixed",
|
|
2856
2857
|
top: e.placeXYTag({
|
|
2857
2858
|
svgElement: l.svgRef,
|
|
@@ -2876,7 +2877,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2876
2877
|
opacity: 1
|
|
2877
2878
|
})
|
|
2878
2879
|
}, [
|
|
2879
|
-
(
|
|
2880
|
+
(r(), i("svg", Ms, [
|
|
2880
2881
|
I("path", {
|
|
2881
2882
|
d: "M 0,0 10,10 0,20 Z",
|
|
2882
2883
|
fill: t.color,
|
|
@@ -2896,10 +2897,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
2896
2897
|
}
|
|
2897
2898
|
)
|
|
2898
2899
|
}, null, 8, Ts)
|
|
2899
|
-
], 4)) :
|
|
2900
|
+
], 4)) : u("", !0)
|
|
2900
2901
|
], 64))), 128))
|
|
2901
2902
|
], 64))), 128)),
|
|
2902
|
-
e.isDataset ?
|
|
2903
|
+
e.isDataset ? u("", !0) : (r(), U(F, {
|
|
2903
2904
|
key: 6,
|
|
2904
2905
|
config: {
|
|
2905
2906
|
type: "line",
|
|
@@ -2917,7 +2918,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2917
2918
|
}
|
|
2918
2919
|
}
|
|
2919
2920
|
}, null, 8, ["config"])),
|
|
2920
|
-
e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (
|
|
2921
|
+
e.FINAL_CONFIG.chart.zoom.show && l.maxX > 6 && e.isDataset ? (r(), U(v, {
|
|
2921
2922
|
ref: "chartSlicer",
|
|
2922
2923
|
key: `slicer_${l.slicerStep}`,
|
|
2923
2924
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2947,7 +2948,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
2947
2948
|
end: l.slicer.end,
|
|
2948
2949
|
"onUpdate:end": n[3] || (n[3] = (t) => l.slicer.end = t),
|
|
2949
2950
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2950
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...
|
|
2951
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...h.dataset.map((t) => e.largestTriangleThreeBucketsArray({ data: t.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2951
2952
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
2952
2953
|
enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
|
|
2953
2954
|
onReset: e.refreshSlicer,
|
|
@@ -2957,19 +2958,19 @@ function Us(s, n, u, f, l, e) {
|
|
|
2957
2958
|
G(s.$slots, "reset-action", $(ee({ reset: t })), void 0, !0)
|
|
2958
2959
|
]),
|
|
2959
2960
|
_: 3
|
|
2960
|
-
}, 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"])) :
|
|
2961
|
-
e.FINAL_CONFIG.chart.legend.show ? (
|
|
2961
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : u("", !0),
|
|
2962
|
+
e.FINAL_CONFIG.chart.legend.show ? (r(), i("div", {
|
|
2962
2963
|
key: 8,
|
|
2963
2964
|
ref: "chartLegend",
|
|
2964
2965
|
class: "vue-ui-xy-legend",
|
|
2965
|
-
style:
|
|
2966
|
+
style: _(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2966
2967
|
}, [
|
|
2967
|
-
(
|
|
2968
|
+
(r(!0), i(d, null, x(e.absoluteDataset, (t, o) => (r(), i("div", {
|
|
2968
2969
|
key: `div_legend_item_${o}`,
|
|
2969
2970
|
onClick: (c) => e.segregate(t),
|
|
2970
2971
|
class: j({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(t.id) })
|
|
2971
2972
|
}, [
|
|
2972
|
-
l.icons[t.type] === "line" ? (
|
|
2973
|
+
l.icons[t.type] === "line" ? (r(), i("svg", Ps, [
|
|
2973
2974
|
I("rect", {
|
|
2974
2975
|
x: "0",
|
|
2975
2976
|
y: "7.5",
|
|
@@ -2988,8 +2989,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2988
2989
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2989
2990
|
strokeWidth: 0.5
|
|
2990
2991
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2991
|
-
])) : l.icons[t.type] === "bar" ? (
|
|
2992
|
-
l.icons[t.type] === "bar" && s.$slots.pattern ? (
|
|
2992
|
+
])) : l.icons[t.type] === "bar" ? (r(), i("svg", Bs, [
|
|
2993
|
+
l.icons[t.type] === "bar" && s.$slots.pattern ? (r(), i("rect", {
|
|
2993
2994
|
key: 0,
|
|
2994
2995
|
x: "0",
|
|
2995
2996
|
y: "0",
|
|
@@ -2998,8 +2999,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
2998
2999
|
width: "40",
|
|
2999
3000
|
stroke: "none",
|
|
3000
3001
|
fill: t.color
|
|
3001
|
-
}, null, 8, Hs)) :
|
|
3002
|
-
l.icons[t.type] === "bar" ? (
|
|
3002
|
+
}, null, 8, Hs)) : u("", !0),
|
|
3003
|
+
l.icons[t.type] === "bar" ? (r(), i("rect", {
|
|
3003
3004
|
key: 1,
|
|
3004
3005
|
x: "0",
|
|
3005
3006
|
y: "0",
|
|
@@ -3008,8 +3009,8 @@ function Us(s, n, u, f, l, e) {
|
|
|
3008
3009
|
width: "40",
|
|
3009
3010
|
stroke: "none",
|
|
3010
3011
|
fill: s.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
|
|
3011
|
-
}, null, 8, Ds)) :
|
|
3012
|
-
])) : (
|
|
3012
|
+
}, null, 8, Ds)) : u("", !0)
|
|
3013
|
+
])) : (r(), i("svg", Es, [
|
|
3013
3014
|
le(N, {
|
|
3014
3015
|
plot: { x: 6, y: 6 },
|
|
3015
3016
|
radius: 5,
|
|
@@ -3018,15 +3019,15 @@ function Us(s, n, u, f, l, e) {
|
|
|
3018
3019
|
}, null, 8, ["color", "shape"])
|
|
3019
3020
|
])),
|
|
3020
3021
|
I("span", {
|
|
3021
|
-
style:
|
|
3022
|
+
style: _(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
3022
3023
|
}, R(t.name), 5)
|
|
3023
3024
|
], 10, Vs))), 128))
|
|
3024
|
-
], 4)) : (
|
|
3025
|
+
], 4)) : (r(), i("div", Ws, [
|
|
3025
3026
|
G(s.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
3026
3027
|
], 512)),
|
|
3027
|
-
s.$slots.source ? (
|
|
3028
|
+
s.$slots.source ? (r(), i("div", Ys, [
|
|
3028
3029
|
G(s.$slots, "source", {}, void 0, !0)
|
|
3029
|
-
], 512)) :
|
|
3030
|
+
], 512)) : u("", !0),
|
|
3030
3031
|
le(m, {
|
|
3031
3032
|
show: l.mutableConfig.showTooltip && l.isTooltip,
|
|
3032
3033
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
@@ -3051,7 +3052,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
3051
3052
|
]),
|
|
3052
3053
|
_: 3
|
|
3053
3054
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
3054
|
-
e.isDataset ? (
|
|
3055
|
+
e.isDataset ? (r(), U(B, {
|
|
3055
3056
|
key: 11,
|
|
3056
3057
|
hideDetails: "",
|
|
3057
3058
|
config: {
|
|
@@ -3069,7 +3070,7 @@ function Us(s, n, u, f, l, e) {
|
|
|
3069
3070
|
}, {
|
|
3070
3071
|
content: D(() => [
|
|
3071
3072
|
I("div", {
|
|
3072
|
-
style:
|
|
3073
|
+
style: _(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
3073
3074
|
}, [
|
|
3074
3075
|
I("div", Xs, [
|
|
3075
3076
|
tt(I("input", {
|
|
@@ -3089,11 +3090,11 @@ function Us(s, n, u, f, l, e) {
|
|
|
3089
3090
|
}, null, 8, ["stroke"])
|
|
3090
3091
|
])
|
|
3091
3092
|
]),
|
|
3092
|
-
l.showSparklineTable ? (
|
|
3093
|
+
l.showSparklineTable ? (r(), U(b, {
|
|
3093
3094
|
key: `sparkline_${l.segregateStep}`,
|
|
3094
3095
|
dataset: e.tableSparklineDataset,
|
|
3095
3096
|
config: e.tableSparklineConfig
|
|
3096
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
3097
|
+
}, null, 8, ["dataset", "config"])) : (r(), U(p, {
|
|
3097
3098
|
key: `table_${l.tableStep}`,
|
|
3098
3099
|
colNames: e.dataTable.colNames,
|
|
3099
3100
|
head: e.dataTable.head,
|
|
@@ -3118,10 +3119,10 @@ function Us(s, n, u, f, l, e) {
|
|
|
3118
3119
|
], 4)
|
|
3119
3120
|
]),
|
|
3120
3121
|
_: 1
|
|
3121
|
-
}, 8, ["config"])) :
|
|
3122
|
+
}, 8, ["config"])) : u("", !0)
|
|
3122
3123
|
], 46, ht);
|
|
3123
3124
|
}
|
|
3124
|
-
const sa = /* @__PURE__ */ nt(ot, [["render", Us], ["__scopeId", "data-v-
|
|
3125
|
+
const sa = /* @__PURE__ */ nt(ot, [["render", Us], ["__scopeId", "data-v-a63aa4db"]]);
|
|
3125
3126
|
export {
|
|
3126
3127
|
sa as default
|
|
3127
3128
|
};
|