vue-data-ui 3.0.0-next.37 → 3.0.0-next.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BwexzLX9.js → Arrow-Cxfs_jDk.js} +1 -1
- package/dist/{BaseDraggableDialog-CqOYUWgJ.js → BaseDraggableDialog-D8bUhwCR.js} +2 -2
- package/dist/{BaseIcon-bM96sLiE.js → BaseIcon-B5hDik6M.js} +1 -1
- package/dist/{ColorPicker-DKeSOZp_.js → ColorPicker-X30bIjOM.js} +2 -2
- package/dist/{DataTable-CpC-f3bF.js → DataTable-BrP5zT2y.js} +2 -2
- package/dist/{Legend-CqhrdBNU.js → Legend-Bok1w9PE.js} +2 -2
- package/dist/{NonSvgPenAndPaper-qbMyX2kx.js → NonSvgPenAndPaper-mFU4kkja.js} +3 -3
- package/dist/{PackageVersion-C05X5sSL.js → PackageVersion-DoJRJ_yZ.js} +1 -1
- package/dist/{PenAndPaper-BX5caC5i.js → PenAndPaper-BKLSbUJJ.js} +3 -3
- package/dist/{Shape-DoY1nSuX.js → Shape-Bp0uUbyi.js} +1 -1
- package/dist/{Slicer-K-fV6Zyn.js → Slicer-BIL4fQe9.js} +2 -2
- package/dist/{SparkTooltip-BigTvWHM.js → SparkTooltip-BrA3pWY1.js} +1 -1
- package/dist/{Title-CdBcQLZl.js → Title-C4mHBlGm.js} +1 -1
- package/dist/{Tooltip-cQGOp05f.js → Tooltip-CIAaZqi-.js} +1 -1
- package/dist/{UserOptions-BLgabL-g.js → UserOptions-CtdmjrzM.js} +2 -2
- package/dist/{dom-to-png-ZtEhWueM.js → dom-to-png-D7urYnQL.js} +1 -1
- package/dist/{img-Ch-SX__W.js → img-u92jJi7s.js} +1 -1
- package/dist/{index-wp5binlq.js → index-Do8Yy3T8.js} +9 -1
- package/dist/{pdf-BvVuQkf5.js → pdf-Da78hVzB.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-DLeFGu88.js → useNestedProp-C7A9vyBD.js} +1 -1
- package/dist/{usePrinter-gmsJtZaC.js → usePrinter-BvP9oj3O.js} +2 -2
- package/dist/{vue-data-ui-DKdztRxO.js → vue-data-ui-BVss51hf.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BUzO3sJJ.js → vue-ui-3d-bar-CsijfJeX.js} +6 -6
- package/dist/{vue-ui-accordion-DR5j0NkU.js → vue-ui-accordion-DqXZmmXi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C5qSTZM-.js → vue-ui-age-pyramid-CLr8-9V2.js} +6 -6
- package/dist/{vue-ui-annotator-3QPadpcx.js → vue-ui-annotator-BKH5uBbZ.js} +2 -2
- package/dist/vue-ui-bullet-Bv-AKTw8.js +571 -0
- package/dist/{vue-ui-candlestick-BS2slL0A.js → vue-ui-candlestick-2MCzyUcz.js} +7 -7
- package/dist/{vue-ui-carousel-table-CZ2FKTL_.js → vue-ui-carousel-table-cw5HlSnS.js} +4 -4
- package/dist/{vue-ui-chestnut-YDFpeqcB.js → vue-ui-chestnut-BgsrweZJ.js} +5 -5
- package/dist/{vue-ui-chord-Uik7yTc-.js → vue-ui-chord-M_mjkpTk.js} +8 -8
- package/dist/{vue-ui-circle-pack-tLHQ_HMs.js → vue-ui-circle-pack-Mpyhugsj.js} +6 -6
- package/dist/{vue-ui-cursor-DuTjwu1N.js → vue-ui-cursor-DSM1Yx0w.js} +2 -2
- package/dist/{vue-ui-dashboard-BImS6A6f.js → vue-ui-dashboard-DRzgS8bH.js} +62 -62
- package/dist/{vue-ui-digits-DHyvQFHB.js → vue-ui-digits-Cc0q_XUJ.js} +2 -2
- package/dist/{vue-ui-donut-BzABsTv4.js → vue-ui-donut-BcWb6mkK.js} +8 -8
- package/dist/{vue-ui-donut-evolution-HYzJM6BY.js → vue-ui-donut-evolution-DwGNKYA1.js} +8 -8
- package/dist/{vue-ui-dumbbell-BcOhZ27d.js → vue-ui-dumbbell-ZyS0CtQ-.js} +7 -7
- package/dist/{vue-ui-flow-wr8MxKU3.js → vue-ui-flow-DcjaQvd5.js} +7 -7
- package/dist/{vue-ui-funnel-Dx3BObkz.js → vue-ui-funnel-DnPwnTbH.js} +6 -6
- package/dist/{vue-ui-galaxy-hvFBNCuJ.js → vue-ui-galaxy-BUf27AcC.js} +5 -5
- package/dist/{vue-ui-gauge-Bj9BTOK0.js → vue-ui-gauge-y52sZ03m.js} +6 -6
- package/dist/{vue-ui-gizmo-DrMgMC65.js → vue-ui-gizmo-CbOvKh62.js} +3 -3
- package/dist/{vue-ui-heatmap-svE65xaD.js → vue-ui-heatmap-DFcG0beX.js} +312 -318
- package/dist/{vue-ui-history-plot-C2RS1rJk.js → vue-ui-history-plot-CrEafJoS.js} +7 -7
- package/dist/{vue-ui-kpi-D5BC1Mr0.js → vue-ui-kpi-B7xxS9iY.js} +3 -3
- package/dist/{vue-ui-mini-loader-D62FIGRG.js → vue-ui-mini-loader-BOoPc7za.js} +2 -2
- package/dist/{vue-ui-molecule-CJf9kVTU.js → vue-ui-molecule-DjLDHkE4.js} +5 -5
- package/dist/{vue-ui-mood-radar-Dgtoq_LP.js → vue-ui-mood-radar-CDpRBAeI.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DwkH1lkj.js → vue-ui-nested-donuts-BB07uN8o.js} +9 -9
- package/dist/{vue-ui-onion-CJsi74WE.js → vue-ui-onion-QtmsKAXa.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BmmszbMf.js → vue-ui-parallel-coordinate-plot-C9igDR3-.js} +8 -8
- package/dist/{vue-ui-quadrant-DHoY_j3Z.js → vue-ui-quadrant-Bbyn8jqM.js} +8 -8
- package/dist/{vue-ui-quick-chart-B-AMJ-H2.js → vue-ui-quick-chart-DpgVYsO_.js} +620 -611
- package/dist/{vue-ui-radar-wI51h1dY.js → vue-ui-radar-BQtoJTN1.js} +7 -7
- package/dist/{vue-ui-rating-Dx4qaN31.js → vue-ui-rating-CayItUX5.js} +2 -2
- package/dist/{vue-ui-relation-circle-DpkTm4GN.js → vue-ui-relation-circle-BQPvHFqF.js} +6 -6
- package/dist/{vue-ui-ridgeline-13TEZdZt.js → vue-ui-ridgeline-Djw8uzUc.js} +8 -8
- package/dist/{vue-ui-rings-KYYXSL_J.js → vue-ui-rings-DdW9icm5.js} +8 -8
- package/dist/{vue-ui-scatter-DThb1IMn.js → vue-ui-scatter-ko0ev9Hy.js} +8 -8
- package/dist/{vue-ui-skeleton-D4JJ_IcV.js → vue-ui-skeleton-Btfrm6Mb.js} +3 -3
- package/dist/{vue-ui-smiley-BjuXDhY2.js → vue-ui-smiley-CscAe46K.js} +2 -2
- package/dist/{vue-ui-spark-trend-slD0lRZ2.js → vue-ui-spark-trend-DPo61M0c.js} +3 -3
- package/dist/{vue-ui-sparkbar-CfY4t5Xc.js → vue-ui-sparkbar-C3PmYQCw.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BLwYhS2D.js → vue-ui-sparkgauge-BVeKIvzV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B07RkXJi.js → vue-ui-sparkhistogram-qQFd_Ahm.js} +4 -4
- package/dist/{vue-ui-sparkline-Cs4aXowg.js → vue-ui-sparkline-CS9mKrwW.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-5LmEwZJ5.js → vue-ui-sparkstackbar-CgQkP8A3.js} +3 -3
- package/dist/{vue-ui-stackbar-CH5n0yJL.js → vue-ui-stackbar-emX2SvlM.js} +9 -9
- package/dist/{vue-ui-strip-plot-DntZFKql.js → vue-ui-strip-plot-BUBtGmhH.js} +7 -7
- package/dist/{vue-ui-table-DHvtU4aX.js → vue-ui-table-DHJ5c0TM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CG7Vj0Km.js → vue-ui-table-heatmap-YXVD2ajW.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4jiuei1.js → vue-ui-table-sparkline-DehiyqPe.js} +4 -4
- package/dist/{vue-ui-thermometer-BDV1pxGB.js → vue-ui-thermometer-COQFOTU7.js} +6 -6
- package/dist/{vue-ui-timer-TNQa3Eof.js → vue-ui-timer-DG3qPM0B.js} +5 -5
- package/dist/{vue-ui-tiremarks-B7Pzjjc6.js → vue-ui-tiremarks-BSUFcLke.js} +6 -6
- package/dist/{vue-ui-treemap-TjFlub50.js → vue-ui-treemap-BDLQFlzo.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CRrqaana.js → vue-ui-vertical-bar-D37Bl2x2.js} +9 -9
- package/dist/{vue-ui-waffle-galoGgFT.js → vue-ui-waffle-CysJSES6.js} +8 -8
- package/dist/{vue-ui-wheel-DLfh_d06.js → vue-ui-wheel-Cm5g4KdO.js} +6 -6
- package/dist/{vue-ui-word-cloud-D47QRpYd.js → vue-ui-word-cloud-FEIoDTjf.js} +6 -6
- package/dist/{vue-ui-world-C3tzPkEp.js → vue-ui-world-CQxuqljX.js} +6 -6
- package/dist/{vue-ui-xy-CHjxAv_x.js → vue-ui-xy-TBO42wxL.js} +527 -527
- package/dist/{vue-ui-xy-canvas-DVhri5-F.js → vue-ui-xy-canvas-DyPds5xu.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-bullet-B52QaMvO.js +0 -513
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useCssVars as qa, computed as k, ref as y, onMounted as yt, onBeforeUnmount as kt, watch as
|
|
2
|
-
import { c as pt, V as wt, U as St, X as ao, F as Ge, u as oo, e as Ot, A as uo, a5 as
|
|
3
|
-
import { u as Nt } from "./useNestedProp-
|
|
1
|
+
import { useCssVars as qa, computed as k, ref as y, onMounted as yt, onBeforeUnmount as kt, watch as ll, nextTick as Yl, onUpdated as Za, createElementBlock as s, openBlock as u, createElementVNode as p, createCommentVNode as f, renderSlot as J, normalizeStyle as $, createVNode as Wl, withDirectives as Rt, unref as v, Fragment as x, renderList as L, normalizeClass as Ie, vModelText as ga, toDisplayString as te, defineAsyncComponent as fl, useSlots as Ja, getCurrentInstance as Ka, toRefs as Qa, watchEffect as ja, createBlock as De, createSlots as eo, withCtx as xe, normalizeProps as il, guardReactiveProps as gl, mergeProps as gt, vModelCheckbox as lo, createTextVNode as to } from "vue";
|
|
2
|
+
import { c as pt, V as wt, U as St, X as ao, F as Ge, u as oo, e as Ot, A as uo, a5 as je, b as io, D as ut, ac as Cl, d as so, p as no, ad as mt, aa as W, ae as ro, v as H, af as ma, ag as xa, ah as co, ai as ba, aj as pa, i as we, x as vo, y as ho, _ as ya, R as el, f as He, w as zl, s as Xe, a8 as j, L as fo, ak as xt, I as go, al as ml, C as Ve, t as mo, a as xo, o as ka, q as bo, r as po, E as Fl } from "./index-Do8Yy3T8.js";
|
|
3
|
+
import { u as Nt } from "./useNestedProp-C7A9vyBD.js";
|
|
4
4
|
import { u as wa } from "./useTimeLabels-DkzmKfZn.js";
|
|
5
5
|
import { u as yo } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
6
|
-
import { S as ko } from "./Slicer-
|
|
7
|
-
import wo from "./BaseIcon-
|
|
6
|
+
import { S as ko } from "./Slicer-BIL4fQe9.js";
|
|
7
|
+
import wo from "./BaseIcon-B5hDik6M.js";
|
|
8
8
|
import { t as Pt, u as So } from "./useResponsive-DfdjqQps.js";
|
|
9
9
|
import { _ as Sa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import $o from "./Title-
|
|
11
|
-
import { _ as bt } from "./Shape-
|
|
12
|
-
import _o from "./img-
|
|
13
|
-
import { u as Lo } from "./usePrinter-
|
|
10
|
+
import $o from "./Title-C4mHBlGm.js";
|
|
11
|
+
import { _ as bt } from "./Shape-Bp0uUbyi.js";
|
|
12
|
+
import _o from "./img-u92jJi7s.js";
|
|
13
|
+
import { u as Lo } from "./usePrinter-BvP9oj3O.js";
|
|
14
14
|
import { u as Mo, B as Ao } from "./BaseScanner-DIK2NTdp.js";
|
|
15
15
|
const Co = {
|
|
16
16
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -200,18 +200,18 @@ const Co = {
|
|
|
200
200
|
b.push(g);
|
|
201
201
|
return b;
|
|
202
202
|
});
|
|
203
|
-
function
|
|
203
|
+
function tl() {
|
|
204
204
|
fe("reset");
|
|
205
205
|
}
|
|
206
206
|
y({
|
|
207
207
|
start: ue.value,
|
|
208
208
|
end: re.value
|
|
209
|
-
}),
|
|
209
|
+
}), ll(
|
|
210
210
|
() => d.min,
|
|
211
211
|
(b) => {
|
|
212
212
|
Number(ue.value) < Number(b) && (ue.value = Number(b)), Number(re.value) < Number(b) && (re.value = Number(b));
|
|
213
213
|
}
|
|
214
|
-
),
|
|
214
|
+
), ll(
|
|
215
215
|
() => d.max,
|
|
216
216
|
(b) => {
|
|
217
217
|
Number(ue.value) > Number(b) && (ue.value = Number(b)), Number(re.value) > Number(b) && (re.value = Number(b));
|
|
@@ -220,7 +220,7 @@ const Co = {
|
|
|
220
220
|
const Sl = y(null), D = y({
|
|
221
221
|
width: 1,
|
|
222
222
|
height: 1
|
|
223
|
-
}),
|
|
223
|
+
}), sl = y(null);
|
|
224
224
|
yt(() => {
|
|
225
225
|
if (xl.value) {
|
|
226
226
|
const b = Pt(() => {
|
|
@@ -229,10 +229,10 @@ const Co = {
|
|
|
229
229
|
});
|
|
230
230
|
D.value.width = g, D.value.height = h - 47;
|
|
231
231
|
});
|
|
232
|
-
|
|
232
|
+
sl.value = new ResizeObserver(b), sl.value.observe(Sl.value);
|
|
233
233
|
}
|
|
234
234
|
}), kt(() => {
|
|
235
|
-
|
|
235
|
+
sl.value && sl.value.disconnect();
|
|
236
236
|
});
|
|
237
237
|
const ge = k(() => d.minimap.length ? D.value.width / d.minimap.length : 0), M = k(() => {
|
|
238
238
|
if (!d.minimap.length) return [];
|
|
@@ -253,26 +253,26 @@ const Co = {
|
|
|
253
253
|
}), Oe = k(() => ({
|
|
254
254
|
x: ge.value * ue.value + ge.value / 2,
|
|
255
255
|
width: D.value.width * ((re.value - ue.value) / d.max) - ge.value
|
|
256
|
-
})),
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
})), ie = y(d.minimapSelectedIndex);
|
|
257
|
+
ll(() => d.minimapSelectedIndex, (b) => {
|
|
258
|
+
ie.value = b + d.valueStart;
|
|
259
259
|
}, { immediate: !0 });
|
|
260
|
-
function
|
|
261
|
-
|
|
260
|
+
function se(b) {
|
|
261
|
+
ie.value = b, b >= d.valueStart && b < d.valueEnd && fe("trapMouse", b - d.valueStart);
|
|
262
262
|
}
|
|
263
263
|
const Ol = y(0), $l = y(null), Ee = y(null);
|
|
264
264
|
function nl(b) {
|
|
265
265
|
ue.value = b, $l.value && ($l.value.value = String(b)), fe("futureStart", b), Xl();
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function al(b) {
|
|
268
268
|
re.value = b, Ee.value && (Ee.value.value = b), fe("futureEnd", b), Xl();
|
|
269
269
|
}
|
|
270
270
|
const Nl = k(() => d.valueEnd - d.valueStart), Be = y(!1);
|
|
271
271
|
let ae = y(null);
|
|
272
|
-
const K = k(() => (Il.value - 48) / (d.max - d.min)),
|
|
272
|
+
const K = k(() => (Il.value - 48) / (d.max - d.min)), it = k(() => (Il.value - 48) / (d.max - d.min) * Nl.value), st = y(2.5), ql = k(() => {
|
|
273
273
|
const b = Il.value - 48;
|
|
274
274
|
return Math.ceil(
|
|
275
|
-
(d.max - d.min) / ((b -
|
|
275
|
+
(d.max - d.min) / ((b - it.value) / st.value)
|
|
276
276
|
);
|
|
277
277
|
}), rl = (b) => {
|
|
278
278
|
if (m.value = !0, !d.enableSelectionDrag)
|
|
@@ -328,7 +328,7 @@ const Co = {
|
|
|
328
328
|
width: 0,
|
|
329
329
|
left: 0
|
|
330
330
|
});
|
|
331
|
-
|
|
331
|
+
ll([ue, re], async () => {
|
|
332
332
|
if (await Yl(), !Ze.value || !w.value) {
|
|
333
333
|
e.value = !1, ne.value = { width: 0, left: 0 };
|
|
334
334
|
return;
|
|
@@ -342,9 +342,9 @@ const Co = {
|
|
|
342
342
|
};
|
|
343
343
|
}), Za(() => {
|
|
344
344
|
S(), Ae();
|
|
345
|
-
}),
|
|
345
|
+
}), ll(() => d.labelLeft, () => {
|
|
346
346
|
Yl(S);
|
|
347
|
-
}, { deep: !0 }),
|
|
347
|
+
}, { deep: !0 }), ll(() => d.labelRight, () => {
|
|
348
348
|
Yl(Ae);
|
|
349
349
|
}, { deep: !0 });
|
|
350
350
|
const Y = k(() => {
|
|
@@ -356,8 +356,8 @@ const Co = {
|
|
|
356
356
|
});
|
|
357
357
|
return $t({
|
|
358
358
|
setStartValue: nl,
|
|
359
|
-
setEndValue:
|
|
360
|
-
}), (b, g) => (u(),
|
|
359
|
+
setEndValue: al
|
|
360
|
+
}), (b, g) => (u(), s("div", {
|
|
361
361
|
"data-dom-to-png-ignore": "",
|
|
362
362
|
style: { padding: "0 24px" },
|
|
363
363
|
class: "vue-data-ui-zoom",
|
|
@@ -367,11 +367,11 @@ const Co = {
|
|
|
367
367
|
onTouchstart: rl
|
|
368
368
|
}, [
|
|
369
369
|
p("div", Co, [
|
|
370
|
-
A.valueStart !== A.refreshStartPoint || A.valueEnd !== Ul.value ? (u(),
|
|
370
|
+
A.valueStart !== A.refreshStartPoint || A.valueEnd !== Ul.value ? (u(), s("div", zo, [
|
|
371
371
|
A.useResetSlot ? J(b.$slots, "reset-action", {
|
|
372
372
|
key: 1,
|
|
373
|
-
reset:
|
|
374
|
-
}, void 0, !0) : (u(),
|
|
373
|
+
reset: tl
|
|
374
|
+
}, void 0, !0) : (u(), s("button", {
|
|
375
375
|
key: 0,
|
|
376
376
|
tabindex: "0",
|
|
377
377
|
role: "button",
|
|
@@ -380,7 +380,7 @@ const Co = {
|
|
|
380
380
|
top: xl.value ? "36px" : "-16px",
|
|
381
381
|
pointerEvents: "all !important"
|
|
382
382
|
}),
|
|
383
|
-
onClick:
|
|
383
|
+
onClick: tl
|
|
384
384
|
}, [
|
|
385
385
|
Wl(wo, {
|
|
386
386
|
name: "refresh",
|
|
@@ -397,8 +397,8 @@ const Co = {
|
|
|
397
397
|
onMouseenter: g[11] || (g[11] = (h) => m.value = !0),
|
|
398
398
|
onMouseleave: g[12] || (g[12] = (h) => m.value = !1)
|
|
399
399
|
}, [
|
|
400
|
-
xl.value ? (u(),
|
|
401
|
-
(u(),
|
|
400
|
+
xl.value ? (u(), s("div", Io, [
|
|
401
|
+
(u(), s("svg", {
|
|
402
402
|
xmlns: v(ao),
|
|
403
403
|
viewBox: `0 0 ${D.value.width < 0 ? 0 : D.value.width} ${D.value.height < 0 ? 0 : D.value.height}`
|
|
404
404
|
}, [
|
|
@@ -493,8 +493,8 @@ const Co = {
|
|
|
493
493
|
r: "3",
|
|
494
494
|
fill: A.minimapLineColor
|
|
495
495
|
}, null, 8, Yo),
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
ie.value !== null ? (u(!0), s(x, { key: 0 }, L(Tl.value, (h, U) => (u(), s("g", null, [
|
|
497
|
+
ie.value === h && h >= A.valueStart && h < A.valueEnd ? (u(), s("line", {
|
|
498
498
|
key: 0,
|
|
499
499
|
x1: ge.value * U + ge.value / 2,
|
|
500
500
|
x2: ge.value * U + ge.value / 2,
|
|
@@ -506,7 +506,7 @@ const Co = {
|
|
|
506
506
|
"stroke-width": "1"
|
|
507
507
|
}, null, 8, Do)) : f("", !0)
|
|
508
508
|
]))), 256)) : f("", !0),
|
|
509
|
-
(u(!0),
|
|
509
|
+
(u(!0), s(x, null, L(Tl.value, (h, U) => (u(), s("rect", {
|
|
510
510
|
x: ge.value * U,
|
|
511
511
|
y: 0,
|
|
512
512
|
height: Math.max(D.value.height, 0),
|
|
@@ -517,9 +517,9 @@ const Co = {
|
|
|
517
517
|
}]),
|
|
518
518
|
onMousedown: g[0] || (g[0] = (Se) => ye.value = !0),
|
|
519
519
|
onMouseup: g[1] || (g[1] = (Se) => ye.value = !1),
|
|
520
|
-
onMouseenter: (Se) =>
|
|
520
|
+
onMouseenter: (Se) => se(h),
|
|
521
521
|
onMouseleave: g[2] || (g[2] = (Se) => {
|
|
522
|
-
|
|
522
|
+
ie.value = null, fe("trapMouse", null);
|
|
523
523
|
})
|
|
524
524
|
}, null, 44, Xo))), 256))
|
|
525
525
|
], 8, To))
|
|
@@ -537,7 +537,7 @@ const Co = {
|
|
|
537
537
|
cursor: ye.value ? "grabbing" : "grab"
|
|
538
538
|
})
|
|
539
539
|
}, null, 38),
|
|
540
|
-
A.enableRangeHandles ? Rt((u(),
|
|
540
|
+
A.enableRangeHandles ? Rt((u(), s("input", {
|
|
541
541
|
ref_key: "rangeStart",
|
|
542
542
|
ref: $l,
|
|
543
543
|
key: `range-min${Ol.value}`,
|
|
@@ -558,7 +558,7 @@ const Co = {
|
|
|
558
558
|
{ number: !0 }
|
|
559
559
|
]
|
|
560
560
|
]) : f("", !0),
|
|
561
|
-
A.enableRangeHandles ? Rt((u(),
|
|
561
|
+
A.enableRangeHandles ? Rt((u(), s("input", {
|
|
562
562
|
key: 2,
|
|
563
563
|
ref_key: "rangeEnd",
|
|
564
564
|
ref: Ee,
|
|
@@ -567,7 +567,7 @@ const Co = {
|
|
|
567
567
|
min: A.min,
|
|
568
568
|
max: A.max,
|
|
569
569
|
"onUpdate:modelValue": g[8] || (g[8] = (h) => pl.value = h),
|
|
570
|
-
onInuput:
|
|
570
|
+
onInuput: al,
|
|
571
571
|
onMouseenter: g[9] || (g[9] = (h) => _l("end")),
|
|
572
572
|
onPointermove: g[10] || (g[10] = (h) => pl.value = +h.target.value),
|
|
573
573
|
onPointerup: Gl
|
|
@@ -579,7 +579,7 @@ const Co = {
|
|
|
579
579
|
{ number: !0 }
|
|
580
580
|
]
|
|
581
581
|
]) : f("", !0),
|
|
582
|
-
Y.value.left ? (u(),
|
|
582
|
+
Y.value.left ? (u(), s("div", {
|
|
583
583
|
key: 3,
|
|
584
584
|
ref_key: "tooltipLeft",
|
|
585
585
|
ref: Ze,
|
|
@@ -598,7 +598,7 @@ const Co = {
|
|
|
598
598
|
visibility: e.value || Y.value.left === Y.value.right ? "hidden" : "visible"
|
|
599
599
|
})
|
|
600
600
|
}, te(Y.value.left), 7)) : f("", !0),
|
|
601
|
-
(e.value || Y.value.left === Y.value.right) && (Y.value.left || Y.value.right) ? (u(),
|
|
601
|
+
(e.value || Y.value.left === Y.value.right) && (Y.value.left || Y.value.right) ? (u(), s("div", {
|
|
602
602
|
key: 4,
|
|
603
603
|
ref: "tooltipMerge",
|
|
604
604
|
class: Ie({
|
|
@@ -617,7 +617,7 @@ const Co = {
|
|
|
617
617
|
zIndex: "4"
|
|
618
618
|
})
|
|
619
619
|
}, te(Y.value.left === Y.value.right ? Y.value.left : `${Y.value.left} - ${Y.value.right}`), 7)) : f("", !0),
|
|
620
|
-
Y.value.right ? (u(),
|
|
620
|
+
Y.value.right ? (u(), s("div", {
|
|
621
621
|
key: 5,
|
|
622
622
|
ref_key: "tooltipRight",
|
|
623
623
|
ref: w,
|
|
@@ -639,51 +639,51 @@ const Co = {
|
|
|
639
639
|
], 544)
|
|
640
640
|
], 544));
|
|
641
641
|
}
|
|
642
|
-
}, Zo = /* @__PURE__ */ Sa(qo, [["__scopeId", "data-v-ceb68a19"]]), Jo = ["id"], Ko = ["viewBox", "aria-label"], Qo = ["x", "y", "width", "height"], jo = { key: 1 }, eu = { class: "vue-ui-xy-grid" }, lu = ["stroke", "x1", "x2", "y1", "y2"], tu = ["stroke", "x1", "x2", "y1", "y2"], au = { key: 1 }, ou = ["x1", "x2", "y1", "y2", "stroke"], uu = ["x1", "x2", "y1", "y2", "stroke"],
|
|
642
|
+
}, Zo = /* @__PURE__ */ Sa(qo, [["__scopeId", "data-v-ceb68a19"]]), Jo = ["id"], Ko = ["viewBox", "aria-label"], Qo = ["x", "y", "width", "height"], jo = { key: 1 }, eu = { class: "vue-ui-xy-grid" }, lu = ["stroke", "x1", "x2", "y1", "y2"], tu = ["stroke", "x1", "x2", "y1", "y2"], au = { key: 1 }, ou = ["x1", "x2", "y1", "y2", "stroke"], uu = ["x1", "x2", "y1", "y2", "stroke"], iu = ["x1", "x2", "y1", "y2", "stroke"], su = { key: 3 }, nu = ["d", "stroke"], ru = { key: 4 }, cu = ["d", "stroke"], vu = ["id"], du = ["stop-color"], hu = ["stop-color"], fu = ["stop-color"], gu = ["id"], mu = ["stop-color"], xu = ["stop-color"], bu = ["stop-color"], pu = ["id"], yu = ["stop-color"], ku = ["stop-color"], wu = ["id"], Su = ["stop-color"], $u = ["stop-color"], _u = ["id"], Lu = ["stop-color"], Mu = ["stop-color"], Au = ["x", "y", "height", "width", "fill"], Cu = ["x", "y", "width"], zu = { key: 0 }, Iu = ["x", "y", "height", "width", "fill"], Tu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ou = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Nu = ["width", "x", "y"], Ru = { key: 0 }, Pu = ["id"], Hu = ["fill"], Vu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Eu = ["x", "y", "font-size", "fill"], Bu = ["stroke", "x1", "x2", "y1", "y2"], Fu = { key: 3 }, Wu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Yu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Du = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xu = ["fill", "font-size", "transform"], Gu = ["x1", "x2", "y1", "y2", "stroke"], Uu = ["x", "y", "font-size", "fill"], qu = ["x1", "x2", "y1", "y2", "stroke"], Zu = ["x", "y", "font-size", "fill"], Ju = ["width", "x", "y"], Ku = { style: { width: "100%" } }, Qu = { key: 0 }, ju = ["id"], ei = ["fill"], li = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ti = ["x", "y", "font-size", "fill"], ai = ["d", "stroke", "stroke-width", "stroke-dasharray"], oi = ["d", "stroke", "stroke-width", "stroke-dasharray"], ui = { key: 6 }, ii = { key: 0 }, si = ["d", "fill"], ni = ["d", "fill"], ri = ["d", "fill"], ci = ["d", "fill"], vi = ["d", "stroke", "stroke-width", "stroke-dasharray"], di = ["d", "stroke", "stroke-width", "stroke-dasharray"], hi = ["width", "x", "y"], fi = { style: { width: "100%" } }, gi = { key: 3 }, mi = ["id"], xi = ["fill"], bi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], pi = ["x", "y", "font-size", "fill"], yi = { key: 7 }, ki = ["x", "y", "font-size", "fill"], wi = ["x", "y", "font-size", "fill", "font-weight"], Si = { key: 8 }, $i = ["x", "y", "font-size", "fill"], _i = { key: 9 }, Li = ["x", "y"], Mi = ["innerHTML"], Ai = ["x", "y"], Ci = ["innerHTML"], zi = ["x1", "x2", "y1", "y2", "stroke"], Ii = { key: 10 }, Ti = ["x", "y", "font-size", "fill"], Oi = { key: 11 }, Ni = ["x", "y"], Ri = ["innerHTML"], Pi = ["x", "y"], Hi = ["innerHTML"], Vi = ["x1", "x2", "y1", "y2", "stroke"], Ei = ["x", "y", "font-size", "fill", "innerHTML"], Bi = ["x", "y", "font-size", "fill", "innerHTML"], Fi = ["x", "y", "font-size", "fill", "innerHTML"], Wi = ["x", "y", "font-size", "fill", "innerHTML"], Yi = ["id"], Di = ["stop-color"], Xi = ["stop-color"], Gi = ["x", "y", "width", "height", "fill", "onMouseenter"], Ui = ["font-size", "fill", "transform"], qi = ["x", "y", "font-size", "fill"], Zi = ["text-anchor", "font-size", "fill", "transform", "onClick"], Ji = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Ki = { key: 14 }, Qi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ji = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], es = ["y", "x", "width", "height", "fill"], ls = ["id", "x", "y", "font-size", "fill", "text-anchor"], ts = {
|
|
643
643
|
key: 15,
|
|
644
644
|
style: { "pointer-events": "none" }
|
|
645
|
-
},
|
|
645
|
+
}, as = ["x", "y"], os = ["cx", "cy", "r", "fill"], us = {
|
|
646
646
|
key: 4,
|
|
647
647
|
class: "vue-data-ui-watermark"
|
|
648
|
-
},
|
|
648
|
+
}, is = {
|
|
649
649
|
class: "vue-ui-xy-tag-arrow",
|
|
650
650
|
height: "20",
|
|
651
651
|
viewBox: "0 0 10 20",
|
|
652
652
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
653
|
-
},
|
|
653
|
+
}, ss = ["fill"], ns = ["innerHTML"], rs = {
|
|
654
654
|
class: "vue-ui-xy-tag-arrow",
|
|
655
655
|
height: "100%",
|
|
656
656
|
viewBox: "0 0 10 20",
|
|
657
657
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
658
|
-
},
|
|
658
|
+
}, cs = ["fill"], vs = ["innerHTML"], ds = {
|
|
659
659
|
class: "vue-ui-xy-tag-arrow",
|
|
660
660
|
height: "20",
|
|
661
661
|
viewBox: "0 0 10 20",
|
|
662
662
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
663
|
-
},
|
|
663
|
+
}, hs = ["fill"], fs = ["innerHTML"], gs = {
|
|
664
664
|
class: "vue-ui-xy-tag-arrow",
|
|
665
665
|
height: "100%",
|
|
666
666
|
viewBox: "0 0 10 20",
|
|
667
667
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
668
|
-
},
|
|
668
|
+
}, ms = ["fill"], xs = ["innerHTML"], bs = ["onClick"], ps = {
|
|
669
669
|
key: 0,
|
|
670
670
|
viewBox: "0 0 20 12",
|
|
671
671
|
height: "14",
|
|
672
672
|
width: "20"
|
|
673
|
-
},
|
|
673
|
+
}, ys = ["stroke", "fill"], ks = {
|
|
674
674
|
key: 1,
|
|
675
675
|
viewBox: "0 0 40 40",
|
|
676
676
|
height: "14",
|
|
677
677
|
width: "14"
|
|
678
|
-
},
|
|
678
|
+
}, ws = ["fill"], Ss = ["fill"], $s = {
|
|
679
679
|
key: 2,
|
|
680
680
|
viewBox: "0 0 12 12",
|
|
681
681
|
height: "14",
|
|
682
682
|
width: "14"
|
|
683
|
-
},
|
|
683
|
+
}, _s = {
|
|
684
684
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
685
685
|
"data-dom-to-png-ignore": ""
|
|
686
|
-
},
|
|
686
|
+
}, Ls = ["innerHTML"], Ms = {
|
|
687
687
|
__name: "vue-ui-xy",
|
|
688
688
|
props: {
|
|
689
689
|
config: {
|
|
@@ -705,9 +705,9 @@ const Co = {
|
|
|
705
705
|
},
|
|
706
706
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
707
707
|
setup(A, { expose: $t, emit: _t }) {
|
|
708
|
-
const d = A, Ue = fl(() => import("./DataTable-
|
|
709
|
-
height:
|
|
710
|
-
width:
|
|
708
|
+
const d = A, Ue = fl(() => import("./DataTable-BrP5zT2y.js")), ue = fl(() => import("./Tooltip-CIAaZqi-.js")), re = fl(() => import("./UserOptions-CtdmjrzM.js")), xl = fl(() => import("./BaseIcon-B5hDik6M.js")), Dl = fl(() => import("./vue-ui-table-sparkline-DehiyqPe.js")), Il = fl(() => import("./vue-ui-accordion-DqXZmmXi.js")), bl = fl(() => import("./PackageVersion-DoJRJ_yZ.js")), pl = fl(() => import("./PenAndPaper-BKLSbUJJ.js")), yl = _t, Xl = Ja(), Gl = Ka(), { vue_ui_xy: Ul } = oo(), fe = y(null), be = y(null), Me = y(null), qe = y(null), kl = y(null), wl = y(null), Lt = y(null), Te = y(null), Tl = y(null), tl = y(null), Sl = y(null), D = y(null), sl = y(null), ge = y(0), M = y(null), Oe = y(!0), ie = y(600), se = y(1e3), Ol = y("0 0 1000 600"), $l = y({ x: 0, y: 0 }), Ee = y({ line: "line", bar: "bar", plot: "plot" }), nl = y(!1), al = y(!1), Nl = y(!1), Be = y(null), ae = y([]), K = y(pt()), it = y(0), st = y(0), ql = y(0), rl = y(!0), Rl = y(0), N = y(null), Zl = y(!1), Pl = y(!0), Hl = y(!0), pe = y(null), ye = y({}), Ze = y(null), w = y(null), Jl = k(() => ({
|
|
709
|
+
height: ie.value,
|
|
710
|
+
width: se.value
|
|
711
711
|
})), Vl = d.config.downsample && d.config.downsample.threshold ? d.config.downsample.threshold : 500, m = y({
|
|
712
712
|
dataLabels: { show: !0 },
|
|
713
713
|
showTooltip: !0,
|
|
@@ -839,19 +839,19 @@ const Co = {
|
|
|
839
839
|
}
|
|
840
840
|
})
|
|
841
841
|
}), g = k({
|
|
842
|
-
get: () => Math.max(...Y.value.map((t) =>
|
|
842
|
+
get: () => Math.max(...Y.value.map((t) => je({ data: t.series, threshold: Vl }).length)),
|
|
843
843
|
set: (t) => t
|
|
844
844
|
}), h = y({ start: 0, end: g.value }), U = y({ start: 0, end: g.value }), Se = k(() => e.value.chart.zoom.preview.enable && (U.value.start !== h.value.start || U.value.end !== h.value.end));
|
|
845
845
|
function cl(t, c) {
|
|
846
846
|
U.value[t] = c;
|
|
847
847
|
}
|
|
848
848
|
const Mt = k(() => {
|
|
849
|
-
const { left: t, top: c, width: l, height:
|
|
849
|
+
const { left: t, top: c, width: l, height: i } = r.value, a = h.value.start, o = h.value.end - a, P = l / o, X = U.value.start - a, G = U.value.end - a, z = Math.max(0, Math.min(o, X)), O = Math.max(0, Math.min(o, G));
|
|
850
850
|
return {
|
|
851
851
|
x: t + z * P,
|
|
852
852
|
y: c,
|
|
853
853
|
width: (O - z) * P,
|
|
854
|
-
height:
|
|
854
|
+
height: i,
|
|
855
855
|
fill: e.value.chart.zoom.preview.fill,
|
|
856
856
|
stroke: e.value.chart.zoom.preview.stroke,
|
|
857
857
|
"stroke-width": e.value.chart.zoom.preview.strokeWidth,
|
|
@@ -865,7 +865,7 @@ const Co = {
|
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
867
|
});
|
|
868
|
-
|
|
868
|
+
ll(() => d.selectedXIndex, (t) => {
|
|
869
869
|
if ([null, void 0].includes(d.selectedXIndex)) {
|
|
870
870
|
w.value = null;
|
|
871
871
|
return;
|
|
@@ -877,32 +877,32 @@ const Co = {
|
|
|
877
877
|
elementId: `vue-ui-xy_${K.value}`,
|
|
878
878
|
fileName: e.value.chart.title.text || "vue-ui-xy",
|
|
879
879
|
options: e.value.chart.userOptions.print
|
|
880
|
-
}), $a = y(!1), Vt = k(() =>
|
|
880
|
+
}), $a = y(!1), Vt = k(() => io(e.value.customPalette)), ct = k(() => e.value.chart.grid.labels.yAxis.scaleMax ? e.value.chart.grid.labels.yAxis.scaleMax : Math.max(...ol.value.filter((t) => !ae.value.includes(t.id)).map((t) => Math.max(...t.series)))), At = k(() => {
|
|
881
881
|
if (e.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
882
882
|
return e.value.chart.grid.labels.yAxis.scaleMin;
|
|
883
|
-
const t = Math.min(...
|
|
883
|
+
const t = Math.min(...ol.value.filter((c) => !ae.value.includes(c.id)).map((c) => Math.min(...c.series)));
|
|
884
884
|
return t > 0 ? 0 : t;
|
|
885
|
-
}), Fe = k(() => e.value.chart.grid.labels.yAxis.useNiceScale ? ut(At.value, ct.value < 0 ? 0 : ct.value, e.value.chart.grid.labels.yAxis.commonScaleSteps) : Cl(At.value, ct.value < 0 ? 0 : ct.value, e.value.chart.grid.labels.yAxis.commonScaleSteps)), Ql = k(() => [null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) ? Fe.value.min >= 0 ? 0 : Math.abs(Fe.value.min) : -Fe.value.min),
|
|
886
|
-
const l =
|
|
885
|
+
}), Fe = k(() => e.value.chart.grid.labels.yAxis.useNiceScale ? ut(At.value, ct.value < 0 ? 0 : ct.value, e.value.chart.grid.labels.yAxis.commonScaleSteps) : Cl(At.value, ct.value < 0 ? 0 : ct.value, e.value.chart.grid.labels.yAxis.commonScaleSteps)), Ql = k(() => [null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) ? Fe.value.min >= 0 ? 0 : Math.abs(Fe.value.min) : -Fe.value.min), ol = k(() => Oe.value ? Y.value.map((t, c) => {
|
|
886
|
+
const l = je({
|
|
887
887
|
data: t.series,
|
|
888
888
|
threshold: e.value.downsample.threshold
|
|
889
|
-
}),
|
|
889
|
+
}), i = `uniqueId_${c}`;
|
|
890
890
|
return {
|
|
891
891
|
...t,
|
|
892
892
|
slotAbsoluteIndex: c,
|
|
893
893
|
series: l.map((a) => mt(a) ? a : null).slice(h.value.start, h.value.end),
|
|
894
|
-
color:
|
|
895
|
-
id:
|
|
896
|
-
scaleLabel: t.scaleLabel ||
|
|
894
|
+
color: so(t.color ? t.color : Vt.value[c] ? Vt.value[c] : no[c]),
|
|
895
|
+
id: i,
|
|
896
|
+
scaleLabel: t.scaleLabel || i
|
|
897
897
|
};
|
|
898
|
-
}) : Y.value),
|
|
898
|
+
}) : Y.value), Je = k(() => ol.value.map((t, c) => ({
|
|
899
899
|
absoluteIndex: c,
|
|
900
900
|
...t,
|
|
901
901
|
series: t.series.map((l) => l + Ql.value),
|
|
902
902
|
absoluteValues: t.series,
|
|
903
903
|
segregate: () => ea(t),
|
|
904
904
|
isSegregated: ae.value.includes(t.id)
|
|
905
|
-
}))), Ne = k(() =>
|
|
905
|
+
}))), Ne = k(() => ol.value.map((t, c) => ({
|
|
906
906
|
...t,
|
|
907
907
|
series: t.series.map((l) => l + Ql.value),
|
|
908
908
|
absoluteValues: t.series
|
|
@@ -920,10 +920,10 @@ const Co = {
|
|
|
920
920
|
Ct.value = t;
|
|
921
921
|
}, 100);
|
|
922
922
|
ja((t) => {
|
|
923
|
-
const c =
|
|
923
|
+
const c = tl.value;
|
|
924
924
|
if (!c) return;
|
|
925
|
-
const l = new ResizeObserver((
|
|
926
|
-
La(
|
|
925
|
+
const l = new ResizeObserver((i) => {
|
|
926
|
+
La(i[0].contentRect.height);
|
|
927
927
|
});
|
|
928
928
|
l.observe(c), t(() => l.disconnect());
|
|
929
929
|
}), kt(() => {
|
|
@@ -933,32 +933,32 @@ const Co = {
|
|
|
933
933
|
let t = 0;
|
|
934
934
|
Te.value && (t = Te.value.getBBox().height);
|
|
935
935
|
let c = 0;
|
|
936
|
-
return
|
|
936
|
+
return tl.value && (c = Ct.value), t + c + S.value.xAxis;
|
|
937
937
|
}), Ma = k(() => Y.value.some((t) => t.useProgression)), r = k(() => {
|
|
938
938
|
let t = 0;
|
|
939
939
|
const c = 36;
|
|
940
940
|
e.value.chart.grid.labels.show && (m.value.useIndividualScale && !m.value.isStacked ? t = (Y.value.length - ae.value.length) * (e.value.chart.grid.labels.yAxis.labelWidth + c) : m.value.useIndividualScale && m.value.isStacked ? t = e.value.chart.grid.labels.yAxis.labelWidth + c : t = _a());
|
|
941
|
-
const l = e.value.chart.labels.fontSize * 1.1,
|
|
942
|
-
if (
|
|
943
|
-
const o =
|
|
941
|
+
const l = e.value.chart.labels.fontSize * 1.1, i = Ma.value ? 24 : 6;
|
|
942
|
+
if (tl.value) {
|
|
943
|
+
const o = tl.value.getBBox().x;
|
|
944
944
|
o < 0 && (t += Math.abs(o));
|
|
945
945
|
}
|
|
946
|
-
const a =
|
|
946
|
+
const a = se.value - t - e.value.chart.grid.labels.yAxis.crosshairSize - i - e.value.chart.padding.left - e.value.chart.padding.right, n = e.value.chart.grid.position === "middle" ? 0 : a / _.value / 2;
|
|
947
947
|
return {
|
|
948
948
|
top: e.value.chart.padding.top + l,
|
|
949
|
-
right:
|
|
950
|
-
bottom:
|
|
949
|
+
right: se.value - i - e.value.chart.padding.right,
|
|
950
|
+
bottom: ie.value - Et.value - e.value.chart.padding.bottom - e.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
951
951
|
left: t + e.value.chart.grid.labels.yAxis.crosshairSize - n + e.value.chart.padding.left,
|
|
952
|
-
height:
|
|
952
|
+
height: ie.value - Et.value - e.value.chart.padding.top - e.value.chart.padding.bottom - l - e.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
953
953
|
width: a,
|
|
954
954
|
scaleLabelX: t,
|
|
955
955
|
individualOffsetX: c
|
|
956
956
|
};
|
|
957
957
|
}), Aa = k(() => {
|
|
958
|
-
const t = e.value.chart.grid.position === "middle" ? 1 : 0, c = _.value + t, l = W(r.value.top),
|
|
958
|
+
const t = e.value.chart.grid.position === "middle" ? 1 : 0, c = _.value + t, l = W(r.value.top), i = W(r.value.bottom);
|
|
959
959
|
return Array.from({ length: c }).map((a, n) => {
|
|
960
960
|
const o = r.value.width / _.value * n + r.value.left + ee.value;
|
|
961
|
-
return `M${o},${l} L${o},${
|
|
961
|
+
return `M${o},${l} L${o},${i}`;
|
|
962
962
|
}).join(" ");
|
|
963
963
|
}), Ca = k(() => {
|
|
964
964
|
if (!e.value.chart.grid.labels.xAxis.showCrosshairs)
|
|
@@ -967,10 +967,10 @@ const Co = {
|
|
|
967
967
|
showOnlyAtModulo: t,
|
|
968
968
|
showOnlyFirstAndLast: c,
|
|
969
969
|
modulo: l
|
|
970
|
-
} = e.value.chart.grid.labels.xAxisLabels,
|
|
970
|
+
} = e.value.chart.grid.labels.xAxisLabels, i = Q.value.length ? Math.min(l, [...new Set(Q.value.map((n) => n.text))].length) : l, a = Math.floor((h.value.end - h.value.start) / i);
|
|
971
971
|
return Q.value.map((n, o) => {
|
|
972
972
|
if (!n) return null;
|
|
973
|
-
const P = t && _.value <=
|
|
973
|
+
const P = t && _.value <= i, X = !c && !t, G = c && !t && (o === 0 || o === Q.value.length - 1), z = c && !t && w.value === o, O = !c && t && o % a === 0;
|
|
974
974
|
if (!(P || X || G || z || O))
|
|
975
975
|
return null;
|
|
976
976
|
const q = r.value.width / _.value, I = r.value.left + q * o + q / 2, V = e.value.chart.grid.labels.xAxis.crosshairSize, T = e.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, ce = T ? $e.value - ($e.value === r.value.bottom ? 0 : V / 2) : r.value.bottom, me = T ? $e.value + V / ($e.value === r.value.bottom ? 1 : 2) : r.value.bottom + V;
|
|
@@ -982,8 +982,8 @@ const Co = {
|
|
|
982
982
|
}
|
|
983
983
|
function za(t, c, l) {
|
|
984
984
|
if (!Ze.value) {
|
|
985
|
-
const
|
|
986
|
-
Ze.value =
|
|
985
|
+
const i = document.createElement("canvas");
|
|
986
|
+
Ze.value = i.getContext("2d");
|
|
987
987
|
}
|
|
988
988
|
return Ze.value.font = `normal ${t}px sans-serif`, Ze.value;
|
|
989
989
|
}
|
|
@@ -991,8 +991,8 @@ const Co = {
|
|
|
991
991
|
const t = fe.value.querySelectorAll(".vue-ui-xy-tag");
|
|
992
992
|
t.length && Array.from(t).forEach((c) => c.style.opacity = "0");
|
|
993
993
|
}
|
|
994
|
-
function vt(t, c, l,
|
|
995
|
-
l && (ye.value[`${t}_${c}_${
|
|
994
|
+
function vt(t, c, l, i, a) {
|
|
995
|
+
l && (ye.value[`${t}_${c}_${i}_${a}`] = l);
|
|
996
996
|
}
|
|
997
997
|
const Wt = y(!1);
|
|
998
998
|
async function Yt(t = !1) {
|
|
@@ -1002,7 +1002,7 @@ const Co = {
|
|
|
1002
1002
|
nl.value = !nl.value;
|
|
1003
1003
|
}
|
|
1004
1004
|
const Q = k(() => {
|
|
1005
|
-
const t = Math.max(...Y.value.map((c) =>
|
|
1005
|
+
const t = Math.max(...Y.value.map((c) => je({ data: c.series, threshold: e.value.downsample.threshold }).length));
|
|
1006
1006
|
return wa({
|
|
1007
1007
|
values: e.value.chart.grid.labels.xAxisLabels.values,
|
|
1008
1008
|
maxDatapoints: t,
|
|
@@ -1011,7 +1011,7 @@ const Co = {
|
|
|
1011
1011
|
end: h.value.end
|
|
1012
1012
|
});
|
|
1013
1013
|
}), Ia = k(() => {
|
|
1014
|
-
const t = Math.max(...Y.value.map((c) =>
|
|
1014
|
+
const t = Math.max(...Y.value.map((c) => je({ data: c.series, threshold: e.value.downsample.threshold }).length));
|
|
1015
1015
|
return wa({
|
|
1016
1016
|
values: e.value.chart.grid.labels.xAxisLabels.values,
|
|
1017
1017
|
maxDatapoints: t,
|
|
@@ -1024,15 +1024,15 @@ const Co = {
|
|
|
1024
1024
|
return Q.value.length ? Math.min(t, [...new Set(Q.value.map((c) => c.text))].length) : t;
|
|
1025
1025
|
});
|
|
1026
1026
|
function Dt(t, c) {
|
|
1027
|
-
const l = Ne.value.map((
|
|
1028
|
-
shape:
|
|
1029
|
-
name:
|
|
1030
|
-
color:
|
|
1031
|
-
type:
|
|
1032
|
-
value:
|
|
1033
|
-
comments:
|
|
1034
|
-
prefix:
|
|
1035
|
-
suffix:
|
|
1027
|
+
const l = Ne.value.map((i) => ({
|
|
1028
|
+
shape: i.shape || null,
|
|
1029
|
+
name: i.name,
|
|
1030
|
+
color: i.color,
|
|
1031
|
+
type: i.type,
|
|
1032
|
+
value: i.absoluteValues.find((a, n) => n === c),
|
|
1033
|
+
comments: i.comments || [],
|
|
1034
|
+
prefix: i.prefix || e.value.chart.labels.prefix,
|
|
1035
|
+
suffix: i.suffix || e.value.chart.labels.suffix
|
|
1036
1036
|
}));
|
|
1037
1037
|
yl("selectTimeLabel", {
|
|
1038
1038
|
datapoint: l,
|
|
@@ -1052,25 +1052,25 @@ const Co = {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
function Ta(t, c) {
|
|
1054
1054
|
let l = Array(Math.abs(t)).fill(0);
|
|
1055
|
-
for (let
|
|
1056
|
-
l[
|
|
1055
|
+
for (let i = 0; i < c.length && i < t; i += 1)
|
|
1056
|
+
l[i] = c[i];
|
|
1057
1057
|
return l;
|
|
1058
1058
|
}
|
|
1059
1059
|
function Oa(t) {
|
|
1060
|
-
const c = Math.max(...Y.value.map((l) =>
|
|
1060
|
+
const c = Math.max(...Y.value.map((l) => je({ data: l.series, threshold: e.value.downsample.threshold }).length));
|
|
1061
1061
|
return t > c ? c : t < 0 || e.value.chart.zoom.startIndex !== null && t < e.value.chart.zoom.startIndex ? e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex + 1 : 1 : t;
|
|
1062
1062
|
}
|
|
1063
1063
|
async function Tt() {
|
|
1064
1064
|
await Yl(), await Yl();
|
|
1065
|
-
const { startIndex: t, endIndex: c } = e.value.chart.zoom, l = Me.value,
|
|
1065
|
+
const { startIndex: t, endIndex: c } = e.value.chart.zoom, l = Me.value, i = Math.max(
|
|
1066
1066
|
...Y.value.map(
|
|
1067
|
-
(a) =>
|
|
1067
|
+
(a) => je({
|
|
1068
1068
|
data: a.series,
|
|
1069
1069
|
threshold: e.value.downsample.threshold
|
|
1070
1070
|
}).length
|
|
1071
1071
|
)
|
|
1072
1072
|
);
|
|
1073
|
-
(t != null || c != null) && l ? (t != null && l.setStartValue(t), c != null && l.setEndValue(Oa(c + 1))) : (h.value = { start: 0, end:
|
|
1073
|
+
(t != null || c != null) && l ? (t != null && l.setStartValue(t), c != null && l.setEndValue(Oa(c + 1))) : (h.value = { start: 0, end: i }, ge.value += 1), U.value.start = h.value.start, U.value.end = h.value.end;
|
|
1074
1074
|
}
|
|
1075
1075
|
async function Ut() {
|
|
1076
1076
|
await Tt();
|
|
@@ -1091,7 +1091,7 @@ const Co = {
|
|
|
1091
1091
|
return t.value >= 0 ? H(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : H(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
|
|
1092
1092
|
}
|
|
1093
1093
|
const oe = k(() => ({
|
|
1094
|
-
bar: r.value.width / _.value /
|
|
1094
|
+
bar: r.value.width / _.value / ol.value.filter((t) => t.type === "bar").filter((t) => !ae.value.includes(t.id)).length,
|
|
1095
1095
|
plot: r.value.width / _.value,
|
|
1096
1096
|
line: r.value.width / _.value
|
|
1097
1097
|
}));
|
|
@@ -1110,7 +1110,7 @@ const Co = {
|
|
|
1110
1110
|
const jl = y(null);
|
|
1111
1111
|
function Na(t) {
|
|
1112
1112
|
if (nl.value) return;
|
|
1113
|
-
const c = pe.value.getBoundingClientRect(),
|
|
1113
|
+
const c = pe.value.getBoundingClientRect(), i = pe.value.viewBox.baseVal.width / c.width, n = (t.clientX - c.left) * i - r.value.left, o = r.value.width / _.value, P = Math.floor(n / o);
|
|
1114
1114
|
P >= 0 && P < _.value ? jl.value !== P && (jl.value = P, na(!0, P)) : jt();
|
|
1115
1115
|
}
|
|
1116
1116
|
function jt() {
|
|
@@ -1136,7 +1136,7 @@ const Co = {
|
|
|
1136
1136
|
), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: c, seriesIndex: t + h.value.start });
|
|
1137
1137
|
}
|
|
1138
1138
|
function Ha() {
|
|
1139
|
-
return
|
|
1139
|
+
return Je.value.map((t) => ({
|
|
1140
1140
|
values: t.absoluteValues,
|
|
1141
1141
|
color: t.color,
|
|
1142
1142
|
name: t.name,
|
|
@@ -1145,21 +1145,21 @@ const Co = {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
async function Va({ scale: t = 2 } = {}) {
|
|
1147
1147
|
if (!fe.value) return;
|
|
1148
|
-
const { width: c, height: l } = fe.value.getBoundingClientRect(),
|
|
1148
|
+
const { width: c, height: l } = fe.value.getBoundingClientRect(), i = c / l, { imageUri: a, base64: n } = await _o({ domElement: fe.value, base64: !0, img: !0, scale: t });
|
|
1149
1149
|
return {
|
|
1150
1150
|
imageUri: a,
|
|
1151
1151
|
base64: n,
|
|
1152
1152
|
title: e.value.chart.title.text,
|
|
1153
1153
|
width: c,
|
|
1154
1154
|
height: l,
|
|
1155
|
-
aspectRatio:
|
|
1155
|
+
aspectRatio: i
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
1158
1158
|
function ea(t) {
|
|
1159
1159
|
if (ae.value.includes(t.id))
|
|
1160
1160
|
ae.value = ae.value.filter((c) => c !== t.id);
|
|
1161
1161
|
else {
|
|
1162
|
-
if (ae.value.length + 1 ===
|
|
1162
|
+
if (ae.value.length + 1 === ol.value.length) return;
|
|
1163
1163
|
ae.value.push(t.id);
|
|
1164
1164
|
}
|
|
1165
1165
|
yl("selectLegend", Ne.value.map((c) => ({
|
|
@@ -1190,7 +1190,7 @@ const Co = {
|
|
|
1190
1190
|
return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
|
|
1191
1191
|
}), Wa = k(() => Oe.value ? Y.value.map((t, c) => ({
|
|
1192
1192
|
...t,
|
|
1193
|
-
series:
|
|
1193
|
+
series: je({
|
|
1194
1194
|
data: t.series,
|
|
1195
1195
|
threshold: e.value.downsample.threshold
|
|
1196
1196
|
}),
|
|
@@ -1226,10 +1226,10 @@ const Co = {
|
|
|
1226
1226
|
userOptions: {
|
|
1227
1227
|
show: !1
|
|
1228
1228
|
}
|
|
1229
|
-
})), ee = k(() => e.value.chart.grid.position === "middle" ? 0 : r.value.width / _.value / 2), Ml = k(() => ro(
|
|
1229
|
+
})), ee = k(() => e.value.chart.grid.position === "middle" ? 0 : r.value.width / _.value / 2), Ml = k(() => ro(Je.value.filter((t) => !ae.value.includes(t.id)))), C = k(() => {
|
|
1230
1230
|
const t = Object.groupBy(Ml.value, (l) => l.scaleLabel), c = {};
|
|
1231
|
-
for (const [l,
|
|
1232
|
-
const a =
|
|
1231
|
+
for (const [l, i] of Object.entries(t)) {
|
|
1232
|
+
const a = i.flatMap((n) => n.absoluteValues);
|
|
1233
1233
|
c[l] = {
|
|
1234
1234
|
min: Math.min(...a) || 0,
|
|
1235
1235
|
max: Math.max(...a) || 1,
|
|
@@ -1238,15 +1238,15 @@ const Co = {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
return c;
|
|
1240
1240
|
}), Xa = k(() => {
|
|
1241
|
-
const t =
|
|
1241
|
+
const t = ol.value.filter((c) => c.type === "bar").filter((c) => !ae.value.includes(c.id)).length;
|
|
1242
1242
|
return r.value.width / _.value / t - ul.value * t;
|
|
1243
1243
|
}), ul = k(() => oe.value.line * e.value.bar.periodGap), ta = k(() => {
|
|
1244
1244
|
if (!e.value.chart.zoom.minimap.show) return [];
|
|
1245
1245
|
const t = Wa.value.filter((a) => !ae.value.includes(a.id)), c = Math.max(...t.map((a) => a.series.length)), l = [];
|
|
1246
1246
|
for (let a = 0; a < c; a += 1)
|
|
1247
1247
|
l.push(t.map((n) => n.series[a] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
|
|
1248
|
-
const
|
|
1249
|
-
return l.map((a) => a + (
|
|
1248
|
+
const i = Math.min(...l);
|
|
1249
|
+
return l.map((a) => a + (i < 0 ? Math.abs(i) : 0));
|
|
1250
1250
|
}), et = k(() => Ne.value.map((t) => ({
|
|
1251
1251
|
slotAbsoluteIndex: t.slotAbsoluteIndex,
|
|
1252
1252
|
shape: t.shape || null,
|
|
@@ -1269,16 +1269,16 @@ const Co = {
|
|
|
1269
1269
|
(z) => z.show && (z.yAxis.yTop != null || z.yAxis.yBottom != null)
|
|
1270
1270
|
);
|
|
1271
1271
|
if (!c.length) return [];
|
|
1272
|
-
const { left: l, right:
|
|
1272
|
+
const { left: l, right: i } = r.value, a = $e.value, n = r.value.height, o = Fe.value.min, X = Fe.value.max - o, G = (z) => {
|
|
1273
1273
|
const O = (z - 0) / X;
|
|
1274
1274
|
return a - O * n;
|
|
1275
1275
|
};
|
|
1276
1276
|
return c.map((z) => {
|
|
1277
1277
|
const { yAxis: { yTop: O, yBottom: q, label: I } } = z, V = O != null && q != null && O !== q, T = O == null ? null : G(O), ce = q == null ? null : G(q), me = za(I.fontSize);
|
|
1278
1278
|
me.font = `${I.fontSize}px sans-serif`;
|
|
1279
|
-
const le = me.measureText(I.text).width, Pe = I.fontSize,
|
|
1279
|
+
const le = me.measureText(I.text).width, Pe = I.fontSize, Qe = (I.position === "start" ? l + I.padding.left : i - I.padding.right) + I.offsetX, Ce = (T != null && ce != null ? Math.min(T, ce) : T ?? ce) - I.fontSize / 3 + I.offsetY - I.padding.top;
|
|
1280
1280
|
let B;
|
|
1281
|
-
I.textAnchor === "middle" ? B =
|
|
1281
|
+
I.textAnchor === "middle" ? B = Qe - le / 2 - I.padding.left : I.textAnchor === "end" ? B = Qe - le - I.padding.right : B = Qe - I.padding.left;
|
|
1282
1282
|
const F = Ce - Pe * 0.75 - I.padding.top;
|
|
1283
1283
|
return {
|
|
1284
1284
|
show: ![T, ce, F].includes(NaN),
|
|
@@ -1289,8 +1289,8 @@ const Co = {
|
|
|
1289
1289
|
yBottom: ce,
|
|
1290
1290
|
config: z.yAxis,
|
|
1291
1291
|
x1: l,
|
|
1292
|
-
x2:
|
|
1293
|
-
_text: { x:
|
|
1292
|
+
x2: i,
|
|
1293
|
+
_text: { x: Qe, y: Ce },
|
|
1294
1294
|
_box: {
|
|
1295
1295
|
x: B,
|
|
1296
1296
|
y: F,
|
|
@@ -1305,7 +1305,7 @@ const Co = {
|
|
|
1305
1305
|
};
|
|
1306
1306
|
});
|
|
1307
1307
|
}), vl = k(() => {
|
|
1308
|
-
const t = Ml.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, l = e.value.chart.grid.labels.yAxis.gap,
|
|
1308
|
+
const t = Ml.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, l = e.value.chart.grid.labels.yAxis.gap, i = m.value.isStacked, a = i ? l * (c - 1) : 0, n = r.value.height - a;
|
|
1309
1309
|
return t.filter((o) => o.type === "bar").map((o, P) => {
|
|
1310
1310
|
It(o);
|
|
1311
1311
|
const X = C.value[o.scaleLabel].min, G = C.value[o.scaleLabel].max;
|
|
@@ -1316,7 +1316,7 @@ const Co = {
|
|
|
1316
1316
|
}, O = {
|
|
1317
1317
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1318
1318
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((E) => ![void 0, null].includes(E))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((E) => ![null, void 0].includes(E)))
|
|
1319
|
-
}, q = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, V = e.value.chart.grid.labels.yAxis.useNiceScale ? ut(O.min, O.max === O.min ? O.max * I : O.max, q) : Cl(O.min, O.max === O.min ? O.max * I : O.max, q), T = e.value.chart.grid.labels.yAxis.useNiceScale ? ut(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, q) : Cl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, q), ce = V.min >= 0 ? 0 : Math.abs(V.min), me = 0, le = V.max + ce, Pe = T.max + Math.abs(me),
|
|
1319
|
+
}, q = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, V = e.value.chart.grid.labels.yAxis.useNiceScale ? ut(O.min, O.max === O.min ? O.max * I : O.max, q) : Cl(O.min, O.max === O.min ? O.max * I : O.max, q), T = e.value.chart.grid.labels.yAxis.useNiceScale ? ut(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, q) : Cl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, q), ce = V.min >= 0 ? 0 : Math.abs(V.min), me = 0, le = V.max + ce, Pe = T.max + Math.abs(me), Qe = o.stackIndex, Bl = c - 1 - Qe, Ce = i ? 1 - o.cumulatedStackRatio : 0, B = i ? n * Ce + l * Bl : 0, F = i ? n * o.stackRatio : r.value.height, ve = r.value.bottom - B - F * ce / le, ze = r.value.bottom - B - F * me / Pe, _e = Je.value.filter((E) => E.type === "bar").filter((E) => !ae.value.includes(E.id)).length, at = o.series.map((E, he) => {
|
|
1320
1320
|
const hl = m.value.useIndividualScale ? (o.absoluteValues[he] + ce) / le : Ll(E), Al = m.value.useIndividualScale && m.value.isStacked ? r.value.left + r.value.width / _.value * he : r.value.left + oe.value.bar * P + oe.value.bar * he * _e - Xa.value / 2 - P * ul.value;
|
|
1321
1321
|
return {
|
|
1322
1322
|
yOffset: H(B),
|
|
@@ -1329,7 +1329,7 @@ const Co = {
|
|
|
1329
1329
|
comment: o.comments && o.comments.slice(h.value.start, h.value.end)[he] || ""
|
|
1330
1330
|
};
|
|
1331
1331
|
}), Le = o.absoluteValues.map((E) => T.min >= 0 ? (E - Math.abs(T.min)) / (T.max - Math.abs(T.min)) : (E + Math.abs(T.min)) / (T.max + Math.abs(T.min))), dl = o.series.map((E, he) => {
|
|
1332
|
-
const hl = m.value.useIndividualScale && m.value.isStacked ? r.value.left + r.value.width / _.value * he : r.value.left - oe.value.bar / 2 + oe.value.bar * P + oe.value.bar * he *
|
|
1332
|
+
const hl = m.value.useIndividualScale && m.value.isStacked ? r.value.left + r.value.width / _.value * he : r.value.left - oe.value.bar / 2 + oe.value.bar * P + oe.value.bar * he * Je.value.filter((Al) => Al.type === "bar").filter((Al) => !ae.value.includes(Al.id)).length;
|
|
1333
1333
|
return {
|
|
1334
1334
|
yOffset: H(B),
|
|
1335
1335
|
individualHeight: H(F),
|
|
@@ -1370,7 +1370,7 @@ const Co = {
|
|
|
1370
1370
|
};
|
|
1371
1371
|
});
|
|
1372
1372
|
}), Ye = k(() => {
|
|
1373
|
-
const t = Ml.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, l = e.value.chart.grid.labels.yAxis.gap,
|
|
1373
|
+
const t = Ml.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, l = e.value.chart.grid.labels.yAxis.gap, i = m.value.isStacked, a = i ? l * (c - 1) : 0, n = r.value.height - a;
|
|
1374
1374
|
return t.filter((o) => o.type === "line").map((o, P) => {
|
|
1375
1375
|
It(o);
|
|
1376
1376
|
const X = C.value[o.scaleLabel].min, G = C.value[o.scaleLabel].max;
|
|
@@ -1381,7 +1381,7 @@ const Co = {
|
|
|
1381
1381
|
}, O = {
|
|
1382
1382
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1383
1383
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1384
|
-
}, q = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, V = e.value.chart.grid.labels.yAxis.useNiceScale ? ut(O.min, O.max === O.min ? O.max * I : O.max, q) : Cl(O.min, O.max === O.min ? O.max * I : O.max, q), T = e.value.chart.grid.labels.yAxis.useNiceScale ? ut(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, q) : Cl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, q), ce = V.min >= 0 ? 0 : Math.abs(V.min), me = 0, le = V.max + Math.abs(ce), Pe = T.max + Math.abs(me),
|
|
1384
|
+
}, q = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, V = e.value.chart.grid.labels.yAxis.useNiceScale ? ut(O.min, O.max === O.min ? O.max * I : O.max, q) : Cl(O.min, O.max === O.min ? O.max * I : O.max, q), T = e.value.chart.grid.labels.yAxis.useNiceScale ? ut(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, q) : Cl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, q), ce = V.min >= 0 ? 0 : Math.abs(V.min), me = 0, le = V.max + Math.abs(ce), Pe = T.max + Math.abs(me), Qe = o.stackIndex, Bl = c - 1 - Qe, Ce = i ? 1 - o.cumulatedStackRatio : 0, B = i ? n * Ce + l * Bl : 0, F = i ? n * o.stackRatio : r.value.height, ve = r.value.bottom - B - F * ce / le, ze = r.value.bottom - B - F * me / Pe, _e = o.series.map((R, ke) => {
|
|
1385
1385
|
const Ua = m.value.useIndividualScale ? (o.absoluteValues[ke] + Math.abs(ce)) / le : Ll(R);
|
|
1386
1386
|
return {
|
|
1387
1387
|
x: H(r.value.left + oe.value.line / 2 + oe.value.line * ke),
|
|
@@ -1444,8 +1444,8 @@ const Co = {
|
|
|
1444
1444
|
groupId: C.value[o.scaleLabel].groupId
|
|
1445
1445
|
};
|
|
1446
1446
|
});
|
|
1447
|
-
}),
|
|
1448
|
-
const t = Ml.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, l = e.value.chart.grid.labels.yAxis.gap,
|
|
1447
|
+
}), Ke = k(() => {
|
|
1448
|
+
const t = Ml.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, l = e.value.chart.grid.labels.yAxis.gap, i = m.value.isStacked, a = i ? l * (c - 1) : 0, n = r.value.height - a;
|
|
1449
1449
|
return t.filter((o) => o.type === "plot").map((o) => {
|
|
1450
1450
|
It(o);
|
|
1451
1451
|
const P = C.value[o.scaleLabel].min, X = C.value[o.scaleLabel].max;
|
|
@@ -1456,7 +1456,7 @@ const Co = {
|
|
|
1456
1456
|
}, z = {
|
|
1457
1457
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1458
1458
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
1459
|
-
}, O = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, q = 1.0000001, I = Cl(z.min, z.max === z.min ? z.max * q : z.max, O), V = Cl(G.valueMin, G.valueMax === G.valueMin ? G.valueMax * q : G.valueMax, O), T = I.min >= 0 ? 0 : Math.abs(I.min), ce = 0, me = I.max + T, le = V.max + Math.abs(ce), Pe = o.stackIndex,
|
|
1459
|
+
}, O = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, q = 1.0000001, I = Cl(z.min, z.max === z.min ? z.max * q : z.max, O), V = Cl(G.valueMin, G.valueMax === G.valueMin ? G.valueMax * q : G.valueMax, O), T = I.min >= 0 ? 0 : Math.abs(I.min), ce = 0, me = I.max + T, le = V.max + Math.abs(ce), Pe = o.stackIndex, Qe = c - 1 - Pe, Bl = i ? 1 - o.cumulatedStackRatio : 0, Ce = i ? n * Bl + l * Qe : 0, B = i ? n * o.stackRatio : r.value.height, F = r.value.bottom - Ce - B * T / me, ve = r.value.bottom - Ce - B * ce / le, ze = o.series.map((Z, de) => {
|
|
1460
1460
|
const E = m.value.useIndividualScale ? (o.absoluteValues[de] + Math.abs(T)) / me : Ll(Z);
|
|
1461
1461
|
return {
|
|
1462
1462
|
x: H(r.value.left + oe.value.plot / 2 + oe.value.plot * de),
|
|
@@ -1522,7 +1522,7 @@ const Co = {
|
|
|
1522
1522
|
id: n.id,
|
|
1523
1523
|
yOffset: n.yOffset || 0,
|
|
1524
1524
|
individualHeight: n.individualHeight || r.value.height
|
|
1525
|
-
})), l =
|
|
1525
|
+
})), l = Ke.value.map((n) => ({
|
|
1526
1526
|
name: n.name,
|
|
1527
1527
|
color: n.color,
|
|
1528
1528
|
scale: n.individualScale,
|
|
@@ -1534,8 +1534,8 @@ const Co = {
|
|
|
1534
1534
|
id: n.id,
|
|
1535
1535
|
yOffset: n.yOffset || 0,
|
|
1536
1536
|
individualHeight: n.individualHeight || r.value.height
|
|
1537
|
-
})),
|
|
1538
|
-
return
|
|
1537
|
+
})), i = m.value.useIndividualScale && !m.value.isStacked ? Object.values(C.value) : [...t, ...c, ...l], a = i.flatMap((n) => n).length;
|
|
1538
|
+
return i.flatMap((n, o) => {
|
|
1539
1539
|
let P = 0;
|
|
1540
1540
|
P = m.value.isStacked ? r.value.left : r.value.left / a * (o + 1);
|
|
1541
1541
|
const X = m.value.useIndividualScale && !m.value.isStacked ? n.unique ? n.name : n.groupName : n.name;
|
|
@@ -1564,31 +1564,31 @@ const Co = {
|
|
|
1564
1564
|
}), ua = k(() => ({
|
|
1565
1565
|
datapoint: et.value,
|
|
1566
1566
|
seriesIndex: w.value,
|
|
1567
|
-
series:
|
|
1567
|
+
series: Je.value,
|
|
1568
1568
|
bars: vl.value,
|
|
1569
1569
|
lines: Ye.value,
|
|
1570
|
-
plots:
|
|
1570
|
+
plots: Ke.value,
|
|
1571
1571
|
config: e.value
|
|
1572
1572
|
})), Ga = k(() => {
|
|
1573
1573
|
let t = "", c = et.value.map((a) => a.value).filter((a) => mt(a) && a !== null).reduce((a, n) => Math.abs(a) + Math.abs(n), 0);
|
|
1574
|
-
const l = Q.value[w.value],
|
|
1575
|
-
return vo(
|
|
1574
|
+
const l = Q.value[w.value], i = e.value.chart.tooltip.customFormat;
|
|
1575
|
+
return vo(i) && ho(() => i({
|
|
1576
1576
|
absoluteIndex: w.value + h.value.start,
|
|
1577
1577
|
seriesIndex: w.value,
|
|
1578
1578
|
datapoint: et.value,
|
|
1579
|
-
series:
|
|
1579
|
+
series: Je.value,
|
|
1580
1580
|
bars: vl.value,
|
|
1581
1581
|
lines: Ye.value,
|
|
1582
|
-
plots:
|
|
1582
|
+
plots: Ke.value,
|
|
1583
1583
|
config: e.value
|
|
1584
|
-
})) ?
|
|
1584
|
+
})) ? i({
|
|
1585
1585
|
absoluteIndex: w.value + h.value.start,
|
|
1586
1586
|
seriesIndex: w.value,
|
|
1587
1587
|
datapoint: et.value,
|
|
1588
|
-
series:
|
|
1588
|
+
series: Je.value,
|
|
1589
1589
|
bars: vl.value,
|
|
1590
1590
|
lines: Ye.value,
|
|
1591
|
-
plots:
|
|
1591
|
+
plots: Ke.value,
|
|
1592
1592
|
config: e.value
|
|
1593
1593
|
}) : (l && l.text && e.value.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${e.value.chart.tooltip.borderColor}; width:100%">${l.text}</div>`), et.value.forEach((a) => {
|
|
1594
1594
|
if (mt(a.value)) {
|
|
@@ -1598,7 +1598,7 @@ const Co = {
|
|
|
1598
1598
|
n = `<svg viewBox="0 0 40 40" height="14" width="14">${Xl.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="${Xl.pattern ? `url(#pattern_${K.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1599
1599
|
break;
|
|
1600
1600
|
case "line":
|
|
1601
|
-
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${
|
|
1601
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${el({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${el({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${el({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${el({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${el({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${ya({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
1602
1602
|
break;
|
|
1603
1603
|
case "plot":
|
|
1604
1604
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
@@ -1610,23 +1610,23 @@ const Co = {
|
|
|
1610
1610
|
break;
|
|
1611
1611
|
}
|
|
1612
1612
|
if (a.shape === "triangle") {
|
|
1613
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1613
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${el({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1614
1614
|
break;
|
|
1615
1615
|
}
|
|
1616
1616
|
if (a.shape === "square") {
|
|
1617
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1617
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${el({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1618
1618
|
break;
|
|
1619
1619
|
}
|
|
1620
1620
|
if (a.shape === "diamond") {
|
|
1621
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1621
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${el({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1622
1622
|
break;
|
|
1623
1623
|
}
|
|
1624
1624
|
if (a.shape === "pentagon") {
|
|
1625
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1625
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${el({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1626
1626
|
break;
|
|
1627
1627
|
}
|
|
1628
1628
|
if (a.shape === "hexagon") {
|
|
1629
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1629
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${el({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1630
1630
|
break;
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
@@ -1647,17 +1647,17 @@ const Co = {
|
|
|
1647
1647
|
})})` : ""}</div>`, e.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(h.value.start, h.value.end)[w.value] && (t += `<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(h.value.start, h.value.end)[w.value]}</div>`);
|
|
1648
1648
|
}
|
|
1649
1649
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${e.value.chart.tooltip.color}">${t}</div>`);
|
|
1650
|
-
}),
|
|
1651
|
-
if (
|
|
1650
|
+
}), ia = k(() => {
|
|
1651
|
+
if (ol.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1652
1652
|
const t = Ne.value.map((l) => ({
|
|
1653
1653
|
label: l.name,
|
|
1654
1654
|
color: l.color,
|
|
1655
1655
|
type: l.type
|
|
1656
1656
|
})), c = [];
|
|
1657
|
-
return Q.value.forEach((l,
|
|
1657
|
+
return Q.value.forEach((l, i) => {
|
|
1658
1658
|
const a = [l.text];
|
|
1659
1659
|
Ne.value.forEach((n) => {
|
|
1660
|
-
a.push(Re(n.absoluteValues[
|
|
1660
|
+
a.push(Re(n.absoluteValues[i]) ? Number(n.absoluteValues[i].toFixed(e.value.table.rounding)) : "");
|
|
1661
1661
|
}), c.push(a);
|
|
1662
1662
|
}), { head: t, body: c };
|
|
1663
1663
|
}), ft = k(() => {
|
|
@@ -1684,7 +1684,7 @@ const Co = {
|
|
|
1684
1684
|
)).concat(t ? (o ?? 0).toFixed(e.value.table.rounding) : [])
|
|
1685
1685
|
);
|
|
1686
1686
|
}
|
|
1687
|
-
const
|
|
1687
|
+
const i = {
|
|
1688
1688
|
th: {
|
|
1689
1689
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
1690
1690
|
color: e.value.table.th.color,
|
|
@@ -1697,19 +1697,19 @@ const Co = {
|
|
|
1697
1697
|
},
|
|
1698
1698
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
1699
1699
|
}, a = [e.value.table.columnNames.period].concat(Ne.value.map((n) => n.name)).concat(e.value.table.columnNames.total);
|
|
1700
|
-
return { head: c, body: l, config:
|
|
1700
|
+
return { head: c, body: l, config: i, colNames: a };
|
|
1701
1701
|
});
|
|
1702
|
-
function
|
|
1703
|
-
const c = [[e.value.chart.title.text], [e.value.chart.title.subtitle.text], [""]], l = ["", ...
|
|
1702
|
+
function sa(t = null) {
|
|
1703
|
+
const c = [[e.value.chart.title.text], [e.value.chart.title.subtitle.text], [""]], l = ["", ...ia.value.head.map((o) => o.label)], i = ia.value.body, a = c.concat([l]).concat(i), n = bo(a);
|
|
1704
1704
|
t ? t(n) : po({ csvContent: n, title: e.value.chart.title.text || "vue-ui-xy" });
|
|
1705
1705
|
}
|
|
1706
1706
|
function na(t, c = null) {
|
|
1707
1707
|
Nl.value = t;
|
|
1708
|
-
const l = Ne.value.map((
|
|
1709
|
-
name:
|
|
1710
|
-
value: [null, void 0, NaN].includes(
|
|
1711
|
-
color:
|
|
1712
|
-
type:
|
|
1708
|
+
const l = Ne.value.map((i) => ({
|
|
1709
|
+
name: i.name,
|
|
1710
|
+
value: [null, void 0, NaN].includes(i.absoluteValues[c]) ? null : i.absoluteValues[c],
|
|
1711
|
+
color: i.color,
|
|
1712
|
+
type: i.type
|
|
1713
1713
|
}));
|
|
1714
1714
|
t ? (w.value = c, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: c + h.value.start })) : (w.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: c + h.value.start }));
|
|
1715
1715
|
}
|
|
@@ -1723,7 +1723,7 @@ const Co = {
|
|
|
1723
1723
|
m.value.showTooltip = !m.value.showTooltip;
|
|
1724
1724
|
}
|
|
1725
1725
|
function da(t) {
|
|
1726
|
-
|
|
1726
|
+
al.value = t, it.value += 1;
|
|
1727
1727
|
}
|
|
1728
1728
|
function ha() {
|
|
1729
1729
|
if (!e.value.responsiveProportionalSizing) {
|
|
@@ -1731,37 +1731,37 @@ const Co = {
|
|
|
1731
1731
|
return;
|
|
1732
1732
|
}
|
|
1733
1733
|
S.value.dataLabels = Fl({
|
|
1734
|
-
relator:
|
|
1734
|
+
relator: ie.value,
|
|
1735
1735
|
adjuster: 400,
|
|
1736
1736
|
source: e.value.chart.grid.labels.fontSize,
|
|
1737
1737
|
threshold: 10,
|
|
1738
1738
|
fallback: 10
|
|
1739
1739
|
}), S.value.yAxis = Fl({
|
|
1740
|
-
relator:
|
|
1740
|
+
relator: se.value,
|
|
1741
1741
|
adjuster: 1e3,
|
|
1742
1742
|
source: e.value.chart.grid.labels.axis.fontSize,
|
|
1743
1743
|
threshold: 10,
|
|
1744
1744
|
fallback: 10
|
|
1745
1745
|
}), S.value.xAxis = Fl({
|
|
1746
|
-
relator:
|
|
1746
|
+
relator: se.value,
|
|
1747
1747
|
adjuster: 1e3,
|
|
1748
1748
|
source: e.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1749
1749
|
threshold: 10,
|
|
1750
1750
|
fallback: 10
|
|
1751
1751
|
}), S.value.plotLabels = Fl({
|
|
1752
|
-
relator:
|
|
1752
|
+
relator: se.value,
|
|
1753
1753
|
adjuster: 800,
|
|
1754
1754
|
source: e.value.chart.labels.fontSize,
|
|
1755
1755
|
threshold: 10,
|
|
1756
1756
|
fallback: 10
|
|
1757
1757
|
}), Ae.value.plot = Fl({
|
|
1758
|
-
relator:
|
|
1758
|
+
relator: se.value,
|
|
1759
1759
|
adjuster: 800,
|
|
1760
1760
|
source: e.value.plot.radius,
|
|
1761
1761
|
threshold: 1,
|
|
1762
1762
|
fallback: 1
|
|
1763
1763
|
}), Ae.value.line = Fl({
|
|
1764
|
-
relator:
|
|
1764
|
+
relator: se.value,
|
|
1765
1765
|
adjuster: 800,
|
|
1766
1766
|
source: e.value.line.radius,
|
|
1767
1767
|
threshold: 1,
|
|
@@ -1783,9 +1783,9 @@ const Co = {
|
|
|
1783
1783
|
debug: tt.value
|
|
1784
1784
|
}), b.value = !0);
|
|
1785
1785
|
}), tt.value && d.dataset.forEach((c) => {
|
|
1786
|
-
c.series.forEach((l,
|
|
1786
|
+
c.series.forEach((l, i) => {
|
|
1787
1787
|
mt(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1788
|
-
-----> The serie '${c.name}' contains the value '${l}' at index ${
|
|
1788
|
+
-----> The serie '${c.name}' contains the value '${l}' at index ${i}.
|
|
1789
1789
|
'${l}' was converted to null to allow the chart to display.`);
|
|
1790
1790
|
});
|
|
1791
1791
|
}), ka(d.dataset) || (b.value = e.value.loading), Zl.value = e.value.chart.userOptions.showOnChartHover, Pl.value = e.value.chart.userOptions.keepStateOnChartLeave, Hl.value = !e.value.chart.userOptions.showOnChartHover, m.value = {
|
|
@@ -1800,8 +1800,8 @@ const Co = {
|
|
|
1800
1800
|
const t = 12;
|
|
1801
1801
|
if (e.value.responsive) {
|
|
1802
1802
|
const l = fe.value.parentNode;
|
|
1803
|
-
D.value && (D.value.unobserve(
|
|
1804
|
-
const { height:
|
|
1803
|
+
D.value && (D.value.unobserve(sl.value), D.value.disconnect());
|
|
1804
|
+
const { height: i, width: a } = l.getBoundingClientRect();
|
|
1805
1805
|
let n = null, o = 0;
|
|
1806
1806
|
e.value.chart.title.show && be.value && (n = be.value, o = n.getBoundingClientRect().height);
|
|
1807
1807
|
let P = null, X = 0;
|
|
@@ -1811,16 +1811,16 @@ const Co = {
|
|
|
1811
1811
|
let O = 0;
|
|
1812
1812
|
kl.value && (O = kl.value.getBoundingClientRect().height);
|
|
1813
1813
|
let q = 0;
|
|
1814
|
-
wl.value && (q = wl.value.getBoundingClientRect().height),
|
|
1814
|
+
wl.value && (q = wl.value.getBoundingClientRect().height), ie.value = i - o - z - X - O - q - t, se.value = a, Ol.value = `0 0 ${se.value < 0 ? 10 : se.value} ${ie.value < 0 ? 10 : ie.value}`, ha();
|
|
1815
1815
|
const I = new ResizeObserver((V) => {
|
|
1816
1816
|
for (const T of V)
|
|
1817
1817
|
e.value.chart.title.show && be.value ? o = be.value.getBoundingClientRect().height : o = 0, Me.value && Me.value.$el ? X = Me.value.$el.getBoundingClientRect().height : X = 0, qe.value ? z = qe.value.getBoundingClientRect().height : z = 0, kl.value ? O = kl.value.getBoundingClientRect().height : O = 0, wl.value ? q = wl.value.getBoundingClientRect().height : q = 0, requestAnimationFrame(() => {
|
|
1818
|
-
|
|
1818
|
+
ie.value = T.contentRect.height - o - z - X - O - q - t, se.value = T.contentBoxSize[0].inlineSize, Ol.value = `0 0 ${se.value < 0 ? 10 : se.value} ${ie.value < 0 ? 10 : ie.value}`, ha();
|
|
1819
1819
|
});
|
|
1820
1820
|
});
|
|
1821
|
-
D.value = I,
|
|
1821
|
+
D.value = I, sl.value = l, I.observe(l);
|
|
1822
1822
|
} else
|
|
1823
|
-
|
|
1823
|
+
ie.value = e.value.chart.height, se.value = e.value.chart.width, S.value.dataLabels = e.value.chart.grid.labels.fontSize, S.value.yAxis = e.value.chart.grid.labels.axis.fontSize, S.value.xAxis = e.value.chart.grid.labels.xAxisLabels.fontSize, S.value.plotLabels = e.value.chart.labels.fontSize, Ae.value.plot = e.value.plot.radius, Ae.value.line = e.value.line.radius, Ol.value = `0 0 ${se.value} ${ie.value}`;
|
|
1824
1824
|
}
|
|
1825
1825
|
return yt(() => {
|
|
1826
1826
|
fa(), Tt(), document.addEventListener("mousemove", (t) => {
|
|
@@ -1830,27 +1830,27 @@ const Co = {
|
|
|
1830
1830
|
};
|
|
1831
1831
|
}), document.addEventListener("scroll", Ft);
|
|
1832
1832
|
}), kt(() => {
|
|
1833
|
-
document.removeEventListener("scroll", Ft), D.value && (D.value.unobserve(
|
|
1833
|
+
document.removeEventListener("scroll", Ft), D.value && (D.value.unobserve(sl.value), D.value.disconnect());
|
|
1834
1834
|
}), yo({
|
|
1835
|
-
timeLabelsEls:
|
|
1835
|
+
timeLabelsEls: tl,
|
|
1836
1836
|
timeLabels: Q,
|
|
1837
1837
|
slicer: h,
|
|
1838
1838
|
configRef: e,
|
|
1839
1839
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1840
1840
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
|
|
1841
1841
|
isAutoSize: $a,
|
|
1842
|
-
height:
|
|
1843
|
-
width:
|
|
1844
|
-
}),
|
|
1845
|
-
Array.isArray(t) && t.length > 0 && (b.value = !1), g.value = Math.max(...Y.value.map((c) =>
|
|
1842
|
+
height: ie,
|
|
1843
|
+
width: se
|
|
1844
|
+
}), ll(() => d.dataset, (t) => {
|
|
1845
|
+
Array.isArray(t) && t.length > 0 && (b.value = !1), g.value = Math.max(...Y.value.map((c) => je({
|
|
1846
1846
|
data: c.series,
|
|
1847
1847
|
threshold: e.value.downsample.threshold
|
|
1848
1848
|
}).length)), h.value = {
|
|
1849
1849
|
start: 0,
|
|
1850
1850
|
end: g.value
|
|
1851
1851
|
}, ge.value += 1, Rl.value += 1;
|
|
1852
|
-
}, { deep: !0 }),
|
|
1853
|
-
ne.value || (e.value = El()), fa(), ql.value += 1,
|
|
1852
|
+
}, { deep: !0 }), ll(() => d.config, (t) => {
|
|
1853
|
+
ne.value || (e.value = El()), fa(), ql.value += 1, st.value += 1, m.value = {
|
|
1854
1854
|
dataLabels: {
|
|
1855
1855
|
show: !0
|
|
1856
1856
|
},
|
|
@@ -1859,7 +1859,7 @@ const Co = {
|
|
|
1859
1859
|
isStacked: e.value.chart.grid.labels.yAxis.stacked,
|
|
1860
1860
|
useIndividualScale: e.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1861
1861
|
};
|
|
1862
|
-
}, { deep: !0 }),
|
|
1862
|
+
}, { deep: !0 }), ll(e, () => {
|
|
1863
1863
|
m.value = {
|
|
1864
1864
|
dataLabels: {
|
|
1865
1865
|
show: !0
|
|
@@ -1874,16 +1874,16 @@ const Co = {
|
|
|
1874
1874
|
getImage: Va,
|
|
1875
1875
|
generatePdf: rt,
|
|
1876
1876
|
generateImage: Ht,
|
|
1877
|
-
generateCsv:
|
|
1877
|
+
generateCsv: sa,
|
|
1878
1878
|
toggleStack: Gt,
|
|
1879
1879
|
toggleTable: ra,
|
|
1880
1880
|
toggleLabels: ca,
|
|
1881
1881
|
toggleTooltip: va,
|
|
1882
1882
|
toggleAnnotator: zt,
|
|
1883
1883
|
toggleFullscreen: da
|
|
1884
|
-
}), (t, c) => (u(),
|
|
1884
|
+
}), (t, c) => (u(), s("div", {
|
|
1885
1885
|
id: `vue-ui-xy_${K.value}`,
|
|
1886
|
-
class: Ie(`vue-ui-xy ${
|
|
1886
|
+
class: Ie(`vue-ui-xy ${al.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1887
1887
|
ref_key: "chart",
|
|
1888
1888
|
ref: fe,
|
|
1889
1889
|
style: $(`background:${e.value.chart.backgroundColor}; color:${e.value.chart.color};width:100%;font-family:${e.value.chart.fontFamily};${e.value.responsive ? "height: 100%" : ""}`),
|
|
@@ -1898,14 +1898,14 @@ const Co = {
|
|
|
1898
1898
|
active: nl.value,
|
|
1899
1899
|
onClose: zt
|
|
1900
1900
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
1901
|
-
Ba.value ? (u(),
|
|
1901
|
+
Ba.value ? (u(), s("div", {
|
|
1902
1902
|
key: 1,
|
|
1903
1903
|
ref_key: "noTitle",
|
|
1904
1904
|
ref: wl,
|
|
1905
1905
|
class: "vue-data-ui-no-title-space",
|
|
1906
1906
|
style: "height:36px; width: 100%; background:transparent"
|
|
1907
1907
|
}, null, 512)) : f("", !0),
|
|
1908
|
-
e.value.chart.title.show ? (u(),
|
|
1908
|
+
e.value.chart.title.show ? (u(), s("div", {
|
|
1909
1909
|
key: 2,
|
|
1910
1910
|
ref_key: "chartTitle",
|
|
1911
1911
|
ref: be,
|
|
@@ -1928,7 +1928,7 @@ const Co = {
|
|
|
1928
1928
|
], 4)) : f("", !0),
|
|
1929
1929
|
e.value.chart.userOptions.show && (Pl.value || Hl.value) ? (u(), De(v(re), {
|
|
1930
1930
|
ref: "defails",
|
|
1931
|
-
key: `user_options_${
|
|
1931
|
+
key: `user_options_${it.value}`,
|
|
1932
1932
|
backgroundColor: e.value.chart.backgroundColor,
|
|
1933
1933
|
color: e.value.chart.color,
|
|
1934
1934
|
isPrinting: v(Kl),
|
|
@@ -1943,7 +1943,7 @@ const Co = {
|
|
|
1943
1943
|
hasStack: A.dataset.length > 1 && e.value.chart.userOptions.buttons.stack,
|
|
1944
1944
|
hasFullscreen: e.value.chart.userOptions.buttons.fullscreen,
|
|
1945
1945
|
isStacked: m.value.isStacked,
|
|
1946
|
-
isFullscreen:
|
|
1946
|
+
isFullscreen: al.value,
|
|
1947
1947
|
chartElement: t.$refs.chart,
|
|
1948
1948
|
position: e.value.chart.userOptions.position,
|
|
1949
1949
|
isTooltip: m.value.showTooltip,
|
|
@@ -1954,7 +1954,7 @@ const Co = {
|
|
|
1954
1954
|
printScale: e.value.chart.userOptions.print.scale,
|
|
1955
1955
|
onToggleFullscreen: da,
|
|
1956
1956
|
onGeneratePdf: v(rt),
|
|
1957
|
-
onGenerateCsv:
|
|
1957
|
+
onGenerateCsv: sa,
|
|
1958
1958
|
onGenerateImage: v(Ht),
|
|
1959
1959
|
onToggleTable: ra,
|
|
1960
1960
|
onToggleLabels: ca,
|
|
@@ -1967,8 +1967,8 @@ const Co = {
|
|
|
1967
1967
|
}, eo({ _: 2 }, [
|
|
1968
1968
|
t.$slots.menuIcon ? {
|
|
1969
1969
|
name: "menuIcon",
|
|
1970
|
-
fn: xe(({ isOpen: l, color:
|
|
1971
|
-
J(t.$slots, "menuIcon",
|
|
1970
|
+
fn: xe(({ isOpen: l, color: i }) => [
|
|
1971
|
+
J(t.$slots, "menuIcon", il(gl({ isOpen: l, color: i })), void 0, !0)
|
|
1972
1972
|
]),
|
|
1973
1973
|
key: "0"
|
|
1974
1974
|
} : void 0,
|
|
@@ -2023,24 +2023,24 @@ const Co = {
|
|
|
2023
2023
|
} : void 0,
|
|
2024
2024
|
t.$slots.optionFullscreen ? {
|
|
2025
2025
|
name: "optionFullscreen",
|
|
2026
|
-
fn: xe(({ toggleFullscreen: l, isFullscreen:
|
|
2027
|
-
J(t.$slots, "optionFullscreen",
|
|
2026
|
+
fn: xe(({ toggleFullscreen: l, isFullscreen: i }) => [
|
|
2027
|
+
J(t.$slots, "optionFullscreen", il(gl({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
|
|
2028
2028
|
]),
|
|
2029
2029
|
key: "8"
|
|
2030
2030
|
} : void 0,
|
|
2031
2031
|
t.$slots.optionAnnotator ? {
|
|
2032
2032
|
name: "optionAnnotator",
|
|
2033
|
-
fn: xe(({ toggleAnnotator: l, isAnnotator:
|
|
2034
|
-
J(t.$slots, "optionAnnotator",
|
|
2033
|
+
fn: xe(({ toggleAnnotator: l, isAnnotator: i }) => [
|
|
2034
|
+
J(t.$slots, "optionAnnotator", il(gl({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
|
|
2035
2035
|
]),
|
|
2036
2036
|
key: "9"
|
|
2037
2037
|
} : void 0
|
|
2038
2038
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
2039
|
-
(u(),
|
|
2039
|
+
(u(), s("svg", {
|
|
2040
2040
|
ref_key: "svgRef",
|
|
2041
2041
|
ref: pe,
|
|
2042
2042
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2043
|
-
class: Ie([{ "vue-data-ui-fullscreen--on":
|
|
2043
|
+
class: Ie([{ "vue-data-ui-fullscreen--on": al.value, "vue-data-ui-fulscreen--off": !al.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2044
2044
|
width: "100%",
|
|
2045
2045
|
viewBox: Ol.value,
|
|
2046
2046
|
style: $({
|
|
@@ -2062,7 +2062,7 @@ const Co = {
|
|
|
2062
2062
|
class: "vue-data-ui-g"
|
|
2063
2063
|
}, [
|
|
2064
2064
|
Wl(v(bl)),
|
|
2065
|
-
t.$slots["chart-background"] ? (u(),
|
|
2065
|
+
t.$slots["chart-background"] ? (u(), s("foreignObject", {
|
|
2066
2066
|
key: 0,
|
|
2067
2067
|
x: r.value.left + ee.value < 0 ? 0 : r.value.left + ee.value,
|
|
2068
2068
|
y: r.value.top,
|
|
@@ -2074,9 +2074,9 @@ const Co = {
|
|
|
2074
2074
|
}, [
|
|
2075
2075
|
J(t.$slots, "chart-background", {}, void 0, !0)
|
|
2076
2076
|
], 8, Qo)) : f("", !0),
|
|
2077
|
-
_.value > 0 ? (u(),
|
|
2077
|
+
_.value > 0 ? (u(), s("g", jo, [
|
|
2078
2078
|
p("g", eu, [
|
|
2079
|
-
e.value.chart.grid.labels.xAxis.showBaseline ? (u(),
|
|
2079
|
+
e.value.chart.grid.labels.xAxis.showBaseline ? (u(), s("line", {
|
|
2080
2080
|
key: 0,
|
|
2081
2081
|
stroke: e.value.chart.grid.stroke,
|
|
2082
2082
|
"stroke-width": "1",
|
|
@@ -2087,28 +2087,28 @@ const Co = {
|
|
|
2087
2087
|
"stroke-linecap": "round",
|
|
2088
2088
|
style: { animation: "none !important" }
|
|
2089
2089
|
}, null, 8, lu)) : f("", !0),
|
|
2090
|
-
m.value.useIndividualScale ? e.value.chart.grid.showHorizontalLines ? (u(!0),
|
|
2091
|
-
l.id === M.value && l.yLabels.length ? (u(!0),
|
|
2090
|
+
m.value.useIndividualScale ? e.value.chart.grid.showHorizontalLines ? (u(!0), s(x, { key: 2 }, L(lt.value, (l) => (u(), s("g", null, [
|
|
2091
|
+
l.id === M.value && l.yLabels.length ? (u(!0), s(x, { key: 0 }, L(l.yLabels, (i) => (u(), s("line", {
|
|
2092
2092
|
x1: r.value.left + ee.value,
|
|
2093
2093
|
x2: r.value.right - ee.value,
|
|
2094
|
-
y1: v(W)(
|
|
2095
|
-
y2: v(W)(
|
|
2094
|
+
y1: v(W)(i.y),
|
|
2095
|
+
y2: v(W)(i.y),
|
|
2096
2096
|
stroke: l.color,
|
|
2097
2097
|
"stroke-width": 0.5,
|
|
2098
2098
|
"stroke-linecap": "round",
|
|
2099
2099
|
style: { animation: "none !important" }
|
|
2100
|
-
}, null, 8, uu))), 256)) : l.yLabels.length ? (u(!0),
|
|
2100
|
+
}, null, 8, uu))), 256)) : l.yLabels.length ? (u(!0), s(x, { key: 1 }, L(l.yLabels, (i) => (u(), s("line", {
|
|
2101
2101
|
x1: r.value.left + ee.value,
|
|
2102
2102
|
x2: r.value.right - ee.value,
|
|
2103
|
-
y1: v(W)(
|
|
2104
|
-
y2: v(W)(
|
|
2103
|
+
y1: v(W)(i.y),
|
|
2104
|
+
y2: v(W)(i.y),
|
|
2105
2105
|
stroke: e.value.chart.grid.stroke,
|
|
2106
2106
|
"stroke-width": 0.5,
|
|
2107
2107
|
"stroke-linecap": "round",
|
|
2108
2108
|
style: { animation: "none !important" }
|
|
2109
|
-
}, null, 8,
|
|
2110
|
-
]))), 256)) : f("", !0) : (u(),
|
|
2111
|
-
e.value.chart.grid.labels.yAxis.showBaseline ? (u(),
|
|
2109
|
+
}, null, 8, iu))), 256)) : f("", !0)
|
|
2110
|
+
]))), 256)) : f("", !0) : (u(), s(x, { key: 1 }, [
|
|
2111
|
+
e.value.chart.grid.labels.yAxis.showBaseline ? (u(), s("line", {
|
|
2112
2112
|
key: 0,
|
|
2113
2113
|
stroke: e.value.chart.grid.stroke,
|
|
2114
2114
|
"stroke-width": "1",
|
|
@@ -2119,8 +2119,8 @@ const Co = {
|
|
|
2119
2119
|
"stroke-linecap": "round",
|
|
2120
2120
|
style: { animation: "none !important" }
|
|
2121
2121
|
}, null, 8, tu)) : f("", !0),
|
|
2122
|
-
e.value.chart.grid.showHorizontalLines ? (u(),
|
|
2123
|
-
(u(!0),
|
|
2122
|
+
e.value.chart.grid.showHorizontalLines ? (u(), s("g", au, [
|
|
2123
|
+
(u(!0), s(x, null, L(aa.value, (l) => (u(), s("line", {
|
|
2124
2124
|
x1: r.value.left + ee.value,
|
|
2125
2125
|
x2: r.value.right,
|
|
2126
2126
|
y1: v(W)(l.y),
|
|
@@ -2132,7 +2132,7 @@ const Co = {
|
|
|
2132
2132
|
}, null, 8, ou))), 256))
|
|
2133
2133
|
])) : f("", !0)
|
|
2134
2134
|
], 64)),
|
|
2135
|
-
e.value.chart.grid.showVerticalLines ? (u(),
|
|
2135
|
+
e.value.chart.grid.showVerticalLines ? (u(), s("g", su, [
|
|
2136
2136
|
p("path", {
|
|
2137
2137
|
d: Aa.value,
|
|
2138
2138
|
"stroke-width": 0.5,
|
|
@@ -2141,7 +2141,7 @@ const Co = {
|
|
|
2141
2141
|
style: { animation: "none !important" }
|
|
2142
2142
|
}, null, 8, nu)
|
|
2143
2143
|
])) : f("", !0),
|
|
2144
|
-
e.value.chart.grid.labels.xAxisLabels.show ? (u(),
|
|
2144
|
+
e.value.chart.grid.labels.xAxisLabels.show ? (u(), s("g", ru, [
|
|
2145
2145
|
p("path", {
|
|
2146
2146
|
d: Ca.value,
|
|
2147
2147
|
stroke: e.value.chart.grid.stroke,
|
|
@@ -2151,11 +2151,11 @@ const Co = {
|
|
|
2151
2151
|
}, null, 8, cu)
|
|
2152
2152
|
])) : f("", !0)
|
|
2153
2153
|
]),
|
|
2154
|
-
(u(!0),
|
|
2155
|
-
key: `def_rect_${
|
|
2154
|
+
(u(!0), s(x, null, L(vl.value, (l, i) => (u(), s("defs", {
|
|
2155
|
+
key: `def_rect_${i}`
|
|
2156
2156
|
}, [
|
|
2157
2157
|
p("linearGradient", {
|
|
2158
|
-
id: `rectGradient_pos_${
|
|
2158
|
+
id: `rectGradient_pos_${i}_${K.value}`,
|
|
2159
2159
|
x2: "0%",
|
|
2160
2160
|
y2: "100%"
|
|
2161
2161
|
}, [
|
|
@@ -2173,7 +2173,7 @@ const Co = {
|
|
|
2173
2173
|
}, null, 8, fu)
|
|
2174
2174
|
], 8, vu),
|
|
2175
2175
|
p("linearGradient", {
|
|
2176
|
-
id: `rectGradient_neg_${
|
|
2176
|
+
id: `rectGradient_neg_${i}_${K.value}`,
|
|
2177
2177
|
x2: "0%",
|
|
2178
2178
|
y2: "100%"
|
|
2179
2179
|
}, [
|
|
@@ -2191,11 +2191,11 @@ const Co = {
|
|
|
2191
2191
|
}, null, 8, bu)
|
|
2192
2192
|
], 8, gu)
|
|
2193
2193
|
]))), 128)),
|
|
2194
|
-
(u(!0),
|
|
2195
|
-
key: `def_plot_${
|
|
2194
|
+
(u(!0), s(x, null, L(Ke.value, (l, i) => (u(), s("defs", {
|
|
2195
|
+
key: `def_plot_${i}`
|
|
2196
2196
|
}, [
|
|
2197
2197
|
p("radialGradient", {
|
|
2198
|
-
id: `plotGradient_${
|
|
2198
|
+
id: `plotGradient_${i}_${K.value}`,
|
|
2199
2199
|
cx: "50%",
|
|
2200
2200
|
cy: "50%",
|
|
2201
2201
|
r: "50%",
|
|
@@ -2212,11 +2212,11 @@ const Co = {
|
|
|
2212
2212
|
}, null, 8, ku)
|
|
2213
2213
|
], 8, pu)
|
|
2214
2214
|
]))), 128)),
|
|
2215
|
-
(u(!0),
|
|
2216
|
-
key: `def_line_${
|
|
2215
|
+
(u(!0), s(x, null, L(Ye.value, (l, i) => (u(), s("defs", {
|
|
2216
|
+
key: `def_line_${i}`
|
|
2217
2217
|
}, [
|
|
2218
2218
|
p("radialGradient", {
|
|
2219
|
-
id: `lineGradient_${
|
|
2219
|
+
id: `lineGradient_${i}_${K.value}`,
|
|
2220
2220
|
cx: "50%",
|
|
2221
2221
|
cy: "50%",
|
|
2222
2222
|
r: "50%",
|
|
@@ -2233,7 +2233,7 @@ const Co = {
|
|
|
2233
2233
|
}, null, 8, $u)
|
|
2234
2234
|
], 8, wu),
|
|
2235
2235
|
p("linearGradient", {
|
|
2236
|
-
id: `areaGradient_${
|
|
2236
|
+
id: `areaGradient_${i}_${K.value}`,
|
|
2237
2237
|
x1: "0%",
|
|
2238
2238
|
x2: "100%",
|
|
2239
2239
|
y1: "0%",
|
|
@@ -2249,9 +2249,9 @@ const Co = {
|
|
|
2249
2249
|
}, null, 8, Mu)
|
|
2250
2250
|
], 8, _u)
|
|
2251
2251
|
]))), 128)),
|
|
2252
|
-
(u(!0),
|
|
2253
|
-
l.show ? (u(),
|
|
2254
|
-
(u(!0),
|
|
2252
|
+
(u(!0), s(x, null, L(Fa.value, (l) => (u(), s("g", null, [
|
|
2253
|
+
l.show ? (u(), s(x, { key: 0 }, [
|
|
2254
|
+
(u(!0), s(x, null, L(l.span, (i, a) => (u(), s("g", null, [
|
|
2255
2255
|
p("rect", {
|
|
2256
2256
|
style: $({
|
|
2257
2257
|
transition: "none",
|
|
@@ -2264,8 +2264,8 @@ const Co = {
|
|
|
2264
2264
|
fill: v(Xe)(l.color, l.opacity)
|
|
2265
2265
|
}, null, 12, Au)
|
|
2266
2266
|
]))), 256)),
|
|
2267
|
-
(u(!0),
|
|
2268
|
-
l.caption.text && a === 0 ? (u(),
|
|
2267
|
+
(u(!0), s(x, null, L(l.span, (i, a) => (u(), s("g", null, [
|
|
2268
|
+
l.caption.text && a === 0 ? (u(), s("foreignObject", {
|
|
2269
2269
|
key: 0,
|
|
2270
2270
|
x: r.value.left + r.value.width / _.value * (l.from + a - h.value.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - r.value.width / _.value * l.span / 2),
|
|
2271
2271
|
y: r.value.top + l.caption.offsetY,
|
|
@@ -2283,40 +2283,40 @@ const Co = {
|
|
|
2283
2283
|
]))), 256))
|
|
2284
2284
|
], 64)) : f("", !0)
|
|
2285
2285
|
]))), 256)),
|
|
2286
|
-
Wt.value ? (u(),
|
|
2287
|
-
(u(!0),
|
|
2288
|
-
key: `tooltip_trap_highlighter_${
|
|
2286
|
+
Wt.value ? (u(), s("g", zu, [
|
|
2287
|
+
(u(!0), s(x, null, L(_.value, (l, i) => (u(), s("g", {
|
|
2288
|
+
key: `tooltip_trap_highlighter_${i}`
|
|
2289
2289
|
}, [
|
|
2290
2290
|
p("rect", {
|
|
2291
|
-
x: r.value.left + r.value.width / _.value *
|
|
2291
|
+
x: r.value.left + r.value.width / _.value * i,
|
|
2292
2292
|
y: r.value.top,
|
|
2293
2293
|
height: r.value.height < 0 ? 10 : r.value.height,
|
|
2294
2294
|
width: r.value.width / _.value < 0 ? 1e-5 : r.value.width / _.value,
|
|
2295
|
-
fill: [N.value, w.value, Be.value].includes(
|
|
2295
|
+
fill: [N.value, w.value, Be.value].includes(i) ? v(Xe)(e.value.chart.highlighter.color, e.value.chart.highlighter.opacity) : "transparent"
|
|
2296
2296
|
}, null, 8, Iu)
|
|
2297
2297
|
]))), 128))
|
|
2298
2298
|
])) : f("", !0),
|
|
2299
|
-
vl.value.length ? (u(!0),
|
|
2300
|
-
key: `serie_bar_${
|
|
2301
|
-
class: Ie(`serie_bar_${
|
|
2299
|
+
vl.value.length ? (u(!0), s(x, { key: 1 }, L(vl.value, (l, i) => (u(), s("g", {
|
|
2300
|
+
key: `serie_bar_${i}`,
|
|
2301
|
+
class: Ie(`serie_bar_${i}`),
|
|
2302
2302
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2303
2303
|
}, [
|
|
2304
|
-
(u(!0),
|
|
2305
|
-
key: `bar_plot_${
|
|
2304
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s("g", {
|
|
2305
|
+
key: `bar_plot_${i}_${n}`
|
|
2306
2306
|
}, [
|
|
2307
|
-
Re(a.value) ? (u(),
|
|
2307
|
+
Re(a.value) ? (u(), s("rect", {
|
|
2308
2308
|
key: 0,
|
|
2309
2309
|
x: ht(a),
|
|
2310
2310
|
y: m.value.useIndividualScale ? Qt(a) : Kt(a),
|
|
2311
2311
|
height: m.value.useIndividualScale ? Math.abs(Jt(a)) : Math.abs(Zt(a)),
|
|
2312
2312
|
width: We() - (m.value.useIndividualScale && m.value.isStacked ? 0 : ul.value) < 0 ? 1e-5 : We() - (m.value.useIndividualScale && m.value.isStacked ? 0 : ul.value),
|
|
2313
2313
|
rx: e.value.bar.borderRadius,
|
|
2314
|
-
fill: e.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${
|
|
2314
|
+
fill: e.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${i}_${K.value})` : `url(#rectGradient_neg_${i}_${K.value})` : l.color,
|
|
2315
2315
|
stroke: e.value.bar.border.useSerieColor ? l.color : e.value.bar.border.stroke,
|
|
2316
2316
|
"stroke-width": e.value.bar.border.strokeWidth,
|
|
2317
2317
|
style: $({ transition: v(ne) || !e.value.bar.showTransition ? void 0 : `all ${e.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2318
2318
|
}, null, 12, Tu)) : f("", !0),
|
|
2319
|
-
Re(a.value) && t.$slots.pattern ? (u(),
|
|
2319
|
+
Re(a.value) && t.$slots.pattern ? (u(), s("rect", {
|
|
2320
2320
|
key: 1,
|
|
2321
2321
|
x: ht(a),
|
|
2322
2322
|
y: m.value.useIndividualScale ? Qt(a) : Kt(a),
|
|
@@ -2328,7 +2328,7 @@ const Co = {
|
|
|
2328
2328
|
"stroke-width": e.value.bar.border.strokeWidth,
|
|
2329
2329
|
style: $({ transition: v(ne) || !e.value.bar.showTransition ? void 0 : `all ${e.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2330
2330
|
}, null, 12, Ou)) : f("", !0),
|
|
2331
|
-
a.comment && e.value.chart.comments.show ? (u(),
|
|
2331
|
+
a.comment && e.value.chart.comments.show ? (u(), s("foreignObject", {
|
|
2332
2332
|
key: 2,
|
|
2333
2333
|
style: { overflow: "visible" },
|
|
2334
2334
|
height: "12",
|
|
@@ -2337,14 +2337,14 @@ const Co = {
|
|
|
2337
2337
|
y: v(H)(a.y) + e.value.chart.comments.offsetY + 6
|
|
2338
2338
|
}, [
|
|
2339
2339
|
J(t.$slots, "plot-comment", {
|
|
2340
|
-
plot: { ...a, color: l.color, seriesIndex:
|
|
2340
|
+
plot: { ...a, color: l.color, seriesIndex: i, datapointIndex: n }
|
|
2341
2341
|
}, void 0, !0)
|
|
2342
2342
|
], 8, Nu)) : f("", !0)
|
|
2343
2343
|
]))), 128)),
|
|
2344
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (u(),
|
|
2344
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (u(), s("g", Ru, [
|
|
2345
2345
|
p("defs", null, [
|
|
2346
2346
|
p("marker", {
|
|
2347
|
-
id: `bar_arrow_${
|
|
2347
|
+
id: `bar_arrow_${i}`,
|
|
2348
2348
|
markerWidth: 7,
|
|
2349
2349
|
markerHeight: 7,
|
|
2350
2350
|
refX: "0",
|
|
@@ -2357,7 +2357,7 @@ const Co = {
|
|
|
2357
2357
|
}, null, 8, Hu)
|
|
2358
2358
|
], 8, Pu)
|
|
2359
2359
|
]),
|
|
2360
|
-
l.plots.length > 1 ? (u(),
|
|
2360
|
+
l.plots.length > 1 ? (u(), s("line", {
|
|
2361
2361
|
key: 0,
|
|
2362
2362
|
x1: v(j)(l.plots).x1 + We(),
|
|
2363
2363
|
x2: v(j)(l.plots).x2 + We(),
|
|
@@ -2366,9 +2366,9 @@ const Co = {
|
|
|
2366
2366
|
"stroke-width": 1,
|
|
2367
2367
|
stroke: l.color,
|
|
2368
2368
|
"stroke-dasharray": 2,
|
|
2369
|
-
"marker-end": `url(#bar_arrow_${
|
|
2369
|
+
"marker-end": `url(#bar_arrow_${i})`
|
|
2370
2370
|
}, null, 8, Vu)) : f("", !0),
|
|
2371
|
-
l.plots.length > 1 ? (u(),
|
|
2371
|
+
l.plots.length > 1 ? (u(), s("text", {
|
|
2372
2372
|
key: 1,
|
|
2373
2373
|
"text-anchor": "middle",
|
|
2374
2374
|
x: v(j)(l.plots).x2 + We(),
|
|
@@ -2382,7 +2382,7 @@ const Co = {
|
|
|
2382
2382
|
})), 9, Eu)) : f("", !0)
|
|
2383
2383
|
])) : f("", !0)
|
|
2384
2384
|
], 6))), 128)) : f("", !0),
|
|
2385
|
-
!m.value.useIndividualScale && e.value.chart.grid.labels.zeroLine.show ? (u(),
|
|
2385
|
+
!m.value.useIndividualScale && e.value.chart.grid.labels.zeroLine.show ? (u(), s("line", {
|
|
2386
2386
|
key: 2,
|
|
2387
2387
|
stroke: e.value.chart.grid.stroke,
|
|
2388
2388
|
"stroke-width": "1",
|
|
@@ -2393,7 +2393,7 @@ const Co = {
|
|
|
2393
2393
|
"stroke-linecap": "round",
|
|
2394
2394
|
style: { animation: "none !important" }
|
|
2395
2395
|
}, null, 8, Bu)) : f("", !0),
|
|
2396
|
-
e.value.chart.highlighter.useLine && (![null, void 0].includes(w.value) || ![null, void 0].includes(N.value)) ? (u(),
|
|
2396
|
+
e.value.chart.highlighter.useLine && (![null, void 0].includes(w.value) || ![null, void 0].includes(N.value)) ? (u(), s("g", Fu, [
|
|
2397
2397
|
p("line", {
|
|
2398
2398
|
x1: r.value.left + r.value.width / _.value * ((w.value !== null ? w.value : 0) || (N.value !== null ? N.value : 0)) + r.value.width / _.value / 2,
|
|
2399
2399
|
x2: r.value.left + r.value.width / _.value * ((w.value !== null ? w.value : 0) || (N.value !== null ? N.value : 0)) + r.value.width / _.value / 2,
|
|
@@ -2406,7 +2406,7 @@ const Co = {
|
|
|
2406
2406
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
2407
2407
|
}, null, 8, Wu)
|
|
2408
2408
|
])) : f("", !0),
|
|
2409
|
-
e.value.chart.grid.frame.show ? (u(),
|
|
2409
|
+
e.value.chart.grid.frame.show ? (u(), s("rect", {
|
|
2410
2410
|
key: 4,
|
|
2411
2411
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
2412
2412
|
x: r.value.left + ee.value < 0 ? 0 : r.value.left + ee.value,
|
|
@@ -2420,13 +2420,13 @@ const Co = {
|
|
|
2420
2420
|
"stroke-linejoin": e.value.chart.grid.frame.strokeLinejoin,
|
|
2421
2421
|
"stroke-dasharray": e.value.chart.grid.frame.strokeDasharray
|
|
2422
2422
|
}, null, 8, Yu)) : f("", !0),
|
|
2423
|
-
e.value.chart.grid.labels.show ? (u(),
|
|
2423
|
+
e.value.chart.grid.labels.show ? (u(), s("g", {
|
|
2424
2424
|
key: 5,
|
|
2425
2425
|
ref_key: "scaleLabels",
|
|
2426
2426
|
ref: Sl
|
|
2427
2427
|
}, [
|
|
2428
|
-
m.value.useIndividualScale ? (u(),
|
|
2429
|
-
(u(!0),
|
|
2428
|
+
m.value.useIndividualScale ? (u(), s(x, { key: 0 }, [
|
|
2429
|
+
(u(!0), s(x, null, L(lt.value, (l) => (u(), s("g", null, [
|
|
2430
2430
|
p("line", {
|
|
2431
2431
|
x1: l.x + ee.value - r.value.individualOffsetX,
|
|
2432
2432
|
x2: l.x + ee.value - r.value.individualOffsetX,
|
|
@@ -2438,7 +2438,7 @@ const Co = {
|
|
|
2438
2438
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2439
2439
|
}, null, 12, Du)
|
|
2440
2440
|
]))), 256)),
|
|
2441
|
-
(u(!0),
|
|
2441
|
+
(u(!0), s(x, null, L(lt.value, (l) => (u(), s("g", {
|
|
2442
2442
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2443
2443
|
}, [
|
|
2444
2444
|
p("text", {
|
|
@@ -2448,41 +2448,41 @@ const Co = {
|
|
|
2448
2448
|
transform: `translate(${l.x - S.value.dataLabels * 0.8 / 2 + ee.value}, ${m.value.isStacked ? r.value.bottom - l.yOffset - l.individualHeight / 2 : r.value.top + r.value.height / 2}) rotate(-90)`
|
|
2449
2449
|
}, te(l.name) + " " + te(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `-
|
|
2450
2450
|
${l.scaleLabel}` : ""), 9, Xu),
|
|
2451
|
-
(u(!0),
|
|
2452
|
-
e.value.chart.grid.labels.yAxis.showCrosshairs ? (u(),
|
|
2451
|
+
(u(!0), s(x, null, L(l.yLabels, (i, a) => (u(), s(x, null, [
|
|
2452
|
+
e.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), s("line", {
|
|
2453
2453
|
key: 0,
|
|
2454
2454
|
x1: l.x + 3 + ee.value - e.value.chart.grid.labels.yAxis.crosshairSize - r.value.individualOffsetX,
|
|
2455
2455
|
x2: l.x + ee.value - r.value.individualOffsetX,
|
|
2456
|
-
y1: v(W)(
|
|
2457
|
-
y2: v(W)(
|
|
2456
|
+
y1: v(W)(i.y),
|
|
2457
|
+
y2: v(W)(i.y),
|
|
2458
2458
|
stroke: l.color,
|
|
2459
2459
|
"stroke-width": 1,
|
|
2460
2460
|
"stroke-linecap": "round",
|
|
2461
2461
|
style: { animation: "none !important" }
|
|
2462
2462
|
}, null, 8, Gu)) : f("", !0)
|
|
2463
2463
|
], 64))), 256)),
|
|
2464
|
-
(u(!0),
|
|
2464
|
+
(u(!0), s(x, null, L(l.yLabels, (i, a) => (u(), s("text", {
|
|
2465
2465
|
x: l.x - 5 + ee.value - r.value.individualOffsetX,
|
|
2466
|
-
y: v(W)(
|
|
2466
|
+
y: v(W)(i.y) + S.value.dataLabels / 3,
|
|
2467
2467
|
"font-size": S.value.dataLabels,
|
|
2468
2468
|
"text-anchor": "end",
|
|
2469
2469
|
fill: l.color
|
|
2470
2470
|
}, te(v(we)(
|
|
2471
2471
|
e.value.chart.grid.labels.yAxis.formatter,
|
|
2472
|
-
|
|
2472
|
+
i.value,
|
|
2473
2473
|
v(He)({
|
|
2474
|
-
p:
|
|
2475
|
-
v:
|
|
2476
|
-
s:
|
|
2474
|
+
p: i.prefix,
|
|
2475
|
+
v: i.value,
|
|
2476
|
+
s: i.suffix,
|
|
2477
2477
|
r: e.value.chart.grid.labels.yAxis.rounding
|
|
2478
2478
|
}),
|
|
2479
|
-
{ datapoint:
|
|
2479
|
+
{ datapoint: i.datapoint, seriesIndex: a }
|
|
2480
2480
|
)), 9, Uu))), 256))
|
|
2481
2481
|
], 4))), 256))
|
|
2482
|
-
], 64)) : (u(!0),
|
|
2483
|
-
key: `yLabel_${
|
|
2482
|
+
], 64)) : (u(!0), s(x, { key: 1 }, L(aa.value, (l, i) => (u(), s("g", {
|
|
2483
|
+
key: `yLabel_${i}`
|
|
2484
2484
|
}, [
|
|
2485
|
-
Re(l) && l.value >= Fe.value.min && l.value <= Fe.value.max && e.value.chart.grid.labels.yAxis.showCrosshairs ? (u(),
|
|
2485
|
+
Re(l) && l.value >= Fe.value.min && l.value <= Fe.value.max && e.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), s("line", {
|
|
2486
2486
|
key: 0,
|
|
2487
2487
|
x1: r.value.left,
|
|
2488
2488
|
x2: r.value.left - e.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -2493,7 +2493,7 @@ const Co = {
|
|
|
2493
2493
|
"stroke-linecap": "round",
|
|
2494
2494
|
style: { animation: "none !important" }
|
|
2495
2495
|
}, null, 8, qu)) : f("", !0),
|
|
2496
|
-
l.value >= Fe.value.min && l.value <= Fe.value.max ? (u(),
|
|
2496
|
+
l.value >= Fe.value.min && l.value <= Fe.value.max ? (u(), s("text", {
|
|
2497
2497
|
key: 1,
|
|
2498
2498
|
x: r.value.scaleLabelX - e.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2499
2499
|
y: v(H)(l.y + S.value.dataLabels / 3),
|
|
@@ -2512,25 +2512,25 @@ const Co = {
|
|
|
2512
2512
|
) : ""), 9, Zu)) : f("", !0)
|
|
2513
2513
|
]))), 128))
|
|
2514
2514
|
], 512)) : f("", !0),
|
|
2515
|
-
(u(!0),
|
|
2516
|
-
key: `serie_plot_${
|
|
2517
|
-
class: Ie(`serie_plot_${
|
|
2515
|
+
(u(!0), s(x, null, L(Ke.value, (l, i) => (u(), s("g", {
|
|
2516
|
+
key: `serie_plot_${i}`,
|
|
2517
|
+
class: Ie(`serie_plot_${i}`),
|
|
2518
2518
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2519
2519
|
}, [
|
|
2520
|
-
(u(!0),
|
|
2521
|
-
key: `circle_plot_${
|
|
2520
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s("g", {
|
|
2521
|
+
key: `circle_plot_${i}_${n}`
|
|
2522
2522
|
}, [
|
|
2523
2523
|
a && Re(a.value) ? (u(), De(bt, {
|
|
2524
2524
|
key: 0,
|
|
2525
2525
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
2526
|
-
color: e.value.plot.useGradient ? `url(#plotGradient_${
|
|
2526
|
+
color: e.value.plot.useGradient ? `url(#plotGradient_${i}_${K.value})` : e.value.plot.dot.useSerieColor ? l.color : e.value.plot.dot.fill,
|
|
2527
2527
|
plot: { x: v(H)(a.x), y: v(H)(a.y) },
|
|
2528
2528
|
radius: w.value !== null && w.value === n || N.value !== null && N.value === n ? (Ae.value.plot || 6) * 1.5 : Ae.value.plot || 6,
|
|
2529
2529
|
stroke: e.value.plot.dot.useSerieColor ? e.value.chart.backgroundColor : l.color,
|
|
2530
2530
|
strokeWidth: e.value.plot.dot.strokeWidth,
|
|
2531
2531
|
transition: v(ne) || !e.value.plot.showTransition || w.value !== null && w.value === n || N.value !== null && N.value === n ? void 0 : `all ${e.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2532
2532
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
|
|
2533
|
-
a.comment && e.value.chart.comments.show ? (u(),
|
|
2533
|
+
a.comment && e.value.chart.comments.show ? (u(), s("foreignObject", {
|
|
2534
2534
|
key: 1,
|
|
2535
2535
|
style: { overflow: "visible" },
|
|
2536
2536
|
height: "12",
|
|
@@ -2540,15 +2540,15 @@ const Co = {
|
|
|
2540
2540
|
}, [
|
|
2541
2541
|
p("div", Ku, [
|
|
2542
2542
|
J(t.$slots, "plot-comment", {
|
|
2543
|
-
plot: { ...a, color: l.color, seriesIndex:
|
|
2543
|
+
plot: { ...a, color: l.color, seriesIndex: i, datapointIndex: n }
|
|
2544
2544
|
}, void 0, !0)
|
|
2545
2545
|
])
|
|
2546
2546
|
], 8, Ju)) : f("", !0)
|
|
2547
2547
|
]))), 128)),
|
|
2548
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (u(),
|
|
2548
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (u(), s("g", Qu, [
|
|
2549
2549
|
p("defs", null, [
|
|
2550
2550
|
p("marker", {
|
|
2551
|
-
id: `plot_arrow_${
|
|
2551
|
+
id: `plot_arrow_${i}`,
|
|
2552
2552
|
markerWidth: 7,
|
|
2553
2553
|
markerHeight: 7,
|
|
2554
2554
|
refX: "0",
|
|
@@ -2558,10 +2558,10 @@ const Co = {
|
|
|
2558
2558
|
p("polygon", {
|
|
2559
2559
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2560
2560
|
fill: l.color
|
|
2561
|
-
}, null, 8,
|
|
2561
|
+
}, null, 8, ei)
|
|
2562
2562
|
], 8, ju)
|
|
2563
2563
|
]),
|
|
2564
|
-
l.plots.length > 1 ? (u(),
|
|
2564
|
+
l.plots.length > 1 ? (u(), s("line", {
|
|
2565
2565
|
key: 0,
|
|
2566
2566
|
x1: v(j)(l.plots).x1,
|
|
2567
2567
|
x2: v(j)(l.plots).x2,
|
|
@@ -2570,9 +2570,9 @@ const Co = {
|
|
|
2570
2570
|
"stroke-width": 1,
|
|
2571
2571
|
stroke: l.color,
|
|
2572
2572
|
"stroke-dasharray": 2,
|
|
2573
|
-
"marker-end": `url(#plot_arrow_${
|
|
2574
|
-
}, null, 8,
|
|
2575
|
-
l.plots.length > 1 ? (u(),
|
|
2573
|
+
"marker-end": `url(#plot_arrow_${i})`
|
|
2574
|
+
}, null, 8, li)) : f("", !0),
|
|
2575
|
+
l.plots.length > 1 ? (u(), s("text", {
|
|
2576
2576
|
key: 1,
|
|
2577
2577
|
"text-anchor": "middle",
|
|
2578
2578
|
x: v(j)(l.plots).x2,
|
|
@@ -2583,15 +2583,15 @@ const Co = {
|
|
|
2583
2583
|
v: v(j)(l.plots).trend * 100,
|
|
2584
2584
|
s: "%",
|
|
2585
2585
|
r: 2
|
|
2586
|
-
})), 9,
|
|
2586
|
+
})), 9, ti)) : f("", !0)
|
|
2587
2587
|
])) : f("", !0)
|
|
2588
2588
|
], 6))), 128)),
|
|
2589
|
-
(u(!0),
|
|
2590
|
-
key: `serie_line_${
|
|
2591
|
-
class: Ie(`serie_line_${
|
|
2589
|
+
(u(!0), s(x, null, L(Ye.value, (l, i) => (u(), s("g", {
|
|
2590
|
+
key: `serie_line_${i}`,
|
|
2591
|
+
class: Ie(`serie_line_${i}`),
|
|
2592
2592
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2593
2593
|
}, [
|
|
2594
|
-
l.smooth && l.plots.length > 1 && l.curve ? (u(),
|
|
2594
|
+
l.smooth && l.plots.length > 1 && l.curve ? (u(), s("path", {
|
|
2595
2595
|
key: 0,
|
|
2596
2596
|
d: `M${l.curve}`,
|
|
2597
2597
|
stroke: e.value.chart.backgroundColor,
|
|
@@ -2599,7 +2599,7 @@ const Co = {
|
|
|
2599
2599
|
"stroke-dasharray": l.dashed ? e.value.line.strokeWidth * 2 : 0,
|
|
2600
2600
|
fill: "none",
|
|
2601
2601
|
style: $({ transition: v(ne) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2602
|
-
}, null, 12,
|
|
2602
|
+
}, null, 12, ai)) : l.plots.length > 1 && l.straight ? (u(), s("path", {
|
|
2603
2603
|
key: 1,
|
|
2604
2604
|
d: `M${l.straight}`,
|
|
2605
2605
|
stroke: e.value.chart.backgroundColor,
|
|
@@ -2609,48 +2609,48 @@ const Co = {
|
|
|
2609
2609
|
"stroke-linecap": "round",
|
|
2610
2610
|
"stroke-linejoin": "round",
|
|
2611
2611
|
style: $({ transition: v(ne) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2612
|
-
}, null, 12,
|
|
2612
|
+
}, null, 12, oi)) : f("", !0)
|
|
2613
2613
|
], 6))), 128)),
|
|
2614
|
-
t.$slots.pattern ? (u(),
|
|
2615
|
-
(u(!0),
|
|
2616
|
-
key: `serie_pattern_slot_${
|
|
2617
|
-
}, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${K.value}_${
|
|
2614
|
+
t.$slots.pattern ? (u(), s("defs", ui, [
|
|
2615
|
+
(u(!0), s(x, null, L(ol.value, (l, i) => J(t.$slots, "pattern", gt({
|
|
2616
|
+
key: `serie_pattern_slot_${i}`
|
|
2617
|
+
}, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${K.value}_${i}` }), void 0, !0)), 128))
|
|
2618
2618
|
])) : f("", !0),
|
|
2619
|
-
(u(!0),
|
|
2620
|
-
key: `serie_line_${
|
|
2621
|
-
class: Ie(`serie_line_${
|
|
2619
|
+
(u(!0), s(x, null, L(Ye.value, (l, i) => (u(), s("g", {
|
|
2620
|
+
key: `serie_line_${i}`,
|
|
2621
|
+
class: Ie(`serie_line_${i}`),
|
|
2622
2622
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2623
2623
|
}, [
|
|
2624
|
-
l.useArea && l.plots.length > 1 ? (u(),
|
|
2625
|
-
l.smooth ? (u(!0),
|
|
2626
|
-
a ? (u(),
|
|
2624
|
+
l.useArea && l.plots.length > 1 ? (u(), s("g", ii, [
|
|
2625
|
+
l.smooth ? (u(!0), s(x, { key: 0 }, L(l.curveAreas, (a, n) => (u(), s(x, { key: n }, [
|
|
2626
|
+
a ? (u(), s("path", {
|
|
2627
2627
|
key: 0,
|
|
2628
2628
|
d: a,
|
|
2629
|
-
fill: e.value.line.area.useGradient ? `url(#areaGradient_${
|
|
2629
|
+
fill: e.value.line.area.useGradient ? `url(#areaGradient_${i}_${K.value})` : v(Xe)(l.color, e.value.line.area.opacity),
|
|
2630
2630
|
style: $({ transition: v(ne) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2631
|
-
}, null, 12,
|
|
2632
|
-
t.$slots.pattern && a ? (u(),
|
|
2631
|
+
}, null, 12, si)) : f("", !0),
|
|
2632
|
+
t.$slots.pattern && a ? (u(), s("path", {
|
|
2633
2633
|
key: 1,
|
|
2634
2634
|
d: a,
|
|
2635
2635
|
fill: `url(#pattern_${K.value}_${l.slotAbsoluteIndex})`,
|
|
2636
2636
|
style: $({ transition: v(ne) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2637
|
-
}, null, 12,
|
|
2638
|
-
], 64))), 128)) : (u(!0),
|
|
2639
|
-
a ? (u(),
|
|
2637
|
+
}, null, 12, ni)) : f("", !0)
|
|
2638
|
+
], 64))), 128)) : (u(!0), s(x, { key: 1 }, L(l.area.split(";"), (a, n) => (u(), s(x, { key: n }, [
|
|
2639
|
+
a ? (u(), s("path", {
|
|
2640
2640
|
key: 0,
|
|
2641
2641
|
d: `M${a}Z`,
|
|
2642
|
-
fill: e.value.line.area.useGradient ? `url(#areaGradient_${
|
|
2642
|
+
fill: e.value.line.area.useGradient ? `url(#areaGradient_${i}_${K.value})` : v(Xe)(l.color, e.value.line.area.opacity),
|
|
2643
2643
|
style: $({ transition: v(ne) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2644
|
-
}, null, 12,
|
|
2645
|
-
t.$slots.pattern && a ? (u(),
|
|
2644
|
+
}, null, 12, ri)) : f("", !0),
|
|
2645
|
+
t.$slots.pattern && a ? (u(), s("path", {
|
|
2646
2646
|
key: 1,
|
|
2647
2647
|
d: `M${a}Z`,
|
|
2648
2648
|
fill: `url(#pattern_${K.value}_${l.slotAbsoluteIndex})`,
|
|
2649
2649
|
style: $({ transition: v(ne) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2650
|
-
}, null, 12,
|
|
2650
|
+
}, null, 12, ci)) : f("", !0)
|
|
2651
2651
|
], 64))), 128))
|
|
2652
2652
|
])) : f("", !0),
|
|
2653
|
-
l.smooth && l.plots.length > 1 && l.curve ? (u(),
|
|
2653
|
+
l.smooth && l.plots.length > 1 && l.curve ? (u(), s("path", {
|
|
2654
2654
|
key: 1,
|
|
2655
2655
|
d: `M${l.curve}`,
|
|
2656
2656
|
stroke: l.color,
|
|
@@ -2659,7 +2659,7 @@ const Co = {
|
|
|
2659
2659
|
fill: "none",
|
|
2660
2660
|
"stroke-linecap": "round",
|
|
2661
2661
|
style: $({ transition: v(ne) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2662
|
-
}, null, 12,
|
|
2662
|
+
}, null, 12, vi)) : l.plots.length > 1 && l.straight ? (u(), s("path", {
|
|
2663
2663
|
key: 2,
|
|
2664
2664
|
d: `M${l.straight}`,
|
|
2665
2665
|
stroke: l.color,
|
|
@@ -2669,21 +2669,21 @@ const Co = {
|
|
|
2669
2669
|
"stroke-linecap": "round",
|
|
2670
2670
|
"stroke-linejoin": "round",
|
|
2671
2671
|
style: $({ transition: v(ne) || !e.value.line.showTransition ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2672
|
-
}, null, 12,
|
|
2673
|
-
(u(!0),
|
|
2674
|
-
key: `circle_line_${
|
|
2672
|
+
}, null, 12, di)) : f("", !0),
|
|
2673
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
2674
|
+
key: `circle_line_${i}_${n}`
|
|
2675
2675
|
}, [
|
|
2676
2676
|
!la.value.linePlot && a && Re(a.value) || la.value.linePlot && a && Re(a.value) && (w.value !== null && w.value === n || N.value !== null && N.value === n) ? (u(), De(bt, {
|
|
2677
2677
|
key: 0,
|
|
2678
2678
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
2679
|
-
color: e.value.line.useGradient ? `url(#lineGradient_${
|
|
2679
|
+
color: e.value.line.useGradient ? `url(#lineGradient_${i}_${K.value})` : e.value.line.dot.useSerieColor ? l.color : e.value.line.dot.fill,
|
|
2680
2680
|
plot: { x: v(H)(a.x), y: v(H)(a.y) },
|
|
2681
2681
|
radius: w.value !== null && w.value === n || N.value !== null && N.value === n ? (Ae.value.line || 6) * 1.5 : Ae.value.line || 6,
|
|
2682
2682
|
stroke: e.value.line.dot.useSerieColor ? e.value.chart.backgroundColor : l.color,
|
|
2683
2683
|
strokeWidth: e.value.line.dot.strokeWidth,
|
|
2684
2684
|
transition: v(ne) || !e.value.line.showTransition || w.value !== null && w.value === n || N.value !== null && N.value === n ? void 0 : `all ${e.value.line.transitionDurationMs}ms ease-in-out`
|
|
2685
2685
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
|
|
2686
|
-
a.comment && e.value.chart.comments.show ? (u(),
|
|
2686
|
+
a.comment && e.value.chart.comments.show ? (u(), s("foreignObject", {
|
|
2687
2687
|
key: 1,
|
|
2688
2688
|
style: { overflow: "visible" },
|
|
2689
2689
|
height: "12",
|
|
@@ -2691,17 +2691,17 @@ const Co = {
|
|
|
2691
2691
|
x: a.x - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
|
|
2692
2692
|
y: a.y + e.value.chart.comments.offsetY + 6
|
|
2693
2693
|
}, [
|
|
2694
|
-
p("div",
|
|
2694
|
+
p("div", fi, [
|
|
2695
2695
|
J(t.$slots, "plot-comment", {
|
|
2696
|
-
plot: { ...a, color: l.color, seriesIndex:
|
|
2696
|
+
plot: { ...a, color: l.color, seriesIndex: i, datapointIndex: n }
|
|
2697
2697
|
}, void 0, !0)
|
|
2698
2698
|
])
|
|
2699
|
-
], 8,
|
|
2699
|
+
], 8, hi)) : f("", !0)
|
|
2700
2700
|
], 64))), 128)),
|
|
2701
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (u(),
|
|
2701
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(v(j)(l.plots).trend) ? (u(), s("g", gi, [
|
|
2702
2702
|
p("defs", null, [
|
|
2703
2703
|
p("marker", {
|
|
2704
|
-
id: `line_arrow_${
|
|
2704
|
+
id: `line_arrow_${i}`,
|
|
2705
2705
|
markerWidth: 7,
|
|
2706
2706
|
markerHeight: 7,
|
|
2707
2707
|
refX: "0",
|
|
@@ -2711,10 +2711,10 @@ const Co = {
|
|
|
2711
2711
|
p("polygon", {
|
|
2712
2712
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2713
2713
|
fill: l.color
|
|
2714
|
-
}, null, 8,
|
|
2715
|
-
], 8,
|
|
2714
|
+
}, null, 8, xi)
|
|
2715
|
+
], 8, mi)
|
|
2716
2716
|
]),
|
|
2717
|
-
l.plots.length > 1 ? (u(),
|
|
2717
|
+
l.plots.length > 1 ? (u(), s("line", {
|
|
2718
2718
|
key: 0,
|
|
2719
2719
|
x1: v(j)(l.plots).x1,
|
|
2720
2720
|
x2: v(j)(l.plots).x2,
|
|
@@ -2723,9 +2723,9 @@ const Co = {
|
|
|
2723
2723
|
"stroke-width": 1,
|
|
2724
2724
|
stroke: l.color,
|
|
2725
2725
|
"stroke-dasharray": 2,
|
|
2726
|
-
"marker-end": `url(#line_arrow_${
|
|
2727
|
-
}, null, 8,
|
|
2728
|
-
l.plots.length > 1 ? (u(),
|
|
2726
|
+
"marker-end": `url(#line_arrow_${i})`
|
|
2727
|
+
}, null, 8, bi)) : f("", !0),
|
|
2728
|
+
l.plots.length > 1 ? (u(), s("text", {
|
|
2729
2729
|
key: 1,
|
|
2730
2730
|
"text-anchor": "middle",
|
|
2731
2731
|
x: v(j)(l.plots).x2,
|
|
@@ -2736,17 +2736,17 @@ const Co = {
|
|
|
2736
2736
|
v: v(j)(l.plots).trend * 100,
|
|
2737
2737
|
s: "%",
|
|
2738
2738
|
r: 2
|
|
2739
|
-
})), 9,
|
|
2739
|
+
})), 9, pi)) : f("", !0)
|
|
2740
2740
|
])) : f("", !0)
|
|
2741
2741
|
], 6))), 128)),
|
|
2742
|
-
(e.value.bar.labels.show || e.value.bar.serieName.show) && m.value.dataLabels.show ? (u(),
|
|
2743
|
-
(u(!0),
|
|
2744
|
-
key: `xLabel_bar_${
|
|
2742
|
+
(e.value.bar.labels.show || e.value.bar.serieName.show) && m.value.dataLabels.show ? (u(), s("g", yi, [
|
|
2743
|
+
(u(!0), s(x, null, L(vl.value, (l, i) => (u(), s(x, {
|
|
2744
|
+
key: `xLabel_bar_${i}`
|
|
2745
2745
|
}, [
|
|
2746
|
-
(u(!0),
|
|
2747
|
-
key: `xLabel_bar_${
|
|
2746
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
2747
|
+
key: `xLabel_bar_${i}_${n}`
|
|
2748
2748
|
}, [
|
|
2749
|
-
a && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === n || N.value !== null && N.value === n) && e.value.bar.labels.show ? (u(),
|
|
2749
|
+
a && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === n || N.value !== null && N.value === n) && e.value.bar.labels.show ? (u(), s("text", {
|
|
2750
2750
|
key: 0,
|
|
2751
2751
|
x: m.value.useIndividualScale && m.value.isStacked ? a.x + oe.value.line / 2 : ht(a) + We() / 2 - ul.value / 2,
|
|
2752
2752
|
y: v(H)(a.y) + (a.value >= 0 ? e.value.bar.labels.offsetY : -e.value.bar.labels.offsetY * 3),
|
|
@@ -2767,8 +2767,8 @@ const Co = {
|
|
|
2767
2767
|
datapoint: a,
|
|
2768
2768
|
serie: l
|
|
2769
2769
|
}
|
|
2770
|
-
) : ""), 13,
|
|
2771
|
-
a && e.value.bar.serieName.show ? (u(),
|
|
2770
|
+
) : ""), 13, ki)) : f("", !0),
|
|
2771
|
+
a && e.value.bar.serieName.show ? (u(), s("text", {
|
|
2772
2772
|
key: 1,
|
|
2773
2773
|
x: m.value.useIndividualScale && m.value.isStacked ? a.x + oe.value.line / 2 : a.x + We() * 1.1,
|
|
2774
2774
|
y: a.y + (a.value > 0 ? e.value.bar.serieName.offsetY : -e.value.bar.serieName.offsetY * 3),
|
|
@@ -2780,18 +2780,18 @@ const Co = {
|
|
|
2780
2780
|
}, te(e.value.bar.serieName.useAbbreviation ? v(fo)({
|
|
2781
2781
|
source: l.name,
|
|
2782
2782
|
length: e.value.bar.serieName.abbreviationSize
|
|
2783
|
-
}) : l.name), 13,
|
|
2783
|
+
}) : l.name), 13, wi)) : f("", !0)
|
|
2784
2784
|
], 64))), 128))
|
|
2785
2785
|
], 64))), 128))
|
|
2786
2786
|
])) : f("", !0),
|
|
2787
|
-
e.value.plot.labels.show && m.value.dataLabels.show ? (u(),
|
|
2788
|
-
(u(!0),
|
|
2789
|
-
key: `xLabel_plot_${
|
|
2787
|
+
e.value.plot.labels.show && m.value.dataLabels.show ? (u(), s("g", Si, [
|
|
2788
|
+
(u(!0), s(x, null, L(Ke.value, (l, i) => (u(), s(x, {
|
|
2789
|
+
key: `xLabel_plot_${i}`
|
|
2790
2790
|
}, [
|
|
2791
|
-
(u(!0),
|
|
2792
|
-
key: `xLabel_plot_${
|
|
2791
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
2792
|
+
key: `xLabel_plot_${i}_${n}`
|
|
2793
2793
|
}, [
|
|
2794
|
-
a && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === n || N.value !== null && N.value === n ? (u(),
|
|
2794
|
+
a && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === n || N.value !== null && N.value === n ? (u(), s("text", {
|
|
2795
2795
|
key: 0,
|
|
2796
2796
|
x: a.x,
|
|
2797
2797
|
y: a.y + e.value.plot.labels.offsetY,
|
|
@@ -2812,18 +2812,18 @@ const Co = {
|
|
|
2812
2812
|
datapoint: a,
|
|
2813
2813
|
serie: l
|
|
2814
2814
|
}
|
|
2815
|
-
) : ""), 13, $
|
|
2815
|
+
) : ""), 13, $i)) : f("", !0)
|
|
2816
2816
|
], 64))), 128))
|
|
2817
2817
|
], 64))), 128))
|
|
2818
|
-
])) : (u(),
|
|
2819
|
-
(u(!0),
|
|
2820
|
-
key: `xLabel_plot_${
|
|
2818
|
+
])) : (u(), s("g", _i, [
|
|
2819
|
+
(u(!0), s(x, null, L(Ke.value, (l, i) => (u(), s(x, {
|
|
2820
|
+
key: `xLabel_plot_${i}`
|
|
2821
2821
|
}, [
|
|
2822
|
-
(u(!0),
|
|
2823
|
-
key: `xLabel_plot_${
|
|
2822
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
2823
|
+
key: `xLabel_plot_${i}_${n}`
|
|
2824
2824
|
}, [
|
|
2825
|
-
e.value.plot.tag.followValue ? (u(),
|
|
2826
|
-
[N.value, w.value, Be.value].includes(n) && l.useTag ? (u(),
|
|
2825
|
+
e.value.plot.tag.followValue ? (u(), s(x, { key: 1 }, [
|
|
2826
|
+
[N.value, w.value, Be.value].includes(n) && l.useTag ? (u(), s("line", {
|
|
2827
2827
|
key: 0,
|
|
2828
2828
|
class: "vue-ui-xy-tag-plot",
|
|
2829
2829
|
x1: r.value.left,
|
|
@@ -2834,9 +2834,9 @@ const Co = {
|
|
|
2834
2834
|
"stroke-linecap": "round",
|
|
2835
2835
|
"stroke-dasharray": "2",
|
|
2836
2836
|
stroke: l.color
|
|
2837
|
-
}, null, 8,
|
|
2838
|
-
], 64)) : (u(),
|
|
2839
|
-
a && n === 0 && l.useTag && l.useTag === "start" ? (u(),
|
|
2837
|
+
}, null, 8, zi)) : f("", !0)
|
|
2838
|
+
], 64)) : (u(), s(x, { key: 0 }, [
|
|
2839
|
+
a && n === 0 && l.useTag && l.useTag === "start" ? (u(), s("foreignObject", {
|
|
2840
2840
|
key: 0,
|
|
2841
2841
|
x: a.x,
|
|
2842
2842
|
y: a.y - 20,
|
|
@@ -2856,9 +2856,9 @@ const Co = {
|
|
|
2856
2856
|
serieName: l.name
|
|
2857
2857
|
}
|
|
2858
2858
|
)
|
|
2859
|
-
}, null, 12,
|
|
2860
|
-
], 12,
|
|
2861
|
-
a && n === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (u(),
|
|
2859
|
+
}, null, 12, Mi)
|
|
2860
|
+
], 12, Li)) : f("", !0),
|
|
2861
|
+
a && n === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (u(), s("foreignObject", {
|
|
2862
2862
|
key: 1,
|
|
2863
2863
|
x: a.x - l.name.length * (S.value.plotLabels / 2),
|
|
2864
2864
|
y: a.y - 20,
|
|
@@ -2878,20 +2878,20 @@ const Co = {
|
|
|
2878
2878
|
serieName: l.name
|
|
2879
2879
|
}
|
|
2880
2880
|
)
|
|
2881
|
-
}, null, 12,
|
|
2882
|
-
], 12,
|
|
2881
|
+
}, null, 12, Ci)
|
|
2882
|
+
], 12, Ai)) : f("", !0)
|
|
2883
2883
|
], 64))
|
|
2884
2884
|
], 64))), 128))
|
|
2885
2885
|
], 64))), 128))
|
|
2886
2886
|
])),
|
|
2887
|
-
e.value.line.labels.show && m.value.dataLabels.show ? (u(),
|
|
2888
|
-
(u(!0),
|
|
2889
|
-
key: `xLabel_line_${
|
|
2887
|
+
e.value.line.labels.show && m.value.dataLabels.show ? (u(), s("g", Ii, [
|
|
2888
|
+
(u(!0), s(x, null, L(Ye.value, (l, i) => (u(), s(x, {
|
|
2889
|
+
key: `xLabel_line_${i}`
|
|
2890
2890
|
}, [
|
|
2891
|
-
(u(!0),
|
|
2892
|
-
key: `xLabel_line_${
|
|
2891
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
2892
|
+
key: `xLabel_line_${i}_${n}`
|
|
2893
2893
|
}, [
|
|
2894
|
-
a && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === n || N.value !== null && N.value === n ? (u(),
|
|
2894
|
+
a && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || w.value !== null && w.value === n || N.value !== null && N.value === n ? (u(), s("text", {
|
|
2895
2895
|
key: 0,
|
|
2896
2896
|
x: a.x,
|
|
2897
2897
|
y: a.y + (a.value >= 0 ? e.value.line.labels.offsetY : -e.value.line.labels.offsetY * 3),
|
|
@@ -2912,18 +2912,18 @@ const Co = {
|
|
|
2912
2912
|
datapoint: a,
|
|
2913
2913
|
serie: l
|
|
2914
2914
|
}
|
|
2915
|
-
) : ""), 13,
|
|
2915
|
+
) : ""), 13, Ti)) : f("", !0)
|
|
2916
2916
|
], 64))), 128))
|
|
2917
2917
|
], 64))), 128))
|
|
2918
|
-
])) : (u(),
|
|
2919
|
-
(u(!0),
|
|
2920
|
-
key: `xLabel_line_${
|
|
2918
|
+
])) : (u(), s("g", Oi, [
|
|
2919
|
+
(u(!0), s(x, null, L(Ye.value, (l, i) => (u(), s(x, {
|
|
2920
|
+
key: `xLabel_line_${i}`
|
|
2921
2921
|
}, [
|
|
2922
|
-
(u(!0),
|
|
2923
|
-
key: `xLabel_line_${
|
|
2922
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
2923
|
+
key: `xLabel_line_${i}_${n}`
|
|
2924
2924
|
}, [
|
|
2925
|
-
e.value.line.tag.followValue ? (u(),
|
|
2926
|
-
[N.value, w.value, Be.value].includes(n) && l.useTag ? (u(),
|
|
2925
|
+
e.value.line.tag.followValue ? (u(), s(x, { key: 1 }, [
|
|
2926
|
+
[N.value, w.value, Be.value].includes(n) && l.useTag ? (u(), s("line", {
|
|
2927
2927
|
key: 0,
|
|
2928
2928
|
class: "vue-ui-xy-tag-line",
|
|
2929
2929
|
x1: r.value.left,
|
|
@@ -2934,9 +2934,9 @@ const Co = {
|
|
|
2934
2934
|
"stroke-linecap": "round",
|
|
2935
2935
|
"stroke-dasharray": "2",
|
|
2936
2936
|
stroke: l.color
|
|
2937
|
-
}, null, 8,
|
|
2938
|
-
], 64)) : (u(),
|
|
2939
|
-
a && n === 0 && l.useTag && l.useTag === "start" ? (u(),
|
|
2937
|
+
}, null, 8, Vi)) : f("", !0)
|
|
2938
|
+
], 64)) : (u(), s(x, { key: 0 }, [
|
|
2939
|
+
a && n === 0 && l.useTag && l.useTag === "start" ? (u(), s("foreignObject", {
|
|
2940
2940
|
key: 0,
|
|
2941
2941
|
x: a.x,
|
|
2942
2942
|
y: a.y - 20,
|
|
@@ -2956,9 +2956,9 @@ const Co = {
|
|
|
2956
2956
|
serieName: l.name
|
|
2957
2957
|
}
|
|
2958
2958
|
)
|
|
2959
|
-
}, null, 12,
|
|
2960
|
-
], 12,
|
|
2961
|
-
a && n === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (u(),
|
|
2959
|
+
}, null, 12, Ri)
|
|
2960
|
+
], 12, Ni)) : f("", !0),
|
|
2961
|
+
a && n === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (u(), s("foreignObject", {
|
|
2962
2962
|
key: 1,
|
|
2963
2963
|
x: a.x,
|
|
2964
2964
|
y: a.y - 20,
|
|
@@ -2978,19 +2978,19 @@ const Co = {
|
|
|
2978
2978
|
serieName: l.name
|
|
2979
2979
|
}
|
|
2980
2980
|
)
|
|
2981
|
-
}, null, 12,
|
|
2982
|
-
], 12,
|
|
2981
|
+
}, null, 12, Hi)
|
|
2982
|
+
], 12, Pi)) : f("", !0)
|
|
2983
2983
|
], 64))
|
|
2984
2984
|
], 64))), 128))
|
|
2985
2985
|
], 64))), 128))
|
|
2986
2986
|
])),
|
|
2987
|
-
(u(!0),
|
|
2988
|
-
key: `xLabel_line_${
|
|
2987
|
+
(u(!0), s(x, null, L(Ye.value, (l, i) => (u(), s(x, {
|
|
2988
|
+
key: `xLabel_line_${i}`
|
|
2989
2989
|
}, [
|
|
2990
|
-
(u(!0),
|
|
2991
|
-
key: `xLabel_line_${
|
|
2990
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
2991
|
+
key: `xLabel_line_${i}_${n}`
|
|
2992
2992
|
}, [
|
|
2993
|
-
a && n === 0 && l.showSerieName && l.showSerieName === "start" ? (u(),
|
|
2993
|
+
a && n === 0 && l.showSerieName && l.showSerieName === "start" ? (u(), s("text", {
|
|
2994
2994
|
key: 0,
|
|
2995
2995
|
x: a.x - S.value.plotLabels,
|
|
2996
2996
|
y: a.y,
|
|
@@ -3006,8 +3006,8 @@ const Co = {
|
|
|
3006
3006
|
maxWords: 2
|
|
3007
3007
|
}),
|
|
3008
3008
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3009
|
-
}, null, 12,
|
|
3010
|
-
a && n === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (u(),
|
|
3009
|
+
}, null, 12, Ei)) : f("", !0),
|
|
3010
|
+
a && n === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (u(), s("text", {
|
|
3011
3011
|
key: 1,
|
|
3012
3012
|
x: a.x + S.value.plotLabels,
|
|
3013
3013
|
y: a.y,
|
|
@@ -3023,16 +3023,16 @@ const Co = {
|
|
|
3023
3023
|
maxWords: 2
|
|
3024
3024
|
}),
|
|
3025
3025
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3026
|
-
}, null, 12,
|
|
3026
|
+
}, null, 12, Bi)) : f("", !0)
|
|
3027
3027
|
], 64))), 128))
|
|
3028
3028
|
], 64))), 128)),
|
|
3029
|
-
(u(!0),
|
|
3030
|
-
key: `xLabel_plot_${
|
|
3029
|
+
(u(!0), s(x, null, L(Ke.value, (l, i) => (u(), s(x, {
|
|
3030
|
+
key: `xLabel_plot_${i}`
|
|
3031
3031
|
}, [
|
|
3032
|
-
(u(!0),
|
|
3033
|
-
key: `xLabel_plot_${
|
|
3032
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
3033
|
+
key: `xLabel_plot_${i}_${n}`
|
|
3034
3034
|
}, [
|
|
3035
|
-
a && n === 0 && l.showSerieName && l.showSerieName === "start" ? (u(),
|
|
3035
|
+
a && n === 0 && l.showSerieName && l.showSerieName === "start" ? (u(), s("text", {
|
|
3036
3036
|
key: 0,
|
|
3037
3037
|
x: a.x - S.value.plotLabels,
|
|
3038
3038
|
y: a.y,
|
|
@@ -3048,8 +3048,8 @@ const Co = {
|
|
|
3048
3048
|
maxWords: 2
|
|
3049
3049
|
}),
|
|
3050
3050
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3051
|
-
}, null, 12,
|
|
3052
|
-
a && n === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (u(),
|
|
3051
|
+
}, null, 12, Fi)) : f("", !0),
|
|
3052
|
+
a && n === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (u(), s("text", {
|
|
3053
3053
|
key: 1,
|
|
3054
3054
|
x: a.x + S.value.plotLabels,
|
|
3055
3055
|
y: a.y,
|
|
@@ -3065,13 +3065,13 @@ const Co = {
|
|
|
3065
3065
|
maxWords: 2
|
|
3066
3066
|
}),
|
|
3067
3067
|
style: $(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3068
|
-
}, null, 12,
|
|
3068
|
+
}, null, 12, Wi)) : f("", !0)
|
|
3069
3069
|
], 64))), 128))
|
|
3070
3070
|
], 64))), 128)),
|
|
3071
|
-
m.value.useIndividualScale && !m.value.isStacked ? (u(),
|
|
3071
|
+
m.value.useIndividualScale && !m.value.isStacked ? (u(), s(x, { key: 12 }, [
|
|
3072
3072
|
p("defs", null, [
|
|
3073
|
-
(u(!0),
|
|
3074
|
-
id: `individual_scale_gradient_${K.value}_${
|
|
3073
|
+
(u(!0), s(x, null, L(lt.value, (l, i) => (u(), s("linearGradient", {
|
|
3074
|
+
id: `individual_scale_gradient_${K.value}_${i}`,
|
|
3075
3075
|
x1: "0%",
|
|
3076
3076
|
x2: "100%",
|
|
3077
3077
|
y1: "0%",
|
|
@@ -3081,26 +3081,26 @@ const Co = {
|
|
|
3081
3081
|
offset: "0%",
|
|
3082
3082
|
"stop-color": e.value.chart.backgroundColor,
|
|
3083
3083
|
"stop-opacity": "0"
|
|
3084
|
-
}, null, 8,
|
|
3084
|
+
}, null, 8, Di),
|
|
3085
3085
|
p("stop", {
|
|
3086
3086
|
offset: "100%",
|
|
3087
3087
|
"stop-color": l.color,
|
|
3088
3088
|
"stop-opacity": "0.2"
|
|
3089
|
-
}, null, 8,
|
|
3090
|
-
], 8,
|
|
3089
|
+
}, null, 8, Xi)
|
|
3090
|
+
], 8, Yi))), 256))
|
|
3091
3091
|
]),
|
|
3092
|
-
(u(!0),
|
|
3092
|
+
(u(!0), s(x, null, L(lt.value, (l, i) => (u(), s("rect", {
|
|
3093
3093
|
x: l.x - e.value.chart.grid.labels.yAxis.labelWidth + ee.value - r.value.individualOffsetX,
|
|
3094
3094
|
y: r.value.top,
|
|
3095
3095
|
width: e.value.chart.grid.labels.yAxis.labelWidth + r.value.individualOffsetX,
|
|
3096
3096
|
height: r.value.height < 0 ? 10 : r.value.height,
|
|
3097
|
-
fill: M.value === l.groupId ? `url(#individual_scale_gradient_${K.value}_${
|
|
3097
|
+
fill: M.value === l.groupId ? `url(#individual_scale_gradient_${K.value}_${i})` : "transparent",
|
|
3098
3098
|
onMouseenter: (a) => M.value = l.groupId,
|
|
3099
3099
|
onMouseleave: c[0] || (c[0] = (a) => M.value = null)
|
|
3100
|
-
}, null, 40,
|
|
3100
|
+
}, null, 40, Gi))), 256))
|
|
3101
3101
|
], 64)) : f("", !0),
|
|
3102
3102
|
p("g", null, [
|
|
3103
|
-
e.value.chart.grid.labels.axis.yLabel && !m.value.useIndividualScale ? (u(),
|
|
3103
|
+
e.value.chart.grid.labels.axis.yLabel && !m.value.useIndividualScale ? (u(), s("text", {
|
|
3104
3104
|
key: 0,
|
|
3105
3105
|
ref_key: "yAxisLabel",
|
|
3106
3106
|
ref: Tl,
|
|
@@ -3109,48 +3109,48 @@ const Co = {
|
|
|
3109
3109
|
transform: `translate(${e.value.chart.grid.labels.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
3110
3110
|
"text-anchor": "middle",
|
|
3111
3111
|
style: { transition: "none" }
|
|
3112
|
-
}, te(e.value.chart.grid.labels.axis.yLabel), 9,
|
|
3113
|
-
e.value.chart.grid.labels.axis.xLabel ? (u(),
|
|
3112
|
+
}, te(e.value.chart.grid.labels.axis.yLabel), 9, Ui)) : f("", !0),
|
|
3113
|
+
e.value.chart.grid.labels.axis.xLabel ? (u(), s("text", {
|
|
3114
3114
|
key: 1,
|
|
3115
3115
|
ref_key: "xAxisLabel",
|
|
3116
3116
|
ref: Te,
|
|
3117
3117
|
"text-anchor": "middle",
|
|
3118
|
-
x:
|
|
3119
|
-
y:
|
|
3118
|
+
x: se.value / 2,
|
|
3119
|
+
y: ie.value - 3,
|
|
3120
3120
|
"font-size": S.value.yAxis,
|
|
3121
3121
|
fill: e.value.chart.grid.labels.color
|
|
3122
|
-
}, te(e.value.chart.grid.labels.axis.xLabel), 9,
|
|
3122
|
+
}, te(e.value.chart.grid.labels.axis.xLabel), 9, qi)) : f("", !0)
|
|
3123
3123
|
]),
|
|
3124
|
-
e.value.chart.grid.labels.xAxisLabels.show ? (u(),
|
|
3124
|
+
e.value.chart.grid.labels.xAxisLabels.show ? (u(), s("g", {
|
|
3125
3125
|
key: 13,
|
|
3126
3126
|
ref_key: "timeLabelsEls",
|
|
3127
|
-
ref:
|
|
3127
|
+
ref: tl
|
|
3128
3128
|
}, [
|
|
3129
|
-
t.$slots["time-label"] ? (u(!0),
|
|
3130
|
-
key: `time_label_${
|
|
3129
|
+
t.$slots["time-label"] ? (u(!0), s(x, { key: 0 }, L(Q.value, (l, i) => J(t.$slots, "time-label", gt({
|
|
3130
|
+
key: `time_label_${i}`,
|
|
3131
3131
|
ref_for: !0
|
|
3132
3132
|
}, {
|
|
3133
|
-
x: r.value.left + r.value.width / _.value *
|
|
3133
|
+
x: r.value.left + r.value.width / _.value * i + r.value.width / _.value / 2,
|
|
3134
3134
|
y: r.value.bottom,
|
|
3135
3135
|
fontSize: S.value.xAxis,
|
|
3136
3136
|
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
3137
|
-
transform: `translate(${r.value.left + r.value.width / _.value *
|
|
3137
|
+
transform: `translate(${r.value.left + r.value.width / _.value * i + r.value.width / _.value / 2}, ${r.value.bottom + S.value.xAxis * 1.3 + e.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3138
3138
|
absoluteIndex: l.absoluteIndex,
|
|
3139
3139
|
content: l.text,
|
|
3140
3140
|
textAnchor: e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3141
|
-
show: l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && _.value <= dt.value || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (
|
|
3142
|
-
}), void 0, !0)), 128)) : (u(!0),
|
|
3143
|
-
key: `time_label_${
|
|
3141
|
+
show: l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && _.value <= dt.value || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (i === 0 || i === Q.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && w.value === i && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && i % Math.floor((h.value.end - h.value.start) / dt.value) === 0
|
|
3142
|
+
}), void 0, !0)), 128)) : (u(!0), s(x, { key: 1 }, L(Q.value, (l, i) => (u(), s("g", {
|
|
3143
|
+
key: `time_label_${i}`
|
|
3144
3144
|
}, [
|
|
3145
|
-
l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && _.value <= dt.value || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (
|
|
3145
|
+
l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && _.value <= dt.value || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (i === 0 || i === Q.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && w.value === i && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && i % Math.floor((h.value.end - h.value.start) / dt.value) === 0 ? (u(), s(x, { key: 0 }, [
|
|
3146
3146
|
String(l.text).includes(`
|
|
3147
|
-
`) ? (u(),
|
|
3147
|
+
`) ? (u(), s("text", {
|
|
3148
3148
|
key: 1,
|
|
3149
3149
|
class: "vue-data-ui-time-label",
|
|
3150
3150
|
"text-anchor": e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3151
3151
|
"font-size": S.value.xAxis,
|
|
3152
3152
|
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
3153
|
-
transform: `translate(${r.value.left + r.value.width / _.value *
|
|
3153
|
+
transform: `translate(${r.value.left + r.value.width / _.value * i + r.value.width / _.value / 2}, ${r.value.bottom + S.value.xAxis * 1.5}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3154
3154
|
style: $({
|
|
3155
3155
|
cursor: Bt() ? "pointer" : "default"
|
|
3156
3156
|
}),
|
|
@@ -3161,27 +3161,27 @@ const Co = {
|
|
|
3161
3161
|
x: 0,
|
|
3162
3162
|
y: 0
|
|
3163
3163
|
}),
|
|
3164
|
-
onClick: () => Dt(l,
|
|
3165
|
-
}, null, 12,
|
|
3164
|
+
onClick: () => Dt(l, i)
|
|
3165
|
+
}, null, 12, Ji)) : (u(), s("text", {
|
|
3166
3166
|
key: 0,
|
|
3167
3167
|
class: "vue-data-ui-time-label",
|
|
3168
3168
|
"text-anchor": e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3169
3169
|
"font-size": S.value.xAxis,
|
|
3170
3170
|
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
3171
|
-
transform: `translate(${r.value.left + r.value.width / _.value *
|
|
3171
|
+
transform: `translate(${r.value.left + r.value.width / _.value * i + r.value.width / _.value / 2}, ${r.value.bottom + S.value.xAxis * 1.5}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3172
3172
|
style: $({
|
|
3173
3173
|
cursor: Bt() ? "pointer" : "default"
|
|
3174
3174
|
}),
|
|
3175
|
-
onClick: () => Dt(l,
|
|
3176
|
-
}, te(l.text || ""), 13,
|
|
3175
|
+
onClick: () => Dt(l, i)
|
|
3176
|
+
}, te(l.text || ""), 13, Zi))
|
|
3177
3177
|
], 64)) : f("", !0)
|
|
3178
3178
|
]))), 128))
|
|
3179
3179
|
], 512)) : f("", !0),
|
|
3180
|
-
oa.value.length && !m.value.isStacked ? (u(),
|
|
3181
|
-
(u(!0),
|
|
3180
|
+
oa.value.length && !m.value.isStacked ? (u(), s("g", Ki, [
|
|
3181
|
+
(u(!0), s(x, null, L(oa.value, (l) => (u(), s("g", {
|
|
3182
3182
|
key: l.uid
|
|
3183
3183
|
}, [
|
|
3184
|
-
l.yTop && l.show && isFinite(l.yTop) ? (u(),
|
|
3184
|
+
l.yTop && l.show && isFinite(l.yTop) ? (u(), s("line", {
|
|
3185
3185
|
key: 0,
|
|
3186
3186
|
x1: l.x1,
|
|
3187
3187
|
y1: l.yTop,
|
|
@@ -3192,8 +3192,8 @@ const Co = {
|
|
|
3192
3192
|
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
3193
3193
|
"stroke-linecap": "round",
|
|
3194
3194
|
style: { animation: "none !important" }
|
|
3195
|
-
}, null, 8,
|
|
3196
|
-
l.yBottom && l.show && isFinite(l.yBottom) ? (u(),
|
|
3195
|
+
}, null, 8, Qi)) : f("", !0),
|
|
3196
|
+
l.yBottom && l.show && isFinite(l.yBottom) ? (u(), s("line", {
|
|
3197
3197
|
key: 1,
|
|
3198
3198
|
x1: l.x1,
|
|
3199
3199
|
y1: l.yBottom,
|
|
@@ -3204,8 +3204,8 @@ const Co = {
|
|
|
3204
3204
|
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
3205
3205
|
"stroke-linecap": "round",
|
|
3206
3206
|
style: { animation: "none !important" }
|
|
3207
|
-
}, null, 8,
|
|
3208
|
-
l.hasArea && l.show && isFinite(l.yTop) && isFinite(l.yBottom) ? (u(),
|
|
3207
|
+
}, null, 8, ji)) : f("", !0),
|
|
3208
|
+
l.hasArea && l.show && isFinite(l.yTop) && isFinite(l.yBottom) ? (u(), s("rect", {
|
|
3209
3209
|
key: 2,
|
|
3210
3210
|
y: Math.min(l.yTop, l.yBottom),
|
|
3211
3211
|
x: l.x1,
|
|
@@ -3213,12 +3213,12 @@ const Co = {
|
|
|
3213
3213
|
height: v(H)(l.areaHeight, 0),
|
|
3214
3214
|
fill: v(Xe)(l.config.area.fill, l.config.area.opacity),
|
|
3215
3215
|
style: { animation: "none !important" }
|
|
3216
|
-
}, null, 8,
|
|
3217
|
-
l.config.label.text && l.show && isFinite(l._box.y) ? (u(),
|
|
3216
|
+
}, null, 8, es)) : f("", !0),
|
|
3217
|
+
l.config.label.text && l.show && isFinite(l._box.y) ? (u(), s("rect", gt({
|
|
3218
3218
|
key: 3,
|
|
3219
3219
|
class: "vue-ui-xy-annotation-label-box"
|
|
3220
3220
|
}, { ref_for: !0 }, l._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : f("", !0),
|
|
3221
|
-
l.config.label.text && l.show && isFinite(l._text.y) ? (u(),
|
|
3221
|
+
l.config.label.text && l.show && isFinite(l._text.y) ? (u(), s("text", {
|
|
3222
3222
|
key: 4,
|
|
3223
3223
|
id: l.id,
|
|
3224
3224
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -3227,11 +3227,11 @@ const Co = {
|
|
|
3227
3227
|
"font-size": l.config.label.fontSize,
|
|
3228
3228
|
fill: l.config.label.color,
|
|
3229
3229
|
"text-anchor": l.config.label.textAnchor
|
|
3230
|
-
}, te(l.config.label.text), 9,
|
|
3230
|
+
}, te(l.config.label.text), 9, ls)) : f("", !0)
|
|
3231
3231
|
]))), 128))
|
|
3232
3232
|
])) : f("", !0),
|
|
3233
|
-
e.value.chart.timeTag.show && (![null, void 0].includes(w.value) || ![null, void 0].includes(N.value)) ? (u(),
|
|
3234
|
-
(u(),
|
|
3233
|
+
e.value.chart.timeTag.show && (![null, void 0].includes(w.value) || ![null, void 0].includes(N.value)) ? (u(), s("g", ts, [
|
|
3234
|
+
(u(), s("foreignObject", {
|
|
3235
3235
|
x: r.value.left + r.value.width / _.value * ((w.value !== null ? w.value : 0) || (N.value !== null ? N.value : 0)) - 100 + r.value.width / _.value / 2,
|
|
3236
3236
|
y: r.value.bottom,
|
|
3237
3237
|
width: "200",
|
|
@@ -3242,32 +3242,32 @@ const Co = {
|
|
|
3242
3242
|
class: "vue-ui-xy-time-tag",
|
|
3243
3243
|
style: $(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.value.chart.timeTag.backgroundColor};color:${e.value.chart.timeTag.color};font-size:${e.value.chart.timeTag.fontSize}px`)
|
|
3244
3244
|
}, te(Q.value[(w.value !== null ? w.value : 0) || (N.value !== null ? N.value : 0)].text || (w.value !== null ? w.value : 0) || (N.value !== null ? N.value : 0)), 5)
|
|
3245
|
-
], 8,
|
|
3245
|
+
], 8, as)),
|
|
3246
3246
|
p("circle", {
|
|
3247
3247
|
cx: r.value.left + r.value.width / _.value * ((w.value !== null ? w.value : 0) || (N.value !== null ? N.value : 0)) + r.value.width / _.value / 2,
|
|
3248
3248
|
cy: r.value.bottom,
|
|
3249
3249
|
r: e.value.chart.timeTag.circleMarker.radius,
|
|
3250
3250
|
fill: e.value.chart.timeTag.circleMarker.color
|
|
3251
|
-
}, null, 8,
|
|
3251
|
+
}, null, 8, os)
|
|
3252
3252
|
])) : f("", !0)
|
|
3253
3253
|
])) : f("", !0),
|
|
3254
|
-
Se.value ? (u(),
|
|
3254
|
+
Se.value ? (u(), s("rect", il(gt({ key: 2 }, Mt.value)), null, 16)) : f("", !0),
|
|
3255
3255
|
J(t.$slots, "svg", { svg: Jl.value }, void 0, !0)
|
|
3256
3256
|
], 512)
|
|
3257
3257
|
], 46, Ko)),
|
|
3258
|
-
t.$slots.watermark ? (u(),
|
|
3259
|
-
J(t.$slots, "watermark",
|
|
3258
|
+
t.$slots.watermark ? (u(), s("div", us, [
|
|
3259
|
+
J(t.$slots, "watermark", il(gl({ isPrinting: v(Kl) || v(nt) })), void 0, !0)
|
|
3260
3260
|
])) : f("", !0),
|
|
3261
|
-
(u(!0),
|
|
3262
|
-
key: `tag_line_${
|
|
3261
|
+
(u(!0), s(x, null, L(Ye.value, (l, i) => (u(), s(x, {
|
|
3262
|
+
key: `tag_line_${i}`
|
|
3263
3263
|
}, [
|
|
3264
|
-
(u(!0),
|
|
3265
|
-
key: `tag_line_${
|
|
3264
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
3265
|
+
key: `tag_line_${i}_${n}`
|
|
3266
3266
|
}, [
|
|
3267
|
-
[N.value, w.value, Be.value].includes(n) && l.useTag && l.useTag === "end" && e.value.line.tag.followValue ? (u(),
|
|
3267
|
+
[N.value, w.value, Be.value].includes(n) && l.useTag && l.useTag === "end" && e.value.line.tag.followValue ? (u(), s("div", {
|
|
3268
3268
|
key: 0,
|
|
3269
3269
|
ref_for: !0,
|
|
3270
|
-
ref: (o) => vt(
|
|
3270
|
+
ref: (o) => vt(i, n, o, "right", "line"),
|
|
3271
3271
|
class: "vue-ui-xy-tag",
|
|
3272
3272
|
"data-tag": "right",
|
|
3273
3273
|
style: $({
|
|
@@ -3276,14 +3276,14 @@ const Co = {
|
|
|
3276
3276
|
svgElement: pe.value,
|
|
3277
3277
|
x: r.value.right + e.value.line.tag.fontSize / 1.5,
|
|
3278
3278
|
y: a.y,
|
|
3279
|
-
element: ye.value[`${
|
|
3279
|
+
element: ye.value[`${i}_${n}_right_line`],
|
|
3280
3280
|
position: "right"
|
|
3281
3281
|
}).top + "px",
|
|
3282
3282
|
left: v(ml)({
|
|
3283
3283
|
svgElement: pe.value,
|
|
3284
3284
|
x: r.value.right + e.value.line.tag.fontSize / 1.5,
|
|
3285
3285
|
y: a.y,
|
|
3286
|
-
element: ye.value[`${
|
|
3286
|
+
element: ye.value[`${i}_${n}_right_line`],
|
|
3287
3287
|
position: "right"
|
|
3288
3288
|
}).left + "px",
|
|
3289
3289
|
height: "fit-content",
|
|
@@ -3295,12 +3295,12 @@ const Co = {
|
|
|
3295
3295
|
opacity: 1
|
|
3296
3296
|
})
|
|
3297
3297
|
}, [
|
|
3298
|
-
(u(),
|
|
3298
|
+
(u(), s("svg", is, [
|
|
3299
3299
|
p("path", {
|
|
3300
3300
|
d: "M 0,10 10,0 10,20 Z",
|
|
3301
3301
|
fill: l.color,
|
|
3302
3302
|
stroke: "none"
|
|
3303
|
-
}, null, 8,
|
|
3303
|
+
}, null, 8, ss)
|
|
3304
3304
|
])),
|
|
3305
3305
|
p("div", {
|
|
3306
3306
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3314,12 +3314,12 @@ const Co = {
|
|
|
3314
3314
|
serieName: l.name
|
|
3315
3315
|
}
|
|
3316
3316
|
)
|
|
3317
|
-
}, null, 8,
|
|
3317
|
+
}, null, 8, ns)
|
|
3318
3318
|
], 4)) : f("", !0),
|
|
3319
|
-
[N.value, w.value, Be.value].includes(n) && l.useTag && l.useTag === "start" && e.value.line.tag.followValue ? (u(),
|
|
3319
|
+
[N.value, w.value, Be.value].includes(n) && l.useTag && l.useTag === "start" && e.value.line.tag.followValue ? (u(), s("div", {
|
|
3320
3320
|
key: 1,
|
|
3321
3321
|
ref_for: !0,
|
|
3322
|
-
ref: (o) => vt(
|
|
3322
|
+
ref: (o) => vt(i, n, o, "left", "line"),
|
|
3323
3323
|
class: "vue-ui-xy-tag",
|
|
3324
3324
|
"data-tag": "left",
|
|
3325
3325
|
style: $({
|
|
@@ -3328,14 +3328,14 @@ const Co = {
|
|
|
3328
3328
|
svgElement: pe.value,
|
|
3329
3329
|
x: r.value.left - e.value.line.tag.fontSize / 1.5,
|
|
3330
3330
|
y: a.y,
|
|
3331
|
-
element: ye.value[`${
|
|
3331
|
+
element: ye.value[`${i}_${n}_left_line`],
|
|
3332
3332
|
position: "left"
|
|
3333
3333
|
}).top + "px",
|
|
3334
3334
|
left: v(ml)({
|
|
3335
3335
|
svgElement: pe.value,
|
|
3336
3336
|
x: r.value.left - e.value.line.tag.fontSize / 1.5,
|
|
3337
3337
|
y: a.y,
|
|
3338
|
-
element: ye.value[`${
|
|
3338
|
+
element: ye.value[`${i}_${n}_left_line`],
|
|
3339
3339
|
position: "left"
|
|
3340
3340
|
}).left + "px",
|
|
3341
3341
|
height: "fit-content",
|
|
@@ -3347,12 +3347,12 @@ const Co = {
|
|
|
3347
3347
|
opacity: 1
|
|
3348
3348
|
})
|
|
3349
3349
|
}, [
|
|
3350
|
-
(u(),
|
|
3350
|
+
(u(), s("svg", rs, [
|
|
3351
3351
|
p("path", {
|
|
3352
3352
|
d: "M 0,0 10,10 0,20 Z",
|
|
3353
3353
|
fill: l.color,
|
|
3354
3354
|
stroke: "none"
|
|
3355
|
-
}, null, 8,
|
|
3355
|
+
}, null, 8, cs)
|
|
3356
3356
|
])),
|
|
3357
3357
|
p("div", {
|
|
3358
3358
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3366,20 +3366,20 @@ const Co = {
|
|
|
3366
3366
|
serieName: l.name
|
|
3367
3367
|
}
|
|
3368
3368
|
)
|
|
3369
|
-
}, null, 8,
|
|
3369
|
+
}, null, 8, vs)
|
|
3370
3370
|
], 4)) : f("", !0)
|
|
3371
3371
|
], 64))), 128))
|
|
3372
3372
|
], 64))), 128)),
|
|
3373
|
-
(u(!0),
|
|
3374
|
-
key: `tag_plot_${
|
|
3373
|
+
(u(!0), s(x, null, L(Ke.value, (l, i) => (u(), s(x, {
|
|
3374
|
+
key: `tag_plot_${i}`
|
|
3375
3375
|
}, [
|
|
3376
|
-
(u(!0),
|
|
3377
|
-
key: `tag_plot_${
|
|
3376
|
+
(u(!0), s(x, null, L(l.plots, (a, n) => (u(), s(x, {
|
|
3377
|
+
key: `tag_plot_${i}_${n}`
|
|
3378
3378
|
}, [
|
|
3379
|
-
[N.value, w.value, Be.value].includes(n) && l.useTag && l.useTag === "end" && e.value.plot.tag.followValue ? (u(),
|
|
3379
|
+
[N.value, w.value, Be.value].includes(n) && l.useTag && l.useTag === "end" && e.value.plot.tag.followValue ? (u(), s("div", {
|
|
3380
3380
|
key: 0,
|
|
3381
3381
|
ref_for: !0,
|
|
3382
|
-
ref: (o) => vt(
|
|
3382
|
+
ref: (o) => vt(i, n, o, "right", "plot"),
|
|
3383
3383
|
class: "vue-ui-xy-tag",
|
|
3384
3384
|
"data-tag": "right",
|
|
3385
3385
|
style: $({
|
|
@@ -3388,14 +3388,14 @@ const Co = {
|
|
|
3388
3388
|
svgElement: pe.value,
|
|
3389
3389
|
x: r.value.right + e.value.plot.tag.fontSize / 1.5,
|
|
3390
3390
|
y: a.y,
|
|
3391
|
-
element: ye.value[`${
|
|
3391
|
+
element: ye.value[`${i}_${n}_right_plot`],
|
|
3392
3392
|
position: "right"
|
|
3393
3393
|
}).top + "px",
|
|
3394
3394
|
left: v(ml)({
|
|
3395
3395
|
svgElement: pe.value,
|
|
3396
3396
|
x: r.value.right + e.value.plot.tag.fontSize / 1.5,
|
|
3397
3397
|
y: a.y,
|
|
3398
|
-
element: ye.value[`${
|
|
3398
|
+
element: ye.value[`${i}_${n}_right_plot`],
|
|
3399
3399
|
position: "right"
|
|
3400
3400
|
}).left + "px",
|
|
3401
3401
|
height: "fit-content",
|
|
@@ -3407,12 +3407,12 @@ const Co = {
|
|
|
3407
3407
|
opacity: 1
|
|
3408
3408
|
})
|
|
3409
3409
|
}, [
|
|
3410
|
-
(u(),
|
|
3410
|
+
(u(), s("svg", ds, [
|
|
3411
3411
|
p("path", {
|
|
3412
3412
|
d: "M 0,10 10,0 10,20 Z",
|
|
3413
3413
|
fill: l.color,
|
|
3414
3414
|
stroke: "none"
|
|
3415
|
-
}, null, 8,
|
|
3415
|
+
}, null, 8, hs)
|
|
3416
3416
|
])),
|
|
3417
3417
|
p("div", {
|
|
3418
3418
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3426,12 +3426,12 @@ const Co = {
|
|
|
3426
3426
|
serieName: l.name
|
|
3427
3427
|
}
|
|
3428
3428
|
)
|
|
3429
|
-
}, null, 8,
|
|
3429
|
+
}, null, 8, fs)
|
|
3430
3430
|
], 4)) : f("", !0),
|
|
3431
|
-
[N.value, w.value, Be.value].includes(n) && l.useTag && l.useTag === "start" && e.value.plot.tag.followValue ? (u(),
|
|
3431
|
+
[N.value, w.value, Be.value].includes(n) && l.useTag && l.useTag === "start" && e.value.plot.tag.followValue ? (u(), s("div", {
|
|
3432
3432
|
key: 1,
|
|
3433
3433
|
ref_for: !0,
|
|
3434
|
-
ref: (o) => vt(
|
|
3434
|
+
ref: (o) => vt(i, n, o, "left", "plot"),
|
|
3435
3435
|
class: "vue-ui-xy-tag",
|
|
3436
3436
|
"data-tag": "left",
|
|
3437
3437
|
style: $({
|
|
@@ -3440,14 +3440,14 @@ const Co = {
|
|
|
3440
3440
|
svgElement: pe.value,
|
|
3441
3441
|
x: r.value.left - e.value.plot.tag.fontSize / 1.5,
|
|
3442
3442
|
y: a.y,
|
|
3443
|
-
element: ye.value[`${
|
|
3443
|
+
element: ye.value[`${i}_${n}_left_plot`],
|
|
3444
3444
|
position: "left"
|
|
3445
3445
|
}).top + "px",
|
|
3446
3446
|
left: v(ml)({
|
|
3447
3447
|
svgElement: pe.value,
|
|
3448
3448
|
x: r.value.left - e.value.plot.tag.fontSize / 1.5,
|
|
3449
3449
|
y: a.y,
|
|
3450
|
-
element: ye.value[`${
|
|
3450
|
+
element: ye.value[`${i}_${n}_left_plot`],
|
|
3451
3451
|
position: "left"
|
|
3452
3452
|
}).left + "px",
|
|
3453
3453
|
height: "fit-content",
|
|
@@ -3459,12 +3459,12 @@ const Co = {
|
|
|
3459
3459
|
opacity: 1
|
|
3460
3460
|
})
|
|
3461
3461
|
}, [
|
|
3462
|
-
(u(),
|
|
3462
|
+
(u(), s("svg", gs, [
|
|
3463
3463
|
p("path", {
|
|
3464
3464
|
d: "M 0,0 10,10 0,20 Z",
|
|
3465
3465
|
fill: l.color,
|
|
3466
3466
|
stroke: "none"
|
|
3467
|
-
}, null, 8,
|
|
3467
|
+
}, null, 8, ms)
|
|
3468
3468
|
])),
|
|
3469
3469
|
p("div", {
|
|
3470
3470
|
class: "vue-ui-xy-tag-content",
|
|
@@ -3478,11 +3478,11 @@ const Co = {
|
|
|
3478
3478
|
serieName: l.name
|
|
3479
3479
|
}
|
|
3480
3480
|
)
|
|
3481
|
-
}, null, 8,
|
|
3481
|
+
}, null, 8, xs)
|
|
3482
3482
|
], 4)) : f("", !0)
|
|
3483
3483
|
], 64))), 128))
|
|
3484
3484
|
], 64))), 128)),
|
|
3485
|
-
e.value.chart.zoom.preview.enable ? (u(),
|
|
3485
|
+
e.value.chart.zoom.preview.enable ? (u(), s(x, { key: 5 }, [
|
|
3486
3486
|
e.value.chart.zoom.show && g.value > 6 && _l.value ? (u(), De(Zo, {
|
|
3487
3487
|
ref_key: "chartSlicer",
|
|
3488
3488
|
ref: Me,
|
|
@@ -3514,7 +3514,7 @@ const Co = {
|
|
|
3514
3514
|
end: h.value.end,
|
|
3515
3515
|
"onUpdate:end": c[2] || (c[2] = (l) => h.value.end = l),
|
|
3516
3516
|
refreshStartPoint: e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex : 0,
|
|
3517
|
-
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...A.dataset.map((l) => v(
|
|
3517
|
+
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...A.dataset.map((l) => v(je)({ data: l.series, threshold: e.value.downsample.threshold }).length)),
|
|
3518
3518
|
enableRangeHandles: e.value.chart.zoom.enableRangeHandles,
|
|
3519
3519
|
enableSelectionDrag: e.value.chart.zoom.enableSelectionDrag,
|
|
3520
3520
|
onReset: Ut,
|
|
@@ -3525,11 +3525,11 @@ const Co = {
|
|
|
3525
3525
|
isPreview: Se.value
|
|
3526
3526
|
}, {
|
|
3527
3527
|
"reset-action": xe(({ reset: l }) => [
|
|
3528
|
-
J(t.$slots, "reset-action",
|
|
3528
|
+
J(t.$slots, "reset-action", il(gl({ reset: l })), void 0, !0)
|
|
3529
3529
|
]),
|
|
3530
3530
|
_: 3
|
|
3531
3531
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "timeLabels", "isPreview"])) : f("", !0)
|
|
3532
|
-
], 64)) : (u(),
|
|
3532
|
+
], 64)) : (u(), s(x, { key: 6 }, [
|
|
3533
3533
|
e.value.chart.zoom.show && g.value > 6 && _l.value ? (u(), De(ko, {
|
|
3534
3534
|
ref_key: "chartSlicer",
|
|
3535
3535
|
ref: Me,
|
|
@@ -3561,31 +3561,31 @@ const Co = {
|
|
|
3561
3561
|
end: h.value.end,
|
|
3562
3562
|
"onUpdate:end": c[6] || (c[6] = (l) => h.value.end = l),
|
|
3563
3563
|
refreshStartPoint: e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex : 0,
|
|
3564
|
-
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...A.dataset.map((l) => v(
|
|
3564
|
+
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...A.dataset.map((l) => v(je)({ data: l.series, threshold: e.value.downsample.threshold }).length)),
|
|
3565
3565
|
enableRangeHandles: e.value.chart.zoom.enableRangeHandles,
|
|
3566
3566
|
enableSelectionDrag: e.value.chart.zoom.enableSelectionDrag,
|
|
3567
3567
|
onReset: Ut,
|
|
3568
3568
|
onTrapMouse: Xt
|
|
3569
3569
|
}, {
|
|
3570
3570
|
"reset-action": xe(({ reset: l }) => [
|
|
3571
|
-
J(t.$slots, "reset-action",
|
|
3571
|
+
J(t.$slots, "reset-action", il(gl({ reset: l })), void 0, !0)
|
|
3572
3572
|
]),
|
|
3573
3573
|
_: 3
|
|
3574
3574
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : f("", !0)
|
|
3575
3575
|
], 64)),
|
|
3576
|
-
e.value.chart.legend.show ? (u(),
|
|
3576
|
+
e.value.chart.legend.show ? (u(), s("div", {
|
|
3577
3577
|
key: 7,
|
|
3578
3578
|
ref_key: "chartLegend",
|
|
3579
3579
|
ref: qe,
|
|
3580
3580
|
class: "vue-ui-xy-legend",
|
|
3581
3581
|
style: $(`font-size:${e.value.chart.legend.fontSize}px`)
|
|
3582
3582
|
}, [
|
|
3583
|
-
(u(!0),
|
|
3584
|
-
key: `div_legend_item_${
|
|
3583
|
+
(u(!0), s(x, null, L(Je.value, (l, i) => (u(), s("div", {
|
|
3584
|
+
key: `div_legend_item_${i}`,
|
|
3585
3585
|
onClick: (a) => ea(l),
|
|
3586
|
-
class: Ie({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ae.value.includes(l.id) })
|
|
3586
|
+
class: Ie({ "vue-ui-xy-legend-item-alone": Je.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ae.value.includes(l.id) })
|
|
3587
3587
|
}, [
|
|
3588
|
-
Ee.value[l.type] === "line" ? (u(),
|
|
3588
|
+
Ee.value[l.type] === "line" ? (u(), s("svg", ps, [
|
|
3589
3589
|
p("rect", {
|
|
3590
3590
|
x: "0",
|
|
3591
3591
|
y: "7.5",
|
|
@@ -3595,7 +3595,7 @@ const Co = {
|
|
|
3595
3595
|
height: "3",
|
|
3596
3596
|
width: "20",
|
|
3597
3597
|
fill: l.color
|
|
3598
|
-
}, null, 8,
|
|
3598
|
+
}, null, 8, ys),
|
|
3599
3599
|
Wl(bt, {
|
|
3600
3600
|
plot: { x: 10, y: 9 },
|
|
3601
3601
|
radius: 4,
|
|
@@ -3604,8 +3604,8 @@ const Co = {
|
|
|
3604
3604
|
stroke: e.value.chart.backgroundColor,
|
|
3605
3605
|
strokeWidth: 0.5
|
|
3606
3606
|
}, null, 8, ["color", "shape", "stroke"])
|
|
3607
|
-
])) : Ee.value[l.type] === "bar" ? (u(),
|
|
3608
|
-
Ee.value[l.type] === "bar" && t.$slots.pattern ? (u(),
|
|
3607
|
+
])) : Ee.value[l.type] === "bar" ? (u(), s("svg", ks, [
|
|
3608
|
+
Ee.value[l.type] === "bar" && t.$slots.pattern ? (u(), s("rect", {
|
|
3609
3609
|
key: 0,
|
|
3610
3610
|
x: "0",
|
|
3611
3611
|
y: "0",
|
|
@@ -3614,8 +3614,8 @@ const Co = {
|
|
|
3614
3614
|
width: "40",
|
|
3615
3615
|
stroke: "none",
|
|
3616
3616
|
fill: l.color
|
|
3617
|
-
}, null, 8,
|
|
3618
|
-
Ee.value[l.type] === "bar" ? (u(),
|
|
3617
|
+
}, null, 8, ws)) : f("", !0),
|
|
3618
|
+
Ee.value[l.type] === "bar" ? (u(), s("rect", {
|
|
3619
3619
|
key: 1,
|
|
3620
3620
|
x: "0",
|
|
3621
3621
|
y: "0",
|
|
@@ -3624,8 +3624,8 @@ const Co = {
|
|
|
3624
3624
|
width: "40",
|
|
3625
3625
|
stroke: "none",
|
|
3626
3626
|
fill: t.$slots.pattern ? `url(#pattern_${K.value}_${l.slotAbsoluteIndex})` : l.color
|
|
3627
|
-
}, null, 8,
|
|
3628
|
-
])) : (u(),
|
|
3627
|
+
}, null, 8, Ss)) : f("", !0)
|
|
3628
|
+
])) : (u(), s("svg", $s, [
|
|
3629
3629
|
Wl(bt, {
|
|
3630
3630
|
plot: { x: 6, y: 6 },
|
|
3631
3631
|
radius: 5,
|
|
@@ -3636,15 +3636,15 @@ const Co = {
|
|
|
3636
3636
|
p("span", {
|
|
3637
3637
|
style: $(`color:${e.value.chart.legend.color}`)
|
|
3638
3638
|
}, te(l.name), 5)
|
|
3639
|
-
], 10,
|
|
3640
|
-
], 4)) : (u(),
|
|
3639
|
+
], 10, bs))), 128))
|
|
3640
|
+
], 4)) : (u(), s("div", {
|
|
3641
3641
|
key: 8,
|
|
3642
3642
|
ref_key: "chartLegend",
|
|
3643
3643
|
ref: qe
|
|
3644
3644
|
}, [
|
|
3645
|
-
J(t.$slots, "legend", { legend:
|
|
3645
|
+
J(t.$slots, "legend", { legend: Je.value }, void 0, !0)
|
|
3646
3646
|
], 512)),
|
|
3647
|
-
t.$slots.source ? (u(),
|
|
3647
|
+
t.$slots.source ? (u(), s("div", {
|
|
3648
3648
|
key: 9,
|
|
3649
3649
|
ref_key: "source",
|
|
3650
3650
|
ref: kl,
|
|
@@ -3665,16 +3665,16 @@ const Co = {
|
|
|
3665
3665
|
offsetY: e.value.chart.tooltip.offsetY,
|
|
3666
3666
|
parent: t.$refs.chart,
|
|
3667
3667
|
content: Ga.value,
|
|
3668
|
-
isFullscreen:
|
|
3668
|
+
isFullscreen: al.value,
|
|
3669
3669
|
isCustom: e.value.chart.tooltip.customFormat && typeof e.value.chart.tooltip.customFormat == "function",
|
|
3670
3670
|
smooth: e.value.chart.tooltip.smooth,
|
|
3671
3671
|
backdropFilter: e.value.chart.tooltip.backdropFilter
|
|
3672
3672
|
}, {
|
|
3673
3673
|
"tooltip-before": xe(() => [
|
|
3674
|
-
J(t.$slots, "tooltip-before",
|
|
3674
|
+
J(t.$slots, "tooltip-before", il(gl({ ...ua.value })), void 0, !0)
|
|
3675
3675
|
]),
|
|
3676
3676
|
"tooltip-after": xe(() => [
|
|
3677
|
-
J(t.$slots, "tooltip-after",
|
|
3677
|
+
J(t.$slots, "tooltip-after", il(gl({ ...ua.value })), void 0, !0)
|
|
3678
3678
|
]),
|
|
3679
3679
|
_: 3
|
|
3680
3680
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
@@ -3698,7 +3698,7 @@ const Co = {
|
|
|
3698
3698
|
p("div", {
|
|
3699
3699
|
style: $(`${v(Kl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
3700
3700
|
}, [
|
|
3701
|
-
p("div",
|
|
3701
|
+
p("div", _s, [
|
|
3702
3702
|
Rt(p("input", {
|
|
3703
3703
|
type: "checkbox",
|
|
3704
3704
|
"onUpdate:modelValue": c[7] || (c[7] = (l) => rl.value = l)
|
|
@@ -3721,7 +3721,7 @@ const Co = {
|
|
|
3721
3721
|
dataset: Ya.value,
|
|
3722
3722
|
config: Da.value
|
|
3723
3723
|
}, null, 8, ["dataset", "config"])) : (u(), De(v(Ue), {
|
|
3724
|
-
key: `table_${
|
|
3724
|
+
key: `table_${st.value}`,
|
|
3725
3725
|
colNames: ft.value.colNames,
|
|
3726
3726
|
head: ft.value.head,
|
|
3727
3727
|
body: ft.value.body,
|
|
@@ -3730,7 +3730,7 @@ const Co = {
|
|
|
3730
3730
|
onClose: c[9] || (c[9] = (l) => m.value.showTable = !1)
|
|
3731
3731
|
}, {
|
|
3732
3732
|
th: xe(({ th: l }) => [
|
|
3733
|
-
p("div", { innerHTML: l }, null, 8,
|
|
3733
|
+
p("div", { innerHTML: l }, null, 8, Ls)
|
|
3734
3734
|
]),
|
|
3735
3735
|
td: xe(({ td: l }) => [
|
|
3736
3736
|
to(te(isNaN(Number(l)) ? l : v(He)({
|
|
@@ -3749,7 +3749,7 @@ const Co = {
|
|
|
3749
3749
|
v(ne) ? (u(), De(Ao, { key: 11 })) : f("", !0)
|
|
3750
3750
|
], 46, Jo));
|
|
3751
3751
|
}
|
|
3752
|
-
},
|
|
3752
|
+
}, Ws = /* @__PURE__ */ Sa(Ms, [["__scopeId", "data-v-84f30b2a"]]);
|
|
3753
3753
|
export {
|
|
3754
|
-
|
|
3754
|
+
Ws as default
|
|
3755
3755
|
};
|