vue-data-ui 3.0.0-next.11 → 3.0.0-next.13
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-BumHStgn.js → Arrow-Do8J5S6a.js} +1 -1
- package/dist/{BaseDraggableDialog-DyfbXmZG.js → BaseDraggableDialog-DZ7qBheP.js} +2 -2
- package/dist/{BaseIcon-Csn-zJvC.js → BaseIcon-DX9DjPMg.js} +1 -1
- package/dist/{ColorPicker-BgmqqeH1.js → ColorPicker-DbZPi3Xv.js} +2 -2
- package/dist/{DataTable-YE6ic3rt.js → DataTable-cmb1Metv.js} +2 -2
- package/dist/{Legend-4BgVMpri.js → Legend-CSNsl0JV.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B0mzIi05.js → NonSvgPenAndPaper-Cj2Dc2Uv.js} +3 -3
- package/dist/{PackageVersion-B2CeOoV6.js → PackageVersion-Dgl3IrnB.js} +1 -1
- package/dist/{PenAndPaper-BFQVPcRp.js → PenAndPaper-4UGr-SYK.js} +3 -3
- package/dist/{Shape-CroY0C3X.js → Shape-DCFfysgG.js} +1 -1
- package/dist/{Slicer-DyOgqjbE.js → Slicer-C_jORT8d.js} +2 -2
- package/dist/{SparkTooltip-CN9w85q0.js → SparkTooltip-BMl6x26N.js} +1 -1
- package/dist/{Title-DjBxXxcf.js → Title-De5tLEvZ.js} +1 -1
- package/dist/{Tooltip-B1tfk8HO.js → Tooltip-D9udFJl-.js} +1 -1
- package/dist/{UserOptions-D5NKm1p2.js → UserOptions-B_n7ExUf.js} +2 -2
- package/dist/{dom-to-png-CLXgpFrO.js → dom-to-png-Cyi6Nfs5.js} +1 -1
- package/dist/{img-COyqv7Eu.js → img-3v1vnVrg.js} +1 -1
- package/dist/{index-B18WZMC2.js → index-DV6uvUlY.js} +1 -1
- package/dist/{pdf-0V6KaoQ7.js → pdf-C8peQT7N.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BAA7pZpP.js → useNestedProp-BcloTmZF.js} +1 -1
- package/dist/{usePrinter-DLC5qcfA.js → usePrinter-zB6NLrs-.js} +2 -2
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DFkUfjfs.js} +209 -157
- package/dist/{vue-data-ui-MD7Usulv.js → vue-data-ui-doRVjkDI.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C5DWtmzR.js → vue-ui-3d-bar-CtesRI02.js} +6 -6
- package/dist/{vue-ui-accordion-DIEZJTdv.js → vue-ui-accordion-BnI1ySue.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CKCNoYVa.js → vue-ui-age-pyramid-CtNunkQn.js} +6 -6
- package/dist/{vue-ui-annotator-xIlsj0ow.js → vue-ui-annotator-wfv7F4_5.js} +2 -2
- package/dist/{vue-ui-bullet-BnVP2CnB.js → vue-ui-bullet-BH8fZyGQ.js} +7 -7
- package/dist/{vue-ui-candlestick-M1qRCtKh.js → vue-ui-candlestick-VUc7RE2O.js} +8 -8
- package/dist/{vue-ui-carousel-table-B7yAHP4d.js → vue-ui-carousel-table-DIteOLNb.js} +4 -4
- package/dist/{vue-ui-chestnut-BG33-M3B.js → vue-ui-chestnut-CuRL1QGa.js} +5 -5
- package/dist/{vue-ui-chord-C7WpP8-j.js → vue-ui-chord-qu5plL_S.js} +8 -8
- package/dist/{vue-ui-circle-pack-DulF_bkK.js → vue-ui-circle-pack-BjA-EzUz.js} +6 -6
- package/dist/{vue-ui-cursor-ME0Ma6vw.js → vue-ui-cursor-B9fMSAVt.js} +2 -2
- package/dist/{vue-ui-dashboard-qKsER9Ef.js → vue-ui-dashboard-DJB8hy3x.js} +62 -62
- package/dist/{vue-ui-digits-CW7nPiL_.js → vue-ui-digits-B7-RpbFt.js} +2 -2
- package/dist/{vue-ui-donut-P1t5iVGi.js → vue-ui-donut-DtFdP988.js} +8 -8
- package/dist/{vue-ui-donut-evolution-CYR0d7cC.js → vue-ui-donut-evolution-D3P75Rmq.js} +9 -9
- package/dist/{vue-ui-dumbbell-BVm8h0Qm.js → vue-ui-dumbbell-igZHrqHW.js} +7 -7
- package/dist/{vue-ui-flow-DyrILcXF.js → vue-ui-flow-CH2kwOJ-.js} +7 -7
- package/dist/{vue-ui-funnel-B3LqNMLp.js → vue-ui-funnel-D7Bx360X.js} +6 -6
- package/dist/{vue-ui-galaxy-C_EjDJja.js → vue-ui-galaxy-D1fKG9Cz.js} +5 -5
- package/dist/{vue-ui-gauge-BeprNkTE.js → vue-ui-gauge-B-4B3Ayg.js} +6 -6
- package/dist/{vue-ui-gizmo-CkY_o73P.js → vue-ui-gizmo-DXiJW3GI.js} +3 -3
- package/dist/{vue-ui-heatmap-GPKe2arO.js → vue-ui-heatmap-TVemx-g3.js} +7 -7
- package/dist/{vue-ui-history-plot-BQUFj1WW.js → vue-ui-history-plot-DT6XKHxP.js} +7 -7
- package/dist/{vue-ui-kpi-HkdRfRqI.js → vue-ui-kpi-BwDoDqHZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-3eS6UMnq.js → vue-ui-mini-loader-DbEJOq5o.js} +2 -2
- package/dist/{vue-ui-molecule-Bn49jRpg.js → vue-ui-molecule-Ca_-0Jm0.js} +5 -5
- package/dist/{vue-ui-mood-radar-DPfbDZli.js → vue-ui-mood-radar-Cj2Oa1Y6.js} +7 -7
- package/dist/{vue-ui-nested-donuts-5u4edBxG.js → vue-ui-nested-donuts-C_uNTRdB.js} +9 -9
- package/dist/{vue-ui-onion-CppkCdS5.js → vue-ui-onion-Cm-mIeDX.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot--kTjU5iF.js → vue-ui-parallel-coordinate-plot-D11qA4Mp.js} +8 -8
- package/dist/{vue-ui-quadrant-YB5C-Jyz.js → vue-ui-quadrant-CaU5zB0k.js} +8 -8
- package/dist/{vue-ui-quick-chart-BwJ0A3y7.js → vue-ui-quick-chart-jk27updG.js} +7 -7
- package/dist/{vue-ui-radar-m2VREfJ3.js → vue-ui-radar-CUFPB5bN.js} +7 -7
- package/dist/{vue-ui-rating-B3xY-5Ct.js → vue-ui-rating-Ba4wFuw5.js} +2 -2
- package/dist/{vue-ui-relation-circle-Ctv0sXIL.js → vue-ui-relation-circle-BbXikHh_.js} +6 -6
- package/dist/{vue-ui-ridgeline-CaIoiE4c.js → vue-ui-ridgeline-D0xofuMM.js} +9 -9
- package/dist/{vue-ui-rings-CI3IrgPj.js → vue-ui-rings-BWCaDVjD.js} +8 -8
- package/dist/{vue-ui-scatter-BNF6S6vu.js → vue-ui-scatter-B_NDfmVM.js} +8 -8
- package/dist/{vue-ui-skeleton-CLPCQOVA.js → vue-ui-skeleton-BFmUTQwZ.js} +3 -3
- package/dist/{vue-ui-smiley-PgGrSc7E.js → vue-ui-smiley-Du4-MZFt.js} +2 -2
- package/dist/{vue-ui-spark-trend-iSacmLGA.js → vue-ui-spark-trend-Bt8cz9kR.js} +3 -3
- package/dist/{vue-ui-sparkbar-CoeD9mlr.js → vue-ui-sparkbar-DLFCFgfx.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B6f-axxi.js → vue-ui-sparkgauge-DylX64Fs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BCwY3f-T.js → vue-ui-sparkhistogram-Dp5by-Ai.js} +4 -4
- package/dist/{vue-ui-sparkline-Csaoql_D.js → vue-ui-sparkline-Dbk9w_eP.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-H5_Xfbaw.js → vue-ui-sparkstackbar-BR8_wwma.js} +3 -3
- package/dist/{vue-ui-stackbar-Ji3QYGxJ.js → vue-ui-stackbar-BQyXqmA1.js} +10 -10
- package/dist/{vue-ui-strip-plot-CGEoBzlE.js → vue-ui-strip-plot-DO8ORP_r.js} +7 -7
- package/dist/{vue-ui-table-CePfC3ck.js → vue-ui-table-BXYKw-jU.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DPx5azsf.js → vue-ui-table-heatmap-C3NJYFeA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B-qp1qwJ.js → vue-ui-table-sparkline-B-JaCMy8.js} +4 -4
- package/dist/{vue-ui-thermometer-BRs_SXB2.js → vue-ui-thermometer-CBn8Qk9P.js} +6 -6
- package/dist/{vue-ui-timer-C_j66dVp.js → vue-ui-timer-DN-UYQVj.js} +5 -5
- package/dist/{vue-ui-tiremarks-CSITqWtv.js → vue-ui-tiremarks-CnypAikp.js} +6 -6
- package/dist/{vue-ui-treemap-C4Dy0F4V.js → vue-ui-treemap-B1_0MG5i.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BVswRq0k.js → vue-ui-vertical-bar-ByjDnpZg.js} +9 -9
- package/dist/{vue-ui-waffle-T8I_kqvp.js → vue-ui-waffle-CgA7ufSJ.js} +8 -8
- package/dist/{vue-ui-wheel-BQYMyG3z.js → vue-ui-wheel-CjI8K463.js} +6 -6
- package/dist/{vue-ui-word-cloud-DmyW8XBk.js → vue-ui-word-cloud-BnIFBHwB.js} +6 -6
- package/dist/{vue-ui-world-JR5N3N6l.js → vue-ui-world-CGD0LnIV.js} +6 -6
- package/dist/{vue-ui-xy-Dc1q6qyo.js → vue-ui-xy-DXcd5juu.js} +786 -785
- package/dist/{vue-ui-xy-canvas-BQzv88tD.js → vue-ui-xy-canvas-B6rNloCG.js} +9 -9
- package/package.json +1 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { defineAsyncComponent as Fe, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { S as
|
|
6
|
-
import
|
|
7
|
-
import { _ as Ol } from "./Shape-
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
13
|
-
key:
|
|
1
|
+
import { defineAsyncComponent as Fe, useSlots as Ot, getCurrentInstance as Nt, ref as _, computed as A, onMounted as la, toRefs as Vt, onBeforeUnmount as Ea, watch as Cl, nextTick as me, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ke, createBlock as Ie, createCommentVNode as d, createVNode as yl, unref as c, createSlots as Pt, withCtx as se, renderSlot as U, normalizeProps as Qe, guardReactiveProps as je, createElementVNode as b, Fragment as h, renderList as m, toDisplayString as ee, mergeProps as aa, withDirectives as Ht, vModelCheckbox as Rt, createTextVNode as Bt } from "vue";
|
|
2
|
+
import { u as Yt, c as ta, e as oa, A as Ft, a5 as Ee, b as Et, D as pl, ab as el, d as Wt, p as Gt, ac as Il, ad as Xt, v as T, ae as Wa, V as Ga, af as Xa, U as Da, ag as Dt, ah as Ua, ai as qa, x as Ut, y as qt, _ as Za, R as Te, i as ce, f as ye, aa as H, w as ll, s as $e, a8 as W, L as Zt, F as We, aj as Tl, I as Jt, ak as Ge, C as ul, t as Kt, a as Qt, o as Ja, q as jt, r as eo, E as il } from "./index-DV6uvUlY.js";
|
|
3
|
+
import { u as sa } from "./useNestedProp-BcloTmZF.js";
|
|
4
|
+
import { u as lo } from "./useTimeLabels-DFkUfjfs.js";
|
|
5
|
+
import { S as ao } from "./Slicer-C_jORT8d.js";
|
|
6
|
+
import to from "./Title-De5tLEvZ.js";
|
|
7
|
+
import { _ as Ol } from "./Shape-DCFfysgG.js";
|
|
8
|
+
import oo from "./img-3v1vnVrg.js";
|
|
9
|
+
import { u as so } from "./usePrinter-zB6NLrs-.js";
|
|
10
|
+
import { u as uo, B as io } from "./useLoading-Bt5Doa8m.js";
|
|
11
|
+
import { _ as ro } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const no = ["id"], co = ["width", "viewBox", "aria-label"], vo = ["x", "y", "width", "height"], ho = { key: 1 }, fo = { class: "vue-ui-xy-grid" }, go = ["stroke", "x1", "x2", "y1", "y2"], xo = ["stroke", "x1", "x2", "y1", "y2"], bo = { key: 1 }, mo = ["x1", "x2", "y1", "y2", "stroke"], yo = ["x1", "x2", "y1", "y2", "stroke"], po = ["x1", "x2", "y1", "y2", "stroke"], ko = { key: 3 }, _o = ["x1", "x2", "y1", "y2", "stroke"], wo = { key: 4 }, So = ["y1", "y2", "x1", "x2", "stroke"], $o = ["id"], Lo = ["stop-color"], Ao = ["stop-color"], Mo = ["stop-color"], zo = ["id"], Co = ["stop-color"], Io = ["stop-color"], To = ["stop-color"], Oo = ["id"], No = ["stop-color"], Vo = ["stop-color"], Po = ["id"], Ho = ["stop-color"], Ro = ["stop-color"], Bo = ["id"], Yo = ["stop-color"], Fo = ["stop-color"], Eo = ["x", "y", "height", "width", "fill"], Wo = ["x", "y", "width"], Go = { key: 0 }, Xo = ["x", "y", "height", "width", "fill"], Do = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Uo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], qo = ["width", "x", "y"], Zo = { key: 0 }, Jo = ["id"], Ko = ["fill"], Qo = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], jo = ["x", "y", "font-size", "fill"], es = ["stroke", "x1", "x2", "y1", "y2"], ls = { key: 3 }, as = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ts = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], os = {
|
|
13
|
+
key: 5,
|
|
14
14
|
ref: "scaleLabels"
|
|
15
|
-
},
|
|
16
|
-
key:
|
|
15
|
+
}, ss = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], us = ["fill", "font-size", "transform"], is = ["x1", "x2", "y1", "y2", "stroke"], rs = ["x", "y", "font-size", "fill"], ns = ["x1", "x2", "y1", "y2", "stroke"], cs = ["x", "y", "font-size", "fill"], vs = ["width", "x", "y"], ds = { style: { width: "100%" } }, hs = { key: 0 }, fs = ["id"], gs = ["fill"], xs = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], bs = ["x", "y", "font-size", "fill"], ms = ["d", "stroke", "stroke-width", "stroke-dasharray"], ys = ["d", "stroke", "stroke-width", "stroke-dasharray"], ps = { key: 6 }, ks = { key: 0 }, _s = ["d", "fill"], ws = ["d", "fill"], Ss = ["d", "fill"], $s = ["d", "fill"], Ls = ["d", "stroke", "stroke-width", "stroke-dasharray"], As = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ms = ["width", "x", "y"], zs = { style: { width: "100%" } }, Cs = { key: 3 }, Is = ["id"], Ts = ["fill"], Os = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ns = ["x", "y", "font-size", "fill"], Vs = { key: 7 }, Ps = ["x", "y", "font-size", "fill"], Hs = ["x", "y", "font-size", "fill", "font-weight"], Rs = { key: 8 }, Bs = ["x", "y", "font-size", "fill"], Ys = { key: 9 }, Fs = ["x", "y"], Es = ["innerHTML"], Ws = ["x", "y"], Gs = ["innerHTML"], Xs = ["x1", "x2", "y1", "y2", "stroke"], Ds = { key: 10 }, Us = ["x", "y", "font-size", "fill"], qs = { key: 11 }, Zs = ["x", "y"], Js = ["innerHTML"], Ks = ["x", "y"], Qs = ["innerHTML"], js = ["x1", "x2", "y1", "y2", "stroke"], eu = ["x", "y", "font-size", "fill", "innerHTML"], lu = ["x", "y", "font-size", "fill", "innerHTML"], au = ["x", "y", "font-size", "fill", "innerHTML"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["id"], su = ["stop-color"], uu = ["stop-color"], iu = ["x", "y", "width", "height", "fill", "onMouseenter"], ru = ["font-size", "fill", "transform"], nu = ["x", "y", "font-size", "fill"], cu = ["text-anchor", "font-size", "fill", "transform", "onClick"], vu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], du = { key: 14 }, hu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], fu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], gu = ["y", "x", "width", "height", "fill"], xu = ["id", "x", "y", "font-size", "fill", "text-anchor"], bu = { key: 15 }, mu = ["x", "y", "height", "width", "onMouseenter", "onClick"], yu = {
|
|
16
|
+
key: 16,
|
|
17
17
|
style: { "pointer-events": "none" }
|
|
18
|
-
},
|
|
18
|
+
}, pu = ["x", "y"], ku = ["cx", "cy", "r", "fill"], _u = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
21
|
+
}, wu = {
|
|
22
22
|
class: "vue-ui-xy-tag-arrow",
|
|
23
23
|
height: "20",
|
|
24
24
|
viewBox: "0 0 10 20",
|
|
25
25
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
26
|
-
},
|
|
26
|
+
}, Su = ["fill"], $u = ["innerHTML"], Lu = {
|
|
27
27
|
class: "vue-ui-xy-tag-arrow",
|
|
28
28
|
height: "100%",
|
|
29
29
|
viewBox: "0 0 10 20",
|
|
30
30
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
31
|
-
},
|
|
31
|
+
}, Au = ["fill"], Mu = ["innerHTML"], zu = {
|
|
32
32
|
class: "vue-ui-xy-tag-arrow",
|
|
33
33
|
height: "20",
|
|
34
34
|
viewBox: "0 0 10 20",
|
|
35
35
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
36
|
-
},
|
|
36
|
+
}, Cu = ["fill"], Iu = ["innerHTML"], Tu = {
|
|
37
37
|
class: "vue-ui-xy-tag-arrow",
|
|
38
38
|
height: "100%",
|
|
39
39
|
viewBox: "0 0 10 20",
|
|
40
40
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
41
|
-
},
|
|
41
|
+
}, Ou = ["fill"], Nu = ["innerHTML"], Vu = ["onClick"], Pu = {
|
|
42
42
|
key: 0,
|
|
43
43
|
viewBox: "0 0 20 12",
|
|
44
44
|
height: "14",
|
|
45
45
|
width: "20"
|
|
46
|
-
},
|
|
46
|
+
}, Hu = ["stroke", "fill"], Ru = {
|
|
47
47
|
key: 1,
|
|
48
48
|
viewBox: "0 0 40 40",
|
|
49
49
|
height: "14",
|
|
50
50
|
width: "14"
|
|
51
|
-
},
|
|
51
|
+
}, Bu = ["fill"], Yu = ["fill"], Fu = {
|
|
52
52
|
key: 2,
|
|
53
53
|
viewBox: "0 0 12 12",
|
|
54
54
|
height: "14",
|
|
55
55
|
width: "14"
|
|
56
|
-
},
|
|
56
|
+
}, Eu = {
|
|
57
57
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
58
58
|
"data-dom-to-png-ignore": ""
|
|
59
|
-
},
|
|
59
|
+
}, Wu = ["innerHTML"], Gu = {
|
|
60
60
|
__name: "vue-ui-xy",
|
|
61
61
|
props: {
|
|
62
62
|
config: {
|
|
@@ -73,25 +73,25 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
76
|
-
setup(Nl, { expose:
|
|
77
|
-
const y = Nl,
|
|
76
|
+
setup(Nl, { expose: Ka, emit: Qa }) {
|
|
77
|
+
const y = Nl, ja = Fe(() => import("./DataTable-cmb1Metv.js")), et = Fe(() => import("./Tooltip-D9udFJl-.js")), lt = Fe(() => import("./UserOptions-B_n7ExUf.js")), at = Fe(() => import("./BaseIcon-DX9DjPMg.js")), tt = Fe(() => import("./vue-ui-table-sparkline-B-JaCMy8.js")), ot = Fe(() => import("./vue-ui-accordion-BnI1ySue.js")), st = Fe(() => import("./PackageVersion-Dgl3IrnB.js")), ut = Fe(() => import("./PenAndPaper-4UGr-SYK.js")), Vl = Qa, ua = Ot(), it = Nt(), { vue_ui_xy: Pl } = Yt(), ge = _(null), rl = _(null), Le = _(null), al = _(null), nl = _(null), cl = _(null), ia = _(null), Hl = _(null), Rl = _(null), Bl = _(null), Xe = _(null), Yl = _(null), Fl = _(0), M = _(null), ra = _(!0), ue = _(600), Z = _(1e3), De = _("0 0 1000 600"), rt = _({ x: 0, y: 0 }), vl = _({ line: "line", bar: "bar", plot: "plot" }), kl = _(!1), tl = _(!1), na = _(!1), k = _(null), Ue = _(null), ae = _([]), q = _(ta()), ca = _(0), va = _(0), da = _(0), dl = _(!0), El = _(0), O = _(null), ha = _(!1), Wl = _(!0), _l = _(!0), pe = _(null), Oe = _({}), wl = _(null), fa = _(0), nt = _(1), ct = A(() => ({
|
|
78
78
|
height: ue.value,
|
|
79
79
|
width: Z.value
|
|
80
|
-
})),
|
|
80
|
+
})), vt = y.config.downsample && y.config.downsample.threshold ? y.config.downsample.threshold : 500, f = _({
|
|
81
81
|
dataLabels: { show: !0 },
|
|
82
82
|
showTooltip: !0,
|
|
83
83
|
showTable: !1,
|
|
84
84
|
isStacked: !1,
|
|
85
85
|
useIndividualScale: !1
|
|
86
|
-
}),
|
|
86
|
+
}), g = _({
|
|
87
87
|
xAxis: 18,
|
|
88
88
|
yAxis: 12,
|
|
89
89
|
dataLabels: 20,
|
|
90
90
|
plotLabels: 10
|
|
91
|
-
}), Ae =
|
|
92
|
-
|
|
91
|
+
}), Ae = _({ plot: 3, line: 3 });
|
|
92
|
+
la(() => {
|
|
93
93
|
y.dataset.length && y.dataset.forEach((a, v) => {
|
|
94
|
-
[null, void 0].includes(a.series) &&
|
|
94
|
+
[null, void 0].includes(a.series) && oa({
|
|
95
95
|
componentName: "VueUiXy",
|
|
96
96
|
type: "datasetSerieAttribute",
|
|
97
97
|
property: "series (number[])",
|
|
@@ -103,11 +103,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
103
103
|
function Gl() {
|
|
104
104
|
if (!Object.keys(y.config || {}).length)
|
|
105
105
|
return Pl;
|
|
106
|
-
const a =
|
|
106
|
+
const a = sa({
|
|
107
107
|
userConfig: y.config,
|
|
108
108
|
defaultConfig: Pl
|
|
109
109
|
});
|
|
110
|
-
return y.config && ul(y.config, "chart.highlightArea") && (Array.isArray(y.config.chart.highlightArea) ? a.chart.highlightArea = y.config.chart.highlightArea : a.chart.highlightArea = [y.config.chart.highlightArea]), y.config && ul(y.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = y.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, y.config && ul(y.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = y.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, y.config && ul(y.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = y.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, y.config && ul(y.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = y.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, y.config && ul(y.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = y.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, y.config && y.config.chart.annotations && Array.isArray(y.config.chart.annotations) && y.config.chart.annotations.length ? a.chart.annotations = y.config.chart.annotations.map((v) =>
|
|
110
|
+
return y.config && ul(y.config, "chart.highlightArea") && (Array.isArray(y.config.chart.highlightArea) ? a.chart.highlightArea = y.config.chart.highlightArea : a.chart.highlightArea = [y.config.chart.highlightArea]), y.config && ul(y.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = y.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, y.config && ul(y.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = y.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, y.config && ul(y.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = y.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, y.config && ul(y.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = y.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, y.config && ul(y.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = y.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, y.config && y.config.chart.annotations && Array.isArray(y.config.chart.annotations) && y.config.chart.annotations.length ? a.chart.annotations = y.config.chart.annotations.map((v) => sa({
|
|
111
111
|
defaultConfig: Pl.chart.annotations[0],
|
|
112
112
|
userConfig: v
|
|
113
113
|
})) : a.chart.annotations = [], y.config && y.config.autoSize && (y.config && y.config.debug && (y.config.chart.padding.top && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.top, set a 0 value to remove this warning"), y.config.chart.padding.right && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.right, set a 0 value to remove this warning"), y.config.chart.padding.bottom && console.warn("Vue Data UI - VueUiXy - autoSize mode ignores chart.padding.bottom, set a 0 value to remove this warning"), y.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 = {
|
|
@@ -116,11 +116,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
116
116
|
bottom: 0,
|
|
117
117
|
left: 0
|
|
118
118
|
}), a.theme ? {
|
|
119
|
-
...
|
|
120
|
-
userConfig:
|
|
119
|
+
...sa({
|
|
120
|
+
userConfig: Qt.vue_ui_xy[a.theme] || y.config,
|
|
121
121
|
defaultConfig: a
|
|
122
122
|
}),
|
|
123
|
-
customPalette:
|
|
123
|
+
customPalette: Kt[a.theme] || y.palette
|
|
124
124
|
} : a;
|
|
125
125
|
}
|
|
126
126
|
const Xl = A({
|
|
@@ -130,13 +130,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
130
130
|
set(a) {
|
|
131
131
|
return a;
|
|
132
132
|
}
|
|
133
|
-
}), e =
|
|
134
|
-
...
|
|
133
|
+
}), e = _(Gl()), { loading: Dl, FINAL_DATASET: Ne, manualLoading: Sl } = uo({
|
|
134
|
+
...Vt(y),
|
|
135
135
|
FINAL_CONFIG: e,
|
|
136
136
|
prepareConfig: Gl,
|
|
137
137
|
callback: () => {
|
|
138
138
|
Promise.resolve().then(async () => {
|
|
139
|
-
await
|
|
139
|
+
await ea(), e.value.autoSize && (ol(), Ql());
|
|
140
140
|
});
|
|
141
141
|
},
|
|
142
142
|
skeletonDataset: [
|
|
@@ -154,7 +154,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
154
154
|
color: "#CACACA"
|
|
155
155
|
}
|
|
156
156
|
],
|
|
157
|
-
skeletonConfig:
|
|
157
|
+
skeletonConfig: Ft({
|
|
158
158
|
defaultConfig: e.value,
|
|
159
159
|
userConfig: {
|
|
160
160
|
autoSize: !1,
|
|
@@ -211,21 +211,21 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
211
211
|
}
|
|
212
212
|
})
|
|
213
213
|
}), He = A({
|
|
214
|
-
get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold:
|
|
214
|
+
get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: vt }).length)),
|
|
215
215
|
set: (a) => a
|
|
216
|
-
}),
|
|
216
|
+
}), w = _({ start: 0, end: He.value }), { isPrinting: Ul, isImaging: ga, generatePdf: xa, generateImage: ba } = so({
|
|
217
217
|
elementId: `vue-ui-xy_${q.value}`,
|
|
218
218
|
fileName: e.value.chart.title.text || "vue-ui-xy",
|
|
219
219
|
options: e.value.chart.userOptions.print
|
|
220
220
|
}), G = A(() => e.value.autoSize), ql = A(() => {
|
|
221
221
|
const [a, v, l, s] = De.value.split(" ").map(Number);
|
|
222
222
|
return { x: a, y: v, width: l, height: s };
|
|
223
|
-
}),
|
|
223
|
+
}), ma = A(() => Et(e.value.customPalette)), $l = A(() => e.value.chart.grid.labels.yAxis.scaleMax ? e.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ve.value.filter((a) => !ae.value.includes(a.id)).map((a) => Math.max(...a.series)))), Zl = A(() => {
|
|
224
224
|
if (e.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
225
225
|
return e.value.chart.grid.labels.yAxis.scaleMin;
|
|
226
226
|
const a = Math.min(...Ve.value.filter((v) => !ae.value.includes(v.id)).map((v) => Math.min(...v.series)));
|
|
227
227
|
return a > 0 ? 0 : a;
|
|
228
|
-
}),
|
|
228
|
+
}), ke = A(() => e.value.chart.grid.labels.yAxis.useNiceScale ? pl(Zl.value, $l.value < 0 ? 0 : $l.value, e.value.chart.grid.labels.yAxis.commonScaleSteps) : el(Zl.value, $l.value < 0 ? 0 : $l.value, e.value.chart.grid.labels.yAxis.commonScaleSteps)), hl = A(() => [null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) ? ke.value.min >= 0 ? 0 : Math.abs(ke.value.min) : -ke.value.min), Ve = A(() => ra.value ? Ne.value.map((a, v) => {
|
|
229
229
|
const l = Ee({
|
|
230
230
|
data: a.series,
|
|
231
231
|
threshold: e.value.downsample.threshold
|
|
@@ -233,8 +233,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
233
233
|
return {
|
|
234
234
|
...a,
|
|
235
235
|
slotAbsoluteIndex: v,
|
|
236
|
-
series: l.map((t) => Il(t) ? t : null).slice(
|
|
237
|
-
color:
|
|
236
|
+
series: l.map((t) => Il(t) ? t : null).slice(w.value.start, w.value.end),
|
|
237
|
+
color: Wt(a.color ? a.color : ma.value[v] ? ma.value[v] : Gt[v]),
|
|
238
238
|
id: s,
|
|
239
239
|
scaleLabel: a.scaleLabel || s
|
|
240
240
|
};
|
|
@@ -243,13 +243,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
243
243
|
...a,
|
|
244
244
|
series: a.series.map((l) => l + hl.value),
|
|
245
245
|
absoluteValues: a.series,
|
|
246
|
-
segregate: () =>
|
|
246
|
+
segregate: () => za(a),
|
|
247
247
|
isSegregated: ae.value.includes(a.id)
|
|
248
|
-
}))),
|
|
248
|
+
}))), _e = A(() => Ve.value.map((a, v) => ({
|
|
249
249
|
...a,
|
|
250
250
|
series: a.series.map((l) => l + hl.value),
|
|
251
251
|
absoluteValues: a.series
|
|
252
|
-
})).filter((a) => !ae.value.includes(a.id))),
|
|
252
|
+
})).filter((a) => !ae.value.includes(a.id))), r = A(() => {
|
|
253
253
|
function a(s) {
|
|
254
254
|
const t = /* @__PURE__ */ new Set();
|
|
255
255
|
return s.forEach((n) => {
|
|
@@ -267,41 +267,42 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
267
267
|
width: G.value ? Z.value - l : Z.value - (e.value.chart.padding.right + e.value.chart.padding.left + l)
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
function
|
|
271
|
-
return !!
|
|
270
|
+
function ya() {
|
|
271
|
+
return !!it?.vnode.props?.onSelectTimeLabel;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function dt(a, v, l) {
|
|
274
274
|
if (!wl.value) {
|
|
275
275
|
const s = document.createElement("canvas");
|
|
276
276
|
wl.value = s.getContext("2d");
|
|
277
277
|
}
|
|
278
278
|
return wl.value.font = `normal ${a}px sans-serif`, wl.value;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function pa() {
|
|
281
281
|
const a = ge.value.querySelectorAll(".vue-ui-xy-tag");
|
|
282
282
|
a.length && Array.from(a).forEach((v) => v.style.opacity = "0");
|
|
283
283
|
}
|
|
284
284
|
function Ll(a, v, l, s, t) {
|
|
285
285
|
l && (Oe.value[`${a}_${v}_${s}_${t}`] = l);
|
|
286
286
|
}
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
const Jl = _(!1);
|
|
288
|
+
async function ka(a = !1) {
|
|
289
|
+
await me(), Jl.value = a, ha.value && (_l.value = a);
|
|
289
290
|
}
|
|
290
|
-
function
|
|
291
|
+
function Kl() {
|
|
291
292
|
kl.value = !kl.value;
|
|
292
293
|
}
|
|
293
294
|
const de = A(() => {
|
|
294
295
|
const a = Math.max(...Ne.value.map((v) => Ee({ data: v.series, threshold: e.value.downsample.threshold }).length));
|
|
295
|
-
return
|
|
296
|
+
return lo({
|
|
296
297
|
values: e.value.chart.grid.labels.xAxisLabels.values,
|
|
297
298
|
maxDatapoints: a,
|
|
298
299
|
formatter: e.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
299
|
-
start:
|
|
300
|
-
end:
|
|
300
|
+
start: w.value.start,
|
|
301
|
+
end: w.value.end
|
|
301
302
|
});
|
|
302
303
|
});
|
|
303
|
-
function
|
|
304
|
-
const l =
|
|
304
|
+
function _a(a, v) {
|
|
305
|
+
const l = _e.value.map((s) => ({
|
|
305
306
|
shape: s.shape || null,
|
|
306
307
|
name: s.name,
|
|
307
308
|
color: s.color,
|
|
@@ -317,25 +318,25 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
317
318
|
label: a.text
|
|
318
319
|
});
|
|
319
320
|
}
|
|
320
|
-
const
|
|
321
|
-
async function
|
|
321
|
+
const x = A(() => w.value.end - w.value.start);
|
|
322
|
+
async function ht() {
|
|
322
323
|
if (!Hl.value) return;
|
|
323
|
-
await
|
|
324
|
-
let a =
|
|
325
|
-
Bl.value && (a += Bl.value.getBBox().height), Hl.value.setAttribute("y", a +
|
|
324
|
+
await me();
|
|
325
|
+
let a = r.value.bottom;
|
|
326
|
+
Bl.value && (a += Bl.value.getBBox().height), Hl.value.setAttribute("y", a + g.value.xAxis * 1.3 + e.value.chart.grid.labels.axis.xLabelOffsetY);
|
|
326
327
|
}
|
|
327
|
-
async function
|
|
328
|
-
Rl.value && (await
|
|
328
|
+
async function ft() {
|
|
329
|
+
Rl.value && (await me(), Rl.value.setAttribute("transform", `translate(${ql.value.x + e.value.chart.grid.labels.axis.yLabelOffsetX + g.value.yAxis}, ${r.value.top + r.value.height / 2}) rotate(-90)`));
|
|
329
330
|
}
|
|
330
331
|
async function ol() {
|
|
331
|
-
await
|
|
332
|
-
const a =
|
|
332
|
+
await me();
|
|
333
|
+
const a = ia.value;
|
|
333
334
|
if (!a) return;
|
|
334
|
-
De.value = `0 0 ${e.value.chart.width} ${e.value.chart.height}`,
|
|
335
|
+
De.value = `0 0 ${e.value.chart.width} ${e.value.chart.height}`, ht(), await me(), ft();
|
|
335
336
|
const v = a.getBBox();
|
|
336
|
-
De.value = `${v.x} ${v.y -
|
|
337
|
+
De.value = `${v.x} ${v.y - g.value.plotLabels} ${v.width + e.value.chart.padding.left} ${v.height + g.value.plotLabels + e.value.chart.padding.top}`, await me(), ge.value.classList.remove("no-transition");
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
+
function Ql() {
|
|
339
340
|
if (e.value.responsive && ge.value) {
|
|
340
341
|
const a = ge.value.parentNode;
|
|
341
342
|
if (a) {
|
|
@@ -346,71 +347,71 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
346
347
|
}
|
|
347
348
|
}
|
|
348
349
|
}
|
|
349
|
-
function
|
|
350
|
+
function gt(a) {
|
|
350
351
|
O.value = a;
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function wa() {
|
|
353
354
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = e.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
+
function jl(a) {
|
|
356
357
|
xl.value && a.autoScaling && (e.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`), e.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`));
|
|
357
358
|
}
|
|
358
|
-
function
|
|
359
|
+
function xt(a, v) {
|
|
359
360
|
let l = Array(a).fill(0);
|
|
360
361
|
for (let s = 0; s < v.length && s < a; s += 1)
|
|
361
362
|
l[s] = v[s];
|
|
362
363
|
return l;
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
+
function bt(a) {
|
|
365
366
|
const v = Math.max(...Ne.value.map((l) => Ee({ data: l.series, threshold: e.value.downsample.threshold }).length));
|
|
366
367
|
return a > v ? v : a < 0 || e.value.chart.zoom.startIndex !== null && a < e.value.chart.zoom.startIndex ? e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex + 1 : 1 : a;
|
|
367
368
|
}
|
|
368
|
-
async function
|
|
369
|
-
(e.value.chart.zoom.startIndex !== null || e.value.chart.zoom.endIndex !== null) && Le.value ? (e.value.chart.zoom.startIndex !== null && (await
|
|
369
|
+
async function ea() {
|
|
370
|
+
(e.value.chart.zoom.startIndex !== null || e.value.chart.zoom.endIndex !== null) && Le.value ? (e.value.chart.zoom.startIndex !== null && (await me(), await me(), Le.value.setStartValue(e.value.chart.zoom.startIndex)), e.value.chart.zoom.endIndex !== null && (await me(), await me(), Le.value.setEndValue(bt(e.value.chart.zoom.endIndex + 1)))) : (w.value = {
|
|
370
371
|
start: 0,
|
|
371
372
|
end: Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: e.value.downsample.threshold }).length))
|
|
372
373
|
}, Fl.value += 1);
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
-
|
|
375
|
+
function mt() {
|
|
376
|
+
ea();
|
|
376
377
|
}
|
|
377
378
|
function xe(a) {
|
|
378
379
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
379
380
|
}
|
|
380
|
-
const
|
|
381
|
+
const Sa = A(() => ke.value.max + hl.value);
|
|
381
382
|
function qe(a) {
|
|
382
|
-
return a / (xe(
|
|
383
|
+
return a / (xe(Sa.value) ? Sa.value : 1);
|
|
383
384
|
}
|
|
384
|
-
const ie = A(() => isNaN(qe(hl.value)) ?
|
|
385
|
-
function
|
|
386
|
-
const v = ![null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) && e.value.chart.grid.labels.yAxis.scaleMin > 0 && Zl.value >= 0 ?
|
|
385
|
+
const ie = A(() => isNaN(qe(hl.value)) ? r.value.bottom : r.value.bottom - r.value.height * qe(hl.value));
|
|
386
|
+
function $a(a) {
|
|
387
|
+
const v = ![null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) && e.value.chart.grid.labels.yAxis.scaleMin > 0 && Zl.value >= 0 ? r.value.bottom : ie.value;
|
|
387
388
|
return a.value >= 0 ? T(v - a.y <= 0 ? 1e-5 : v - a.y) : T(a.y - ie.value <= 0 ? 1e-5 : a.y - ie.value);
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
+
function La(a) {
|
|
390
391
|
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);
|
|
391
392
|
}
|
|
392
393
|
const J = A(() => ({
|
|
393
|
-
bar:
|
|
394
|
-
plot:
|
|
395
|
-
line:
|
|
394
|
+
bar: r.value.width / x.value / Ve.value.filter((a) => a.type === "bar").filter((a) => !ae.value.includes(a.id)).length,
|
|
395
|
+
plot: r.value.width / x.value,
|
|
396
|
+
line: r.value.width / x.value
|
|
396
397
|
}));
|
|
397
|
-
function
|
|
398
|
-
return f.value.useIndividualScale && f.value.isStacked ? J.value.line -
|
|
398
|
+
function we() {
|
|
399
|
+
return f.value.useIndividualScale && f.value.isStacked ? J.value.line - r.value.width / x.value * 0.1 : J.value.bar;
|
|
399
400
|
}
|
|
400
401
|
function Al(a) {
|
|
401
|
-
return f.value.useIndividualScale && f.value.isStacked ? a.x +
|
|
402
|
-
}
|
|
403
|
-
function La(a) {
|
|
404
|
-
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ie.value) ? i.bottom.value : ie.value;
|
|
402
|
+
return f.value.useIndividualScale && f.value.isStacked ? a.x + r.value.width / x.value * 0.05 : a.x + J.value.bar / 2;
|
|
405
403
|
}
|
|
406
404
|
function Aa(a) {
|
|
405
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ie.value) ? r.bottom.value : ie.value;
|
|
406
|
+
}
|
|
407
|
+
function Ma(a) {
|
|
407
408
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
+
function yt(a) {
|
|
410
411
|
Vl(
|
|
411
412
|
"selectX",
|
|
412
413
|
{
|
|
413
|
-
dataset:
|
|
414
|
+
dataset: _e.value.map((v) => ({
|
|
414
415
|
name: v.name,
|
|
415
416
|
value: [null, void 0, NaN].includes(v.absoluteValues[a]) ? null : v.absoluteValues[a],
|
|
416
417
|
color: v.color,
|
|
@@ -421,7 +422,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
421
422
|
}
|
|
422
423
|
);
|
|
423
424
|
}
|
|
424
|
-
function
|
|
425
|
+
function pt() {
|
|
425
426
|
return Me.value.map((a) => ({
|
|
426
427
|
values: a.absoluteValues,
|
|
427
428
|
color: a.color,
|
|
@@ -429,9 +430,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
429
430
|
type: a.type
|
|
430
431
|
}));
|
|
431
432
|
}
|
|
432
|
-
async function
|
|
433
|
+
async function kt({ scale: a = 2 } = {}) {
|
|
433
434
|
if (!ge.value) return;
|
|
434
|
-
const { width: v, height: l } = ge.value.getBoundingClientRect(), s = v / l, { imageUri: t, base64: n } = await
|
|
435
|
+
const { width: v, height: l } = ge.value.getBoundingClientRect(), s = v / l, { imageUri: t, base64: n } = await oo({ domElement: ge.value, base64: !0, img: !0, scale: a });
|
|
435
436
|
return {
|
|
436
437
|
imageUri: t,
|
|
437
438
|
base64: n,
|
|
@@ -441,26 +442,26 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
441
442
|
aspectRatio: s
|
|
442
443
|
};
|
|
443
444
|
}
|
|
444
|
-
function
|
|
445
|
+
function za(a) {
|
|
445
446
|
if (ae.value.includes(a.id))
|
|
446
447
|
ae.value = ae.value.filter((v) => v !== a.id);
|
|
447
448
|
else {
|
|
448
449
|
if (ae.value.length + 1 === Ve.value.length) return;
|
|
449
450
|
ae.value.push(a.id);
|
|
450
451
|
}
|
|
451
|
-
Vl("selectLegend",
|
|
452
|
+
Vl("selectLegend", _e.value.map((v) => ({
|
|
452
453
|
name: v.name,
|
|
453
454
|
values: v.absoluteValues,
|
|
454
455
|
color: v.color,
|
|
455
456
|
type: v.type
|
|
456
457
|
}))), El.value += 1;
|
|
457
458
|
}
|
|
458
|
-
const
|
|
459
|
+
const _t = A(() => {
|
|
459
460
|
const a = e.value.chart.title.text || "Chart visualization", v = e.value.chart.title.subtitle.text || "";
|
|
460
461
|
return `${a}. ${v}`;
|
|
461
|
-
}),
|
|
462
|
-
linePlot:
|
|
463
|
-
})),
|
|
462
|
+
}), Ca = A(() => ({
|
|
463
|
+
linePlot: x.value > e.value.line.dot.hideAboveMaxSerieLength
|
|
464
|
+
})), wt = A(() => e.value.chart.userOptions.show && (!e.value.chart.title.show || !e.value.chart.title.text)), St = A(() => {
|
|
464
465
|
if (Array.isArray(e.value.chart.highlightArea))
|
|
465
466
|
return e.value.chart.highlightArea.map((v) => {
|
|
466
467
|
const l = Math.min(v.to, He.value - 1);
|
|
@@ -474,22 +475,22 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
474
475
|
to: Math.min(e.value.chart.highlightArea.to, He.value - 1)
|
|
475
476
|
};
|
|
476
477
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
477
|
-
}),
|
|
478
|
+
}), $t = A(() => ra.value ? Ne.value.map((a, v) => ({
|
|
478
479
|
...a,
|
|
479
480
|
series: Ee({
|
|
480
481
|
data: a.series,
|
|
481
482
|
threshold: e.value.downsample.threshold
|
|
482
483
|
}),
|
|
483
484
|
id: `uniqueId_${v}`
|
|
484
|
-
})) : Ne.value),
|
|
485
|
+
})) : Ne.value), Lt = A(() => _e.value.map((a) => {
|
|
485
486
|
const v = a.absoluteValues.map((l) => [void 0, null].includes(l) ? 0 : l);
|
|
486
487
|
return {
|
|
487
488
|
id: a.id,
|
|
488
489
|
name: a.name,
|
|
489
490
|
color: a.color,
|
|
490
|
-
values:
|
|
491
|
+
values: xt(x.value, v)
|
|
491
492
|
};
|
|
492
|
-
})),
|
|
493
|
+
})), At = A(() => ({
|
|
493
494
|
responsiveBreakpoint: e.value.table.responsiveBreakpoint,
|
|
494
495
|
roundingValues: e.value.table.rounding,
|
|
495
496
|
showAverage: !1,
|
|
@@ -512,28 +513,28 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
512
513
|
userOptions: {
|
|
513
514
|
show: !1
|
|
514
515
|
}
|
|
515
|
-
})), B = A(() => e.value.chart.grid.position === "middle" ? 0 :
|
|
516
|
+
})), B = A(() => e.value.chart.grid.position === "middle" ? 0 : r.value.width / x.value / 2), Ze = A(() => Xt(Me.value.filter((a) => !ae.value.includes(a.id)))), p = A(() => {
|
|
516
517
|
const a = Object.groupBy(Ze.value, (l) => l.scaleLabel), v = {};
|
|
517
518
|
for (const [l, s] of Object.entries(a)) {
|
|
518
519
|
const t = s.flatMap((n) => n.absoluteValues);
|
|
519
520
|
v[l] = {
|
|
520
521
|
min: Math.min(...t) || 0,
|
|
521
522
|
max: Math.max(...t) || 1,
|
|
522
|
-
groupId: `scale_group_${
|
|
523
|
+
groupId: `scale_group_${ta()}`
|
|
523
524
|
};
|
|
524
525
|
}
|
|
525
526
|
return v;
|
|
526
|
-
}),
|
|
527
|
+
}), Mt = A(() => {
|
|
527
528
|
const a = Ve.value.filter((v) => v.type === "bar").filter((v) => !ae.value.includes(v.id)).length;
|
|
528
|
-
return
|
|
529
|
-
}), Pe = A(() => J.value.line * e.value.bar.periodGap),
|
|
529
|
+
return r.value.width / x.value / a - Pe.value * a;
|
|
530
|
+
}), Pe = A(() => J.value.line * e.value.bar.periodGap), zt = A(() => {
|
|
530
531
|
if (!e.value.chart.zoom.minimap.show) return [];
|
|
531
|
-
const a =
|
|
532
|
+
const a = $t.value.filter((t) => !ae.value.includes(t.id)), v = Math.max(...a.map((t) => t.series.length)), l = [];
|
|
532
533
|
for (let t = 0; t < v; t += 1)
|
|
533
534
|
l.push(a.map((n) => n.series[t] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
|
|
534
535
|
const s = Math.min(...l);
|
|
535
536
|
return l.map((t) => t + (s < 0 ? Math.abs(s) : 0));
|
|
536
|
-
}), fl = A(() =>
|
|
537
|
+
}), fl = A(() => _e.value.map((a) => ({
|
|
537
538
|
slotAbsoluteIndex: a.slotAbsoluteIndex,
|
|
538
539
|
shape: a.shape || null,
|
|
539
540
|
name: a.name,
|
|
@@ -543,24 +544,24 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
543
544
|
comments: a.comments || [],
|
|
544
545
|
prefix: a.prefix || e.value.chart.labels.prefix,
|
|
545
546
|
suffix: a.suffix || e.value.chart.labels.suffix
|
|
546
|
-
}))),
|
|
547
|
-
y: a >= 0 ? ie.value -
|
|
547
|
+
}))), Ia = A(() => ke.value.ticks.map((a) => ({
|
|
548
|
+
y: a >= 0 ? ie.value - r.value.height * qe(a) : ie.value + r.value.height * qe(Math.abs(a)),
|
|
548
549
|
value: a,
|
|
549
550
|
prefix: e.value.chart.labels.prefix,
|
|
550
551
|
suffix: e.value.chart.labels.suffix
|
|
551
|
-
}))),
|
|
552
|
+
}))), Ta = A(() => {
|
|
552
553
|
const a = e.value.chart.annotations;
|
|
553
554
|
if (!a || !Array.isArray(a) || a.every(($) => !$.show)) return [];
|
|
554
555
|
const v = a.filter(
|
|
555
556
|
($) => $.show && ($.yAxis.yTop != null || $.yAxis.yBottom != null)
|
|
556
557
|
);
|
|
557
558
|
if (!v.length) return [];
|
|
558
|
-
const { left: l, right: s } =
|
|
559
|
+
const { left: l, right: s } = r.value, t = ie.value, n = r.value.height, o = ke.value.min, F = ke.value.max - o, le = ($) => {
|
|
559
560
|
const I = ($ - 0) / F;
|
|
560
561
|
return t - I * n;
|
|
561
562
|
};
|
|
562
563
|
return v.map(($) => {
|
|
563
|
-
const { yAxis: { yTop: I, yBottom: X, label: S } } = $, R = I != null && X != null && I !== X, L = I == null ? null : le(I), te = X == null ? null : le(X), re =
|
|
564
|
+
const { yAxis: { yTop: I, yBottom: X, label: S } } = $, R = I != null && X != null && I !== X, L = I == null ? null : le(I), te = X == null ? null : le(X), re = dt(S.fontSize);
|
|
564
565
|
re.font = `${S.fontSize}px sans-serif`;
|
|
565
566
|
const D = re.measureText(S.text).width, be = S.fontSize, Ce = (S.position === "start" ? l + S.padding.left : s - S.padding.right) + S.offsetX, he = (L != null && te != null ? Math.min(L, te) : L ?? te) - S.fontSize / 3 + S.offsetY - S.padding.top;
|
|
566
567
|
let V;
|
|
@@ -568,7 +569,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
568
569
|
const P = he - be * 0.75 - S.padding.top;
|
|
569
570
|
return {
|
|
570
571
|
show: ![L, te, P].includes(NaN),
|
|
571
|
-
id: `annotation_y_${
|
|
572
|
+
id: `annotation_y_${ta()}`,
|
|
572
573
|
hasArea: R,
|
|
573
574
|
areaHeight: R ? Math.abs(L - te) : 0,
|
|
574
575
|
yTop: L,
|
|
@@ -591,9 +592,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
591
592
|
};
|
|
592
593
|
});
|
|
593
594
|
}), Re = A(() => {
|
|
594
|
-
const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), v = a.length, l = e.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? l * (v - 1) : 0, n =
|
|
595
|
+
const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), v = a.length, l = e.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? l * (v - 1) : 0, n = r.value.height - t;
|
|
595
596
|
return a.filter((o) => o.type === "bar").map((o, Y) => {
|
|
596
|
-
|
|
597
|
+
jl(o);
|
|
597
598
|
const F = p.value[o.scaleLabel].min, le = p.value[o.scaleLabel].max;
|
|
598
599
|
o.absoluteValues.filter((N) => ![null, void 0].includes(N)).map((N) => (N - F) / (le - F));
|
|
599
600
|
const $ = {
|
|
@@ -602,29 +603,29 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
602
603
|
}, I = {
|
|
603
604
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
604
605
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((N) => ![void 0, null].includes(N))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((N) => ![null, void 0].includes(N)))
|
|
605
|
-
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? pl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + te, be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio :
|
|
606
|
-
const Ye = f.value.useIndividualScale ? (o.absoluteValues[j] + te) / D : qe(N), Je = f.value.useIndividualScale && f.value.isStacked ?
|
|
606
|
+
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? pl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + te, be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : r.value.height, K = r.value.bottom - V - P * te / D, fe = r.value.bottom - V - P * re / be, ne = Me.value.filter((N) => N.type === "bar").filter((N) => !ae.value.includes(N.id)).length, bl = o.series.map((N, j) => {
|
|
607
|
+
const Ye = f.value.useIndividualScale ? (o.absoluteValues[j] + te) / D : qe(N), Je = f.value.useIndividualScale && f.value.isStacked ? r.value.left + r.value.width / x.value * j : r.value.left + J.value.bar * Y + J.value.bar * j * ne - Mt.value / 2 - Y * Pe.value;
|
|
607
608
|
return {
|
|
608
609
|
yOffset: T(V),
|
|
609
610
|
individualHeight: T(P),
|
|
610
611
|
x: T(Je),
|
|
611
|
-
y:
|
|
612
|
+
y: r.value.bottom - V - P * Ye,
|
|
612
613
|
value: o.absoluteValues[j],
|
|
613
614
|
zeroPosition: T(K),
|
|
614
615
|
individualMax: T(D),
|
|
615
|
-
comment: o.comments && o.comments.slice(
|
|
616
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[j] || ""
|
|
616
617
|
};
|
|
617
618
|
}), ve = o.absoluteValues.map((N) => L.min >= 0 ? (N - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (N + Math.abs(L.min)) / (L.max + Math.abs(L.min))), Be = o.series.map((N, j) => {
|
|
618
|
-
const Ye = f.value.useIndividualScale && f.value.isStacked ?
|
|
619
|
+
const Ye = f.value.useIndividualScale && f.value.isStacked ? r.value.left + r.value.width / x.value * j : r.value.left - J.value.bar / 2 + J.value.bar * Y + J.value.bar * j * Me.value.filter((Je) => Je.type === "bar").filter((Je) => !ae.value.includes(Je.id)).length;
|
|
619
620
|
return {
|
|
620
621
|
yOffset: T(V),
|
|
621
622
|
individualHeight: T(P),
|
|
622
623
|
x: T(Ye),
|
|
623
|
-
y: T(
|
|
624
|
+
y: T(r.value.bottom - T(V) - (T(P) * ve[j] || 0)),
|
|
624
625
|
value: o.absoluteValues[j],
|
|
625
626
|
zeroPosition: T(K),
|
|
626
627
|
individualMax: T(D),
|
|
627
|
-
comment: o.comments && o.comments.slice(
|
|
628
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[j] || ""
|
|
628
629
|
};
|
|
629
630
|
}), E = R.ticks.map((N) => ({
|
|
630
631
|
y: N >= 0 ? K - P * (N / D) : K + P * Math.abs(N) / D,
|
|
@@ -655,10 +656,10 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
655
656
|
groupId: p.value[o.scaleLabel].groupId
|
|
656
657
|
};
|
|
657
658
|
});
|
|
658
|
-
}),
|
|
659
|
-
const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), v = a.length, l = e.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? l * (v - 1) : 0, n =
|
|
659
|
+
}), Se = A(() => {
|
|
660
|
+
const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), v = a.length, l = e.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? l * (v - 1) : 0, n = r.value.height - t;
|
|
660
661
|
return a.filter((o) => o.type === "line").map((o, Y) => {
|
|
661
|
-
|
|
662
|
+
jl(o);
|
|
662
663
|
const F = p.value[o.scaleLabel].min, le = p.value[o.scaleLabel].max;
|
|
663
664
|
o.absoluteValues.filter((C) => ![null, void 0].includes(C)).map((C) => (C - F) / (le - F));
|
|
664
665
|
const $ = {
|
|
@@ -667,25 +668,25 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
667
668
|
}, I = {
|
|
668
669
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
669
670
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
670
|
-
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? pl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + Math.abs(te), be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio :
|
|
671
|
-
const
|
|
671
|
+
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? pl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + Math.abs(te), be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : r.value.height, K = r.value.bottom - V - P * te / D, fe = r.value.bottom - V - P * re / be, ne = o.series.map((C, oe) => {
|
|
672
|
+
const Tt = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(te)) / D : qe(C);
|
|
672
673
|
return {
|
|
673
|
-
x: T(
|
|
674
|
-
y: T(
|
|
674
|
+
x: T(r.value.left + J.value.line / 2 + J.value.line * oe),
|
|
675
|
+
y: T(r.value.bottom - V - P * Tt),
|
|
675
676
|
value: o.absoluteValues[oe],
|
|
676
|
-
comment: o.comments && o.comments.slice(
|
|
677
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[oe] || ""
|
|
677
678
|
};
|
|
678
679
|
}), bl = o.absoluteValues.map((C) => L.min >= 0 ? (C - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (C + Math.abs(L.min)) / (L.max + Math.abs(L.min))), ve = o.series.map((C, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
|
|
679
|
-
x: T(
|
|
680
|
+
x: T(r.value.left + J.value.line / 2 + J.value.line * oe),
|
|
680
681
|
y: K,
|
|
681
682
|
value: o.absoluteValues[oe],
|
|
682
|
-
comment: o.comments && o.comments.slice(
|
|
683
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[oe] || ""
|
|
683
684
|
} : {
|
|
684
|
-
x: T(
|
|
685
|
-
y: T(
|
|
685
|
+
x: T(r.value.left + J.value.line / 2 + J.value.line * oe),
|
|
686
|
+
y: T(r.value.bottom - V - (P * bl[oe] || 0)),
|
|
686
687
|
value: o.absoluteValues[oe],
|
|
687
|
-
comment: o.comments && o.comments.slice(
|
|
688
|
-
}), Be = e.value.line.cutNullValues ?
|
|
688
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[oe] || ""
|
|
689
|
+
}), Be = e.value.line.cutNullValues ? Wa(ne) : Ga(ne.filter((C) => C.value !== null)), E = e.value.line.cutNullValues ? Wa(ve) : Ga(ve.filter((C) => C.value !== null)), Q = e.value.line.cutNullValues ? Xa(ne) : Da(ne.filter((C) => C.value !== null)), N = e.value.line.cutNullValues ? Xa(ve) : Da(ve.filter((C) => C.value !== null)), j = R.ticks.map((C) => ({
|
|
689
690
|
y: C >= 0 ? K - P * (C / D) : K + P * Math.abs(C) / D,
|
|
690
691
|
value: C,
|
|
691
692
|
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
@@ -702,7 +703,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
702
703
|
};
|
|
703
704
|
});
|
|
704
705
|
p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = e.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : j, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : K, p.value[o.scaleLabel].individualMax = o.autoScaling ? be : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = V, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = Ye, p.value[o.scaleLabel].unique = Ze.value.filter((C) => C.scaleLabel === o.scaleLabel).length === 1;
|
|
705
|
-
const Je = f.value.useIndividualScale ? o.autoScaling ? fe : K : ie.value, ml = Math.max(Math.max(o.autoScaling ? fe : j.at(-1) ? j.at(-1).y : 0,
|
|
706
|
+
const Je = f.value.useIndividualScale ? o.autoScaling ? fe : K : ie.value, ml = Math.max(Math.max(o.autoScaling ? fe : j.at(-1) ? j.at(-1).y : 0, r.value.top), Je);
|
|
706
707
|
return {
|
|
707
708
|
...o,
|
|
708
709
|
yOffset: V,
|
|
@@ -714,14 +715,14 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
714
715
|
zeroPosition: o.autoScaling ? fe : K,
|
|
715
716
|
curve: o.autoScaling ? E : Be,
|
|
716
717
|
plots: o.autoScaling ? ve : ne,
|
|
717
|
-
area: o.useArea ? f.value.useIndividualScale ? e.value.line.cutNullValues ?
|
|
718
|
+
area: o.useArea ? f.value.useIndividualScale ? e.value.line.cutNullValues ? Ua(
|
|
718
719
|
o.autoScaling ? ve : ne,
|
|
719
720
|
ml
|
|
720
|
-
) :
|
|
721
|
+
) : qa(
|
|
721
722
|
o.autoScaling ? ve.filter((C) => C.value !== null) : ne.filter((C) => C.value !== null),
|
|
722
723
|
ml
|
|
723
|
-
) : e.value.line.cutNullValues ?
|
|
724
|
-
curveAreas: o.useArea ?
|
|
724
|
+
) : e.value.line.cutNullValues ? Ua(ne, ml) : qa(ne.filter((C) => C.value !== null), ml) : "",
|
|
725
|
+
curveAreas: o.useArea ? Dt(
|
|
725
726
|
o.autoScaling ? e.value.line.cutNullValues ? ve : ve.filter((C) => C.value !== null) : e.value.line.cutNullValues ? ne : ne.filter((C) => C.value !== null),
|
|
726
727
|
ml,
|
|
727
728
|
e.value.line.cutNullValues
|
|
@@ -731,9 +732,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
731
732
|
};
|
|
732
733
|
});
|
|
733
734
|
}), ze = A(() => {
|
|
734
|
-
const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), v = a.length, l = e.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? l * (v - 1) : 0, n =
|
|
735
|
+
const a = Ze.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), v = a.length, l = e.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? l * (v - 1) : 0, n = r.value.height - t;
|
|
735
736
|
return a.filter((o) => o.type === "plot").map((o) => {
|
|
736
|
-
|
|
737
|
+
jl(o);
|
|
737
738
|
const Y = p.value[o.scaleLabel].min, F = p.value[o.scaleLabel].max;
|
|
738
739
|
o.absoluteValues.filter((E) => ![null, void 0].includes(E)).map((E) => (E - Y) / (F - Y));
|
|
739
740
|
const le = {
|
|
@@ -742,19 +743,19 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
742
743
|
}, $ = {
|
|
743
744
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
744
745
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
745
|
-
}, I = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, X = 1.0000001, S = el($.min, $.max === $.min ? $.max * X : $.max, I), R = el(le.valueMin, le.valueMax === le.valueMin ? le.valueMax * X : le.valueMax, I), L = S.min >= 0 ? 0 : Math.abs(S.min), te = 0, re = S.max + L, D = R.max + Math.abs(te), be = o.stackIndex, Ce = v - 1 - be, sl = s ? 1 - o.cumulatedStackRatio : 0, he = s ? n * sl + l * Ce : 0, V = s ? n * o.stackRatio :
|
|
746
|
+
}, I = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, X = 1.0000001, S = el($.min, $.max === $.min ? $.max * X : $.max, I), R = el(le.valueMin, le.valueMax === le.valueMin ? le.valueMax * X : le.valueMax, I), L = S.min >= 0 ? 0 : Math.abs(S.min), te = 0, re = S.max + L, D = R.max + Math.abs(te), be = o.stackIndex, Ce = v - 1 - be, sl = s ? 1 - o.cumulatedStackRatio : 0, he = s ? n * sl + l * Ce : 0, V = s ? n * o.stackRatio : r.value.height, P = r.value.bottom - he - V * L / re, K = r.value.bottom - he - V * te / D, fe = o.series.map((E, Q) => {
|
|
746
747
|
const N = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(L)) / re : qe(E);
|
|
747
748
|
return {
|
|
748
|
-
x: T(
|
|
749
|
-
y: T(
|
|
749
|
+
x: T(r.value.left + J.value.plot / 2 + J.value.plot * Q),
|
|
750
|
+
y: T(r.value.bottom - he - V * N),
|
|
750
751
|
value: o.absoluteValues[Q],
|
|
751
|
-
comment: o.comments && o.comments.slice(
|
|
752
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Q] || ""
|
|
752
753
|
};
|
|
753
754
|
}), ne = o.absoluteValues.map((E) => R.min >= 0 ? (E - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (E + Math.abs(R.min)) / (R.max + Math.abs(R.min))), bl = o.series.map((E, Q) => ({
|
|
754
|
-
x: T(
|
|
755
|
-
y: T(
|
|
755
|
+
x: T(r.value.left + J.value.plot / 2 + J.value.plot * Q),
|
|
756
|
+
y: T(r.value.bottom - he - (V * ne[Q] || 0)),
|
|
756
757
|
value: o.absoluteValues[Q],
|
|
757
|
-
comment: o.comments && o.comments.slice(
|
|
758
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Q] || ""
|
|
758
759
|
})), ve = S.ticks.map((E) => ({
|
|
759
760
|
y: E >= 0 ? P - V * (E / re) : P + V * Math.abs(E) / re,
|
|
760
761
|
value: E,
|
|
@@ -785,7 +786,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
785
786
|
};
|
|
786
787
|
});
|
|
787
788
|
}), gl = A(() => {
|
|
788
|
-
const a =
|
|
789
|
+
const a = Se.value.map((n) => ({
|
|
789
790
|
name: n.name,
|
|
790
791
|
color: n.color,
|
|
791
792
|
scale: n.individualScale,
|
|
@@ -795,7 +796,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
795
796
|
scaleLabel: n.scaleLabel || "",
|
|
796
797
|
id: n.id,
|
|
797
798
|
yOffset: n.yOffset || 0,
|
|
798
|
-
individualHeight: n.individualHeight ||
|
|
799
|
+
individualHeight: n.individualHeight || r.value.height,
|
|
799
800
|
autoScaleYLabels: n.autoScaleYLabels
|
|
800
801
|
})), v = Re.value.map((n) => ({
|
|
801
802
|
name: n.name,
|
|
@@ -807,7 +808,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
807
808
|
scaleLabel: n.scaleLabel || "",
|
|
808
809
|
id: n.id,
|
|
809
810
|
yOffset: n.yOffset || 0,
|
|
810
|
-
individualHeight: n.individualHeight ||
|
|
811
|
+
individualHeight: n.individualHeight || r.value.height
|
|
811
812
|
})), l = ze.value.map((n) => ({
|
|
812
813
|
name: n.name,
|
|
813
814
|
color: n.color,
|
|
@@ -819,11 +820,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
819
820
|
scaleLabel: n.scaleLabel || "",
|
|
820
821
|
id: n.id,
|
|
821
822
|
yOffset: n.yOffset || 0,
|
|
822
|
-
individualHeight: n.individualHeight ||
|
|
823
|
+
individualHeight: n.individualHeight || r.value.height
|
|
823
824
|
})), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(p.value) : [...a, ...v, ...l], t = s.flatMap((n) => n).length;
|
|
824
825
|
return s.flatMap((n, o) => {
|
|
825
826
|
let Y = 0;
|
|
826
|
-
return G.value ? Y = f.value.isStacked ?
|
|
827
|
+
return G.value ? Y = f.value.isStacked ? r.value.left : r.value.left - o * (e.value.chart.grid.labels.yAxis.labelWidth + g.value.dataLabels * 2) : Y = f.value.isStacked ? r.value.left : r.value.left / t * (o + 1), {
|
|
827
828
|
unique: n.unique,
|
|
828
829
|
id: n.id,
|
|
829
830
|
groupId: n.groupId,
|
|
@@ -840,33 +841,33 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
840
841
|
}))
|
|
841
842
|
};
|
|
842
843
|
});
|
|
843
|
-
}),
|
|
844
|
+
}), Oa = A(() => ({
|
|
844
845
|
datapoint: fl.value,
|
|
845
846
|
seriesIndex: k.value,
|
|
846
847
|
series: Me.value,
|
|
847
848
|
bars: Re.value,
|
|
848
|
-
lines:
|
|
849
|
+
lines: Se.value,
|
|
849
850
|
plots: ze.value,
|
|
850
851
|
config: e.value
|
|
851
|
-
})),
|
|
852
|
+
})), Ct = A(() => {
|
|
852
853
|
let a = "", v = fl.value.map((t) => t.value).filter((t) => Il(t) && t !== null).reduce((t, n) => Math.abs(t) + Math.abs(n), 0);
|
|
853
854
|
const l = de.value[k.value], s = e.value.chart.tooltip.customFormat;
|
|
854
|
-
return
|
|
855
|
-
absoluteIndex: k.value +
|
|
855
|
+
return Ut(s) && qt(() => s({
|
|
856
|
+
absoluteIndex: k.value + w.value.start,
|
|
856
857
|
seriesIndex: k.value,
|
|
857
858
|
datapoint: fl.value,
|
|
858
859
|
series: Me.value,
|
|
859
860
|
bars: Re.value,
|
|
860
|
-
lines:
|
|
861
|
+
lines: Se.value,
|
|
861
862
|
plots: ze.value,
|
|
862
863
|
config: e.value
|
|
863
864
|
})) ? s({
|
|
864
|
-
absoluteIndex: k.value +
|
|
865
|
+
absoluteIndex: k.value + w.value.start,
|
|
865
866
|
seriesIndex: k.value,
|
|
866
867
|
datapoint: fl.value,
|
|
867
868
|
series: Me.value,
|
|
868
869
|
bars: Re.value,
|
|
869
|
-
lines:
|
|
870
|
+
lines: Se.value,
|
|
870
871
|
plots: ze.value,
|
|
871
872
|
config: e.value
|
|
872
873
|
}) : (l && l.text && e.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${e.value.chart.tooltip.borderColor}; width:100%">${l.text}</div>`), fl.value.forEach((t) => {
|
|
@@ -874,10 +875,10 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
874
875
|
let n = "", o = "";
|
|
875
876
|
switch (vl.value[t.type]) {
|
|
876
877
|
case "bar":
|
|
877
|
-
n = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
878
|
+
n = `<svg viewBox="0 0 40 40" height="14" width="14">${ua.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="${ua.pattern ? `url(#pattern_${q.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
878
879
|
break;
|
|
879
880
|
case "line":
|
|
880
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${
|
|
881
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Za({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
|
|
881
882
|
break;
|
|
882
883
|
case "plot":
|
|
883
884
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -885,7 +886,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
885
886
|
break;
|
|
886
887
|
}
|
|
887
888
|
if (t.shape === "star") {
|
|
888
|
-
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${
|
|
889
|
+
n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Za({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
889
890
|
break;
|
|
890
891
|
}
|
|
891
892
|
if (t.shape === "triangle") {
|
|
@@ -912,50 +913,50 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
912
913
|
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${e.value.chart.tooltip.showValue ? ce(
|
|
913
914
|
t.type === "line" ? e.value.line.labels.formatter : t.type === "bar" ? e.value.bar.labels.formatter : e.value.plot.labels.formatter,
|
|
914
915
|
t.value,
|
|
915
|
-
|
|
916
|
+
ye({
|
|
916
917
|
p: t.prefix,
|
|
917
918
|
v: t.value,
|
|
918
919
|
s: t.suffix,
|
|
919
920
|
r: e.value.chart.tooltip.roundingValue
|
|
920
921
|
}),
|
|
921
922
|
{ datapoint: t }
|
|
922
|
-
) : ""}</b> ${e.value.chart.tooltip.showPercentage ? `(${
|
|
923
|
+
) : ""}</b> ${e.value.chart.tooltip.showPercentage ? `(${ye({
|
|
923
924
|
v: T(Math.abs(t.value) / v * 100),
|
|
924
925
|
s: "%",
|
|
925
926
|
r: e.value.chart.tooltip.roundingPercentage
|
|
926
|
-
})})` : ""}</div>`, e.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(
|
|
927
|
+
})})` : ""}</div>`, e.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(w.value.start, w.value.end)[k.value] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(w.value.start, w.value.end)[k.value]}</div>`);
|
|
927
928
|
}
|
|
928
929
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${e.value.chart.tooltip.color}">${a}</div>`);
|
|
929
930
|
});
|
|
930
931
|
A(() => {
|
|
931
932
|
if (Ve.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
932
|
-
const a =
|
|
933
|
+
const a = _e.value.map((l) => ({
|
|
933
934
|
label: l.name,
|
|
934
935
|
color: l.color,
|
|
935
936
|
type: l.type
|
|
936
937
|
})), v = [];
|
|
937
938
|
return de.value.forEach((l, s) => {
|
|
938
939
|
const t = [l.text];
|
|
939
|
-
|
|
940
|
+
_e.value.forEach((n) => {
|
|
940
941
|
t.push(xe(n.absoluteValues[s]) ? Number(n.absoluteValues[s].toFixed(e.value.table.rounding)) : "");
|
|
941
942
|
}), v.push(t);
|
|
942
943
|
}), { head: a, body: v };
|
|
943
944
|
});
|
|
944
945
|
const Ml = A(() => {
|
|
945
946
|
const a = e.value.table.showSum;
|
|
946
|
-
let v = [""].concat(
|
|
947
|
+
let v = [""].concat(_e.value.map((n) => n.name));
|
|
947
948
|
a && (v = v.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>'));
|
|
948
949
|
let l = [];
|
|
949
|
-
for (let n = 0; n <
|
|
950
|
-
const o =
|
|
950
|
+
for (let n = 0; n < x.value; n += 1) {
|
|
951
|
+
const o = _e.value.map((Y) => Y.absoluteValues[n] ?? 0).reduce((Y, F) => Y + F, 0);
|
|
951
952
|
l.push(
|
|
952
953
|
[
|
|
953
954
|
de.value[n].text ?? "-"
|
|
954
|
-
].concat(
|
|
955
|
+
].concat(_e.value.map(
|
|
955
956
|
(Y) => ce(
|
|
956
957
|
Y.type === "line" ? e.value.line.labels.formatter : Y.type === "bar" ? e.value.bar.labels.formatter : e.value.plot.labels.formatter,
|
|
957
958
|
Y.absoluteValues[n] ?? 0,
|
|
958
|
-
|
|
959
|
+
ye({
|
|
959
960
|
p: Y.prefix || e.value.chart.labels.prefix,
|
|
960
961
|
v: Y.absoluteValues[n] ?? 0,
|
|
961
962
|
s: Y.suffix || e.value.chart.labels.suffix,
|
|
@@ -977,52 +978,52 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
977
978
|
outline: e.value.table.td.outline
|
|
978
979
|
},
|
|
979
980
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
980
|
-
}, t = [e.value.table.columnNames.period].concat(
|
|
981
|
+
}, t = [e.value.table.columnNames.period].concat(_e.value.map((n) => n.name)).concat(e.value.table.columnNames.total);
|
|
981
982
|
return { head: v, body: l, config: s, colNames: t };
|
|
982
983
|
});
|
|
983
|
-
function
|
|
984
|
-
const v = [[e.value.chart.title.text], [e.value.chart.title.subtitle.text], [""]], l = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = v.concat([l]).concat(s), n =
|
|
985
|
-
a ? a(n) :
|
|
984
|
+
function Na(a = null) {
|
|
985
|
+
const v = [[e.value.chart.title.text], [e.value.chart.title.subtitle.text], [""]], l = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = v.concat([l]).concat(s), n = jt(t);
|
|
986
|
+
a ? a(n) : eo({ csvContent: n, title: e.value.chart.title.text || "vue-ui-xy" });
|
|
986
987
|
}
|
|
987
|
-
function
|
|
988
|
-
|
|
988
|
+
function Va(a, v = null) {
|
|
989
|
+
na.value = a, a ? k.value = v : k.value = null;
|
|
989
990
|
}
|
|
990
|
-
function
|
|
991
|
+
function Pa() {
|
|
991
992
|
f.value.showTable = !f.value.showTable;
|
|
992
993
|
}
|
|
993
|
-
function
|
|
994
|
+
function Ha() {
|
|
994
995
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
995
996
|
}
|
|
996
|
-
function
|
|
997
|
+
function Ra() {
|
|
997
998
|
f.value.showTooltip = !f.value.showTooltip;
|
|
998
999
|
}
|
|
999
|
-
function
|
|
1000
|
-
tl.value = a,
|
|
1000
|
+
function Ba(a) {
|
|
1001
|
+
tl.value = a, ca.value += 1;
|
|
1001
1002
|
}
|
|
1002
|
-
function
|
|
1003
|
+
function Ya() {
|
|
1003
1004
|
if (!e.value.responsiveProportionalSizing) {
|
|
1004
|
-
|
|
1005
|
+
g.value.dataLabels = e.value.chart.grid.labels.fontSize, g.value.yAxis = e.value.chart.grid.labels.axis.fontSize, g.value.xAxis = e.value.chart.grid.labels.xAxisLabels.fontSize, g.value.plotLabels = e.value.chart.labels.fontSize, Ae.value.plot = e.value.plot.radius, Ae.value.line = e.value.line.radius;
|
|
1005
1006
|
return;
|
|
1006
1007
|
}
|
|
1007
|
-
|
|
1008
|
+
g.value.dataLabels = il({
|
|
1008
1009
|
relator: ue.value,
|
|
1009
1010
|
adjuster: 400,
|
|
1010
1011
|
source: e.value.chart.grid.labels.fontSize,
|
|
1011
1012
|
threshold: 10,
|
|
1012
1013
|
fallback: 10
|
|
1013
|
-
}),
|
|
1014
|
+
}), g.value.yAxis = il({
|
|
1014
1015
|
relator: Z.value,
|
|
1015
1016
|
adjuster: 1e3,
|
|
1016
1017
|
source: e.value.chart.grid.labels.axis.fontSize,
|
|
1017
1018
|
threshold: 10,
|
|
1018
1019
|
fallback: 10
|
|
1019
|
-
}),
|
|
1020
|
+
}), g.value.xAxis = il({
|
|
1020
1021
|
relator: Z.value,
|
|
1021
1022
|
adjuster: 1e3,
|
|
1022
1023
|
source: e.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1023
1024
|
threshold: 10,
|
|
1024
1025
|
fallback: 10
|
|
1025
|
-
}),
|
|
1026
|
+
}), g.value.plotLabels = il({
|
|
1026
1027
|
relator: Z.value,
|
|
1027
1028
|
adjuster: 800,
|
|
1028
1029
|
source: e.value.chart.labels.fontSize,
|
|
@@ -1043,13 +1044,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1043
1044
|
});
|
|
1044
1045
|
}
|
|
1045
1046
|
const xl = A(() => !!e.value.debug);
|
|
1046
|
-
function
|
|
1047
|
-
|
|
1047
|
+
function Fa() {
|
|
1048
|
+
Ja(y.dataset) ? (oa({
|
|
1048
1049
|
componentName: "VueUiXy",
|
|
1049
1050
|
type: "dataset",
|
|
1050
1051
|
debug: xl.value
|
|
1051
1052
|
}), Sl.value = !0) : y.dataset.forEach((v, l) => {
|
|
1052
|
-
[null, void 0].includes(v.name) && (
|
|
1053
|
+
[null, void 0].includes(v.name) && (oa({
|
|
1053
1054
|
componentName: "VueUiXy",
|
|
1054
1055
|
type: "datasetSerieAttribute",
|
|
1055
1056
|
property: "name (string)",
|
|
@@ -1062,7 +1063,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1062
1063
|
-----> The serie '${v.name}' contains the value '${l}' at index ${s}.
|
|
1063
1064
|
'${l}' was converted to null to allow the chart to display.`);
|
|
1064
1065
|
});
|
|
1065
|
-
}),
|
|
1066
|
+
}), Ja(y.dataset) || (Sl.value = e.value.loading), ha.value = e.value.chart.userOptions.showOnChartHover, Wl.value = e.value.chart.userOptions.keepStateOnChartLeave, _l.value = !e.value.chart.userOptions.showOnChartHover, f.value = {
|
|
1066
1067
|
dataLabels: {
|
|
1067
1068
|
show: !0
|
|
1068
1069
|
},
|
|
@@ -1085,55 +1086,55 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1085
1086
|
let I = 0;
|
|
1086
1087
|
nl.value && (I = nl.value.getBoundingClientRect().height);
|
|
1087
1088
|
let X = 0;
|
|
1088
|
-
cl.value && (X = cl.value.getBoundingClientRect().height), ue.value = s - o - $ - F - I - X - a, Z.value = t, G.value ? ol() : De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`,
|
|
1089
|
+
cl.value && (X = cl.value.getBoundingClientRect().height), ue.value = s - o - $ - F - I - X - a, Z.value = t, G.value ? ol() : De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`, Ya();
|
|
1089
1090
|
const S = new ResizeObserver((R) => {
|
|
1090
1091
|
for (const L of R)
|
|
1091
1092
|
e.value.chart.title.show && rl.value ? o = rl.value.getBoundingClientRect().height : o = 0, Le.value && Le.value.$el ? F = Le.value.$el.getBoundingClientRect().height : F = 0, al.value ? $ = al.value.getBoundingClientRect().height : $ = 0, nl.value ? I = nl.value.getBoundingClientRect().height : I = 0, cl.value ? X = cl.value.getBoundingClientRect().height : X = 0, G.value && ge.value.classList.add("no-transition"), requestAnimationFrame(() => {
|
|
1092
|
-
ue.value = L.contentRect.height - o - $ - F - I - X - (G.value ? 48 : a), G.value ? (
|
|
1093
|
+
ue.value = L.contentRect.height - o - $ - F - I - X - (G.value ? 48 : a), G.value ? (fa.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize, nt.value = Z.value / fa.value, ol()) : (Z.value = L.contentBoxSize[0].inlineSize, De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`), Ya();
|
|
1093
1094
|
});
|
|
1094
1095
|
});
|
|
1095
1096
|
Xe.value = S, Yl.value = l, S.observe(l);
|
|
1096
1097
|
} else
|
|
1097
|
-
ue.value = e.value.chart.height, Z.value = e.value.chart.width,
|
|
1098
|
+
ue.value = e.value.chart.height, Z.value = e.value.chart.width, g.value.dataLabels = e.value.chart.grid.labels.fontSize, g.value.yAxis = e.value.chart.grid.labels.axis.fontSize, g.value.xAxis = e.value.chart.grid.labels.xAxisLabels.fontSize, g.value.plotLabels = e.value.chart.labels.fontSize, Ae.value.plot = e.value.plot.radius, Ae.value.line = e.value.line.radius, G.value ? ol() : De.value = `0 0 ${Z.value} ${ue.value}`;
|
|
1098
1099
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1100
|
+
la(() => {
|
|
1101
|
+
Fa(), ea(), document.addEventListener("mousemove", (a) => {
|
|
1102
|
+
rt.value = {
|
|
1102
1103
|
x: a.clientX,
|
|
1103
1104
|
y: a.clientY
|
|
1104
1105
|
};
|
|
1105
|
-
}), document.addEventListener("scroll",
|
|
1106
|
-
}),
|
|
1107
|
-
document.removeEventListener("scroll",
|
|
1106
|
+
}), document.addEventListener("scroll", pa);
|
|
1107
|
+
}), Ea(() => {
|
|
1108
|
+
document.removeEventListener("scroll", pa), Xe.value && (Xe.value.unobserve(Yl.value), Xe.value.disconnect());
|
|
1108
1109
|
}), Cl(() => f.value.isStacked, async () => {
|
|
1109
|
-
G.value && (await
|
|
1110
|
+
G.value && (await me(), ol(), Ql());
|
|
1110
1111
|
});
|
|
1111
1112
|
let zl;
|
|
1112
|
-
async function
|
|
1113
|
-
await
|
|
1113
|
+
async function It() {
|
|
1114
|
+
await me(), ol(), Ql(), zl.disconnect();
|
|
1114
1115
|
}
|
|
1115
|
-
return
|
|
1116
|
+
return la(() => {
|
|
1116
1117
|
ge.value && (zl = new ResizeObserver((a) => {
|
|
1117
1118
|
for (const v of a) {
|
|
1118
1119
|
const { width: l, height: s } = v.contentRect;
|
|
1119
1120
|
if (l > 0 && s > 0) {
|
|
1120
|
-
|
|
1121
|
+
It();
|
|
1121
1122
|
break;
|
|
1122
1123
|
}
|
|
1123
1124
|
}
|
|
1124
1125
|
}), zl.observe(ge.value.parentElement));
|
|
1125
|
-
}),
|
|
1126
|
+
}), Ea(() => {
|
|
1126
1127
|
zl?.disconnect();
|
|
1127
1128
|
}), Cl(() => y.dataset, (a) => {
|
|
1128
1129
|
Array.isArray(a) && a.length > 0 && (Sl.value = !1), He.value = Math.max(...Ne.value.map((v) => Ee({
|
|
1129
1130
|
data: v.series,
|
|
1130
1131
|
threshold: e.value.downsample.threshold
|
|
1131
|
-
}).length)),
|
|
1132
|
+
}).length)), w.value = {
|
|
1132
1133
|
start: 0,
|
|
1133
1134
|
end: He.value
|
|
1134
1135
|
}, Fl.value += 1, El.value += 1;
|
|
1135
1136
|
}, { deep: !0 }), Cl(() => y.config, (a) => {
|
|
1136
|
-
Dl.value || (e.value = Gl()),
|
|
1137
|
+
Dl.value || (e.value = Gl()), Fa(), da.value += 1, va.value += 1, f.value = {
|
|
1137
1138
|
dataLabels: {
|
|
1138
1139
|
show: !0
|
|
1139
1140
|
},
|
|
@@ -1152,51 +1153,51 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1152
1153
|
isStacked: e.value.chart.grid.labels.yAxis.stacked,
|
|
1153
1154
|
useIndividualScale: e.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1154
1155
|
};
|
|
1155
|
-
}, { immediate: !0 }),
|
|
1156
|
-
getData:
|
|
1157
|
-
getImage:
|
|
1158
|
-
generatePdf:
|
|
1159
|
-
generateImage:
|
|
1160
|
-
generateCsv:
|
|
1161
|
-
toggleStack:
|
|
1162
|
-
toggleTable:
|
|
1163
|
-
toggleLabels:
|
|
1164
|
-
toggleTooltip:
|
|
1165
|
-
toggleAnnotator:
|
|
1166
|
-
toggleFullscreen:
|
|
1167
|
-
}), (a, v) => (u(),
|
|
1156
|
+
}, { immediate: !0 }), Ka({
|
|
1157
|
+
getData: pt,
|
|
1158
|
+
getImage: kt,
|
|
1159
|
+
generatePdf: xa,
|
|
1160
|
+
generateImage: ba,
|
|
1161
|
+
generateCsv: Na,
|
|
1162
|
+
toggleStack: wa,
|
|
1163
|
+
toggleTable: Pa,
|
|
1164
|
+
toggleLabels: Ha,
|
|
1165
|
+
toggleTooltip: Ra,
|
|
1166
|
+
toggleAnnotator: Kl,
|
|
1167
|
+
toggleFullscreen: Ba
|
|
1168
|
+
}), (a, v) => (u(), i("div", {
|
|
1168
1169
|
id: `vue-ui-xy_${q.value}`,
|
|
1169
1170
|
class: Ke(`vue-ui-xy ${tl.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1170
1171
|
ref_key: "chart",
|
|
1171
1172
|
ref: ge,
|
|
1172
1173
|
style: z(`background:${e.value.chart.backgroundColor}; color:${e.value.chart.color};width:100%;font-family:${e.value.chart.fontFamily};${e.value.responsive ? "height: 100%" : ""}`),
|
|
1173
|
-
onMouseenter: v[7] || (v[7] = () =>
|
|
1174
|
-
onMouseleave: v[8] || (v[8] = () =>
|
|
1174
|
+
onMouseenter: v[7] || (v[7] = () => ka(!0)),
|
|
1175
|
+
onMouseleave: v[8] || (v[8] = () => ka(!1))
|
|
1175
1176
|
}, [
|
|
1176
|
-
e.value.chart.userOptions.buttons.annotator &&
|
|
1177
|
+
e.value.chart.userOptions.buttons.annotator && pe.value ? (u(), Ie(c(ut), {
|
|
1177
1178
|
key: 0,
|
|
1178
|
-
svgRef:
|
|
1179
|
+
svgRef: pe.value,
|
|
1179
1180
|
backgroundColor: e.value.chart.backgroundColor,
|
|
1180
1181
|
color: e.value.chart.color,
|
|
1181
1182
|
active: kl.value,
|
|
1182
|
-
onClose:
|
|
1183
|
+
onClose: Kl
|
|
1183
1184
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1184
|
-
|
|
1185
|
+
wt.value ? (u(), i("div", {
|
|
1185
1186
|
key: 1,
|
|
1186
1187
|
ref_key: "noTitle",
|
|
1187
1188
|
ref: cl,
|
|
1188
1189
|
class: "vue-data-ui-no-title-space",
|
|
1189
1190
|
style: "height:36px; width: 100%; background:transparent"
|
|
1190
1191
|
}, null, 512)) : d("", !0),
|
|
1191
|
-
e.value.chart.title.show ? (u(),
|
|
1192
|
+
e.value.chart.title.show ? (u(), i("div", {
|
|
1192
1193
|
key: 2,
|
|
1193
1194
|
ref_key: "chartTitle",
|
|
1194
1195
|
ref: rl,
|
|
1195
1196
|
class: "vue-ui-xy-title",
|
|
1196
1197
|
style: z(`font-family:${e.value.chart.fontFamily}`)
|
|
1197
1198
|
}, [
|
|
1198
|
-
(u(), Ie(
|
|
1199
|
-
key: `title_${
|
|
1199
|
+
(u(), Ie(to, {
|
|
1200
|
+
key: `title_${da.value}`,
|
|
1200
1201
|
config: {
|
|
1201
1202
|
title: {
|
|
1202
1203
|
cy: "xy-div-title",
|
|
@@ -1209,13 +1210,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1209
1210
|
}
|
|
1210
1211
|
}, null, 8, ["config"]))
|
|
1211
1212
|
], 4)) : d("", !0),
|
|
1212
|
-
e.value.chart.userOptions.show && (Wl.value || _l.value) ? (u(), Ie(c(
|
|
1213
|
+
e.value.chart.userOptions.show && (Wl.value || _l.value) ? (u(), Ie(c(lt), {
|
|
1213
1214
|
ref: "defails",
|
|
1214
|
-
key: `user_options_${
|
|
1215
|
+
key: `user_options_${ca.value}`,
|
|
1215
1216
|
backgroundColor: e.value.chart.backgroundColor,
|
|
1216
1217
|
color: e.value.chart.color,
|
|
1217
1218
|
isPrinting: c(Ul),
|
|
1218
|
-
isImaging: c(
|
|
1219
|
+
isImaging: c(ga),
|
|
1219
1220
|
uid: q.value,
|
|
1220
1221
|
hasTooltip: e.value.chart.userOptions.buttons.tooltip && e.value.chart.tooltip.show,
|
|
1221
1222
|
hasPdf: e.value.chart.userOptions.buttons.pdf,
|
|
@@ -1235,19 +1236,19 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1235
1236
|
isAnnotation: kl.value,
|
|
1236
1237
|
callbacks: e.value.chart.userOptions.callbacks,
|
|
1237
1238
|
printScale: e.value.chart.userOptions.print.scale,
|
|
1238
|
-
onToggleFullscreen:
|
|
1239
|
-
onGeneratePdf: c(
|
|
1240
|
-
onGenerateCsv:
|
|
1241
|
-
onGenerateImage: c(
|
|
1242
|
-
onToggleTable:
|
|
1243
|
-
onToggleLabels:
|
|
1244
|
-
onToggleStack:
|
|
1245
|
-
onToggleTooltip:
|
|
1246
|
-
onToggleAnnotator:
|
|
1239
|
+
onToggleFullscreen: Ba,
|
|
1240
|
+
onGeneratePdf: c(xa),
|
|
1241
|
+
onGenerateCsv: Na,
|
|
1242
|
+
onGenerateImage: c(ba),
|
|
1243
|
+
onToggleTable: Pa,
|
|
1244
|
+
onToggleLabels: Ha,
|
|
1245
|
+
onToggleStack: wa,
|
|
1246
|
+
onToggleTooltip: Ra,
|
|
1247
|
+
onToggleAnnotator: Kl,
|
|
1247
1248
|
style: z({
|
|
1248
1249
|
visibility: Wl.value ? _l.value ? "visible" : "hidden" : "visible"
|
|
1249
1250
|
})
|
|
1250
|
-
},
|
|
1251
|
+
}, Pt({ _: 2 }, [
|
|
1251
1252
|
a.$slots.menuIcon ? {
|
|
1252
1253
|
name: "menuIcon",
|
|
1253
1254
|
fn: se(({ isOpen: l, color: s }) => [
|
|
@@ -1319,171 +1320,171 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1319
1320
|
key: "9"
|
|
1320
1321
|
} : void 0
|
|
1321
1322
|
]), 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),
|
|
1322
|
-
(u(),
|
|
1323
|
+
(u(), i("svg", {
|
|
1323
1324
|
ref_key: "svgRef",
|
|
1324
|
-
ref:
|
|
1325
|
+
ref: pe,
|
|
1325
1326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1326
1327
|
class: Ke([{ "vue-data-ui-fullscreen--on": tl.value, "vue-data-ui-fulscreen--off": !tl.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1327
1328
|
width: G.value ? void 0 : "100%",
|
|
1328
1329
|
viewBox: De.value,
|
|
1329
1330
|
style: z(`background: transparent; color:${e.value.chart.color}; font-family:${e.value.chart.fontFamily}`),
|
|
1330
|
-
"aria-label":
|
|
1331
|
+
"aria-label": _t.value,
|
|
1331
1332
|
role: "img",
|
|
1332
1333
|
"aria-live": "polite",
|
|
1333
1334
|
preserveAspectRatio: "xMidYMid"
|
|
1334
1335
|
}, [
|
|
1335
|
-
|
|
1336
|
+
b("g", {
|
|
1336
1337
|
ref_key: "G",
|
|
1337
|
-
ref:
|
|
1338
|
+
ref: ia,
|
|
1338
1339
|
class: "vue-data-ui-g"
|
|
1339
1340
|
}, [
|
|
1340
|
-
yl(c(
|
|
1341
|
-
a.$slots["chart-background"] ? (u(),
|
|
1341
|
+
yl(c(st)),
|
|
1342
|
+
a.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
1342
1343
|
key: 0,
|
|
1343
|
-
x:
|
|
1344
|
-
y:
|
|
1345
|
-
width:
|
|
1346
|
-
height:
|
|
1344
|
+
x: r.value.left + B.value < 0 ? 0 : r.value.left + B.value,
|
|
1345
|
+
y: r.value.top,
|
|
1346
|
+
width: r.value.width - (e.value.chart.grid.position === "middle" ? 0 : r.value.width / x.value) < 0 ? 0 : r.value.width - (e.value.chart.grid.position === "middle" ? 0 : r.value.width / x.value),
|
|
1347
|
+
height: r.value.height < 0 ? 0 : r.value.height,
|
|
1347
1348
|
style: {
|
|
1348
1349
|
pointerEvents: "none"
|
|
1349
1350
|
}
|
|
1350
1351
|
}, [
|
|
1351
1352
|
U(a.$slots, "chart-background", {}, void 0, !0)
|
|
1352
|
-
], 8,
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
e.value.chart.grid.labels.xAxis.showBaseline ? (u(),
|
|
1353
|
+
], 8, vo)) : d("", !0),
|
|
1354
|
+
x.value > 0 ? (u(), i("g", ho, [
|
|
1355
|
+
b("g", fo, [
|
|
1356
|
+
e.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
|
|
1356
1357
|
key: 0,
|
|
1357
1358
|
stroke: e.value.chart.grid.stroke,
|
|
1358
1359
|
"stroke-width": "1",
|
|
1359
|
-
x1:
|
|
1360
|
-
x2:
|
|
1361
|
-
y1: c(H)(
|
|
1362
|
-
y2: c(H)(
|
|
1360
|
+
x1: r.value.left + B.value,
|
|
1361
|
+
x2: r.value.right - B.value,
|
|
1362
|
+
y1: c(H)(r.value.bottom),
|
|
1363
|
+
y2: c(H)(r.value.bottom),
|
|
1363
1364
|
"stroke-linecap": "round",
|
|
1364
1365
|
style: { animation: "none !important" }
|
|
1365
|
-
}, null, 8,
|
|
1366
|
-
f.value.useIndividualScale ? e.value.chart.grid.showHorizontalLines ? (u(!0),
|
|
1367
|
-
l.id === M.value && l.yLabels.length ? (u(!0),
|
|
1368
|
-
x1:
|
|
1369
|
-
x2:
|
|
1366
|
+
}, null, 8, go)) : d("", !0),
|
|
1367
|
+
f.value.useIndividualScale ? e.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, m(gl.value, (l) => (u(), i("g", null, [
|
|
1368
|
+
l.id === M.value && l.yLabels.length ? (u(!0), i(h, { key: 0 }, m(l.yLabels, (s) => (u(), i("line", {
|
|
1369
|
+
x1: r.value.left + B.value,
|
|
1370
|
+
x2: r.value.right - B.value,
|
|
1370
1371
|
y1: c(H)(s.y),
|
|
1371
1372
|
y2: c(H)(s.y),
|
|
1372
1373
|
stroke: l.color,
|
|
1373
1374
|
"stroke-width": 0.5,
|
|
1374
1375
|
"stroke-linecap": "round",
|
|
1375
1376
|
style: { animation: "none !important" }
|
|
1376
|
-
}, null, 8,
|
|
1377
|
-
x1:
|
|
1378
|
-
x2:
|
|
1377
|
+
}, null, 8, yo))), 256)) : l.yLabels.length ? (u(!0), i(h, { key: 1 }, m(l.yLabels, (s) => (u(), i("line", {
|
|
1378
|
+
x1: r.value.left + B.value,
|
|
1379
|
+
x2: r.value.right - B.value,
|
|
1379
1380
|
y1: c(H)(s.y),
|
|
1380
1381
|
y2: c(H)(s.y),
|
|
1381
1382
|
stroke: e.value.chart.grid.stroke,
|
|
1382
1383
|
"stroke-width": 0.5,
|
|
1383
1384
|
"stroke-linecap": "round",
|
|
1384
1385
|
style: { animation: "none !important" }
|
|
1385
|
-
}, null, 8,
|
|
1386
|
-
]))), 256)) : d("", !0) : (u(),
|
|
1387
|
-
e.value.chart.grid.labels.yAxis.showBaseline ? (u(),
|
|
1386
|
+
}, null, 8, po))), 256)) : d("", !0)
|
|
1387
|
+
]))), 256)) : d("", !0) : (u(), i(h, { key: 1 }, [
|
|
1388
|
+
e.value.chart.grid.labels.yAxis.showBaseline ? (u(), i("line", {
|
|
1388
1389
|
key: 0,
|
|
1389
1390
|
stroke: e.value.chart.grid.stroke,
|
|
1390
1391
|
"stroke-width": "1",
|
|
1391
|
-
x1:
|
|
1392
|
-
x2:
|
|
1393
|
-
y1: c(H)(
|
|
1394
|
-
y2: c(H)(
|
|
1392
|
+
x1: r.value.left + B.value,
|
|
1393
|
+
x2: r.value.left + B.value,
|
|
1394
|
+
y1: c(H)(r.value.top),
|
|
1395
|
+
y2: c(H)(r.value.bottom),
|
|
1395
1396
|
"stroke-linecap": "round",
|
|
1396
1397
|
style: { animation: "none !important" }
|
|
1397
|
-
}, null, 8,
|
|
1398
|
-
e.value.chart.grid.showHorizontalLines ? (u(),
|
|
1399
|
-
(u(!0),
|
|
1400
|
-
x1:
|
|
1401
|
-
x2:
|
|
1398
|
+
}, null, 8, xo)) : d("", !0),
|
|
1399
|
+
e.value.chart.grid.showHorizontalLines ? (u(), i("g", bo, [
|
|
1400
|
+
(u(!0), i(h, null, m(Ia.value, (l) => (u(), i("line", {
|
|
1401
|
+
x1: r.value.left + B.value,
|
|
1402
|
+
x2: r.value.right - B.value,
|
|
1402
1403
|
y1: c(H)(l.y),
|
|
1403
1404
|
y2: c(H)(l.y),
|
|
1404
1405
|
stroke: e.value.chart.grid.stroke,
|
|
1405
1406
|
"stroke-width": 0.5,
|
|
1406
1407
|
"stroke-linecap": "round",
|
|
1407
1408
|
style: { animation: "none !important" }
|
|
1408
|
-
}, null, 8,
|
|
1409
|
+
}, null, 8, mo))), 256))
|
|
1409
1410
|
])) : d("", !0)
|
|
1410
1411
|
], 64)),
|
|
1411
|
-
e.value.chart.grid.showVerticalLines ? (u(),
|
|
1412
|
-
(u(!0),
|
|
1412
|
+
e.value.chart.grid.showVerticalLines ? (u(), i("g", ko, [
|
|
1413
|
+
(u(!0), i(h, null, m(x.value + (e.value.chart.grid.position === "middle" ? 1 : 0), (l, s) => (u(), i("line", {
|
|
1413
1414
|
key: `grid_vertical_line_${s}`,
|
|
1414
|
-
x1:
|
|
1415
|
-
x2:
|
|
1416
|
-
y1: c(H)(
|
|
1417
|
-
y2: c(H)(
|
|
1415
|
+
x1: r.value.width / x.value * s + r.value.left + B.value,
|
|
1416
|
+
x2: r.value.width / x.value * s + r.value.left + B.value,
|
|
1417
|
+
y1: c(H)(r.value.top),
|
|
1418
|
+
y2: c(H)(r.value.bottom),
|
|
1418
1419
|
"stroke-width": "0.5",
|
|
1419
1420
|
stroke: e.value.chart.grid.stroke,
|
|
1420
1421
|
style: { animation: "none !important" }
|
|
1421
|
-
}, null, 8,
|
|
1422
|
+
}, null, 8, _o))), 128))
|
|
1422
1423
|
])) : d("", !0),
|
|
1423
|
-
e.value.chart.grid.labels.xAxisLabels.show ? (u(),
|
|
1424
|
-
(u(!0),
|
|
1424
|
+
e.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", wo, [
|
|
1425
|
+
(u(!0), i(h, null, m(de.value, (l, s) => (u(), i("g", {
|
|
1425
1426
|
key: `time_label_${s}`
|
|
1426
1427
|
}, [
|
|
1427
|
-
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
1428
|
-
e.value.chart.grid.labels.xAxis.showCrosshairs ? (u(),
|
|
1428
|
+
l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && x.value <= e.value.chart.grid.labels.xAxisLabels.modulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((w.value.end - w.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0 ? (u(), i(h, { key: 0 }, [
|
|
1429
|
+
e.value.chart.grid.labels.xAxis.showCrosshairs ? (u(), i("line", {
|
|
1429
1430
|
key: 0,
|
|
1430
|
-
y1: e.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? ie.value - (ie.value ===
|
|
1431
|
-
y2: e.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? ie.value + e.value.chart.grid.labels.xAxis.crosshairSize / (ie.value ===
|
|
1432
|
-
x1:
|
|
1433
|
-
x2:
|
|
1431
|
+
y1: e.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? ie.value - (ie.value === r.value.bottom ? 0 : e.value.chart.grid.labels.xAxis.crosshairSize / 2) : r.value.bottom,
|
|
1432
|
+
y2: e.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? ie.value + e.value.chart.grid.labels.xAxis.crosshairSize / (ie.value === r.value.bottom ? 1 : 2) : r.value.bottom + e.value.chart.grid.labels.xAxis.crosshairSize,
|
|
1433
|
+
x1: r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2,
|
|
1434
|
+
x2: r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2,
|
|
1434
1435
|
stroke: e.value.chart.grid.stroke,
|
|
1435
1436
|
"stroke-width": 1,
|
|
1436
1437
|
"stroke-linecap": "round",
|
|
1437
1438
|
style: { animation: "none !important" }
|
|
1438
|
-
}, null, 8,
|
|
1439
|
+
}, null, 8, So)) : d("", !0)
|
|
1439
1440
|
], 64)) : d("", !0)
|
|
1440
1441
|
]))), 128))
|
|
1441
1442
|
])) : d("", !0)
|
|
1442
1443
|
]),
|
|
1443
|
-
(u(!0),
|
|
1444
|
+
(u(!0), i(h, null, m(Re.value, (l, s) => (u(), i("defs", {
|
|
1444
1445
|
key: `def_rect_${s}`
|
|
1445
1446
|
}, [
|
|
1446
|
-
|
|
1447
|
+
b("linearGradient", {
|
|
1447
1448
|
id: `rectGradient_pos_${s}_${q.value}`,
|
|
1448
1449
|
x2: "0%",
|
|
1449
1450
|
y2: "100%"
|
|
1450
1451
|
}, [
|
|
1451
|
-
|
|
1452
|
+
b("stop", {
|
|
1452
1453
|
offset: "0%",
|
|
1453
1454
|
"stop-color": l.color
|
|
1454
|
-
}, null, 8,
|
|
1455
|
-
|
|
1455
|
+
}, null, 8, Lo),
|
|
1456
|
+
b("stop", {
|
|
1456
1457
|
offset: "62%",
|
|
1457
1458
|
"stop-color": `${c(ll)(l.color, 0.02)}`
|
|
1458
|
-
}, null, 8,
|
|
1459
|
-
|
|
1459
|
+
}, null, 8, Ao),
|
|
1460
|
+
b("stop", {
|
|
1460
1461
|
offset: "100%",
|
|
1461
1462
|
"stop-color": `${c(ll)(l.color, 0.05)}`
|
|
1462
|
-
}, null, 8,
|
|
1463
|
-
], 8,
|
|
1464
|
-
|
|
1463
|
+
}, null, 8, Mo)
|
|
1464
|
+
], 8, $o),
|
|
1465
|
+
b("linearGradient", {
|
|
1465
1466
|
id: `rectGradient_neg_${s}_${q.value}`,
|
|
1466
1467
|
x2: "0%",
|
|
1467
1468
|
y2: "100%"
|
|
1468
1469
|
}, [
|
|
1469
|
-
|
|
1470
|
+
b("stop", {
|
|
1470
1471
|
offset: "0%",
|
|
1471
1472
|
"stop-color": `${c(ll)(l.color, 0.05)}`
|
|
1472
|
-
}, null, 8,
|
|
1473
|
-
|
|
1473
|
+
}, null, 8, Co),
|
|
1474
|
+
b("stop", {
|
|
1474
1475
|
offset: "38%",
|
|
1475
1476
|
"stop-color": `${c(ll)(l.color, 0.02)}`
|
|
1476
|
-
}, null, 8,
|
|
1477
|
-
|
|
1477
|
+
}, null, 8, Io),
|
|
1478
|
+
b("stop", {
|
|
1478
1479
|
offset: "100%",
|
|
1479
1480
|
"stop-color": l.color
|
|
1480
|
-
}, null, 8,
|
|
1481
|
-
], 8,
|
|
1481
|
+
}, null, 8, To)
|
|
1482
|
+
], 8, zo)
|
|
1482
1483
|
]))), 128)),
|
|
1483
|
-
(u(!0),
|
|
1484
|
+
(u(!0), i(h, null, m(ze.value, (l, s) => (u(), i("defs", {
|
|
1484
1485
|
key: `def_plot_${s}`
|
|
1485
1486
|
}, [
|
|
1486
|
-
|
|
1487
|
+
b("radialGradient", {
|
|
1487
1488
|
id: `plotGradient_${s}_${q.value}`,
|
|
1488
1489
|
cx: "50%",
|
|
1489
1490
|
cy: "50%",
|
|
@@ -1491,20 +1492,20 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1491
1492
|
fx: "50%",
|
|
1492
1493
|
fy: "50%"
|
|
1493
1494
|
}, [
|
|
1494
|
-
|
|
1495
|
+
b("stop", {
|
|
1495
1496
|
offset: "0%",
|
|
1496
1497
|
"stop-color": `${c(ll)(l.color, 0.05)}`
|
|
1497
|
-
}, null, 8,
|
|
1498
|
-
|
|
1498
|
+
}, null, 8, No),
|
|
1499
|
+
b("stop", {
|
|
1499
1500
|
offset: "100%",
|
|
1500
1501
|
"stop-color": l.color
|
|
1501
|
-
}, null, 8,
|
|
1502
|
-
], 8,
|
|
1502
|
+
}, null, 8, Vo)
|
|
1503
|
+
], 8, Oo)
|
|
1503
1504
|
]))), 128)),
|
|
1504
|
-
(u(!0),
|
|
1505
|
+
(u(!0), i(h, null, m(Se.value, (l, s) => (u(), i("defs", {
|
|
1505
1506
|
key: `def_line_${s}`
|
|
1506
1507
|
}, [
|
|
1507
|
-
|
|
1508
|
+
b("radialGradient", {
|
|
1508
1509
|
id: `lineGradient_${s}_${q.value}`,
|
|
1509
1510
|
cx: "50%",
|
|
1510
1511
|
cy: "50%",
|
|
@@ -1512,126 +1513,126 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1512
1513
|
fx: "50%",
|
|
1513
1514
|
fy: "50%"
|
|
1514
1515
|
}, [
|
|
1515
|
-
|
|
1516
|
+
b("stop", {
|
|
1516
1517
|
offset: "0%",
|
|
1517
1518
|
"stop-color": `${c(ll)(l.color, 0.05)}`
|
|
1518
|
-
}, null, 8,
|
|
1519
|
-
|
|
1519
|
+
}, null, 8, Ho),
|
|
1520
|
+
b("stop", {
|
|
1520
1521
|
offset: "100%",
|
|
1521
1522
|
"stop-color": l.color
|
|
1522
|
-
}, null, 8,
|
|
1523
|
-
], 8,
|
|
1524
|
-
|
|
1523
|
+
}, null, 8, Ro)
|
|
1524
|
+
], 8, Po),
|
|
1525
|
+
b("linearGradient", {
|
|
1525
1526
|
id: `areaGradient_${s}_${q.value}`,
|
|
1526
1527
|
x1: "0%",
|
|
1527
1528
|
x2: "100%",
|
|
1528
1529
|
y1: "0%",
|
|
1529
1530
|
y2: "0%"
|
|
1530
1531
|
}, [
|
|
1531
|
-
|
|
1532
|
+
b("stop", {
|
|
1532
1533
|
offset: "0%",
|
|
1533
1534
|
"stop-color": `${c($e)(c(ll)(l.color, 0.03), e.value.line.area.opacity)}`
|
|
1534
|
-
}, null, 8,
|
|
1535
|
-
|
|
1535
|
+
}, null, 8, Yo),
|
|
1536
|
+
b("stop", {
|
|
1536
1537
|
offset: "100%",
|
|
1537
1538
|
"stop-color": `${c($e)(l.color, e.value.line.area.opacity)}`
|
|
1538
|
-
}, null, 8,
|
|
1539
|
-
], 8,
|
|
1539
|
+
}, null, 8, Fo)
|
|
1540
|
+
], 8, Bo)
|
|
1540
1541
|
]))), 128)),
|
|
1541
|
-
(u(!0),
|
|
1542
|
-
l.show ? (u(),
|
|
1543
|
-
(u(!0),
|
|
1544
|
-
|
|
1542
|
+
(u(!0), i(h, null, m(St.value, (l) => (u(), i("g", null, [
|
|
1543
|
+
l.show ? (u(), i(h, { key: 0 }, [
|
|
1544
|
+
(u(!0), i(h, null, m(l.span, (s, t) => (u(), i("g", null, [
|
|
1545
|
+
b("rect", {
|
|
1545
1546
|
style: z({
|
|
1546
1547
|
transition: "none",
|
|
1547
|
-
opacity: l.from + t >=
|
|
1548
|
+
opacity: l.from + t >= w.value.start && l.from + t <= w.value.end - 1 ? 1 : 0
|
|
1548
1549
|
}),
|
|
1549
|
-
x:
|
|
1550
|
-
y:
|
|
1551
|
-
height:
|
|
1552
|
-
width:
|
|
1550
|
+
x: r.value.left + r.value.width / x.value * (l.from + t - w.value.start),
|
|
1551
|
+
y: r.value.top,
|
|
1552
|
+
height: r.value.height < 0 ? 10 : r.value.height,
|
|
1553
|
+
width: r.value.width / x.value < 0 ? 1e-5 : r.value.width / x.value,
|
|
1553
1554
|
fill: c($e)(l.color, l.opacity)
|
|
1554
|
-
}, null, 12,
|
|
1555
|
+
}, null, 12, Eo)
|
|
1555
1556
|
]))), 256)),
|
|
1556
|
-
(u(!0),
|
|
1557
|
-
l.caption.text && t === 0 ? (u(),
|
|
1557
|
+
(u(!0), i(h, null, m(l.span, (s, t) => (u(), i("g", null, [
|
|
1558
|
+
l.caption.text && t === 0 ? (u(), i("foreignObject", {
|
|
1558
1559
|
key: 0,
|
|
1559
|
-
x:
|
|
1560
|
-
y:
|
|
1560
|
+
x: r.value.left + r.value.width / x.value * (l.from + t - w.value.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - r.value.width / x.value * l.span / 2),
|
|
1561
|
+
y: r.value.top + l.caption.offsetY,
|
|
1561
1562
|
style: z({
|
|
1562
1563
|
overflow: "visible",
|
|
1563
|
-
opacity: l.to >=
|
|
1564
|
+
opacity: l.to >= w.value.start && l.from < w.value.end ? 1 : 0
|
|
1564
1565
|
}),
|
|
1565
1566
|
height: "1",
|
|
1566
|
-
width: l.caption.width === "auto" ?
|
|
1567
|
+
width: l.caption.width === "auto" ? r.value.width / x.value * l.span : l.caption.width
|
|
1567
1568
|
}, [
|
|
1568
|
-
|
|
1569
|
+
b("div", {
|
|
1569
1570
|
style: z(`padding:${l.caption.padding}px;text-align:${l.caption.textAlign};font-size:${l.caption.fontSize}px;color:${l.caption.color};font-weight:${l.caption.bold ? "bold" : "normal"}`)
|
|
1570
1571
|
}, ee(l.caption.text), 5)
|
|
1571
|
-
], 12,
|
|
1572
|
+
], 12, Wo)) : d("", !0)
|
|
1572
1573
|
]))), 256))
|
|
1573
1574
|
], 64)) : d("", !0)
|
|
1574
1575
|
]))), 256)),
|
|
1575
|
-
|
|
1576
|
-
(u(!0),
|
|
1576
|
+
Jl.value ? (u(), i("g", Go, [
|
|
1577
|
+
(u(!0), i(h, null, m(x.value, (l, s) => (u(), i("g", {
|
|
1577
1578
|
key: `tooltip_trap_highlighter_${s}`
|
|
1578
1579
|
}, [
|
|
1579
|
-
|
|
1580
|
-
x:
|
|
1581
|
-
y:
|
|
1582
|
-
height:
|
|
1583
|
-
width:
|
|
1580
|
+
b("rect", {
|
|
1581
|
+
x: r.value.left + r.value.width / x.value * s,
|
|
1582
|
+
y: r.value.top,
|
|
1583
|
+
height: r.value.height < 0 ? 10 : r.value.height,
|
|
1584
|
+
width: r.value.width / x.value < 0 ? 1e-5 : r.value.width / x.value,
|
|
1584
1585
|
fill: [O.value, k.value, Ue.value].includes(s) ? c($e)(e.value.chart.highlighter.color, e.value.chart.highlighter.opacity) : "transparent"
|
|
1585
|
-
}, null, 8,
|
|
1586
|
+
}, null, 8, Xo)
|
|
1586
1587
|
]))), 128))
|
|
1587
|
-
]),
|
|
1588
|
-
Re.value.length ? (u(!0),
|
|
1588
|
+
])) : d("", !0),
|
|
1589
|
+
Re.value.length ? (u(!0), i(h, { key: 1 }, m(Re.value, (l, s) => (u(), i("g", {
|
|
1589
1590
|
key: `serie_bar_${s}`,
|
|
1590
1591
|
class: Ke(`serie_bar_${s}`),
|
|
1591
1592
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1592
1593
|
}, [
|
|
1593
|
-
(u(!0),
|
|
1594
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i("g", {
|
|
1594
1595
|
key: `bar_plot_${s}_${n}`
|
|
1595
1596
|
}, [
|
|
1596
|
-
xe(t.value) ? (u(),
|
|
1597
|
+
xe(t.value) ? (u(), i("rect", {
|
|
1597
1598
|
key: 0,
|
|
1598
1599
|
x: Al(t),
|
|
1599
|
-
y: f.value.useIndividualScale ?
|
|
1600
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1601
|
-
width:
|
|
1600
|
+
y: f.value.useIndividualScale ? Ma(t) : Aa(t),
|
|
1601
|
+
height: f.value.useIndividualScale ? Math.abs(La(t)) : Math.abs($a(t)),
|
|
1602
|
+
width: we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value),
|
|
1602
1603
|
rx: e.value.bar.borderRadius,
|
|
1603
1604
|
fill: e.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${q.value})` : `url(#rectGradient_neg_${s}_${q.value})` : l.color,
|
|
1604
1605
|
stroke: e.value.bar.border.useSerieColor ? l.color : e.value.bar.border.stroke,
|
|
1605
1606
|
"stroke-width": e.value.bar.border.strokeWidth,
|
|
1606
1607
|
style: z(`${c(Dl) ? "transition:none !important" : ""}`)
|
|
1607
|
-
}, null, 12,
|
|
1608
|
-
xe(t.value) && a.$slots.pattern ? (u(),
|
|
1608
|
+
}, null, 12, Do)) : d("", !0),
|
|
1609
|
+
xe(t.value) && a.$slots.pattern ? (u(), i("rect", {
|
|
1609
1610
|
key: 1,
|
|
1610
1611
|
x: Al(t),
|
|
1611
|
-
y: f.value.useIndividualScale ?
|
|
1612
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1613
|
-
width:
|
|
1612
|
+
y: f.value.useIndividualScale ? Ma(t) : Aa(t),
|
|
1613
|
+
height: f.value.useIndividualScale ? Math.abs(La(t)) : Math.abs($a(t)),
|
|
1614
|
+
width: we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value),
|
|
1614
1615
|
rx: e.value.bar.borderRadius,
|
|
1615
1616
|
fill: `url(#pattern_${q.value}_${l.slotAbsoluteIndex})`,
|
|
1616
1617
|
stroke: e.value.bar.border.useSerieColor ? l.color : e.value.bar.border.stroke,
|
|
1617
1618
|
"stroke-width": e.value.bar.border.strokeWidth
|
|
1618
|
-
}, null, 8,
|
|
1619
|
-
t.comment && e.value.chart.comments.show ? (u(),
|
|
1619
|
+
}, null, 8, Uo)) : d("", !0),
|
|
1620
|
+
t.comment && e.value.chart.comments.show ? (u(), i("foreignObject", {
|
|
1620
1621
|
key: 2,
|
|
1621
1622
|
style: { overflow: "visible" },
|
|
1622
1623
|
height: "12",
|
|
1623
|
-
width: (
|
|
1624
|
+
width: (we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : we() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) / 2) + e.value.chart.comments.width,
|
|
1624
1625
|
x: Al(t) - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
|
|
1625
1626
|
y: c(T)(t.y) + e.value.chart.comments.offsetY + 6
|
|
1626
1627
|
}, [
|
|
1627
1628
|
U(a.$slots, "plot-comment", {
|
|
1628
1629
|
plot: { ...t, color: l.color, seriesIndex: s, datapointIndex: n }
|
|
1629
1630
|
}, void 0, !0)
|
|
1630
|
-
], 8,
|
|
1631
|
+
], 8, qo)) : d("", !0)
|
|
1631
1632
|
]))), 128)),
|
|
1632
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(c(W)(l.plots).trend) ? (u(),
|
|
1633
|
-
|
|
1634
|
-
|
|
1633
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(c(W)(l.plots).trend) ? (u(), i("g", Zo, [
|
|
1634
|
+
b("defs", null, [
|
|
1635
|
+
b("marker", {
|
|
1635
1636
|
id: `bar_arrow_${s}`,
|
|
1636
1637
|
markerWidth: 7,
|
|
1637
1638
|
markerHeight: 7,
|
|
@@ -1639,100 +1640,100 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1639
1640
|
refY: 7 / 2,
|
|
1640
1641
|
orient: "auto"
|
|
1641
1642
|
}, [
|
|
1642
|
-
|
|
1643
|
+
b("polygon", {
|
|
1643
1644
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1644
1645
|
fill: l.color
|
|
1645
|
-
}, null, 8,
|
|
1646
|
-
], 8,
|
|
1646
|
+
}, null, 8, Ko)
|
|
1647
|
+
], 8, Jo)
|
|
1647
1648
|
]),
|
|
1648
|
-
l.plots.length > 1 ? (u(),
|
|
1649
|
+
l.plots.length > 1 ? (u(), i("line", {
|
|
1649
1650
|
key: 0,
|
|
1650
|
-
x1: c(W)(l.plots).x1 +
|
|
1651
|
-
x2: c(W)(l.plots).x2 +
|
|
1651
|
+
x1: c(W)(l.plots).x1 + we(),
|
|
1652
|
+
x2: c(W)(l.plots).x2 + we(),
|
|
1652
1653
|
y1: c(H)(c(W)(l.plots).y1),
|
|
1653
1654
|
y2: c(H)(c(W)(l.plots).y2),
|
|
1654
1655
|
"stroke-width": 1,
|
|
1655
1656
|
stroke: l.color,
|
|
1656
1657
|
"stroke-dasharray": 2,
|
|
1657
1658
|
"marker-end": `url(#bar_arrow_${s})`
|
|
1658
|
-
}, null, 8,
|
|
1659
|
-
l.plots.length > 1 ? (u(),
|
|
1659
|
+
}, null, 8, Qo)) : d("", !0),
|
|
1660
|
+
l.plots.length > 1 ? (u(), i("text", {
|
|
1660
1661
|
key: 1,
|
|
1661
1662
|
"text-anchor": "middle",
|
|
1662
|
-
x: c(W)(l.plots).x2 +
|
|
1663
|
+
x: c(W)(l.plots).x2 + we(),
|
|
1663
1664
|
y: c(W)(l.plots).y2 - 6,
|
|
1664
|
-
"font-size":
|
|
1665
|
+
"font-size": g.value.plotLabels,
|
|
1665
1666
|
fill: l.color
|
|
1666
|
-
}, ee(c(
|
|
1667
|
+
}, ee(c(ye)({
|
|
1667
1668
|
v: c(W)(l.plots).trend * 100,
|
|
1668
1669
|
s: "%",
|
|
1669
1670
|
r: 2
|
|
1670
|
-
})), 9,
|
|
1671
|
+
})), 9, jo)) : d("", !0)
|
|
1671
1672
|
])) : d("", !0)
|
|
1672
1673
|
], 6))), 128)) : d("", !0),
|
|
1673
|
-
!f.value.useIndividualScale && e.value.chart.grid.labels.zeroLine.show ? (u(),
|
|
1674
|
-
key:
|
|
1674
|
+
!f.value.useIndividualScale && e.value.chart.grid.labels.zeroLine.show ? (u(), i("line", {
|
|
1675
|
+
key: 2,
|
|
1675
1676
|
stroke: e.value.chart.grid.stroke,
|
|
1676
1677
|
"stroke-width": "1",
|
|
1677
|
-
x1:
|
|
1678
|
-
x2:
|
|
1678
|
+
x1: r.value.left + B.value,
|
|
1679
|
+
x2: r.value.right - B.value,
|
|
1679
1680
|
y1: c(H)(ie.value),
|
|
1680
1681
|
y2: c(H)(ie.value),
|
|
1681
1682
|
"stroke-linecap": "round",
|
|
1682
1683
|
style: { animation: "none !important" }
|
|
1683
|
-
}, null, 8,
|
|
1684
|
-
e.value.chart.highlighter.useLine && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(),
|
|
1685
|
-
|
|
1686
|
-
x1:
|
|
1687
|
-
x2:
|
|
1688
|
-
y1: c(H)(
|
|
1689
|
-
y2: c(H)(
|
|
1684
|
+
}, null, 8, es)) : d("", !0),
|
|
1685
|
+
e.value.chart.highlighter.useLine && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ls, [
|
|
1686
|
+
b("line", {
|
|
1687
|
+
x1: r.value.left + r.value.width / x.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + r.value.width / x.value / 2,
|
|
1688
|
+
x2: r.value.left + r.value.width / x.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + r.value.width / x.value / 2,
|
|
1689
|
+
y1: c(H)(r.value.top),
|
|
1690
|
+
y2: c(H)(r.value.bottom),
|
|
1690
1691
|
stroke: e.value.chart.highlighter.color,
|
|
1691
1692
|
"stroke-width": e.value.chart.highlighter.lineWidth,
|
|
1692
1693
|
"stroke-dasharray": e.value.chart.highlighter.lineDasharray,
|
|
1693
1694
|
"stroke-linecap": "round",
|
|
1694
1695
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1695
|
-
}, null, 8,
|
|
1696
|
+
}, null, 8, as)
|
|
1696
1697
|
])) : d("", !0),
|
|
1697
|
-
e.value.chart.grid.frame.show ? (u(),
|
|
1698
|
-
key:
|
|
1698
|
+
e.value.chart.grid.frame.show ? (u(), i("rect", {
|
|
1699
|
+
key: 4,
|
|
1699
1700
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
1700
|
-
x:
|
|
1701
|
-
y:
|
|
1702
|
-
width:
|
|
1703
|
-
height:
|
|
1701
|
+
x: r.value.left + B.value < 0 ? 0 : r.value.left + B.value,
|
|
1702
|
+
y: r.value.top,
|
|
1703
|
+
width: r.value.width - (e.value.chart.grid.position === "middle" ? 0 : r.value.width / x.value) < 0 ? 0 : r.value.width - (e.value.chart.grid.position === "middle" ? 0 : r.value.width / x.value),
|
|
1704
|
+
height: r.value.height < 0 ? 0 : r.value.height,
|
|
1704
1705
|
fill: "transparent",
|
|
1705
1706
|
stroke: e.value.chart.grid.frame.stroke,
|
|
1706
1707
|
"stroke-width": e.value.chart.grid.frame.strokeWidth,
|
|
1707
1708
|
"stroke-linecap": e.value.chart.grid.frame.strokeLinecap,
|
|
1708
1709
|
"stroke-linejoin": e.value.chart.grid.frame.strokeLinejoin,
|
|
1709
1710
|
"stroke-dasharray": e.value.chart.grid.frame.strokeDasharray
|
|
1710
|
-
}, null, 8,
|
|
1711
|
-
e.value.chart.grid.labels.show ? (u(),
|
|
1712
|
-
f.value.useIndividualScale ? (u(),
|
|
1713
|
-
(u(!0),
|
|
1714
|
-
|
|
1711
|
+
}, null, 8, ts)) : d("", !0),
|
|
1712
|
+
e.value.chart.grid.labels.show ? (u(), i("g", os, [
|
|
1713
|
+
f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
|
|
1714
|
+
(u(!0), i(h, null, m(gl.value, (l) => (u(), i("g", null, [
|
|
1715
|
+
b("line", {
|
|
1715
1716
|
x1: l.x + B.value,
|
|
1716
1717
|
x2: l.x + B.value,
|
|
1717
|
-
y1: f.value.isStacked ? c(H)(
|
|
1718
|
-
y2: f.value.isStacked ? c(H)(
|
|
1718
|
+
y1: f.value.isStacked ? c(H)(r.value.bottom - l.yOffset - l.individualHeight) : c(H)(r.value.top),
|
|
1719
|
+
y2: f.value.isStacked ? c(H)(r.value.bottom - l.yOffset) : c(H)(r.value.bottom),
|
|
1719
1720
|
stroke: l.color,
|
|
1720
1721
|
"stroke-width": e.value.chart.grid.stroke,
|
|
1721
1722
|
"stroke-linecap": "round",
|
|
1722
1723
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1723
|
-
}, null, 12,
|
|
1724
|
+
}, null, 12, ss)
|
|
1724
1725
|
]))), 256)),
|
|
1725
|
-
(u(!0),
|
|
1726
|
+
(u(!0), i(h, null, m(gl.value, (l) => (u(), i("g", {
|
|
1726
1727
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1727
1728
|
}, [
|
|
1728
|
-
|
|
1729
|
+
b("text", {
|
|
1729
1730
|
fill: l.color,
|
|
1730
|
-
"font-size":
|
|
1731
|
+
"font-size": g.value.dataLabels,
|
|
1731
1732
|
"text-anchor": "middle",
|
|
1732
|
-
transform: `translate(${l.x - e.value.chart.grid.labels.yAxis.labelWidth + 5 + B.value + e.value.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${f.value.isStacked ?
|
|
1733
|
-
}, ee(l.name) + " " + ee(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9,
|
|
1734
|
-
(u(!0),
|
|
1735
|
-
e.value.chart.grid.labels.yAxis.showCrosshairs ? (u(),
|
|
1733
|
+
transform: `translate(${l.x - e.value.chart.grid.labels.yAxis.labelWidth + 5 + B.value + e.value.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${f.value.isStacked ? r.value.bottom - l.yOffset - l.individualHeight / 2 : r.value.top + r.value.height / 2}) rotate(-90)`
|
|
1734
|
+
}, ee(l.name) + " " + ee(l.scaleLabel && l.unique && l.scaleLabel !== l.id ? `- ${l.scaleLabel}` : ""), 9, us),
|
|
1735
|
+
(u(!0), i(h, null, m(l.yLabels, (s, t) => (u(), i(h, null, [
|
|
1736
|
+
e.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
1736
1737
|
key: 0,
|
|
1737
1738
|
x1: l.x + 3 + B.value - e.value.chart.grid.labels.yAxis.crosshairSize,
|
|
1738
1739
|
x2: l.x + B.value,
|
|
@@ -1742,65 +1743,65 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1742
1743
|
"stroke-width": 1,
|
|
1743
1744
|
"stroke-linecap": "round",
|
|
1744
1745
|
style: { animation: "none !important" }
|
|
1745
|
-
}, null, 8,
|
|
1746
|
+
}, null, 8, is)) : d("", !0)
|
|
1746
1747
|
], 64))), 256)),
|
|
1747
|
-
(u(!0),
|
|
1748
|
-
x: G.value ? l.x -
|
|
1749
|
-
y: c(H)(s.y) +
|
|
1750
|
-
"font-size":
|
|
1748
|
+
(u(!0), i(h, null, m(l.yLabels, (s, t) => (u(), i("text", {
|
|
1749
|
+
x: G.value ? l.x - g.value.dataLabels / 2 + B.value + e.value.chart.grid.labels.yAxis.scaleValueOffsetX : l.x - 5 + B.value + e.value.chart.grid.labels.yAxis.scaleValueOffsetX,
|
|
1750
|
+
y: c(H)(s.y) + g.value.dataLabels / 3,
|
|
1751
|
+
"font-size": g.value.dataLabels,
|
|
1751
1752
|
"text-anchor": "end",
|
|
1752
1753
|
fill: l.color
|
|
1753
1754
|
}, ee(c(ce)(
|
|
1754
1755
|
e.value.chart.grid.labels.yAxis.formatter,
|
|
1755
1756
|
s.value,
|
|
1756
|
-
c(
|
|
1757
|
+
c(ye)({
|
|
1757
1758
|
p: s.prefix,
|
|
1758
1759
|
v: s.value,
|
|
1759
1760
|
s: s.suffix,
|
|
1760
1761
|
r: 1
|
|
1761
1762
|
}),
|
|
1762
1763
|
{ datapoint: s.datapoint, seriesIndex: t }
|
|
1763
|
-
)), 9,
|
|
1764
|
+
)), 9, rs))), 256))
|
|
1764
1765
|
], 4))), 256))
|
|
1765
|
-
], 64)) : (u(!0),
|
|
1766
|
+
], 64)) : (u(!0), i(h, { key: 1 }, m(Ia.value, (l, s) => (u(), i("g", {
|
|
1766
1767
|
key: `yLabel_${s}`
|
|
1767
1768
|
}, [
|
|
1768
|
-
xe(l) && l.value >=
|
|
1769
|
+
xe(l) && l.value >= ke.value.min && l.value <= ke.value.max && e.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
1769
1770
|
key: 0,
|
|
1770
|
-
x1:
|
|
1771
|
-
x2:
|
|
1771
|
+
x1: r.value.left + B.value,
|
|
1772
|
+
x2: r.value.left - e.value.chart.grid.labels.yAxis.crosshairSize + B.value,
|
|
1772
1773
|
y1: c(H)(l.y),
|
|
1773
1774
|
y2: c(H)(l.y),
|
|
1774
1775
|
stroke: e.value.chart.grid.stroke,
|
|
1775
1776
|
"stroke-width": "1",
|
|
1776
1777
|
"stroke-linecap": "round",
|
|
1777
1778
|
style: { animation: "none !important" }
|
|
1778
|
-
}, null, 8,
|
|
1779
|
-
l.value >=
|
|
1779
|
+
}, null, 8, ns)) : d("", !0),
|
|
1780
|
+
l.value >= ke.value.min && l.value <= ke.value.max ? (u(), i("text", {
|
|
1780
1781
|
key: 1,
|
|
1781
|
-
x:
|
|
1782
|
-
y: c(T)(l.y +
|
|
1783
|
-
"font-size":
|
|
1782
|
+
x: r.value.left - 7 + B.value,
|
|
1783
|
+
y: c(T)(l.y + g.value.dataLabels / 3),
|
|
1784
|
+
"font-size": g.value.dataLabels,
|
|
1784
1785
|
"text-anchor": "end",
|
|
1785
1786
|
fill: e.value.chart.grid.labels.color
|
|
1786
1787
|
}, ee(xe(l.value) ? c(ce)(
|
|
1787
1788
|
e.value.chart.grid.labels.yAxis.formatter,
|
|
1788
1789
|
l.value,
|
|
1789
|
-
c(
|
|
1790
|
+
c(ye)({
|
|
1790
1791
|
p: l.prefix,
|
|
1791
1792
|
v: l.value,
|
|
1792
1793
|
s: l.suffix,
|
|
1793
1794
|
r: 1
|
|
1794
1795
|
})
|
|
1795
|
-
) : ""), 9,
|
|
1796
|
+
) : ""), 9, cs)) : d("", !0)
|
|
1796
1797
|
]))), 128))
|
|
1797
1798
|
], 512)) : d("", !0),
|
|
1798
|
-
(u(!0),
|
|
1799
|
+
(u(!0), i(h, null, m(ze.value, (l, s) => (u(), i("g", {
|
|
1799
1800
|
key: `serie_plot_${s}`,
|
|
1800
1801
|
class: Ke(`serie_plot_${s}`),
|
|
1801
1802
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1802
1803
|
}, [
|
|
1803
|
-
(u(!0),
|
|
1804
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i("g", {
|
|
1804
1805
|
key: `circle_plot_${s}_${n}`
|
|
1805
1806
|
}, [
|
|
1806
1807
|
t && xe(t.value) ? (u(), Ie(Ol, {
|
|
@@ -1812,7 +1813,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1812
1813
|
stroke: e.value.plot.dot.useSerieColor ? e.value.chart.backgroundColor : l.color,
|
|
1813
1814
|
strokeWidth: e.value.plot.dot.strokeWidth
|
|
1814
1815
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
1815
|
-
t.comment && e.value.chart.comments.show ? (u(),
|
|
1816
|
+
t.comment && e.value.chart.comments.show ? (u(), i("foreignObject", {
|
|
1816
1817
|
key: 1,
|
|
1817
1818
|
style: { overflow: "visible" },
|
|
1818
1819
|
height: "12",
|
|
@@ -1820,16 +1821,16 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1820
1821
|
x: t.x - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
|
|
1821
1822
|
y: t.y + e.value.chart.comments.offsetY + 6
|
|
1822
1823
|
}, [
|
|
1823
|
-
|
|
1824
|
+
b("div", ds, [
|
|
1824
1825
|
U(a.$slots, "plot-comment", {
|
|
1825
1826
|
plot: { ...t, color: l.color, seriesIndex: s, datapointIndex: n }
|
|
1826
1827
|
}, void 0, !0)
|
|
1827
1828
|
])
|
|
1828
|
-
], 8,
|
|
1829
|
+
], 8, vs)) : d("", !0)
|
|
1829
1830
|
]))), 128)),
|
|
1830
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(c(W)(l.plots).trend) ? (u(),
|
|
1831
|
-
|
|
1832
|
-
|
|
1831
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(c(W)(l.plots).trend) ? (u(), i("g", hs, [
|
|
1832
|
+
b("defs", null, [
|
|
1833
|
+
b("marker", {
|
|
1833
1834
|
id: `plot_arrow_${s}`,
|
|
1834
1835
|
markerWidth: 7,
|
|
1835
1836
|
markerHeight: 7,
|
|
@@ -1837,13 +1838,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1837
1838
|
refY: 7 / 2,
|
|
1838
1839
|
orient: "auto"
|
|
1839
1840
|
}, [
|
|
1840
|
-
|
|
1841
|
+
b("polygon", {
|
|
1841
1842
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1842
1843
|
fill: l.color
|
|
1843
|
-
}, null, 8,
|
|
1844
|
-
], 8,
|
|
1844
|
+
}, null, 8, gs)
|
|
1845
|
+
], 8, fs)
|
|
1845
1846
|
]),
|
|
1846
|
-
l.plots.length > 1 ? (u(),
|
|
1847
|
+
l.plots.length > 1 ? (u(), i("line", {
|
|
1847
1848
|
key: 0,
|
|
1848
1849
|
x1: c(W)(l.plots).x1,
|
|
1849
1850
|
x2: c(W)(l.plots).x2,
|
|
@@ -1853,34 +1854,34 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1853
1854
|
stroke: l.color,
|
|
1854
1855
|
"stroke-dasharray": 2,
|
|
1855
1856
|
"marker-end": `url(#plot_arrow_${s})`
|
|
1856
|
-
}, null, 8,
|
|
1857
|
-
l.plots.length > 1 ? (u(),
|
|
1857
|
+
}, null, 8, xs)) : d("", !0),
|
|
1858
|
+
l.plots.length > 1 ? (u(), i("text", {
|
|
1858
1859
|
key: 1,
|
|
1859
1860
|
"text-anchor": "middle",
|
|
1860
1861
|
x: c(W)(l.plots).x2,
|
|
1861
1862
|
y: c(W)(l.plots).y2 - 6,
|
|
1862
|
-
"font-size":
|
|
1863
|
+
"font-size": g.value.plotLabels,
|
|
1863
1864
|
fill: l.color
|
|
1864
|
-
}, ee(c(
|
|
1865
|
+
}, ee(c(ye)({
|
|
1865
1866
|
v: c(W)(l.plots).trend * 100,
|
|
1866
1867
|
s: "%",
|
|
1867
1868
|
r: 2
|
|
1868
|
-
})), 9,
|
|
1869
|
+
})), 9, bs)) : d("", !0)
|
|
1869
1870
|
])) : d("", !0)
|
|
1870
1871
|
], 6))), 128)),
|
|
1871
|
-
(u(!0),
|
|
1872
|
+
(u(!0), i(h, null, m(Se.value, (l, s) => (u(), i("g", {
|
|
1872
1873
|
key: `serie_line_${s}`,
|
|
1873
1874
|
class: Ke(`serie_line_${s}`),
|
|
1874
1875
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1875
1876
|
}, [
|
|
1876
|
-
l.smooth && l.plots.length > 1 && l.curve ? (u(),
|
|
1877
|
+
l.smooth && l.plots.length > 1 && l.curve ? (u(), i("path", {
|
|
1877
1878
|
key: 0,
|
|
1878
1879
|
d: `M${l.curve}`,
|
|
1879
1880
|
stroke: e.value.chart.backgroundColor,
|
|
1880
1881
|
"stroke-width": e.value.line.strokeWidth + 1,
|
|
1881
1882
|
"stroke-dasharray": l.dashed ? e.value.line.strokeWidth * 2 : 0,
|
|
1882
1883
|
fill: "none"
|
|
1883
|
-
}, null, 8,
|
|
1884
|
+
}, null, 8, ms)) : l.plots.length > 1 && l.straight ? (u(), i("path", {
|
|
1884
1885
|
key: 1,
|
|
1885
1886
|
d: `M${l.straight}`,
|
|
1886
1887
|
stroke: e.value.chart.backgroundColor,
|
|
@@ -1889,42 +1890,42 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1889
1890
|
fill: "none",
|
|
1890
1891
|
"stroke-linecap": "round",
|
|
1891
1892
|
"stroke-linejoin": "round"
|
|
1892
|
-
}, null, 8,
|
|
1893
|
+
}, null, 8, ys)) : d("", !0)
|
|
1893
1894
|
], 6))), 128)),
|
|
1894
|
-
a.$slots.pattern ? (u(),
|
|
1895
|
-
(u(!0),
|
|
1895
|
+
a.$slots.pattern ? (u(), i("defs", ps, [
|
|
1896
|
+
(u(!0), i(h, null, m(Ve.value, (l, s) => U(a.$slots, "pattern", aa({
|
|
1896
1897
|
key: `serie_pattern_slot_${s}`
|
|
1897
1898
|
}, { ref_for: !0 }, { ...l, seriesIndex: l.slotAbsoluteIndex, patternId: `pattern_${q.value}_${s}` }), void 0, !0)), 128))
|
|
1898
1899
|
])) : d("", !0),
|
|
1899
|
-
(u(!0),
|
|
1900
|
+
(u(!0), i(h, null, m(Se.value, (l, s) => (u(), i("g", {
|
|
1900
1901
|
key: `serie_line_${s}`,
|
|
1901
1902
|
class: Ke(`serie_line_${s}`),
|
|
1902
1903
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1903
1904
|
}, [
|
|
1904
|
-
l.useArea && l.plots.length > 1 ? (u(),
|
|
1905
|
-
l.smooth ? (u(!0),
|
|
1906
|
-
|
|
1905
|
+
l.useArea && l.plots.length > 1 ? (u(), i("g", ks, [
|
|
1906
|
+
l.smooth ? (u(!0), i(h, { key: 0 }, m(l.curveAreas, (t, n) => (u(), i(h, { key: n }, [
|
|
1907
|
+
b("path", {
|
|
1907
1908
|
d: t,
|
|
1908
1909
|
fill: e.value.line.area.useGradient ? `url(#areaGradient_${s}_${q.value})` : c($e)(l.color, e.value.line.area.opacity)
|
|
1909
|
-
}, null, 8,
|
|
1910
|
-
a.$slots.pattern ? (u(),
|
|
1910
|
+
}, null, 8, _s),
|
|
1911
|
+
a.$slots.pattern ? (u(), i("path", {
|
|
1911
1912
|
key: 0,
|
|
1912
1913
|
d: t,
|
|
1913
1914
|
fill: `url(#pattern_${q.value}_${l.slotAbsoluteIndex})`
|
|
1914
|
-
}, null, 8,
|
|
1915
|
-
], 64))), 128)) : (u(!0),
|
|
1916
|
-
|
|
1915
|
+
}, null, 8, ws)) : d("", !0)
|
|
1916
|
+
], 64))), 128)) : (u(!0), i(h, { key: 1 }, m(l.area.split(";"), (t, n) => (u(), i(h, { key: n }, [
|
|
1917
|
+
b("path", {
|
|
1917
1918
|
d: `M${t}Z`,
|
|
1918
1919
|
fill: e.value.line.area.useGradient ? `url(#areaGradient_${s}_${q.value})` : c($e)(l.color, e.value.line.area.opacity)
|
|
1919
|
-
}, null, 8,
|
|
1920
|
-
a.$slots.pattern ? (u(),
|
|
1920
|
+
}, null, 8, Ss),
|
|
1921
|
+
a.$slots.pattern ? (u(), i("path", {
|
|
1921
1922
|
key: 0,
|
|
1922
1923
|
d: `M${t}Z`,
|
|
1923
1924
|
fill: `url(#pattern_${q.value}_${l.slotAbsoluteIndex})`
|
|
1924
|
-
}, null, 8,
|
|
1925
|
+
}, null, 8, $s)) : d("", !0)
|
|
1925
1926
|
], 64))), 128))
|
|
1926
1927
|
])) : d("", !0),
|
|
1927
|
-
l.smooth && l.plots.length > 1 && l.curve ? (u(),
|
|
1928
|
+
l.smooth && l.plots.length > 1 && l.curve ? (u(), i("path", {
|
|
1928
1929
|
key: 1,
|
|
1929
1930
|
d: `M${l.curve}`,
|
|
1930
1931
|
stroke: l.color,
|
|
@@ -1932,7 +1933,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1932
1933
|
"stroke-dasharray": l.dashed ? e.value.line.strokeWidth * 2 : 0,
|
|
1933
1934
|
fill: "none",
|
|
1934
1935
|
"stroke-linecap": "round"
|
|
1935
|
-
}, null, 8,
|
|
1936
|
+
}, null, 8, Ls)) : l.plots.length > 1 && l.straight ? (u(), i("path", {
|
|
1936
1937
|
key: 2,
|
|
1937
1938
|
d: `M${l.straight}`,
|
|
1938
1939
|
stroke: l.color,
|
|
@@ -1941,11 +1942,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1941
1942
|
fill: "none",
|
|
1942
1943
|
"stroke-linecap": "round",
|
|
1943
1944
|
"stroke-linejoin": "round"
|
|
1944
|
-
}, null, 8,
|
|
1945
|
-
(u(!0),
|
|
1945
|
+
}, null, 8, As)) : d("", !0),
|
|
1946
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
1946
1947
|
key: `circle_line_${s}_${n}`
|
|
1947
1948
|
}, [
|
|
1948
|
-
!
|
|
1949
|
+
!Ca.value.linePlot && t && xe(t.value) || Ca.value.linePlot && t && xe(t.value) && (k.value !== null && k.value === n || O.value !== null && O.value === n) ? (u(), Ie(Ol, {
|
|
1949
1950
|
key: 0,
|
|
1950
1951
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle",
|
|
1951
1952
|
color: e.value.line.useGradient ? `url(#lineGradient_${s}_${q.value})` : e.value.line.dot.useSerieColor ? l.color : e.value.line.dot.fill,
|
|
@@ -1954,7 +1955,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1954
1955
|
stroke: e.value.line.dot.useSerieColor ? e.value.chart.backgroundColor : l.color,
|
|
1955
1956
|
strokeWidth: e.value.line.dot.strokeWidth
|
|
1956
1957
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
1957
|
-
t.comment && e.value.chart.comments.show ? (u(),
|
|
1958
|
+
t.comment && e.value.chart.comments.show ? (u(), i("foreignObject", {
|
|
1958
1959
|
key: 1,
|
|
1959
1960
|
style: { overflow: "visible" },
|
|
1960
1961
|
height: "12",
|
|
@@ -1962,16 +1963,16 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1962
1963
|
x: t.x - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
|
|
1963
1964
|
y: t.y + e.value.chart.comments.offsetY + 6
|
|
1964
1965
|
}, [
|
|
1965
|
-
|
|
1966
|
+
b("div", zs, [
|
|
1966
1967
|
U(a.$slots, "plot-comment", {
|
|
1967
1968
|
plot: { ...t, color: l.color, seriesIndex: s, datapointIndex: n }
|
|
1968
1969
|
}, void 0, !0)
|
|
1969
1970
|
])
|
|
1970
|
-
], 8,
|
|
1971
|
+
], 8, Ms)) : d("", !0)
|
|
1971
1972
|
], 64))), 128)),
|
|
1972
|
-
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(c(W)(l.plots).trend) ? (u(),
|
|
1973
|
-
|
|
1974
|
-
|
|
1973
|
+
Object.hasOwn(l, "useProgression") && l.useProgression === !0 && !isNaN(c(W)(l.plots).trend) ? (u(), i("g", Cs, [
|
|
1974
|
+
b("defs", null, [
|
|
1975
|
+
b("marker", {
|
|
1975
1976
|
id: `line_arrow_${s}`,
|
|
1976
1977
|
markerWidth: 7,
|
|
1977
1978
|
markerHeight: 7,
|
|
@@ -1979,13 +1980,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1979
1980
|
refY: 7 / 2,
|
|
1980
1981
|
orient: "auto"
|
|
1981
1982
|
}, [
|
|
1982
|
-
|
|
1983
|
+
b("polygon", {
|
|
1983
1984
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1984
1985
|
fill: l.color
|
|
1985
|
-
}, null, 8,
|
|
1986
|
-
], 8,
|
|
1986
|
+
}, null, 8, Ts)
|
|
1987
|
+
], 8, Is)
|
|
1987
1988
|
]),
|
|
1988
|
-
l.plots.length > 1 ? (u(),
|
|
1989
|
+
l.plots.length > 1 ? (u(), i("line", {
|
|
1989
1990
|
key: 0,
|
|
1990
1991
|
x1: c(W)(l.plots).x1,
|
|
1991
1992
|
x2: c(W)(l.plots).x2,
|
|
@@ -1995,40 +1996,40 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1995
1996
|
stroke: l.color,
|
|
1996
1997
|
"stroke-dasharray": 2,
|
|
1997
1998
|
"marker-end": `url(#line_arrow_${s})`
|
|
1998
|
-
}, null, 8,
|
|
1999
|
-
l.plots.length > 1 ? (u(),
|
|
1999
|
+
}, null, 8, Os)) : d("", !0),
|
|
2000
|
+
l.plots.length > 1 ? (u(), i("text", {
|
|
2000
2001
|
key: 1,
|
|
2001
2002
|
"text-anchor": "middle",
|
|
2002
2003
|
x: c(W)(l.plots).x2,
|
|
2003
2004
|
y: c(W)(l.plots).y2 - 6,
|
|
2004
|
-
"font-size":
|
|
2005
|
+
"font-size": g.value.plotLabels,
|
|
2005
2006
|
fill: l.color
|
|
2006
|
-
}, ee(c(
|
|
2007
|
+
}, ee(c(ye)({
|
|
2007
2008
|
v: c(W)(l.plots).trend * 100,
|
|
2008
2009
|
s: "%",
|
|
2009
2010
|
r: 2
|
|
2010
|
-
})), 9,
|
|
2011
|
+
})), 9, Ns)) : d("", !0)
|
|
2011
2012
|
])) : d("", !0)
|
|
2012
2013
|
], 6))), 128)),
|
|
2013
|
-
(e.value.bar.labels.show || e.value.bar.serieName.show) && f.value.dataLabels.show ? (u(),
|
|
2014
|
-
(u(!0),
|
|
2014
|
+
(e.value.bar.labels.show || e.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", Vs, [
|
|
2015
|
+
(u(!0), i(h, null, m(Re.value, (l, s) => (u(), i(h, {
|
|
2015
2016
|
key: `xLabel_bar_${s}`
|
|
2016
2017
|
}, [
|
|
2017
|
-
(u(!0),
|
|
2018
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2018
2019
|
key: `xLabel_bar_${s}_${n}`
|
|
2019
2020
|
}, [
|
|
2020
|
-
t && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || k.value !== null && k.value === n || O.value !== null && O.value === n) && e.value.bar.labels.show ? (u(),
|
|
2021
|
+
t && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || k.value !== null && k.value === n || O.value !== null && O.value === n) && e.value.bar.labels.show ? (u(), i("text", {
|
|
2021
2022
|
key: 0,
|
|
2022
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : Al(t) +
|
|
2023
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : Al(t) + we() / 2 - Pe.value / 2,
|
|
2023
2024
|
y: c(T)(t.y) + (t.value >= 0 ? e.value.bar.labels.offsetY : -e.value.bar.labels.offsetY * 3),
|
|
2024
2025
|
"text-anchor": "middle",
|
|
2025
|
-
"font-size":
|
|
2026
|
+
"font-size": g.value.plotLabels,
|
|
2026
2027
|
fill: e.value.bar.labels.color,
|
|
2027
2028
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2028
2029
|
}, ee(xe(t.value) ? c(ce)(
|
|
2029
2030
|
e.value.bar.labels.formatter,
|
|
2030
2031
|
t.value,
|
|
2031
|
-
c(
|
|
2032
|
+
c(ye)({
|
|
2032
2033
|
p: l.prefix || e.value.chart.labels.prefix,
|
|
2033
2034
|
v: t.value,
|
|
2034
2035
|
s: l.suffix || e.value.chart.labels.suffix,
|
|
@@ -2038,39 +2039,39 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2038
2039
|
datapoint: t,
|
|
2039
2040
|
serie: l
|
|
2040
2041
|
}
|
|
2041
|
-
) : ""), 13,
|
|
2042
|
-
t && e.value.bar.serieName.show ? (u(),
|
|
2042
|
+
) : ""), 13, Ps)) : d("", !0),
|
|
2043
|
+
t && e.value.bar.serieName.show ? (u(), i("text", {
|
|
2043
2044
|
key: 1,
|
|
2044
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : t.x +
|
|
2045
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : t.x + we() * 1.1,
|
|
2045
2046
|
y: t.y + (t.value > 0 ? e.value.bar.serieName.offsetY : -e.value.bar.serieName.offsetY * 3),
|
|
2046
2047
|
"text-anchor": "middle",
|
|
2047
|
-
"font-size":
|
|
2048
|
+
"font-size": g.value.plotLabels,
|
|
2048
2049
|
fill: e.value.bar.serieName.useSerieColor ? l.color : e.value.bar.serieName.color,
|
|
2049
2050
|
"font-weight": e.value.bar.serieName.bold ? "bold" : "normal",
|
|
2050
2051
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2051
|
-
}, ee(e.value.bar.serieName.useAbbreviation ? c(
|
|
2052
|
+
}, ee(e.value.bar.serieName.useAbbreviation ? c(Zt)({ source: l.name, length: e.value.bar.serieName.abbreviationSize }) : l.name), 13, Hs)) : d("", !0)
|
|
2052
2053
|
], 64))), 128))
|
|
2053
2054
|
], 64))), 128))
|
|
2054
2055
|
])) : d("", !0),
|
|
2055
|
-
e.value.plot.labels.show && f.value.dataLabels.show ? (u(),
|
|
2056
|
-
(u(!0),
|
|
2056
|
+
e.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Rs, [
|
|
2057
|
+
(u(!0), i(h, null, m(ze.value, (l, s) => (u(), i(h, {
|
|
2057
2058
|
key: `xLabel_plot_${s}`
|
|
2058
2059
|
}, [
|
|
2059
|
-
(u(!0),
|
|
2060
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2060
2061
|
key: `xLabel_plot_${s}_${n}`
|
|
2061
2062
|
}, [
|
|
2062
|
-
t && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || k.value !== null && k.value === n || O.value !== null && O.value === n ? (u(),
|
|
2063
|
+
t && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || k.value !== null && k.value === n || O.value !== null && O.value === n ? (u(), i("text", {
|
|
2063
2064
|
key: 0,
|
|
2064
2065
|
x: t.x,
|
|
2065
2066
|
y: t.y + e.value.plot.labels.offsetY,
|
|
2066
2067
|
"text-anchor": "middle",
|
|
2067
|
-
"font-size":
|
|
2068
|
+
"font-size": g.value.plotLabels,
|
|
2068
2069
|
fill: e.value.plot.labels.color,
|
|
2069
2070
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2070
2071
|
}, ee(xe(t.value) ? c(ce)(
|
|
2071
2072
|
e.value.plot.labels.formatter,
|
|
2072
2073
|
t.value,
|
|
2073
|
-
c(
|
|
2074
|
+
c(ye)({
|
|
2074
2075
|
p: l.prefix || e.value.chart.labels.prefix,
|
|
2075
2076
|
v: t.value,
|
|
2076
2077
|
s: l.suffix || e.value.chart.labels.suffix,
|
|
@@ -2080,31 +2081,31 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2080
2081
|
datapoint: t,
|
|
2081
2082
|
serie: l
|
|
2082
2083
|
}
|
|
2083
|
-
) : ""), 13,
|
|
2084
|
+
) : ""), 13, Bs)) : d("", !0)
|
|
2084
2085
|
], 64))), 128))
|
|
2085
2086
|
], 64))), 128))
|
|
2086
|
-
])) : (u(),
|
|
2087
|
-
(u(!0),
|
|
2087
|
+
])) : (u(), i("g", Ys, [
|
|
2088
|
+
(u(!0), i(h, null, m(ze.value, (l, s) => (u(), i(h, {
|
|
2088
2089
|
key: `xLabel_plot_${s}`
|
|
2089
2090
|
}, [
|
|
2090
|
-
(u(!0),
|
|
2091
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2091
2092
|
key: `xLabel_plot_${s}_${n}`
|
|
2092
2093
|
}, [
|
|
2093
|
-
e.value.plot.tag.followValue ? (u(),
|
|
2094
|
-
[O.value, k.value, Ue.value].includes(n) && l.useTag ? (u(),
|
|
2094
|
+
e.value.plot.tag.followValue ? (u(), i(h, { key: 1 }, [
|
|
2095
|
+
[O.value, k.value, Ue.value].includes(n) && l.useTag ? (u(), i("line", {
|
|
2095
2096
|
key: 0,
|
|
2096
2097
|
class: "vue-ui-xy-tag-plot",
|
|
2097
|
-
x1:
|
|
2098
|
-
x2:
|
|
2098
|
+
x1: r.value.left,
|
|
2099
|
+
x2: r.value.right,
|
|
2099
2100
|
y1: t.y,
|
|
2100
2101
|
y2: t.y,
|
|
2101
2102
|
"stroke-width": 1,
|
|
2102
2103
|
"stroke-linecap": "round",
|
|
2103
2104
|
"stroke-dasharray": "2",
|
|
2104
2105
|
stroke: l.color
|
|
2105
|
-
}, null, 8,
|
|
2106
|
-
], 64)) : (u(),
|
|
2107
|
-
t && n === 0 && l.useTag && l.useTag === "start" ? (u(),
|
|
2106
|
+
}, null, 8, Xs)) : d("", !0)
|
|
2107
|
+
], 64)) : (u(), i(h, { key: 0 }, [
|
|
2108
|
+
t && n === 0 && l.useTag && l.useTag === "start" ? (u(), i("foreignObject", {
|
|
2108
2109
|
key: 0,
|
|
2109
2110
|
x: t.x,
|
|
2110
2111
|
y: t.y - 20,
|
|
@@ -2112,8 +2113,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2112
2113
|
width: "150",
|
|
2113
2114
|
style: z(`overflow: visible; opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2114
2115
|
}, [
|
|
2115
|
-
|
|
2116
|
-
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${
|
|
2116
|
+
b("div", {
|
|
2117
|
+
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${g.value.plotLabels}px;border-radius: 2px;`),
|
|
2117
2118
|
innerHTML: c(ce)(
|
|
2118
2119
|
e.value.plot.tag.formatter,
|
|
2119
2120
|
t.value,
|
|
@@ -2124,18 +2125,18 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2124
2125
|
serieName: l.name
|
|
2125
2126
|
}
|
|
2126
2127
|
)
|
|
2127
|
-
}, null, 12,
|
|
2128
|
-
], 12,
|
|
2129
|
-
t && n === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (u(),
|
|
2128
|
+
}, null, 12, Es)
|
|
2129
|
+
], 12, Fs)) : d("", !0),
|
|
2130
|
+
t && n === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (u(), i("foreignObject", {
|
|
2130
2131
|
key: 1,
|
|
2131
|
-
x: t.x - l.name.length * (
|
|
2132
|
+
x: t.x - l.name.length * (g.value.plotLabels / 2),
|
|
2132
2133
|
y: t.y - 20,
|
|
2133
2134
|
height: 24,
|
|
2134
2135
|
width: "150",
|
|
2135
2136
|
style: z(`overflow: visible; opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2136
2137
|
}, [
|
|
2137
|
-
|
|
2138
|
-
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${
|
|
2138
|
+
b("div", {
|
|
2139
|
+
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${g.value.plotLabels}px;border-radius: 2px;`),
|
|
2139
2140
|
innerHTML: c(ce)(
|
|
2140
2141
|
e.value.plot.tag.formatter,
|
|
2141
2142
|
t.value,
|
|
@@ -2146,31 +2147,31 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2146
2147
|
serieName: l.name
|
|
2147
2148
|
}
|
|
2148
2149
|
)
|
|
2149
|
-
}, null, 12,
|
|
2150
|
-
], 12,
|
|
2150
|
+
}, null, 12, Gs)
|
|
2151
|
+
], 12, Ws)) : d("", !0)
|
|
2151
2152
|
], 64))
|
|
2152
2153
|
], 64))), 128))
|
|
2153
2154
|
], 64))), 128))
|
|
2154
2155
|
])),
|
|
2155
|
-
e.value.line.labels.show && f.value.dataLabels.show ? (u(),
|
|
2156
|
-
(u(!0),
|
|
2156
|
+
e.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", Ds, [
|
|
2157
|
+
(u(!0), i(h, null, m(Se.value, (l, s) => (u(), i(h, {
|
|
2157
2158
|
key: `xLabel_line_${s}`
|
|
2158
2159
|
}, [
|
|
2159
|
-
(u(!0),
|
|
2160
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2160
2161
|
key: `xLabel_line_${s}_${n}`
|
|
2161
2162
|
}, [
|
|
2162
|
-
t && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || k.value !== null && k.value === n || O.value !== null && O.value === n ? (u(),
|
|
2163
|
+
t && !Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || k.value !== null && k.value === n || O.value !== null && O.value === n ? (u(), i("text", {
|
|
2163
2164
|
key: 0,
|
|
2164
2165
|
x: t.x,
|
|
2165
2166
|
y: t.y + (t.value >= 0 ? e.value.line.labels.offsetY : -e.value.line.labels.offsetY * 3),
|
|
2166
2167
|
"text-anchor": "middle",
|
|
2167
|
-
"font-size":
|
|
2168
|
+
"font-size": g.value.plotLabels,
|
|
2168
2169
|
fill: e.value.line.labels.color,
|
|
2169
2170
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2170
2171
|
}, ee(xe(t.value) ? c(ce)(
|
|
2171
2172
|
e.value.line.labels.formatter,
|
|
2172
2173
|
t.value,
|
|
2173
|
-
c(
|
|
2174
|
+
c(ye)({
|
|
2174
2175
|
p: l.prefix || e.value.chart.labels.prefix,
|
|
2175
2176
|
v: t.value,
|
|
2176
2177
|
s: l.suffix || e.value.chart.labels.suffix,
|
|
@@ -2180,31 +2181,31 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2180
2181
|
datapoint: t,
|
|
2181
2182
|
serie: l
|
|
2182
2183
|
}
|
|
2183
|
-
) : ""), 13,
|
|
2184
|
+
) : ""), 13, Us)) : d("", !0)
|
|
2184
2185
|
], 64))), 128))
|
|
2185
2186
|
], 64))), 128))
|
|
2186
|
-
])) : (u(),
|
|
2187
|
-
(u(!0),
|
|
2187
|
+
])) : (u(), i("g", qs, [
|
|
2188
|
+
(u(!0), i(h, null, m(Se.value, (l, s) => (u(), i(h, {
|
|
2188
2189
|
key: `xLabel_line_${s}`
|
|
2189
2190
|
}, [
|
|
2190
|
-
(u(!0),
|
|
2191
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2191
2192
|
key: `xLabel_line_${s}_${n}`
|
|
2192
2193
|
}, [
|
|
2193
|
-
e.value.line.tag.followValue ? (u(),
|
|
2194
|
-
[O.value, k.value, Ue.value].includes(n) && l.useTag ? (u(),
|
|
2194
|
+
e.value.line.tag.followValue ? (u(), i(h, { key: 1 }, [
|
|
2195
|
+
[O.value, k.value, Ue.value].includes(n) && l.useTag ? (u(), i("line", {
|
|
2195
2196
|
key: 0,
|
|
2196
2197
|
class: "vue-ui-xy-tag-line",
|
|
2197
|
-
x1:
|
|
2198
|
-
x2:
|
|
2198
|
+
x1: r.value.left,
|
|
2199
|
+
x2: r.value.right,
|
|
2199
2200
|
y1: t.y,
|
|
2200
2201
|
y2: t.y,
|
|
2201
2202
|
"stroke-width": 1,
|
|
2202
2203
|
"stroke-linecap": "round",
|
|
2203
2204
|
"stroke-dasharray": "2",
|
|
2204
2205
|
stroke: l.color
|
|
2205
|
-
}, null, 8,
|
|
2206
|
-
], 64)) : (u(),
|
|
2207
|
-
t && n === 0 && l.useTag && l.useTag === "start" ? (u(),
|
|
2206
|
+
}, null, 8, js)) : d("", !0)
|
|
2207
|
+
], 64)) : (u(), i(h, { key: 0 }, [
|
|
2208
|
+
t && n === 0 && l.useTag && l.useTag === "start" ? (u(), i("foreignObject", {
|
|
2208
2209
|
key: 0,
|
|
2209
2210
|
x: t.x,
|
|
2210
2211
|
y: t.y - 20,
|
|
@@ -2212,8 +2213,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2212
2213
|
width: "150",
|
|
2213
2214
|
style: z(`overflow: visible; opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2214
2215
|
}, [
|
|
2215
|
-
|
|
2216
|
-
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${
|
|
2216
|
+
b("div", {
|
|
2217
|
+
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${g.value.plotLabels}px;border-radius: 2px;`),
|
|
2217
2218
|
innerHTML: c(ce)(
|
|
2218
2219
|
e.value.line.tag.formatter,
|
|
2219
2220
|
t.value,
|
|
@@ -2224,9 +2225,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2224
2225
|
serieName: l.name
|
|
2225
2226
|
}
|
|
2226
2227
|
)
|
|
2227
|
-
}, null, 12,
|
|
2228
|
-
], 12,
|
|
2229
|
-
t && n === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (u(),
|
|
2228
|
+
}, null, 12, Js)
|
|
2229
|
+
], 12, Zs)) : d("", !0),
|
|
2230
|
+
t && n === l.plots.length - 1 && l.useTag && l.useTag === "end" ? (u(), i("foreignObject", {
|
|
2230
2231
|
key: 1,
|
|
2231
2232
|
x: t.x,
|
|
2232
2233
|
y: t.y - 20,
|
|
@@ -2234,8 +2235,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2234
2235
|
width: "150",
|
|
2235
2236
|
style: z(`overflow: visible; opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2236
2237
|
}, [
|
|
2237
|
-
|
|
2238
|
-
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${
|
|
2238
|
+
b("div", {
|
|
2239
|
+
style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${g.value.plotLabels}px;border-radius: 2px;`),
|
|
2239
2240
|
innerHTML: c(ce)(
|
|
2240
2241
|
e.value.line.tag.formatter,
|
|
2241
2242
|
t.value,
|
|
@@ -2246,208 +2247,208 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2246
2247
|
serieName: l.name
|
|
2247
2248
|
}
|
|
2248
2249
|
)
|
|
2249
|
-
}, null, 12,
|
|
2250
|
-
], 12,
|
|
2250
|
+
}, null, 12, Qs)
|
|
2251
|
+
], 12, Ks)) : d("", !0)
|
|
2251
2252
|
], 64))
|
|
2252
2253
|
], 64))), 128))
|
|
2253
2254
|
], 64))), 128))
|
|
2254
2255
|
])),
|
|
2255
|
-
(u(!0),
|
|
2256
|
+
(u(!0), i(h, null, m(Se.value, (l, s) => (u(), i(h, {
|
|
2256
2257
|
key: `xLabel_line_${s}`
|
|
2257
2258
|
}, [
|
|
2258
|
-
(u(!0),
|
|
2259
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2259
2260
|
key: `xLabel_line_${s}_${n}`
|
|
2260
2261
|
}, [
|
|
2261
|
-
t && n === 0 && l.showSerieName && l.showSerieName === "start" ? (u(),
|
|
2262
|
+
t && n === 0 && l.showSerieName && l.showSerieName === "start" ? (u(), i("text", {
|
|
2262
2263
|
key: 0,
|
|
2263
|
-
x: t.x -
|
|
2264
|
+
x: t.x - g.value.plotLabels,
|
|
2264
2265
|
y: t.y,
|
|
2265
|
-
"font-size":
|
|
2266
|
+
"font-size": g.value.plotLabels,
|
|
2266
2267
|
"text-anchor": "end",
|
|
2267
2268
|
fill: l.color,
|
|
2268
2269
|
innerHTML: c(Tl)({
|
|
2269
2270
|
content: l.name,
|
|
2270
|
-
fontSize:
|
|
2271
|
+
fontSize: g.value.plotLabels,
|
|
2271
2272
|
fill: l.color,
|
|
2272
|
-
x: t.x -
|
|
2273
|
+
x: t.x - g.value.plotLabels,
|
|
2273
2274
|
y: t.y,
|
|
2274
2275
|
maxWords: 2
|
|
2275
2276
|
}),
|
|
2276
2277
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2277
|
-
}, null, 12,
|
|
2278
|
-
t && n === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (u(),
|
|
2278
|
+
}, null, 12, eu)) : d("", !0),
|
|
2279
|
+
t && n === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (u(), i("text", {
|
|
2279
2280
|
key: 1,
|
|
2280
|
-
x: t.x +
|
|
2281
|
+
x: t.x + g.value.plotLabels,
|
|
2281
2282
|
y: t.y,
|
|
2282
|
-
"font-size":
|
|
2283
|
+
"font-size": g.value.plotLabels,
|
|
2283
2284
|
"text-anchor": "start",
|
|
2284
2285
|
fill: l.color,
|
|
2285
2286
|
innerHTML: c(Tl)({
|
|
2286
2287
|
content: l.name,
|
|
2287
|
-
fontSize:
|
|
2288
|
+
fontSize: g.value.plotLabels,
|
|
2288
2289
|
fill: l.color,
|
|
2289
|
-
x: t.x +
|
|
2290
|
+
x: t.x + g.value.plotLabels,
|
|
2290
2291
|
y: t.y,
|
|
2291
2292
|
maxWords: 2
|
|
2292
2293
|
}),
|
|
2293
2294
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2294
|
-
}, null, 12,
|
|
2295
|
+
}, null, 12, lu)) : d("", !0)
|
|
2295
2296
|
], 64))), 128))
|
|
2296
2297
|
], 64))), 128)),
|
|
2297
|
-
(u(!0),
|
|
2298
|
+
(u(!0), i(h, null, m(ze.value, (l, s) => (u(), i(h, {
|
|
2298
2299
|
key: `xLabel_plot_${s}`
|
|
2299
2300
|
}, [
|
|
2300
|
-
(u(!0),
|
|
2301
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2301
2302
|
key: `xLabel_plot_${s}_${n}`
|
|
2302
2303
|
}, [
|
|
2303
|
-
t && n === 0 && l.showSerieName && l.showSerieName === "start" ? (u(),
|
|
2304
|
+
t && n === 0 && l.showSerieName && l.showSerieName === "start" ? (u(), i("text", {
|
|
2304
2305
|
key: 0,
|
|
2305
|
-
x: t.x -
|
|
2306
|
+
x: t.x - g.value.plotLabels,
|
|
2306
2307
|
y: t.y,
|
|
2307
|
-
"font-size":
|
|
2308
|
+
"font-size": g.value.plotLabels,
|
|
2308
2309
|
"text-anchor": "end",
|
|
2309
2310
|
fill: l.color,
|
|
2310
2311
|
innerHTML: c(Tl)({
|
|
2311
2312
|
content: l.name,
|
|
2312
|
-
fontSize:
|
|
2313
|
+
fontSize: g.value.plotLabels,
|
|
2313
2314
|
fill: l.color,
|
|
2314
|
-
x: t.x -
|
|
2315
|
+
x: t.x - g.value.plotLabels,
|
|
2315
2316
|
y: t.y,
|
|
2316
2317
|
maxWords: 2
|
|
2317
2318
|
}),
|
|
2318
2319
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2319
|
-
}, null, 12,
|
|
2320
|
-
t && n === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (u(),
|
|
2320
|
+
}, null, 12, au)) : d("", !0),
|
|
2321
|
+
t && n === l.plots.length - 1 && l.showSerieName && l.showSerieName === "end" ? (u(), i("text", {
|
|
2321
2322
|
key: 1,
|
|
2322
|
-
x: t.x +
|
|
2323
|
+
x: t.x + g.value.plotLabels,
|
|
2323
2324
|
y: t.y,
|
|
2324
|
-
"font-size":
|
|
2325
|
+
"font-size": g.value.plotLabels,
|
|
2325
2326
|
"text-anchor": "start",
|
|
2326
2327
|
fill: l.color,
|
|
2327
2328
|
innerHTML: c(Tl)({
|
|
2328
2329
|
content: l.name,
|
|
2329
|
-
fontSize:
|
|
2330
|
+
fontSize: g.value.plotLabels,
|
|
2330
2331
|
fill: l.color,
|
|
2331
|
-
x: t.x +
|
|
2332
|
+
x: t.x + g.value.plotLabels,
|
|
2332
2333
|
y: t.y,
|
|
2333
2334
|
maxWords: 2
|
|
2334
2335
|
}),
|
|
2335
2336
|
style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2336
|
-
}, null, 12,
|
|
2337
|
+
}, null, 12, tu)) : d("", !0)
|
|
2337
2338
|
], 64))), 128))
|
|
2338
2339
|
], 64))), 128)),
|
|
2339
|
-
f.value.useIndividualScale && !f.value.isStacked ? (u(),
|
|
2340
|
-
|
|
2341
|
-
(u(!0),
|
|
2340
|
+
f.value.useIndividualScale && !f.value.isStacked ? (u(), i(h, { key: 12 }, [
|
|
2341
|
+
b("defs", null, [
|
|
2342
|
+
(u(!0), i(h, null, m(gl.value, (l, s) => (u(), i("linearGradient", {
|
|
2342
2343
|
id: `individual_scale_gradient_${q.value}_${s}`,
|
|
2343
2344
|
x1: "0%",
|
|
2344
2345
|
x2: "100%",
|
|
2345
2346
|
y1: "0%",
|
|
2346
2347
|
y2: "0%"
|
|
2347
2348
|
}, [
|
|
2348
|
-
|
|
2349
|
+
b("stop", {
|
|
2349
2350
|
offset: "0%",
|
|
2350
2351
|
"stop-color": e.value.chart.backgroundColor,
|
|
2351
2352
|
"stop-opacity": "0"
|
|
2352
|
-
}, null, 8,
|
|
2353
|
-
|
|
2353
|
+
}, null, 8, su),
|
|
2354
|
+
b("stop", {
|
|
2354
2355
|
offset: "100%",
|
|
2355
2356
|
"stop-color": l.color,
|
|
2356
2357
|
"stop-opacity": "0.2"
|
|
2357
|
-
}, null, 8,
|
|
2358
|
-
], 8,
|
|
2358
|
+
}, null, 8, uu)
|
|
2359
|
+
], 8, ou))), 256))
|
|
2359
2360
|
]),
|
|
2360
|
-
(u(!0),
|
|
2361
|
+
(u(!0), i(h, null, m(gl.value, (l, s) => (u(), i("rect", {
|
|
2361
2362
|
x: l.x - e.value.chart.grid.labels.yAxis.labelWidth + B.value,
|
|
2362
|
-
y:
|
|
2363
|
+
y: r.value.top,
|
|
2363
2364
|
width: e.value.chart.grid.labels.yAxis.labelWidth,
|
|
2364
|
-
height:
|
|
2365
|
+
height: r.value.height < 0 ? 10 : r.value.height,
|
|
2365
2366
|
fill: M.value === l.groupId ? `url(#individual_scale_gradient_${q.value}_${s})` : "transparent",
|
|
2366
2367
|
onMouseenter: (t) => M.value = l.groupId,
|
|
2367
2368
|
onMouseleave: v[0] || (v[0] = (t) => M.value = null)
|
|
2368
|
-
}, null, 40,
|
|
2369
|
+
}, null, 40, iu))), 256))
|
|
2369
2370
|
], 64)) : d("", !0),
|
|
2370
|
-
|
|
2371
|
-
e.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(),
|
|
2371
|
+
b("g", null, [
|
|
2372
|
+
e.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
|
|
2372
2373
|
key: 0,
|
|
2373
2374
|
ref_key: "yAxisLabel",
|
|
2374
2375
|
ref: Rl,
|
|
2375
|
-
"font-size":
|
|
2376
|
+
"font-size": g.value.yAxis,
|
|
2376
2377
|
fill: e.value.chart.grid.labels.color,
|
|
2377
|
-
transform: G.value ? void 0 : `translate(${
|
|
2378
|
+
transform: G.value ? void 0 : `translate(${g.value.yAxis + e.value.chart.grid.labels.axis.yLabelOffsetX}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
2378
2379
|
"text-anchor": "middle",
|
|
2379
2380
|
style: { transition: "none" }
|
|
2380
|
-
}, ee(e.value.chart.grid.labels.axis.yLabel), 9,
|
|
2381
|
-
e.value.chart.grid.labels.axis.xLabel ? (u(),
|
|
2381
|
+
}, ee(e.value.chart.grid.labels.axis.yLabel), 9, ru)) : d("", !0),
|
|
2382
|
+
e.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
|
|
2382
2383
|
key: 1,
|
|
2383
2384
|
ref_key: "xAxisLabel",
|
|
2384
2385
|
ref: Hl,
|
|
2385
2386
|
"text-anchor": "middle",
|
|
2386
2387
|
x: G.value ? ql.value.width / 2 - Math.abs(ql.value.x) : Z.value / 2,
|
|
2387
|
-
y: G.value ? void 0 :
|
|
2388
|
-
"font-size":
|
|
2388
|
+
y: G.value ? void 0 : r.value.bottom + g.value.yAxis + g.value.xAxis * 1.3 + e.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
2389
|
+
"font-size": g.value.yAxis,
|
|
2389
2390
|
fill: e.value.chart.grid.labels.color
|
|
2390
|
-
}, ee(e.value.chart.grid.labels.axis.xLabel), 9,
|
|
2391
|
+
}, ee(e.value.chart.grid.labels.axis.xLabel), 9, nu)) : d("", !0)
|
|
2391
2392
|
]),
|
|
2392
|
-
e.value.chart.grid.labels.xAxisLabels.show ? (u(),
|
|
2393
|
-
key:
|
|
2393
|
+
e.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
|
|
2394
|
+
key: 13,
|
|
2394
2395
|
ref_key: "timeLabelsEls",
|
|
2395
2396
|
ref: Bl
|
|
2396
2397
|
}, [
|
|
2397
|
-
a.$slots["time-label"] ? (u(!0),
|
|
2398
|
+
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, m(de.value, (l, s) => U(a.$slots, "time-label", aa({
|
|
2398
2399
|
key: `time_label_${s}`,
|
|
2399
2400
|
ref_for: !0
|
|
2400
2401
|
}, {
|
|
2401
|
-
x:
|
|
2402
|
-
y: G.value ?
|
|
2403
|
-
fontSize:
|
|
2402
|
+
x: r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2,
|
|
2403
|
+
y: G.value ? r.value.bottom + e.value.chart.grid.labels.xAxisLabels.yOffset : r.value.bottom + g.value.xAxis * 1.3 + e.value.chart.grid.labels.xAxisLabels.yOffset,
|
|
2404
|
+
fontSize: g.value.xAxis,
|
|
2404
2405
|
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
2405
|
-
transform: G.value ? `translate(${
|
|
2406
|
+
transform: G.value ? `translate(${r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2}, ${r.value.bottom + e.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2}, ${r.value.bottom + g.value.xAxis * 1.3 + e.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2406
2407
|
absoluteIndex: l.absoluteIndex,
|
|
2407
2408
|
content: l.text,
|
|
2408
2409
|
textAnchor: e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2409
|
-
show: l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
2410
|
-
}), void 0, !0)), 128)) : (u(!0),
|
|
2410
|
+
show: l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && x.value <= e.value.chart.grid.labels.xAxisLabels.modulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((w.value.end - w.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2411
|
+
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, m(de.value, (l, s) => (u(), i("g", {
|
|
2411
2412
|
key: `time_label_${s}`
|
|
2412
2413
|
}, [
|
|
2413
|
-
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
2414
|
+
l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && x.value <= e.value.chart.grid.labels.xAxisLabels.modulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((w.value.end - w.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0 ? (u(), i(h, { key: 0 }, [
|
|
2414
2415
|
String(l.text).includes(`
|
|
2415
|
-
`) ? (u(),
|
|
2416
|
+
`) ? (u(), i("text", {
|
|
2416
2417
|
key: 1,
|
|
2417
2418
|
"text-anchor": e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2418
|
-
"font-size":
|
|
2419
|
+
"font-size": g.value.xAxis,
|
|
2419
2420
|
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
2420
|
-
transform: G.value ? `translate(${
|
|
2421
|
+
transform: G.value ? `translate(${r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2}, ${r.value.bottom + e.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2}, ${r.value.bottom + g.value.xAxis * 1.3 + e.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2421
2422
|
style: z({
|
|
2422
|
-
cursor:
|
|
2423
|
+
cursor: ya() ? "pointer" : "default"
|
|
2423
2424
|
}),
|
|
2424
|
-
innerHTML: c(
|
|
2425
|
+
innerHTML: c(Jt)({
|
|
2425
2426
|
content: String(l.text),
|
|
2426
|
-
fontSize:
|
|
2427
|
+
fontSize: g.value.xAxis,
|
|
2427
2428
|
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
2428
2429
|
x: 0,
|
|
2429
2430
|
y: 0
|
|
2430
2431
|
}),
|
|
2431
|
-
onClick: () =>
|
|
2432
|
-
}, null, 12,
|
|
2432
|
+
onClick: () => _a(l, s)
|
|
2433
|
+
}, null, 12, vu)) : (u(), i("text", {
|
|
2433
2434
|
key: 0,
|
|
2434
2435
|
"text-anchor": e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2435
|
-
"font-size":
|
|
2436
|
+
"font-size": g.value.xAxis,
|
|
2436
2437
|
fill: e.value.chart.grid.labels.xAxisLabels.color,
|
|
2437
|
-
transform: G.value ? `translate(${
|
|
2438
|
+
transform: G.value ? `translate(${r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2}, ${r.value.bottom + e.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})` : `translate(${r.value.left + r.value.width / x.value * s + r.value.width / x.value / 2}, ${r.value.bottom + g.value.xAxis * 1.3 + e.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2438
2439
|
style: z({
|
|
2439
|
-
cursor:
|
|
2440
|
+
cursor: ya() ? "pointer" : "default"
|
|
2440
2441
|
}),
|
|
2441
|
-
onClick: () =>
|
|
2442
|
-
}, ee(l.text || ""), 13,
|
|
2442
|
+
onClick: () => _a(l, s)
|
|
2443
|
+
}, ee(l.text || ""), 13, cu))
|
|
2443
2444
|
], 64)) : d("", !0)
|
|
2444
2445
|
]))), 128))
|
|
2445
2446
|
], 512)) : d("", !0),
|
|
2446
|
-
|
|
2447
|
-
(u(!0),
|
|
2447
|
+
Ta.value.length && !f.value.isStacked ? (u(), i("g", du, [
|
|
2448
|
+
(u(!0), i(h, null, m(Ta.value, (l) => (u(), i("g", {
|
|
2448
2449
|
key: l.uid
|
|
2449
2450
|
}, [
|
|
2450
|
-
l.yTop && l.show && isFinite(l.yTop) ? (u(),
|
|
2451
|
+
l.yTop && l.show && isFinite(l.yTop) ? (u(), i("line", {
|
|
2451
2452
|
key: 0,
|
|
2452
2453
|
x1: l.x1,
|
|
2453
2454
|
y1: l.yTop,
|
|
@@ -2458,8 +2459,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2458
2459
|
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
2459
2460
|
"stroke-linecap": "round",
|
|
2460
2461
|
style: { animation: "none !important" }
|
|
2461
|
-
}, null, 8,
|
|
2462
|
-
l.yBottom && l.show && isFinite(l.yBottom) ? (u(),
|
|
2462
|
+
}, null, 8, hu)) : d("", !0),
|
|
2463
|
+
l.yBottom && l.show && isFinite(l.yBottom) ? (u(), i("line", {
|
|
2463
2464
|
key: 1,
|
|
2464
2465
|
x1: l.x1,
|
|
2465
2466
|
y1: l.yBottom,
|
|
@@ -2470,21 +2471,21 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2470
2471
|
"stroke-dasharray": l.config.line.strokeDasharray,
|
|
2471
2472
|
"stroke-linecap": "round",
|
|
2472
2473
|
style: { animation: "none !important" }
|
|
2473
|
-
}, null, 8,
|
|
2474
|
-
l.hasArea && l.show && isFinite(l.yTop) && isFinite(l.yBottom) ? (u(),
|
|
2474
|
+
}, null, 8, fu)) : d("", !0),
|
|
2475
|
+
l.hasArea && l.show && isFinite(l.yTop) && isFinite(l.yBottom) ? (u(), i("rect", {
|
|
2475
2476
|
key: 2,
|
|
2476
2477
|
y: Math.min(l.yTop, l.yBottom),
|
|
2477
2478
|
x: l.x1,
|
|
2478
|
-
width:
|
|
2479
|
+
width: r.value.width,
|
|
2479
2480
|
height: c(T)(l.areaHeight, 0),
|
|
2480
2481
|
fill: c($e)(l.config.area.fill, l.config.area.opacity),
|
|
2481
2482
|
style: { animation: "none !important" }
|
|
2482
|
-
}, null, 8,
|
|
2483
|
-
l.config.label.text && l.show && isFinite(l._box.y) ? (u(),
|
|
2483
|
+
}, null, 8, gu)) : d("", !0),
|
|
2484
|
+
l.config.label.text && l.show && isFinite(l._box.y) ? (u(), i("rect", aa({
|
|
2484
2485
|
key: 3,
|
|
2485
2486
|
class: "vue-ui-xy-annotation-label-box"
|
|
2486
2487
|
}, { ref_for: !0 }, l._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
|
|
2487
|
-
l.config.label.text && l.show && isFinite(l._text.y) ? (u(),
|
|
2488
|
+
l.config.label.text && l.show && isFinite(l._text.y) ? (u(), i("text", {
|
|
2488
2489
|
key: 4,
|
|
2489
2490
|
id: l.id,
|
|
2490
2491
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -2493,56 +2494,56 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2493
2494
|
"font-size": l.config.label.fontSize,
|
|
2494
2495
|
fill: l.config.label.color,
|
|
2495
2496
|
"text-anchor": l.config.label.textAnchor
|
|
2496
|
-
}, ee(l.config.label.text), 9,
|
|
2497
|
+
}, ee(l.config.label.text), 9, xu)) : d("", !0)
|
|
2497
2498
|
]))), 128))
|
|
2498
2499
|
])) : d("", !0),
|
|
2499
|
-
|
|
2500
|
-
(u(!0),
|
|
2500
|
+
Jl.value ? (u(), i("g", bu, [
|
|
2501
|
+
(u(!0), i(h, null, m(x.value, (l, s) => (u(), i("rect", {
|
|
2501
2502
|
key: `tooltip_trap_${s}`,
|
|
2502
|
-
x:
|
|
2503
|
-
y:
|
|
2504
|
-
height:
|
|
2505
|
-
width:
|
|
2503
|
+
x: r.value.left + r.value.width / x.value * s,
|
|
2504
|
+
y: r.value.top,
|
|
2505
|
+
height: r.value.height < 0 ? 10 : r.value.height,
|
|
2506
|
+
width: r.value.width / x.value < 0 ? 1e-5 : r.value.width / x.value,
|
|
2506
2507
|
fill: "transparent",
|
|
2507
|
-
onMouseenter: (t) =>
|
|
2508
|
-
onMouseleave: v[1] || (v[1] = (t) =>
|
|
2509
|
-
onClick: (t) =>
|
|
2510
|
-
}, null, 40,
|
|
2511
|
-
]),
|
|
2512
|
-
e.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(),
|
|
2513
|
-
(u(),
|
|
2514
|
-
x:
|
|
2515
|
-
y:
|
|
2508
|
+
onMouseenter: (t) => Va(!0, s),
|
|
2509
|
+
onMouseleave: v[1] || (v[1] = (t) => Va(!1)),
|
|
2510
|
+
onClick: (t) => yt(s)
|
|
2511
|
+
}, null, 40, mu))), 128))
|
|
2512
|
+
])) : d("", !0),
|
|
2513
|
+
e.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", yu, [
|
|
2514
|
+
(u(), i("foreignObject", {
|
|
2515
|
+
x: r.value.left + r.value.width / x.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) - 100 + r.value.width / x.value / 2,
|
|
2516
|
+
y: r.value.bottom,
|
|
2516
2517
|
width: "200",
|
|
2517
2518
|
height: "40",
|
|
2518
2519
|
style: { overflow: "visible !important" }
|
|
2519
2520
|
}, [
|
|
2520
|
-
|
|
2521
|
+
b("div", {
|
|
2521
2522
|
class: "vue-ui-xy-time-tag",
|
|
2522
2523
|
style: z(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.value.chart.timeTag.backgroundColor};color:${e.value.chart.timeTag.color};font-size:${e.value.chart.timeTag.fontSize}px`)
|
|
2523
2524
|
}, ee(de.value[(k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)].text || (k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)), 5)
|
|
2524
|
-
], 8,
|
|
2525
|
-
|
|
2526
|
-
cx:
|
|
2527
|
-
cy:
|
|
2525
|
+
], 8, pu)),
|
|
2526
|
+
b("circle", {
|
|
2527
|
+
cx: r.value.left + r.value.width / x.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + r.value.width / x.value / 2,
|
|
2528
|
+
cy: r.value.bottom,
|
|
2528
2529
|
r: e.value.chart.timeTag.circleMarker.radius,
|
|
2529
2530
|
fill: e.value.chart.timeTag.circleMarker.color
|
|
2530
|
-
}, null, 8,
|
|
2531
|
+
}, null, 8, ku)
|
|
2531
2532
|
])) : d("", !0)
|
|
2532
2533
|
])) : d("", !0),
|
|
2533
|
-
U(a.$slots, "svg", { svg:
|
|
2534
|
+
U(a.$slots, "svg", { svg: ct.value }, void 0, !0)
|
|
2534
2535
|
], 512)
|
|
2535
|
-
], 14,
|
|
2536
|
-
a.$slots.watermark ? (u(),
|
|
2537
|
-
U(a.$slots, "watermark", Qe(je({ isPrinting: c(Ul) || c(
|
|
2536
|
+
], 14, co)),
|
|
2537
|
+
a.$slots.watermark ? (u(), i("div", _u, [
|
|
2538
|
+
U(a.$slots, "watermark", Qe(je({ isPrinting: c(Ul) || c(ga) })), void 0, !0)
|
|
2538
2539
|
])) : d("", !0),
|
|
2539
|
-
(u(!0),
|
|
2540
|
+
(u(!0), i(h, null, m(Se.value, (l, s) => (u(), i(h, {
|
|
2540
2541
|
key: `tag_line_${s}`
|
|
2541
2542
|
}, [
|
|
2542
|
-
(u(!0),
|
|
2543
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2543
2544
|
key: `tag_line_${s}_${n}`
|
|
2544
2545
|
}, [
|
|
2545
|
-
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "end" && e.value.line.tag.followValue ? (u(),
|
|
2546
|
+
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "end" && e.value.line.tag.followValue ? (u(), i("div", {
|
|
2546
2547
|
key: 0,
|
|
2547
2548
|
ref_for: !0,
|
|
2548
2549
|
ref: (o) => Ll(s, n, o, "right", "line"),
|
|
@@ -2551,15 +2552,15 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2551
2552
|
style: z({
|
|
2552
2553
|
position: "fixed",
|
|
2553
2554
|
top: c(Ge)({
|
|
2554
|
-
svgElement:
|
|
2555
|
-
x:
|
|
2555
|
+
svgElement: pe.value,
|
|
2556
|
+
x: r.value.right + e.value.line.tag.fontSize / 1.5,
|
|
2556
2557
|
y: t.y,
|
|
2557
2558
|
element: Oe.value[`${s}_${n}_right_line`],
|
|
2558
2559
|
position: "right"
|
|
2559
2560
|
}).top + "px",
|
|
2560
2561
|
left: c(Ge)({
|
|
2561
|
-
svgElement:
|
|
2562
|
-
x:
|
|
2562
|
+
svgElement: pe.value,
|
|
2563
|
+
x: r.value.right + e.value.line.tag.fontSize / 1.5,
|
|
2563
2564
|
y: t.y,
|
|
2564
2565
|
element: Oe.value[`${s}_${n}_right_line`],
|
|
2565
2566
|
position: "right"
|
|
@@ -2573,14 +2574,14 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2573
2574
|
opacity: 1
|
|
2574
2575
|
})
|
|
2575
2576
|
}, [
|
|
2576
|
-
(u(),
|
|
2577
|
-
|
|
2577
|
+
(u(), i("svg", wu, [
|
|
2578
|
+
b("path", {
|
|
2578
2579
|
d: "M 0,10 10,0 10,20 Z",
|
|
2579
2580
|
fill: l.color,
|
|
2580
2581
|
stroke: "none"
|
|
2581
|
-
}, null, 8,
|
|
2582
|
+
}, null, 8, Su)
|
|
2582
2583
|
])),
|
|
2583
|
-
|
|
2584
|
+
b("div", {
|
|
2584
2585
|
class: "vue-ui-xy-tag-content",
|
|
2585
2586
|
innerHTML: c(ce)(
|
|
2586
2587
|
e.value.line.tag.formatter,
|
|
@@ -2592,9 +2593,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2592
2593
|
serieName: l.name
|
|
2593
2594
|
}
|
|
2594
2595
|
)
|
|
2595
|
-
}, null, 8,
|
|
2596
|
+
}, null, 8, $u)
|
|
2596
2597
|
], 4)) : d("", !0),
|
|
2597
|
-
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "start" && e.value.line.tag.followValue ? (u(),
|
|
2598
|
+
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "start" && e.value.line.tag.followValue ? (u(), i("div", {
|
|
2598
2599
|
key: 1,
|
|
2599
2600
|
ref_for: !0,
|
|
2600
2601
|
ref: (o) => Ll(s, n, o, "left", "line"),
|
|
@@ -2603,15 +2604,15 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2603
2604
|
style: z({
|
|
2604
2605
|
position: "fixed",
|
|
2605
2606
|
top: c(Ge)({
|
|
2606
|
-
svgElement:
|
|
2607
|
-
x:
|
|
2607
|
+
svgElement: pe.value,
|
|
2608
|
+
x: r.value.left - e.value.line.tag.fontSize / 1.5,
|
|
2608
2609
|
y: t.y,
|
|
2609
2610
|
element: Oe.value[`${s}_${n}_left_line`],
|
|
2610
2611
|
position: "left"
|
|
2611
2612
|
}).top + "px",
|
|
2612
2613
|
left: c(Ge)({
|
|
2613
|
-
svgElement:
|
|
2614
|
-
x:
|
|
2614
|
+
svgElement: pe.value,
|
|
2615
|
+
x: r.value.left - e.value.line.tag.fontSize / 1.5,
|
|
2615
2616
|
y: t.y,
|
|
2616
2617
|
element: Oe.value[`${s}_${n}_left_line`],
|
|
2617
2618
|
position: "left"
|
|
@@ -2625,14 +2626,14 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2625
2626
|
opacity: 1
|
|
2626
2627
|
})
|
|
2627
2628
|
}, [
|
|
2628
|
-
(u(),
|
|
2629
|
-
|
|
2629
|
+
(u(), i("svg", Lu, [
|
|
2630
|
+
b("path", {
|
|
2630
2631
|
d: "M 0,0 10,10 0,20 Z",
|
|
2631
2632
|
fill: l.color,
|
|
2632
2633
|
stroke: "none"
|
|
2633
|
-
}, null, 8,
|
|
2634
|
+
}, null, 8, Au)
|
|
2634
2635
|
])),
|
|
2635
|
-
|
|
2636
|
+
b("div", {
|
|
2636
2637
|
class: "vue-ui-xy-tag-content",
|
|
2637
2638
|
innerHTML: c(ce)(
|
|
2638
2639
|
e.value.line.tag.formatter,
|
|
@@ -2644,17 +2645,17 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2644
2645
|
serieName: l.name
|
|
2645
2646
|
}
|
|
2646
2647
|
)
|
|
2647
|
-
}, null, 8,
|
|
2648
|
+
}, null, 8, Mu)
|
|
2648
2649
|
], 4)) : d("", !0)
|
|
2649
2650
|
], 64))), 128))
|
|
2650
2651
|
], 64))), 128)),
|
|
2651
|
-
(u(!0),
|
|
2652
|
+
(u(!0), i(h, null, m(ze.value, (l, s) => (u(), i(h, {
|
|
2652
2653
|
key: `tag_plot_${s}`
|
|
2653
2654
|
}, [
|
|
2654
|
-
(u(!0),
|
|
2655
|
+
(u(!0), i(h, null, m(l.plots, (t, n) => (u(), i(h, {
|
|
2655
2656
|
key: `tag_plot_${s}_${n}`
|
|
2656
2657
|
}, [
|
|
2657
|
-
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "end" && e.value.plot.tag.followValue ? (u(),
|
|
2658
|
+
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "end" && e.value.plot.tag.followValue ? (u(), i("div", {
|
|
2658
2659
|
key: 0,
|
|
2659
2660
|
ref_for: !0,
|
|
2660
2661
|
ref: (o) => Ll(s, n, o, "right", "plot"),
|
|
@@ -2663,15 +2664,15 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2663
2664
|
style: z({
|
|
2664
2665
|
position: "fixed",
|
|
2665
2666
|
top: c(Ge)({
|
|
2666
|
-
svgElement:
|
|
2667
|
-
x:
|
|
2667
|
+
svgElement: pe.value,
|
|
2668
|
+
x: r.value.right + e.value.plot.tag.fontSize / 1.5,
|
|
2668
2669
|
y: t.y,
|
|
2669
2670
|
element: Oe.value[`${s}_${n}_right_plot`],
|
|
2670
2671
|
position: "right"
|
|
2671
2672
|
}).top + "px",
|
|
2672
2673
|
left: c(Ge)({
|
|
2673
|
-
svgElement:
|
|
2674
|
-
x:
|
|
2674
|
+
svgElement: pe.value,
|
|
2675
|
+
x: r.value.right + e.value.plot.tag.fontSize / 1.5,
|
|
2675
2676
|
y: t.y,
|
|
2676
2677
|
element: Oe.value[`${s}_${n}_right_plot`],
|
|
2677
2678
|
position: "right"
|
|
@@ -2685,14 +2686,14 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2685
2686
|
opacity: 1
|
|
2686
2687
|
})
|
|
2687
2688
|
}, [
|
|
2688
|
-
(u(),
|
|
2689
|
-
|
|
2689
|
+
(u(), i("svg", zu, [
|
|
2690
|
+
b("path", {
|
|
2690
2691
|
d: "M 0,10 10,0 10,20 Z",
|
|
2691
2692
|
fill: l.color,
|
|
2692
2693
|
stroke: "none"
|
|
2693
|
-
}, null, 8,
|
|
2694
|
+
}, null, 8, Cu)
|
|
2694
2695
|
])),
|
|
2695
|
-
|
|
2696
|
+
b("div", {
|
|
2696
2697
|
class: "vue-ui-xy-tag-content",
|
|
2697
2698
|
innerHTML: c(ce)(
|
|
2698
2699
|
e.value.plot.tag.formatter,
|
|
@@ -2704,9 +2705,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2704
2705
|
serieName: l.name
|
|
2705
2706
|
}
|
|
2706
2707
|
)
|
|
2707
|
-
}, null, 8,
|
|
2708
|
+
}, null, 8, Iu)
|
|
2708
2709
|
], 4)) : d("", !0),
|
|
2709
|
-
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "start" && e.value.plot.tag.followValue ? (u(),
|
|
2710
|
+
[O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "start" && e.value.plot.tag.followValue ? (u(), i("div", {
|
|
2710
2711
|
key: 1,
|
|
2711
2712
|
ref_for: !0,
|
|
2712
2713
|
ref: (o) => Ll(s, n, o, "left", "plot"),
|
|
@@ -2715,15 +2716,15 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2715
2716
|
style: z({
|
|
2716
2717
|
position: "fixed",
|
|
2717
2718
|
top: c(Ge)({
|
|
2718
|
-
svgElement:
|
|
2719
|
-
x:
|
|
2719
|
+
svgElement: pe.value,
|
|
2720
|
+
x: r.value.left - e.value.plot.tag.fontSize / 1.5,
|
|
2720
2721
|
y: t.y,
|
|
2721
2722
|
element: Oe.value[`${s}_${n}_left_plot`],
|
|
2722
2723
|
position: "left"
|
|
2723
2724
|
}).top + "px",
|
|
2724
2725
|
left: c(Ge)({
|
|
2725
|
-
svgElement:
|
|
2726
|
-
x:
|
|
2726
|
+
svgElement: pe.value,
|
|
2727
|
+
x: r.value.left - e.value.plot.tag.fontSize / 1.5,
|
|
2727
2728
|
y: t.y,
|
|
2728
2729
|
element: Oe.value[`${s}_${n}_left_plot`],
|
|
2729
2730
|
position: "left"
|
|
@@ -2737,14 +2738,14 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2737
2738
|
opacity: 1
|
|
2738
2739
|
})
|
|
2739
2740
|
}, [
|
|
2740
|
-
(u(),
|
|
2741
|
-
|
|
2741
|
+
(u(), i("svg", Tu, [
|
|
2742
|
+
b("path", {
|
|
2742
2743
|
d: "M 0,0 10,10 0,20 Z",
|
|
2743
2744
|
fill: l.color,
|
|
2744
2745
|
stroke: "none"
|
|
2745
|
-
}, null, 8,
|
|
2746
|
+
}, null, 8, Ou)
|
|
2746
2747
|
])),
|
|
2747
|
-
|
|
2748
|
+
b("div", {
|
|
2748
2749
|
class: "vue-ui-xy-tag-content",
|
|
2749
2750
|
innerHTML: c(ce)(
|
|
2750
2751
|
e.value.plot.tag.formatter,
|
|
@@ -2756,11 +2757,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2756
2757
|
serieName: l.name
|
|
2757
2758
|
}
|
|
2758
2759
|
)
|
|
2759
|
-
}, null, 8,
|
|
2760
|
+
}, null, 8, Nu)
|
|
2760
2761
|
], 4)) : d("", !0)
|
|
2761
2762
|
], 64))), 128))
|
|
2762
2763
|
], 64))), 128)),
|
|
2763
|
-
e.value.chart.zoom.show && He.value > 6 && Xl.value ? (u(), Ie(
|
|
2764
|
+
e.value.chart.zoom.show && He.value > 6 && Xl.value ? (u(), Ie(ao, {
|
|
2764
2765
|
ref_key: "chartSlicer",
|
|
2765
2766
|
ref: Le,
|
|
2766
2767
|
key: `slicer_${Fl.value}`,
|
|
@@ -2773,7 +2774,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2773
2774
|
inputColor: e.value.chart.zoom.color,
|
|
2774
2775
|
selectColor: e.value.chart.zoom.highlightColor,
|
|
2775
2776
|
borderColor: e.value.chart.backgroundColor,
|
|
2776
|
-
minimap:
|
|
2777
|
+
minimap: zt.value,
|
|
2777
2778
|
smoothMinimap: e.value.chart.zoom.minimap.smooth,
|
|
2778
2779
|
minimapSelectedColor: e.value.chart.zoom.minimap.selectedColor,
|
|
2779
2780
|
minimapSelectionRadius: e.value.chart.zoom.minimap.selectionRadius,
|
|
@@ -2784,38 +2785,38 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2784
2785
|
verticalHandles: e.value.chart.zoom.minimap.verticalHandles,
|
|
2785
2786
|
max: He.value,
|
|
2786
2787
|
min: 0,
|
|
2787
|
-
valueStart:
|
|
2788
|
-
valueEnd:
|
|
2789
|
-
start:
|
|
2790
|
-
"onUpdate:start": v[2] || (v[2] = (l) =>
|
|
2791
|
-
end:
|
|
2792
|
-
"onUpdate:end": v[3] || (v[3] = (l) =>
|
|
2788
|
+
valueStart: w.value.start,
|
|
2789
|
+
valueEnd: w.value.end,
|
|
2790
|
+
start: w.value.start,
|
|
2791
|
+
"onUpdate:start": v[2] || (v[2] = (l) => w.value.start = l),
|
|
2792
|
+
end: w.value.end,
|
|
2793
|
+
"onUpdate:end": v[3] || (v[3] = (l) => w.value.end = l),
|
|
2793
2794
|
refreshStartPoint: e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex : 0,
|
|
2794
2795
|
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...Nl.dataset.map((l) => c(Ee)({ data: l.series, threshold: e.value.downsample.threshold }).length)),
|
|
2795
2796
|
enableRangeHandles: e.value.chart.zoom.enableRangeHandles,
|
|
2796
2797
|
enableSelectionDrag: e.value.chart.zoom.enableSelectionDrag,
|
|
2797
|
-
onReset:
|
|
2798
|
-
onTrapMouse:
|
|
2798
|
+
onReset: mt,
|
|
2799
|
+
onTrapMouse: gt
|
|
2799
2800
|
}, {
|
|
2800
2801
|
"reset-action": se(({ reset: l }) => [
|
|
2801
2802
|
U(a.$slots, "reset-action", Qe(je({ reset: l })), void 0, !0)
|
|
2802
2803
|
]),
|
|
2803
2804
|
_: 3
|
|
2804
2805
|
}, 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),
|
|
2805
|
-
e.value.chart.legend.show ? (u(),
|
|
2806
|
+
e.value.chart.legend.show ? (u(), i("div", {
|
|
2806
2807
|
key: 6,
|
|
2807
2808
|
ref_key: "chartLegend",
|
|
2808
2809
|
ref: al,
|
|
2809
2810
|
class: "vue-ui-xy-legend",
|
|
2810
2811
|
style: z(`font-size:${e.value.chart.legend.fontSize}px`)
|
|
2811
2812
|
}, [
|
|
2812
|
-
(u(!0),
|
|
2813
|
+
(u(!0), i(h, null, m(Me.value, (l, s) => (u(), i("div", {
|
|
2813
2814
|
key: `div_legend_item_${s}`,
|
|
2814
|
-
onClick: (t) =>
|
|
2815
|
+
onClick: (t) => za(l),
|
|
2815
2816
|
class: Ke({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ae.value.includes(l.id) })
|
|
2816
2817
|
}, [
|
|
2817
|
-
vl.value[l.type] === "line" ? (u(),
|
|
2818
|
-
|
|
2818
|
+
vl.value[l.type] === "line" ? (u(), i("svg", Pu, [
|
|
2819
|
+
b("rect", {
|
|
2819
2820
|
x: "0",
|
|
2820
2821
|
y: "7.5",
|
|
2821
2822
|
rx: "1.5",
|
|
@@ -2824,7 +2825,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2824
2825
|
height: "3",
|
|
2825
2826
|
width: "20",
|
|
2826
2827
|
fill: l.color
|
|
2827
|
-
}, null, 8,
|
|
2828
|
+
}, null, 8, Hu),
|
|
2828
2829
|
yl(Ol, {
|
|
2829
2830
|
plot: { x: 10, y: 9 },
|
|
2830
2831
|
radius: 4,
|
|
@@ -2833,8 +2834,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2833
2834
|
stroke: e.value.chart.backgroundColor,
|
|
2834
2835
|
strokeWidth: 0.5
|
|
2835
2836
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2836
|
-
])) : vl.value[l.type] === "bar" ? (u(),
|
|
2837
|
-
vl.value[l.type] === "bar" && a.$slots.pattern ? (u(),
|
|
2837
|
+
])) : vl.value[l.type] === "bar" ? (u(), i("svg", Ru, [
|
|
2838
|
+
vl.value[l.type] === "bar" && a.$slots.pattern ? (u(), i("rect", {
|
|
2838
2839
|
key: 0,
|
|
2839
2840
|
x: "0",
|
|
2840
2841
|
y: "0",
|
|
@@ -2843,8 +2844,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2843
2844
|
width: "40",
|
|
2844
2845
|
stroke: "none",
|
|
2845
2846
|
fill: l.color
|
|
2846
|
-
}, null, 8,
|
|
2847
|
-
vl.value[l.type] === "bar" ? (u(),
|
|
2847
|
+
}, null, 8, Bu)) : d("", !0),
|
|
2848
|
+
vl.value[l.type] === "bar" ? (u(), i("rect", {
|
|
2848
2849
|
key: 1,
|
|
2849
2850
|
x: "0",
|
|
2850
2851
|
y: "0",
|
|
@@ -2853,8 +2854,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2853
2854
|
width: "40",
|
|
2854
2855
|
stroke: "none",
|
|
2855
2856
|
fill: a.$slots.pattern ? `url(#pattern_${q.value}_${l.slotAbsoluteIndex})` : l.color
|
|
2856
|
-
}, null, 8,
|
|
2857
|
-
])) : (u(),
|
|
2857
|
+
}, null, 8, Yu)) : d("", !0)
|
|
2858
|
+
])) : (u(), i("svg", Fu, [
|
|
2858
2859
|
yl(Ol, {
|
|
2859
2860
|
plot: { x: 6, y: 6 },
|
|
2860
2861
|
radius: 5,
|
|
@@ -2862,18 +2863,18 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2862
2863
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(l.shape) ? l.shape : "circle"
|
|
2863
2864
|
}, null, 8, ["color", "shape"])
|
|
2864
2865
|
])),
|
|
2865
|
-
|
|
2866
|
+
b("span", {
|
|
2866
2867
|
style: z(`color:${e.value.chart.legend.color}`)
|
|
2867
2868
|
}, ee(l.name), 5)
|
|
2868
|
-
], 10,
|
|
2869
|
-
], 4)) : (u(),
|
|
2869
|
+
], 10, Vu))), 128))
|
|
2870
|
+
], 4)) : (u(), i("div", {
|
|
2870
2871
|
key: 7,
|
|
2871
2872
|
ref_key: "chartLegend",
|
|
2872
2873
|
ref: al
|
|
2873
2874
|
}, [
|
|
2874
2875
|
U(a.$slots, "legend", { legend: Me.value }, void 0, !0)
|
|
2875
2876
|
], 512)),
|
|
2876
|
-
a.$slots.source ? (u(),
|
|
2877
|
+
a.$slots.source ? (u(), i("div", {
|
|
2877
2878
|
key: 8,
|
|
2878
2879
|
ref_key: "source",
|
|
2879
2880
|
ref: nl,
|
|
@@ -2881,8 +2882,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2881
2882
|
}, [
|
|
2882
2883
|
U(a.$slots, "source", {}, void 0, !0)
|
|
2883
2884
|
], 512)) : d("", !0),
|
|
2884
|
-
yl(c(
|
|
2885
|
-
show: f.value.showTooltip &&
|
|
2885
|
+
yl(c(et), {
|
|
2886
|
+
show: f.value.showTooltip && na.value,
|
|
2886
2887
|
backgroundColor: e.value.chart.tooltip.backgroundColor,
|
|
2887
2888
|
color: e.value.chart.tooltip.color,
|
|
2888
2889
|
fontSize: e.value.chart.tooltip.fontSize,
|
|
@@ -2893,19 +2894,19 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2893
2894
|
position: e.value.chart.tooltip.position,
|
|
2894
2895
|
offsetY: e.value.chart.tooltip.offsetY,
|
|
2895
2896
|
parent: a.$refs.chart,
|
|
2896
|
-
content:
|
|
2897
|
+
content: Ct.value,
|
|
2897
2898
|
isFullscreen: tl.value,
|
|
2898
2899
|
isCustom: e.value.chart.tooltip.customFormat && typeof e.value.chart.tooltip.customFormat == "function"
|
|
2899
2900
|
}, {
|
|
2900
2901
|
"tooltip-before": se(() => [
|
|
2901
|
-
U(a.$slots, "tooltip-before", Qe(je({ ...
|
|
2902
|
+
U(a.$slots, "tooltip-before", Qe(je({ ...Oa.value })), void 0, !0)
|
|
2902
2903
|
]),
|
|
2903
2904
|
"tooltip-after": se(() => [
|
|
2904
|
-
U(a.$slots, "tooltip-after", Qe(je({ ...
|
|
2905
|
+
U(a.$slots, "tooltip-after", Qe(je({ ...Oa.value })), void 0, !0)
|
|
2905
2906
|
]),
|
|
2906
2907
|
_: 3
|
|
2907
2908
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2908
|
-
Xl.value ? (u(), Ie(c(
|
|
2909
|
+
Xl.value ? (u(), Ie(c(ot), {
|
|
2909
2910
|
key: 9,
|
|
2910
2911
|
hideDetails: "",
|
|
2911
2912
|
config: {
|
|
@@ -2922,33 +2923,33 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2922
2923
|
}
|
|
2923
2924
|
}, {
|
|
2924
2925
|
content: se(() => [
|
|
2925
|
-
|
|
2926
|
+
b("div", {
|
|
2926
2927
|
style: z(`${c(Ul) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2927
2928
|
}, [
|
|
2928
|
-
|
|
2929
|
-
|
|
2929
|
+
b("div", Eu, [
|
|
2930
|
+
Ht(b("input", {
|
|
2930
2931
|
type: "checkbox",
|
|
2931
2932
|
"onUpdate:modelValue": v[4] || (v[4] = (l) => dl.value = l)
|
|
2932
2933
|
}, null, 512), [
|
|
2933
|
-
[
|
|
2934
|
+
[Rt, dl.value]
|
|
2934
2935
|
]),
|
|
2935
|
-
|
|
2936
|
+
b("div", {
|
|
2936
2937
|
onClick: v[5] || (v[5] = (l) => dl.value = !dl.value),
|
|
2937
2938
|
style: { cursor: "pointer" }
|
|
2938
2939
|
}, [
|
|
2939
|
-
yl(c(
|
|
2940
|
+
yl(c(at), {
|
|
2940
2941
|
name: "chartLine",
|
|
2941
2942
|
size: 20,
|
|
2942
2943
|
stroke: e.value.chart.color
|
|
2943
2944
|
}, null, 8, ["stroke"])
|
|
2944
2945
|
])
|
|
2945
2946
|
]),
|
|
2946
|
-
dl.value ? (u(), Ie(c(
|
|
2947
|
+
dl.value ? (u(), Ie(c(tt), {
|
|
2947
2948
|
key: `sparkline_${El.value}`,
|
|
2948
|
-
dataset:
|
|
2949
|
-
config:
|
|
2950
|
-
}, null, 8, ["dataset", "config"])) : (u(), Ie(c(
|
|
2951
|
-
key: `table_${
|
|
2949
|
+
dataset: Lt.value,
|
|
2950
|
+
config: At.value
|
|
2951
|
+
}, null, 8, ["dataset", "config"])) : (u(), Ie(c(ja), {
|
|
2952
|
+
key: `table_${va.value}`,
|
|
2952
2953
|
colNames: Ml.value.colNames,
|
|
2953
2954
|
head: Ml.value.head,
|
|
2954
2955
|
body: Ml.value.body,
|
|
@@ -2957,10 +2958,10 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2957
2958
|
onClose: v[6] || (v[6] = (l) => f.value.showTable = !1)
|
|
2958
2959
|
}, {
|
|
2959
2960
|
th: se(({ th: l }) => [
|
|
2960
|
-
|
|
2961
|
+
b("div", { innerHTML: l }, null, 8, Wu)
|
|
2961
2962
|
]),
|
|
2962
2963
|
td: se(({ td: l }) => [
|
|
2963
|
-
|
|
2964
|
+
Bt(ee(isNaN(Number(l)) ? l : c(ye)({
|
|
2964
2965
|
p: e.value.chart.labels.prefix,
|
|
2965
2966
|
v: l,
|
|
2966
2967
|
s: e.value.chart.labels.suffix,
|
|
@@ -2973,10 +2974,10 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2973
2974
|
]),
|
|
2974
2975
|
_: 1
|
|
2975
2976
|
}, 8, ["config"])) : d("", !0),
|
|
2976
|
-
c(Dl) ? (u(), Ie(
|
|
2977
|
-
], 46,
|
|
2977
|
+
c(Dl) ? (u(), Ie(io, { key: 10 })) : d("", !0)
|
|
2978
|
+
], 46, no));
|
|
2978
2979
|
}
|
|
2979
|
-
},
|
|
2980
|
+
}, ai = /* @__PURE__ */ ro(Gu, [["__scopeId", "data-v-51d155b5"]]);
|
|
2980
2981
|
export {
|
|
2981
|
-
|
|
2982
|
+
ai as default
|
|
2982
2983
|
};
|