vue-data-ui 3.20.10 → 3.20.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-BbgWxFC4.js → PackageVersion-eS823iMF.js} +1 -1
- package/dist/SlicerPreview-By4kBVCY.js +1676 -0
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-CBjd88aV.js → vue-data-ui-0t8DsSSW.js} +61 -61
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmMi_eVe.js → vue-ui-3d-bar-D1dX4mDU.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CbJDodNj.js → vue-ui-age-pyramid-BYIxO-rR.js} +1 -1
- package/dist/{vue-ui-bullet-rCmOch09.js → vue-ui-bullet-B65T4IyK.js} +1 -1
- package/dist/{vue-ui-bump-S-FGGlPW.js → vue-ui-bump-CE8VRCs2.js} +1 -1
- package/dist/{vue-ui-candlestick-BaaswVai.js → vue-ui-candlestick-B4tkLoQe.js} +2 -2
- package/dist/{vue-ui-carousel-table-DFUP6c1B.js → vue-ui-carousel-table-DB1kG5AJ.js} +1 -1
- package/dist/{vue-ui-chestnut-DKNsQA7h.js → vue-ui-chestnut-CXzK4gsf.js} +1 -1
- package/dist/{vue-ui-chord-BMkz02R6.js → vue-ui-chord-BhuABwXT.js} +1 -1
- package/dist/{vue-ui-circle-pack--4oUO8hO.js → vue-ui-circle-pack-SCxS2mrl.js} +1 -1
- package/dist/{vue-ui-cursor-C7zZVebz.js → vue-ui-cursor-DT8uNrQa.js} +1 -1
- package/dist/{vue-ui-dag-DsCnV6f0.js → vue-ui-dag-CK30vhll.js} +1 -1
- package/dist/{vue-ui-dashboard-CmTnG8CS.js → vue-ui-dashboard-Cf21Q0H0.js} +58 -58
- package/dist/{vue-ui-digits-BQ0e9Czq.js → vue-ui-digits-DiapBzIK.js} +1 -1
- package/dist/{vue-ui-donut-BLlR2VgI.js → vue-ui-donut-DrM628Ge.js} +1 -1
- package/dist/{vue-ui-donut-evolution-kXDchwtH.js → vue-ui-donut-evolution-CIXY4tKY.js} +1 -1
- package/dist/{vue-ui-dumbbell-BWuXbccQ.js → vue-ui-dumbbell-B8V84XkY.js} +1 -1
- package/dist/{vue-ui-flow-jBINqYMb.js → vue-ui-flow-uPuvDSxv.js} +1 -1
- package/dist/{vue-ui-funnel-B9DsneCv.js → vue-ui-funnel-CCy9NFKa.js} +1 -1
- package/dist/{vue-ui-galaxy-SAZjgllD.js → vue-ui-galaxy-BjoOO1lq.js} +1 -1
- package/dist/{vue-ui-gauge-NSzY9L6X.js → vue-ui-gauge-DbV0oQs3.js} +1 -1
- package/dist/{vue-ui-geo-B41ZRCPC.js → vue-ui-geo-C8FXD9it.js} +1 -1
- package/dist/{vue-ui-gizmo-PL2TAIV_.js → vue-ui-gizmo-BiLdRUEw.js} +1 -1
- package/dist/{vue-ui-heatmap-NkJ_KGMs.js → vue-ui-heatmap-D3ewCJX6.js} +1 -1
- package/dist/{vue-ui-history-plot-B9KX1kKs.js → vue-ui-history-plot-BpyvvMPA.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-mmoqYnkA.js → vue-ui-horizontal-bar-DoCvNzdC.js} +1 -1
- package/dist/{vue-ui-kpi-Bo4x1-vC.js → vue-ui-kpi-YCPfpGty.js} +1 -1
- package/dist/{vue-ui-molecule-QoXYCfyP.js → vue-ui-molecule-IFNTvQdE.js} +1 -1
- package/dist/{vue-ui-mood-radar-DE71e1H_.js → vue-ui-mood-radar-81X63j-D.js} +1 -1
- package/dist/{vue-ui-nested-donuts-DQhSwNYF.js → vue-ui-nested-donuts-C1j-h8RW.js} +1 -1
- package/dist/{vue-ui-onion-X9anqRDz.js → vue-ui-onion-CZLJxedN.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-aN0OHwgH.js → vue-ui-parallel-coordinate-plot-Czndz3oA.js} +1 -1
- package/dist/{vue-ui-quadrant-CpKMBoX9.js → vue-ui-quadrant-LwMr7DKL.js} +1 -1
- package/dist/{vue-ui-quick-chart-BwD7IGYx.js → vue-ui-quick-chart-C20W7LNY.js} +1 -1
- package/dist/{vue-ui-radar-TfxsgQrA.js → vue-ui-radar-Dxopl3RI.js} +1 -1
- package/dist/{vue-ui-relation-circle-CMqV9U6C.js → vue-ui-relation-circle-CMRXow6X.js} +1 -1
- package/dist/{vue-ui-ridgeline-68X0PTKo.js → vue-ui-ridgeline-B5BRKUoc.js} +1 -1
- package/dist/{vue-ui-rings-cDPIzhPb.js → vue-ui-rings-DVA3hiUL.js} +1 -1
- package/dist/{vue-ui-scatter-8nirnHQi.js → vue-ui-scatter-DcveiIfl.js} +1 -1
- package/dist/{vue-ui-skeleton-BD0JzrcV.js → vue-ui-skeleton-DxXA3XSP.js} +1 -1
- package/dist/{vue-ui-spark-trend-DLXJpfGh.js → vue-ui-spark-trend-B3mkyeZ3.js} +1 -1
- package/dist/{vue-ui-sparkbar-5pFFPu5l.js → vue-ui-sparkbar-BlmV-ndv.js} +1 -1
- package/dist/{vue-ui-sparkgauge--CihPbUW.js → vue-ui-sparkgauge-DKRJDqAS.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjrIcako.js → vue-ui-sparkhistogram-BNiXxI65.js} +1 -1
- package/dist/{vue-ui-sparkline-DPZm7RqN.js → vue-ui-sparkline-C5EDZIAt.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dlg1W_fF.js → vue-ui-sparkstackbar-C6qMimoL.js} +1 -1
- package/dist/{vue-ui-stackbar-DltfPoDm.js → vue-ui-stackbar-C7jTnGyT.js} +2 -2
- package/dist/{vue-ui-stackline-6agFEYxZ.js → vue-ui-stackline-fdOF6lLn.js} +2 -2
- package/dist/{vue-ui-strip-plot-CEE-cw3d.js → vue-ui-strip-plot-CvjdxEOT.js} +1 -1
- package/dist/{vue-ui-table-C7AvFChf.js → vue-ui-table-B0zkvlw5.js} +12 -12
- package/dist/{vue-ui-table-sparkline-DgTHhaZI.js → vue-ui-table-sparkline-BQjo2sbB.js} +1 -1
- package/dist/{vue-ui-thermometer-Cg7jcmgc.js → vue-ui-thermometer-CVhxnkN-.js} +1 -1
- package/dist/{vue-ui-timer-U045embk.js → vue-ui-timer-Cimuw9rF.js} +1 -1
- package/dist/{vue-ui-tiremarks-T55IpHYP.js → vue-ui-tiremarks-CSPL1oli.js} +1 -1
- package/dist/{vue-ui-treemap-BPQ-Ekq4.js → vue-ui-treemap-BWivpffU.js} +1 -1
- package/dist/{vue-ui-waffle-DNCJGwEA.js → vue-ui-waffle-FmLPDL2g.js} +1 -1
- package/dist/{vue-ui-wheel-5GuVbUOq.js → vue-ui-wheel-BjdVO5f4.js} +1 -1
- package/dist/{vue-ui-word-cloud-Cs-MBJJU.js → vue-ui-word-cloud-hhjEM6ee.js} +1 -1
- package/dist/{vue-ui-world-D3v5f6dU.js → vue-ui-world-H9HX6smc.js} +1 -1
- package/dist/{vue-ui-xy-canvas-Ww81eEZ6.js → vue-ui-xy-canvas-kbP-mjEo.js} +1 -1
- package/dist/{vue-ui-xy-C0kcCaFA.js → vue-ui-xy-omDIF90L.js} +1001 -1004
- package/package.json +2 -2
- package/dist/SlicerPreview-CpvCUAIM.js +0 -1669
|
@@ -14,68 +14,121 @@ import { n as Ue } from "./Title-NWp4qB4K.js";
|
|
|
14
14
|
import { t as We } from "./vue_ui_xy-BA3-_LCx.js";
|
|
15
15
|
import { t as Ge } from "./Shape-BPCJfphn.js";
|
|
16
16
|
import { t as Ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
17
|
-
import { t as qe } from "./SlicerPreview-
|
|
17
|
+
import { t as qe } from "./SlicerPreview-By4kBVCY.js";
|
|
18
18
|
import { t as Je } from "./vue-ui-accordion-Bpbv-VHE.js";
|
|
19
19
|
import { t as Ye } from "./BaseLegendToggle-C_Db-y7s.js";
|
|
20
20
|
import { t as Xe } from "./A11yDataTable-BCbtxMU6.js";
|
|
21
21
|
import { Fragment as y, Teleport as Ze, computed as b, createBlock as Qe, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as $e, createTextVNode as et, createVNode as tt, defineAsyncComponent as nt, getCurrentInstance as rt, guardReactiveProps as it, mergeProps as at, nextTick as ot, normalizeClass as st, normalizeProps as ct, normalizeStyle as w, onBeforeUnmount as lt, onMounted as ut, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as dt, shallowRef as ft, toDisplayString as pt, toRefs as mt, unref as k, useSlots as ht, vModelCheckbox as gt, watch as _t, watchEffect as vt, withCtx as A, withDirectives as yt } from "vue";
|
|
22
|
+
//#region src/utils/xy.js
|
|
23
|
+
function bt(e) {
|
|
24
|
+
return ![
|
|
25
|
+
null,
|
|
26
|
+
void 0,
|
|
27
|
+
NaN,
|
|
28
|
+
Infinity,
|
|
29
|
+
-Infinity
|
|
30
|
+
].includes(e);
|
|
31
|
+
}
|
|
32
|
+
function xt(e, t) {
|
|
33
|
+
let n = Ot(e), r = Array(n).fill(0);
|
|
34
|
+
for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
|
|
35
|
+
return r;
|
|
36
|
+
}
|
|
37
|
+
function St(e, t) {
|
|
38
|
+
let n = Object.create(null);
|
|
39
|
+
for (let r = 0; r < e.length; r += 1) {
|
|
40
|
+
let i = e[r], a = String(t(i));
|
|
41
|
+
n[a] || (n[a] = []), n[a].push(i);
|
|
42
|
+
}
|
|
43
|
+
return n;
|
|
44
|
+
}
|
|
45
|
+
function Ct(e) {
|
|
46
|
+
return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
|
|
47
|
+
}
|
|
48
|
+
function wt(e, t) {
|
|
49
|
+
let n = Number(e), r = Number(t);
|
|
50
|
+
return !Number.isFinite(n) || !Number.isFinite(r) ? !1 : !Object.is(n, r);
|
|
51
|
+
}
|
|
52
|
+
function Tt(e) {
|
|
53
|
+
let t = /* @__PURE__ */ new WeakMap();
|
|
54
|
+
return (n, ...r) => {
|
|
55
|
+
let i = t.get(n), a = JSON.stringify(r);
|
|
56
|
+
if (i && i.has(a)) return i.get(a);
|
|
57
|
+
let o = e(n, ...r);
|
|
58
|
+
return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function Et(e, t) {
|
|
62
|
+
let n = Number.isFinite(e) ? e : 0, r = Number.isFinite(t) ? t : 1;
|
|
63
|
+
return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
|
|
64
|
+
min: n,
|
|
65
|
+
max: r
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function Dt(e, t, n = 0) {
|
|
69
|
+
return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
|
|
70
|
+
}
|
|
71
|
+
function Ot(e) {
|
|
72
|
+
return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
22
75
|
//#region src/components/vue-ui-xy.vue
|
|
23
|
-
var
|
|
76
|
+
var kt = /* @__PURE__ */ e({ default: () => j }), At = ["id"], jt = ["id"], Mt = ["id"], Nt = { style: { position: "relative" } }, Pt = [
|
|
24
77
|
"viewBox",
|
|
25
78
|
"aria-label",
|
|
26
79
|
"aria-describedby"
|
|
27
|
-
],
|
|
80
|
+
], Ft = [
|
|
28
81
|
"x",
|
|
29
82
|
"y",
|
|
30
83
|
"width",
|
|
31
84
|
"height"
|
|
32
|
-
],
|
|
85
|
+
], It = { key: 1 }, Lt = { class: "vue-ui-xy-grid" }, Rt = [
|
|
33
86
|
"stroke",
|
|
34
87
|
"x1",
|
|
35
88
|
"x2",
|
|
36
89
|
"y1",
|
|
37
90
|
"y2"
|
|
38
|
-
],
|
|
91
|
+
], zt = [
|
|
39
92
|
"stroke",
|
|
40
93
|
"x1",
|
|
41
94
|
"x2",
|
|
42
95
|
"y1",
|
|
43
96
|
"y2"
|
|
44
|
-
],
|
|
97
|
+
], Bt = { key: 1 }, Vt = [
|
|
45
98
|
"x1",
|
|
46
99
|
"x2",
|
|
47
100
|
"y1",
|
|
48
101
|
"y2",
|
|
49
102
|
"stroke"
|
|
50
|
-
],
|
|
103
|
+
], Ht = [
|
|
51
104
|
"x1",
|
|
52
105
|
"x2",
|
|
53
106
|
"y1",
|
|
54
107
|
"y2",
|
|
55
108
|
"stroke"
|
|
56
|
-
],
|
|
109
|
+
], Ut = [
|
|
57
110
|
"x1",
|
|
58
111
|
"x2",
|
|
59
112
|
"y1",
|
|
60
113
|
"y2",
|
|
61
114
|
"stroke"
|
|
62
|
-
],
|
|
115
|
+
], Wt = { key: 3 }, Gt = ["d", "stroke"], Kt = { key: 4 }, qt = ["d", "stroke"], Jt = ["id"], Yt = ["stop-color"], Xt = ["stop-color"], Zt = ["stop-color"], Qt = ["id"], $t = ["stop-color"], en = ["stop-color"], tn = ["stop-color"], nn = ["id"], rn = ["stop-color"], an = ["stop-color"], on = ["id"], sn = ["stop-color"], cn = ["stop-color"], ln = ["id"], un = ["stop-color"], dn = ["stop-color"], fn = { key: 0 }, pn = ["id"], mn = ["stop-color", "offset"], hn = [
|
|
63
116
|
"x",
|
|
64
117
|
"y",
|
|
65
118
|
"height",
|
|
66
119
|
"width",
|
|
67
120
|
"fill"
|
|
68
|
-
],
|
|
121
|
+
], gn = [
|
|
69
122
|
"x",
|
|
70
123
|
"y",
|
|
71
124
|
"width"
|
|
72
|
-
],
|
|
125
|
+
], _n = { key: 0 }, vn = [
|
|
73
126
|
"x",
|
|
74
127
|
"y",
|
|
75
128
|
"height",
|
|
76
129
|
"width",
|
|
77
130
|
"fill"
|
|
78
|
-
],
|
|
131
|
+
], yn = [
|
|
79
132
|
"x",
|
|
80
133
|
"y",
|
|
81
134
|
"height",
|
|
@@ -84,7 +137,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
84
137
|
"fill",
|
|
85
138
|
"stroke",
|
|
86
139
|
"stroke-width"
|
|
87
|
-
],
|
|
140
|
+
], bn = [
|
|
88
141
|
"x",
|
|
89
142
|
"y",
|
|
90
143
|
"height",
|
|
@@ -93,17 +146,17 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
93
146
|
"fill",
|
|
94
147
|
"stroke",
|
|
95
148
|
"stroke-width"
|
|
96
|
-
],
|
|
149
|
+
], xn = [
|
|
97
150
|
"width",
|
|
98
151
|
"x",
|
|
99
152
|
"y"
|
|
100
|
-
],
|
|
153
|
+
], Sn = [
|
|
101
154
|
"stroke",
|
|
102
155
|
"x1",
|
|
103
156
|
"x2",
|
|
104
157
|
"y1",
|
|
105
158
|
"y2"
|
|
106
|
-
],
|
|
159
|
+
], Cn = { key: 3 }, wn = [
|
|
107
160
|
"x1",
|
|
108
161
|
"x2",
|
|
109
162
|
"y1",
|
|
@@ -111,10 +164,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
111
164
|
"stroke",
|
|
112
165
|
"stroke-width",
|
|
113
166
|
"stroke-dasharray"
|
|
114
|
-
],
|
|
167
|
+
], Tn = {
|
|
115
168
|
key: 4,
|
|
116
169
|
class: "vue-ui-xy-crosshair-selection"
|
|
117
|
-
},
|
|
170
|
+
}, En = [
|
|
118
171
|
"x1",
|
|
119
172
|
"x2",
|
|
120
173
|
"y1",
|
|
@@ -122,7 +175,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
122
175
|
"stroke",
|
|
123
176
|
"stroke-width",
|
|
124
177
|
"stroke-dasharray"
|
|
125
|
-
],
|
|
178
|
+
], Dn = [
|
|
126
179
|
"x1",
|
|
127
180
|
"x2",
|
|
128
181
|
"y1",
|
|
@@ -130,14 +183,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
130
183
|
"stroke",
|
|
131
184
|
"stroke-width",
|
|
132
185
|
"stroke-dasharray"
|
|
133
|
-
],
|
|
186
|
+
], On = [
|
|
134
187
|
"cx",
|
|
135
188
|
"cy",
|
|
136
189
|
"r",
|
|
137
190
|
"fill",
|
|
138
191
|
"stroke",
|
|
139
192
|
"stroke-width"
|
|
140
|
-
],
|
|
193
|
+
], kn = [
|
|
141
194
|
"x",
|
|
142
195
|
"y",
|
|
143
196
|
"width",
|
|
@@ -147,222 +200,222 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
147
200
|
"stroke-linecap",
|
|
148
201
|
"stroke-linejoin",
|
|
149
202
|
"stroke-dasharray"
|
|
150
|
-
],
|
|
203
|
+
], An = ["opacity"], jn = [
|
|
151
204
|
"x1",
|
|
152
205
|
"x2",
|
|
153
206
|
"y1",
|
|
154
207
|
"y2",
|
|
155
208
|
"stroke",
|
|
156
209
|
"stroke-width"
|
|
157
|
-
],
|
|
210
|
+
], Mn = [
|
|
158
211
|
"fill",
|
|
159
212
|
"font-size",
|
|
160
213
|
"transform"
|
|
161
|
-
],
|
|
214
|
+
], Nn = [
|
|
162
215
|
"x1",
|
|
163
216
|
"x2",
|
|
164
217
|
"y1",
|
|
165
218
|
"y2",
|
|
166
219
|
"stroke"
|
|
167
|
-
],
|
|
220
|
+
], Pn = [
|
|
168
221
|
"transform",
|
|
169
222
|
"text-anchor",
|
|
170
223
|
"font-size",
|
|
171
224
|
"fill"
|
|
172
|
-
],
|
|
225
|
+
], Fn = [
|
|
173
226
|
"x1",
|
|
174
227
|
"x2",
|
|
175
228
|
"y1",
|
|
176
229
|
"y2",
|
|
177
230
|
"stroke"
|
|
178
|
-
],
|
|
231
|
+
], In = [
|
|
179
232
|
"transform",
|
|
180
233
|
"font-size",
|
|
181
234
|
"text-anchor",
|
|
182
235
|
"fill"
|
|
183
|
-
],
|
|
236
|
+
], Ln = {
|
|
184
237
|
key: 7,
|
|
185
238
|
class: "vue-ui-xy-crosshair-selection"
|
|
186
|
-
},
|
|
239
|
+
}, Rn = [
|
|
187
240
|
"transform",
|
|
188
241
|
"font-size",
|
|
189
242
|
"text-anchor",
|
|
190
243
|
"fill"
|
|
191
|
-
],
|
|
244
|
+
], zn = {
|
|
192
245
|
key: 8,
|
|
193
246
|
class: "vue-ui-xy-crosshair-selection"
|
|
194
|
-
},
|
|
247
|
+
}, Bn = [
|
|
195
248
|
"cx",
|
|
196
249
|
"cy",
|
|
197
250
|
"r",
|
|
198
251
|
"fill",
|
|
199
252
|
"stroke",
|
|
200
253
|
"stroke-width"
|
|
201
|
-
],
|
|
254
|
+
], Vn = [
|
|
202
255
|
"width",
|
|
203
256
|
"x",
|
|
204
257
|
"y"
|
|
205
|
-
],
|
|
258
|
+
], Hn = { style: { width: "100%" } }, Un = [
|
|
206
259
|
"d",
|
|
207
260
|
"stroke",
|
|
208
261
|
"stroke-width",
|
|
209
262
|
"stroke-dasharray"
|
|
210
|
-
],
|
|
263
|
+
], Wn = [
|
|
211
264
|
"d",
|
|
212
265
|
"stroke",
|
|
213
266
|
"stroke-width",
|
|
214
267
|
"stroke-dasharray"
|
|
215
|
-
],
|
|
268
|
+
], Gn = { key: 9 }, Kn = { key: 10 }, qn = [
|
|
216
269
|
"d",
|
|
217
270
|
"fill",
|
|
218
271
|
"fill-opacity"
|
|
219
|
-
],
|
|
272
|
+
], Jn = { key: 0 }, Yn = ["d", "fill"], Xn = ["d", "fill"], Zn = ["d", "fill"], Qn = ["d", "fill"], $n = [
|
|
220
273
|
"d",
|
|
221
274
|
"stroke",
|
|
222
275
|
"stroke-width",
|
|
223
276
|
"stroke-dasharray"
|
|
224
|
-
],
|
|
277
|
+
], er = [
|
|
225
278
|
"d",
|
|
226
279
|
"stroke",
|
|
227
280
|
"stroke-width",
|
|
228
281
|
"stroke-dasharray"
|
|
229
|
-
],
|
|
282
|
+
], tr = [
|
|
230
283
|
"d",
|
|
231
284
|
"stroke",
|
|
232
285
|
"stroke-width",
|
|
233
286
|
"stroke-dasharray"
|
|
234
|
-
],
|
|
287
|
+
], nr = [
|
|
235
288
|
"d",
|
|
236
289
|
"stroke",
|
|
237
290
|
"stroke-width",
|
|
238
291
|
"stroke-dasharray"
|
|
239
|
-
],
|
|
292
|
+
], rr = [
|
|
240
293
|
"width",
|
|
241
294
|
"x",
|
|
242
295
|
"y"
|
|
243
|
-
],
|
|
296
|
+
], ir = { style: { width: "100%" } }, ar = { key: 11 }, or = [
|
|
244
297
|
"text-anchor",
|
|
245
298
|
"font-size",
|
|
246
299
|
"transform",
|
|
247
300
|
"fill",
|
|
248
301
|
"stroke",
|
|
249
302
|
"innerHTML"
|
|
250
|
-
],
|
|
303
|
+
], sr = [
|
|
251
304
|
"x",
|
|
252
305
|
"y",
|
|
253
306
|
"font-size",
|
|
254
307
|
"fill",
|
|
255
308
|
"font-weight"
|
|
256
|
-
],
|
|
309
|
+
], cr = { key: 12 }, lr = [
|
|
257
310
|
"transform",
|
|
258
311
|
"text-anchor",
|
|
259
312
|
"font-size",
|
|
260
313
|
"fill",
|
|
261
314
|
"stroke",
|
|
262
315
|
"innerHTML"
|
|
263
|
-
],
|
|
316
|
+
], ur = { key: 13 }, dr = ["x", "y"], fr = ["innerHTML"], pr = ["x", "y"], mr = ["innerHTML"], hr = [
|
|
264
317
|
"x1",
|
|
265
318
|
"x2",
|
|
266
319
|
"y1",
|
|
267
320
|
"y2",
|
|
268
321
|
"stroke"
|
|
269
|
-
],
|
|
322
|
+
], gr = { key: 14 }, _r = [
|
|
270
323
|
"transform",
|
|
271
324
|
"text-anchor",
|
|
272
325
|
"font-size",
|
|
273
326
|
"fill",
|
|
274
327
|
"stroke",
|
|
275
328
|
"innerHTML"
|
|
276
|
-
],
|
|
329
|
+
], vr = { key: 15 }, yr = ["x", "y"], br = ["innerHTML"], xr = ["x", "y"], Sr = ["innerHTML"], Cr = [
|
|
277
330
|
"x1",
|
|
278
331
|
"x2",
|
|
279
332
|
"y1",
|
|
280
333
|
"y2",
|
|
281
334
|
"stroke"
|
|
282
|
-
],
|
|
335
|
+
], wr = [
|
|
283
336
|
"x",
|
|
284
337
|
"y",
|
|
285
338
|
"font-size",
|
|
286
339
|
"fill",
|
|
287
340
|
"innerHTML"
|
|
288
|
-
],
|
|
341
|
+
], Tr = [
|
|
289
342
|
"x",
|
|
290
343
|
"y",
|
|
291
344
|
"font-size",
|
|
292
345
|
"fill",
|
|
293
346
|
"innerHTML"
|
|
294
|
-
],
|
|
347
|
+
], Er = [
|
|
295
348
|
"x",
|
|
296
349
|
"y",
|
|
297
350
|
"font-size",
|
|
298
351
|
"fill",
|
|
299
352
|
"innerHTML"
|
|
300
|
-
],
|
|
353
|
+
], Dr = [
|
|
301
354
|
"x",
|
|
302
355
|
"y",
|
|
303
356
|
"font-size",
|
|
304
357
|
"fill",
|
|
305
358
|
"innerHTML"
|
|
306
|
-
],
|
|
359
|
+
], Or = { key: 0 }, kr = ["id"], Ar = ["fill", "stroke"], jr = [
|
|
307
360
|
"x1",
|
|
308
361
|
"x2",
|
|
309
362
|
"y1",
|
|
310
363
|
"y2",
|
|
311
364
|
"stroke",
|
|
312
365
|
"marker-end"
|
|
313
|
-
],
|
|
366
|
+
], Mr = [
|
|
314
367
|
"x1",
|
|
315
368
|
"x2",
|
|
316
369
|
"y1",
|
|
317
370
|
"y2",
|
|
318
371
|
"stroke",
|
|
319
372
|
"marker-end"
|
|
320
|
-
],
|
|
373
|
+
], Nr = [
|
|
321
374
|
"x",
|
|
322
375
|
"y",
|
|
323
376
|
"font-size",
|
|
324
377
|
"fill",
|
|
325
378
|
"stroke"
|
|
326
|
-
],
|
|
379
|
+
], Pr = [
|
|
327
380
|
"id",
|
|
328
381
|
"x1",
|
|
329
382
|
"x2"
|
|
330
|
-
],
|
|
383
|
+
], Fr = ["stop-color"], Ir = ["stop-color"], Lr = [
|
|
331
384
|
"x",
|
|
332
385
|
"y",
|
|
333
386
|
"width",
|
|
334
387
|
"height",
|
|
335
388
|
"fill",
|
|
336
389
|
"onMouseenter"
|
|
337
|
-
],
|
|
390
|
+
], Rr = [
|
|
338
391
|
"font-size",
|
|
339
392
|
"fill",
|
|
340
393
|
"transform"
|
|
341
|
-
],
|
|
394
|
+
], zr = [
|
|
342
395
|
"x",
|
|
343
396
|
"y",
|
|
344
397
|
"font-size",
|
|
345
398
|
"fill"
|
|
346
|
-
],
|
|
399
|
+
], Br = ["opacity"], Vr = [
|
|
347
400
|
"text-anchor",
|
|
348
401
|
"font-size",
|
|
349
402
|
"fill",
|
|
350
403
|
"transform",
|
|
351
404
|
"onClick"
|
|
352
|
-
],
|
|
405
|
+
], Hr = [
|
|
353
406
|
"text-anchor",
|
|
354
407
|
"font-size",
|
|
355
408
|
"fill",
|
|
356
409
|
"transform",
|
|
357
410
|
"innerHTML",
|
|
358
411
|
"onClick"
|
|
359
|
-
],
|
|
412
|
+
], Ur = { key: 18 }, Wr = [
|
|
360
413
|
"text-anchor",
|
|
361
414
|
"font-size",
|
|
362
415
|
"fill",
|
|
363
416
|
"transform",
|
|
364
417
|
"innerHTML"
|
|
365
|
-
],
|
|
418
|
+
], Gr = { key: 19 }, Kr = [
|
|
366
419
|
"x1",
|
|
367
420
|
"y1",
|
|
368
421
|
"x2",
|
|
@@ -370,7 +423,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
370
423
|
"stroke",
|
|
371
424
|
"stroke-width",
|
|
372
425
|
"stroke-dasharray"
|
|
373
|
-
],
|
|
426
|
+
], qr = [
|
|
374
427
|
"x1",
|
|
375
428
|
"y1",
|
|
376
429
|
"x2",
|
|
@@ -378,28 +431,28 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
378
431
|
"stroke",
|
|
379
432
|
"stroke-width",
|
|
380
433
|
"stroke-dasharray"
|
|
381
|
-
],
|
|
434
|
+
], Jr = [
|
|
382
435
|
"y",
|
|
383
436
|
"x",
|
|
384
437
|
"width",
|
|
385
438
|
"height",
|
|
386
439
|
"fill"
|
|
387
|
-
],
|
|
440
|
+
], Yr = [
|
|
388
441
|
"id",
|
|
389
442
|
"x",
|
|
390
443
|
"y",
|
|
391
444
|
"font-size",
|
|
392
445
|
"fill",
|
|
393
446
|
"text-anchor"
|
|
394
|
-
],
|
|
447
|
+
], Xr = {
|
|
395
448
|
key: 20,
|
|
396
449
|
style: { "pointer-events": "none" }
|
|
397
|
-
},
|
|
450
|
+
}, Zr = ["x", "y"], Qr = ["innerHTML"], $r = [
|
|
398
451
|
"cx",
|
|
399
452
|
"cy",
|
|
400
453
|
"r",
|
|
401
454
|
"fill"
|
|
402
|
-
],
|
|
455
|
+
], ei = ["data-start", "data-end"], ti = {
|
|
403
456
|
key: 0,
|
|
404
457
|
style: {
|
|
405
458
|
position: "absolute",
|
|
@@ -409,10 +462,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
409
462
|
},
|
|
410
463
|
"data-dom-to-png-ignore": "",
|
|
411
464
|
"aria-hidden": "true"
|
|
412
|
-
},
|
|
465
|
+
}, ni = {
|
|
413
466
|
key: 5,
|
|
414
467
|
class: "vue-data-ui-watermark"
|
|
415
|
-
},
|
|
468
|
+
}, ri = {
|
|
416
469
|
class: "vue-ui-xy-tag-arrow",
|
|
417
470
|
height: "20",
|
|
418
471
|
viewBox: "0 0 10 20",
|
|
@@ -422,7 +475,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
422
475
|
top: "50%",
|
|
423
476
|
transform: "translateY(-50%)"
|
|
424
477
|
}
|
|
425
|
-
},
|
|
478
|
+
}, ii = ["fill"], ai = ["innerHTML"], oi = {
|
|
426
479
|
class: "vue-ui-xy-tag-arrow",
|
|
427
480
|
height: "100%",
|
|
428
481
|
viewBox: "0 0 10 20",
|
|
@@ -432,7 +485,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
432
485
|
top: "50%",
|
|
433
486
|
transform: "translateY(-50%)"
|
|
434
487
|
}
|
|
435
|
-
},
|
|
488
|
+
}, si = ["fill"], ci = ["innerHTML"], li = {
|
|
436
489
|
class: "vue-ui-xy-tag-arrow",
|
|
437
490
|
height: "20",
|
|
438
491
|
viewBox: "0 0 10 20",
|
|
@@ -442,7 +495,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
442
495
|
top: "50%",
|
|
443
496
|
transform: "translateY(-50%)"
|
|
444
497
|
}
|
|
445
|
-
},
|
|
498
|
+
}, ui = ["fill"], di = ["innerHTML"], fi = {
|
|
446
499
|
class: "vue-ui-xy-tag-arrow",
|
|
447
500
|
height: "100%",
|
|
448
501
|
viewBox: "0 0 10 20",
|
|
@@ -452,25 +505,25 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
452
505
|
top: "50%",
|
|
453
506
|
transform: "translateY(-50%)"
|
|
454
507
|
}
|
|
455
|
-
},
|
|
508
|
+
}, pi = ["fill"], mi = ["innerHTML"], hi = ["id"], gi = ["onClick", "onKeydown"], _i = {
|
|
456
509
|
key: 0,
|
|
457
510
|
viewBox: "0 0 20 12",
|
|
458
511
|
height: "1em",
|
|
459
512
|
width: "1.43em",
|
|
460
513
|
"aria-hidden": "true"
|
|
461
|
-
},
|
|
514
|
+
}, vi = ["stroke", "fill"], yi = {
|
|
462
515
|
key: 1,
|
|
463
516
|
viewBox: "0 0 40 40",
|
|
464
517
|
height: "1em",
|
|
465
518
|
width: "1em",
|
|
466
519
|
"aria-hidden": "true"
|
|
467
|
-
},
|
|
520
|
+
}, bi = ["fill"], xi = ["fill"], Si = {
|
|
468
521
|
key: 2,
|
|
469
522
|
viewBox: "0 0 12 12",
|
|
470
523
|
height: "1em",
|
|
471
524
|
width: "1em",
|
|
472
525
|
"aria-hidden": "true"
|
|
473
|
-
},
|
|
526
|
+
}, Ci = {
|
|
474
527
|
style: {
|
|
475
528
|
display: "flex",
|
|
476
529
|
"flex-direction": "row",
|
|
@@ -479,7 +532,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
479
532
|
"padding-left": "6px"
|
|
480
533
|
},
|
|
481
534
|
"data-dom-to-png-ignore": ""
|
|
482
|
-
},
|
|
535
|
+
}, wi = ["innerHTML"], j = /* @__PURE__ */ Ke({
|
|
483
536
|
__name: "vue-ui-xy",
|
|
484
537
|
props: {
|
|
485
538
|
config: {
|
|
@@ -508,90 +561,83 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
508
561
|
"zoomReset",
|
|
509
562
|
"copyAlt"
|
|
510
563
|
],
|
|
511
|
-
setup(e, { expose: Ke, emit:
|
|
512
|
-
let j = e,
|
|
564
|
+
setup(e, { expose: Ke, emit: kt }) {
|
|
565
|
+
let j = e, Ti = nt(() => import("./DataTable-B--IN22e.js")), Ei = nt(() => import("./Tooltip-BENq327o.js")), Di = nt(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), Oi = nt(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), ki = nt(() => import("./vue-ui-table-sparkline-BQjo2sbB.js").then((e) => e.n)), Ai = nt(() => import("./PackageVersion-eS823iMF.js").then((e) => e.t)), ji = nt(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), Mi = nt(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), Ni = kt, Pi = ht(), Fi = rt(), { vue_ui_xy: Ii } = Ne(), { isThemeValid: Li, warnInvalidTheme: Ri } = ze(), zi = E(null), Bi = E(null), Vi = E(null), Hi = E(null), Ui = E(null), Wi = E(null), Gi = E(null), Ki = E(null), qi = E(null), Ji = E(null), Yi = E(null), Xi = E(null), Zi = E(null), Qi = E(null), $i = E(0), M = E(null), ea = E(!0), ta = E(600), N = E(1e3), na = E("0 0 1000 600"), ra = E({
|
|
513
566
|
x: 0,
|
|
514
567
|
y: 0
|
|
515
|
-
}),
|
|
568
|
+
}), ia = E({
|
|
516
569
|
line: "line",
|
|
517
570
|
bar: "bar",
|
|
518
571
|
plot: "plot"
|
|
519
|
-
}),
|
|
572
|
+
}), aa = E(!1), oa = E(!1), sa = E(!1), ca = E(null), P = E([]), F = E(c()), la = E(0), ua = E(0), da = E(0), fa = E(!0), pa = E(0), I = E(null), ma = E(!1), ha = E(!0), ga = E(!0), L = E(null), _a = E({}), va = E(null), ya = E(!1), ba = E(null), xa = E(!1), Sa = E(!1), Ca = E(null), R = E(null), wa = E(null), Ta = E({
|
|
520
573
|
x: 0,
|
|
521
574
|
y: 0
|
|
522
|
-
}),
|
|
523
|
-
elementRef:
|
|
575
|
+
}), Ea = ft(null), Da = E(!1), Oa = E(0), ka = E(0), Aa = Be({
|
|
576
|
+
elementRef: Ea,
|
|
524
577
|
minimumWidth: 2,
|
|
525
578
|
minimumHeight: 2,
|
|
526
579
|
stableFramesRequired: 2,
|
|
527
580
|
once: !1,
|
|
528
581
|
onSizeAccepted: () => {
|
|
529
|
-
|
|
582
|
+
Na();
|
|
530
583
|
}
|
|
531
584
|
});
|
|
532
|
-
function
|
|
533
|
-
|
|
585
|
+
function ja() {
|
|
586
|
+
Ea.value = zi.value?.parentNode ?? null;
|
|
534
587
|
}
|
|
535
|
-
function
|
|
588
|
+
function Ma() {
|
|
536
589
|
return new Promise((e) => {
|
|
537
590
|
requestAnimationFrame(() => {
|
|
538
591
|
requestAnimationFrame(e);
|
|
539
592
|
});
|
|
540
593
|
});
|
|
541
594
|
}
|
|
542
|
-
async function
|
|
543
|
-
let e = ++
|
|
544
|
-
|
|
595
|
+
async function Na() {
|
|
596
|
+
let e = ++ka.value;
|
|
597
|
+
Da.value = !1, await ot(), await Ma(), await Ma(), e === ka.value && (Oa.value += 1, Da.value = !0);
|
|
545
598
|
}
|
|
546
|
-
let
|
|
547
|
-
height:
|
|
599
|
+
let Pa = b(() => ({
|
|
600
|
+
height: ta.value,
|
|
548
601
|
width: N.value
|
|
549
|
-
}))
|
|
550
|
-
function Ea(e) {
|
|
551
|
-
return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
|
|
552
|
-
}
|
|
553
|
-
function Da(e, t, n = 0) {
|
|
554
|
-
return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
|
|
555
|
-
}
|
|
556
|
-
let Oa = E(!1), ka = E(null), Aa = E(null), z = E({
|
|
602
|
+
})), Fa = E(!1), Ia = E(null), La = E(null), z = E({
|
|
557
603
|
xAxis: 18,
|
|
558
604
|
yAxis: 12,
|
|
559
605
|
dataLabels: 20,
|
|
560
606
|
plotLabels: 10
|
|
561
|
-
}),
|
|
607
|
+
}), Ra = E({
|
|
562
608
|
plot: 3,
|
|
563
609
|
line: 3
|
|
564
610
|
});
|
|
565
611
|
ut(() => {
|
|
566
|
-
|
|
612
|
+
ya.value = !0, j.dataset.length && j.dataset.forEach((e, t) => {
|
|
567
613
|
[null, void 0].includes(e.series) && ce({
|
|
568
614
|
componentName: "VueUiXy",
|
|
569
615
|
type: "datasetSerieAttribute",
|
|
570
616
|
property: "series (number[])",
|
|
571
617
|
index: t,
|
|
572
|
-
debug:
|
|
618
|
+
debug: Wa.value
|
|
573
619
|
});
|
|
574
|
-
}),
|
|
620
|
+
}), ja(), Aa.start(), Na();
|
|
575
621
|
});
|
|
576
|
-
function
|
|
577
|
-
if (!Object.keys(j.config || {}).length) return
|
|
622
|
+
function za() {
|
|
623
|
+
if (!Object.keys(j.config || {}).length) return Ii;
|
|
578
624
|
let e = Re({
|
|
579
625
|
userConfig: j.config,
|
|
580
|
-
defaultConfig:
|
|
626
|
+
defaultConfig: Ii
|
|
581
627
|
});
|
|
582
628
|
j.config && m(j.config, "chart.highlightArea") && (Array.isArray(j.config.chart.highlightArea) ? e.chart.highlightArea = j.config.chart.highlightArea : e.chart.highlightArea = [j.config.chart.highlightArea]), j.config && m(j.config, "chart.annotations") && Array.isArray(j.config.chart.annotations) && j.config.chart.annotations.length ? e.chart.annotations = j.config.chart.annotations.map((e) => Re({
|
|
583
|
-
defaultConfig:
|
|
629
|
+
defaultConfig: Ii.chart.annotations[0],
|
|
584
630
|
userConfig: e
|
|
585
|
-
})) : e.chart.annotations = [], j.config && m(j.config, "chart.grid.position") && j.config.chart.grid.position === "start" && j.dataset.length && j.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", m(j.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), j.config && m(j.config, "chart.highlightArea") && (Array.isArray(j.config.chart.highlightArea) ? e.chart.highlightArea = j.config.chart.highlightArea.map((e) =>
|
|
586
|
-
defaultConfig:
|
|
631
|
+
})) : e.chart.annotations = [], j.config && m(j.config, "chart.grid.position") && j.config.chart.grid.position === "start" && j.dataset.length && j.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", m(j.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), j.config && m(j.config, "chart.highlightArea") && (Array.isArray(j.config.chart.highlightArea) ? e.chart.highlightArea = j.config.chart.highlightArea.map((e) => Ba({
|
|
632
|
+
defaultConfig: Ii.chart.highlightArea,
|
|
587
633
|
userConfig: e
|
|
588
|
-
})) : e.chart.highlightArea =
|
|
589
|
-
defaultConfig:
|
|
634
|
+
})) : e.chart.highlightArea = Ba({
|
|
635
|
+
defaultConfig: Ii.chart.highlightArea,
|
|
590
636
|
userConfig: j.config.chart.highlightArea
|
|
591
637
|
}));
|
|
592
638
|
let t = e.theme;
|
|
593
639
|
if (!t) return e;
|
|
594
|
-
if (!
|
|
640
|
+
if (!Li.value(e)) return Ri(e), e;
|
|
595
641
|
let n = Re({
|
|
596
642
|
userConfig: We[t] || j.config,
|
|
597
643
|
defaultConfig: e
|
|
@@ -604,41 +650,41 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
604
650
|
customPalette: r.customPalette.length ? r.customPalette : ae[t] || a
|
|
605
651
|
};
|
|
606
652
|
}
|
|
607
|
-
function
|
|
653
|
+
function Ba({ defaultConfig: e, userConfig: t }) {
|
|
608
654
|
return Re({
|
|
609
655
|
defaultConfig: e,
|
|
610
656
|
userConfig: t
|
|
611
657
|
});
|
|
612
658
|
}
|
|
613
|
-
let
|
|
659
|
+
let Va = b({
|
|
614
660
|
get() {
|
|
615
661
|
return !!j.dataset && j.dataset.length;
|
|
616
662
|
},
|
|
617
663
|
set(e) {
|
|
618
664
|
return e;
|
|
619
665
|
}
|
|
620
|
-
}), B = E(
|
|
666
|
+
}), B = E(za()), Ha = b(() => B.value.chart.userOptions.useCursorPointer), V = E({
|
|
621
667
|
dataLabels: { show: !0 },
|
|
622
668
|
showTooltip: !0,
|
|
623
669
|
showTable: !1,
|
|
624
670
|
isStacked: !1,
|
|
625
671
|
useIndividualScale: !1
|
|
626
672
|
});
|
|
627
|
-
function
|
|
673
|
+
function Ua() {
|
|
628
674
|
let e = B.value.chart.grid.labels.yAxis.stacked, t = B.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
629
|
-
if (!
|
|
675
|
+
if (!Fa.value) {
|
|
630
676
|
V.value = {
|
|
631
677
|
dataLabels: { show: !0 },
|
|
632
678
|
showTooltip: B.value.chart.tooltip.show === !0,
|
|
633
679
|
showTable: B.value.showTable === !0,
|
|
634
680
|
isStacked: e,
|
|
635
681
|
useIndividualScale: t
|
|
636
|
-
},
|
|
682
|
+
}, Ia.value = e, La.value = t, Fa.value = !0;
|
|
637
683
|
return;
|
|
638
684
|
}
|
|
639
|
-
V.value.showTooltip = B.value.chart.tooltip.show === !0, e !==
|
|
685
|
+
V.value.showTooltip = B.value.chart.tooltip.show === !0, e !== Ia.value && (V.value.isStacked = e, Ia.value = e), t !== La.value && (V.value.useIndividualScale = t, La.value = t), V.value.isStacked && (V.value.useIndividualScale = !0);
|
|
640
686
|
}
|
|
641
|
-
let
|
|
687
|
+
let Wa = b(() => !!B.value.debug), Ga = b(() => n({
|
|
642
688
|
defaultConfig: {
|
|
643
689
|
useCssAnimation: !1,
|
|
644
690
|
showTable: !1,
|
|
@@ -694,7 +740,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
694
740
|
}
|
|
695
741
|
},
|
|
696
742
|
userConfig: B.value.skeletonConfig ?? {}
|
|
697
|
-
})),
|
|
743
|
+
})), Ka = b(() => j.config?.skeletonDataset ?? [{
|
|
698
744
|
name: "",
|
|
699
745
|
series: [
|
|
700
746
|
0,
|
|
@@ -731,63 +777,53 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
731
777
|
],
|
|
732
778
|
type: "bar",
|
|
733
779
|
color: "#CACACA"
|
|
734
|
-
}]), { loading:
|
|
780
|
+
}]), { loading: qa, FINAL_DATASET: H, manualLoading: Ja } = Fe({
|
|
735
781
|
...mt(j),
|
|
736
782
|
FINAL_CONFIG: B,
|
|
737
|
-
prepareConfig:
|
|
783
|
+
prepareConfig: za,
|
|
738
784
|
callback: () => {
|
|
739
785
|
Promise.resolve().then(async () => {
|
|
740
|
-
(!B.value.chart.zoom.keepState || !
|
|
786
|
+
(!B.value.chart.zoom.keepState || !es.value || W.value.start === 0 && W.value.end === 0) && await rs(), V.value.showTable = B.value.showTable;
|
|
741
787
|
});
|
|
742
788
|
},
|
|
743
|
-
skeletonDataset:
|
|
789
|
+
skeletonDataset: Ka.value,
|
|
744
790
|
skeletonConfig: n({
|
|
745
791
|
defaultConfig: B.value,
|
|
746
|
-
userConfig:
|
|
792
|
+
userConfig: Ga.value
|
|
747
793
|
})
|
|
748
|
-
})
|
|
749
|
-
function Ha(e) {
|
|
750
|
-
let t = /* @__PURE__ */ new WeakMap();
|
|
751
|
-
return (n, ...r) => {
|
|
752
|
-
let i = t.get(n), a = JSON.stringify(r);
|
|
753
|
-
if (i && i.has(a)) return i.get(a);
|
|
754
|
-
let o = e(n, ...r);
|
|
755
|
-
return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
let Ua = Ha((e, t) => we({
|
|
794
|
+
}), Ya = Tt((e, t) => we({
|
|
759
795
|
data: e,
|
|
760
796
|
threshold: t
|
|
761
|
-
})),
|
|
762
|
-
get: () => Math.max(...H.value.map((e) =>
|
|
797
|
+
})), Xa = (e) => Ya(e, B.value.downsample.threshold), U = b({
|
|
798
|
+
get: () => Math.max(...H.value.map((e) => Xa(e.series).length)),
|
|
763
799
|
set: (e) => e
|
|
764
800
|
}), W = E({
|
|
765
801
|
start: 0,
|
|
766
802
|
end: U.value
|
|
767
|
-
}),
|
|
803
|
+
}), G = E({
|
|
768
804
|
start: 0,
|
|
769
805
|
end: U.value
|
|
770
|
-
}),
|
|
771
|
-
function
|
|
772
|
-
|
|
806
|
+
}), Za = b(() => B.value.chart.zoom.preview.enable && (G.value.start !== W.value.start || G.value.end !== W.value.end));
|
|
807
|
+
function Qa(e, t) {
|
|
808
|
+
G.value[e] = t;
|
|
773
809
|
}
|
|
774
|
-
function
|
|
775
|
-
if (
|
|
776
|
-
let e =
|
|
810
|
+
function $a() {
|
|
811
|
+
if (q.value) {
|
|
812
|
+
let e = wc.value.min, t = wc.value.max, n = Number(W.value.start), r = Number(W.value.end);
|
|
777
813
|
Number.isFinite(n) || (n = e), Number.isFinite(r) || (r = t), n = Math.max(e, Math.min(n, t)), r = Math.max(n, Math.min(r, t)), r <= n && (n = e, r = t), W.value = {
|
|
778
814
|
start: n,
|
|
779
815
|
end: r
|
|
780
|
-
},
|
|
816
|
+
}, G.value.start = n, G.value.end = r, Vi.value && (Vi.value.setStartValue(n), Vi.value.setEndValue(r));
|
|
781
817
|
return;
|
|
782
818
|
}
|
|
783
|
-
let e = Math.max(1, ...H.value.map((e) =>
|
|
819
|
+
let e = Math.max(1, ...H.value.map((e) => Xa(e.series).length)), t = Math.max(0, Math.min(W.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(W.value.end ?? e, e));
|
|
784
820
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), W.value = {
|
|
785
821
|
start: t,
|
|
786
822
|
end: n
|
|
787
|
-
},
|
|
823
|
+
}, G.value.start = t, G.value.end = n, Vi.value && (Vi.value.setStartValue(t), Vi.value.setEndValue(n));
|
|
788
824
|
}
|
|
789
|
-
let
|
|
790
|
-
let { left: e, top: t, width: n, height: r } =
|
|
825
|
+
let eo = b(() => {
|
|
826
|
+
let { left: e, top: t, width: n, height: r } = Y.value, i = W.value.start, a = W.value.end - i, o = n / a, s = G.value.start - i, c = G.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
791
827
|
return {
|
|
792
828
|
x: e + l * o,
|
|
793
829
|
y: t,
|
|
@@ -814,22 +850,22 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
814
850
|
let t = e - W.value.start;
|
|
815
851
|
t < 0 || e >= W.value.end ? R.value = null : R.value = t ?? null;
|
|
816
852
|
}, { immediate: !0 });
|
|
817
|
-
let { isPrinting:
|
|
853
|
+
let { isPrinting: to, isImaging: no, generatePdf: ro, generateImage: io } = Pe({
|
|
818
854
|
elementId: `vue-ui-xy_${F.value}`,
|
|
819
855
|
fileName: B.value.chart.title.text || "vue-ui-xy",
|
|
820
856
|
options: B.value.chart.userOptions.print
|
|
821
|
-
}),
|
|
857
|
+
}), ao = E(!1), oo = b(() => Ee(B.value.customPalette)), so = b(() => {
|
|
822
858
|
let e = B.value.chart.grid.labels.yAxis.scaleMin;
|
|
823
859
|
if (e == null) return null;
|
|
824
860
|
let t = Number(e);
|
|
825
861
|
return Number.isFinite(t) ? t : null;
|
|
826
|
-
}),
|
|
862
|
+
}), co = b(() => so.value === null ? gs.value : Y.value.bottom), lo = b(() => {
|
|
827
863
|
let e = B.value.chart.grid.labels.yAxis.scaleMax;
|
|
828
864
|
if (e == null) return null;
|
|
829
865
|
let t = Number(e);
|
|
830
866
|
return Number.isFinite(t) ? t : null;
|
|
831
|
-
}),
|
|
832
|
-
let e =
|
|
867
|
+
}), uo = b(() => so.value !== null || lo.value !== null), fo = b(() => {
|
|
868
|
+
let e = vo.value.filter((e) => !P.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).map(_o).filter(Number.isFinite);
|
|
833
869
|
return e.length ? {
|
|
834
870
|
min: Math.min(...e),
|
|
835
871
|
max: Math.max(...e)
|
|
@@ -837,39 +873,27 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
837
873
|
min: 0,
|
|
838
874
|
max: 1
|
|
839
875
|
};
|
|
840
|
-
})
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
|
|
844
|
-
min: n,
|
|
845
|
-
max: r
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
let co = b(() => {
|
|
849
|
-
let { min: e, max: t } = oo.value;
|
|
850
|
-
if (!ao.value) {
|
|
876
|
+
}), po = b(() => {
|
|
877
|
+
let { min: e, max: t } = fo.value;
|
|
878
|
+
if (!uo.value) {
|
|
851
879
|
let t = e;
|
|
852
880
|
return t > 0 ? 0 : t;
|
|
853
881
|
}
|
|
854
|
-
let n =
|
|
855
|
-
return
|
|
856
|
-
}),
|
|
857
|
-
let { min: e, max: t } =
|
|
858
|
-
if (!
|
|
882
|
+
let n = so.value === null ? e > 0 ? 0 : e : so.value, r = lo.value === null ? t : lo.value;
|
|
883
|
+
return Et(e < n ? e : n, t > r ? t : r).min;
|
|
884
|
+
}), mo = b(() => {
|
|
885
|
+
let { min: e, max: t } = fo.value;
|
|
886
|
+
if (!uo.value) {
|
|
859
887
|
let e = t;
|
|
860
|
-
return
|
|
888
|
+
return po.value === e ? e + 1 : e;
|
|
861
889
|
}
|
|
862
|
-
let n =
|
|
863
|
-
return
|
|
864
|
-
}),
|
|
865
|
-
function fo(e) {
|
|
866
|
-
return e && typeof e == "object" && Number.isFinite(Number(e.x)) && Number.isFinite(Number(e.y));
|
|
867
|
-
}
|
|
868
|
-
let K = b(() => H.value.some((e) => Array.isArray(e.series) && e.series.some(fo)));
|
|
890
|
+
let n = so.value === null ? e > 0 ? 0 : e : so.value, r = lo.value === null ? t : lo.value;
|
|
891
|
+
return Et(e < n ? e : n, t > r ? t : r).max;
|
|
892
|
+
}), K = b(() => B.value.chart.grid.labels.yAxis.useNiceScale ? fe(po.value, mo.value < 0 ? 0 : mo.value, B.value.chart.grid.labels.yAxis.commonScaleSteps) : de(po.value, mo.value < 0 ? 0 : mo.value, B.value.chart.grid.labels.yAxis.commonScaleSteps)), ho = b(() => [null, void 0].includes(B.value.chart.grid.labels.yAxis.scaleMin) ? K.value.min >= 0 ? 0 : Math.abs(K.value.min) : -K.value.min), q = b(() => H.value.some((e) => Array.isArray(e.series) && e.series.some(Ct)));
|
|
869
893
|
ut(() => {
|
|
870
|
-
|
|
894
|
+
q.value && j.dataset.some((e) => e.type === "bar") && console.warn("Vue Data UI - VueUiXy: series of type 'bar' are not supported in continuous mode.\n\nContinuous mode requires 'line' and 'plot' series to use coordinate-based datasets:\n[{ x: number, y: number }]\n\nIf you need to mix 'bar', 'line', and 'plot' series in the same chart, all series must use the standard\n[number, number, number...]");
|
|
871
895
|
});
|
|
872
|
-
function
|
|
896
|
+
function go(e, t) {
|
|
873
897
|
return e && typeof e == "object" && e.x === null && e.y === null ? {
|
|
874
898
|
x: null,
|
|
875
899
|
y: null,
|
|
@@ -884,54 +908,54 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
884
908
|
isNull: !1
|
|
885
909
|
};
|
|
886
910
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
911
|
+
function _o(e) {
|
|
912
|
+
return q.value ? e.y : e;
|
|
889
913
|
}
|
|
890
|
-
let
|
|
891
|
-
let n =
|
|
914
|
+
let vo = b(() => !ea.value && !q.value ? H.value : H.value.map((e, t) => {
|
|
915
|
+
let n = q.value ? e.series : Xa(e.series), r = `uniqueId_${t}`;
|
|
892
916
|
return {
|
|
893
917
|
...e,
|
|
894
918
|
slotAbsoluteIndex: t,
|
|
895
|
-
series:
|
|
896
|
-
color: De(e.color ? e.color :
|
|
919
|
+
series: q.value ? n.map((e, t) => go(e, t)).filter((e) => e.x >= W.value.start && e.x <= W.value.end) : n.map((e) => ve(e) ? e : null).slice(W.value.start, W.value.end),
|
|
920
|
+
color: De(e.color ? e.color : oo.value[t] ? oo.value[t] : a[t]),
|
|
897
921
|
id: r,
|
|
898
922
|
scaleLabel: e.scaleLabel || r
|
|
899
923
|
};
|
|
900
|
-
})),
|
|
924
|
+
})), yo = b(() => vo.value.map((e, t) => ({
|
|
901
925
|
absoluteIndex: t,
|
|
902
926
|
...e,
|
|
903
|
-
series:
|
|
927
|
+
series: q.value ? e.series.map((e) => ({
|
|
904
928
|
...e,
|
|
905
|
-
y: e.y === null ? null : e.y +
|
|
906
|
-
})) : e.series.map((e) => e +
|
|
907
|
-
absoluteValues:
|
|
929
|
+
y: e.y === null ? null : e.y + ho.value
|
|
930
|
+
})) : e.series.map((e) => e + ho.value),
|
|
931
|
+
absoluteValues: q.value ? e.series.map((e) => e.y) : e.series,
|
|
908
932
|
segregate: () => Hs(e),
|
|
909
933
|
isSegregated: P.value.includes(e.id)
|
|
910
|
-
}))),
|
|
934
|
+
}))), bo = b(() => vo.value.map((e) => ({
|
|
911
935
|
...e,
|
|
912
|
-
series:
|
|
936
|
+
series: q.value ? e.series.map((e) => ({
|
|
913
937
|
...e,
|
|
914
|
-
y: e.y === null ? null : e.y +
|
|
915
|
-
})) : e.series.map((e) => e +
|
|
916
|
-
absoluteValues:
|
|
917
|
-
})).filter((e) => !P.value.includes(e.id))),
|
|
918
|
-
function
|
|
938
|
+
y: e.y === null ? null : e.y + ho.value
|
|
939
|
+
})) : e.series.map((e) => e + ho.value),
|
|
940
|
+
absoluteValues: q.value ? e.series.map((e) => e.y) : e.series
|
|
941
|
+
})).filter((e) => !P.value.includes(e.id))), xo = b(() => P.value.length === yo.value.length), J = b(() => B.value.chart.grid.labels.yAxis.position === "right");
|
|
942
|
+
function So() {
|
|
919
943
|
let e = 0;
|
|
920
|
-
|
|
944
|
+
Yi.value && (e = Array.from(Yi.value.querySelectorAll("text")).reduce((e, t) => {
|
|
921
945
|
let n = t.getComputedTextLength();
|
|
922
946
|
return n > e ? n : e;
|
|
923
947
|
}, 0));
|
|
924
|
-
let t =
|
|
948
|
+
let t = qi.value ? qi.value.getBoundingClientRect().width + B.value.chart.grid.labels.axis.yLabelOffsetX + z.value.yAxis : 0, n = e + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + B.value.chart.grid.labels.yAxis.crosshairSize;
|
|
925
949
|
return {
|
|
926
|
-
left:
|
|
927
|
-
right:
|
|
950
|
+
left: J.value ? 0 : n + t,
|
|
951
|
+
right: J.value ? n + t : 0,
|
|
928
952
|
scaleLabelsOffset: n,
|
|
929
953
|
yAxisLabelWidth: t
|
|
930
954
|
};
|
|
931
955
|
}
|
|
932
|
-
function
|
|
933
|
-
let t =
|
|
934
|
-
let i =
|
|
956
|
+
function Co(e) {
|
|
957
|
+
let t = bo.value.filter((e) => ["line", "plot"].includes(e.type)).flatMap((t) => t.series.map((n, r) => {
|
|
958
|
+
let i = Cc(n);
|
|
935
959
|
return {
|
|
936
960
|
datapoint: t,
|
|
937
961
|
point: n,
|
|
@@ -942,11 +966,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
942
966
|
};
|
|
943
967
|
})).filter((e) => g(e.point?.x) && g(e.point?.y)).reduce((e, t) => !e || t.distance < e.distance ? t : e, null);
|
|
944
968
|
if (!t) {
|
|
945
|
-
Ds.value = [], Os.value = null,
|
|
969
|
+
Ds.value = [], Os.value = null, Ca.value = null;
|
|
946
970
|
return;
|
|
947
971
|
}
|
|
948
972
|
let n = Number(t.point.x);
|
|
949
|
-
Ds.value =
|
|
973
|
+
Ds.value = bo.value.filter((e) => ["line", "plot"].includes(e.type)).map((e) => {
|
|
950
974
|
let t = e.series.findIndex((e) => Number(e.x) === n && g(e.y));
|
|
951
975
|
if (t === -1) return null;
|
|
952
976
|
let r = e.series[t];
|
|
@@ -954,66 +978,66 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
954
978
|
datapoint: e,
|
|
955
979
|
point: r,
|
|
956
980
|
index: t,
|
|
957
|
-
x:
|
|
981
|
+
x: Cc(r),
|
|
958
982
|
y: r.y,
|
|
959
983
|
distance: 0
|
|
960
984
|
};
|
|
961
|
-
}).filter(Boolean), Os.value =
|
|
985
|
+
}).filter(Boolean), Os.value = Cc({ x: n }), Ca.value = n;
|
|
962
986
|
}
|
|
963
|
-
function
|
|
987
|
+
function wo(e) {
|
|
964
988
|
if (!Number.isFinite(Number(e))) {
|
|
965
989
|
Ds.value = [], Os.value = null;
|
|
966
990
|
return;
|
|
967
991
|
}
|
|
968
|
-
let t =
|
|
969
|
-
|
|
992
|
+
let t = Cc({ x: Number(e) });
|
|
993
|
+
Co(t), Os.value = t;
|
|
970
994
|
}
|
|
971
|
-
let
|
|
972
|
-
function
|
|
973
|
-
let e =
|
|
995
|
+
let To = E(0), Eo = E(0);
|
|
996
|
+
function Do() {
|
|
997
|
+
let e = Ji.value;
|
|
974
998
|
if (!e) {
|
|
975
|
-
|
|
999
|
+
To.value = 0, Eo.value = 0;
|
|
976
1000
|
return;
|
|
977
1001
|
}
|
|
978
1002
|
try {
|
|
979
1003
|
let t = e.getBBox();
|
|
980
|
-
|
|
1004
|
+
To.value = t?.height ?? 0, Eo.value = t?.x ?? 0;
|
|
981
1005
|
} catch {
|
|
982
|
-
|
|
1006
|
+
To.value = 0, Eo.value = 0;
|
|
983
1007
|
}
|
|
984
1008
|
}
|
|
985
|
-
let
|
|
1009
|
+
let Oo = b(() => {
|
|
986
1010
|
let e = 0;
|
|
987
|
-
if (
|
|
988
|
-
e =
|
|
1011
|
+
if (Ki.value) try {
|
|
1012
|
+
e = Ki.value.getBBox().height || 0;
|
|
989
1013
|
} catch {
|
|
990
1014
|
e = 0;
|
|
991
1015
|
}
|
|
992
|
-
return e +
|
|
993
|
-
}),
|
|
994
|
-
function
|
|
1016
|
+
return e + To.value + z.value.xAxis;
|
|
1017
|
+
}), ko = b(() => H.value.some((e) => e.useProgression));
|
|
1018
|
+
function Ao() {
|
|
995
1019
|
return B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + B.value.chart.grid.labels.yAxis.labelWidth + B.value.chart.grid.labels.axis.yLabelOffsetX + z.value.dataLabels * .8;
|
|
996
1020
|
}
|
|
997
|
-
let
|
|
998
|
-
|
|
1021
|
+
let Y = b(() => {
|
|
1022
|
+
Oa.value;
|
|
999
1023
|
let e = 0, t = 0, n = 0, r = 0;
|
|
1000
|
-
if (B.value.chart.grid.labels.show) if (V.value.useIndividualScale && !V.value.isStacked)
|
|
1024
|
+
if (B.value.chart.grid.labels.show) if (V.value.useIndividualScale && !V.value.isStacked) J.value ? t = (H.value.length - P.value.length) * Ao() : e = (H.value.length - P.value.length) * (B.value.chart.grid.labels.yAxis.labelWidth + 36);
|
|
1001
1025
|
else if (V.value.useIndividualScale && V.value.isStacked) {
|
|
1002
1026
|
let n = B.value.chart.grid.labels.yAxis.labelWidth + 36;
|
|
1003
|
-
|
|
1027
|
+
J.value ? t = n : e = n;
|
|
1004
1028
|
} else {
|
|
1005
|
-
let i =
|
|
1029
|
+
let i = So();
|
|
1006
1030
|
e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
|
|
1007
1031
|
}
|
|
1008
|
-
let i = B.value.chart.labels.fontSize * 1.1, a =
|
|
1009
|
-
|
|
1032
|
+
let i = B.value.chart.labels.fontSize * 1.1, a = ko.value ? 24 : 6;
|
|
1033
|
+
Ji.value && Eo.value < 0 && (e += Math.abs(Eo.value));
|
|
1010
1034
|
let o = N.value - e - t - a - B.value.chart.padding?.left - B.value.chart.padding?.right;
|
|
1011
1035
|
return {
|
|
1012
1036
|
top: B.value.chart.padding?.top + i,
|
|
1013
|
-
right: e + (
|
|
1014
|
-
bottom:
|
|
1015
|
-
left: e + (
|
|
1016
|
-
height:
|
|
1037
|
+
right: e + (J.value ? 0 : B.value.chart.grid.labels.yAxis.crosshairSize) + B.value.chart.padding?.left + o,
|
|
1038
|
+
bottom: ta.value - Oo.value - B.value.chart.padding?.bottom - B.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1039
|
+
left: e + (J.value ? 0 : B.value.chart.grid.labels.yAxis.crosshairSize) + B.value.chart.padding?.left,
|
|
1040
|
+
height: ta.value - Oo.value - B.value.chart.padding?.top - B.value.chart.padding?.bottom - i - B.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1017
1041
|
width: o,
|
|
1018
1042
|
scaleLabelX: e,
|
|
1019
1043
|
rightScaleLabelX: t,
|
|
@@ -1021,48 +1045,48 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1021
1045
|
yAxisLabelWidth: r,
|
|
1022
1046
|
individualOffsetX: 36
|
|
1023
1047
|
};
|
|
1024
|
-
}),
|
|
1025
|
-
let e = +(B.value.chart.grid.position === "middle"), t =
|
|
1026
|
-
return
|
|
1048
|
+
}), jo = b(() => {
|
|
1049
|
+
let e = +(B.value.chart.grid.position === "middle"), t = Z.value + e, n = h(Y.value?.top), r = h(Y.value?.bottom);
|
|
1050
|
+
return q.value ? B.value.chart.grid.position === "middle" ? xc.value.map((e, t, i) => {
|
|
1027
1051
|
if (t === 0) return null;
|
|
1028
1052
|
let a = i[t - 1], o = a.x + (e.x - a.x) / 2;
|
|
1029
1053
|
return `M${o},${n} L${o},${r}`;
|
|
1030
|
-
}).filter(Boolean).join(" ") :
|
|
1054
|
+
}).filter(Boolean).join(" ") : xc.value.map((e) => `M${e.x},${n} L${e.x},${r}`).join(" ") : Array.from({ length: t }).map((e, t) => {
|
|
1031
1055
|
let i = B.value.chart.grid.position === "middle" ? nc(t) : tc(t);
|
|
1032
1056
|
return `M${i},${n} L${i},${r}`;
|
|
1033
1057
|
}).join(" ");
|
|
1034
|
-
}),
|
|
1058
|
+
}), Mo = b(() => {
|
|
1035
1059
|
if (!B.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1036
1060
|
let e = B.value.chart.grid.labels.xAxis.crosshairSize, t = B.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1037
|
-
return (
|
|
1061
|
+
return (q.value ? xc.value : Wo.value).map((n, r) => {
|
|
1038
1062
|
if (!n || !n.text) return null;
|
|
1039
|
-
let i =
|
|
1040
|
-
return `M${i},${t ? gs.value - (gs.value ===
|
|
1063
|
+
let i = q.value ? n.x : tc(r);
|
|
1064
|
+
return `M${i},${t ? gs.value - (gs.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? gs.value + e / (gs.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
|
|
1041
1065
|
}).filter(Boolean).join(" ");
|
|
1042
1066
|
});
|
|
1043
|
-
function
|
|
1044
|
-
return !!
|
|
1067
|
+
function No() {
|
|
1068
|
+
return !!Fi?.vnode.props?.onSelectTimeLabel;
|
|
1045
1069
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return
|
|
1070
|
+
function Po(e, t, n) {
|
|
1071
|
+
return va.value ||= document.createElement("canvas").getContext("2d"), va.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, va.value;
|
|
1048
1072
|
}
|
|
1049
|
-
function
|
|
1050
|
-
let e =
|
|
1073
|
+
function Fo() {
|
|
1074
|
+
let e = zi.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1051
1075
|
e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
|
|
1052
1076
|
}
|
|
1053
|
-
function
|
|
1054
|
-
n && (
|
|
1077
|
+
function Io(e, t, n, r, i) {
|
|
1078
|
+
n && (_a.value[`${e}_${t}_${r}_${i}`] = n);
|
|
1055
1079
|
}
|
|
1056
|
-
let
|
|
1057
|
-
async function
|
|
1058
|
-
await ot(),
|
|
1080
|
+
let Lo = E(!1);
|
|
1081
|
+
async function Ro(e = !1) {
|
|
1082
|
+
await ot(), Lo.value = e, ma.value && (ga.value = e);
|
|
1059
1083
|
}
|
|
1060
|
-
function
|
|
1061
|
-
|
|
1084
|
+
function zo() {
|
|
1085
|
+
aa.value = !aa.value;
|
|
1062
1086
|
}
|
|
1063
|
-
let
|
|
1087
|
+
let X = E([]), Bo = E([]), Vo = 0;
|
|
1064
1088
|
vt(() => {
|
|
1065
|
-
let e = ++
|
|
1089
|
+
let e = ++Vo;
|
|
1066
1090
|
(async () => {
|
|
1067
1091
|
let t = Math.max(...H.value.map((e) => we({
|
|
1068
1092
|
data: e.series,
|
|
@@ -1074,12 +1098,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1074
1098
|
start: W.value.start,
|
|
1075
1099
|
end: W.value.end
|
|
1076
1100
|
});
|
|
1077
|
-
e ===
|
|
1101
|
+
e === Vo && (X.value = n);
|
|
1078
1102
|
})();
|
|
1079
1103
|
});
|
|
1080
|
-
let
|
|
1104
|
+
let Ho = 0;
|
|
1081
1105
|
vt(() => {
|
|
1082
|
-
let e = ++
|
|
1106
|
+
let e = ++Ho;
|
|
1083
1107
|
(async () => {
|
|
1084
1108
|
let t = Math.max(...H.value.map((e) => we({
|
|
1085
1109
|
data: e.series,
|
|
@@ -1091,36 +1115,36 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1091
1115
|
start: 0,
|
|
1092
1116
|
end: U.value
|
|
1093
1117
|
});
|
|
1094
|
-
e ===
|
|
1118
|
+
e === Ho && (Bo.value = n);
|
|
1095
1119
|
})();
|
|
1096
1120
|
});
|
|
1097
|
-
let
|
|
1121
|
+
let Uo = b(() => {
|
|
1098
1122
|
let e = B.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1099
|
-
return
|
|
1100
|
-
}),
|
|
1101
|
-
let e = B.value.chart.grid.labels.xAxisLabels, t =
|
|
1102
|
-
return Ce(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1,
|
|
1103
|
-
}),
|
|
1123
|
+
return X.value.length ? Math.min(e, [...new Set(X.value.map((e) => e.text))].length) : e;
|
|
1124
|
+
}), Wo = b(() => {
|
|
1125
|
+
let e = B.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = Bo.value || [], r = W.value.start ?? 0, i = R.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
|
|
1126
|
+
return Ce(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Uo.value || 1), o, s, r, i, a);
|
|
1127
|
+
}), Go = b(() => (Wo.value || []).map((e) => e?.text ?? "").join("|"));
|
|
1104
1128
|
ut(() => {
|
|
1105
1129
|
requestAnimationFrame(() => {
|
|
1106
|
-
|
|
1130
|
+
Do();
|
|
1107
1131
|
}), _t([
|
|
1108
|
-
() =>
|
|
1132
|
+
() => Go.value,
|
|
1109
1133
|
() => B.value.chart.grid.labels.xAxisLabels.rotation,
|
|
1110
1134
|
() => z.value.xAxis,
|
|
1111
1135
|
() => N.value,
|
|
1112
|
-
() =>
|
|
1136
|
+
() => ta.value
|
|
1113
1137
|
], async () => {
|
|
1114
1138
|
await ot(), requestAnimationFrame(() => {
|
|
1115
|
-
|
|
1139
|
+
Do();
|
|
1116
1140
|
});
|
|
1117
1141
|
}, { flush: "post" });
|
|
1118
1142
|
}), lt(() => {
|
|
1119
|
-
|
|
1143
|
+
To.value = 0, Eo.value = 0, Aa.stop();
|
|
1120
1144
|
});
|
|
1121
|
-
function
|
|
1122
|
-
|
|
1123
|
-
datapoint:
|
|
1145
|
+
function Ko(e, t) {
|
|
1146
|
+
Ni("selectTimeLabel", {
|
|
1147
|
+
datapoint: bo.value.map((e) => ({
|
|
1124
1148
|
shape: e.shape ?? e.type === "bar" ? "square" : "circle",
|
|
1125
1149
|
name: e.name,
|
|
1126
1150
|
color: e.color,
|
|
@@ -1134,105 +1158,87 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1134
1158
|
label: e.text
|
|
1135
1159
|
});
|
|
1136
1160
|
}
|
|
1137
|
-
let
|
|
1138
|
-
let e =
|
|
1161
|
+
let Z = b(() => {
|
|
1162
|
+
let e = Ot((W.value.end ?? 0) - (W.value.start ?? 0));
|
|
1139
1163
|
return Math.max(1, e);
|
|
1140
1164
|
});
|
|
1141
|
-
function
|
|
1142
|
-
|
|
1165
|
+
function qo(e) {
|
|
1166
|
+
q.value || (I.value = e);
|
|
1143
1167
|
}
|
|
1144
|
-
function
|
|
1145
|
-
if (!
|
|
1146
|
-
|
|
1168
|
+
function Jo(e) {
|
|
1169
|
+
if (!q.value || !g(e)) {
|
|
1170
|
+
Ca.value = null, Ds.value = [], Os.value = null;
|
|
1147
1171
|
return;
|
|
1148
1172
|
}
|
|
1149
|
-
|
|
1173
|
+
Ca.value = Number(e), wo(Number(e));
|
|
1150
1174
|
}
|
|
1151
|
-
let
|
|
1152
|
-
function
|
|
1175
|
+
let Yo = b(() => q.value ? g(Ca.value) || g(Os.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value));
|
|
1176
|
+
function Xo() {
|
|
1153
1177
|
V.value.isStacked = !V.value.isStacked, V.value.isStacked ? V.value.useIndividualScale = !0 : V.value.useIndividualScale = B.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1154
1178
|
}
|
|
1155
|
-
function
|
|
1156
|
-
|
|
1179
|
+
function Zo(e) {
|
|
1180
|
+
Wa.value && e.autoScaling && (B.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), B.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1157
1181
|
}
|
|
1158
|
-
function
|
|
1159
|
-
let
|
|
1160
|
-
for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
|
|
1161
|
-
return r;
|
|
1162
|
-
}
|
|
1163
|
-
function Xo(e) {
|
|
1164
|
-
let t = Math.max(...H.value.map((e) => Wa(e.series).length));
|
|
1182
|
+
function Qo(e) {
|
|
1183
|
+
let t = Math.max(...H.value.map((e) => Xa(e.series).length));
|
|
1165
1184
|
return e > t ? t : e < 0 || B.value.chart.zoom.startIndex !== null && e < B.value.chart.zoom.startIndex ? B.value.chart.zoom.startIndex === null ? 1 : B.value.chart.zoom.startIndex + 1 : e;
|
|
1166
1185
|
}
|
|
1167
|
-
let
|
|
1168
|
-
function
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
}
|
|
1172
|
-
function ns() {
|
|
1173
|
-
if (!Zo.value) {
|
|
1174
|
-
Zo.value = !0;
|
|
1186
|
+
let $o = E(!1), es = E(!1), ts = E(0), ns = E(0);
|
|
1187
|
+
function rs() {
|
|
1188
|
+
if (!$o.value) {
|
|
1189
|
+
$o.value = !0;
|
|
1175
1190
|
try {
|
|
1176
|
-
if (
|
|
1177
|
-
let e =
|
|
1178
|
-
|
|
1191
|
+
if (q.value) {
|
|
1192
|
+
let e = wc.value.min, t = wc.value.max;
|
|
1193
|
+
ts.value = e, ns.value = t, W.value.start = e, W.value.end = t, G.value.start = e, G.value.end = t, es.value = !0, Vi.value && (Vi.value.setStartValue(e), Vi.value.setEndValue(t));
|
|
1179
1194
|
return;
|
|
1180
1195
|
}
|
|
1181
|
-
let { startIndex: e, endIndex: t } = B.value.chart.zoom, n = B.value.chart.zoom.keepState ? Math.max(0, ...H.value.map((e) =>
|
|
1196
|
+
let { startIndex: e, endIndex: t } = B.value.chart.zoom, n = B.value.chart.zoom.keepState ? Math.max(0, ...H.value.map((e) => Xa(e.series).length)) : Math.max(...H.value.map((e) => Xa(e.series).length));
|
|
1182
1197
|
if (B.value.chart.zoom.keepState && n <= 0) return;
|
|
1183
|
-
|
|
1184
|
-
let r = e ?? 0, i = t == null ? n : Math.min(
|
|
1185
|
-
|
|
1198
|
+
ts.value = 0, ns.value = n;
|
|
1199
|
+
let r = e ?? 0, i = t == null ? n : Math.min(Qo(t + 1), n);
|
|
1200
|
+
is.value = !0, W.value.start = r, W.value.end = i, G.value.start = r, G.value.end = i, $a(), es.value = !0;
|
|
1186
1201
|
} finally {
|
|
1187
1202
|
queueMicrotask(() => {
|
|
1188
|
-
|
|
1189
|
-
}),
|
|
1203
|
+
is.value = !1;
|
|
1204
|
+
}), $o.value = !1;
|
|
1190
1205
|
}
|
|
1191
1206
|
}
|
|
1192
1207
|
}
|
|
1193
|
-
let
|
|
1194
|
-
function
|
|
1195
|
-
if (
|
|
1208
|
+
let is = E(!1);
|
|
1209
|
+
function as(e) {
|
|
1210
|
+
if ($o.value || is.value) return;
|
|
1196
1211
|
let t = Number(e);
|
|
1197
|
-
|
|
1212
|
+
Ni("zoomStart", {
|
|
1198
1213
|
index: t,
|
|
1199
|
-
isZoom:
|
|
1200
|
-
}), Number.isFinite(t) && t !== W.value.start && (W.value.start = t,
|
|
1214
|
+
isZoom: wt(t, ts.value)
|
|
1215
|
+
}), Number.isFinite(t) && t !== W.value.start && (W.value.start = t, G.value.start = t, $a());
|
|
1201
1216
|
}
|
|
1202
|
-
function
|
|
1203
|
-
if (
|
|
1204
|
-
if (
|
|
1217
|
+
function os(e) {
|
|
1218
|
+
if ($o.value || is.value) return;
|
|
1219
|
+
if (q.value) {
|
|
1205
1220
|
let t = Number(e);
|
|
1206
1221
|
if (!Number.isFinite(t)) return;
|
|
1207
|
-
let n = Math.max(Number(W.value.start) + 1 / 10 ** B.value.chart.grid.labels.xAxis.rounding, Math.min(t,
|
|
1208
|
-
if (
|
|
1222
|
+
let n = Math.max(Number(W.value.start) + 1 / 10 ** B.value.chart.grid.labels.xAxis.rounding, Math.min(t, wc.value.max));
|
|
1223
|
+
if (Ni("zoomEnd", {
|
|
1209
1224
|
index: n,
|
|
1210
|
-
isZoom:
|
|
1225
|
+
isZoom: wt(n, ns.value)
|
|
1211
1226
|
}), n === W.value.end) return;
|
|
1212
|
-
W.value.end = n,
|
|
1227
|
+
W.value.end = n, G.value.end = n, $a();
|
|
1213
1228
|
return;
|
|
1214
1229
|
}
|
|
1215
|
-
let t =
|
|
1216
|
-
|
|
1230
|
+
let t = Qo(e);
|
|
1231
|
+
Ni("zoomEnd", {
|
|
1217
1232
|
index: t,
|
|
1218
|
-
isZoom:
|
|
1219
|
-
}), t !== W.value.end && (W.value.end = t,
|
|
1233
|
+
isZoom: wt(t, ns.value)
|
|
1234
|
+
}), t !== W.value.end && (W.value.end = t, G.value.end = t, $a());
|
|
1220
1235
|
}
|
|
1221
|
-
async function
|
|
1222
|
-
await
|
|
1236
|
+
async function ss() {
|
|
1237
|
+
await rs(), Ni("zoomReset");
|
|
1223
1238
|
}
|
|
1224
|
-
|
|
1225
|
-
return ![
|
|
1226
|
-
null,
|
|
1227
|
-
void 0,
|
|
1228
|
-
NaN,
|
|
1229
|
-
Infinity,
|
|
1230
|
-
-Infinity
|
|
1231
|
-
].includes(e);
|
|
1232
|
-
}
|
|
1233
|
-
let cs = b(() => G.value.max + uo.value);
|
|
1239
|
+
let cs = b(() => K.value.max + ho.value);
|
|
1234
1240
|
function ls(e) {
|
|
1235
|
-
return e / (
|
|
1241
|
+
return e / (bt(cs.value) ? cs.value : 1);
|
|
1236
1242
|
}
|
|
1237
1243
|
let us = b(() => B.value.chart.grid.labels.yAxis.reverse);
|
|
1238
1244
|
function ds(e) {
|
|
@@ -1240,7 +1246,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1240
1246
|
}
|
|
1241
1247
|
function fs({ ratio: e, yOffset: t = 0, individualHeight: n }) {
|
|
1242
1248
|
let r = ds(e);
|
|
1243
|
-
return
|
|
1249
|
+
return Y.value?.bottom - t - n * r;
|
|
1244
1250
|
}
|
|
1245
1251
|
function ps({ value: e, scaleMin: t, scaleMax: n, yOffset: r = 0, individualHeight: i }) {
|
|
1246
1252
|
return fs({
|
|
@@ -1253,32 +1259,32 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1253
1259
|
function hs(e) {
|
|
1254
1260
|
return ms.value ? 1 - e : e;
|
|
1255
1261
|
}
|
|
1256
|
-
let gs = b(() => isNaN(ls(
|
|
1262
|
+
let gs = b(() => isNaN(ls(ho.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ls(ho.value));
|
|
1257
1263
|
function _s(e) {
|
|
1258
|
-
let t =
|
|
1259
|
-
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ?
|
|
1264
|
+
let t = K.value.min, n = K.value.max - t;
|
|
1265
|
+
return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ((e - t) / n);
|
|
1260
1266
|
}
|
|
1261
|
-
let vs = b(() =>
|
|
1267
|
+
let vs = b(() => K.value.min <= 0 && K.value.max >= 0 ? _s(0) : K.value.min > 0 ? _s(K.value.min) : _s(K.value.max));
|
|
1262
1268
|
function ys(e) {
|
|
1263
|
-
let t = ![null, void 0].includes(B.value.chart.grid.labels.yAxis.scaleMin) && B.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
1269
|
+
let t = ![null, void 0].includes(B.value.chart.grid.labels.yAxis.scaleMin) && B.value.chart.grid.labels.yAxis.scaleMin > 0 && po.value >= 0 ? Y.value?.bottom : gs.value;
|
|
1264
1270
|
return e.value >= 0 ? v(t - e.y <= 0 ? 1e-5 : t - e.y) : v(e.y - gs.value <= 0 ? 1e-5 : e.y - gs.value);
|
|
1265
1271
|
}
|
|
1266
1272
|
function bs(e) {
|
|
1267
1273
|
return e.value >= 0 ? v(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : v(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
|
|
1268
1274
|
}
|
|
1269
1275
|
let xs = b(() => {
|
|
1270
|
-
let e = Math.max(1,
|
|
1276
|
+
let e = Math.max(1, Z.value);
|
|
1271
1277
|
return {
|
|
1272
|
-
bar:
|
|
1278
|
+
bar: Dt(Math.max(1, Y.value.width), e * Math.max(1, vo.value.filter((e) => e.type === "bar" && !P.value.includes(e.id)).length), 1),
|
|
1273
1279
|
plot: $s.value,
|
|
1274
1280
|
line: $s.value
|
|
1275
1281
|
};
|
|
1276
1282
|
});
|
|
1277
1283
|
function Ss() {
|
|
1278
|
-
return V.value.useIndividualScale && V.value.isStacked ? xs.value.line -
|
|
1284
|
+
return V.value.useIndividualScale && V.value.isStacked ? xs.value.line - Y.value.width / Z.value * .1 : xs.value.bar;
|
|
1279
1285
|
}
|
|
1280
1286
|
function Cs(e) {
|
|
1281
|
-
return V.value.useIndividualScale && V.value.isStacked ? e.x +
|
|
1287
|
+
return V.value.useIndividualScale && V.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + xs.value.bar / 2;
|
|
1282
1288
|
}
|
|
1283
1289
|
function ws(e) {
|
|
1284
1290
|
return e.value >= 0 ? e.y : [
|
|
@@ -1287,7 +1293,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1287
1293
|
NaN,
|
|
1288
1294
|
Infinity,
|
|
1289
1295
|
-Infinity
|
|
1290
|
-
].includes(gs.value) ?
|
|
1296
|
+
].includes(gs.value) ? Y?.bottom.value : gs.value;
|
|
1291
1297
|
}
|
|
1292
1298
|
function Ts(e) {
|
|
1293
1299
|
return e.value >= 0 ? e.y : [
|
|
@@ -1298,16 +1304,16 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1298
1304
|
-Infinity
|
|
1299
1305
|
].includes(e.zeroPosition) ? 0 : e.zeroPosition;
|
|
1300
1306
|
}
|
|
1301
|
-
let Es = E(null), Ds = E([]), Os = E(null), ks = b(() =>
|
|
1307
|
+
let Es = E(null), Ds = E([]), Os = E(null), ks = b(() => q.value ? [...new Set(bo.value.flatMap((e) => e.series || []).filter((e) => g(e?.x) && g(e?.y)).map((e) => Number(e.x)))].sort((e, t) => Cc({ x: e }) - Cc({ x: t })) : []);
|
|
1302
1308
|
function As(e) {
|
|
1303
1309
|
let t = ks.value[e];
|
|
1304
1310
|
if (!g(t)) {
|
|
1305
|
-
Ds.value = [], Os.value = null,
|
|
1311
|
+
Ds.value = [], Os.value = null, Ca.value = null, sa.value = !1;
|
|
1306
1312
|
return;
|
|
1307
1313
|
}
|
|
1308
|
-
|
|
1309
|
-
let n = d(
|
|
1310
|
-
n && (
|
|
1314
|
+
wo(Number(t));
|
|
1315
|
+
let n = d(Cc({ x: Number(t) }), Y.value.top + Y.value.height / 2, L.value);
|
|
1316
|
+
n && (Ta.value = n), R.value = e, wa.value = e, sa.value = !0;
|
|
1311
1317
|
}
|
|
1312
1318
|
function js(e) {
|
|
1313
1319
|
let t = L.value;
|
|
@@ -1339,20 +1345,20 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1339
1345
|
}
|
|
1340
1346
|
let Ms = 0;
|
|
1341
1347
|
function Ns(e) {
|
|
1342
|
-
|
|
1348
|
+
wa.value = null, !aa.value && (Ms && cancelAnimationFrame(Ms), Ms = requestAnimationFrame(() => {
|
|
1343
1349
|
Ms = 0;
|
|
1344
1350
|
let t = js(e);
|
|
1345
1351
|
if (!t || !L.value) {
|
|
1346
1352
|
Ps();
|
|
1347
1353
|
return;
|
|
1348
1354
|
}
|
|
1349
|
-
let { left: n, right: r, top: i, bottom: a, width: o } =
|
|
1355
|
+
let { left: n, right: r, top: i, bottom: a, width: o } = Y.value;
|
|
1350
1356
|
if (t.x < n || t.x > r || t.y < i || t.y > a) {
|
|
1351
1357
|
Ps();
|
|
1352
1358
|
return;
|
|
1353
1359
|
}
|
|
1354
|
-
if (
|
|
1355
|
-
|
|
1360
|
+
if (q.value) {
|
|
1361
|
+
Co(t.x), Hc(!0, R.value ?? 0);
|
|
1356
1362
|
return;
|
|
1357
1363
|
}
|
|
1358
1364
|
let s = ac(t.x);
|
|
@@ -1360,12 +1366,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1360
1366
|
}));
|
|
1361
1367
|
}
|
|
1362
1368
|
function Ps() {
|
|
1363
|
-
Ms &&= (cancelAnimationFrame(Ms), 0), Es.value = null, Hc(!1, null), Ds.value = [], Os.value = null
|
|
1369
|
+
Ms &&= (cancelAnimationFrame(Ms), 0), Es.value = null, I.value = null, Ca.value = null, Hc(!1, null), Ds.value = [], Os.value = null;
|
|
1364
1370
|
}
|
|
1365
1371
|
function Fs(e) {
|
|
1366
1372
|
let t = js(e);
|
|
1367
1373
|
if (t && L.value) {
|
|
1368
|
-
let { left: e, right: n, top: r, bottom: i, width: a } =
|
|
1374
|
+
let { left: e, right: n, top: r, bottom: i, width: a } = Y.value;
|
|
1369
1375
|
if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
|
|
1370
1376
|
let e = ac(t.x);
|
|
1371
1377
|
if (e != null) {
|
|
@@ -1377,7 +1383,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1377
1383
|
Es.value != null && Is(Es.value);
|
|
1378
1384
|
}
|
|
1379
1385
|
function Is(e) {
|
|
1380
|
-
let t =
|
|
1386
|
+
let t = bo.value.map((t) => ({
|
|
1381
1387
|
name: t.name,
|
|
1382
1388
|
value: [
|
|
1383
1389
|
null,
|
|
@@ -1387,7 +1393,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1387
1393
|
color: t.color,
|
|
1388
1394
|
type: t.type
|
|
1389
1395
|
}));
|
|
1390
|
-
|
|
1396
|
+
Ni("selectX", {
|
|
1391
1397
|
dataset: t,
|
|
1392
1398
|
index: e,
|
|
1393
1399
|
indexLabel: B.value.chart.grid.labels.xAxisLabels.values[e]
|
|
@@ -1397,7 +1403,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1397
1403
|
});
|
|
1398
1404
|
}
|
|
1399
1405
|
function Ls() {
|
|
1400
|
-
return
|
|
1406
|
+
return yo.value.map((e) => ({
|
|
1401
1407
|
values: e.absoluteValues,
|
|
1402
1408
|
color: e.color,
|
|
1403
1409
|
name: e.name,
|
|
@@ -1405,9 +1411,9 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1405
1411
|
}));
|
|
1406
1412
|
}
|
|
1407
1413
|
async function Rs({ scale: e = 2 } = {}) {
|
|
1408
|
-
if (!
|
|
1409
|
-
let { width: t, height: n } =
|
|
1410
|
-
domElement:
|
|
1414
|
+
if (!zi.value) return;
|
|
1415
|
+
let { width: t, height: n } = zi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await He({
|
|
1416
|
+
domElement: zi.value,
|
|
1411
1417
|
base64: !0,
|
|
1412
1418
|
img: !0,
|
|
1413
1419
|
scale: e
|
|
@@ -1422,7 +1428,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1422
1428
|
};
|
|
1423
1429
|
}
|
|
1424
1430
|
function zs() {
|
|
1425
|
-
P.value.length ? P.value = [] :
|
|
1431
|
+
P.value.length ? P.value = [] : yo.value.forEach((e) => {
|
|
1426
1432
|
P.value.push(e.id);
|
|
1427
1433
|
}), Vs();
|
|
1428
1434
|
}
|
|
@@ -1430,7 +1436,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1430
1436
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Hs(t));
|
|
1431
1437
|
}
|
|
1432
1438
|
function Vs() {
|
|
1433
|
-
|
|
1439
|
+
Ni("selectLegend", bo.value.map((e) => ({
|
|
1434
1440
|
name: e.name,
|
|
1435
1441
|
values: e.absoluteValues,
|
|
1436
1442
|
color: e.color,
|
|
@@ -1440,13 +1446,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1440
1446
|
function Hs(e) {
|
|
1441
1447
|
if (P.value.includes(e.id)) P.value = P.value.filter((t) => t !== e.id);
|
|
1442
1448
|
else {
|
|
1443
|
-
if (P.value.length + 1 ===
|
|
1449
|
+
if (P.value.length + 1 === vo.value.length) return;
|
|
1444
1450
|
P.value.push(e.id);
|
|
1445
1451
|
}
|
|
1446
|
-
Vs(),
|
|
1452
|
+
Vs(), pa.value += 1;
|
|
1447
1453
|
}
|
|
1448
1454
|
function Us(e) {
|
|
1449
|
-
return
|
|
1455
|
+
return yo.value.length ? yo.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiXy - There are no series to show."), null);
|
|
1450
1456
|
}
|
|
1451
1457
|
function Ws(e) {
|
|
1452
1458
|
let t = Us(e);
|
|
@@ -1456,7 +1462,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1456
1462
|
let t = Us(e);
|
|
1457
1463
|
t !== null && (P.value.includes(t.id) || Hs({ id: t.id }));
|
|
1458
1464
|
}
|
|
1459
|
-
let Ks = b(() => `${B.value.chart.title.text || "Chart visualization"}. ${B.value.chart.title.subtitle.text || ""}`), qs = b(() => ({ linePlot:
|
|
1465
|
+
let Ks = b(() => `${B.value.chart.title.text || "Chart visualization"}. ${B.value.chart.title.subtitle.text || ""}`), qs = b(() => ({ linePlot: Z.value > B.value.line.dot.hideAboveMaxSerieLength })), Js = b(() => B.value.chart.userOptions.show && (!B.value.chart.title.show || !B.value.chart.title.text)), Ys = b(() => {
|
|
1460
1466
|
if (Array.isArray(B.value.chart.highlightArea)) return B.value.chart.highlightArea.map((e) => {
|
|
1461
1467
|
let t = Math.min(e.to, U.value - 1);
|
|
1462
1468
|
return {
|
|
@@ -1472,18 +1478,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1472
1478
|
...e,
|
|
1473
1479
|
span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
|
|
1474
1480
|
}];
|
|
1475
|
-
}), Xs = b(() =>
|
|
1481
|
+
}), Xs = b(() => ea.value ? H.value.map((e, t) => ({
|
|
1476
1482
|
...e,
|
|
1477
|
-
series:
|
|
1483
|
+
series: Xa(e.series),
|
|
1478
1484
|
id: `uniqueId_${t}`,
|
|
1479
|
-
color: De(e.color ? e.color :
|
|
1480
|
-
})) : H.value), Zs = b(() =>
|
|
1485
|
+
color: De(e.color ? e.color : oo.value[t] ? oo.value[t] : a[t])
|
|
1486
|
+
})) : H.value), Zs = b(() => bo.value.map((e) => {
|
|
1481
1487
|
let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1482
1488
|
return {
|
|
1483
1489
|
id: e.id,
|
|
1484
1490
|
name: e.name,
|
|
1485
1491
|
color: e.color,
|
|
1486
|
-
values:
|
|
1492
|
+
values: xt(Z.value, t)
|
|
1487
1493
|
};
|
|
1488
1494
|
})), Qs = b(() => ({
|
|
1489
1495
|
responsiveBreakpoint: B.value.table.responsiveBreakpoint,
|
|
@@ -1494,7 +1500,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1494
1500
|
fontFamily: B.value.chart.fontFamily,
|
|
1495
1501
|
prefix: B.value.chart.labels.prefix,
|
|
1496
1502
|
suffix: B.value.chart.labels.suffix,
|
|
1497
|
-
colNames:
|
|
1503
|
+
colNames: X.value.map((e, t) => B.value.table.useDefaultTimeFormat ? e.text : Ic.value(t + W.value.start, B.value.table.timeFormat)),
|
|
1498
1504
|
thead: {
|
|
1499
1505
|
backgroundColor: B.value.table.th.backgroundColor,
|
|
1500
1506
|
color: B.value.table.th.color,
|
|
@@ -1508,50 +1514,41 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1508
1514
|
userOptions: { show: !1 },
|
|
1509
1515
|
sparkline: { animation: { show: !1 } }
|
|
1510
1516
|
})), $s = b(() => {
|
|
1511
|
-
let e = Math.max(0,
|
|
1512
|
-
return B.value.chart.grid.position === "middle" ?
|
|
1513
|
-
}), ec = b(() => B.value.chart.grid.position === "middle" ? $s.value :
|
|
1517
|
+
let e = Math.max(0, Y.value?.width || 0);
|
|
1518
|
+
return B.value.chart.grid.position === "middle" ? Dt(e, Math.max(1, Z.value), 1) : Dt(e, Math.max(1, Z.value - 1), 0);
|
|
1519
|
+
}), ec = b(() => B.value.chart.grid.position === "middle" ? $s.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : $s.value);
|
|
1514
1520
|
function tc(e) {
|
|
1515
|
-
let t =
|
|
1521
|
+
let t = Y.value?.left || 0;
|
|
1516
1522
|
return B.value.chart.grid.position === "middle" ? t + $s.value / 2 + $s.value * e : t + $s.value * e;
|
|
1517
1523
|
}
|
|
1518
1524
|
function nc(e) {
|
|
1519
|
-
let t =
|
|
1520
|
-
return B.value.chart.grid.position === "middle" ? t + $s.value * e :
|
|
1525
|
+
let t = Y.value?.left || 0;
|
|
1526
|
+
return B.value.chart.grid.position === "middle" ? t + $s.value * e : Z.value <= 1 ? t : t + $s.value * e - $s.value / 2;
|
|
1521
1527
|
}
|
|
1522
1528
|
function rc(e) {
|
|
1523
|
-
return Math.max(
|
|
1529
|
+
return Math.max(Y.value?.left || 0, nc(e));
|
|
1524
1530
|
}
|
|
1525
1531
|
function ic(e) {
|
|
1526
|
-
let t =
|
|
1532
|
+
let t = Y.value?.left || 0, n = Y.value?.right || 0, r = nc(e), i = r + ec.value;
|
|
1527
1533
|
return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
|
|
1528
1534
|
}
|
|
1529
1535
|
function ac(e) {
|
|
1530
|
-
let t =
|
|
1531
|
-
for (let r = 0; r <
|
|
1536
|
+
let t = Y.value?.left || 0, n = Y.value?.right || 0;
|
|
1537
|
+
for (let r = 0; r < Z.value; r += 1) {
|
|
1532
1538
|
let i = Math.max(t, nc(r)), a = Math.min(n, nc(r) + ec.value);
|
|
1533
1539
|
if (e >= i && e <= a) return r;
|
|
1534
1540
|
}
|
|
1535
1541
|
return null;
|
|
1536
1542
|
}
|
|
1537
1543
|
function oc(e) {
|
|
1538
|
-
let t =
|
|
1544
|
+
let t = Y.value?.left || 0, n = Y.value?.right || 0, r = nc(e), i = r + ec.value;
|
|
1539
1545
|
return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
|
|
1540
1546
|
}
|
|
1541
1547
|
function sc(e) {
|
|
1542
1548
|
return Math.max(1e-5, ec.value * e);
|
|
1543
1549
|
}
|
|
1544
|
-
let cc = b(() => le(
|
|
1545
|
-
|
|
1546
|
-
let n = Object.create(null);
|
|
1547
|
-
for (let r = 0; r < e.length; r += 1) {
|
|
1548
|
-
let i = e[r], a = String(t(i));
|
|
1549
|
-
n[a] || (n[a] = []), n[a].push(i);
|
|
1550
|
-
}
|
|
1551
|
-
return n;
|
|
1552
|
-
}
|
|
1553
|
-
let Z = b(() => {
|
|
1554
|
-
let e = lc(cc.value, (e) => e.scaleLabel), t = {};
|
|
1550
|
+
let cc = b(() => le(yo.value.filter((e) => !P.value.includes(e.id)))), Q = b(() => {
|
|
1551
|
+
let e = St(cc.value, (e) => e.scaleLabel), t = {};
|
|
1555
1552
|
for (let [n, r] of Object.entries(e)) {
|
|
1556
1553
|
let e = r.flatMap((e) => e.absoluteValues);
|
|
1557
1554
|
t[n] = {
|
|
@@ -1561,19 +1558,19 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1561
1558
|
};
|
|
1562
1559
|
}
|
|
1563
1560
|
return t;
|
|
1564
|
-
}),
|
|
1565
|
-
let e =
|
|
1566
|
-
return
|
|
1567
|
-
}),
|
|
1561
|
+
}), lc = b(() => {
|
|
1562
|
+
let e = vo.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length;
|
|
1563
|
+
return Y.value.width / Z.value / e - uc.value * e;
|
|
1564
|
+
}), uc = b(() => xs.value.line * B.value.bar.periodGap), dc = b(() => Math.max(1e-5, Ss() - (V.value.useIndividualScale && V.value.isStacked ? 0 : uc.value))), fc = b(() => dc.value * Math.min(Math.abs(B.value.bar.innerGap), .95)), pc = b(() => {
|
|
1568
1565
|
if (!B.value.chart.zoom.minimap.show) return [];
|
|
1569
1566
|
let e = Xs.value.filter((e) => !P.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
1570
1567
|
for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
1571
1568
|
let r = Math.min(...n);
|
|
1572
1569
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
1573
|
-
}),
|
|
1570
|
+
}), mc = b(() => B.value.chart.zoom.minimap.show ? Xs.value.map((e) => ({
|
|
1574
1571
|
...e,
|
|
1575
1572
|
isVisible: !P.value.includes(e.id)
|
|
1576
|
-
})) : []),
|
|
1573
|
+
})) : []), hc = b(() => q.value ? Ds.value.map((e) => ({
|
|
1577
1574
|
slotAbsoluteIndex: e.datapoint.slotAbsoluteIndex,
|
|
1578
1575
|
shape: e.datapoint.shape || e.datapoint.type === "bar" ? "square" : "circle",
|
|
1579
1576
|
name: e.datapoint.name,
|
|
@@ -1584,7 +1581,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1584
1581
|
comments: e.datapoint.comments || [],
|
|
1585
1582
|
prefix: e.datapoint.prefix || B.value.chart.labels.prefix,
|
|
1586
1583
|
suffix: e.datapoint.suffix || B.value.chart.labels.suffix
|
|
1587
|
-
})) :
|
|
1584
|
+
})) : bo.value.map((e) => ({
|
|
1588
1585
|
slotAbsoluteIndex: e.slotAbsoluteIndex,
|
|
1589
1586
|
shape: e.shape || e.type === "bar" ? "square" : "circle",
|
|
1590
1587
|
name: e.name,
|
|
@@ -1594,22 +1591,22 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1594
1591
|
comments: e.comments || [],
|
|
1595
1592
|
prefix: e.prefix || B.value.chart.labels.prefix,
|
|
1596
1593
|
suffix: e.suffix || B.value.chart.labels.suffix
|
|
1597
|
-
}))),
|
|
1598
|
-
let t = e >= 0 ? gs.value -
|
|
1594
|
+
}))), gc = b(() => K.value.ticks.map((e) => {
|
|
1595
|
+
let t = e >= 0 ? gs.value - Y.value.height * ls(e) : gs.value + Y.value.height * ls(Math.abs(e));
|
|
1599
1596
|
return {
|
|
1600
|
-
y: us.value ?
|
|
1597
|
+
y: us.value ? Y.value.top + Y.value.bottom - t : t,
|
|
1601
1598
|
value: e,
|
|
1602
1599
|
prefix: B.value.chart.labels.prefix,
|
|
1603
1600
|
suffix: B.value.chart.labels.suffix
|
|
1604
1601
|
};
|
|
1605
|
-
})),
|
|
1602
|
+
})), _c = b(() => {
|
|
1606
1603
|
let e = B.value.chart.annotations;
|
|
1607
1604
|
if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
|
|
1608
1605
|
let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
|
|
1609
1606
|
if (!t.length) return [];
|
|
1610
|
-
let { left: n, right: r } =
|
|
1607
|
+
let { left: n, right: r } = Y.value, i = gs.value, a = Y.value.height, o = K.value.min, s = K.value.max - o, l = (e) => i - (e - 0) / s * a;
|
|
1611
1608
|
return t.map((e) => {
|
|
1612
|
-
let { yAxis: { yTop: t, yBottom: i, label: a } } = e, o = t != null && i != null && t !== i, s = t == null ? null : l(t), u = i == null ? null : l(i), ee =
|
|
1609
|
+
let { yAxis: { yTop: t, yBottom: i, label: a } } = e, o = t != null && i != null && t !== i, s = t == null ? null : l(t), u = i == null ? null : l(i), ee = Po(a.fontSize);
|
|
1613
1610
|
ee.font = `${a.fontSize}px sans-serif`;
|
|
1614
1611
|
let d = ee.measureText(a.text).width, te = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (s != null && u != null ? Math.min(s, u) : s ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, ne;
|
|
1615
1612
|
ne = a.textAnchor === "middle" ? f - d / 2 - a.padding?.left : a.textAnchor === "end" ? f - d - a.padding?.right : f - a.padding?.left;
|
|
@@ -1646,12 +1643,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1646
1643
|
};
|
|
1647
1644
|
});
|
|
1648
1645
|
});
|
|
1649
|
-
function
|
|
1646
|
+
function vc(e, t) {
|
|
1650
1647
|
let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
|
|
1651
|
-
return
|
|
1648
|
+
return bt(e[t].value) && i && B.value.line.cutNullValues;
|
|
1652
1649
|
}
|
|
1653
|
-
let
|
|
1654
|
-
let e =
|
|
1650
|
+
let yc = b(() => {
|
|
1651
|
+
let e = vo.value.flatMap((e) => e.series.map((e) => e.x)).filter(Number.isFinite);
|
|
1655
1652
|
if (!e.length) return {
|
|
1656
1653
|
min: 0,
|
|
1657
1654
|
max: 1
|
|
@@ -1661,15 +1658,15 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1661
1658
|
min: t,
|
|
1662
1659
|
max: t === n ? n + 1 : n
|
|
1663
1660
|
};
|
|
1664
|
-
}),
|
|
1665
|
-
let e = B.value.chart.grid.labels.xAxis.commonScaleSteps, t = B.value.chart.grid.labels.xAxis.scaleMin, n = B.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) :
|
|
1661
|
+
}), bc = b(() => {
|
|
1662
|
+
let e = B.value.chart.grid.labels.xAxis.commonScaleSteps, t = B.value.chart.grid.labels.xAxis.scaleMin, n = B.value.chart.grid.labels.xAxis.scaleMax, r = t !== null && Number.isFinite(Number(t)) ? Number(t) : yc.value.min, i = n !== null && Number.isFinite(Number(n)) ? Number(n) : yc.value.max, a = B.value.chart.grid.labels.xAxis.useNiceScale ? fe(r, i, e) : de(r, i, e);
|
|
1666
1663
|
if (B.value.chart.grid.position !== "start") return a;
|
|
1667
1664
|
let o = a.ticks.length > 1 ? a.ticks[1] - a.ticks[0] : 1;
|
|
1668
1665
|
return {
|
|
1669
1666
|
...a,
|
|
1670
1667
|
max: a.max + o
|
|
1671
1668
|
};
|
|
1672
|
-
}),
|
|
1669
|
+
}), xc = b(() => q.value ? (ms.value ? [...bc.value.ticks].reverse() : [...bc.value.ticks]).map((e, t) => ({
|
|
1673
1670
|
id: `continuous_x_label_${t}`,
|
|
1674
1671
|
text: _(B.value.chart.grid.labels.xAxis.formatter, e, s({
|
|
1675
1672
|
v: e,
|
|
@@ -1681,18 +1678,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1681
1678
|
seriesIndex: t
|
|
1682
1679
|
}),
|
|
1683
1680
|
value: e,
|
|
1684
|
-
x:
|
|
1681
|
+
x: Cc({ x: e }),
|
|
1685
1682
|
index: t
|
|
1686
|
-
})) :
|
|
1687
|
-
function
|
|
1688
|
-
return
|
|
1683
|
+
})) : Wo.value);
|
|
1684
|
+
function Sc(e, t) {
|
|
1685
|
+
return q.value ? e.x : tc(t);
|
|
1689
1686
|
}
|
|
1690
|
-
function
|
|
1691
|
-
let t =
|
|
1692
|
-
return
|
|
1687
|
+
function Cc({ x: e }) {
|
|
1688
|
+
let t = bc.value.max - bc.value.min || 1, n = hs((e - bc.value.min) / t);
|
|
1689
|
+
return Y.value.left + Y.value.width * n;
|
|
1693
1690
|
}
|
|
1694
|
-
let
|
|
1695
|
-
let e = H.value.flatMap((e) => e.series || []).filter(
|
|
1691
|
+
let wc = b(() => {
|
|
1692
|
+
let e = H.value.flatMap((e) => e.series || []).filter(Ct).map((e) => Number(e.x)).filter(Number.isFinite);
|
|
1696
1693
|
if (!e.length) return {
|
|
1697
1694
|
min: 0,
|
|
1698
1695
|
max: 1
|
|
@@ -1702,12 +1699,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1702
1699
|
min: t,
|
|
1703
1700
|
max: t === n ? n + 1 : n
|
|
1704
1701
|
};
|
|
1705
|
-
}),
|
|
1706
|
-
function
|
|
1707
|
-
return
|
|
1702
|
+
}), Tc = b(() => q.value ? wc.value.min : 0), Ec = b(() => q.value ? wc.value.max : U.value);
|
|
1703
|
+
function Dc(e, t) {
|
|
1704
|
+
return q.value ? e.x == null || e.y == null ? null : Cc(e) : tc(t);
|
|
1708
1705
|
}
|
|
1709
|
-
function
|
|
1710
|
-
let c = e.scaleSteps || B.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !B.value.chart.grid.labels.yAxis.useNiceScale ? de : fe, ee = o.max === o.min ? o.max * l : o.max, d = a === i ? a * l : a, te = u(o.min, ee, c), f = u(i, d, c), p = te.min >= 0 ? 0 : Math.abs(te.min), ne = te.max + Math.abs(p), re = f.max + 0, ie = e.stackIndex, ae = t - 1 - ie, oe = V.value.isStacked ? 1 - e.cumulatedStackRatio : 0, se = V.value.isStacked ? r * oe + n * ae : 0, ce = V.value.isStacked ? r * e.stackRatio :
|
|
1706
|
+
function Oc({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
|
|
1707
|
+
let c = e.scaleSteps || B.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !B.value.chart.grid.labels.yAxis.useNiceScale ? de : fe, ee = o.max === o.min ? o.max * l : o.max, d = a === i ? a * l : a, te = u(o.min, ee, c), f = u(i, d, c), p = te.min >= 0 ? 0 : Math.abs(te.min), ne = te.max + Math.abs(p), re = f.max + 0, ie = e.stackIndex, ae = t - 1 - ie, oe = V.value.isStacked ? 1 - e.cumulatedStackRatio : 0, se = V.value.isStacked ? r * oe + n * ae : 0, ce = V.value.isStacked ? r * e.stackRatio : Y.value.height;
|
|
1711
1708
|
return {
|
|
1712
1709
|
scaleSteps: c,
|
|
1713
1710
|
individualScale: te,
|
|
@@ -1718,26 +1715,26 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1718
1715
|
autoScaleMax: re,
|
|
1719
1716
|
yOffset: se,
|
|
1720
1717
|
individualHeight: ce,
|
|
1721
|
-
zeroPosition:
|
|
1722
|
-
autoScaleZeroPosition:
|
|
1718
|
+
zeroPosition: Y.value?.bottom - se - ce * p / ne,
|
|
1719
|
+
autoScaleZeroPosition: Y.value?.bottom - se - ce * 0 / re
|
|
1723
1720
|
};
|
|
1724
1721
|
}
|
|
1725
|
-
let
|
|
1722
|
+
let kc = b(() => {
|
|
1726
1723
|
let e = cc.value.filter((e) => [
|
|
1727
1724
|
"bar",
|
|
1728
1725
|
"line",
|
|
1729
1726
|
"plot"
|
|
1730
|
-
].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i =
|
|
1727
|
+
].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
|
|
1731
1728
|
return e.filter((e) => e.type === "bar").map((e, r) => {
|
|
1732
|
-
|
|
1733
|
-
let a =
|
|
1729
|
+
Zo(e);
|
|
1730
|
+
let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
|
|
1734
1731
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
|
|
1735
1732
|
valueMin: a,
|
|
1736
1733
|
valueMax: o < 0 ? 0 : o
|
|
1737
1734
|
}, c = {
|
|
1738
1735
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1739
1736
|
min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
|
|
1740
|
-
}, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: d, autoScaleMax: te, yOffset: f, individualHeight: p, zeroPosition: ne, autoScaleZeroPosition: re } =
|
|
1737
|
+
}, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: d, autoScaleMax: te, yOffset: f, individualHeight: p, zeroPosition: ne, autoScaleZeroPosition: re } = Oc({
|
|
1741
1738
|
datapoint: e,
|
|
1742
1739
|
totalSeries: t,
|
|
1743
1740
|
gap: n,
|
|
@@ -1745,8 +1742,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1745
1742
|
autoScaleValueMin: s.valueMin,
|
|
1746
1743
|
autoScaleValueMax: s.valueMax,
|
|
1747
1744
|
individualExtremes: c
|
|
1748
|
-
}), ie =
|
|
1749
|
-
let i = V.value.useIndividualScale ? (e.absoluteValues[n] + ee) / d : ls(t), a = V.value.useIndividualScale && V.value.isStacked ?
|
|
1745
|
+
}), ie = yo.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length, ae = e.series.map((t, n) => {
|
|
1746
|
+
let i = V.value.useIndividualScale ? (e.absoluteValues[n] + ee) / d : ls(t), a = V.value.useIndividualScale && V.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + xs.value.bar * r + xs.value.bar * n * ie - lc.value / 2 - r * uc.value;
|
|
1750
1747
|
return {
|
|
1751
1748
|
yOffset: v(f),
|
|
1752
1749
|
individualHeight: v(p),
|
|
@@ -1762,7 +1759,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1762
1759
|
comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
|
|
1763
1760
|
};
|
|
1764
1761
|
}), oe = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), se = e.series.map((t, n) => {
|
|
1765
|
-
let i = V.value.useIndividualScale && V.value.isStacked ?
|
|
1762
|
+
let i = V.value.useIndividualScale && V.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - xs.value.bar / 2 + xs.value.bar * r + xs.value.bar * n * yo.value.filter((e) => e.type === "bar").filter((e) => !P.value.includes(e.id)).length;
|
|
1766
1763
|
return {
|
|
1767
1764
|
yOffset: v(f),
|
|
1768
1765
|
individualHeight: v(p),
|
|
@@ -1800,7 +1797,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1800
1797
|
suffix: e.suffix || B.value.chart.labels.suffix,
|
|
1801
1798
|
datapoint: e
|
|
1802
1799
|
}));
|
|
1803
|
-
return
|
|
1800
|
+
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? le : ce, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? re : ne, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : d, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = le, Q.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
|
|
1804
1801
|
...e,
|
|
1805
1802
|
yOffset: f,
|
|
1806
1803
|
autoScaleYLabels: le,
|
|
@@ -1810,25 +1807,25 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1810
1807
|
individualMax: e.autoScaling ? te : d,
|
|
1811
1808
|
zeroPosition: e.autoScaling ? re : ne,
|
|
1812
1809
|
plots: e.autoScaling ? se : ae,
|
|
1813
|
-
groupId:
|
|
1810
|
+
groupId: Q.value[e.scaleLabel].groupId
|
|
1814
1811
|
};
|
|
1815
1812
|
});
|
|
1816
|
-
}),
|
|
1813
|
+
}), $ = b(() => {
|
|
1817
1814
|
let e = cc.value.filter((e) => [
|
|
1818
1815
|
"bar",
|
|
1819
1816
|
"line",
|
|
1820
1817
|
"plot"
|
|
1821
|
-
].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i =
|
|
1818
|
+
].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
|
|
1822
1819
|
return e.filter((e) => e.type === "line").map((e, r) => {
|
|
1823
|
-
|
|
1824
|
-
let a =
|
|
1820
|
+
Zo(e);
|
|
1821
|
+
let a = Q.value[e.scaleLabel].min, s = Q.value[e.scaleLabel].max, c = {
|
|
1825
1822
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (s - a)),
|
|
1826
1823
|
valueMin: a,
|
|
1827
1824
|
valueMax: s
|
|
1828
1825
|
}, u = {
|
|
1829
1826
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1830
1827
|
min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
|
|
1831
|
-
}, { individualScale: d, autoScaleSteps: f, individualZero: p, individualMax: re, autoScaleMax: ae, yOffset: oe, individualHeight: ce, zeroPosition: le, autoScaleZeroPosition: ue } =
|
|
1828
|
+
}, { individualScale: d, autoScaleSteps: f, individualZero: p, individualMax: re, autoScaleMax: ae, yOffset: oe, individualHeight: ce, zeroPosition: le, autoScaleZeroPosition: ue } = Oc({
|
|
1832
1829
|
datapoint: e,
|
|
1833
1830
|
totalSeries: t,
|
|
1834
1831
|
gap: n,
|
|
@@ -1837,17 +1834,17 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1837
1834
|
autoScaleValueMax: c.valueMax,
|
|
1838
1835
|
individualExtremes: u
|
|
1839
1836
|
}), m = e.series.map((t, n) => {
|
|
1840
|
-
if (
|
|
1837
|
+
if (q.value && (t.x == null || t.y == null)) return {
|
|
1841
1838
|
index: n,
|
|
1842
1839
|
x: null,
|
|
1843
1840
|
y: null,
|
|
1844
1841
|
value: null,
|
|
1845
1842
|
comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
|
|
1846
1843
|
};
|
|
1847
|
-
let r = V.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(p)) / re : ls(
|
|
1844
|
+
let r = V.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(p)) / re : ls(_o(t));
|
|
1848
1845
|
return {
|
|
1849
1846
|
index: n,
|
|
1850
|
-
x: v(
|
|
1847
|
+
x: v(Dc(t, n)),
|
|
1851
1848
|
y: v(fs({
|
|
1852
1849
|
ratio: r,
|
|
1853
1850
|
yOffset: oe,
|
|
@@ -1856,7 +1853,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1856
1853
|
value: e.absoluteValues[n],
|
|
1857
1854
|
comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
|
|
1858
1855
|
};
|
|
1859
|
-
}), h = e.absoluteValues.map((e) => f.min >= 0 ? (e - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (e + Math.abs(f.min)) / (f.max + Math.abs(f.min))), de = e.series.map((t, n) =>
|
|
1856
|
+
}), h = e.absoluteValues.map((e) => f.min >= 0 ? (e - Math.abs(f.min)) / (f.max - Math.abs(f.min)) : (e + Math.abs(f.min)) / (f.max + Math.abs(f.min))), de = e.series.map((t, n) => q.value && (t.x === null || t.y === null) ? {
|
|
1860
1857
|
index: n,
|
|
1861
1858
|
x: null,
|
|
1862
1859
|
y: null,
|
|
@@ -1864,13 +1861,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1864
1861
|
comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
|
|
1865
1862
|
} : [void 0, null].includes(e.absoluteValues[n]) ? {
|
|
1866
1863
|
index: n,
|
|
1867
|
-
x: v(
|
|
1864
|
+
x: v(Dc(t, n)),
|
|
1868
1865
|
y: le,
|
|
1869
1866
|
value: e.absoluteValues[n],
|
|
1870
1867
|
comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
|
|
1871
1868
|
} : {
|
|
1872
1869
|
index: n,
|
|
1873
|
-
x: v(
|
|
1870
|
+
x: v(Dc(t, n)),
|
|
1874
1871
|
y: v(fs({
|
|
1875
1872
|
ratio: h[n] || 0,
|
|
1876
1873
|
yOffset: oe,
|
|
@@ -1901,8 +1898,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1901
1898
|
suffix: e.suffix || B.value.chart.labels.suffix,
|
|
1902
1899
|
datapoint: e
|
|
1903
1900
|
}));
|
|
1904
|
-
|
|
1905
|
-
let Ce = V.value.useIndividualScale ? e.autoScaling ? ue : le :
|
|
1901
|
+
Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? Se : xe, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ue : le, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ae : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = oe, Q.value[e.scaleLabel].individualHeight = ce, Q.value[e.scaleLabel].autoScaleYLabels = Se, Q.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
|
|
1902
|
+
let Ce = V.value.useIndividualScale ? e.autoScaling ? ue : le : co.value, we = Math.max(Math.max(e.autoScaling ? ue : xe.at(-1) ? xe.at(-1).y : 0, Y.value?.top), Ce), Ee = e.autoScaling ? de : m, Oe = B.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), ke = e.absoluteValues.filter((e) => ![
|
|
1906
1903
|
null,
|
|
1907
1904
|
void 0,
|
|
1908
1905
|
NaN
|
|
@@ -1926,25 +1923,25 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1926
1923
|
area: e.useArea ? e.useStepper ? o(Oe, we) : V.value.useIndividualScale ? B.value.line.cutNullValues ? se(e.autoScaling ? de : m, we) : Te(e.autoScaling ? de.filter((e) => e.value !== null) : m.filter((e) => e.value !== null), we) : B.value.line.cutNullValues ? se(m, we) : Te(m.filter((e) => e.value !== null), we) : "",
|
|
1927
1924
|
curveAreas: e.useArea ? e.useStepper ? o(Oe, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : ne(e.autoScaling ? B.value.line.cutNullValues ? de : de.filter((e) => e.value !== null) : B.value.line.cutNullValues ? m : m.filter((e) => e.value !== null), we, B.value.line.cutNullValues) : [],
|
|
1928
1925
|
straight: e.useStepper ? e.autoScaling ? ve : _e : e.autoScaling ? ge : me,
|
|
1929
|
-
groupId:
|
|
1926
|
+
groupId: Q.value[e.scaleLabel].groupId
|
|
1930
1927
|
};
|
|
1931
1928
|
});
|
|
1932
|
-
}),
|
|
1929
|
+
}), Ac = b(() => {
|
|
1933
1930
|
let e = cc.value.filter((e) => [
|
|
1934
1931
|
"bar",
|
|
1935
1932
|
"line",
|
|
1936
1933
|
"plot"
|
|
1937
|
-
].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i =
|
|
1934
|
+
].includes(e.type)), t = e.length, n = B.value.chart.grid.labels.yAxis.gap, r = V.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
|
|
1938
1935
|
return e.filter((e) => e.type === "plot").map((e) => {
|
|
1939
|
-
|
|
1940
|
-
let r =
|
|
1936
|
+
Zo(e);
|
|
1937
|
+
let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
|
|
1941
1938
|
ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
|
|
1942
1939
|
valueMin: r,
|
|
1943
1940
|
valueMax: a
|
|
1944
1941
|
}, s = {
|
|
1945
1942
|
max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
|
|
1946
1943
|
min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
|
|
1947
|
-
}, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: d, yOffset: te, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: ne } =
|
|
1944
|
+
}, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: d, yOffset: te, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: ne } = Oc({
|
|
1948
1945
|
datapoint: e,
|
|
1949
1946
|
totalSeries: t,
|
|
1950
1947
|
gap: n,
|
|
@@ -1954,17 +1951,17 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1954
1951
|
individualExtremes: s,
|
|
1955
1952
|
forceExactScale: !0
|
|
1956
1953
|
}), re = e.series.map((t, n) => {
|
|
1957
|
-
if (
|
|
1954
|
+
if (q.value && (t.x == null || t.y == null)) return {
|
|
1958
1955
|
index: n,
|
|
1959
1956
|
x: null,
|
|
1960
1957
|
y: null,
|
|
1961
1958
|
value: null,
|
|
1962
1959
|
comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
|
|
1963
1960
|
};
|
|
1964
|
-
let r = V.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : ls(
|
|
1961
|
+
let r = V.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : ls(_o(t));
|
|
1965
1962
|
return {
|
|
1966
1963
|
index: n,
|
|
1967
|
-
x: v(
|
|
1964
|
+
x: v(Dc(t, n)),
|
|
1968
1965
|
y: v(fs({
|
|
1969
1966
|
ratio: r,
|
|
1970
1967
|
yOffset: te,
|
|
@@ -1973,7 +1970,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1973
1970
|
value: e.absoluteValues[n],
|
|
1974
1971
|
comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
|
|
1975
1972
|
};
|
|
1976
|
-
}), ie = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ae = e.series.map((t, n) =>
|
|
1973
|
+
}), ie = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ae = e.series.map((t, n) => q.value && (t.x === null || t.y === null) ? {
|
|
1977
1974
|
index: n,
|
|
1978
1975
|
x: null,
|
|
1979
1976
|
y: null,
|
|
@@ -1981,7 +1978,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
1981
1978
|
comment: e.comments && e.comments.slice(W.value.start, W.value.end)[n] || ""
|
|
1982
1979
|
} : {
|
|
1983
1980
|
index: n,
|
|
1984
|
-
x: v(
|
|
1981
|
+
x: v(Dc(t, n)),
|
|
1985
1982
|
y: v(fs({
|
|
1986
1983
|
ratio: ie[n] || 0,
|
|
1987
1984
|
yOffset: te,
|
|
@@ -2012,7 +2009,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2012
2009
|
suffix: e.suffix || B.value.chart.labels.suffix,
|
|
2013
2010
|
datapoint: e
|
|
2014
2011
|
}));
|
|
2015
|
-
return
|
|
2012
|
+
return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = B.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : oe, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = te, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = cc.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
|
|
2016
2013
|
...e,
|
|
2017
2014
|
yOffset: te,
|
|
2018
2015
|
autoScaleYLabels: se,
|
|
@@ -2022,11 +2019,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2022
2019
|
individualMax: e.autoScaling ? d : ee,
|
|
2023
2020
|
zeroPosition: e.autoScaling ? ne : p,
|
|
2024
2021
|
plots: e.autoScaling ? ae : re,
|
|
2025
|
-
groupId:
|
|
2022
|
+
groupId: Q.value[e.scaleLabel].groupId
|
|
2026
2023
|
};
|
|
2027
2024
|
});
|
|
2028
2025
|
}), jc = b(() => {
|
|
2029
|
-
let e =
|
|
2026
|
+
let e = $.value.map((e) => ({
|
|
2030
2027
|
name: e.name,
|
|
2031
2028
|
color: e.color,
|
|
2032
2029
|
scale: e.individualScale,
|
|
@@ -2036,9 +2033,9 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2036
2033
|
scaleLabel: e.scaleLabel || "",
|
|
2037
2034
|
id: e.id,
|
|
2038
2035
|
yOffset: e.yOffset || 0,
|
|
2039
|
-
individualHeight: e.individualHeight ||
|
|
2036
|
+
individualHeight: e.individualHeight || Y.value.height,
|
|
2040
2037
|
autoScaleYLabels: e.autoScaleYLabels
|
|
2041
|
-
})), t =
|
|
2038
|
+
})), t = kc.value.map((e) => ({
|
|
2042
2039
|
name: e.name,
|
|
2043
2040
|
color: e.color,
|
|
2044
2041
|
scale: e.individualScale,
|
|
@@ -2048,8 +2045,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2048
2045
|
scaleLabel: e.scaleLabel || "",
|
|
2049
2046
|
id: e.id,
|
|
2050
2047
|
yOffset: e.yOffset || 0,
|
|
2051
|
-
individualHeight: e.individualHeight ||
|
|
2052
|
-
})), n =
|
|
2048
|
+
individualHeight: e.individualHeight || Y.value.height
|
|
2049
|
+
})), n = Ac.value.map((e) => ({
|
|
2053
2050
|
name: e.name,
|
|
2054
2051
|
color: e.color,
|
|
2055
2052
|
scale: e.individualScale,
|
|
@@ -2059,15 +2056,15 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2059
2056
|
scaleLabel: e.scaleLabel || "",
|
|
2060
2057
|
id: e.id,
|
|
2061
2058
|
yOffset: e.yOffset || 0,
|
|
2062
|
-
individualHeight: e.individualHeight ||
|
|
2063
|
-
})), r = V.value.useIndividualScale && !V.value.isStacked ? Object.values(
|
|
2059
|
+
individualHeight: e.individualHeight || Y.value.height
|
|
2060
|
+
})), r = V.value.useIndividualScale && !V.value.isStacked ? Object.values(Q.value) : [
|
|
2064
2061
|
...e,
|
|
2065
2062
|
...t,
|
|
2066
2063
|
...n
|
|
2067
2064
|
], i = r.flatMap((e) => e).length;
|
|
2068
2065
|
return r.flatMap((e, t) => {
|
|
2069
2066
|
let n = 0;
|
|
2070
|
-
n = V.value.isStacked ?
|
|
2067
|
+
n = V.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + Ao() * t : Y.value?.left / i * (t + 1);
|
|
2071
2068
|
let r = V.value.useIndividualScale && !V.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
|
|
2072
2069
|
return {
|
|
2073
2070
|
unique: e.unique,
|
|
@@ -2099,7 +2096,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2099
2096
|
return t.forEach((e, t) => {
|
|
2100
2097
|
let [i, a] = Array.isArray(e) ? e : [e.a, e.b];
|
|
2101
2098
|
if (!i || !a) return;
|
|
2102
|
-
let o =
|
|
2099
|
+
let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
|
|
2103
2100
|
if (!o || !s || o.type !== "line" || s.type !== "line") return;
|
|
2104
2101
|
let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
|
|
2105
2102
|
ue({
|
|
@@ -2119,13 +2116,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2119
2116
|
});
|
|
2120
2117
|
}), r;
|
|
2121
2118
|
}), Nc = b(() => ({
|
|
2122
|
-
timeLabel:
|
|
2123
|
-
datapoint:
|
|
2119
|
+
timeLabel: X.value[R.value],
|
|
2120
|
+
datapoint: hc.value,
|
|
2124
2121
|
seriesIndex: R.value,
|
|
2125
|
-
series:
|
|
2126
|
-
bars:
|
|
2127
|
-
lines:
|
|
2128
|
-
plots:
|
|
2122
|
+
series: yo.value,
|
|
2123
|
+
bars: kc.value,
|
|
2124
|
+
lines: $.value,
|
|
2125
|
+
plots: Ac.value,
|
|
2129
2126
|
config: B.value
|
|
2130
2127
|
})), Pc = E({
|
|
2131
2128
|
months: [],
|
|
@@ -2154,44 +2151,44 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2154
2151
|
text: Ic.value(t, B.value.chart.zoom.timeFormat),
|
|
2155
2152
|
absoluteIndex: t
|
|
2156
2153
|
}))), Rc = b(() => {
|
|
2157
|
-
let e = "", t =
|
|
2154
|
+
let e = "", t = hc.value.map((e) => e.value).filter((e) => ve(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = q.value ? { text: _(B.value.chart.grid.labels.xAxis.formatter, Ds.value[0]?.point.raw?.x ?? Ds.value[0]?.point.x, s({
|
|
2158
2155
|
v: Ds.value[0]?.point.raw?.x ?? Ds.value[0]?.point.x,
|
|
2159
2156
|
r: B.value.chart.tooltip.roundingValue
|
|
2160
2157
|
}), {
|
|
2161
2158
|
datapoint: null,
|
|
2162
2159
|
serriesIndex: null
|
|
2163
|
-
}) } :
|
|
2160
|
+
}) } : X.value[R.value], r = B.value.chart.tooltip.customFormat;
|
|
2164
2161
|
if (xe(r) && be(() => r({
|
|
2165
2162
|
absoluteIndex: R.value + W.value.start,
|
|
2166
2163
|
seriesIndex: R.value,
|
|
2167
|
-
datapoint:
|
|
2168
|
-
series:
|
|
2169
|
-
bars:
|
|
2170
|
-
lines:
|
|
2171
|
-
plots:
|
|
2164
|
+
datapoint: hc.value,
|
|
2165
|
+
series: yo.value,
|
|
2166
|
+
bars: kc.value,
|
|
2167
|
+
lines: $.value,
|
|
2168
|
+
plots: Ac.value,
|
|
2172
2169
|
config: B.value,
|
|
2173
2170
|
dateLabel: n
|
|
2174
2171
|
}))) return r({
|
|
2175
2172
|
absoluteIndex: R.value + W.value.start,
|
|
2176
2173
|
seriesIndex: R.value,
|
|
2177
|
-
datapoint:
|
|
2178
|
-
series:
|
|
2179
|
-
bars:
|
|
2180
|
-
lines:
|
|
2181
|
-
plots:
|
|
2174
|
+
datapoint: hc.value,
|
|
2175
|
+
series: yo.value,
|
|
2176
|
+
bars: kc.value,
|
|
2177
|
+
lines: $.value,
|
|
2178
|
+
plots: Ac.value,
|
|
2182
2179
|
config: B.value,
|
|
2183
2180
|
dateLabel: n
|
|
2184
2181
|
});
|
|
2185
2182
|
if (n && n.text && B.value.chart.tooltip.showTimeLabel) {
|
|
2186
2183
|
let t = Ic.value(R.value + W.value.start, B.value.chart.tooltip.timeFormat);
|
|
2187
|
-
|
|
2184
|
+
q.value || (e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.chart.tooltip.borderColor}; width:100%">${B.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !B.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`);
|
|
2188
2185
|
}
|
|
2189
|
-
return
|
|
2186
|
+
return hc.value.forEach((r) => {
|
|
2190
2187
|
if (ve(r.value)) {
|
|
2191
2188
|
let a = "", o = "";
|
|
2192
|
-
switch (
|
|
2189
|
+
switch (ia.value[r.type]) {
|
|
2193
2190
|
case "bar":
|
|
2194
|
-
a = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
2191
|
+
a = `<svg viewBox="0 0 40 40" height="14" width="14">${Pi.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${r.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Pi.pattern ? `url(#pattern_${F.value}_${r.slotAbsoluteIndex}` : r.color}" /></svg>`;
|
|
2195
2192
|
break;
|
|
2196
2193
|
case "line":
|
|
2197
2194
|
!r.shape || ![
|
|
@@ -2338,13 +2335,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2338
2335
|
v: r.value,
|
|
2339
2336
|
s: r.suffix,
|
|
2340
2337
|
r: B.value.chart.tooltip.roundingValue
|
|
2341
|
-
}), { datapoint: r }) : "", l = B.value.chart.tooltip.showValue ? n.text : "", u =
|
|
2338
|
+
}), { datapoint: r }) : "", l = B.value.chart.tooltip.showValue ? n.text : "", u = q.value ? `
|
|
2342
2339
|
<span>${B.value.chart.grid.labels.axis.xLabel || "X"}: </span>
|
|
2343
2340
|
<span>${l}</span>,
|
|
2344
2341
|
<span>${B.value.chart.grid.labels.axis.yLabel || "Y"}: </span>
|
|
2345
2342
|
<span>${c}</span>
|
|
2346
2343
|
` : c;
|
|
2347
|
-
|
|
2344
|
+
q.value ? e += `
|
|
2348
2345
|
<div style="display:flex;flex-direction:column;">
|
|
2349
2346
|
<div style="display:flex; flex-direction:row; gap:3px;">
|
|
2350
2347
|
<div style="width:20px">${a}</div>
|
|
@@ -2362,33 +2359,33 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2362
2359
|
}
|
|
2363
2360
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${B.value.chart.tooltip.color}">${e}</div>`;
|
|
2364
2361
|
}), zc = b(() => {
|
|
2365
|
-
if (
|
|
2362
|
+
if (vo.value.length === 0) return {
|
|
2366
2363
|
head: [],
|
|
2367
2364
|
body: [],
|
|
2368
2365
|
config: {},
|
|
2369
2366
|
columnNames: []
|
|
2370
2367
|
};
|
|
2371
|
-
let e =
|
|
2368
|
+
let e = bo.value.map((e) => ({
|
|
2372
2369
|
label: e.name,
|
|
2373
2370
|
color: e.color,
|
|
2374
2371
|
type: e.type
|
|
2375
2372
|
})), t = [];
|
|
2376
|
-
return
|
|
2373
|
+
return X.value.forEach((e, n) => {
|
|
2377
2374
|
let r = B.value.table.useDefaultTimeFormat ? [e.text] : [Ic.value(n + W.value.start, B.value.table.timeFormat)];
|
|
2378
|
-
|
|
2379
|
-
r.push(
|
|
2375
|
+
bo.value.forEach((e) => {
|
|
2376
|
+
r.push(bt(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(B.value.table.rounding)) : "");
|
|
2380
2377
|
}), t.push(r);
|
|
2381
2378
|
}), {
|
|
2382
2379
|
head: e,
|
|
2383
2380
|
body: t
|
|
2384
2381
|
};
|
|
2385
2382
|
}), Bc = b(() => {
|
|
2386
|
-
let e = B.value.table.showSum, t = [""].concat(
|
|
2383
|
+
let e = B.value.table.showSum, t = [""].concat(bo.value.map((e) => e.name));
|
|
2387
2384
|
e && (t = t.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>"));
|
|
2388
2385
|
let n = [];
|
|
2389
|
-
for (let t = 0; t <
|
|
2390
|
-
let r =
|
|
2391
|
-
n.push([B.value.table.useDefaultTimeFormat ?
|
|
2386
|
+
for (let t = 0; t < Z.value; t += 1) {
|
|
2387
|
+
let r = bo.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
|
|
2388
|
+
n.push([B.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : Ic.value(t + W.value.start, B.value.table.timeFormat)].concat(bo.value.map((e) => _(e.type === "line" ? B.value.line.labels.formatter : e.type === "bar" ? B.value.bar.labels.formatter : B.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, s({
|
|
2392
2389
|
p: e.prefix || B.value.chart.labels.prefix,
|
|
2393
2390
|
v: e.absoluteValues[t] ?? 0,
|
|
2394
2391
|
s: e.suffix || B.value.chart.labels.suffix,
|
|
@@ -2407,7 +2404,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2407
2404
|
outline: B.value.table.td.outline
|
|
2408
2405
|
},
|
|
2409
2406
|
breakpoint: B.value.table.responsiveBreakpoint
|
|
2410
|
-
}, i = [B.value.table.columnNames.period].concat(
|
|
2407
|
+
}, i = [B.value.table.columnNames.period].concat(bo.value.map((e) => e.name), B.value.table.columnNames.total);
|
|
2411
2408
|
return {
|
|
2412
2409
|
head: t,
|
|
2413
2410
|
body: n,
|
|
@@ -2427,9 +2424,9 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2427
2424
|
});
|
|
2428
2425
|
}
|
|
2429
2426
|
function Hc(e, t = null) {
|
|
2430
|
-
if (
|
|
2431
|
-
|
|
2432
|
-
let n =
|
|
2427
|
+
if (xo.value) return;
|
|
2428
|
+
sa.value = e;
|
|
2429
|
+
let n = bo.value.map((e) => ({
|
|
2433
2430
|
name: e.name,
|
|
2434
2431
|
value: [
|
|
2435
2432
|
null,
|
|
@@ -2457,15 +2454,15 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2457
2454
|
V.value.showTooltip = !V.value.showTooltip;
|
|
2458
2455
|
}
|
|
2459
2456
|
function Kc(e) {
|
|
2460
|
-
|
|
2457
|
+
oa.value = e, la.value += 1;
|
|
2461
2458
|
}
|
|
2462
2459
|
function qc() {
|
|
2463
2460
|
if (!B.value.responsiveProportionalSizing) {
|
|
2464
|
-
z.value.dataLabels = B.value.chart.grid.labels.fontSize, z.value.yAxis = B.value.chart.grid.labels.axis.fontSize, z.value.xAxis = B.value.chart.grid.labels.xAxisLabels.fontSize, z.value.plotLabels = B.value.chart.labels.fontSize,
|
|
2461
|
+
z.value.dataLabels = B.value.chart.grid.labels.fontSize, z.value.yAxis = B.value.chart.grid.labels.axis.fontSize, z.value.xAxis = B.value.chart.grid.labels.xAxisLabels.fontSize, z.value.plotLabels = B.value.chart.labels.fontSize, Ra.value.plot = B.value.plot.radius, Ra.value.line = B.value.line.radius;
|
|
2465
2462
|
return;
|
|
2466
2463
|
}
|
|
2467
2464
|
z.value.dataLabels = ke({
|
|
2468
|
-
relator:
|
|
2465
|
+
relator: ta.value,
|
|
2469
2466
|
adjuster: 400,
|
|
2470
2467
|
source: B.value.chart.grid.labels.fontSize,
|
|
2471
2468
|
threshold: 10,
|
|
@@ -2488,13 +2485,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2488
2485
|
source: B.value.chart.labels.fontSize,
|
|
2489
2486
|
threshold: 10,
|
|
2490
2487
|
fallback: 10
|
|
2491
|
-
}),
|
|
2488
|
+
}), Ra.value.plot = ke({
|
|
2492
2489
|
relator: N.value,
|
|
2493
2490
|
adjuster: 800,
|
|
2494
2491
|
source: B.value.plot.radius,
|
|
2495
2492
|
threshold: 1,
|
|
2496
2493
|
fallback: 1
|
|
2497
|
-
}),
|
|
2494
|
+
}), Ra.value.line = ke({
|
|
2498
2495
|
relator: N.value,
|
|
2499
2496
|
adjuster: 800,
|
|
2500
2497
|
source: B.value.line.radius,
|
|
@@ -2506,54 +2503,54 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2506
2503
|
if (r(j.dataset) ? (ce({
|
|
2507
2504
|
componentName: "VueUiXy",
|
|
2508
2505
|
type: "dataset",
|
|
2509
|
-
debug:
|
|
2510
|
-
}),
|
|
2506
|
+
debug: Wa.value
|
|
2507
|
+
}), Ja.value = !0) : j.dataset.forEach((e, t) => {
|
|
2511
2508
|
[null, void 0].includes(e.name) && (ce({
|
|
2512
2509
|
componentName: "VueUiXy",
|
|
2513
2510
|
type: "datasetSerieAttribute",
|
|
2514
2511
|
property: "name (string)",
|
|
2515
2512
|
index: t,
|
|
2516
|
-
debug:
|
|
2517
|
-
}),
|
|
2518
|
-
}),
|
|
2513
|
+
debug: Wa.value
|
|
2514
|
+
}), Ja.value = !0);
|
|
2515
|
+
}), Wa.value && j.dataset.forEach((e) => {
|
|
2519
2516
|
e.series.forEach((t, n) => {
|
|
2520
2517
|
ve(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
|
|
2521
2518
|
});
|
|
2522
|
-
}), r(j.dataset) || (
|
|
2523
|
-
let e =
|
|
2524
|
-
|
|
2519
|
+
}), r(j.dataset) || (Ja.value = B.value.loading), ma.value = B.value.chart.userOptions.showOnChartHover, ha.value = B.value.chart.userOptions.keepStateOnChartLeave, ga.value = !B.value.chart.userOptions.showOnChartHover, Ua(), B.value.responsive) {
|
|
2520
|
+
let e = zi.value.parentNode;
|
|
2521
|
+
Zi.value && (Zi.value.unobserve(Qi.value), Zi.value.disconnect());
|
|
2525
2522
|
let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
|
|
2526
|
-
B.value.chart.title.show &&
|
|
2523
|
+
B.value.chart.title.show && Bi.value && (r = Bi.value, i = r.getBoundingClientRect().height);
|
|
2527
2524
|
let a = null, o = 0;
|
|
2528
|
-
B.value.chart.zoom.show && U.value > 6 &&
|
|
2525
|
+
B.value.chart.zoom.show && U.value > 6 && Va.value && Vi.value && Vi.value.$el && (a = Vi.value.$el, o = a.getBoundingClientRect().height);
|
|
2529
2526
|
let s = null, c = 0;
|
|
2530
|
-
B.value.chart.legend.show &&
|
|
2527
|
+
B.value.chart.legend.show && Hi.value && (s = Hi.value, c = s.getBoundingClientRect().height);
|
|
2531
2528
|
let l = 0;
|
|
2532
|
-
|
|
2529
|
+
Ui.value && (l = Ui.value.getBoundingClientRect().height);
|
|
2533
2530
|
let u = 0;
|
|
2534
|
-
|
|
2531
|
+
Wi.value && (u = Wi.value.getBoundingClientRect().height), ta.value = t - i - c - o - l - u - 12, N.value = n, na.value = `0 0 ${N.value < 0 ? 10 : N.value} ${ta.value < 0 ? 10 : ta.value}`, qc();
|
|
2535
2532
|
let ee = new ResizeObserver((e) => {
|
|
2536
|
-
for (let t of e) i = B.value.chart.title.show &&
|
|
2537
|
-
|
|
2533
|
+
for (let t of e) i = B.value.chart.title.show && Bi.value ? Bi.value.getBoundingClientRect().height : 0, o = Vi.value && Vi.value.$el ? Vi.value.$el.getBoundingClientRect().height : 0, c = Hi.value ? Hi.value.getBoundingClientRect().height : 0, l = Ui.value ? Ui.value.getBoundingClientRect().height : 0, u = Wi.value ? Wi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
|
|
2534
|
+
ta.value = t.contentRect.height - i - c - o - l - u - 12, N.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, na.value = `0 0 ${N.value < 0 ? 10 : N.value} ${ta.value < 0 ? 10 : ta.value}`, qc(), ja(), Na();
|
|
2538
2535
|
});
|
|
2539
2536
|
});
|
|
2540
|
-
|
|
2541
|
-
} else
|
|
2542
|
-
|
|
2537
|
+
Zi.value = ee, Qi.value = e, ee.observe(e);
|
|
2538
|
+
} else ta.value = B.value.chart.height, N.value = B.value.chart.width, z.value.dataLabels = B.value.chart.grid.labels.fontSize, z.value.yAxis = B.value.chart.grid.labels.axis.fontSize, z.value.xAxis = B.value.chart.grid.labels.xAxisLabels.fontSize, z.value.plotLabels = B.value.chart.labels.fontSize, Ra.value.plot = B.value.plot.radius, Ra.value.line = B.value.line.radius, na.value = `0 0 ${N.value} ${ta.value}`;
|
|
2539
|
+
ja(), Na();
|
|
2543
2540
|
}
|
|
2544
2541
|
function Yc(e) {
|
|
2545
|
-
|
|
2542
|
+
ra.value = {
|
|
2546
2543
|
x: e.clientX,
|
|
2547
2544
|
y: e.clientY
|
|
2548
2545
|
};
|
|
2549
2546
|
}
|
|
2550
2547
|
ut(() => {
|
|
2551
|
-
Jc(),
|
|
2548
|
+
Jc(), rs(), document.addEventListener("mousemove", Yc, { passive: !0 }), document.addEventListener("scroll", Fo, { passive: !0 });
|
|
2552
2549
|
}), lt(() => {
|
|
2553
|
-
document.removeEventListener("scroll",
|
|
2550
|
+
document.removeEventListener("scroll", Fo, { passive: !0 }), document.removeEventListener("mousemove", Yc, { passive: !0 }), Zi.value &&= (Zi.value.unobserve(Qi.value), Zi.value.disconnect(), null);
|
|
2554
2551
|
}), Ve({
|
|
2555
|
-
timeLabelsEls:
|
|
2556
|
-
timeLabels:
|
|
2552
|
+
timeLabelsEls: Ji,
|
|
2553
|
+
timeLabels: X,
|
|
2557
2554
|
slicer: W,
|
|
2558
2555
|
configRef: B,
|
|
2559
2556
|
rotationPath: [
|
|
@@ -2571,14 +2568,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2571
2568
|
"autoRotate",
|
|
2572
2569
|
"enable"
|
|
2573
2570
|
],
|
|
2574
|
-
isAutoSize:
|
|
2575
|
-
height:
|
|
2571
|
+
isAutoSize: ao,
|
|
2572
|
+
height: ta,
|
|
2576
2573
|
width: N,
|
|
2577
2574
|
rotation: B.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2578
2575
|
});
|
|
2579
2576
|
let Xc = E(!1), Zc = E(null), Qc = E(200), $c = b(() => R.value ?? I.value ?? 0), el = b(() => {
|
|
2580
|
-
if (!
|
|
2581
|
-
if (g(
|
|
2577
|
+
if (!q.value) return null;
|
|
2578
|
+
if (g(Ca.value)) return Number(Ca.value);
|
|
2582
2579
|
let e = Ds.value[0];
|
|
2583
2580
|
return g(e?.point?.x) ? Number(e.point.x) : null;
|
|
2584
2581
|
});
|
|
@@ -2587,7 +2584,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2587
2584
|
return Math.min(Math.max(e, 1), 200);
|
|
2588
2585
|
}
|
|
2589
2586
|
function nl() {
|
|
2590
|
-
let e = tl(), t = (
|
|
2587
|
+
let e = tl(), t = (q.value && g(el.value) ? Cc({ x: el.value }) : tc($c.value)) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
|
|
2591
2588
|
return v(Math.max(n, Math.min(t, r)));
|
|
2592
2589
|
}
|
|
2593
2590
|
ut(() => {
|
|
@@ -2613,20 +2610,20 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2613
2610
|
});
|
|
2614
2611
|
});
|
|
2615
2612
|
let rl = b(() => {
|
|
2616
|
-
if (
|
|
2613
|
+
if (q.value) {
|
|
2617
2614
|
if (!Number.isFinite(Number(el.value))) return "";
|
|
2618
2615
|
} else if ([null, void 0].includes(R.value) && [null, void 0].includes(I.value)) return "";
|
|
2619
2616
|
let e = (R.value == null ? 0 : R.value) || (I.value == null ? 0 : I.value), t = B.value.chart.timeTag.customFormat;
|
|
2620
|
-
if (Xc.value = !1,
|
|
2617
|
+
if (Xc.value = !1, q.value) {
|
|
2621
2618
|
let e = el.value;
|
|
2622
2619
|
if (xe(t)) try {
|
|
2623
2620
|
let n = t({
|
|
2624
2621
|
absoluteIndex: e,
|
|
2625
2622
|
seriesIndex: e,
|
|
2626
|
-
datapoint:
|
|
2627
|
-
bars:
|
|
2628
|
-
lines:
|
|
2629
|
-
plots:
|
|
2623
|
+
datapoint: hc.value,
|
|
2624
|
+
bars: kc.value,
|
|
2625
|
+
lines: $.value,
|
|
2626
|
+
plots: Ac.value,
|
|
2630
2627
|
config: B.value
|
|
2631
2628
|
});
|
|
2632
2629
|
if (typeof n == "string") return Xc.value = !0, n;
|
|
@@ -2642,20 +2639,20 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2642
2639
|
let n = t({
|
|
2643
2640
|
absoluteIndex: e + W.value.start,
|
|
2644
2641
|
seriesIndex: e,
|
|
2645
|
-
datapoint:
|
|
2646
|
-
bars:
|
|
2647
|
-
lines:
|
|
2648
|
-
plots:
|
|
2642
|
+
datapoint: hc.value,
|
|
2643
|
+
bars: kc.value,
|
|
2644
|
+
lines: $.value,
|
|
2645
|
+
plots: Ac.value,
|
|
2649
2646
|
config: B.value
|
|
2650
2647
|
});
|
|
2651
2648
|
if (typeof n == "string") return Xc.value = !0, n;
|
|
2652
2649
|
} catch {
|
|
2653
2650
|
console.warn("Custom format cannot be applied on timeTag."), Xc.value = !1;
|
|
2654
2651
|
}
|
|
2655
|
-
if (!Xc.value) return [null, void 0].includes(
|
|
2652
|
+
if (!Xc.value) return [null, void 0].includes(X.value[e]) ? "" : B.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !B.value.chart.timeTag.useDefaultFormat ? Ic.value(e + W.value.start, B.value.chart.timeTag.timeFormat) : X.value[e].text;
|
|
2656
2653
|
});
|
|
2657
2654
|
function il({ serie: e, plot: n, type: r }) {
|
|
2658
|
-
if (!
|
|
2655
|
+
if (!bt(n.value)) return "";
|
|
2659
2656
|
let i = s({
|
|
2660
2657
|
p: e.prefix || B.value.chart.labels.prefix,
|
|
2661
2658
|
v: n.value,
|
|
@@ -2663,7 +2660,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2663
2660
|
r: B.value[r].labels.rounding
|
|
2664
2661
|
});
|
|
2665
2662
|
return t({
|
|
2666
|
-
content:
|
|
2663
|
+
content: q.value && g(n.x) ? `x: ${s({
|
|
2667
2664
|
v: n.x,
|
|
2668
2665
|
r: B.value.chart.grid.labels.xAxis.rounding
|
|
2669
2666
|
})}\ny: ${i}` : _(B.value[r].labels.formatter, n.value, i, {
|
|
@@ -2678,7 +2675,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2678
2675
|
}
|
|
2679
2676
|
function al({ plot: e }) {
|
|
2680
2677
|
let t = B.value.bar.labels.offsetY, n = Math.abs(bs(e)), r = e.value < 0, i = {
|
|
2681
|
-
x: (V.value.useIndividualScale && V.value.isStacked ? e.x + xs.value.line / 2 : Cs(e) + Ss() / 2 -
|
|
2678
|
+
x: (V.value.useIndividualScale && V.value.isStacked ? e.x + xs.value.line / 2 : Cs(e) + Ss() / 2 - uc.value / 2) + B.value.bar.labels.offsetX,
|
|
2682
2679
|
y: v(e.y) + (B.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
|
|
2683
2680
|
};
|
|
2684
2681
|
return `translate(${i.x}, ${i.y}) rotate(${B.value.bar.labels.rotation})`;
|
|
@@ -2695,18 +2692,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2695
2692
|
let n = e.value >= 0;
|
|
2696
2693
|
return B.value[t].labels.rotation === 0 ? "middle" : B.value[t].labels.alwaysOnTop || n ? "start" : "end";
|
|
2697
2694
|
}
|
|
2698
|
-
let cl = b(() =>
|
|
2699
|
-
...Q.value,
|
|
2695
|
+
let cl = b(() => q.value ? g(Ca.value) ? Cc({ x: Number(Ca.value) }) : g(Os.value) ? Os.value : null : tc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value))), ll = b(() => B.value.chart.highlighter.crosshairs.show && Yo.value), ul = b(() => [
|
|
2700
2696
|
...$.value,
|
|
2701
|
-
...Ac.value
|
|
2702
|
-
|
|
2697
|
+
...Ac.value,
|
|
2698
|
+
...kc.value
|
|
2699
|
+
].flatMap((e) => (e.plots || []).filter((t, n) => pl(e, t, n)).filter((e) => bt(e.value)).map((t) => ({
|
|
2703
2700
|
...t,
|
|
2704
2701
|
serie: e,
|
|
2705
2702
|
x: v(t.x),
|
|
2706
2703
|
y: v(t.y)
|
|
2707
2704
|
})))), dl = b(() => {
|
|
2708
2705
|
if (!ll.value) return null;
|
|
2709
|
-
if (
|
|
2706
|
+
if (q.value) {
|
|
2710
2707
|
let e = Ds.value[0], t = e?.point?.raw?.x ?? e?.point?.x;
|
|
2711
2708
|
return g(t) ? {
|
|
2712
2709
|
x: cl.value,
|
|
@@ -2719,42 +2716,42 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2719
2716
|
let e = R.value === null ? I.value : R.value;
|
|
2720
2717
|
return e == null ? null : {
|
|
2721
2718
|
x: tc(e),
|
|
2722
|
-
text:
|
|
2719
|
+
text: X.value[e]?.text ?? ""
|
|
2723
2720
|
};
|
|
2724
2721
|
});
|
|
2725
2722
|
function fl(e) {
|
|
2726
|
-
return B.value.chart.grid.labels.yAxis.position === "right" ?
|
|
2723
|
+
return B.value.chart.grid.labels.yAxis.position === "right" ? Y.value.right : Y.value.left;
|
|
2727
2724
|
}
|
|
2728
2725
|
function pl(e, t, n) {
|
|
2729
|
-
return
|
|
2726
|
+
return q.value ? Ds.value.some((n) => n.datapoint.id === e.id && n.index === t.index) : R.value !== null && R.value === n || I.value !== null && I.value === n;
|
|
2730
2727
|
}
|
|
2731
2728
|
_t(() => j.dataset, (e) => {
|
|
2732
|
-
if (Array.isArray(e) && e.length > 0 && (
|
|
2733
|
-
if (U.value = Math.max(0, ...H.value.map((e) =>
|
|
2729
|
+
if (Array.isArray(e) && e.length > 0 && (Ja.value = !1), B.value.chart.zoom.keepState) {
|
|
2730
|
+
if (U.value = Math.max(0, ...H.value.map((e) => Xa(e.series).length)), U.value > 0) {
|
|
2734
2731
|
let e = W.value.start, t = W.value.end;
|
|
2735
|
-
if (!
|
|
2732
|
+
if (!es.value || e === 0 && t === 0) rs();
|
|
2736
2733
|
else {
|
|
2737
2734
|
let n = Math.max(0, Math.min(e, U.value - 1)), r = Math.max(n + 1, Math.min(t, U.value));
|
|
2738
2735
|
W.value = {
|
|
2739
2736
|
start: n,
|
|
2740
2737
|
end: r
|
|
2741
|
-
},
|
|
2738
|
+
}, G.value = {
|
|
2742
2739
|
start: n,
|
|
2743
2740
|
end: r
|
|
2744
|
-
},
|
|
2741
|
+
}, ts.value = 0, ns.value = U.value;
|
|
2745
2742
|
}
|
|
2746
2743
|
}
|
|
2747
|
-
} else U.value = Math.max(...H.value.map((e) =>
|
|
2744
|
+
} else U.value = Math.max(...H.value.map((e) => Xa(e.series).length)), W.value = {
|
|
2748
2745
|
start: 0,
|
|
2749
2746
|
end: U.value
|
|
2750
2747
|
};
|
|
2751
|
-
|
|
2748
|
+
$i.value += 1, pa.value += 1, ja(), Na(), $a();
|
|
2752
2749
|
}, { deep: !0 }), _t(() => j.config, (e) => {
|
|
2753
|
-
|
|
2750
|
+
qa.value || (B.value = za()), Jc(), da.value += 1, ua.value += 1, Ua(), ja(), Na(), B.value.chart.zoom.keepState && (U.value = Math.max(0, ...H.value.map((e) => Xa(e.series).length)), U.value > 0 && (!es.value || W.value.start === 0 && W.value.end === 0) && rs()), $a();
|
|
2754
2751
|
}, { deep: !0 });
|
|
2755
2752
|
let ml = E(!1);
|
|
2756
2753
|
function hl() {
|
|
2757
|
-
let e =
|
|
2754
|
+
let e = zi.value?.parentNode;
|
|
2758
2755
|
if (!e) {
|
|
2759
2756
|
ml.value = !1;
|
|
2760
2757
|
return;
|
|
@@ -2765,24 +2762,24 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2765
2762
|
ut(() => {
|
|
2766
2763
|
hl();
|
|
2767
2764
|
let e = new ResizeObserver(() => {
|
|
2768
|
-
hl(), ml.value && (Jc(),
|
|
2765
|
+
hl(), ml.value && (Jc(), $a(), B.value.chart.zoom.keepState || rs());
|
|
2769
2766
|
});
|
|
2770
|
-
|
|
2767
|
+
zi.value?.parentNode && e.observe(zi.value.parentNode);
|
|
2771
2768
|
}), _t(B, () => {
|
|
2772
|
-
|
|
2769
|
+
Ua();
|
|
2773
2770
|
}, { immediate: !0 });
|
|
2774
2771
|
let gl = b(() => {
|
|
2775
2772
|
let e = B.value.table.useDialog && !B.value.showTable, t = V.value.showTable;
|
|
2776
2773
|
return {
|
|
2777
|
-
component: e ?
|
|
2774
|
+
component: e ? Mi : Je,
|
|
2778
2775
|
title: `${B.value.chart.title.text}${B.value.chart.title.subtitle.text ? `: ${B.value.chart.title.subtitle.text}` : ""}`,
|
|
2779
2776
|
props: e ? {
|
|
2780
2777
|
backgroundColor: B.value.table.th.backgroundColor,
|
|
2781
2778
|
color: B.value.table.th.color,
|
|
2782
2779
|
headerColor: B.value.table.th.color,
|
|
2783
2780
|
headerBg: B.value.table.th.backgroundColor,
|
|
2784
|
-
isFullscreen:
|
|
2785
|
-
fullscreenParent:
|
|
2781
|
+
isFullscreen: oa.value,
|
|
2782
|
+
fullscreenParent: zi.value,
|
|
2786
2783
|
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
2787
2784
|
} : {
|
|
2788
2785
|
hideDetails: !0,
|
|
@@ -2802,12 +2799,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2802
2799
|
};
|
|
2803
2800
|
});
|
|
2804
2801
|
_t(() => V.value.showTable, (e) => {
|
|
2805
|
-
B.value.showTable || (e && B.value.table.useDialog &&
|
|
2802
|
+
B.value.showTable || (e && B.value.table.useDialog && ba.value ? ba.value.open() : ba.value && ba.value.close && ba.value.close());
|
|
2806
2803
|
});
|
|
2807
2804
|
function _l() {
|
|
2808
|
-
V.value.showTable = !1,
|
|
2805
|
+
V.value.showTable = !1, Xi.value && Xi.value.setTableIconState(!1);
|
|
2809
2806
|
}
|
|
2810
|
-
let vl = b(() =>
|
|
2807
|
+
let vl = b(() => yo.value.map((e) => ({
|
|
2811
2808
|
shape: e.type === "bar" ? "square" : e.shape ?? "circle",
|
|
2812
2809
|
color: e.color,
|
|
2813
2810
|
name: e.name
|
|
@@ -2819,7 +2816,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2819
2816
|
backgroundColor: yl
|
|
2820
2817
|
});
|
|
2821
2818
|
async function Cl({ isCb: e }) {
|
|
2822
|
-
|
|
2819
|
+
Sa.value = !0, await ot();
|
|
2823
2820
|
try {
|
|
2824
2821
|
if (e) {
|
|
2825
2822
|
let { blob: e, url: t, text: n, dataUrl: r } = await Sl();
|
|
@@ -2831,30 +2828,30 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2831
2828
|
}));
|
|
2832
2829
|
} else await Promise.resolve(xl());
|
|
2833
2830
|
} finally {
|
|
2834
|
-
|
|
2831
|
+
Sa.value = !1;
|
|
2835
2832
|
}
|
|
2836
2833
|
}
|
|
2837
2834
|
function wl(e) {
|
|
2838
2835
|
if (e?.stage === "start") {
|
|
2839
|
-
|
|
2836
|
+
xa.value = !0;
|
|
2840
2837
|
return;
|
|
2841
2838
|
}
|
|
2842
2839
|
if (e?.stage === "end") {
|
|
2843
|
-
|
|
2840
|
+
xa.value = !1;
|
|
2844
2841
|
return;
|
|
2845
2842
|
}
|
|
2846
|
-
|
|
2843
|
+
io();
|
|
2847
2844
|
}
|
|
2848
2845
|
async function Tl() {
|
|
2849
|
-
if (
|
|
2846
|
+
if (Ni("copyAlt", {
|
|
2850
2847
|
config: {
|
|
2851
2848
|
...B.value,
|
|
2852
|
-
formattedDates:
|
|
2849
|
+
formattedDates: X.value
|
|
2853
2850
|
},
|
|
2854
2851
|
dataset: {
|
|
2855
|
-
lines:
|
|
2856
|
-
bars:
|
|
2857
|
-
plots:
|
|
2852
|
+
lines: $.value,
|
|
2853
|
+
bars: kc.value,
|
|
2854
|
+
plots: Ac.value
|
|
2858
2855
|
}
|
|
2859
2856
|
}), !B.value.chart.userOptions.callbacks.altCopy) {
|
|
2860
2857
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
@@ -2863,47 +2860,47 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2863
2860
|
await Promise.resolve(B.value.chart.userOptions.callbacks.altCopy({
|
|
2864
2861
|
config: {
|
|
2865
2862
|
...B.value,
|
|
2866
|
-
formattedDates:
|
|
2863
|
+
formattedDates: X.value
|
|
2867
2864
|
},
|
|
2868
2865
|
dataset: {
|
|
2869
|
-
lines:
|
|
2870
|
-
bars:
|
|
2871
|
-
plots:
|
|
2866
|
+
lines: $.value,
|
|
2867
|
+
bars: kc.value,
|
|
2868
|
+
plots: Ac.value
|
|
2872
2869
|
}
|
|
2873
2870
|
}));
|
|
2874
2871
|
}
|
|
2875
2872
|
let El = E(!1);
|
|
2876
2873
|
function Dl() {
|
|
2877
|
-
W.value.end > W.value.start && (
|
|
2874
|
+
W.value.end > W.value.start && (wa.value = null), Lo.value = !0, El.value = !0;
|
|
2878
2875
|
}
|
|
2879
2876
|
function Ol() {
|
|
2880
|
-
|
|
2877
|
+
wa.value = null, Ps(), El.value = !1, Lo.value = !1;
|
|
2881
2878
|
}
|
|
2882
2879
|
function kl(e) {
|
|
2883
|
-
if (!L.value ||
|
|
2880
|
+
if (!L.value || aa.value || document.activeElement !== L.value) return;
|
|
2884
2881
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
2885
2882
|
if (!t && !n || !W.value.end && W.value.end !== 0) return;
|
|
2886
2883
|
let r = W.value.end - W.value.start;
|
|
2887
2884
|
if (r <= 0) return;
|
|
2888
|
-
if (e.preventDefault(), e.stopPropagation(),
|
|
2885
|
+
if (e.preventDefault(), e.stopPropagation(), q.value) {
|
|
2889
2886
|
let e = ks.value.length;
|
|
2890
2887
|
if (!e) return;
|
|
2891
|
-
let r =
|
|
2888
|
+
let r = wa.value;
|
|
2892
2889
|
r !== null && r >= 0 && r < e ? n ? (r += 1, r >= e && (r = 0)) : t && (--r, r < 0 && (r = e - 1)) : r = n ? 0 : e - 1, As(r);
|
|
2893
2890
|
return;
|
|
2894
2891
|
}
|
|
2895
|
-
let i =
|
|
2896
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1,
|
|
2892
|
+
let i = wa.value, a = Es.value;
|
|
2893
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, wa.value = i, Al(i), Hc(!0, i);
|
|
2897
2894
|
}
|
|
2898
2895
|
function Al(e) {
|
|
2899
2896
|
let t = W.value.end - W.value.start;
|
|
2900
2897
|
if (t <= 0) return;
|
|
2901
|
-
let n =
|
|
2902
|
-
r && (
|
|
2898
|
+
let n = Y.value.width / t, r = d(Y.value.left + n * e + n / 2, Y.value.top + Y.value.height / 2, L.value);
|
|
2899
|
+
r && (Ta.value = r);
|
|
2903
2900
|
}
|
|
2904
2901
|
let jl = b(() => {
|
|
2905
2902
|
if (!Bc.value) return null;
|
|
2906
|
-
let e = B.value.table.showSum, t = [B.value.table.columnNames.period].concat(
|
|
2903
|
+
let e = B.value.table.showSum, t = [B.value.table.columnNames.period].concat(bo.value.map((e) => e.name));
|
|
2907
2904
|
e && (t = t.concat(B.value.table.columnNames.total));
|
|
2908
2905
|
let n = Bc.value.body.slice(W.value.start, W.value.end);
|
|
2909
2906
|
return {
|
|
@@ -2914,34 +2911,34 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2914
2911
|
return Ke({
|
|
2915
2912
|
getData: Ls,
|
|
2916
2913
|
getImage: Rs,
|
|
2917
|
-
generatePdf:
|
|
2918
|
-
generateImage:
|
|
2914
|
+
generatePdf: ro,
|
|
2915
|
+
generateImage: io,
|
|
2919
2916
|
generateSvg: Cl,
|
|
2920
2917
|
generateCsv: Vc,
|
|
2921
2918
|
hideSeries: Gs,
|
|
2922
2919
|
showSeries: Ws,
|
|
2923
|
-
toggleStack:
|
|
2920
|
+
toggleStack: Xo,
|
|
2924
2921
|
toggleTable: Uc,
|
|
2925
2922
|
toggleLabels: Wc,
|
|
2926
2923
|
toggleTooltip: Gc,
|
|
2927
|
-
toggleAnnotator:
|
|
2924
|
+
toggleAnnotator: zo,
|
|
2928
2925
|
toggleFullscreen: Kc,
|
|
2929
2926
|
copyAlt: Tl,
|
|
2930
|
-
resetZoom:
|
|
2927
|
+
resetZoom: ss
|
|
2931
2928
|
}), (n, r) => (T(), S("div", {
|
|
2932
2929
|
id: `vue-ui-xy_${F.value}`,
|
|
2933
|
-
class: st(`vue-data-ui-component vue-ui-xy ${
|
|
2930
|
+
class: st(`vue-data-ui-component vue-ui-xy ${oa.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${B.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2934
2931
|
ref_key: "chart",
|
|
2935
|
-
ref:
|
|
2932
|
+
ref: zi,
|
|
2936
2933
|
style: w(`background:${B.value.chart.backgroundColor}; color:${B.value.chart.color};width:100%;font-family:${B.value.chart.fontFamily};${B.value.responsive ? "height: 100%" : ""}`),
|
|
2937
|
-
onMouseenter: r[6] ||= () =>
|
|
2938
|
-
onMouseleave: r[7] ||= () =>
|
|
2934
|
+
onMouseenter: r[6] ||= () => Ro(!0),
|
|
2935
|
+
onMouseleave: r[7] ||= () => Ro(!1),
|
|
2939
2936
|
onClick: Fs
|
|
2940
2937
|
}, [
|
|
2941
2938
|
C("div", {
|
|
2942
2939
|
id: `chart-instructions-${F.value}`,
|
|
2943
2940
|
class: "sr-only"
|
|
2944
|
-
}, [C("p", null, pt(B.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
2941
|
+
}, [C("p", null, pt(B.value.a11y.translations.keyboardNavigation), 1)], 8, jt),
|
|
2945
2942
|
jl.value?.rows?.length ? (T(), Qe(Xe, {
|
|
2946
2943
|
key: 0,
|
|
2947
2944
|
uid: F.value,
|
|
@@ -2956,14 +2953,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2956
2953
|
"notice",
|
|
2957
2954
|
"caption"
|
|
2958
2955
|
])) : x("", !0),
|
|
2959
|
-
B.value.chart.userOptions.buttons.annotator && L.value ? (T(), Qe(k(
|
|
2956
|
+
B.value.chart.userOptions.buttons.annotator && L.value ? (T(), Qe(k(ji), {
|
|
2960
2957
|
key: 1,
|
|
2961
2958
|
svgRef: L.value,
|
|
2962
2959
|
backgroundColor: B.value.chart.backgroundColor,
|
|
2963
2960
|
color: B.value.chart.color,
|
|
2964
|
-
active:
|
|
2965
|
-
isCursorPointer:
|
|
2966
|
-
onClose:
|
|
2961
|
+
active: aa.value,
|
|
2962
|
+
isCursorPointer: Ha.value,
|
|
2963
|
+
onClose: zo
|
|
2967
2964
|
}, {
|
|
2968
2965
|
"annotator-action-close": A(() => [O(n.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
2969
2966
|
"annotator-action-color": A(({ color: e }) => [O(n.$slots, "annotator-action-color", ct(it({ color: e })), void 0, !0)]),
|
|
@@ -2982,18 +2979,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
2982
2979
|
Js.value ? (T(), S("div", {
|
|
2983
2980
|
key: 2,
|
|
2984
2981
|
ref_key: "noTitle",
|
|
2985
|
-
ref:
|
|
2982
|
+
ref: Wi,
|
|
2986
2983
|
class: "vue-data-ui-no-title-space",
|
|
2987
2984
|
style: "height:36px; width: 100%; background:transparent"
|
|
2988
2985
|
}, null, 512)) : x("", !0),
|
|
2989
2986
|
B.value.chart.title.show ? (T(), S("div", {
|
|
2990
2987
|
key: 3,
|
|
2991
2988
|
ref_key: "chartTitle",
|
|
2992
|
-
ref:
|
|
2989
|
+
ref: Bi,
|
|
2993
2990
|
class: "vue-ui-xy-title",
|
|
2994
2991
|
style: w(`font-family:${B.value.chart.fontFamily}`)
|
|
2995
2992
|
}, [(T(), Qe(Ue, {
|
|
2996
|
-
key: `title_${
|
|
2993
|
+
key: `title_${da.value}`,
|
|
2997
2994
|
config: {
|
|
2998
2995
|
title: {
|
|
2999
2996
|
cy: "xy-div-title",
|
|
@@ -3005,15 +3002,15 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3005
3002
|
}
|
|
3006
3003
|
}
|
|
3007
3004
|
}, null, 8, ["config"]))], 4)) : x("", !0),
|
|
3008
|
-
C("div", { id: `legend-top-${F.value}` }, null, 8,
|
|
3009
|
-
B.value.chart.userOptions.show && (
|
|
3005
|
+
C("div", { id: `legend-top-${F.value}` }, null, 8, Mt),
|
|
3006
|
+
B.value.chart.userOptions.show && (ha.value || ga.value) ? (T(), Qe(k(Di), {
|
|
3010
3007
|
ref_key: "userOptionsRef",
|
|
3011
|
-
ref:
|
|
3012
|
-
key: `user_options_${
|
|
3008
|
+
ref: Xi,
|
|
3009
|
+
key: `user_options_${la.value}`,
|
|
3013
3010
|
backgroundColor: B.value.chart.backgroundColor,
|
|
3014
3011
|
color: B.value.chart.color,
|
|
3015
|
-
isPrinting: k(
|
|
3016
|
-
isImaging: k(
|
|
3012
|
+
isPrinting: k(to),
|
|
3013
|
+
isImaging: k(no),
|
|
3017
3014
|
uid: F.value,
|
|
3018
3015
|
hasTooltip: B.value.chart.userOptions.buttons.tooltip && B.value.chart.tooltip.show,
|
|
3019
3016
|
hasPdf: B.value.chart.userOptions.buttons.pdf,
|
|
@@ -3026,29 +3023,29 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3026
3023
|
hasFullscreen: B.value.chart.userOptions.buttons.fullscreen,
|
|
3027
3024
|
hasAltCopy: B.value.chart.userOptions.buttons.altCopy,
|
|
3028
3025
|
isStacked: V.value.isStacked,
|
|
3029
|
-
isFullscreen:
|
|
3026
|
+
isFullscreen: oa.value,
|
|
3030
3027
|
chartElement: n.$refs.chart,
|
|
3031
3028
|
position: B.value.chart.userOptions.position,
|
|
3032
3029
|
isTooltip: V.value.showTooltip,
|
|
3033
3030
|
titles: { ...B.value.chart.userOptions.buttonTitles },
|
|
3034
3031
|
hasAnnotator: B.value.chart.userOptions.buttons.annotator,
|
|
3035
|
-
isAnnotation:
|
|
3032
|
+
isAnnotation: aa.value,
|
|
3036
3033
|
callbacks: B.value.chart.userOptions.callbacks,
|
|
3037
3034
|
tableDialog: B.value.table.useDialog,
|
|
3038
3035
|
printScale: B.value.chart.userOptions.print.scale,
|
|
3039
|
-
isCursorPointer:
|
|
3036
|
+
isCursorPointer: Ha.value,
|
|
3040
3037
|
onToggleFullscreen: Kc,
|
|
3041
|
-
onGeneratePdf: k(
|
|
3038
|
+
onGeneratePdf: k(ro),
|
|
3042
3039
|
onGenerateCsv: Vc,
|
|
3043
3040
|
onGenerateImage: wl,
|
|
3044
3041
|
onGenerateSvg: Cl,
|
|
3045
3042
|
onToggleTable: Uc,
|
|
3046
3043
|
onToggleLabels: Wc,
|
|
3047
|
-
onToggleStack:
|
|
3044
|
+
onToggleStack: Xo,
|
|
3048
3045
|
onToggleTooltip: Gc,
|
|
3049
|
-
onToggleAnnotator:
|
|
3046
|
+
onToggleAnnotator: zo,
|
|
3050
3047
|
onCopyAlt: Tl,
|
|
3051
|
-
style: w({ visibility:
|
|
3048
|
+
style: w({ visibility: ha.value ? ga.value ? "visible" : "hidden" : "visible" })
|
|
3052
3049
|
}, $e({ _: 2 }, [
|
|
3053
3050
|
n.$slots.menuIcon ? {
|
|
3054
3051
|
name: "menuIcon",
|
|
@@ -3130,16 +3127,16 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3130
3127
|
key: "13"
|
|
3131
3128
|
} : void 0
|
|
3132
3129
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : x("", !0),
|
|
3133
|
-
C("div",
|
|
3130
|
+
C("div", Nt, [(T(), S("svg", {
|
|
3134
3131
|
ref_key: "svgRef",
|
|
3135
3132
|
ref: L,
|
|
3136
3133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3137
3134
|
class: st([{
|
|
3138
|
-
"vue-data-ui-fullscreen--on":
|
|
3139
|
-
"vue-data-ui-fulscreen--off": !
|
|
3135
|
+
"vue-data-ui-fullscreen--on": oa.value,
|
|
3136
|
+
"vue-data-ui-fulscreen--off": !oa.value
|
|
3140
3137
|
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
3141
3138
|
width: "100%",
|
|
3142
|
-
viewBox:
|
|
3139
|
+
viewBox: na.value,
|
|
3143
3140
|
style: w({
|
|
3144
3141
|
background: "transparent",
|
|
3145
3142
|
color: B.value.chart.color,
|
|
@@ -3159,86 +3156,86 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3159
3156
|
onKeydown: kl
|
|
3160
3157
|
}, [C("g", {
|
|
3161
3158
|
ref_key: "G",
|
|
3162
|
-
ref:
|
|
3159
|
+
ref: Gi,
|
|
3163
3160
|
class: "vue-data-ui-g"
|
|
3164
3161
|
}, [
|
|
3165
|
-
tt(k(
|
|
3162
|
+
tt(k(Ai)),
|
|
3166
3163
|
n.$slots["chart-background"] ? (T(), S("foreignObject", {
|
|
3167
3164
|
key: 0,
|
|
3168
|
-
x: Math.max(0,
|
|
3169
|
-
y:
|
|
3170
|
-
width: Math.max(0,
|
|
3171
|
-
height: Math.max(0,
|
|
3165
|
+
x: Math.max(0, Y.value?.left),
|
|
3166
|
+
y: Y.value?.top,
|
|
3167
|
+
width: Math.max(0, Y.value?.width),
|
|
3168
|
+
height: Math.max(0, Y.value?.height),
|
|
3172
3169
|
style: { pointerEvents: "none" }
|
|
3173
|
-
}, [O(n.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
3174
|
-
|
|
3175
|
-
C("g",
|
|
3170
|
+
}, [O(n.$slots, "chart-background", {}, void 0, !0)], 8, Ft)) : x("", !0),
|
|
3171
|
+
Z.value > 0 ? (T(), S("g", It, [
|
|
3172
|
+
C("g", Lt, [
|
|
3176
3173
|
B.value.chart.grid.labels.xAxis.showBaseline ? (T(), S("line", {
|
|
3177
3174
|
key: 0,
|
|
3178
3175
|
stroke: B.value.chart.grid.stroke,
|
|
3179
3176
|
"stroke-width": "1",
|
|
3180
|
-
x1:
|
|
3181
|
-
x2:
|
|
3182
|
-
y1: k(h)(
|
|
3183
|
-
y2: k(h)(
|
|
3177
|
+
x1: Y.value?.left,
|
|
3178
|
+
x2: Y.value?.right,
|
|
3179
|
+
y1: k(h)(Y.value?.bottom),
|
|
3180
|
+
y2: k(h)(Y.value?.bottom),
|
|
3184
3181
|
"stroke-linecap": "round",
|
|
3185
3182
|
style: { animation: "none !important" }
|
|
3186
|
-
}, null, 8,
|
|
3183
|
+
}, null, 8, Rt)) : x("", !0),
|
|
3187
3184
|
V.value.useIndividualScale ? B.value.chart.grid.showHorizontalLines ? (T(!0), S(y, { key: 2 }, D(jc.value, (e) => (T(), S("g", null, [e.id === M.value && e.yLabels.length ? (T(!0), S(y, { key: 0 }, D(e.yLabels, (t) => (T(), S("line", {
|
|
3188
|
-
x1:
|
|
3189
|
-
x2:
|
|
3185
|
+
x1: Y.value?.left,
|
|
3186
|
+
x2: Y.value?.right,
|
|
3190
3187
|
y1: k(h)(t.y),
|
|
3191
3188
|
y2: k(h)(t.y),
|
|
3192
3189
|
stroke: e.color,
|
|
3193
3190
|
"stroke-width": .5,
|
|
3194
3191
|
"stroke-linecap": "round",
|
|
3195
3192
|
style: { animation: "none !important" }
|
|
3196
|
-
}, null, 8,
|
|
3197
|
-
x1:
|
|
3198
|
-
x2:
|
|
3193
|
+
}, null, 8, Ht))), 256)) : e.yLabels.length ? (T(!0), S(y, { key: 1 }, D(e.yLabels, (e) => (T(), S("line", {
|
|
3194
|
+
x1: Y.value?.left,
|
|
3195
|
+
x2: Y.value?.right,
|
|
3199
3196
|
y1: k(h)(e.y),
|
|
3200
3197
|
y2: k(h)(e.y),
|
|
3201
3198
|
stroke: B.value.chart.grid.stroke,
|
|
3202
3199
|
"stroke-width": .5,
|
|
3203
3200
|
"stroke-linecap": "round",
|
|
3204
3201
|
style: { animation: "none !important" }
|
|
3205
|
-
}, null, 8,
|
|
3202
|
+
}, null, 8, Ut))), 256)) : x("", !0)]))), 256)) : x("", !0) : (T(), S(y, { key: 1 }, [B.value.chart.grid.labels.yAxis.showBaseline ? (T(), S("line", {
|
|
3206
3203
|
key: 0,
|
|
3207
3204
|
class: "vue-ui-xy-y-axis",
|
|
3208
3205
|
stroke: B.value.chart.grid.stroke,
|
|
3209
3206
|
"stroke-width": "1",
|
|
3210
|
-
x1:
|
|
3211
|
-
x2:
|
|
3212
|
-
y1: k(h)(
|
|
3213
|
-
y2: k(h)(
|
|
3207
|
+
x1: J.value ? Y.value?.right : Y.value?.left,
|
|
3208
|
+
x2: J.value ? Y.value?.right : Y.value?.left,
|
|
3209
|
+
y1: k(h)(Y.value?.top),
|
|
3210
|
+
y2: k(h)(Y.value?.bottom),
|
|
3214
3211
|
"stroke-linecap": "round",
|
|
3215
3212
|
style: { animation: "none !important" }
|
|
3216
|
-
}, null, 8,
|
|
3217
|
-
x1:
|
|
3218
|
-
x2:
|
|
3213
|
+
}, null, 8, zt)) : x("", !0), B.value.chart.grid.showHorizontalLines ? (T(), S("g", Bt, [(T(!0), S(y, null, D(gc.value, (e) => (T(), S("line", {
|
|
3214
|
+
x1: Y.value?.left,
|
|
3215
|
+
x2: Y.value?.right,
|
|
3219
3216
|
y1: k(h)(e.y),
|
|
3220
3217
|
y2: k(h)(e.y),
|
|
3221
3218
|
stroke: B.value.chart.grid.stroke,
|
|
3222
3219
|
"stroke-width": .5,
|
|
3223
3220
|
"stroke-linecap": "round",
|
|
3224
3221
|
style: { animation: "none !important" }
|
|
3225
|
-
}, null, 8,
|
|
3226
|
-
B.value.chart.grid.showVerticalLines ? (T(), S("g",
|
|
3227
|
-
d:
|
|
3222
|
+
}, null, 8, Vt))), 256))])) : x("", !0)], 64)),
|
|
3223
|
+
B.value.chart.grid.showVerticalLines ? (T(), S("g", Wt, [C("path", {
|
|
3224
|
+
d: jo.value,
|
|
3228
3225
|
"stroke-width": .5,
|
|
3229
3226
|
stroke: B.value.chart.grid.stroke,
|
|
3230
3227
|
"stroke-linecap": "round",
|
|
3231
3228
|
style: { animation: "none !important" }
|
|
3232
|
-
}, null, 8,
|
|
3233
|
-
B.value.chart.grid.labels.xAxisLabels.show ? (T(), S("g",
|
|
3234
|
-
d:
|
|
3229
|
+
}, null, 8, Gt)])) : x("", !0),
|
|
3230
|
+
B.value.chart.grid.labels.xAxisLabels.show ? (T(), S("g", Kt, [C("path", {
|
|
3231
|
+
d: Mo.value,
|
|
3235
3232
|
stroke: B.value.chart.grid.stroke,
|
|
3236
3233
|
"stroke-width": 1,
|
|
3237
3234
|
"stroke-linecap": "round",
|
|
3238
3235
|
style: { animation: "none !important" }
|
|
3239
|
-
}, null, 8,
|
|
3236
|
+
}, null, 8, qt)])) : x("", !0)
|
|
3240
3237
|
]),
|
|
3241
|
-
(T(!0), S(y, null, D(
|
|
3238
|
+
(T(!0), S(y, null, D(kc.value, (e, t) => (T(), S("defs", { key: `def_rect_${t}` }, [n.$slots["bar-gradient"] ? O(n.$slots, "bar-gradient", at({
|
|
3242
3239
|
key: 0,
|
|
3243
3240
|
ref_for: !0
|
|
3244
3241
|
}, {
|
|
@@ -3253,16 +3250,16 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3253
3250
|
C("stop", {
|
|
3254
3251
|
offset: "0%",
|
|
3255
3252
|
"stop-color": e.color
|
|
3256
|
-
}, null, 8,
|
|
3253
|
+
}, null, 8, Yt),
|
|
3257
3254
|
C("stop", {
|
|
3258
3255
|
offset: "62%",
|
|
3259
3256
|
"stop-color": `${k(p)(e.color, .02)}`
|
|
3260
|
-
}, null, 8,
|
|
3257
|
+
}, null, 8, Xt),
|
|
3261
3258
|
C("stop", {
|
|
3262
3259
|
offset: "100%",
|
|
3263
3260
|
"stop-color": `${k(p)(e.color, .05)}`
|
|
3264
|
-
}, null, 8,
|
|
3265
|
-
], 8,
|
|
3261
|
+
}, null, 8, Zt)
|
|
3262
|
+
], 8, Jt), C("linearGradient", {
|
|
3266
3263
|
id: `rectGradient_neg_${t}_${F.value}`,
|
|
3267
3264
|
x2: "0%",
|
|
3268
3265
|
y2: "100%"
|
|
@@ -3270,17 +3267,17 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3270
3267
|
C("stop", {
|
|
3271
3268
|
offset: "0%",
|
|
3272
3269
|
"stop-color": `${k(p)(e.color, .05)}`
|
|
3273
|
-
}, null, 8,
|
|
3270
|
+
}, null, 8, $t),
|
|
3274
3271
|
C("stop", {
|
|
3275
3272
|
offset: "38%",
|
|
3276
3273
|
"stop-color": `${k(p)(e.color, .02)}`
|
|
3277
|
-
}, null, 8,
|
|
3274
|
+
}, null, 8, en),
|
|
3278
3275
|
C("stop", {
|
|
3279
3276
|
offset: "100%",
|
|
3280
3277
|
"stop-color": e.color
|
|
3281
|
-
}, null, 8,
|
|
3282
|
-
], 8,
|
|
3283
|
-
(T(!0), S(y, null, D(
|
|
3278
|
+
}, null, 8, tn)
|
|
3279
|
+
], 8, Qt)], 64))]))), 128)),
|
|
3280
|
+
(T(!0), S(y, null, D(Ac.value, (e, t) => (T(), S("defs", { key: `def_plot_${t}` }, [C("radialGradient", {
|
|
3284
3281
|
id: `plotGradient_${t}_${F.value}`,
|
|
3285
3282
|
cx: "50%",
|
|
3286
3283
|
cy: "50%",
|
|
@@ -3290,11 +3287,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3290
3287
|
}, [C("stop", {
|
|
3291
3288
|
offset: "0%",
|
|
3292
3289
|
"stop-color": `${k(p)(e.color, .05)}`
|
|
3293
|
-
}, null, 8,
|
|
3290
|
+
}, null, 8, rn), C("stop", {
|
|
3294
3291
|
offset: "100%",
|
|
3295
3292
|
"stop-color": e.color
|
|
3296
|
-
}, null, 8,
|
|
3297
|
-
(T(!0), S(y, null, D(
|
|
3293
|
+
}, null, 8, an)], 8, nn)]))), 128)),
|
|
3294
|
+
(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `def_line_${e.id}` }, [C("defs", null, [C("radialGradient", {
|
|
3298
3295
|
id: `lineGradient_${t}_${F.value}`,
|
|
3299
3296
|
cx: "50%",
|
|
3300
3297
|
cy: "50%",
|
|
@@ -3304,10 +3301,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3304
3301
|
}, [C("stop", {
|
|
3305
3302
|
offset: "0%",
|
|
3306
3303
|
"stop-color": `${k(p)(e.color, .05)}`
|
|
3307
|
-
}, null, 8,
|
|
3304
|
+
}, null, 8, sn), C("stop", {
|
|
3308
3305
|
offset: "100%",
|
|
3309
3306
|
"stop-color": e.color
|
|
3310
|
-
}, null, 8,
|
|
3307
|
+
}, null, 8, cn)], 8, on), n.$slots["area-gradient"] ? O(n.$slots, "area-gradient", at({
|
|
3311
3308
|
key: 0,
|
|
3312
3309
|
ref_for: !0
|
|
3313
3310
|
}, {
|
|
@@ -3323,87 +3320,87 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3323
3320
|
}, [C("stop", {
|
|
3324
3321
|
offset: "0%",
|
|
3325
3322
|
"stop-color": `${k(f)(k(p)(e.color, .03), B.value.line.area.opacity)}`
|
|
3326
|
-
}, null, 8,
|
|
3323
|
+
}, null, 8, un), C("stop", {
|
|
3327
3324
|
offset: "100%",
|
|
3328
3325
|
"stop-color": `${k(f)(e.color, B.value.line.area.opacity)}`
|
|
3329
|
-
}, null, 8,
|
|
3326
|
+
}, null, 8, dn)], 8, ln))]), e.temperatureColors && !e.isFlatTemperatureLine ? (T(), S("defs", fn, [C("linearGradient", {
|
|
3330
3327
|
id: `temperature_grad_line_${t}_${F.value}`,
|
|
3331
3328
|
gradientTransform: "rotate(90)"
|
|
3332
3329
|
}, [(T(!0), S(y, null, D(e.temperatureColors, (n, r) => (T(), S("stop", {
|
|
3333
3330
|
key: `temperature_grad_stop_${t}_${r}_${F.value}`,
|
|
3334
3331
|
"stop-color": n,
|
|
3335
3332
|
offset: k(me)(r, e.temperatureColors.length)
|
|
3336
|
-
}, null, 8,
|
|
3333
|
+
}, null, 8, mn))), 128))], 8, pn)])) : x("", !0)], 64))), 128)),
|
|
3337
3334
|
(T(!0), S(y, null, D(Ys.value, (e) => (T(), S("g", null, [e.show ? (T(), S(y, { key: 0 }, [(T(!0), S(y, null, D(e.span, (t, n) => (T(), S("g", null, [C("rect", {
|
|
3338
3335
|
style: w({
|
|
3339
3336
|
transition: "none",
|
|
3340
3337
|
opacity: +(e.from + n >= W.value.start && e.from + n <= W.value.end - 1)
|
|
3341
3338
|
}),
|
|
3342
3339
|
x: rc(e.from + n - W.value.start),
|
|
3343
|
-
y:
|
|
3344
|
-
height:
|
|
3340
|
+
y: Y.value?.top,
|
|
3341
|
+
height: Y.value.height < 0 ? 10 : Y.value.height,
|
|
3345
3342
|
width: ic(e.from + n - W.value.start),
|
|
3346
3343
|
fill: k(f)(e.color, e.opacity)
|
|
3347
|
-
}, null, 12,
|
|
3344
|
+
}, null, 12, hn)]))), 256)), (T(!0), S(y, null, D(e.span, (t, n) => (T(), S("g", null, [e.caption.text && n === 0 ? (T(), S("foreignObject", {
|
|
3348
3345
|
key: 0,
|
|
3349
3346
|
x: rc(e.from + n - W.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - sc(e.span) / 2),
|
|
3350
|
-
y:
|
|
3347
|
+
y: Y.value?.top + e.caption.offsetY,
|
|
3351
3348
|
style: w({
|
|
3352
3349
|
overflow: "visible",
|
|
3353
3350
|
opacity: +(e.to >= W.value.start && e.from < W.value.end)
|
|
3354
3351
|
}),
|
|
3355
3352
|
height: "1",
|
|
3356
3353
|
width: e.caption.width === "auto" ? sc(e.span) : e.caption.width
|
|
3357
|
-
}, [C("div", { style: w(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`) }, pt(e.caption.text), 5)], 12,
|
|
3358
|
-
|
|
3354
|
+
}, [C("div", { style: w(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`) }, pt(e.caption.text), 5)], 12, gn)) : x("", !0)]))), 256))], 64)) : x("", !0)]))), 256)),
|
|
3355
|
+
Lo.value && !q.value ? (T(), S("g", _n, [(T(!0), S(y, null, D(Z.value, (e, t) => (T(), S("g", { key: `tooltip_trap_highlighter_${t}` }, [C("rect", {
|
|
3359
3356
|
x: rc(t),
|
|
3360
|
-
y:
|
|
3361
|
-
height:
|
|
3357
|
+
y: Y.value?.top,
|
|
3358
|
+
height: Y.value.height < 0 ? 10 : Y.value.height,
|
|
3362
3359
|
width: oc(t),
|
|
3363
3360
|
fill: [
|
|
3364
3361
|
I.value,
|
|
3365
3362
|
R.value,
|
|
3366
|
-
|
|
3363
|
+
ca.value
|
|
3367
3364
|
].includes(t) ? k(f)(B.value.chart.highlighter.color, B.value.chart.highlighter.crosshairs.show ? 0 : B.value.chart.highlighter.opacity) : "transparent",
|
|
3368
3365
|
style: {
|
|
3369
3366
|
transition: "none !important",
|
|
3370
3367
|
animation: "none !important"
|
|
3371
3368
|
}
|
|
3372
|
-
}, null, 8,
|
|
3373
|
-
|
|
3369
|
+
}, null, 8, vn)]))), 128))])) : x("", !0),
|
|
3370
|
+
kc.value.length ? (T(!0), S(y, { key: 1 }, D(kc.value, (e, t) => (T(), S("g", {
|
|
3374
3371
|
key: `serie_bar_${e.id}`,
|
|
3375
3372
|
class: st(`serie_bar_${t}`),
|
|
3376
3373
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3377
3374
|
}, [(T(!0), S(y, null, D(e.plots, (r, i) => (T(), S("g", { key: `bar_plot_${t}_${i}` }, [
|
|
3378
|
-
|
|
3375
|
+
k(bt)(r.value) ? (T(), S("rect", {
|
|
3379
3376
|
key: 0,
|
|
3380
|
-
x: Cs(r) +
|
|
3377
|
+
x: Cs(r) + fc.value / 2,
|
|
3381
3378
|
y: V.value.useIndividualScale ? Ts(r) : ws(r),
|
|
3382
3379
|
height: V.value.useIndividualScale ? Math.abs(bs(r)) : Math.abs(ys(r)),
|
|
3383
|
-
width:
|
|
3380
|
+
width: dc.value - fc.value,
|
|
3384
3381
|
rx: B.value.bar.borderRadius,
|
|
3385
3382
|
fill: B.value.bar.useGradient ? r.value >= 0 ? `url(#rectGradient_pos_${t}_${F.value})` : `url(#rectGradient_neg_${t}_${F.value})` : e.color,
|
|
3386
3383
|
stroke: B.value.bar.border.useSerieColor ? e.color : B.value.bar.border.stroke,
|
|
3387
3384
|
"stroke-width": B.value.bar.border.strokeWidth,
|
|
3388
|
-
style: w({ transition: k(
|
|
3389
|
-
}, null, 12,
|
|
3390
|
-
|
|
3385
|
+
style: w({ transition: k(qa) || !B.value.bar.showTransition ? void 0 : `all ${B.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3386
|
+
}, null, 12, yn)) : x("", !0),
|
|
3387
|
+
k(bt)(r.value) && n.$slots.pattern ? (T(), S("rect", {
|
|
3391
3388
|
key: 1,
|
|
3392
|
-
x: Cs(r) -
|
|
3389
|
+
x: Cs(r) - fc.value / 2,
|
|
3393
3390
|
y: V.value.useIndividualScale ? Ts(r) : ws(r),
|
|
3394
3391
|
height: V.value.useIndividualScale ? Math.abs(bs(r)) : Math.abs(ys(r)),
|
|
3395
|
-
width:
|
|
3392
|
+
width: dc.value - fc.value,
|
|
3396
3393
|
rx: B.value.bar.borderRadius,
|
|
3397
3394
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
3398
3395
|
stroke: B.value.bar.border.useSerieColor ? e.color : B.value.bar.border.stroke,
|
|
3399
3396
|
"stroke-width": B.value.bar.border.strokeWidth,
|
|
3400
|
-
style: w({ transition: k(
|
|
3401
|
-
}, null, 12,
|
|
3397
|
+
style: w({ transition: k(qa) || !B.value.bar.showTransition ? void 0 : `all ${B.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3398
|
+
}, null, 12, bn)) : x("", !0),
|
|
3402
3399
|
r.comment && B.value.chart.comments.show ? (T(), S("foreignObject", {
|
|
3403
3400
|
key: 2,
|
|
3404
3401
|
style: { overflow: "visible" },
|
|
3405
3402
|
height: "12",
|
|
3406
|
-
width:
|
|
3403
|
+
width: dc.value + B.value.chart.comments.width,
|
|
3407
3404
|
x: Cs(r) - B.value.chart.comments.width / 2 + B.value.chart.comments.offsetX,
|
|
3408
3405
|
y: k(v)(r.y) + B.value.chart.comments.offsetY + 6
|
|
3409
3406
|
}, [O(n.$slots, "plot-comment", { plot: {
|
|
@@ -3411,24 +3408,24 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3411
3408
|
color: e.color,
|
|
3412
3409
|
seriesIndex: t,
|
|
3413
3410
|
datapointIndex: i
|
|
3414
|
-
} }, void 0, !0)], 8,
|
|
3411
|
+
} }, void 0, !0)], 8, xn)) : x("", !0)
|
|
3415
3412
|
]))), 128))], 6))), 128)) : x("", !0),
|
|
3416
3413
|
!V.value.useIndividualScale && B.value.chart.grid.labels.zeroLine.show ? (T(), S("line", {
|
|
3417
3414
|
key: 2,
|
|
3418
3415
|
stroke: B.value.chart.grid.stroke,
|
|
3419
3416
|
"stroke-width": "1",
|
|
3420
|
-
x1:
|
|
3421
|
-
x2:
|
|
3417
|
+
x1: Y.value?.left,
|
|
3418
|
+
x2: Y.value?.right,
|
|
3422
3419
|
y1: k(h)(vs.value),
|
|
3423
3420
|
y2: k(h)(vs.value),
|
|
3424
3421
|
"stroke-linecap": "round",
|
|
3425
3422
|
style: { animation: "none !important" }
|
|
3426
|
-
}, null, 8,
|
|
3427
|
-
!B.value.chart.highlighter.crosshairs.show && (B.value.chart.highlighter.useLine ||
|
|
3423
|
+
}, null, 8, Sn)) : x("", !0),
|
|
3424
|
+
!B.value.chart.highlighter.crosshairs.show && (B.value.chart.highlighter.useLine || q.value) && Yo.value ? (T(), S("g", Cn, [C("line", {
|
|
3428
3425
|
x1: cl.value,
|
|
3429
3426
|
x2: cl.value,
|
|
3430
|
-
y1: k(h)(
|
|
3431
|
-
y2: k(h)(
|
|
3427
|
+
y1: k(h)(Y.value?.top),
|
|
3428
|
+
y2: k(h)(Y.value?.bottom),
|
|
3432
3429
|
stroke: B.value.chart.highlighter.color,
|
|
3433
3430
|
"stroke-width": B.value.chart.highlighter.lineWidth,
|
|
3434
3431
|
"stroke-dasharray": B.value.chart.highlighter.lineDasharray,
|
|
@@ -3438,11 +3435,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3438
3435
|
animation: "none !important",
|
|
3439
3436
|
"pointer-events": "none"
|
|
3440
3437
|
}
|
|
3441
|
-
}, null, 8,
|
|
3442
|
-
ll.value ? (T(), S("g",
|
|
3438
|
+
}, null, 8, wn)])) : x("", !0),
|
|
3439
|
+
ll.value ? (T(), S("g", Tn, [(T(!0), S(y, null, D(ul.value, (e) => (T(), S("g", { key: `crosshair_${e.serie.id}_${e.index}` }, [
|
|
3443
3440
|
C("line", {
|
|
3444
|
-
x1: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(e.x) :
|
|
3445
|
-
x2: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(fl(e.x)) :
|
|
3441
|
+
x1: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(e.x) : Y.value.left,
|
|
3442
|
+
x2: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(fl(e.x)) : Y.value.right,
|
|
3446
3443
|
y1: k(h)(e.y),
|
|
3447
3444
|
y2: k(h)(e.y),
|
|
3448
3445
|
stroke: B.value.chart.highlighter.crosshairs.stroke,
|
|
@@ -3450,18 +3447,18 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3450
3447
|
"stroke-dasharray": B.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
3451
3448
|
"stroke-linecap": "round",
|
|
3452
3449
|
style: { "pointer-events": "none" }
|
|
3453
|
-
}, null, 8,
|
|
3450
|
+
}, null, 8, En),
|
|
3454
3451
|
C("line", {
|
|
3455
3452
|
x1: k(h)(e.x),
|
|
3456
3453
|
x2: k(h)(e.x),
|
|
3457
|
-
y1: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(e.y) :
|
|
3458
|
-
y2: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(
|
|
3454
|
+
y1: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(e.y) : Y.value.top,
|
|
3455
|
+
y2: B.value.chart.highlighter.crosshairs.stopOnPoint ? k(h)(Y.value.bottom) : Y.value.bottom,
|
|
3459
3456
|
stroke: B.value.chart.highlighter.crosshairs.stroke,
|
|
3460
3457
|
"stroke-width": B.value.chart.highlighter.crosshairs.strokeWidth,
|
|
3461
3458
|
"stroke-dasharray": B.value.chart.highlighter.crosshairs.strokeDasharray,
|
|
3462
3459
|
"stroke-linecap": "round",
|
|
3463
3460
|
style: { "pointer-events": "none" }
|
|
3464
|
-
}, null, 8,
|
|
3461
|
+
}, null, 8, Dn),
|
|
3465
3462
|
C("circle", {
|
|
3466
3463
|
cx: k(h)(fl(e.x)),
|
|
3467
3464
|
cy: k(h)(e.y),
|
|
@@ -3470,7 +3467,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3470
3467
|
stroke: B.value.chart.highlighter.crosshairs.dot.stroke,
|
|
3471
3468
|
"stroke-width": B.value.chart.highlighter.crosshairs.dot.strokeWidth,
|
|
3472
3469
|
style: { "pointer-events": "none" }
|
|
3473
|
-
}, null, 8,
|
|
3470
|
+
}, null, 8, On)
|
|
3474
3471
|
]))), 128))])) : x("", !0),
|
|
3475
3472
|
B.value.chart.grid.frame.show ? (T(), S("rect", {
|
|
3476
3473
|
key: 5,
|
|
@@ -3479,53 +3476,53 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3479
3476
|
transition: "none",
|
|
3480
3477
|
animation: "none !important"
|
|
3481
3478
|
},
|
|
3482
|
-
x: Math.max(0,
|
|
3483
|
-
y:
|
|
3484
|
-
width: Math.max(0,
|
|
3485
|
-
height:
|
|
3479
|
+
x: Math.max(0, Y.value?.left),
|
|
3480
|
+
y: Y.value?.top,
|
|
3481
|
+
width: Math.max(0, Y.value?.width),
|
|
3482
|
+
height: Y.value.height < 0 ? 0 : Y.value.height,
|
|
3486
3483
|
fill: "transparent",
|
|
3487
3484
|
stroke: B.value.chart.grid.frame.stroke,
|
|
3488
3485
|
"stroke-width": B.value.chart.grid.frame.strokeWidth,
|
|
3489
3486
|
"stroke-linecap": B.value.chart.grid.frame.strokeLinecap,
|
|
3490
3487
|
"stroke-linejoin": B.value.chart.grid.frame.strokeLinejoin,
|
|
3491
3488
|
"stroke-dasharray": B.value.chart.grid.frame.strokeDasharray
|
|
3492
|
-
}, null, 8,
|
|
3489
|
+
}, null, 8, kn)) : x("", !0),
|
|
3493
3490
|
B.value.chart.grid.labels.show ? (T(), S("g", {
|
|
3494
3491
|
key: 6,
|
|
3495
3492
|
ref_key: "scaleLabels",
|
|
3496
|
-
ref:
|
|
3493
|
+
ref: Yi,
|
|
3497
3494
|
opacity: ll.value ? .2 : 1,
|
|
3498
3495
|
style: { transition: "opacity 0.2s" }
|
|
3499
3496
|
}, [V.value.useIndividualScale ? (T(), S(y, { key: 0 }, [(T(!0), S(y, null, D(jc.value, (e) => (T(), S("g", null, [C("line", {
|
|
3500
|
-
x1: V.value.isStacked ?
|
|
3501
|
-
x2: V.value.isStacked ?
|
|
3502
|
-
y1: V.value.isStacked ? k(h)(
|
|
3503
|
-
y2: V.value.isStacked ? k(h)(
|
|
3497
|
+
x1: V.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
|
|
3498
|
+
x2: V.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
|
|
3499
|
+
y1: V.value.isStacked ? k(h)(Y.value?.bottom - e.yOffset - e.individualHeight) : k(h)(Y.value?.top),
|
|
3500
|
+
y2: V.value.isStacked ? k(h)(Y.value?.bottom - e.yOffset) : k(h)(Y.value?.bottom),
|
|
3504
3501
|
stroke: e.color,
|
|
3505
3502
|
"stroke-width": B.value.chart.grid.stroke,
|
|
3506
3503
|
"stroke-linecap": "round",
|
|
3507
3504
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3508
|
-
}, null, 12,
|
|
3505
|
+
}, null, 12, jn)]))), 256)), (T(!0), S(y, null, D(jc.value, (e) => (T(), S("g", { style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
|
|
3509
3506
|
C("text", {
|
|
3510
3507
|
fill: e.color,
|
|
3511
3508
|
"font-size": z.value.dataLabels * .8,
|
|
3512
3509
|
"text-anchor": "middle",
|
|
3513
|
-
transform: `translate(${V.value.isStacked ?
|
|
3514
|
-
}, pt(e.name) + " " + pt(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9,
|
|
3510
|
+
transform: `translate(${V.value.isStacked ? J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + B.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX + B.value.chart.grid.labels.axis.yLabelOffsetX : Y.value.left - B.value.chart.grid.labels.yAxis.crosshairSize - B.value.chart.grid.labels.yAxis.scaleValueOffsetX - B.value.chart.grid.labels.yAxis.labelWidth - B.value.chart.grid.labels.axis.yLabelOffsetX : J.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + B.value.chart.grid.labels.yAxis.labelWidth + B.value.chart.grid.labels.axis.yLabelOffsetX : e.x - z.value.dataLabels * .8 / 2}, ${V.value.isStacked ? Y.value?.bottom - e.yOffset - e.individualHeight / 2 : Y.value?.top + Y.value.height / 2}) rotate(-90)`
|
|
3511
|
+
}, pt(e.name) + " " + pt(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, Mn),
|
|
3515
3512
|
(T(!0), S(y, null, D(e.yLabels, (t, n) => (T(), S(y, null, [B.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), S("line", {
|
|
3516
3513
|
key: 0,
|
|
3517
|
-
x1: V.value.isStacked ?
|
|
3518
|
-
x2: V.value.isStacked ?
|
|
3514
|
+
x1: V.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x + 3 - B.value.chart.grid.labels.yAxis.crosshairSize - Y.value.individualOffsetX,
|
|
3515
|
+
x2: V.value.isStacked ? J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize : Y.value.left - B.value.chart.grid.labels.yAxis.crosshairSize : J.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize : e.x - Y.value.individualOffsetX,
|
|
3519
3516
|
y1: k(h)(t.y),
|
|
3520
3517
|
y2: k(h)(t.y),
|
|
3521
3518
|
stroke: e.color,
|
|
3522
3519
|
"stroke-width": 1,
|
|
3523
3520
|
"stroke-linecap": "round",
|
|
3524
3521
|
style: { animation: "none !important" }
|
|
3525
|
-
}, null, 8,
|
|
3522
|
+
}, null, 8, Nn)) : x("", !0)], 64))), 256)),
|
|
3526
3523
|
(T(!0), S(y, null, D(e.yLabels, (t, n) => (T(), S("text", {
|
|
3527
|
-
transform: `translate(${V.value.isStacked ?
|
|
3528
|
-
"text-anchor":
|
|
3524
|
+
transform: `translate(${V.value.isStacked ? J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.left - B.value.chart.grid.labels.yAxis.crosshairSize - B.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : J.value ? e.x + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - Y.value.individualOffsetX}, ${k(h)(t.y) + z.value.dataLabels / 3})`,
|
|
3525
|
+
"text-anchor": J.value ? "start" : "end",
|
|
3529
3526
|
"font-size": z.value.dataLabels,
|
|
3530
3527
|
fill: e.color
|
|
3531
3528
|
}, pt(k(_)(B.value.chart.grid.labels.yAxis.formatter, t.value, k(s)({
|
|
@@ -3536,34 +3533,34 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3536
3533
|
}), {
|
|
3537
3534
|
datapoint: t.datapoint,
|
|
3538
3535
|
seriesIndex: n
|
|
3539
|
-
})), 9,
|
|
3540
|
-
], 4))), 256))], 64)) : (T(!0), S(y, { key: 1 }, D(
|
|
3536
|
+
})), 9, Pn))), 256))
|
|
3537
|
+
], 4))), 256))], 64)) : (T(!0), S(y, { key: 1 }, D(gc.value, (e, t) => (T(), S("g", { key: `yLabel_${t}` }, [k(bt)(e) && e.value >= K.value.min && e.value <= K.value.max && B.value.chart.grid.labels.yAxis.showCrosshairs ? (T(), S("line", {
|
|
3541
3538
|
key: 0,
|
|
3542
|
-
x1:
|
|
3543
|
-
x2:
|
|
3539
|
+
x1: J.value ? Y.value?.right : Y.value?.left,
|
|
3540
|
+
x2: J.value ? Y.value?.right + B.value.chart.grid.labels.yAxis.crosshairSize : Y.value?.left - B.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3544
3541
|
y1: k(h)(e.y),
|
|
3545
3542
|
y2: k(h)(e.y),
|
|
3546
3543
|
stroke: B.value.chart.grid.stroke,
|
|
3547
3544
|
"stroke-width": "1",
|
|
3548
3545
|
"stroke-linecap": "round",
|
|
3549
3546
|
style: { animation: "none !important" }
|
|
3550
|
-
}, null, 8,
|
|
3547
|
+
}, null, 8, Fn)) : x("", !0), e.value >= K.value.min && e.value <= K.value.max ? (T(), S("text", {
|
|
3551
3548
|
key: 1,
|
|
3552
|
-
transform: `translate(${
|
|
3549
|
+
transform: `translate(${J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - B.value.chart.grid.labels.yAxis.crosshairSize}, ${k(v)(e.y + z.value.dataLabels / 3)})`,
|
|
3553
3550
|
"font-size": z.value.dataLabels,
|
|
3554
|
-
"text-anchor":
|
|
3551
|
+
"text-anchor": J.value ? "start" : "end",
|
|
3555
3552
|
fill: B.value.chart.grid.labels.color
|
|
3556
|
-
}, pt(
|
|
3553
|
+
}, pt(k(bt)(e.value) ? k(_)(B.value.chart.grid.labels.yAxis.formatter, e.value, k(s)({
|
|
3557
3554
|
p: e.prefix,
|
|
3558
3555
|
v: e.value,
|
|
3559
3556
|
s: e.suffix,
|
|
3560
3557
|
r: B.value.chart.grid.labels.yAxis.rounding
|
|
3561
|
-
})) : ""), 9,
|
|
3562
|
-
ll.value ? (T(), S("g",
|
|
3558
|
+
})) : ""), 9, In)) : x("", !0)]))), 128))], 8, An)) : x("", !0),
|
|
3559
|
+
ll.value ? (T(), S("g", Ln, [(T(!0), S(y, null, D(ul.value, (e) => (T(), S("text", {
|
|
3563
3560
|
key: `crosshair_y_label_${e.serie.id}_${e.index}`,
|
|
3564
|
-
transform: `translate(${
|
|
3561
|
+
transform: `translate(${J.value ? Y.value.right + B.value.chart.grid.labels.yAxis.crosshairSize + B.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - B.value.chart.grid.labels.yAxis.crosshairSize}, ${k(h)(e.y) + z.value.dataLabels / 3})`,
|
|
3565
3562
|
"font-size": z.value.dataLabels,
|
|
3566
|
-
"text-anchor":
|
|
3563
|
+
"text-anchor": J.value ? "start" : "end",
|
|
3567
3564
|
fill: B.value.chart.grid.labels.color,
|
|
3568
3565
|
style: {
|
|
3569
3566
|
transition: "none !important",
|
|
@@ -3578,10 +3575,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3578
3575
|
}), {
|
|
3579
3576
|
datapoint: e.serie,
|
|
3580
3577
|
seriesIndex: e.index
|
|
3581
|
-
})), 9,
|
|
3582
|
-
dl.value ? (T(), S("g",
|
|
3578
|
+
})), 9, Rn))), 128))])) : x("", !0),
|
|
3579
|
+
dl.value ? (T(), S("g", zn, [C("circle", {
|
|
3583
3580
|
cx: cl.value,
|
|
3584
|
-
cy: k(h)(
|
|
3581
|
+
cy: k(h)(Y.value?.bottom),
|
|
3585
3582
|
r: B.value.chart.highlighter.crosshairs.dot.radius,
|
|
3586
3583
|
fill: B.value.chart.highlighter.crosshairs.dot.fill,
|
|
3587
3584
|
stroke: B.value.chart.highlighter.crosshairs.dot.stroke,
|
|
@@ -3591,12 +3588,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3591
3588
|
animation: "none !important",
|
|
3592
3589
|
"pointer-events": "none"
|
|
3593
3590
|
}
|
|
3594
|
-
}, null, 8,
|
|
3595
|
-
(T(!0), S(y, null, D(
|
|
3591
|
+
}, null, 8, Bn)])) : x("", !0),
|
|
3592
|
+
(T(!0), S(y, null, D(Ac.value, (e, t) => (T(), S("g", {
|
|
3596
3593
|
key: `serie_plot_${e.id}`,
|
|
3597
3594
|
class: st(`serie_plot_${t}`),
|
|
3598
3595
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3599
|
-
}, [(T(!0), S(y, null, D(e.plots, (r, i) => (T(), S("g", { key: `circle_plot_${t}_${i}` }, [r &&
|
|
3596
|
+
}, [(T(!0), S(y, null, D(e.plots, (r, i) => (T(), S("g", { key: `circle_plot_${t}_${i}` }, [r && k(bt)(r.value) ? (T(), Qe(Ge, {
|
|
3600
3597
|
key: 0,
|
|
3601
3598
|
shape: [
|
|
3602
3599
|
"triangle",
|
|
@@ -3611,10 +3608,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3611
3608
|
x: k(v)(r.x),
|
|
3612
3609
|
y: k(v)(r.y)
|
|
3613
3610
|
},
|
|
3614
|
-
radius: pl(e, r, i) ? (
|
|
3611
|
+
radius: pl(e, r, i) ? (Ra.value.plot || 6) * 1.5 : (vc(e.plots, i), Ra.value.plot || 6),
|
|
3615
3612
|
stroke: B.value.plot.dot.useSerieColor ? B.value.chart.backgroundColor : e.color,
|
|
3616
3613
|
strokeWidth: B.value.plot.dot.strokeWidth,
|
|
3617
|
-
transition: k(
|
|
3614
|
+
transition: k(qa) || !B.value.plot.showTransition || pl(e, r, i) ? void 0 : `all ${B.value.plot.transitionDurationMs}ms ease-in-out`
|
|
3618
3615
|
}, null, 8, [
|
|
3619
3616
|
"shape",
|
|
3620
3617
|
"color",
|
|
@@ -3630,13 +3627,13 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3630
3627
|
width: B.value.chart.comments.width,
|
|
3631
3628
|
x: r.x - B.value.chart.comments.width / 2 + B.value.chart.comments.offsetX,
|
|
3632
3629
|
y: r.y + B.value.chart.comments.offsetY + 6
|
|
3633
|
-
}, [C("div",
|
|
3630
|
+
}, [C("div", Hn, [O(n.$slots, "plot-comment", { plot: {
|
|
3634
3631
|
...r,
|
|
3635
3632
|
color: e.color,
|
|
3636
3633
|
seriesIndex: t,
|
|
3637
3634
|
datapointIndex: i
|
|
3638
|
-
} }, void 0, !0)])], 8,
|
|
3639
|
-
(T(!0), S(y, null, D(
|
|
3635
|
+
} }, void 0, !0)])], 8, Vn)) : x("", !0)]))), 128))], 6))), 128)),
|
|
3636
|
+
(T(!0), S(y, null, D($.value, (e, t) => (T(), S("g", {
|
|
3640
3637
|
key: `serie_line_${e.id}`,
|
|
3641
3638
|
class: st(`serie_line_${t}`),
|
|
3642
3639
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -3647,8 +3644,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3647
3644
|
"stroke-width": B.value.line.strokeWidth + 1,
|
|
3648
3645
|
"stroke-dasharray": e.dashed ? B.value.line.strokeWidth * 2 : 0,
|
|
3649
3646
|
fill: "none",
|
|
3650
|
-
style: w({ transition: k(
|
|
3651
|
-
}, null, 12,
|
|
3647
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3648
|
+
}, null, 12, Un)) : e.plots.length > 1 && e.straight ? (T(), S("path", {
|
|
3652
3649
|
key: 1,
|
|
3653
3650
|
d: `M${e.straight}`,
|
|
3654
3651
|
stroke: B.value.chart.backgroundColor,
|
|
@@ -3657,48 +3654,48 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3657
3654
|
fill: "none",
|
|
3658
3655
|
"stroke-linecap": "round",
|
|
3659
3656
|
"stroke-linejoin": "round",
|
|
3660
|
-
style: w({ transition: k(
|
|
3661
|
-
}, null, 12,
|
|
3662
|
-
n.$slots.pattern ? (T(), S("defs",
|
|
3657
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3658
|
+
}, null, 12, Wn)) : x("", !0)], 6))), 128)),
|
|
3659
|
+
n.$slots.pattern ? (T(), S("defs", Gn, [(T(!0), S(y, null, D(vo.value, (e, t) => O(n.$slots, "pattern", at({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
|
|
3663
3660
|
...e,
|
|
3664
3661
|
seriesIndex: e.slotAbsoluteIndex,
|
|
3665
3662
|
patternId: `pattern_${F.value}_${t}`
|
|
3666
3663
|
}), void 0, !0)), 128))])) : x("", !0),
|
|
3667
|
-
Mc.value.length && !V.value.isStacked ? (T(), S("g",
|
|
3664
|
+
Mc.value.length && !V.value.isStacked ? (T(), S("g", Kn, [(T(!0), S(y, null, D(Mc.value, (e) => (T(), S("path", {
|
|
3668
3665
|
key: e.key,
|
|
3669
3666
|
d: e.d,
|
|
3670
3667
|
fill: e.color,
|
|
3671
3668
|
"fill-opacity": B.value.line.interLine.fillOpacity,
|
|
3672
3669
|
stroke: "none",
|
|
3673
3670
|
"pointer-events": "none",
|
|
3674
|
-
style: w({ transition: k(
|
|
3675
|
-
}, null, 12,
|
|
3676
|
-
(T(!0), S(y, null, D(
|
|
3671
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3672
|
+
}, null, 12, qn))), 128))])) : x("", !0),
|
|
3673
|
+
(T(!0), S(y, null, D($.value, (e, t) => (T(), S("g", {
|
|
3677
3674
|
key: `serie_line_above_${e.id}`,
|
|
3678
3675
|
class: st(`serie_line_${t}`),
|
|
3679
3676
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3680
3677
|
}, [
|
|
3681
|
-
e.useArea && e.plots.length > 1 ? (T(), S("g",
|
|
3678
|
+
e.useArea && e.plots.length > 1 ? (T(), S("g", Jn, [e.smooth ? (T(!0), S(y, { key: 0 }, D(e.curveAreas, (r, i) => (T(), S(y, { key: i }, [r ? (T(), S("path", {
|
|
3682
3679
|
key: 0,
|
|
3683
3680
|
d: r,
|
|
3684
3681
|
fill: B.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : k(f)(e.color, B.value.line.area.opacity),
|
|
3685
|
-
style: w({ transition: k(
|
|
3686
|
-
}, null, 12,
|
|
3682
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3683
|
+
}, null, 12, Yn)) : x("", !0), n.$slots.pattern && r ? (T(), S("path", {
|
|
3687
3684
|
key: 1,
|
|
3688
3685
|
d: r,
|
|
3689
3686
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
3690
|
-
style: w({ transition: k(
|
|
3691
|
-
}, null, 12,
|
|
3687
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3688
|
+
}, null, 12, Xn)) : x("", !0)], 64))), 128)) : (T(!0), S(y, { key: 1 }, D(e.area.split(";"), (r, i) => (T(), S(y, { key: i }, [r ? (T(), S("path", {
|
|
3692
3689
|
key: 0,
|
|
3693
3690
|
d: `M${r}Z`,
|
|
3694
3691
|
fill: B.value.line.area.useGradient ? `url(#areaGradient_${t}_${F.value})` : k(f)(e.color, B.value.line.area.opacity),
|
|
3695
|
-
style: w({ transition: k(
|
|
3696
|
-
}, null, 12,
|
|
3692
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3693
|
+
}, null, 12, Zn)) : x("", !0), n.$slots.pattern && r ? (T(), S("path", {
|
|
3697
3694
|
key: 1,
|
|
3698
3695
|
d: `M${r}Z`,
|
|
3699
3696
|
fill: `url(#pattern_${F.value}_${e.slotAbsoluteIndex})`,
|
|
3700
|
-
style: w({ transition: k(
|
|
3701
|
-
}, null, 12,
|
|
3697
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3698
|
+
}, null, 12, Qn)) : x("", !0)], 64))), 128))])) : x("", !0),
|
|
3702
3699
|
!e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (T(), S("path", {
|
|
3703
3700
|
key: 1,
|
|
3704
3701
|
d: `M${e.curve}`,
|
|
@@ -3707,8 +3704,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3707
3704
|
"stroke-dasharray": e.dashed ? B.value.line.strokeWidth * 2 : 0,
|
|
3708
3705
|
fill: "none",
|
|
3709
3706
|
"stroke-linecap": "round",
|
|
3710
|
-
style: w({ transition: k(
|
|
3711
|
-
}, null, 12,
|
|
3707
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3708
|
+
}, null, 12, $n)) : e.hasDashedSegments ? (T(), S(y, { key: 2 }, [e.smooth ? (T(!0), S(y, { key: 0 }, D(e.dashedSmooth, (n) => (T(), S("path", {
|
|
3712
3709
|
key: n.path,
|
|
3713
3710
|
fill: "none",
|
|
3714
3711
|
"stroke-linecap": "round",
|
|
@@ -3717,7 +3714,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3717
3714
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
3718
3715
|
"stroke-width": B.value.line.strokeWidth,
|
|
3719
3716
|
"stroke-dasharray": n.dashed ? B.value.line.strokeWidth * 2 : 0
|
|
3720
|
-
}, null, 8,
|
|
3717
|
+
}, null, 8, er))), 128)) : (T(!0), S(y, { key: 1 }, D(e.dashedStraight, (n) => (T(), S("path", {
|
|
3721
3718
|
key: n.path,
|
|
3722
3719
|
fill: "none",
|
|
3723
3720
|
"stroke-linecap": "round",
|
|
@@ -3726,7 +3723,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3726
3723
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
3727
3724
|
"stroke-width": B.value.line.strokeWidth,
|
|
3728
3725
|
"stroke-dasharray": n.dashed ? B.value.line.strokeWidth * 2 : 0
|
|
3729
|
-
}, null, 8,
|
|
3726
|
+
}, null, 8, tr))), 128))], 64)) : e.plots.length > 1 && e.straight ? (T(), S("path", {
|
|
3730
3727
|
key: 3,
|
|
3731
3728
|
d: `M${e.straight}`,
|
|
3732
3729
|
stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${F.value})` : e.color,
|
|
@@ -3735,9 +3732,9 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3735
3732
|
fill: "none",
|
|
3736
3733
|
"stroke-linecap": "round",
|
|
3737
3734
|
"stroke-linejoin": "round",
|
|
3738
|
-
style: w({ transition: k(
|
|
3739
|
-
}, null, 12,
|
|
3740
|
-
(T(!0), S(y, null, D(e.plots, (r, i) => (T(), S(y, { key: `circle_line_${t}_${i}` }, [!qs.value.linePlot && r &&
|
|
3735
|
+
style: w({ transition: k(qa) || !B.value.line.showTransition ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3736
|
+
}, null, 12, nr)) : x("", !0),
|
|
3737
|
+
(T(!0), S(y, null, D(e.plots, (r, i) => (T(), S(y, { key: `circle_line_${t}_${i}` }, [!qs.value.linePlot && r && k(bt)(r.value) || qs.value.linePlot && r && k(bt)(r.value) && (R.value !== null && R.value === i || I.value !== null && I.value === i) || vc(e.plots, i) ? (T(), Qe(Ge, {
|
|
3741
3738
|
key: 0,
|
|
3742
3739
|
shape: [
|
|
3743
3740
|
"triangle",
|
|
@@ -3752,10 +3749,10 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3752
3749
|
x: k(v)(r.x),
|
|
3753
3750
|
y: k(v)(r.y)
|
|
3754
3751
|
},
|
|
3755
|
-
radius: pl(e, r, i) ? (
|
|
3752
|
+
radius: pl(e, r, i) ? (Ra.value.line || 6) * 1.5 : (vc(e.plots, i), Ra.value.line || 6),
|
|
3756
3753
|
stroke: B.value.line.dot.useSerieColor ? B.value.chart.backgroundColor : e.color,
|
|
3757
3754
|
strokeWidth: B.value.line.dot.strokeWidth,
|
|
3758
|
-
transition: k(
|
|
3755
|
+
transition: k(qa) || !B.value.line.showTransition || pl(e, r, i) ? void 0 : `all ${B.value.line.transitionDurationMs}ms ease-in-out`
|
|
3759
3756
|
}, null, 8, [
|
|
3760
3757
|
"shape",
|
|
3761
3758
|
"color",
|
|
@@ -3771,14 +3768,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3771
3768
|
width: B.value.chart.comments.width,
|
|
3772
3769
|
x: r.x - B.value.chart.comments.width / 2 + B.value.chart.comments.offsetX,
|
|
3773
3770
|
y: r.y + B.value.chart.comments.offsetY + 6
|
|
3774
|
-
}, [C("div",
|
|
3771
|
+
}, [C("div", ir, [O(n.$slots, "plot-comment", { plot: {
|
|
3775
3772
|
...r,
|
|
3776
3773
|
color: e.color,
|
|
3777
3774
|
seriesIndex: t,
|
|
3778
3775
|
datapointIndex: i
|
|
3779
|
-
} }, void 0, !0)])], 8,
|
|
3776
|
+
} }, void 0, !0)])], 8, rr)) : x("", !0)], 64))), 128))
|
|
3780
3777
|
], 6))), 128)),
|
|
3781
|
-
(B.value.bar.labels.show || B.value.bar.serieName.show) && V.value.dataLabels.show ? (T(), S("g",
|
|
3778
|
+
(B.value.bar.labels.show || B.value.bar.serieName.show) && V.value.dataLabels.show ? (T(), S("g", ar, [(T(!0), S(y, null, D(kc.value, (e, t) => (T(), S(y, { key: `xLabel_bar_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || R.value !== null && R.value === r || I.value !== null && I.value === r) && B.value.bar.labels.show ? (T(), S("text", {
|
|
3782
3779
|
key: 0,
|
|
3783
3780
|
"text-anchor": sl({
|
|
3784
3781
|
plot: n,
|
|
@@ -3795,7 +3792,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3795
3792
|
plot: n,
|
|
3796
3793
|
type: "bar"
|
|
3797
3794
|
})
|
|
3798
|
-
}, null, 12,
|
|
3795
|
+
}, null, 12, or)) : x("", !0), n && B.value.bar.serieName.show ? (T(), S("text", {
|
|
3799
3796
|
key: 1,
|
|
3800
3797
|
x: V.value.useIndividualScale && V.value.isStacked ? n.x + xs.value.line / 2 : n.x + Ss() * 1.1,
|
|
3801
3798
|
y: n.y + (n.value > 0 ? B.value.bar.serieName.offsetY : -B.value.bar.serieName.offsetY * 3),
|
|
@@ -3807,8 +3804,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3807
3804
|
}, pt(B.value.bar.serieName.useAbbreviation ? k(ye)({
|
|
3808
3805
|
source: e.name,
|
|
3809
3806
|
length: B.value.bar.serieName.abbreviationSize
|
|
3810
|
-
}) : e.name), 13,
|
|
3811
|
-
B.value.plot.labels.show && V.value.dataLabels.show ? (T(), S("g",
|
|
3807
|
+
}) : e.name), 13, sr)) : x("", !0)], 64))), 128))], 64))), 128))])) : x("", !0),
|
|
3808
|
+
B.value.plot.labels.show && V.value.dataLabels.show ? (T(), S("g", cr, [(T(!0), S(y, null, D(Ac.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || pl(e, n, r) ? (T(), S("text", {
|
|
3812
3809
|
key: 0,
|
|
3813
3810
|
transform: ol({
|
|
3814
3811
|
plot: n,
|
|
@@ -3828,22 +3825,22 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3828
3825
|
plot: n,
|
|
3829
3826
|
type: "plot"
|
|
3830
3827
|
})
|
|
3831
|
-
}, null, 12,
|
|
3828
|
+
}, null, 12, lr)) : x("", !0)], 64))), 128))], 64))), 128))])) : (T(), S("g", ur, [(T(!0), S(y, null, D(Ac.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [B.value.plot.tag.followValue ? (T(), S(y, { key: 1 }, [[
|
|
3832
3829
|
I.value,
|
|
3833
3830
|
R.value,
|
|
3834
|
-
|
|
3831
|
+
ca.value
|
|
3835
3832
|
].includes(r) && e.useTag ? (T(), S("line", {
|
|
3836
3833
|
key: 0,
|
|
3837
3834
|
class: "vue-ui-xy-tag-plot",
|
|
3838
|
-
x1:
|
|
3839
|
-
x2:
|
|
3835
|
+
x1: Y.value?.left,
|
|
3836
|
+
x2: Y.value?.right,
|
|
3840
3837
|
y1: n.y,
|
|
3841
3838
|
y2: n.y,
|
|
3842
3839
|
"stroke-width": 1,
|
|
3843
3840
|
"stroke-linecap": "round",
|
|
3844
3841
|
"stroke-dasharray": "2",
|
|
3845
3842
|
stroke: e.color
|
|
3846
|
-
}, null, 8,
|
|
3843
|
+
}, null, 8, hr)) : x("", !0)], 64)) : (T(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (T(), S("foreignObject", {
|
|
3847
3844
|
key: 0,
|
|
3848
3845
|
x: n.x,
|
|
3849
3846
|
y: n.y - 20,
|
|
@@ -3857,7 +3854,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3857
3854
|
seriesIndex: r,
|
|
3858
3855
|
serieName: e.name
|
|
3859
3856
|
})
|
|
3860
|
-
}, null, 12,
|
|
3857
|
+
}, null, 12, fr)], 12, dr)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (T(), S("foreignObject", {
|
|
3861
3858
|
key: 1,
|
|
3862
3859
|
x: n.x - e.name.length * (z.value.plotLabels / 2),
|
|
3863
3860
|
y: n.y - 20,
|
|
@@ -3871,8 +3868,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3871
3868
|
seriesIndex: r,
|
|
3872
3869
|
serieName: e.name
|
|
3873
3870
|
})
|
|
3874
|
-
}, null, 12,
|
|
3875
|
-
B.value.line.labels.show && V.value.dataLabels.show ? (T(), S("g",
|
|
3871
|
+
}, null, 12, mr)], 12, pr)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
3872
|
+
B.value.line.labels.show && V.value.dataLabels.show ? (T(), S("g", gr, [(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || pl(e, n, r) ? (T(), S("text", {
|
|
3876
3873
|
key: 0,
|
|
3877
3874
|
transform: ol({
|
|
3878
3875
|
plot: n,
|
|
@@ -3892,22 +3889,22 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3892
3889
|
plot: n,
|
|
3893
3890
|
type: "line"
|
|
3894
3891
|
})
|
|
3895
|
-
}, null, 12,
|
|
3892
|
+
}, null, 12, _r)) : x("", !0)], 64))), 128))], 64))), 128))])) : (T(), S("g", vr, [(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [B.value.line.tag.followValue ? (T(), S(y, { key: 1 }, [[
|
|
3896
3893
|
I.value,
|
|
3897
3894
|
R.value,
|
|
3898
|
-
|
|
3895
|
+
ca.value
|
|
3899
3896
|
].includes(r) && e.useTag ? (T(), S("line", {
|
|
3900
3897
|
key: 0,
|
|
3901
3898
|
class: "vue-ui-xy-tag-line",
|
|
3902
|
-
x1:
|
|
3903
|
-
x2:
|
|
3899
|
+
x1: Y.value?.left,
|
|
3900
|
+
x2: Y.value?.right,
|
|
3904
3901
|
y1: n.y,
|
|
3905
3902
|
y2: n.y,
|
|
3906
3903
|
"stroke-width": 1,
|
|
3907
3904
|
"stroke-linecap": "round",
|
|
3908
3905
|
"stroke-dasharray": "2",
|
|
3909
3906
|
stroke: e.color
|
|
3910
|
-
}, null, 8,
|
|
3907
|
+
}, null, 8, Cr)) : x("", !0)], 64)) : (T(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (T(), S("foreignObject", {
|
|
3911
3908
|
key: 0,
|
|
3912
3909
|
x: n.x,
|
|
3913
3910
|
y: n.y - 20,
|
|
@@ -3921,7 +3918,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3921
3918
|
seriesIndex: r,
|
|
3922
3919
|
serieName: e.name
|
|
3923
3920
|
})
|
|
3924
|
-
}, null, 12,
|
|
3921
|
+
}, null, 12, br)], 12, yr)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (T(), S("foreignObject", {
|
|
3925
3922
|
key: 1,
|
|
3926
3923
|
x: n.x,
|
|
3927
3924
|
y: n.y - 20,
|
|
@@ -3935,8 +3932,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3935
3932
|
seriesIndex: r,
|
|
3936
3933
|
serieName: e.name
|
|
3937
3934
|
})
|
|
3938
|
-
}, null, 12,
|
|
3939
|
-
(T(!0), S(y, null, D(
|
|
3935
|
+
}, null, 12, Sr)], 12, xr)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
|
|
3936
|
+
(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `xLabel_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (T(), S("text", {
|
|
3940
3937
|
key: 0,
|
|
3941
3938
|
x: n.x - z.value.plotLabels,
|
|
3942
3939
|
y: n.y,
|
|
@@ -3952,7 +3949,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3952
3949
|
maxWords: 2
|
|
3953
3950
|
}),
|
|
3954
3951
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3955
|
-
}, null, 12,
|
|
3952
|
+
}, null, 12, wr)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (T(), S("text", {
|
|
3956
3953
|
key: 1,
|
|
3957
3954
|
x: n.x + z.value.plotLabels,
|
|
3958
3955
|
y: n.y,
|
|
@@ -3968,8 +3965,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3968
3965
|
maxWords: 2
|
|
3969
3966
|
}),
|
|
3970
3967
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3971
|
-
}, null, 12,
|
|
3972
|
-
(T(!0), S(y, null, D(
|
|
3968
|
+
}, null, 12, Tr)) : x("", !0)], 64))), 128))], 64))), 128)),
|
|
3969
|
+
(T(!0), S(y, null, D(Ac.value, (e, t) => (T(), S(y, { key: `xLabel_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (T(), S("text", {
|
|
3973
3970
|
key: 0,
|
|
3974
3971
|
x: n.x - z.value.plotLabels,
|
|
3975
3972
|
y: n.y,
|
|
@@ -3985,7 +3982,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
3985
3982
|
maxWords: 2
|
|
3986
3983
|
}),
|
|
3987
3984
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3988
|
-
}, null, 12,
|
|
3985
|
+
}, null, 12, Er)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (T(), S("text", {
|
|
3989
3986
|
key: 1,
|
|
3990
3987
|
x: n.x + z.value.plotLabels,
|
|
3991
3988
|
y: n.y,
|
|
@@ -4001,12 +3998,12 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4001
3998
|
maxWords: 2
|
|
4002
3999
|
}),
|
|
4003
4000
|
style: w(`opacity:${M.value ? M.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
4004
|
-
}, null, 12,
|
|
4001
|
+
}, null, 12, Dr)) : x("", !0)], 64))), 128))], 64))), 128)),
|
|
4005
4002
|
(T(!0), S(y, null, D([
|
|
4003
|
+
...Ac.value,
|
|
4006
4004
|
...$.value,
|
|
4007
|
-
...
|
|
4008
|
-
|
|
4009
|
-
], (e, t) => (T(), S(y, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(k(_e)(e.plots).trend) ? (T(), S("g", yr, [
|
|
4005
|
+
...kc.value
|
|
4006
|
+
], (e, t) => (T(), S(y, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(k(_e)(e.plots).trend) ? (T(), S("g", Or, [
|
|
4010
4007
|
C("defs", null, [C("marker", {
|
|
4011
4008
|
id: `progression_arrow_${t}`,
|
|
4012
4009
|
markerWidth: "9",
|
|
@@ -4023,7 +4020,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4023
4020
|
stroke: B.value.chart.backgroundColor,
|
|
4024
4021
|
"stroke-width": "1",
|
|
4025
4022
|
"stroke-linejoin": "round"
|
|
4026
|
-
}, null, 8,
|
|
4023
|
+
}, null, 8, Ar)], 8, kr)]),
|
|
4027
4024
|
e.plots.length > 1 ? (T(), S("line", {
|
|
4028
4025
|
key: 0,
|
|
4029
4026
|
x1: k(_e)(e.plots).x1 + (e.type === "bar" ? Ss() : 0),
|
|
@@ -4036,7 +4033,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4036
4033
|
"stroke-linecap": "round",
|
|
4037
4034
|
"stroke-linejoin": "round",
|
|
4038
4035
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4039
|
-
}, null, 8,
|
|
4036
|
+
}, null, 8, jr)) : x("", !0),
|
|
4040
4037
|
e.plots.length > 1 ? (T(), S("line", {
|
|
4041
4038
|
key: 1,
|
|
4042
4039
|
x1: k(_e)(e.plots).x1 + (e.type === "bar" ? Ss() : 0),
|
|
@@ -4049,7 +4046,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4049
4046
|
"stroke-linecap": "round",
|
|
4050
4047
|
"stroke-linejoin": "round",
|
|
4051
4048
|
"marker-end": `url(#progression_arrow_${t})`
|
|
4052
|
-
}, null, 8,
|
|
4049
|
+
}, null, 8, Mr)) : x("", !0),
|
|
4053
4050
|
e.plots.length > 1 ? (T(), S("text", {
|
|
4054
4051
|
key: 2,
|
|
4055
4052
|
"text-anchor": "middle",
|
|
@@ -4066,77 +4063,77 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4066
4063
|
v: k(_e)(e.plots).trend * 100,
|
|
4067
4064
|
s: "%",
|
|
4068
4065
|
r: 2
|
|
4069
|
-
})), 9,
|
|
4066
|
+
})), 9, Nr)) : x("", !0)
|
|
4070
4067
|
])) : x("", !0)], 64))), 128)),
|
|
4071
4068
|
V.value.useIndividualScale && !V.value.isStacked ? (T(), S(y, { key: 16 }, [C("defs", null, [(T(!0), S(y, null, D(jc.value, (e, t) => (T(), S("linearGradient", {
|
|
4072
4069
|
id: `individual_scale_gradient_${F.value}_${t}`,
|
|
4073
|
-
x1:
|
|
4074
|
-
x2:
|
|
4070
|
+
x1: J.value ? "100%" : "0%",
|
|
4071
|
+
x2: J.value ? "0%" : "100%",
|
|
4075
4072
|
y1: "0%",
|
|
4076
4073
|
y2: "0%"
|
|
4077
4074
|
}, [C("stop", {
|
|
4078
4075
|
offset: "0%",
|
|
4079
4076
|
"stop-color": B.value.chart.backgroundColor,
|
|
4080
4077
|
"stop-opacity": "0"
|
|
4081
|
-
}, null, 8,
|
|
4078
|
+
}, null, 8, Fr), C("stop", {
|
|
4082
4079
|
offset: "100%",
|
|
4083
4080
|
"stop-color": e.color,
|
|
4084
4081
|
"stop-opacity": "0.2"
|
|
4085
|
-
}, null, 8,
|
|
4086
|
-
x:
|
|
4087
|
-
y:
|
|
4088
|
-
width: (
|
|
4089
|
-
height:
|
|
4082
|
+
}, null, 8, Ir)], 8, Pr))), 256))]), (T(!0), S(y, null, D(jc.value, (e, t) => (T(), S("rect", {
|
|
4083
|
+
x: J.value ? e.x : e.x - B.value.chart.grid.labels.yAxis.labelWidth - Y.value.individualOffsetX,
|
|
4084
|
+
y: Y.value?.top,
|
|
4085
|
+
width: (J.value, B.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX),
|
|
4086
|
+
height: Y.value.height < 0 ? 10 : Y.value.height,
|
|
4090
4087
|
fill: M.value === e.groupId ? `url(#individual_scale_gradient_${F.value}_${t})` : "transparent",
|
|
4091
4088
|
onMouseenter: (t) => M.value = e.groupId,
|
|
4092
4089
|
onMouseleave: r[0] ||= (e) => M.value = null
|
|
4093
|
-
}, null, 40,
|
|
4090
|
+
}, null, 40, Lr))), 256))], 64)) : x("", !0),
|
|
4094
4091
|
C("g", null, [B.value.chart.grid.labels.axis.yLabel && !V.value.useIndividualScale ? (T(), S("text", {
|
|
4095
4092
|
key: 0,
|
|
4096
4093
|
ref_key: "yAxisLabel",
|
|
4097
|
-
ref:
|
|
4094
|
+
ref: qi,
|
|
4098
4095
|
"font-size": z.value.yAxis,
|
|
4099
4096
|
fill: B.value.chart.grid.labels.color,
|
|
4100
|
-
transform: `translate(${
|
|
4097
|
+
transform: `translate(${J.value ? Y.value.right + Y.value.scaleLabelsOffset + B.value.chart.grid.labels.axis.yLabelOffsetX + z.value.yAxis : B.value.chart.grid.labels.axis.fontSize + B.value.chart.grid.labels.axis.yLabelOffsetX}, ${Y.value?.top + Y.value.height / 2}) rotate(-90)`,
|
|
4101
4098
|
"text-anchor": "middle",
|
|
4102
4099
|
style: { transition: "none" }
|
|
4103
|
-
}, pt(B.value.chart.grid.labels.axis.yLabel), 9,
|
|
4100
|
+
}, pt(B.value.chart.grid.labels.axis.yLabel), 9, Rr)) : x("", !0), B.value.chart.grid.labels.axis.xLabel ? (T(), S("text", {
|
|
4104
4101
|
key: 1,
|
|
4105
4102
|
ref_key: "xAxisLabel",
|
|
4106
|
-
ref:
|
|
4103
|
+
ref: Ki,
|
|
4107
4104
|
"text-anchor": "middle",
|
|
4108
4105
|
x: N.value / 2,
|
|
4109
|
-
y:
|
|
4106
|
+
y: ta.value - 3,
|
|
4110
4107
|
"font-size": z.value.yAxis,
|
|
4111
4108
|
fill: B.value.chart.grid.labels.color
|
|
4112
|
-
}, pt(B.value.chart.grid.labels.axis.xLabel), 9,
|
|
4109
|
+
}, pt(B.value.chart.grid.labels.axis.xLabel), 9, zr)) : x("", !0)]),
|
|
4113
4110
|
B.value.chart.grid.labels.xAxisLabels.show ? (T(), S("g", {
|
|
4114
4111
|
key: 17,
|
|
4115
4112
|
ref_key: "timeLabelsEls",
|
|
4116
|
-
ref:
|
|
4113
|
+
ref: Ji,
|
|
4117
4114
|
opacity: ll.value ? .1 : 1,
|
|
4118
4115
|
style: { transition: "opacity 0.2s" }
|
|
4119
|
-
}, [n.$slots["time-label"] ? (T(!0), S(y, { key: 0 }, D(
|
|
4116
|
+
}, [n.$slots["time-label"] ? (T(!0), S(y, { key: 0 }, D(xc.value, (e, t) => O(n.$slots, "time-label", at({
|
|
4120
4117
|
key: `time_label_${e.id}`,
|
|
4121
4118
|
ref_for: !0
|
|
4122
4119
|
}, {
|
|
4123
|
-
x:
|
|
4124
|
-
y:
|
|
4120
|
+
x: Sc(e, t),
|
|
4121
|
+
y: Y.value?.bottom,
|
|
4125
4122
|
fontSize: z.value.xAxis,
|
|
4126
4123
|
fill: B.value.chart.grid.labels.xAxisLabels.color,
|
|
4127
|
-
transform: `translate(${
|
|
4124
|
+
transform: `translate(${Sc(e, t)}, ${Y.value?.bottom + z.value.xAxis * 1.3 + B.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4128
4125
|
absoluteIndex: e.absoluteIndex,
|
|
4129
4126
|
content: e.text,
|
|
4130
4127
|
textAnchor: B.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : B.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4131
4128
|
show: e && e.text
|
|
4132
|
-
}), void 0, !0)), 128)) : (T(!0), S(y, { key: 1 }, D(
|
|
4129
|
+
}), void 0, !0)), 128)) : (T(!0), S(y, { key: 1 }, D(xc.value, (e, n) => (T(), S("g", { key: `time_label_${n}` }, [e && e.text ? (T(), S(y, { key: 0 }, [String(e.text).includes("\n") ? (T(), S("text", {
|
|
4133
4130
|
key: 1,
|
|
4134
4131
|
class: "vue-data-ui-time-label",
|
|
4135
4132
|
"text-anchor": B.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : B.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4136
4133
|
"font-size": z.value.xAxis,
|
|
4137
4134
|
fill: B.value.chart.grid.labels.xAxisLabels.color,
|
|
4138
|
-
transform: `translate(${
|
|
4139
|
-
style: w({ cursor:
|
|
4135
|
+
transform: `translate(${Sc(e, n)}, ${Y.value?.bottom + z.value.xAxis * 1.5}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4136
|
+
style: w({ cursor: No() && Ha.value ? "pointer" : "default" }),
|
|
4140
4137
|
innerHTML: k(t)({
|
|
4141
4138
|
content: String(e.text),
|
|
4142
4139
|
fontSize: z.value.xAxis,
|
|
@@ -4144,23 +4141,23 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4144
4141
|
x: 0,
|
|
4145
4142
|
y: 0
|
|
4146
4143
|
}),
|
|
4147
|
-
onClick: () =>
|
|
4148
|
-
}, null, 12,
|
|
4144
|
+
onClick: () => Ko(e, n)
|
|
4145
|
+
}, null, 12, Hr)) : (T(), S("text", {
|
|
4149
4146
|
key: 0,
|
|
4150
4147
|
class: "vue-data-ui-time-label",
|
|
4151
4148
|
"text-anchor": B.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : B.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4152
4149
|
"font-size": z.value.xAxis,
|
|
4153
4150
|
fill: B.value.chart.grid.labels.xAxisLabels.color,
|
|
4154
|
-
transform: `translate(${
|
|
4155
|
-
style: w({ cursor:
|
|
4156
|
-
onClick: () =>
|
|
4157
|
-
}, pt(e.text || ""), 13,
|
|
4158
|
-
dl.value ? (T(), S("g",
|
|
4151
|
+
transform: `translate(${Sc(e, n)}, ${Y.value?.bottom + z.value.xAxis * 1.5}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4152
|
+
style: w({ cursor: No() && Ha.value ? "pointer" : "default" }),
|
|
4153
|
+
onClick: () => Ko(e, n)
|
|
4154
|
+
}, pt(e.text || ""), 13, Vr))], 64)) : x("", !0)]))), 128))], 8, Br)) : x("", !0),
|
|
4155
|
+
dl.value ? (T(), S("g", Ur, [C("text", {
|
|
4159
4156
|
class: "vue-data-ui-time-label",
|
|
4160
4157
|
"text-anchor": B.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : B.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
4161
4158
|
"font-size": z.value.xAxis,
|
|
4162
4159
|
fill: B.value.chart.grid.labels.xAxisLabels.color,
|
|
4163
|
-
transform: `translate(${dl.value.x}, ${
|
|
4160
|
+
transform: `translate(${dl.value.x}, ${Y.value?.bottom + z.value.xAxis * 1.5}), rotate(${B.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
4164
4161
|
"font-weight": "bold",
|
|
4165
4162
|
style: {
|
|
4166
4163
|
transition: "none !important",
|
|
@@ -4174,8 +4171,8 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4174
4171
|
x: 0,
|
|
4175
4172
|
y: 0
|
|
4176
4173
|
})
|
|
4177
|
-
}, null, 8,
|
|
4178
|
-
|
|
4174
|
+
}, null, 8, Wr)])) : x("", !0),
|
|
4175
|
+
_c.value.length && !V.value.isStacked ? (T(), S("g", Gr, [(T(!0), S(y, null, D(_c.value, (e) => (T(), S("g", { key: e.uid }, [
|
|
4179
4176
|
e.yTop && e.show && isFinite(e.yTop) ? (T(), S("line", {
|
|
4180
4177
|
key: 0,
|
|
4181
4178
|
x1: e.x1,
|
|
@@ -4187,7 +4184,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4187
4184
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
4188
4185
|
"stroke-linecap": "round",
|
|
4189
4186
|
style: { animation: "none !important" }
|
|
4190
|
-
}, null, 8,
|
|
4187
|
+
}, null, 8, Kr)) : x("", !0),
|
|
4191
4188
|
e.yBottom && e.show && isFinite(e.yBottom) ? (T(), S("line", {
|
|
4192
4189
|
key: 1,
|
|
4193
4190
|
x1: e.x1,
|
|
@@ -4199,16 +4196,16 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4199
4196
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
4200
4197
|
"stroke-linecap": "round",
|
|
4201
4198
|
style: { animation: "none !important" }
|
|
4202
|
-
}, null, 8,
|
|
4199
|
+
}, null, 8, qr)) : x("", !0),
|
|
4203
4200
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (T(), S("rect", {
|
|
4204
4201
|
key: 2,
|
|
4205
4202
|
y: Math.min(e.yTop, e.yBottom),
|
|
4206
4203
|
x: e.x1,
|
|
4207
|
-
width:
|
|
4204
|
+
width: Y.value.width,
|
|
4208
4205
|
height: k(v)(e.areaHeight, 0),
|
|
4209
4206
|
fill: k(f)(e.config.area.fill, e.config.area.opacity),
|
|
4210
4207
|
style: { animation: "none !important" }
|
|
4211
|
-
}, null, 8,
|
|
4208
|
+
}, null, 8, Jr)) : x("", !0),
|
|
4212
4209
|
e.config.label.text && e.show && isFinite(e._box.y) ? (T(), S("rect", at({
|
|
4213
4210
|
key: 3,
|
|
4214
4211
|
class: "vue-ui-xy-annotation-label-box"
|
|
@@ -4225,11 +4222,11 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4225
4222
|
"font-size": e.config.label.fontSize,
|
|
4226
4223
|
fill: e.config.label.color,
|
|
4227
4224
|
"text-anchor": e.config.label.textAnchor
|
|
4228
|
-
}, pt(e.config.label.text), 9,
|
|
4225
|
+
}, pt(e.config.label.text), 9, Yr)) : x("", !0)
|
|
4229
4226
|
]))), 128))])) : x("", !0),
|
|
4230
|
-
!ll.value && B.value.chart.timeTag.show && (
|
|
4227
|
+
!ll.value && B.value.chart.timeTag.show && (q.value ? k(g)(el.value) : ![null, void 0].includes(R.value) || ![null, void 0].includes(I.value)) ? (T(), S("g", Xr, [(T(), S("foreignObject", {
|
|
4231
4228
|
x: nl(),
|
|
4232
|
-
y:
|
|
4229
|
+
y: Y.value?.bottom,
|
|
4233
4230
|
width: "200",
|
|
4234
4231
|
height: "40",
|
|
4235
4232
|
style: { overflow: "visible !important" }
|
|
@@ -4239,58 +4236,58 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4239
4236
|
class: "vue-ui-xy-time-tag",
|
|
4240
4237
|
style: w(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${B.value.chart.timeTag.backgroundColor};color:${B.value.chart.timeTag.color};font-size:${B.value.chart.timeTag.fontSize}px`),
|
|
4241
4238
|
innerHTML: rl.value
|
|
4242
|
-
}, null, 12,
|
|
4243
|
-
cx:
|
|
4244
|
-
cy:
|
|
4239
|
+
}, null, 12, Qr)], 8, Zr)), C("circle", {
|
|
4240
|
+
cx: q.value && k(g)(el.value) ? Cc({ x: el.value }) : tc((R.value === null ? 0 : R.value) || (I.value === null ? 0 : I.value)),
|
|
4241
|
+
cy: Y.value?.bottom,
|
|
4245
4242
|
r: B.value.chart.timeTag.circleMarker.radius,
|
|
4246
4243
|
fill: B.value.chart.timeTag.circleMarker.color
|
|
4247
|
-
}, null, 8,
|
|
4244
|
+
}, null, 8, $r)])) : x("", !0)
|
|
4248
4245
|
])) : x("", !0),
|
|
4249
|
-
|
|
4246
|
+
Za.value ? (T(), S("rect", at({ key: 2 }, eo.value, {
|
|
4250
4247
|
"data-start": W.value.start,
|
|
4251
4248
|
"data-end": W.value.end
|
|
4252
|
-
}), null, 16,
|
|
4249
|
+
}), null, 16, ei)) : x("", !0),
|
|
4253
4250
|
O(n.$slots, "svg", { svg: {
|
|
4254
|
-
...
|
|
4251
|
+
...Pa.value,
|
|
4255
4252
|
slicer: W.value,
|
|
4256
|
-
isPrintingImg: k(
|
|
4257
|
-
isPrintingSvg:
|
|
4253
|
+
isPrintingImg: k(to) || k(no) || xa.value,
|
|
4254
|
+
isPrintingSvg: Sa.value,
|
|
4258
4255
|
data: [
|
|
4259
|
-
|
|
4260
|
-
...
|
|
4261
|
-
|
|
4256
|
+
...$.value,
|
|
4257
|
+
...kc.value,
|
|
4258
|
+
...Ac.value
|
|
4262
4259
|
],
|
|
4263
|
-
drawingArea:
|
|
4260
|
+
drawingArea: Y.value
|
|
4264
4261
|
} }, void 0, !0)
|
|
4265
|
-
], 512)], 46,
|
|
4262
|
+
], 512)], 46, Pt)), n.$slots.hint ? (T(), S("div", ti, [O(n.$slots, "hint", ct(it({
|
|
4266
4263
|
hint: B.value.a11y.translations.keyboardNavigation,
|
|
4267
4264
|
isVisible: El.value
|
|
4268
4265
|
})), void 0, !0)])) : x("", !0)]),
|
|
4269
|
-
n.$slots.watermark ? (T(), S("div",
|
|
4270
|
-
(T(!0), S(y, null, D(
|
|
4266
|
+
n.$slots.watermark ? (T(), S("div", ni, [O(n.$slots, "watermark", ct(it({ isPrinting: k(to) || k(no) || xa.value || Sa.value })), void 0, !0)])) : x("", !0),
|
|
4267
|
+
(T(!0), S(y, null, D($.value, (e, t) => (T(), S(y, { key: `tag_line_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `tag_line_${t}_${r}` }, [[
|
|
4271
4268
|
I.value,
|
|
4272
4269
|
R.value,
|
|
4273
|
-
|
|
4270
|
+
ca.value
|
|
4274
4271
|
].includes(r) && e.useTag && e.useTag === "end" && B.value.line.tag.followValue ? (T(), S("div", {
|
|
4275
4272
|
key: 0,
|
|
4276
4273
|
ref_for: !0,
|
|
4277
|
-
ref: (e) =>
|
|
4274
|
+
ref: (e) => Io(t, r, e, "right", "line"),
|
|
4278
4275
|
class: "vue-ui-xy-tag",
|
|
4279
4276
|
"data-tag": "right",
|
|
4280
4277
|
style: w({
|
|
4281
4278
|
position: "fixed",
|
|
4282
4279
|
top: k(ge)({
|
|
4283
4280
|
svgElement: L.value,
|
|
4284
|
-
x:
|
|
4281
|
+
x: Y.value?.right + B.value.line.tag.fontSize / 1.5,
|
|
4285
4282
|
y: n.y,
|
|
4286
|
-
element:
|
|
4283
|
+
element: _a.value[`${t}_${r}_right_line`],
|
|
4287
4284
|
position: "right"
|
|
4288
4285
|
})?.top + "px",
|
|
4289
4286
|
left: k(ge)({
|
|
4290
4287
|
svgElement: L.value,
|
|
4291
|
-
x:
|
|
4288
|
+
x: Y.value?.right + B.value.line.tag.fontSize / 1.5,
|
|
4292
4289
|
y: n.y,
|
|
4293
|
-
element:
|
|
4290
|
+
element: _a.value[`${t}_${r}_right_line`],
|
|
4294
4291
|
position: "right"
|
|
4295
4292
|
})?.left + "px",
|
|
4296
4293
|
height: "fit-content",
|
|
@@ -4301,41 +4298,41 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4301
4298
|
fontSize: B.value.line.tag.fontSize + "px",
|
|
4302
4299
|
opacity: 1
|
|
4303
4300
|
})
|
|
4304
|
-
}, [(T(), S("svg",
|
|
4301
|
+
}, [(T(), S("svg", ri, [C("path", {
|
|
4305
4302
|
d: "M 0,10 10,0 10,20 Z",
|
|
4306
4303
|
fill: e.color,
|
|
4307
4304
|
stroke: "none"
|
|
4308
|
-
}, null, 8,
|
|
4305
|
+
}, null, 8, ii)])), C("div", {
|
|
4309
4306
|
class: "vue-ui-xy-tag-content",
|
|
4310
4307
|
innerHTML: k(_)(B.value.line.tag.formatter, n.value, e.name, {
|
|
4311
4308
|
datapoint: n,
|
|
4312
4309
|
seriesIndex: r,
|
|
4313
4310
|
serieName: e.name
|
|
4314
4311
|
})
|
|
4315
|
-
}, null, 8,
|
|
4312
|
+
}, null, 8, ai)], 4)) : x("", !0), [
|
|
4316
4313
|
I.value,
|
|
4317
4314
|
R.value,
|
|
4318
|
-
|
|
4315
|
+
ca.value
|
|
4319
4316
|
].includes(r) && e.useTag && e.useTag === "start" && B.value.line.tag.followValue ? (T(), S("div", {
|
|
4320
4317
|
key: 1,
|
|
4321
4318
|
ref_for: !0,
|
|
4322
|
-
ref: (e) =>
|
|
4319
|
+
ref: (e) => Io(t, r, e, "left", "line"),
|
|
4323
4320
|
class: "vue-ui-xy-tag",
|
|
4324
4321
|
"data-tag": "left",
|
|
4325
4322
|
style: w({
|
|
4326
4323
|
position: "fixed",
|
|
4327
4324
|
top: k(ge)({
|
|
4328
4325
|
svgElement: L.value,
|
|
4329
|
-
x:
|
|
4326
|
+
x: Y.value?.left - B.value.line.tag.fontSize / 1.5,
|
|
4330
4327
|
y: n.y,
|
|
4331
|
-
element:
|
|
4328
|
+
element: _a.value[`${t}_${r}_left_line`],
|
|
4332
4329
|
position: "left"
|
|
4333
4330
|
})?.top + "px",
|
|
4334
4331
|
left: k(ge)({
|
|
4335
4332
|
svgElement: L.value,
|
|
4336
|
-
x:
|
|
4333
|
+
x: Y.value?.left - B.value.line.tag.fontSize / 1.5,
|
|
4337
4334
|
y: n.y,
|
|
4338
|
-
element:
|
|
4335
|
+
element: _a.value[`${t}_${r}_left_line`],
|
|
4339
4336
|
position: "left"
|
|
4340
4337
|
})?.left + "px",
|
|
4341
4338
|
height: "fit-content",
|
|
@@ -4346,42 +4343,42 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4346
4343
|
fontSize: B.value.line.tag.fontSize + "px",
|
|
4347
4344
|
opacity: 1
|
|
4348
4345
|
})
|
|
4349
|
-
}, [(T(), S("svg",
|
|
4346
|
+
}, [(T(), S("svg", oi, [C("path", {
|
|
4350
4347
|
d: "M 0,0 10,10 0,20 Z",
|
|
4351
4348
|
fill: e.color,
|
|
4352
4349
|
stroke: "none"
|
|
4353
|
-
}, null, 8,
|
|
4350
|
+
}, null, 8, si)])), C("div", {
|
|
4354
4351
|
class: "vue-ui-xy-tag-content",
|
|
4355
4352
|
innerHTML: k(_)(B.value.line.tag.formatter, n.value, e.name, {
|
|
4356
4353
|
datapoint: n,
|
|
4357
4354
|
seriesIndex: r,
|
|
4358
4355
|
serieName: e.name
|
|
4359
4356
|
})
|
|
4360
|
-
}, null, 8,
|
|
4361
|
-
(T(!0), S(y, null, D(
|
|
4357
|
+
}, null, 8, ci)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
|
|
4358
|
+
(T(!0), S(y, null, D(Ac.value, (e, t) => (T(), S(y, { key: `tag_plot_${e.id}` }, [(T(!0), S(y, null, D(e.plots, (n, r) => (T(), S(y, { key: `tag_plot_${t}_${r}` }, [[
|
|
4362
4359
|
I.value,
|
|
4363
4360
|
R.value,
|
|
4364
|
-
|
|
4361
|
+
ca.value
|
|
4365
4362
|
].includes(r) && e.useTag && e.useTag === "end" && B.value.plot.tag.followValue ? (T(), S("div", {
|
|
4366
4363
|
key: 0,
|
|
4367
4364
|
ref_for: !0,
|
|
4368
|
-
ref: (e) =>
|
|
4365
|
+
ref: (e) => Io(t, r, e, "right", "plot"),
|
|
4369
4366
|
class: "vue-ui-xy-tag",
|
|
4370
4367
|
"data-tag": "right",
|
|
4371
4368
|
style: w({
|
|
4372
4369
|
position: "fixed",
|
|
4373
4370
|
top: k(ge)({
|
|
4374
4371
|
svgElement: L.value,
|
|
4375
|
-
x:
|
|
4372
|
+
x: Y.value?.right + B.value.plot.tag.fontSize / 1.5,
|
|
4376
4373
|
y: n.y,
|
|
4377
|
-
element:
|
|
4374
|
+
element: _a.value[`${t}_${r}_right_plot`],
|
|
4378
4375
|
position: "right"
|
|
4379
4376
|
})?.top + "px",
|
|
4380
4377
|
left: k(ge)({
|
|
4381
4378
|
svgElement: L.value,
|
|
4382
|
-
x:
|
|
4379
|
+
x: Y.value?.right + B.value.plot.tag.fontSize / 1.5,
|
|
4383
4380
|
y: n.y,
|
|
4384
|
-
element:
|
|
4381
|
+
element: _a.value[`${t}_${r}_right_plot`],
|
|
4385
4382
|
position: "right"
|
|
4386
4383
|
})?.left + "px",
|
|
4387
4384
|
height: "fit-content",
|
|
@@ -4392,41 +4389,41 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4392
4389
|
fontSize: B.value.plot.tag.fontSize + "px",
|
|
4393
4390
|
opacity: 1
|
|
4394
4391
|
})
|
|
4395
|
-
}, [(T(), S("svg",
|
|
4392
|
+
}, [(T(), S("svg", li, [C("path", {
|
|
4396
4393
|
d: "M 0,10 10,0 10,20 Z",
|
|
4397
4394
|
fill: e.color,
|
|
4398
4395
|
stroke: "none"
|
|
4399
|
-
}, null, 8,
|
|
4396
|
+
}, null, 8, ui)])), C("div", {
|
|
4400
4397
|
class: "vue-ui-xy-tag-content",
|
|
4401
4398
|
innerHTML: k(_)(B.value.plot.tag.formatter, n.value, e.name, {
|
|
4402
4399
|
datapoint: n,
|
|
4403
4400
|
seriesIndex: r,
|
|
4404
4401
|
serieName: e.name
|
|
4405
4402
|
})
|
|
4406
|
-
}, null, 8,
|
|
4403
|
+
}, null, 8, di)], 4)) : x("", !0), [
|
|
4407
4404
|
I.value,
|
|
4408
4405
|
R.value,
|
|
4409
|
-
|
|
4406
|
+
ca.value
|
|
4410
4407
|
].includes(r) && e.useTag && e.useTag === "start" && B.value.plot.tag.followValue ? (T(), S("div", {
|
|
4411
4408
|
key: 1,
|
|
4412
4409
|
ref_for: !0,
|
|
4413
|
-
ref: (e) =>
|
|
4410
|
+
ref: (e) => Io(t, r, e, "left", "plot"),
|
|
4414
4411
|
class: "vue-ui-xy-tag",
|
|
4415
4412
|
"data-tag": "left",
|
|
4416
4413
|
style: w({
|
|
4417
4414
|
position: "fixed",
|
|
4418
4415
|
top: k(ge)({
|
|
4419
4416
|
svgElement: L.value,
|
|
4420
|
-
x:
|
|
4417
|
+
x: Y.value?.left - B.value.plot.tag.fontSize / 1.5,
|
|
4421
4418
|
y: n.y,
|
|
4422
|
-
element:
|
|
4419
|
+
element: _a.value[`${t}_${r}_left_plot`],
|
|
4423
4420
|
position: "left"
|
|
4424
4421
|
})?.top + "px",
|
|
4425
4422
|
left: k(ge)({
|
|
4426
4423
|
svgElement: L.value,
|
|
4427
|
-
x:
|
|
4424
|
+
x: Y.value?.left - B.value.plot.tag.fontSize / 1.5,
|
|
4428
4425
|
y: n.y,
|
|
4429
|
-
element:
|
|
4426
|
+
element: _a.value[`${t}_${r}_left_plot`],
|
|
4430
4427
|
position: "left"
|
|
4431
4428
|
})?.left + "px",
|
|
4432
4429
|
height: "fit-content",
|
|
@@ -4437,24 +4434,24 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4437
4434
|
fontSize: B.value.plot.tag.fontSize + "px",
|
|
4438
4435
|
opacity: 1
|
|
4439
4436
|
})
|
|
4440
|
-
}, [(T(), S("svg",
|
|
4437
|
+
}, [(T(), S("svg", fi, [C("path", {
|
|
4441
4438
|
d: "M 0,0 10,10 0,20 Z",
|
|
4442
4439
|
fill: e.color,
|
|
4443
4440
|
stroke: "none"
|
|
4444
|
-
}, null, 8,
|
|
4441
|
+
}, null, 8, pi)])), C("div", {
|
|
4445
4442
|
class: "vue-ui-xy-tag-content",
|
|
4446
4443
|
innerHTML: k(_)(B.value.plot.tag.formatter, n.value, e.name, {
|
|
4447
4444
|
datapoint: n,
|
|
4448
4445
|
seriesIndex: r,
|
|
4449
4446
|
serieName: e.name
|
|
4450
4447
|
})
|
|
4451
|
-
}, null, 8,
|
|
4452
|
-
B.value.chart.zoom.show && U.value > 6 &&
|
|
4448
|
+
}, null, 8, mi)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
|
|
4449
|
+
B.value.chart.zoom.show && U.value > 6 && Va.value && es.value ? (T(), Qe(qe, {
|
|
4453
4450
|
key: 6,
|
|
4454
4451
|
ref_key: "chartSlicer",
|
|
4455
|
-
ref:
|
|
4452
|
+
ref: Vi,
|
|
4456
4453
|
uuid: F.value,
|
|
4457
|
-
allMinimaps:
|
|
4454
|
+
allMinimaps: mc.value,
|
|
4458
4455
|
background: B.value.chart.zoom.color,
|
|
4459
4456
|
borderColor: B.value.chart.backgroundColor,
|
|
4460
4457
|
customFormat: B.value.chart.zoom.customFormat,
|
|
@@ -4468,14 +4465,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4468
4465
|
useResetSlot: B.value.chart.zoom.useResetSlot,
|
|
4469
4466
|
immediate: !B.value.chart.zoom.preview.enable,
|
|
4470
4467
|
inputColor: B.value.chart.zoom.color,
|
|
4471
|
-
isPreview:
|
|
4472
|
-
labelLeft:
|
|
4473
|
-
labelRight:
|
|
4474
|
-
max:
|
|
4475
|
-
min:
|
|
4476
|
-
precision:
|
|
4477
|
-
useValueRange:
|
|
4478
|
-
minimap:
|
|
4468
|
+
isPreview: Za.value,
|
|
4469
|
+
labelLeft: X.value[0] ? X.value[0].text : "",
|
|
4470
|
+
labelRight: X.value.at(-1) ? X.value.at(-1).text : "",
|
|
4471
|
+
max: Ec.value,
|
|
4472
|
+
min: Tc.value,
|
|
4473
|
+
precision: q.value ? B.value.chart.grid.labels.xAxis.rounding : 0,
|
|
4474
|
+
useValueRange: q.value,
|
|
4475
|
+
minimap: pc.value,
|
|
4479
4476
|
minimapCompact: B.value.chart.zoom.minimap.compact,
|
|
4480
4477
|
minimapFrameColor: B.value.chart.zoom.minimap.frameColor,
|
|
4481
4478
|
minimapIndicatorColor: B.value.chart.zoom.minimap.indicatorColor,
|
|
@@ -4483,17 +4480,17 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4483
4480
|
minimapMerged: B.value.chart.zoom.minimap.merged,
|
|
4484
4481
|
minimapSelectedColor: B.value.chart.zoom.minimap.selectedColor,
|
|
4485
4482
|
minimapSelectedColorOpacity: B.value.chart.zoom.minimap.selectedColorOpacity,
|
|
4486
|
-
minimapSelectedIndex:
|
|
4483
|
+
minimapSelectedIndex: q.value ? Ca.value : R.value ?? I.value,
|
|
4487
4484
|
minimapSelectionRadius: B.value.chart.zoom.minimap.selectionRadius,
|
|
4488
|
-
preciseLabels: Lc.value.length ? Lc.value :
|
|
4489
|
-
refreshStartPoint:
|
|
4490
|
-
refreshEndPoint:
|
|
4485
|
+
preciseLabels: Lc.value.length ? Lc.value : Bo.value,
|
|
4486
|
+
refreshStartPoint: q.value ? Tc.value : B.value.chart.zoom.startIndex === null ? 0 : B.value.chart.zoom.startIndex,
|
|
4487
|
+
refreshEndPoint: q.value ? Ec.value : B.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Xa(e.series).length)) : B.value.chart.zoom.endIndex + 1,
|
|
4491
4488
|
selectColor: B.value.chart.zoom.highlightColor,
|
|
4492
|
-
selectedSeries:
|
|
4489
|
+
selectedSeries: hc.value,
|
|
4493
4490
|
smoothMinimap: B.value.chart.zoom.minimap.smooth,
|
|
4494
4491
|
start: W.value.start,
|
|
4495
4492
|
textColor: B.value.chart.color,
|
|
4496
|
-
timeLabels:
|
|
4493
|
+
timeLabels: Bo.value,
|
|
4497
4494
|
usePreciseLabels: B.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !B.value.chart.zoom.useDefaultFormat,
|
|
4498
4495
|
valueEnd: W.value.end,
|
|
4499
4496
|
valueStart: W.value.start,
|
|
@@ -4508,30 +4505,30 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4508
4505
|
handleBorderColor: B.value.chart.zoom.minimap.handleBorderColor,
|
|
4509
4506
|
handleFill: B.value.chart.zoom.minimap.handleFill,
|
|
4510
4507
|
handleWidth: B.value.chart.zoom.minimap.handleWidth,
|
|
4511
|
-
isCursorPointer:
|
|
4512
|
-
onFutureEnd: r[1] ||= (e) =>
|
|
4513
|
-
onFutureStart: r[2] ||= (e) =>
|
|
4514
|
-
onReset:
|
|
4515
|
-
onTrapMouse:
|
|
4516
|
-
onTrapMouseValue:
|
|
4517
|
-
"onUpdate:end":
|
|
4518
|
-
"onUpdate:start":
|
|
4508
|
+
isCursorPointer: Ha.value,
|
|
4509
|
+
onFutureEnd: r[1] ||= (e) => Qa("end", e),
|
|
4510
|
+
onFutureStart: r[2] ||= (e) => Qa("start", e),
|
|
4511
|
+
onReset: ss,
|
|
4512
|
+
onTrapMouse: qo,
|
|
4513
|
+
onTrapMouseValue: Jo,
|
|
4514
|
+
"onUpdate:end": os,
|
|
4515
|
+
"onUpdate:start": as
|
|
4519
4516
|
}, {
|
|
4520
4517
|
"reset-action": A(({ reset: e }) => [O(n.$slots, "reset-action", ct(it({ reset: e })), void 0, !0)]),
|
|
4521
4518
|
_: 3
|
|
4522
4519
|
}, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : x("", !0),
|
|
4523
|
-
C("div", { id: `legend-bottom-${F.value}` }, null, 8,
|
|
4524
|
-
|
|
4520
|
+
C("div", { id: `legend-bottom-${F.value}` }, null, 8, hi),
|
|
4521
|
+
ya.value && (B.value.chart.legend.show || n.$slots.legend) ? (T(), Qe(Ze, {
|
|
4525
4522
|
key: 7,
|
|
4526
4523
|
to: B.value.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
4527
4524
|
}, [C("div", {
|
|
4528
4525
|
ref_key: "chartLegend",
|
|
4529
|
-
ref:
|
|
4530
|
-
}, [O(n.$slots, "legend", { legend:
|
|
4526
|
+
ref: Hi
|
|
4527
|
+
}, [O(n.$slots, "legend", { legend: yo.value }, () => [B.value.chart.legend.show ? (T(), S("div", {
|
|
4531
4528
|
key: 0,
|
|
4532
4529
|
class: "vue-ui-xy-legend",
|
|
4533
4530
|
style: w({ fontSize: `var(--legend-font-size, ${B.value.chart.legend.fontSize ?? 14}px)` })
|
|
4534
|
-
}, [B.value.chart.legend.selectAllToggle.show &&
|
|
4531
|
+
}, [B.value.chart.legend.selectAllToggle.show && yo.value.length > 2 && !k(qa) ? (T(), Qe(Ye, {
|
|
4535
4532
|
key: 0,
|
|
4536
4533
|
backgroundColor: B.value.chart.legend.selectAllToggle.backgroundColor,
|
|
4537
4534
|
color: B.value.chart.legend.selectAllToggle.color,
|
|
@@ -4543,19 +4540,19 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4543
4540
|
"color",
|
|
4544
4541
|
"fontSize",
|
|
4545
4542
|
"checked"
|
|
4546
|
-
])) : x("", !0), (T(!0), S(y, null, D(
|
|
4543
|
+
])) : x("", !0), (T(!0), S(y, null, D(yo.value, (e, t) => (T(), S("div", {
|
|
4547
4544
|
key: `div_legend_item_${t}`,
|
|
4548
4545
|
onClick: (t) => Hs(e),
|
|
4549
4546
|
onKeydown: (t) => Bs(t, e),
|
|
4550
4547
|
role: "button",
|
|
4551
4548
|
tabindex: "0",
|
|
4552
4549
|
class: st({
|
|
4553
|
-
"vue-ui-xy-legend-item-alone":
|
|
4550
|
+
"vue-ui-xy-legend-item-alone": yo.value.length === 1,
|
|
4554
4551
|
"vue-ui-xy-legend-item": !0,
|
|
4555
4552
|
"vue-ui-xy-legend-item-segregated": P.value.includes(e.id)
|
|
4556
4553
|
}),
|
|
4557
|
-
style: w({ cursor:
|
|
4558
|
-
}, [
|
|
4554
|
+
style: w({ cursor: Ha.value ? "pointer" : "default" })
|
|
4555
|
+
}, [ia.value[e.type] === "line" ? (T(), S("svg", _i, [C("rect", {
|
|
4559
4556
|
x: "0",
|
|
4560
4557
|
y: "7.5",
|
|
4561
4558
|
rx: "1.5",
|
|
@@ -4564,7 +4561,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4564
4561
|
height: "3",
|
|
4565
4562
|
width: "20",
|
|
4566
4563
|
fill: e.color
|
|
4567
|
-
}, null, 8,
|
|
4564
|
+
}, null, 8, vi), tt(Ge, {
|
|
4568
4565
|
plot: {
|
|
4569
4566
|
x: 10,
|
|
4570
4567
|
y: 9
|
|
@@ -4585,7 +4582,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4585
4582
|
"color",
|
|
4586
4583
|
"shape",
|
|
4587
4584
|
"stroke"
|
|
4588
|
-
])])) :
|
|
4585
|
+
])])) : ia.value[e.type] === "bar" ? (T(), S("svg", yi, [ia.value[e.type] === "bar" && n.$slots.pattern ? (T(), S("rect", {
|
|
4589
4586
|
key: 0,
|
|
4590
4587
|
x: "4",
|
|
4591
4588
|
y: "4",
|
|
@@ -4594,7 +4591,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4594
4591
|
width: "32",
|
|
4595
4592
|
stroke: "none",
|
|
4596
4593
|
fill: e.color
|
|
4597
|
-
}, null, 8,
|
|
4594
|
+
}, null, 8, bi)) : x("", !0), ia.value[e.type] === "bar" ? (T(), S("rect", {
|
|
4598
4595
|
key: 1,
|
|
4599
4596
|
x: "4",
|
|
4600
4597
|
y: "4",
|
|
@@ -4603,7 +4600,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4603
4600
|
width: "32",
|
|
4604
4601
|
stroke: "none",
|
|
4605
4602
|
fill: n.$slots.pattern ? `url(#pattern_${F.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4606
|
-
}, null, 8,
|
|
4603
|
+
}, null, 8, xi)) : x("", !0)])) : (T(), S("svg", Si, [tt(Ge, {
|
|
4607
4604
|
plot: {
|
|
4608
4605
|
x: 6,
|
|
4609
4606
|
y: 6
|
|
@@ -4618,16 +4615,16 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4618
4615
|
"hexagon",
|
|
4619
4616
|
"star"
|
|
4620
4617
|
].includes(e.shape) ? e.shape : "circle"
|
|
4621
|
-
}, null, 8, ["color", "shape"])])), C("span", { style: w(`color:${B.value.chart.legend.color}`) }, pt(e.name), 5)], 46,
|
|
4618
|
+
}, null, 8, ["color", "shape"])])), C("span", { style: w(`color:${B.value.chart.legend.color}`) }, pt(e.name), 5)], 46, gi))), 128))], 4)) : x("", !0)], !0)], 512)], 8, ["to"])) : x("", !0),
|
|
4622
4619
|
n.$slots.source ? (T(), S("div", {
|
|
4623
4620
|
key: 8,
|
|
4624
4621
|
ref_key: "source",
|
|
4625
|
-
ref:
|
|
4622
|
+
ref: Ui,
|
|
4626
4623
|
dir: "auto"
|
|
4627
4624
|
}, [O(n.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
|
|
4628
|
-
tt(k(
|
|
4625
|
+
tt(k(Ei), {
|
|
4629
4626
|
teleportTo: B.value.chart.tooltip.teleportTo,
|
|
4630
|
-
show: V.value.showTooltip &&
|
|
4627
|
+
show: V.value.showTooltip && sa.value,
|
|
4631
4628
|
backgroundColor: B.value.chart.tooltip.backgroundColor,
|
|
4632
4629
|
color: B.value.chart.tooltip.color,
|
|
4633
4630
|
fontSize: B.value.chart.tooltip.fontSize,
|
|
@@ -4640,14 +4637,14 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4640
4637
|
offsetY: B.value.chart.tooltip.offsetY,
|
|
4641
4638
|
parent: n.$refs.chart,
|
|
4642
4639
|
content: Rc.value,
|
|
4643
|
-
isFullscreen:
|
|
4640
|
+
isFullscreen: oa.value,
|
|
4644
4641
|
isCustom: B.value.chart.tooltip.customFormat && typeof B.value.chart.tooltip.customFormat == "function",
|
|
4645
4642
|
smooth: B.value.chart.tooltip.smooth,
|
|
4646
4643
|
backdropFilter: B.value.chart.tooltip.backdropFilter,
|
|
4647
4644
|
smoothForce: B.value.chart.tooltip.smoothForce,
|
|
4648
4645
|
smoothSnapThreshold: B.value.chart.tooltip.smoothSnapThreshold,
|
|
4649
|
-
isA11yMode:
|
|
4650
|
-
a11yPosition:
|
|
4646
|
+
isA11yMode: wa.value != null,
|
|
4647
|
+
a11yPosition: Ta.value
|
|
4651
4648
|
}, {
|
|
4652
4649
|
"tooltip-before": A(() => [O(n.$slots, "tooltip-before", ct(it({ ...Nc.value })), void 0, !0)]),
|
|
4653
4650
|
tooltip: A(() => [O(n.$slots, "tooltip", ct(it({ ...Nc.value })), void 0, !0)]),
|
|
@@ -4677,27 +4674,27 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4677
4674
|
"isA11yMode",
|
|
4678
4675
|
"a11yPosition"
|
|
4679
4676
|
]),
|
|
4680
|
-
|
|
4677
|
+
Va.value && B.value.chart.userOptions.buttons.table ? (T(), Qe(dt(gl.value.component), at({ key: 9 }, gl.value.props, {
|
|
4681
4678
|
ref_key: "tableUnit",
|
|
4682
|
-
ref:
|
|
4679
|
+
ref: ba,
|
|
4683
4680
|
onClose: _l
|
|
4684
4681
|
}), $e({
|
|
4685
|
-
content: A(() => [C("div", { style: w(`${k(
|
|
4682
|
+
content: A(() => [C("div", { style: w(`${k(to) || B.value.table.useDialog ? "" : "max-height:400px"};${B.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${B.value.table.useDialog ? "" : "margin-top:48px"}`) }, [C("div", Ci, [yt(C("input", {
|
|
4686
4683
|
type: "checkbox",
|
|
4687
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
4688
|
-
}, null, 512), [[gt,
|
|
4689
|
-
onClick: r[5] ||= (e) =>
|
|
4690
|
-
style: w({ cursor:
|
|
4691
|
-
}, [tt(k(
|
|
4684
|
+
"onUpdate:modelValue": r[4] ||= (e) => fa.value = e
|
|
4685
|
+
}, null, 512), [[gt, fa.value]]), C("div", {
|
|
4686
|
+
onClick: r[5] ||= (e) => fa.value = !fa.value,
|
|
4687
|
+
style: w({ cursor: Ha.value ? "pointer" : "default" })
|
|
4688
|
+
}, [tt(k(Oi), {
|
|
4692
4689
|
name: "chartLine",
|
|
4693
4690
|
size: 20,
|
|
4694
4691
|
stroke: B.value.chart.color
|
|
4695
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
4696
|
-
key: `sparkline_${
|
|
4692
|
+
}, null, 8, ["stroke"])], 4)]), fa.value ? (T(), Qe(k(ki), {
|
|
4693
|
+
key: `sparkline_${pa.value}`,
|
|
4697
4694
|
dataset: Zs.value,
|
|
4698
4695
|
config: Qs.value
|
|
4699
|
-
}, null, 8, ["dataset", "config"])) : (T(), Qe(k(
|
|
4700
|
-
key: `table_${
|
|
4696
|
+
}, null, 8, ["dataset", "config"])) : (T(), Qe(k(Ti), {
|
|
4697
|
+
key: `table_${ua.value}`,
|
|
4701
4698
|
colNames: Bc.value.colNames,
|
|
4702
4699
|
head: Bc.value.head,
|
|
4703
4700
|
body: Bc.value.body,
|
|
@@ -4706,7 +4703,7 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4706
4703
|
withCloseButton: !B.value.table.useDialog,
|
|
4707
4704
|
onClose: _l
|
|
4708
4705
|
}, {
|
|
4709
|
-
th: A(({ th: e }) => [C("div", { innerHTML: e }, null, 8,
|
|
4706
|
+
th: A(({ th: e }) => [C("div", { innerHTML: e }, null, 8, wi)]),
|
|
4710
4707
|
td: A(({ td: e }) => [et(pt(isNaN(Number(e)) ? e : k(s)({
|
|
4711
4708
|
p: B.value.chart.labels.prefix,
|
|
4712
4709
|
v: e,
|
|
@@ -4733,15 +4730,15 @@ var bt = /* @__PURE__ */ e({ default: () => j }), xt = ["id"], St = ["id"], Ct =
|
|
|
4733
4730
|
tabindex: "0",
|
|
4734
4731
|
class: "vue-ui-user-options-button",
|
|
4735
4732
|
onClick: r[3] ||= (e) => Vc(B.value.chart.userOptions.callbacks.csv)
|
|
4736
|
-
}, [tt(k(
|
|
4733
|
+
}, [tt(k(Oi), {
|
|
4737
4734
|
name: "fileCsv",
|
|
4738
4735
|
stroke: gl.value.props.color
|
|
4739
4736
|
}, null, 8, ["stroke"])])]),
|
|
4740
4737
|
key: "1"
|
|
4741
4738
|
} : void 0]), 1040)) : x("", !0),
|
|
4742
|
-
O(n.$slots, "skeleton", {}, () => [k(
|
|
4743
|
-
], 46,
|
|
4739
|
+
O(n.$slots, "skeleton", {}, () => [k(qa) ? (T(), Qe(Ie, { key: 0 })) : x("", !0)], !0)
|
|
4740
|
+
], 46, At));
|
|
4744
4741
|
}
|
|
4745
|
-
}, [["__scopeId", "data-v-
|
|
4742
|
+
}, [["__scopeId", "data-v-8d74b3ca"]]);
|
|
4746
4743
|
//#endregion
|
|
4747
|
-
export {
|
|
4744
|
+
export { kt as n, j as t };
|