vue-data-ui 3.1.5 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -37
- package/dist/{Arrow-BFbcF5Sq.js → Arrow-BZ8rnWYn.js} +1 -1
- package/dist/{BaseDraggableDialog-BO4B1Kwa.js → BaseDraggableDialog-Bdva4JFr.js} +2 -2
- package/dist/{BaseIcon-BQQGRQ2U.js → BaseIcon-BCS8aIf4.js} +1 -1
- package/dist/{ColorPicker-d1kmGapq.js → ColorPicker-DF6PDOhr.js} +2 -2
- package/dist/{DataTable-D6voeZvO.js → DataTable-Ddu14t59.js} +2 -2
- package/dist/{Legend-nPGcCxG_.js → Legend-C3I0iaLM.js} +2 -2
- package/dist/{NonSvgPenAndPaper-xRGRe41H.js → NonSvgPenAndPaper-LSG0MLRC.js} +3 -3
- package/dist/{PackageVersion-BeStrsPr.js → PackageVersion-CtYY8jBZ.js} +1 -1
- package/dist/{PenAndPaper-C6tiapdo.js → PenAndPaper-DtlEAsLw.js} +3 -3
- package/dist/{Shape-DBVq0fdK.js → Shape-B8Cdu8s1.js} +1 -1
- package/dist/{Slicer-Duqm7KZK.js → Slicer-Bk01kWGC.js} +66 -67
- package/dist/{SparkTooltip-wNGmXZSx.js → SparkTooltip-qMi3IzXb.js} +1 -1
- package/dist/{Title-ydtId0LC.js → Title-BUVvr0U8.js} +1 -1
- package/dist/{Tooltip-oeu9knGI.js → Tooltip-VlJQQsYu.js} +1 -1
- package/dist/{UserOptions-CnJxN2Vo.js → UserOptions-sSygisu3.js} +2 -2
- package/dist/{dom-to-png-CMCYtLrX.js → dom-to-png-BqX4MBZN.js} +1 -1
- package/dist/{img-Neec0VVb.js → img-DN0--Lx6.js} +1 -1
- package/dist/{index-BkfuZCRT.js → index-BlRUhv0O.js} +1 -1
- package/dist/{pdf-CpQ-dqJh.js → pdf-Cm5HZB7J.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DR2HExYc.js → useAutoSizeLabelsInsideViewbox-wLT3gJAJ.js} +1 -1
- package/dist/{useNestedProp-BMzw9VUz.js → useNestedProp-OxTlfHdh.js} +1 -1
- package/dist/{usePrinter-CEdg3j8S.js → usePrinter-DR__HfSR.js} +2 -2
- package/dist/{vue-data-ui-D5B7a84o.js → vue-data-ui-Ci8pH3va.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C8_Qu1rf.js → vue-ui-3d-bar-h-8AQQKD.js} +8 -8
- package/dist/{vue-ui-accordion-DFxAHGEZ.js → vue-ui-accordion-DejV6zJ2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D_kTImtX.js → vue-ui-age-pyramid-yTcDoeqi.js} +8 -8
- package/dist/{vue-ui-annotator-B1vSlzfu.js → vue-ui-annotator-HqsIz-FI.js} +2 -2
- package/dist/{vue-ui-bullet-VPchh2r2.js → vue-ui-bullet-Co4ZttnE.js} +7 -7
- package/dist/{vue-ui-candlestick-CB3bj7_-.js → vue-ui-candlestick-BQQR9K33.js} +58 -58
- package/dist/{vue-ui-carousel-table-CUiSyrTY.js → vue-ui-carousel-table-BzDik-6R.js} +4 -4
- package/dist/{vue-ui-chestnut-BE5ZEt1N.js → vue-ui-chestnut-5VG75w-T.js} +37 -37
- package/dist/{vue-ui-chord-DVSBY9ou.js → vue-ui-chord-5HE-ZTDA.js} +11 -11
- package/dist/{vue-ui-circle-pack-BfDjZFaF.js → vue-ui-circle-pack-BVcr-3fG.js} +232 -228
- package/dist/{vue-ui-cursor-BIuc6nds.js → vue-ui-cursor-BDH4YPCA.js} +2 -2
- package/dist/{vue-ui-dashboard-C7xIcrvD.js → vue-ui-dashboard-VtafJ36J.js} +67 -67
- package/dist/{vue-ui-digits-C3mI-0Fg.js → vue-ui-digits-Bh5fmCge.js} +2 -2
- package/dist/{vue-ui-donut-BApz1ho5.js → vue-ui-donut-PiILi3WQ.js} +10 -10
- package/dist/{vue-ui-donut-evolution-B2PJiYY9.js → vue-ui-donut-evolution-DVp2UID9.js} +38 -38
- package/dist/{vue-ui-dumbbell-DQjVvBH_.js → vue-ui-dumbbell-DIX_gcC_.js} +84 -84
- package/dist/{vue-ui-flow-COtJRNLE.js → vue-ui-flow-DY64szfV.js} +55 -55
- package/dist/{vue-ui-funnel-BY2qeg-m.js → vue-ui-funnel-DnQFZe9P.js} +31 -31
- package/dist/{vue-ui-galaxy-3zec_QLi.js → vue-ui-galaxy-C0TCFGXT.js} +31 -31
- package/dist/{vue-ui-gauge-CFUA5ORH.js → vue-ui-gauge-BNIAJlUC.js} +7 -7
- package/dist/{vue-ui-gizmo-CUPFU8GE.js → vue-ui-gizmo-BnHruhLB.js} +3 -3
- package/dist/{vue-ui-heatmap-DakytdCv.js → vue-ui-heatmap-CH_twICb.js} +10 -10
- package/dist/{vue-ui-history-plot-DnSB7au4.js → vue-ui-history-plot-CtJrkyG8.js} +88 -88
- package/dist/{vue-ui-kpi-UmcKQftv.js → vue-ui-kpi-Co0app61.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bl8GHasa.js → vue-ui-mini-loader-DXrdP_7p.js} +2 -2
- package/dist/{vue-ui-molecule-BZrmSVps.js → vue-ui-molecule-C2cNArDQ.js} +8 -8
- package/dist/{vue-ui-mood-radar-CVM8vl5N.js → vue-ui-mood-radar-BrLLsYz5.js} +9 -9
- package/dist/{vue-ui-nested-donuts-LTzijeVK.js → vue-ui-nested-donuts-DRysa4v_.js} +42 -42
- package/dist/{vue-ui-onion-aHCc3r7L.js → vue-ui-onion-znQ-OGaR.js} +12 -11
- package/dist/{vue-ui-parallel-coordinate-plot-0xXe6A-6.js → vue-ui-parallel-coordinate-plot-DIX2Hytk.js} +10 -10
- package/dist/{vue-ui-quadrant-BlM9WNN7.js → vue-ui-quadrant-B4X5ePQQ.js} +10 -10
- package/dist/{vue-ui-quick-chart-CJ2Wdln9.js → vue-ui-quick-chart-Cm7iAsdB.js} +6 -6
- package/dist/{vue-ui-radar-Cgnooz7-.js → vue-ui-radar-CMXnDLdC.js} +10 -10
- package/dist/{vue-ui-rating-DF71ymNG.js → vue-ui-rating-wAMAKVA8.js} +2 -2
- package/dist/{vue-ui-relation-circle-DsuEL1gY.js → vue-ui-relation-circle-snHKlhA3.js} +7 -7
- package/dist/{vue-ui-ridgeline-DxP8uxgx.js → vue-ui-ridgeline-Bx7_nnJ7.js} +10 -10
- package/dist/{vue-ui-rings-C4hKgrft.js → vue-ui-rings-BGTPLeaD.js} +10 -10
- package/dist/{vue-ui-scatter-B_SzTSE5.js → vue-ui-scatter-D-rI3hK1.js} +10 -10
- package/dist/{vue-ui-skeleton-DCAlHSMV.js → vue-ui-skeleton-B-6lN9xS.js} +3 -3
- package/dist/{vue-ui-smiley-B_JFtrl6.js → vue-ui-smiley-DeLEE9m9.js} +2 -2
- package/dist/{vue-ui-spark-trend-CC7q1UbE.js → vue-ui-spark-trend-BvrboxYt.js} +3 -3
- package/dist/{vue-ui-sparkbar-C2YRX4mJ.js → vue-ui-sparkbar-nW5DeWC5.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BO4c3j-8.js → vue-ui-sparkgauge-Isge2K7-.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BuGOHT9h.js → vue-ui-sparkhistogram-ChSw4gHY.js} +4 -4
- package/dist/{vue-ui-sparkline-hOyPCIt8.js → vue-ui-sparkline-DH-VRt5o.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DhSc-U8u.js → vue-ui-sparkstackbar-l45aaRR1.js} +3 -3
- package/dist/{vue-ui-stackbar-VdBWv1wm.js → vue-ui-stackbar-ByVq83Og.js} +11 -11
- package/dist/{vue-ui-strip-plot-CBj5ntWM.js → vue-ui-strip-plot-CwooqV7G.js} +9 -9
- package/dist/{vue-ui-table-BItmKbvF.js → vue-ui-table-BRPcCRq-.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DziHVKba.js → vue-ui-table-heatmap-CaAadUo0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CpWDqm7q.js → vue-ui-table-sparkline-Bt7VtPKK.js} +4 -4
- package/dist/{vue-ui-thermometer-CWt0q_Tu.js → vue-ui-thermometer-B-CWjknr.js} +7 -7
- package/dist/{vue-ui-timer-BIv2sfQA.js → vue-ui-timer-CxLcOKNv.js} +5 -5
- package/dist/{vue-ui-tiremarks-BE_VWjK-.js → vue-ui-tiremarks-DYEZvwDv.js} +6 -6
- package/dist/{vue-ui-treemap-2AIbDpTo.js → vue-ui-treemap-CeuebtPa.js} +10 -10
- package/dist/{vue-ui-vertical-bar-CP-XFVV5.js → vue-ui-vertical-bar-D8_txlgd.js} +50 -50
- package/dist/{vue-ui-waffle-CewP8k-W.js → vue-ui-waffle-B5Qe5PKA.js} +32 -32
- package/dist/{vue-ui-wheel-Ik8FoLfz.js → vue-ui-wheel-CxpLOCGw.js} +6 -6
- package/dist/{vue-ui-word-cloud-CEEc5ep_.js → vue-ui-word-cloud-DCoL3uD5.js} +38 -38
- package/dist/{vue-ui-world-CuwXMI3D.js → vue-ui-world-DmnwTNAv.js} +8 -8
- package/dist/{vue-ui-xy-Bsh2OBHp.js → vue-ui-xy-CzdchisK.js} +1090 -1075
- package/dist/{vue-ui-xy-canvas-CKzjhhNg.js → vue-ui-xy-canvas-CJp0mlzr.js} +12 -12
- package/package.json +4 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as Dl, V as Xl, U as Yl, y as Wl, X as Wo, F as
|
|
1
|
+
import { useCssVars as Fo, computed as x, ref as g, onMounted as il, onBeforeUnmount as Xt, watch as it, nextTick as Yt, onUpdated as Po, createElementBlock as r, openBlock as s, createElementVNode as y, createCommentVNode as f, renderSlot as K, normalizeStyle as _, createVNode as Wt, withDirectives as ia, unref as v, Fragment as b, renderList as C, normalizeClass as Xe, withKeys as Ya, vModelText as Ga, toDisplayString as ne, defineAsyncComponent as Ct, useSlots as Oo, getCurrentInstance as Bo, toRefs as Ho, watchEffect as Ua, createBlock as Je, createSlots as qa, withCtx as be, normalizeProps as At, guardReactiveProps as zt, mergeProps as Vt, Teleport as Vo, resolveDynamicComponent as Eo, vModelCheckbox as Do, createTextVNode as Za } from "vue";
|
|
2
|
+
import { c as Dl, V as Xl, U as Yl, y as Wl, X as Wo, F as ut, u as Xo, f as oa, t as Yo, d as Go, D as Ml, ac as Et, e as Uo, p as qo, ad as Hl, a9 as Z, a4 as na, ae as Zo, h as W, af as Ka, ag as Ja, ah as Ko, ai as Qa, aj as ja, k as Le, ak as Jo, z as Qo, _ as eo, R as dt, i as Qe, x as Dt, s as nt, a7 as le, L as jo, al as Vl, I as en, am as Tt, C as We, a as tn, b as ln, o as to, v as an, w as on, E as ul } from "./index-BlRUhv0O.js";
|
|
3
3
|
import { t as sa, u as nn } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as un } from "./usePrinter-
|
|
4
|
+
import { u as un } from "./usePrinter-DR__HfSR.js";
|
|
5
5
|
import { u as sn, B as rn } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as lo, a as cn, l as vn } from "./useTimeLabels-BGFjWgrv.js";
|
|
7
|
-
import { u as ua } from "./useNestedProp-
|
|
7
|
+
import { u as ua } from "./useNestedProp-OxTlfHdh.js";
|
|
8
8
|
import { u as dn } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
-
import hn from "./img-
|
|
10
|
-
import fn from "./Title-
|
|
11
|
-
import { S as mn } from "./Slicer-
|
|
12
|
-
import { _ as El } from "./Shape-
|
|
13
|
-
import gn from "./BaseIcon-
|
|
9
|
+
import hn from "./img-DN0--Lx6.js";
|
|
10
|
+
import fn from "./Title-BUVvr0U8.js";
|
|
11
|
+
import { S as mn } from "./Slicer-Bk01kWGC.js";
|
|
12
|
+
import { _ as El } from "./Shape-B8Cdu8s1.js";
|
|
13
|
+
import gn from "./BaseIcon-BCS8aIf4.js";
|
|
14
14
|
import { _ as ao } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import bn from "./vue-ui-accordion-
|
|
15
|
+
import bn from "./vue-ui-accordion-DejV6zJ2.js";
|
|
16
16
|
const xn = {
|
|
17
17
|
class: "vue-data-ui-slicer-labels",
|
|
18
18
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
@@ -23,7 +23,7 @@ const xn = {
|
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "minimap",
|
|
25
25
|
style: { width: "100%" }
|
|
26
|
-
}, kn = ["xmlns", "viewBox"], wn = ["id"], Sn = ["stop-color"], _n = ["d", "stroke"], $n = ["x", "width", "height", "fill", "rx"], Ln = ["d", "fill"], Mn = ["x", "width", "height", "rx", "fill"], Cn = ["x", "width", "height", "fill", "rx"], An = ["d", "fill"], zn = ["d", "stroke"], Tn = ["cx", "cy", "stroke", "fill"], In = ["cx", "cy", "stroke", "fill"], Nn = ["x1", "x2", "y2", "stroke"], Rn = ["x", "height", "width", "onMouseenter"],
|
|
26
|
+
}, kn = ["xmlns", "viewBox"], wn = ["id"], Sn = ["stop-color"], _n = ["d", "stroke"], $n = ["x", "width", "height", "fill", "rx"], Ln = ["d", "fill"], Mn = ["x", "width", "height", "rx", "fill"], Cn = ["x", "width", "height", "fill", "rx"], An = ["d", "fill"], zn = ["d", "stroke"], Tn = ["cx", "cy", "stroke", "fill"], In = ["cx", "cy", "stroke", "fill"], Nn = ["x1", "x2", "y2", "stroke"], Rn = ["x", "height", "width", "onMouseenter"], Fn = ["min", "max"], Pn = ["min", "max"], On = 48, Bn = {
|
|
27
27
|
__name: "SlicerPreview",
|
|
28
28
|
props: {
|
|
29
29
|
background: {
|
|
@@ -156,235 +156,243 @@ const xn = {
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
158
158
|
setup(N, { expose: Gl, emit: Ul }) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
159
|
+
Fo((m) => ({
|
|
160
|
+
fd69940c: It.value,
|
|
161
|
+
"1940be6e": Ge.value,
|
|
162
|
+
"540b7d42": ql.value,
|
|
163
|
+
"0d1400c4": N.selectColor,
|
|
164
|
+
"40456b2c": Nt.value
|
|
165
165
|
}));
|
|
166
|
-
const d = N, Ye = g(null), ve = g(d.min), de = g(d.max), kt =
|
|
166
|
+
const d = N, Ye = g(null), ve = g(d.min), de = g(d.max), kt = x(() => !!d.minimap.length), sl = g(Dl()), Gt = g(!1), rl = g(0), Ut = x({
|
|
167
167
|
get() {
|
|
168
168
|
return ve.value;
|
|
169
169
|
},
|
|
170
170
|
set(m) {
|
|
171
171
|
const h = Math.min(m, de.value - 1);
|
|
172
|
-
ve.value = h, ue.value && (ue.value.value = String(h)),
|
|
172
|
+
ve.value = h, ue.value && (ue.value.value = String(h)), xe("futureStart", h);
|
|
173
173
|
}
|
|
174
|
-
}),
|
|
174
|
+
}), wt = x({
|
|
175
175
|
get() {
|
|
176
176
|
return de.value;
|
|
177
177
|
},
|
|
178
178
|
set(m) {
|
|
179
179
|
const h = Math.max(m, ve.value + 1);
|
|
180
|
-
de.value = h,
|
|
180
|
+
de.value = h, Y.value && (Y.value.value = String(h)), xe("futureEnd", h);
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
|
-
|
|
183
|
+
il(() => {
|
|
184
184
|
const m = () => {
|
|
185
|
-
Ye.value && (
|
|
185
|
+
Ye.value && (rl.value = Ye.value.getBoundingClientRect().width);
|
|
186
186
|
};
|
|
187
187
|
m();
|
|
188
188
|
const h = sa(m, 50);
|
|
189
|
-
window.addEventListener("resize", h),
|
|
189
|
+
window.addEventListener("resize", h), Xt(() => {
|
|
190
190
|
window.removeEventListener("resize", h);
|
|
191
191
|
});
|
|
192
192
|
});
|
|
193
|
-
let
|
|
193
|
+
let cl = null;
|
|
194
194
|
function je() {
|
|
195
|
-
clearTimeout(
|
|
195
|
+
clearTimeout(cl), xe("update:start", Number(ve.value)), xe("update:end", Number(de.value)), Gt.value = !1;
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
const m = d.max - d.min, h = (ve.value - d.min) / m * 100,
|
|
197
|
+
const vl = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), xe = Ul, pe = x(() => {
|
|
198
|
+
const m = d.max - d.min, h = (ve.value - d.min) / m * 100, S = (de.value - d.min) / m * 100, X = (h + S) / 2, ce = st.value ? `calc(${X}% - ${vt.value.width}px)` : He.value ? `calc(${X}%)` : `calc(${X}% - ${vt.value.width / 2}px)`;
|
|
199
199
|
return {
|
|
200
200
|
left: `${h}%`,
|
|
201
|
-
width: `${
|
|
201
|
+
width: `${S - h}%`,
|
|
202
202
|
background: d.selectColor,
|
|
203
|
-
tooltipLeft: `calc(${h}% - ${
|
|
204
|
-
tooltipRight: `calc(${
|
|
203
|
+
tooltipLeft: `calc(${h}% - ${He.value ? 0 : yl.value / 2}px)`,
|
|
204
|
+
tooltipRight: `calc(${S}% - ${st.value ? el.value : el.value / 2}px)`,
|
|
205
205
|
tooltipCenter: ce,
|
|
206
|
-
arrowLeft: !
|
|
207
|
-
arrowRight: !
|
|
206
|
+
arrowLeft: !He.value,
|
|
207
|
+
arrowRight: !st.value
|
|
208
208
|
};
|
|
209
|
-
}),
|
|
209
|
+
}), He = x(() => Ye.value ? Ye.value.getBoundingClientRect().width * ((ve.value - d.min) / (d.max - d.min)) - yl.value / 2 < 0 : !1), st = x(() => Ye.value ? Ye.value.getBoundingClientRect().width * ((de.value - d.min) / (d.max - d.min)) + el.value / 2 > Ye.value.getBoundingClientRect().width : !1), It = x(() => d.inputColor), Nt = x(() => d.background), ql = x(() => `${d.selectColor}33`), Ge = x(() => d.borderColor), qt = x(() => {
|
|
210
210
|
let m = [];
|
|
211
211
|
for (let h = 0; h < d.minimap.length; h += 1)
|
|
212
212
|
m.push(h);
|
|
213
213
|
return m;
|
|
214
214
|
});
|
|
215
|
-
function
|
|
216
|
-
|
|
215
|
+
function ht() {
|
|
216
|
+
xe("reset");
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
it(
|
|
219
219
|
() => d.min,
|
|
220
220
|
(m) => {
|
|
221
221
|
Number(ve.value) < Number(m) && (ve.value = Number(m)), Number(de.value) < Number(m) && (de.value = Number(m));
|
|
222
222
|
}
|
|
223
|
-
),
|
|
223
|
+
), it(
|
|
224
224
|
() => d.max,
|
|
225
225
|
(m) => {
|
|
226
226
|
Number(ve.value) > Number(m) && (ve.value = Number(m)), Number(de.value) > Number(m) && (de.value = Number(m));
|
|
227
227
|
}
|
|
228
228
|
);
|
|
229
|
-
const
|
|
229
|
+
const Rt = g(null), j = g({
|
|
230
230
|
width: 1,
|
|
231
231
|
height: 1
|
|
232
|
-
}),
|
|
233
|
-
|
|
232
|
+
}), Me = g(null);
|
|
233
|
+
il(() => {
|
|
234
234
|
if (kt.value) {
|
|
235
235
|
const m = sa(() => {
|
|
236
|
-
const { width: h, height:
|
|
237
|
-
chart:
|
|
236
|
+
const { width: h, height: S } = nn({
|
|
237
|
+
chart: Rt.value
|
|
238
238
|
});
|
|
239
|
-
j.value.width = h, j.value.height =
|
|
239
|
+
j.value.width = h, j.value.height = S - 47;
|
|
240
240
|
});
|
|
241
|
-
|
|
241
|
+
Me.value = new ResizeObserver(m), Me.value.observe(Rt.value);
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
244
|
-
|
|
243
|
+
}), Xt(() => {
|
|
244
|
+
Me.value && Me.value.disconnect();
|
|
245
245
|
});
|
|
246
|
-
const
|
|
247
|
-
function
|
|
248
|
-
const h = Math.floor((m - d.min) *
|
|
249
|
-
return Math.min(Math.max(0, h),
|
|
246
|
+
const dl = x(() => Math.max(1, d.max - d.min)), St = x(() => Math.max(1, d.minimap.length)), P = x(() => St.value / dl.value);
|
|
247
|
+
function hl(m) {
|
|
248
|
+
const h = Math.floor((m - d.min) * P.value);
|
|
249
|
+
return Math.min(Math.max(0, h), St.value);
|
|
250
250
|
}
|
|
251
251
|
function ye(m) {
|
|
252
|
-
const h = Math.ceil((m - d.min) *
|
|
253
|
-
return Math.min(Math.max(0, h),
|
|
252
|
+
const h = Math.ceil((m - d.min) * P.value);
|
|
253
|
+
return Math.min(Math.max(0, h), St.value);
|
|
254
254
|
}
|
|
255
|
-
const ee =
|
|
255
|
+
const ee = x(() => hl(ve.value)), rt = x(() => ye(de.value)), ke = x(() => d.minimap.length ? j.value.width / d.minimap.length : 0), we = x(() => {
|
|
256
256
|
if (!d.minimap.length) return [];
|
|
257
|
-
const m = Math.max(...d.minimap), h = Math.min(...d.minimap) - 10,
|
|
258
|
-
x: j.value.width / d.minimap.length *
|
|
259
|
-
y: j.value.height - (
|
|
260
|
-
})), ce = ee.value,
|
|
257
|
+
const m = Math.max(...d.minimap), h = Math.min(...d.minimap) - 10, S = m - (h > 0 ? 0 : h), X = d.minimap.map((at, Ze) => ({
|
|
258
|
+
x: j.value.width / d.minimap.length * Ze + ke.value / 2,
|
|
259
|
+
y: j.value.height - (at - h) / S * (j.value.height * 0.9)
|
|
260
|
+
})), ce = ee.value, xt = Math.max(ce + 1, rt.value), ll = d.smoothMinimap ? Xl(X) : Yl(X), Te = X.slice(ce, xt), Ft = d.smoothMinimap ? Xl(Te) : Yl(Te);
|
|
261
261
|
return {
|
|
262
|
-
fullSet:
|
|
263
|
-
selectionSet:
|
|
264
|
-
sliced:
|
|
262
|
+
fullSet: ll,
|
|
263
|
+
selectionSet: Ft,
|
|
264
|
+
sliced: Te,
|
|
265
265
|
firstPlot: X[ce],
|
|
266
|
-
lastPlot: X[Math.max(0,
|
|
266
|
+
lastPlot: X[Math.max(0, xt - 1)]
|
|
267
267
|
};
|
|
268
|
-
}),
|
|
269
|
-
const m = ee.value, h = Math.max(m + 1,
|
|
268
|
+
}), Ce = x(() => {
|
|
269
|
+
const m = ee.value, h = Math.max(m + 1, rt.value);
|
|
270
270
|
return {
|
|
271
271
|
x: ke.value * m + ke.value / 2,
|
|
272
272
|
width: ke.value * (h - m) - ke.value
|
|
273
273
|
};
|
|
274
|
-
}),
|
|
275
|
-
|
|
274
|
+
}), Re = g(d.minimapSelectedIndex);
|
|
275
|
+
it(() => d.minimapSelectedIndex, (m) => {
|
|
276
276
|
if ([null, void 0].includes(m)) {
|
|
277
|
-
|
|
277
|
+
Re.value = null;
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
Re.value = hl(d.valueStart) + m;
|
|
281
281
|
}, { immediate: !0 });
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
-
const h = ee.value,
|
|
285
|
-
m >= h && m <
|
|
282
|
+
function Cl(m) {
|
|
283
|
+
Re.value = m;
|
|
284
|
+
const h = ee.value, S = rt.value;
|
|
285
|
+
m >= h && m < S && xe("trapMouse", m - h);
|
|
286
286
|
}
|
|
287
|
-
const
|
|
288
|
-
function
|
|
287
|
+
const ft = g(0), ue = g(null), Y = g(null);
|
|
288
|
+
function fl(m) {
|
|
289
289
|
if (typeof m == "object" && m && "target" in m) {
|
|
290
|
-
const
|
|
290
|
+
const S = m.target, X = "valueAsNumber" in S ? S.valueAsNumber : +S.value;
|
|
291
291
|
return Number.isFinite(X) ? X : NaN;
|
|
292
292
|
}
|
|
293
293
|
const h = +m;
|
|
294
294
|
return Number.isFinite(h) ? h : NaN;
|
|
295
295
|
}
|
|
296
|
-
|
|
297
|
-
qt.value = !0;
|
|
298
|
-
const h = hl(m);
|
|
299
|
-
Number.isFinite(h) && (Nt.value = h);
|
|
300
|
-
}
|
|
296
|
+
let Zt = 0;
|
|
301
297
|
function ml(m) {
|
|
302
|
-
|
|
303
|
-
const h =
|
|
304
|
-
Number.isFinite(h) && (
|
|
298
|
+
Gt.value = !0;
|
|
299
|
+
const h = fl(m);
|
|
300
|
+
Number.isFinite(h) && (cancelAnimationFrame(Zt), Zt = requestAnimationFrame(() => {
|
|
301
|
+
Ut.value = h;
|
|
302
|
+
}));
|
|
303
|
+
}
|
|
304
|
+
let mt = 0;
|
|
305
|
+
function Kt(m) {
|
|
306
|
+
Gt.value = !0;
|
|
307
|
+
const h = fl(m);
|
|
308
|
+
Number.isFinite(h) && (cancelAnimationFrame(mt), mt = requestAnimationFrame(() => {
|
|
309
|
+
wt.value = h;
|
|
310
|
+
}));
|
|
305
311
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
let
|
|
311
|
-
const
|
|
312
|
-
|
|
312
|
+
Xt(() => {
|
|
313
|
+
cancelAnimationFrame(Zt), cancelAnimationFrame(mt);
|
|
314
|
+
});
|
|
315
|
+
const O = x(() => d.valueEnd - d.valueStart), gt = g(!1);
|
|
316
|
+
let gl = g(null);
|
|
317
|
+
const Jt = x(() => (rl.value - 48) / (d.max - d.min) * O.value), Ae = x(() => Math.max(1, rl.value - On - Jt.value)), et = x(() => Math.max(1, d.max - d.min - O.value)), Qt = x(() => et.value / Ae.value), bl = g(0), bt = g(0), L = g(0), Al = g(0);
|
|
318
|
+
let tt = null, Ue = null, lt = null, w = null;
|
|
319
|
+
const Fe = (m) => {
|
|
320
|
+
if (Se.value = !0, !d.enableSelectionDrag) return;
|
|
313
321
|
const h = m.type === "touchstart";
|
|
314
322
|
h || m.stopPropagation();
|
|
315
|
-
const
|
|
323
|
+
const S = h && m.targetTouches && m.targetTouches[0] ? m.targetTouches[0] : null, X = h ? S ? S.target : null : m.target;
|
|
316
324
|
if (!X || !(X instanceof Element) || X.classList && X.classList.contains("range-handle")) return;
|
|
317
|
-
|
|
318
|
-
const ce = h ?
|
|
319
|
-
|
|
325
|
+
gt.value = !0;
|
|
326
|
+
const ce = h ? S ? S.clientX : 0 : m.clientX;
|
|
327
|
+
gl.value = ce, bl.value = ce, bt.value = ve.value, L.value = de.value, Al.value = Qt.value, tt = h ? "touchmove" : "mousemove", Ue = h ? "touchend" : "mouseup", lt = h ? jt : xl, w = h ? pl : k, window.addEventListener(tt, lt, { passive: !1 }), window.addEventListener(Ue, w);
|
|
320
328
|
};
|
|
321
|
-
function
|
|
322
|
-
|
|
329
|
+
function xl(m) {
|
|
330
|
+
gt.value && t(m.clientX);
|
|
323
331
|
}
|
|
324
|
-
function
|
|
325
|
-
if (!
|
|
332
|
+
function jt(m) {
|
|
333
|
+
if (!gt.value || !Ye.value) return;
|
|
326
334
|
const h = m.target;
|
|
327
335
|
if (!(h instanceof Element) || !Ye.value.contains(h) || h.classList && h.classList.contains("range-handle")) return;
|
|
328
336
|
m.preventDefault();
|
|
329
|
-
const
|
|
330
|
-
|
|
337
|
+
const S = m.targetTouches && m.targetTouches[0] ? m.targetTouches[0] : null;
|
|
338
|
+
S && t(S.clientX);
|
|
331
339
|
}
|
|
332
|
-
function
|
|
333
|
-
if (!
|
|
334
|
-
const
|
|
335
|
-
let X = Math.round(
|
|
336
|
-
X = Math.max(d.min, Math.min(X, d.max -
|
|
337
|
-
const ce = X +
|
|
338
|
-
|
|
340
|
+
function t(m) {
|
|
341
|
+
if (!gt.value) return;
|
|
342
|
+
const S = (m - bl.value) * Al.value;
|
|
343
|
+
let X = Math.round(bt.value + S);
|
|
344
|
+
X = Math.max(d.min, Math.min(X, d.max - O.value));
|
|
345
|
+
const ce = X + O.value;
|
|
346
|
+
Ut.value = X, wt.value = ce;
|
|
339
347
|
}
|
|
340
|
-
function
|
|
341
|
-
|
|
348
|
+
function k() {
|
|
349
|
+
_t();
|
|
342
350
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
351
|
+
function pl() {
|
|
352
|
+
_t();
|
|
345
353
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
354
|
+
function _t() {
|
|
355
|
+
gt.value = !1, tt && lt && window.removeEventListener(tt, lt), Ue && w && window.removeEventListener(Ue, w), tt = Ue = null, lt = w = null, je();
|
|
348
356
|
}
|
|
349
|
-
const
|
|
350
|
-
function
|
|
351
|
-
|
|
357
|
+
const oe = g(!1), he = g(null), ct = g(null), yl = g(1), el = g(1), Se = g(!1);
|
|
358
|
+
function ze() {
|
|
359
|
+
he.value && (yl.value = he.value.getBoundingClientRect().width);
|
|
352
360
|
}
|
|
353
|
-
function
|
|
354
|
-
|
|
361
|
+
function p() {
|
|
362
|
+
ct.value && (el.value = ct.value.getBoundingClientRect().width);
|
|
355
363
|
}
|
|
356
|
-
const
|
|
357
|
-
function
|
|
358
|
-
|
|
364
|
+
const qe = g(0);
|
|
365
|
+
function kl(m) {
|
|
366
|
+
qe.value = m === "start" ? 1 : 0;
|
|
359
367
|
}
|
|
360
|
-
const
|
|
368
|
+
const $t = g(!1), vt = g({
|
|
361
369
|
width: 0,
|
|
362
370
|
left: 0
|
|
363
371
|
});
|
|
364
|
-
|
|
365
|
-
if (await
|
|
366
|
-
|
|
372
|
+
it([ve, de], async () => {
|
|
373
|
+
if (await Yt(), !he.value || !ct.value) {
|
|
374
|
+
$t.value = !1, vt.value = { width: 0, left: 0 };
|
|
367
375
|
return;
|
|
368
376
|
}
|
|
369
|
-
const m =
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
|
|
377
|
+
const m = he.value.getBoundingClientRect(), h = ct.value.getBoundingClientRect();
|
|
378
|
+
$t.value = m.x + m.width > h.x;
|
|
379
|
+
const S = m.x + m.width / 2, X = h.x + h.width / 2, ce = m.width + h.width, xt = (S + X) / 2;
|
|
380
|
+
vt.value = {
|
|
373
381
|
width: ce,
|
|
374
|
-
left:
|
|
382
|
+
left: xt - ce / 2
|
|
375
383
|
};
|
|
376
|
-
}),
|
|
377
|
-
|
|
378
|
-
}),
|
|
379
|
-
|
|
380
|
-
}, { deep: !0 }),
|
|
381
|
-
|
|
384
|
+
}), Po(() => {
|
|
385
|
+
ze(), p();
|
|
386
|
+
}), it(() => d.labelLeft, () => {
|
|
387
|
+
Yt(ze);
|
|
388
|
+
}, { deep: !0 }), it(() => d.labelRight, () => {
|
|
389
|
+
Yt(p);
|
|
382
390
|
}, { deep: !0 });
|
|
383
|
-
const
|
|
391
|
+
const tl = g(!1), ie = x(() => {
|
|
384
392
|
let m = { text: "" }, h = { text: "" };
|
|
385
|
-
if (
|
|
393
|
+
if (tl.value = !1, Wl(d.customFormat))
|
|
386
394
|
try {
|
|
387
|
-
const
|
|
395
|
+
const S = d.customFormat({
|
|
388
396
|
absoluteIndex: ve.value,
|
|
389
397
|
seriesIndex: ve.value,
|
|
390
398
|
datapoint: d.selectedSeries
|
|
@@ -393,46 +401,46 @@ const xn = {
|
|
|
393
401
|
seriesIndex: de.value - 1,
|
|
394
402
|
datapoint: d.selectedSeries
|
|
395
403
|
});
|
|
396
|
-
typeof
|
|
404
|
+
typeof S == "string" && typeof X == "string" && (m.text = S, h.text = X, tl.value = !0);
|
|
397
405
|
} catch {
|
|
398
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
406
|
+
console.warn("Custom format cannot be applied on zoom labels."), tl.value = !1;
|
|
399
407
|
}
|
|
400
|
-
return
|
|
408
|
+
return tl.value || (m = d.usePreciseLabels ? d.preciseLabels.find((S) => S.absoluteIndex === ve.value) : d.timeLabels.find((S) => S.absoluteIndex === ve.value), h = d.usePreciseLabels ? d.preciseLabels.find((S) => S.absoluteIndex === de.value - 1) : d.timeLabels.find((S) => S.absoluteIndex === de.value - 1)), {
|
|
401
409
|
left: m ? m.text : "",
|
|
402
410
|
right: h ? h.text : ""
|
|
403
411
|
};
|
|
404
412
|
});
|
|
405
|
-
return
|
|
406
|
-
|
|
413
|
+
return Xt(() => {
|
|
414
|
+
Me.value && Me.value.disconnect(), tt && lt && window.removeEventListener(tt, lt), Ue && w && window.removeEventListener(Ue, w), tt = Ue = null, lt = w = null, clearTimeout(cl);
|
|
407
415
|
}), Gl({
|
|
408
|
-
setStartValue:
|
|
409
|
-
setEndValue:
|
|
416
|
+
setStartValue: ml,
|
|
417
|
+
setEndValue: Kt
|
|
410
418
|
}), (m, h) => (s(), r("div", {
|
|
411
419
|
"data-dom-to-png-ignore": "",
|
|
412
420
|
style: { padding: "0 24px" },
|
|
413
421
|
class: "vue-data-ui-zoom",
|
|
414
422
|
ref_key: "zoomWrapper",
|
|
415
423
|
ref: Ye,
|
|
416
|
-
onMousedown:
|
|
417
|
-
onTouchstart:
|
|
424
|
+
onMousedown: Fe,
|
|
425
|
+
onTouchstart: Fe
|
|
418
426
|
}, [
|
|
419
427
|
y("div", xn, [
|
|
420
|
-
N.valueStart !== N.refreshStartPoint || N.valueEnd !==
|
|
421
|
-
N.useResetSlot ?
|
|
428
|
+
N.valueStart !== N.refreshStartPoint || N.valueEnd !== vl.value ? (s(), r("div", pn, [
|
|
429
|
+
N.useResetSlot ? K(m.$slots, "reset-action", {
|
|
422
430
|
key: 1,
|
|
423
|
-
reset:
|
|
431
|
+
reset: ht
|
|
424
432
|
}, void 0, !0) : (s(), r("button", {
|
|
425
433
|
key: 0,
|
|
426
434
|
tabindex: "0",
|
|
427
435
|
role: "button",
|
|
428
436
|
class: "vue-data-ui-refresh-button",
|
|
429
|
-
style:
|
|
437
|
+
style: _({
|
|
430
438
|
top: kt.value ? "36px" : "-16px",
|
|
431
439
|
pointerEvents: "all !important"
|
|
432
440
|
}),
|
|
433
|
-
onClick:
|
|
441
|
+
onClick: ht
|
|
434
442
|
}, [
|
|
435
|
-
|
|
443
|
+
Wt(gn, {
|
|
436
444
|
name: "refresh",
|
|
437
445
|
stroke: N.textColor
|
|
438
446
|
}, null, 8, ["stroke"])
|
|
@@ -442,10 +450,10 @@ const xn = {
|
|
|
442
450
|
y("div", {
|
|
443
451
|
class: "double-range-slider",
|
|
444
452
|
ref_key: "minimapWrapper",
|
|
445
|
-
ref:
|
|
453
|
+
ref: Rt,
|
|
446
454
|
style: { "z-index": "0" },
|
|
447
|
-
onMouseenter: h[
|
|
448
|
-
onMouseleave: h[
|
|
455
|
+
onMouseenter: h[11] || (h[11] = (S) => Se.value = !0),
|
|
456
|
+
onMouseleave: h[12] || (h[12] = (S) => Se.value = !1)
|
|
449
457
|
}, [
|
|
450
458
|
kt.value ? (s(), r("div", yn, [
|
|
451
459
|
(s(), r("svg", {
|
|
@@ -464,7 +472,7 @@ const xn = {
|
|
|
464
472
|
offset: "0%",
|
|
465
473
|
"stop-color": `${N.minimapLineColor}50`
|
|
466
474
|
}, null, 8, Sn),
|
|
467
|
-
h[
|
|
475
|
+
h[13] || (h[13] = y("stop", {
|
|
468
476
|
offset: "100%",
|
|
469
477
|
"stop-color": "transparent"
|
|
470
478
|
}, null, -1))
|
|
@@ -480,9 +488,9 @@ const xn = {
|
|
|
480
488
|
style: { opacity: "1" }
|
|
481
489
|
}, null, 8, _n),
|
|
482
490
|
y("rect", {
|
|
483
|
-
x:
|
|
491
|
+
x: Ce.value.x,
|
|
484
492
|
y: 0,
|
|
485
|
-
width:
|
|
493
|
+
width: Ce.value.width < 0 ? 0 : Ce.value.width,
|
|
486
494
|
height: Math.max(j.value.height, 0),
|
|
487
495
|
fill: Ge.value,
|
|
488
496
|
rx: N.minimapSelectionRadius,
|
|
@@ -495,22 +503,22 @@ const xn = {
|
|
|
495
503
|
style: { opacity: "1" }
|
|
496
504
|
}, null, 8, Ln),
|
|
497
505
|
y("rect", {
|
|
498
|
-
x:
|
|
506
|
+
x: Ce.value.x,
|
|
499
507
|
y: 0,
|
|
500
|
-
width:
|
|
508
|
+
width: Ce.value.width < 0 ? 0 : Ce.value.width,
|
|
501
509
|
height: Math.max(j.value.height, 0),
|
|
502
510
|
rx: N.minimapSelectionRadius,
|
|
503
511
|
fill: Ge.value,
|
|
504
|
-
style:
|
|
512
|
+
style: _({ opacity: gt.value || Gt.value ? 0 : 1 })
|
|
505
513
|
}, null, 12, Mn),
|
|
506
514
|
y("rect", {
|
|
507
|
-
x:
|
|
515
|
+
x: Ce.value.x,
|
|
508
516
|
y: 0,
|
|
509
|
-
width:
|
|
517
|
+
width: Ce.value.width < 0 ? 0 : Ce.value.width,
|
|
510
518
|
height: Math.max(j.value.height, 0),
|
|
511
519
|
fill: N.minimapSelectedColor,
|
|
512
520
|
rx: N.minimapSelectionRadius,
|
|
513
|
-
style:
|
|
521
|
+
style: _({ opacity: N.minimapSelectedColorOpacity })
|
|
514
522
|
}, null, 12, Cn),
|
|
515
523
|
y("path", {
|
|
516
524
|
d: `M${we.value.sliced[0].x},${Math.max(j.value.height, 0)} ${we.value.selectionSet} L${we.value.sliced.at(-1).x},${Math.max(j.value.height, 0)}Z`,
|
|
@@ -542,8 +550,8 @@ const xn = {
|
|
|
542
550
|
r: "3",
|
|
543
551
|
fill: N.minimapLineColor
|
|
544
552
|
}, null, 8, In),
|
|
545
|
-
|
|
546
|
-
|
|
553
|
+
Re.value !== null ? (s(!0), r(b, { key: 0 }, C(qt.value, (S, X) => (s(), r("g", null, [
|
|
554
|
+
Re.value === S && S >= ee.value && S < rt.value ? (s(), r("line", {
|
|
547
555
|
key: 0,
|
|
548
556
|
x1: ke.value * X + ke.value / 2,
|
|
549
557
|
x2: ke.value * X + ke.value / 2,
|
|
@@ -555,39 +563,39 @@ const xn = {
|
|
|
555
563
|
"stroke-width": "1"
|
|
556
564
|
}, null, 8, Nn)) : f("", !0)
|
|
557
565
|
]))), 256)) : f("", !0),
|
|
558
|
-
(s(!0), r(
|
|
566
|
+
(s(!0), r(b, null, C(qt.value, (S, X) => (s(), r("rect", {
|
|
559
567
|
x: ke.value * X,
|
|
560
568
|
y: 0,
|
|
561
569
|
height: Math.max(j.value.height, 0),
|
|
562
570
|
width: ke.value < 0 ? 0 : ke.value,
|
|
563
571
|
fill: "transparent",
|
|
564
|
-
style:
|
|
565
|
-
onMousedown: h[0] || (h[0] = (ce) =>
|
|
566
|
-
onMouseup: h[1] || (h[1] = (ce) =>
|
|
567
|
-
onMouseenter: (ce) =>
|
|
572
|
+
style: _([{ "pointer-events": "all !important" }, { cursor: S >= ee.value && S < rt.value && N.enableSelectionDrag ? oe.value ? "grabbing" : "grab" : "default" }]),
|
|
573
|
+
onMousedown: h[0] || (h[0] = (ce) => oe.value = !0),
|
|
574
|
+
onMouseup: h[1] || (h[1] = (ce) => oe.value = !1),
|
|
575
|
+
onMouseenter: (ce) => Cl(S),
|
|
568
576
|
onMouseleave: h[2] || (h[2] = (ce) => {
|
|
569
|
-
|
|
577
|
+
Re.value = null, xe("trapMouse", null);
|
|
570
578
|
})
|
|
571
579
|
}, null, 44, Rn))), 256))
|
|
572
580
|
], 8, kn))
|
|
573
581
|
])) : f("", !0),
|
|
574
|
-
h[
|
|
582
|
+
h[14] || (h[14] = y("div", { class: "slider-track" }, null, -1)),
|
|
575
583
|
y("div", {
|
|
576
584
|
class: Xe({
|
|
577
585
|
"range-highlight": !0,
|
|
578
586
|
move: N.enableSelectionDrag
|
|
579
587
|
}),
|
|
580
|
-
onMousedown: h[3] || (h[3] = (
|
|
581
|
-
onMouseup: h[4] || (h[4] = (
|
|
582
|
-
style:
|
|
588
|
+
onMousedown: h[3] || (h[3] = (S) => oe.value = !0),
|
|
589
|
+
onMouseup: h[4] || (h[4] = (S) => oe.value = !1),
|
|
590
|
+
style: _({
|
|
583
591
|
...pe.value,
|
|
584
|
-
cursor:
|
|
592
|
+
cursor: oe.value ? "grabbing" : "grab"
|
|
585
593
|
})
|
|
586
594
|
}, null, 38),
|
|
587
595
|
N.enableRangeHandles ? ia((s(), r("input", {
|
|
588
596
|
ref_key: "rangeStart",
|
|
589
597
|
ref: ue,
|
|
590
|
-
key: `range-min${
|
|
598
|
+
key: `range-min${ft.value}`,
|
|
591
599
|
type: "range",
|
|
592
600
|
class: Xe({
|
|
593
601
|
"range-left": !0,
|
|
@@ -596,18 +604,17 @@ const xn = {
|
|
|
596
604
|
}),
|
|
597
605
|
min: N.min,
|
|
598
606
|
max: N.max,
|
|
599
|
-
"onUpdate:modelValue": h[5] || (h[5] = (
|
|
600
|
-
onInput: h[6] || (h[6] = (
|
|
607
|
+
"onUpdate:modelValue": h[5] || (h[5] = (S) => Ut.value = S),
|
|
608
|
+
onInput: h[6] || (h[6] = (S) => ml(S)),
|
|
601
609
|
onChange: je,
|
|
602
610
|
onKeyup: Ya(je, ["enter"]),
|
|
603
611
|
onBlur: je,
|
|
604
|
-
onMouseenter: h[7] || (h[7] = (
|
|
605
|
-
onPointermove: h[8] || (h[8] = (w) => Nt.value = +w.target.value),
|
|
612
|
+
onMouseenter: h[7] || (h[7] = (S) => kl("start")),
|
|
606
613
|
onPointerup: je
|
|
607
|
-
}, null, 42,
|
|
614
|
+
}, null, 42, Fn)), [
|
|
608
615
|
[
|
|
609
616
|
Ga,
|
|
610
|
-
|
|
617
|
+
Ut.value,
|
|
611
618
|
void 0,
|
|
612
619
|
{ number: !0 }
|
|
613
620
|
]
|
|
@@ -615,7 +622,7 @@ const xn = {
|
|
|
615
622
|
N.enableRangeHandles ? ia((s(), r("input", {
|
|
616
623
|
key: 2,
|
|
617
624
|
ref_key: "rangeEnd",
|
|
618
|
-
ref:
|
|
625
|
+
ref: Y,
|
|
619
626
|
type: "range",
|
|
620
627
|
class: Xe({
|
|
621
628
|
"range-right": !0,
|
|
@@ -624,83 +631,82 @@ const xn = {
|
|
|
624
631
|
}),
|
|
625
632
|
min: N.min,
|
|
626
633
|
max: N.max,
|
|
627
|
-
"onUpdate:modelValue": h[
|
|
628
|
-
onInput: h[
|
|
634
|
+
"onUpdate:modelValue": h[8] || (h[8] = (S) => wt.value = S),
|
|
635
|
+
onInput: h[9] || (h[9] = (S) => Kt(S)),
|
|
629
636
|
onChange: je,
|
|
630
637
|
onKeyup: Ya(je, ["enter"]),
|
|
631
638
|
onBlur: je,
|
|
632
|
-
onMouseenter: h[
|
|
633
|
-
onPointermove: h[12] || (h[12] = (w) => ft.value = +w.target.value),
|
|
639
|
+
onMouseenter: h[10] || (h[10] = (S) => kl("end")),
|
|
634
640
|
onPointerup: je
|
|
635
|
-
}, null, 42,
|
|
641
|
+
}, null, 42, Pn)), [
|
|
636
642
|
[
|
|
637
643
|
Ga,
|
|
638
|
-
|
|
644
|
+
wt.value,
|
|
639
645
|
void 0,
|
|
640
646
|
{ number: !0 }
|
|
641
647
|
]
|
|
642
648
|
]) : f("", !0),
|
|
643
|
-
|
|
649
|
+
ie.value.left ? (s(), r("div", {
|
|
644
650
|
key: 3,
|
|
645
651
|
ref_key: "tooltipLeft",
|
|
646
|
-
ref:
|
|
652
|
+
ref: he,
|
|
647
653
|
class: Xe({
|
|
648
654
|
"range-tooltip": !0,
|
|
649
|
-
"range-tooltip-visible":
|
|
655
|
+
"range-tooltip-visible": Se.value,
|
|
650
656
|
"range-tooltip-arrow": pe.value.arrowLeft && !N.verticalHandles,
|
|
651
657
|
"range-tooltip-arrow-left": !pe.value.arrowLeft && !N.verticalHandles
|
|
652
658
|
}),
|
|
653
|
-
style:
|
|
659
|
+
style: _({
|
|
654
660
|
left: pe.value.tooltipLeft,
|
|
655
|
-
color: v(
|
|
661
|
+
color: v(ut)(N.selectColor),
|
|
656
662
|
backgroundColor: N.selectColor,
|
|
657
663
|
border: `1px solid ${Ge.value}`,
|
|
658
|
-
zIndex: `${
|
|
659
|
-
visibility:
|
|
664
|
+
zIndex: `${qe.value + 4}`,
|
|
665
|
+
visibility: $t.value || ie.value.left === ie.value.right ? "hidden" : "visible"
|
|
660
666
|
})
|
|
661
|
-
}, ne(
|
|
662
|
-
(
|
|
667
|
+
}, ne(ie.value.left), 7)) : f("", !0),
|
|
668
|
+
($t.value || ie.value.left === ie.value.right) && (ie.value.left || ie.value.right) ? (s(), r("div", {
|
|
663
669
|
key: 4,
|
|
664
670
|
ref: "tooltipMerge",
|
|
665
671
|
class: Xe({
|
|
666
672
|
"range-tooltip": !0,
|
|
667
|
-
"range-tooltip-visible":
|
|
673
|
+
"range-tooltip-visible": Se.value,
|
|
668
674
|
"range-tooltip-arrow": !0,
|
|
669
675
|
"range-tooltip-arrow-left": !pe.value.arrowLeft && !N.verticalHandles,
|
|
670
676
|
"range-tooltip-arrow-right": !pe.value.arrowRight && !N.verticalHandles
|
|
671
677
|
}),
|
|
672
|
-
style:
|
|
678
|
+
style: _({
|
|
673
679
|
left: pe.value.tooltipCenter,
|
|
674
|
-
width:
|
|
675
|
-
color: v(
|
|
680
|
+
width: vt.value.width + "px",
|
|
681
|
+
color: v(ut)(N.selectColor),
|
|
676
682
|
backgroundColor: N.selectColor,
|
|
677
683
|
border: `1px solid ${Ge.value}`,
|
|
678
684
|
zIndex: "4"
|
|
679
685
|
})
|
|
680
|
-
}, ne(
|
|
681
|
-
|
|
686
|
+
}, ne(ie.value.left === ie.value.right ? ie.value.left : `${ie.value.left} - ${ie.value.right}`), 7)) : f("", !0),
|
|
687
|
+
ie.value.right ? (s(), r("div", {
|
|
682
688
|
key: 5,
|
|
683
689
|
ref_key: "tooltipRight",
|
|
684
|
-
ref:
|
|
690
|
+
ref: ct,
|
|
685
691
|
class: Xe({
|
|
686
692
|
"range-tooltip": !0,
|
|
687
|
-
"range-tooltip-visible":
|
|
693
|
+
"range-tooltip-visible": Se.value,
|
|
688
694
|
"range-tooltip-arrow": pe.value.arrowRight && !N.verticalHandles,
|
|
689
695
|
"range-tooltip-arrow-right": !pe.value.arrowRight && !N.verticalHandles
|
|
690
696
|
}),
|
|
691
|
-
style:
|
|
697
|
+
style: _({
|
|
692
698
|
left: pe.value.tooltipRight,
|
|
693
|
-
color: v(
|
|
699
|
+
color: v(ut)(N.selectColor),
|
|
694
700
|
backgroundColor: N.selectColor,
|
|
695
701
|
border: `1px solid ${Ge.value}`,
|
|
696
702
|
zIndex: "4",
|
|
697
|
-
visibility:
|
|
703
|
+
visibility: $t.value || ie.value.left === ie.value.right ? "hidden" : "visible"
|
|
698
704
|
})
|
|
699
|
-
}, ne(
|
|
705
|
+
}, ne(ie.value.right), 7)) : f("", !0)
|
|
700
706
|
], 544)
|
|
701
707
|
], 544));
|
|
702
708
|
}
|
|
703
|
-
}, Hn = /* @__PURE__ */ ao(Bn, [["__scopeId", "data-v-
|
|
709
|
+
}, Hn = /* @__PURE__ */ ao(Bn, [["__scopeId", "data-v-b9436af8"]]), Vn = ["id"], En = ["id"], Dn = ["viewBox", "aria-label"], Wn = ["x", "y", "width", "height"], Xn = { key: 1 }, Yn = { class: "vue-ui-xy-grid" }, Gn = ["stroke", "x1", "x2", "y1", "y2"], Un = ["stroke", "x1", "x2", "y1", "y2"], qn = { key: 1 }, Zn = ["x1", "x2", "y1", "y2", "stroke"], Kn = ["x1", "x2", "y1", "y2", "stroke"], Jn = ["x1", "x2", "y1", "y2", "stroke"], Qn = { key: 3 }, jn = ["d", "stroke"], eu = { key: 4 }, tu = ["d", "stroke"], lu = ["id"], au = ["stop-color"], ou = ["stop-color"], nu = ["stop-color"], uu = ["id"], iu = ["stop-color"], su = ["stop-color"], ru = ["stop-color"], cu = ["id"], vu = ["stop-color"], du = ["stop-color"], hu = ["id"], fu = ["stop-color"], mu = ["stop-color"], gu = ["id"], bu = ["stop-color"], xu = ["stop-color"], pu = ["x", "y", "height", "width", "fill"], yu = ["x", "y", "width"], ku = { key: 0 }, wu = ["x", "y", "height", "width", "fill"], Su = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], _u = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], $u = ["width", "x", "y"], Lu = { key: 0 }, Mu = ["id"], Cu = ["fill"], Au = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], zu = ["x", "y", "font-size", "fill"], Tu = ["stroke", "x1", "x2", "y1", "y2"], Iu = { key: 3 }, Nu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ru = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Fu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pu = ["fill", "font-size", "transform"], Ou = ["x1", "x2", "y1", "y2", "stroke"], Bu = ["x", "y", "font-size", "fill"], Hu = ["x1", "x2", "y1", "y2", "stroke"], Vu = ["x", "y", "font-size", "fill"], Eu = ["width", "x", "y"], Du = { style: { width: "100%" } }, Wu = { key: 0 }, Xu = ["id"], Yu = ["fill"], Gu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Uu = ["x", "y", "font-size", "fill"], qu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Zu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ku = { key: 6 }, Ju = { key: 7 }, Qu = ["d", "fill", "fill-opacity"], ju = { key: 0 }, ei = ["d", "fill"], ti = ["d", "fill"], li = ["d", "fill"], ai = ["d", "fill"], oi = ["d", "stroke", "stroke-width", "stroke-dasharray"], ni = ["d", "stroke", "stroke-width", "stroke-dasharray"], ui = ["width", "x", "y"], ii = { style: { width: "100%" } }, si = { key: 3 }, ri = ["id"], ci = ["fill"], vi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], di = ["x", "y", "font-size", "fill"], hi = { key: 8 }, fi = ["x", "y", "font-size", "fill"], mi = ["x", "y", "font-size", "fill", "font-weight"], gi = { key: 9 }, bi = ["x", "y", "font-size", "fill"], xi = { key: 10 }, pi = ["x", "y"], yi = ["innerHTML"], ki = ["x", "y"], wi = ["innerHTML"], Si = ["x1", "x2", "y1", "y2", "stroke"], _i = { key: 11 }, $i = ["x", "y", "font-size", "fill"], Li = { key: 12 }, Mi = ["x", "y"], Ci = ["innerHTML"], Ai = ["x", "y"], zi = ["innerHTML"], Ti = ["x1", "x2", "y1", "y2", "stroke"], Ii = ["x", "y", "font-size", "fill", "innerHTML"], Ni = ["x", "y", "font-size", "fill", "innerHTML"], Ri = ["x", "y", "font-size", "fill", "innerHTML"], Fi = ["x", "y", "font-size", "fill", "innerHTML"], Pi = ["id"], Oi = ["stop-color"], Bi = ["stop-color"], Hi = ["x", "y", "width", "height", "fill", "onMouseenter"], Vi = ["font-size", "fill", "transform"], Ei = ["x", "y", "font-size", "fill"], Di = ["text-anchor", "font-size", "fill", "transform", "onClick"], Wi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Xi = { key: 15 }, Yi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Gi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ui = ["y", "x", "width", "height", "fill"], qi = ["id", "x", "y", "font-size", "fill", "text-anchor"], Zi = {
|
|
704
710
|
key: 16,
|
|
705
711
|
style: { "pointer-events": "none" }
|
|
706
712
|
}, Ki = ["x", "y"], Ji = ["innerHTML"], Qi = ["cx", "cy", "r", "fill"], ji = ["data-start", "data-end"], es = {
|
|
@@ -766,42 +772,42 @@ const xn = {
|
|
|
766
772
|
},
|
|
767
773
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
768
774
|
setup(N, { expose: Gl, emit: Ul }) {
|
|
769
|
-
const d = N, Ye =
|
|
775
|
+
const d = N, Ye = Ct(() => import("./DataTable-Ddu14t59.js")), ve = Ct(() => import("./Tooltip-VlJQQsYu.js")), de = Ct(() => import("./UserOptions-sSygisu3.js")), kt = Ct(() => import("./BaseIcon-BCS8aIf4.js")), sl = Ct(() => import("./vue-ui-table-sparkline-Bt7VtPKK.js")), Gt = Ct(() => import("./PackageVersion-CtYY8jBZ.js")), rl = Ct(() => import("./PenAndPaper-DtlEAsLw.js")), Ut = Ct(() => import("./BaseDraggableDialog-Bdva4JFr.js")), wt = Ul, cl = Oo(), je = Bo(), { vue_ui_xy: vl } = Xo(), xe = g(null), pe = g(null), He = g(null), st = g(null), It = g(null), Nt = g(null), ql = g(null), Ge = g(null), qt = g(null), ht = g(null), Rt = g(null), j = g(null), Me = g(null), dl = g(null), St = g(0), P = g(null), hl = g(!0), ye = g(600), ee = g(1e3), rt = g("0 0 1000 600"), ke = g({ x: 0, y: 0 }), we = g({ line: "line", bar: "bar", plot: "plot" }), Ce = g(!1), Re = g(!1), Cl = g(!1), ft = g(null), ue = g([]), Y = g(Dl()), fl = g(0), Zt = g(0), ml = g(0), mt = g(!0), Kt = g(0), O = g(null), gt = g(!1), gl = g(!0), Jt = g(!0), Ae = g(null), et = g({}), Qt = g(null), bl = g(!1), bt = g(null), L = g(null), Al = x(() => ({
|
|
770
776
|
height: ye.value,
|
|
771
777
|
width: ee.value
|
|
772
778
|
}));
|
|
773
|
-
function
|
|
779
|
+
function tt(l) {
|
|
774
780
|
return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
|
|
775
781
|
}
|
|
776
|
-
function
|
|
782
|
+
function Ue(l, u, e = 0) {
|
|
777
783
|
return Number.isFinite(l) && Number.isFinite(u) && Math.abs(u) > 1e-9 ? l / u : e;
|
|
778
784
|
}
|
|
779
|
-
const
|
|
785
|
+
const lt = g(!1), w = g({
|
|
780
786
|
xAxis: 18,
|
|
781
787
|
yAxis: 12,
|
|
782
788
|
dataLabels: 20,
|
|
783
789
|
plotLabels: 10
|
|
784
|
-
}),
|
|
785
|
-
|
|
786
|
-
|
|
790
|
+
}), Fe = g({ plot: 3, line: 3 });
|
|
791
|
+
il(() => {
|
|
792
|
+
bl.value = !0, d.dataset.length && d.dataset.forEach((l, u) => {
|
|
787
793
|
[null, void 0].includes(l.series) && oa({
|
|
788
794
|
componentName: "VueUiXy",
|
|
789
795
|
type: "datasetSerieAttribute",
|
|
790
796
|
property: "series (number[])",
|
|
791
797
|
index: u,
|
|
792
|
-
debug:
|
|
798
|
+
debug: _t.value
|
|
793
799
|
});
|
|
794
800
|
});
|
|
795
801
|
});
|
|
796
|
-
function
|
|
802
|
+
function xl() {
|
|
797
803
|
if (!Object.keys(d.config || {}).length)
|
|
798
|
-
return
|
|
804
|
+
return vl;
|
|
799
805
|
const l = ua({
|
|
800
806
|
userConfig: d.config,
|
|
801
|
-
defaultConfig:
|
|
807
|
+
defaultConfig: vl
|
|
802
808
|
});
|
|
803
809
|
return d.config && We(d.config, "chart.highlightArea") && (Array.isArray(d.config.chart.highlightArea) ? l.chart.highlightArea = d.config.chart.highlightArea : l.chart.highlightArea = [d.config.chart.highlightArea]), d.config && We(d.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = d.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, d.config && We(d.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = d.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, d.config && We(d.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = d.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, d.config && We(d.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = d.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, d.config && We(d.config, "chart.grid.labels.yAxis.groupColor") ? l.chart.grid.labels.yAxis.groupColor = d.config.chart.grid.labels.yAxis.groupColor : l.chart.grid.labels.yAxis.groupColor = null, d.config && We(d.config, "chart.annotations") && Array.isArray(d.config.chart.annotations) && d.config.chart.annotations.length ? l.chart.annotations = d.config.chart.annotations.map((u) => ua({
|
|
804
|
-
defaultConfig:
|
|
810
|
+
defaultConfig: vl.chart.annotations[0],
|
|
805
811
|
userConfig: u
|
|
806
812
|
})) : l.chart.annotations = [], d.config && We(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((u) => u.type === "bar") && (l.chart.grid.position = "middle", We(d.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), d.config && We(d.config, "chart.grid.labels.yAxis.serieNameFormatter") ? l.chart.grid.labels.yAxis.serieNameFormatter = d.config.chart.grid.labels.yAxis.serieNameFormatter : l.chart.grid.labels.yAxis.serieNameFormatter = null, d.config && We(d.config, "events.datapointEnter") ? l.events.datapointEnter = d.config.events.datapointEnter : l.events.datapointEnter = null, d.config && We(d.config, "events.datapointLeave") ? l.events.datapointLeave = d.config.events.datapointLeave : l.events.datapointLeave = null, d.config && We(d.config, "events.datapointClick") ? l.events.datapointClick = d.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
|
|
807
813
|
...ua({
|
|
@@ -811,33 +817,33 @@ const xn = {
|
|
|
811
817
|
customPalette: tn[l.theme] || d.palette
|
|
812
818
|
} : l;
|
|
813
819
|
}
|
|
814
|
-
const jt =
|
|
820
|
+
const jt = x({
|
|
815
821
|
get() {
|
|
816
822
|
return !!d.dataset && d.dataset.length;
|
|
817
823
|
},
|
|
818
824
|
set(l) {
|
|
819
825
|
return l;
|
|
820
826
|
}
|
|
821
|
-
}), t = g(
|
|
827
|
+
}), t = g(xl()), k = g({
|
|
822
828
|
dataLabels: { show: !0 },
|
|
823
829
|
showTooltip: !0,
|
|
824
830
|
showTable: !1,
|
|
825
831
|
isStacked: !1,
|
|
826
832
|
useIndividualScale: !1
|
|
827
833
|
});
|
|
828
|
-
function
|
|
829
|
-
|
|
834
|
+
function pl() {
|
|
835
|
+
lt.value ? (k.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, k.value.useIndividualScale == null && (k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (k.value = {
|
|
830
836
|
dataLabels: { show: !0 },
|
|
831
837
|
showTooltip: t.value.chart.tooltip.show === !0,
|
|
832
838
|
showTable: t.value.showTable === !0,
|
|
833
839
|
isStacked: t.value.chart.grid.labels.yAxis.stacked,
|
|
834
840
|
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
835
|
-
},
|
|
841
|
+
}, lt.value = !0);
|
|
836
842
|
}
|
|
837
|
-
const
|
|
843
|
+
const _t = x(() => !!t.value.debug), { loading: oe, FINAL_DATASET: he, manualLoading: ct } = sn({
|
|
838
844
|
...Ho(d),
|
|
839
845
|
FINAL_CONFIG: t,
|
|
840
|
-
prepareConfig:
|
|
846
|
+
prepareConfig: xl,
|
|
841
847
|
callback: () => {
|
|
842
848
|
Promise.resolve().then(async () => {
|
|
843
849
|
await Tl(), k.value.showTable = t.value.showTable;
|
|
@@ -916,7 +922,7 @@ const xn = {
|
|
|
916
922
|
}
|
|
917
923
|
})
|
|
918
924
|
});
|
|
919
|
-
function
|
|
925
|
+
function yl(l) {
|
|
920
926
|
const u = /* @__PURE__ */ new WeakMap();
|
|
921
927
|
return (e, ...n) => {
|
|
922
928
|
let a = u.get(e);
|
|
@@ -926,27 +932,27 @@ const xn = {
|
|
|
926
932
|
return a || (a = /* @__PURE__ */ new Map(), u.set(e, a)), a.set(i, o), o;
|
|
927
933
|
};
|
|
928
934
|
}
|
|
929
|
-
const
|
|
930
|
-
get: () => Math.max(...
|
|
935
|
+
const el = yl((l, u) => na({ data: l, threshold: u })), Se = (l) => el(l, t.value.downsample.threshold), ze = x({
|
|
936
|
+
get: () => Math.max(...he.value.map((l) => Se(l.series).length)),
|
|
931
937
|
set: (l) => l
|
|
932
|
-
}), p = g({ start: 0, end:
|
|
933
|
-
function
|
|
934
|
-
|
|
938
|
+
}), p = g({ start: 0, end: ze.value }), qe = g({ start: 0, end: ze.value }), kl = x(() => t.value.chart.zoom.preview.enable && (qe.value.start !== p.value.start || qe.value.end !== p.value.end));
|
|
939
|
+
function $t(l, u) {
|
|
940
|
+
qe.value[l] = u;
|
|
935
941
|
}
|
|
936
|
-
function
|
|
942
|
+
function vt() {
|
|
937
943
|
const l = Math.max(
|
|
938
944
|
1,
|
|
939
|
-
...
|
|
945
|
+
...he.value.map((n) => Se(n.series).length)
|
|
940
946
|
);
|
|
941
947
|
let u = Math.max(0, Math.min(p.value.start ?? 0, l - 1)), e = Math.max(u + 1, Math.min(p.value.end ?? l, l));
|
|
942
|
-
(!Number.isFinite(u) || !Number.isFinite(e) || e <= u) && (u = 0, e = l), p.value = { start: u, end: e },
|
|
948
|
+
(!Number.isFinite(u) || !Number.isFinite(e) || e <= u) && (u = 0, e = l), p.value = { start: u, end: e }, qe.value.start = u, qe.value.end = e;
|
|
943
949
|
}
|
|
944
|
-
const
|
|
945
|
-
const { left: l, top: u, width: e, height: n } = c.value, a = p.value.start, o = p.value.end - a, z = e / o,
|
|
950
|
+
const tl = x(() => {
|
|
951
|
+
const { left: l, top: u, width: e, height: n } = c.value, a = p.value.start, o = p.value.end - a, z = e / o, B = qe.value.start - a, E = qe.value.end - a, $ = Math.max(0, Math.min(o, B)), I = Math.max(0, Math.min(o, E));
|
|
946
952
|
return {
|
|
947
|
-
x: l +
|
|
953
|
+
x: l + $ * z,
|
|
948
954
|
y: u,
|
|
949
|
-
width: (I -
|
|
955
|
+
width: (I - $) * z,
|
|
950
956
|
height: n,
|
|
951
957
|
fill: t.value.chart.zoom.preview.fill,
|
|
952
958
|
stroke: t.value.chart.zoom.preview.stroke,
|
|
@@ -961,84 +967,84 @@ const xn = {
|
|
|
961
967
|
}
|
|
962
968
|
};
|
|
963
969
|
});
|
|
964
|
-
|
|
970
|
+
it(() => d.selectedXIndex, (l) => {
|
|
965
971
|
if ([null, void 0].includes(d.selectedXIndex)) {
|
|
966
|
-
|
|
972
|
+
L.value = null;
|
|
967
973
|
return;
|
|
968
974
|
}
|
|
969
975
|
const u = l - p.value.start;
|
|
970
|
-
u < 0 || l >= p.value.end ?
|
|
976
|
+
u < 0 || l >= p.value.end ? L.value = null : L.value = u ?? null;
|
|
971
977
|
}, { immediate: !0 });
|
|
972
|
-
const { isPrinting:
|
|
973
|
-
elementId: `vue-ui-xy_${
|
|
978
|
+
const { isPrinting: ie, isImaging: m, generatePdf: h, generateImage: S } = un({
|
|
979
|
+
elementId: `vue-ui-xy_${Y.value}`,
|
|
974
980
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
975
981
|
options: t.value.chart.userOptions.print
|
|
976
|
-
}),
|
|
982
|
+
}), X = g(!1), ce = x(() => Go(t.value.customPalette)), xt = x(() => {
|
|
977
983
|
if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
978
984
|
return t.value.chart.grid.labels.yAxis.scaleMin;
|
|
979
|
-
const l = Math.min(...
|
|
985
|
+
const l = Math.min(...at.value.filter((u) => !ue.value.includes(u.id)).map((u) => Math.min(...u.series)));
|
|
980
986
|
return l > 0 ? 0 : l;
|
|
981
|
-
}),
|
|
987
|
+
}), ll = x(() => {
|
|
982
988
|
if (t.value.chart.grid.labels.yAxis.scaleMax)
|
|
983
989
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
984
|
-
const l = Math.max(...
|
|
985
|
-
return
|
|
986
|
-
}),
|
|
987
|
-
const e =
|
|
990
|
+
const l = Math.max(...at.value.filter((u) => !ue.value.includes(u.id)).map((u) => Math.max(...u.series)));
|
|
991
|
+
return xt.value === l ? l + 1 : l;
|
|
992
|
+
}), Te = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Ml(xt.value, ll.value < 0 ? 0 : ll.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : Et(xt.value, ll.value < 0 ? 0 : ll.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), Ft = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Te.value.min >= 0 ? 0 : Math.abs(Te.value.min) : -Te.value.min), at = x(() => hl.value ? he.value.map((l, u) => {
|
|
993
|
+
const e = Se(l.series), n = `uniqueId_${u}`;
|
|
988
994
|
return {
|
|
989
995
|
...l,
|
|
990
996
|
slotAbsoluteIndex: u,
|
|
991
997
|
series: e.map((a) => Hl(a) ? a : null).slice(p.value.start, p.value.end),
|
|
992
|
-
color: Uo(l.color ? l.color :
|
|
998
|
+
color: Uo(l.color ? l.color : ce.value[u] ? ce.value[u] : qo[u]),
|
|
993
999
|
id: n,
|
|
994
1000
|
scaleLabel: l.scaleLabel || n
|
|
995
1001
|
};
|
|
996
|
-
}) :
|
|
1002
|
+
}) : he.value), Ze = x(() => at.value.map((l, u) => ({
|
|
997
1003
|
absoluteIndex: u,
|
|
998
1004
|
...l,
|
|
999
|
-
series: l.series.map((e) => e +
|
|
1005
|
+
series: l.series.map((e) => e + Ft.value),
|
|
1000
1006
|
absoluteValues: l.series,
|
|
1001
1007
|
segregate: () => _a(l),
|
|
1002
1008
|
isSegregated: ue.value.includes(l.id)
|
|
1003
|
-
}))), Ke =
|
|
1009
|
+
}))), Ke = x(() => at.value.map((l, u) => ({
|
|
1004
1010
|
...l,
|
|
1005
|
-
series: l.series.map((e) => e +
|
|
1011
|
+
series: l.series.map((e) => e + Ft.value),
|
|
1006
1012
|
absoluteValues: l.series
|
|
1007
1013
|
})).filter((l) => !ue.value.includes(l.id)));
|
|
1008
1014
|
function oo() {
|
|
1009
1015
|
let l = 0;
|
|
1010
|
-
|
|
1016
|
+
Rt.value && (l = Array.from(Rt.value.querySelectorAll("text")).reduce((a, i) => {
|
|
1011
1017
|
const o = i.getComputedTextLength();
|
|
1012
1018
|
return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
1013
1019
|
}, 0));
|
|
1014
|
-
const u =
|
|
1020
|
+
const u = qt.value ? qt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + w.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
1015
1021
|
return l + u + e;
|
|
1016
1022
|
}
|
|
1017
1023
|
const Zl = g(0), no = sa((l) => {
|
|
1018
1024
|
Zl.value = l;
|
|
1019
1025
|
}, 100);
|
|
1020
1026
|
Ua((l) => {
|
|
1021
|
-
const u =
|
|
1027
|
+
const u = ht.value;
|
|
1022
1028
|
if (!u) return;
|
|
1023
1029
|
const e = new ResizeObserver((n) => {
|
|
1024
1030
|
no(n[0].contentRect.height);
|
|
1025
1031
|
});
|
|
1026
1032
|
e.observe(u), l(() => e.disconnect());
|
|
1027
|
-
}),
|
|
1033
|
+
}), Xt(() => {
|
|
1028
1034
|
Zl.value = 0;
|
|
1029
1035
|
});
|
|
1030
|
-
const ra =
|
|
1036
|
+
const ra = x(() => {
|
|
1031
1037
|
let l = 0;
|
|
1032
1038
|
Ge.value && (l = Ge.value.getBBox().height);
|
|
1033
1039
|
let u = 0;
|
|
1034
|
-
return
|
|
1035
|
-
}), uo =
|
|
1040
|
+
return ht.value && (u = Zl.value), l + u + w.value.xAxis;
|
|
1041
|
+
}), uo = x(() => he.value.some((l) => l.useProgression)), c = x(() => {
|
|
1036
1042
|
let l = 0;
|
|
1037
1043
|
const u = 36;
|
|
1038
|
-
t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (
|
|
1044
|
+
t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (he.value.length - ue.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + u) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + u : l = oo());
|
|
1039
1045
|
const e = t.value.chart.labels.fontSize * 1.1, n = uo.value ? 24 : 6;
|
|
1040
|
-
if (
|
|
1041
|
-
const o =
|
|
1046
|
+
if (ht.value) {
|
|
1047
|
+
const o = ht.value.getBBox().x;
|
|
1042
1048
|
o < 0 && (l += Math.abs(o));
|
|
1043
1049
|
}
|
|
1044
1050
|
const a = ee.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - n - t.value.chart.padding.left - t.value.chart.padding.right, i = t.value.chart.grid.position === "middle" ? 0 : a / T.value / 2;
|
|
@@ -1052,18 +1058,18 @@ const xn = {
|
|
|
1052
1058
|
scaleLabelX: l,
|
|
1053
1059
|
individualOffsetX: u
|
|
1054
1060
|
};
|
|
1055
|
-
}), io =
|
|
1056
|
-
const l = t.value.chart.grid.position === "middle" ? 1 : 0, u = T.value + l, e =
|
|
1061
|
+
}), io = x(() => {
|
|
1062
|
+
const l = t.value.chart.grid.position === "middle" ? 1 : 0, u = T.value + l, e = Z(c.value.top), n = Z(c.value.bottom);
|
|
1057
1063
|
return Array.from({ length: u }).map((a, i) => {
|
|
1058
1064
|
const o = c.value.width / T.value * i + c.value.left + te.value;
|
|
1059
1065
|
return `M${o},${e} L${o},${n}`;
|
|
1060
1066
|
}).join(" ");
|
|
1061
|
-
}), so =
|
|
1067
|
+
}), so = x(() => {
|
|
1062
1068
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1063
1069
|
const l = c.value.width / T.value, u = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1064
1070
|
return Jl.value.map((n, a) => {
|
|
1065
1071
|
if (!n || !n.text) return null;
|
|
1066
|
-
const i = c.value.left + l * a + l / 2, o = e ?
|
|
1072
|
+
const i = c.value.left + l * a + l / 2, o = e ? Ie.value - (Ie.value === c.value.bottom ? 0 : u / 2) : c.value.bottom, z = e ? Ie.value + u / (Ie.value === c.value.bottom ? 1 : 2) : c.value.bottom + u;
|
|
1067
1073
|
return `M${i},${o} L${i},${z}`;
|
|
1068
1074
|
}).filter(Boolean).join(" ");
|
|
1069
1075
|
});
|
|
@@ -1071,28 +1077,28 @@ const xn = {
|
|
|
1071
1077
|
return !!je?.vnode.props?.onSelectTimeLabel;
|
|
1072
1078
|
}
|
|
1073
1079
|
function ro(l, u, e) {
|
|
1074
|
-
if (!
|
|
1080
|
+
if (!Qt.value) {
|
|
1075
1081
|
const n = document.createElement("canvas");
|
|
1076
|
-
|
|
1082
|
+
Qt.value = n.getContext("2d");
|
|
1077
1083
|
}
|
|
1078
|
-
return
|
|
1084
|
+
return Qt.value.font = `normal ${l}px sans-serif`, Qt.value;
|
|
1079
1085
|
}
|
|
1080
1086
|
function va() {
|
|
1081
|
-
const l =
|
|
1087
|
+
const l = xe.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1082
1088
|
l.length && Array.from(l).forEach((u) => u.style.opacity = "0");
|
|
1083
1089
|
}
|
|
1084
1090
|
function zl(l, u, e, n, a) {
|
|
1085
|
-
e && (
|
|
1091
|
+
e && (et.value[`${l}_${u}_${n}_${a}`] = e);
|
|
1086
1092
|
}
|
|
1087
1093
|
const da = g(!1);
|
|
1088
1094
|
async function ha(l = !1) {
|
|
1089
|
-
await
|
|
1095
|
+
await Yt(), da.value = l, gt.value && (Jt.value = l);
|
|
1090
1096
|
}
|
|
1091
1097
|
function Kl() {
|
|
1092
|
-
|
|
1098
|
+
Ce.value = !Ce.value;
|
|
1093
1099
|
}
|
|
1094
|
-
const
|
|
1095
|
-
const l = Math.max(...
|
|
1100
|
+
const _e = x(() => {
|
|
1101
|
+
const l = Math.max(...he.value.map((u) => na({ data: u.series, threshold: t.value.downsample.threshold }).length));
|
|
1096
1102
|
return lo({
|
|
1097
1103
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1098
1104
|
maxDatapoints: l,
|
|
@@ -1100,18 +1106,18 @@ const xn = {
|
|
|
1100
1106
|
start: p.value.start,
|
|
1101
1107
|
end: p.value.end
|
|
1102
1108
|
});
|
|
1103
|
-
}), fa =
|
|
1104
|
-
const l = Math.max(...
|
|
1109
|
+
}), fa = x(() => {
|
|
1110
|
+
const l = Math.max(...he.value.map((u) => na({ data: u.series, threshold: t.value.downsample.threshold }).length));
|
|
1105
1111
|
return lo({
|
|
1106
1112
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1107
1113
|
maxDatapoints: l,
|
|
1108
1114
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1109
1115
|
start: 0,
|
|
1110
|
-
end:
|
|
1116
|
+
end: ze.value
|
|
1111
1117
|
});
|
|
1112
|
-
}), co =
|
|
1118
|
+
}), co = x(() => {
|
|
1113
1119
|
const l = t.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1114
|
-
return
|
|
1120
|
+
return _e.value.length ? Math.min(l, [...new Set(_e.value.map((u) => u.text))].length) : l;
|
|
1115
1121
|
});
|
|
1116
1122
|
function vo(l) {
|
|
1117
1123
|
let u = null, e = null;
|
|
@@ -1122,41 +1128,41 @@ const xn = {
|
|
|
1122
1128
|
}
|
|
1123
1129
|
const ho = vo((l, u, e, n, a, i, o, z) => {
|
|
1124
1130
|
if (l)
|
|
1125
|
-
return n.length <= 2 ? n.map((
|
|
1131
|
+
return n.length <= 2 ? n.map((F, ae) => ({ text: F, absoluteIndex: ae })) : n.map((F, ae) => ({ text: ae === 0 || ae === n.length - 1 || o != null && ae === o ? F : "", absoluteIndex: ae }));
|
|
1126
1132
|
if (!u)
|
|
1127
|
-
return n.map((H,
|
|
1128
|
-
const
|
|
1129
|
-
if (z <=
|
|
1130
|
-
return n.map((H,
|
|
1133
|
+
return n.map((H, F) => ({ text: H, absoluteIndex: F }));
|
|
1134
|
+
const B = Math.max(1, e || 1);
|
|
1135
|
+
if (z <= B)
|
|
1136
|
+
return n.map((H, F) => ({ text: H, absoluteIndex: F }));
|
|
1131
1137
|
const E = [];
|
|
1132
1138
|
for (let H = 0; H < n.length; H += 1) {
|
|
1133
|
-
const
|
|
1134
|
-
if (!
|
|
1139
|
+
const F = n[H] ?? "";
|
|
1140
|
+
if (!F) continue;
|
|
1135
1141
|
const ae = i + H - 1 >= 0 ? a[i + H - 1] ?? "" : null;
|
|
1136
|
-
|
|
1142
|
+
F !== ae && E.push(H);
|
|
1137
1143
|
}
|
|
1138
1144
|
if (!E.length)
|
|
1139
|
-
return n.map((H,
|
|
1140
|
-
const
|
|
1141
|
-
let D = Math.min(I,
|
|
1142
|
-
for (let H =
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1145
|
+
return n.map((H, F) => ({ text: "", absoluteIndex: F }));
|
|
1146
|
+
const $ = E.length, I = B, J = Math.max(2, Math.min(I - 3, $)), M = Math.min($, I + 3);
|
|
1147
|
+
let D = Math.min(I, $), R = 1 / 0;
|
|
1148
|
+
for (let H = J; H <= M; H += 1) {
|
|
1149
|
+
const F = ($ - 1) % (H - 1), ae = Math.abs(H - I), Oe = F * 10 + ae;
|
|
1150
|
+
Oe < R && (R = Oe, D = H);
|
|
1145
1151
|
}
|
|
1146
1152
|
const re = /* @__PURE__ */ new Set();
|
|
1147
1153
|
if (D <= 1)
|
|
1148
|
-
re.add(E[Math.round((
|
|
1154
|
+
re.add(E[Math.round(($ - 1) / 2)]);
|
|
1149
1155
|
else {
|
|
1150
|
-
const H = (
|
|
1151
|
-
for (let
|
|
1152
|
-
re.add(E[Math.round(
|
|
1156
|
+
const H = ($ - 1) / (D - 1);
|
|
1157
|
+
for (let F = 0; F < D; F += 1)
|
|
1158
|
+
re.add(E[Math.round(F * H)]);
|
|
1153
1159
|
}
|
|
1154
|
-
return n.map((H,
|
|
1155
|
-
text: re.has(
|
|
1156
|
-
absoluteIndex:
|
|
1160
|
+
return n.map((H, F) => ({
|
|
1161
|
+
text: re.has(F) ? H : "",
|
|
1162
|
+
absoluteIndex: F
|
|
1157
1163
|
}));
|
|
1158
|
-
}), Jl =
|
|
1159
|
-
const l = t.value.chart.grid.labels.xAxisLabels, u =
|
|
1164
|
+
}), Jl = x(() => {
|
|
1165
|
+
const l = t.value.chart.grid.labels.xAxisLabels, u = _e.value || [], e = fa.value || [], n = p.value.start ?? 0, a = L.value, i = T.value, o = u.map((B) => B?.text ?? ""), z = e.map((B) => B?.text ?? "");
|
|
1160
1166
|
return ho(
|
|
1161
1167
|
!!l.showOnlyFirstAndLast,
|
|
1162
1168
|
!!l.showOnlyAtModulo,
|
|
@@ -1179,38 +1185,38 @@ const xn = {
|
|
|
1179
1185
|
prefix: n.prefix || t.value.chart.labels.prefix,
|
|
1180
1186
|
suffix: n.suffix || t.value.chart.labels.suffix
|
|
1181
1187
|
}));
|
|
1182
|
-
|
|
1188
|
+
wt("selectTimeLabel", {
|
|
1183
1189
|
datapoint: e,
|
|
1184
1190
|
absoluteIndex: l.absoluteIndex,
|
|
1185
1191
|
label: l.text
|
|
1186
1192
|
});
|
|
1187
1193
|
}
|
|
1188
|
-
const T =
|
|
1189
|
-
const l =
|
|
1194
|
+
const T = x(() => {
|
|
1195
|
+
const l = tt((p.value.end ?? 0) - (p.value.start ?? 0));
|
|
1190
1196
|
return Math.max(1, l);
|
|
1191
1197
|
});
|
|
1192
1198
|
function ga(l) {
|
|
1193
|
-
|
|
1199
|
+
O.value = l;
|
|
1194
1200
|
}
|
|
1195
1201
|
function ba() {
|
|
1196
1202
|
k.value.isStacked = !k.value.isStacked, k.value.isStacked ? k.value.useIndividualScale = !0 : k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1197
1203
|
}
|
|
1198
1204
|
function Ql(l) {
|
|
1199
|
-
|
|
1205
|
+
_t.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1200
1206
|
}
|
|
1201
1207
|
function fo(l, u) {
|
|
1202
|
-
const e =
|
|
1208
|
+
const e = tt(l), n = Array(e).fill(0);
|
|
1203
1209
|
for (let a = 0; a < u.length && a < e; a += 1) n[a] = u[a] ?? 0;
|
|
1204
1210
|
return n;
|
|
1205
1211
|
}
|
|
1206
1212
|
function mo(l) {
|
|
1207
|
-
const u = Math.max(...
|
|
1213
|
+
const u = Math.max(...he.value.map((e) => Se(e.series).length));
|
|
1208
1214
|
return l > u ? u : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
|
|
1209
1215
|
}
|
|
1210
1216
|
async function Tl() {
|
|
1211
|
-
await
|
|
1212
|
-
const { startIndex: l, endIndex: u } = t.value.chart.zoom, e =
|
|
1213
|
-
p.value = { start: 0, end: n }, (l != null || u != null) && e ? (l != null ? (p.value.start = l, e.setStartValue(l)) : (p.value.start = 0, e.setStartValue(0)), u != null ? (p.value.end = u + 1, e.setEndValue(mo(u + 1))) : (p.value.end = n, e.setEndValue(n))) : (p.value = { start: 0, end: n },
|
|
1217
|
+
await Yt(), await Yt();
|
|
1218
|
+
const { startIndex: l, endIndex: u } = t.value.chart.zoom, e = He.value, n = Math.max(...he.value.map((a) => Se(a.series).length));
|
|
1219
|
+
p.value = { start: 0, end: n }, (l != null || u != null) && e ? (l != null ? (p.value.start = l, e.setStartValue(l)) : (p.value.start = 0, e.setStartValue(0)), u != null ? (p.value.end = u + 1, e.setEndValue(mo(u + 1))) : (p.value.end = n, e.setEndValue(n))) : (p.value = { start: 0, end: n }, St.value += 1), qe.value.start = p.value.start, qe.value.end = p.value.end, vt();
|
|
1214
1220
|
}
|
|
1215
1221
|
async function xa() {
|
|
1216
1222
|
await Tl();
|
|
@@ -1218,61 +1224,61 @@ const xn = {
|
|
|
1218
1224
|
function Ve(l) {
|
|
1219
1225
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(l);
|
|
1220
1226
|
}
|
|
1221
|
-
const pa =
|
|
1222
|
-
function
|
|
1227
|
+
const pa = x(() => Te.value.max + Ft.value);
|
|
1228
|
+
function Pt(l) {
|
|
1223
1229
|
return l / (Ve(pa.value) ? pa.value : 1);
|
|
1224
1230
|
}
|
|
1225
|
-
const
|
|
1231
|
+
const Ie = x(() => isNaN(Pt(Ft.value)) ? c.value.bottom : c.value.bottom - c.value.height * Pt(Ft.value));
|
|
1226
1232
|
function ya(l) {
|
|
1227
|
-
const u = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
1228
|
-
return l.value >= 0 ? W(u - l.y <= 0 ? 1e-5 : u - l.y) : W(l.y -
|
|
1233
|
+
const u = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && xt.value >= 0 ? c.value.bottom : Ie.value;
|
|
1234
|
+
return l.value >= 0 ? W(u - l.y <= 0 ? 1e-5 : u - l.y) : W(l.y - Ie.value <= 0 ? 1e-5 : l.y - Ie.value);
|
|
1229
1235
|
}
|
|
1230
1236
|
function ka(l) {
|
|
1231
1237
|
return l.value >= 0 ? W(l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y) : W(l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y);
|
|
1232
1238
|
}
|
|
1233
|
-
const se =
|
|
1234
|
-
const l = Math.max(1, T.value), u = Math.max(1, c.value.width), e = Math.max(1,
|
|
1239
|
+
const se = x(() => {
|
|
1240
|
+
const l = Math.max(1, T.value), u = Math.max(1, c.value.width), e = Math.max(1, at.value.filter((n) => n.type === "bar" && !ue.value.includes(n.id)).length);
|
|
1235
1241
|
return {
|
|
1236
|
-
bar:
|
|
1237
|
-
plot:
|
|
1238
|
-
line:
|
|
1242
|
+
bar: Ue(u, l * e, 1),
|
|
1243
|
+
plot: Ue(u, l, 1),
|
|
1244
|
+
line: Ue(u, l, 1)
|
|
1239
1245
|
};
|
|
1240
1246
|
});
|
|
1241
|
-
function
|
|
1247
|
+
function al() {
|
|
1242
1248
|
return k.value.useIndividualScale && k.value.isStacked ? se.value.line - c.value.width / T.value * 0.1 : se.value.bar;
|
|
1243
1249
|
}
|
|
1244
1250
|
function Il(l) {
|
|
1245
1251
|
return k.value.useIndividualScale && k.value.isStacked ? l.x + c.value.width / T.value * 0.05 : l.x + se.value.bar / 2;
|
|
1246
1252
|
}
|
|
1247
1253
|
function wa(l) {
|
|
1248
|
-
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
1254
|
+
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(Ie.value) ? c.bottom.value : Ie.value;
|
|
1249
1255
|
}
|
|
1250
1256
|
function Sa(l) {
|
|
1251
1257
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1252
1258
|
}
|
|
1253
|
-
const
|
|
1254
|
-
let
|
|
1259
|
+
const wl = g(null);
|
|
1260
|
+
let Ot = 0;
|
|
1255
1261
|
function go(l, u, e) {
|
|
1256
1262
|
return l >= e.left && l <= e.right && u >= e.top && u <= e.bottom;
|
|
1257
1263
|
}
|
|
1258
1264
|
function bo(l) {
|
|
1259
|
-
if (
|
|
1260
|
-
|
|
1261
|
-
const u =
|
|
1262
|
-
|
|
1263
|
-
if (
|
|
1265
|
+
if (Ce.value) return;
|
|
1266
|
+
Ot && cancelAnimationFrame(Ot);
|
|
1267
|
+
const u = Ae.value?.getBoundingClientRect();
|
|
1268
|
+
Ot = requestAnimationFrame(() => {
|
|
1269
|
+
if (Ot = 0, !u || !go(l.clientX, l.clientY, u)) {
|
|
1264
1270
|
jl();
|
|
1265
1271
|
return;
|
|
1266
1272
|
}
|
|
1267
|
-
const n =
|
|
1268
|
-
z >= 0 && z < T.value ?
|
|
1273
|
+
const n = Ae.value.viewBox.baseVal.width / u.width, i = (l.clientX - u.left) * n - c.value.left, o = c.value.width / T.value, z = Math.floor(i / o);
|
|
1274
|
+
z >= 0 && z < T.value ? wl.value !== z && (wl.value = z, Ra(!0, z)) : jl();
|
|
1269
1275
|
});
|
|
1270
1276
|
}
|
|
1271
1277
|
function jl() {
|
|
1272
|
-
|
|
1278
|
+
Ot && (cancelAnimationFrame(Ot), Ot = 0), wl.value = null, Ra(!1, null);
|
|
1273
1279
|
}
|
|
1274
1280
|
function xo() {
|
|
1275
|
-
|
|
1281
|
+
wl.value != null && po(wl.value);
|
|
1276
1282
|
}
|
|
1277
1283
|
function po(l) {
|
|
1278
1284
|
const u = Ke.value.map((e) => ({
|
|
@@ -1281,7 +1287,7 @@ const xn = {
|
|
|
1281
1287
|
color: e.color,
|
|
1282
1288
|
type: e.type
|
|
1283
1289
|
}));
|
|
1284
|
-
|
|
1290
|
+
wt(
|
|
1285
1291
|
"selectX",
|
|
1286
1292
|
{
|
|
1287
1293
|
dataset: u,
|
|
@@ -1291,7 +1297,7 @@ const xn = {
|
|
|
1291
1297
|
), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: u, seriesIndex: l + p.value.start });
|
|
1292
1298
|
}
|
|
1293
1299
|
function yo() {
|
|
1294
|
-
return
|
|
1300
|
+
return Ze.value.map((l) => ({
|
|
1295
1301
|
values: l.absoluteValues,
|
|
1296
1302
|
color: l.color,
|
|
1297
1303
|
name: l.name,
|
|
@@ -1299,8 +1305,8 @@ const xn = {
|
|
|
1299
1305
|
}));
|
|
1300
1306
|
}
|
|
1301
1307
|
async function ko({ scale: l = 2 } = {}) {
|
|
1302
|
-
if (!
|
|
1303
|
-
const { width: u, height: e } =
|
|
1308
|
+
if (!xe.value) return;
|
|
1309
|
+
const { width: u, height: e } = xe.value.getBoundingClientRect(), n = u / e, { imageUri: a, base64: i } = await hn({ domElement: xe.value, base64: !0, img: !0, scale: l });
|
|
1304
1310
|
return {
|
|
1305
1311
|
imageUri: a,
|
|
1306
1312
|
base64: i,
|
|
@@ -1314,25 +1320,25 @@ const xn = {
|
|
|
1314
1320
|
if (ue.value.includes(l.id))
|
|
1315
1321
|
ue.value = ue.value.filter((u) => u !== l.id);
|
|
1316
1322
|
else {
|
|
1317
|
-
if (ue.value.length + 1 ===
|
|
1323
|
+
if (ue.value.length + 1 === at.value.length) return;
|
|
1318
1324
|
ue.value.push(l.id);
|
|
1319
1325
|
}
|
|
1320
|
-
|
|
1326
|
+
wt("selectLegend", Ke.value.map((u) => ({
|
|
1321
1327
|
name: u.name,
|
|
1322
1328
|
values: u.absoluteValues,
|
|
1323
1329
|
color: u.color,
|
|
1324
1330
|
type: u.type
|
|
1325
|
-
}))),
|
|
1331
|
+
}))), Kt.value += 1;
|
|
1326
1332
|
}
|
|
1327
|
-
const wo =
|
|
1333
|
+
const wo = x(() => {
|
|
1328
1334
|
const l = t.value.chart.title.text || "Chart visualization", u = t.value.chart.title.subtitle.text || "";
|
|
1329
1335
|
return `${l}. ${u}`;
|
|
1330
|
-
}), $a =
|
|
1336
|
+
}), $a = x(() => ({
|
|
1331
1337
|
linePlot: T.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
1332
|
-
})), So =
|
|
1338
|
+
})), So = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), _o = x(() => {
|
|
1333
1339
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
1334
1340
|
return t.value.chart.highlightArea.map((u) => {
|
|
1335
|
-
const e = Math.min(u.to,
|
|
1341
|
+
const e = Math.min(u.to, ze.value - 1);
|
|
1336
1342
|
return {
|
|
1337
1343
|
...u,
|
|
1338
1344
|
span: u.from === e ? 1 : e < u.from ? 0 : e - u.from + 1
|
|
@@ -1340,14 +1346,14 @@ const xn = {
|
|
|
1340
1346
|
});
|
|
1341
1347
|
const l = {
|
|
1342
1348
|
...t.value.chart.highlightArea,
|
|
1343
|
-
to: Math.min(t.value.chart.highlightArea.to,
|
|
1349
|
+
to: Math.min(t.value.chart.highlightArea.to, ze.value - 1)
|
|
1344
1350
|
};
|
|
1345
1351
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1346
|
-
}), $o =
|
|
1352
|
+
}), $o = x(() => hl.value ? he.value.map((l, u) => ({
|
|
1347
1353
|
...l,
|
|
1348
|
-
series:
|
|
1354
|
+
series: Se(l.series),
|
|
1349
1355
|
id: `uniqueId_${u}`
|
|
1350
|
-
})) :
|
|
1356
|
+
})) : he.value), Lo = x(() => Ke.value.map((l) => {
|
|
1351
1357
|
const u = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1352
1358
|
return {
|
|
1353
1359
|
id: l.id,
|
|
@@ -1355,7 +1361,7 @@ const xn = {
|
|
|
1355
1361
|
color: l.color,
|
|
1356
1362
|
values: fo(T.value, u)
|
|
1357
1363
|
};
|
|
1358
|
-
})), Mo =
|
|
1364
|
+
})), Mo = x(() => ({
|
|
1359
1365
|
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
1360
1366
|
roundingValues: t.value.table.rounding,
|
|
1361
1367
|
showAverage: !1,
|
|
@@ -1364,7 +1370,7 @@ const xn = {
|
|
|
1364
1370
|
fontFamily: t.value.chart.fontFamily,
|
|
1365
1371
|
prefix: t.value.chart.labels.prefix,
|
|
1366
1372
|
suffix: t.value.chart.labels.suffix,
|
|
1367
|
-
colNames:
|
|
1373
|
+
colNames: _e.value.map((l, u) => t.value.table.useDefaultTimeFormat ? l.text : ol.value(u + p.value.start, t.value.table.timeFormat)),
|
|
1368
1374
|
thead: {
|
|
1369
1375
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
1370
1376
|
color: t.value.table.th.color,
|
|
@@ -1381,8 +1387,8 @@ const xn = {
|
|
|
1381
1387
|
sparkline: {
|
|
1382
1388
|
animation: { show: !1 }
|
|
1383
1389
|
}
|
|
1384
|
-
})), te =
|
|
1385
|
-
const l = Object.groupBy(
|
|
1390
|
+
})), te = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / T.value / 2), Bt = x(() => Zo(Ze.value.filter((l) => !ue.value.includes(l.id)))), A = x(() => {
|
|
1391
|
+
const l = Object.groupBy(Bt.value, (e) => e.scaleLabel), u = {};
|
|
1386
1392
|
for (const [e, n] of Object.entries(l)) {
|
|
1387
1393
|
const a = n.flatMap((i) => i.absoluteValues);
|
|
1388
1394
|
u[e] = {
|
|
@@ -1392,64 +1398,64 @@ const xn = {
|
|
|
1392
1398
|
};
|
|
1393
1399
|
}
|
|
1394
1400
|
return u;
|
|
1395
|
-
}), Co =
|
|
1396
|
-
const l =
|
|
1401
|
+
}), Co = x(() => {
|
|
1402
|
+
const l = at.value.filter((u) => u.type === "bar").filter((u) => !ue.value.includes(u.id)).length;
|
|
1397
1403
|
return c.value.width / T.value / l - Nl.value * l;
|
|
1398
|
-
}), Nl =
|
|
1404
|
+
}), Nl = x(() => se.value.line * t.value.bar.periodGap), Rl = x(() => Math.max(1e-5, al() - (k.value.useIndividualScale && k.value.isStacked ? 0 : Nl.value))), Fl = x(() => Rl.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), La = x(() => {
|
|
1399
1405
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1400
1406
|
const l = $o.value.filter((a) => !ue.value.includes(a.id)), u = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1401
1407
|
for (let a = 0; a < u; a += 1)
|
|
1402
1408
|
e.push(l.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
1403
1409
|
const n = Math.min(...e);
|
|
1404
1410
|
return e.map((a) => a + (n < 0 ? Math.abs(n) : 0));
|
|
1405
|
-
}), pt =
|
|
1411
|
+
}), pt = x(() => Ke.value.map((l) => ({
|
|
1406
1412
|
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
1407
1413
|
shape: l.shape || null,
|
|
1408
1414
|
name: l.name,
|
|
1409
1415
|
color: l.color,
|
|
1410
1416
|
type: l.type,
|
|
1411
|
-
value: l.absoluteValues.find((u, e) => e ===
|
|
1417
|
+
value: l.absoluteValues.find((u, e) => e === L.value),
|
|
1412
1418
|
comments: l.comments || [],
|
|
1413
1419
|
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
1414
1420
|
suffix: l.suffix || t.value.chart.labels.suffix
|
|
1415
|
-
}))), Ma =
|
|
1416
|
-
y: l >= 0 ?
|
|
1421
|
+
}))), Ma = x(() => Te.value.ticks.map((l) => ({
|
|
1422
|
+
y: l >= 0 ? Ie.value - c.value.height * Pt(l) : Ie.value + c.value.height * Pt(Math.abs(l)),
|
|
1417
1423
|
value: l,
|
|
1418
1424
|
prefix: t.value.chart.labels.prefix,
|
|
1419
1425
|
suffix: t.value.chart.labels.suffix
|
|
1420
|
-
}))), Ca =
|
|
1426
|
+
}))), Ca = x(() => {
|
|
1421
1427
|
const l = t.value.chart.annotations;
|
|
1422
|
-
if (!l || !Array.isArray(l) || l.every((
|
|
1428
|
+
if (!l || !Array.isArray(l) || l.every(($) => !$.show)) return [];
|
|
1423
1429
|
const u = l.filter(
|
|
1424
|
-
(
|
|
1430
|
+
($) => $.show && ($.yAxis.yTop != null || $.yAxis.yBottom != null)
|
|
1425
1431
|
);
|
|
1426
1432
|
if (!u.length) return [];
|
|
1427
|
-
const { left: e, right: n } = c.value, a =
|
|
1428
|
-
const I = (
|
|
1433
|
+
const { left: e, right: n } = c.value, a = Ie.value, i = c.value.height, o = Te.value.min, B = Te.value.max - o, E = ($) => {
|
|
1434
|
+
const I = ($ - 0) / B;
|
|
1429
1435
|
return a - I * i;
|
|
1430
1436
|
};
|
|
1431
|
-
return u.map((
|
|
1432
|
-
const { yAxis: { yTop: I, yBottom:
|
|
1437
|
+
return u.map(($) => {
|
|
1438
|
+
const { yAxis: { yTop: I, yBottom: J, label: M } } = $, D = I != null && J != null && I !== J, R = I == null ? null : E(I), re = J == null ? null : E(J), H = ro(M.fontSize);
|
|
1433
1439
|
H.font = `${M.fontSize}px sans-serif`;
|
|
1434
|
-
const
|
|
1435
|
-
let
|
|
1436
|
-
M.textAnchor === "middle" ?
|
|
1437
|
-
const
|
|
1440
|
+
const F = H.measureText(M.text).width, ae = M.fontSize, Oe = (M.position === "start" ? e + M.padding.left : n - M.padding.right) + M.offsetX, Ee = (R != null && re != null ? Math.min(R, re) : R ?? re) - M.fontSize / 3 + M.offsetY - M.padding.top;
|
|
1441
|
+
let U;
|
|
1442
|
+
M.textAnchor === "middle" ? U = Oe - F / 2 - M.padding.left : M.textAnchor === "end" ? U = Oe - F - M.padding.right : U = Oe - M.padding.left;
|
|
1443
|
+
const q = Ee - ae * 0.75 - M.padding.top;
|
|
1438
1444
|
return {
|
|
1439
|
-
show: ![R, re,
|
|
1445
|
+
show: ![R, re, q].includes(NaN),
|
|
1440
1446
|
id: `annotation_y_${Dl()}`,
|
|
1441
1447
|
hasArea: D,
|
|
1442
1448
|
areaHeight: D ? Math.abs(R - re) : 0,
|
|
1443
1449
|
yTop: R,
|
|
1444
1450
|
yBottom: re,
|
|
1445
|
-
config:
|
|
1451
|
+
config: $.yAxis,
|
|
1446
1452
|
x1: e,
|
|
1447
1453
|
x2: n,
|
|
1448
|
-
_text: { x:
|
|
1454
|
+
_text: { x: Oe, y: Ee },
|
|
1449
1455
|
_box: {
|
|
1450
|
-
x:
|
|
1451
|
-
y:
|
|
1452
|
-
width:
|
|
1456
|
+
x: U,
|
|
1457
|
+
y: q,
|
|
1458
|
+
width: F + M.padding.left + M.padding.right,
|
|
1453
1459
|
height: ae + M.padding.top + M.padding.bottom,
|
|
1454
1460
|
fill: M.backgroundColor,
|
|
1455
1461
|
stroke: M.border.stroke,
|
|
@@ -1465,202 +1471,202 @@ const xn = {
|
|
|
1465
1471
|
let a = !!e && !!n && e.value == null && n.value == null || !e && !!n && n.value == null || !!e && !n && e.value == null;
|
|
1466
1472
|
return Ve(l[u].value) && a && t.value.line.cutNullValues;
|
|
1467
1473
|
}
|
|
1468
|
-
const yt =
|
|
1469
|
-
const l =
|
|
1474
|
+
const yt = x(() => {
|
|
1475
|
+
const l = Bt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), u = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (u - 1) : 0, i = c.value.height - a;
|
|
1470
1476
|
return l.filter((o) => o.type === "bar").map((o, z) => {
|
|
1471
1477
|
Ql(o);
|
|
1472
|
-
const
|
|
1473
|
-
o.absoluteValues.filter((
|
|
1474
|
-
const
|
|
1475
|
-
valueMin:
|
|
1478
|
+
const B = A.value[o.scaleLabel].min, E = A.value[o.scaleLabel].max;
|
|
1479
|
+
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - B) / (E - B));
|
|
1480
|
+
const $ = {
|
|
1481
|
+
valueMin: B,
|
|
1476
1482
|
valueMax: E < 0 ? 0 : E
|
|
1477
1483
|
}, I = {
|
|
1478
1484
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1479
|
-
min: o.scaleMin || Math.min(...o.absoluteValues.filter((
|
|
1480
|
-
},
|
|
1481
|
-
const
|
|
1485
|
+
min: o.scaleMin || Math.min(...o.absoluteValues.filter((G) => ![void 0, null].includes(G))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((G) => ![null, void 0].includes(G)))
|
|
1486
|
+
}, J = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, M = 1.0000001, D = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml(I.min, I.max === I.min ? I.max * M : I.max, J) : Et(I.min, I.max === I.min ? I.max * M : I.max, J), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, J) : Et($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, J), re = D.min >= 0 ? 0 : Math.abs(D.min), H = 0, F = D.max + re, ae = R.max + Math.abs(H), Oe = o.stackIndex, nl = u - 1 - Oe, Ee = n ? 1 - o.cumulatedStackRatio : 0, U = n ? i * Ee + e * nl : 0, q = n ? i * o.stackRatio : c.value.height, fe = c.value.bottom - U - q * re / F, De = c.value.bottom - U - q * H / ae, Ne = Ze.value.filter((G) => G.type === "bar").filter((G) => !ue.value.includes(G.id)).length, $l = o.series.map((G, ge) => {
|
|
1487
|
+
const Mt = k.value.useIndividualScale ? (o.absoluteValues[ge] + re) / F : Pt(G), Ht = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / T.value * ge : c.value.left + se.value.bar * z + se.value.bar * ge * Ne - Co.value / 2 - z * Nl.value;
|
|
1482
1488
|
return {
|
|
1483
|
-
yOffset: W(
|
|
1484
|
-
individualHeight: W(
|
|
1485
|
-
x: W(
|
|
1486
|
-
y: c.value.bottom -
|
|
1487
|
-
value: o.absoluteValues[
|
|
1488
|
-
zeroPosition: W(
|
|
1489
|
-
individualMax: W(
|
|
1490
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1489
|
+
yOffset: W(U),
|
|
1490
|
+
individualHeight: W(q),
|
|
1491
|
+
x: W(Ht),
|
|
1492
|
+
y: c.value.bottom - U - q * Mt,
|
|
1493
|
+
value: o.absoluteValues[ge],
|
|
1494
|
+
zeroPosition: W(fe),
|
|
1495
|
+
individualMax: W(F),
|
|
1496
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[ge] || ""
|
|
1491
1497
|
};
|
|
1492
|
-
}),
|
|
1493
|
-
const
|
|
1498
|
+
}), Be = o.absoluteValues.map((G) => R.min >= 0 ? (G - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (G + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Lt = o.series.map((G, ge) => {
|
|
1499
|
+
const Mt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / T.value * ge : c.value.left - se.value.bar / 2 + se.value.bar * z + se.value.bar * ge * Ze.value.filter((Ht) => Ht.type === "bar").filter((Ht) => !ue.value.includes(Ht.id)).length;
|
|
1494
1500
|
return {
|
|
1495
|
-
yOffset: W(
|
|
1496
|
-
individualHeight: W(
|
|
1497
|
-
x: W(
|
|
1498
|
-
y: W(c.value.bottom - W(
|
|
1499
|
-
value: o.absoluteValues[
|
|
1500
|
-
zeroPosition: W(
|
|
1501
|
-
individualMax: W(
|
|
1502
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1501
|
+
yOffset: W(U),
|
|
1502
|
+
individualHeight: W(q),
|
|
1503
|
+
x: W(Mt),
|
|
1504
|
+
y: W(c.value.bottom - W(U) - (W(q) * Be[ge] || 0)),
|
|
1505
|
+
value: o.absoluteValues[ge],
|
|
1506
|
+
zeroPosition: W(fe),
|
|
1507
|
+
individualMax: W(F),
|
|
1508
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[ge] || ""
|
|
1503
1509
|
};
|
|
1504
|
-
}),
|
|
1505
|
-
y:
|
|
1506
|
-
value:
|
|
1510
|
+
}), Q = D.ticks.map((G) => ({
|
|
1511
|
+
y: G >= 0 ? fe - q * (G / F) : fe + q * Math.abs(G) / F,
|
|
1512
|
+
value: G,
|
|
1507
1513
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1508
1514
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1509
1515
|
datapoint: o
|
|
1510
|
-
})),
|
|
1511
|
-
const
|
|
1516
|
+
})), me = R.ticks.map((G) => {
|
|
1517
|
+
const ge = (G - R.min) / (R.max - R.min);
|
|
1512
1518
|
return {
|
|
1513
|
-
y:
|
|
1514
|
-
value:
|
|
1519
|
+
y: G >= 0 ? De - q * ge : De + q * ge,
|
|
1520
|
+
value: G,
|
|
1515
1521
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1516
1522
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1517
1523
|
datapoint: o
|
|
1518
1524
|
};
|
|
1519
1525
|
});
|
|
1520
|
-
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
1526
|
+
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? me : Q, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? De : fe, A.value[o.scaleLabel].individualMax = o.autoScaling ? ae : F, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = U, A.value[o.scaleLabel].individualHeight = q, A.value[o.scaleLabel].autoScaleYLabels = me, A.value[o.scaleLabel].unique = Bt.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1, {
|
|
1521
1527
|
...o,
|
|
1522
|
-
yOffset:
|
|
1523
|
-
autoScaleYLabels:
|
|
1524
|
-
individualHeight:
|
|
1525
|
-
scaleYLabels: o.autoScaling ?
|
|
1528
|
+
yOffset: U,
|
|
1529
|
+
autoScaleYLabels: me,
|
|
1530
|
+
individualHeight: q,
|
|
1531
|
+
scaleYLabels: o.autoScaling ? me : Q,
|
|
1526
1532
|
individualScale: o.autoScaling ? R : D,
|
|
1527
|
-
individualMax: o.autoScaling ? ae :
|
|
1528
|
-
zeroPosition: o.autoScaling ? De :
|
|
1529
|
-
plots: o.autoScaling ?
|
|
1533
|
+
individualMax: o.autoScaling ? ae : F,
|
|
1534
|
+
zeroPosition: o.autoScaling ? De : fe,
|
|
1535
|
+
plots: o.autoScaling ? Lt : $l,
|
|
1530
1536
|
groupId: A.value[o.scaleLabel].groupId
|
|
1531
1537
|
};
|
|
1532
1538
|
});
|
|
1533
|
-
}),
|
|
1534
|
-
const l =
|
|
1539
|
+
}), Pe = x(() => {
|
|
1540
|
+
const l = Bt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), u = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (u - 1) : 0, i = c.value.height - a;
|
|
1535
1541
|
return l.filter((o) => o.type === "line").map((o, z) => {
|
|
1536
1542
|
Ql(o);
|
|
1537
|
-
const
|
|
1538
|
-
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V -
|
|
1539
|
-
const
|
|
1540
|
-
valueMin:
|
|
1543
|
+
const B = A.value[o.scaleLabel].min, E = A.value[o.scaleLabel].max;
|
|
1544
|
+
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - B) / (E - B));
|
|
1545
|
+
const $ = {
|
|
1546
|
+
valueMin: B,
|
|
1541
1547
|
valueMax: E
|
|
1542
1548
|
}, I = {
|
|
1543
1549
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1544
1550
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1545
|
-
},
|
|
1546
|
-
const Ro = k.value.useIndividualScale ? (o.absoluteValues[
|
|
1551
|
+
}, J = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, M = 1.0000001, D = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml(I.min, I.max === I.min ? I.max * M : I.max, J) : Et(I.min, I.max === I.min ? I.max * M : I.max, J), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, J) : Et($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, J), re = D.min >= 0 ? 0 : Math.abs(D.min), H = 0, F = D.max + Math.abs(re), ae = R.max + Math.abs(H), Oe = o.stackIndex, nl = u - 1 - Oe, Ee = n ? 1 - o.cumulatedStackRatio : 0, U = n ? i * Ee + e * nl : 0, q = n ? i * o.stackRatio : c.value.height, fe = c.value.bottom - U - q * re / F, De = c.value.bottom - U - q * H / ae, Ne = o.series.map((V, $e) => {
|
|
1552
|
+
const Ro = k.value.useIndividualScale ? (o.absoluteValues[$e] + Math.abs(re)) / F : Pt(V);
|
|
1547
1553
|
return {
|
|
1548
|
-
x: W(c.value.left + se.value.line / 2 + se.value.line *
|
|
1549
|
-
y: W(c.value.bottom -
|
|
1550
|
-
value: o.absoluteValues[
|
|
1551
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1554
|
+
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1555
|
+
y: W(c.value.bottom - U - q * Ro),
|
|
1556
|
+
value: o.absoluteValues[$e],
|
|
1557
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[$e] || ""
|
|
1552
1558
|
};
|
|
1553
|
-
}),
|
|
1554
|
-
x: W(c.value.left + se.value.line / 2 + se.value.line *
|
|
1555
|
-
y:
|
|
1556
|
-
value: o.absoluteValues[
|
|
1557
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1559
|
+
}), $l = o.absoluteValues.map((V) => R.min >= 0 ? (V - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (V + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Be = o.series.map((V, $e) => [void 0, null].includes(o.absoluteValues[$e]) ? {
|
|
1560
|
+
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1561
|
+
y: fe,
|
|
1562
|
+
value: o.absoluteValues[$e],
|
|
1563
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[$e] || ""
|
|
1558
1564
|
} : {
|
|
1559
|
-
x: W(c.value.left + se.value.line / 2 + se.value.line *
|
|
1560
|
-
y: W(c.value.bottom -
|
|
1561
|
-
value: o.absoluteValues[
|
|
1562
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1563
|
-
}),
|
|
1564
|
-
y: V >= 0 ?
|
|
1565
|
+
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1566
|
+
y: W(c.value.bottom - U - (q * $l[$e] || 0)),
|
|
1567
|
+
value: o.absoluteValues[$e],
|
|
1568
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[$e] || ""
|
|
1569
|
+
}), Lt = t.value.line.cutNullValues ? Ka(Ne) : Xl(Ne.filter((V) => V.value !== null)), Q = t.value.line.cutNullValues ? Ka(Be) : Xl(Be.filter((V) => V.value !== null)), me = t.value.line.cutNullValues ? Ja(Ne) : Yl(Ne.filter((V) => V.value !== null)), G = t.value.line.cutNullValues ? Ja(Be) : Yl(Be.filter((V) => V.value !== null)), ge = D.ticks.map((V) => ({
|
|
1570
|
+
y: V >= 0 ? fe - q * (V / F) : fe + q * Math.abs(V) / F,
|
|
1565
1571
|
value: V,
|
|
1566
1572
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1567
1573
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1568
1574
|
datapoint: o
|
|
1569
|
-
})),
|
|
1570
|
-
const
|
|
1575
|
+
})), Mt = R.ticks.map((V) => {
|
|
1576
|
+
const $e = (V - R.min) / (R.max - R.min);
|
|
1571
1577
|
return {
|
|
1572
|
-
y: V >= 0 ? De -
|
|
1578
|
+
y: V >= 0 ? De - q * $e : De + q * $e,
|
|
1573
1579
|
value: V,
|
|
1574
1580
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1575
1581
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1576
1582
|
datapoint: o
|
|
1577
1583
|
};
|
|
1578
1584
|
});
|
|
1579
|
-
A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
1580
|
-
const
|
|
1585
|
+
A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Mt : ge, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? De : fe, A.value[o.scaleLabel].individualMax = o.autoScaling ? ae : F, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = U, A.value[o.scaleLabel].individualHeight = q, A.value[o.scaleLabel].autoScaleYLabels = Mt, A.value[o.scaleLabel].unique = Bt.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1;
|
|
1586
|
+
const Ht = k.value.useIndividualScale ? o.autoScaling ? De : fe : Ie.value, Ll = Math.max(Math.max(o.autoScaling ? De : ge.at(-1) ? ge.at(-1).y : 0, c.value.top), Ht);
|
|
1581
1587
|
return {
|
|
1582
1588
|
...o,
|
|
1583
|
-
yOffset:
|
|
1584
|
-
autoScaleYLabels:
|
|
1585
|
-
individualHeight:
|
|
1586
|
-
scaleYLabels: o.autoScaling ?
|
|
1589
|
+
yOffset: U,
|
|
1590
|
+
autoScaleYLabels: Mt,
|
|
1591
|
+
individualHeight: q,
|
|
1592
|
+
scaleYLabels: o.autoScaling ? Mt : ge,
|
|
1587
1593
|
individualScale: o.autoScaling ? R : D,
|
|
1588
|
-
individualMax: o.autoScaling ? ae :
|
|
1589
|
-
zeroPosition: o.autoScaling ? De :
|
|
1590
|
-
curve: o.autoScaling ?
|
|
1591
|
-
plots: o.autoScaling ?
|
|
1594
|
+
individualMax: o.autoScaling ? ae : F,
|
|
1595
|
+
zeroPosition: o.autoScaling ? De : fe,
|
|
1596
|
+
curve: o.autoScaling ? Q : Lt,
|
|
1597
|
+
plots: o.autoScaling ? Be : Ne,
|
|
1592
1598
|
area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? Qa(
|
|
1593
|
-
o.autoScaling ?
|
|
1594
|
-
|
|
1599
|
+
o.autoScaling ? Be : Ne,
|
|
1600
|
+
Ll
|
|
1595
1601
|
) : ja(
|
|
1596
|
-
o.autoScaling ?
|
|
1597
|
-
|
|
1598
|
-
) : t.value.line.cutNullValues ? Qa(
|
|
1602
|
+
o.autoScaling ? Be.filter((V) => V.value !== null) : Ne.filter((V) => V.value !== null),
|
|
1603
|
+
Ll
|
|
1604
|
+
) : t.value.line.cutNullValues ? Qa(Ne, Ll) : ja(Ne.filter((V) => V.value !== null), Ll) : "",
|
|
1599
1605
|
curveAreas: o.useArea ? Ko(
|
|
1600
|
-
o.autoScaling ? t.value.line.cutNullValues ?
|
|
1601
|
-
|
|
1606
|
+
o.autoScaling ? t.value.line.cutNullValues ? Be : Be.filter((V) => V.value !== null) : t.value.line.cutNullValues ? Ne : Ne.filter((V) => V.value !== null),
|
|
1607
|
+
Ll,
|
|
1602
1608
|
t.value.line.cutNullValues
|
|
1603
1609
|
) : [],
|
|
1604
|
-
straight: o.autoScaling ?
|
|
1610
|
+
straight: o.autoScaling ? G : me,
|
|
1605
1611
|
groupId: A.value[o.scaleLabel].groupId
|
|
1606
1612
|
};
|
|
1607
1613
|
});
|
|
1608
|
-
}),
|
|
1609
|
-
const l =
|
|
1614
|
+
}), ot = x(() => {
|
|
1615
|
+
const l = Bt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), u = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (u - 1) : 0, i = c.value.height - a;
|
|
1610
1616
|
return l.filter((o) => o.type === "plot").map((o) => {
|
|
1611
1617
|
Ql(o);
|
|
1612
|
-
const z = A.value[o.scaleLabel].min,
|
|
1613
|
-
o.absoluteValues.filter((
|
|
1618
|
+
const z = A.value[o.scaleLabel].min, B = A.value[o.scaleLabel].max;
|
|
1619
|
+
o.absoluteValues.filter((Q) => ![null, void 0].includes(Q)).map((Q) => (Q - z) / (B - z));
|
|
1614
1620
|
const E = {
|
|
1615
1621
|
valueMin: z,
|
|
1616
|
-
valueMax:
|
|
1617
|
-
},
|
|
1622
|
+
valueMax: B
|
|
1623
|
+
}, $ = {
|
|
1618
1624
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1619
1625
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
1620
|
-
}, I = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
1621
|
-
const
|
|
1626
|
+
}, I = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, J = 1.0000001, M = Et($.min, $.max === $.min ? $.max * J : $.max, I), D = Et(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * J : E.valueMax, I), R = M.min >= 0 ? 0 : Math.abs(M.min), re = 0, H = M.max + R, F = D.max + Math.abs(re), ae = o.stackIndex, Oe = u - 1 - ae, nl = n ? 1 - o.cumulatedStackRatio : 0, Ee = n ? i * nl + e * Oe : 0, U = n ? i * o.stackRatio : c.value.height, q = c.value.bottom - Ee - U * R / H, fe = c.value.bottom - Ee - U * re / F, De = o.series.map((Q, me) => {
|
|
1627
|
+
const G = k.value.useIndividualScale ? (o.absoluteValues[me] + Math.abs(R)) / H : Pt(Q);
|
|
1622
1628
|
return {
|
|
1623
|
-
x: W(c.value.left + se.value.plot / 2 + se.value.plot *
|
|
1624
|
-
y: W(c.value.bottom - Ee -
|
|
1625
|
-
value: o.absoluteValues[
|
|
1626
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1629
|
+
x: W(c.value.left + se.value.plot / 2 + se.value.plot * me),
|
|
1630
|
+
y: W(c.value.bottom - Ee - U * G),
|
|
1631
|
+
value: o.absoluteValues[me],
|
|
1632
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[me] || ""
|
|
1627
1633
|
};
|
|
1628
|
-
}),
|
|
1629
|
-
x: W(c.value.left + se.value.plot / 2 + se.value.plot *
|
|
1630
|
-
y: W(c.value.bottom - Ee - (
|
|
1631
|
-
value: o.absoluteValues[
|
|
1632
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1633
|
-
})),
|
|
1634
|
-
y:
|
|
1635
|
-
value:
|
|
1634
|
+
}), Ne = o.absoluteValues.map((Q) => D.min >= 0 ? (Q - Math.abs(D.min)) / (D.max - Math.abs(D.min)) : (Q + Math.abs(D.min)) / (D.max + Math.abs(D.min))), $l = o.series.map((Q, me) => ({
|
|
1635
|
+
x: W(c.value.left + se.value.plot / 2 + se.value.plot * me),
|
|
1636
|
+
y: W(c.value.bottom - Ee - (U * Ne[me] || 0)),
|
|
1637
|
+
value: o.absoluteValues[me],
|
|
1638
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[me] || ""
|
|
1639
|
+
})), Be = M.ticks.map((Q) => ({
|
|
1640
|
+
y: Q >= 0 ? q - U * (Q / H) : q + U * Math.abs(Q) / H,
|
|
1641
|
+
value: Q,
|
|
1636
1642
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1637
1643
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1638
1644
|
datapoint: o
|
|
1639
|
-
})),
|
|
1640
|
-
const
|
|
1645
|
+
})), Lt = D.ticks.map((Q) => {
|
|
1646
|
+
const me = (Q - D.min) / (D.max - D.min);
|
|
1641
1647
|
return {
|
|
1642
|
-
y:
|
|
1643
|
-
value:
|
|
1648
|
+
y: Q >= 0 ? fe - U * me : fe + U * me,
|
|
1649
|
+
value: Q,
|
|
1644
1650
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1645
1651
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1646
1652
|
datapoint: o
|
|
1647
1653
|
};
|
|
1648
1654
|
});
|
|
1649
|
-
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
1655
|
+
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Lt : Be, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : q, A.value[o.scaleLabel].individualMax = o.autoScaling ? F : H, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = Ee, A.value[o.scaleLabel].individualHeight = U, A.value[o.scaleLabel].autoScaleYLabels = Lt, A.value[o.scaleLabel].unique = Bt.value.filter((Q) => Q.scaleLabel === o.scaleLabel).length === 1, {
|
|
1650
1656
|
...o,
|
|
1651
1657
|
yOffset: Ee,
|
|
1652
|
-
autoScaleYLabels:
|
|
1653
|
-
individualHeight:
|
|
1654
|
-
scaleYLabels: o.autoScaling ?
|
|
1658
|
+
autoScaleYLabels: Lt,
|
|
1659
|
+
individualHeight: U,
|
|
1660
|
+
scaleYLabels: o.autoScaling ? Lt : Be,
|
|
1655
1661
|
individualScale: o.autoScaling ? D : M,
|
|
1656
|
-
individualMax: o.autoScaling ?
|
|
1657
|
-
zeroPosition: o.autoScaling ?
|
|
1658
|
-
plots: o.autoScaling ?
|
|
1662
|
+
individualMax: o.autoScaling ? F : H,
|
|
1663
|
+
zeroPosition: o.autoScaling ? fe : q,
|
|
1664
|
+
plots: o.autoScaling ? $l : De,
|
|
1659
1665
|
groupId: A.value[o.scaleLabel].groupId
|
|
1660
1666
|
};
|
|
1661
1667
|
});
|
|
1662
|
-
}),
|
|
1663
|
-
const l =
|
|
1668
|
+
}), Sl = x(() => {
|
|
1669
|
+
const l = Pe.value.map((i) => ({
|
|
1664
1670
|
name: i.name,
|
|
1665
1671
|
color: i.color,
|
|
1666
1672
|
scale: i.individualScale,
|
|
@@ -1683,7 +1689,7 @@ const xn = {
|
|
|
1683
1689
|
id: i.id,
|
|
1684
1690
|
yOffset: i.yOffset || 0,
|
|
1685
1691
|
individualHeight: i.individualHeight || c.value.height
|
|
1686
|
-
})), e =
|
|
1692
|
+
})), e = ot.value.map((i) => ({
|
|
1687
1693
|
name: i.name,
|
|
1688
1694
|
color: i.color,
|
|
1689
1695
|
scale: i.individualScale,
|
|
@@ -1699,16 +1705,16 @@ const xn = {
|
|
|
1699
1705
|
return n.flatMap((i, o) => {
|
|
1700
1706
|
let z = 0;
|
|
1701
1707
|
z = k.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
|
|
1702
|
-
const
|
|
1708
|
+
const B = k.value.useIndividualScale && !k.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
|
|
1703
1709
|
return {
|
|
1704
1710
|
unique: i.unique,
|
|
1705
1711
|
id: i.id,
|
|
1706
1712
|
groupId: i.groupId,
|
|
1707
1713
|
scaleLabel: i.scaleLabel,
|
|
1708
|
-
name:
|
|
1714
|
+
name: Le(
|
|
1709
1715
|
t.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
1710
|
-
|
|
1711
|
-
|
|
1716
|
+
B,
|
|
1717
|
+
B,
|
|
1712
1718
|
i
|
|
1713
1719
|
),
|
|
1714
1720
|
color: k.value.useIndividualScale && !k.value.isStacked ? i.unique ? i.color : i.groupColor : i.color,
|
|
@@ -1722,22 +1728,22 @@ const xn = {
|
|
|
1722
1728
|
}))
|
|
1723
1729
|
};
|
|
1724
1730
|
});
|
|
1725
|
-
}), za =
|
|
1731
|
+
}), za = x(() => {
|
|
1726
1732
|
const l = t.value.line.interLine || {}, u = l.pairs || [], e = l.colors || [];
|
|
1727
1733
|
if (!u.length) return [];
|
|
1728
1734
|
const n = [];
|
|
1729
1735
|
return u.forEach((a, i) => {
|
|
1730
1736
|
const [o, z] = Array.isArray(a) ? a : [a.a, a.b];
|
|
1731
1737
|
if (!o || !z) return;
|
|
1732
|
-
const
|
|
1733
|
-
if (!
|
|
1734
|
-
const
|
|
1738
|
+
const B = Pe.value.find((M) => M.name === o), E = Pe.value.find((M) => M.name === z);
|
|
1739
|
+
if (!B || !E || B.type !== "line" || E.type !== "line") return;
|
|
1740
|
+
const $ = e?.[i]?.[0] ?? B.color, I = e?.[i]?.[1] ?? E.color;
|
|
1735
1741
|
Jo({
|
|
1736
|
-
lineA:
|
|
1742
|
+
lineA: B.plots,
|
|
1737
1743
|
lineB: E.plots,
|
|
1738
|
-
smoothA: !!
|
|
1744
|
+
smoothA: !!B.smooth,
|
|
1739
1745
|
smoothB: !!E.smooth,
|
|
1740
|
-
colorLineA:
|
|
1746
|
+
colorLineA: $,
|
|
1741
1747
|
colorLineB: I,
|
|
1742
1748
|
sampleStepPx: 2,
|
|
1743
1749
|
cutNullValues: t.value.line.cutNullValues
|
|
@@ -1745,15 +1751,15 @@ const xn = {
|
|
|
1745
1751
|
n.push({ ...M, key: `inter_${o}_${z}_${i}_${D}` });
|
|
1746
1752
|
});
|
|
1747
1753
|
}), n;
|
|
1748
|
-
}), Ta =
|
|
1754
|
+
}), Ta = x(() => ({
|
|
1749
1755
|
datapoint: pt.value,
|
|
1750
|
-
seriesIndex:
|
|
1751
|
-
series:
|
|
1756
|
+
seriesIndex: L.value,
|
|
1757
|
+
series: Ze.value,
|
|
1752
1758
|
bars: yt.value,
|
|
1753
|
-
lines:
|
|
1754
|
-
plots:
|
|
1759
|
+
lines: Pe.value,
|
|
1760
|
+
plots: ot.value,
|
|
1755
1761
|
config: t.value
|
|
1756
|
-
})),
|
|
1762
|
+
})), ol = x(() => {
|
|
1757
1763
|
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, u = cn({
|
|
1758
1764
|
useUTC: l.useUTC,
|
|
1759
1765
|
locale: vn[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
@@ -1763,14 +1769,14 @@ const xn = {
|
|
|
1763
1769
|
const i = t.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1764
1770
|
return i == null ? "" : u.formatDate(new Date(i), n);
|
|
1765
1771
|
};
|
|
1766
|
-
}), ea =
|
|
1767
|
-
text:
|
|
1772
|
+
}), ea = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((u, e) => ({
|
|
1773
|
+
text: ol.value(e, t.value.chart.zoom.timeFormat),
|
|
1768
1774
|
absoluteIndex: e
|
|
1769
|
-
}))),
|
|
1775
|
+
}))), Pl = g(!1), Ia = x(() => {
|
|
1770
1776
|
let l = "", u = "";
|
|
1771
1777
|
if (t.value.chart.zoom.preview.enable)
|
|
1772
1778
|
return { left: l, right: u };
|
|
1773
|
-
|
|
1779
|
+
Pl.value = !1;
|
|
1774
1780
|
const e = t.value.chart.zoom.customFormat;
|
|
1775
1781
|
if (Wl(e))
|
|
1776
1782
|
try {
|
|
@@ -1783,41 +1789,41 @@ const xn = {
|
|
|
1783
1789
|
seriesIndex: p.value.end - 1,
|
|
1784
1790
|
datapoint: pt.value
|
|
1785
1791
|
});
|
|
1786
|
-
typeof n == "string" && typeof a == "string" && (l = n, u = a,
|
|
1792
|
+
typeof n == "string" && typeof a == "string" && (l = n, u = a, Pl.value = !0);
|
|
1787
1793
|
} catch {
|
|
1788
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
1794
|
+
console.warn("Custom format cannot be applied on zoom labels."), Pl.value = !1;
|
|
1789
1795
|
}
|
|
1790
|
-
if (!
|
|
1791
|
-
l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ea.value[p.value.start]?.text || "" :
|
|
1796
|
+
if (!Pl.value) {
|
|
1797
|
+
l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ea.value[p.value.start]?.text || "" : _e.value[0]?.text || "";
|
|
1792
1798
|
const n = Math.max(p.value.start, p.value.end - 1);
|
|
1793
|
-
u = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ea.value[n]?.text || "" :
|
|
1799
|
+
u = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ea.value[n]?.text || "" : _e.value.at(-1)?.text || "";
|
|
1794
1800
|
}
|
|
1795
1801
|
return { left: l, right: u };
|
|
1796
|
-
}), Ao =
|
|
1802
|
+
}), Ao = x(() => {
|
|
1797
1803
|
let l = "", u = pt.value.map((a) => a.value).filter((a) => Hl(a) && a !== null).reduce((a, i) => Math.abs(a) + Math.abs(i), 0);
|
|
1798
|
-
const e =
|
|
1804
|
+
const e = _e.value[L.value], n = t.value.chart.tooltip.customFormat;
|
|
1799
1805
|
if (Wl(n) && Qo(() => n({
|
|
1800
|
-
absoluteIndex:
|
|
1801
|
-
seriesIndex:
|
|
1806
|
+
absoluteIndex: L.value + p.value.start,
|
|
1807
|
+
seriesIndex: L.value,
|
|
1802
1808
|
datapoint: pt.value,
|
|
1803
|
-
series:
|
|
1809
|
+
series: Ze.value,
|
|
1804
1810
|
bars: yt.value,
|
|
1805
|
-
lines:
|
|
1806
|
-
plots:
|
|
1811
|
+
lines: Pe.value,
|
|
1812
|
+
plots: ot.value,
|
|
1807
1813
|
config: t.value
|
|
1808
1814
|
})))
|
|
1809
1815
|
return n({
|
|
1810
|
-
absoluteIndex:
|
|
1811
|
-
seriesIndex:
|
|
1816
|
+
absoluteIndex: L.value + p.value.start,
|
|
1817
|
+
seriesIndex: L.value,
|
|
1812
1818
|
datapoint: pt.value,
|
|
1813
|
-
series:
|
|
1819
|
+
series: Ze.value,
|
|
1814
1820
|
bars: yt.value,
|
|
1815
|
-
lines:
|
|
1816
|
-
plots:
|
|
1821
|
+
lines: Pe.value,
|
|
1822
|
+
plots: ot.value,
|
|
1817
1823
|
config: t.value
|
|
1818
1824
|
});
|
|
1819
1825
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
1820
|
-
const a =
|
|
1826
|
+
const a = ol.value(L.value + p.value.start, t.value.chart.tooltip.timeFormat);
|
|
1821
1827
|
l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
|
|
1822
1828
|
}
|
|
1823
1829
|
return pt.value.forEach((a) => {
|
|
@@ -1825,10 +1831,10 @@ const xn = {
|
|
|
1825
1831
|
let i = "", o = "";
|
|
1826
1832
|
switch (we.value[a.type]) {
|
|
1827
1833
|
case "bar":
|
|
1828
|
-
i = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
1834
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${cl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${cl.pattern ? `url(#pattern_${Y.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1829
1835
|
break;
|
|
1830
1836
|
case "line":
|
|
1831
|
-
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${
|
|
1837
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${dt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${dt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${dt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${dt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${dt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${eo({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
1832
1838
|
break;
|
|
1833
1839
|
case "plot":
|
|
1834
1840
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
@@ -1840,27 +1846,27 @@ const xn = {
|
|
|
1840
1846
|
break;
|
|
1841
1847
|
}
|
|
1842
1848
|
if (a.shape === "triangle") {
|
|
1843
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1849
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1844
1850
|
break;
|
|
1845
1851
|
}
|
|
1846
1852
|
if (a.shape === "square") {
|
|
1847
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1853
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1848
1854
|
break;
|
|
1849
1855
|
}
|
|
1850
1856
|
if (a.shape === "diamond") {
|
|
1851
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1857
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1852
1858
|
break;
|
|
1853
1859
|
}
|
|
1854
1860
|
if (a.shape === "pentagon") {
|
|
1855
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1861
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1856
1862
|
break;
|
|
1857
1863
|
}
|
|
1858
1864
|
if (a.shape === "hexagon") {
|
|
1859
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1865
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1860
1866
|
break;
|
|
1861
1867
|
}
|
|
1862
1868
|
}
|
|
1863
|
-
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ?
|
|
1869
|
+
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? Le(
|
|
1864
1870
|
a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1865
1871
|
a.value,
|
|
1866
1872
|
Qe({
|
|
@@ -1874,34 +1880,34 @@ const xn = {
|
|
|
1874
1880
|
v: W(Math.abs(a.value) / u * 100),
|
|
1875
1881
|
s: "%",
|
|
1876
1882
|
r: t.value.chart.tooltip.roundingPercentage
|
|
1877
|
-
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(p.value.start, p.value.end)[
|
|
1883
|
+
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(p.value.start, p.value.end)[L.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(p.value.start, p.value.end)[L.value]}</div>`);
|
|
1878
1884
|
}
|
|
1879
1885
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
|
|
1880
|
-
}), Na =
|
|
1881
|
-
if (
|
|
1886
|
+
}), Na = x(() => {
|
|
1887
|
+
if (at.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1882
1888
|
const l = Ke.value.map((e) => ({
|
|
1883
1889
|
label: e.name,
|
|
1884
1890
|
color: e.color,
|
|
1885
1891
|
type: e.type
|
|
1886
1892
|
})), u = [];
|
|
1887
|
-
return
|
|
1888
|
-
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
1893
|
+
return _e.value.forEach((e, n) => {
|
|
1894
|
+
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [ol.value(n + p.value.start, t.value.table.timeFormat)];
|
|
1889
1895
|
Ke.value.forEach((i) => {
|
|
1890
1896
|
a.push(Ve(i.absoluteValues[n]) ? Number(i.absoluteValues[n].toFixed(t.value.table.rounding)) : "");
|
|
1891
1897
|
}), u.push(a);
|
|
1892
1898
|
}), { head: l, body: u };
|
|
1893
|
-
}),
|
|
1899
|
+
}), Ol = x(() => {
|
|
1894
1900
|
const l = t.value.table.showSum;
|
|
1895
1901
|
let u = [""].concat(Ke.value.map((i) => i.name));
|
|
1896
1902
|
l && (u = u.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>'));
|
|
1897
1903
|
let e = [];
|
|
1898
1904
|
for (let i = 0; i < T.value; i += 1) {
|
|
1899
|
-
const o = Ke.value.map((z) => z.absoluteValues[i] ?? 0).reduce((z,
|
|
1905
|
+
const o = Ke.value.map((z) => z.absoluteValues[i] ?? 0).reduce((z, B) => z + B, 0);
|
|
1900
1906
|
e.push(
|
|
1901
1907
|
[
|
|
1902
|
-
t.value.table.useDefaultTimeFormat ?
|
|
1908
|
+
t.value.table.useDefaultTimeFormat ? _e.value[i].text ?? "-" : ol.value(i + p.value.start, t.value.table.timeFormat)
|
|
1903
1909
|
].concat(Ke.value.map(
|
|
1904
|
-
(z) =>
|
|
1910
|
+
(z) => Le(
|
|
1905
1911
|
z.type === "line" ? t.value.line.labels.formatter : z.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1906
1912
|
z.absoluteValues[i] ?? 0,
|
|
1907
1913
|
Qe({
|
|
@@ -1934,63 +1940,63 @@ const xn = {
|
|
|
1934
1940
|
l ? l(i) : on({ csvContent: i, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
1935
1941
|
}
|
|
1936
1942
|
function Ra(l, u = null) {
|
|
1937
|
-
|
|
1943
|
+
Cl.value = l;
|
|
1938
1944
|
const e = Ke.value.map((n) => ({
|
|
1939
1945
|
name: n.name,
|
|
1940
1946
|
value: [null, void 0, NaN].includes(n.absoluteValues[u]) ? null : n.absoluteValues[u],
|
|
1941
1947
|
color: n.color,
|
|
1942
1948
|
type: n.type
|
|
1943
1949
|
}));
|
|
1944
|
-
l ? (
|
|
1950
|
+
l ? (L.value = u, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: u + p.value.start })) : (L.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: u + p.value.start }));
|
|
1945
1951
|
}
|
|
1946
|
-
function
|
|
1952
|
+
function Fa() {
|
|
1947
1953
|
k.value.showTable = !k.value.showTable;
|
|
1948
1954
|
}
|
|
1949
|
-
function
|
|
1955
|
+
function Pa() {
|
|
1950
1956
|
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
1951
1957
|
}
|
|
1952
|
-
function
|
|
1958
|
+
function Oa() {
|
|
1953
1959
|
k.value.showTooltip = !k.value.showTooltip;
|
|
1954
1960
|
}
|
|
1955
1961
|
function Ba(l) {
|
|
1956
|
-
|
|
1962
|
+
Re.value = l, fl.value += 1;
|
|
1957
1963
|
}
|
|
1958
1964
|
function Ha() {
|
|
1959
1965
|
if (!t.value.responsiveProportionalSizing) {
|
|
1960
|
-
|
|
1966
|
+
w.value.dataLabels = t.value.chart.grid.labels.fontSize, w.value.yAxis = t.value.chart.grid.labels.axis.fontSize, w.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, w.value.plotLabels = t.value.chart.labels.fontSize, Fe.value.plot = t.value.plot.radius, Fe.value.line = t.value.line.radius;
|
|
1961
1967
|
return;
|
|
1962
1968
|
}
|
|
1963
|
-
|
|
1969
|
+
w.value.dataLabels = ul({
|
|
1964
1970
|
relator: ye.value,
|
|
1965
1971
|
adjuster: 400,
|
|
1966
1972
|
source: t.value.chart.grid.labels.fontSize,
|
|
1967
1973
|
threshold: 10,
|
|
1968
1974
|
fallback: 10
|
|
1969
|
-
}),
|
|
1975
|
+
}), w.value.yAxis = ul({
|
|
1970
1976
|
relator: ee.value,
|
|
1971
1977
|
adjuster: 1e3,
|
|
1972
1978
|
source: t.value.chart.grid.labels.axis.fontSize,
|
|
1973
1979
|
threshold: 10,
|
|
1974
1980
|
fallback: 10
|
|
1975
|
-
}),
|
|
1981
|
+
}), w.value.xAxis = ul({
|
|
1976
1982
|
relator: ee.value,
|
|
1977
1983
|
adjuster: 1e3,
|
|
1978
1984
|
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1979
1985
|
threshold: 10,
|
|
1980
1986
|
fallback: 10
|
|
1981
|
-
}),
|
|
1987
|
+
}), w.value.plotLabels = ul({
|
|
1982
1988
|
relator: ee.value,
|
|
1983
1989
|
adjuster: 800,
|
|
1984
1990
|
source: t.value.chart.labels.fontSize,
|
|
1985
1991
|
threshold: 10,
|
|
1986
1992
|
fallback: 10
|
|
1987
|
-
}),
|
|
1993
|
+
}), Fe.value.plot = ul({
|
|
1988
1994
|
relator: ee.value,
|
|
1989
1995
|
adjuster: 800,
|
|
1990
1996
|
source: t.value.plot.radius,
|
|
1991
1997
|
threshold: 1,
|
|
1992
1998
|
fallback: 1
|
|
1993
|
-
}),
|
|
1999
|
+
}), Fe.value.line = ul({
|
|
1994
2000
|
relator: ee.value,
|
|
1995
2001
|
adjuster: 800,
|
|
1996
2002
|
source: t.value.line.radius,
|
|
@@ -2002,46 +2008,46 @@ const xn = {
|
|
|
2002
2008
|
to(d.dataset) ? (oa({
|
|
2003
2009
|
componentName: "VueUiXy",
|
|
2004
2010
|
type: "dataset",
|
|
2005
|
-
debug:
|
|
2006
|
-
}),
|
|
2011
|
+
debug: _t.value
|
|
2012
|
+
}), ct.value = !0) : d.dataset.forEach((u, e) => {
|
|
2007
2013
|
[null, void 0].includes(u.name) && (oa({
|
|
2008
2014
|
componentName: "VueUiXy",
|
|
2009
2015
|
type: "datasetSerieAttribute",
|
|
2010
2016
|
property: "name (string)",
|
|
2011
2017
|
index: e,
|
|
2012
|
-
debug:
|
|
2013
|
-
}),
|
|
2014
|
-
}),
|
|
2018
|
+
debug: _t.value
|
|
2019
|
+
}), ct.value = !0);
|
|
2020
|
+
}), _t.value && d.dataset.forEach((u) => {
|
|
2015
2021
|
u.series.forEach((e, n) => {
|
|
2016
2022
|
Hl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2017
2023
|
-----> The serie '${u.name}' contains the value '${e}' at index ${n}.
|
|
2018
2024
|
'${e}' was converted to null to allow the chart to display.`);
|
|
2019
2025
|
});
|
|
2020
|
-
}), to(d.dataset) || (
|
|
2026
|
+
}), to(d.dataset) || (ct.value = t.value.loading), gt.value = t.value.chart.userOptions.showOnChartHover, gl.value = t.value.chart.userOptions.keepStateOnChartLeave, Jt.value = !t.value.chart.userOptions.showOnChartHover, pl();
|
|
2021
2027
|
const l = 12;
|
|
2022
2028
|
if (t.value.responsive) {
|
|
2023
|
-
const e =
|
|
2024
|
-
|
|
2029
|
+
const e = xe.value.parentNode;
|
|
2030
|
+
Me.value && (Me.value.unobserve(dl.value), Me.value.disconnect());
|
|
2025
2031
|
const { height: n, width: a } = e.getBoundingClientRect();
|
|
2026
2032
|
let i = null, o = 0;
|
|
2027
2033
|
t.value.chart.title.show && pe.value && (i = pe.value, o = i.getBoundingClientRect().height);
|
|
2028
|
-
let z = null,
|
|
2029
|
-
t.value.chart.zoom.show &&
|
|
2030
|
-
let E = null,
|
|
2031
|
-
t.value.chart.legend.show &&
|
|
2034
|
+
let z = null, B = 0;
|
|
2035
|
+
t.value.chart.zoom.show && ze.value > 6 && jt.value && He.value && He.value.$el && (z = He.value.$el, B = z.getBoundingClientRect().height);
|
|
2036
|
+
let E = null, $ = 0;
|
|
2037
|
+
t.value.chart.legend.show && st.value && (E = st.value, $ = E.getBoundingClientRect().height);
|
|
2032
2038
|
let I = 0;
|
|
2033
|
-
|
|
2034
|
-
let
|
|
2035
|
-
|
|
2039
|
+
It.value && (I = It.value.getBoundingClientRect().height);
|
|
2040
|
+
let J = 0;
|
|
2041
|
+
Nt.value && (J = Nt.value.getBoundingClientRect().height), ye.value = n - o - $ - B - I - J - l, ee.value = a, rt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ye.value < 0 ? 10 : ye.value}`, Ha();
|
|
2036
2042
|
const M = new ResizeObserver((D) => {
|
|
2037
2043
|
for (const R of D)
|
|
2038
|
-
t.value.chart.title.show && pe.value ? o = pe.value.getBoundingClientRect().height : o = 0,
|
|
2039
|
-
ye.value = R.contentRect.height - o -
|
|
2044
|
+
t.value.chart.title.show && pe.value ? o = pe.value.getBoundingClientRect().height : o = 0, He.value && He.value.$el ? B = He.value.$el.getBoundingClientRect().height : B = 0, st.value ? $ = st.value.getBoundingClientRect().height : $ = 0, It.value ? I = It.value.getBoundingClientRect().height : I = 0, Nt.value ? J = Nt.value.getBoundingClientRect().height : J = 0, requestAnimationFrame(() => {
|
|
2045
|
+
ye.value = R.contentRect.height - o - $ - B - I - J - l, ee.value = R.contentBoxSize[0].inlineSize, rt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ye.value < 0 ? 10 : ye.value}`, Ha();
|
|
2040
2046
|
});
|
|
2041
2047
|
});
|
|
2042
|
-
|
|
2048
|
+
Me.value = M, dl.value = e, M.observe(e);
|
|
2043
2049
|
} else
|
|
2044
|
-
ye.value = t.value.chart.height, ee.value = t.value.chart.width,
|
|
2050
|
+
ye.value = t.value.chart.height, ee.value = t.value.chart.width, w.value.dataLabels = t.value.chart.grid.labels.fontSize, w.value.yAxis = t.value.chart.grid.labels.axis.fontSize, w.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, w.value.plotLabels = t.value.chart.labels.fontSize, Fe.value.plot = t.value.plot.radius, Fe.value.line = t.value.line.radius, rt.value = `0 0 ${ee.value} ${ye.value}`;
|
|
2045
2051
|
}
|
|
2046
2052
|
function Va(l) {
|
|
2047
2053
|
ke.value = {
|
|
@@ -2049,34 +2055,34 @@ const xn = {
|
|
|
2049
2055
|
y: l.clientY
|
|
2050
2056
|
};
|
|
2051
2057
|
}
|
|
2052
|
-
|
|
2058
|
+
il(() => {
|
|
2053
2059
|
la(), Tl(), document.addEventListener("mousemove", Va, { passive: !0 }), document.addEventListener("scroll", va, { passive: !0 });
|
|
2054
|
-
}),
|
|
2055
|
-
document.removeEventListener("scroll", va, { passive: !0 }), document.removeEventListener("mousemove", Va, { passive: !0 }),
|
|
2060
|
+
}), Xt(() => {
|
|
2061
|
+
document.removeEventListener("scroll", va, { passive: !0 }), document.removeEventListener("mousemove", Va, { passive: !0 }), Me.value && (Me.value.unobserve(dl.value), Me.value.disconnect(), Me.value = null);
|
|
2056
2062
|
}), dn({
|
|
2057
|
-
timeLabelsEls:
|
|
2058
|
-
timeLabels:
|
|
2063
|
+
timeLabelsEls: ht,
|
|
2064
|
+
timeLabels: _e,
|
|
2059
2065
|
slicer: p,
|
|
2060
2066
|
configRef: t,
|
|
2061
2067
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
2062
2068
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
2063
|
-
isAutoSize:
|
|
2069
|
+
isAutoSize: X,
|
|
2064
2070
|
height: ye,
|
|
2065
2071
|
width: ee,
|
|
2066
2072
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2067
2073
|
});
|
|
2068
|
-
const Bl = g(!1), Ea = g(null), Da = g(200), zo =
|
|
2069
|
-
() =>
|
|
2074
|
+
const Bl = g(!1), Ea = g(null), Da = g(200), zo = x(
|
|
2075
|
+
() => L.value ?? O.value ?? 0
|
|
2070
2076
|
);
|
|
2071
2077
|
function To() {
|
|
2072
2078
|
const l = Math.ceil(Da.value || 200);
|
|
2073
2079
|
return Math.min(Math.max(l, 1), 200);
|
|
2074
2080
|
}
|
|
2075
2081
|
function Io() {
|
|
2076
|
-
const l = To(), u = 200, e = Math.max(1, T.value), n = c.value.width / e, i = c.value.left + zo.value * n + n / 2 - l / 2 - (u - l) / 2, o = c.value.left - (u - l) / 2, z = c.value.right - (u + l) / 2,
|
|
2077
|
-
return W(
|
|
2082
|
+
const l = To(), u = 200, e = Math.max(1, T.value), n = c.value.width / e, i = c.value.left + zo.value * n + n / 2 - l / 2 - (u - l) / 2, o = c.value.left - (u - l) / 2, z = c.value.right - (u + l) / 2, B = Math.max(o, Math.min(i, z));
|
|
2083
|
+
return W(B);
|
|
2078
2084
|
}
|
|
2079
|
-
|
|
2085
|
+
il(() => {
|
|
2080
2086
|
let l = null, u = null;
|
|
2081
2087
|
const e = (i) => {
|
|
2082
2088
|
cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
@@ -2087,22 +2093,22 @@ const xn = {
|
|
|
2087
2093
|
o && e(o.contentRect.width || 200);
|
|
2088
2094
|
}), a = Ua((i) => {
|
|
2089
2095
|
const o = Ea.value;
|
|
2090
|
-
l && l !== o && (n.unobserve(l), l = null), o && o !== l && (
|
|
2096
|
+
l && l !== o && (n.unobserve(l), l = null), o && o !== l && (Yt(() => {
|
|
2091
2097
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2092
2098
|
}), n.observe(o), l = o), i(() => {
|
|
2093
2099
|
l && (n.unobserve(l), l = null);
|
|
2094
2100
|
});
|
|
2095
2101
|
});
|
|
2096
|
-
|
|
2102
|
+
Xt(() => {
|
|
2097
2103
|
try {
|
|
2098
2104
|
l && n.unobserve(l), n.disconnect(), a();
|
|
2099
2105
|
} catch {
|
|
2100
2106
|
}
|
|
2101
2107
|
});
|
|
2102
2108
|
});
|
|
2103
|
-
const No =
|
|
2104
|
-
if ([null, void 0].includes(
|
|
2105
|
-
const l = (
|
|
2109
|
+
const No = x(() => {
|
|
2110
|
+
if ([null, void 0].includes(L.value) && [null, void 0].includes(O.value)) return "";
|
|
2111
|
+
const l = (L.value != null ? L.value : 0) || (O.value != null ? O.value : 0), u = t.value.chart.timeTag.customFormat;
|
|
2106
2112
|
if (Bl.value = !1, Wl(u))
|
|
2107
2113
|
try {
|
|
2108
2114
|
const e = u({
|
|
@@ -2110,8 +2116,8 @@ const xn = {
|
|
|
2110
2116
|
seriesIndex: l,
|
|
2111
2117
|
datapoint: pt.value,
|
|
2112
2118
|
bars: yt.value,
|
|
2113
|
-
lines:
|
|
2114
|
-
plots:
|
|
2119
|
+
lines: Pe.value,
|
|
2120
|
+
plots: ot.value,
|
|
2115
2121
|
config: t.value
|
|
2116
2122
|
});
|
|
2117
2123
|
if (typeof e == "string")
|
|
@@ -2120,19 +2126,19 @@ const xn = {
|
|
|
2120
2126
|
console.warn("Custom format cannot be applied on timeTag."), Bl.value = !1;
|
|
2121
2127
|
}
|
|
2122
2128
|
if (!Bl.value)
|
|
2123
|
-
return [null, void 0].includes(
|
|
2129
|
+
return [null, void 0].includes(_e.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? ol.value(l + p.value.start, t.value.chart.timeTag.timeFormat) : _e.value[l].text;
|
|
2124
2130
|
});
|
|
2125
|
-
|
|
2126
|
-
Array.isArray(l) && l.length > 0 && (
|
|
2131
|
+
it(() => d.dataset, (l) => {
|
|
2132
|
+
Array.isArray(l) && l.length > 0 && (ct.value = !1), ze.value = Math.max(...he.value.map((u) => Se(u.series).length)), p.value = {
|
|
2127
2133
|
start: 0,
|
|
2128
|
-
end:
|
|
2129
|
-
},
|
|
2130
|
-
}, { deep: !0 }),
|
|
2131
|
-
|
|
2134
|
+
end: ze.value
|
|
2135
|
+
}, St.value += 1, Kt.value += 1, vt();
|
|
2136
|
+
}, { deep: !0 }), it(() => d.config, (l) => {
|
|
2137
|
+
oe.value || (t.value = xl()), la(), ml.value += 1, Zt.value += 1, pl(), vt();
|
|
2132
2138
|
}, { deep: !0 });
|
|
2133
2139
|
const aa = g(!1);
|
|
2134
2140
|
function Wa() {
|
|
2135
|
-
const l =
|
|
2141
|
+
const l = xe.value?.parentNode;
|
|
2136
2142
|
if (!l) {
|
|
2137
2143
|
aa.value = !1;
|
|
2138
2144
|
return;
|
|
@@ -2140,27 +2146,27 @@ const xn = {
|
|
|
2140
2146
|
const u = l.getBoundingClientRect();
|
|
2141
2147
|
aa.value = u.width > 2 && u.height > 2;
|
|
2142
2148
|
}
|
|
2143
|
-
|
|
2149
|
+
il(() => {
|
|
2144
2150
|
Wa();
|
|
2145
2151
|
const l = new ResizeObserver(() => {
|
|
2146
|
-
Wa(), aa.value && (la(),
|
|
2152
|
+
Wa(), aa.value && (la(), vt(), Tl());
|
|
2147
2153
|
});
|
|
2148
|
-
|
|
2149
|
-
}),
|
|
2150
|
-
|
|
2154
|
+
xe.value?.parentNode && l.observe(xe.value.parentNode);
|
|
2155
|
+
}), it(t, () => {
|
|
2156
|
+
pl();
|
|
2151
2157
|
}, { immediate: !0 });
|
|
2152
|
-
const
|
|
2158
|
+
const _l = x(() => {
|
|
2153
2159
|
const l = t.value.table.useDialog && !t.value.showTable, u = k.value.showTable;
|
|
2154
2160
|
return {
|
|
2155
|
-
component: l ?
|
|
2161
|
+
component: l ? Ut : bn,
|
|
2156
2162
|
title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
|
|
2157
2163
|
props: l ? {
|
|
2158
2164
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
2159
2165
|
color: t.value.table.th.color,
|
|
2160
2166
|
headerColor: t.value.table.th.color,
|
|
2161
2167
|
headerBg: t.value.table.th.backgroundColor,
|
|
2162
|
-
isFullscreen:
|
|
2163
|
-
fullscreenParent:
|
|
2168
|
+
isFullscreen: Re.value,
|
|
2169
|
+
fullscreenParent: xe.value,
|
|
2164
2170
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
2165
2171
|
} : {
|
|
2166
2172
|
hideDetails: !0,
|
|
@@ -2179,8 +2185,8 @@ const xn = {
|
|
|
2179
2185
|
}
|
|
2180
2186
|
};
|
|
2181
2187
|
});
|
|
2182
|
-
|
|
2183
|
-
t.value.showTable || (l && t.value.table.useDialog &&
|
|
2188
|
+
it(() => k.value.showTable, (l) => {
|
|
2189
|
+
t.value.showTable || (l && t.value.table.useDialog && bt.value ? bt.value.open() : bt.value && bt.value.close && bt.value.close());
|
|
2184
2190
|
});
|
|
2185
2191
|
function Xa() {
|
|
2186
2192
|
k.value.showTable = !1, j.value && j.value.setTableIconState(!1);
|
|
@@ -2188,36 +2194,36 @@ const xn = {
|
|
|
2188
2194
|
return Gl({
|
|
2189
2195
|
getData: yo,
|
|
2190
2196
|
getImage: ko,
|
|
2191
|
-
generatePdf:
|
|
2192
|
-
generateImage:
|
|
2197
|
+
generatePdf: h,
|
|
2198
|
+
generateImage: S,
|
|
2193
2199
|
generateCsv: ta,
|
|
2194
2200
|
toggleStack: ba,
|
|
2195
|
-
toggleTable:
|
|
2196
|
-
toggleLabels:
|
|
2197
|
-
toggleTooltip:
|
|
2201
|
+
toggleTable: Fa,
|
|
2202
|
+
toggleLabels: Pa,
|
|
2203
|
+
toggleTooltip: Oa,
|
|
2198
2204
|
toggleAnnotator: Kl,
|
|
2199
2205
|
toggleFullscreen: Ba
|
|
2200
2206
|
}), (l, u) => (s(), r("div", {
|
|
2201
|
-
id: `vue-ui-xy_${
|
|
2202
|
-
class: Xe(`vue-ui-xy ${
|
|
2207
|
+
id: `vue-ui-xy_${Y.value}`,
|
|
2208
|
+
class: Xe(`vue-ui-xy ${Re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2203
2209
|
ref_key: "chart",
|
|
2204
|
-
ref:
|
|
2205
|
-
style:
|
|
2210
|
+
ref: xe,
|
|
2211
|
+
style: _(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
|
|
2206
2212
|
onMouseenter: u[10] || (u[10] = () => ha(!0)),
|
|
2207
2213
|
onMouseleave: u[11] || (u[11] = () => ha(!1))
|
|
2208
2214
|
}, [
|
|
2209
|
-
t.value.chart.userOptions.buttons.annotator &&
|
|
2215
|
+
t.value.chart.userOptions.buttons.annotator && Ae.value ? (s(), Je(v(rl), {
|
|
2210
2216
|
key: 0,
|
|
2211
|
-
svgRef:
|
|
2217
|
+
svgRef: Ae.value,
|
|
2212
2218
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2213
2219
|
color: t.value.chart.color,
|
|
2214
|
-
active:
|
|
2220
|
+
active: Ce.value,
|
|
2215
2221
|
onClose: Kl
|
|
2216
2222
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
2217
2223
|
So.value ? (s(), r("div", {
|
|
2218
2224
|
key: 1,
|
|
2219
2225
|
ref_key: "noTitle",
|
|
2220
|
-
ref:
|
|
2226
|
+
ref: Nt,
|
|
2221
2227
|
class: "vue-data-ui-no-title-space",
|
|
2222
2228
|
style: "height:36px; width: 100%; background:transparent"
|
|
2223
2229
|
}, null, 512)) : f("", !0),
|
|
@@ -2226,7 +2232,7 @@ const xn = {
|
|
|
2226
2232
|
ref_key: "chartTitle",
|
|
2227
2233
|
ref: pe,
|
|
2228
2234
|
class: "vue-ui-xy-title",
|
|
2229
|
-
style:
|
|
2235
|
+
style: _(`font-family:${t.value.chart.fontFamily}`)
|
|
2230
2236
|
}, [
|
|
2231
2237
|
(s(), Je(fn, {
|
|
2232
2238
|
key: `title_${ml.value}`,
|
|
@@ -2243,17 +2249,17 @@ const xn = {
|
|
|
2243
2249
|
}, null, 8, ["config"]))
|
|
2244
2250
|
], 4)) : f("", !0),
|
|
2245
2251
|
y("div", {
|
|
2246
|
-
id: `legend-top-${
|
|
2252
|
+
id: `legend-top-${Y.value}`
|
|
2247
2253
|
}, null, 8, En),
|
|
2248
2254
|
t.value.chart.userOptions.show && (gl.value || Jt.value) ? (s(), Je(v(de), {
|
|
2249
2255
|
ref_key: "userOptionsRef",
|
|
2250
2256
|
ref: j,
|
|
2251
|
-
key: `user_options_${
|
|
2257
|
+
key: `user_options_${fl.value}`,
|
|
2252
2258
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2253
2259
|
color: t.value.chart.color,
|
|
2254
|
-
isPrinting: v(
|
|
2255
|
-
isImaging: v(
|
|
2256
|
-
uid:
|
|
2260
|
+
isPrinting: v(ie),
|
|
2261
|
+
isImaging: v(m),
|
|
2262
|
+
uid: Y.value,
|
|
2257
2263
|
hasTooltip: t.value.chart.userOptions.buttons.tooltip && t.value.chart.tooltip.show,
|
|
2258
2264
|
hasPdf: t.value.chart.userOptions.buttons.pdf,
|
|
2259
2265
|
hasXls: t.value.chart.userOptions.buttons.csv,
|
|
@@ -2263,108 +2269,108 @@ const xn = {
|
|
|
2263
2269
|
hasStack: N.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
|
|
2264
2270
|
hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
|
|
2265
2271
|
isStacked: k.value.isStacked,
|
|
2266
|
-
isFullscreen:
|
|
2272
|
+
isFullscreen: Re.value,
|
|
2267
2273
|
chartElement: l.$refs.chart,
|
|
2268
2274
|
position: t.value.chart.userOptions.position,
|
|
2269
2275
|
isTooltip: k.value.showTooltip,
|
|
2270
2276
|
titles: { ...t.value.chart.userOptions.buttonTitles },
|
|
2271
2277
|
hasAnnotator: t.value.chart.userOptions.buttons.annotator,
|
|
2272
|
-
isAnnotation:
|
|
2278
|
+
isAnnotation: Ce.value,
|
|
2273
2279
|
callbacks: t.value.chart.userOptions.callbacks,
|
|
2274
2280
|
tableDialog: t.value.table.useDialog,
|
|
2275
2281
|
printScale: t.value.chart.userOptions.print.scale,
|
|
2276
2282
|
onToggleFullscreen: Ba,
|
|
2277
|
-
onGeneratePdf: v(
|
|
2283
|
+
onGeneratePdf: v(h),
|
|
2278
2284
|
onGenerateCsv: ta,
|
|
2279
|
-
onGenerateImage: v(
|
|
2280
|
-
onToggleTable:
|
|
2281
|
-
onToggleLabels:
|
|
2285
|
+
onGenerateImage: v(S),
|
|
2286
|
+
onToggleTable: Fa,
|
|
2287
|
+
onToggleLabels: Pa,
|
|
2282
2288
|
onToggleStack: ba,
|
|
2283
|
-
onToggleTooltip:
|
|
2289
|
+
onToggleTooltip: Oa,
|
|
2284
2290
|
onToggleAnnotator: Kl,
|
|
2285
|
-
style:
|
|
2291
|
+
style: _({
|
|
2286
2292
|
visibility: gl.value ? Jt.value ? "visible" : "hidden" : "visible"
|
|
2287
2293
|
})
|
|
2288
2294
|
}, qa({ _: 2 }, [
|
|
2289
2295
|
l.$slots.menuIcon ? {
|
|
2290
2296
|
name: "menuIcon",
|
|
2291
|
-
fn:
|
|
2292
|
-
|
|
2297
|
+
fn: be(({ isOpen: e, color: n }) => [
|
|
2298
|
+
K(l.$slots, "menuIcon", At(zt({ isOpen: e, color: n })), void 0, !0)
|
|
2293
2299
|
]),
|
|
2294
2300
|
key: "0"
|
|
2295
2301
|
} : void 0,
|
|
2296
2302
|
l.$slots.optionTooltip ? {
|
|
2297
2303
|
name: "optionTooltip",
|
|
2298
|
-
fn:
|
|
2299
|
-
|
|
2304
|
+
fn: be(() => [
|
|
2305
|
+
K(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
2300
2306
|
]),
|
|
2301
2307
|
key: "1"
|
|
2302
2308
|
} : void 0,
|
|
2303
2309
|
l.$slots.optionPdf ? {
|
|
2304
2310
|
name: "optionPdf",
|
|
2305
|
-
fn:
|
|
2306
|
-
|
|
2311
|
+
fn: be(() => [
|
|
2312
|
+
K(l.$slots, "optionPdf", {}, void 0, !0)
|
|
2307
2313
|
]),
|
|
2308
2314
|
key: "2"
|
|
2309
2315
|
} : void 0,
|
|
2310
2316
|
l.$slots.optionCsv ? {
|
|
2311
2317
|
name: "optionCsv",
|
|
2312
|
-
fn:
|
|
2313
|
-
|
|
2318
|
+
fn: be(() => [
|
|
2319
|
+
K(l.$slots, "optionCsv", {}, void 0, !0)
|
|
2314
2320
|
]),
|
|
2315
2321
|
key: "3"
|
|
2316
2322
|
} : void 0,
|
|
2317
2323
|
l.$slots.optionImg ? {
|
|
2318
2324
|
name: "optionImg",
|
|
2319
|
-
fn:
|
|
2320
|
-
|
|
2325
|
+
fn: be(() => [
|
|
2326
|
+
K(l.$slots, "optionImg", {}, void 0, !0)
|
|
2321
2327
|
]),
|
|
2322
2328
|
key: "4"
|
|
2323
2329
|
} : void 0,
|
|
2324
2330
|
l.$slots.optionTable ? {
|
|
2325
2331
|
name: "optionTable",
|
|
2326
|
-
fn:
|
|
2327
|
-
|
|
2332
|
+
fn: be(() => [
|
|
2333
|
+
K(l.$slots, "optionTable", {}, void 0, !0)
|
|
2328
2334
|
]),
|
|
2329
2335
|
key: "5"
|
|
2330
2336
|
} : void 0,
|
|
2331
2337
|
l.$slots.optionLabels ? {
|
|
2332
2338
|
name: "optionLabels",
|
|
2333
|
-
fn:
|
|
2334
|
-
|
|
2339
|
+
fn: be(() => [
|
|
2340
|
+
K(l.$slots, "optionLabels", {}, void 0, !0)
|
|
2335
2341
|
]),
|
|
2336
2342
|
key: "6"
|
|
2337
2343
|
} : void 0,
|
|
2338
2344
|
l.$slots.optionStack ? {
|
|
2339
2345
|
name: "optionStack",
|
|
2340
|
-
fn:
|
|
2341
|
-
|
|
2346
|
+
fn: be(() => [
|
|
2347
|
+
K(l.$slots, "optionStack", {}, void 0, !0)
|
|
2342
2348
|
]),
|
|
2343
2349
|
key: "7"
|
|
2344
2350
|
} : void 0,
|
|
2345
2351
|
l.$slots.optionFullscreen ? {
|
|
2346
2352
|
name: "optionFullscreen",
|
|
2347
|
-
fn:
|
|
2348
|
-
|
|
2353
|
+
fn: be(({ toggleFullscreen: e, isFullscreen: n }) => [
|
|
2354
|
+
K(l.$slots, "optionFullscreen", At(zt({ toggleFullscreen: e, isFullscreen: n })), void 0, !0)
|
|
2349
2355
|
]),
|
|
2350
2356
|
key: "8"
|
|
2351
2357
|
} : void 0,
|
|
2352
2358
|
l.$slots.optionAnnotator ? {
|
|
2353
2359
|
name: "optionAnnotator",
|
|
2354
|
-
fn:
|
|
2355
|
-
|
|
2360
|
+
fn: be(({ toggleAnnotator: e, isAnnotator: n }) => [
|
|
2361
|
+
K(l.$slots, "optionAnnotator", At(zt({ toggleAnnotator: e, isAnnotator: n })), void 0, !0)
|
|
2356
2362
|
]),
|
|
2357
2363
|
key: "9"
|
|
2358
2364
|
} : void 0
|
|
2359
2365
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
2360
2366
|
(s(), r("svg", {
|
|
2361
2367
|
ref_key: "svgRef",
|
|
2362
|
-
ref:
|
|
2368
|
+
ref: Ae,
|
|
2363
2369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2364
|
-
class: Xe([{ "vue-data-ui-fullscreen--on":
|
|
2370
|
+
class: Xe([{ "vue-data-ui-fullscreen--on": Re.value, "vue-data-ui-fulscreen--off": !Re.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2365
2371
|
width: "100%",
|
|
2366
|
-
viewBox:
|
|
2367
|
-
style:
|
|
2372
|
+
viewBox: rt.value,
|
|
2373
|
+
style: _({
|
|
2368
2374
|
background: "transparent",
|
|
2369
2375
|
color: t.value.chart.color,
|
|
2370
2376
|
fontFamily: t.value.chart.fontFamily
|
|
@@ -2382,7 +2388,7 @@ const xn = {
|
|
|
2382
2388
|
ref: ql,
|
|
2383
2389
|
class: "vue-data-ui-g"
|
|
2384
2390
|
}, [
|
|
2385
|
-
|
|
2391
|
+
Wt(v(Gt)),
|
|
2386
2392
|
l.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
2387
2393
|
key: 0,
|
|
2388
2394
|
x: c.value.left + te.value < 0 ? 0 : c.value.left + te.value,
|
|
@@ -2393,7 +2399,7 @@ const xn = {
|
|
|
2393
2399
|
pointerEvents: "none"
|
|
2394
2400
|
}
|
|
2395
2401
|
}, [
|
|
2396
|
-
|
|
2402
|
+
K(l.$slots, "chart-background", {}, void 0, !0)
|
|
2397
2403
|
], 8, Wn)) : f("", !0),
|
|
2398
2404
|
T.value > 0 ? (s(), r("g", Xn, [
|
|
2399
2405
|
y("g", Yn, [
|
|
@@ -2403,49 +2409,49 @@ const xn = {
|
|
|
2403
2409
|
"stroke-width": "1",
|
|
2404
2410
|
x1: c.value.left + te.value,
|
|
2405
2411
|
x2: c.value.right - te.value,
|
|
2406
|
-
y1: v(
|
|
2407
|
-
y2: v(
|
|
2412
|
+
y1: v(Z)(c.value.bottom),
|
|
2413
|
+
y2: v(Z)(c.value.bottom),
|
|
2408
2414
|
"stroke-linecap": "round",
|
|
2409
2415
|
style: { animation: "none !important" }
|
|
2410
2416
|
}, null, 8, Gn)) : f("", !0),
|
|
2411
|
-
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (s(!0), r(
|
|
2412
|
-
e.id ===
|
|
2417
|
+
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (s(!0), r(b, { key: 2 }, C(Sl.value, (e) => (s(), r("g", null, [
|
|
2418
|
+
e.id === P.value && e.yLabels.length ? (s(!0), r(b, { key: 0 }, C(e.yLabels, (n) => (s(), r("line", {
|
|
2413
2419
|
x1: c.value.left + te.value,
|
|
2414
2420
|
x2: c.value.right - te.value,
|
|
2415
|
-
y1: v(
|
|
2416
|
-
y2: v(
|
|
2421
|
+
y1: v(Z)(n.y),
|
|
2422
|
+
y2: v(Z)(n.y),
|
|
2417
2423
|
stroke: e.color,
|
|
2418
2424
|
"stroke-width": 0.5,
|
|
2419
2425
|
"stroke-linecap": "round",
|
|
2420
2426
|
style: { animation: "none !important" }
|
|
2421
|
-
}, null, 8, Kn))), 256)) : e.yLabels.length ? (s(!0), r(
|
|
2427
|
+
}, null, 8, Kn))), 256)) : e.yLabels.length ? (s(!0), r(b, { key: 1 }, C(e.yLabels, (n) => (s(), r("line", {
|
|
2422
2428
|
x1: c.value.left + te.value,
|
|
2423
2429
|
x2: c.value.right - te.value,
|
|
2424
|
-
y1: v(
|
|
2425
|
-
y2: v(
|
|
2430
|
+
y1: v(Z)(n.y),
|
|
2431
|
+
y2: v(Z)(n.y),
|
|
2426
2432
|
stroke: t.value.chart.grid.stroke,
|
|
2427
2433
|
"stroke-width": 0.5,
|
|
2428
2434
|
"stroke-linecap": "round",
|
|
2429
2435
|
style: { animation: "none !important" }
|
|
2430
2436
|
}, null, 8, Jn))), 256)) : f("", !0)
|
|
2431
|
-
]))), 256)) : f("", !0) : (s(), r(
|
|
2437
|
+
]))), 256)) : f("", !0) : (s(), r(b, { key: 1 }, [
|
|
2432
2438
|
t.value.chart.grid.labels.yAxis.showBaseline ? (s(), r("line", {
|
|
2433
2439
|
key: 0,
|
|
2434
2440
|
stroke: t.value.chart.grid.stroke,
|
|
2435
2441
|
"stroke-width": "1",
|
|
2436
2442
|
x1: c.value.left + te.value,
|
|
2437
2443
|
x2: c.value.left + te.value,
|
|
2438
|
-
y1: v(
|
|
2439
|
-
y2: v(
|
|
2444
|
+
y1: v(Z)(c.value.top),
|
|
2445
|
+
y2: v(Z)(c.value.bottom),
|
|
2440
2446
|
"stroke-linecap": "round",
|
|
2441
2447
|
style: { animation: "none !important" }
|
|
2442
2448
|
}, null, 8, Un)) : f("", !0),
|
|
2443
2449
|
t.value.chart.grid.showHorizontalLines ? (s(), r("g", qn, [
|
|
2444
|
-
(s(!0), r(
|
|
2450
|
+
(s(!0), r(b, null, C(Ma.value, (e) => (s(), r("line", {
|
|
2445
2451
|
x1: c.value.left + te.value,
|
|
2446
2452
|
x2: c.value.right,
|
|
2447
|
-
y1: v(
|
|
2448
|
-
y2: v(
|
|
2453
|
+
y1: v(Z)(e.y),
|
|
2454
|
+
y2: v(Z)(e.y),
|
|
2449
2455
|
stroke: t.value.chart.grid.stroke,
|
|
2450
2456
|
"stroke-width": 0.5,
|
|
2451
2457
|
"stroke-linecap": "round",
|
|
@@ -2472,51 +2478,56 @@ const xn = {
|
|
|
2472
2478
|
}, null, 8, tu)
|
|
2473
2479
|
])) : f("", !0)
|
|
2474
2480
|
]),
|
|
2475
|
-
(s(!0), r(
|
|
2481
|
+
(s(!0), r(b, null, C(yt.value, (e, n) => (s(), r("defs", {
|
|
2476
2482
|
key: `def_rect_${n}`
|
|
2477
2483
|
}, [
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
"
|
|
2486
|
-
},
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
"
|
|
2504
|
-
},
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2484
|
+
l.$slots["bar-gradient"] ? K(l.$slots, "bar-gradient", Vt({
|
|
2485
|
+
key: 0,
|
|
2486
|
+
ref_for: !0
|
|
2487
|
+
}, { series: e, positiveId: `rectGradient_pos_${n}_${Y.value}`, negativeId: `rectGradient_neg_${n}_${Y.value}` }), void 0, !0) : (s(), r(b, { key: 1 }, [
|
|
2488
|
+
y("linearGradient", {
|
|
2489
|
+
id: `rectGradient_pos_${n}_${Y.value}`,
|
|
2490
|
+
x2: "0%",
|
|
2491
|
+
y2: "100%"
|
|
2492
|
+
}, [
|
|
2493
|
+
y("stop", {
|
|
2494
|
+
offset: "0%",
|
|
2495
|
+
"stop-color": e.color
|
|
2496
|
+
}, null, 8, au),
|
|
2497
|
+
y("stop", {
|
|
2498
|
+
offset: "62%",
|
|
2499
|
+
"stop-color": `${v(Dt)(e.color, 0.02)}`
|
|
2500
|
+
}, null, 8, ou),
|
|
2501
|
+
y("stop", {
|
|
2502
|
+
offset: "100%",
|
|
2503
|
+
"stop-color": `${v(Dt)(e.color, 0.05)}`
|
|
2504
|
+
}, null, 8, nu)
|
|
2505
|
+
], 8, lu),
|
|
2506
|
+
y("linearGradient", {
|
|
2507
|
+
id: `rectGradient_neg_${n}_${Y.value}`,
|
|
2508
|
+
x2: "0%",
|
|
2509
|
+
y2: "100%"
|
|
2510
|
+
}, [
|
|
2511
|
+
y("stop", {
|
|
2512
|
+
offset: "0%",
|
|
2513
|
+
"stop-color": `${v(Dt)(e.color, 0.05)}`
|
|
2514
|
+
}, null, 8, iu),
|
|
2515
|
+
y("stop", {
|
|
2516
|
+
offset: "38%",
|
|
2517
|
+
"stop-color": `${v(Dt)(e.color, 0.02)}`
|
|
2518
|
+
}, null, 8, su),
|
|
2519
|
+
y("stop", {
|
|
2520
|
+
offset: "100%",
|
|
2521
|
+
"stop-color": e.color
|
|
2522
|
+
}, null, 8, ru)
|
|
2523
|
+
], 8, uu)
|
|
2524
|
+
], 64))
|
|
2514
2525
|
]))), 128)),
|
|
2515
|
-
(s(!0), r(
|
|
2526
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r("defs", {
|
|
2516
2527
|
key: `def_plot_${n}`
|
|
2517
2528
|
}, [
|
|
2518
2529
|
y("radialGradient", {
|
|
2519
|
-
id: `plotGradient_${n}_${
|
|
2530
|
+
id: `plotGradient_${n}_${Y.value}`,
|
|
2520
2531
|
cx: "50%",
|
|
2521
2532
|
cy: "50%",
|
|
2522
2533
|
r: "50%",
|
|
@@ -2525,7 +2536,7 @@ const xn = {
|
|
|
2525
2536
|
}, [
|
|
2526
2537
|
y("stop", {
|
|
2527
2538
|
offset: "0%",
|
|
2528
|
-
"stop-color": `${v(
|
|
2539
|
+
"stop-color": `${v(Dt)(e.color, 0.05)}`
|
|
2529
2540
|
}, null, 8, vu),
|
|
2530
2541
|
y("stop", {
|
|
2531
2542
|
offset: "100%",
|
|
@@ -2533,11 +2544,11 @@ const xn = {
|
|
|
2533
2544
|
}, null, 8, du)
|
|
2534
2545
|
], 8, cu)
|
|
2535
2546
|
]))), 128)),
|
|
2536
|
-
(s(!0), r(
|
|
2547
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r("defs", {
|
|
2537
2548
|
key: `def_line_${e.id}`
|
|
2538
2549
|
}, [
|
|
2539
2550
|
y("radialGradient", {
|
|
2540
|
-
id: `lineGradient_${n}_${
|
|
2551
|
+
id: `lineGradient_${n}_${Y.value}`,
|
|
2541
2552
|
cx: "50%",
|
|
2542
2553
|
cy: "50%",
|
|
2543
2554
|
r: "50%",
|
|
@@ -2546,15 +2557,19 @@ const xn = {
|
|
|
2546
2557
|
}, [
|
|
2547
2558
|
y("stop", {
|
|
2548
2559
|
offset: "0%",
|
|
2549
|
-
"stop-color": `${v(
|
|
2560
|
+
"stop-color": `${v(Dt)(e.color, 0.05)}`
|
|
2550
2561
|
}, null, 8, fu),
|
|
2551
2562
|
y("stop", {
|
|
2552
2563
|
offset: "100%",
|
|
2553
2564
|
"stop-color": e.color
|
|
2554
2565
|
}, null, 8, mu)
|
|
2555
2566
|
], 8, hu),
|
|
2556
|
-
|
|
2557
|
-
|
|
2567
|
+
l.$slots["area-gradient"] ? K(l.$slots, "area-gradient", Vt({
|
|
2568
|
+
key: 0,
|
|
2569
|
+
ref_for: !0
|
|
2570
|
+
}, { series: e, id: `areaGradient_${n}_${Y.value}` }), void 0, !0) : (s(), r("linearGradient", {
|
|
2571
|
+
key: 1,
|
|
2572
|
+
id: `areaGradient_${n}_${Y.value}`,
|
|
2558
2573
|
x1: "0%",
|
|
2559
2574
|
x2: "100%",
|
|
2560
2575
|
y1: "0%",
|
|
@@ -2562,19 +2577,19 @@ const xn = {
|
|
|
2562
2577
|
}, [
|
|
2563
2578
|
y("stop", {
|
|
2564
2579
|
offset: "0%",
|
|
2565
|
-
"stop-color": `${v(
|
|
2580
|
+
"stop-color": `${v(nt)(v(Dt)(e.color, 0.03), t.value.line.area.opacity)}`
|
|
2566
2581
|
}, null, 8, bu),
|
|
2567
2582
|
y("stop", {
|
|
2568
2583
|
offset: "100%",
|
|
2569
|
-
"stop-color": `${v(
|
|
2584
|
+
"stop-color": `${v(nt)(e.color, t.value.line.area.opacity)}`
|
|
2570
2585
|
}, null, 8, xu)
|
|
2571
|
-
], 8, gu)
|
|
2586
|
+
], 8, gu))
|
|
2572
2587
|
]))), 128)),
|
|
2573
|
-
(s(!0), r(
|
|
2574
|
-
e.show ? (s(), r(
|
|
2575
|
-
(s(!0), r(
|
|
2588
|
+
(s(!0), r(b, null, C(_o.value, (e) => (s(), r("g", null, [
|
|
2589
|
+
e.show ? (s(), r(b, { key: 0 }, [
|
|
2590
|
+
(s(!0), r(b, null, C(e.span, (n, a) => (s(), r("g", null, [
|
|
2576
2591
|
y("rect", {
|
|
2577
|
-
style:
|
|
2592
|
+
style: _({
|
|
2578
2593
|
transition: "none",
|
|
2579
2594
|
opacity: e.from + a >= p.value.start && e.from + a <= p.value.end - 1 ? 1 : 0
|
|
2580
2595
|
}),
|
|
@@ -2582,15 +2597,15 @@ const xn = {
|
|
|
2582
2597
|
y: c.value.top,
|
|
2583
2598
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2584
2599
|
width: c.value.width / T.value < 0 ? 1e-5 : c.value.width / T.value,
|
|
2585
|
-
fill: v(
|
|
2600
|
+
fill: v(nt)(e.color, e.opacity)
|
|
2586
2601
|
}, null, 12, pu)
|
|
2587
2602
|
]))), 256)),
|
|
2588
|
-
(s(!0), r(
|
|
2603
|
+
(s(!0), r(b, null, C(e.span, (n, a) => (s(), r("g", null, [
|
|
2589
2604
|
e.caption.text && a === 0 ? (s(), r("foreignObject", {
|
|
2590
2605
|
key: 0,
|
|
2591
2606
|
x: c.value.left + c.value.width / T.value * (e.from + a - p.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / T.value * e.span / 2),
|
|
2592
2607
|
y: c.value.top + e.caption.offsetY,
|
|
2593
|
-
style:
|
|
2608
|
+
style: _({
|
|
2594
2609
|
overflow: "visible",
|
|
2595
2610
|
opacity: e.to >= p.value.start && e.from < p.value.end ? 1 : 0
|
|
2596
2611
|
}),
|
|
@@ -2598,14 +2613,14 @@ const xn = {
|
|
|
2598
2613
|
width: e.caption.width === "auto" ? c.value.width / T.value * e.span : e.caption.width
|
|
2599
2614
|
}, [
|
|
2600
2615
|
y("div", {
|
|
2601
|
-
style:
|
|
2616
|
+
style: _(`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"}`)
|
|
2602
2617
|
}, ne(e.caption.text), 5)
|
|
2603
2618
|
], 12, yu)) : f("", !0)
|
|
2604
2619
|
]))), 256))
|
|
2605
2620
|
], 64)) : f("", !0)
|
|
2606
2621
|
]))), 256)),
|
|
2607
2622
|
da.value ? (s(), r("g", ku, [
|
|
2608
|
-
(s(!0), r(
|
|
2623
|
+
(s(!0), r(b, null, C(T.value, (e, n) => (s(), r("g", {
|
|
2609
2624
|
key: `tooltip_trap_highlighter_${n}`
|
|
2610
2625
|
}, [
|
|
2611
2626
|
y("rect", {
|
|
@@ -2613,44 +2628,44 @@ const xn = {
|
|
|
2613
2628
|
y: c.value.top,
|
|
2614
2629
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2615
2630
|
width: c.value.width / T.value < 0 ? 1e-5 : c.value.width / T.value,
|
|
2616
|
-
fill: [
|
|
2631
|
+
fill: [O.value, L.value, ft.value].includes(n) ? v(nt)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
|
|
2617
2632
|
style: { transition: "none !important", animation: "none !important" }
|
|
2618
2633
|
}, null, 8, wu)
|
|
2619
2634
|
]))), 128))
|
|
2620
2635
|
])) : f("", !0),
|
|
2621
|
-
yt.value.length ? (s(!0), r(
|
|
2636
|
+
yt.value.length ? (s(!0), r(b, { key: 1 }, C(yt.value, (e, n) => (s(), r("g", {
|
|
2622
2637
|
key: `serie_bar_${e.id}`,
|
|
2623
2638
|
class: Xe(`serie_bar_${n}`),
|
|
2624
|
-
style:
|
|
2639
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2625
2640
|
}, [
|
|
2626
|
-
(s(!0), r(
|
|
2641
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r("g", {
|
|
2627
2642
|
key: `bar_plot_${n}_${i}`
|
|
2628
2643
|
}, [
|
|
2629
2644
|
Ve(a.value) ? (s(), r("rect", {
|
|
2630
2645
|
key: 0,
|
|
2631
|
-
x: Il(a) +
|
|
2646
|
+
x: Il(a) + Fl.value / 2,
|
|
2632
2647
|
y: k.value.useIndividualScale ? Sa(a) : wa(a),
|
|
2633
2648
|
height: k.value.useIndividualScale ? Math.abs(ka(a)) : Math.abs(ya(a)),
|
|
2634
|
-
width: Rl.value -
|
|
2649
|
+
width: Rl.value - Fl.value,
|
|
2635
2650
|
rx: t.value.bar.borderRadius,
|
|
2636
|
-
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${n}_${
|
|
2651
|
+
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${n}_${Y.value})` : `url(#rectGradient_neg_${n}_${Y.value})` : e.color,
|
|
2637
2652
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2638
2653
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2639
|
-
style:
|
|
2640
|
-
transition: v(
|
|
2654
|
+
style: _({
|
|
2655
|
+
transition: v(oe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2641
2656
|
})
|
|
2642
2657
|
}, null, 12, Su)) : f("", !0),
|
|
2643
2658
|
Ve(a.value) && l.$slots.pattern ? (s(), r("rect", {
|
|
2644
2659
|
key: 1,
|
|
2645
|
-
x: Il(a) -
|
|
2660
|
+
x: Il(a) - Fl.value / 2,
|
|
2646
2661
|
y: k.value.useIndividualScale ? Sa(a) : wa(a),
|
|
2647
2662
|
height: k.value.useIndividualScale ? Math.abs(ka(a)) : Math.abs(ya(a)),
|
|
2648
|
-
width: Rl.value -
|
|
2663
|
+
width: Rl.value - Fl.value,
|
|
2649
2664
|
rx: t.value.bar.borderRadius,
|
|
2650
|
-
fill: `url(#pattern_${
|
|
2665
|
+
fill: `url(#pattern_${Y.value}_${e.slotAbsoluteIndex})`,
|
|
2651
2666
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2652
2667
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2653
|
-
style:
|
|
2668
|
+
style: _({ transition: v(oe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2654
2669
|
}, null, 12, _u)) : f("", !0),
|
|
2655
2670
|
a.comment && t.value.chart.comments.show ? (s(), r("foreignObject", {
|
|
2656
2671
|
key: 2,
|
|
@@ -2660,7 +2675,7 @@ const xn = {
|
|
|
2660
2675
|
x: Il(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2661
2676
|
y: v(W)(a.y) + t.value.chart.comments.offsetY + 6
|
|
2662
2677
|
}, [
|
|
2663
|
-
|
|
2678
|
+
K(l.$slots, "plot-comment", {
|
|
2664
2679
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2665
2680
|
}, void 0, !0)
|
|
2666
2681
|
], 8, $u)) : f("", !0)
|
|
@@ -2683,10 +2698,10 @@ const xn = {
|
|
|
2683
2698
|
]),
|
|
2684
2699
|
e.plots.length > 1 ? (s(), r("line", {
|
|
2685
2700
|
key: 0,
|
|
2686
|
-
x1: v(le)(e.plots).x1 +
|
|
2687
|
-
x2: v(le)(e.plots).x2 +
|
|
2688
|
-
y1: v(
|
|
2689
|
-
y2: v(
|
|
2701
|
+
x1: v(le)(e.plots).x1 + al(),
|
|
2702
|
+
x2: v(le)(e.plots).x2 + al(),
|
|
2703
|
+
y1: v(Z)(v(le)(e.plots).y1),
|
|
2704
|
+
y2: v(Z)(v(le)(e.plots).y2),
|
|
2690
2705
|
"stroke-width": 1,
|
|
2691
2706
|
stroke: e.color,
|
|
2692
2707
|
"stroke-dasharray": 2,
|
|
@@ -2695,9 +2710,9 @@ const xn = {
|
|
|
2695
2710
|
e.plots.length > 1 ? (s(), r("text", {
|
|
2696
2711
|
key: 1,
|
|
2697
2712
|
"text-anchor": "middle",
|
|
2698
|
-
x: v(le)(e.plots).x2 +
|
|
2713
|
+
x: v(le)(e.plots).x2 + al(),
|
|
2699
2714
|
y: v(le)(e.plots).y2 - 6,
|
|
2700
|
-
"font-size":
|
|
2715
|
+
"font-size": w.value.plotLabels,
|
|
2701
2716
|
fill: e.color
|
|
2702
2717
|
}, ne(v(Qe)({
|
|
2703
2718
|
v: v(le)(e.plots).trend * 100,
|
|
@@ -2712,17 +2727,17 @@ const xn = {
|
|
|
2712
2727
|
"stroke-width": "1",
|
|
2713
2728
|
x1: c.value.left + te.value,
|
|
2714
2729
|
x2: c.value.right,
|
|
2715
|
-
y1: v(
|
|
2716
|
-
y2: v(
|
|
2730
|
+
y1: v(Z)(Ie.value),
|
|
2731
|
+
y2: v(Z)(Ie.value),
|
|
2717
2732
|
"stroke-linecap": "round",
|
|
2718
2733
|
style: { animation: "none !important" }
|
|
2719
2734
|
}, null, 8, Tu)) : f("", !0),
|
|
2720
|
-
t.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
2735
|
+
t.value.chart.highlighter.useLine && (![null, void 0].includes(L.value) || ![null, void 0].includes(O.value)) ? (s(), r("g", Iu, [
|
|
2721
2736
|
y("line", {
|
|
2722
|
-
x1: c.value.left + c.value.width / T.value * ((
|
|
2723
|
-
x2: c.value.left + c.value.width / T.value * ((
|
|
2724
|
-
y1: v(
|
|
2725
|
-
y2: v(
|
|
2737
|
+
x1: c.value.left + c.value.width / T.value * ((L.value !== null ? L.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / T.value / 2,
|
|
2738
|
+
x2: c.value.left + c.value.width / T.value * ((L.value !== null ? L.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / T.value / 2,
|
|
2739
|
+
y1: v(Z)(c.value.top),
|
|
2740
|
+
y2: v(Z)(c.value.bottom),
|
|
2726
2741
|
stroke: t.value.chart.highlighter.color,
|
|
2727
2742
|
"stroke-width": t.value.chart.highlighter.lineWidth,
|
|
2728
2743
|
"stroke-dasharray": t.value.chart.highlighter.lineDasharray,
|
|
@@ -2747,51 +2762,51 @@ const xn = {
|
|
|
2747
2762
|
t.value.chart.grid.labels.show ? (s(), r("g", {
|
|
2748
2763
|
key: 5,
|
|
2749
2764
|
ref_key: "scaleLabels",
|
|
2750
|
-
ref:
|
|
2765
|
+
ref: Rt
|
|
2751
2766
|
}, [
|
|
2752
|
-
k.value.useIndividualScale ? (s(), r(
|
|
2753
|
-
(s(!0), r(
|
|
2767
|
+
k.value.useIndividualScale ? (s(), r(b, { key: 0 }, [
|
|
2768
|
+
(s(!0), r(b, null, C(Sl.value, (e) => (s(), r("g", null, [
|
|
2754
2769
|
y("line", {
|
|
2755
2770
|
x1: e.x + te.value - c.value.individualOffsetX,
|
|
2756
2771
|
x2: e.x + te.value - c.value.individualOffsetX,
|
|
2757
|
-
y1: k.value.isStacked ? v(
|
|
2758
|
-
y2: k.value.isStacked ? v(
|
|
2772
|
+
y1: k.value.isStacked ? v(Z)(c.value.bottom - e.yOffset - e.individualHeight) : v(Z)(c.value.top),
|
|
2773
|
+
y2: k.value.isStacked ? v(Z)(c.value.bottom - e.yOffset) : v(Z)(c.value.bottom),
|
|
2759
2774
|
stroke: e.color,
|
|
2760
2775
|
"stroke-width": t.value.chart.grid.stroke,
|
|
2761
2776
|
"stroke-linecap": "round",
|
|
2762
|
-
style:
|
|
2763
|
-
}, null, 12,
|
|
2777
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2778
|
+
}, null, 12, Fu)
|
|
2764
2779
|
]))), 256)),
|
|
2765
|
-
(s(!0), r(
|
|
2766
|
-
style:
|
|
2780
|
+
(s(!0), r(b, null, C(Sl.value, (e) => (s(), r("g", {
|
|
2781
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2767
2782
|
}, [
|
|
2768
2783
|
y("text", {
|
|
2769
2784
|
fill: e.color,
|
|
2770
|
-
"font-size":
|
|
2785
|
+
"font-size": w.value.dataLabels * 0.8,
|
|
2771
2786
|
"text-anchor": "middle",
|
|
2772
|
-
transform: `translate(${e.x -
|
|
2787
|
+
transform: `translate(${e.x - w.value.dataLabels * 0.8 / 2 + te.value}, ${k.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2773
2788
|
}, ne(e.name) + " " + ne(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2774
|
-
${e.scaleLabel}` : ""), 9,
|
|
2775
|
-
(s(!0), r(
|
|
2789
|
+
${e.scaleLabel}` : ""), 9, Pu),
|
|
2790
|
+
(s(!0), r(b, null, C(e.yLabels, (n, a) => (s(), r(b, null, [
|
|
2776
2791
|
t.value.chart.grid.labels.yAxis.showCrosshairs ? (s(), r("line", {
|
|
2777
2792
|
key: 0,
|
|
2778
2793
|
x1: e.x + 3 + te.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2779
2794
|
x2: e.x + te.value - c.value.individualOffsetX,
|
|
2780
|
-
y1: v(
|
|
2781
|
-
y2: v(
|
|
2795
|
+
y1: v(Z)(n.y),
|
|
2796
|
+
y2: v(Z)(n.y),
|
|
2782
2797
|
stroke: e.color,
|
|
2783
2798
|
"stroke-width": 1,
|
|
2784
2799
|
"stroke-linecap": "round",
|
|
2785
2800
|
style: { animation: "none !important" }
|
|
2786
|
-
}, null, 8,
|
|
2801
|
+
}, null, 8, Ou)) : f("", !0)
|
|
2787
2802
|
], 64))), 256)),
|
|
2788
|
-
(s(!0), r(
|
|
2803
|
+
(s(!0), r(b, null, C(e.yLabels, (n, a) => (s(), r("text", {
|
|
2789
2804
|
x: e.x - 5 + te.value - c.value.individualOffsetX,
|
|
2790
|
-
y: v(
|
|
2791
|
-
"font-size":
|
|
2805
|
+
y: v(Z)(n.y) + w.value.dataLabels / 3,
|
|
2806
|
+
"font-size": w.value.dataLabels,
|
|
2792
2807
|
"text-anchor": "end",
|
|
2793
2808
|
fill: e.color
|
|
2794
|
-
}, ne(v(
|
|
2809
|
+
}, ne(v(Le)(
|
|
2795
2810
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
2796
2811
|
n.value,
|
|
2797
2812
|
v(Qe)({
|
|
@@ -2803,28 +2818,28 @@ const xn = {
|
|
|
2803
2818
|
{ datapoint: n.datapoint, seriesIndex: a }
|
|
2804
2819
|
)), 9, Bu))), 256))
|
|
2805
2820
|
], 4))), 256))
|
|
2806
|
-
], 64)) : (s(!0), r(
|
|
2821
|
+
], 64)) : (s(!0), r(b, { key: 1 }, C(Ma.value, (e, n) => (s(), r("g", {
|
|
2807
2822
|
key: `yLabel_${n}`
|
|
2808
2823
|
}, [
|
|
2809
|
-
Ve(e) && e.value >=
|
|
2824
|
+
Ve(e) && e.value >= Te.value.min && e.value <= Te.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (s(), r("line", {
|
|
2810
2825
|
key: 0,
|
|
2811
2826
|
x1: c.value.left + te.value,
|
|
2812
2827
|
x2: c.value.left + te.value - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2813
|
-
y1: v(
|
|
2814
|
-
y2: v(
|
|
2828
|
+
y1: v(Z)(e.y),
|
|
2829
|
+
y2: v(Z)(e.y),
|
|
2815
2830
|
stroke: t.value.chart.grid.stroke,
|
|
2816
2831
|
"stroke-width": "1",
|
|
2817
2832
|
"stroke-linecap": "round",
|
|
2818
2833
|
style: { animation: "none !important" }
|
|
2819
2834
|
}, null, 8, Hu)) : f("", !0),
|
|
2820
|
-
e.value >=
|
|
2835
|
+
e.value >= Te.value.min && e.value <= Te.value.max ? (s(), r("text", {
|
|
2821
2836
|
key: 1,
|
|
2822
2837
|
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2823
|
-
y: v(W)(e.y +
|
|
2824
|
-
"font-size":
|
|
2838
|
+
y: v(W)(e.y + w.value.dataLabels / 3),
|
|
2839
|
+
"font-size": w.value.dataLabels,
|
|
2825
2840
|
"text-anchor": "end",
|
|
2826
2841
|
fill: t.value.chart.grid.labels.color
|
|
2827
|
-
}, ne(Ve(e.value) ? v(
|
|
2842
|
+
}, ne(Ve(e.value) ? v(Le)(
|
|
2828
2843
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
2829
2844
|
e.value,
|
|
2830
2845
|
v(Qe)({
|
|
@@ -2836,23 +2851,23 @@ const xn = {
|
|
|
2836
2851
|
) : ""), 9, Vu)) : f("", !0)
|
|
2837
2852
|
]))), 128))
|
|
2838
2853
|
], 512)) : f("", !0),
|
|
2839
|
-
(s(!0), r(
|
|
2854
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r("g", {
|
|
2840
2855
|
key: `serie_plot_${e.id}`,
|
|
2841
2856
|
class: Xe(`serie_plot_${n}`),
|
|
2842
|
-
style:
|
|
2857
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2843
2858
|
}, [
|
|
2844
|
-
(s(!0), r(
|
|
2859
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r("g", {
|
|
2845
2860
|
key: `circle_plot_${n}_${i}`
|
|
2846
2861
|
}, [
|
|
2847
2862
|
a && Ve(a.value) ? (s(), Je(El, {
|
|
2848
2863
|
key: 0,
|
|
2849
2864
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2850
|
-
color: t.value.plot.useGradient ? `url(#plotGradient_${n}_${
|
|
2865
|
+
color: t.value.plot.useGradient ? `url(#plotGradient_${n}_${Y.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
2851
2866
|
plot: { x: v(W)(a.x), y: v(W)(a.y) },
|
|
2852
|
-
radius:
|
|
2867
|
+
radius: L.value !== null && L.value === i || O.value !== null && O.value === i ? (Fe.value.plot || 6) * 1.5 : Fe.value.plot || 6,
|
|
2853
2868
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
2854
2869
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
2855
|
-
transition: v(
|
|
2870
|
+
transition: v(oe) || !t.value.plot.showTransition || L.value !== null && L.value === i || O.value !== null && O.value === i ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2856
2871
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
|
|
2857
2872
|
a.comment && t.value.chart.comments.show ? (s(), r("foreignObject", {
|
|
2858
2873
|
key: 1,
|
|
@@ -2863,7 +2878,7 @@ const xn = {
|
|
|
2863
2878
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
2864
2879
|
}, [
|
|
2865
2880
|
y("div", Du, [
|
|
2866
|
-
|
|
2881
|
+
K(l.$slots, "plot-comment", {
|
|
2867
2882
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2868
2883
|
}, void 0, !0)
|
|
2869
2884
|
])
|
|
@@ -2889,8 +2904,8 @@ const xn = {
|
|
|
2889
2904
|
key: 0,
|
|
2890
2905
|
x1: v(le)(e.plots).x1,
|
|
2891
2906
|
x2: v(le)(e.plots).x2,
|
|
2892
|
-
y1: v(
|
|
2893
|
-
y2: v(
|
|
2907
|
+
y1: v(Z)(v(le)(e.plots).y1),
|
|
2908
|
+
y2: v(Z)(v(le)(e.plots).y2),
|
|
2894
2909
|
"stroke-width": 1,
|
|
2895
2910
|
stroke: e.color,
|
|
2896
2911
|
"stroke-dasharray": 2,
|
|
@@ -2901,7 +2916,7 @@ const xn = {
|
|
|
2901
2916
|
"text-anchor": "middle",
|
|
2902
2917
|
x: v(le)(e.plots).x2,
|
|
2903
2918
|
y: v(le)(e.plots).y2 - 6,
|
|
2904
|
-
"font-size":
|
|
2919
|
+
"font-size": w.value.plotLabels,
|
|
2905
2920
|
fill: e.color
|
|
2906
2921
|
}, ne(v(Qe)({
|
|
2907
2922
|
v: v(le)(e.plots).trend * 100,
|
|
@@ -2910,10 +2925,10 @@ const xn = {
|
|
|
2910
2925
|
})), 9, Uu)) : f("", !0)
|
|
2911
2926
|
])) : f("", !0)
|
|
2912
2927
|
], 6))), 128)),
|
|
2913
|
-
(s(!0), r(
|
|
2928
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r("g", {
|
|
2914
2929
|
key: `serie_line_${e.id}`,
|
|
2915
2930
|
class: Xe(`serie_line_${n}`),
|
|
2916
|
-
style:
|
|
2931
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2917
2932
|
}, [
|
|
2918
2933
|
e.smooth && e.plots.length > 1 && e.curve ? (s(), r("path", {
|
|
2919
2934
|
key: 0,
|
|
@@ -2922,7 +2937,7 @@ const xn = {
|
|
|
2922
2937
|
"stroke-width": t.value.line.strokeWidth + 1,
|
|
2923
2938
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
2924
2939
|
fill: "none",
|
|
2925
|
-
style:
|
|
2940
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2926
2941
|
}, null, 12, qu)) : e.plots.length > 1 && e.straight ? (s(), r("path", {
|
|
2927
2942
|
key: 1,
|
|
2928
2943
|
d: `M${e.straight}`,
|
|
@@ -2932,56 +2947,56 @@ const xn = {
|
|
|
2932
2947
|
fill: "none",
|
|
2933
2948
|
"stroke-linecap": "round",
|
|
2934
2949
|
"stroke-linejoin": "round",
|
|
2935
|
-
style:
|
|
2950
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2936
2951
|
}, null, 12, Zu)) : f("", !0)
|
|
2937
2952
|
], 6))), 128)),
|
|
2938
2953
|
l.$slots.pattern ? (s(), r("defs", Ku, [
|
|
2939
|
-
(s(!0), r(
|
|
2954
|
+
(s(!0), r(b, null, C(at.value, (e, n) => K(l.$slots, "pattern", Vt({
|
|
2940
2955
|
key: `serie_pattern_slot_${e.id}`
|
|
2941
|
-
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${
|
|
2956
|
+
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Y.value}_${n}` }), void 0, !0)), 128))
|
|
2942
2957
|
])) : f("", !0),
|
|
2943
2958
|
za.value.length && !k.value.isStacked ? (s(), r("g", Ju, [
|
|
2944
|
-
(s(!0), r(
|
|
2959
|
+
(s(!0), r(b, null, C(za.value, (e) => (s(), r("path", {
|
|
2945
2960
|
key: e.key,
|
|
2946
2961
|
d: e.d,
|
|
2947
2962
|
fill: e.color,
|
|
2948
2963
|
"fill-opacity": t.value.line.interLine.fillOpacity,
|
|
2949
2964
|
stroke: "none",
|
|
2950
2965
|
"pointer-events": "none",
|
|
2951
|
-
style:
|
|
2966
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2952
2967
|
}, null, 12, Qu))), 128))
|
|
2953
2968
|
])) : f("", !0),
|
|
2954
|
-
(s(!0), r(
|
|
2969
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r("g", {
|
|
2955
2970
|
key: `serie_line_above_${e.id}`,
|
|
2956
2971
|
class: Xe(`serie_line_${n}`),
|
|
2957
|
-
style:
|
|
2972
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2958
2973
|
}, [
|
|
2959
2974
|
e.useArea && e.plots.length > 1 ? (s(), r("g", ju, [
|
|
2960
|
-
e.smooth ? (s(!0), r(
|
|
2975
|
+
e.smooth ? (s(!0), r(b, { key: 0 }, C(e.curveAreas, (a, i) => (s(), r(b, { key: i }, [
|
|
2961
2976
|
a ? (s(), r("path", {
|
|
2962
2977
|
key: 0,
|
|
2963
2978
|
d: a,
|
|
2964
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${
|
|
2965
|
-
style:
|
|
2979
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${Y.value})` : v(nt)(e.color, t.value.line.area.opacity),
|
|
2980
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2966
2981
|
}, null, 12, ei)) : f("", !0),
|
|
2967
2982
|
l.$slots.pattern && a ? (s(), r("path", {
|
|
2968
2983
|
key: 1,
|
|
2969
2984
|
d: a,
|
|
2970
|
-
fill: `url(#pattern_${
|
|
2971
|
-
style:
|
|
2985
|
+
fill: `url(#pattern_${Y.value}_${e.slotAbsoluteIndex})`,
|
|
2986
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2972
2987
|
}, null, 12, ti)) : f("", !0)
|
|
2973
|
-
], 64))), 128)) : (s(!0), r(
|
|
2988
|
+
], 64))), 128)) : (s(!0), r(b, { key: 1 }, C(e.area.split(";"), (a, i) => (s(), r(b, { key: i }, [
|
|
2974
2989
|
a ? (s(), r("path", {
|
|
2975
2990
|
key: 0,
|
|
2976
2991
|
d: `M${a}Z`,
|
|
2977
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${
|
|
2978
|
-
style:
|
|
2992
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${Y.value})` : v(nt)(e.color, t.value.line.area.opacity),
|
|
2993
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2979
2994
|
}, null, 12, li)) : f("", !0),
|
|
2980
2995
|
l.$slots.pattern && a ? (s(), r("path", {
|
|
2981
2996
|
key: 1,
|
|
2982
2997
|
d: `M${a}Z`,
|
|
2983
|
-
fill: `url(#pattern_${
|
|
2984
|
-
style:
|
|
2998
|
+
fill: `url(#pattern_${Y.value}_${e.slotAbsoluteIndex})`,
|
|
2999
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2985
3000
|
}, null, 12, ai)) : f("", !0)
|
|
2986
3001
|
], 64))), 128))
|
|
2987
3002
|
])) : f("", !0),
|
|
@@ -2993,7 +3008,7 @@ const xn = {
|
|
|
2993
3008
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
2994
3009
|
fill: "none",
|
|
2995
3010
|
"stroke-linecap": "round",
|
|
2996
|
-
style:
|
|
3011
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2997
3012
|
}, null, 12, oi)) : e.plots.length > 1 && e.straight ? (s(), r("path", {
|
|
2998
3013
|
key: 2,
|
|
2999
3014
|
d: `M${e.straight}`,
|
|
@@ -3003,20 +3018,20 @@ const xn = {
|
|
|
3003
3018
|
fill: "none",
|
|
3004
3019
|
"stroke-linecap": "round",
|
|
3005
3020
|
"stroke-linejoin": "round",
|
|
3006
|
-
style:
|
|
3021
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3007
3022
|
}, null, 12, ni)) : f("", !0),
|
|
3008
|
-
(s(!0), r(
|
|
3023
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3009
3024
|
key: `circle_line_${n}_${i}`
|
|
3010
3025
|
}, [
|
|
3011
|
-
!$a.value.linePlot && a && Ve(a.value) || $a.value.linePlot && a && Ve(a.value) && (
|
|
3026
|
+
!$a.value.linePlot && a && Ve(a.value) || $a.value.linePlot && a && Ve(a.value) && (L.value !== null && L.value === i || O.value !== null && O.value === i) || Aa(e.plots, i) ? (s(), Je(El, {
|
|
3012
3027
|
key: 0,
|
|
3013
3028
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3014
|
-
color: t.value.line.useGradient ? `url(#lineGradient_${n}_${
|
|
3029
|
+
color: t.value.line.useGradient ? `url(#lineGradient_${n}_${Y.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
3015
3030
|
plot: { x: v(W)(a.x), y: v(W)(a.y) },
|
|
3016
|
-
radius:
|
|
3031
|
+
radius: L.value !== null && L.value === i || O.value !== null && O.value === i ? (Fe.value.line || 6) * 1.5 : (Aa(e.plots, i), Fe.value.line || 6),
|
|
3017
3032
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3018
3033
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
3019
|
-
transition: v(
|
|
3034
|
+
transition: v(oe) || !t.value.line.showTransition || L.value !== null && L.value === i || O.value !== null && O.value === i ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3020
3035
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
|
|
3021
3036
|
a.comment && t.value.chart.comments.show ? (s(), r("foreignObject", {
|
|
3022
3037
|
key: 1,
|
|
@@ -3027,7 +3042,7 @@ const xn = {
|
|
|
3027
3042
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
3028
3043
|
}, [
|
|
3029
3044
|
y("div", ii, [
|
|
3030
|
-
|
|
3045
|
+
K(l.$slots, "plot-comment", {
|
|
3031
3046
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
3032
3047
|
}, void 0, !0)
|
|
3033
3048
|
])
|
|
@@ -3053,8 +3068,8 @@ const xn = {
|
|
|
3053
3068
|
key: 0,
|
|
3054
3069
|
x1: v(le)(e.plots).x1,
|
|
3055
3070
|
x2: v(le)(e.plots).x2,
|
|
3056
|
-
y1: v(
|
|
3057
|
-
y2: v(
|
|
3071
|
+
y1: v(Z)(v(le)(e.plots).y1),
|
|
3072
|
+
y2: v(Z)(v(le)(e.plots).y2),
|
|
3058
3073
|
"stroke-width": 1,
|
|
3059
3074
|
stroke: e.color,
|
|
3060
3075
|
"stroke-dasharray": 2,
|
|
@@ -3065,7 +3080,7 @@ const xn = {
|
|
|
3065
3080
|
"text-anchor": "middle",
|
|
3066
3081
|
x: v(le)(e.plots).x2,
|
|
3067
3082
|
y: v(le)(e.plots).y2 - 6,
|
|
3068
|
-
"font-size":
|
|
3083
|
+
"font-size": w.value.plotLabels,
|
|
3069
3084
|
fill: e.color
|
|
3070
3085
|
}, ne(v(Qe)({
|
|
3071
3086
|
v: v(le)(e.plots).trend * 100,
|
|
@@ -3075,21 +3090,21 @@ const xn = {
|
|
|
3075
3090
|
])) : f("", !0)
|
|
3076
3091
|
], 6))), 128)),
|
|
3077
3092
|
(t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (s(), r("g", hi, [
|
|
3078
|
-
(s(!0), r(
|
|
3093
|
+
(s(!0), r(b, null, C(yt.value, (e, n) => (s(), r(b, {
|
|
3079
3094
|
key: `xLabel_bar_${e.id}`
|
|
3080
3095
|
}, [
|
|
3081
|
-
(s(!0), r(
|
|
3096
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3082
3097
|
key: `xLabel_bar_${n}_${i}`
|
|
3083
3098
|
}, [
|
|
3084
|
-
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3099
|
+
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || L.value !== null && L.value === i || O.value !== null && O.value === i) && t.value.bar.labels.show ? (s(), r("text", {
|
|
3085
3100
|
key: 0,
|
|
3086
|
-
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : Il(a) +
|
|
3101
|
+
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : Il(a) + al() / 2 - Nl.value / 2,
|
|
3087
3102
|
y: v(W)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3088
3103
|
"text-anchor": "middle",
|
|
3089
|
-
"font-size":
|
|
3104
|
+
"font-size": w.value.plotLabels,
|
|
3090
3105
|
fill: t.value.bar.labels.color,
|
|
3091
|
-
style:
|
|
3092
|
-
}, ne(Ve(a.value) ? v(
|
|
3106
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3107
|
+
}, ne(Ve(a.value) ? v(Le)(
|
|
3093
3108
|
t.value.bar.labels.formatter,
|
|
3094
3109
|
a.value,
|
|
3095
3110
|
v(Qe)({
|
|
@@ -3105,13 +3120,13 @@ const xn = {
|
|
|
3105
3120
|
) : ""), 13, fi)) : f("", !0),
|
|
3106
3121
|
a && t.value.bar.serieName.show ? (s(), r("text", {
|
|
3107
3122
|
key: 1,
|
|
3108
|
-
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : a.x +
|
|
3123
|
+
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : a.x + al() * 1.1,
|
|
3109
3124
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3110
3125
|
"text-anchor": "middle",
|
|
3111
|
-
"font-size":
|
|
3126
|
+
"font-size": w.value.plotLabels,
|
|
3112
3127
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3113
3128
|
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3114
|
-
style:
|
|
3129
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3115
3130
|
}, ne(t.value.bar.serieName.useAbbreviation ? v(jo)({
|
|
3116
3131
|
source: e.name,
|
|
3117
3132
|
length: t.value.bar.serieName.abbreviationSize
|
|
@@ -3120,21 +3135,21 @@ const xn = {
|
|
|
3120
3135
|
], 64))), 128))
|
|
3121
3136
|
])) : f("", !0),
|
|
3122
3137
|
t.value.plot.labels.show && k.value.dataLabels.show ? (s(), r("g", gi, [
|
|
3123
|
-
(s(!0), r(
|
|
3138
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r(b, {
|
|
3124
3139
|
key: `xLabel_plot_${e.id}`
|
|
3125
3140
|
}, [
|
|
3126
|
-
(s(!0), r(
|
|
3141
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3127
3142
|
key: `xLabel_plot_${n}_${i}`
|
|
3128
3143
|
}, [
|
|
3129
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3144
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || L.value !== null && L.value === i || O.value !== null && O.value === i ? (s(), r("text", {
|
|
3130
3145
|
key: 0,
|
|
3131
3146
|
x: a.x,
|
|
3132
3147
|
y: a.y + t.value.plot.labels.offsetY,
|
|
3133
3148
|
"text-anchor": "middle",
|
|
3134
|
-
"font-size":
|
|
3149
|
+
"font-size": w.value.plotLabels,
|
|
3135
3150
|
fill: t.value.plot.labels.color,
|
|
3136
|
-
style:
|
|
3137
|
-
}, ne(Ve(a.value) ? v(
|
|
3151
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3152
|
+
}, ne(Ve(a.value) ? v(Le)(
|
|
3138
3153
|
t.value.plot.labels.formatter,
|
|
3139
3154
|
a.value,
|
|
3140
3155
|
v(Qe)({
|
|
@@ -3151,14 +3166,14 @@ const xn = {
|
|
|
3151
3166
|
], 64))), 128))
|
|
3152
3167
|
], 64))), 128))
|
|
3153
3168
|
])) : (s(), r("g", xi, [
|
|
3154
|
-
(s(!0), r(
|
|
3169
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r(b, {
|
|
3155
3170
|
key: `xLabel_plot_${e.id}`
|
|
3156
3171
|
}, [
|
|
3157
|
-
(s(!0), r(
|
|
3172
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3158
3173
|
key: `xLabel_plot_${n}_${i}`
|
|
3159
3174
|
}, [
|
|
3160
|
-
t.value.plot.tag.followValue ? (s(), r(
|
|
3161
|
-
[
|
|
3175
|
+
t.value.plot.tag.followValue ? (s(), r(b, { key: 1 }, [
|
|
3176
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag ? (s(), r("line", {
|
|
3162
3177
|
key: 0,
|
|
3163
3178
|
class: "vue-ui-xy-tag-plot",
|
|
3164
3179
|
x1: c.value.left,
|
|
@@ -3170,18 +3185,18 @@ const xn = {
|
|
|
3170
3185
|
"stroke-dasharray": "2",
|
|
3171
3186
|
stroke: e.color
|
|
3172
3187
|
}, null, 8, Si)) : f("", !0)
|
|
3173
|
-
], 64)) : (s(), r(
|
|
3188
|
+
], 64)) : (s(), r(b, { key: 0 }, [
|
|
3174
3189
|
a && i === 0 && e.useTag && e.useTag === "start" ? (s(), r("foreignObject", {
|
|
3175
3190
|
key: 0,
|
|
3176
3191
|
x: a.x,
|
|
3177
3192
|
y: a.y - 20,
|
|
3178
3193
|
height: 24,
|
|
3179
3194
|
width: "150",
|
|
3180
|
-
style:
|
|
3195
|
+
style: _(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3181
3196
|
}, [
|
|
3182
3197
|
y("div", {
|
|
3183
|
-
style:
|
|
3184
|
-
innerHTML: v(
|
|
3198
|
+
style: _(`padding: 3px; background:${v(nt)(e.color, 80)};color:${v(ut)(e.color)};width:fit-content;font-size:${w.value.plotLabels}px;border-radius: 2px;`),
|
|
3199
|
+
innerHTML: v(Le)(
|
|
3185
3200
|
t.value.plot.tag.formatter,
|
|
3186
3201
|
a.value,
|
|
3187
3202
|
e.name,
|
|
@@ -3195,15 +3210,15 @@ const xn = {
|
|
|
3195
3210
|
], 12, pi)) : f("", !0),
|
|
3196
3211
|
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (s(), r("foreignObject", {
|
|
3197
3212
|
key: 1,
|
|
3198
|
-
x: a.x - e.name.length * (
|
|
3213
|
+
x: a.x - e.name.length * (w.value.plotLabels / 2),
|
|
3199
3214
|
y: a.y - 20,
|
|
3200
3215
|
height: 24,
|
|
3201
3216
|
width: "150",
|
|
3202
|
-
style:
|
|
3217
|
+
style: _(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3203
3218
|
}, [
|
|
3204
3219
|
y("div", {
|
|
3205
|
-
style:
|
|
3206
|
-
innerHTML: v(
|
|
3220
|
+
style: _(`padding: 3px; background:${v(nt)(e.color, 80)};color:${v(ut)(e.color)};width:fit-content;font-size:${w.value.plotLabels}px;border-radius: 2px;`),
|
|
3221
|
+
innerHTML: v(Le)(
|
|
3207
3222
|
t.value.plot.tag.formatter,
|
|
3208
3223
|
a.value,
|
|
3209
3224
|
e.name,
|
|
@@ -3220,21 +3235,21 @@ const xn = {
|
|
|
3220
3235
|
], 64))), 128))
|
|
3221
3236
|
])),
|
|
3222
3237
|
t.value.line.labels.show && k.value.dataLabels.show ? (s(), r("g", _i, [
|
|
3223
|
-
(s(!0), r(
|
|
3238
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3224
3239
|
key: `xLabel_line_${e.id}`
|
|
3225
3240
|
}, [
|
|
3226
|
-
(s(!0), r(
|
|
3241
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3227
3242
|
key: `xLabel_line_${n}_${i}`
|
|
3228
3243
|
}, [
|
|
3229
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3244
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || L.value !== null && L.value === i || O.value !== null && O.value === i ? (s(), r("text", {
|
|
3230
3245
|
key: 0,
|
|
3231
3246
|
x: a.x,
|
|
3232
3247
|
y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
|
|
3233
3248
|
"text-anchor": "middle",
|
|
3234
|
-
"font-size":
|
|
3249
|
+
"font-size": w.value.plotLabels,
|
|
3235
3250
|
fill: t.value.line.labels.color,
|
|
3236
|
-
style:
|
|
3237
|
-
}, ne(Ve(a.value) ? v(
|
|
3251
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3252
|
+
}, ne(Ve(a.value) ? v(Le)(
|
|
3238
3253
|
t.value.line.labels.formatter,
|
|
3239
3254
|
a.value,
|
|
3240
3255
|
v(Qe)({
|
|
@@ -3251,14 +3266,14 @@ const xn = {
|
|
|
3251
3266
|
], 64))), 128))
|
|
3252
3267
|
], 64))), 128))
|
|
3253
3268
|
])) : (s(), r("g", Li, [
|
|
3254
|
-
(s(!0), r(
|
|
3269
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3255
3270
|
key: `xLabel_line_${e.id}`
|
|
3256
3271
|
}, [
|
|
3257
|
-
(s(!0), r(
|
|
3272
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3258
3273
|
key: `xLabel_line_${n}_${i}`
|
|
3259
3274
|
}, [
|
|
3260
|
-
t.value.line.tag.followValue ? (s(), r(
|
|
3261
|
-
[
|
|
3275
|
+
t.value.line.tag.followValue ? (s(), r(b, { key: 1 }, [
|
|
3276
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag ? (s(), r("line", {
|
|
3262
3277
|
key: 0,
|
|
3263
3278
|
class: "vue-ui-xy-tag-line",
|
|
3264
3279
|
x1: c.value.left,
|
|
@@ -3270,18 +3285,18 @@ const xn = {
|
|
|
3270
3285
|
"stroke-dasharray": "2",
|
|
3271
3286
|
stroke: e.color
|
|
3272
3287
|
}, null, 8, Ti)) : f("", !0)
|
|
3273
|
-
], 64)) : (s(), r(
|
|
3288
|
+
], 64)) : (s(), r(b, { key: 0 }, [
|
|
3274
3289
|
a && i === 0 && e.useTag && e.useTag === "start" ? (s(), r("foreignObject", {
|
|
3275
3290
|
key: 0,
|
|
3276
3291
|
x: a.x,
|
|
3277
3292
|
y: a.y - 20,
|
|
3278
3293
|
height: 24,
|
|
3279
3294
|
width: "150",
|
|
3280
|
-
style:
|
|
3295
|
+
style: _(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3281
3296
|
}, [
|
|
3282
3297
|
y("div", {
|
|
3283
|
-
style:
|
|
3284
|
-
innerHTML: v(
|
|
3298
|
+
style: _(`padding: 3px; background:${v(nt)(e.color, 80)};color:${v(ut)(e.color)};width:fit-content;font-size:${w.value.plotLabels}px;border-radius: 2px;`),
|
|
3299
|
+
innerHTML: v(Le)(
|
|
3285
3300
|
t.value.line.tag.formatter,
|
|
3286
3301
|
a.value,
|
|
3287
3302
|
e.name,
|
|
@@ -3299,11 +3314,11 @@ const xn = {
|
|
|
3299
3314
|
y: a.y - 20,
|
|
3300
3315
|
height: 24,
|
|
3301
3316
|
width: "150",
|
|
3302
|
-
style:
|
|
3317
|
+
style: _(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3303
3318
|
}, [
|
|
3304
3319
|
y("div", {
|
|
3305
|
-
style:
|
|
3306
|
-
innerHTML: v(
|
|
3320
|
+
style: _(`padding: 3px; background:${v(nt)(e.color, 80)};color:${v(ut)(e.color)};width:fit-content;font-size:${w.value.plotLabels}px;border-radius: 2px;`),
|
|
3321
|
+
innerHTML: v(Le)(
|
|
3307
3322
|
t.value.line.tag.formatter,
|
|
3308
3323
|
a.value,
|
|
3309
3324
|
e.name,
|
|
@@ -3319,94 +3334,94 @@ const xn = {
|
|
|
3319
3334
|
], 64))), 128))
|
|
3320
3335
|
], 64))), 128))
|
|
3321
3336
|
])),
|
|
3322
|
-
(s(!0), r(
|
|
3337
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3323
3338
|
key: `xLabel_line_${e.id}`
|
|
3324
3339
|
}, [
|
|
3325
|
-
(s(!0), r(
|
|
3340
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3326
3341
|
key: `xLabel_line_${n}_${i}`
|
|
3327
3342
|
}, [
|
|
3328
3343
|
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (s(), r("text", {
|
|
3329
3344
|
key: 0,
|
|
3330
|
-
x: a.x -
|
|
3345
|
+
x: a.x - w.value.plotLabels,
|
|
3331
3346
|
y: a.y,
|
|
3332
|
-
"font-size":
|
|
3347
|
+
"font-size": w.value.plotLabels,
|
|
3333
3348
|
"text-anchor": "end",
|
|
3334
3349
|
fill: e.color,
|
|
3335
3350
|
innerHTML: v(Vl)({
|
|
3336
3351
|
content: e.name,
|
|
3337
|
-
fontSize:
|
|
3352
|
+
fontSize: w.value.plotLabels,
|
|
3338
3353
|
fill: e.color,
|
|
3339
|
-
x: a.x -
|
|
3354
|
+
x: a.x - w.value.plotLabels,
|
|
3340
3355
|
y: a.y,
|
|
3341
3356
|
maxWords: 2
|
|
3342
3357
|
}),
|
|
3343
|
-
style:
|
|
3358
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3344
3359
|
}, null, 12, Ii)) : f("", !0),
|
|
3345
3360
|
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (s(), r("text", {
|
|
3346
3361
|
key: 1,
|
|
3347
|
-
x: a.x +
|
|
3362
|
+
x: a.x + w.value.plotLabels,
|
|
3348
3363
|
y: a.y,
|
|
3349
|
-
"font-size":
|
|
3364
|
+
"font-size": w.value.plotLabels,
|
|
3350
3365
|
"text-anchor": "start",
|
|
3351
3366
|
fill: e.color,
|
|
3352
3367
|
innerHTML: v(Vl)({
|
|
3353
3368
|
content: e.name,
|
|
3354
|
-
fontSize:
|
|
3369
|
+
fontSize: w.value.plotLabels,
|
|
3355
3370
|
fill: e.color,
|
|
3356
|
-
x: a.x +
|
|
3371
|
+
x: a.x + w.value.plotLabels,
|
|
3357
3372
|
y: a.y,
|
|
3358
3373
|
maxWords: 2
|
|
3359
3374
|
}),
|
|
3360
|
-
style:
|
|
3375
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3361
3376
|
}, null, 12, Ni)) : f("", !0)
|
|
3362
3377
|
], 64))), 128))
|
|
3363
3378
|
], 64))), 128)),
|
|
3364
|
-
(s(!0), r(
|
|
3379
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r(b, {
|
|
3365
3380
|
key: `xLabel_plot_${e.id}`
|
|
3366
3381
|
}, [
|
|
3367
|
-
(s(!0), r(
|
|
3382
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3368
3383
|
key: `xLabel_plot_${n}_${i}`
|
|
3369
3384
|
}, [
|
|
3370
3385
|
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (s(), r("text", {
|
|
3371
3386
|
key: 0,
|
|
3372
|
-
x: a.x -
|
|
3387
|
+
x: a.x - w.value.plotLabels,
|
|
3373
3388
|
y: a.y,
|
|
3374
|
-
"font-size":
|
|
3389
|
+
"font-size": w.value.plotLabels,
|
|
3375
3390
|
"text-anchor": "end",
|
|
3376
3391
|
fill: e.color,
|
|
3377
3392
|
innerHTML: v(Vl)({
|
|
3378
3393
|
content: e.name,
|
|
3379
|
-
fontSize:
|
|
3394
|
+
fontSize: w.value.plotLabels,
|
|
3380
3395
|
fill: e.color,
|
|
3381
|
-
x: a.x -
|
|
3396
|
+
x: a.x - w.value.plotLabels,
|
|
3382
3397
|
y: a.y,
|
|
3383
3398
|
maxWords: 2
|
|
3384
3399
|
}),
|
|
3385
|
-
style:
|
|
3400
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3386
3401
|
}, null, 12, Ri)) : f("", !0),
|
|
3387
3402
|
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (s(), r("text", {
|
|
3388
3403
|
key: 1,
|
|
3389
|
-
x: a.x +
|
|
3404
|
+
x: a.x + w.value.plotLabels,
|
|
3390
3405
|
y: a.y,
|
|
3391
|
-
"font-size":
|
|
3406
|
+
"font-size": w.value.plotLabels,
|
|
3392
3407
|
"text-anchor": "start",
|
|
3393
3408
|
fill: e.color,
|
|
3394
3409
|
innerHTML: v(Vl)({
|
|
3395
3410
|
content: e.name,
|
|
3396
|
-
fontSize:
|
|
3411
|
+
fontSize: w.value.plotLabels,
|
|
3397
3412
|
fill: e.color,
|
|
3398
|
-
x: a.x +
|
|
3413
|
+
x: a.x + w.value.plotLabels,
|
|
3399
3414
|
y: a.y,
|
|
3400
3415
|
maxWords: 2
|
|
3401
3416
|
}),
|
|
3402
|
-
style:
|
|
3403
|
-
}, null, 12,
|
|
3417
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3418
|
+
}, null, 12, Fi)) : f("", !0)
|
|
3404
3419
|
], 64))), 128))
|
|
3405
3420
|
], 64))), 128)),
|
|
3406
|
-
k.value.useIndividualScale && !k.value.isStacked ? (s(), r(
|
|
3421
|
+
k.value.useIndividualScale && !k.value.isStacked ? (s(), r(b, { key: 13 }, [
|
|
3407
3422
|
y("defs", null, [
|
|
3408
|
-
(s(!0), r(
|
|
3409
|
-
id: `individual_scale_gradient_${
|
|
3423
|
+
(s(!0), r(b, null, C(Sl.value, (e, n) => (s(), r("linearGradient", {
|
|
3424
|
+
id: `individual_scale_gradient_${Y.value}_${n}`,
|
|
3410
3425
|
x1: "0%",
|
|
3411
3426
|
x2: "100%",
|
|
3412
3427
|
y1: "0%",
|
|
@@ -3416,30 +3431,30 @@ const xn = {
|
|
|
3416
3431
|
offset: "0%",
|
|
3417
3432
|
"stop-color": t.value.chart.backgroundColor,
|
|
3418
3433
|
"stop-opacity": "0"
|
|
3419
|
-
}, null, 8,
|
|
3434
|
+
}, null, 8, Oi),
|
|
3420
3435
|
y("stop", {
|
|
3421
3436
|
offset: "100%",
|
|
3422
3437
|
"stop-color": e.color,
|
|
3423
3438
|
"stop-opacity": "0.2"
|
|
3424
3439
|
}, null, 8, Bi)
|
|
3425
|
-
], 8,
|
|
3440
|
+
], 8, Pi))), 256))
|
|
3426
3441
|
]),
|
|
3427
|
-
(s(!0), r(
|
|
3442
|
+
(s(!0), r(b, null, C(Sl.value, (e, n) => (s(), r("rect", {
|
|
3428
3443
|
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + te.value - c.value.individualOffsetX,
|
|
3429
3444
|
y: c.value.top,
|
|
3430
3445
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3431
3446
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3432
|
-
fill:
|
|
3433
|
-
onMouseenter: (a) =>
|
|
3434
|
-
onMouseleave: u[0] || (u[0] = (a) =>
|
|
3447
|
+
fill: P.value === e.groupId ? `url(#individual_scale_gradient_${Y.value}_${n})` : "transparent",
|
|
3448
|
+
onMouseenter: (a) => P.value = e.groupId,
|
|
3449
|
+
onMouseleave: u[0] || (u[0] = (a) => P.value = null)
|
|
3435
3450
|
}, null, 40, Hi))), 256))
|
|
3436
3451
|
], 64)) : f("", !0),
|
|
3437
3452
|
y("g", null, [
|
|
3438
3453
|
t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (s(), r("text", {
|
|
3439
3454
|
key: 0,
|
|
3440
3455
|
ref_key: "yAxisLabel",
|
|
3441
|
-
ref:
|
|
3442
|
-
"font-size":
|
|
3456
|
+
ref: qt,
|
|
3457
|
+
"font-size": w.value.yAxis,
|
|
3443
3458
|
fill: t.value.chart.grid.labels.color,
|
|
3444
3459
|
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
3445
3460
|
"text-anchor": "middle",
|
|
@@ -3452,46 +3467,46 @@ const xn = {
|
|
|
3452
3467
|
"text-anchor": "middle",
|
|
3453
3468
|
x: ee.value / 2,
|
|
3454
3469
|
y: ye.value - 3,
|
|
3455
|
-
"font-size":
|
|
3470
|
+
"font-size": w.value.yAxis,
|
|
3456
3471
|
fill: t.value.chart.grid.labels.color
|
|
3457
3472
|
}, ne(t.value.chart.grid.labels.axis.xLabel), 9, Ei)) : f("", !0)
|
|
3458
3473
|
]),
|
|
3459
3474
|
t.value.chart.grid.labels.xAxisLabels.show ? (s(), r("g", {
|
|
3460
3475
|
key: 14,
|
|
3461
3476
|
ref_key: "timeLabelsEls",
|
|
3462
|
-
ref:
|
|
3477
|
+
ref: ht
|
|
3463
3478
|
}, [
|
|
3464
|
-
l.$slots["time-label"] ? (s(!0), r(
|
|
3479
|
+
l.$slots["time-label"] ? (s(!0), r(b, { key: 0 }, C(Jl.value, (e, n) => K(l.$slots, "time-label", Vt({
|
|
3465
3480
|
key: `time_label_${e.id}`,
|
|
3466
3481
|
ref_for: !0
|
|
3467
3482
|
}, {
|
|
3468
3483
|
x: c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2,
|
|
3469
3484
|
y: c.value.bottom,
|
|
3470
|
-
fontSize:
|
|
3485
|
+
fontSize: w.value.xAxis,
|
|
3471
3486
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3472
|
-
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom +
|
|
3487
|
+
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom + w.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3473
3488
|
absoluteIndex: e.absoluteIndex,
|
|
3474
3489
|
content: e.text,
|
|
3475
3490
|
textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3476
3491
|
show: e && e.text
|
|
3477
|
-
}), void 0, !0)), 128)) : (s(!0), r(
|
|
3492
|
+
}), void 0, !0)), 128)) : (s(!0), r(b, { key: 1 }, C(Jl.value, (e, n) => (s(), r("g", {
|
|
3478
3493
|
key: `time_label_${n}`
|
|
3479
3494
|
}, [
|
|
3480
|
-
e && e.text ? (s(), r(
|
|
3495
|
+
e && e.text ? (s(), r(b, { key: 0 }, [
|
|
3481
3496
|
String(e.text).includes(`
|
|
3482
3497
|
`) ? (s(), r("text", {
|
|
3483
3498
|
key: 1,
|
|
3484
3499
|
class: "vue-data-ui-time-label",
|
|
3485
3500
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3486
|
-
"font-size":
|
|
3501
|
+
"font-size": w.value.xAxis,
|
|
3487
3502
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3488
|
-
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom +
|
|
3489
|
-
style:
|
|
3503
|
+
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom + w.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3504
|
+
style: _({
|
|
3490
3505
|
cursor: ca() ? "pointer" : "default"
|
|
3491
3506
|
}),
|
|
3492
3507
|
innerHTML: v(en)({
|
|
3493
3508
|
content: String(e.text),
|
|
3494
|
-
fontSize:
|
|
3509
|
+
fontSize: w.value.xAxis,
|
|
3495
3510
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3496
3511
|
x: 0,
|
|
3497
3512
|
y: 0
|
|
@@ -3501,10 +3516,10 @@ const xn = {
|
|
|
3501
3516
|
key: 0,
|
|
3502
3517
|
class: "vue-data-ui-time-label",
|
|
3503
3518
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3504
|
-
"font-size":
|
|
3519
|
+
"font-size": w.value.xAxis,
|
|
3505
3520
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3506
|
-
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom +
|
|
3507
|
-
style:
|
|
3521
|
+
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom + w.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3522
|
+
style: _({
|
|
3508
3523
|
cursor: ca() ? "pointer" : "default"
|
|
3509
3524
|
}),
|
|
3510
3525
|
onClick: () => ma(e, n)
|
|
@@ -3513,7 +3528,7 @@ const xn = {
|
|
|
3513
3528
|
]))), 128))
|
|
3514
3529
|
], 512)) : f("", !0),
|
|
3515
3530
|
Ca.value.length && !k.value.isStacked ? (s(), r("g", Xi, [
|
|
3516
|
-
(s(!0), r(
|
|
3531
|
+
(s(!0), r(b, null, C(Ca.value, (e) => (s(), r("g", {
|
|
3517
3532
|
key: e.uid
|
|
3518
3533
|
}, [
|
|
3519
3534
|
e.yTop && e.show && isFinite(e.yTop) ? (s(), r("line", {
|
|
@@ -3546,10 +3561,10 @@ const xn = {
|
|
|
3546
3561
|
x: e.x1,
|
|
3547
3562
|
width: c.value.width,
|
|
3548
3563
|
height: v(W)(e.areaHeight, 0),
|
|
3549
|
-
fill: v(
|
|
3564
|
+
fill: v(nt)(e.config.area.fill, e.config.area.opacity),
|
|
3550
3565
|
style: { animation: "none !important" }
|
|
3551
3566
|
}, null, 8, Ui)) : f("", !0),
|
|
3552
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (s(), r("rect",
|
|
3567
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (s(), r("rect", Vt({
|
|
3553
3568
|
key: 3,
|
|
3554
3569
|
class: "vue-ui-xy-annotation-label-box"
|
|
3555
3570
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : f("", !0),
|
|
@@ -3565,7 +3580,7 @@ const xn = {
|
|
|
3565
3580
|
}, ne(e.config.label.text), 9, qi)) : f("", !0)
|
|
3566
3581
|
]))), 128))
|
|
3567
3582
|
])) : f("", !0),
|
|
3568
|
-
t.value.chart.timeTag.show && (![null, void 0].includes(
|
|
3583
|
+
t.value.chart.timeTag.show && (![null, void 0].includes(L.value) || ![null, void 0].includes(O.value)) ? (s(), r("g", Zi, [
|
|
3569
3584
|
(s(), r("foreignObject", {
|
|
3570
3585
|
x: Io(),
|
|
3571
3586
|
y: c.value.bottom,
|
|
@@ -3577,60 +3592,60 @@ const xn = {
|
|
|
3577
3592
|
ref_key: "timeTagEl",
|
|
3578
3593
|
ref: Ea,
|
|
3579
3594
|
class: "vue-ui-xy-time-tag",
|
|
3580
|
-
style:
|
|
3595
|
+
style: _(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
|
|
3581
3596
|
innerHTML: No.value
|
|
3582
3597
|
}, null, 12, Ji)
|
|
3583
3598
|
], 8, Ki)),
|
|
3584
3599
|
y("circle", {
|
|
3585
|
-
cx: c.value.left + c.value.width / T.value * ((
|
|
3600
|
+
cx: c.value.left + c.value.width / T.value * ((L.value !== null ? L.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / T.value / 2,
|
|
3586
3601
|
cy: c.value.bottom,
|
|
3587
3602
|
r: t.value.chart.timeTag.circleMarker.radius,
|
|
3588
3603
|
fill: t.value.chart.timeTag.circleMarker.color
|
|
3589
3604
|
}, null, 8, Qi)
|
|
3590
3605
|
])) : f("", !0)
|
|
3591
3606
|
])) : f("", !0),
|
|
3592
|
-
|
|
3607
|
+
kl.value ? (s(), r("rect", Vt({ key: 2 }, tl.value, {
|
|
3593
3608
|
"data-start": p.value.start,
|
|
3594
3609
|
"data-end": p.value.end
|
|
3595
3610
|
}), null, 16, ji)) : f("", !0),
|
|
3596
|
-
|
|
3611
|
+
K(l.$slots, "svg", { svg: Al.value }, void 0, !0)
|
|
3597
3612
|
], 512)
|
|
3598
3613
|
], 46, Dn)),
|
|
3599
3614
|
l.$slots.watermark ? (s(), r("div", es, [
|
|
3600
|
-
|
|
3615
|
+
K(l.$slots, "watermark", At(zt({ isPrinting: v(ie) || v(m) })), void 0, !0)
|
|
3601
3616
|
])) : f("", !0),
|
|
3602
|
-
(s(!0), r(
|
|
3617
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3603
3618
|
key: `tag_line_${e.id}`
|
|
3604
3619
|
}, [
|
|
3605
|
-
(s(!0), r(
|
|
3620
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3606
3621
|
key: `tag_line_${n}_${i}`
|
|
3607
3622
|
}, [
|
|
3608
|
-
[
|
|
3623
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (s(), r("div", {
|
|
3609
3624
|
key: 0,
|
|
3610
3625
|
ref_for: !0,
|
|
3611
3626
|
ref: (o) => zl(n, i, o, "right", "line"),
|
|
3612
3627
|
class: "vue-ui-xy-tag",
|
|
3613
3628
|
"data-tag": "right",
|
|
3614
|
-
style:
|
|
3629
|
+
style: _({
|
|
3615
3630
|
position: "fixed",
|
|
3616
|
-
top: v(
|
|
3617
|
-
svgElement:
|
|
3631
|
+
top: v(Tt)({
|
|
3632
|
+
svgElement: Ae.value,
|
|
3618
3633
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
3619
3634
|
y: a.y,
|
|
3620
|
-
element:
|
|
3635
|
+
element: et.value[`${n}_${i}_right_line`],
|
|
3621
3636
|
position: "right"
|
|
3622
3637
|
}).top + "px",
|
|
3623
|
-
left: v(
|
|
3624
|
-
svgElement:
|
|
3638
|
+
left: v(Tt)({
|
|
3639
|
+
svgElement: Ae.value,
|
|
3625
3640
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
3626
3641
|
y: a.y,
|
|
3627
|
-
element:
|
|
3642
|
+
element: et.value[`${n}_${i}_right_line`],
|
|
3628
3643
|
position: "right"
|
|
3629
3644
|
}).left + "px",
|
|
3630
3645
|
height: "fit-content",
|
|
3631
3646
|
width: "fit-content",
|
|
3632
3647
|
background: e.color,
|
|
3633
|
-
color: v(
|
|
3648
|
+
color: v(ut)(e.color),
|
|
3634
3649
|
padding: "0 6px",
|
|
3635
3650
|
fontSize: t.value.line.tag.fontSize + "px",
|
|
3636
3651
|
opacity: 1
|
|
@@ -3645,7 +3660,7 @@ const xn = {
|
|
|
3645
3660
|
])),
|
|
3646
3661
|
y("div", {
|
|
3647
3662
|
class: "vue-ui-xy-tag-content",
|
|
3648
|
-
innerHTML: v(
|
|
3663
|
+
innerHTML: v(Le)(
|
|
3649
3664
|
t.value.line.tag.formatter,
|
|
3650
3665
|
a.value,
|
|
3651
3666
|
e.name,
|
|
@@ -3657,32 +3672,32 @@ const xn = {
|
|
|
3657
3672
|
)
|
|
3658
3673
|
}, null, 8, as)
|
|
3659
3674
|
], 4)) : f("", !0),
|
|
3660
|
-
[
|
|
3675
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (s(), r("div", {
|
|
3661
3676
|
key: 1,
|
|
3662
3677
|
ref_for: !0,
|
|
3663
3678
|
ref: (o) => zl(n, i, o, "left", "line"),
|
|
3664
3679
|
class: "vue-ui-xy-tag",
|
|
3665
3680
|
"data-tag": "left",
|
|
3666
|
-
style:
|
|
3681
|
+
style: _({
|
|
3667
3682
|
position: "fixed",
|
|
3668
|
-
top: v(
|
|
3669
|
-
svgElement:
|
|
3683
|
+
top: v(Tt)({
|
|
3684
|
+
svgElement: Ae.value,
|
|
3670
3685
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
3671
3686
|
y: a.y,
|
|
3672
|
-
element:
|
|
3687
|
+
element: et.value[`${n}_${i}_left_line`],
|
|
3673
3688
|
position: "left"
|
|
3674
3689
|
}).top + "px",
|
|
3675
|
-
left: v(
|
|
3676
|
-
svgElement:
|
|
3690
|
+
left: v(Tt)({
|
|
3691
|
+
svgElement: Ae.value,
|
|
3677
3692
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
3678
3693
|
y: a.y,
|
|
3679
|
-
element:
|
|
3694
|
+
element: et.value[`${n}_${i}_left_line`],
|
|
3680
3695
|
position: "left"
|
|
3681
3696
|
}).left + "px",
|
|
3682
3697
|
height: "fit-content",
|
|
3683
3698
|
width: "fit-content",
|
|
3684
3699
|
background: e.color,
|
|
3685
|
-
color: v(
|
|
3700
|
+
color: v(ut)(e.color),
|
|
3686
3701
|
padding: "0 6px",
|
|
3687
3702
|
fontSize: t.value.line.tag.fontSize + "px",
|
|
3688
3703
|
opacity: 1
|
|
@@ -3697,7 +3712,7 @@ const xn = {
|
|
|
3697
3712
|
])),
|
|
3698
3713
|
y("div", {
|
|
3699
3714
|
class: "vue-ui-xy-tag-content",
|
|
3700
|
-
innerHTML: v(
|
|
3715
|
+
innerHTML: v(Le)(
|
|
3701
3716
|
t.value.line.tag.formatter,
|
|
3702
3717
|
a.value,
|
|
3703
3718
|
e.name,
|
|
@@ -3711,38 +3726,38 @@ const xn = {
|
|
|
3711
3726
|
], 4)) : f("", !0)
|
|
3712
3727
|
], 64))), 128))
|
|
3713
3728
|
], 64))), 128)),
|
|
3714
|
-
(s(!0), r(
|
|
3729
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r(b, {
|
|
3715
3730
|
key: `tag_plot_${e.id}`
|
|
3716
3731
|
}, [
|
|
3717
|
-
(s(!0), r(
|
|
3732
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3718
3733
|
key: `tag_plot_${n}_${i}`
|
|
3719
3734
|
}, [
|
|
3720
|
-
[
|
|
3735
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (s(), r("div", {
|
|
3721
3736
|
key: 0,
|
|
3722
3737
|
ref_for: !0,
|
|
3723
3738
|
ref: (o) => zl(n, i, o, "right", "plot"),
|
|
3724
3739
|
class: "vue-ui-xy-tag",
|
|
3725
3740
|
"data-tag": "right",
|
|
3726
|
-
style:
|
|
3741
|
+
style: _({
|
|
3727
3742
|
position: "fixed",
|
|
3728
|
-
top: v(
|
|
3729
|
-
svgElement:
|
|
3743
|
+
top: v(Tt)({
|
|
3744
|
+
svgElement: Ae.value,
|
|
3730
3745
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
3731
3746
|
y: a.y,
|
|
3732
|
-
element:
|
|
3747
|
+
element: et.value[`${n}_${i}_right_plot`],
|
|
3733
3748
|
position: "right"
|
|
3734
3749
|
}).top + "px",
|
|
3735
|
-
left: v(
|
|
3736
|
-
svgElement:
|
|
3750
|
+
left: v(Tt)({
|
|
3751
|
+
svgElement: Ae.value,
|
|
3737
3752
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
3738
3753
|
y: a.y,
|
|
3739
|
-
element:
|
|
3754
|
+
element: et.value[`${n}_${i}_right_plot`],
|
|
3740
3755
|
position: "right"
|
|
3741
3756
|
}).left + "px",
|
|
3742
3757
|
height: "fit-content",
|
|
3743
3758
|
width: "fit-content",
|
|
3744
3759
|
background: e.color,
|
|
3745
|
-
color: v(
|
|
3760
|
+
color: v(ut)(e.color),
|
|
3746
3761
|
padding: "0 6px",
|
|
3747
3762
|
fontSize: t.value.plot.tag.fontSize + "px",
|
|
3748
3763
|
opacity: 1
|
|
@@ -3757,7 +3772,7 @@ const xn = {
|
|
|
3757
3772
|
])),
|
|
3758
3773
|
y("div", {
|
|
3759
3774
|
class: "vue-ui-xy-tag-content",
|
|
3760
|
-
innerHTML: v(
|
|
3775
|
+
innerHTML: v(Le)(
|
|
3761
3776
|
t.value.plot.tag.formatter,
|
|
3762
3777
|
a.value,
|
|
3763
3778
|
e.name,
|
|
@@ -3769,32 +3784,32 @@ const xn = {
|
|
|
3769
3784
|
)
|
|
3770
3785
|
}, null, 8, rs)
|
|
3771
3786
|
], 4)) : f("", !0),
|
|
3772
|
-
[
|
|
3787
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (s(), r("div", {
|
|
3773
3788
|
key: 1,
|
|
3774
3789
|
ref_for: !0,
|
|
3775
3790
|
ref: (o) => zl(n, i, o, "left", "plot"),
|
|
3776
3791
|
class: "vue-ui-xy-tag",
|
|
3777
3792
|
"data-tag": "left",
|
|
3778
|
-
style:
|
|
3793
|
+
style: _({
|
|
3779
3794
|
position: "fixed",
|
|
3780
|
-
top: v(
|
|
3781
|
-
svgElement:
|
|
3795
|
+
top: v(Tt)({
|
|
3796
|
+
svgElement: Ae.value,
|
|
3782
3797
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
3783
3798
|
y: a.y,
|
|
3784
|
-
element:
|
|
3799
|
+
element: et.value[`${n}_${i}_left_plot`],
|
|
3785
3800
|
position: "left"
|
|
3786
3801
|
}).top + "px",
|
|
3787
|
-
left: v(
|
|
3788
|
-
svgElement:
|
|
3802
|
+
left: v(Tt)({
|
|
3803
|
+
svgElement: Ae.value,
|
|
3789
3804
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
3790
3805
|
y: a.y,
|
|
3791
|
-
element:
|
|
3806
|
+
element: et.value[`${n}_${i}_left_plot`],
|
|
3792
3807
|
position: "left"
|
|
3793
3808
|
}).left + "px",
|
|
3794
3809
|
height: "fit-content",
|
|
3795
3810
|
width: "fit-content",
|
|
3796
3811
|
background: e.color,
|
|
3797
|
-
color: v(
|
|
3812
|
+
color: v(ut)(e.color),
|
|
3798
3813
|
padding: "0 6px",
|
|
3799
3814
|
fontSize: t.value.plot.tag.fontSize + "px",
|
|
3800
3815
|
opacity: 1
|
|
@@ -3809,7 +3824,7 @@ const xn = {
|
|
|
3809
3824
|
])),
|
|
3810
3825
|
y("div", {
|
|
3811
3826
|
class: "vue-ui-xy-tag-content",
|
|
3812
|
-
innerHTML: v(
|
|
3827
|
+
innerHTML: v(Le)(
|
|
3813
3828
|
t.value.plot.tag.formatter,
|
|
3814
3829
|
a.value,
|
|
3815
3830
|
e.name,
|
|
@@ -3823,12 +3838,12 @@ const xn = {
|
|
|
3823
3838
|
], 4)) : f("", !0)
|
|
3824
3839
|
], 64))), 128))
|
|
3825
3840
|
], 64))), 128)),
|
|
3826
|
-
t.value.chart.zoom.preview.enable ? (s(), r(
|
|
3827
|
-
t.value.chart.zoom.show &&
|
|
3841
|
+
t.value.chart.zoom.preview.enable ? (s(), r(b, { key: 5 }, [
|
|
3842
|
+
t.value.chart.zoom.show && ze.value > 6 && jt.value ? (s(), Je(Hn, {
|
|
3828
3843
|
ref_key: "chartSlicer",
|
|
3829
|
-
ref:
|
|
3830
|
-
key: `slicer_${
|
|
3831
|
-
max:
|
|
3844
|
+
ref: He,
|
|
3845
|
+
key: `slicer_${St.value}`,
|
|
3846
|
+
max: ze.value,
|
|
3832
3847
|
min: 0,
|
|
3833
3848
|
valueStart: p.value.start,
|
|
3834
3849
|
valueEnd: p.value.end,
|
|
@@ -3841,8 +3856,8 @@ const xn = {
|
|
|
3841
3856
|
background: t.value.chart.zoom.color,
|
|
3842
3857
|
fontSize: t.value.chart.zoom.fontSize,
|
|
3843
3858
|
useResetSlot: t.value.chart.zoom.useResetSlot,
|
|
3844
|
-
labelLeft:
|
|
3845
|
-
labelRight:
|
|
3859
|
+
labelLeft: _e.value[0] ? _e.value[0].text : "",
|
|
3860
|
+
labelRight: _e.value.at(-1) ? _e.value.at(-1).text : "",
|
|
3846
3861
|
textColor: t.value.chart.color,
|
|
3847
3862
|
usePreciseLabels: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat,
|
|
3848
3863
|
preciseLabels: ea.value,
|
|
@@ -3855,31 +3870,31 @@ const xn = {
|
|
|
3855
3870
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
3856
3871
|
minimapLineColor: t.value.chart.zoom.minimap.lineColor,
|
|
3857
3872
|
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3858
|
-
minimapSelectedIndex:
|
|
3873
|
+
minimapSelectedIndex: L.value,
|
|
3859
3874
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
3860
3875
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
3861
3876
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
3862
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...N.dataset.map((e) =>
|
|
3877
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...N.dataset.map((e) => Se(e.series).length)),
|
|
3863
3878
|
enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
|
|
3864
3879
|
enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
|
|
3865
3880
|
onReset: xa,
|
|
3866
3881
|
onTrapMouse: ga,
|
|
3867
|
-
onFutureStart: u[3] || (u[3] = (e) =>
|
|
3868
|
-
onFutureEnd: u[4] || (u[4] = (e) =>
|
|
3882
|
+
onFutureStart: u[3] || (u[3] = (e) => $t("start", e)),
|
|
3883
|
+
onFutureEnd: u[4] || (u[4] = (e) => $t("end", e)),
|
|
3869
3884
|
timeLabels: fa.value,
|
|
3870
|
-
isPreview:
|
|
3885
|
+
isPreview: kl.value
|
|
3871
3886
|
}, {
|
|
3872
|
-
"reset-action":
|
|
3873
|
-
|
|
3887
|
+
"reset-action": be(({ reset: e }) => [
|
|
3888
|
+
K(l.$slots, "reset-action", At(zt({ reset: e })), void 0, !0)
|
|
3874
3889
|
]),
|
|
3875
3890
|
_: 3
|
|
3876
3891
|
}, 8, ["max", "valueStart", "valueEnd", "start", "end", "selectedSeries", "customFormat", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "usePreciseLabels", "preciseLabels", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "timeLabels", "isPreview"])) : f("", !0)
|
|
3877
|
-
], 64)) : (s(), r(
|
|
3878
|
-
t.value.chart.zoom.show &&
|
|
3892
|
+
], 64)) : (s(), r(b, { key: 6 }, [
|
|
3893
|
+
t.value.chart.zoom.show && ze.value > 6 && jt.value ? (s(), Je(mn, {
|
|
3879
3894
|
ref_key: "chartSlicer",
|
|
3880
|
-
ref:
|
|
3881
|
-
key: `slicer_${
|
|
3882
|
-
max:
|
|
3895
|
+
ref: He,
|
|
3896
|
+
key: `slicer_${St.value}`,
|
|
3897
|
+
max: ze.value,
|
|
3883
3898
|
min: 0,
|
|
3884
3899
|
valueStart: p.value.start,
|
|
3885
3900
|
valueEnd: p.value.end,
|
|
@@ -3902,42 +3917,42 @@ const xn = {
|
|
|
3902
3917
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
3903
3918
|
minimapLineColor: t.value.chart.zoom.minimap.lineColor,
|
|
3904
3919
|
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3905
|
-
minimapSelectedIndex:
|
|
3920
|
+
minimapSelectedIndex: L.value,
|
|
3906
3921
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
3907
3922
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
3908
3923
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
3909
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...N.dataset.map((e) =>
|
|
3924
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...N.dataset.map((e) => Se(e.series).length)),
|
|
3910
3925
|
enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
|
|
3911
3926
|
enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
|
|
3912
3927
|
onReset: xa,
|
|
3913
3928
|
onTrapMouse: ga
|
|
3914
3929
|
}, {
|
|
3915
|
-
"reset-action":
|
|
3916
|
-
|
|
3930
|
+
"reset-action": be(({ reset: e }) => [
|
|
3931
|
+
K(l.$slots, "reset-action", At(zt({ reset: e })), void 0, !0)
|
|
3917
3932
|
]),
|
|
3918
3933
|
_: 3
|
|
3919
3934
|
}, 8, ["max", "valueStart", "valueEnd", "start", "end", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : f("", !0)
|
|
3920
3935
|
], 64)),
|
|
3921
3936
|
y("div", {
|
|
3922
|
-
id: `legend-bottom-${
|
|
3937
|
+
id: `legend-bottom-${Y.value}`
|
|
3923
3938
|
}, null, 8, hs),
|
|
3924
|
-
|
|
3939
|
+
bl.value ? (s(), Je(Vo, {
|
|
3925
3940
|
key: 7,
|
|
3926
|
-
to: t.value.chart.legend.position === "top" ? `#legend-top-${
|
|
3941
|
+
to: t.value.chart.legend.position === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
|
|
3927
3942
|
}, [
|
|
3928
3943
|
t.value.chart.legend.show ? (s(), r("div", {
|
|
3929
3944
|
key: 0,
|
|
3930
3945
|
ref_key: "chartLegend",
|
|
3931
|
-
ref:
|
|
3946
|
+
ref: st,
|
|
3932
3947
|
class: "vue-ui-xy-legend",
|
|
3933
|
-
style:
|
|
3948
|
+
style: _({
|
|
3934
3949
|
fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
|
|
3935
3950
|
})
|
|
3936
3951
|
}, [
|
|
3937
|
-
(s(!0), r(
|
|
3952
|
+
(s(!0), r(b, null, C(Ze.value, (e, n) => (s(), r("div", {
|
|
3938
3953
|
key: `div_legend_item_${n}`,
|
|
3939
3954
|
onClick: (a) => _a(e),
|
|
3940
|
-
class: Xe({ "vue-ui-xy-legend-item-alone":
|
|
3955
|
+
class: Xe({ "vue-ui-xy-legend-item-alone": Ze.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ue.value.includes(e.id) })
|
|
3941
3956
|
}, [
|
|
3942
3957
|
we.value[e.type] === "line" ? (s(), r("svg", ms, [
|
|
3943
3958
|
y("rect", {
|
|
@@ -3950,7 +3965,7 @@ const xn = {
|
|
|
3950
3965
|
width: "20",
|
|
3951
3966
|
fill: e.color
|
|
3952
3967
|
}, null, 8, gs),
|
|
3953
|
-
|
|
3968
|
+
Wt(El, {
|
|
3954
3969
|
plot: { x: 10, y: 9 },
|
|
3955
3970
|
radius: 4,
|
|
3956
3971
|
color: e.color,
|
|
@@ -3977,10 +3992,10 @@ const xn = {
|
|
|
3977
3992
|
height: "32",
|
|
3978
3993
|
width: "32",
|
|
3979
3994
|
stroke: "none",
|
|
3980
|
-
fill: l.$slots.pattern ? `url(#pattern_${
|
|
3995
|
+
fill: l.$slots.pattern ? `url(#pattern_${Y.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3981
3996
|
}, null, 8, ps)) : f("", !0)
|
|
3982
3997
|
])) : (s(), r("svg", ys, [
|
|
3983
|
-
|
|
3998
|
+
Wt(El, {
|
|
3984
3999
|
plot: { x: 6, y: 6 },
|
|
3985
4000
|
radius: 5,
|
|
3986
4001
|
color: e.color,
|
|
@@ -3988,27 +4003,27 @@ const xn = {
|
|
|
3988
4003
|
}, null, 8, ["color", "shape"])
|
|
3989
4004
|
])),
|
|
3990
4005
|
y("span", {
|
|
3991
|
-
style:
|
|
4006
|
+
style: _(`color:${t.value.chart.legend.color}`)
|
|
3992
4007
|
}, ne(e.name), 5)
|
|
3993
4008
|
], 10, fs))), 128))
|
|
3994
4009
|
], 4)) : (s(), r("div", {
|
|
3995
4010
|
key: 1,
|
|
3996
4011
|
ref_key: "chartLegend",
|
|
3997
|
-
ref:
|
|
4012
|
+
ref: st
|
|
3998
4013
|
}, [
|
|
3999
|
-
|
|
4014
|
+
K(l.$slots, "legend", { legend: Ze.value }, void 0, !0)
|
|
4000
4015
|
], 512))
|
|
4001
4016
|
], 8, ["to"])) : f("", !0),
|
|
4002
4017
|
l.$slots.source ? (s(), r("div", {
|
|
4003
4018
|
key: 8,
|
|
4004
4019
|
ref_key: "source",
|
|
4005
|
-
ref:
|
|
4020
|
+
ref: It,
|
|
4006
4021
|
dir: "auto"
|
|
4007
4022
|
}, [
|
|
4008
|
-
|
|
4023
|
+
K(l.$slots, "source", {}, void 0, !0)
|
|
4009
4024
|
], 512)) : f("", !0),
|
|
4010
|
-
|
|
4011
|
-
show: k.value.showTooltip &&
|
|
4025
|
+
Wt(v(ve), {
|
|
4026
|
+
show: k.value.showTooltip && Cl.value,
|
|
4012
4027
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
4013
4028
|
color: t.value.chart.tooltip.color,
|
|
4014
4029
|
fontSize: t.value.chart.tooltip.fontSize,
|
|
@@ -4020,66 +4035,66 @@ const xn = {
|
|
|
4020
4035
|
offsetY: t.value.chart.tooltip.offsetY,
|
|
4021
4036
|
parent: l.$refs.chart,
|
|
4022
4037
|
content: Ao.value,
|
|
4023
|
-
isFullscreen:
|
|
4038
|
+
isFullscreen: Re.value,
|
|
4024
4039
|
isCustom: t.value.chart.tooltip.customFormat && typeof t.value.chart.tooltip.customFormat == "function",
|
|
4025
4040
|
smooth: t.value.chart.tooltip.smooth,
|
|
4026
4041
|
backdropFilter: t.value.chart.tooltip.backdropFilter,
|
|
4027
4042
|
smoothForce: t.value.chart.tooltip.smoothForce,
|
|
4028
4043
|
smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold
|
|
4029
4044
|
}, {
|
|
4030
|
-
"tooltip-before":
|
|
4031
|
-
|
|
4045
|
+
"tooltip-before": be(() => [
|
|
4046
|
+
K(l.$slots, "tooltip-before", At(zt({ ...Ta.value })), void 0, !0)
|
|
4032
4047
|
]),
|
|
4033
|
-
"tooltip-after":
|
|
4034
|
-
|
|
4048
|
+
"tooltip-after": be(() => [
|
|
4049
|
+
K(l.$slots, "tooltip-after", At(zt({ ...Ta.value })), void 0, !0)
|
|
4035
4050
|
]),
|
|
4036
4051
|
_: 3
|
|
4037
4052
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
4038
|
-
jt.value ? (s(), Je(Eo(
|
|
4053
|
+
jt.value && t.value.chart.userOptions.buttons.table ? (s(), Je(Eo(_l.value.component), Vt({ key: 9 }, _l.value.props, {
|
|
4039
4054
|
ref_key: "tableUnit",
|
|
4040
|
-
ref:
|
|
4055
|
+
ref: bt,
|
|
4041
4056
|
onClose: Xa
|
|
4042
4057
|
}), qa({
|
|
4043
|
-
content:
|
|
4058
|
+
content: be(() => [
|
|
4044
4059
|
y("div", {
|
|
4045
|
-
style:
|
|
4060
|
+
style: _(`${v(ie) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
4046
4061
|
}, [
|
|
4047
4062
|
y("div", ks, [
|
|
4048
4063
|
ia(y("input", {
|
|
4049
4064
|
type: "checkbox",
|
|
4050
|
-
"onUpdate:modelValue": u[8] || (u[8] = (e) =>
|
|
4065
|
+
"onUpdate:modelValue": u[8] || (u[8] = (e) => mt.value = e)
|
|
4051
4066
|
}, null, 512), [
|
|
4052
|
-
[Do,
|
|
4067
|
+
[Do, mt.value]
|
|
4053
4068
|
]),
|
|
4054
4069
|
y("div", {
|
|
4055
|
-
onClick: u[9] || (u[9] = (e) =>
|
|
4070
|
+
onClick: u[9] || (u[9] = (e) => mt.value = !mt.value),
|
|
4056
4071
|
style: { cursor: "pointer" }
|
|
4057
4072
|
}, [
|
|
4058
|
-
|
|
4073
|
+
Wt(v(kt), {
|
|
4059
4074
|
name: "chartLine",
|
|
4060
4075
|
size: 20,
|
|
4061
4076
|
stroke: t.value.chart.color
|
|
4062
4077
|
}, null, 8, ["stroke"])
|
|
4063
4078
|
])
|
|
4064
4079
|
]),
|
|
4065
|
-
|
|
4066
|
-
key: `sparkline_${
|
|
4080
|
+
mt.value ? (s(), Je(v(sl), {
|
|
4081
|
+
key: `sparkline_${Kt.value}`,
|
|
4067
4082
|
dataset: Lo.value,
|
|
4068
4083
|
config: Mo.value
|
|
4069
4084
|
}, null, 8, ["dataset", "config"])) : (s(), Je(v(Ye), {
|
|
4070
|
-
key: `table_${
|
|
4071
|
-
colNames:
|
|
4072
|
-
head:
|
|
4073
|
-
body:
|
|
4074
|
-
config:
|
|
4075
|
-
title: t.value.table.useDialog ? "" :
|
|
4085
|
+
key: `table_${Zt.value}`,
|
|
4086
|
+
colNames: Ol.value.colNames,
|
|
4087
|
+
head: Ol.value.head,
|
|
4088
|
+
body: Ol.value.body,
|
|
4089
|
+
config: Ol.value.config,
|
|
4090
|
+
title: t.value.table.useDialog ? "" : _l.value.title,
|
|
4076
4091
|
withCloseButton: !t.value.table.useDialog,
|
|
4077
4092
|
onClose: Xa
|
|
4078
4093
|
}, {
|
|
4079
|
-
th:
|
|
4094
|
+
th: be(({ th: e }) => [
|
|
4080
4095
|
y("div", { innerHTML: e }, null, 8, ws)
|
|
4081
4096
|
]),
|
|
4082
|
-
td:
|
|
4097
|
+
td: be(({ td: e }) => [
|
|
4083
4098
|
Za(ne(isNaN(Number(e)) ? e : v(Qe)({
|
|
4084
4099
|
p: t.value.chart.labels.prefix,
|
|
4085
4100
|
v: e,
|
|
@@ -4095,32 +4110,32 @@ const xn = {
|
|
|
4095
4110
|
}, [
|
|
4096
4111
|
t.value.table.useDialog ? {
|
|
4097
4112
|
name: "title",
|
|
4098
|
-
fn:
|
|
4099
|
-
Za(ne(
|
|
4113
|
+
fn: be(() => [
|
|
4114
|
+
Za(ne(_l.value.title), 1)
|
|
4100
4115
|
]),
|
|
4101
4116
|
key: "0"
|
|
4102
4117
|
} : void 0,
|
|
4103
4118
|
t.value.table.useDialog ? {
|
|
4104
4119
|
name: "actions",
|
|
4105
|
-
fn:
|
|
4120
|
+
fn: be(() => [
|
|
4106
4121
|
y("button", {
|
|
4107
4122
|
tabindex: "0",
|
|
4108
4123
|
class: "vue-ui-user-options-button",
|
|
4109
4124
|
onClick: u[7] || (u[7] = (e) => ta(t.value.chart.userOptions.callbacks.csv))
|
|
4110
4125
|
}, [
|
|
4111
|
-
|
|
4126
|
+
Wt(v(kt), {
|
|
4112
4127
|
name: "excel",
|
|
4113
|
-
stroke:
|
|
4128
|
+
stroke: _l.value.props.color
|
|
4114
4129
|
}, null, 8, ["stroke"])
|
|
4115
4130
|
])
|
|
4116
4131
|
]),
|
|
4117
4132
|
key: "1"
|
|
4118
4133
|
} : void 0
|
|
4119
4134
|
]), 1040)) : f("", !0),
|
|
4120
|
-
v(
|
|
4135
|
+
v(oe) ? (s(), Je(rn, { key: 10 })) : f("", !0)
|
|
4121
4136
|
], 46, Vn));
|
|
4122
4137
|
}
|
|
4123
|
-
}, Hs = /* @__PURE__ */ ao(Ss, [["__scopeId", "data-v-
|
|
4138
|
+
}, Hs = /* @__PURE__ */ ao(Ss, [["__scopeId", "data-v-76dcbded"]]);
|
|
4124
4139
|
export {
|
|
4125
4140
|
Hs as default
|
|
4126
4141
|
};
|