vue-data-ui 2.14.2 → 2.14.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/{Arrow-DNJvKMao.js → Arrow-CHiKXhrZ.js} +1 -1
- package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-C_zNQi8p.js} +2 -2
- package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-CjLVVFOF.js} +1 -1
- package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-4qYqEUzw.js} +2 -2
- package/dist/{DataTable-DzCoab4C.js → DataTable-CQHjdD9t.js} +2 -2
- package/dist/{Legend-DLJ9I-cg.js → Legend-XakQeDJw.js} +4 -4
- package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-BVSNCCsg.js} +3 -3
- package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-mH9eFSdi.js} +2 -2
- package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-C49A3fVl.js} +3 -3
- package/dist/{Shape-DdpwkHh8.js → Shape-D_nY-zV8.js} +1 -1
- package/dist/{Slicer-B6mk6VRe.js → Slicer-DAuA0E6E.js} +14 -14
- package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-BRAWFiKX.js} +1 -1
- package/dist/{Title-xtSGHclp.js → Title-Be-4IBib.js} +1 -1
- package/dist/{Tooltip-D8swCIay.js → Tooltip-B4lRAXc3.js} +1 -1
- package/dist/{UserOptions-BbJkNcCM.js → UserOptions-CZOjPjId.js} +2 -2
- package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-O95d2xYz.js} +1 -1
- package/dist/{img-CtqhCOnQ.js → img-B5QfWbFM.js} +1 -1
- package/dist/{index-DBYSSUsg.js → index-DpgjO9No.js} +409 -394
- package/dist/{pdf-Cq3bf6D0.js → pdf-C86OOuya.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-BS0-lsm3.js} +1 -1
- package/dist/{usePrinter-xF9W73YL.js → usePrinter-EqGRLYQ_.js} +2 -2
- package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-CkGWUdE5.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-BMy6RIsR.js} +5 -5
- package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-B7SuIgFc.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-DWAc3Ofk.js} +5 -5
- package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BjW1IoFR.js} +2 -2
- package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-DfpzNl51.js} +6 -6
- package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-BhWpJIxD.js} +6 -6
- package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DMSlJoWw.js} +4 -4
- package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-Dby5X8Oy.js} +4 -4
- package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-BBjEiNoo.js} +7 -7
- package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-QR1HniAL.js} +5 -5
- package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-D9HDDbAr.js} +2 -2
- package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-DMgkrLHs.js} +62 -62
- package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-AxsWsoNG.js} +2 -2
- package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-B3cs-HjU.js} +111 -111
- package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-piOrh5of.js} +295 -279
- package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-C_amhKRH.js} +6 -6
- package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-kgzJDBYW.js} +26 -26
- package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-D582UlDY.js} +5 -5
- package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy-BCPNqux7.js} +4 -4
- package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-6YFYdXxG.js} +5 -5
- package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-PN0sgIDN.js} +3 -3
- package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-bWGrfPpu.js} +6 -6
- package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-CNxerxJF.js} +234 -210
- package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-BXiiCP9f.js} +3 -3
- package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-LXae2ars.js} +2 -2
- package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-B2dzn9rQ.js} +16 -16
- package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-DIJJhVIZ.js} +19 -19
- package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-4lqDDJmG.js} +46 -46
- package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-BIgfyn7z.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-COW7u6EQ.js} +192 -175
- package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-B3HOf0aF.js} +243 -225
- package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-Cg7pNkb3.js} +459 -443
- package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-DY7BOmEO.js} +45 -45
- package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-C8ubvpA2.js} +8 -8
- package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-BSUJrp9v.js} +5 -5
- package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CNNfP0Gl.js} +185 -165
- package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-C0iQMvwp.js} +7 -7
- package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-BaXESoFU.js} +49 -49
- package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-C-ca3jum.js} +3 -3
- package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-BPSnI-sv.js} +2 -2
- package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-C2p4SwT6.js} +3 -3
- package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-C_Z7se8R.js} +3 -3
- package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BNQP-wru.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-S7ZqAbMr.js} +4 -4
- package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-BOUcxjBn.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Bcz6Tg5h.js} +3 -3
- package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-BwY3L4k_.js} +417 -373
- package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BQKMvJ_f.js} +202 -184
- package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-BMFeG4Ll.js} +3 -3
- package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap-BMcm8nz5.js} +18 -18
- package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-DvbV5c0E.js} +4 -4
- package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-DaUJKwlB.js} +5 -5
- package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-2lttGgfU.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-Br-K5C0A.js} +5 -5
- package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-BMcITB4q.js} +7 -7
- package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-DyHNX6fM.js} +8 -8
- package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-D2O27EVK.js} +246 -242
- package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-BJ11Yo4p.js} +5 -5
- package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-DoiCiPEX.js} +15 -15
- package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-DnATnNkX.js} +5 -5
- package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-DRE6d6PA.js} +591 -570
- package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-CB8YSoKV.js} +7 -7
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
4
|
-
import { u as
|
|
5
|
-
import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as i, normalizeStyle as
|
|
6
|
-
import { S as
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
const
|
|
1
|
+
import { R as X, _ 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, F as me, w as be, s as Fe, o as _e, a2 as Ae, af as ye, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as He, ai as De, D as Be, a5 as We, aj as Ee, i as Ye, G as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-DpgjO9No.js";
|
|
2
|
+
import { u as je } from "./useMouse-AicQS8Vf.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-BS0-lsm3.js";
|
|
4
|
+
import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
|
+
import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as i, normalizeStyle as F, normalizeClass as j, createBlock as U, createCommentVNode as h, createVNode as le, createSlots as et, withCtx as B, renderSlot as O, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as g, renderList as x, toDisplayString as V, mergeProps as se, withDirectives as tt, vModelCheckbox as lt, createTextVNode as rt } from "vue";
|
|
6
|
+
import { S as at } from "./Slicer-DAuA0E6E.js";
|
|
7
|
+
import it from "./Title-Be-4IBib.js";
|
|
8
|
+
import { _ as st } from "./Shape-D_nY-zV8.js";
|
|
9
|
+
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const ct = ne(), ot = {
|
|
11
11
|
name: "vue-ui-xy",
|
|
12
12
|
props: {
|
|
13
13
|
config: {
|
|
@@ -24,20 +24,20 @@ const nt = ne(), ct = {
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
components: {
|
|
27
|
-
Slicer:
|
|
27
|
+
Slicer: at,
|
|
28
28
|
// Must be ready in responsive mode
|
|
29
|
-
Title:
|
|
29
|
+
Title: it,
|
|
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: st,
|
|
32
|
+
DataTable: Z(() => import("./DataTable-CQHjdD9t.js")),
|
|
33
|
+
Tooltip: Z(() => import("./Tooltip-B4lRAXc3.js")),
|
|
34
|
+
UserOptions: Z(() => import("./UserOptions-CZOjPjId.js")),
|
|
35
|
+
BaseIcon: Z(() => import("./BaseIcon-CjLVVFOF.js")),
|
|
36
|
+
TableSparkline: Z(() => import("./vue-ui-table-sparkline-DvbV5c0E.js")),
|
|
37
|
+
Skeleton: Z(() => import("./vue-ui-skeleton-C-ca3jum.js")),
|
|
38
|
+
Accordion: Z(() => import("./vue-ui-accordion-B7SuIgFc.js")),
|
|
39
|
+
PackageVersion: Z(() => import("./PackageVersion-mH9eFSdi.js")),
|
|
40
|
+
PenAndPaper: Z(() => import("./PenAndPaper-C49A3fVl.js"))
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
this.dataset.forEach((f, l) => {
|
|
@@ -48,9 +48,9 @@ const nt = ne(), ct = {
|
|
|
48
48
|
index: l
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
-
const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500,
|
|
51
|
+
const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, o = Math.max(...this.dataset.map((f) => this.largestTriangleThreeBucketsArray({ data: f.series, threshold: r }).length)), u = {
|
|
52
52
|
start: 0,
|
|
53
|
-
end:
|
|
53
|
+
end: o
|
|
54
54
|
};
|
|
55
55
|
return {
|
|
56
56
|
resizeObserver: null,
|
|
@@ -61,9 +61,9 @@ const nt = ne(), ct = {
|
|
|
61
61
|
selectedScale: null,
|
|
62
62
|
CTX: null,
|
|
63
63
|
CANVAS: null,
|
|
64
|
-
opacity:
|
|
64
|
+
opacity: Je,
|
|
65
65
|
useSafeValues: !0,
|
|
66
|
-
palette:
|
|
66
|
+
palette: Ze,
|
|
67
67
|
height: 600,
|
|
68
68
|
width: 1e3,
|
|
69
69
|
viewBox: "0 0 1000 600",
|
|
@@ -103,10 +103,10 @@ const nt = ne(), ct = {
|
|
|
103
103
|
titleStep: 0,
|
|
104
104
|
slicer: u,
|
|
105
105
|
__to__: null,
|
|
106
|
-
maxX:
|
|
106
|
+
maxX: o,
|
|
107
107
|
showSparklineTable: !0,
|
|
108
108
|
segregateStep: 0,
|
|
109
|
-
sliderId:
|
|
109
|
+
sliderId: ct,
|
|
110
110
|
fontSizes: {
|
|
111
111
|
xAxis: 18,
|
|
112
112
|
yAxis: 12,
|
|
@@ -128,7 +128,7 @@ const nt = ne(), ct = {
|
|
|
128
128
|
},
|
|
129
129
|
watch: {
|
|
130
130
|
dataset: {
|
|
131
|
-
handler(r,
|
|
131
|
+
handler(r, o) {
|
|
132
132
|
this.maxX = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({
|
|
133
133
|
data: u.series,
|
|
134
134
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
@@ -140,7 +140,7 @@ const nt = ne(), ct = {
|
|
|
140
140
|
deep: !0
|
|
141
141
|
},
|
|
142
142
|
config: {
|
|
143
|
-
handler(r,
|
|
143
|
+
handler(r, o) {
|
|
144
144
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
|
|
145
145
|
dataLabels: {
|
|
146
146
|
show: !0
|
|
@@ -159,8 +159,8 @@ const nt = ne(), ct = {
|
|
|
159
159
|
return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.formatter.locale;
|
|
160
160
|
},
|
|
161
161
|
chartAriaLabel() {
|
|
162
|
-
const r = this.FINAL_CONFIG.chart.title.text || "Chart visualization",
|
|
163
|
-
return `${r}. ${
|
|
162
|
+
const r = this.FINAL_CONFIG.chart.title.text || "Chart visualization", o = this.FINAL_CONFIG.chart.title.subtitle.text || "";
|
|
163
|
+
return `${r}. ${o}`;
|
|
164
164
|
},
|
|
165
165
|
optimize() {
|
|
166
166
|
return {
|
|
@@ -172,8 +172,8 @@ const nt = ne(), ct = {
|
|
|
172
172
|
},
|
|
173
173
|
minimap() {
|
|
174
174
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
175
|
-
const r = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)),
|
|
176
|
-
for (let l = 0; l <
|
|
175
|
+
const r = this.datasetWithIds.filter((l) => !this.segregatedSeries.includes(l.id)), o = Math.max(...r.map((l) => l.series.length)), u = [];
|
|
176
|
+
for (let l = 0; l < o; l += 1)
|
|
177
177
|
u.push(r.map((e) => e.series[l] || 0).reduce((e, a) => (e || 0) + (a || 0), 0));
|
|
178
178
|
const f = Math.min(...u);
|
|
179
179
|
return u.map((l) => l + (f < 0 ? Math.abs(f) : 0));
|
|
@@ -200,7 +200,7 @@ const nt = ne(), ct = {
|
|
|
200
200
|
yOffset: e.yOffset || 0,
|
|
201
201
|
individualHeight: e.individualHeight || this.drawingArea.height,
|
|
202
202
|
autoScaleYLabels: e.autoScaleYLabels
|
|
203
|
-
})),
|
|
203
|
+
})), o = this.barSet.map((e) => ({
|
|
204
204
|
name: e.name,
|
|
205
205
|
color: e.color,
|
|
206
206
|
scale: e.individualScale,
|
|
@@ -223,7 +223,7 @@ const nt = ne(), ct = {
|
|
|
223
223
|
id: e.id,
|
|
224
224
|
yOffset: e.yOffset || 0,
|
|
225
225
|
individualHeight: e.individualHeight || this.drawingArea.height
|
|
226
|
-
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...r, ...
|
|
226
|
+
})), f = this.mutableConfig.useIndividualScale && !this.mutableConfig.isStacked ? Object.values(this.scaleGroups) : [...r, ...o, ...u], l = f.flatMap((e) => e).length;
|
|
227
227
|
return f.flatMap((e, a) => ({
|
|
228
228
|
unique: e.unique,
|
|
229
229
|
id: e.id,
|
|
@@ -261,9 +261,9 @@ const nt = ne(), ct = {
|
|
|
261
261
|
},
|
|
262
262
|
highlightAreas() {
|
|
263
263
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
264
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
265
|
-
...
|
|
266
|
-
span:
|
|
264
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((o) => ({
|
|
265
|
+
...o,
|
|
266
|
+
span: o.from === o.to ? 1 : o.to < o.from ? 0 : o.to - o.from + 1
|
|
267
267
|
}));
|
|
268
268
|
const r = this.FINAL_CONFIG.chart.highlightArea;
|
|
269
269
|
return [{ ...r, span: r.from === r.to ? 1 : r.to < r.from ? 0 : r.to - r.from + 1 }];
|
|
@@ -278,33 +278,33 @@ const nt = ne(), ct = {
|
|
|
278
278
|
return this.niceScale.max + this.relativeZero;
|
|
279
279
|
},
|
|
280
280
|
datasetWithIds() {
|
|
281
|
-
return this.useSafeValues ? this.dataset.map((r,
|
|
281
|
+
return this.useSafeValues ? this.dataset.map((r, o) => ({
|
|
282
282
|
...r,
|
|
283
283
|
series: this.largestTriangleThreeBucketsArray({
|
|
284
284
|
data: r.series,
|
|
285
285
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
286
286
|
}),
|
|
287
|
-
id: `uniqueId_${
|
|
287
|
+
id: `uniqueId_${o}`
|
|
288
288
|
})) : this.dataset;
|
|
289
289
|
},
|
|
290
290
|
safeDataset() {
|
|
291
|
-
return this.useSafeValues ? this.dataset.map((r,
|
|
291
|
+
return this.useSafeValues ? this.dataset.map((r, o) => {
|
|
292
292
|
const u = this.largestTriangleThreeBucketsArray({
|
|
293
293
|
data: r.series,
|
|
294
294
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
295
|
-
}), f = `uniqueId_${
|
|
295
|
+
}), f = `uniqueId_${o}`;
|
|
296
296
|
return {
|
|
297
297
|
...r,
|
|
298
|
-
slotAbsoluteIndex:
|
|
298
|
+
slotAbsoluteIndex: o,
|
|
299
299
|
series: u.map((l) => this.isSafeValue(l) ? l : null).slice(this.slicer.start, this.slicer.end),
|
|
300
|
-
color: this.convertColorToHex(r.color ? r.color : this.customPalette[
|
|
300
|
+
color: this.convertColorToHex(r.color ? r.color : this.customPalette[o] ? this.customPalette[o] : this.palette[o]),
|
|
301
301
|
id: f,
|
|
302
302
|
scaleLabel: r.scaleLabel || f
|
|
303
303
|
};
|
|
304
304
|
}) : this.dataset;
|
|
305
305
|
},
|
|
306
306
|
relativeDataset() {
|
|
307
|
-
return this.safeDataset.map((r,
|
|
307
|
+
return this.safeDataset.map((r, o) => ({
|
|
308
308
|
...r,
|
|
309
309
|
series: r.series.map((u) => u + this.relativeZero),
|
|
310
310
|
absoluteValues: r.series
|
|
@@ -312,12 +312,12 @@ const nt = ne(), ct = {
|
|
|
312
312
|
},
|
|
313
313
|
tableSparklineDataset() {
|
|
314
314
|
return this.relativeDataset.map((r) => {
|
|
315
|
-
const
|
|
315
|
+
const o = r.absoluteValues.map((u) => [void 0, null].includes(u) ? 0 : u);
|
|
316
316
|
return {
|
|
317
317
|
id: r.id,
|
|
318
318
|
name: r.name,
|
|
319
319
|
color: r.color,
|
|
320
|
-
values: this.fillArray(this.maxSeries,
|
|
320
|
+
values: this.fillArray(this.maxSeries, o)
|
|
321
321
|
};
|
|
322
322
|
});
|
|
323
323
|
},
|
|
@@ -348,8 +348,8 @@ const nt = ne(), ct = {
|
|
|
348
348
|
};
|
|
349
349
|
},
|
|
350
350
|
absoluteDataset() {
|
|
351
|
-
return this.safeDataset.map((r,
|
|
352
|
-
absoluteIndex:
|
|
351
|
+
return this.safeDataset.map((r, o) => ({
|
|
352
|
+
absoluteIndex: o,
|
|
353
353
|
...r,
|
|
354
354
|
series: r.series.map((u) => u + this.relativeZero),
|
|
355
355
|
absoluteValues: r.series,
|
|
@@ -364,19 +364,19 @@ const nt = ne(), ct = {
|
|
|
364
364
|
return this.assignStackRatios(this.absoluteDataset.filter((r) => !this.segregatedSeries.includes(r.id)));
|
|
365
365
|
},
|
|
366
366
|
scaleGroups() {
|
|
367
|
-
const r = Object.groupBy(this.activeSeriesWithStackRatios, (u) => u.scaleLabel),
|
|
367
|
+
const r = Object.groupBy(this.activeSeriesWithStackRatios, (u) => u.scaleLabel), o = {};
|
|
368
368
|
for (const [u, f] of Object.entries(r)) {
|
|
369
369
|
const l = f.flatMap((e) => e.absoluteValues);
|
|
370
|
-
|
|
370
|
+
o[u] = {
|
|
371
371
|
min: Math.min(...l) || 0,
|
|
372
372
|
max: Math.max(...l) || 1,
|
|
373
373
|
groupId: `scale_group_${this.createUid()}`
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
return
|
|
376
|
+
return o;
|
|
377
377
|
},
|
|
378
378
|
barSet() {
|
|
379
|
-
const r = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)),
|
|
379
|
+
const r = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), o = r.length, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (o - 1) : 0, e = this.drawingArea.height - l;
|
|
380
380
|
return r.filter((a) => a.type === "bar").map((a, L) => {
|
|
381
381
|
this.checkAutoScaleError(a);
|
|
382
382
|
const z = this.scaleGroups[a.scaleLabel].min, G = this.scaleGroups[a.scaleLabel].max;
|
|
@@ -384,34 +384,34 @@ const nt = ne(), ct = {
|
|
|
384
384
|
const N = {
|
|
385
385
|
valueMin: z,
|
|
386
386
|
valueMax: G < 0 ? 0 : G
|
|
387
|
-
},
|
|
387
|
+
}, A = {
|
|
388
388
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
389
389
|
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)))
|
|
390
|
-
}, v = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001,
|
|
391
|
-
const
|
|
390
|
+
}, v = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, y = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(A.min, A.max === A.min ? A.max * m : A.max, v) : this.calculateNiceScaleWithExactExtremes(A.min, A.max === A.min ? A.max * m : A.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = y.min >= 0 ? 0 : Math.abs(y.min), H = 0, t = y.max + M, c = b.max + Math.abs(H), n = a.stackIndex, d = o - 1 - n, p = f ? 1 - a.cumulatedStackRatio : 0, S = f ? e * p + u * d : 0, k = f ? e * a.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / c, W = this.absoluteDataset.filter((C) => C.type === "bar").filter((C) => !this.segregatedSeries.includes(C.id)).length, te = a.series.map((C, R) => {
|
|
391
|
+
const K = this.mutableConfig.useIndividualScale ? (a.absoluteValues[R] + M) / t : this.ratioToMax(C), Q = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left + this.slot.bar * L + this.slot.bar * R * W - this.barSlot / 2 - L * this.barPeriodGap;
|
|
392
392
|
return {
|
|
393
393
|
yOffset: this.checkNaN(S),
|
|
394
394
|
individualHeight: this.checkNaN(k),
|
|
395
|
-
x: this.checkNaN(
|
|
396
|
-
y: this.drawingArea.bottom - S - k *
|
|
395
|
+
x: this.checkNaN(Q),
|
|
396
|
+
y: this.drawingArea.bottom - S - k * K,
|
|
397
397
|
value: a.absoluteValues[R],
|
|
398
398
|
zeroPosition: this.checkNaN(T),
|
|
399
399
|
individualMax: this.checkNaN(t),
|
|
400
400
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[R] || ""
|
|
401
401
|
};
|
|
402
|
-
}), E = 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))),
|
|
403
|
-
const
|
|
402
|
+
}), E = 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, R) => {
|
|
403
|
+
const K = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * R : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * L + this.slot.bar * R * this.absoluteDataset.filter((Q) => Q.type === "bar").filter((Q) => !this.segregatedSeries.includes(Q.id)).length;
|
|
404
404
|
return {
|
|
405
405
|
yOffset: this.checkNaN(S),
|
|
406
406
|
individualHeight: this.checkNaN(k),
|
|
407
|
-
x: this.checkNaN(
|
|
407
|
+
x: this.checkNaN(K),
|
|
408
408
|
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(S) - (this.checkNaN(k) * E[R] || 0)),
|
|
409
409
|
value: a.absoluteValues[R],
|
|
410
410
|
zeroPosition: this.checkNaN(T),
|
|
411
411
|
individualMax: this.checkNaN(t),
|
|
412
412
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[R] || ""
|
|
413
413
|
};
|
|
414
|
-
}), w =
|
|
414
|
+
}), w = y.ticks.map((C) => ({
|
|
415
415
|
y: C >= 0 ? T - k * (C / t) : T + k * Math.abs(C) / t,
|
|
416
416
|
value: C,
|
|
417
417
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
@@ -427,41 +427,41 @@ const nt = ne(), ct = {
|
|
|
427
427
|
datapoint: a
|
|
428
428
|
};
|
|
429
429
|
});
|
|
430
|
-
return 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 ? P : w, this.scaleGroups[a.scaleLabel].zeroPosition = a.autoScaling ? Y : T, this.scaleGroups[a.scaleLabel].individualMax = a.autoScaling ?
|
|
430
|
+
return 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 ? P : w, this.scaleGroups[a.scaleLabel].zeroPosition = a.autoScaling ? Y : T, this.scaleGroups[a.scaleLabel].individualMax = a.autoScaling ? c : 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 = P, this.scaleGroups[a.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((C) => C.scaleLabel === a.scaleLabel).length === 1, {
|
|
431
431
|
...a,
|
|
432
432
|
yOffset: S,
|
|
433
433
|
autoScaleYLabels: P,
|
|
434
434
|
individualHeight: k,
|
|
435
435
|
scaleYLabels: a.autoScaling ? P : w,
|
|
436
|
-
individualScale: a.autoScaling ? b :
|
|
437
|
-
individualMax: a.autoScaling ?
|
|
436
|
+
individualScale: a.autoScaling ? b : y,
|
|
437
|
+
individualMax: a.autoScaling ? c : t,
|
|
438
438
|
zeroPosition: a.autoScaling ? Y : T,
|
|
439
|
-
plots: a.autoScaling ?
|
|
439
|
+
plots: a.autoScaling ? J : te,
|
|
440
440
|
groupId: this.scaleGroups[a.scaleLabel].groupId
|
|
441
441
|
};
|
|
442
442
|
});
|
|
443
443
|
},
|
|
444
444
|
lineSet() {
|
|
445
|
-
const r = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)),
|
|
445
|
+
const r = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), o = r.length, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (o - 1) : 0, e = this.drawingArea.height - l;
|
|
446
446
|
return r.filter((a) => a.type === "line").map((a, L) => {
|
|
447
447
|
this.checkAutoScaleError(a);
|
|
448
448
|
const z = this.scaleGroups[a.scaleLabel].min, G = this.scaleGroups[a.scaleLabel].max;
|
|
449
|
-
a.absoluteValues.filter((
|
|
449
|
+
a.absoluteValues.filter((_) => ![null, void 0].includes(_)).map((_) => (_ - z) / (G - z));
|
|
450
450
|
const N = {
|
|
451
451
|
valueMin: z,
|
|
452
452
|
valueMax: G
|
|
453
|
-
},
|
|
453
|
+
}, A = {
|
|
454
454
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
455
455
|
min: a.scaleMin || (Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues))
|
|
456
|
-
}, v = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001,
|
|
457
|
-
const he = this.mutableConfig.useIndividualScale ? (a.absoluteValues[D] + Math.abs(M)) / t : this.ratioToMax(
|
|
456
|
+
}, v = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, m = 1.0000001, y = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(A.min, A.max === A.min ? A.max * m : A.max, v) : this.calculateNiceScaleWithExactExtremes(A.min, A.max === A.min ? A.max * m : A.max, v), b = this.FINAL_CONFIG.chart.grid.labels.yAxis.useNiceScale ? this.calculateNiceScale(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v) : this.calculateNiceScaleWithExactExtremes(N.valueMin, N.valueMax === N.valueMin ? N.valueMax * m : N.valueMax, v), M = y.min >= 0 ? 0 : Math.abs(y.min), H = 0, t = y.max + Math.abs(M), c = b.max + Math.abs(H), n = a.stackIndex, d = o - 1 - n, p = f ? 1 - a.cumulatedStackRatio : 0, S = f ? e * p + u * d : 0, k = f ? e * a.stackRatio : this.drawingArea.height, T = this.drawingArea.bottom - S - k * M / t, Y = this.drawingArea.bottom - S - k * H / c, W = a.series.map((_, D) => {
|
|
457
|
+
const he = this.mutableConfig.useIndividualScale ? (a.absoluteValues[D] + Math.abs(M)) / t : this.ratioToMax(_);
|
|
458
458
|
return {
|
|
459
459
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * D),
|
|
460
460
|
y: this.checkNaN(this.drawingArea.bottom - S - k * he),
|
|
461
461
|
value: a.absoluteValues[D],
|
|
462
462
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[D] || ""
|
|
463
463
|
};
|
|
464
|
-
}), te = a.absoluteValues.map((
|
|
464
|
+
}), te = a.absoluteValues.map((_) => b.min >= 0 ? (_ - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (_ + Math.abs(b.min)) / (b.max + Math.abs(b.min))), E = a.series.map((_, D) => [void 0, null].includes(a.absoluteValues[D]) ? {
|
|
465
465
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * D),
|
|
466
466
|
y: T,
|
|
467
467
|
value: a.absoluteValues[D],
|
|
@@ -471,44 +471,44 @@ const nt = ne(), ct = {
|
|
|
471
471
|
y: this.checkNaN(this.drawingArea.bottom - S - (k * te[D] || 0)),
|
|
472
472
|
value: a.absoluteValues[D],
|
|
473
473
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[D] || ""
|
|
474
|
-
}),
|
|
475
|
-
y:
|
|
476
|
-
value:
|
|
474
|
+
}), J = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(W) : this.createSmoothPath(W.filter((_) => _.value !== null)), w = this.FINAL_CONFIG.line.cutNullValues ? this.createSmoothPathWithCuts(E) : this.createSmoothPath(E.filter((_) => _.value !== null)), P = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(W) : this.createStraightPath(W.filter((_) => _.value !== null)), C = this.FINAL_CONFIG.line.cutNullValues ? this.createStraightPathWithCuts(E) : this.createStraightPath(E.filter((_) => _.value !== null)), R = y.ticks.map((_) => ({
|
|
475
|
+
y: _ >= 0 ? T - k * (_ / t) : T + k * Math.abs(_) / t,
|
|
476
|
+
value: _,
|
|
477
477
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
478
478
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
479
479
|
datapoint: a
|
|
480
|
-
})),
|
|
481
|
-
const D = (
|
|
480
|
+
})), K = b.ticks.map((_) => {
|
|
481
|
+
const D = (_ - b.min) / (b.max - b.min);
|
|
482
482
|
return {
|
|
483
|
-
y:
|
|
484
|
-
value:
|
|
483
|
+
y: _ >= 0 ? Y - k * D : Y + k * D,
|
|
484
|
+
value: _,
|
|
485
485
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
486
486
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
487
487
|
datapoint: a
|
|
488
488
|
};
|
|
489
489
|
});
|
|
490
|
-
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 ?
|
|
491
|
-
const
|
|
490
|
+
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 : R, this.scaleGroups[a.scaleLabel].zeroPosition = a.autoScaling ? Y : T, this.scaleGroups[a.scaleLabel].individualMax = a.autoScaling ? c : 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((_) => _.scaleLabel === a.scaleLabel).length === 1;
|
|
491
|
+
const Q = this.mutableConfig.useIndividualScale ? a.autoScaling ? Y : T : this.zero, re = Math.max(Math.max(a.autoScaling ? Y : R.at(-1).y || 0, this.drawingArea.top), Q);
|
|
492
492
|
return {
|
|
493
493
|
...a,
|
|
494
494
|
yOffset: S,
|
|
495
|
-
autoScaleYLabels:
|
|
495
|
+
autoScaleYLabels: K,
|
|
496
496
|
individualHeight: k,
|
|
497
|
-
scaleYLabels: a.autoScaling ?
|
|
498
|
-
individualScale: a.autoScaling ? b :
|
|
499
|
-
individualMax: a.autoScaling ?
|
|
497
|
+
scaleYLabels: a.autoScaling ? K : R,
|
|
498
|
+
individualScale: a.autoScaling ? b : y,
|
|
499
|
+
individualMax: a.autoScaling ? c : t,
|
|
500
500
|
zeroPosition: a.autoScaling ? Y : T,
|
|
501
|
-
curve: a.autoScaling ? w :
|
|
502
|
-
plots: a.autoScaling ? E :
|
|
501
|
+
curve: a.autoScaling ? w : J,
|
|
502
|
+
plots: a.autoScaling ? E : W,
|
|
503
503
|
area: a.useArea ? this.mutableConfig.useIndividualScale ? this.FINAL_CONFIG.line.cutNullValues ? this.createIndividualAreaWithCuts(
|
|
504
|
-
a.autoScaling ? E :
|
|
504
|
+
a.autoScaling ? E : W,
|
|
505
505
|
re
|
|
506
506
|
) : this.createIndividualArea(
|
|
507
|
-
a.autoScaling ? E.filter((
|
|
507
|
+
a.autoScaling ? E.filter((_) => _.value !== null) : W.filter((_) => _.value !== null),
|
|
508
508
|
re
|
|
509
|
-
) : this.createIndividualArea(
|
|
509
|
+
) : this.createIndividualArea(W.filter((_) => _.value !== null), re) : "",
|
|
510
510
|
curveAreas: a.useArea ? ce(
|
|
511
|
-
a.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((
|
|
511
|
+
a.autoScaling ? this.FINAL_CONFIG.line.cutNullValues ? E : E.filter((_) => _.value !== null) : this.FINAL_CONFIG.line.cutNullValues ? W : W.filter((_) => _.value !== null),
|
|
512
512
|
re,
|
|
513
513
|
this.FINAL_CONFIG.line.cutNullValues
|
|
514
514
|
) : [],
|
|
@@ -518,7 +518,7 @@ const nt = ne(), ct = {
|
|
|
518
518
|
});
|
|
519
519
|
},
|
|
520
520
|
plotSet() {
|
|
521
|
-
const r = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)),
|
|
521
|
+
const r = this.activeSeriesWithStackRatios.filter((a) => ["bar", "line", "plot"].includes(a.type)), o = r.length, u = this.FINAL_CONFIG.chart.grid.labels.yAxis.gap, f = this.mutableConfig.isStacked, l = f ? u * (o - 1) : 0, e = this.drawingArea.height - l;
|
|
522
522
|
return r.filter((a) => a.type === "plot").map((a) => {
|
|
523
523
|
this.checkAutoScaleError(a);
|
|
524
524
|
const L = this.scaleGroups[a.scaleLabel].min, z = this.scaleGroups[a.scaleLabel].max;
|
|
@@ -529,7 +529,7 @@ const nt = ne(), ct = {
|
|
|
529
529
|
}, N = {
|
|
530
530
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
531
531
|
min: a.scaleMin || Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues)
|
|
532
|
-
},
|
|
532
|
+
}, A = 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, A), y = this.calculateNiceScaleWithExactExtremes(G.valueMin, G.valueMax === G.valueMin ? G.valueMax * v : G.valueMax, A), b = m.min >= 0 ? 0 : Math.abs(m.min), M = 0, H = m.max + b, t = y.max + Math.abs(M), c = a.stackIndex, n = o - 1 - c, d = f ? 1 - a.cumulatedStackRatio : 0, p = f ? e * d + u * n : 0, S = f ? e * a.stackRatio : this.drawingArea.height, k = this.drawingArea.bottom - p - S * b / H, T = this.drawingArea.bottom - p - S * M / t, Y = a.series.map((w, P) => {
|
|
533
533
|
const C = this.mutableConfig.useIndividualScale ? (a.absoluteValues[P] + Math.abs(b)) / H : this.ratioToMax(w);
|
|
534
534
|
return {
|
|
535
535
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * P),
|
|
@@ -537,9 +537,9 @@ const nt = ne(), ct = {
|
|
|
537
537
|
value: a.absoluteValues[P],
|
|
538
538
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
539
539
|
};
|
|
540
|
-
}),
|
|
540
|
+
}), W = a.absoluteValues.map((w) => y.min >= 0 ? (w - Math.abs(y.min)) / (y.max - Math.abs(y.min)) : (w + Math.abs(y.min)) / (y.max + Math.abs(y.min))), te = a.series.map((w, P) => ({
|
|
541
541
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * P),
|
|
542
|
-
y: this.checkNaN(this.drawingArea.bottom - p - (S *
|
|
542
|
+
y: this.checkNaN(this.drawingArea.bottom - p - (S * W[P] || 0)),
|
|
543
543
|
value: a.absoluteValues[P],
|
|
544
544
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[P] || ""
|
|
545
545
|
})), E = m.ticks.map((w) => ({
|
|
@@ -548,8 +548,8 @@ const nt = ne(), ct = {
|
|
|
548
548
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
549
549
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
550
550
|
datapoint: a
|
|
551
|
-
})),
|
|
552
|
-
const P = (w -
|
|
551
|
+
})), J = y.ticks.map((w) => {
|
|
552
|
+
const P = (w - y.min) / (y.max - y.min);
|
|
553
553
|
return {
|
|
554
554
|
y: w >= 0 ? T - S * P : T + S * P,
|
|
555
555
|
value: w,
|
|
@@ -558,13 +558,13 @@ const nt = ne(), ct = {
|
|
|
558
558
|
datapoint: a
|
|
559
559
|
};
|
|
560
560
|
});
|
|
561
|
-
return 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 ?
|
|
561
|
+
return 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 ? J : E, this.scaleGroups[a.scaleLabel].zeroPosition = a.autoScaling ? T : k, this.scaleGroups[a.scaleLabel].individualMax = a.autoScaling ? t : H, this.scaleGroups[a.scaleLabel].scaleLabel = a.scaleLabel, this.scaleGroups[a.scaleLabel].id = a.id, this.scaleGroups[a.scaleLabel].yOffset = p, this.scaleGroups[a.scaleLabel].individualHeight = S, this.scaleGroups[a.scaleLabel].autoScaleYLabels = J, this.scaleGroups[a.scaleLabel].unique = this.activeSeriesWithStackRatios.filter((w) => w.scaleLabel === a.scaleLabel).length === 1, {
|
|
562
562
|
...a,
|
|
563
563
|
yOffset: p,
|
|
564
|
-
autoScaleYLabels:
|
|
564
|
+
autoScaleYLabels: J,
|
|
565
565
|
individualHeight: S,
|
|
566
|
-
scaleYLabels: a.autoScaling ?
|
|
567
|
-
individualScale: a.autoScaling ?
|
|
566
|
+
scaleYLabels: a.autoScaling ? J : E,
|
|
567
|
+
individualScale: a.autoScaling ? y : m,
|
|
568
568
|
individualMax: a.autoScaling ? t : H,
|
|
569
569
|
zeroPosition: a.autoScaling ? T : k,
|
|
570
570
|
plots: a.autoScaling ? te : Y,
|
|
@@ -580,7 +580,7 @@ const nt = ne(), ct = {
|
|
|
580
580
|
l.add(a);
|
|
581
581
|
}), l.size;
|
|
582
582
|
}
|
|
583
|
-
const
|
|
583
|
+
const o = r(this.absoluteDataset.filter((f) => !this.segregatedSeries.includes(f.id))), u = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? o * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
584
584
|
return {
|
|
585
585
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
586
586
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
@@ -596,7 +596,7 @@ const nt = ne(), ct = {
|
|
|
596
596
|
min() {
|
|
597
597
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
598
598
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
599
|
-
const r = Math.min(...this.safeDataset.filter((
|
|
599
|
+
const r = Math.min(...this.safeDataset.filter((o) => !this.segregatedSeries.includes(o.id)).map((o) => Math.min(...o.series)));
|
|
600
600
|
return r > 0 ? 0 : r;
|
|
601
601
|
},
|
|
602
602
|
niceScale() {
|
|
@@ -606,8 +606,8 @@ const nt = ne(), ct = {
|
|
|
606
606
|
return this.slicer.end - this.slicer.start;
|
|
607
607
|
},
|
|
608
608
|
timeLabels() {
|
|
609
|
-
const r = Math.max(...this.dataset.map((
|
|
610
|
-
return
|
|
609
|
+
const r = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
610
|
+
return $e({
|
|
611
611
|
values: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values,
|
|
612
612
|
maxDatapoints: r,
|
|
613
613
|
formatter: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -623,7 +623,7 @@ const nt = ne(), ct = {
|
|
|
623
623
|
};
|
|
624
624
|
},
|
|
625
625
|
barSlot() {
|
|
626
|
-
const r = this.safeDataset.filter((
|
|
626
|
+
const r = this.safeDataset.filter((o) => o.type === "bar").filter((o) => !this.segregatedSeries.includes(o.id)).length;
|
|
627
627
|
return this.drawingArea.width / this.maxSeries / r - this.barPeriodGap * r;
|
|
628
628
|
},
|
|
629
629
|
barPeriodGap() {
|
|
@@ -638,18 +638,18 @@ const nt = ne(), ct = {
|
|
|
638
638
|
label: u.name,
|
|
639
639
|
color: u.color,
|
|
640
640
|
type: u.type
|
|
641
|
-
})),
|
|
641
|
+
})), o = [];
|
|
642
642
|
return this.timeLabels.forEach((u, f) => {
|
|
643
643
|
const l = [u.text];
|
|
644
644
|
this.relativeDataset.forEach((e) => {
|
|
645
645
|
l.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
646
|
-
}),
|
|
647
|
-
}), { head: r, body:
|
|
646
|
+
}), o.push(l);
|
|
647
|
+
}), { head: r, body: o };
|
|
648
648
|
},
|
|
649
649
|
dataTable() {
|
|
650
650
|
const r = this.FINAL_CONFIG.table.showSum;
|
|
651
|
-
let
|
|
652
|
-
r && (
|
|
651
|
+
let o = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
652
|
+
r && (o = o.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>'));
|
|
653
653
|
let u = [];
|
|
654
654
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
655
655
|
const a = this.relativeDataset.map((L) => L.absoluteValues[e] ?? 0).reduce((L, z) => L + z, 0);
|
|
@@ -683,7 +683,7 @@ const nt = ne(), ct = {
|
|
|
683
683
|
},
|
|
684
684
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
685
685
|
}, l = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
686
|
-
return { head:
|
|
686
|
+
return { head: o, body: u, config: f, colNames: l };
|
|
687
687
|
},
|
|
688
688
|
dataTooltipSlot() {
|
|
689
689
|
return {
|
|
@@ -703,14 +703,14 @@ const nt = ne(), ct = {
|
|
|
703
703
|
name: r.name,
|
|
704
704
|
color: r.color,
|
|
705
705
|
type: r.type,
|
|
706
|
-
value: r.absoluteValues.find((
|
|
706
|
+
value: r.absoluteValues.find((o, u) => u === this.selectedSerieIndex),
|
|
707
707
|
comments: r.comments || [],
|
|
708
708
|
prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
709
709
|
suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
710
710
|
}));
|
|
711
711
|
},
|
|
712
712
|
tooltipContent() {
|
|
713
|
-
let r = "",
|
|
713
|
+
let r = "", o = this.selectedSeries.map((l) => l.value).filter((l) => this.isSafeValue(l) && l !== null).reduce((l, e) => Math.abs(l) + Math.abs(e), 0);
|
|
714
714
|
const u = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
715
715
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
716
716
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -779,7 +779,7 @@ const nt = ne(), ct = {
|
|
|
779
779
|
}),
|
|
780
780
|
{ datapoint: l }
|
|
781
781
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${oe({
|
|
782
|
-
v: this.checkNaN(Math.abs(l.value) /
|
|
782
|
+
v: this.checkNaN(Math.abs(l.value) / o * 100),
|
|
783
783
|
s: "%",
|
|
784
784
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
785
785
|
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && l.comments.length && l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (r += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
@@ -806,26 +806,26 @@ const nt = ne(), ct = {
|
|
|
806
806
|
annotationsY() {
|
|
807
807
|
const r = this.FINAL_CONFIG.chart.annotations;
|
|
808
808
|
if (!Array.isArray(r) || r.every((N) => !N.show)) return [];
|
|
809
|
-
const
|
|
809
|
+
const o = r.filter(
|
|
810
810
|
(N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
|
|
811
811
|
);
|
|
812
|
-
if (!
|
|
812
|
+
if (!o.length) return [];
|
|
813
813
|
const { left: u, right: f } = this.drawingArea, l = this.zero, e = this.drawingArea.height, a = this.niceScale.min, z = this.niceScale.max - a, G = (N) => {
|
|
814
|
-
const
|
|
815
|
-
return l -
|
|
814
|
+
const A = (N - 0) / z;
|
|
815
|
+
return l - A * e;
|
|
816
816
|
};
|
|
817
|
-
return
|
|
818
|
-
const { yAxis: { yTop:
|
|
817
|
+
return o.map((N) => {
|
|
818
|
+
const { yAxis: { yTop: A, yBottom: v, label: m } } = N, y = A != null && v != null && A !== v, b = A == null ? null : G(A), M = v == null ? null : G(v), H = this.getTextMeasurer(m.fontSize);
|
|
819
819
|
H.font = `${m.fontSize}px sans-serif`;
|
|
820
|
-
const t = H.measureText(m.text).width,
|
|
820
|
+
const t = H.measureText(m.text).width, c = m.fontSize, n = (m.position === "start" ? u + m.padding.left : f - m.padding.right) + m.offsetX, p = (b != null && M != null ? Math.min(b, M) : b ?? M) - m.fontSize / 3 + m.offsetY - m.padding.top;
|
|
821
821
|
let S;
|
|
822
822
|
m.textAnchor === "middle" ? S = n - t / 2 - m.padding.left : m.textAnchor === "end" ? S = n - t - m.padding.right : S = n - m.padding.left;
|
|
823
|
-
const k = p -
|
|
823
|
+
const k = p - c * 0.75 - m.padding.top;
|
|
824
824
|
return {
|
|
825
825
|
show: ![b, M, k].includes(NaN),
|
|
826
826
|
id: `annotation_y_${this.createUid()}`,
|
|
827
|
-
hasArea:
|
|
828
|
-
areaHeight:
|
|
827
|
+
hasArea: y,
|
|
828
|
+
areaHeight: y ? Math.abs(b - M) : 0,
|
|
829
829
|
yTop: b,
|
|
830
830
|
yBottom: M,
|
|
831
831
|
config: N.yAxis,
|
|
@@ -836,7 +836,7 @@ const nt = ne(), ct = {
|
|
|
836
836
|
x: S,
|
|
837
837
|
y: k,
|
|
838
838
|
width: t + m.padding.left + m.padding.right,
|
|
839
|
-
height:
|
|
839
|
+
height: c + m.padding.top + m.padding.bottom,
|
|
840
840
|
fill: m.backgroundColor,
|
|
841
841
|
stroke: m.border.stroke,
|
|
842
842
|
rx: m.border.rx,
|
|
@@ -859,22 +859,23 @@ const nt = ne(), ct = {
|
|
|
859
859
|
document.removeEventListener("scroll", this.hideTags), this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
860
860
|
},
|
|
861
861
|
methods: {
|
|
862
|
-
abbreviate:
|
|
863
|
-
adaptColorToBackground:
|
|
864
|
-
applyDataLabel:
|
|
865
|
-
assignStackRatios:
|
|
862
|
+
abbreviate: Xe,
|
|
863
|
+
adaptColorToBackground: qe,
|
|
864
|
+
applyDataLabel: Ye,
|
|
865
|
+
assignStackRatios: Ee,
|
|
866
866
|
calcLinearProgression: We,
|
|
867
|
-
calculateNiceScale:
|
|
868
|
-
calculateNiceScaleWithExactExtremes:
|
|
869
|
-
checkNaN:
|
|
870
|
-
closestDecimal:
|
|
871
|
-
convertColorToHex:
|
|
872
|
-
convertConfigColors:
|
|
873
|
-
convertCustomPalette:
|
|
874
|
-
createCsvContent:
|
|
875
|
-
createSmoothPath:
|
|
876
|
-
createStraightPath:
|
|
877
|
-
createTSpans:
|
|
867
|
+
calculateNiceScale: Be,
|
|
868
|
+
calculateNiceScaleWithExactExtremes: De,
|
|
869
|
+
checkNaN: He,
|
|
870
|
+
closestDecimal: Re,
|
|
871
|
+
convertColorToHex: Ve,
|
|
872
|
+
convertConfigColors: Pe,
|
|
873
|
+
convertCustomPalette: Te,
|
|
874
|
+
createCsvContent: Me,
|
|
875
|
+
createSmoothPath: ze,
|
|
876
|
+
createStraightPath: pe,
|
|
877
|
+
createTSpans: ve,
|
|
878
|
+
createTSpansFromLineBreaksOnX: Ge,
|
|
878
879
|
dataLabel: oe,
|
|
879
880
|
downloadCsv: Oe,
|
|
880
881
|
error: we,
|
|
@@ -882,14 +883,14 @@ const nt = ne(), ct = {
|
|
|
882
883
|
functionReturnsString: Se,
|
|
883
884
|
hasDeepProperty: Ce,
|
|
884
885
|
isFunction: Le,
|
|
885
|
-
isSafeValue:
|
|
886
|
-
largestTriangleThreeBucketsArray:
|
|
886
|
+
isSafeValue: ye,
|
|
887
|
+
largestTriangleThreeBucketsArray: Ae,
|
|
887
888
|
objectIsEmpty: _e,
|
|
888
889
|
setOpacity: Fe,
|
|
889
890
|
shiftHue: be,
|
|
890
891
|
translateSize: me,
|
|
891
892
|
treeShake: Ne,
|
|
892
|
-
useMouse:
|
|
893
|
+
useMouse: je,
|
|
893
894
|
useNestedProp: ie,
|
|
894
895
|
createUid: ne,
|
|
895
896
|
placeXYTag: xe,
|
|
@@ -902,19 +903,19 @@ const nt = ne(), ct = {
|
|
|
902
903
|
usesSelectTimeLabelEvent() {
|
|
903
904
|
return !!this.$.vnode.props?.onSelectTimeLabel;
|
|
904
905
|
},
|
|
905
|
-
getTextMeasurer(r,
|
|
906
|
+
getTextMeasurer(r, o, u) {
|
|
906
907
|
if (!this._textMeasurer) {
|
|
907
908
|
const f = document.createElement("canvas");
|
|
908
909
|
this._textMeasurer = f.getContext("2d");
|
|
909
910
|
}
|
|
910
|
-
return this._textMeasurer.font = `${u || "normal"} ${r}px ${
|
|
911
|
+
return this._textMeasurer.font = `${u || "normal"} ${r}px ${o || "sans-serif"}`, this._textMeasurer;
|
|
911
912
|
},
|
|
912
913
|
hideTags() {
|
|
913
914
|
const r = document.querySelectorAll(".vue-ui-xy-tag");
|
|
914
|
-
r.length && Array.from(r).forEach((
|
|
915
|
+
r.length && Array.from(r).forEach((o) => o.style.opacity = "0");
|
|
915
916
|
},
|
|
916
|
-
setTagRef(r,
|
|
917
|
-
u && (this.tagRefs[`${r}_${
|
|
917
|
+
setTagRef(r, o, u, f, l) {
|
|
918
|
+
u && (this.tagRefs[`${r}_${o}_${f}_${l}`] = u);
|
|
918
919
|
},
|
|
919
920
|
setUserOptionsVisibility(r = !1) {
|
|
920
921
|
this.showUserOptionsOnChartHover && (this.userOptionsVisible = r);
|
|
@@ -922,13 +923,13 @@ const nt = ne(), ct = {
|
|
|
922
923
|
toggleAnnotator() {
|
|
923
924
|
this.isAnnotator = !this.isAnnotator;
|
|
924
925
|
},
|
|
925
|
-
selectTimeLabel(r,
|
|
926
|
+
selectTimeLabel(r, o) {
|
|
926
927
|
const u = this.relativeDataset.map((f) => ({
|
|
927
928
|
shape: f.shape || null,
|
|
928
929
|
name: f.name,
|
|
929
930
|
color: f.color,
|
|
930
931
|
type: f.type,
|
|
931
|
-
value: f.absoluteValues.find((l, e) => e ===
|
|
932
|
+
value: f.absoluteValues.find((l, e) => e === o),
|
|
932
933
|
comments: f.comments || [],
|
|
933
934
|
prefix: f.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
934
935
|
suffix: f.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
@@ -940,47 +941,47 @@ const nt = ne(), ct = {
|
|
|
940
941
|
});
|
|
941
942
|
},
|
|
942
943
|
getHighlightAreaPosition(r) {
|
|
943
|
-
const
|
|
944
|
+
const o = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (r.from - this.slicer.start), u = this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span;
|
|
944
945
|
return {
|
|
945
|
-
x:
|
|
946
|
+
x: o < this.drawingArea.left ? this.drawingArea.left : o,
|
|
946
947
|
width: u
|
|
947
948
|
};
|
|
948
949
|
},
|
|
949
950
|
prepareConfig() {
|
|
950
|
-
const r =
|
|
951
|
+
const r = Ue().vue_ui_xy;
|
|
951
952
|
if (!Object.keys(this.config || {}).length)
|
|
952
953
|
return r;
|
|
953
|
-
const
|
|
954
|
+
const o = this.useNestedProp({
|
|
954
955
|
userConfig: this.config,
|
|
955
956
|
defaultConfig: r
|
|
956
957
|
});
|
|
957
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
958
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? o.chart.highlightArea = this.config.chart.highlightArea : o.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? o.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : o.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? o.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : o.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? o.chart.zoom.startIndex = this.config.chart.zoom.startIndex : o.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? o.chart.zoom.endIndex = this.config.chart.zoom.endIndex : o.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? o.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : o.chart.grid.labels.yAxis.groupColor = null, this.config && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length && (o.chart.annotations = this.config.chart.annotations.map((u) => ie({
|
|
958
959
|
defaultConfig: r.chart.annotations[0],
|
|
959
960
|
userConfig: u
|
|
960
|
-
}))),
|
|
961
|
+
}))), o.theme ? {
|
|
961
962
|
...ie({
|
|
962
|
-
userConfig: this.themes.vue_ui_xy[
|
|
963
|
-
defaultConfig:
|
|
963
|
+
userConfig: this.themes.vue_ui_xy[o.theme] || this.config,
|
|
964
|
+
defaultConfig: o
|
|
964
965
|
}),
|
|
965
|
-
customPalette: this.themePalettes[
|
|
966
|
-
} :
|
|
966
|
+
customPalette: this.themePalettes[o.theme] || this.palette
|
|
967
|
+
} : o;
|
|
967
968
|
},
|
|
968
969
|
prepareChart() {
|
|
969
970
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
970
971
|
componentName: "VueUiXy",
|
|
971
972
|
type: "dataset"
|
|
972
|
-
}) : this.dataset.forEach((r,
|
|
973
|
+
}) : this.dataset.forEach((r, o) => {
|
|
973
974
|
[null, void 0].includes(r.name) && this.error({
|
|
974
975
|
componentName: "VueUiXy",
|
|
975
976
|
type: "datasetSerieAttribute",
|
|
976
977
|
property: "name (string)",
|
|
977
|
-
index:
|
|
978
|
+
index: o
|
|
978
979
|
});
|
|
979
980
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((r) => {
|
|
980
|
-
r.series.forEach((
|
|
981
|
-
this.isSafeValue(
|
|
982
|
-
-----> The serie '${r.name}' contains the value '${
|
|
983
|
-
'${
|
|
981
|
+
r.series.forEach((o, u) => {
|
|
982
|
+
this.isSafeValue(o) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
983
|
+
-----> The serie '${r.name}' contains the value '${o}' at index ${u}.
|
|
984
|
+
'${o}' was converted to null to allow the chart to display.`);
|
|
984
985
|
});
|
|
985
986
|
}), 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 = {
|
|
986
987
|
dataLabels: {
|
|
@@ -991,9 +992,9 @@ const nt = ne(), ct = {
|
|
|
991
992
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
992
993
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
993
994
|
}, this.FINAL_CONFIG.responsive) {
|
|
994
|
-
const
|
|
995
|
+
const o = this.$refs.chart.parentNode;
|
|
995
996
|
this.resizeObserver && (this.resizeObserver.unobserve(this.observedEl), this.resizeObserver.disconnect());
|
|
996
|
-
const { height: u, width: f } =
|
|
997
|
+
const { height: u, width: f } = o.getBoundingClientRect();
|
|
997
998
|
let l = null, e = 0;
|
|
998
999
|
this.FINAL_CONFIG.chart.title.show && (l = this.$refs.chartTitle, e = l.getBoundingClientRect().height);
|
|
999
1000
|
let a = null, L = 0;
|
|
@@ -1002,15 +1003,15 @@ const nt = ne(), ct = {
|
|
|
1002
1003
|
this.FINAL_CONFIG.chart.legend.show && (z = this.$refs.chartLegend, G = z.getBoundingClientRect().height);
|
|
1003
1004
|
let N = 0;
|
|
1004
1005
|
this.$refs.source && (N = this.$refs.source.getBoundingClientRect().height);
|
|
1005
|
-
let
|
|
1006
|
-
this.$refs.noTitle && (
|
|
1006
|
+
let A = 0;
|
|
1007
|
+
this.$refs.noTitle && (A = this.$refs.noTitle.getBoundingClientRect().height), this.height = u - e - G - L - N - A, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
1007
1008
|
const v = new ResizeObserver((m) => {
|
|
1008
|
-
for (const
|
|
1009
|
+
for (const y of m)
|
|
1009
1010
|
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (L = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (G = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (N = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
|
|
1010
|
-
this.height =
|
|
1011
|
+
this.height = y.contentBoxSize[0].blockSize - e - G - L - N - 24, this.width = y.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
1011
1012
|
});
|
|
1012
1013
|
});
|
|
1013
|
-
this.resizeObserver = v, this.observedEl =
|
|
1014
|
+
this.resizeObserver = v, this.observedEl = o, v.observe(o);
|
|
1014
1015
|
} else
|
|
1015
1016
|
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
|
|
1016
1017
|
},
|
|
@@ -1075,19 +1076,19 @@ const nt = ne(), ct = {
|
|
|
1075
1076
|
checkAutoScaleError(r) {
|
|
1076
1077
|
r.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1077
1078
|
},
|
|
1078
|
-
createArea(r,
|
|
1079
|
+
createArea(r, o) {
|
|
1079
1080
|
if (!r[0]) return [-10, -10, "", -10, -10];
|
|
1080
|
-
const u = { x: r[0].x, y:
|
|
1081
|
+
const u = { x: r[0].x, y: o }, f = { x: r.at(-1).x, y: o }, l = [];
|
|
1081
1082
|
return r.forEach((e) => {
|
|
1082
1083
|
l.push(`${e.x},${e.y} `);
|
|
1083
1084
|
}), [u.x, u.y, ...l, f.x, f.y].toString();
|
|
1084
1085
|
},
|
|
1085
1086
|
createStar: ae,
|
|
1086
1087
|
createPolygonPath: X,
|
|
1087
|
-
fillArray(r,
|
|
1088
|
+
fillArray(r, o) {
|
|
1088
1089
|
let u = Array(r).fill(0);
|
|
1089
|
-
for (let f = 0; f <
|
|
1090
|
-
u[f] =
|
|
1090
|
+
for (let f = 0; f < o.length && f < r; f += 1)
|
|
1091
|
+
u[f] = o[f];
|
|
1091
1092
|
return u;
|
|
1092
1093
|
},
|
|
1093
1094
|
async setupSlicer() {
|
|
@@ -1100,12 +1101,12 @@ const nt = ne(), ct = {
|
|
|
1100
1101
|
this.setupSlicer();
|
|
1101
1102
|
},
|
|
1102
1103
|
validSlicerEnd(r) {
|
|
1103
|
-
const
|
|
1104
|
-
return r >
|
|
1104
|
+
const o = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({ data: u.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
1105
|
+
return r > o ? o : r < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && r < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : r;
|
|
1105
1106
|
},
|
|
1106
1107
|
calcRectHeight(r) {
|
|
1107
|
-
const
|
|
1108
|
-
return r.value >= 0 ? this.checkNaN(
|
|
1108
|
+
const o = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
|
|
1109
|
+
return r.value >= 0 ? this.checkNaN(o - r.y <= 0 ? 1e-5 : o - r.y) : this.checkNaN(r.y - this.zero <= 0 ? 1e-5 : r.y - this.zero);
|
|
1109
1110
|
},
|
|
1110
1111
|
calcIndividualHeight(r) {
|
|
1111
1112
|
return r.value >= 0 ? this.checkNaN(r.zeroPosition - r.y <= 0 ? 1e-5 : r.zeroPosition - r.y) : this.checkNaN(r.y - r.zeroPosition <= 0 ? 1e-5 : r.zeroPosition - r.y);
|
|
@@ -1125,11 +1126,11 @@ const nt = ne(), ct = {
|
|
|
1125
1126
|
canShowValue(r) {
|
|
1126
1127
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(r);
|
|
1127
1128
|
},
|
|
1128
|
-
findClosestValue(r,
|
|
1129
|
-
let u =
|
|
1130
|
-
for (let l = 1; l <
|
|
1131
|
-
const e = Math.abs(r -
|
|
1132
|
-
e < f &&
|
|
1129
|
+
findClosestValue(r, o) {
|
|
1130
|
+
let u = o[0], f = Math.abs(r - o[0]);
|
|
1131
|
+
for (let l = 1; l < o.length; l += 1) {
|
|
1132
|
+
const e = Math.abs(r - o[l]);
|
|
1133
|
+
e < f && o[l] < r && (u = o[l], f = e);
|
|
1133
1134
|
}
|
|
1134
1135
|
return u;
|
|
1135
1136
|
},
|
|
@@ -1140,11 +1141,11 @@ const nt = ne(), ct = {
|
|
|
1140
1141
|
this.$emit(
|
|
1141
1142
|
"selectX",
|
|
1142
1143
|
{
|
|
1143
|
-
dataset: this.relativeDataset.map((
|
|
1144
|
-
name:
|
|
1145
|
-
value: [null, void 0, NaN].includes(
|
|
1146
|
-
color:
|
|
1147
|
-
type:
|
|
1144
|
+
dataset: this.relativeDataset.map((o) => ({
|
|
1145
|
+
name: o.name,
|
|
1146
|
+
value: [null, void 0, NaN].includes(o.absoluteValues[r]) ? null : o.absoluteValues[r],
|
|
1147
|
+
color: o.color,
|
|
1148
|
+
type: o.type
|
|
1148
1149
|
})),
|
|
1149
1150
|
index: r,
|
|
1150
1151
|
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]
|
|
@@ -1161,20 +1162,20 @@ const nt = ne(), ct = {
|
|
|
1161
1162
|
},
|
|
1162
1163
|
segregate(r) {
|
|
1163
1164
|
if (this.segregatedSeries.includes(r.id))
|
|
1164
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
1165
|
+
this.segregatedSeries = this.segregatedSeries.filter((o) => o !== r.id);
|
|
1165
1166
|
else {
|
|
1166
1167
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
1167
1168
|
this.segregatedSeries.push(r.id);
|
|
1168
1169
|
}
|
|
1169
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
1170
|
-
name:
|
|
1171
|
-
values:
|
|
1172
|
-
color:
|
|
1173
|
-
type:
|
|
1170
|
+
this.$emit("selectLegend", this.relativeDataset.map((o) => ({
|
|
1171
|
+
name: o.name,
|
|
1172
|
+
values: o.absoluteValues,
|
|
1173
|
+
color: o.color,
|
|
1174
|
+
type: o.type
|
|
1174
1175
|
}))), this.segregateStep += 1;
|
|
1175
1176
|
},
|
|
1176
|
-
toggleTooltipVisibility(r,
|
|
1177
|
-
this.isTooltip = r, r ? this.selectedSerieIndex =
|
|
1177
|
+
toggleTooltipVisibility(r, o = null) {
|
|
1178
|
+
this.isTooltip = r, r ? this.selectedSerieIndex = o : this.selectedSerieIndex = null;
|
|
1178
1179
|
},
|
|
1179
1180
|
toggleFullscreen(r) {
|
|
1180
1181
|
this.isFullscreen = r, this.step += 1;
|
|
@@ -1185,7 +1186,7 @@ const nt = ne(), ct = {
|
|
|
1185
1186
|
async generatePdf() {
|
|
1186
1187
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1187
1188
|
try {
|
|
1188
|
-
const { default: r } = await import("./pdf-
|
|
1189
|
+
const { default: r } = await import("./pdf-C86OOuya.js");
|
|
1189
1190
|
await r({
|
|
1190
1191
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1191
1192
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1199,7 +1200,7 @@ const nt = ne(), ct = {
|
|
|
1199
1200
|
}, 100);
|
|
1200
1201
|
},
|
|
1201
1202
|
generateCsv(r = null) {
|
|
1202
|
-
const
|
|
1203
|
+
const o = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], u = ["", ...this.table.head.map((a) => a.label)], f = this.table.body, l = o.concat([u]).concat(f), e = this.createCsvContent(l);
|
|
1203
1204
|
r ? r(e) : this.downloadCsv({ csvContent: e, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1204
1205
|
},
|
|
1205
1206
|
showSpinnerImage() {
|
|
@@ -1208,7 +1209,7 @@ const nt = ne(), ct = {
|
|
|
1208
1209
|
async generateImage() {
|
|
1209
1210
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1210
1211
|
try {
|
|
1211
|
-
const { default: r } = await import("./img-
|
|
1212
|
+
const { default: r } = await import("./img-B5QfWbFM.js");
|
|
1212
1213
|
await r({
|
|
1213
1214
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1214
1215
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1223,72 +1224,72 @@ const nt = ne(), ct = {
|
|
|
1223
1224
|
}, 100);
|
|
1224
1225
|
}
|
|
1225
1226
|
}
|
|
1226
|
-
},
|
|
1227
|
+
}, ht = ["id"], ut = {
|
|
1227
1228
|
key: 1,
|
|
1228
1229
|
ref: "noTitle",
|
|
1229
1230
|
class: "vue-data-ui-no-title-space",
|
|
1230
1231
|
style: "height:36px; width: 100%; background:transparent"
|
|
1231
|
-
},
|
|
1232
|
+
}, dt = ["viewBox", "aria-label"], gt = ["x", "y", "width", "height"], ft = { key: 1 }, It = { class: "vue-ui-xy-grid" }, xt = ["stroke", "x1", "x2", "y1", "y2"], Nt = ["stroke", "x1", "x2", "y1", "y2"], mt = { key: 1 }, bt = ["x1", "x2", "y1", "y2", "stroke"], Ft = ["x1", "x2", "y1", "y2", "stroke"], _t = ["x1", "x2", "y1", "y2", "stroke"], At = { key: 3 }, yt = ["x1", "x2", "y1", "y2", "stroke"], Lt = { key: 4 }, Ct = ["y1", "y2", "x1", "x2", "stroke"], St = ["id"], kt = ["stop-color"], wt = ["stop-color"], Ot = ["stop-color"], Gt = ["id"], vt = ["stop-color"], pt = ["stop-color"], zt = ["stop-color"], Mt = ["id"], Tt = ["stop-color"], Pt = ["stop-color"], Vt = ["id"], Rt = ["stop-color"], Ht = ["stop-color"], Dt = ["id"], Bt = ["stop-color"], Wt = ["stop-color"], Et = ["x", "y", "height", "width", "fill"], Yt = ["x", "y", "width"], qt = ["x", "y", "height", "width", "fill"], Xt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ut = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Zt = ["width", "x", "y"], Jt = { key: 0 }, Kt = ["id"], Qt = ["fill"], jt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], $t = ["x", "y", "font-size", "fill"], el = ["stroke", "x1", "x2", "y1", "y2"], tl = { key: 2 }, ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], al = { key: 4 }, il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["fill", "font-size", "transform"], nl = ["x1", "x2", "y1", "y2", "stroke"], cl = ["x", "y", "font-size", "fill"], ol = ["x1", "x2", "y1", "y2", "stroke"], hl = ["x", "y", "font-size", "fill"], ul = ["width", "x", "y"], dl = { style: { width: "100%" } }, gl = { key: 0 }, fl = ["id"], Il = ["fill"], xl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Nl = ["x", "y", "font-size", "fill"], ml = ["d", "stroke", "stroke-width", "stroke-dasharray"], bl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fl = { key: 5 }, _l = { key: 0 }, Al = ["d", "fill"], yl = ["d", "fill"], Ll = ["d", "fill"], Cl = ["d", "fill"], Sl = ["d", "stroke", "stroke-width", "stroke-dasharray"], kl = ["d", "stroke", "stroke-width", "stroke-dasharray"], wl = ["width", "x", "y"], Ol = { style: { width: "100%" } }, Gl = { key: 3 }, vl = ["id"], pl = ["fill"], zl = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ml = ["x", "y", "font-size", "fill"], Tl = { key: 6 }, Pl = ["x", "y", "font-size", "fill"], Vl = ["x", "y", "font-size", "fill", "font-weight"], Rl = { key: 7 }, Hl = ["x", "y", "font-size", "fill"], Dl = { key: 8 }, Bl = ["x", "y"], Wl = ["innerHTML"], El = ["x", "y"], Yl = ["innerHTML"], ql = ["x1", "x2", "y1", "y2", "stroke"], Xl = { key: 9 }, Ul = ["x", "y", "font-size", "fill"], Zl = { key: 10 }, Jl = ["x", "y"], Kl = ["innerHTML"], Ql = ["x", "y"], jl = ["innerHTML"], $l = ["x1", "x2", "y1", "y2", "stroke"], er = ["x", "y", "font-size", "fill", "innerHTML"], tr = ["x", "y", "font-size", "fill", "innerHTML"], lr = ["x", "y", "font-size", "fill", "innerHTML"], rr = ["x", "y", "font-size", "fill", "innerHTML"], ar = ["id"], ir = ["stop-color"], sr = ["stop-color"], nr = ["x", "y", "width", "height", "fill", "onMouseenter"], cr = ["font-size", "fill", "transform"], or = ["x", "y", "font-size", "fill"], hr = { key: 12 }, ur = ["text-anchor", "font-size", "fill", "transform", "onClick"], dr = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], gr = { key: 13 }, fr = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ir = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xr = ["y", "x", "width", "height", "fill"], Nr = ["id", "x", "y", "font-size", "fill", "text-anchor"], mr = ["x", "y", "height", "width", "onMouseenter", "onClick"], br = {
|
|
1232
1233
|
key: 14,
|
|
1233
1234
|
style: { "pointer-events": "none" }
|
|
1234
|
-
},
|
|
1235
|
+
}, Fr = ["x", "y"], _r = ["cx", "cy", "r", "fill"], Ar = {
|
|
1235
1236
|
key: 5,
|
|
1236
1237
|
class: "vue-data-ui-watermark"
|
|
1237
|
-
},
|
|
1238
|
+
}, yr = {
|
|
1238
1239
|
class: "vue-ui-xy-tag-arrow",
|
|
1239
1240
|
height: "20",
|
|
1240
1241
|
viewBox: "0 0 10 20",
|
|
1241
1242
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1242
|
-
},
|
|
1243
|
+
}, Lr = ["fill"], Cr = ["innerHTML"], Sr = {
|
|
1243
1244
|
class: "vue-ui-xy-tag-arrow",
|
|
1244
1245
|
height: "100%",
|
|
1245
1246
|
viewBox: "0 0 10 20",
|
|
1246
1247
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1247
|
-
},
|
|
1248
|
+
}, kr = ["fill"], wr = ["innerHTML"], Or = {
|
|
1248
1249
|
class: "vue-ui-xy-tag-arrow",
|
|
1249
1250
|
height: "20",
|
|
1250
1251
|
viewBox: "0 0 10 20",
|
|
1251
1252
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1252
|
-
},
|
|
1253
|
+
}, Gr = ["fill"], vr = ["innerHTML"], pr = {
|
|
1253
1254
|
class: "vue-ui-xy-tag-arrow",
|
|
1254
1255
|
height: "100%",
|
|
1255
1256
|
viewBox: "0 0 10 20",
|
|
1256
1257
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1257
|
-
},
|
|
1258
|
+
}, zr = ["fill"], Mr = ["innerHTML"], Tr = ["onClick"], Pr = {
|
|
1258
1259
|
key: 0,
|
|
1259
1260
|
viewBox: "0 0 20 12",
|
|
1260
1261
|
height: "14",
|
|
1261
1262
|
width: "20"
|
|
1262
|
-
},
|
|
1263
|
+
}, Vr = ["stroke", "fill"], Rr = {
|
|
1263
1264
|
key: 1,
|
|
1264
1265
|
viewBox: "0 0 40 40",
|
|
1265
1266
|
height: "14",
|
|
1266
1267
|
width: "14"
|
|
1267
|
-
},
|
|
1268
|
+
}, Hr = ["fill"], Dr = ["fill"], Br = {
|
|
1268
1269
|
key: 2,
|
|
1269
1270
|
viewBox: "0 0 12 12",
|
|
1270
1271
|
height: "14",
|
|
1271
1272
|
width: "14"
|
|
1272
|
-
},
|
|
1273
|
+
}, Wr = {
|
|
1273
1274
|
key: 9,
|
|
1274
1275
|
ref: "chartLegend"
|
|
1275
|
-
},
|
|
1276
|
+
}, Er = {
|
|
1276
1277
|
key: 10,
|
|
1277
1278
|
ref: "source",
|
|
1278
1279
|
dir: "auto"
|
|
1279
|
-
},
|
|
1280
|
+
}, Yr = {
|
|
1280
1281
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1281
1282
|
"data-dom-to-png-ignore": ""
|
|
1282
|
-
},
|
|
1283
|
-
function
|
|
1284
|
-
const a = q("PenAndPaper"), L = q("Title"), z = q("UserOptions"), G = q("PackageVersion"), N = q("Shape"),
|
|
1283
|
+
}, qr = ["innerHTML"];
|
|
1284
|
+
function Xr(r, o, u, f, l, e) {
|
|
1285
|
+
const a = q("PenAndPaper"), L = q("Title"), z = q("UserOptions"), G = q("PackageVersion"), N = q("Shape"), A = q("Skeleton"), v = q("Slicer"), m = q("Tooltip"), y = q("BaseIcon"), b = q("TableSparkline"), M = q("DataTable"), H = q("Accordion");
|
|
1285
1286
|
return i(), s("div", {
|
|
1286
1287
|
id: `vue-ui-xy_${l.uniqueId}`,
|
|
1287
1288
|
class: j(`vue-ui-xy ${l.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1288
1289
|
ref: "chart",
|
|
1289
|
-
style:
|
|
1290
|
-
onMouseenter:
|
|
1291
|
-
onMouseleave:
|
|
1290
|
+
style: F(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`),
|
|
1291
|
+
onMouseenter: o[7] || (o[7] = () => e.setUserOptionsVisibility(!0)),
|
|
1292
|
+
onMouseleave: o[8] || (o[8] = () => e.setUserOptionsVisibility(!1))
|
|
1292
1293
|
}, [
|
|
1293
1294
|
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (i(), U(a, {
|
|
1294
1295
|
key: 0,
|
|
@@ -1298,12 +1299,12 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1298
1299
|
active: l.isAnnotator,
|
|
1299
1300
|
onClose: e.toggleAnnotator
|
|
1300
1301
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : h("", !0),
|
|
1301
|
-
e.hasOptionsNoTitle ? (i(), s("div",
|
|
1302
|
+
e.hasOptionsNoTitle ? (i(), s("div", ut, null, 512)) : h("", !0),
|
|
1302
1303
|
e.FINAL_CONFIG.chart.title.show ? (i(), s("div", {
|
|
1303
1304
|
key: 2,
|
|
1304
1305
|
ref: "chartTitle",
|
|
1305
1306
|
class: "vue-ui-xy-title",
|
|
1306
|
-
style:
|
|
1307
|
+
style: F(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1307
1308
|
}, [
|
|
1308
1309
|
(i(), U(L, {
|
|
1309
1310
|
key: `title_${l.titleStep}`,
|
|
@@ -1353,77 +1354,77 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1353
1354
|
onToggleStack: e.toggleStack,
|
|
1354
1355
|
onToggleTooltip: e.toggleTooltip,
|
|
1355
1356
|
onToggleAnnotator: e.toggleAnnotator,
|
|
1356
|
-
style:
|
|
1357
|
+
style: F({
|
|
1357
1358
|
visibility: l.keepUserOptionState ? l.userOptionsVisible ? "visible" : "hidden" : "visible"
|
|
1358
1359
|
})
|
|
1359
|
-
},
|
|
1360
|
+
}, et({ _: 2 }, [
|
|
1360
1361
|
r.$slots.menuIcon ? {
|
|
1361
1362
|
name: "menuIcon",
|
|
1362
|
-
fn:
|
|
1363
|
-
O(r.$slots, "menuIcon", $(ee({ isOpen: t, color:
|
|
1363
|
+
fn: B(({ isOpen: t, color: c }) => [
|
|
1364
|
+
O(r.$slots, "menuIcon", $(ee({ isOpen: t, color: c })), void 0, !0)
|
|
1364
1365
|
]),
|
|
1365
1366
|
key: "0"
|
|
1366
1367
|
} : void 0,
|
|
1367
1368
|
r.$slots.optionTooltip ? {
|
|
1368
1369
|
name: "optionTooltip",
|
|
1369
|
-
fn:
|
|
1370
|
+
fn: B(() => [
|
|
1370
1371
|
O(r.$slots, "optionTooltip", {}, void 0, !0)
|
|
1371
1372
|
]),
|
|
1372
1373
|
key: "1"
|
|
1373
1374
|
} : void 0,
|
|
1374
1375
|
r.$slots.optionPdf ? {
|
|
1375
1376
|
name: "optionPdf",
|
|
1376
|
-
fn:
|
|
1377
|
+
fn: B(() => [
|
|
1377
1378
|
O(r.$slots, "optionPdf", {}, void 0, !0)
|
|
1378
1379
|
]),
|
|
1379
1380
|
key: "2"
|
|
1380
1381
|
} : void 0,
|
|
1381
1382
|
r.$slots.optionCsv ? {
|
|
1382
1383
|
name: "optionCsv",
|
|
1383
|
-
fn:
|
|
1384
|
+
fn: B(() => [
|
|
1384
1385
|
O(r.$slots, "optionCsv", {}, void 0, !0)
|
|
1385
1386
|
]),
|
|
1386
1387
|
key: "3"
|
|
1387
1388
|
} : void 0,
|
|
1388
1389
|
r.$slots.optionImg ? {
|
|
1389
1390
|
name: "optionImg",
|
|
1390
|
-
fn:
|
|
1391
|
+
fn: B(() => [
|
|
1391
1392
|
O(r.$slots, "optionImg", {}, void 0, !0)
|
|
1392
1393
|
]),
|
|
1393
1394
|
key: "4"
|
|
1394
1395
|
} : void 0,
|
|
1395
1396
|
r.$slots.optionTable ? {
|
|
1396
1397
|
name: "optionTable",
|
|
1397
|
-
fn:
|
|
1398
|
+
fn: B(() => [
|
|
1398
1399
|
O(r.$slots, "optionTable", {}, void 0, !0)
|
|
1399
1400
|
]),
|
|
1400
1401
|
key: "5"
|
|
1401
1402
|
} : void 0,
|
|
1402
1403
|
r.$slots.optionLabels ? {
|
|
1403
1404
|
name: "optionLabels",
|
|
1404
|
-
fn:
|
|
1405
|
+
fn: B(() => [
|
|
1405
1406
|
O(r.$slots, "optionLabels", {}, void 0, !0)
|
|
1406
1407
|
]),
|
|
1407
1408
|
key: "6"
|
|
1408
1409
|
} : void 0,
|
|
1409
1410
|
r.$slots.optionStack ? {
|
|
1410
1411
|
name: "optionStack",
|
|
1411
|
-
fn:
|
|
1412
|
+
fn: B(() => [
|
|
1412
1413
|
O(r.$slots, "optionStack", {}, void 0, !0)
|
|
1413
1414
|
]),
|
|
1414
1415
|
key: "7"
|
|
1415
1416
|
} : void 0,
|
|
1416
1417
|
r.$slots.optionFullscreen ? {
|
|
1417
1418
|
name: "optionFullscreen",
|
|
1418
|
-
fn:
|
|
1419
|
-
O(r.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen:
|
|
1419
|
+
fn: B(({ toggleFullscreen: t, isFullscreen: c }) => [
|
|
1420
|
+
O(r.$slots, "optionFullscreen", $(ee({ toggleFullscreen: t, isFullscreen: c })), void 0, !0)
|
|
1420
1421
|
]),
|
|
1421
1422
|
key: "8"
|
|
1422
1423
|
} : void 0,
|
|
1423
1424
|
r.$slots.optionAnnotator ? {
|
|
1424
1425
|
name: "optionAnnotator",
|
|
1425
|
-
fn:
|
|
1426
|
-
O(r.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator:
|
|
1426
|
+
fn: B(({ toggleAnnotator: t, isAnnotator: c }) => [
|
|
1427
|
+
O(r.$slots, "optionAnnotator", $(ee({ toggleAnnotator: t, isAnnotator: c })), void 0, !0)
|
|
1427
1428
|
]),
|
|
1428
1429
|
key: "9"
|
|
1429
1430
|
} : void 0
|
|
@@ -1435,7 +1436,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1435
1436
|
class: j([{ "vue-data-ui-fullscreen--on": l.isFullscreen, "vue-data-ui-fulscreen--off": !l.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1436
1437
|
width: "100%",
|
|
1437
1438
|
viewBox: l.viewBox,
|
|
1438
|
-
style:
|
|
1439
|
+
style: F(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
|
|
1439
1440
|
"aria-label": e.chartAriaLabel,
|
|
1440
1441
|
role: "img",
|
|
1441
1442
|
"aria-live": "polite"
|
|
@@ -1452,9 +1453,9 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1452
1453
|
}
|
|
1453
1454
|
}, [
|
|
1454
1455
|
O(r.$slots, "chart-background", {}, void 0, !0)
|
|
1455
|
-
], 8,
|
|
1456
|
-
e.maxSeries > 0 ? (i(), s("g",
|
|
1457
|
-
I("g",
|
|
1456
|
+
], 8, gt)) : h("", !0),
|
|
1457
|
+
e.maxSeries > 0 ? (i(), s("g", ft, [
|
|
1458
|
+
I("g", It, [
|
|
1458
1459
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (i(), s("line", {
|
|
1459
1460
|
key: 0,
|
|
1460
1461
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1465,27 +1466,27 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1465
1466
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1466
1467
|
"stroke-linecap": "round",
|
|
1467
1468
|
style: { animation: "none !important" }
|
|
1468
|
-
}, null, 8,
|
|
1469
|
+
}, null, 8, xt)) : h("", !0),
|
|
1469
1470
|
l.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(!0), s(g, { key: 2 }, x(e.allScales, (t) => (i(), s("g", null, [
|
|
1470
|
-
t.id === l.selectedScale && t.yLabels.length ? (i(!0), s(g, { key: 0 }, x(t.yLabels, (
|
|
1471
|
+
t.id === l.selectedScale && t.yLabels.length ? (i(!0), s(g, { key: 0 }, x(t.yLabels, (c) => (i(), s("line", {
|
|
1471
1472
|
x1: e.drawingArea.left + e.xPadding,
|
|
1472
1473
|
x2: e.drawingArea.right - e.xPadding,
|
|
1473
|
-
y1: e.forceValidValue(
|
|
1474
|
-
y2: e.forceValidValue(
|
|
1474
|
+
y1: e.forceValidValue(c.y),
|
|
1475
|
+
y2: e.forceValidValue(c.y),
|
|
1475
1476
|
stroke: t.color,
|
|
1476
1477
|
"stroke-width": 0.5,
|
|
1477
1478
|
"stroke-linecap": "round",
|
|
1478
1479
|
style: { animation: "none !important" }
|
|
1479
|
-
}, null, 8,
|
|
1480
|
+
}, null, 8, Ft))), 256)) : t.yLabels.length ? (i(!0), s(g, { key: 1 }, x(t.yLabels, (c) => (i(), s("line", {
|
|
1480
1481
|
x1: e.drawingArea.left + e.xPadding,
|
|
1481
1482
|
x2: e.drawingArea.right - e.xPadding,
|
|
1482
|
-
y1: e.forceValidValue(
|
|
1483
|
-
y2: e.forceValidValue(
|
|
1483
|
+
y1: e.forceValidValue(c.y),
|
|
1484
|
+
y2: e.forceValidValue(c.y),
|
|
1484
1485
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1485
1486
|
"stroke-width": 0.5,
|
|
1486
1487
|
"stroke-linecap": "round",
|
|
1487
1488
|
style: { animation: "none !important" }
|
|
1488
|
-
}, null, 8,
|
|
1489
|
+
}, null, 8, _t))), 256)) : h("", !0)
|
|
1489
1490
|
]))), 256)) : h("", !0) : (i(), s(g, { key: 1 }, [
|
|
1490
1491
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (i(), s("line", {
|
|
1491
1492
|
key: 0,
|
|
@@ -1497,8 +1498,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1497
1498
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1498
1499
|
"stroke-linecap": "round",
|
|
1499
1500
|
style: { animation: "none !important" }
|
|
1500
|
-
}, null, 8,
|
|
1501
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(), s("g",
|
|
1501
|
+
}, null, 8, Nt)) : h("", !0),
|
|
1502
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (i(), s("g", mt, [
|
|
1502
1503
|
(i(!0), s(g, null, x(e.yLabels, (t) => (i(), s("line", {
|
|
1503
1504
|
x1: e.drawingArea.left + e.xPadding,
|
|
1504
1505
|
x2: e.drawingArea.right - e.xPadding,
|
|
@@ -1508,14 +1509,14 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1508
1509
|
"stroke-width": 0.5,
|
|
1509
1510
|
"stroke-linecap": "round",
|
|
1510
1511
|
style: { animation: "none !important" }
|
|
1511
|
-
}, null, 8,
|
|
1512
|
+
}, null, 8, bt))), 256))
|
|
1512
1513
|
])) : h("", !0)
|
|
1513
1514
|
], 64)),
|
|
1514
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (i(), s("g",
|
|
1515
|
-
(i(!0), s(g, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t,
|
|
1516
|
-
key: `grid_vertical_line_${
|
|
1517
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1518
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1515
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (i(), s("g", At, [
|
|
1516
|
+
(i(!0), s(g, null, x(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, c) => (i(), s("line", {
|
|
1517
|
+
key: `grid_vertical_line_${c}`,
|
|
1518
|
+
x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1519
|
+
x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1519
1520
|
y1: e.forceValidValue(e.drawingArea.top),
|
|
1520
1521
|
y2: e.forceValidValue(e.drawingArea.bottom),
|
|
1521
1522
|
"stroke-width": "0.5",
|
|
@@ -1523,71 +1524,71 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1523
1524
|
style: { animation: "none !important" }
|
|
1524
1525
|
}, null, 8, yt))), 128))
|
|
1525
1526
|
])) : h("", !0),
|
|
1526
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), s("g",
|
|
1527
|
-
(i(!0), s(g, null, x(e.timeLabels, (t,
|
|
1528
|
-
key: `time_label_${
|
|
1527
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), s("g", Lt, [
|
|
1528
|
+
(i(!0), s(g, null, x(e.timeLabels, (t, c) => (i(), s("g", {
|
|
1529
|
+
key: `time_label_${c}`
|
|
1529
1530
|
}, [
|
|
1530
|
-
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 && (
|
|
1531
|
+
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 && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !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 && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (i(), s(g, { key: 0 }, [
|
|
1531
1532
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showCrosshairs ? (i(), s("line", {
|
|
1532
1533
|
key: 0,
|
|
1533
1534
|
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,
|
|
1534
1535
|
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,
|
|
1535
|
-
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1536
|
-
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1536
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
|
|
1537
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
|
|
1537
1538
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1538
1539
|
"stroke-width": 1,
|
|
1539
1540
|
"stroke-linecap": "round",
|
|
1540
1541
|
style: { animation: "none !important" }
|
|
1541
|
-
}, null, 8,
|
|
1542
|
+
}, null, 8, Ct)) : h("", !0)
|
|
1542
1543
|
], 64)) : h("", !0)
|
|
1543
1544
|
]))), 128))
|
|
1544
1545
|
])) : h("", !0)
|
|
1545
1546
|
]),
|
|
1546
|
-
(i(!0), s(g, null, x(e.barSet, (t,
|
|
1547
|
-
key: `def_rect_${
|
|
1547
|
+
(i(!0), s(g, null, x(e.barSet, (t, c) => (i(), s("defs", {
|
|
1548
|
+
key: `def_rect_${c}`
|
|
1548
1549
|
}, [
|
|
1549
1550
|
I("linearGradient", {
|
|
1550
|
-
id: `rectGradient_pos_${
|
|
1551
|
+
id: `rectGradient_pos_${c}_${l.uniqueId}`,
|
|
1551
1552
|
x2: "0%",
|
|
1552
1553
|
y2: "100%"
|
|
1553
1554
|
}, [
|
|
1554
1555
|
I("stop", {
|
|
1555
1556
|
offset: "0%",
|
|
1556
1557
|
"stop-color": t.color
|
|
1557
|
-
}, null, 8,
|
|
1558
|
+
}, null, 8, kt),
|
|
1558
1559
|
I("stop", {
|
|
1559
1560
|
offset: "62%",
|
|
1560
1561
|
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1561
|
-
}, null, 8,
|
|
1562
|
+
}, null, 8, wt),
|
|
1562
1563
|
I("stop", {
|
|
1563
1564
|
offset: "100%",
|
|
1564
1565
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1565
|
-
}, null, 8,
|
|
1566
|
-
], 8,
|
|
1566
|
+
}, null, 8, Ot)
|
|
1567
|
+
], 8, St),
|
|
1567
1568
|
I("linearGradient", {
|
|
1568
|
-
id: `rectGradient_neg_${
|
|
1569
|
+
id: `rectGradient_neg_${c}_${l.uniqueId}`,
|
|
1569
1570
|
x2: "0%",
|
|
1570
1571
|
y2: "100%"
|
|
1571
1572
|
}, [
|
|
1572
1573
|
I("stop", {
|
|
1573
1574
|
offset: "0%",
|
|
1574
1575
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1575
|
-
}, null, 8,
|
|
1576
|
+
}, null, 8, vt),
|
|
1576
1577
|
I("stop", {
|
|
1577
1578
|
offset: "38%",
|
|
1578
1579
|
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1579
|
-
}, null, 8,
|
|
1580
|
+
}, null, 8, pt),
|
|
1580
1581
|
I("stop", {
|
|
1581
1582
|
offset: "100%",
|
|
1582
1583
|
"stop-color": t.color
|
|
1583
|
-
}, null, 8,
|
|
1584
|
-
], 8,
|
|
1584
|
+
}, null, 8, zt)
|
|
1585
|
+
], 8, Gt)
|
|
1585
1586
|
]))), 128)),
|
|
1586
|
-
(i(!0), s(g, null, x(e.plotSet, (t,
|
|
1587
|
-
key: `def_plot_${
|
|
1587
|
+
(i(!0), s(g, null, x(e.plotSet, (t, c) => (i(), s("defs", {
|
|
1588
|
+
key: `def_plot_${c}`
|
|
1588
1589
|
}, [
|
|
1589
1590
|
I("radialGradient", {
|
|
1590
|
-
id: `plotGradient_${
|
|
1591
|
+
id: `plotGradient_${c}_${l.uniqueId}`,
|
|
1591
1592
|
cx: "50%",
|
|
1592
1593
|
cy: "50%",
|
|
1593
1594
|
r: "50%",
|
|
@@ -1597,18 +1598,18 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1597
1598
|
I("stop", {
|
|
1598
1599
|
offset: "0%",
|
|
1599
1600
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1600
|
-
}, null, 8,
|
|
1601
|
+
}, null, 8, Tt),
|
|
1601
1602
|
I("stop", {
|
|
1602
1603
|
offset: "100%",
|
|
1603
1604
|
"stop-color": t.color
|
|
1604
|
-
}, null, 8,
|
|
1605
|
-
], 8,
|
|
1605
|
+
}, null, 8, Pt)
|
|
1606
|
+
], 8, Mt)
|
|
1606
1607
|
]))), 128)),
|
|
1607
|
-
(i(!0), s(g, null, x(e.lineSet, (t,
|
|
1608
|
-
key: `def_line_${
|
|
1608
|
+
(i(!0), s(g, null, x(e.lineSet, (t, c) => (i(), s("defs", {
|
|
1609
|
+
key: `def_line_${c}`
|
|
1609
1610
|
}, [
|
|
1610
1611
|
I("radialGradient", {
|
|
1611
|
-
id: `lineGradient_${
|
|
1612
|
+
id: `lineGradient_${c}_${l.uniqueId}`,
|
|
1612
1613
|
cx: "50%",
|
|
1613
1614
|
cy: "50%",
|
|
1614
1615
|
r: "50%",
|
|
@@ -1618,14 +1619,14 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1618
1619
|
I("stop", {
|
|
1619
1620
|
offset: "0%",
|
|
1620
1621
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1621
|
-
}, null, 8,
|
|
1622
|
+
}, null, 8, Rt),
|
|
1622
1623
|
I("stop", {
|
|
1623
1624
|
offset: "100%",
|
|
1624
1625
|
"stop-color": t.color
|
|
1625
|
-
}, null, 8,
|
|
1626
|
-
], 8,
|
|
1626
|
+
}, null, 8, Ht)
|
|
1627
|
+
], 8, Vt),
|
|
1627
1628
|
I("linearGradient", {
|
|
1628
|
-
id: `areaGradient_${
|
|
1629
|
+
id: `areaGradient_${c}_${l.uniqueId}`,
|
|
1629
1630
|
x1: "0%",
|
|
1630
1631
|
x2: "100%",
|
|
1631
1632
|
y1: "0%",
|
|
@@ -1634,17 +1635,17 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1634
1635
|
I("stop", {
|
|
1635
1636
|
offset: "0%",
|
|
1636
1637
|
"stop-color": `${e.setOpacity(e.shiftHue(t.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1637
|
-
}, null, 8,
|
|
1638
|
+
}, null, 8, Bt),
|
|
1638
1639
|
I("stop", {
|
|
1639
1640
|
offset: "100%",
|
|
1640
1641
|
"stop-color": `${e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1641
1642
|
}, null, 8, Wt)
|
|
1642
|
-
], 8,
|
|
1643
|
+
], 8, Dt)
|
|
1643
1644
|
]))), 128)),
|
|
1644
1645
|
(i(!0), s(g, null, x(e.highlightAreas, (t) => (i(), s("g", null, [
|
|
1645
|
-
t.show ? (i(!0), s(g, { key: 0 }, x(t.span, (
|
|
1646
|
+
t.show ? (i(!0), s(g, { key: 0 }, x(t.span, (c, n) => (i(), s("g", null, [
|
|
1646
1647
|
I("rect", {
|
|
1647
|
-
style:
|
|
1648
|
+
style: F({
|
|
1648
1649
|
transition: "none",
|
|
1649
1650
|
opacity: t.from + n >= l.slicer.start && t.from + n <= l.slicer.end - 1 ? 1 : 0
|
|
1650
1651
|
}),
|
|
@@ -1653,12 +1654,12 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1653
1654
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1654
1655
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1655
1656
|
fill: e.setOpacity(t.color, t.opacity)
|
|
1656
|
-
}, null, 12,
|
|
1657
|
+
}, null, 12, Et),
|
|
1657
1658
|
t.caption.text && n === 0 ? (i(), s("foreignObject", {
|
|
1658
1659
|
key: 0,
|
|
1659
1660
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + n - l.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
|
|
1660
1661
|
y: e.drawingArea.top + t.caption.offsetY,
|
|
1661
|
-
style:
|
|
1662
|
+
style: F({
|
|
1662
1663
|
overflow: "visible",
|
|
1663
1664
|
opacity: t.to >= l.slicer.start && t.from < l.slicer.end ? 1 : 0
|
|
1664
1665
|
}),
|
|
@@ -1666,31 +1667,31 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1666
1667
|
width: t.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * t.span : t.caption.width
|
|
1667
1668
|
}, [
|
|
1668
1669
|
I("div", {
|
|
1669
|
-
style:
|
|
1670
|
+
style: F(`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"}`)
|
|
1670
1671
|
}, V(t.caption.text), 5)
|
|
1671
|
-
], 12,
|
|
1672
|
+
], 12, Yt)) : h("", !0)
|
|
1672
1673
|
]))), 256)) : h("", !0)
|
|
1673
1674
|
]))), 256)),
|
|
1674
1675
|
I("g", null, [
|
|
1675
|
-
(i(!0), s(g, null, x(e.maxSeries, (t,
|
|
1676
|
-
key: `tooltip_trap_highlighter_${
|
|
1676
|
+
(i(!0), s(g, null, x(e.maxSeries, (t, c) => (i(), s("g", {
|
|
1677
|
+
key: `tooltip_trap_highlighter_${c}`
|
|
1677
1678
|
}, [
|
|
1678
1679
|
I("rect", {
|
|
1679
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1680
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
|
|
1680
1681
|
y: e.drawingArea.top,
|
|
1681
1682
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1682
1683
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1683
|
-
fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(
|
|
1684
|
-
}, null, 8,
|
|
1684
|
+
fill: [l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1685
|
+
}, null, 8, qt)
|
|
1685
1686
|
]))), 128))
|
|
1686
1687
|
]),
|
|
1687
|
-
e.barSet.length ? (i(!0), s(g, { key: 0 }, x(e.barSet, (t,
|
|
1688
|
-
key: `serie_bar_${
|
|
1689
|
-
class: j(`serie_bar_${
|
|
1690
|
-
style:
|
|
1688
|
+
e.barSet.length ? (i(!0), s(g, { key: 0 }, x(e.barSet, (t, c) => (i(), s("g", {
|
|
1689
|
+
key: `serie_bar_${c}`,
|
|
1690
|
+
class: j(`serie_bar_${c}`),
|
|
1691
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1691
1692
|
}, [
|
|
1692
1693
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s("g", {
|
|
1693
|
-
key: `bar_plot_${
|
|
1694
|
+
key: `bar_plot_${c}_${d}`
|
|
1694
1695
|
}, [
|
|
1695
1696
|
e.canShowValue(n.value) ? (i(), s("rect", {
|
|
1696
1697
|
key: 0,
|
|
@@ -1699,10 +1700,10 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1699
1700
|
height: l.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1700
1701
|
width: e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1701
1702
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1702
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${
|
|
1703
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${l.uniqueId})` : `url(#rectGradient_neg_${c}_${l.uniqueId})` : t.color,
|
|
1703
1704
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1704
1705
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1705
|
-
}, null, 8,
|
|
1706
|
+
}, null, 8, Xt)) : h("", !0),
|
|
1706
1707
|
e.canShowValue(n.value) && r.$slots.pattern ? (i(), s("rect", {
|
|
1707
1708
|
key: 1,
|
|
1708
1709
|
x: e.calcRectX(n),
|
|
@@ -1713,7 +1714,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1713
1714
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`,
|
|
1714
1715
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1715
1716
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1716
|
-
}, null, 8,
|
|
1717
|
+
}, null, 8, Ut)) : h("", !0),
|
|
1717
1718
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (i(), s("foreignObject", {
|
|
1718
1719
|
key: 2,
|
|
1719
1720
|
style: { overflow: "visible" },
|
|
@@ -1723,14 +1724,14 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1723
1724
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1724
1725
|
}, [
|
|
1725
1726
|
O(r.$slots, "plot-comment", {
|
|
1726
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
1727
|
+
plot: { ...n, color: t.color, seriesIndex: c, datapointIndex: d }
|
|
1727
1728
|
}, void 0, !0)
|
|
1728
|
-
], 8,
|
|
1729
|
+
], 8, Zt)) : h("", !0)
|
|
1729
1730
|
]))), 128)),
|
|
1730
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), s("g",
|
|
1731
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), s("g", Jt, [
|
|
1731
1732
|
I("defs", null, [
|
|
1732
1733
|
I("marker", {
|
|
1733
|
-
id: `bar_arrow_${
|
|
1734
|
+
id: `bar_arrow_${c}`,
|
|
1734
1735
|
markerWidth: 7,
|
|
1735
1736
|
markerHeight: 7,
|
|
1736
1737
|
refX: "0",
|
|
@@ -1752,8 +1753,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1752
1753
|
"stroke-width": 1,
|
|
1753
1754
|
stroke: t.color,
|
|
1754
1755
|
"stroke-dasharray": 2,
|
|
1755
|
-
"marker-end": `url(#bar_arrow_${
|
|
1756
|
-
}, null, 8,
|
|
1756
|
+
"marker-end": `url(#bar_arrow_${c})`
|
|
1757
|
+
}, null, 8, jt)) : h("", !0),
|
|
1757
1758
|
t.plots.length > 1 ? (i(), s("text", {
|
|
1758
1759
|
key: 1,
|
|
1759
1760
|
"text-anchor": "middle",
|
|
@@ -1765,7 +1766,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1765
1766
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1766
1767
|
s: "%",
|
|
1767
1768
|
r: 2
|
|
1768
|
-
})), 9,
|
|
1769
|
+
})), 9, $t)) : h("", !0)
|
|
1769
1770
|
])) : h("", !0)
|
|
1770
1771
|
], 6))), 128)) : h("", !0),
|
|
1771
1772
|
!l.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (i(), s("line", {
|
|
@@ -1778,8 +1779,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1778
1779
|
y2: e.forceValidValue(e.zero),
|
|
1779
1780
|
"stroke-linecap": "round",
|
|
1780
1781
|
style: { animation: "none !important" }
|
|
1781
|
-
}, null, 8,
|
|
1782
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (i(), s("g",
|
|
1782
|
+
}, null, 8, el)) : h("", !0),
|
|
1783
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (i(), s("g", tl, [
|
|
1783
1784
|
I("line", {
|
|
1784
1785
|
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,
|
|
1785
1786
|
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,
|
|
@@ -1790,7 +1791,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1790
1791
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1791
1792
|
"stroke-linecap": "round",
|
|
1792
1793
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1793
|
-
}, null, 8,
|
|
1794
|
+
}, null, 8, ll)
|
|
1794
1795
|
])) : h("", !0),
|
|
1795
1796
|
e.FINAL_CONFIG.chart.grid.frame.show ? (i(), s("rect", {
|
|
1796
1797
|
key: 3,
|
|
@@ -1805,8 +1806,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1805
1806
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1806
1807
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1807
1808
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1808
|
-
}, null, 8,
|
|
1809
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (i(), s("g",
|
|
1809
|
+
}, null, 8, rl)) : h("", !0),
|
|
1810
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (i(), s("g", al, [
|
|
1810
1811
|
l.mutableConfig.useIndividualScale ? (i(), s(g, { key: 0 }, [
|
|
1811
1812
|
(i(!0), s(g, null, x(e.allScales, (t) => (i(), s("g", null, [
|
|
1812
1813
|
I("line", {
|
|
@@ -1817,51 +1818,51 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1817
1818
|
stroke: t.color,
|
|
1818
1819
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1819
1820
|
"stroke-linecap": "round",
|
|
1820
|
-
style:
|
|
1821
|
-
}, null, 12,
|
|
1821
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1822
|
+
}, null, 12, il)
|
|
1822
1823
|
]))), 256)),
|
|
1823
1824
|
(i(!0), s(g, null, x(e.allScales, (t) => (i(), s("g", {
|
|
1824
|
-
style:
|
|
1825
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1825
1826
|
}, [
|
|
1826
1827
|
I("text", {
|
|
1827
1828
|
fill: t.color,
|
|
1828
1829
|
"font-size": l.fontSizes.dataLabels,
|
|
1829
1830
|
"text-anchor": "middle",
|
|
1830
1831
|
transform: `translate(${t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${l.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset - t.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1831
|
-
}, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9,
|
|
1832
|
-
(i(!0), s(g, null, x(t.yLabels, (
|
|
1832
|
+
}, V(t.name) + " " + V(t.scaleLabel && t.unique && t.scaleLabel !== t.id ? `- ${t.scaleLabel}` : ""), 9, sl),
|
|
1833
|
+
(i(!0), s(g, null, x(t.yLabels, (c, n) => (i(), s(g, null, [
|
|
1833
1834
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (i(), s("line", {
|
|
1834
1835
|
key: 0,
|
|
1835
1836
|
x1: t.x + 3 + e.xPadding - e.FINAL_CONFIG.chart.grid.labels.yAxis.crosshairSize,
|
|
1836
1837
|
x2: t.x + e.xPadding,
|
|
1837
|
-
y1: e.forceValidValue(
|
|
1838
|
-
y2: e.forceValidValue(
|
|
1838
|
+
y1: e.forceValidValue(c.y),
|
|
1839
|
+
y2: e.forceValidValue(c.y),
|
|
1839
1840
|
stroke: t.color,
|
|
1840
1841
|
"stroke-width": 1,
|
|
1841
1842
|
"stroke-linecap": "round",
|
|
1842
1843
|
style: { animation: "none !important" }
|
|
1843
|
-
}, null, 8,
|
|
1844
|
+
}, null, 8, nl)) : h("", !0)
|
|
1844
1845
|
], 64))), 256)),
|
|
1845
|
-
(i(!0), s(g, null, x(t.yLabels, (
|
|
1846
|
+
(i(!0), s(g, null, x(t.yLabels, (c, n) => (i(), s("text", {
|
|
1846
1847
|
x: t.x - 5 + e.xPadding + e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1847
|
-
y: e.forceValidValue(
|
|
1848
|
+
y: e.forceValidValue(c.y) + l.fontSizes.dataLabels / 3,
|
|
1848
1849
|
"font-size": l.fontSizes.dataLabels,
|
|
1849
1850
|
"text-anchor": "end",
|
|
1850
1851
|
fill: t.color
|
|
1851
1852
|
}, V(e.applyDataLabel(
|
|
1852
1853
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1853
|
-
|
|
1854
|
+
c.value,
|
|
1854
1855
|
e.dataLabel({
|
|
1855
|
-
p:
|
|
1856
|
-
v:
|
|
1857
|
-
s:
|
|
1856
|
+
p: c.prefix,
|
|
1857
|
+
v: c.value,
|
|
1858
|
+
s: c.suffix,
|
|
1858
1859
|
r: 1
|
|
1859
1860
|
}),
|
|
1860
|
-
{ datapoint:
|
|
1861
|
-
)), 9,
|
|
1861
|
+
{ datapoint: c.datapoint, seriesIndex: n }
|
|
1862
|
+
)), 9, cl))), 256))
|
|
1862
1863
|
], 4))), 256))
|
|
1863
|
-
], 64)) : (i(!0), s(g, { key: 1 }, x(e.yLabels, (t,
|
|
1864
|
-
key: `yLabel_${
|
|
1864
|
+
], 64)) : (i(!0), s(g, { key: 1 }, x(e.yLabels, (t, c) => (i(), s("g", {
|
|
1865
|
+
key: `yLabel_${c}`
|
|
1865
1866
|
}, [
|
|
1866
1867
|
e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max && e.FINAL_CONFIG.chart.grid.labels.yAxis.showCrosshairs ? (i(), s("line", {
|
|
1867
1868
|
key: 0,
|
|
@@ -1873,7 +1874,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1873
1874
|
"stroke-width": "1",
|
|
1874
1875
|
"stroke-linecap": "round",
|
|
1875
1876
|
style: { animation: "none !important" }
|
|
1876
|
-
}, null, 8,
|
|
1877
|
+
}, null, 8, ol)) : h("", !0),
|
|
1877
1878
|
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (i(), s("text", {
|
|
1878
1879
|
key: 1,
|
|
1879
1880
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
@@ -1890,21 +1891,21 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1890
1891
|
s: t.suffix,
|
|
1891
1892
|
r: 1
|
|
1892
1893
|
})
|
|
1893
|
-
) : ""), 9,
|
|
1894
|
+
) : ""), 9, hl)) : h("", !0)
|
|
1894
1895
|
]))), 128))
|
|
1895
1896
|
])) : h("", !0),
|
|
1896
|
-
(i(!0), s(g, null, x(e.plotSet, (t,
|
|
1897
|
-
key: `serie_plot_${
|
|
1898
|
-
class: j(`serie_plot_${
|
|
1899
|
-
style:
|
|
1897
|
+
(i(!0), s(g, null, x(e.plotSet, (t, c) => (i(), s("g", {
|
|
1898
|
+
key: `serie_plot_${c}`,
|
|
1899
|
+
class: j(`serie_plot_${c}`),
|
|
1900
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1900
1901
|
}, [
|
|
1901
1902
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s("g", {
|
|
1902
|
-
key: `circle_plot_${
|
|
1903
|
+
key: `circle_plot_${c}_${d}`
|
|
1903
1904
|
}, [
|
|
1904
1905
|
n && e.canShowValue(n.value) ? (i(), U(N, {
|
|
1905
1906
|
key: 0,
|
|
1906
1907
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1907
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1908
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? t.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1908
1909
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1909
1910
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === d || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === d ? (l.plotRadii.plot || 6) * 1.5 : l.plotRadii.plot || 6,
|
|
1910
1911
|
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
@@ -1918,17 +1919,17 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1918
1919
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1919
1920
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1920
1921
|
}, [
|
|
1921
|
-
I("div",
|
|
1922
|
+
I("div", dl, [
|
|
1922
1923
|
O(r.$slots, "plot-comment", {
|
|
1923
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
1924
|
+
plot: { ...n, color: t.color, seriesIndex: c, datapointIndex: d }
|
|
1924
1925
|
}, void 0, !0)
|
|
1925
1926
|
])
|
|
1926
|
-
], 8,
|
|
1927
|
+
], 8, ul)) : h("", !0)
|
|
1927
1928
|
]))), 128)),
|
|
1928
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), s("g",
|
|
1929
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), s("g", gl, [
|
|
1929
1930
|
I("defs", null, [
|
|
1930
1931
|
I("marker", {
|
|
1931
|
-
id: `plot_arrow_${
|
|
1932
|
+
id: `plot_arrow_${c}`,
|
|
1932
1933
|
markerWidth: 7,
|
|
1933
1934
|
markerHeight: 7,
|
|
1934
1935
|
refX: "0",
|
|
@@ -1938,8 +1939,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1938
1939
|
I("polygon", {
|
|
1939
1940
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1940
1941
|
fill: t.color
|
|
1941
|
-
}, null, 8,
|
|
1942
|
-
], 8,
|
|
1942
|
+
}, null, 8, Il)
|
|
1943
|
+
], 8, fl)
|
|
1943
1944
|
]),
|
|
1944
1945
|
t.plots.length > 1 ? (i(), s("line", {
|
|
1945
1946
|
key: 0,
|
|
@@ -1950,8 +1951,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1950
1951
|
"stroke-width": 1,
|
|
1951
1952
|
stroke: t.color,
|
|
1952
1953
|
"stroke-dasharray": 2,
|
|
1953
|
-
"marker-end": `url(#plot_arrow_${
|
|
1954
|
-
}, null, 8,
|
|
1954
|
+
"marker-end": `url(#plot_arrow_${c})`
|
|
1955
|
+
}, null, 8, xl)) : h("", !0),
|
|
1955
1956
|
t.plots.length > 1 ? (i(), s("text", {
|
|
1956
1957
|
key: 1,
|
|
1957
1958
|
"text-anchor": "middle",
|
|
@@ -1963,13 +1964,13 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1963
1964
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1964
1965
|
s: "%",
|
|
1965
1966
|
r: 2
|
|
1966
|
-
})), 9,
|
|
1967
|
+
})), 9, Nl)) : h("", !0)
|
|
1967
1968
|
])) : h("", !0)
|
|
1968
1969
|
], 6))), 128)),
|
|
1969
|
-
(i(!0), s(g, null, x(e.lineSet, (t,
|
|
1970
|
-
key: `serie_line_${
|
|
1971
|
-
class: j(`serie_line_${
|
|
1972
|
-
style:
|
|
1970
|
+
(i(!0), s(g, null, x(e.lineSet, (t, c) => (i(), s("g", {
|
|
1971
|
+
key: `serie_line_${c}`,
|
|
1972
|
+
class: j(`serie_line_${c}`),
|
|
1973
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1973
1974
|
}, [
|
|
1974
1975
|
t.smooth && t.plots.length > 1 && t.curve ? (i(), s("path", {
|
|
1975
1976
|
key: 0,
|
|
@@ -1978,7 +1979,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1978
1979
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1979
1980
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1980
1981
|
fill: "none"
|
|
1981
|
-
}, null, 8,
|
|
1982
|
+
}, null, 8, ml)) : t.plots.length > 1 && t.straight ? (i(), s("path", {
|
|
1982
1983
|
key: 1,
|
|
1983
1984
|
d: `M${t.straight}`,
|
|
1984
1985
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1987,24 +1988,24 @@ function Yr(r, c, u, f, l, e) {
|
|
|
1987
1988
|
fill: "none",
|
|
1988
1989
|
"stroke-linecap": "round",
|
|
1989
1990
|
"stroke-linejoin": "round"
|
|
1990
|
-
}, null, 8,
|
|
1991
|
+
}, null, 8, bl)) : h("", !0)
|
|
1991
1992
|
], 6))), 128)),
|
|
1992
|
-
r.$slots.pattern ? (i(), s("defs",
|
|
1993
|
-
(i(!0), s(g, null, x(e.safeDataset, (t,
|
|
1994
|
-
key: `serie_pattern_slot_${
|
|
1995
|
-
}, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${
|
|
1993
|
+
r.$slots.pattern ? (i(), s("defs", Fl, [
|
|
1994
|
+
(i(!0), s(g, null, x(e.safeDataset, (t, c) => O(r.$slots, "pattern", se({
|
|
1995
|
+
key: `serie_pattern_slot_${c}`
|
|
1996
|
+
}, { ref_for: !0 }, { ...t, seriesIndex: t.slotAbsoluteIndex, patternId: `pattern_${l.uniqueId}_${c}` }), void 0, !0)), 128))
|
|
1996
1997
|
])) : h("", !0),
|
|
1997
|
-
(i(!0), s(g, null, x(e.lineSet, (t,
|
|
1998
|
-
key: `serie_line_${
|
|
1999
|
-
class: j(`serie_line_${
|
|
2000
|
-
style:
|
|
1998
|
+
(i(!0), s(g, null, x(e.lineSet, (t, c) => (i(), s("g", {
|
|
1999
|
+
key: `serie_line_${c}`,
|
|
2000
|
+
class: j(`serie_line_${c}`),
|
|
2001
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2001
2002
|
}, [
|
|
2002
|
-
t.useArea && t.plots.length > 1 ? (i(), s("g",
|
|
2003
|
+
t.useArea && t.plots.length > 1 ? (i(), s("g", _l, [
|
|
2003
2004
|
t.smooth ? (i(!0), s(g, { key: 0 }, x(t.curveAreas, (n, d) => (i(), s(g, { key: d }, [
|
|
2004
2005
|
I("path", {
|
|
2005
2006
|
d: n,
|
|
2006
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
2007
|
-
}, null, 8,
|
|
2007
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2008
|
+
}, null, 8, Al),
|
|
2008
2009
|
r.$slots.pattern ? (i(), s("path", {
|
|
2009
2010
|
key: 0,
|
|
2010
2011
|
d: n,
|
|
@@ -2013,13 +2014,13 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2013
2014
|
], 64))), 128)) : (i(!0), s(g, { key: 1 }, x(t.area.split(";"), (n, d) => (i(), s(g, { key: d }, [
|
|
2014
2015
|
I("path", {
|
|
2015
2016
|
d: `M${n}Z`,
|
|
2016
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
2017
|
-
}, null, 8,
|
|
2017
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${l.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
2018
|
+
}, null, 8, Ll),
|
|
2018
2019
|
r.$slots.pattern ? (i(), s("path", {
|
|
2019
2020
|
key: 0,
|
|
2020
2021
|
d: `M${n}Z`,
|
|
2021
2022
|
fill: `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})`
|
|
2022
|
-
}, null, 8,
|
|
2023
|
+
}, null, 8, Cl)) : h("", !0)
|
|
2023
2024
|
], 64))), 128))
|
|
2024
2025
|
])) : h("", !0),
|
|
2025
2026
|
t.smooth && t.plots.length > 1 && t.curve ? (i(), s("path", {
|
|
@@ -2030,7 +2031,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2030
2031
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
2031
2032
|
fill: "none",
|
|
2032
2033
|
"stroke-linecap": "round"
|
|
2033
|
-
}, null, 8,
|
|
2034
|
+
}, null, 8, Sl)) : t.plots.length > 1 && t.straight ? (i(), s("path", {
|
|
2034
2035
|
key: 2,
|
|
2035
2036
|
d: `M${t.straight}`,
|
|
2036
2037
|
stroke: t.color,
|
|
@@ -2039,14 +2040,14 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2039
2040
|
fill: "none",
|
|
2040
2041
|
"stroke-linecap": "round",
|
|
2041
2042
|
"stroke-linejoin": "round"
|
|
2042
|
-
}, null, 8,
|
|
2043
|
+
}, null, 8, kl)) : h("", !0),
|
|
2043
2044
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2044
|
-
key: `circle_line_${
|
|
2045
|
+
key: `circle_line_${c}_${d}`
|
|
2045
2046
|
}, [
|
|
2046
2047
|
!e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (l.selectedSerieIndex !== null && l.selectedSerieIndex === d || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === d) ? (i(), U(N, {
|
|
2047
2048
|
key: 0,
|
|
2048
2049
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
2049
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
2050
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${l.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? t.color : e.FINAL_CONFIG.line.dot.fill,
|
|
2050
2051
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
2051
2052
|
radius: l.selectedSerieIndex !== null && l.selectedSerieIndex === d || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === d ? (l.plotRadii.line || 6) * 1.5 : l.plotRadii.line || 6,
|
|
2052
2053
|
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
@@ -2060,17 +2061,17 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2060
2061
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
2061
2062
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
2062
2063
|
}, [
|
|
2063
|
-
I("div",
|
|
2064
|
+
I("div", Ol, [
|
|
2064
2065
|
O(r.$slots, "plot-comment", {
|
|
2065
|
-
plot: { ...n, color: t.color, seriesIndex:
|
|
2066
|
+
plot: { ...n, color: t.color, seriesIndex: c, datapointIndex: d }
|
|
2066
2067
|
}, void 0, !0)
|
|
2067
2068
|
])
|
|
2068
|
-
], 8,
|
|
2069
|
+
], 8, wl)) : h("", !0)
|
|
2069
2070
|
], 64))), 128)),
|
|
2070
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), s("g",
|
|
2071
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (i(), s("g", Gl, [
|
|
2071
2072
|
I("defs", null, [
|
|
2072
2073
|
I("marker", {
|
|
2073
|
-
id: `line_arrow_${
|
|
2074
|
+
id: `line_arrow_${c}`,
|
|
2074
2075
|
markerWidth: 7,
|
|
2075
2076
|
markerHeight: 7,
|
|
2076
2077
|
refX: "0",
|
|
@@ -2080,8 +2081,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2080
2081
|
I("polygon", {
|
|
2081
2082
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2082
2083
|
fill: t.color
|
|
2083
|
-
}, null, 8,
|
|
2084
|
-
], 8,
|
|
2084
|
+
}, null, 8, pl)
|
|
2085
|
+
], 8, vl)
|
|
2085
2086
|
]),
|
|
2086
2087
|
t.plots.length > 1 ? (i(), s("line", {
|
|
2087
2088
|
key: 0,
|
|
@@ -2092,8 +2093,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2092
2093
|
"stroke-width": 1,
|
|
2093
2094
|
stroke: t.color,
|
|
2094
2095
|
"stroke-dasharray": 2,
|
|
2095
|
-
"marker-end": `url(#line_arrow_${
|
|
2096
|
-
}, null, 8,
|
|
2096
|
+
"marker-end": `url(#line_arrow_${c})`
|
|
2097
|
+
}, null, 8, zl)) : h("", !0),
|
|
2097
2098
|
t.plots.length > 1 ? (i(), s("text", {
|
|
2098
2099
|
key: 1,
|
|
2099
2100
|
"text-anchor": "middle",
|
|
@@ -2105,15 +2106,15 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2105
2106
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
2106
2107
|
s: "%",
|
|
2107
2108
|
r: 2
|
|
2108
|
-
})), 9,
|
|
2109
|
+
})), 9, Ml)) : h("", !0)
|
|
2109
2110
|
])) : h("", !0)
|
|
2110
2111
|
], 6))), 128)),
|
|
2111
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (i(), s("g",
|
|
2112
|
-
(i(!0), s(g, null, x(e.barSet, (t,
|
|
2113
|
-
key: `xLabel_bar_${
|
|
2112
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && l.mutableConfig.dataLabels.show ? (i(), s("g", Tl, [
|
|
2113
|
+
(i(!0), s(g, null, x(e.barSet, (t, c) => (i(), s(g, {
|
|
2114
|
+
key: `xLabel_bar_${c}`
|
|
2114
2115
|
}, [
|
|
2115
2116
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2116
|
-
key: `xLabel_bar_${
|
|
2117
|
+
key: `xLabel_bar_${c}_${d}`
|
|
2117
2118
|
}, [
|
|
2118
2119
|
n && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === d || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === d) && e.FINAL_CONFIG.bar.labels.show ? (i(), s("text", {
|
|
2119
2120
|
key: 0,
|
|
@@ -2122,7 +2123,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2122
2123
|
"text-anchor": "middle",
|
|
2123
2124
|
"font-size": l.fontSizes.plotLabels,
|
|
2124
2125
|
fill: e.FINAL_CONFIG.bar.labels.color,
|
|
2125
|
-
style:
|
|
2126
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2126
2127
|
}, V(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2127
2128
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
2128
2129
|
n.value,
|
|
@@ -2136,7 +2137,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2136
2137
|
datapoint: n,
|
|
2137
2138
|
serie: t
|
|
2138
2139
|
}
|
|
2139
|
-
) : ""), 13,
|
|
2140
|
+
) : ""), 13, Pl)) : h("", !0),
|
|
2140
2141
|
n && e.FINAL_CONFIG.bar.serieName.show ? (i(), s("text", {
|
|
2141
2142
|
key: 1,
|
|
2142
2143
|
x: l.mutableConfig.useIndividualScale && l.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
@@ -2145,17 +2146,17 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2145
2146
|
"font-size": l.fontSizes.plotLabels,
|
|
2146
2147
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
2147
2148
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal",
|
|
2148
|
-
style:
|
|
2149
|
-
}, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13,
|
|
2149
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2150
|
+
}, V(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 13, Vl)) : h("", !0)
|
|
2150
2151
|
], 64))), 128))
|
|
2151
2152
|
], 64))), 128))
|
|
2152
2153
|
])) : h("", !0),
|
|
2153
|
-
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (i(), s("g",
|
|
2154
|
-
(i(!0), s(g, null, x(e.plotSet, (t,
|
|
2155
|
-
key: `xLabel_plot_${
|
|
2154
|
+
e.FINAL_CONFIG.plot.labels.show && l.mutableConfig.dataLabels.show ? (i(), s("g", Rl, [
|
|
2155
|
+
(i(!0), s(g, null, x(e.plotSet, (t, c) => (i(), s(g, {
|
|
2156
|
+
key: `xLabel_plot_${c}`
|
|
2156
2157
|
}, [
|
|
2157
2158
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2158
|
-
key: `xLabel_plot_${
|
|
2159
|
+
key: `xLabel_plot_${c}_${d}`
|
|
2159
2160
|
}, [
|
|
2160
2161
|
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === d || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === d ? (i(), s("text", {
|
|
2161
2162
|
key: 0,
|
|
@@ -2164,7 +2165,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2164
2165
|
"text-anchor": "middle",
|
|
2165
2166
|
"font-size": l.fontSizes.plotLabels,
|
|
2166
2167
|
fill: e.FINAL_CONFIG.plot.labels.color,
|
|
2167
|
-
style:
|
|
2168
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2168
2169
|
}, V(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2169
2170
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
2170
2171
|
n.value,
|
|
@@ -2178,15 +2179,15 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2178
2179
|
datapoint: n,
|
|
2179
2180
|
serie: t
|
|
2180
2181
|
}
|
|
2181
|
-
) : ""), 13,
|
|
2182
|
+
) : ""), 13, Hl)) : h("", !0)
|
|
2182
2183
|
], 64))), 128))
|
|
2183
2184
|
], 64))), 128))
|
|
2184
|
-
])) : (i(), s("g",
|
|
2185
|
-
(i(!0), s(g, null, x(e.plotSet, (t,
|
|
2186
|
-
key: `xLabel_plot_${
|
|
2185
|
+
])) : (i(), s("g", Dl, [
|
|
2186
|
+
(i(!0), s(g, null, x(e.plotSet, (t, c) => (i(), s(g, {
|
|
2187
|
+
key: `xLabel_plot_${c}`
|
|
2187
2188
|
}, [
|
|
2188
2189
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2189
|
-
key: `xLabel_plot_${
|
|
2190
|
+
key: `xLabel_plot_${c}_${d}`
|
|
2190
2191
|
}, [
|
|
2191
2192
|
e.FINAL_CONFIG.plot.tag.followValue ? (i(), s(g, { key: 1 }, [
|
|
2192
2193
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(d) && t.useTag ? (i(), s("line", {
|
|
@@ -2200,7 +2201,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2200
2201
|
"stroke-linecap": "round",
|
|
2201
2202
|
"stroke-dasharray": "2",
|
|
2202
2203
|
stroke: t.color
|
|
2203
|
-
}, null, 8,
|
|
2204
|
+
}, null, 8, ql)) : h("", !0)
|
|
2204
2205
|
], 64)) : (i(), s(g, { key: 0 }, [
|
|
2205
2206
|
n && d === 0 && t.useTag && t.useTag === "start" ? (i(), s("foreignObject", {
|
|
2206
2207
|
key: 0,
|
|
@@ -2208,10 +2209,10 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2208
2209
|
y: n.y - 20,
|
|
2209
2210
|
height: 24,
|
|
2210
2211
|
width: "150",
|
|
2211
|
-
style:
|
|
2212
|
+
style: F(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2212
2213
|
}, [
|
|
2213
2214
|
I("div", {
|
|
2214
|
-
style:
|
|
2215
|
+
style: F(`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;`),
|
|
2215
2216
|
innerHTML: e.applyDataLabel(
|
|
2216
2217
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2217
2218
|
n.value,
|
|
@@ -2223,17 +2224,17 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2223
2224
|
}
|
|
2224
2225
|
)
|
|
2225
2226
|
}, null, 12, Wl)
|
|
2226
|
-
], 12,
|
|
2227
|
+
], 12, Bl)) : h("", !0),
|
|
2227
2228
|
n && d === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (i(), s("foreignObject", {
|
|
2228
2229
|
key: 1,
|
|
2229
2230
|
x: n.x - t.name.length * (l.fontSizes.plotLabels / 2),
|
|
2230
2231
|
y: n.y - 20,
|
|
2231
2232
|
height: 24,
|
|
2232
2233
|
width: "150",
|
|
2233
|
-
style:
|
|
2234
|
+
style: F(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2234
2235
|
}, [
|
|
2235
2236
|
I("div", {
|
|
2236
|
-
style:
|
|
2237
|
+
style: F(`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;`),
|
|
2237
2238
|
innerHTML: e.applyDataLabel(
|
|
2238
2239
|
e.FINAL_CONFIG.plot.tag.formatter,
|
|
2239
2240
|
n.value,
|
|
@@ -2244,18 +2245,18 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2244
2245
|
serieName: t.name
|
|
2245
2246
|
}
|
|
2246
2247
|
)
|
|
2247
|
-
}, null, 12,
|
|
2248
|
-
], 12,
|
|
2248
|
+
}, null, 12, Yl)
|
|
2249
|
+
], 12, El)) : h("", !0)
|
|
2249
2250
|
], 64))
|
|
2250
2251
|
], 64))), 128))
|
|
2251
2252
|
], 64))), 128))
|
|
2252
2253
|
])),
|
|
2253
|
-
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (i(), s("g",
|
|
2254
|
-
(i(!0), s(g, null, x(e.lineSet, (t,
|
|
2255
|
-
key: `xLabel_line_${
|
|
2254
|
+
e.FINAL_CONFIG.line.labels.show && l.mutableConfig.dataLabels.show ? (i(), s("g", Xl, [
|
|
2255
|
+
(i(!0), s(g, null, x(e.lineSet, (t, c) => (i(), s(g, {
|
|
2256
|
+
key: `xLabel_line_${c}`
|
|
2256
2257
|
}, [
|
|
2257
2258
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2258
|
-
key: `xLabel_line_${
|
|
2259
|
+
key: `xLabel_line_${c}_${d}`
|
|
2259
2260
|
}, [
|
|
2260
2261
|
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || l.selectedSerieIndex !== null && l.selectedSerieIndex === d || l.selectedMinimapIndex !== null && l.selectedMinimapIndex === d ? (i(), s("text", {
|
|
2261
2262
|
key: 0,
|
|
@@ -2264,7 +2265,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2264
2265
|
"text-anchor": "middle",
|
|
2265
2266
|
"font-size": l.fontSizes.plotLabels,
|
|
2266
2267
|
fill: e.FINAL_CONFIG.line.labels.color,
|
|
2267
|
-
style:
|
|
2268
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2268
2269
|
}, V(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
2269
2270
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
2270
2271
|
n.value,
|
|
@@ -2278,15 +2279,15 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2278
2279
|
datapoint: n,
|
|
2279
2280
|
serie: t
|
|
2280
2281
|
}
|
|
2281
|
-
) : ""), 13,
|
|
2282
|
+
) : ""), 13, Ul)) : h("", !0)
|
|
2282
2283
|
], 64))), 128))
|
|
2283
2284
|
], 64))), 128))
|
|
2284
|
-
])) : (i(), s("g",
|
|
2285
|
-
(i(!0), s(g, null, x(e.lineSet, (t,
|
|
2286
|
-
key: `xLabel_line_${
|
|
2285
|
+
])) : (i(), s("g", Zl, [
|
|
2286
|
+
(i(!0), s(g, null, x(e.lineSet, (t, c) => (i(), s(g, {
|
|
2287
|
+
key: `xLabel_line_${c}`
|
|
2287
2288
|
}, [
|
|
2288
2289
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2289
|
-
key: `xLabel_line_${
|
|
2290
|
+
key: `xLabel_line_${c}_${d}`
|
|
2290
2291
|
}, [
|
|
2291
2292
|
e.FINAL_CONFIG.line.tag.followValue ? (i(), s(g, { key: 1 }, [
|
|
2292
2293
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(d) && t.useTag ? (i(), s("line", {
|
|
@@ -2300,7 +2301,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2300
2301
|
"stroke-linecap": "round",
|
|
2301
2302
|
"stroke-dasharray": "2",
|
|
2302
2303
|
stroke: t.color
|
|
2303
|
-
}, null, 8,
|
|
2304
|
+
}, null, 8, $l)) : h("", !0)
|
|
2304
2305
|
], 64)) : (i(), s(g, { key: 0 }, [
|
|
2305
2306
|
n && d === 0 && t.useTag && t.useTag === "start" ? (i(), s("foreignObject", {
|
|
2306
2307
|
key: 0,
|
|
@@ -2308,10 +2309,10 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2308
2309
|
y: n.y - 20,
|
|
2309
2310
|
height: 24,
|
|
2310
2311
|
width: "150",
|
|
2311
|
-
style:
|
|
2312
|
+
style: F(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2312
2313
|
}, [
|
|
2313
2314
|
I("div", {
|
|
2314
|
-
style:
|
|
2315
|
+
style: F(`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;`),
|
|
2315
2316
|
innerHTML: e.applyDataLabel(
|
|
2316
2317
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2317
2318
|
n.value,
|
|
@@ -2323,17 +2324,17 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2323
2324
|
}
|
|
2324
2325
|
)
|
|
2325
2326
|
}, null, 12, Kl)
|
|
2326
|
-
], 12,
|
|
2327
|
+
], 12, Jl)) : h("", !0),
|
|
2327
2328
|
n && d === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (i(), s("foreignObject", {
|
|
2328
2329
|
key: 1,
|
|
2329
2330
|
x: n.x,
|
|
2330
2331
|
y: n.y - 20,
|
|
2331
2332
|
height: 24,
|
|
2332
2333
|
width: "150",
|
|
2333
|
-
style:
|
|
2334
|
+
style: F(`overflow: visible; opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2334
2335
|
}, [
|
|
2335
2336
|
I("div", {
|
|
2336
|
-
style:
|
|
2337
|
+
style: F(`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;`),
|
|
2337
2338
|
innerHTML: e.applyDataLabel(
|
|
2338
2339
|
e.FINAL_CONFIG.line.tag.formatter,
|
|
2339
2340
|
n.value,
|
|
@@ -2344,17 +2345,17 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2344
2345
|
serieName: t.name
|
|
2345
2346
|
}
|
|
2346
2347
|
)
|
|
2347
|
-
}, null, 12,
|
|
2348
|
+
}, null, 12, jl)
|
|
2348
2349
|
], 12, Ql)) : h("", !0)
|
|
2349
2350
|
], 64))
|
|
2350
2351
|
], 64))), 128))
|
|
2351
2352
|
], 64))), 128))
|
|
2352
2353
|
])),
|
|
2353
|
-
(i(!0), s(g, null, x(e.lineSet, (t,
|
|
2354
|
-
key: `xLabel_line_${
|
|
2354
|
+
(i(!0), s(g, null, x(e.lineSet, (t, c) => (i(), s(g, {
|
|
2355
|
+
key: `xLabel_line_${c}`
|
|
2355
2356
|
}, [
|
|
2356
2357
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2357
|
-
key: `xLabel_line_${
|
|
2358
|
+
key: `xLabel_line_${c}_${d}`
|
|
2358
2359
|
}, [
|
|
2359
2360
|
n && d === 0 && t.showSerieName && t.showSerieName === "start" ? (i(), s("text", {
|
|
2360
2361
|
key: 0,
|
|
@@ -2371,8 +2372,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2371
2372
|
y: n.y,
|
|
2372
2373
|
maxWords: 2
|
|
2373
2374
|
}),
|
|
2374
|
-
style:
|
|
2375
|
-
}, null, 12,
|
|
2375
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2376
|
+
}, null, 12, er)) : h("", !0),
|
|
2376
2377
|
n && d === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (i(), s("text", {
|
|
2377
2378
|
key: 1,
|
|
2378
2379
|
x: n.x + l.fontSizes.plotLabels,
|
|
@@ -2388,15 +2389,15 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2388
2389
|
y: n.y,
|
|
2389
2390
|
maxWords: 2
|
|
2390
2391
|
}),
|
|
2391
|
-
style:
|
|
2392
|
-
}, null, 12,
|
|
2392
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2393
|
+
}, null, 12, tr)) : h("", !0)
|
|
2393
2394
|
], 64))), 128))
|
|
2394
2395
|
], 64))), 128)),
|
|
2395
|
-
(i(!0), s(g, null, x(e.plotSet, (t,
|
|
2396
|
-
key: `xLabel_plot_${
|
|
2396
|
+
(i(!0), s(g, null, x(e.plotSet, (t, c) => (i(), s(g, {
|
|
2397
|
+
key: `xLabel_plot_${c}`
|
|
2397
2398
|
}, [
|
|
2398
2399
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2399
|
-
key: `xLabel_plot_${
|
|
2400
|
+
key: `xLabel_plot_${c}_${d}`
|
|
2400
2401
|
}, [
|
|
2401
2402
|
n && d === 0 && t.showSerieName && t.showSerieName === "start" ? (i(), s("text", {
|
|
2402
2403
|
key: 0,
|
|
@@ -2413,8 +2414,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2413
2414
|
y: n.y,
|
|
2414
2415
|
maxWords: 2
|
|
2415
2416
|
}),
|
|
2416
|
-
style:
|
|
2417
|
-
}, null, 12,
|
|
2417
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2418
|
+
}, null, 12, lr)) : h("", !0),
|
|
2418
2419
|
n && d === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (i(), s("text", {
|
|
2419
2420
|
key: 1,
|
|
2420
2421
|
x: n.x + l.fontSizes.plotLabels,
|
|
@@ -2430,14 +2431,14 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2430
2431
|
y: n.y,
|
|
2431
2432
|
maxWords: 2
|
|
2432
2433
|
}),
|
|
2433
|
-
style:
|
|
2434
|
-
}, null, 12,
|
|
2434
|
+
style: F(`opacity:${l.selectedScale ? l.selectedScale === t.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2435
|
+
}, null, 12, rr)) : h("", !0)
|
|
2435
2436
|
], 64))), 128))
|
|
2436
2437
|
], 64))), 128)),
|
|
2437
2438
|
l.mutableConfig.useIndividualScale && !l.mutableConfig.isStacked ? (i(), s(g, { key: 11 }, [
|
|
2438
2439
|
I("defs", null, [
|
|
2439
|
-
(i(!0), s(g, null, x(e.allScales, (t,
|
|
2440
|
-
id: `individual_scale_gradient_${l.uniqueId}_${
|
|
2440
|
+
(i(!0), s(g, null, x(e.allScales, (t, c) => (i(), s("linearGradient", {
|
|
2441
|
+
id: `individual_scale_gradient_${l.uniqueId}_${c}`,
|
|
2441
2442
|
x1: "0%",
|
|
2442
2443
|
x2: "100%",
|
|
2443
2444
|
y1: "0%",
|
|
@@ -2447,23 +2448,23 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2447
2448
|
offset: "0%",
|
|
2448
2449
|
"stop-color": e.FINAL_CONFIG.chart.backgroundColor,
|
|
2449
2450
|
"stop-opacity": "0"
|
|
2450
|
-
}, null, 8,
|
|
2451
|
+
}, null, 8, ir),
|
|
2451
2452
|
I("stop", {
|
|
2452
2453
|
offset: "100%",
|
|
2453
2454
|
"stop-color": t.color,
|
|
2454
2455
|
"stop-opacity": "0.2"
|
|
2455
|
-
}, null, 8,
|
|
2456
|
-
], 8,
|
|
2456
|
+
}, null, 8, sr)
|
|
2457
|
+
], 8, ar))), 256))
|
|
2457
2458
|
]),
|
|
2458
|
-
(i(!0), s(g, null, x(e.allScales, (t,
|
|
2459
|
+
(i(!0), s(g, null, x(e.allScales, (t, c) => (i(), s("rect", {
|
|
2459
2460
|
x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
|
|
2460
2461
|
y: e.drawingArea.top,
|
|
2461
2462
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2462
2463
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2463
|
-
fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${
|
|
2464
|
+
fill: l.selectedScale === t.groupId ? `url(#individual_scale_gradient_${l.uniqueId}_${c})` : "transparent",
|
|
2464
2465
|
onMouseenter: (n) => l.selectedScale = t.groupId,
|
|
2465
|
-
onMouseleave:
|
|
2466
|
-
}, null, 40,
|
|
2466
|
+
onMouseleave: o[0] || (o[0] = (n) => l.selectedScale = null)
|
|
2467
|
+
}, null, 40, nr))), 256))
|
|
2467
2468
|
], 64)) : h("", !0),
|
|
2468
2469
|
I("g", null, [
|
|
2469
2470
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !l.mutableConfig.useIndividualScale ? (i(), s("text", {
|
|
@@ -2473,7 +2474,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2473
2474
|
transform: `translate(${l.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2474
2475
|
"text-anchor": "middle",
|
|
2475
2476
|
style: { transition: "none" }
|
|
2476
|
-
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2477
|
+
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, cr)) : h("", !0),
|
|
2477
2478
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (i(), s("text", {
|
|
2478
2479
|
key: 1,
|
|
2479
2480
|
"text-anchor": "middle",
|
|
@@ -2481,39 +2482,59 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2481
2482
|
y: e.drawingArea.bottom + l.fontSizes.yAxis + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2482
2483
|
"font-size": l.fontSizes.yAxis,
|
|
2483
2484
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2484
|
-
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2485
|
+
}, V(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, or)) : h("", !0)
|
|
2485
2486
|
]),
|
|
2486
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), s("g",
|
|
2487
|
-
r.$slots["time-label"] ? (i(!0), s(g, { key: 0 }, x(e.timeLabels, (t,
|
|
2488
|
-
key: `time_label_${
|
|
2487
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (i(), s("g", hr, [
|
|
2488
|
+
r.$slots["time-label"] ? (i(!0), s(g, { key: 0 }, x(e.timeLabels, (t, c) => O(r.$slots, "time-label", se({
|
|
2489
|
+
key: `time_label_${c}`,
|
|
2489
2490
|
ref_for: !0
|
|
2490
2491
|
}, {
|
|
2491
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2492
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2,
|
|
2492
2493
|
y: e.drawingArea.bottom + l.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2493
2494
|
fontSize: l.fontSizes.xAxis,
|
|
2494
2495
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2495
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2496
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + 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})`,
|
|
2496
2497
|
absoluteIndex: t.absoluteIndex,
|
|
2497
2498
|
content: t.text,
|
|
2498
2499
|
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2499
|
-
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 && (
|
|
2500
|
-
}), void 0, !0)), 128)) : (i(!0), s(g, { key: 1 }, x(e.timeLabels, (t,
|
|
2501
|
-
key: `time_label_${
|
|
2500
|
+
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 && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !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 && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2501
|
+
}), void 0, !0)), 128)) : (i(!0), s(g, { key: 1 }, x(e.timeLabels, (t, c) => (i(), s("g", {
|
|
2502
|
+
key: `time_label_${c}`
|
|
2502
2503
|
}, [
|
|
2503
|
-
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 && (
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2504
|
+
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 && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.selectedSerieIndex === c && !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 && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (i(), s(g, { key: 0 }, [
|
|
2505
|
+
String(t.text).includes(`
|
|
2506
|
+
`) ? (i(), s("text", {
|
|
2507
|
+
key: 1,
|
|
2508
|
+
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2509
|
+
"font-size": l.fontSizes.xAxis,
|
|
2510
|
+
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2511
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + 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})`,
|
|
2512
|
+
style: F({
|
|
2513
|
+
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2514
|
+
}),
|
|
2515
|
+
innerHTML: e.createTSpansFromLineBreaksOnX({
|
|
2516
|
+
content: String(t.text),
|
|
2517
|
+
fontSize: l.fontSizes.xAxis,
|
|
2518
|
+
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2519
|
+
x: 0,
|
|
2520
|
+
y: 0
|
|
2521
|
+
}),
|
|
2522
|
+
onClick: () => e.selectTimeLabel(t, c)
|
|
2523
|
+
}, null, 12, dr)) : (i(), s("text", {
|
|
2524
|
+
key: 0,
|
|
2525
|
+
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2526
|
+
"font-size": l.fontSizes.xAxis,
|
|
2527
|
+
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2528
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + 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})`,
|
|
2529
|
+
style: F({
|
|
2530
|
+
cursor: e.usesSelectTimeLabelEvent() ? "pointer" : "default"
|
|
2531
|
+
}),
|
|
2532
|
+
onClick: () => e.selectTimeLabel(t, c)
|
|
2533
|
+
}, V(t.text || ""), 13, ur))
|
|
2534
|
+
], 64)) : h("", !0)
|
|
2514
2535
|
]))), 128))
|
|
2515
2536
|
])) : h("", !0),
|
|
2516
|
-
e.annotationsY.length && !l.mutableConfig.isStacked ? (i(), s("g",
|
|
2537
|
+
e.annotationsY.length && !l.mutableConfig.isStacked ? (i(), s("g", gr, [
|
|
2517
2538
|
(i(!0), s(g, null, x(e.annotationsY, (t) => (i(), s("g", {
|
|
2518
2539
|
key: t.uid
|
|
2519
2540
|
}, [
|
|
@@ -2528,7 +2549,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2528
2549
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2529
2550
|
"stroke-linecap": "round",
|
|
2530
2551
|
style: { animation: "none !important" }
|
|
2531
|
-
}, null, 8,
|
|
2552
|
+
}, null, 8, fr)) : h("", !0),
|
|
2532
2553
|
t.yBottom && t.show ? (i(), s("line", {
|
|
2533
2554
|
key: 1,
|
|
2534
2555
|
x1: t.x1,
|
|
@@ -2540,7 +2561,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2540
2561
|
"stroke-dasharray": t.config.line.strokeDasharray,
|
|
2541
2562
|
"stroke-linecap": "round",
|
|
2542
2563
|
style: { animation: "none !important" }
|
|
2543
|
-
}, null, 8,
|
|
2564
|
+
}, null, 8, Ir)) : h("", !0),
|
|
2544
2565
|
t.hasArea && t.show ? (i(), s("rect", {
|
|
2545
2566
|
key: 2,
|
|
2546
2567
|
y: Math.min(t.yTop, t.yBottom),
|
|
@@ -2549,7 +2570,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2549
2570
|
height: e.checkNaN(t.areaHeight, 0),
|
|
2550
2571
|
fill: e.setOpacity(t.config.area.fill, t.config.area.opacity),
|
|
2551
2572
|
style: { animation: "none !important" }
|
|
2552
|
-
}, null, 8,
|
|
2573
|
+
}, null, 8, xr)) : h("", !0),
|
|
2553
2574
|
t.config.label.text && t.show ? (i(), s("rect", se({
|
|
2554
2575
|
key: 3,
|
|
2555
2576
|
class: "vue-ui-xy-annotation-label-box"
|
|
@@ -2563,23 +2584,23 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2563
2584
|
"font-size": t.config.label.fontSize,
|
|
2564
2585
|
fill: t.config.label.color,
|
|
2565
2586
|
"text-anchor": t.config.label.textAnchor
|
|
2566
|
-
}, V(t.config.label.text), 9,
|
|
2587
|
+
}, V(t.config.label.text), 9, Nr)) : h("", !0)
|
|
2567
2588
|
]))), 128))
|
|
2568
2589
|
])) : h("", !0),
|
|
2569
2590
|
I("g", null, [
|
|
2570
|
-
(i(!0), s(g, null, x(e.maxSeries, (t,
|
|
2571
|
-
key: `tooltip_trap_${
|
|
2572
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2591
|
+
(i(!0), s(g, null, x(e.maxSeries, (t, c) => (i(), s("rect", {
|
|
2592
|
+
key: `tooltip_trap_${c}`,
|
|
2593
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * c,
|
|
2573
2594
|
y: e.drawingArea.top,
|
|
2574
2595
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2575
2596
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2576
2597
|
fill: "transparent",
|
|
2577
|
-
onMouseenter: (n) => e.toggleTooltipVisibility(!0,
|
|
2578
|
-
onMouseleave:
|
|
2579
|
-
onClick: (n) => e.selectX(
|
|
2580
|
-
}, null, 40,
|
|
2598
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
|
|
2599
|
+
onMouseleave: o[1] || (o[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2600
|
+
onClick: (n) => e.selectX(c)
|
|
2601
|
+
}, null, 40, mr))), 128))
|
|
2581
2602
|
]),
|
|
2582
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (i(), s("g",
|
|
2603
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(l.selectedSerieIndex) || ![null, void 0].includes(l.selectedMinimapIndex)) ? (i(), s("g", br, [
|
|
2583
2604
|
(i(), s("foreignObject", {
|
|
2584
2605
|
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,
|
|
2585
2606
|
y: e.drawingArea.bottom,
|
|
@@ -2589,48 +2610,48 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2589
2610
|
}, [
|
|
2590
2611
|
I("div", {
|
|
2591
2612
|
class: "vue-ui-xy-time-tag",
|
|
2592
|
-
style:
|
|
2613
|
+
style: F(`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`)
|
|
2593
2614
|
}, V(e.timeLabels[(l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)].text || (l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)), 5)
|
|
2594
|
-
], 8,
|
|
2615
|
+
], 8, Fr)),
|
|
2595
2616
|
I("circle", {
|
|
2596
2617
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((l.selectedSerieIndex !== null ? l.selectedSerieIndex : 0) || (l.selectedMinimapIndex !== null ? l.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2597
2618
|
cy: e.drawingArea.bottom,
|
|
2598
2619
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2599
2620
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2600
|
-
}, null, 8,
|
|
2621
|
+
}, null, 8, _r)
|
|
2601
2622
|
])) : h("", !0)
|
|
2602
2623
|
])) : h("", !0),
|
|
2603
2624
|
O(r.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2604
|
-
], 14,
|
|
2605
|
-
r.$slots.watermark ? (i(), s("div",
|
|
2625
|
+
], 14, dt)) : h("", !0),
|
|
2626
|
+
r.$slots.watermark ? (i(), s("div", Ar, [
|
|
2606
2627
|
O(r.$slots, "watermark", $(ee({ isPrinting: l.isPrinting || l.isImaging })), void 0, !0)
|
|
2607
2628
|
])) : h("", !0),
|
|
2608
|
-
(i(!0), s(g, null, x(e.lineSet, (t,
|
|
2609
|
-
key: `tag_line_${
|
|
2629
|
+
(i(!0), s(g, null, x(e.lineSet, (t, c) => (i(), s(g, {
|
|
2630
|
+
key: `tag_line_${c}`
|
|
2610
2631
|
}, [
|
|
2611
2632
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2612
|
-
key: `tag_line_${
|
|
2633
|
+
key: `tag_line_${c}_${d}`
|
|
2613
2634
|
}, [
|
|
2614
2635
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(d) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.line.tag.followValue ? (i(), s("div", {
|
|
2615
2636
|
key: 0,
|
|
2616
2637
|
ref_for: !0,
|
|
2617
|
-
ref: (p) => e.setTagRef(
|
|
2638
|
+
ref: (p) => e.setTagRef(c, d, p, "right", "line"),
|
|
2618
2639
|
class: "vue-ui-xy-tag",
|
|
2619
2640
|
"data-tag": "right",
|
|
2620
|
-
style:
|
|
2641
|
+
style: F({
|
|
2621
2642
|
position: "fixed",
|
|
2622
2643
|
top: e.placeXYTag({
|
|
2623
2644
|
svgElement: l.svgRef,
|
|
2624
2645
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2625
2646
|
y: n.y,
|
|
2626
|
-
element: l.tagRefs[`${
|
|
2647
|
+
element: l.tagRefs[`${c}_${d}_right_line`],
|
|
2627
2648
|
position: "right"
|
|
2628
2649
|
}).top + "px",
|
|
2629
2650
|
left: e.placeXYTag({
|
|
2630
2651
|
svgElement: l.svgRef,
|
|
2631
2652
|
x: e.drawingArea.right + e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2632
2653
|
y: n.y,
|
|
2633
|
-
element: l.tagRefs[`${
|
|
2654
|
+
element: l.tagRefs[`${c}_${d}_right_line`],
|
|
2634
2655
|
position: "right"
|
|
2635
2656
|
}).left + "px",
|
|
2636
2657
|
height: "fit-content",
|
|
@@ -2642,12 +2663,12 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2642
2663
|
opacity: 1
|
|
2643
2664
|
})
|
|
2644
2665
|
}, [
|
|
2645
|
-
(i(), s("svg",
|
|
2666
|
+
(i(), s("svg", yr, [
|
|
2646
2667
|
I("path", {
|
|
2647
2668
|
d: "M 0,10 10,0 10,20 Z",
|
|
2648
2669
|
fill: t.color,
|
|
2649
2670
|
stroke: "none"
|
|
2650
|
-
}, null, 8,
|
|
2671
|
+
}, null, 8, Lr)
|
|
2651
2672
|
])),
|
|
2652
2673
|
I("div", {
|
|
2653
2674
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2661,28 +2682,28 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2661
2682
|
serieName: t.name
|
|
2662
2683
|
}
|
|
2663
2684
|
)
|
|
2664
|
-
}, null, 8,
|
|
2685
|
+
}, null, 8, Cr)
|
|
2665
2686
|
], 4)) : h("", !0),
|
|
2666
2687
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(d) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.line.tag.followValue ? (i(), s("div", {
|
|
2667
2688
|
key: 1,
|
|
2668
2689
|
ref_for: !0,
|
|
2669
|
-
ref: (p) => e.setTagRef(
|
|
2690
|
+
ref: (p) => e.setTagRef(c, d, p, "left", "line"),
|
|
2670
2691
|
class: "vue-ui-xy-tag",
|
|
2671
2692
|
"data-tag": "left",
|
|
2672
|
-
style:
|
|
2693
|
+
style: F({
|
|
2673
2694
|
position: "fixed",
|
|
2674
2695
|
top: e.placeXYTag({
|
|
2675
2696
|
svgElement: l.svgRef,
|
|
2676
2697
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2677
2698
|
y: n.y,
|
|
2678
|
-
element: l.tagRefs[`${
|
|
2699
|
+
element: l.tagRefs[`${c}_${d}_left_line`],
|
|
2679
2700
|
position: "left"
|
|
2680
2701
|
}).top + "px",
|
|
2681
2702
|
left: e.placeXYTag({
|
|
2682
2703
|
svgElement: l.svgRef,
|
|
2683
2704
|
x: e.drawingArea.left - e.FINAL_CONFIG.line.tag.fontSize / 1.5,
|
|
2684
2705
|
y: n.y,
|
|
2685
|
-
element: l.tagRefs[`${
|
|
2706
|
+
element: l.tagRefs[`${c}_${d}_left_line`],
|
|
2686
2707
|
position: "left"
|
|
2687
2708
|
}).left + "px",
|
|
2688
2709
|
height: "fit-content",
|
|
@@ -2694,12 +2715,12 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2694
2715
|
opacity: 1
|
|
2695
2716
|
})
|
|
2696
2717
|
}, [
|
|
2697
|
-
(i(), s("svg",
|
|
2718
|
+
(i(), s("svg", Sr, [
|
|
2698
2719
|
I("path", {
|
|
2699
2720
|
d: "M 0,0 10,10 0,20 Z",
|
|
2700
2721
|
fill: t.color,
|
|
2701
2722
|
stroke: "none"
|
|
2702
|
-
}, null, 8,
|
|
2723
|
+
}, null, 8, kr)
|
|
2703
2724
|
])),
|
|
2704
2725
|
I("div", {
|
|
2705
2726
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2713,36 +2734,36 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2713
2734
|
serieName: t.name
|
|
2714
2735
|
}
|
|
2715
2736
|
)
|
|
2716
|
-
}, null, 8,
|
|
2737
|
+
}, null, 8, wr)
|
|
2717
2738
|
], 4)) : h("", !0)
|
|
2718
2739
|
], 64))), 128))
|
|
2719
2740
|
], 64))), 128)),
|
|
2720
|
-
(i(!0), s(g, null, x(e.plotSet, (t,
|
|
2721
|
-
key: `tag_plot_${
|
|
2741
|
+
(i(!0), s(g, null, x(e.plotSet, (t, c) => (i(), s(g, {
|
|
2742
|
+
key: `tag_plot_${c}`
|
|
2722
2743
|
}, [
|
|
2723
2744
|
(i(!0), s(g, null, x(t.plots, (n, d) => (i(), s(g, {
|
|
2724
|
-
key: `tag_plot_${
|
|
2745
|
+
key: `tag_plot_${c}_${d}`
|
|
2725
2746
|
}, [
|
|
2726
2747
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(d) && t.useTag && t.useTag === "end" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), s("div", {
|
|
2727
2748
|
key: 0,
|
|
2728
2749
|
ref_for: !0,
|
|
2729
|
-
ref: (p) => e.setTagRef(
|
|
2750
|
+
ref: (p) => e.setTagRef(c, d, p, "right", "plot"),
|
|
2730
2751
|
class: "vue-ui-xy-tag",
|
|
2731
2752
|
"data-tag": "right",
|
|
2732
|
-
style:
|
|
2753
|
+
style: F({
|
|
2733
2754
|
position: "fixed",
|
|
2734
2755
|
top: e.placeXYTag({
|
|
2735
2756
|
svgElement: l.svgRef,
|
|
2736
2757
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2737
2758
|
y: n.y,
|
|
2738
|
-
element: l.tagRefs[`${
|
|
2759
|
+
element: l.tagRefs[`${c}_${d}_right_plot`],
|
|
2739
2760
|
position: "right"
|
|
2740
2761
|
}).top + "px",
|
|
2741
2762
|
left: e.placeXYTag({
|
|
2742
2763
|
svgElement: l.svgRef,
|
|
2743
2764
|
x: e.drawingArea.right + e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2744
2765
|
y: n.y,
|
|
2745
|
-
element: l.tagRefs[`${
|
|
2766
|
+
element: l.tagRefs[`${c}_${d}_right_plot`],
|
|
2746
2767
|
position: "right"
|
|
2747
2768
|
}).left + "px",
|
|
2748
2769
|
height: "fit-content",
|
|
@@ -2754,12 +2775,12 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2754
2775
|
opacity: 1
|
|
2755
2776
|
})
|
|
2756
2777
|
}, [
|
|
2757
|
-
(i(), s("svg",
|
|
2778
|
+
(i(), s("svg", Or, [
|
|
2758
2779
|
I("path", {
|
|
2759
2780
|
d: "M 0,10 10,0 10,20 Z",
|
|
2760
2781
|
fill: t.color,
|
|
2761
2782
|
stroke: "none"
|
|
2762
|
-
}, null, 8,
|
|
2783
|
+
}, null, 8, Gr)
|
|
2763
2784
|
])),
|
|
2764
2785
|
I("div", {
|
|
2765
2786
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2773,28 +2794,28 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2773
2794
|
serieName: t.name
|
|
2774
2795
|
}
|
|
2775
2796
|
)
|
|
2776
|
-
}, null, 8,
|
|
2797
|
+
}, null, 8, vr)
|
|
2777
2798
|
], 4)) : h("", !0),
|
|
2778
2799
|
[l.selectedMinimapIndex, l.selectedSerieIndex, l.selectedRowIndex].includes(d) && t.useTag && t.useTag === "start" && e.FINAL_CONFIG.plot.tag.followValue ? (i(), s("div", {
|
|
2779
2800
|
key: 1,
|
|
2780
2801
|
ref_for: !0,
|
|
2781
|
-
ref: (p) => e.setTagRef(
|
|
2802
|
+
ref: (p) => e.setTagRef(c, d, p, "left", "plot"),
|
|
2782
2803
|
class: "vue-ui-xy-tag",
|
|
2783
2804
|
"data-tag": "left",
|
|
2784
|
-
style:
|
|
2805
|
+
style: F({
|
|
2785
2806
|
position: "fixed",
|
|
2786
2807
|
top: e.placeXYTag({
|
|
2787
2808
|
svgElement: l.svgRef,
|
|
2788
2809
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2789
2810
|
y: n.y,
|
|
2790
|
-
element: l.tagRefs[`${
|
|
2811
|
+
element: l.tagRefs[`${c}_${d}_left_plot`],
|
|
2791
2812
|
position: "left"
|
|
2792
2813
|
}).top + "px",
|
|
2793
2814
|
left: e.placeXYTag({
|
|
2794
2815
|
svgElement: l.svgRef,
|
|
2795
2816
|
x: e.drawingArea.left - e.FINAL_CONFIG.plot.tag.fontSize / 1.5,
|
|
2796
2817
|
y: n.y,
|
|
2797
|
-
element: l.tagRefs[`${
|
|
2818
|
+
element: l.tagRefs[`${c}_${d}_left_plot`],
|
|
2798
2819
|
position: "left"
|
|
2799
2820
|
}).left + "px",
|
|
2800
2821
|
height: "fit-content",
|
|
@@ -2806,12 +2827,12 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2806
2827
|
opacity: 1
|
|
2807
2828
|
})
|
|
2808
2829
|
}, [
|
|
2809
|
-
(i(), s("svg",
|
|
2830
|
+
(i(), s("svg", pr, [
|
|
2810
2831
|
I("path", {
|
|
2811
2832
|
d: "M 0,0 10,10 0,20 Z",
|
|
2812
2833
|
fill: t.color,
|
|
2813
2834
|
stroke: "none"
|
|
2814
|
-
}, null, 8,
|
|
2835
|
+
}, null, 8, zr)
|
|
2815
2836
|
])),
|
|
2816
2837
|
I("div", {
|
|
2817
2838
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2825,11 +2846,11 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2825
2846
|
serieName: t.name
|
|
2826
2847
|
}
|
|
2827
2848
|
)
|
|
2828
|
-
}, null, 8,
|
|
2849
|
+
}, null, 8, Mr)
|
|
2829
2850
|
], 4)) : h("", !0)
|
|
2830
2851
|
], 64))), 128))
|
|
2831
2852
|
], 64))), 128)),
|
|
2832
|
-
e.isDataset ? h("", !0) : (i(), U(
|
|
2853
|
+
e.isDataset ? h("", !0) : (i(), U(A, {
|
|
2833
2854
|
key: 6,
|
|
2834
2855
|
config: {
|
|
2835
2856
|
type: "line",
|
|
@@ -2873,9 +2894,9 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2873
2894
|
valueStart: l.slicer.start,
|
|
2874
2895
|
valueEnd: l.slicer.end,
|
|
2875
2896
|
start: l.slicer.start,
|
|
2876
|
-
"onUpdate:start":
|
|
2897
|
+
"onUpdate:start": o[2] || (o[2] = (t) => l.slicer.start = t),
|
|
2877
2898
|
end: l.slicer.end,
|
|
2878
|
-
"onUpdate:end":
|
|
2899
|
+
"onUpdate:end": o[3] || (o[3] = (t) => l.slicer.end = t),
|
|
2879
2900
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2880
2901
|
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...u.dataset.map((t) => e.largestTriangleThreeBucketsArray({ data: t.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2881
2902
|
enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
|
|
@@ -2883,7 +2904,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2883
2904
|
onReset: e.refreshSlicer,
|
|
2884
2905
|
onTrapMouse: e.selectMinimapIndex
|
|
2885
2906
|
}, {
|
|
2886
|
-
"reset-action":
|
|
2907
|
+
"reset-action": B(({ reset: t }) => [
|
|
2887
2908
|
O(r.$slots, "reset-action", $(ee({ reset: t })), void 0, !0)
|
|
2888
2909
|
]),
|
|
2889
2910
|
_: 3
|
|
@@ -2892,14 +2913,14 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2892
2913
|
key: 8,
|
|
2893
2914
|
ref: "chartLegend",
|
|
2894
2915
|
class: "vue-ui-xy-legend",
|
|
2895
|
-
style:
|
|
2916
|
+
style: F(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2896
2917
|
}, [
|
|
2897
|
-
(i(!0), s(g, null, x(e.absoluteDataset, (t,
|
|
2898
|
-
key: `div_legend_item_${
|
|
2918
|
+
(i(!0), s(g, null, x(e.absoluteDataset, (t, c) => (i(), s("div", {
|
|
2919
|
+
key: `div_legend_item_${c}`,
|
|
2899
2920
|
onClick: (n) => e.segregate(t),
|
|
2900
2921
|
class: j({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": l.segregatedSeries.includes(t.id) })
|
|
2901
2922
|
}, [
|
|
2902
|
-
l.icons[t.type] === "line" ? (i(), s("svg",
|
|
2923
|
+
l.icons[t.type] === "line" ? (i(), s("svg", Pr, [
|
|
2903
2924
|
I("rect", {
|
|
2904
2925
|
x: "0",
|
|
2905
2926
|
y: "7.5",
|
|
@@ -2909,7 +2930,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2909
2930
|
height: "3",
|
|
2910
2931
|
width: "20",
|
|
2911
2932
|
fill: t.color
|
|
2912
|
-
}, null, 8,
|
|
2933
|
+
}, null, 8, Vr),
|
|
2913
2934
|
le(N, {
|
|
2914
2935
|
plot: { x: 10, y: 9 },
|
|
2915
2936
|
radius: 4,
|
|
@@ -2918,7 +2939,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2918
2939
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2919
2940
|
strokeWidth: 0.5
|
|
2920
2941
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2921
|
-
])) : l.icons[t.type] === "bar" ? (i(), s("svg",
|
|
2942
|
+
])) : l.icons[t.type] === "bar" ? (i(), s("svg", Rr, [
|
|
2922
2943
|
l.icons[t.type] === "bar" && r.$slots.pattern ? (i(), s("rect", {
|
|
2923
2944
|
key: 0,
|
|
2924
2945
|
x: "0",
|
|
@@ -2928,7 +2949,7 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2928
2949
|
width: "40",
|
|
2929
2950
|
stroke: "none",
|
|
2930
2951
|
fill: t.color
|
|
2931
|
-
}, null, 8,
|
|
2952
|
+
}, null, 8, Hr)) : h("", !0),
|
|
2932
2953
|
l.icons[t.type] === "bar" ? (i(), s("rect", {
|
|
2933
2954
|
key: 1,
|
|
2934
2955
|
x: "0",
|
|
@@ -2938,8 +2959,8 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2938
2959
|
width: "40",
|
|
2939
2960
|
stroke: "none",
|
|
2940
2961
|
fill: r.$slots.pattern ? `url(#pattern_${l.uniqueId}_${t.slotAbsoluteIndex})` : t.color
|
|
2941
|
-
}, null, 8,
|
|
2942
|
-
])) : (i(), s("svg",
|
|
2962
|
+
}, null, 8, Dr)) : h("", !0)
|
|
2963
|
+
])) : (i(), s("svg", Br, [
|
|
2943
2964
|
le(N, {
|
|
2944
2965
|
plot: { x: 6, y: 6 },
|
|
2945
2966
|
radius: 5,
|
|
@@ -2948,13 +2969,13 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2948
2969
|
}, null, 8, ["color", "shape"])
|
|
2949
2970
|
])),
|
|
2950
2971
|
I("span", {
|
|
2951
|
-
style:
|
|
2972
|
+
style: F(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2952
2973
|
}, V(t.name), 5)
|
|
2953
|
-
], 10,
|
|
2954
|
-
], 4)) : (i(), s("div",
|
|
2974
|
+
], 10, Tr))), 128))
|
|
2975
|
+
], 4)) : (i(), s("div", Wr, [
|
|
2955
2976
|
O(r.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2956
2977
|
], 512)),
|
|
2957
|
-
r.$slots.source ? (i(), s("div",
|
|
2978
|
+
r.$slots.source ? (i(), s("div", Er, [
|
|
2958
2979
|
O(r.$slots, "source", {}, void 0, !0)
|
|
2959
2980
|
], 512)) : h("", !0),
|
|
2960
2981
|
le(m, {
|
|
@@ -2973,10 +2994,10 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2973
2994
|
isFullscreen: l.isFullscreen,
|
|
2974
2995
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2975
2996
|
}, {
|
|
2976
|
-
"tooltip-before":
|
|
2997
|
+
"tooltip-before": B(() => [
|
|
2977
2998
|
O(r.$slots, "tooltip-before", $(ee({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2978
2999
|
]),
|
|
2979
|
-
"tooltip-after":
|
|
3000
|
+
"tooltip-after": B(() => [
|
|
2980
3001
|
O(r.$slots, "tooltip-after", $(ee({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2981
3002
|
]),
|
|
2982
3003
|
_: 3
|
|
@@ -2997,22 +3018,22 @@ function Yr(r, c, u, f, l, e) {
|
|
|
2997
3018
|
}
|
|
2998
3019
|
}
|
|
2999
3020
|
}, {
|
|
3000
|
-
content:
|
|
3021
|
+
content: B(() => [
|
|
3001
3022
|
I("div", {
|
|
3002
|
-
style:
|
|
3023
|
+
style: F(`${l.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
3003
3024
|
}, [
|
|
3004
|
-
I("div",
|
|
3005
|
-
|
|
3025
|
+
I("div", Yr, [
|
|
3026
|
+
tt(I("input", {
|
|
3006
3027
|
type: "checkbox",
|
|
3007
|
-
"onUpdate:modelValue":
|
|
3028
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => l.showSparklineTable = t)
|
|
3008
3029
|
}, null, 512), [
|
|
3009
|
-
[
|
|
3030
|
+
[lt, l.showSparklineTable]
|
|
3010
3031
|
]),
|
|
3011
3032
|
I("div", {
|
|
3012
|
-
onClick:
|
|
3033
|
+
onClick: o[5] || (o[5] = (t) => l.showSparklineTable = !l.showSparklineTable),
|
|
3013
3034
|
style: { cursor: "pointer" }
|
|
3014
3035
|
}, [
|
|
3015
|
-
le(
|
|
3036
|
+
le(y, {
|
|
3016
3037
|
name: "chartLine",
|
|
3017
3038
|
size: 20,
|
|
3018
3039
|
stroke: e.FINAL_CONFIG.chart.color
|
|
@@ -3030,13 +3051,13 @@ function Yr(r, c, u, f, l, e) {
|
|
|
3030
3051
|
body: e.dataTable.body,
|
|
3031
3052
|
config: e.dataTable.config,
|
|
3032
3053
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
3033
|
-
onClose:
|
|
3054
|
+
onClose: o[6] || (o[6] = (t) => l.mutableConfig.showTable = !1)
|
|
3034
3055
|
}, {
|
|
3035
|
-
th:
|
|
3036
|
-
I("div", { innerHTML: t }, null, 8,
|
|
3056
|
+
th: B(({ th: t }) => [
|
|
3057
|
+
I("div", { innerHTML: t }, null, 8, qr)
|
|
3037
3058
|
]),
|
|
3038
|
-
td:
|
|
3039
|
-
|
|
3059
|
+
td: B(({ td: t }) => [
|
|
3060
|
+
rt(V(isNaN(Number(t)) ? t : e.dataLabel({
|
|
3040
3061
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
3041
3062
|
v: t,
|
|
3042
3063
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -3049,9 +3070,9 @@ function Yr(r, c, u, f, l, e) {
|
|
|
3049
3070
|
]),
|
|
3050
3071
|
_: 1
|
|
3051
3072
|
}, 8, ["config"])) : h("", !0)
|
|
3052
|
-
], 46,
|
|
3073
|
+
], 46, ht);
|
|
3053
3074
|
}
|
|
3054
|
-
const
|
|
3075
|
+
const la = /* @__PURE__ */ nt(ot, [["render", Xr], ["__scopeId", "data-v-2bc488d7"]]);
|
|
3055
3076
|
export {
|
|
3056
|
-
|
|
3077
|
+
la as default
|
|
3057
3078
|
};
|