vue-data-ui 3.0.0-next.16 → 3.0.0-next.17
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-BMvrGDLk.js → Arrow-Da9dMqZC.js} +1 -1
- package/dist/{BaseDraggableDialog-CG-KEZ51.js → BaseDraggableDialog-DnwlkEmJ.js} +2 -2
- package/dist/{BaseIcon-BpW-Ye5T.js → BaseIcon-BesWLqxG.js} +1 -1
- package/dist/{ColorPicker-DYeVmI8a.js → ColorPicker-BTkmuF06.js} +2 -2
- package/dist/{DataTable-ChtJEWX5.js → DataTable-CjRGdd0l.js} +2 -2
- package/dist/{Legend-pyruIhAH.js → Legend-Bg9bJZpZ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-aAjiWgwM.js → NonSvgPenAndPaper-DLU-kGNZ.js} +3 -3
- package/dist/{PackageVersion-LuCRzghx.js → PackageVersion-DBzqTu79.js} +1 -1
- package/dist/{PenAndPaper-BhL2fPUu.js → PenAndPaper-Dtl-piX1.js} +3 -3
- package/dist/{Shape-yUVeve2x.js → Shape-SUrUeF3X.js} +1 -1
- package/dist/{Slicer-DcSVBH-C.js → Slicer-CmNenqVf.js} +2 -2
- package/dist/{SparkTooltip-ISe07hfr.js → SparkTooltip-ei9JAdhp.js} +1 -1
- package/dist/{Title-BfbVDOKR.js → Title-Cs1ERPK1.js} +1 -1
- package/dist/{Tooltip-BE77DQlM.js → Tooltip-BPHP7zKx.js} +1 -1
- package/dist/{UserOptions-B1RQL5m0.js → UserOptions-Bva21NaP.js} +2 -2
- package/dist/{dom-to-png-BoOYffhh.js → dom-to-png-DEY2hPQ8.js} +1 -1
- package/dist/{img-D28rKWm8.js → img-CFInIivF.js} +1 -1
- package/dist/{index-BJjrypPG.js → index-D-yumpNq.js} +3 -2
- package/dist/{pdf-mxU_r3O6.js → pdf-CJ3vGO73.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-C3DMld3K.js → useNestedProp-4fuWVKn-.js} +1 -1
- package/dist/{usePrinter-B1PCAb5X.js → usePrinter-gFioE1Y4.js} +2 -2
- package/dist/{vue-data-ui-CJAxLc9q.js → vue-data-ui-DD71tPOA.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BuARdFkd.js → vue-ui-3d-bar-CKhooG-R.js} +6 -6
- package/dist/{vue-ui-accordion-CpMULoC-.js → vue-ui-accordion-D5i7qEAE.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Cpbe2kBv.js → vue-ui-age-pyramid-BjNREIhx.js} +6 -6
- package/dist/{vue-ui-annotator-DQ_0QP7a.js → vue-ui-annotator-DcQ2Oyv9.js} +2 -2
- package/dist/{vue-ui-bullet-B2HtkxZI.js → vue-ui-bullet-C1auR5KW.js} +7 -7
- package/dist/{vue-ui-candlestick-DyRWEE6d.js → vue-ui-candlestick-Bip708tH.js} +7 -7
- package/dist/{vue-ui-carousel-table-NftTssak.js → vue-ui-carousel-table-DouosbyY.js} +4 -4
- package/dist/{vue-ui-chestnut-Cj1lOLGP.js → vue-ui-chestnut-tWezWnDx.js} +5 -5
- package/dist/{vue-ui-chord-DHKgiBi5.js → vue-ui-chord-BsFTWGIi.js} +8 -8
- package/dist/{vue-ui-circle-pack-D8Nm3tjW.js → vue-ui-circle-pack-CNiTn-aC.js} +6 -6
- package/dist/{vue-ui-cursor-B0o_PqIW.js → vue-ui-cursor-BPb_8oeI.js} +2 -2
- package/dist/{vue-ui-dashboard-CReD13VL.js → vue-ui-dashboard-eWD-W7s-.js} +62 -62
- package/dist/{vue-ui-digits-BfPMhfFd.js → vue-ui-digits-Cb_0thM9.js} +2 -2
- package/dist/{vue-ui-donut-wbJFRpVY.js → vue-ui-donut-Q7oJm4te.js} +8 -8
- package/dist/{vue-ui-donut-evolution-BGGHZQL6.js → vue-ui-donut-evolution-Ck5fYxz8.js} +8 -8
- package/dist/{vue-ui-dumbbell-BOuIbFB9.js → vue-ui-dumbbell-BC7jtKBa.js} +7 -7
- package/dist/{vue-ui-flow-Dx3Bt9Zk.js → vue-ui-flow-Dn1KSWzM.js} +7 -7
- package/dist/{vue-ui-funnel-BkUm00dp.js → vue-ui-funnel-Cv9r-c4E.js} +6 -6
- package/dist/{vue-ui-galaxy-CiFk1MrE.js → vue-ui-galaxy-B9N1l83Q.js} +5 -5
- package/dist/{vue-ui-gauge-y2DUg_0Z.js → vue-ui-gauge-BSYnB_lN.js} +6 -6
- package/dist/{vue-ui-gizmo-Bmfinu6k.js → vue-ui-gizmo-LUFrKPYa.js} +3 -3
- package/dist/{vue-ui-heatmap-CbU8Ugze.js → vue-ui-heatmap-YBENeONZ.js} +7 -7
- package/dist/{vue-ui-history-plot-Dq26mD1y.js → vue-ui-history-plot-Csqxg4kn.js} +7 -7
- package/dist/{vue-ui-kpi-CVogJRwk.js → vue-ui-kpi-rDztj6b8.js} +3 -3
- package/dist/{vue-ui-mini-loader-DMkjsHB3.js → vue-ui-mini-loader-BkOBMAYL.js} +2 -2
- package/dist/{vue-ui-molecule-DB-j4UiF.js → vue-ui-molecule-DhayLUqN.js} +5 -5
- package/dist/{vue-ui-mood-radar-DcmMtsEt.js → vue-ui-mood-radar-BCQ2EsnM.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BydLNwiK.js → vue-ui-nested-donuts-DcbzMYwa.js} +9 -9
- package/dist/{vue-ui-onion-BYKraap9.js → vue-ui-onion-DIhMbKlH.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-B-iQ0BTA.js → vue-ui-parallel-coordinate-plot-CEAuXFQd.js} +8 -8
- package/dist/{vue-ui-quadrant-BURZ9nBq.js → vue-ui-quadrant-BJoPqcUR.js} +8 -8
- package/dist/{vue-ui-quick-chart-0jhodyb7.js → vue-ui-quick-chart-BDopIXci.js} +6 -6
- package/dist/{vue-ui-radar-Dpu2SheC.js → vue-ui-radar-CezXw-5X.js} +7 -7
- package/dist/{vue-ui-rating-CigTA87M.js → vue-ui-rating-D_1gVG1C.js} +2 -2
- package/dist/{vue-ui-relation-circle-BFoxPvV6.js → vue-ui-relation-circle-CPAiZm-t.js} +6 -6
- package/dist/{vue-ui-ridgeline-Ct4KmkV9.js → vue-ui-ridgeline-0U0U_SWH.js} +8 -8
- package/dist/{vue-ui-rings-Cy97z8CL.js → vue-ui-rings-VGOR5lIL.js} +8 -8
- package/dist/{vue-ui-scatter-CtyMIJ_L.js → vue-ui-scatter-BhT1unMb.js} +8 -8
- package/dist/{vue-ui-skeleton-mMFNDisn.js → vue-ui-skeleton-BIqRDU3s.js} +3 -3
- package/dist/{vue-ui-smiley-DLnjXpkh.js → vue-ui-smiley-C-H9C0lW.js} +2 -2
- package/dist/{vue-ui-spark-trend-sfpWy0TX.js → vue-ui-spark-trend-7DmaZbP4.js} +3 -3
- package/dist/{vue-ui-sparkbar-B43eyav6.js → vue-ui-sparkbar-Be-rwhWK.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DCjAqngw.js → vue-ui-sparkgauge-DlZETxT0.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B9zQsV9B.js → vue-ui-sparkhistogram-CO-lESLe.js} +4 -4
- package/dist/{vue-ui-sparkline-BV9r8kHu.js → vue-ui-sparkline-DHnVSbfz.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BxooanPF.js → vue-ui-sparkstackbar-DMhoW0wL.js} +3 -3
- package/dist/{vue-ui-stackbar-Bv3FnRtY.js → vue-ui-stackbar-D29F-CC8.js} +9 -9
- package/dist/{vue-ui-strip-plot-D71U8_ta.js → vue-ui-strip-plot-D-kL2TuU.js} +7 -7
- package/dist/{vue-ui-table-Ct9u8vHG.js → vue-ui-table-Ba-6lvHK.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DwEY9E81.js → vue-ui-table-heatmap-Bgmpcqjc.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B4nooXbN.js → vue-ui-table-sparkline-C2OXwvKi.js} +4 -4
- package/dist/{vue-ui-thermometer-BcvJGgY_.js → vue-ui-thermometer-DHm2lPt6.js} +6 -6
- package/dist/{vue-ui-timer-mZxv1o9F.js → vue-ui-timer-DepG-xUP.js} +5 -5
- package/dist/{vue-ui-tiremarks-3Ak3MZQb.js → vue-ui-tiremarks-DvN15IaA.js} +6 -6
- package/dist/{vue-ui-treemap-CzH0G2S9.js → vue-ui-treemap-CQqmQoiv.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Diif-r_t.js → vue-ui-vertical-bar-DkG5oPHr.js} +9 -9
- package/dist/{vue-ui-waffle-C-b2sQ6A.js → vue-ui-waffle-DhZqKzQO.js} +8 -8
- package/dist/{vue-ui-wheel-DsgVac-8.js → vue-ui-wheel-DIxPMuHE.js} +6 -6
- package/dist/{vue-ui-word-cloud-Ch9Z4QLl.js → vue-ui-word-cloud-BF3bc8Sz.js} +6 -6
- package/dist/{vue-ui-world-Cio3glqh.js → vue-ui-world-DDfw2agO.js} +6 -6
- package/dist/{vue-ui-xy-Cp8y_BYv.js → vue-ui-xy-CNe2PVqk.js} +924 -843
- package/dist/{vue-ui-xy-canvas-UV4h7zxG.js → vue-ui-xy-canvas-DOocQWkW.js} +8 -8
- package/package.json +1 -1
|
@@ -1,59 +1,125 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Wt, c as
|
|
3
|
-
import { u as
|
|
1
|
+
import { watch as zl, nextTick as be, defineAsyncComponent as De, useSlots as Pt, getCurrentInstance as Ht, ref as w, computed as A, onMounted as ga, toRefs as Bt, onBeforeUnmount as lt, createElementBlock as r, openBlock as u, normalizeStyle as C, normalizeClass as ul, createBlock as Ve, createCommentVNode as d, createVNode as Al, unref as v, createSlots as Rt, withCtx as ne, renderSlot as Z, normalizeProps as rl, guardReactiveProps as il, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as se, mergeProps as xa, withDirectives as Yt, vModelCheckbox as Ft, createTextVNode as Et } from "vue";
|
|
2
|
+
import { u as Wt, c as ba, e as ma, A as Gt, a5 as Ue, b as Xt, D as Ml, ab as nl, d as Dt, p as Ut, ac as Gl, aa as B, ad as qt, v as T, ae as at, V as tt, af as ot, U as st, ag as Zt, ah as ut, ai as rt, x as Jt, y as Kt, _ as it, R as Pe, i as fe, f as Se, w as cl, s as Ce, a8 as D, L as Qt, F as qe, aj as Xl, I as jt, ak as Ze, C as gl, t as eo, a as lo, o as nt, q as ao, r as to, E as xl } from "./index-D-yumpNq.js";
|
|
3
|
+
import { u as ya } from "./useNestedProp-4fuWVKn-.js";
|
|
4
4
|
import { u as oo } from "./useTimeLabels-DFkUfjfs.js";
|
|
5
|
-
import { S as so } from "./Slicer-
|
|
6
|
-
import uo from "./Title-
|
|
7
|
-
import { _ as
|
|
8
|
-
import ro from "./img-
|
|
9
|
-
import { u as io } from "./usePrinter-
|
|
5
|
+
import { S as so } from "./Slicer-CmNenqVf.js";
|
|
6
|
+
import uo from "./Title-Cs1ERPK1.js";
|
|
7
|
+
import { _ as Dl } from "./Shape-SUrUeF3X.js";
|
|
8
|
+
import ro from "./img-CFInIivF.js";
|
|
9
|
+
import { u as io } from "./usePrinter-gFioE1Y4.js";
|
|
10
10
|
import { u as no, B as co } from "./useLoading-Bt5Doa8m.js";
|
|
11
11
|
import { _ as vo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
|
|
12
|
+
function ho({
|
|
13
|
+
timeLabelsEls: bl,
|
|
14
|
+
timeLabels: Ul,
|
|
15
|
+
slicer: Cl,
|
|
16
|
+
configRef: m,
|
|
17
|
+
rotationPath: vl,
|
|
18
|
+
autoRotatePath: ql,
|
|
19
|
+
isAutoSize: Zl,
|
|
20
|
+
setViewBox: Jl,
|
|
21
|
+
forceResizeObserver: Kl
|
|
22
|
+
}) {
|
|
23
|
+
function ml(re, E) {
|
|
24
|
+
return E.reduce((j, U) => j && j[U], re);
|
|
25
|
+
}
|
|
26
|
+
function Il(re, E, j) {
|
|
27
|
+
E.slice(0, -1).reduce((U, ke) => U[ke], re)[E.slice(-1)] = j;
|
|
28
|
+
}
|
|
29
|
+
function Ql(re) {
|
|
30
|
+
const E = /translate\(\s*([^\s,]+)\s*,\s*([^\s,]+)\s*\)/.exec(re);
|
|
31
|
+
return E ? {
|
|
32
|
+
x: parseFloat(E[1]),
|
|
33
|
+
y: parseFloat(E[2])
|
|
34
|
+
} : { x: 0, y: 0 };
|
|
35
|
+
}
|
|
36
|
+
async function Je() {
|
|
37
|
+
await be();
|
|
38
|
+
const re = bl.value;
|
|
39
|
+
if (!re) return;
|
|
40
|
+
const j = Array.from(re.querySelectorAll(".vue-data-ui-time-label")).map((me) => ({
|
|
41
|
+
...Ql(me.getAttribute("transform")),
|
|
42
|
+
width: me.getBBox().width
|
|
43
|
+
}));
|
|
44
|
+
let U = !1;
|
|
45
|
+
const ke = 4;
|
|
46
|
+
for (let me = 0; me < j.length && !U; me += 1)
|
|
47
|
+
for (let dl = me + 1; dl < j.length; dl += 1) {
|
|
48
|
+
const Ke = j[me], Qe = j[dl];
|
|
49
|
+
if (!(Ke.x + Ke.width + ke < Qe.x || Qe.x + Qe.width + ke < Ke.x)) {
|
|
50
|
+
U = !0;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const He = ml(m.value, vl);
|
|
55
|
+
U && !He ? (Il(m.value, vl, -30.0001), Zl.value && (Jl(), Kl())) : !U && He === -30.0001 && Il(m.value, vl, 0);
|
|
56
|
+
}
|
|
57
|
+
function Tl(re, E) {
|
|
58
|
+
let j;
|
|
59
|
+
return (...U) => {
|
|
60
|
+
clearTimeout(j), j = setTimeout(() => re(...U), E);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
const jl = Tl(Je, 200);
|
|
64
|
+
return zl(
|
|
65
|
+
[
|
|
66
|
+
() => Ul.value,
|
|
67
|
+
() => ml(m.value, vl),
|
|
68
|
+
() => Cl.value.start,
|
|
69
|
+
() => Cl.value.end
|
|
70
|
+
],
|
|
71
|
+
async ([, , re, E], [, , j, U]) => {
|
|
72
|
+
if (!ml(m.value, ql)) return;
|
|
73
|
+
re !== j || E !== U ? jl() : await Je();
|
|
74
|
+
},
|
|
75
|
+
{ immediate: !0 }
|
|
76
|
+
), { detectTimeLabelCollision: Je };
|
|
77
|
+
}
|
|
78
|
+
const fo = ["id"], go = ["width", "viewBox", "aria-label"], xo = ["x", "y", "width", "height"], bo = { key: 1 }, mo = { class: "vue-ui-xy-grid" }, yo = ["stroke", "x1", "x2", "y1", "y2"], po = ["stroke", "x1", "x2", "y1", "y2"], ko = { key: 1 }, _o = ["x1", "x2", "y1", "y2", "stroke"], wo = ["x1", "x2", "y1", "y2", "stroke"], So = ["x1", "x2", "y1", "y2", "stroke"], $o = { key: 3 }, Lo = ["d", "stroke"], Ao = { key: 4 }, Mo = ["d", "stroke"], zo = ["id"], Co = ["stop-color"], Io = ["stop-color"], To = ["stop-color"], Oo = ["id"], No = ["stop-color"], Vo = ["stop-color"], Po = ["stop-color"], Ho = ["id"], Bo = ["stop-color"], Ro = ["stop-color"], Yo = ["id"], Fo = ["stop-color"], Eo = ["stop-color"], Wo = ["id"], Go = ["stop-color"], Xo = ["stop-color"], Do = ["x", "y", "height", "width", "fill"], Uo = ["x", "y", "width"], qo = { key: 0 }, Zo = ["x", "y", "height", "width", "fill"], Jo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ko = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qo = ["width", "x", "y"], jo = { key: 0 }, es = ["id"], ls = ["fill"], as = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ts = ["x", "y", "font-size", "fill"], os = ["stroke", "x1", "x2", "y1", "y2"], ss = { key: 3 }, us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rs = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], is = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ns = ["fill", "font-size", "transform"], cs = ["x1", "x2", "y1", "y2", "stroke"], vs = ["x", "y", "font-size", "fill"], ds = ["x1", "x2", "y1", "y2", "stroke"], hs = ["x", "y", "font-size", "fill"], fs = ["width", "x", "y"], gs = { style: { width: "100%" } }, xs = { key: 0 }, bs = ["id"], ms = ["fill"], ys = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ps = ["x", "y", "font-size", "fill"], ks = ["d", "stroke", "stroke-width", "stroke-dasharray"], _s = ["d", "stroke", "stroke-width", "stroke-dasharray"], ws = { key: 6 }, Ss = { key: 0 }, $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "fill"], Ms = ["d", "fill"], zs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Is = ["width", "x", "y"], Ts = { style: { width: "100%" } }, Os = { key: 3 }, Ns = ["id"], Vs = ["fill"], Ps = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Hs = ["x", "y", "font-size", "fill"], Bs = { key: 7 }, Rs = ["x", "y", "font-size", "fill"], Ys = ["x", "y", "font-size", "fill", "font-weight"], Fs = { key: 8 }, Es = ["x", "y", "font-size", "fill"], Ws = { key: 9 }, Gs = ["x", "y"], Xs = ["innerHTML"], Ds = ["x", "y"], Us = ["innerHTML"], qs = ["x1", "x2", "y1", "y2", "stroke"], Zs = { key: 10 }, Js = ["x", "y", "font-size", "fill"], Ks = { key: 11 }, Qs = ["x", "y"], js = ["innerHTML"], eu = ["x", "y"], lu = ["innerHTML"], au = ["x1", "x2", "y1", "y2", "stroke"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["x", "y", "font-size", "fill", "innerHTML"], uu = ["x", "y", "font-size", "fill", "innerHTML"], ru = ["id"], iu = ["stop-color"], nu = ["stop-color"], cu = ["x", "y", "width", "height", "fill", "onMouseenter"], vu = ["font-size", "fill", "transform"], du = ["x", "y", "font-size", "fill"], hu = ["text-anchor", "font-size", "fill", "transform", "onClick"], fu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], gu = { key: 14 }, xu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], bu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], mu = ["y", "x", "width", "height", "fill"], yu = ["id", "x", "y", "font-size", "fill", "text-anchor"], pu = { key: 15 }, ku = ["x", "y", "height", "width", "onMouseenter", "onClick"], _u = {
|
|
13
79
|
key: 16,
|
|
14
80
|
style: { "pointer-events": "none" }
|
|
15
|
-
},
|
|
81
|
+
}, wu = ["x", "y"], Su = ["cx", "cy", "r", "fill"], $u = {
|
|
16
82
|
key: 4,
|
|
17
83
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
84
|
+
}, Lu = {
|
|
19
85
|
class: "vue-ui-xy-tag-arrow",
|
|
20
86
|
height: "20",
|
|
21
87
|
viewBox: "0 0 10 20",
|
|
22
88
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
23
|
-
},
|
|
89
|
+
}, Au = ["fill"], Mu = ["innerHTML"], zu = {
|
|
24
90
|
class: "vue-ui-xy-tag-arrow",
|
|
25
91
|
height: "100%",
|
|
26
92
|
viewBox: "0 0 10 20",
|
|
27
93
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
28
|
-
},
|
|
94
|
+
}, Cu = ["fill"], Iu = ["innerHTML"], Tu = {
|
|
29
95
|
class: "vue-ui-xy-tag-arrow",
|
|
30
96
|
height: "20",
|
|
31
97
|
viewBox: "0 0 10 20",
|
|
32
98
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
33
|
-
},
|
|
99
|
+
}, Ou = ["fill"], Nu = ["innerHTML"], Vu = {
|
|
34
100
|
class: "vue-ui-xy-tag-arrow",
|
|
35
101
|
height: "100%",
|
|
36
102
|
viewBox: "0 0 10 20",
|
|
37
103
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
38
|
-
},
|
|
104
|
+
}, Pu = ["fill"], Hu = ["innerHTML"], Bu = ["onClick"], Ru = {
|
|
39
105
|
key: 0,
|
|
40
106
|
viewBox: "0 0 20 12",
|
|
41
107
|
height: "14",
|
|
42
108
|
width: "20"
|
|
43
|
-
},
|
|
109
|
+
}, Yu = ["stroke", "fill"], Fu = {
|
|
44
110
|
key: 1,
|
|
45
111
|
viewBox: "0 0 40 40",
|
|
46
112
|
height: "14",
|
|
47
113
|
width: "14"
|
|
48
|
-
},
|
|
114
|
+
}, Eu = ["fill"], Wu = ["fill"], Gu = {
|
|
49
115
|
key: 2,
|
|
50
116
|
viewBox: "0 0 12 12",
|
|
51
117
|
height: "14",
|
|
52
118
|
width: "14"
|
|
53
|
-
},
|
|
119
|
+
}, Xu = {
|
|
54
120
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
55
121
|
"data-dom-to-png-ignore": ""
|
|
56
|
-
},
|
|
122
|
+
}, Du = ["innerHTML"], Uu = {
|
|
57
123
|
__name: "vue-ui-xy",
|
|
58
124
|
props: {
|
|
59
125
|
config: {
|
|
@@ -70,10 +136,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
70
136
|
}
|
|
71
137
|
},
|
|
72
138
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
73
|
-
setup(
|
|
74
|
-
const m =
|
|
75
|
-
height:
|
|
76
|
-
width:
|
|
139
|
+
setup(bl, { expose: Ul, emit: Cl }) {
|
|
140
|
+
const m = bl, vl = De(() => import("./DataTable-CjRGdd0l.js")), ql = De(() => import("./Tooltip-BPHP7zKx.js")), Zl = De(() => import("./UserOptions-Bva21NaP.js")), Jl = De(() => import("./BaseIcon-BesWLqxG.js")), Kl = De(() => import("./vue-ui-table-sparkline-C2OXwvKi.js")), ml = De(() => import("./vue-ui-accordion-D5i7qEAE.js")), Il = De(() => import("./PackageVersion-DBzqTu79.js")), Ql = De(() => import("./PenAndPaper-Dtl-piX1.js")), Je = Cl, Tl = Pt(), jl = Ht(), { vue_ui_xy: re } = Wt(), E = w(null), j = w(null), U = w(null), ke = w(null), He = w(null), me = w(null), dl = w(null), Ke = w(null), Qe = w(null), Ol = w(null), ea = w(null), je = w(null), la = w(null), aa = w(0), M = w(null), pa = w(!0), ce = w(600), K = w(1e3), el = w("0 0 1000 600"), ct = w({ x: 0, y: 0 }), yl = w({ line: "line", bar: "bar", plot: "plot" }), Nl = w(!1), hl = w(!1), ka = w(!1), _ = w(null), ll = w(null), ue = w([]), J = w(ba()), _a = w(0), wa = w(0), Sa = w(0), pl = w(!0), ta = w(0), O = w(null), $a = w(!1), oa = w(!0), Vl = w(!0), $e = w(null), Be = w({}), Pl = w(null), La = w(0), vt = w(1), dt = A(() => ({
|
|
141
|
+
height: ce.value,
|
|
142
|
+
width: K.value
|
|
77
143
|
})), ht = m.config.downsample && m.config.downsample.threshold ? m.config.downsample.threshold : 500, f = w({
|
|
78
144
|
dataLabels: { show: !0 },
|
|
79
145
|
showTooltip: !0,
|
|
@@ -85,27 +151,27 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
85
151
|
yAxis: 12,
|
|
86
152
|
dataLabels: 20,
|
|
87
153
|
plotLabels: 10
|
|
88
|
-
}),
|
|
89
|
-
|
|
154
|
+
}), Ie = w({ plot: 3, line: 3 });
|
|
155
|
+
ga(() => {
|
|
90
156
|
m.dataset.length && m.dataset.forEach((a, c) => {
|
|
91
|
-
[null, void 0].includes(a.series) &&
|
|
157
|
+
[null, void 0].includes(a.series) && ma({
|
|
92
158
|
componentName: "VueUiXy",
|
|
93
159
|
type: "datasetSerieAttribute",
|
|
94
160
|
property: "series (number[])",
|
|
95
161
|
index: c,
|
|
96
|
-
debug:
|
|
162
|
+
debug: Sl.value
|
|
97
163
|
});
|
|
98
164
|
});
|
|
99
165
|
});
|
|
100
|
-
function
|
|
166
|
+
function sa() {
|
|
101
167
|
if (!Object.keys(m.config || {}).length)
|
|
102
|
-
return
|
|
103
|
-
const a =
|
|
168
|
+
return re;
|
|
169
|
+
const a = ya({
|
|
104
170
|
userConfig: m.config,
|
|
105
|
-
defaultConfig:
|
|
171
|
+
defaultConfig: re
|
|
106
172
|
});
|
|
107
|
-
return m.config &&
|
|
108
|
-
defaultConfig:
|
|
173
|
+
return m.config && gl(m.config, "chart.highlightArea") && (Array.isArray(m.config.chart.highlightArea) ? a.chart.highlightArea = m.config.chart.highlightArea : a.chart.highlightArea = [m.config.chart.highlightArea]), m.config && gl(m.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = m.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, m.config && gl(m.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = m.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, m.config && gl(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && gl(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && gl(m.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = m.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, m.config && m.config.chart.annotations && Array.isArray(m.config.chart.annotations) && m.config.chart.annotations.length ? a.chart.annotations = m.config.chart.annotations.map((c) => ya({
|
|
174
|
+
defaultConfig: re.chart.annotations[0],
|
|
109
175
|
userConfig: c
|
|
110
176
|
})) : a.chart.annotations = [], m.config && m.config.autoSize && (m.config && m.config.debug && (m.config.chart.padding.top && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.top, set a 0 value to remove this warning"), m.config.chart.padding.right && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.right, set a 0 value to remove this warning"), m.config.chart.padding.bottom && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.bottom, set a 0 value to remove this warning"), m.config.chart.padding.left && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.left, set a 0 value to remove this warning")), a.chart.padding = {
|
|
111
177
|
top: 0,
|
|
@@ -113,27 +179,27 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
113
179
|
bottom: 0,
|
|
114
180
|
left: 0
|
|
115
181
|
}), a.theme ? {
|
|
116
|
-
...
|
|
182
|
+
...ya({
|
|
117
183
|
userConfig: lo.vue_ui_xy[a.theme] || m.config,
|
|
118
184
|
defaultConfig: a
|
|
119
185
|
}),
|
|
120
186
|
customPalette: eo[a.theme] || m.palette
|
|
121
187
|
} : a;
|
|
122
188
|
}
|
|
123
|
-
const
|
|
189
|
+
const ua = A({
|
|
124
190
|
get() {
|
|
125
191
|
return !!m.dataset && m.dataset.length;
|
|
126
192
|
},
|
|
127
193
|
set(a) {
|
|
128
194
|
return a;
|
|
129
195
|
}
|
|
130
|
-
}), l = w(
|
|
196
|
+
}), l = w(sa()), { loading: ra, FINAL_DATASET: Re, manualLoading: Hl } = no({
|
|
131
197
|
...Bt(m),
|
|
132
198
|
FINAL_CONFIG: l,
|
|
133
|
-
prepareConfig:
|
|
199
|
+
prepareConfig: sa,
|
|
134
200
|
callback: () => {
|
|
135
201
|
Promise.resolve().then(async () => {
|
|
136
|
-
await
|
|
202
|
+
await fa(), l.value.autoSize && (al(), Yl());
|
|
137
203
|
});
|
|
138
204
|
},
|
|
139
205
|
skeletonDataset: [
|
|
@@ -207,46 +273,46 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
207
273
|
}
|
|
208
274
|
}
|
|
209
275
|
})
|
|
210
|
-
}),
|
|
211
|
-
get: () => Math.max(...
|
|
276
|
+
}), Ee = A({
|
|
277
|
+
get: () => Math.max(...Re.value.map((a) => Ue({ data: a.series, threshold: ht }).length)),
|
|
212
278
|
set: (a) => a
|
|
213
|
-
}), S = w({ start: 0, end:
|
|
214
|
-
elementId: `vue-ui-xy_${
|
|
279
|
+
}), S = w({ start: 0, end: Ee.value }), { isPrinting: ia, isImaging: Aa, generatePdf: Ma, generateImage: za } = io({
|
|
280
|
+
elementId: `vue-ui-xy_${J.value}`,
|
|
215
281
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
216
282
|
options: l.value.chart.userOptions.print
|
|
217
|
-
}), X = A(() => l.value.autoSize),
|
|
218
|
-
const [a, c, e, s] =
|
|
283
|
+
}), X = A(() => l.value.autoSize), na = A(() => {
|
|
284
|
+
const [a, c, e, s] = el.value.split(" ").map(Number);
|
|
219
285
|
return { x: a, y: c, width: e, height: s };
|
|
220
|
-
}),
|
|
286
|
+
}), Ca = A(() => Xt(l.value.customPalette)), Bl = A(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ye.value.filter((a) => !ue.value.includes(a.id)).map((a) => Math.max(...a.series)))), ca = A(() => {
|
|
221
287
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
222
288
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
223
|
-
const a = Math.min(...
|
|
289
|
+
const a = Math.min(...Ye.value.filter((c) => !ue.value.includes(c.id)).map((c) => Math.min(...c.series)));
|
|
224
290
|
return a > 0 ? 0 : a;
|
|
225
|
-
}),
|
|
226
|
-
const e =
|
|
291
|
+
}), Le = A(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(ca.value, Bl.value < 0 ? 0 : Bl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : nl(ca.value, Bl.value < 0 ? 0 : Bl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = A(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Le.value.min >= 0 ? 0 : Math.abs(Le.value.min) : -Le.value.min), Ye = A(() => pa.value ? Re.value.map((a, c) => {
|
|
292
|
+
const e = Ue({
|
|
227
293
|
data: a.series,
|
|
228
294
|
threshold: l.value.downsample.threshold
|
|
229
295
|
}), s = `uniqueId_${c}`;
|
|
230
296
|
return {
|
|
231
297
|
...a,
|
|
232
298
|
slotAbsoluteIndex: c,
|
|
233
|
-
series: e.map((t) =>
|
|
234
|
-
color: Dt(a.color ? a.color :
|
|
299
|
+
series: e.map((t) => Gl(t) ? t : null).slice(S.value.start, S.value.end),
|
|
300
|
+
color: Dt(a.color ? a.color : Ca.value[c] ? Ca.value[c] : Ut[c]),
|
|
235
301
|
id: s,
|
|
236
302
|
scaleLabel: a.scaleLabel || s
|
|
237
303
|
};
|
|
238
|
-
}) :
|
|
304
|
+
}) : Re.value), Te = A(() => Ye.value.map((a, c) => ({
|
|
239
305
|
absoluteIndex: c,
|
|
240
306
|
...a,
|
|
241
|
-
series: a.series.map((e) => e +
|
|
307
|
+
series: a.series.map((e) => e + kl.value),
|
|
242
308
|
absoluteValues: a.series,
|
|
243
|
-
segregate: () =>
|
|
244
|
-
isSegregated:
|
|
245
|
-
}))),
|
|
309
|
+
segregate: () => Fa(a),
|
|
310
|
+
isSegregated: ue.value.includes(a.id)
|
|
311
|
+
}))), Ae = A(() => Ye.value.map((a, c) => ({
|
|
246
312
|
...a,
|
|
247
|
-
series: a.series.map((e) => e +
|
|
313
|
+
series: a.series.map((e) => e + kl.value),
|
|
248
314
|
absoluteValues: a.series
|
|
249
|
-
})).filter((a) => !
|
|
315
|
+
})).filter((a) => !ue.value.includes(a.id))), i = A(() => {
|
|
250
316
|
function a(s) {
|
|
251
317
|
const t = /* @__PURE__ */ new Set();
|
|
252
318
|
return s.forEach((n) => {
|
|
@@ -254,14 +320,14 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
254
320
|
t.add(o);
|
|
255
321
|
}), t.size;
|
|
256
322
|
}
|
|
257
|
-
const c = a(
|
|
323
|
+
const c = a(Te.value.filter((s) => !ue.value.includes(s.id))), e = f.value.useIndividualScale && l.value.chart.grid.labels.show ? c * (f.value.isStacked ? 0 : l.value.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
258
324
|
return {
|
|
259
325
|
top: X.value ? 0 : l.value.chart.padding.top,
|
|
260
|
-
right: X.value ?
|
|
261
|
-
bottom: X.value ?
|
|
326
|
+
right: X.value ? K.value : K.value - l.value.chart.padding.right,
|
|
327
|
+
bottom: X.value ? ce.value : ce.value - l.value.chart.padding.bottom,
|
|
262
328
|
left: X.value ? e : l.value.chart.padding.left + e,
|
|
263
|
-
height: X.value ?
|
|
264
|
-
width: X.value ?
|
|
329
|
+
height: X.value ? ce.value : ce.value - (l.value.chart.padding.top + l.value.chart.padding.bottom),
|
|
330
|
+
width: X.value ? K.value - e : K.value - (l.value.chart.padding.right + l.value.chart.padding.left + e)
|
|
265
331
|
};
|
|
266
332
|
}), ft = A(() => {
|
|
267
333
|
const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = b.value + a, e = B(i.value.top), s = B(i.value.bottom);
|
|
@@ -277,41 +343,41 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
277
343
|
showOnlyFirstAndLast: c,
|
|
278
344
|
modulo: e
|
|
279
345
|
} = l.value.chart.grid.labels.xAxisLabels, s = Math.floor((S.value.end - S.value.start) / e);
|
|
280
|
-
return
|
|
346
|
+
return ge.value.map((t, n) => {
|
|
281
347
|
if (!t) return null;
|
|
282
|
-
const o = a && b.value <= e, R = !c && !a, F = c && !a && (n === 0 || n ===
|
|
283
|
-
if (!(o || R || F ||
|
|
348
|
+
const o = a && b.value <= e, R = !c && !a, F = c && !a && (n === 0 || n === ge.value.length - 1), ee = c && !a && _.value === n, $ = !c && a && n % s === 0;
|
|
349
|
+
if (!(o || R || F || ee || $))
|
|
284
350
|
return null;
|
|
285
|
-
const z = i.value.width / b.value,
|
|
286
|
-
return `M${
|
|
351
|
+
const z = i.value.width / b.value, W = i.value.left + z * n + z / 2, k = l.value.chart.grid.labels.xAxis.crosshairSize, N = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, L = N ? ve.value - (ve.value === i.value.bottom ? 0 : k / 2) : i.value.bottom, le = N ? ve.value + k / (ve.value === i.value.bottom ? 1 : 2) : i.value.bottom + k;
|
|
352
|
+
return `M${W},${L} L${W},${le}`;
|
|
287
353
|
}).filter((t) => t !== null).join(" ");
|
|
288
354
|
});
|
|
289
|
-
function
|
|
290
|
-
return !!
|
|
355
|
+
function Ia() {
|
|
356
|
+
return !!jl?.vnode.props?.onSelectTimeLabel;
|
|
291
357
|
}
|
|
292
358
|
function xt(a, c, e) {
|
|
293
|
-
if (!
|
|
359
|
+
if (!Pl.value) {
|
|
294
360
|
const s = document.createElement("canvas");
|
|
295
|
-
|
|
361
|
+
Pl.value = s.getContext("2d");
|
|
296
362
|
}
|
|
297
|
-
return
|
|
363
|
+
return Pl.value.font = `normal ${a}px sans-serif`, Pl.value;
|
|
298
364
|
}
|
|
299
|
-
function
|
|
300
|
-
const a =
|
|
365
|
+
function Ta() {
|
|
366
|
+
const a = E.value.querySelectorAll(".vue-ui-xy-tag");
|
|
301
367
|
a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
|
|
302
368
|
}
|
|
303
|
-
function
|
|
304
|
-
e && (
|
|
369
|
+
function Rl(a, c, e, s, t) {
|
|
370
|
+
e && (Be.value[`${a}_${c}_${s}_${t}`] = e);
|
|
305
371
|
}
|
|
306
|
-
const
|
|
307
|
-
async function
|
|
308
|
-
await
|
|
372
|
+
const va = w(!1);
|
|
373
|
+
async function Oa(a = !1) {
|
|
374
|
+
await be(), va.value = a, $a.value && (Vl.value = a);
|
|
309
375
|
}
|
|
310
|
-
function
|
|
311
|
-
|
|
376
|
+
function da() {
|
|
377
|
+
Nl.value = !Nl.value;
|
|
312
378
|
}
|
|
313
|
-
const
|
|
314
|
-
const a = Math.max(...
|
|
379
|
+
const ge = A(() => {
|
|
380
|
+
const a = Math.max(...Re.value.map((c) => Ue({ data: c.series, threshold: l.value.downsample.threshold }).length));
|
|
315
381
|
return oo({
|
|
316
382
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
317
383
|
maxDatapoints: a,
|
|
@@ -320,8 +386,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
320
386
|
end: S.value.end
|
|
321
387
|
});
|
|
322
388
|
});
|
|
323
|
-
function
|
|
324
|
-
const e =
|
|
389
|
+
function Na(a, c) {
|
|
390
|
+
const e = Ae.value.map((s) => ({
|
|
325
391
|
shape: s.shape || null,
|
|
326
392
|
name: s.name,
|
|
327
393
|
color: s.color,
|
|
@@ -331,7 +397,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
331
397
|
prefix: s.prefix || l.value.chart.labels.prefix,
|
|
332
398
|
suffix: s.suffix || l.value.chart.labels.suffix
|
|
333
399
|
}));
|
|
334
|
-
|
|
400
|
+
Je("selectTimeLabel", {
|
|
335
401
|
datapoint: e,
|
|
336
402
|
absoluteIndex: a.absoluteIndex,
|
|
337
403
|
label: a.text
|
|
@@ -339,28 +405,28 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
339
405
|
}
|
|
340
406
|
const b = A(() => S.value.end - S.value.start);
|
|
341
407
|
async function bt() {
|
|
342
|
-
if (!
|
|
343
|
-
await
|
|
408
|
+
if (!Ke.value) return;
|
|
409
|
+
await be();
|
|
344
410
|
let a = i.value.bottom;
|
|
345
|
-
|
|
411
|
+
Ol.value && (a += Ol.value.getBBox().height), Ke.value.setAttribute("y", a + x.value.xAxis * 1.3 + l.value.chart.grid.labels.axis.xLabelOffsetY);
|
|
346
412
|
}
|
|
347
413
|
async function mt() {
|
|
348
|
-
if (!
|
|
349
|
-
await
|
|
414
|
+
if (!Qe.value) return;
|
|
415
|
+
await be();
|
|
350
416
|
let a = 0;
|
|
351
|
-
|
|
417
|
+
ea.value ? a = ea.value.getBBox().x : a = na.value.x, Qe.value.setAttribute("transform", `translate(${a + l.value.chart.grid.labels.axis.yLabelOffsetX - x.value.yAxis}, ${i.value.top + i.value.height / 2}) rotate(-90)`);
|
|
352
418
|
}
|
|
353
|
-
async function
|
|
354
|
-
await
|
|
355
|
-
const a =
|
|
419
|
+
async function al() {
|
|
420
|
+
await be();
|
|
421
|
+
const a = dl.value;
|
|
356
422
|
if (!a) return;
|
|
357
|
-
|
|
423
|
+
el.value = `0 0 ${l.value.chart.width} ${l.value.chart.height}`, bt(), await be(), mt(), await be();
|
|
358
424
|
const c = a.getBBox();
|
|
359
|
-
|
|
425
|
+
el.value = `${c.x} ${c.y - x.value.plotLabels} ${c.width + l.value.chart.padding.left} ${c.height + x.value.plotLabels + l.value.chart.padding.top}`, await be(), E.value.classList.remove("no-transition");
|
|
360
426
|
}
|
|
361
|
-
function
|
|
362
|
-
if (l.value.responsive &&
|
|
363
|
-
const a =
|
|
427
|
+
function Yl() {
|
|
428
|
+
if (l.value.responsive && E.value) {
|
|
429
|
+
const a = E.value.parentNode;
|
|
364
430
|
if (a) {
|
|
365
431
|
const c = a.getBoundingClientRect().width;
|
|
366
432
|
a.style.width = c - 0.1 + "px", setTimeout(() => {
|
|
@@ -372,11 +438,11 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
372
438
|
function yt(a) {
|
|
373
439
|
O.value = a;
|
|
374
440
|
}
|
|
375
|
-
function
|
|
441
|
+
function Va() {
|
|
376
442
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
377
443
|
}
|
|
378
|
-
function
|
|
379
|
-
|
|
444
|
+
function ha(a) {
|
|
445
|
+
Sl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
380
446
|
}
|
|
381
447
|
function pt(a, c) {
|
|
382
448
|
let e = Array(a).fill(0);
|
|
@@ -385,55 +451,55 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
385
451
|
return e;
|
|
386
452
|
}
|
|
387
453
|
function kt(a) {
|
|
388
|
-
const c = Math.max(...
|
|
454
|
+
const c = Math.max(...Re.value.map((e) => Ue({ data: e.series, threshold: l.value.downsample.threshold }).length));
|
|
389
455
|
return a > c ? c : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
|
|
390
456
|
}
|
|
391
|
-
async function
|
|
392
|
-
(l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) &&
|
|
457
|
+
async function fa() {
|
|
458
|
+
(l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && U.value ? (l.value.chart.zoom.startIndex !== null && (await be(), await be(), U.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await be(), await be(), U.value.setEndValue(kt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
|
|
393
459
|
start: 0,
|
|
394
|
-
end: Math.max(...
|
|
395
|
-
},
|
|
460
|
+
end: Math.max(...Re.value.map((a) => Ue({ data: a.series, threshold: l.value.downsample.threshold }).length))
|
|
461
|
+
}, aa.value += 1);
|
|
396
462
|
}
|
|
397
463
|
function _t() {
|
|
398
|
-
|
|
464
|
+
fa();
|
|
399
465
|
}
|
|
400
|
-
function
|
|
466
|
+
function _e(a) {
|
|
401
467
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
402
468
|
}
|
|
403
|
-
const
|
|
404
|
-
function
|
|
405
|
-
return a / (
|
|
469
|
+
const Pa = A(() => Le.value.max + kl.value);
|
|
470
|
+
function tl(a) {
|
|
471
|
+
return a / (_e(Pa.value) ? Pa.value : 1);
|
|
406
472
|
}
|
|
407
|
-
const
|
|
408
|
-
function
|
|
409
|
-
const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
410
|
-
return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y -
|
|
473
|
+
const ve = A(() => isNaN(tl(kl.value)) ? i.value.bottom : i.value.bottom - i.value.height * tl(kl.value));
|
|
474
|
+
function Ha(a) {
|
|
475
|
+
const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && ca.value >= 0 ? i.value.bottom : ve.value;
|
|
476
|
+
return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ve.value <= 0 ? 1e-5 : a.y - ve.value);
|
|
411
477
|
}
|
|
412
|
-
function
|
|
478
|
+
function Ba(a) {
|
|
413
479
|
return a.value >= 0 ? T(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : T(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
414
480
|
}
|
|
415
|
-
const
|
|
416
|
-
bar: i.value.width / b.value /
|
|
481
|
+
const Q = A(() => ({
|
|
482
|
+
bar: i.value.width / b.value / Ye.value.filter((a) => a.type === "bar").filter((a) => !ue.value.includes(a.id)).length,
|
|
417
483
|
plot: i.value.width / b.value,
|
|
418
484
|
line: i.value.width / b.value
|
|
419
485
|
}));
|
|
420
|
-
function
|
|
421
|
-
return f.value.useIndividualScale && f.value.isStacked ?
|
|
486
|
+
function Me() {
|
|
487
|
+
return f.value.useIndividualScale && f.value.isStacked ? Q.value.line - i.value.width / b.value * 0.1 : Q.value.bar;
|
|
422
488
|
}
|
|
423
|
-
function
|
|
424
|
-
return f.value.useIndividualScale && f.value.isStacked ? a.x + i.value.width / b.value * 0.05 : a.x +
|
|
489
|
+
function Fl(a) {
|
|
490
|
+
return f.value.useIndividualScale && f.value.isStacked ? a.x + i.value.width / b.value * 0.05 : a.x + Q.value.bar / 2;
|
|
425
491
|
}
|
|
426
|
-
function
|
|
427
|
-
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
492
|
+
function Ra(a) {
|
|
493
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ve.value) ? i.bottom.value : ve.value;
|
|
428
494
|
}
|
|
429
|
-
function
|
|
495
|
+
function Ya(a) {
|
|
430
496
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
431
497
|
}
|
|
432
498
|
function wt(a) {
|
|
433
|
-
|
|
499
|
+
Je(
|
|
434
500
|
"selectX",
|
|
435
501
|
{
|
|
436
|
-
dataset:
|
|
502
|
+
dataset: Ae.value.map((c) => ({
|
|
437
503
|
name: c.name,
|
|
438
504
|
value: [null, void 0, NaN].includes(c.absoluteValues[a]) ? null : c.absoluteValues[a],
|
|
439
505
|
color: c.color,
|
|
@@ -445,7 +511,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
445
511
|
);
|
|
446
512
|
}
|
|
447
513
|
function St() {
|
|
448
|
-
return
|
|
514
|
+
return Te.value.map((a) => ({
|
|
449
515
|
values: a.absoluteValues,
|
|
450
516
|
color: a.color,
|
|
451
517
|
name: a.name,
|
|
@@ -453,8 +519,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
453
519
|
}));
|
|
454
520
|
}
|
|
455
521
|
async function $t({ scale: a = 2 } = {}) {
|
|
456
|
-
if (!
|
|
457
|
-
const { width: c, height: e } =
|
|
522
|
+
if (!E.value) return;
|
|
523
|
+
const { width: c, height: e } = E.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: n } = await ro({ domElement: E.value, base64: !0, img: !0, scale: a });
|
|
458
524
|
return {
|
|
459
525
|
imageUri: t,
|
|
460
526
|
base64: n,
|
|
@@ -464,29 +530,29 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
464
530
|
aspectRatio: s
|
|
465
531
|
};
|
|
466
532
|
}
|
|
467
|
-
function
|
|
468
|
-
if (
|
|
469
|
-
|
|
533
|
+
function Fa(a) {
|
|
534
|
+
if (ue.value.includes(a.id))
|
|
535
|
+
ue.value = ue.value.filter((c) => c !== a.id);
|
|
470
536
|
else {
|
|
471
|
-
if (
|
|
472
|
-
|
|
537
|
+
if (ue.value.length + 1 === Ye.value.length) return;
|
|
538
|
+
ue.value.push(a.id);
|
|
473
539
|
}
|
|
474
|
-
|
|
540
|
+
Je("selectLegend", Ae.value.map((c) => ({
|
|
475
541
|
name: c.name,
|
|
476
542
|
values: c.absoluteValues,
|
|
477
543
|
color: c.color,
|
|
478
544
|
type: c.type
|
|
479
|
-
}))),
|
|
545
|
+
}))), ta.value += 1;
|
|
480
546
|
}
|
|
481
547
|
const Lt = A(() => {
|
|
482
548
|
const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
|
|
483
549
|
return `${a}. ${c}`;
|
|
484
|
-
}),
|
|
550
|
+
}), Ea = A(() => ({
|
|
485
551
|
linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
486
552
|
})), At = A(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Mt = A(() => {
|
|
487
553
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
488
554
|
return l.value.chart.highlightArea.map((c) => {
|
|
489
|
-
const e = Math.min(c.to,
|
|
555
|
+
const e = Math.min(c.to, Ee.value - 1);
|
|
490
556
|
return {
|
|
491
557
|
...c,
|
|
492
558
|
span: c.from === e ? 1 : e < c.from ? 0 : e - c.from + 1
|
|
@@ -494,17 +560,17 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
494
560
|
});
|
|
495
561
|
const a = {
|
|
496
562
|
...l.value.chart.highlightArea,
|
|
497
|
-
to: Math.min(l.value.chart.highlightArea.to,
|
|
563
|
+
to: Math.min(l.value.chart.highlightArea.to, Ee.value - 1)
|
|
498
564
|
};
|
|
499
565
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
500
|
-
}), zt = A(() =>
|
|
566
|
+
}), zt = A(() => pa.value ? Re.value.map((a, c) => ({
|
|
501
567
|
...a,
|
|
502
|
-
series:
|
|
568
|
+
series: Ue({
|
|
503
569
|
data: a.series,
|
|
504
570
|
threshold: l.value.downsample.threshold
|
|
505
571
|
}),
|
|
506
572
|
id: `uniqueId_${c}`
|
|
507
|
-
})) :
|
|
573
|
+
})) : Re.value), Ct = A(() => Ae.value.map((a) => {
|
|
508
574
|
const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
509
575
|
return {
|
|
510
576
|
id: a.id,
|
|
@@ -521,7 +587,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
521
587
|
fontFamily: l.value.chart.fontFamily,
|
|
522
588
|
prefix: l.value.chart.labels.prefix,
|
|
523
589
|
suffix: l.value.chart.labels.suffix,
|
|
524
|
-
colNames:
|
|
590
|
+
colNames: ge.value.map((a) => a.text),
|
|
525
591
|
thead: {
|
|
526
592
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
527
593
|
color: l.value.table.th.color,
|
|
@@ -535,28 +601,28 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
535
601
|
userOptions: {
|
|
536
602
|
show: !1
|
|
537
603
|
}
|
|
538
|
-
})), Y = A(() => l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value / 2),
|
|
539
|
-
const a = Object.groupBy(
|
|
604
|
+
})), Y = A(() => l.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value / 2), ol = A(() => qt(Te.value.filter((a) => !ue.value.includes(a.id)))), p = A(() => {
|
|
605
|
+
const a = Object.groupBy(ol.value, (e) => e.scaleLabel), c = {};
|
|
540
606
|
for (const [e, s] of Object.entries(a)) {
|
|
541
607
|
const t = s.flatMap((n) => n.absoluteValues);
|
|
542
608
|
c[e] = {
|
|
543
609
|
min: Math.min(...t) || 0,
|
|
544
610
|
max: Math.max(...t) || 1,
|
|
545
|
-
groupId: `scale_group_${
|
|
611
|
+
groupId: `scale_group_${ba()}`
|
|
546
612
|
};
|
|
547
613
|
}
|
|
548
614
|
return c;
|
|
549
615
|
}), Tt = A(() => {
|
|
550
|
-
const a =
|
|
551
|
-
return i.value.width / b.value / a -
|
|
552
|
-
}),
|
|
616
|
+
const a = Ye.value.filter((c) => c.type === "bar").filter((c) => !ue.value.includes(c.id)).length;
|
|
617
|
+
return i.value.width / b.value / a - Fe.value * a;
|
|
618
|
+
}), Fe = A(() => Q.value.line * l.value.bar.periodGap), Ot = A(() => {
|
|
553
619
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
554
|
-
const a = zt.value.filter((t) => !
|
|
620
|
+
const a = zt.value.filter((t) => !ue.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
555
621
|
for (let t = 0; t < c; t += 1)
|
|
556
622
|
e.push(a.map((n) => n.series[t] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
|
|
557
623
|
const s = Math.min(...e);
|
|
558
624
|
return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
|
|
559
|
-
}),
|
|
625
|
+
}), _l = A(() => Ae.value.map((a) => ({
|
|
560
626
|
slotAbsoluteIndex: a.slotAbsoluteIndex,
|
|
561
627
|
shape: a.shape || null,
|
|
562
628
|
name: a.name,
|
|
@@ -566,45 +632,45 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
566
632
|
comments: a.comments || [],
|
|
567
633
|
prefix: a.prefix || l.value.chart.labels.prefix,
|
|
568
634
|
suffix: a.suffix || l.value.chart.labels.suffix
|
|
569
|
-
}))),
|
|
570
|
-
y: a >= 0 ?
|
|
635
|
+
}))), Wa = A(() => Le.value.ticks.map((a) => ({
|
|
636
|
+
y: a >= 0 ? ve.value - i.value.height * tl(a) : ve.value + i.value.height * tl(Math.abs(a)),
|
|
571
637
|
value: a,
|
|
572
638
|
prefix: l.value.chart.labels.prefix,
|
|
573
639
|
suffix: l.value.chart.labels.suffix
|
|
574
|
-
}))),
|
|
640
|
+
}))), Ga = A(() => {
|
|
575
641
|
const a = l.value.chart.annotations;
|
|
576
642
|
if (!a || !Array.isArray(a) || a.every(($) => !$.show)) return [];
|
|
577
643
|
const c = a.filter(
|
|
578
644
|
($) => $.show && ($.yAxis.yTop != null || $.yAxis.yBottom != null)
|
|
579
645
|
);
|
|
580
646
|
if (!c.length) return [];
|
|
581
|
-
const { left: e, right: s } = i.value, t =
|
|
647
|
+
const { left: e, right: s } = i.value, t = ve.value, n = i.value.height, o = Le.value.min, F = Le.value.max - o, ee = ($) => {
|
|
582
648
|
const z = ($ - 0) / F;
|
|
583
649
|
return t - z * n;
|
|
584
650
|
};
|
|
585
651
|
return c.map(($) => {
|
|
586
|
-
const { yAxis: { yTop: z, yBottom:
|
|
587
|
-
|
|
588
|
-
const
|
|
652
|
+
const { yAxis: { yTop: z, yBottom: W, label: k } } = $, N = z != null && W != null && z !== W, L = z == null ? null : ee(z), le = W == null ? null : ee(W), de = xt(k.fontSize);
|
|
653
|
+
de.font = `${k.fontSize}px sans-serif`;
|
|
654
|
+
const q = de.measureText(k.text).width, we = k.fontSize, Ne = (k.position === "start" ? e + k.padding.left : s - k.padding.right) + k.offsetX, ye = (L != null && le != null ? Math.min(L, le) : L ?? le) - k.fontSize / 3 + k.offsetY - k.padding.top;
|
|
589
655
|
let P;
|
|
590
|
-
k.textAnchor === "middle" ? P =
|
|
591
|
-
const H =
|
|
656
|
+
k.textAnchor === "middle" ? P = Ne - q / 2 - k.padding.left : k.textAnchor === "end" ? P = Ne - q - k.padding.right : P = Ne - k.padding.left;
|
|
657
|
+
const H = ye - we * 0.75 - k.padding.top;
|
|
592
658
|
return {
|
|
593
|
-
show: ![L,
|
|
594
|
-
id: `annotation_y_${
|
|
659
|
+
show: ![L, le, H].includes(NaN),
|
|
660
|
+
id: `annotation_y_${ba()}`,
|
|
595
661
|
hasArea: N,
|
|
596
|
-
areaHeight: N ? Math.abs(L -
|
|
662
|
+
areaHeight: N ? Math.abs(L - le) : 0,
|
|
597
663
|
yTop: L,
|
|
598
|
-
yBottom:
|
|
664
|
+
yBottom: le,
|
|
599
665
|
config: $.yAxis,
|
|
600
666
|
x1: e,
|
|
601
667
|
x2: s,
|
|
602
|
-
_text: { x:
|
|
668
|
+
_text: { x: Ne, y: ye },
|
|
603
669
|
_box: {
|
|
604
670
|
x: P,
|
|
605
671
|
y: H,
|
|
606
|
-
width:
|
|
607
|
-
height:
|
|
672
|
+
width: q + k.padding.left + k.padding.right,
|
|
673
|
+
height: we + k.padding.top + k.padding.bottom,
|
|
608
674
|
fill: k.backgroundColor,
|
|
609
675
|
stroke: k.border.stroke,
|
|
610
676
|
rx: k.border.rx,
|
|
@@ -613,202 +679,202 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
613
679
|
}
|
|
614
680
|
};
|
|
615
681
|
});
|
|
616
|
-
}),
|
|
617
|
-
const a =
|
|
682
|
+
}), We = A(() => {
|
|
683
|
+
const a = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
|
|
618
684
|
return a.filter((o) => o.type === "bar").map((o, R) => {
|
|
619
|
-
|
|
620
|
-
const F = p.value[o.scaleLabel].min,
|
|
621
|
-
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (
|
|
685
|
+
ha(o);
|
|
686
|
+
const F = p.value[o.scaleLabel].min, ee = p.value[o.scaleLabel].max;
|
|
687
|
+
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (ee - F));
|
|
622
688
|
const $ = {
|
|
623
689
|
valueMin: F,
|
|
624
|
-
valueMax:
|
|
690
|
+
valueMax: ee < 0 ? 0 : ee
|
|
625
691
|
}, z = {
|
|
626
692
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
627
693
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
|
|
628
|
-
},
|
|
629
|
-
const
|
|
694
|
+
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(z.min, z.max === z.min ? z.max * k : z.max, W) : nl(z.min, z.max === z.min ? z.max * k : z.max, W), L = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, W) : nl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, W), le = N.min >= 0 ? 0 : Math.abs(N.min), de = 0, q = N.max + le, we = L.max + Math.abs(de), Ne = o.stackIndex, fl = c - 1 - Ne, ye = s ? 1 - o.cumulatedStackRatio : 0, P = s ? n * ye + e * fl : 0, H = s ? n * o.stackRatio : i.value.height, ae = i.value.bottom - P - H * le / q, pe = i.value.bottom - P - H * de / we, he = Te.value.filter((V) => V.type === "bar").filter((V) => !ue.value.includes(V.id)).length, $l = o.series.map((V, oe) => {
|
|
695
|
+
const Xe = f.value.useIndividualScale ? (o.absoluteValues[oe] + le) / q : tl(V), sl = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * oe : i.value.left + Q.value.bar * R + Q.value.bar * oe * he - Tt.value / 2 - R * Fe.value;
|
|
630
696
|
return {
|
|
631
697
|
yOffset: T(P),
|
|
632
698
|
individualHeight: T(H),
|
|
633
|
-
x: T(
|
|
634
|
-
y: i.value.bottom - P - H *
|
|
635
|
-
value: o.absoluteValues[
|
|
636
|
-
zeroPosition: T(
|
|
637
|
-
individualMax: T(
|
|
638
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
699
|
+
x: T(sl),
|
|
700
|
+
y: i.value.bottom - P - H * Xe,
|
|
701
|
+
value: o.absoluteValues[oe],
|
|
702
|
+
zeroPosition: T(ae),
|
|
703
|
+
individualMax: T(q),
|
|
704
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[oe] || ""
|
|
639
705
|
};
|
|
640
|
-
}),
|
|
641
|
-
const
|
|
706
|
+
}), xe = o.absoluteValues.map((V) => L.min >= 0 ? (V - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (V + Math.abs(L.min)) / (L.max + Math.abs(L.min))), Ge = o.series.map((V, oe) => {
|
|
707
|
+
const Xe = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * oe : i.value.left - Q.value.bar / 2 + Q.value.bar * R + Q.value.bar * oe * Te.value.filter((sl) => sl.type === "bar").filter((sl) => !ue.value.includes(sl.id)).length;
|
|
642
708
|
return {
|
|
643
709
|
yOffset: T(P),
|
|
644
710
|
individualHeight: T(H),
|
|
645
|
-
x: T(
|
|
646
|
-
y: T(i.value.bottom - T(P) - (T(H) *
|
|
647
|
-
value: o.absoluteValues[
|
|
648
|
-
zeroPosition: T(
|
|
649
|
-
individualMax: T(
|
|
650
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
711
|
+
x: T(Xe),
|
|
712
|
+
y: T(i.value.bottom - T(P) - (T(H) * xe[oe] || 0)),
|
|
713
|
+
value: o.absoluteValues[oe],
|
|
714
|
+
zeroPosition: T(ae),
|
|
715
|
+
individualMax: T(q),
|
|
716
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[oe] || ""
|
|
651
717
|
};
|
|
652
|
-
}),
|
|
653
|
-
y: V >= 0 ?
|
|
718
|
+
}), G = N.ticks.map((V) => ({
|
|
719
|
+
y: V >= 0 ? ae - H * (V / q) : ae + H * Math.abs(V) / q,
|
|
654
720
|
value: V,
|
|
655
721
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
656
722
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
657
723
|
datapoint: o
|
|
658
|
-
})),
|
|
659
|
-
const
|
|
724
|
+
})), te = L.ticks.map((V) => {
|
|
725
|
+
const oe = (V - L.min) / (L.max - L.min);
|
|
660
726
|
return {
|
|
661
|
-
y: V >= 0 ?
|
|
727
|
+
y: V >= 0 ? pe - H * oe : pe + H * oe,
|
|
662
728
|
value: V,
|
|
663
729
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
664
730
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
665
731
|
datapoint: o
|
|
666
732
|
};
|
|
667
733
|
});
|
|
668
|
-
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
734
|
+
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? te : G, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : ae, p.value[o.scaleLabel].individualMax = o.autoScaling ? we : q, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = te, p.value[o.scaleLabel].unique = ol.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1, {
|
|
669
735
|
...o,
|
|
670
736
|
yOffset: P,
|
|
671
|
-
autoScaleYLabels:
|
|
737
|
+
autoScaleYLabels: te,
|
|
672
738
|
individualHeight: H,
|
|
673
|
-
scaleYLabels: o.autoScaling ?
|
|
739
|
+
scaleYLabels: o.autoScaling ? te : G,
|
|
674
740
|
individualScale: o.autoScaling ? L : N,
|
|
675
|
-
individualMax: o.autoScaling ?
|
|
676
|
-
zeroPosition: o.autoScaling ?
|
|
677
|
-
plots: o.autoScaling ?
|
|
741
|
+
individualMax: o.autoScaling ? we : q,
|
|
742
|
+
zeroPosition: o.autoScaling ? pe : ae,
|
|
743
|
+
plots: o.autoScaling ? Ge : $l,
|
|
678
744
|
groupId: p.value[o.scaleLabel].groupId
|
|
679
745
|
};
|
|
680
746
|
});
|
|
681
|
-
}),
|
|
682
|
-
const a =
|
|
747
|
+
}), ze = A(() => {
|
|
748
|
+
const a = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
|
|
683
749
|
return a.filter((o) => o.type === "line").map((o, R) => {
|
|
684
|
-
|
|
685
|
-
const F = p.value[o.scaleLabel].min,
|
|
686
|
-
o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (
|
|
750
|
+
ha(o);
|
|
751
|
+
const F = p.value[o.scaleLabel].min, ee = p.value[o.scaleLabel].max;
|
|
752
|
+
o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (ee - F));
|
|
687
753
|
const $ = {
|
|
688
754
|
valueMin: F,
|
|
689
|
-
valueMax:
|
|
755
|
+
valueMax: ee
|
|
690
756
|
}, z = {
|
|
691
757
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
692
758
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
693
|
-
},
|
|
694
|
-
const Vt = f.value.useIndividualScale ? (o.absoluteValues[
|
|
759
|
+
}, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(z.min, z.max === z.min ? z.max * k : z.max, W) : nl(z.min, z.max === z.min ? z.max * k : z.max, W), L = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, W) : nl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * k : $.valueMax, W), le = N.min >= 0 ? 0 : Math.abs(N.min), de = 0, q = N.max + Math.abs(le), we = L.max + Math.abs(de), Ne = o.stackIndex, fl = c - 1 - Ne, ye = s ? 1 - o.cumulatedStackRatio : 0, P = s ? n * ye + e * fl : 0, H = s ? n * o.stackRatio : i.value.height, ae = i.value.bottom - P - H * le / q, pe = i.value.bottom - P - H * de / we, he = o.series.map((I, ie) => {
|
|
760
|
+
const Vt = f.value.useIndividualScale ? (o.absoluteValues[ie] + Math.abs(le)) / q : tl(I);
|
|
695
761
|
return {
|
|
696
|
-
x: T(i.value.left +
|
|
762
|
+
x: T(i.value.left + Q.value.line / 2 + Q.value.line * ie),
|
|
697
763
|
y: T(i.value.bottom - P - H * Vt),
|
|
698
|
-
value: o.absoluteValues[
|
|
699
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
764
|
+
value: o.absoluteValues[ie],
|
|
765
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ie] || ""
|
|
700
766
|
};
|
|
701
|
-
}),
|
|
702
|
-
x: T(i.value.left +
|
|
703
|
-
y:
|
|
704
|
-
value: o.absoluteValues[
|
|
705
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
767
|
+
}), $l = o.absoluteValues.map((I) => L.min >= 0 ? (I - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (I + Math.abs(L.min)) / (L.max + Math.abs(L.min))), xe = o.series.map((I, ie) => [void 0, null].includes(o.absoluteValues[ie]) ? {
|
|
768
|
+
x: T(i.value.left + Q.value.line / 2 + Q.value.line * ie),
|
|
769
|
+
y: ae,
|
|
770
|
+
value: o.absoluteValues[ie],
|
|
771
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ie] || ""
|
|
706
772
|
} : {
|
|
707
|
-
x: T(i.value.left +
|
|
708
|
-
y: T(i.value.bottom - P - (H *
|
|
709
|
-
value: o.absoluteValues[
|
|
710
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
711
|
-
}),
|
|
712
|
-
y: I >= 0 ?
|
|
773
|
+
x: T(i.value.left + Q.value.line / 2 + Q.value.line * ie),
|
|
774
|
+
y: T(i.value.bottom - P - (H * $l[ie] || 0)),
|
|
775
|
+
value: o.absoluteValues[ie],
|
|
776
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[ie] || ""
|
|
777
|
+
}), Ge = l.value.line.cutNullValues ? at(he) : tt(he.filter((I) => I.value !== null)), G = l.value.line.cutNullValues ? at(xe) : tt(xe.filter((I) => I.value !== null)), te = l.value.line.cutNullValues ? ot(he) : st(he.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? ot(xe) : st(xe.filter((I) => I.value !== null)), oe = N.ticks.map((I) => ({
|
|
778
|
+
y: I >= 0 ? ae - H * (I / q) : ae + H * Math.abs(I) / q,
|
|
713
779
|
value: I,
|
|
714
780
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
715
781
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
716
782
|
datapoint: o
|
|
717
|
-
})),
|
|
718
|
-
const
|
|
783
|
+
})), Xe = L.ticks.map((I) => {
|
|
784
|
+
const ie = (I - L.min) / (L.max - L.min);
|
|
719
785
|
return {
|
|
720
|
-
y: I >= 0 ?
|
|
786
|
+
y: I >= 0 ? pe - H * ie : pe + H * ie,
|
|
721
787
|
value: I,
|
|
722
788
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
723
789
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
724
790
|
datapoint: o
|
|
725
791
|
};
|
|
726
792
|
});
|
|
727
|
-
p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
728
|
-
const
|
|
793
|
+
p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Xe : oe, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : ae, p.value[o.scaleLabel].individualMax = o.autoScaling ? we : q, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Xe, p.value[o.scaleLabel].unique = ol.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
|
|
794
|
+
const sl = f.value.useIndividualScale ? o.autoScaling ? pe : ae : ve.value, Ll = Math.max(Math.max(o.autoScaling ? pe : oe.at(-1) ? oe.at(-1).y : 0, i.value.top), sl);
|
|
729
795
|
return {
|
|
730
796
|
...o,
|
|
731
797
|
yOffset: P,
|
|
732
|
-
autoScaleYLabels:
|
|
798
|
+
autoScaleYLabels: Xe,
|
|
733
799
|
individualHeight: H,
|
|
734
|
-
scaleYLabels: o.autoScaling ?
|
|
800
|
+
scaleYLabels: o.autoScaling ? Xe : oe,
|
|
735
801
|
individualScale: o.autoScaling ? L : N,
|
|
736
|
-
individualMax: o.autoScaling ?
|
|
737
|
-
zeroPosition: o.autoScaling ?
|
|
738
|
-
curve: o.autoScaling ?
|
|
739
|
-
plots: o.autoScaling ?
|
|
740
|
-
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ?
|
|
741
|
-
o.autoScaling ?
|
|
742
|
-
|
|
743
|
-
) :
|
|
744
|
-
o.autoScaling ?
|
|
745
|
-
|
|
746
|
-
) : l.value.line.cutNullValues ?
|
|
802
|
+
individualMax: o.autoScaling ? we : q,
|
|
803
|
+
zeroPosition: o.autoScaling ? pe : ae,
|
|
804
|
+
curve: o.autoScaling ? G : Ge,
|
|
805
|
+
plots: o.autoScaling ? xe : he,
|
|
806
|
+
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? ut(
|
|
807
|
+
o.autoScaling ? xe : he,
|
|
808
|
+
Ll
|
|
809
|
+
) : rt(
|
|
810
|
+
o.autoScaling ? xe.filter((I) => I.value !== null) : he.filter((I) => I.value !== null),
|
|
811
|
+
Ll
|
|
812
|
+
) : l.value.line.cutNullValues ? ut(he, Ll) : rt(he.filter((I) => I.value !== null), Ll) : "",
|
|
747
813
|
curveAreas: o.useArea ? Zt(
|
|
748
|
-
o.autoScaling ? l.value.line.cutNullValues ?
|
|
749
|
-
|
|
814
|
+
o.autoScaling ? l.value.line.cutNullValues ? xe : xe.filter((I) => I.value !== null) : l.value.line.cutNullValues ? he : he.filter((I) => I.value !== null),
|
|
815
|
+
Ll,
|
|
750
816
|
l.value.line.cutNullValues
|
|
751
817
|
) : [],
|
|
752
|
-
straight: o.autoScaling ? V :
|
|
818
|
+
straight: o.autoScaling ? V : te,
|
|
753
819
|
groupId: p.value[o.scaleLabel].groupId
|
|
754
820
|
};
|
|
755
821
|
});
|
|
756
|
-
}),
|
|
757
|
-
const a =
|
|
822
|
+
}), Oe = A(() => {
|
|
823
|
+
const a = ol.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, n = i.value.height - t;
|
|
758
824
|
return a.filter((o) => o.type === "plot").map((o) => {
|
|
759
|
-
|
|
825
|
+
ha(o);
|
|
760
826
|
const R = p.value[o.scaleLabel].min, F = p.value[o.scaleLabel].max;
|
|
761
|
-
o.absoluteValues.filter((
|
|
762
|
-
const
|
|
827
|
+
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - R) / (F - R));
|
|
828
|
+
const ee = {
|
|
763
829
|
valueMin: R,
|
|
764
830
|
valueMax: F
|
|
765
831
|
}, $ = {
|
|
766
832
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
767
833
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
768
|
-
}, z = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
769
|
-
const V = f.value.useIndividualScale ? (o.absoluteValues[
|
|
834
|
+
}, z = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, W = 1.0000001, k = nl($.min, $.max === $.min ? $.max * W : $.max, z), N = nl(ee.valueMin, ee.valueMax === ee.valueMin ? ee.valueMax * W : ee.valueMax, z), L = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, de = k.max + L, q = N.max + Math.abs(le), we = o.stackIndex, Ne = c - 1 - we, fl = s ? 1 - o.cumulatedStackRatio : 0, ye = s ? n * fl + e * Ne : 0, P = s ? n * o.stackRatio : i.value.height, H = i.value.bottom - ye - P * L / de, ae = i.value.bottom - ye - P * le / q, pe = o.series.map((G, te) => {
|
|
835
|
+
const V = f.value.useIndividualScale ? (o.absoluteValues[te] + Math.abs(L)) / de : tl(G);
|
|
770
836
|
return {
|
|
771
|
-
x: T(i.value.left +
|
|
772
|
-
y: T(i.value.bottom -
|
|
773
|
-
value: o.absoluteValues[
|
|
774
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
837
|
+
x: T(i.value.left + Q.value.plot / 2 + Q.value.plot * te),
|
|
838
|
+
y: T(i.value.bottom - ye - P * V),
|
|
839
|
+
value: o.absoluteValues[te],
|
|
840
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
|
|
775
841
|
};
|
|
776
|
-
}),
|
|
777
|
-
x: T(i.value.left +
|
|
778
|
-
y: T(i.value.bottom -
|
|
779
|
-
value: o.absoluteValues[
|
|
780
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
781
|
-
})),
|
|
782
|
-
y:
|
|
783
|
-
value:
|
|
842
|
+
}), he = o.absoluteValues.map((G) => N.min >= 0 ? (G - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (G + Math.abs(N.min)) / (N.max + Math.abs(N.min))), $l = o.series.map((G, te) => ({
|
|
843
|
+
x: T(i.value.left + Q.value.plot / 2 + Q.value.plot * te),
|
|
844
|
+
y: T(i.value.bottom - ye - (P * he[te] || 0)),
|
|
845
|
+
value: o.absoluteValues[te],
|
|
846
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[te] || ""
|
|
847
|
+
})), xe = k.ticks.map((G) => ({
|
|
848
|
+
y: G >= 0 ? H - P * (G / de) : H + P * Math.abs(G) / de,
|
|
849
|
+
value: G,
|
|
784
850
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
785
851
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
786
852
|
datapoint: o
|
|
787
|
-
})),
|
|
788
|
-
const
|
|
853
|
+
})), Ge = N.ticks.map((G) => {
|
|
854
|
+
const te = (G - N.min) / (N.max - N.min);
|
|
789
855
|
return {
|
|
790
|
-
y:
|
|
791
|
-
value:
|
|
856
|
+
y: G >= 0 ? ae - P * te : ae + P * te,
|
|
857
|
+
value: G,
|
|
792
858
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
793
859
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
794
860
|
datapoint: o
|
|
795
861
|
};
|
|
796
862
|
});
|
|
797
|
-
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
863
|
+
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ge : xe, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? ae : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? q : de, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = ye, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = Ge, p.value[o.scaleLabel].unique = ol.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1, {
|
|
798
864
|
...o,
|
|
799
|
-
yOffset:
|
|
800
|
-
autoScaleYLabels:
|
|
865
|
+
yOffset: ye,
|
|
866
|
+
autoScaleYLabels: Ge,
|
|
801
867
|
individualHeight: P,
|
|
802
|
-
scaleYLabels: o.autoScaling ?
|
|
868
|
+
scaleYLabels: o.autoScaling ? Ge : xe,
|
|
803
869
|
individualScale: o.autoScaling ? N : k,
|
|
804
|
-
individualMax: o.autoScaling ?
|
|
805
|
-
zeroPosition: o.autoScaling ?
|
|
806
|
-
plots: o.autoScaling ?
|
|
870
|
+
individualMax: o.autoScaling ? q : de,
|
|
871
|
+
zeroPosition: o.autoScaling ? ae : H,
|
|
872
|
+
plots: o.autoScaling ? $l : pe,
|
|
807
873
|
groupId: p.value[o.scaleLabel].groupId
|
|
808
874
|
};
|
|
809
875
|
});
|
|
810
|
-
}),
|
|
811
|
-
const a =
|
|
876
|
+
}), wl = A(() => {
|
|
877
|
+
const a = ze.value.map((n) => ({
|
|
812
878
|
name: n.name,
|
|
813
879
|
color: n.color,
|
|
814
880
|
scale: n.individualScale,
|
|
@@ -820,7 +886,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
820
886
|
yOffset: n.yOffset || 0,
|
|
821
887
|
individualHeight: n.individualHeight || i.value.height,
|
|
822
888
|
autoScaleYLabels: n.autoScaleYLabels
|
|
823
|
-
})), c =
|
|
889
|
+
})), c = We.value.map((n) => ({
|
|
824
890
|
name: n.name,
|
|
825
891
|
color: n.color,
|
|
826
892
|
scale: n.individualScale,
|
|
@@ -831,7 +897,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
831
897
|
id: n.id,
|
|
832
898
|
yOffset: n.yOffset || 0,
|
|
833
899
|
individualHeight: n.individualHeight || i.value.height
|
|
834
|
-
})), e =
|
|
900
|
+
})), e = Oe.value.map((n) => ({
|
|
835
901
|
name: n.name,
|
|
836
902
|
color: n.color,
|
|
837
903
|
scale: n.individualScale,
|
|
@@ -863,44 +929,44 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
863
929
|
}))
|
|
864
930
|
};
|
|
865
931
|
});
|
|
866
|
-
}),
|
|
867
|
-
datapoint:
|
|
932
|
+
}), Xa = A(() => ({
|
|
933
|
+
datapoint: _l.value,
|
|
868
934
|
seriesIndex: _.value,
|
|
869
|
-
series:
|
|
870
|
-
bars:
|
|
871
|
-
lines:
|
|
872
|
-
plots:
|
|
935
|
+
series: Te.value,
|
|
936
|
+
bars: We.value,
|
|
937
|
+
lines: ze.value,
|
|
938
|
+
plots: Oe.value,
|
|
873
939
|
config: l.value
|
|
874
940
|
})), Nt = A(() => {
|
|
875
|
-
let a = "", c =
|
|
876
|
-
const e =
|
|
941
|
+
let a = "", c = _l.value.map((t) => t.value).filter((t) => Gl(t) && t !== null).reduce((t, n) => Math.abs(t) + Math.abs(n), 0);
|
|
942
|
+
const e = ge.value[_.value], s = l.value.chart.tooltip.customFormat;
|
|
877
943
|
return Jt(s) && Kt(() => s({
|
|
878
944
|
absoluteIndex: _.value + S.value.start,
|
|
879
945
|
seriesIndex: _.value,
|
|
880
|
-
datapoint:
|
|
881
|
-
series:
|
|
882
|
-
bars:
|
|
883
|
-
lines:
|
|
884
|
-
plots:
|
|
946
|
+
datapoint: _l.value,
|
|
947
|
+
series: Te.value,
|
|
948
|
+
bars: We.value,
|
|
949
|
+
lines: ze.value,
|
|
950
|
+
plots: Oe.value,
|
|
885
951
|
config: l.value
|
|
886
952
|
})) ? s({
|
|
887
953
|
absoluteIndex: _.value + S.value.start,
|
|
888
954
|
seriesIndex: _.value,
|
|
889
|
-
datapoint:
|
|
890
|
-
series:
|
|
891
|
-
bars:
|
|
892
|
-
lines:
|
|
893
|
-
plots:
|
|
955
|
+
datapoint: _l.value,
|
|
956
|
+
series: Te.value,
|
|
957
|
+
bars: We.value,
|
|
958
|
+
lines: ze.value,
|
|
959
|
+
plots: Oe.value,
|
|
894
960
|
config: l.value
|
|
895
|
-
}) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`),
|
|
896
|
-
if (
|
|
961
|
+
}) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), _l.value.forEach((t) => {
|
|
962
|
+
if (Gl(t.value)) {
|
|
897
963
|
let n = "", o = "";
|
|
898
|
-
switch (
|
|
964
|
+
switch (yl.value[t.type]) {
|
|
899
965
|
case "bar":
|
|
900
|
-
n = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
966
|
+
n = `<svg viewBox="0 0 40 40" height="14" width="14">${Tl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Tl.pattern ? `url(#pattern_${J.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
901
967
|
break;
|
|
902
968
|
case "line":
|
|
903
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${
|
|
969
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Pe({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${it({ 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="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
|
|
904
970
|
break;
|
|
905
971
|
case "plot":
|
|
906
972
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -908,41 +974,41 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
908
974
|
break;
|
|
909
975
|
}
|
|
910
976
|
if (t.shape === "star") {
|
|
911
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${
|
|
977
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${it({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
912
978
|
break;
|
|
913
979
|
}
|
|
914
980
|
if (t.shape === "triangle") {
|
|
915
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
981
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
916
982
|
break;
|
|
917
983
|
}
|
|
918
984
|
if (t.shape === "square") {
|
|
919
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
985
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
920
986
|
break;
|
|
921
987
|
}
|
|
922
988
|
if (t.shape === "diamond") {
|
|
923
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
989
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
924
990
|
break;
|
|
925
991
|
}
|
|
926
992
|
if (t.shape === "pentagon") {
|
|
927
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
993
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
928
994
|
break;
|
|
929
995
|
}
|
|
930
996
|
if (t.shape === "hexagon") {
|
|
931
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
997
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Pe({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
932
998
|
break;
|
|
933
999
|
}
|
|
934
1000
|
}
|
|
935
|
-
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ?
|
|
1001
|
+
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? fe(
|
|
936
1002
|
t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
937
1003
|
t.value,
|
|
938
|
-
|
|
1004
|
+
Se({
|
|
939
1005
|
p: t.prefix,
|
|
940
1006
|
v: t.value,
|
|
941
1007
|
s: t.suffix,
|
|
942
1008
|
r: l.value.chart.tooltip.roundingValue
|
|
943
1009
|
}),
|
|
944
1010
|
{ datapoint: t }
|
|
945
|
-
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${
|
|
1011
|
+
) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Se({
|
|
946
1012
|
v: T(Math.abs(t.value) / c * 100),
|
|
947
1013
|
s: "%",
|
|
948
1014
|
r: l.value.chart.tooltip.roundingPercentage
|
|
@@ -951,34 +1017,34 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
951
1017
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
|
|
952
1018
|
});
|
|
953
1019
|
A(() => {
|
|
954
|
-
if (
|
|
955
|
-
const a =
|
|
1020
|
+
if (Ye.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1021
|
+
const a = Ae.value.map((e) => ({
|
|
956
1022
|
label: e.name,
|
|
957
1023
|
color: e.color,
|
|
958
1024
|
type: e.type
|
|
959
1025
|
})), c = [];
|
|
960
|
-
return
|
|
1026
|
+
return ge.value.forEach((e, s) => {
|
|
961
1027
|
const t = [e.text];
|
|
962
|
-
|
|
963
|
-
t.push(
|
|
1028
|
+
Ae.value.forEach((n) => {
|
|
1029
|
+
t.push(_e(n.absoluteValues[s]) ? Number(n.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
|
|
964
1030
|
}), c.push(t);
|
|
965
1031
|
}), { head: a, body: c };
|
|
966
1032
|
});
|
|
967
|
-
const
|
|
1033
|
+
const El = A(() => {
|
|
968
1034
|
const a = l.value.table.showSum;
|
|
969
|
-
let c = [""].concat(
|
|
1035
|
+
let c = [""].concat(Ae.value.map((n) => n.name));
|
|
970
1036
|
a && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
971
1037
|
let e = [];
|
|
972
1038
|
for (let n = 0; n < b.value; n += 1) {
|
|
973
|
-
const o =
|
|
1039
|
+
const o = Ae.value.map((R) => R.absoluteValues[n] ?? 0).reduce((R, F) => R + F, 0);
|
|
974
1040
|
e.push(
|
|
975
1041
|
[
|
|
976
|
-
|
|
977
|
-
].concat(
|
|
978
|
-
(R) =>
|
|
1042
|
+
ge.value[n].text ?? "-"
|
|
1043
|
+
].concat(Ae.value.map(
|
|
1044
|
+
(R) => fe(
|
|
979
1045
|
R.type === "line" ? l.value.line.labels.formatter : R.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
980
1046
|
R.absoluteValues[n] ?? 0,
|
|
981
|
-
|
|
1047
|
+
Se({
|
|
982
1048
|
p: R.prefix || l.value.chart.labels.prefix,
|
|
983
1049
|
v: R.absoluteValues[n] ?? 0,
|
|
984
1050
|
s: R.suffix || l.value.chart.labels.suffix,
|
|
@@ -1000,92 +1066,92 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1000
1066
|
outline: l.value.table.td.outline
|
|
1001
1067
|
},
|
|
1002
1068
|
breakpoint: l.value.table.responsiveBreakpoint
|
|
1003
|
-
}, t = [l.value.table.columnNames.period].concat(
|
|
1069
|
+
}, t = [l.value.table.columnNames.period].concat(Ae.value.map((n) => n.name)).concat(l.value.table.columnNames.total);
|
|
1004
1070
|
return { head: c, body: e, config: s, colNames: t };
|
|
1005
1071
|
});
|
|
1006
|
-
function
|
|
1072
|
+
function Da(a = null) {
|
|
1007
1073
|
const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = c.concat([e]).concat(s), n = ao(t);
|
|
1008
1074
|
a ? a(n) : to({ csvContent: n, title: l.value.chart.title.text || "vue-ui-xy" });
|
|
1009
1075
|
}
|
|
1010
|
-
function
|
|
1011
|
-
|
|
1076
|
+
function Ua(a, c = null) {
|
|
1077
|
+
ka.value = a, a ? _.value = c : _.value = null;
|
|
1012
1078
|
}
|
|
1013
|
-
function
|
|
1079
|
+
function qa() {
|
|
1014
1080
|
f.value.showTable = !f.value.showTable;
|
|
1015
1081
|
}
|
|
1016
|
-
function
|
|
1082
|
+
function Za() {
|
|
1017
1083
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1018
1084
|
}
|
|
1019
|
-
function
|
|
1085
|
+
function Ja() {
|
|
1020
1086
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1021
1087
|
}
|
|
1022
|
-
function
|
|
1023
|
-
|
|
1088
|
+
function Ka(a) {
|
|
1089
|
+
hl.value = a, _a.value += 1;
|
|
1024
1090
|
}
|
|
1025
|
-
function
|
|
1091
|
+
function Qa() {
|
|
1026
1092
|
if (!l.value.responsiveProportionalSizing) {
|
|
1027
|
-
x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize,
|
|
1093
|
+
x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, Ie.value.plot = l.value.plot.radius, Ie.value.line = l.value.line.radius;
|
|
1028
1094
|
return;
|
|
1029
1095
|
}
|
|
1030
|
-
x.value.dataLabels =
|
|
1031
|
-
relator:
|
|
1096
|
+
x.value.dataLabels = xl({
|
|
1097
|
+
relator: ce.value,
|
|
1032
1098
|
adjuster: 400,
|
|
1033
1099
|
source: l.value.chart.grid.labels.fontSize,
|
|
1034
1100
|
threshold: 10,
|
|
1035
1101
|
fallback: 10
|
|
1036
|
-
}), x.value.yAxis =
|
|
1037
|
-
relator:
|
|
1102
|
+
}), x.value.yAxis = xl({
|
|
1103
|
+
relator: K.value,
|
|
1038
1104
|
adjuster: 1e3,
|
|
1039
1105
|
source: l.value.chart.grid.labels.axis.fontSize,
|
|
1040
1106
|
threshold: 10,
|
|
1041
1107
|
fallback: 10
|
|
1042
|
-
}), x.value.xAxis =
|
|
1043
|
-
relator:
|
|
1108
|
+
}), x.value.xAxis = xl({
|
|
1109
|
+
relator: K.value,
|
|
1044
1110
|
adjuster: 1e3,
|
|
1045
1111
|
source: l.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1046
1112
|
threshold: 10,
|
|
1047
1113
|
fallback: 10
|
|
1048
|
-
}), x.value.plotLabels =
|
|
1049
|
-
relator:
|
|
1114
|
+
}), x.value.plotLabels = xl({
|
|
1115
|
+
relator: K.value,
|
|
1050
1116
|
adjuster: 800,
|
|
1051
1117
|
source: l.value.chart.labels.fontSize,
|
|
1052
1118
|
threshold: 10,
|
|
1053
1119
|
fallback: 10
|
|
1054
|
-
}),
|
|
1055
|
-
relator:
|
|
1120
|
+
}), Ie.value.plot = xl({
|
|
1121
|
+
relator: K.value,
|
|
1056
1122
|
adjuster: 800,
|
|
1057
1123
|
source: l.value.plot.radius,
|
|
1058
1124
|
threshold: 1,
|
|
1059
1125
|
fallback: 1
|
|
1060
|
-
}),
|
|
1061
|
-
relator:
|
|
1126
|
+
}), Ie.value.line = xl({
|
|
1127
|
+
relator: K.value,
|
|
1062
1128
|
adjuster: 800,
|
|
1063
1129
|
source: l.value.line.radius,
|
|
1064
1130
|
threshold: 1,
|
|
1065
1131
|
fallback: 1
|
|
1066
1132
|
});
|
|
1067
1133
|
}
|
|
1068
|
-
const
|
|
1069
|
-
function
|
|
1070
|
-
|
|
1134
|
+
const Sl = A(() => !!l.value.debug);
|
|
1135
|
+
function ja() {
|
|
1136
|
+
nt(m.dataset) ? (ma({
|
|
1071
1137
|
componentName: "VueUiXy",
|
|
1072
1138
|
type: "dataset",
|
|
1073
|
-
debug:
|
|
1074
|
-
}),
|
|
1075
|
-
[null, void 0].includes(c.name) && (
|
|
1139
|
+
debug: Sl.value
|
|
1140
|
+
}), Hl.value = !0) : m.dataset.forEach((c, e) => {
|
|
1141
|
+
[null, void 0].includes(c.name) && (ma({
|
|
1076
1142
|
componentName: "VueUiXy",
|
|
1077
1143
|
type: "datasetSerieAttribute",
|
|
1078
1144
|
property: "name (string)",
|
|
1079
1145
|
index: e,
|
|
1080
|
-
debug:
|
|
1081
|
-
}),
|
|
1082
|
-
}),
|
|
1146
|
+
debug: Sl.value
|
|
1147
|
+
}), Hl.value = !0);
|
|
1148
|
+
}), Sl.value && m.dataset.forEach((c) => {
|
|
1083
1149
|
c.series.forEach((e, s) => {
|
|
1084
|
-
|
|
1150
|
+
Gl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1085
1151
|
-----> The serie '${c.name}' contains the value '${e}' at index ${s}.
|
|
1086
1152
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1087
1153
|
});
|
|
1088
|
-
}),
|
|
1154
|
+
}), nt(m.dataset) || (Hl.value = l.value.loading), $a.value = l.value.chart.userOptions.showOnChartHover, oa.value = l.value.chart.userOptions.keepStateOnChartLeave, Vl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
|
|
1089
1155
|
dataLabels: {
|
|
1090
1156
|
show: !0
|
|
1091
1157
|
},
|
|
@@ -1096,67 +1162,77 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1096
1162
|
};
|
|
1097
1163
|
const a = X.value ? 0 : 12;
|
|
1098
1164
|
if (l.value.responsive) {
|
|
1099
|
-
const e =
|
|
1100
|
-
|
|
1165
|
+
const e = E.value.parentNode;
|
|
1166
|
+
je.value && (je.value.unobserve(la.value), je.value.disconnect());
|
|
1101
1167
|
const { height: s, width: t } = e.getBoundingClientRect();
|
|
1102
1168
|
let n = null, o = 0;
|
|
1103
|
-
l.value.chart.title.show &&
|
|
1169
|
+
l.value.chart.title.show && j.value && (n = j.value, o = n.getBoundingClientRect().height);
|
|
1104
1170
|
let R = null, F = 0;
|
|
1105
|
-
l.value.chart.zoom.show &&
|
|
1106
|
-
let
|
|
1107
|
-
l.value.chart.legend.show &&
|
|
1171
|
+
l.value.chart.zoom.show && Ee.value > 6 && ua.value && U.value && U.value.$el && (R = U.value.$el, F = R.getBoundingClientRect().height);
|
|
1172
|
+
let ee = null, $ = 0;
|
|
1173
|
+
l.value.chart.legend.show && ke.value && (ee = ke.value, $ = ee.getBoundingClientRect().height);
|
|
1108
1174
|
let z = 0;
|
|
1109
|
-
|
|
1110
|
-
let
|
|
1111
|
-
|
|
1175
|
+
He.value && (z = He.value.getBoundingClientRect().height);
|
|
1176
|
+
let W = 0;
|
|
1177
|
+
me.value && (W = me.value.getBoundingClientRect().height), ce.value = s - o - $ - F - z - W - a, K.value = t, X.value ? al() : el.value = `0 0 ${K.value < 0 ? 10 : K.value} ${ce.value < 0 ? 10 : ce.value}`, Qa();
|
|
1112
1178
|
const k = new ResizeObserver((N) => {
|
|
1113
1179
|
for (const L of N)
|
|
1114
|
-
l.value.chart.title.show &&
|
|
1115
|
-
|
|
1180
|
+
l.value.chart.title.show && j.value ? o = j.value.getBoundingClientRect().height : o = 0, U.value && U.value.$el ? F = U.value.$el.getBoundingClientRect().height : F = 0, ke.value ? $ = ke.value.getBoundingClientRect().height : $ = 0, He.value ? z = He.value.getBoundingClientRect().height : z = 0, me.value ? W = me.value.getBoundingClientRect().height : W = 0, X.value && E.value.classList.add("no-transition"), requestAnimationFrame(() => {
|
|
1181
|
+
ce.value = L.contentRect.height - o - $ - F - z - W - (X.value ? 48 : a), X.value ? (La.value = L.contentRect.height - ce.value, K.value = L.contentBoxSize[0].inlineSize, vt.value = K.value / La.value, al()) : (K.value = L.contentBoxSize[0].inlineSize, el.value = `0 0 ${K.value < 0 ? 10 : K.value} ${ce.value < 0 ? 10 : ce.value}`), Qa();
|
|
1116
1182
|
});
|
|
1117
1183
|
});
|
|
1118
|
-
|
|
1184
|
+
je.value = k, la.value = e, k.observe(e);
|
|
1119
1185
|
} else
|
|
1120
|
-
|
|
1186
|
+
ce.value = l.value.chart.height, K.value = l.value.chart.width, x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, Ie.value.plot = l.value.plot.radius, Ie.value.line = l.value.line.radius, X.value ? al() : el.value = `0 0 ${K.value} ${ce.value}`;
|
|
1121
1187
|
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1188
|
+
ga(() => {
|
|
1189
|
+
ja(), fa(), document.addEventListener("mousemove", (a) => {
|
|
1124
1190
|
ct.value = {
|
|
1125
1191
|
x: a.clientX,
|
|
1126
1192
|
y: a.clientY
|
|
1127
1193
|
};
|
|
1128
|
-
}), document.addEventListener("scroll",
|
|
1129
|
-
}),
|
|
1130
|
-
document.removeEventListener("scroll",
|
|
1131
|
-
}),
|
|
1132
|
-
X.value && (await
|
|
1194
|
+
}), document.addEventListener("scroll", Ta);
|
|
1195
|
+
}), lt(() => {
|
|
1196
|
+
document.removeEventListener("scroll", Ta), je.value && (je.value.unobserve(la.value), je.value.disconnect());
|
|
1197
|
+
}), zl(() => f.value.isStacked, async () => {
|
|
1198
|
+
X.value && (await be(), al(), Yl());
|
|
1199
|
+
}), ho({
|
|
1200
|
+
timeLabelsEls: Ol,
|
|
1201
|
+
timeLabels: ge,
|
|
1202
|
+
slicer: S,
|
|
1203
|
+
configRef: l,
|
|
1204
|
+
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1205
|
+
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
|
|
1206
|
+
isAutoSize: X,
|
|
1207
|
+
setViewBox: al,
|
|
1208
|
+
forceResizeObserver: Yl
|
|
1133
1209
|
});
|
|
1134
|
-
let
|
|
1135
|
-
async function
|
|
1136
|
-
await
|
|
1210
|
+
let Wl;
|
|
1211
|
+
async function et() {
|
|
1212
|
+
await be(), al(), Yl(), Wl.disconnect();
|
|
1137
1213
|
}
|
|
1138
|
-
return
|
|
1139
|
-
|
|
1214
|
+
return ga(() => {
|
|
1215
|
+
E.value && (Wl = new ResizeObserver((a) => {
|
|
1140
1216
|
for (const c of a) {
|
|
1141
1217
|
const { width: e, height: s } = c.contentRect;
|
|
1142
1218
|
if (e > 0 && s > 0) {
|
|
1143
|
-
|
|
1219
|
+
et();
|
|
1144
1220
|
break;
|
|
1145
1221
|
}
|
|
1146
1222
|
}
|
|
1147
|
-
}),
|
|
1148
|
-
}),
|
|
1149
|
-
|
|
1150
|
-
}),
|
|
1151
|
-
Array.isArray(a) && a.length > 0 && (
|
|
1223
|
+
}), Wl.observe(E.value.parentElement));
|
|
1224
|
+
}), lt(() => {
|
|
1225
|
+
Wl?.disconnect();
|
|
1226
|
+
}), zl(() => m.dataset, (a) => {
|
|
1227
|
+
Array.isArray(a) && a.length > 0 && (Hl.value = !1), Ee.value = Math.max(...Re.value.map((c) => Ue({
|
|
1152
1228
|
data: c.series,
|
|
1153
1229
|
threshold: l.value.downsample.threshold
|
|
1154
1230
|
}).length)), S.value = {
|
|
1155
1231
|
start: 0,
|
|
1156
|
-
end:
|
|
1157
|
-
},
|
|
1158
|
-
}, { deep: !0 }),
|
|
1159
|
-
|
|
1232
|
+
end: Ee.value
|
|
1233
|
+
}, aa.value += 1, ta.value += 1, et();
|
|
1234
|
+
}, { deep: !0 }), zl(() => m.config, (a) => {
|
|
1235
|
+
ra.value || (l.value = sa()), ja(), Sa.value += 1, wa.value += 1, f.value = {
|
|
1160
1236
|
dataLabels: {
|
|
1161
1237
|
show: !0
|
|
1162
1238
|
},
|
|
@@ -1165,7 +1241,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1165
1241
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1166
1242
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1167
1243
|
};
|
|
1168
|
-
}, { deep: !0 }),
|
|
1244
|
+
}, { deep: !0 }), zl(l, () => {
|
|
1169
1245
|
f.value = {
|
|
1170
1246
|
dataLabels: {
|
|
1171
1247
|
show: !0
|
|
@@ -1175,51 +1251,51 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1175
1251
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1176
1252
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1177
1253
|
};
|
|
1178
|
-
}, { immediate: !0 }),
|
|
1254
|
+
}, { immediate: !0 }), Ul({
|
|
1179
1255
|
getData: St,
|
|
1180
1256
|
getImage: $t,
|
|
1181
|
-
generatePdf:
|
|
1182
|
-
generateImage:
|
|
1183
|
-
generateCsv:
|
|
1184
|
-
toggleStack:
|
|
1185
|
-
toggleTable:
|
|
1186
|
-
toggleLabels:
|
|
1187
|
-
toggleTooltip:
|
|
1188
|
-
toggleAnnotator:
|
|
1189
|
-
toggleFullscreen:
|
|
1257
|
+
generatePdf: Ma,
|
|
1258
|
+
generateImage: za,
|
|
1259
|
+
generateCsv: Da,
|
|
1260
|
+
toggleStack: Va,
|
|
1261
|
+
toggleTable: qa,
|
|
1262
|
+
toggleLabels: Za,
|
|
1263
|
+
toggleTooltip: Ja,
|
|
1264
|
+
toggleAnnotator: da,
|
|
1265
|
+
toggleFullscreen: Ka
|
|
1190
1266
|
}), (a, c) => (u(), r("div", {
|
|
1191
|
-
id: `vue-ui-xy_${
|
|
1192
|
-
class:
|
|
1267
|
+
id: `vue-ui-xy_${J.value}`,
|
|
1268
|
+
class: ul(`vue-ui-xy ${hl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1193
1269
|
ref_key: "chart",
|
|
1194
|
-
ref:
|
|
1270
|
+
ref: E,
|
|
1195
1271
|
style: C(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1196
|
-
onMouseenter: c[7] || (c[7] = () =>
|
|
1197
|
-
onMouseleave: c[8] || (c[8] = () =>
|
|
1272
|
+
onMouseenter: c[7] || (c[7] = () => Oa(!0)),
|
|
1273
|
+
onMouseleave: c[8] || (c[8] = () => Oa(!1))
|
|
1198
1274
|
}, [
|
|
1199
|
-
l.value.chart.userOptions.buttons.annotator &&
|
|
1275
|
+
l.value.chart.userOptions.buttons.annotator && $e.value ? (u(), Ve(v(Ql), {
|
|
1200
1276
|
key: 0,
|
|
1201
|
-
svgRef:
|
|
1277
|
+
svgRef: $e.value,
|
|
1202
1278
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1203
1279
|
color: l.value.chart.color,
|
|
1204
|
-
active:
|
|
1205
|
-
onClose:
|
|
1280
|
+
active: Nl.value,
|
|
1281
|
+
onClose: da
|
|
1206
1282
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1207
1283
|
At.value ? (u(), r("div", {
|
|
1208
1284
|
key: 1,
|
|
1209
1285
|
ref_key: "noTitle",
|
|
1210
|
-
ref:
|
|
1286
|
+
ref: me,
|
|
1211
1287
|
class: "vue-data-ui-no-title-space",
|
|
1212
1288
|
style: "height:36px; width: 100%; background:transparent"
|
|
1213
1289
|
}, null, 512)) : d("", !0),
|
|
1214
1290
|
l.value.chart.title.show ? (u(), r("div", {
|
|
1215
1291
|
key: 2,
|
|
1216
1292
|
ref_key: "chartTitle",
|
|
1217
|
-
ref:
|
|
1293
|
+
ref: j,
|
|
1218
1294
|
class: "vue-ui-xy-title",
|
|
1219
1295
|
style: C(`font-family:${l.value.chart.fontFamily}`)
|
|
1220
1296
|
}, [
|
|
1221
|
-
(u(),
|
|
1222
|
-
key: `title_${
|
|
1297
|
+
(u(), Ve(uo, {
|
|
1298
|
+
key: `title_${Sa.value}`,
|
|
1223
1299
|
config: {
|
|
1224
1300
|
title: {
|
|
1225
1301
|
cy: "xy-div-title",
|
|
@@ -1232,123 +1308,123 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1232
1308
|
}
|
|
1233
1309
|
}, null, 8, ["config"]))
|
|
1234
1310
|
], 4)) : d("", !0),
|
|
1235
|
-
l.value.chart.userOptions.show && (
|
|
1311
|
+
l.value.chart.userOptions.show && (oa.value || Vl.value) ? (u(), Ve(v(Zl), {
|
|
1236
1312
|
ref: "defails",
|
|
1237
|
-
key: `user_options_${
|
|
1313
|
+
key: `user_options_${_a.value}`,
|
|
1238
1314
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1239
1315
|
color: l.value.chart.color,
|
|
1240
|
-
isPrinting: v(
|
|
1241
|
-
isImaging: v(
|
|
1242
|
-
uid:
|
|
1316
|
+
isPrinting: v(ia),
|
|
1317
|
+
isImaging: v(Aa),
|
|
1318
|
+
uid: J.value,
|
|
1243
1319
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
1244
1320
|
hasPdf: l.value.chart.userOptions.buttons.pdf,
|
|
1245
1321
|
hasXls: l.value.chart.userOptions.buttons.csv,
|
|
1246
1322
|
hasImg: l.value.chart.userOptions.buttons.img,
|
|
1247
1323
|
hasLabel: l.value.chart.userOptions.buttons.labels,
|
|
1248
1324
|
hasTable: l.value.chart.userOptions.buttons.table,
|
|
1249
|
-
hasStack:
|
|
1325
|
+
hasStack: bl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
|
|
1250
1326
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1251
1327
|
isStacked: f.value.isStacked,
|
|
1252
|
-
isFullscreen:
|
|
1328
|
+
isFullscreen: hl.value,
|
|
1253
1329
|
chartElement: a.$refs.chart,
|
|
1254
1330
|
position: l.value.chart.userOptions.position,
|
|
1255
1331
|
isTooltip: f.value.showTooltip,
|
|
1256
1332
|
titles: { ...l.value.chart.userOptions.buttonTitles },
|
|
1257
1333
|
hasAnnotator: l.value.chart.userOptions.buttons.annotator,
|
|
1258
|
-
isAnnotation:
|
|
1334
|
+
isAnnotation: Nl.value,
|
|
1259
1335
|
callbacks: l.value.chart.userOptions.callbacks,
|
|
1260
1336
|
printScale: l.value.chart.userOptions.print.scale,
|
|
1261
|
-
onToggleFullscreen:
|
|
1262
|
-
onGeneratePdf: v(
|
|
1263
|
-
onGenerateCsv:
|
|
1264
|
-
onGenerateImage: v(
|
|
1265
|
-
onToggleTable:
|
|
1266
|
-
onToggleLabels:
|
|
1267
|
-
onToggleStack:
|
|
1268
|
-
onToggleTooltip:
|
|
1269
|
-
onToggleAnnotator:
|
|
1337
|
+
onToggleFullscreen: Ka,
|
|
1338
|
+
onGeneratePdf: v(Ma),
|
|
1339
|
+
onGenerateCsv: Da,
|
|
1340
|
+
onGenerateImage: v(za),
|
|
1341
|
+
onToggleTable: qa,
|
|
1342
|
+
onToggleLabels: Za,
|
|
1343
|
+
onToggleStack: Va,
|
|
1344
|
+
onToggleTooltip: Ja,
|
|
1345
|
+
onToggleAnnotator: da,
|
|
1270
1346
|
style: C({
|
|
1271
|
-
visibility:
|
|
1347
|
+
visibility: oa.value ? Vl.value ? "visible" : "hidden" : "visible"
|
|
1272
1348
|
})
|
|
1273
1349
|
}, Rt({ _: 2 }, [
|
|
1274
1350
|
a.$slots.menuIcon ? {
|
|
1275
1351
|
name: "menuIcon",
|
|
1276
|
-
fn:
|
|
1277
|
-
|
|
1352
|
+
fn: ne(({ isOpen: e, color: s }) => [
|
|
1353
|
+
Z(a.$slots, "menuIcon", rl(il({ isOpen: e, color: s })), void 0, !0)
|
|
1278
1354
|
]),
|
|
1279
1355
|
key: "0"
|
|
1280
1356
|
} : void 0,
|
|
1281
1357
|
a.$slots.optionTooltip ? {
|
|
1282
1358
|
name: "optionTooltip",
|
|
1283
|
-
fn:
|
|
1284
|
-
|
|
1359
|
+
fn: ne(() => [
|
|
1360
|
+
Z(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1285
1361
|
]),
|
|
1286
1362
|
key: "1"
|
|
1287
1363
|
} : void 0,
|
|
1288
1364
|
a.$slots.optionPdf ? {
|
|
1289
1365
|
name: "optionPdf",
|
|
1290
|
-
fn:
|
|
1291
|
-
|
|
1366
|
+
fn: ne(() => [
|
|
1367
|
+
Z(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1292
1368
|
]),
|
|
1293
1369
|
key: "2"
|
|
1294
1370
|
} : void 0,
|
|
1295
1371
|
a.$slots.optionCsv ? {
|
|
1296
1372
|
name: "optionCsv",
|
|
1297
|
-
fn:
|
|
1298
|
-
|
|
1373
|
+
fn: ne(() => [
|
|
1374
|
+
Z(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1299
1375
|
]),
|
|
1300
1376
|
key: "3"
|
|
1301
1377
|
} : void 0,
|
|
1302
1378
|
a.$slots.optionImg ? {
|
|
1303
1379
|
name: "optionImg",
|
|
1304
|
-
fn:
|
|
1305
|
-
|
|
1380
|
+
fn: ne(() => [
|
|
1381
|
+
Z(a.$slots, "optionImg", {}, void 0, !0)
|
|
1306
1382
|
]),
|
|
1307
1383
|
key: "4"
|
|
1308
1384
|
} : void 0,
|
|
1309
1385
|
a.$slots.optionTable ? {
|
|
1310
1386
|
name: "optionTable",
|
|
1311
|
-
fn:
|
|
1312
|
-
|
|
1387
|
+
fn: ne(() => [
|
|
1388
|
+
Z(a.$slots, "optionTable", {}, void 0, !0)
|
|
1313
1389
|
]),
|
|
1314
1390
|
key: "5"
|
|
1315
1391
|
} : void 0,
|
|
1316
1392
|
a.$slots.optionLabels ? {
|
|
1317
1393
|
name: "optionLabels",
|
|
1318
|
-
fn:
|
|
1319
|
-
|
|
1394
|
+
fn: ne(() => [
|
|
1395
|
+
Z(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1320
1396
|
]),
|
|
1321
1397
|
key: "6"
|
|
1322
1398
|
} : void 0,
|
|
1323
1399
|
a.$slots.optionStack ? {
|
|
1324
1400
|
name: "optionStack",
|
|
1325
|
-
fn:
|
|
1326
|
-
|
|
1401
|
+
fn: ne(() => [
|
|
1402
|
+
Z(a.$slots, "optionStack", {}, void 0, !0)
|
|
1327
1403
|
]),
|
|
1328
1404
|
key: "7"
|
|
1329
1405
|
} : void 0,
|
|
1330
1406
|
a.$slots.optionFullscreen ? {
|
|
1331
1407
|
name: "optionFullscreen",
|
|
1332
|
-
fn:
|
|
1333
|
-
|
|
1408
|
+
fn: ne(({ toggleFullscreen: e, isFullscreen: s }) => [
|
|
1409
|
+
Z(a.$slots, "optionFullscreen", rl(il({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
|
|
1334
1410
|
]),
|
|
1335
1411
|
key: "8"
|
|
1336
1412
|
} : void 0,
|
|
1337
1413
|
a.$slots.optionAnnotator ? {
|
|
1338
1414
|
name: "optionAnnotator",
|
|
1339
|
-
fn:
|
|
1340
|
-
|
|
1415
|
+
fn: ne(({ toggleAnnotator: e, isAnnotator: s }) => [
|
|
1416
|
+
Z(a.$slots, "optionAnnotator", rl(il({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
|
|
1341
1417
|
]),
|
|
1342
1418
|
key: "9"
|
|
1343
1419
|
} : void 0
|
|
1344
1420
|
]), 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"])) : d("", !0),
|
|
1345
1421
|
(u(), r("svg", {
|
|
1346
1422
|
ref_key: "svgRef",
|
|
1347
|
-
ref:
|
|
1423
|
+
ref: $e,
|
|
1348
1424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1349
|
-
class:
|
|
1425
|
+
class: ul([{ "vue-data-ui-fullscreen--on": hl.value, "vue-data-ui-fulscreen--off": !hl.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1350
1426
|
width: X.value ? void 0 : "100%",
|
|
1351
|
-
viewBox:
|
|
1427
|
+
viewBox: el.value,
|
|
1352
1428
|
style: C({
|
|
1353
1429
|
background: "transparent",
|
|
1354
1430
|
color: l.value.chart.color,
|
|
@@ -1361,10 +1437,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1361
1437
|
}, [
|
|
1362
1438
|
g("g", {
|
|
1363
1439
|
ref_key: "G",
|
|
1364
|
-
ref:
|
|
1440
|
+
ref: dl,
|
|
1365
1441
|
class: "vue-data-ui-g"
|
|
1366
1442
|
}, [
|
|
1367
|
-
|
|
1443
|
+
Al(v(Il)),
|
|
1368
1444
|
a.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
1369
1445
|
key: 0,
|
|
1370
1446
|
x: i.value.left + Y.value < 0 ? 0 : i.value.left + Y.value,
|
|
@@ -1375,10 +1451,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1375
1451
|
pointerEvents: "none"
|
|
1376
1452
|
}
|
|
1377
1453
|
}, [
|
|
1378
|
-
|
|
1379
|
-
], 8,
|
|
1380
|
-
b.value > 0 ? (u(), r("g",
|
|
1381
|
-
g("g",
|
|
1454
|
+
Z(a.$slots, "chart-background", {}, void 0, !0)
|
|
1455
|
+
], 8, xo)) : d("", !0),
|
|
1456
|
+
b.value > 0 ? (u(), r("g", bo, [
|
|
1457
|
+
g("g", mo, [
|
|
1382
1458
|
l.value.chart.grid.labels.xAxis.showBaseline ? (u(), r("line", {
|
|
1383
1459
|
key: 0,
|
|
1384
1460
|
stroke: l.value.chart.grid.stroke,
|
|
@@ -1389,8 +1465,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1389
1465
|
y2: v(B)(i.value.bottom),
|
|
1390
1466
|
"stroke-linecap": "round",
|
|
1391
1467
|
style: { animation: "none !important" }
|
|
1392
|
-
}, null, 8,
|
|
1393
|
-
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), r(h, { key: 2 }, y(
|
|
1468
|
+
}, null, 8, yo)) : d("", !0),
|
|
1469
|
+
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), r(h, { key: 2 }, y(wl.value, (e) => (u(), r("g", null, [
|
|
1394
1470
|
e.id === M.value && e.yLabels.length ? (u(!0), r(h, { key: 0 }, y(e.yLabels, (s) => (u(), r("line", {
|
|
1395
1471
|
x1: i.value.left + Y.value,
|
|
1396
1472
|
x2: i.value.right - Y.value,
|
|
@@ -1400,7 +1476,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1400
1476
|
"stroke-width": 0.5,
|
|
1401
1477
|
"stroke-linecap": "round",
|
|
1402
1478
|
style: { animation: "none !important" }
|
|
1403
|
-
}, null, 8,
|
|
1479
|
+
}, null, 8, wo))), 256)) : e.yLabels.length ? (u(!0), r(h, { key: 1 }, y(e.yLabels, (s) => (u(), r("line", {
|
|
1404
1480
|
x1: i.value.left + Y.value,
|
|
1405
1481
|
x2: i.value.right - Y.value,
|
|
1406
1482
|
y1: v(B)(s.y),
|
|
@@ -1409,7 +1485,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1409
1485
|
"stroke-width": 0.5,
|
|
1410
1486
|
"stroke-linecap": "round",
|
|
1411
1487
|
style: { animation: "none !important" }
|
|
1412
|
-
}, null, 8,
|
|
1488
|
+
}, null, 8, So))), 256)) : d("", !0)
|
|
1413
1489
|
]))), 256)) : d("", !0) : (u(), r(h, { key: 1 }, [
|
|
1414
1490
|
l.value.chart.grid.labels.yAxis.showBaseline ? (u(), r("line", {
|
|
1415
1491
|
key: 0,
|
|
@@ -1421,9 +1497,9 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1421
1497
|
y2: v(B)(i.value.bottom),
|
|
1422
1498
|
"stroke-linecap": "round",
|
|
1423
1499
|
style: { animation: "none !important" }
|
|
1424
|
-
}, null, 8,
|
|
1425
|
-
l.value.chart.grid.showHorizontalLines ? (u(), r("g",
|
|
1426
|
-
(u(!0), r(h, null, y(
|
|
1500
|
+
}, null, 8, po)) : d("", !0),
|
|
1501
|
+
l.value.chart.grid.showHorizontalLines ? (u(), r("g", ko, [
|
|
1502
|
+
(u(!0), r(h, null, y(Wa.value, (e) => (u(), r("line", {
|
|
1427
1503
|
x1: i.value.left + Y.value,
|
|
1428
1504
|
x2: i.value.right - Y.value,
|
|
1429
1505
|
y1: v(B)(e.y),
|
|
@@ -1432,73 +1508,73 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1432
1508
|
"stroke-width": 0.5,
|
|
1433
1509
|
"stroke-linecap": "round",
|
|
1434
1510
|
style: { animation: "none !important" }
|
|
1435
|
-
}, null, 8,
|
|
1511
|
+
}, null, 8, _o))), 256))
|
|
1436
1512
|
])) : d("", !0)
|
|
1437
1513
|
], 64)),
|
|
1438
|
-
l.value.chart.grid.showVerticalLines ? (u(), r("g",
|
|
1514
|
+
l.value.chart.grid.showVerticalLines ? (u(), r("g", $o, [
|
|
1439
1515
|
g("path", {
|
|
1440
1516
|
d: ft.value,
|
|
1441
1517
|
"stroke-width": 0.5,
|
|
1442
1518
|
stroke: l.value.chart.grid.stroke,
|
|
1443
1519
|
"stroke-linecap": "round",
|
|
1444
1520
|
style: { animation: "none !important" }
|
|
1445
|
-
}, null, 8,
|
|
1521
|
+
}, null, 8, Lo)
|
|
1446
1522
|
])) : d("", !0),
|
|
1447
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g",
|
|
1523
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", Ao, [
|
|
1448
1524
|
g("path", {
|
|
1449
1525
|
d: gt.value,
|
|
1450
1526
|
stroke: l.value.chart.grid.stroke,
|
|
1451
1527
|
"stroke-width": 1,
|
|
1452
1528
|
"stroke-linecap": "round",
|
|
1453
1529
|
style: { animation: "none !important" }
|
|
1454
|
-
}, null, 8,
|
|
1530
|
+
}, null, 8, Mo)
|
|
1455
1531
|
])) : d("", !0)
|
|
1456
1532
|
]),
|
|
1457
|
-
(u(!0), r(h, null, y(
|
|
1533
|
+
(u(!0), r(h, null, y(We.value, (e, s) => (u(), r("defs", {
|
|
1458
1534
|
key: `def_rect_${s}`
|
|
1459
1535
|
}, [
|
|
1460
1536
|
g("linearGradient", {
|
|
1461
|
-
id: `rectGradient_pos_${s}_${
|
|
1537
|
+
id: `rectGradient_pos_${s}_${J.value}`,
|
|
1462
1538
|
x2: "0%",
|
|
1463
1539
|
y2: "100%"
|
|
1464
1540
|
}, [
|
|
1465
1541
|
g("stop", {
|
|
1466
1542
|
offset: "0%",
|
|
1467
1543
|
"stop-color": e.color
|
|
1468
|
-
}, null, 8,
|
|
1544
|
+
}, null, 8, Co),
|
|
1469
1545
|
g("stop", {
|
|
1470
1546
|
offset: "62%",
|
|
1471
|
-
"stop-color": `${v(
|
|
1472
|
-
}, null, 8,
|
|
1547
|
+
"stop-color": `${v(cl)(e.color, 0.02)}`
|
|
1548
|
+
}, null, 8, Io),
|
|
1473
1549
|
g("stop", {
|
|
1474
1550
|
offset: "100%",
|
|
1475
|
-
"stop-color": `${v(
|
|
1476
|
-
}, null, 8,
|
|
1477
|
-
], 8,
|
|
1551
|
+
"stop-color": `${v(cl)(e.color, 0.05)}`
|
|
1552
|
+
}, null, 8, To)
|
|
1553
|
+
], 8, zo),
|
|
1478
1554
|
g("linearGradient", {
|
|
1479
|
-
id: `rectGradient_neg_${s}_${
|
|
1555
|
+
id: `rectGradient_neg_${s}_${J.value}`,
|
|
1480
1556
|
x2: "0%",
|
|
1481
1557
|
y2: "100%"
|
|
1482
1558
|
}, [
|
|
1483
1559
|
g("stop", {
|
|
1484
1560
|
offset: "0%",
|
|
1485
|
-
"stop-color": `${v(
|
|
1486
|
-
}, null, 8,
|
|
1561
|
+
"stop-color": `${v(cl)(e.color, 0.05)}`
|
|
1562
|
+
}, null, 8, No),
|
|
1487
1563
|
g("stop", {
|
|
1488
1564
|
offset: "38%",
|
|
1489
|
-
"stop-color": `${v(
|
|
1490
|
-
}, null, 8,
|
|
1565
|
+
"stop-color": `${v(cl)(e.color, 0.02)}`
|
|
1566
|
+
}, null, 8, Vo),
|
|
1491
1567
|
g("stop", {
|
|
1492
1568
|
offset: "100%",
|
|
1493
1569
|
"stop-color": e.color
|
|
1494
|
-
}, null, 8,
|
|
1495
|
-
], 8,
|
|
1570
|
+
}, null, 8, Po)
|
|
1571
|
+
], 8, Oo)
|
|
1496
1572
|
]))), 128)),
|
|
1497
|
-
(u(!0), r(h, null, y(
|
|
1573
|
+
(u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r("defs", {
|
|
1498
1574
|
key: `def_plot_${s}`
|
|
1499
1575
|
}, [
|
|
1500
1576
|
g("radialGradient", {
|
|
1501
|
-
id: `plotGradient_${s}_${
|
|
1577
|
+
id: `plotGradient_${s}_${J.value}`,
|
|
1502
1578
|
cx: "50%",
|
|
1503
1579
|
cy: "50%",
|
|
1504
1580
|
r: "50%",
|
|
@@ -1507,19 +1583,19 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1507
1583
|
}, [
|
|
1508
1584
|
g("stop", {
|
|
1509
1585
|
offset: "0%",
|
|
1510
|
-
"stop-color": `${v(
|
|
1511
|
-
}, null, 8,
|
|
1586
|
+
"stop-color": `${v(cl)(e.color, 0.05)}`
|
|
1587
|
+
}, null, 8, Bo),
|
|
1512
1588
|
g("stop", {
|
|
1513
1589
|
offset: "100%",
|
|
1514
1590
|
"stop-color": e.color
|
|
1515
|
-
}, null, 8,
|
|
1516
|
-
], 8,
|
|
1591
|
+
}, null, 8, Ro)
|
|
1592
|
+
], 8, Ho)
|
|
1517
1593
|
]))), 128)),
|
|
1518
|
-
(u(!0), r(h, null, y(
|
|
1594
|
+
(u(!0), r(h, null, y(ze.value, (e, s) => (u(), r("defs", {
|
|
1519
1595
|
key: `def_line_${s}`
|
|
1520
1596
|
}, [
|
|
1521
1597
|
g("radialGradient", {
|
|
1522
|
-
id: `lineGradient_${s}_${
|
|
1598
|
+
id: `lineGradient_${s}_${J.value}`,
|
|
1523
1599
|
cx: "50%",
|
|
1524
1600
|
cy: "50%",
|
|
1525
1601
|
r: "50%",
|
|
@@ -1528,15 +1604,15 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1528
1604
|
}, [
|
|
1529
1605
|
g("stop", {
|
|
1530
1606
|
offset: "0%",
|
|
1531
|
-
"stop-color": `${v(
|
|
1532
|
-
}, null, 8,
|
|
1607
|
+
"stop-color": `${v(cl)(e.color, 0.05)}`
|
|
1608
|
+
}, null, 8, Fo),
|
|
1533
1609
|
g("stop", {
|
|
1534
1610
|
offset: "100%",
|
|
1535
1611
|
"stop-color": e.color
|
|
1536
|
-
}, null, 8,
|
|
1537
|
-
], 8,
|
|
1612
|
+
}, null, 8, Eo)
|
|
1613
|
+
], 8, Yo),
|
|
1538
1614
|
g("linearGradient", {
|
|
1539
|
-
id: `areaGradient_${s}_${
|
|
1615
|
+
id: `areaGradient_${s}_${J.value}`,
|
|
1540
1616
|
x1: "0%",
|
|
1541
1617
|
x2: "100%",
|
|
1542
1618
|
y1: "0%",
|
|
@@ -1544,13 +1620,13 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1544
1620
|
}, [
|
|
1545
1621
|
g("stop", {
|
|
1546
1622
|
offset: "0%",
|
|
1547
|
-
"stop-color": `${v(
|
|
1548
|
-
}, null, 8,
|
|
1623
|
+
"stop-color": `${v(Ce)(v(cl)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1624
|
+
}, null, 8, Go),
|
|
1549
1625
|
g("stop", {
|
|
1550
1626
|
offset: "100%",
|
|
1551
|
-
"stop-color": `${v(
|
|
1552
|
-
}, null, 8,
|
|
1553
|
-
], 8,
|
|
1627
|
+
"stop-color": `${v(Ce)(e.color, l.value.line.area.opacity)}`
|
|
1628
|
+
}, null, 8, Xo)
|
|
1629
|
+
], 8, Wo)
|
|
1554
1630
|
]))), 128)),
|
|
1555
1631
|
(u(!0), r(h, null, y(Mt.value, (e) => (u(), r("g", null, [
|
|
1556
1632
|
e.show ? (u(), r(h, { key: 0 }, [
|
|
@@ -1564,8 +1640,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1564
1640
|
y: i.value.top,
|
|
1565
1641
|
height: i.value.height < 0 ? 10 : i.value.height,
|
|
1566
1642
|
width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
|
|
1567
|
-
fill: v(
|
|
1568
|
-
}, null, 12,
|
|
1643
|
+
fill: v(Ce)(e.color, e.opacity)
|
|
1644
|
+
}, null, 12, Do)
|
|
1569
1645
|
]))), 256)),
|
|
1570
1646
|
(u(!0), r(h, null, y(e.span, (s, t) => (u(), r("g", null, [
|
|
1571
1647
|
e.caption.text && t === 0 ? (u(), r("foreignObject", {
|
|
@@ -1581,12 +1657,12 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1581
1657
|
}, [
|
|
1582
1658
|
g("div", {
|
|
1583
1659
|
style: C(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
1584
|
-
},
|
|
1585
|
-
], 12,
|
|
1660
|
+
}, se(e.caption.text), 5)
|
|
1661
|
+
], 12, Uo)) : d("", !0)
|
|
1586
1662
|
]))), 256))
|
|
1587
1663
|
], 64)) : d("", !0)
|
|
1588
1664
|
]))), 256)),
|
|
1589
|
-
|
|
1665
|
+
va.value ? (u(), r("g", qo, [
|
|
1590
1666
|
(u(!0), r(h, null, y(b.value, (e, s) => (u(), r("g", {
|
|
1591
1667
|
key: `tooltip_trap_highlighter_${s}`
|
|
1592
1668
|
}, [
|
|
@@ -1595,55 +1671,55 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1595
1671
|
y: i.value.top,
|
|
1596
1672
|
height: i.value.height < 0 ? 10 : i.value.height,
|
|
1597
1673
|
width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
|
|
1598
|
-
fill: [O.value, _.value,
|
|
1599
|
-
}, null, 8,
|
|
1674
|
+
fill: [O.value, _.value, ll.value].includes(s) ? v(Ce)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
|
|
1675
|
+
}, null, 8, Zo)
|
|
1600
1676
|
]))), 128))
|
|
1601
1677
|
])) : d("", !0),
|
|
1602
|
-
|
|
1678
|
+
We.value.length ? (u(!0), r(h, { key: 1 }, y(We.value, (e, s) => (u(), r("g", {
|
|
1603
1679
|
key: `serie_bar_${s}`,
|
|
1604
|
-
class:
|
|
1680
|
+
class: ul(`serie_bar_${s}`),
|
|
1605
1681
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1606
1682
|
}, [
|
|
1607
1683
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r("g", {
|
|
1608
1684
|
key: `bar_plot_${s}_${n}`
|
|
1609
1685
|
}, [
|
|
1610
|
-
|
|
1686
|
+
_e(t.value) ? (u(), r("rect", {
|
|
1611
1687
|
key: 0,
|
|
1612
|
-
x:
|
|
1613
|
-
y: f.value.useIndividualScale ?
|
|
1614
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1615
|
-
width:
|
|
1688
|
+
x: Fl(t),
|
|
1689
|
+
y: f.value.useIndividualScale ? Ya(t) : Ra(t),
|
|
1690
|
+
height: f.value.useIndividualScale ? Math.abs(Ba(t)) : Math.abs(Ha(t)),
|
|
1691
|
+
width: Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value) < 0 ? 1e-5 : Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value),
|
|
1616
1692
|
rx: l.value.bar.borderRadius,
|
|
1617
|
-
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${
|
|
1693
|
+
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${J.value})` : `url(#rectGradient_neg_${s}_${J.value})` : e.color,
|
|
1618
1694
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1619
1695
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1620
|
-
style: C(`${v(
|
|
1621
|
-
}, null, 12,
|
|
1622
|
-
|
|
1696
|
+
style: C(`${v(ra) ? "transition:none !important" : ""}`)
|
|
1697
|
+
}, null, 12, Jo)) : d("", !0),
|
|
1698
|
+
_e(t.value) && a.$slots.pattern ? (u(), r("rect", {
|
|
1623
1699
|
key: 1,
|
|
1624
|
-
x:
|
|
1625
|
-
y: f.value.useIndividualScale ?
|
|
1626
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1627
|
-
width:
|
|
1700
|
+
x: Fl(t),
|
|
1701
|
+
y: f.value.useIndividualScale ? Ya(t) : Ra(t),
|
|
1702
|
+
height: f.value.useIndividualScale ? Math.abs(Ba(t)) : Math.abs(Ha(t)),
|
|
1703
|
+
width: Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value) < 0 ? 1e-5 : Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value),
|
|
1628
1704
|
rx: l.value.bar.borderRadius,
|
|
1629
|
-
fill: `url(#pattern_${
|
|
1705
|
+
fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`,
|
|
1630
1706
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1631
1707
|
"stroke-width": l.value.bar.border.strokeWidth
|
|
1632
|
-
}, null, 8,
|
|
1708
|
+
}, null, 8, Ko)) : d("", !0),
|
|
1633
1709
|
t.comment && l.value.chart.comments.show ? (u(), r("foreignObject", {
|
|
1634
1710
|
key: 2,
|
|
1635
1711
|
style: { overflow: "visible" },
|
|
1636
1712
|
height: "12",
|
|
1637
|
-
width: (
|
|
1638
|
-
x:
|
|
1713
|
+
width: (Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value) < 0 ? 1e-5 : Me() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Fe.value) / 2) + l.value.chart.comments.width,
|
|
1714
|
+
x: Fl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1639
1715
|
y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
|
|
1640
1716
|
}, [
|
|
1641
|
-
|
|
1717
|
+
Z(a.$slots, "plot-comment", {
|
|
1642
1718
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
|
|
1643
1719
|
}, void 0, !0)
|
|
1644
|
-
], 8,
|
|
1720
|
+
], 8, Qo)) : d("", !0)
|
|
1645
1721
|
]))), 128)),
|
|
1646
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(
|
|
1722
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(D)(e.plots).trend) ? (u(), r("g", jo, [
|
|
1647
1723
|
g("defs", null, [
|
|
1648
1724
|
g("marker", {
|
|
1649
1725
|
id: `bar_arrow_${s}`,
|
|
@@ -1656,32 +1732,32 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1656
1732
|
g("polygon", {
|
|
1657
1733
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1658
1734
|
fill: e.color
|
|
1659
|
-
}, null, 8,
|
|
1660
|
-
], 8,
|
|
1735
|
+
}, null, 8, ls)
|
|
1736
|
+
], 8, es)
|
|
1661
1737
|
]),
|
|
1662
1738
|
e.plots.length > 1 ? (u(), r("line", {
|
|
1663
1739
|
key: 0,
|
|
1664
|
-
x1: v(
|
|
1665
|
-
x2: v(
|
|
1666
|
-
y1: v(B)(v(
|
|
1667
|
-
y2: v(B)(v(
|
|
1740
|
+
x1: v(D)(e.plots).x1 + Me(),
|
|
1741
|
+
x2: v(D)(e.plots).x2 + Me(),
|
|
1742
|
+
y1: v(B)(v(D)(e.plots).y1),
|
|
1743
|
+
y2: v(B)(v(D)(e.plots).y2),
|
|
1668
1744
|
"stroke-width": 1,
|
|
1669
1745
|
stroke: e.color,
|
|
1670
1746
|
"stroke-dasharray": 2,
|
|
1671
1747
|
"marker-end": `url(#bar_arrow_${s})`
|
|
1672
|
-
}, null, 8,
|
|
1748
|
+
}, null, 8, as)) : d("", !0),
|
|
1673
1749
|
e.plots.length > 1 ? (u(), r("text", {
|
|
1674
1750
|
key: 1,
|
|
1675
1751
|
"text-anchor": "middle",
|
|
1676
|
-
x: v(
|
|
1677
|
-
y: v(
|
|
1752
|
+
x: v(D)(e.plots).x2 + Me(),
|
|
1753
|
+
y: v(D)(e.plots).y2 - 6,
|
|
1678
1754
|
"font-size": x.value.plotLabels,
|
|
1679
1755
|
fill: e.color
|
|
1680
|
-
},
|
|
1681
|
-
v: v(
|
|
1756
|
+
}, se(v(Se)({
|
|
1757
|
+
v: v(D)(e.plots).trend * 100,
|
|
1682
1758
|
s: "%",
|
|
1683
1759
|
r: 2
|
|
1684
|
-
})), 9,
|
|
1760
|
+
})), 9, ts)) : d("", !0)
|
|
1685
1761
|
])) : d("", !0)
|
|
1686
1762
|
], 6))), 128)) : d("", !0),
|
|
1687
1763
|
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), r("line", {
|
|
@@ -1690,12 +1766,12 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1690
1766
|
"stroke-width": "1",
|
|
1691
1767
|
x1: i.value.left + Y.value,
|
|
1692
1768
|
x2: i.value.right - Y.value,
|
|
1693
|
-
y1: v(B)(
|
|
1694
|
-
y2: v(B)(
|
|
1769
|
+
y1: v(B)(ve.value),
|
|
1770
|
+
y2: v(B)(ve.value),
|
|
1695
1771
|
"stroke-linecap": "round",
|
|
1696
1772
|
style: { animation: "none !important" }
|
|
1697
|
-
}, null, 8,
|
|
1698
|
-
l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g",
|
|
1773
|
+
}, null, 8, os)) : d("", !0),
|
|
1774
|
+
l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", ss, [
|
|
1699
1775
|
g("line", {
|
|
1700
1776
|
x1: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
|
|
1701
1777
|
x2: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
|
|
@@ -1706,7 +1782,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1706
1782
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
1707
1783
|
"stroke-linecap": "round",
|
|
1708
1784
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1709
|
-
}, null, 8,
|
|
1785
|
+
}, null, 8, us)
|
|
1710
1786
|
])) : d("", !0),
|
|
1711
1787
|
l.value.chart.grid.frame.show ? (u(), r("rect", {
|
|
1712
1788
|
key: 4,
|
|
@@ -1721,14 +1797,14 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1721
1797
|
"stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
|
|
1722
1798
|
"stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
|
|
1723
1799
|
"stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
|
|
1724
|
-
}, null, 8,
|
|
1800
|
+
}, null, 8, rs)) : d("", !0),
|
|
1725
1801
|
l.value.chart.grid.labels.show ? (u(), r("g", {
|
|
1726
1802
|
key: 5,
|
|
1727
1803
|
ref_key: "scaleLabels",
|
|
1728
|
-
ref:
|
|
1804
|
+
ref: ea
|
|
1729
1805
|
}, [
|
|
1730
1806
|
f.value.useIndividualScale ? (u(), r(h, { key: 0 }, [
|
|
1731
|
-
(u(!0), r(h, null, y(
|
|
1807
|
+
(u(!0), r(h, null, y(wl.value, (e) => (u(), r("g", null, [
|
|
1732
1808
|
g("line", {
|
|
1733
1809
|
x1: e.x + Y.value,
|
|
1734
1810
|
x2: e.x + Y.value,
|
|
@@ -1738,9 +1814,9 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1738
1814
|
"stroke-width": l.value.chart.grid.stroke,
|
|
1739
1815
|
"stroke-linecap": "round",
|
|
1740
1816
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1741
|
-
}, null, 12,
|
|
1817
|
+
}, null, 12, is)
|
|
1742
1818
|
]))), 256)),
|
|
1743
|
-
(u(!0), r(h, null, y(
|
|
1819
|
+
(u(!0), r(h, null, y(wl.value, (e) => (u(), r("g", {
|
|
1744
1820
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1745
1821
|
}, [
|
|
1746
1822
|
g("text", {
|
|
@@ -1748,7 +1824,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1748
1824
|
"font-size": x.value.dataLabels,
|
|
1749
1825
|
"text-anchor": "middle",
|
|
1750
1826
|
transform: `translate(${e.x - l.value.chart.grid.labels.yAxis.labelWidth + 5 + Y.value + l.value.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${f.value.isStacked ? i.value.bottom - e.yOffset - e.individualHeight / 2 : i.value.top + i.value.height / 2}) rotate(-90)`
|
|
1751
|
-
},
|
|
1827
|
+
}, se(e.name) + " " + se(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
1828
|
+
${e.scaleLabel}` : ""), 9, ns),
|
|
1752
1829
|
(u(!0), r(h, null, y(e.yLabels, (s, t) => (u(), r(h, null, [
|
|
1753
1830
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
|
|
1754
1831
|
key: 0,
|
|
@@ -1760,7 +1837,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1760
1837
|
"stroke-width": 1,
|
|
1761
1838
|
"stroke-linecap": "round",
|
|
1762
1839
|
style: { animation: "none !important" }
|
|
1763
|
-
}, null, 8,
|
|
1840
|
+
}, null, 8, cs)) : d("", !0)
|
|
1764
1841
|
], 64))), 256)),
|
|
1765
1842
|
(u(!0), r(h, null, y(e.yLabels, (s, t) => (u(), r("text", {
|
|
1766
1843
|
x: X.value ? e.x - x.value.dataLabels / 2 + Y.value + l.value.chart.grid.labels.yAxis.scaleValueOffsetX : e.x - 5 + Y.value + l.value.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
@@ -1768,22 +1845,22 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1768
1845
|
"font-size": x.value.dataLabels,
|
|
1769
1846
|
"text-anchor": "end",
|
|
1770
1847
|
fill: e.color
|
|
1771
|
-
},
|
|
1848
|
+
}, se(v(fe)(
|
|
1772
1849
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1773
1850
|
s.value,
|
|
1774
|
-
v(
|
|
1851
|
+
v(Se)({
|
|
1775
1852
|
p: s.prefix,
|
|
1776
1853
|
v: s.value,
|
|
1777
1854
|
s: s.suffix,
|
|
1778
1855
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
1779
1856
|
}),
|
|
1780
1857
|
{ datapoint: s.datapoint, seriesIndex: t }
|
|
1781
|
-
)), 9,
|
|
1858
|
+
)), 9, vs))), 256))
|
|
1782
1859
|
], 4))), 256))
|
|
1783
|
-
], 64)) : (u(!0), r(h, { key: 1 }, y(
|
|
1860
|
+
], 64)) : (u(!0), r(h, { key: 1 }, y(Wa.value, (e, s) => (u(), r("g", {
|
|
1784
1861
|
key: `yLabel_${s}`
|
|
1785
1862
|
}, [
|
|
1786
|
-
|
|
1863
|
+
_e(e) && e.value >= Le.value.min && e.value <= Le.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), r("line", {
|
|
1787
1864
|
key: 0,
|
|
1788
1865
|
x1: i.value.left + Y.value,
|
|
1789
1866
|
x2: i.value.left - l.value.chart.grid.labels.yAxis.crosshairSize + Y.value,
|
|
@@ -1793,40 +1870,40 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1793
1870
|
"stroke-width": "1",
|
|
1794
1871
|
"stroke-linecap": "round",
|
|
1795
1872
|
style: { animation: "none !important" }
|
|
1796
|
-
}, null, 8,
|
|
1797
|
-
e.value >=
|
|
1873
|
+
}, null, 8, ds)) : d("", !0),
|
|
1874
|
+
e.value >= Le.value.min && e.value <= Le.value.max ? (u(), r("text", {
|
|
1798
1875
|
key: 1,
|
|
1799
1876
|
x: i.value.left - 7 + Y.value,
|
|
1800
1877
|
y: v(T)(e.y + x.value.dataLabels / 3),
|
|
1801
1878
|
"font-size": x.value.dataLabels,
|
|
1802
1879
|
"text-anchor": "end",
|
|
1803
1880
|
fill: l.value.chart.grid.labels.color
|
|
1804
|
-
},
|
|
1881
|
+
}, se(_e(e.value) ? v(fe)(
|
|
1805
1882
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1806
1883
|
e.value,
|
|
1807
|
-
v(
|
|
1884
|
+
v(Se)({
|
|
1808
1885
|
p: e.prefix,
|
|
1809
1886
|
v: e.value,
|
|
1810
1887
|
s: e.suffix,
|
|
1811
1888
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
1812
1889
|
})
|
|
1813
|
-
) : ""), 9,
|
|
1890
|
+
) : ""), 9, hs)) : d("", !0)
|
|
1814
1891
|
]))), 128))
|
|
1815
1892
|
], 512)) : d("", !0),
|
|
1816
|
-
(u(!0), r(h, null, y(
|
|
1893
|
+
(u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r("g", {
|
|
1817
1894
|
key: `serie_plot_${s}`,
|
|
1818
|
-
class:
|
|
1895
|
+
class: ul(`serie_plot_${s}`),
|
|
1819
1896
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1820
1897
|
}, [
|
|
1821
1898
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r("g", {
|
|
1822
1899
|
key: `circle_plot_${s}_${n}`
|
|
1823
1900
|
}, [
|
|
1824
|
-
t &&
|
|
1901
|
+
t && _e(t.value) ? (u(), Ve(Dl, {
|
|
1825
1902
|
key: 0,
|
|
1826
1903
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1827
|
-
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${
|
|
1904
|
+
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${J.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
1828
1905
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1829
|
-
radius: _.value !== null && _.value === n || O.value !== null && O.value === n ? (
|
|
1906
|
+
radius: _.value !== null && _.value === n || O.value !== null && O.value === n ? (Ie.value.plot || 6) * 1.5 : Ie.value.plot || 6,
|
|
1830
1907
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1831
1908
|
strokeWidth: l.value.plot.dot.strokeWidth
|
|
1832
1909
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1838,14 +1915,14 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1838
1915
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1839
1916
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1840
1917
|
}, [
|
|
1841
|
-
g("div",
|
|
1842
|
-
|
|
1918
|
+
g("div", gs, [
|
|
1919
|
+
Z(a.$slots, "plot-comment", {
|
|
1843
1920
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
|
|
1844
1921
|
}, void 0, !0)
|
|
1845
1922
|
])
|
|
1846
|
-
], 8,
|
|
1923
|
+
], 8, fs)) : d("", !0)
|
|
1847
1924
|
]))), 128)),
|
|
1848
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(
|
|
1925
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(D)(e.plots).trend) ? (u(), r("g", xs, [
|
|
1849
1926
|
g("defs", null, [
|
|
1850
1927
|
g("marker", {
|
|
1851
1928
|
id: `plot_arrow_${s}`,
|
|
@@ -1858,37 +1935,37 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1858
1935
|
g("polygon", {
|
|
1859
1936
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1860
1937
|
fill: e.color
|
|
1861
|
-
}, null, 8,
|
|
1862
|
-
], 8,
|
|
1938
|
+
}, null, 8, ms)
|
|
1939
|
+
], 8, bs)
|
|
1863
1940
|
]),
|
|
1864
1941
|
e.plots.length > 1 ? (u(), r("line", {
|
|
1865
1942
|
key: 0,
|
|
1866
|
-
x1: v(
|
|
1867
|
-
x2: v(
|
|
1868
|
-
y1: v(B)(v(
|
|
1869
|
-
y2: v(B)(v(
|
|
1943
|
+
x1: v(D)(e.plots).x1,
|
|
1944
|
+
x2: v(D)(e.plots).x2,
|
|
1945
|
+
y1: v(B)(v(D)(e.plots).y1),
|
|
1946
|
+
y2: v(B)(v(D)(e.plots).y2),
|
|
1870
1947
|
"stroke-width": 1,
|
|
1871
1948
|
stroke: e.color,
|
|
1872
1949
|
"stroke-dasharray": 2,
|
|
1873
1950
|
"marker-end": `url(#plot_arrow_${s})`
|
|
1874
|
-
}, null, 8,
|
|
1951
|
+
}, null, 8, ys)) : d("", !0),
|
|
1875
1952
|
e.plots.length > 1 ? (u(), r("text", {
|
|
1876
1953
|
key: 1,
|
|
1877
1954
|
"text-anchor": "middle",
|
|
1878
|
-
x: v(
|
|
1879
|
-
y: v(
|
|
1955
|
+
x: v(D)(e.plots).x2,
|
|
1956
|
+
y: v(D)(e.plots).y2 - 6,
|
|
1880
1957
|
"font-size": x.value.plotLabels,
|
|
1881
1958
|
fill: e.color
|
|
1882
|
-
},
|
|
1883
|
-
v: v(
|
|
1959
|
+
}, se(v(Se)({
|
|
1960
|
+
v: v(D)(e.plots).trend * 100,
|
|
1884
1961
|
s: "%",
|
|
1885
1962
|
r: 2
|
|
1886
|
-
})), 9,
|
|
1963
|
+
})), 9, ps)) : d("", !0)
|
|
1887
1964
|
])) : d("", !0)
|
|
1888
1965
|
], 6))), 128)),
|
|
1889
|
-
(u(!0), r(h, null, y(
|
|
1966
|
+
(u(!0), r(h, null, y(ze.value, (e, s) => (u(), r("g", {
|
|
1890
1967
|
key: `serie_line_${s}`,
|
|
1891
|
-
class:
|
|
1968
|
+
class: ul(`serie_line_${s}`),
|
|
1892
1969
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1893
1970
|
}, [
|
|
1894
1971
|
e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
|
|
@@ -1898,7 +1975,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1898
1975
|
"stroke-width": l.value.line.strokeWidth + 1,
|
|
1899
1976
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
1900
1977
|
fill: "none"
|
|
1901
|
-
}, null, 8,
|
|
1978
|
+
}, null, 8, ks)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
|
|
1902
1979
|
key: 1,
|
|
1903
1980
|
d: `M${e.straight}`,
|
|
1904
1981
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -1907,39 +1984,39 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1907
1984
|
fill: "none",
|
|
1908
1985
|
"stroke-linecap": "round",
|
|
1909
1986
|
"stroke-linejoin": "round"
|
|
1910
|
-
}, null, 8,
|
|
1987
|
+
}, null, 8, _s)) : d("", !0)
|
|
1911
1988
|
], 6))), 128)),
|
|
1912
|
-
a.$slots.pattern ? (u(), r("defs",
|
|
1913
|
-
(u(!0), r(h, null, y(
|
|
1989
|
+
a.$slots.pattern ? (u(), r("defs", ws, [
|
|
1990
|
+
(u(!0), r(h, null, y(Ye.value, (e, s) => Z(a.$slots, "pattern", xa({
|
|
1914
1991
|
key: `serie_pattern_slot_${s}`
|
|
1915
|
-
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${
|
|
1992
|
+
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${J.value}_${s}` }), void 0, !0)), 128))
|
|
1916
1993
|
])) : d("", !0),
|
|
1917
|
-
(u(!0), r(h, null, y(
|
|
1994
|
+
(u(!0), r(h, null, y(ze.value, (e, s) => (u(), r("g", {
|
|
1918
1995
|
key: `serie_line_${s}`,
|
|
1919
|
-
class:
|
|
1996
|
+
class: ul(`serie_line_${s}`),
|
|
1920
1997
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1921
1998
|
}, [
|
|
1922
|
-
e.useArea && e.plots.length > 1 ? (u(), r("g",
|
|
1999
|
+
e.useArea && e.plots.length > 1 ? (u(), r("g", Ss, [
|
|
1923
2000
|
e.smooth ? (u(!0), r(h, { key: 0 }, y(e.curveAreas, (t, n) => (u(), r(h, { key: n }, [
|
|
1924
2001
|
g("path", {
|
|
1925
2002
|
d: t,
|
|
1926
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${
|
|
1927
|
-
}, null, 8,
|
|
2003
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${J.value})` : v(Ce)(e.color, l.value.line.area.opacity)
|
|
2004
|
+
}, null, 8, $s),
|
|
1928
2005
|
a.$slots.pattern ? (u(), r("path", {
|
|
1929
2006
|
key: 0,
|
|
1930
2007
|
d: t,
|
|
1931
|
-
fill: `url(#pattern_${
|
|
1932
|
-
}, null, 8,
|
|
2008
|
+
fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`
|
|
2009
|
+
}, null, 8, Ls)) : d("", !0)
|
|
1933
2010
|
], 64))), 128)) : (u(!0), r(h, { key: 1 }, y(e.area.split(";"), (t, n) => (u(), r(h, { key: n }, [
|
|
1934
2011
|
g("path", {
|
|
1935
2012
|
d: `M${t}Z`,
|
|
1936
|
-
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${
|
|
1937
|
-
}, null, 8,
|
|
2013
|
+
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${J.value})` : v(Ce)(e.color, l.value.line.area.opacity)
|
|
2014
|
+
}, null, 8, As),
|
|
1938
2015
|
a.$slots.pattern ? (u(), r("path", {
|
|
1939
2016
|
key: 0,
|
|
1940
2017
|
d: `M${t}Z`,
|
|
1941
|
-
fill: `url(#pattern_${
|
|
1942
|
-
}, null, 8,
|
|
2018
|
+
fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`
|
|
2019
|
+
}, null, 8, Ms)) : d("", !0)
|
|
1943
2020
|
], 64))), 128))
|
|
1944
2021
|
])) : d("", !0),
|
|
1945
2022
|
e.smooth && e.plots.length > 1 && e.curve ? (u(), r("path", {
|
|
@@ -1950,7 +2027,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1950
2027
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
1951
2028
|
fill: "none",
|
|
1952
2029
|
"stroke-linecap": "round"
|
|
1953
|
-
}, null, 8,
|
|
2030
|
+
}, null, 8, zs)) : e.plots.length > 1 && e.straight ? (u(), r("path", {
|
|
1954
2031
|
key: 2,
|
|
1955
2032
|
d: `M${e.straight}`,
|
|
1956
2033
|
stroke: e.color,
|
|
@@ -1959,16 +2036,16 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1959
2036
|
fill: "none",
|
|
1960
2037
|
"stroke-linecap": "round",
|
|
1961
2038
|
"stroke-linejoin": "round"
|
|
1962
|
-
}, null, 8,
|
|
2039
|
+
}, null, 8, Cs)) : d("", !0),
|
|
1963
2040
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
1964
2041
|
key: `circle_line_${s}_${n}`
|
|
1965
2042
|
}, [
|
|
1966
|
-
!
|
|
2043
|
+
!Ea.value.linePlot && t && _e(t.value) || Ea.value.linePlot && t && _e(t.value) && (_.value !== null && _.value === n || O.value !== null && O.value === n) ? (u(), Ve(Dl, {
|
|
1967
2044
|
key: 0,
|
|
1968
2045
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1969
|
-
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${
|
|
2046
|
+
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${J.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
1970
2047
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1971
|
-
radius: _.value !== null && _.value === n || O.value !== null && O.value === n ? (
|
|
2048
|
+
radius: _.value !== null && _.value === n || O.value !== null && O.value === n ? (Ie.value.line || 6) * 1.5 : Ie.value.line || 6,
|
|
1972
2049
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1973
2050
|
strokeWidth: l.value.line.dot.strokeWidth
|
|
1974
2051
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1980,14 +2057,14 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
1980
2057
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1981
2058
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1982
2059
|
}, [
|
|
1983
|
-
g("div",
|
|
1984
|
-
|
|
2060
|
+
g("div", Ts, [
|
|
2061
|
+
Z(a.$slots, "plot-comment", {
|
|
1985
2062
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: n }
|
|
1986
2063
|
}, void 0, !0)
|
|
1987
2064
|
])
|
|
1988
|
-
], 8,
|
|
2065
|
+
], 8, Is)) : d("", !0)
|
|
1989
2066
|
], 64))), 128)),
|
|
1990
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(
|
|
2067
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(D)(e.plots).trend) ? (u(), r("g", Os, [
|
|
1991
2068
|
g("defs", null, [
|
|
1992
2069
|
g("marker", {
|
|
1993
2070
|
id: `line_arrow_${s}`,
|
|
@@ -2000,36 +2077,36 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2000
2077
|
g("polygon", {
|
|
2001
2078
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
2002
2079
|
fill: e.color
|
|
2003
|
-
}, null, 8,
|
|
2004
|
-
], 8,
|
|
2080
|
+
}, null, 8, Vs)
|
|
2081
|
+
], 8, Ns)
|
|
2005
2082
|
]),
|
|
2006
2083
|
e.plots.length > 1 ? (u(), r("line", {
|
|
2007
2084
|
key: 0,
|
|
2008
|
-
x1: v(
|
|
2009
|
-
x2: v(
|
|
2010
|
-
y1: v(B)(v(
|
|
2011
|
-
y2: v(B)(v(
|
|
2085
|
+
x1: v(D)(e.plots).x1,
|
|
2086
|
+
x2: v(D)(e.plots).x2,
|
|
2087
|
+
y1: v(B)(v(D)(e.plots).y1),
|
|
2088
|
+
y2: v(B)(v(D)(e.plots).y2),
|
|
2012
2089
|
"stroke-width": 1,
|
|
2013
2090
|
stroke: e.color,
|
|
2014
2091
|
"stroke-dasharray": 2,
|
|
2015
2092
|
"marker-end": `url(#line_arrow_${s})`
|
|
2016
|
-
}, null, 8,
|
|
2093
|
+
}, null, 8, Ps)) : d("", !0),
|
|
2017
2094
|
e.plots.length > 1 ? (u(), r("text", {
|
|
2018
2095
|
key: 1,
|
|
2019
2096
|
"text-anchor": "middle",
|
|
2020
|
-
x: v(
|
|
2021
|
-
y: v(
|
|
2097
|
+
x: v(D)(e.plots).x2,
|
|
2098
|
+
y: v(D)(e.plots).y2 - 6,
|
|
2022
2099
|
"font-size": x.value.plotLabels,
|
|
2023
2100
|
fill: e.color
|
|
2024
|
-
},
|
|
2025
|
-
v: v(
|
|
2101
|
+
}, se(v(Se)({
|
|
2102
|
+
v: v(D)(e.plots).trend * 100,
|
|
2026
2103
|
s: "%",
|
|
2027
2104
|
r: 2
|
|
2028
|
-
})), 9,
|
|
2105
|
+
})), 9, Hs)) : d("", !0)
|
|
2029
2106
|
])) : d("", !0)
|
|
2030
2107
|
], 6))), 128)),
|
|
2031
|
-
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), r("g",
|
|
2032
|
-
(u(!0), r(h, null, y(
|
|
2108
|
+
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), r("g", Bs, [
|
|
2109
|
+
(u(!0), r(h, null, y(We.value, (e, s) => (u(), r(h, {
|
|
2033
2110
|
key: `xLabel_bar_${s}`
|
|
2034
2111
|
}, [
|
|
2035
2112
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
@@ -2037,16 +2114,16 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2037
2114
|
}, [
|
|
2038
2115
|
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === n || O.value !== null && O.value === n) && l.value.bar.labels.show ? (u(), r("text", {
|
|
2039
2116
|
key: 0,
|
|
2040
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x +
|
|
2117
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Q.value.line / 2 : Fl(t) + Me() / 2 - Fe.value / 2,
|
|
2041
2118
|
y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2042
2119
|
"text-anchor": "middle",
|
|
2043
2120
|
"font-size": x.value.plotLabels,
|
|
2044
2121
|
fill: l.value.bar.labels.color,
|
|
2045
2122
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2046
|
-
},
|
|
2123
|
+
}, se(_e(t.value) ? v(fe)(
|
|
2047
2124
|
l.value.bar.labels.formatter,
|
|
2048
2125
|
t.value,
|
|
2049
|
-
v(
|
|
2126
|
+
v(Se)({
|
|
2050
2127
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2051
2128
|
v: t.value,
|
|
2052
2129
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2056,22 +2133,25 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2056
2133
|
datapoint: t,
|
|
2057
2134
|
serie: e
|
|
2058
2135
|
}
|
|
2059
|
-
) : ""), 13,
|
|
2136
|
+
) : ""), 13, Rs)) : d("", !0),
|
|
2060
2137
|
t && l.value.bar.serieName.show ? (u(), r("text", {
|
|
2061
2138
|
key: 1,
|
|
2062
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x +
|
|
2139
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Q.value.line / 2 : t.x + Me() * 1.1,
|
|
2063
2140
|
y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
|
|
2064
2141
|
"text-anchor": "middle",
|
|
2065
2142
|
"font-size": x.value.plotLabels,
|
|
2066
2143
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2067
2144
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2068
2145
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2069
|
-
},
|
|
2146
|
+
}, se(l.value.bar.serieName.useAbbreviation ? v(Qt)({
|
|
2147
|
+
source: e.name,
|
|
2148
|
+
length: l.value.bar.serieName.abbreviationSize
|
|
2149
|
+
}) : e.name), 13, Ys)) : d("", !0)
|
|
2070
2150
|
], 64))), 128))
|
|
2071
2151
|
], 64))), 128))
|
|
2072
2152
|
])) : d("", !0),
|
|
2073
|
-
l.value.plot.labels.show && f.value.dataLabels.show ? (u(), r("g",
|
|
2074
|
-
(u(!0), r(h, null, y(
|
|
2153
|
+
l.value.plot.labels.show && f.value.dataLabels.show ? (u(), r("g", Fs, [
|
|
2154
|
+
(u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r(h, {
|
|
2075
2155
|
key: `xLabel_plot_${s}`
|
|
2076
2156
|
}, [
|
|
2077
2157
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
@@ -2085,10 +2165,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2085
2165
|
"font-size": x.value.plotLabels,
|
|
2086
2166
|
fill: l.value.plot.labels.color,
|
|
2087
2167
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2088
|
-
},
|
|
2168
|
+
}, se(_e(t.value) ? v(fe)(
|
|
2089
2169
|
l.value.plot.labels.formatter,
|
|
2090
2170
|
t.value,
|
|
2091
|
-
v(
|
|
2171
|
+
v(Se)({
|
|
2092
2172
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2093
2173
|
v: t.value,
|
|
2094
2174
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2098,18 +2178,18 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2098
2178
|
datapoint: t,
|
|
2099
2179
|
serie: e
|
|
2100
2180
|
}
|
|
2101
|
-
) : ""), 13,
|
|
2181
|
+
) : ""), 13, Es)) : d("", !0)
|
|
2102
2182
|
], 64))), 128))
|
|
2103
2183
|
], 64))), 128))
|
|
2104
|
-
])) : (u(), r("g",
|
|
2105
|
-
(u(!0), r(h, null, y(
|
|
2184
|
+
])) : (u(), r("g", Ws, [
|
|
2185
|
+
(u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r(h, {
|
|
2106
2186
|
key: `xLabel_plot_${s}`
|
|
2107
2187
|
}, [
|
|
2108
2188
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
2109
2189
|
key: `xLabel_plot_${s}_${n}`
|
|
2110
2190
|
}, [
|
|
2111
2191
|
l.value.plot.tag.followValue ? (u(), r(h, { key: 1 }, [
|
|
2112
|
-
[O.value, _.value,
|
|
2192
|
+
[O.value, _.value, ll.value].includes(n) && e.useTag ? (u(), r("line", {
|
|
2113
2193
|
key: 0,
|
|
2114
2194
|
class: "vue-ui-xy-tag-plot",
|
|
2115
2195
|
x1: i.value.left,
|
|
@@ -2120,7 +2200,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2120
2200
|
"stroke-linecap": "round",
|
|
2121
2201
|
"stroke-dasharray": "2",
|
|
2122
2202
|
stroke: e.color
|
|
2123
|
-
}, null, 8,
|
|
2203
|
+
}, null, 8, qs)) : d("", !0)
|
|
2124
2204
|
], 64)) : (u(), r(h, { key: 0 }, [
|
|
2125
2205
|
t && n === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
|
|
2126
2206
|
key: 0,
|
|
@@ -2131,8 +2211,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2131
2211
|
style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2132
2212
|
}, [
|
|
2133
2213
|
g("div", {
|
|
2134
|
-
style: C(`padding: 3px; background:${v(
|
|
2135
|
-
innerHTML: v(
|
|
2214
|
+
style: C(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(qe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2215
|
+
innerHTML: v(fe)(
|
|
2136
2216
|
l.value.plot.tag.formatter,
|
|
2137
2217
|
t.value,
|
|
2138
2218
|
e.name,
|
|
@@ -2142,8 +2222,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2142
2222
|
serieName: e.name
|
|
2143
2223
|
}
|
|
2144
2224
|
)
|
|
2145
|
-
}, null, 12,
|
|
2146
|
-
], 12,
|
|
2225
|
+
}, null, 12, Xs)
|
|
2226
|
+
], 12, Gs)) : d("", !0),
|
|
2147
2227
|
t && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
|
|
2148
2228
|
key: 1,
|
|
2149
2229
|
x: t.x - e.name.length * (x.value.plotLabels / 2),
|
|
@@ -2153,8 +2233,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2153
2233
|
style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2154
2234
|
}, [
|
|
2155
2235
|
g("div", {
|
|
2156
|
-
style: C(`padding: 3px; background:${v(
|
|
2157
|
-
innerHTML: v(
|
|
2236
|
+
style: C(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(qe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2237
|
+
innerHTML: v(fe)(
|
|
2158
2238
|
l.value.plot.tag.formatter,
|
|
2159
2239
|
t.value,
|
|
2160
2240
|
e.name,
|
|
@@ -2164,14 +2244,14 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2164
2244
|
serieName: e.name
|
|
2165
2245
|
}
|
|
2166
2246
|
)
|
|
2167
|
-
}, null, 12,
|
|
2168
|
-
], 12,
|
|
2247
|
+
}, null, 12, Us)
|
|
2248
|
+
], 12, Ds)) : d("", !0)
|
|
2169
2249
|
], 64))
|
|
2170
2250
|
], 64))), 128))
|
|
2171
2251
|
], 64))), 128))
|
|
2172
2252
|
])),
|
|
2173
|
-
l.value.line.labels.show && f.value.dataLabels.show ? (u(), r("g",
|
|
2174
|
-
(u(!0), r(h, null, y(
|
|
2253
|
+
l.value.line.labels.show && f.value.dataLabels.show ? (u(), r("g", Zs, [
|
|
2254
|
+
(u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
|
|
2175
2255
|
key: `xLabel_line_${s}`
|
|
2176
2256
|
}, [
|
|
2177
2257
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
@@ -2185,10 +2265,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2185
2265
|
"font-size": x.value.plotLabels,
|
|
2186
2266
|
fill: l.value.line.labels.color,
|
|
2187
2267
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2188
|
-
},
|
|
2268
|
+
}, se(_e(t.value) ? v(fe)(
|
|
2189
2269
|
l.value.line.labels.formatter,
|
|
2190
2270
|
t.value,
|
|
2191
|
-
v(
|
|
2271
|
+
v(Se)({
|
|
2192
2272
|
p: e.prefix || l.value.chart.labels.prefix,
|
|
2193
2273
|
v: t.value,
|
|
2194
2274
|
s: e.suffix || l.value.chart.labels.suffix,
|
|
@@ -2198,18 +2278,18 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2198
2278
|
datapoint: t,
|
|
2199
2279
|
serie: e
|
|
2200
2280
|
}
|
|
2201
|
-
) : ""), 13,
|
|
2281
|
+
) : ""), 13, Js)) : d("", !0)
|
|
2202
2282
|
], 64))), 128))
|
|
2203
2283
|
], 64))), 128))
|
|
2204
|
-
])) : (u(), r("g",
|
|
2205
|
-
(u(!0), r(h, null, y(
|
|
2284
|
+
])) : (u(), r("g", Ks, [
|
|
2285
|
+
(u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
|
|
2206
2286
|
key: `xLabel_line_${s}`
|
|
2207
2287
|
}, [
|
|
2208
2288
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
2209
2289
|
key: `xLabel_line_${s}_${n}`
|
|
2210
2290
|
}, [
|
|
2211
2291
|
l.value.line.tag.followValue ? (u(), r(h, { key: 1 }, [
|
|
2212
|
-
[O.value, _.value,
|
|
2292
|
+
[O.value, _.value, ll.value].includes(n) && e.useTag ? (u(), r("line", {
|
|
2213
2293
|
key: 0,
|
|
2214
2294
|
class: "vue-ui-xy-tag-line",
|
|
2215
2295
|
x1: i.value.left,
|
|
@@ -2220,7 +2300,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2220
2300
|
"stroke-linecap": "round",
|
|
2221
2301
|
"stroke-dasharray": "2",
|
|
2222
2302
|
stroke: e.color
|
|
2223
|
-
}, null, 8,
|
|
2303
|
+
}, null, 8, au)) : d("", !0)
|
|
2224
2304
|
], 64)) : (u(), r(h, { key: 0 }, [
|
|
2225
2305
|
t && n === 0 && e.useTag && e.useTag === "start" ? (u(), r("foreignObject", {
|
|
2226
2306
|
key: 0,
|
|
@@ -2231,8 +2311,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2231
2311
|
style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2232
2312
|
}, [
|
|
2233
2313
|
g("div", {
|
|
2234
|
-
style: C(`padding: 3px; background:${v(
|
|
2235
|
-
innerHTML: v(
|
|
2314
|
+
style: C(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(qe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2315
|
+
innerHTML: v(fe)(
|
|
2236
2316
|
l.value.line.tag.formatter,
|
|
2237
2317
|
t.value,
|
|
2238
2318
|
e.name,
|
|
@@ -2242,8 +2322,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2242
2322
|
serieName: e.name
|
|
2243
2323
|
}
|
|
2244
2324
|
)
|
|
2245
|
-
}, null, 12,
|
|
2246
|
-
], 12,
|
|
2325
|
+
}, null, 12, js)
|
|
2326
|
+
], 12, Qs)) : d("", !0),
|
|
2247
2327
|
t && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), r("foreignObject", {
|
|
2248
2328
|
key: 1,
|
|
2249
2329
|
x: t.x,
|
|
@@ -2253,8 +2333,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2253
2333
|
style: C(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2254
2334
|
}, [
|
|
2255
2335
|
g("div", {
|
|
2256
|
-
style: C(`padding: 3px; background:${v(
|
|
2257
|
-
innerHTML: v(
|
|
2336
|
+
style: C(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(qe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2337
|
+
innerHTML: v(fe)(
|
|
2258
2338
|
l.value.line.tag.formatter,
|
|
2259
2339
|
t.value,
|
|
2260
2340
|
e.name,
|
|
@@ -2264,13 +2344,13 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2264
2344
|
serieName: e.name
|
|
2265
2345
|
}
|
|
2266
2346
|
)
|
|
2267
|
-
}, null, 12,
|
|
2268
|
-
], 12,
|
|
2347
|
+
}, null, 12, lu)
|
|
2348
|
+
], 12, eu)) : d("", !0)
|
|
2269
2349
|
], 64))
|
|
2270
2350
|
], 64))), 128))
|
|
2271
2351
|
], 64))), 128))
|
|
2272
2352
|
])),
|
|
2273
|
-
(u(!0), r(h, null, y(
|
|
2353
|
+
(u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
|
|
2274
2354
|
key: `xLabel_line_${s}`
|
|
2275
2355
|
}, [
|
|
2276
2356
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
@@ -2283,7 +2363,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2283
2363
|
"font-size": x.value.plotLabels,
|
|
2284
2364
|
"text-anchor": "end",
|
|
2285
2365
|
fill: e.color,
|
|
2286
|
-
innerHTML: v(
|
|
2366
|
+
innerHTML: v(Xl)({
|
|
2287
2367
|
content: e.name,
|
|
2288
2368
|
fontSize: x.value.plotLabels,
|
|
2289
2369
|
fill: e.color,
|
|
@@ -2292,7 +2372,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2292
2372
|
maxWords: 2
|
|
2293
2373
|
}),
|
|
2294
2374
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2295
|
-
}, null, 12,
|
|
2375
|
+
}, null, 12, tu)) : d("", !0),
|
|
2296
2376
|
t && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
|
|
2297
2377
|
key: 1,
|
|
2298
2378
|
x: t.x + x.value.plotLabels,
|
|
@@ -2300,7 +2380,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2300
2380
|
"font-size": x.value.plotLabels,
|
|
2301
2381
|
"text-anchor": "start",
|
|
2302
2382
|
fill: e.color,
|
|
2303
|
-
innerHTML: v(
|
|
2383
|
+
innerHTML: v(Xl)({
|
|
2304
2384
|
content: e.name,
|
|
2305
2385
|
fontSize: x.value.plotLabels,
|
|
2306
2386
|
fill: e.color,
|
|
@@ -2309,10 +2389,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2309
2389
|
maxWords: 2
|
|
2310
2390
|
}),
|
|
2311
2391
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2312
|
-
}, null, 12,
|
|
2392
|
+
}, null, 12, ou)) : d("", !0)
|
|
2313
2393
|
], 64))), 128))
|
|
2314
2394
|
], 64))), 128)),
|
|
2315
|
-
(u(!0), r(h, null, y(
|
|
2395
|
+
(u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r(h, {
|
|
2316
2396
|
key: `xLabel_plot_${s}`
|
|
2317
2397
|
}, [
|
|
2318
2398
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
@@ -2325,7 +2405,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2325
2405
|
"font-size": x.value.plotLabels,
|
|
2326
2406
|
"text-anchor": "end",
|
|
2327
2407
|
fill: e.color,
|
|
2328
|
-
innerHTML: v(
|
|
2408
|
+
innerHTML: v(Xl)({
|
|
2329
2409
|
content: e.name,
|
|
2330
2410
|
fontSize: x.value.plotLabels,
|
|
2331
2411
|
fill: e.color,
|
|
@@ -2334,7 +2414,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2334
2414
|
maxWords: 2
|
|
2335
2415
|
}),
|
|
2336
2416
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2337
|
-
}, null, 12,
|
|
2417
|
+
}, null, 12, su)) : d("", !0),
|
|
2338
2418
|
t && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), r("text", {
|
|
2339
2419
|
key: 1,
|
|
2340
2420
|
x: t.x + x.value.plotLabels,
|
|
@@ -2342,7 +2422,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2342
2422
|
"font-size": x.value.plotLabels,
|
|
2343
2423
|
"text-anchor": "start",
|
|
2344
2424
|
fill: e.color,
|
|
2345
|
-
innerHTML: v(
|
|
2425
|
+
innerHTML: v(Xl)({
|
|
2346
2426
|
content: e.name,
|
|
2347
2427
|
fontSize: x.value.plotLabels,
|
|
2348
2428
|
fill: e.color,
|
|
@@ -2351,13 +2431,13 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2351
2431
|
maxWords: 2
|
|
2352
2432
|
}),
|
|
2353
2433
|
style: C(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2354
|
-
}, null, 12,
|
|
2434
|
+
}, null, 12, uu)) : d("", !0)
|
|
2355
2435
|
], 64))), 128))
|
|
2356
2436
|
], 64))), 128)),
|
|
2357
2437
|
f.value.useIndividualScale && !f.value.isStacked ? (u(), r(h, { key: 12 }, [
|
|
2358
2438
|
g("defs", null, [
|
|
2359
|
-
(u(!0), r(h, null, y(
|
|
2360
|
-
id: `individual_scale_gradient_${
|
|
2439
|
+
(u(!0), r(h, null, y(wl.value, (e, s) => (u(), r("linearGradient", {
|
|
2440
|
+
id: `individual_scale_gradient_${J.value}_${s}`,
|
|
2361
2441
|
x1: "0%",
|
|
2362
2442
|
x2: "100%",
|
|
2363
2443
|
y1: "0%",
|
|
@@ -2367,52 +2447,52 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2367
2447
|
offset: "0%",
|
|
2368
2448
|
"stop-color": l.value.chart.backgroundColor,
|
|
2369
2449
|
"stop-opacity": "0"
|
|
2370
|
-
}, null, 8,
|
|
2450
|
+
}, null, 8, iu),
|
|
2371
2451
|
g("stop", {
|
|
2372
2452
|
offset: "100%",
|
|
2373
2453
|
"stop-color": e.color,
|
|
2374
2454
|
"stop-opacity": "0.2"
|
|
2375
|
-
}, null, 8,
|
|
2376
|
-
], 8,
|
|
2455
|
+
}, null, 8, nu)
|
|
2456
|
+
], 8, ru))), 256))
|
|
2377
2457
|
]),
|
|
2378
|
-
(u(!0), r(h, null, y(
|
|
2458
|
+
(u(!0), r(h, null, y(wl.value, (e, s) => (u(), r("rect", {
|
|
2379
2459
|
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + Y.value,
|
|
2380
2460
|
y: i.value.top,
|
|
2381
2461
|
width: l.value.chart.grid.labels.yAxis.labelWidth,
|
|
2382
2462
|
height: i.value.height < 0 ? 10 : i.value.height,
|
|
2383
|
-
fill: M.value === e.groupId ? `url(#individual_scale_gradient_${
|
|
2463
|
+
fill: M.value === e.groupId ? `url(#individual_scale_gradient_${J.value}_${s})` : "transparent",
|
|
2384
2464
|
onMouseenter: (t) => M.value = e.groupId,
|
|
2385
2465
|
onMouseleave: c[0] || (c[0] = (t) => M.value = null)
|
|
2386
|
-
}, null, 40,
|
|
2466
|
+
}, null, 40, cu))), 256))
|
|
2387
2467
|
], 64)) : d("", !0),
|
|
2388
2468
|
g("g", null, [
|
|
2389
2469
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), r("text", {
|
|
2390
2470
|
key: 0,
|
|
2391
2471
|
ref_key: "yAxisLabel",
|
|
2392
|
-
ref:
|
|
2472
|
+
ref: Qe,
|
|
2393
2473
|
"font-size": x.value.yAxis,
|
|
2394
2474
|
fill: l.value.chart.grid.labels.color,
|
|
2395
2475
|
transform: X.value ? void 0 : `translate(${x.value.yAxis + l.value.chart.grid.labels.axis.yLabelOffsetX}, ${i.value.top + i.value.height / 2}) rotate(-90)`,
|
|
2396
2476
|
"text-anchor": "middle",
|
|
2397
2477
|
style: { transition: "none" }
|
|
2398
|
-
},
|
|
2478
|
+
}, se(l.value.chart.grid.labels.axis.yLabel), 9, vu)) : d("", !0),
|
|
2399
2479
|
l.value.chart.grid.labels.axis.xLabel ? (u(), r("text", {
|
|
2400
2480
|
key: 1,
|
|
2401
2481
|
ref_key: "xAxisLabel",
|
|
2402
|
-
ref:
|
|
2482
|
+
ref: Ke,
|
|
2403
2483
|
"text-anchor": "middle",
|
|
2404
|
-
x: X.value ?
|
|
2484
|
+
x: X.value ? na.value.width / 2 - Math.abs(na.value.x) : K.value / 2,
|
|
2405
2485
|
y: X.value ? void 0 : i.value.bottom + x.value.yAxis + x.value.xAxis * 1.3 + l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
2406
2486
|
"font-size": x.value.yAxis,
|
|
2407
2487
|
fill: l.value.chart.grid.labels.color
|
|
2408
|
-
},
|
|
2488
|
+
}, se(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
|
|
2409
2489
|
]),
|
|
2410
2490
|
l.value.chart.grid.labels.xAxisLabels.show ? (u(), r("g", {
|
|
2411
2491
|
key: 13,
|
|
2412
2492
|
ref_key: "timeLabelsEls",
|
|
2413
|
-
ref:
|
|
2493
|
+
ref: Ol
|
|
2414
2494
|
}, [
|
|
2415
|
-
a.$slots["time-label"] ? (u(!0), r(h, { key: 0 }, y(
|
|
2495
|
+
a.$slots["time-label"] ? (u(!0), r(h, { key: 0 }, y(ge.value, (e, s) => Z(a.$slots, "time-label", xa({
|
|
2416
2496
|
key: `time_label_${s}`,
|
|
2417
2497
|
ref_for: !0
|
|
2418
2498
|
}, {
|
|
@@ -2424,11 +2504,11 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2424
2504
|
absoluteIndex: e.absoluteIndex,
|
|
2425
2505
|
content: e.text,
|
|
2426
2506
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2427
|
-
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s ===
|
|
2428
|
-
}), void 0, !0)), 128)) : (u(!0), r(h, { key: 1 }, y(
|
|
2507
|
+
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === ge.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2508
|
+
}), void 0, !0)), 128)) : (u(!0), r(h, { key: 1 }, y(ge.value, (e, s) => (u(), r("g", {
|
|
2429
2509
|
key: `time_label_${s}`
|
|
2430
2510
|
}, [
|
|
2431
|
-
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s ===
|
|
2511
|
+
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= l.value.chart.grid.labels.xAxisLabels.modulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === ge.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && _.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / l.value.chart.grid.labels.xAxisLabels.modulo) === 0 ? (u(), r(h, { key: 0 }, [
|
|
2432
2512
|
String(e.text).includes(`
|
|
2433
2513
|
`) ? (u(), r("text", {
|
|
2434
2514
|
key: 1,
|
|
@@ -2437,7 +2517,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2437
2517
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2438
2518
|
transform: X.value ? `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2439
2519
|
style: C({
|
|
2440
|
-
cursor:
|
|
2520
|
+
cursor: Ia() ? "pointer" : "default"
|
|
2441
2521
|
}),
|
|
2442
2522
|
innerHTML: v(jt)({
|
|
2443
2523
|
content: String(e.text),
|
|
@@ -2446,23 +2526,24 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2446
2526
|
x: 0,
|
|
2447
2527
|
y: 0
|
|
2448
2528
|
}),
|
|
2449
|
-
onClick: () =>
|
|
2450
|
-
}, null, 12,
|
|
2529
|
+
onClick: () => Na(e, s)
|
|
2530
|
+
}, null, 12, fu)) : (u(), r("text", {
|
|
2451
2531
|
key: 0,
|
|
2532
|
+
class: "vue-data-ui-time-label",
|
|
2452
2533
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2453
2534
|
"font-size": x.value.xAxis,
|
|
2454
2535
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2455
2536
|
transform: X.value ? `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${i.value.left + i.value.width / b.value * s + i.value.width / b.value / 2}, ${i.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2456
2537
|
style: C({
|
|
2457
|
-
cursor:
|
|
2538
|
+
cursor: Ia() ? "pointer" : "default"
|
|
2458
2539
|
}),
|
|
2459
|
-
onClick: () =>
|
|
2460
|
-
},
|
|
2540
|
+
onClick: () => Na(e, s)
|
|
2541
|
+
}, se(e.text || ""), 13, hu))
|
|
2461
2542
|
], 64)) : d("", !0)
|
|
2462
2543
|
]))), 128))
|
|
2463
2544
|
], 512)) : d("", !0),
|
|
2464
|
-
|
|
2465
|
-
(u(!0), r(h, null, y(
|
|
2545
|
+
Ga.value.length && !f.value.isStacked ? (u(), r("g", gu, [
|
|
2546
|
+
(u(!0), r(h, null, y(Ga.value, (e) => (u(), r("g", {
|
|
2466
2547
|
key: e.uid
|
|
2467
2548
|
}, [
|
|
2468
2549
|
e.yTop && e.show && isFinite(e.yTop) ? (u(), r("line", {
|
|
@@ -2476,7 +2557,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2476
2557
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2477
2558
|
"stroke-linecap": "round",
|
|
2478
2559
|
style: { animation: "none !important" }
|
|
2479
|
-
}, null, 8,
|
|
2560
|
+
}, null, 8, xu)) : d("", !0),
|
|
2480
2561
|
e.yBottom && e.show && isFinite(e.yBottom) ? (u(), r("line", {
|
|
2481
2562
|
key: 1,
|
|
2482
2563
|
x1: e.x1,
|
|
@@ -2488,17 +2569,17 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2488
2569
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2489
2570
|
"stroke-linecap": "round",
|
|
2490
2571
|
style: { animation: "none !important" }
|
|
2491
|
-
}, null, 8,
|
|
2572
|
+
}, null, 8, bu)) : d("", !0),
|
|
2492
2573
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), r("rect", {
|
|
2493
2574
|
key: 2,
|
|
2494
2575
|
y: Math.min(e.yTop, e.yBottom),
|
|
2495
2576
|
x: e.x1,
|
|
2496
2577
|
width: i.value.width,
|
|
2497
2578
|
height: v(T)(e.areaHeight, 0),
|
|
2498
|
-
fill: v(
|
|
2579
|
+
fill: v(Ce)(e.config.area.fill, e.config.area.opacity),
|
|
2499
2580
|
style: { animation: "none !important" }
|
|
2500
|
-
}, null, 8,
|
|
2501
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), r("rect",
|
|
2581
|
+
}, null, 8, mu)) : d("", !0),
|
|
2582
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), r("rect", xa({
|
|
2502
2583
|
key: 3,
|
|
2503
2584
|
class: "vue-ui-xy-annotation-label-box"
|
|
2504
2585
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
|
|
@@ -2511,10 +2592,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2511
2592
|
"font-size": e.config.label.fontSize,
|
|
2512
2593
|
fill: e.config.label.color,
|
|
2513
2594
|
"text-anchor": e.config.label.textAnchor
|
|
2514
|
-
},
|
|
2595
|
+
}, se(e.config.label.text), 9, yu)) : d("", !0)
|
|
2515
2596
|
]))), 128))
|
|
2516
2597
|
])) : d("", !0),
|
|
2517
|
-
|
|
2598
|
+
va.value ? (u(), r("g", pu, [
|
|
2518
2599
|
(u(!0), r(h, null, y(b.value, (e, s) => (u(), r("rect", {
|
|
2519
2600
|
key: `tooltip_trap_${s}`,
|
|
2520
2601
|
x: i.value.left + i.value.width / b.value * s,
|
|
@@ -2522,12 +2603,12 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2522
2603
|
height: i.value.height < 0 ? 10 : i.value.height,
|
|
2523
2604
|
width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
|
|
2524
2605
|
fill: "transparent",
|
|
2525
|
-
onMouseenter: (t) =>
|
|
2526
|
-
onMouseleave: c[1] || (c[1] = (t) =>
|
|
2606
|
+
onMouseenter: (t) => Ua(!0, s),
|
|
2607
|
+
onMouseleave: c[1] || (c[1] = (t) => Ua(!1)),
|
|
2527
2608
|
onClick: (t) => wt(s)
|
|
2528
|
-
}, null, 40,
|
|
2609
|
+
}, null, 40, ku))), 128))
|
|
2529
2610
|
])) : d("", !0),
|
|
2530
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g",
|
|
2611
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", _u, [
|
|
2531
2612
|
(u(), r("foreignObject", {
|
|
2532
2613
|
x: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) - 100 + i.value.width / b.value / 2,
|
|
2533
2614
|
y: i.value.bottom,
|
|
@@ -2538,69 +2619,69 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2538
2619
|
g("div", {
|
|
2539
2620
|
class: "vue-ui-xy-time-tag",
|
|
2540
2621
|
style: C(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
|
|
2541
|
-
},
|
|
2542
|
-
], 8,
|
|
2622
|
+
}, se(ge.value[(_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)].text || (_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)), 5)
|
|
2623
|
+
], 8, wu)),
|
|
2543
2624
|
g("circle", {
|
|
2544
2625
|
cx: i.value.left + i.value.width / b.value * ((_.value !== null ? _.value : 0) || (O.value !== null ? O.value : 0)) + i.value.width / b.value / 2,
|
|
2545
2626
|
cy: i.value.bottom,
|
|
2546
2627
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2547
2628
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
2548
|
-
}, null, 8,
|
|
2629
|
+
}, null, 8, Su)
|
|
2549
2630
|
])) : d("", !0)
|
|
2550
2631
|
])) : d("", !0),
|
|
2551
|
-
|
|
2632
|
+
Z(a.$slots, "svg", { svg: dt.value }, void 0, !0)
|
|
2552
2633
|
], 512)
|
|
2553
|
-
], 14,
|
|
2554
|
-
a.$slots.watermark ? (u(), r("div",
|
|
2555
|
-
|
|
2634
|
+
], 14, go)),
|
|
2635
|
+
a.$slots.watermark ? (u(), r("div", $u, [
|
|
2636
|
+
Z(a.$slots, "watermark", rl(il({ isPrinting: v(ia) || v(Aa) })), void 0, !0)
|
|
2556
2637
|
])) : d("", !0),
|
|
2557
|
-
(u(!0), r(h, null, y(
|
|
2638
|
+
(u(!0), r(h, null, y(ze.value, (e, s) => (u(), r(h, {
|
|
2558
2639
|
key: `tag_line_${s}`
|
|
2559
2640
|
}, [
|
|
2560
2641
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
2561
2642
|
key: `tag_line_${s}_${n}`
|
|
2562
2643
|
}, [
|
|
2563
|
-
[O.value, _.value,
|
|
2644
|
+
[O.value, _.value, ll.value].includes(n) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), r("div", {
|
|
2564
2645
|
key: 0,
|
|
2565
2646
|
ref_for: !0,
|
|
2566
|
-
ref: (o) =>
|
|
2647
|
+
ref: (o) => Rl(s, n, o, "right", "line"),
|
|
2567
2648
|
class: "vue-ui-xy-tag",
|
|
2568
2649
|
"data-tag": "right",
|
|
2569
2650
|
style: C({
|
|
2570
2651
|
position: "fixed",
|
|
2571
|
-
top: v(
|
|
2572
|
-
svgElement:
|
|
2652
|
+
top: v(Ze)({
|
|
2653
|
+
svgElement: $e.value,
|
|
2573
2654
|
x: i.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2574
2655
|
y: t.y,
|
|
2575
|
-
element:
|
|
2656
|
+
element: Be.value[`${s}_${n}_right_line`],
|
|
2576
2657
|
position: "right"
|
|
2577
2658
|
}).top + "px",
|
|
2578
|
-
left: v(
|
|
2579
|
-
svgElement:
|
|
2659
|
+
left: v(Ze)({
|
|
2660
|
+
svgElement: $e.value,
|
|
2580
2661
|
x: i.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2581
2662
|
y: t.y,
|
|
2582
|
-
element:
|
|
2663
|
+
element: Be.value[`${s}_${n}_right_line`],
|
|
2583
2664
|
position: "right"
|
|
2584
2665
|
}).left + "px",
|
|
2585
2666
|
height: "fit-content",
|
|
2586
2667
|
width: "fit-content",
|
|
2587
2668
|
background: e.color,
|
|
2588
|
-
color: v(
|
|
2669
|
+
color: v(qe)(e.color),
|
|
2589
2670
|
padding: "0 6px",
|
|
2590
2671
|
fontSize: l.value.line.tag.fontSize + "px",
|
|
2591
2672
|
opacity: 1
|
|
2592
2673
|
})
|
|
2593
2674
|
}, [
|
|
2594
|
-
(u(), r("svg",
|
|
2675
|
+
(u(), r("svg", Lu, [
|
|
2595
2676
|
g("path", {
|
|
2596
2677
|
d: "M 0,10 10,0 10,20 Z",
|
|
2597
2678
|
fill: e.color,
|
|
2598
2679
|
stroke: "none"
|
|
2599
|
-
}, null, 8,
|
|
2680
|
+
}, null, 8, Au)
|
|
2600
2681
|
])),
|
|
2601
2682
|
g("div", {
|
|
2602
2683
|
class: "vue-ui-xy-tag-content",
|
|
2603
|
-
innerHTML: v(
|
|
2684
|
+
innerHTML: v(fe)(
|
|
2604
2685
|
l.value.line.tag.formatter,
|
|
2605
2686
|
t.value,
|
|
2606
2687
|
e.name,
|
|
@@ -2610,49 +2691,49 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2610
2691
|
serieName: e.name
|
|
2611
2692
|
}
|
|
2612
2693
|
)
|
|
2613
|
-
}, null, 8,
|
|
2694
|
+
}, null, 8, Mu)
|
|
2614
2695
|
], 4)) : d("", !0),
|
|
2615
|
-
[O.value, _.value,
|
|
2696
|
+
[O.value, _.value, ll.value].includes(n) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), r("div", {
|
|
2616
2697
|
key: 1,
|
|
2617
2698
|
ref_for: !0,
|
|
2618
|
-
ref: (o) =>
|
|
2699
|
+
ref: (o) => Rl(s, n, o, "left", "line"),
|
|
2619
2700
|
class: "vue-ui-xy-tag",
|
|
2620
2701
|
"data-tag": "left",
|
|
2621
2702
|
style: C({
|
|
2622
2703
|
position: "fixed",
|
|
2623
|
-
top: v(
|
|
2624
|
-
svgElement:
|
|
2704
|
+
top: v(Ze)({
|
|
2705
|
+
svgElement: $e.value,
|
|
2625
2706
|
x: i.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2626
2707
|
y: t.y,
|
|
2627
|
-
element:
|
|
2708
|
+
element: Be.value[`${s}_${n}_left_line`],
|
|
2628
2709
|
position: "left"
|
|
2629
2710
|
}).top + "px",
|
|
2630
|
-
left: v(
|
|
2631
|
-
svgElement:
|
|
2711
|
+
left: v(Ze)({
|
|
2712
|
+
svgElement: $e.value,
|
|
2632
2713
|
x: i.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2633
2714
|
y: t.y,
|
|
2634
|
-
element:
|
|
2715
|
+
element: Be.value[`${s}_${n}_left_line`],
|
|
2635
2716
|
position: "left"
|
|
2636
2717
|
}).left + "px",
|
|
2637
2718
|
height: "fit-content",
|
|
2638
2719
|
width: "fit-content",
|
|
2639
2720
|
background: e.color,
|
|
2640
|
-
color: v(
|
|
2721
|
+
color: v(qe)(e.color),
|
|
2641
2722
|
padding: "0 6px",
|
|
2642
2723
|
fontSize: l.value.line.tag.fontSize + "px",
|
|
2643
2724
|
opacity: 1
|
|
2644
2725
|
})
|
|
2645
2726
|
}, [
|
|
2646
|
-
(u(), r("svg",
|
|
2727
|
+
(u(), r("svg", zu, [
|
|
2647
2728
|
g("path", {
|
|
2648
2729
|
d: "M 0,0 10,10 0,20 Z",
|
|
2649
2730
|
fill: e.color,
|
|
2650
2731
|
stroke: "none"
|
|
2651
|
-
}, null, 8,
|
|
2732
|
+
}, null, 8, Cu)
|
|
2652
2733
|
])),
|
|
2653
2734
|
g("div", {
|
|
2654
2735
|
class: "vue-ui-xy-tag-content",
|
|
2655
|
-
innerHTML: v(
|
|
2736
|
+
innerHTML: v(fe)(
|
|
2656
2737
|
l.value.line.tag.formatter,
|
|
2657
2738
|
t.value,
|
|
2658
2739
|
e.name,
|
|
@@ -2662,57 +2743,57 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2662
2743
|
serieName: e.name
|
|
2663
2744
|
}
|
|
2664
2745
|
)
|
|
2665
|
-
}, null, 8,
|
|
2746
|
+
}, null, 8, Iu)
|
|
2666
2747
|
], 4)) : d("", !0)
|
|
2667
2748
|
], 64))), 128))
|
|
2668
2749
|
], 64))), 128)),
|
|
2669
|
-
(u(!0), r(h, null, y(
|
|
2750
|
+
(u(!0), r(h, null, y(Oe.value, (e, s) => (u(), r(h, {
|
|
2670
2751
|
key: `tag_plot_${s}`
|
|
2671
2752
|
}, [
|
|
2672
2753
|
(u(!0), r(h, null, y(e.plots, (t, n) => (u(), r(h, {
|
|
2673
2754
|
key: `tag_plot_${s}_${n}`
|
|
2674
2755
|
}, [
|
|
2675
|
-
[O.value, _.value,
|
|
2756
|
+
[O.value, _.value, ll.value].includes(n) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), r("div", {
|
|
2676
2757
|
key: 0,
|
|
2677
2758
|
ref_for: !0,
|
|
2678
|
-
ref: (o) =>
|
|
2759
|
+
ref: (o) => Rl(s, n, o, "right", "plot"),
|
|
2679
2760
|
class: "vue-ui-xy-tag",
|
|
2680
2761
|
"data-tag": "right",
|
|
2681
2762
|
style: C({
|
|
2682
2763
|
position: "fixed",
|
|
2683
|
-
top: v(
|
|
2684
|
-
svgElement:
|
|
2764
|
+
top: v(Ze)({
|
|
2765
|
+
svgElement: $e.value,
|
|
2685
2766
|
x: i.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2686
2767
|
y: t.y,
|
|
2687
|
-
element:
|
|
2768
|
+
element: Be.value[`${s}_${n}_right_plot`],
|
|
2688
2769
|
position: "right"
|
|
2689
2770
|
}).top + "px",
|
|
2690
|
-
left: v(
|
|
2691
|
-
svgElement:
|
|
2771
|
+
left: v(Ze)({
|
|
2772
|
+
svgElement: $e.value,
|
|
2692
2773
|
x: i.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2693
2774
|
y: t.y,
|
|
2694
|
-
element:
|
|
2775
|
+
element: Be.value[`${s}_${n}_right_plot`],
|
|
2695
2776
|
position: "right"
|
|
2696
2777
|
}).left + "px",
|
|
2697
2778
|
height: "fit-content",
|
|
2698
2779
|
width: "fit-content",
|
|
2699
2780
|
background: e.color,
|
|
2700
|
-
color: v(
|
|
2781
|
+
color: v(qe)(e.color),
|
|
2701
2782
|
padding: "0 6px",
|
|
2702
2783
|
fontSize: l.value.plot.tag.fontSize + "px",
|
|
2703
2784
|
opacity: 1
|
|
2704
2785
|
})
|
|
2705
2786
|
}, [
|
|
2706
|
-
(u(), r("svg",
|
|
2787
|
+
(u(), r("svg", Tu, [
|
|
2707
2788
|
g("path", {
|
|
2708
2789
|
d: "M 0,10 10,0 10,20 Z",
|
|
2709
2790
|
fill: e.color,
|
|
2710
2791
|
stroke: "none"
|
|
2711
|
-
}, null, 8,
|
|
2792
|
+
}, null, 8, Ou)
|
|
2712
2793
|
])),
|
|
2713
2794
|
g("div", {
|
|
2714
2795
|
class: "vue-ui-xy-tag-content",
|
|
2715
|
-
innerHTML: v(
|
|
2796
|
+
innerHTML: v(fe)(
|
|
2716
2797
|
l.value.plot.tag.formatter,
|
|
2717
2798
|
t.value,
|
|
2718
2799
|
e.name,
|
|
@@ -2722,49 +2803,49 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2722
2803
|
serieName: e.name
|
|
2723
2804
|
}
|
|
2724
2805
|
)
|
|
2725
|
-
}, null, 8,
|
|
2806
|
+
}, null, 8, Nu)
|
|
2726
2807
|
], 4)) : d("", !0),
|
|
2727
|
-
[O.value, _.value,
|
|
2808
|
+
[O.value, _.value, ll.value].includes(n) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), r("div", {
|
|
2728
2809
|
key: 1,
|
|
2729
2810
|
ref_for: !0,
|
|
2730
|
-
ref: (o) =>
|
|
2811
|
+
ref: (o) => Rl(s, n, o, "left", "plot"),
|
|
2731
2812
|
class: "vue-ui-xy-tag",
|
|
2732
2813
|
"data-tag": "left",
|
|
2733
2814
|
style: C({
|
|
2734
2815
|
position: "fixed",
|
|
2735
|
-
top: v(
|
|
2736
|
-
svgElement:
|
|
2816
|
+
top: v(Ze)({
|
|
2817
|
+
svgElement: $e.value,
|
|
2737
2818
|
x: i.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2738
2819
|
y: t.y,
|
|
2739
|
-
element:
|
|
2820
|
+
element: Be.value[`${s}_${n}_left_plot`],
|
|
2740
2821
|
position: "left"
|
|
2741
2822
|
}).top + "px",
|
|
2742
|
-
left: v(
|
|
2743
|
-
svgElement:
|
|
2823
|
+
left: v(Ze)({
|
|
2824
|
+
svgElement: $e.value,
|
|
2744
2825
|
x: i.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2745
2826
|
y: t.y,
|
|
2746
|
-
element:
|
|
2827
|
+
element: Be.value[`${s}_${n}_left_plot`],
|
|
2747
2828
|
position: "left"
|
|
2748
2829
|
}).left + "px",
|
|
2749
2830
|
height: "fit-content",
|
|
2750
2831
|
width: "fit-content",
|
|
2751
2832
|
background: e.color,
|
|
2752
|
-
color: v(
|
|
2833
|
+
color: v(qe)(e.color),
|
|
2753
2834
|
padding: "0 6px",
|
|
2754
2835
|
fontSize: l.value.plot.tag.fontSize + "px",
|
|
2755
2836
|
opacity: 1
|
|
2756
2837
|
})
|
|
2757
2838
|
}, [
|
|
2758
|
-
(u(), r("svg",
|
|
2839
|
+
(u(), r("svg", Vu, [
|
|
2759
2840
|
g("path", {
|
|
2760
2841
|
d: "M 0,0 10,10 0,20 Z",
|
|
2761
2842
|
fill: e.color,
|
|
2762
2843
|
stroke: "none"
|
|
2763
|
-
}, null, 8,
|
|
2844
|
+
}, null, 8, Pu)
|
|
2764
2845
|
])),
|
|
2765
2846
|
g("div", {
|
|
2766
2847
|
class: "vue-ui-xy-tag-content",
|
|
2767
|
-
innerHTML: v(
|
|
2848
|
+
innerHTML: v(fe)(
|
|
2768
2849
|
l.value.plot.tag.formatter,
|
|
2769
2850
|
t.value,
|
|
2770
2851
|
e.name,
|
|
@@ -2774,19 +2855,19 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2774
2855
|
serieName: e.name
|
|
2775
2856
|
}
|
|
2776
2857
|
)
|
|
2777
|
-
}, null, 8,
|
|
2858
|
+
}, null, 8, Hu)
|
|
2778
2859
|
], 4)) : d("", !0)
|
|
2779
2860
|
], 64))), 128))
|
|
2780
2861
|
], 64))), 128)),
|
|
2781
|
-
l.value.chart.zoom.show &&
|
|
2862
|
+
l.value.chart.zoom.show && Ee.value > 6 && ua.value ? (u(), Ve(so, {
|
|
2782
2863
|
ref_key: "chartSlicer",
|
|
2783
|
-
ref:
|
|
2784
|
-
key: `slicer_${
|
|
2864
|
+
ref: U,
|
|
2865
|
+
key: `slicer_${aa.value}`,
|
|
2785
2866
|
background: l.value.chart.zoom.color,
|
|
2786
2867
|
fontSize: l.value.chart.zoom.fontSize,
|
|
2787
2868
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
2788
|
-
labelLeft:
|
|
2789
|
-
labelRight:
|
|
2869
|
+
labelLeft: ge.value[0].text,
|
|
2870
|
+
labelRight: ge.value.at(-1).text,
|
|
2790
2871
|
textColor: l.value.chart.color,
|
|
2791
2872
|
inputColor: l.value.chart.zoom.color,
|
|
2792
2873
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
@@ -2800,7 +2881,7 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2800
2881
|
minimapSelectedIndex: _.value,
|
|
2801
2882
|
minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
|
|
2802
2883
|
verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
|
|
2803
|
-
max:
|
|
2884
|
+
max: Ee.value,
|
|
2804
2885
|
min: 0,
|
|
2805
2886
|
valueStart: S.value.start,
|
|
2806
2887
|
valueEnd: S.value.end,
|
|
@@ -2809,30 +2890,30 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2809
2890
|
end: S.value.end,
|
|
2810
2891
|
"onUpdate:end": c[3] || (c[3] = (e) => S.value.end = e),
|
|
2811
2892
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
2812
|
-
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...
|
|
2893
|
+
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...bl.dataset.map((e) => v(Ue)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
|
|
2813
2894
|
enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
|
|
2814
2895
|
enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
|
|
2815
2896
|
onReset: _t,
|
|
2816
2897
|
onTrapMouse: yt
|
|
2817
2898
|
}, {
|
|
2818
|
-
"reset-action":
|
|
2819
|
-
|
|
2899
|
+
"reset-action": ne(({ reset: e }) => [
|
|
2900
|
+
Z(a.$slots, "reset-action", rl(il({ reset: e })), void 0, !0)
|
|
2820
2901
|
]),
|
|
2821
2902
|
_: 3
|
|
2822
2903
|
}, 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"])) : d("", !0),
|
|
2823
2904
|
l.value.chart.legend.show ? (u(), r("div", {
|
|
2824
2905
|
key: 6,
|
|
2825
2906
|
ref_key: "chartLegend",
|
|
2826
|
-
ref:
|
|
2907
|
+
ref: ke,
|
|
2827
2908
|
class: "vue-ui-xy-legend",
|
|
2828
2909
|
style: C(`font-size:${l.value.chart.legend.fontSize}px`)
|
|
2829
2910
|
}, [
|
|
2830
|
-
(u(!0), r(h, null, y(
|
|
2911
|
+
(u(!0), r(h, null, y(Te.value, (e, s) => (u(), r("div", {
|
|
2831
2912
|
key: `div_legend_item_${s}`,
|
|
2832
|
-
onClick: (t) =>
|
|
2833
|
-
class:
|
|
2913
|
+
onClick: (t) => Fa(e),
|
|
2914
|
+
class: ul({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ue.value.includes(e.id) })
|
|
2834
2915
|
}, [
|
|
2835
|
-
|
|
2916
|
+
yl.value[e.type] === "line" ? (u(), r("svg", Ru, [
|
|
2836
2917
|
g("rect", {
|
|
2837
2918
|
x: "0",
|
|
2838
2919
|
y: "7.5",
|
|
@@ -2842,8 +2923,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2842
2923
|
height: "3",
|
|
2843
2924
|
width: "20",
|
|
2844
2925
|
fill: e.color
|
|
2845
|
-
}, null, 8,
|
|
2846
|
-
|
|
2926
|
+
}, null, 8, Yu),
|
|
2927
|
+
Al(Dl, {
|
|
2847
2928
|
plot: { x: 10, y: 9 },
|
|
2848
2929
|
radius: 4,
|
|
2849
2930
|
color: e.color,
|
|
@@ -2851,8 +2932,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2851
2932
|
stroke: l.value.chart.backgroundColor,
|
|
2852
2933
|
strokeWidth: 0.5
|
|
2853
2934
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2854
|
-
])) :
|
|
2855
|
-
|
|
2935
|
+
])) : yl.value[e.type] === "bar" ? (u(), r("svg", Fu, [
|
|
2936
|
+
yl.value[e.type] === "bar" && a.$slots.pattern ? (u(), r("rect", {
|
|
2856
2937
|
key: 0,
|
|
2857
2938
|
x: "0",
|
|
2858
2939
|
y: "0",
|
|
@@ -2861,8 +2942,8 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2861
2942
|
width: "40",
|
|
2862
2943
|
stroke: "none",
|
|
2863
2944
|
fill: e.color
|
|
2864
|
-
}, null, 8,
|
|
2865
|
-
|
|
2945
|
+
}, null, 8, Eu)) : d("", !0),
|
|
2946
|
+
yl.value[e.type] === "bar" ? (u(), r("rect", {
|
|
2866
2947
|
key: 1,
|
|
2867
2948
|
x: "0",
|
|
2868
2949
|
y: "0",
|
|
@@ -2870,10 +2951,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2870
2951
|
height: "40",
|
|
2871
2952
|
width: "40",
|
|
2872
2953
|
stroke: "none",
|
|
2873
|
-
fill: a.$slots.pattern ? `url(#pattern_${
|
|
2874
|
-
}, null, 8,
|
|
2875
|
-
])) : (u(), r("svg",
|
|
2876
|
-
|
|
2954
|
+
fill: a.$slots.pattern ? `url(#pattern_${J.value}_${e.slotAbsoluteIndex})` : e.color
|
|
2955
|
+
}, null, 8, Wu)) : d("", !0)
|
|
2956
|
+
])) : (u(), r("svg", Gu, [
|
|
2957
|
+
Al(Dl, {
|
|
2877
2958
|
plot: { x: 6, y: 6 },
|
|
2878
2959
|
radius: 5,
|
|
2879
2960
|
color: e.color,
|
|
@@ -2882,25 +2963,25 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2882
2963
|
])),
|
|
2883
2964
|
g("span", {
|
|
2884
2965
|
style: C(`color:${l.value.chart.legend.color}`)
|
|
2885
|
-
},
|
|
2886
|
-
], 10,
|
|
2966
|
+
}, se(e.name), 5)
|
|
2967
|
+
], 10, Bu))), 128))
|
|
2887
2968
|
], 4)) : (u(), r("div", {
|
|
2888
2969
|
key: 7,
|
|
2889
2970
|
ref_key: "chartLegend",
|
|
2890
|
-
ref:
|
|
2971
|
+
ref: ke
|
|
2891
2972
|
}, [
|
|
2892
|
-
|
|
2973
|
+
Z(a.$slots, "legend", { legend: Te.value }, void 0, !0)
|
|
2893
2974
|
], 512)),
|
|
2894
2975
|
a.$slots.source ? (u(), r("div", {
|
|
2895
2976
|
key: 8,
|
|
2896
2977
|
ref_key: "source",
|
|
2897
|
-
ref:
|
|
2978
|
+
ref: He,
|
|
2898
2979
|
dir: "auto"
|
|
2899
2980
|
}, [
|
|
2900
|
-
|
|
2981
|
+
Z(a.$slots, "source", {}, void 0, !0)
|
|
2901
2982
|
], 512)) : d("", !0),
|
|
2902
|
-
|
|
2903
|
-
show: f.value.showTooltip &&
|
|
2983
|
+
Al(v(ql), {
|
|
2984
|
+
show: f.value.showTooltip && ka.value,
|
|
2904
2985
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
2905
2986
|
color: l.value.chart.tooltip.color,
|
|
2906
2987
|
fontSize: l.value.chart.tooltip.fontSize,
|
|
@@ -2912,18 +2993,18 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2912
2993
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
2913
2994
|
parent: a.$refs.chart,
|
|
2914
2995
|
content: Nt.value,
|
|
2915
|
-
isFullscreen:
|
|
2996
|
+
isFullscreen: hl.value,
|
|
2916
2997
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
|
|
2917
2998
|
}, {
|
|
2918
|
-
"tooltip-before":
|
|
2919
|
-
|
|
2999
|
+
"tooltip-before": ne(() => [
|
|
3000
|
+
Z(a.$slots, "tooltip-before", rl(il({ ...Xa.value })), void 0, !0)
|
|
2920
3001
|
]),
|
|
2921
|
-
"tooltip-after":
|
|
2922
|
-
|
|
3002
|
+
"tooltip-after": ne(() => [
|
|
3003
|
+
Z(a.$slots, "tooltip-after", rl(il({ ...Xa.value })), void 0, !0)
|
|
2923
3004
|
]),
|
|
2924
3005
|
_: 3
|
|
2925
3006
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2926
|
-
|
|
3007
|
+
ua.value ? (u(), Ve(v(ml), {
|
|
2927
3008
|
key: 9,
|
|
2928
3009
|
hideDetails: "",
|
|
2929
3010
|
config: {
|
|
@@ -2939,46 +3020,46 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2939
3020
|
}
|
|
2940
3021
|
}
|
|
2941
3022
|
}, {
|
|
2942
|
-
content:
|
|
3023
|
+
content: ne(() => [
|
|
2943
3024
|
g("div", {
|
|
2944
|
-
style: C(`${v(
|
|
3025
|
+
style: C(`${v(ia) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2945
3026
|
}, [
|
|
2946
|
-
g("div",
|
|
3027
|
+
g("div", Xu, [
|
|
2947
3028
|
Yt(g("input", {
|
|
2948
3029
|
type: "checkbox",
|
|
2949
|
-
"onUpdate:modelValue": c[4] || (c[4] = (e) =>
|
|
3030
|
+
"onUpdate:modelValue": c[4] || (c[4] = (e) => pl.value = e)
|
|
2950
3031
|
}, null, 512), [
|
|
2951
|
-
[Ft,
|
|
3032
|
+
[Ft, pl.value]
|
|
2952
3033
|
]),
|
|
2953
3034
|
g("div", {
|
|
2954
|
-
onClick: c[5] || (c[5] = (e) =>
|
|
3035
|
+
onClick: c[5] || (c[5] = (e) => pl.value = !pl.value),
|
|
2955
3036
|
style: { cursor: "pointer" }
|
|
2956
3037
|
}, [
|
|
2957
|
-
|
|
3038
|
+
Al(v(Jl), {
|
|
2958
3039
|
name: "chartLine",
|
|
2959
3040
|
size: 20,
|
|
2960
3041
|
stroke: l.value.chart.color
|
|
2961
3042
|
}, null, 8, ["stroke"])
|
|
2962
3043
|
])
|
|
2963
3044
|
]),
|
|
2964
|
-
|
|
2965
|
-
key: `sparkline_${
|
|
3045
|
+
pl.value ? (u(), Ve(v(Kl), {
|
|
3046
|
+
key: `sparkline_${ta.value}`,
|
|
2966
3047
|
dataset: Ct.value,
|
|
2967
3048
|
config: It.value
|
|
2968
|
-
}, null, 8, ["dataset", "config"])) : (u(),
|
|
2969
|
-
key: `table_${
|
|
2970
|
-
colNames:
|
|
2971
|
-
head:
|
|
2972
|
-
body:
|
|
2973
|
-
config:
|
|
3049
|
+
}, null, 8, ["dataset", "config"])) : (u(), Ve(v(vl), {
|
|
3050
|
+
key: `table_${wa.value}`,
|
|
3051
|
+
colNames: El.value.colNames,
|
|
3052
|
+
head: El.value.head,
|
|
3053
|
+
body: El.value.body,
|
|
3054
|
+
config: El.value.config,
|
|
2974
3055
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
2975
3056
|
onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
|
|
2976
3057
|
}, {
|
|
2977
|
-
th:
|
|
2978
|
-
g("div", { innerHTML: e }, null, 8,
|
|
3058
|
+
th: ne(({ th: e }) => [
|
|
3059
|
+
g("div", { innerHTML: e }, null, 8, Du)
|
|
2979
3060
|
]),
|
|
2980
|
-
td:
|
|
2981
|
-
Et(
|
|
3061
|
+
td: ne(({ td: e }) => [
|
|
3062
|
+
Et(se(isNaN(Number(e)) ? e : v(Se)({
|
|
2982
3063
|
p: l.value.chart.labels.prefix,
|
|
2983
3064
|
v: e,
|
|
2984
3065
|
s: l.value.chart.labels.suffix,
|
|
@@ -2991,10 +3072,10 @@ const ho = ["id"], fo = ["width", "viewBox", "aria-label"], go = ["x", "y", "wid
|
|
|
2991
3072
|
]),
|
|
2992
3073
|
_: 1
|
|
2993
3074
|
}, 8, ["config"])) : d("", !0),
|
|
2994
|
-
v(
|
|
2995
|
-
], 46,
|
|
3075
|
+
v(ra) ? (u(), Ve(co, { key: 10 })) : d("", !0)
|
|
3076
|
+
], 46, fo));
|
|
2996
3077
|
}
|
|
2997
|
-
},
|
|
3078
|
+
}, sr = /* @__PURE__ */ vo(Uu, [["__scopeId", "data-v-7fe9df32"]]);
|
|
2998
3079
|
export {
|
|
2999
|
-
|
|
3080
|
+
sr as default
|
|
3000
3081
|
};
|