vue-data-ui 3.0.0-next.21 → 3.0.0-next.22
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-C3yKQTJs.js → Arrow-CG6jvVsg.js} +1 -1
- package/dist/{BaseDraggableDialog-B2wP_11m.js → BaseDraggableDialog-Du2C2PRN.js} +2 -2
- package/dist/{BaseIcon-_brgsjLG.js → BaseIcon-B02_iZvv.js} +1 -1
- package/dist/{ColorPicker-CCG8G1nd.js → ColorPicker-D8pAbBHF.js} +2 -2
- package/dist/{DataTable-C3ve--z6.js → DataTable-DWrR2huG.js} +2 -2
- package/dist/{Legend-CX874XJp.js → Legend-DuIBb5-l.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CnTtK3iB.js → NonSvgPenAndPaper-CgdXT3Mo.js} +3 -3
- package/dist/{PackageVersion-5l2M4Zh4.js → PackageVersion-Dw8LsLrG.js} +1 -1
- package/dist/{PenAndPaper-CYEXrj4q.js → PenAndPaper-B5NLS-T8.js} +3 -3
- package/dist/{Shape-Du8dC9QE.js → Shape-BYtD3aCC.js} +1 -1
- package/dist/{Slicer-D06CTSaX.js → Slicer-DEWW_x3E.js} +2 -2
- package/dist/{SparkTooltip-DcX30xns.js → SparkTooltip-49EExszm.js} +1 -1
- package/dist/{Title-CItmidxn.js → Title-CSrQOK6i.js} +1 -1
- package/dist/{Tooltip-lhQXI9xT.js → Tooltip-BXN6Dia0.js} +1 -1
- package/dist/{UserOptions-mGHinyKk.js → UserOptions-DuttP5Ha.js} +2 -2
- package/dist/{dom-to-png-juWKTR2G.js → dom-to-png-1vZ7Gzre.js} +1 -1
- package/dist/{img-2Cyzq02w.js → img-Cw1NdbG_.js} +1 -1
- package/dist/{index-DyWXkFFm.js → index-BW0C2_Tb.js} +1 -1
- package/dist/{pdf-C9bVIzob.js → pdf-Dhv7sPee.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-5rJrnAmD.js → useNestedProp-CTefm-aW.js} +1 -1
- package/dist/{usePrinter-YV36Zq2L.js → usePrinter-B4zYrgnb.js} +2 -2
- package/dist/{vue-data-ui-Br6XzNcY.js → vue-data-ui-CAy6ShPG.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BeZ4UXj1.js → vue-ui-3d-bar-CGy2iAMa.js} +6 -6
- package/dist/{vue-ui-accordion-_T76roov.js → vue-ui-accordion-c1jZbYHr.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DyILZmL1.js → vue-ui-age-pyramid-CAzHUVIF.js} +6 -6
- package/dist/{vue-ui-annotator-D6vtgVKu.js → vue-ui-annotator-bSYt6z3h.js} +2 -2
- package/dist/{vue-ui-bullet-CRL0nm0H.js → vue-ui-bullet-oMgx5uwV.js} +7 -7
- package/dist/{vue-ui-candlestick-Lv87ukLK.js → vue-ui-candlestick-DWdZfON_.js} +7 -7
- package/dist/{vue-ui-carousel-table-bQiT7iYL.js → vue-ui-carousel-table-DvK9e5fw.js} +4 -4
- package/dist/{vue-ui-chestnut-CshEgUb5.js → vue-ui-chestnut-xJhDrfjB.js} +5 -5
- package/dist/{vue-ui-chord-C_Gurj0k.js → vue-ui-chord-C4HzHUAY.js} +8 -8
- package/dist/{vue-ui-circle-pack-DcDbc0cs.js → vue-ui-circle-pack-DBK62SdA.js} +6 -6
- package/dist/{vue-ui-cursor-BlANSWeT.js → vue-ui-cursor-BYc6Mwym.js} +2 -2
- package/dist/{vue-ui-dashboard-Dylth91b.js → vue-ui-dashboard-DloLrGpO.js} +62 -62
- package/dist/{vue-ui-digits-BISvEvKG.js → vue-ui-digits-Q89rZ9Pe.js} +2 -2
- package/dist/{vue-ui-donut-DJYRCCLe.js → vue-ui-donut-awxg4BQq.js} +8 -8
- package/dist/{vue-ui-donut-evolution--nHID422.js → vue-ui-donut-evolution-CYUOog5f.js} +8 -8
- package/dist/{vue-ui-dumbbell-CsZa3YKC.js → vue-ui-dumbbell-C5j0XpO5.js} +7 -7
- package/dist/{vue-ui-flow-D1YZHLf1.js → vue-ui-flow-CqdoGSch.js} +7 -7
- package/dist/{vue-ui-funnel-KScJM0Sk.js → vue-ui-funnel-CD0RA9Rn.js} +6 -6
- package/dist/{vue-ui-galaxy-7I6nMU7k.js → vue-ui-galaxy-c_qleL6O.js} +5 -5
- package/dist/{vue-ui-gauge-BWOeGXdp.js → vue-ui-gauge-CtcJu8vb.js} +6 -6
- package/dist/{vue-ui-gizmo-C7Oci8xf.js → vue-ui-gizmo-CxvHL2NS.js} +3 -3
- package/dist/{vue-ui-heatmap-CeQq5YFh.js → vue-ui-heatmap-NC425dJO.js} +7 -7
- package/dist/{vue-ui-history-plot-C1R46zuZ.js → vue-ui-history-plot-7d_SmyIF.js} +7 -7
- package/dist/{vue-ui-kpi-CXXCCBoi.js → vue-ui-kpi-B1159KLv.js} +3 -3
- package/dist/{vue-ui-mini-loader-BDeMu-HG.js → vue-ui-mini-loader-D4lhtzRC.js} +2 -2
- package/dist/{vue-ui-molecule-BG_Vm9Z-.js → vue-ui-molecule-ClAIN3Ua.js} +5 -5
- package/dist/{vue-ui-mood-radar-68rvpqSe.js → vue-ui-mood-radar-B8cBu8B_.js} +7 -7
- package/dist/{vue-ui-nested-donuts-y7DnbLj7.js → vue-ui-nested-donuts-BxAB5Csu.js} +9 -9
- package/dist/{vue-ui-onion-cpCWH8CY.js → vue-ui-onion-oVP1iKkS.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-AXeySjsk.js → vue-ui-parallel-coordinate-plot-DNi4yM-k.js} +8 -8
- package/dist/{vue-ui-quadrant-9-wXsL9m.js → vue-ui-quadrant-V99phN2R.js} +8 -8
- package/dist/{vue-ui-quick-chart-B_SOReEM.js → vue-ui-quick-chart-Ci74ZJeI.js} +6 -6
- package/dist/{vue-ui-radar-BryqHi8h.js → vue-ui-radar-V4YCXUOo.js} +7 -7
- package/dist/{vue-ui-rating-Cm4WHdIj.js → vue-ui-rating-DexrpBbo.js} +2 -2
- package/dist/{vue-ui-relation-circle-D-wNj3HG.js → vue-ui-relation-circle-rPlpFgzI.js} +6 -6
- package/dist/{vue-ui-ridgeline-B5y-Z_xt.js → vue-ui-ridgeline-CBa7hm9Z.js} +8 -8
- package/dist/{vue-ui-rings-D-TtSoDJ.js → vue-ui-rings-DBGi-AUn.js} +8 -8
- package/dist/{vue-ui-scatter-DzPgW23k.js → vue-ui-scatter-D5mAcA9O.js} +8 -8
- package/dist/{vue-ui-skeleton-QZs3A3_K.js → vue-ui-skeleton-CdLMeOld.js} +3 -3
- package/dist/{vue-ui-smiley-ka3aFa0e.js → vue-ui-smiley-BV-tMmxi.js} +2 -2
- package/dist/{vue-ui-spark-trend-CJhdQ9Ls.js → vue-ui-spark-trend-CtCtidOg.js} +3 -3
- package/dist/{vue-ui-sparkbar-CL5ZGdHd.js → vue-ui-sparkbar-Bs1xm4es.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C5Jdp3zp.js → vue-ui-sparkgauge-CspfsOd_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CHRRpkm0.js → vue-ui-sparkhistogram-BaNvyNzr.js} +4 -4
- package/dist/{vue-ui-sparkline-B0r89-4E.js → vue-ui-sparkline-OMWoZFo2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-l35guX1R.js → vue-ui-sparkstackbar-D6L8x3fT.js} +3 -3
- package/dist/{vue-ui-stackbar-AKs4GMxY.js → vue-ui-stackbar-DfCeJnfw.js} +9 -9
- package/dist/{vue-ui-strip-plot-uhUjZcif.js → vue-ui-strip-plot-070FX-oE.js} +7 -7
- package/dist/{vue-ui-table-BbRxUiDQ.js → vue-ui-table-KxfZz3KW.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CVdmaPTJ.js → vue-ui-table-heatmap-CAv0UFbh.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DJfVAI5W.js → vue-ui-table-sparkline-BfxTdEYr.js} +4 -4
- package/dist/{vue-ui-thermometer-BYx0gV05.js → vue-ui-thermometer-gNuiHPTL.js} +6 -6
- package/dist/{vue-ui-timer-DL2v49kR.js → vue-ui-timer-DBjrqdbd.js} +5 -5
- package/dist/{vue-ui-tiremarks-LlgdqzTU.js → vue-ui-tiremarks-B4jaLtgL.js} +6 -6
- package/dist/{vue-ui-treemap-B2v9uGdI.js → vue-ui-treemap-Br0tUn0s.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DSCAkzDF.js → vue-ui-vertical-bar-fPUMFtfV.js} +9 -9
- package/dist/{vue-ui-waffle-DmNJRK-_.js → vue-ui-waffle-yfCV-Ucn.js} +8 -8
- package/dist/{vue-ui-wheel-ChRAwecI.js → vue-ui-wheel-B2ytuASN.js} +6 -6
- package/dist/{vue-ui-word-cloud-CELkzbyr.js → vue-ui-word-cloud-DoztPnSM.js} +6 -6
- package/dist/{vue-ui-world-BOJa-cTu.js → vue-ui-world-p6uUq2VG.js} +6 -6
- package/dist/{vue-ui-xy-DfeP_T81.js → vue-ui-xy-Cb4IrNMs.js} +362 -364
- package/dist/{vue-ui-xy-canvas-Dijs3J4M.js → vue-ui-xy-canvas-Dm0E_IV4.js} +8 -8
- package/package.json +1 -1
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { defineAsyncComponent as Be, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as aa } from "./useNestedProp-
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { S as
|
|
7
|
-
import
|
|
8
|
-
import { _ as Il } from "./Shape-
|
|
9
|
-
import
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { t as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as Be, useSlots as Nt, getCurrentInstance as Vt, ref as w, computed as $, onMounted as Ba, toRefs as Pt, watchEffect as Ht, onBeforeUnmount as Ya, watch as Ql, createElementBlock as i, openBlock as u, normalizeStyle as z, normalizeClass as Ue, createBlock as Me, createCommentVNode as d, createVNode as xl, unref as v, createSlots as Rt, withCtx as ue, renderSlot as q, normalizeProps as Ze, guardReactiveProps as Je, createElementVNode as g, Fragment as h, renderList as y, toDisplayString as ee, mergeProps as jl, withDirectives as Bt, vModelCheckbox as Yt, createTextVNode as Ft, nextTick as bl } from "vue";
|
|
2
|
+
import { u as Et, c as ea, e as la, A as Wt, a5 as Ye, b as Xt, D as ml, ab as Ke, d as Gt, p as Dt, ac as zl, aa as R, ad as qt, v as T, ae as Fa, V as Ea, af as Wa, U as Xa, ag as Ut, ah as Ga, ai as Da, i as re, x as Zt, y as Jt, _ as qa, R as ze, f as xe, w as Qe, s as we, a8 as X, L as Kt, F as Fe, aj as Cl, I as Qt, ak as Ee, C as Ne, t as jt, a as eo, o as Ua, q as lo, r as ao, E as ol } from "./index-BW0C2_Tb.js";
|
|
3
|
+
import { u as aa } from "./useNestedProp-CTefm-aW.js";
|
|
4
|
+
import { u as to } from "./useTimeLabels-DFkUfjfs.js";
|
|
5
|
+
import { u as oo } from "./useTimeLabelCollider-V7AOiPLB.js";
|
|
6
|
+
import { S as so } from "./Slicer-DEWW_x3E.js";
|
|
7
|
+
import uo from "./Title-CSrQOK6i.js";
|
|
8
|
+
import { _ as Il } from "./Shape-BYtD3aCC.js";
|
|
9
|
+
import ro from "./img-Cw1NdbG_.js";
|
|
10
|
+
import { u as io } from "./usePrinter-B4zYrgnb.js";
|
|
11
|
+
import { u as no, B as co } from "./BaseScanner-DIK2NTdp.js";
|
|
12
|
+
import { t as vo } from "./useResponsive-DfdjqQps.js";
|
|
13
|
+
import { _ as ho } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const fo = ["id"], go = ["viewBox", "aria-label"], xo = ["x", "y", "width", "height"], bo = { key: 1 }, mo = { class: "vue-ui-xy-grid" }, yo = ["stroke", "x1", "x2", "y1", "y2"], po = ["stroke", "x1", "x2", "y1", "y2"], ko = { key: 1 }, _o = ["x1", "x2", "y1", "y2", "stroke"], wo = ["x1", "x2", "y1", "y2", "stroke"], So = ["x1", "x2", "y1", "y2", "stroke"], $o = { key: 3 }, Lo = ["d", "stroke"], Ao = { key: 4 }, Mo = ["d", "stroke"], zo = ["id"], Co = ["stop-color"], Io = ["stop-color"], To = ["stop-color"], Oo = ["id"], No = ["stop-color"], Vo = ["stop-color"], Po = ["stop-color"], Ho = ["id"], Ro = ["stop-color"], Bo = ["stop-color"], Yo = ["id"], Fo = ["stop-color"], Eo = ["stop-color"], Wo = ["id"], Xo = ["stop-color"], Go = ["stop-color"], Do = ["x", "y", "height", "width", "fill"], qo = ["x", "y", "width"], Uo = { key: 0 }, Zo = ["x", "y", "height", "width", "fill"], Jo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ko = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qo = ["width", "x", "y"], jo = { key: 0 }, es = ["id"], ls = ["fill"], as = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ts = ["x", "y", "font-size", "fill"], os = ["stroke", "x1", "x2", "y1", "y2"], ss = { key: 3 }, us = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rs = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], is = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ns = ["fill", "font-size", "transform"], cs = ["x1", "x2", "y1", "y2", "stroke"], vs = ["x", "y", "font-size", "fill"], ds = ["x1", "x2", "y1", "y2", "stroke"], hs = ["x", "y", "font-size", "fill"], fs = ["width", "x", "y"], gs = { style: { width: "100%" } }, xs = { key: 0 }, bs = ["id"], ms = ["fill"], ys = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ps = ["x", "y", "font-size", "fill"], ks = ["d", "stroke", "stroke-width", "stroke-dasharray"], _s = ["d", "stroke", "stroke-width", "stroke-dasharray"], ws = { key: 6 }, Ss = { key: 0 }, $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "fill"], Ms = ["d", "fill"], zs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Is = ["width", "x", "y"], Ts = { style: { width: "100%" } }, Os = { key: 3 }, Ns = ["id"], Vs = ["fill"], Ps = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Hs = ["x", "y", "font-size", "fill"], Rs = { key: 7 }, Bs = ["x", "y", "font-size", "fill"], Ys = ["x", "y", "font-size", "fill", "font-weight"], Fs = { key: 8 }, Es = ["x", "y", "font-size", "fill"], Ws = { key: 9 }, Xs = ["x", "y"], Gs = ["innerHTML"], Ds = ["x", "y"], qs = ["innerHTML"], Us = ["x1", "x2", "y1", "y2", "stroke"], Zs = { key: 10 }, Js = ["x", "y", "font-size", "fill"], Ks = { key: 11 }, Qs = ["x", "y"], js = ["innerHTML"], eu = ["x", "y"], lu = ["innerHTML"], au = ["x1", "x2", "y1", "y2", "stroke"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["x", "y", "font-size", "fill", "innerHTML"], uu = ["x", "y", "font-size", "fill", "innerHTML"], ru = ["id"], iu = ["stop-color"], nu = ["stop-color"], cu = ["x", "y", "width", "height", "fill", "onMouseenter"], vu = ["font-size", "fill", "transform"], du = ["x", "y", "font-size", "fill"], hu = ["text-anchor", "font-size", "fill", "transform", "onClick"], fu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], gu = { key: 14 }, xu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], bu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], mu = ["y", "x", "width", "height", "fill"], yu = ["id", "x", "y", "font-size", "fill", "text-anchor"], pu = { key: 15 }, ku = ["x", "y", "height", "width", "onMouseenter", "onClick"], _u = {
|
|
15
15
|
key: 16,
|
|
16
16
|
style: { "pointer-events": "none" }
|
|
17
|
-
},
|
|
17
|
+
}, wu = ["x", "y"], Su = ["cx", "cy", "r", "fill"], $u = {
|
|
18
18
|
key: 4,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Lu = {
|
|
21
21
|
class: "vue-ui-xy-tag-arrow",
|
|
22
22
|
height: "20",
|
|
23
23
|
viewBox: "0 0 10 20",
|
|
24
24
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
25
|
-
},
|
|
25
|
+
}, Au = ["fill"], Mu = ["innerHTML"], zu = {
|
|
26
26
|
class: "vue-ui-xy-tag-arrow",
|
|
27
27
|
height: "100%",
|
|
28
28
|
viewBox: "0 0 10 20",
|
|
29
29
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
30
|
-
},
|
|
30
|
+
}, Cu = ["fill"], Iu = ["innerHTML"], Tu = {
|
|
31
31
|
class: "vue-ui-xy-tag-arrow",
|
|
32
32
|
height: "20",
|
|
33
33
|
viewBox: "0 0 10 20",
|
|
34
34
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
35
|
-
},
|
|
35
|
+
}, Ou = ["fill"], Nu = ["innerHTML"], Vu = {
|
|
36
36
|
class: "vue-ui-xy-tag-arrow",
|
|
37
37
|
height: "100%",
|
|
38
38
|
viewBox: "0 0 10 20",
|
|
39
39
|
style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
40
|
-
},
|
|
40
|
+
}, Pu = ["fill"], Hu = ["innerHTML"], Ru = ["onClick"], Bu = {
|
|
41
41
|
key: 0,
|
|
42
42
|
viewBox: "0 0 20 12",
|
|
43
43
|
height: "14",
|
|
44
44
|
width: "20"
|
|
45
|
-
},
|
|
45
|
+
}, Yu = ["stroke", "fill"], Fu = {
|
|
46
46
|
key: 1,
|
|
47
47
|
viewBox: "0 0 40 40",
|
|
48
48
|
height: "14",
|
|
49
49
|
width: "14"
|
|
50
|
-
},
|
|
50
|
+
}, Eu = ["fill"], Wu = ["fill"], Xu = {
|
|
51
51
|
key: 2,
|
|
52
52
|
viewBox: "0 0 12 12",
|
|
53
53
|
height: "14",
|
|
54
54
|
width: "14"
|
|
55
|
-
},
|
|
55
|
+
}, Gu = {
|
|
56
56
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
57
57
|
"data-dom-to-png-ignore": ""
|
|
58
|
-
},
|
|
58
|
+
}, Du = ["innerHTML"], qu = {
|
|
59
59
|
__name: "vue-ui-xy",
|
|
60
60
|
props: {
|
|
61
61
|
config: {
|
|
@@ -72,11 +72,11 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
75
|
-
setup(Tl, { expose:
|
|
76
|
-
const
|
|
75
|
+
setup(Tl, { expose: Za, emit: Ja }) {
|
|
76
|
+
const m = Tl, Ka = Be(() => import("./DataTable-DWrR2huG.js")), Qa = Be(() => import("./Tooltip-BXN6Dia0.js")), ja = Be(() => import("./UserOptions-DuttP5Ha.js")), et = Be(() => import("./BaseIcon-B02_iZvv.js")), lt = Be(() => import("./vue-ui-table-sparkline-BfxTdEYr.js")), at = Be(() => import("./vue-ui-accordion-c1jZbYHr.js")), tt = Be(() => import("./PackageVersion-Dw8LsLrG.js")), ot = Be(() => import("./PenAndPaper-B5NLS-T8.js")), Ol = Ja, ta = Nt(), st = Vt(), { vue_ui_xy: Nl } = Et(), je = w(null), sl = w(null), Se = w(null), el = w(null), ul = w(null), rl = w(null), ut = w(null), Vl = w(null), Pl = w(null), ll = w(null), Hl = w(null), We = w(null), Rl = w(null), Bl = w(0), M = w(null), oa = w(!0), ve = w(600), ae = w(1e3), yl = w("0 0 1000 600"), rt = w({ x: 0, y: 0 }), il = w({ line: "line", bar: "bar", plot: "plot" }), pl = w(!1), al = w(!1), sa = w(!1), k = w(null), Xe = w(null), te = w([]), U = w(ea()), ua = w(0), ra = w(0), ia = w(0), nl = w(!0), Yl = w(0), O = w(null), na = w(!1), Fl = w(!0), kl = w(!0), be = w(null), Ce = w({}), _l = w(null), it = $(() => ({
|
|
77
77
|
height: ve.value,
|
|
78
78
|
width: ae.value
|
|
79
|
-
})),
|
|
79
|
+
})), nt = m.config.downsample && m.config.downsample.threshold ? m.config.downsample.threshold : 500, f = w({
|
|
80
80
|
dataLabels: { show: !0 },
|
|
81
81
|
showTooltip: !0,
|
|
82
82
|
showTable: !1,
|
|
@@ -88,8 +88,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
88
88
|
dataLabels: 20,
|
|
89
89
|
plotLabels: 10
|
|
90
90
|
}), $e = w({ plot: 3, line: 3 });
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
Ba(() => {
|
|
92
|
+
m.dataset.length && m.dataset.forEach((a, c) => {
|
|
93
93
|
[null, void 0].includes(a.series) && la({
|
|
94
94
|
componentName: "VueUiXy",
|
|
95
95
|
type: "datasetSerieAttribute",
|
|
@@ -100,32 +100,32 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
function El() {
|
|
103
|
-
if (!Object.keys(
|
|
103
|
+
if (!Object.keys(m.config || {}).length)
|
|
104
104
|
return Nl;
|
|
105
105
|
const a = aa({
|
|
106
|
-
userConfig:
|
|
106
|
+
userConfig: m.config,
|
|
107
107
|
defaultConfig: Nl
|
|
108
108
|
});
|
|
109
|
-
return
|
|
109
|
+
return m.config && Ne(m.config, "chart.highlightArea") && (Array.isArray(m.config.chart.highlightArea) ? a.chart.highlightArea = m.config.chart.highlightArea : a.chart.highlightArea = [m.config.chart.highlightArea]), m.config && Ne(m.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = m.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, m.config && Ne(m.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = m.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, m.config && Ne(m.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = m.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, m.config && Ne(m.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = m.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, m.config && Ne(m.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = m.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, m.config && m.config.chart.annotations && Array.isArray(m.config.chart.annotations) && m.config.chart.annotations.length ? a.chart.annotations = m.config.chart.annotations.map((c) => aa({
|
|
110
110
|
defaultConfig: Nl.chart.annotations[0],
|
|
111
111
|
userConfig: c
|
|
112
|
-
})) : a.chart.annotations = [],
|
|
112
|
+
})) : a.chart.annotations = [], m.config && Ne(m.config, "chart.grid.position") && m.config.chart.grid.position === "start" && m.dataset.length && m.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", Ne(m.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), m.config && Ne(m.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = m.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, a.theme ? {
|
|
113
113
|
...aa({
|
|
114
|
-
userConfig:
|
|
114
|
+
userConfig: eo.vue_ui_xy[a.theme] || m.config,
|
|
115
115
|
defaultConfig: a
|
|
116
116
|
}),
|
|
117
|
-
customPalette:
|
|
117
|
+
customPalette: jt[a.theme] || m.palette
|
|
118
118
|
} : a;
|
|
119
119
|
}
|
|
120
120
|
const Wl = $({
|
|
121
121
|
get() {
|
|
122
|
-
return !!
|
|
122
|
+
return !!m.dataset && m.dataset.length;
|
|
123
123
|
},
|
|
124
124
|
set(a) {
|
|
125
125
|
return a;
|
|
126
126
|
}
|
|
127
|
-
}), l = w(El()), { loading: Xl, FINAL_DATASET:
|
|
128
|
-
...
|
|
127
|
+
}), l = w(El()), { loading: Xl, FINAL_DATASET: me, manualLoading: wl } = no({
|
|
128
|
+
...Pt(m),
|
|
129
129
|
FINAL_CONFIG: l,
|
|
130
130
|
prepareConfig: El,
|
|
131
131
|
callback: () => {
|
|
@@ -148,7 +148,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
148
148
|
color: "#CACACA"
|
|
149
149
|
}
|
|
150
150
|
],
|
|
151
|
-
skeletonConfig:
|
|
151
|
+
skeletonConfig: Wt({
|
|
152
152
|
defaultConfig: l.value,
|
|
153
153
|
userConfig: {
|
|
154
154
|
useCssAnimation: !1,
|
|
@@ -207,18 +207,18 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
207
207
|
}
|
|
208
208
|
})
|
|
209
209
|
}), Ve = $({
|
|
210
|
-
get: () => Math.max(...
|
|
210
|
+
get: () => Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: nt }).length)),
|
|
211
211
|
set: (a) => a
|
|
212
|
-
}), S = w({ start: 0, end: Ve.value }), { isPrinting: Gl, isImaging: ca, generatePdf: va, generateImage: da } =
|
|
212
|
+
}), S = w({ start: 0, end: Ve.value }), { isPrinting: Gl, isImaging: ca, generatePdf: va, generateImage: da } = io({
|
|
213
213
|
elementId: `vue-ui-xy_${U.value}`,
|
|
214
214
|
fileName: l.value.chart.title.text || "vue-ui-xy",
|
|
215
215
|
options: l.value.chart.userOptions.print
|
|
216
|
-
}),
|
|
216
|
+
}), ct = w(!1), ha = $(() => Xt(l.value.customPalette)), Sl = $(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ie.value.filter((a) => !te.value.includes(a.id)).map((a) => Math.max(...a.series)))), Dl = $(() => {
|
|
217
217
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
218
218
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
219
219
|
const a = Math.min(...Ie.value.filter((c) => !te.value.includes(c.id)).map((c) => Math.min(...c.series)));
|
|
220
220
|
return a > 0 ? 0 : a;
|
|
221
|
-
}), ye = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
221
|
+
}), ye = $(() => l.value.chart.grid.labels.yAxis.useNiceScale ? ml(Dl.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Ke(Dl.value, Sl.value < 0 ? 0 : Sl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), cl = $(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? ye.value.min >= 0 ? 0 : Math.abs(ye.value.min) : -ye.value.min), Ie = $(() => oa.value ? me.value.map((a, c) => {
|
|
222
222
|
const e = Ye({
|
|
223
223
|
data: a.series,
|
|
224
224
|
threshold: l.value.downsample.threshold
|
|
@@ -227,11 +227,11 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
227
227
|
...a,
|
|
228
228
|
slotAbsoluteIndex: c,
|
|
229
229
|
series: e.map((t) => zl(t) ? t : null).slice(S.value.start, S.value.end),
|
|
230
|
-
color:
|
|
230
|
+
color: Gt(a.color ? a.color : ha.value[c] ? ha.value[c] : Dt[c]),
|
|
231
231
|
id: s,
|
|
232
232
|
scaleLabel: a.scaleLabel || s
|
|
233
233
|
};
|
|
234
|
-
}) :
|
|
234
|
+
}) : me.value), Te = $(() => Ie.value.map((a, c) => ({
|
|
235
235
|
absoluteIndex: c,
|
|
236
236
|
...a,
|
|
237
237
|
series: a.series.map((e) => e + cl.value),
|
|
@@ -243,7 +243,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
243
243
|
series: a.series.map((e) => e + cl.value),
|
|
244
244
|
absoluteValues: a.series
|
|
245
245
|
})).filter((a) => !te.value.includes(a.id)));
|
|
246
|
-
function
|
|
246
|
+
function vt() {
|
|
247
247
|
let a = 0;
|
|
248
248
|
Hl.value && (a = Array.from(Hl.value.querySelectorAll("text")).reduce((t, r) => {
|
|
249
249
|
const o = r.getComputedTextLength();
|
|
@@ -252,17 +252,17 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
252
252
|
const c = Pl.value ? Pl.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
|
|
253
253
|
return a + c + e;
|
|
254
254
|
}
|
|
255
|
-
const ql = w(0),
|
|
255
|
+
const ql = w(0), dt = vo((a) => {
|
|
256
256
|
ql.value = a;
|
|
257
257
|
}, 100);
|
|
258
|
-
|
|
258
|
+
Ht((a) => {
|
|
259
259
|
const c = ll.value;
|
|
260
260
|
if (!c) return;
|
|
261
261
|
const e = new ResizeObserver((s) => {
|
|
262
|
-
|
|
262
|
+
dt(s[0].contentRect.height);
|
|
263
263
|
});
|
|
264
264
|
e.observe(c), a(() => e.disconnect());
|
|
265
|
-
}),
|
|
265
|
+
}), Ya(() => {
|
|
266
266
|
ql.value = 0;
|
|
267
267
|
});
|
|
268
268
|
const fa = $(() => {
|
|
@@ -270,16 +270,16 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
270
270
|
Vl.value && (a = Vl.value.getBBox().height);
|
|
271
271
|
let c = 0;
|
|
272
272
|
return ll.value && (c = ql.value), a + c + x.value.xAxis;
|
|
273
|
-
}),
|
|
273
|
+
}), ht = $(() => me.value.some((a) => a.useProgression)), n = $(() => {
|
|
274
274
|
let a = 0;
|
|
275
275
|
const c = 36;
|
|
276
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (
|
|
277
|
-
const e = l.value.chart.labels.fontSize * 1.1, s =
|
|
276
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (me.value.length - te.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + c : a = vt());
|
|
277
|
+
const e = l.value.chart.labels.fontSize * 1.1, s = ht.value ? 24 : 6;
|
|
278
278
|
if (ll.value) {
|
|
279
279
|
const o = ll.value.getBBox().x;
|
|
280
280
|
o < 0 && (a += Math.abs(o));
|
|
281
281
|
}
|
|
282
|
-
const t = ae.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t /
|
|
282
|
+
const t = ae.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, r = l.value.chart.grid.position === "middle" ? 0 : t / b.value / 2;
|
|
283
283
|
return {
|
|
284
284
|
top: l.value.chart.padding.top + e,
|
|
285
285
|
right: ae.value - s - l.value.chart.padding.right,
|
|
@@ -290,13 +290,13 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
290
290
|
scaleLabelX: a,
|
|
291
291
|
individualOffsetX: c
|
|
292
292
|
};
|
|
293
|
-
}),
|
|
294
|
-
const a = l.value.chart.grid.position === "middle" ? 1 : 0, c =
|
|
293
|
+
}), ft = $(() => {
|
|
294
|
+
const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = b.value + a, e = R(n.value.top), s = R(n.value.bottom);
|
|
295
295
|
return Array.from({ length: c }).map((t, r) => {
|
|
296
|
-
const o = n.value.width /
|
|
296
|
+
const o = n.value.width / b.value * r + n.value.left + G.value;
|
|
297
297
|
return `M${o},${e} L${o},${s}`;
|
|
298
298
|
}).join(" ");
|
|
299
|
-
}),
|
|
299
|
+
}), gt = $(() => {
|
|
300
300
|
if (!l.value.chart.grid.labels.xAxis.showCrosshairs)
|
|
301
301
|
return "";
|
|
302
302
|
const {
|
|
@@ -306,17 +306,17 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
306
306
|
} = l.value.chart.grid.labels.xAxisLabels, s = le.value.length ? Math.min(e, [...new Set(le.value.map((r) => r.text))]) : e, t = Math.floor((S.value.end - S.value.start) / s);
|
|
307
307
|
return le.value.map((r, o) => {
|
|
308
308
|
if (!r) return null;
|
|
309
|
-
const B = a &&
|
|
309
|
+
const B = a && b.value <= s, F = !c && !a, E = c && !a && (o === 0 || o === le.value.length - 1), L = c && !a && k.value === o, C = !c && a && o % t === 0;
|
|
310
310
|
if (!(B || F || E || L || C))
|
|
311
311
|
return null;
|
|
312
|
-
const Y = n.value.width /
|
|
312
|
+
const Y = n.value.width / b.value, _ = n.value.left + Y * o + Y / 2, N = l.value.chart.grid.labels.xAxis.crosshairSize, A = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, J = A ? ie.value - (ie.value === n.value.bottom ? 0 : N / 2) : n.value.bottom, oe = A ? ie.value + N / (ie.value === n.value.bottom ? 1 : 2) : n.value.bottom + N;
|
|
313
313
|
return `M${_},${J} L${_},${oe}`;
|
|
314
314
|
}).filter((r) => r !== null).join(" ");
|
|
315
315
|
});
|
|
316
316
|
function ga() {
|
|
317
|
-
return !!
|
|
317
|
+
return !!st?.vnode.props?.onSelectTimeLabel;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function xt(a, c, e) {
|
|
320
320
|
if (!_l.value) {
|
|
321
321
|
const s = document.createElement("canvas");
|
|
322
322
|
_l.value = s.getContext("2d");
|
|
@@ -331,15 +331,15 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
331
331
|
e && (Ce.value[`${a}_${c}_${s}_${t}`] = e);
|
|
332
332
|
}
|
|
333
333
|
const Ul = w(!1);
|
|
334
|
-
async function
|
|
335
|
-
await
|
|
334
|
+
async function ba(a = !1) {
|
|
335
|
+
await bl(), Ul.value = a, na.value && (kl.value = a);
|
|
336
336
|
}
|
|
337
337
|
function Zl() {
|
|
338
338
|
pl.value = !pl.value;
|
|
339
339
|
}
|
|
340
340
|
const le = $(() => {
|
|
341
|
-
const a = Math.max(...
|
|
342
|
-
return
|
|
341
|
+
const a = Math.max(...me.value.map((c) => Ye({ data: c.series, threshold: l.value.downsample.threshold }).length));
|
|
342
|
+
return to({
|
|
343
343
|
values: l.value.chart.grid.labels.xAxisLabels.values,
|
|
344
344
|
maxDatapoints: a,
|
|
345
345
|
formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -350,7 +350,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
350
350
|
const a = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
351
351
|
return le.value.length ? Math.min(a, [...new Set(le.value.map((c) => c.text))].length) : a;
|
|
352
352
|
});
|
|
353
|
-
function
|
|
353
|
+
function ma(a, c) {
|
|
354
354
|
const e = pe.value.map((s) => ({
|
|
355
355
|
shape: s.shape || null,
|
|
356
356
|
name: s.name,
|
|
@@ -367,8 +367,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
367
367
|
label: a.text
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
const
|
|
371
|
-
function
|
|
370
|
+
const b = $(() => S.value.end - S.value.start);
|
|
371
|
+
function bt(a) {
|
|
372
372
|
O.value = a;
|
|
373
373
|
}
|
|
374
374
|
function ya() {
|
|
@@ -383,17 +383,17 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
383
383
|
e[s] = c[s];
|
|
384
384
|
return e;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
const c = Math.max(...
|
|
386
|
+
function yt(a) {
|
|
387
|
+
const c = Math.max(...me.value.map((e) => Ye({ data: e.series, threshold: l.value.downsample.threshold }).length));
|
|
388
388
|
return a > c ? c : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
|
|
389
389
|
}
|
|
390
390
|
async function Kl() {
|
|
391
|
-
(l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Se.value ? (l.value.chart.zoom.startIndex !== null && (await
|
|
391
|
+
(l.value.chart.zoom.startIndex !== null || l.value.chart.zoom.endIndex !== null) && Se.value ? (l.value.chart.zoom.startIndex !== null && (await bl(), await bl(), Se.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await bl(), await bl(), Se.value.setEndValue(yt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
|
|
392
392
|
start: 0,
|
|
393
|
-
end: Math.max(...
|
|
393
|
+
end: Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: l.value.downsample.threshold }).length))
|
|
394
394
|
}, Bl.value += 1);
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function pt() {
|
|
397
397
|
Kl();
|
|
398
398
|
}
|
|
399
399
|
function fe(a) {
|
|
@@ -412,15 +412,15 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
412
412
|
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);
|
|
413
413
|
}
|
|
414
414
|
const Z = $(() => ({
|
|
415
|
-
bar: n.value.width /
|
|
416
|
-
plot: n.value.width /
|
|
417
|
-
line: n.value.width /
|
|
415
|
+
bar: n.value.width / b.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
|
|
416
|
+
plot: n.value.width / b.value,
|
|
417
|
+
line: n.value.width / b.value
|
|
418
418
|
}));
|
|
419
419
|
function ke() {
|
|
420
|
-
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width /
|
|
420
|
+
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / b.value * 0.1 : Z.value.bar;
|
|
421
421
|
}
|
|
422
422
|
function Al(a) {
|
|
423
|
-
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width /
|
|
423
|
+
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / b.value * 0.05 : a.x + Z.value.bar / 2;
|
|
424
424
|
}
|
|
425
425
|
function wa(a) {
|
|
426
426
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ie.value) ? n.bottom.value : ie.value;
|
|
@@ -428,7 +428,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
428
428
|
function Sa(a) {
|
|
429
429
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function kt(a) {
|
|
432
432
|
Ol(
|
|
433
433
|
"selectX",
|
|
434
434
|
{
|
|
@@ -443,7 +443,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
443
443
|
}
|
|
444
444
|
);
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function _t() {
|
|
447
447
|
return Te.value.map((a) => ({
|
|
448
448
|
values: a.absoluteValues,
|
|
449
449
|
color: a.color,
|
|
@@ -451,9 +451,9 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
451
451
|
type: a.type
|
|
452
452
|
}));
|
|
453
453
|
}
|
|
454
|
-
async function
|
|
454
|
+
async function wt({ scale: a = 2 } = {}) {
|
|
455
455
|
if (!je.value) return;
|
|
456
|
-
const { width: c, height: e } = je.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: r } = await
|
|
456
|
+
const { width: c, height: e } = je.value.getBoundingClientRect(), s = c / e, { imageUri: t, base64: r } = await ro({ domElement: je.value, base64: !0, img: !0, scale: a });
|
|
457
457
|
return {
|
|
458
458
|
imageUri: t,
|
|
459
459
|
base64: r,
|
|
@@ -477,12 +477,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
477
477
|
type: c.type
|
|
478
478
|
}))), Yl.value += 1;
|
|
479
479
|
}
|
|
480
|
-
const
|
|
480
|
+
const St = $(() => {
|
|
481
481
|
const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
|
|
482
482
|
return `${a}. ${c}`;
|
|
483
483
|
}), La = $(() => ({
|
|
484
|
-
linePlot:
|
|
485
|
-
})),
|
|
484
|
+
linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
485
|
+
})), $t = $(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Lt = $(() => {
|
|
486
486
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
487
487
|
return l.value.chart.highlightArea.map((c) => {
|
|
488
488
|
const e = Math.min(c.to, Ve.value - 1);
|
|
@@ -496,22 +496,22 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
496
496
|
to: Math.min(l.value.chart.highlightArea.to, Ve.value - 1)
|
|
497
497
|
};
|
|
498
498
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
499
|
-
}),
|
|
499
|
+
}), At = $(() => oa.value ? me.value.map((a, c) => ({
|
|
500
500
|
...a,
|
|
501
501
|
series: Ye({
|
|
502
502
|
data: a.series,
|
|
503
503
|
threshold: l.value.downsample.threshold
|
|
504
504
|
}),
|
|
505
505
|
id: `uniqueId_${c}`
|
|
506
|
-
})) :
|
|
506
|
+
})) : me.value), Mt = $(() => pe.value.map((a) => {
|
|
507
507
|
const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
508
508
|
return {
|
|
509
509
|
id: a.id,
|
|
510
510
|
name: a.name,
|
|
511
511
|
color: a.color,
|
|
512
|
-
values: mt(
|
|
512
|
+
values: mt(b.value, c)
|
|
513
513
|
};
|
|
514
|
-
})),
|
|
514
|
+
})), zt = $(() => ({
|
|
515
515
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
516
516
|
roundingValues: l.value.table.rounding,
|
|
517
517
|
showAverage: !1,
|
|
@@ -534,7 +534,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
534
534
|
userOptions: {
|
|
535
535
|
show: !1
|
|
536
536
|
}
|
|
537
|
-
})), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
537
|
+
})), G = $(() => l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value / 2), De = $(() => qt(Te.value.filter((a) => !te.value.includes(a.id)))), p = $(() => {
|
|
538
538
|
const a = Object.groupBy(De.value, (e) => e.scaleLabel), c = {};
|
|
539
539
|
for (const [e, s] of Object.entries(a)) {
|
|
540
540
|
const t = s.flatMap((r) => r.absoluteValues);
|
|
@@ -545,12 +545,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
547
|
return c;
|
|
548
|
-
}),
|
|
548
|
+
}), Ct = $(() => {
|
|
549
549
|
const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
|
|
550
|
-
return n.value.width /
|
|
551
|
-
}), Oe = $(() => Z.value.line * l.value.bar.periodGap),
|
|
550
|
+
return n.value.width / b.value / a - Oe.value * a;
|
|
551
|
+
}), Oe = $(() => Z.value.line * l.value.bar.periodGap), It = $(() => {
|
|
552
552
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
553
|
-
const a =
|
|
553
|
+
const a = At.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
554
554
|
for (let t = 0; t < c; t += 1)
|
|
555
555
|
e.push(a.map((r) => r.series[t] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
|
|
556
556
|
const s = Math.min(...e);
|
|
@@ -582,7 +582,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
582
582
|
return t - C * r;
|
|
583
583
|
};
|
|
584
584
|
return c.map((L) => {
|
|
585
|
-
const { yAxis: { yTop: C, yBottom: Y, label: _ } } = L, N = C != null && Y != null && C !== Y, A = C == null ? null : E(C), J = Y == null ? null : E(Y), oe =
|
|
585
|
+
const { yAxis: { yTop: C, yBottom: Y, label: _ } } = L, N = C != null && Y != null && C !== Y, A = C == null ? null : E(C), J = Y == null ? null : E(Y), oe = xt(_.fontSize);
|
|
586
586
|
oe.font = `${_.fontSize}px sans-serif`;
|
|
587
587
|
const D = oe.measureText(_.text).width, ge = _.fontSize, Ae = (_.position === "start" ? e + _.padding.left : s - _.padding.right) + _.offsetX, de = (A != null && J != null ? Math.min(A, J) : A ?? J) - _.fontSize / 3 + _.offsetY - _.padding.top;
|
|
588
588
|
let P;
|
|
@@ -624,8 +624,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
624
624
|
}, C = {
|
|
625
625
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
626
626
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((V) => ![void 0, null].includes(V))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((V) => ![null, void 0].includes(V)))
|
|
627
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
628
|
-
const Re = f.value.useIndividualScale ? (o.absoluteValues[j] + J) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width /
|
|
627
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * _ : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * _ : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), J = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + J, ge = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, K = n.value.bottom - P - H * J / D, he = n.value.bottom - P - H * oe / ge, ne = Te.value.filter((V) => V.type === "bar").filter((V) => !te.value.includes(V.id)).length, fl = o.series.map((V, j) => {
|
|
628
|
+
const Re = f.value.useIndividualScale ? (o.absoluteValues[j] + J) / D : Ge(V), qe = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * j : n.value.left + Z.value.bar * B + Z.value.bar * j * ne - Ct.value / 2 - B * Oe.value;
|
|
629
629
|
return {
|
|
630
630
|
yOffset: T(P),
|
|
631
631
|
individualHeight: T(H),
|
|
@@ -637,7 +637,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
637
637
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
|
|
638
638
|
};
|
|
639
639
|
}), ce = o.absoluteValues.map((V) => A.min >= 0 ? (V - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (V + Math.abs(A.min)) / (A.max + Math.abs(A.min))), He = o.series.map((V, j) => {
|
|
640
|
-
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width /
|
|
640
|
+
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / b.value * j : n.value.left - Z.value.bar / 2 + Z.value.bar * B + Z.value.bar * j * Te.value.filter((qe) => qe.type === "bar").filter((qe) => !te.value.includes(qe.id)).length;
|
|
641
641
|
return {
|
|
642
642
|
yOffset: T(P),
|
|
643
643
|
individualHeight: T(H),
|
|
@@ -689,11 +689,11 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
689
689
|
}, C = {
|
|
690
690
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
691
691
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
692
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
693
|
-
const
|
|
692
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(C.min, C.max === C.min ? C.max * _ : C.max, Y) : Ke(C.min, C.max === C.min ? C.max * _ : C.max, Y), A = l.value.chart.grid.labels.yAxis.useNiceScale ? ml(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y) : Ke(L.valueMin, L.valueMax === L.valueMin ? L.valueMax * _ : L.valueMax, Y), J = N.min >= 0 ? 0 : Math.abs(N.min), oe = 0, D = N.max + Math.abs(J), ge = A.max + Math.abs(oe), Ae = o.stackIndex, tl = c - 1 - Ae, de = s ? 1 - o.cumulatedStackRatio : 0, P = s ? r * de + e * tl : 0, H = s ? r * o.stackRatio : n.value.height, K = n.value.bottom - P - H * J / D, he = n.value.bottom - P - H * oe / ge, ne = o.series.map((I, se) => {
|
|
693
|
+
const Ot = f.value.useIndividualScale ? (o.absoluteValues[se] + Math.abs(J)) / D : Ge(I);
|
|
694
694
|
return {
|
|
695
695
|
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
696
|
-
y: T(n.value.bottom - P - H *
|
|
696
|
+
y: T(n.value.bottom - P - H * Ot),
|
|
697
697
|
value: o.absoluteValues[se],
|
|
698
698
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
|
|
699
699
|
};
|
|
@@ -707,7 +707,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
707
707
|
y: T(n.value.bottom - P - (H * fl[se] || 0)),
|
|
708
708
|
value: o.absoluteValues[se],
|
|
709
709
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
|
|
710
|
-
}), He = l.value.line.cutNullValues ?
|
|
710
|
+
}), He = l.value.line.cutNullValues ? Fa(ne) : Ea(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Fa(ce) : Ea(ce.filter((I) => I.value !== null)), Q = l.value.line.cutNullValues ? Wa(ne) : Xa(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Wa(ce) : Xa(ce.filter((I) => I.value !== null)), j = N.ticks.map((I) => ({
|
|
711
711
|
y: I >= 0 ? K - H * (I / D) : K + H * Math.abs(I) / D,
|
|
712
712
|
value: I,
|
|
713
713
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
@@ -736,14 +736,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
736
736
|
zeroPosition: o.autoScaling ? he : K,
|
|
737
737
|
curve: o.autoScaling ? W : He,
|
|
738
738
|
plots: o.autoScaling ? ce : ne,
|
|
739
|
-
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ?
|
|
739
|
+
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Ga(
|
|
740
740
|
o.autoScaling ? ce : ne,
|
|
741
741
|
gl
|
|
742
|
-
) :
|
|
742
|
+
) : Da(
|
|
743
743
|
o.autoScaling ? ce.filter((I) => I.value !== null) : ne.filter((I) => I.value !== null),
|
|
744
744
|
gl
|
|
745
|
-
) : l.value.line.cutNullValues ?
|
|
746
|
-
curveAreas: o.useArea ?
|
|
745
|
+
) : l.value.line.cutNullValues ? Ga(ne, gl) : Da(ne.filter((I) => I.value !== null), gl) : "",
|
|
746
|
+
curveAreas: o.useArea ? Ut(
|
|
747
747
|
o.autoScaling ? l.value.line.cutNullValues ? ce : ce.filter((I) => I.value !== null) : l.value.line.cutNullValues ? ne : ne.filter((I) => I.value !== null),
|
|
748
748
|
gl,
|
|
749
749
|
l.value.line.cutNullValues
|
|
@@ -877,10 +877,10 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
877
877
|
lines: _e.value,
|
|
878
878
|
plots: Le.value,
|
|
879
879
|
config: l.value
|
|
880
|
-
})),
|
|
880
|
+
})), Tt = $(() => {
|
|
881
881
|
let a = "", c = vl.value.map((t) => t.value).filter((t) => zl(t) && t !== null).reduce((t, r) => Math.abs(t) + Math.abs(r), 0);
|
|
882
882
|
const e = le.value[k.value], s = l.value.chart.tooltip.customFormat;
|
|
883
|
-
return
|
|
883
|
+
return Zt(s) && Jt(() => s({
|
|
884
884
|
absoluteIndex: k.value + S.value.start,
|
|
885
885
|
seriesIndex: k.value,
|
|
886
886
|
datapoint: vl.value,
|
|
@@ -906,7 +906,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
906
906
|
r = `<svg viewBox="0 0 40 40" height="14" width="14">${ta.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="${ta.pattern ? `url(#pattern_${U.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
|
|
907
907
|
break;
|
|
908
908
|
case "line":
|
|
909
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${
|
|
909
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${ze({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${qa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
|
|
910
910
|
break;
|
|
911
911
|
case "plot":
|
|
912
912
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -914,7 +914,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
914
914
|
break;
|
|
915
915
|
}
|
|
916
916
|
if (t.shape === "star") {
|
|
917
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${
|
|
917
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${qa({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
918
918
|
break;
|
|
919
919
|
}
|
|
920
920
|
if (t.shape === "triangle") {
|
|
@@ -955,8 +955,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
955
955
|
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(S.value.start, S.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(S.value.start, S.value.end)[k.value]}</div>`);
|
|
956
956
|
}
|
|
957
957
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
|
|
958
|
-
})
|
|
959
|
-
$(() => {
|
|
958
|
+
}), Ca = $(() => {
|
|
960
959
|
if (Ie.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
961
960
|
const a = pe.value.map((e) => ({
|
|
962
961
|
label: e.name,
|
|
@@ -969,13 +968,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
969
968
|
t.push(fe(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
|
|
970
969
|
}), c.push(t);
|
|
971
970
|
}), { head: a, body: c };
|
|
972
|
-
})
|
|
973
|
-
const Ml = $(() => {
|
|
971
|
+
}), Ml = $(() => {
|
|
974
972
|
const a = l.value.table.showSum;
|
|
975
973
|
let c = [""].concat(pe.value.map((r) => r.name));
|
|
976
974
|
a && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
977
975
|
let e = [];
|
|
978
|
-
for (let r = 0; r <
|
|
976
|
+
for (let r = 0; r < b.value; r += 1) {
|
|
979
977
|
const o = pe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
|
|
980
978
|
e.push(
|
|
981
979
|
[
|
|
@@ -1009,26 +1007,26 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1009
1007
|
}, t = [l.value.table.columnNames.period].concat(pe.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
|
|
1010
1008
|
return { head: c, body: e, config: s, colNames: t };
|
|
1011
1009
|
});
|
|
1012
|
-
function
|
|
1013
|
-
const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...
|
|
1014
|
-
a ? a(r) :
|
|
1010
|
+
function Ia(a = null) {
|
|
1011
|
+
const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...Ca.value.head.map((o) => o.label)], s = Ca.value.body, t = c.concat([e]).concat(s), r = lo(t);
|
|
1012
|
+
a ? a(r) : ao({ csvContent: r, title: l.value.chart.title.text || "vue-ui-xy" });
|
|
1015
1013
|
}
|
|
1016
|
-
function
|
|
1014
|
+
function Ta(a, c = null) {
|
|
1017
1015
|
sa.value = a, a ? k.value = c : k.value = null;
|
|
1018
1016
|
}
|
|
1019
|
-
function
|
|
1017
|
+
function Oa() {
|
|
1020
1018
|
f.value.showTable = !f.value.showTable;
|
|
1021
1019
|
}
|
|
1022
|
-
function
|
|
1020
|
+
function Na() {
|
|
1023
1021
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1024
1022
|
}
|
|
1025
|
-
function
|
|
1023
|
+
function Va() {
|
|
1026
1024
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1027
1025
|
}
|
|
1028
|
-
function
|
|
1026
|
+
function Pa(a) {
|
|
1029
1027
|
al.value = a, ua.value += 1;
|
|
1030
1028
|
}
|
|
1031
|
-
function
|
|
1029
|
+
function Ha() {
|
|
1032
1030
|
if (!l.value.responsiveProportionalSizing) {
|
|
1033
1031
|
x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius;
|
|
1034
1032
|
return;
|
|
@@ -1072,12 +1070,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1072
1070
|
});
|
|
1073
1071
|
}
|
|
1074
1072
|
const hl = $(() => !!l.value.debug);
|
|
1075
|
-
function
|
|
1076
|
-
|
|
1073
|
+
function Ra() {
|
|
1074
|
+
Ua(m.dataset) ? (la({
|
|
1077
1075
|
componentName: "VueUiXy",
|
|
1078
1076
|
type: "dataset",
|
|
1079
1077
|
debug: hl.value
|
|
1080
|
-
}), wl.value = !0) :
|
|
1078
|
+
}), wl.value = !0) : m.dataset.forEach((c, e) => {
|
|
1081
1079
|
[null, void 0].includes(c.name) && (la({
|
|
1082
1080
|
componentName: "VueUiXy",
|
|
1083
1081
|
type: "datasetSerieAttribute",
|
|
@@ -1085,13 +1083,13 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1085
1083
|
index: e,
|
|
1086
1084
|
debug: hl.value
|
|
1087
1085
|
}), wl.value = !0);
|
|
1088
|
-
}), hl.value &&
|
|
1086
|
+
}), hl.value && m.dataset.forEach((c) => {
|
|
1089
1087
|
c.series.forEach((e, s) => {
|
|
1090
1088
|
zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1091
1089
|
-----> The serie '${c.name}' contains the value '${e}' at index ${s}.
|
|
1092
1090
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1093
1091
|
});
|
|
1094
|
-
}),
|
|
1092
|
+
}), Ua(m.dataset) || (wl.value = l.value.loading), na.value = l.value.chart.userOptions.showOnChartHover, Fl.value = l.value.chart.userOptions.keepStateOnChartLeave, kl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
|
|
1095
1093
|
dataLabels: {
|
|
1096
1094
|
show: !0
|
|
1097
1095
|
},
|
|
@@ -1114,44 +1112,44 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1114
1112
|
let C = 0;
|
|
1115
1113
|
ul.value && (C = ul.value.getBoundingClientRect().height);
|
|
1116
1114
|
let Y = 0;
|
|
1117
|
-
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, yl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`,
|
|
1115
|
+
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, yl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
|
|
1118
1116
|
const _ = new ResizeObserver((N) => {
|
|
1119
1117
|
for (const A of N)
|
|
1120
1118
|
l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0, Se.value && Se.value.$el ? F = Se.value.$el.getBoundingClientRect().height : F = 0, el.value ? L = el.value.getBoundingClientRect().height : L = 0, ul.value ? C = ul.value.getBoundingClientRect().height : C = 0, rl.value ? Y = rl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
|
|
1121
|
-
ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, yl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`,
|
|
1119
|
+
ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, yl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Ha();
|
|
1122
1120
|
});
|
|
1123
1121
|
});
|
|
1124
1122
|
We.value = _, Rl.value = e, _.observe(e);
|
|
1125
1123
|
} else
|
|
1126
1124
|
ve.value = l.value.chart.height, ae.value = l.value.chart.width, x.value.dataLabels = l.value.chart.grid.labels.fontSize, x.value.yAxis = l.value.chart.grid.labels.axis.fontSize, x.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius, yl.value = `0 0 ${ae.value} ${ve.value}`;
|
|
1127
1125
|
}
|
|
1128
|
-
return
|
|
1129
|
-
|
|
1130
|
-
|
|
1126
|
+
return Ba(() => {
|
|
1127
|
+
Ra(), Kl(), document.addEventListener("mousemove", (a) => {
|
|
1128
|
+
rt.value = {
|
|
1131
1129
|
x: a.clientX,
|
|
1132
1130
|
y: a.clientY
|
|
1133
1131
|
};
|
|
1134
1132
|
}), document.addEventListener("scroll", xa);
|
|
1135
|
-
}),
|
|
1133
|
+
}), Ya(() => {
|
|
1136
1134
|
document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
|
|
1137
|
-
}),
|
|
1135
|
+
}), oo({
|
|
1138
1136
|
timeLabelsEls: ll,
|
|
1139
1137
|
timeLabels: le,
|
|
1140
1138
|
slicer: S,
|
|
1141
1139
|
configRef: l,
|
|
1142
1140
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1143
1141
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
|
|
1144
|
-
isAutoSize:
|
|
1145
|
-
}), Ql(() =>
|
|
1146
|
-
Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...
|
|
1142
|
+
isAutoSize: ct
|
|
1143
|
+
}), Ql(() => m.dataset, (a) => {
|
|
1144
|
+
Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...me.value.map((c) => Ye({
|
|
1147
1145
|
data: c.series,
|
|
1148
1146
|
threshold: l.value.downsample.threshold
|
|
1149
1147
|
}).length)), S.value = {
|
|
1150
1148
|
start: 0,
|
|
1151
1149
|
end: Ve.value
|
|
1152
1150
|
}, Bl.value += 1, Yl.value += 1;
|
|
1153
|
-
}, { deep: !0 }), Ql(() =>
|
|
1154
|
-
Xl.value || (l.value = El()),
|
|
1151
|
+
}, { deep: !0 }), Ql(() => m.config, (a) => {
|
|
1152
|
+
Xl.value || (l.value = El()), Ra(), ia.value += 1, ra.value += 1, f.value = {
|
|
1155
1153
|
dataLabels: {
|
|
1156
1154
|
show: !0
|
|
1157
1155
|
},
|
|
@@ -1170,36 +1168,36 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1170
1168
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1171
1169
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1172
1170
|
};
|
|
1173
|
-
}, { immediate: !0 }),
|
|
1174
|
-
getData:
|
|
1175
|
-
getImage:
|
|
1171
|
+
}, { immediate: !0 }), Za({
|
|
1172
|
+
getData: _t,
|
|
1173
|
+
getImage: wt,
|
|
1176
1174
|
generatePdf: va,
|
|
1177
1175
|
generateImage: da,
|
|
1178
|
-
generateCsv:
|
|
1176
|
+
generateCsv: Ia,
|
|
1179
1177
|
toggleStack: ya,
|
|
1180
|
-
toggleTable:
|
|
1181
|
-
toggleLabels:
|
|
1182
|
-
toggleTooltip:
|
|
1178
|
+
toggleTable: Oa,
|
|
1179
|
+
toggleLabels: Na,
|
|
1180
|
+
toggleTooltip: Va,
|
|
1183
1181
|
toggleAnnotator: Zl,
|
|
1184
|
-
toggleFullscreen:
|
|
1182
|
+
toggleFullscreen: Pa
|
|
1185
1183
|
}), (a, c) => (u(), i("div", {
|
|
1186
1184
|
id: `vue-ui-xy_${U.value}`,
|
|
1187
1185
|
class: Ue(`vue-ui-xy ${al.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1188
1186
|
ref_key: "chart",
|
|
1189
1187
|
ref: je,
|
|
1190
1188
|
style: z(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1191
|
-
onMouseenter: c[7] || (c[7] = () =>
|
|
1192
|
-
onMouseleave: c[8] || (c[8] = () =>
|
|
1189
|
+
onMouseenter: c[7] || (c[7] = () => ba(!0)),
|
|
1190
|
+
onMouseleave: c[8] || (c[8] = () => ba(!1))
|
|
1193
1191
|
}, [
|
|
1194
|
-
l.value.chart.userOptions.buttons.annotator &&
|
|
1192
|
+
l.value.chart.userOptions.buttons.annotator && be.value ? (u(), Me(v(ot), {
|
|
1195
1193
|
key: 0,
|
|
1196
|
-
svgRef:
|
|
1194
|
+
svgRef: be.value,
|
|
1197
1195
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1198
1196
|
color: l.value.chart.color,
|
|
1199
1197
|
active: pl.value,
|
|
1200
1198
|
onClose: Zl
|
|
1201
1199
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1202
|
-
|
|
1200
|
+
$t.value ? (u(), i("div", {
|
|
1203
1201
|
key: 1,
|
|
1204
1202
|
ref_key: "noTitle",
|
|
1205
1203
|
ref: rl,
|
|
@@ -1213,7 +1211,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1213
1211
|
class: "vue-ui-xy-title",
|
|
1214
1212
|
style: z(`font-family:${l.value.chart.fontFamily}`)
|
|
1215
1213
|
}, [
|
|
1216
|
-
(u(), Me(
|
|
1214
|
+
(u(), Me(uo, {
|
|
1217
1215
|
key: `title_${ia.value}`,
|
|
1218
1216
|
config: {
|
|
1219
1217
|
title: {
|
|
@@ -1227,7 +1225,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1227
1225
|
}
|
|
1228
1226
|
}, null, 8, ["config"]))
|
|
1229
1227
|
], 4)) : d("", !0),
|
|
1230
|
-
l.value.chart.userOptions.show && (Fl.value || kl.value) ? (u(), Me(v(
|
|
1228
|
+
l.value.chart.userOptions.show && (Fl.value || kl.value) ? (u(), Me(v(ja), {
|
|
1231
1229
|
ref: "defails",
|
|
1232
1230
|
key: `user_options_${ua.value}`,
|
|
1233
1231
|
backgroundColor: l.value.chart.backgroundColor,
|
|
@@ -1253,19 +1251,19 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1253
1251
|
isAnnotation: pl.value,
|
|
1254
1252
|
callbacks: l.value.chart.userOptions.callbacks,
|
|
1255
1253
|
printScale: l.value.chart.userOptions.print.scale,
|
|
1256
|
-
onToggleFullscreen:
|
|
1254
|
+
onToggleFullscreen: Pa,
|
|
1257
1255
|
onGeneratePdf: v(va),
|
|
1258
|
-
onGenerateCsv:
|
|
1256
|
+
onGenerateCsv: Ia,
|
|
1259
1257
|
onGenerateImage: v(da),
|
|
1260
|
-
onToggleTable:
|
|
1261
|
-
onToggleLabels:
|
|
1258
|
+
onToggleTable: Oa,
|
|
1259
|
+
onToggleLabels: Na,
|
|
1262
1260
|
onToggleStack: ya,
|
|
1263
|
-
onToggleTooltip:
|
|
1261
|
+
onToggleTooltip: Va,
|
|
1264
1262
|
onToggleAnnotator: Zl,
|
|
1265
1263
|
style: z({
|
|
1266
1264
|
visibility: Fl.value ? kl.value ? "visible" : "hidden" : "visible"
|
|
1267
1265
|
})
|
|
1268
|
-
},
|
|
1266
|
+
}, Rt({ _: 2 }, [
|
|
1269
1267
|
a.$slots.menuIcon ? {
|
|
1270
1268
|
name: "menuIcon",
|
|
1271
1269
|
fn: ue(({ isOpen: e, color: s }) => [
|
|
@@ -1339,7 +1337,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1339
1337
|
]), 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),
|
|
1340
1338
|
(u(), i("svg", {
|
|
1341
1339
|
ref_key: "svgRef",
|
|
1342
|
-
ref:
|
|
1340
|
+
ref: be,
|
|
1343
1341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1344
1342
|
class: Ue([{ "vue-data-ui-fullscreen--on": al.value, "vue-data-ui-fulscreen--off": !al.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1345
1343
|
width: "100%",
|
|
@@ -1349,30 +1347,30 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1349
1347
|
color: l.value.chart.color,
|
|
1350
1348
|
fontFamily: l.value.chart.fontFamily
|
|
1351
1349
|
}),
|
|
1352
|
-
"aria-label":
|
|
1350
|
+
"aria-label": St.value,
|
|
1353
1351
|
role: "img",
|
|
1354
1352
|
"aria-live": "polite",
|
|
1355
1353
|
preserveAspectRatio: "xMidYMid"
|
|
1356
1354
|
}, [
|
|
1357
1355
|
g("g", {
|
|
1358
1356
|
ref_key: "G",
|
|
1359
|
-
ref:
|
|
1357
|
+
ref: ut,
|
|
1360
1358
|
class: "vue-data-ui-g"
|
|
1361
1359
|
}, [
|
|
1362
|
-
xl(v(
|
|
1360
|
+
xl(v(tt)),
|
|
1363
1361
|
a.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
1364
1362
|
key: 0,
|
|
1365
1363
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
1366
1364
|
y: n.value.top,
|
|
1367
|
-
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
1365
|
+
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value),
|
|
1368
1366
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1369
1367
|
style: {
|
|
1370
1368
|
pointerEvents: "none"
|
|
1371
1369
|
}
|
|
1372
1370
|
}, [
|
|
1373
1371
|
q(a.$slots, "chart-background", {}, void 0, !0)
|
|
1374
|
-
], 8,
|
|
1375
|
-
|
|
1372
|
+
], 8, xo)) : d("", !0),
|
|
1373
|
+
b.value > 0 ? (u(), i("g", bo, [
|
|
1376
1374
|
g("g", mo, [
|
|
1377
1375
|
l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
|
|
1378
1376
|
key: 0,
|
|
@@ -1384,7 +1382,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1384
1382
|
y2: v(R)(n.value.bottom),
|
|
1385
1383
|
"stroke-linecap": "round",
|
|
1386
1384
|
style: { animation: "none !important" }
|
|
1387
|
-
}, null, 8,
|
|
1385
|
+
}, null, 8, yo)) : d("", !0),
|
|
1388
1386
|
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, y(dl.value, (e) => (u(), i("g", null, [
|
|
1389
1387
|
e.id === M.value && e.yLabels.length ? (u(!0), i(h, { key: 0 }, y(e.yLabels, (s) => (u(), i("line", {
|
|
1390
1388
|
x1: n.value.left + G.value,
|
|
@@ -1395,7 +1393,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1395
1393
|
"stroke-width": 0.5,
|
|
1396
1394
|
"stroke-linecap": "round",
|
|
1397
1395
|
style: { animation: "none !important" }
|
|
1398
|
-
}, null, 8,
|
|
1396
|
+
}, null, 8, wo))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 }, y(e.yLabels, (s) => (u(), i("line", {
|
|
1399
1397
|
x1: n.value.left + G.value,
|
|
1400
1398
|
x2: n.value.right - G.value,
|
|
1401
1399
|
y1: v(R)(s.y),
|
|
@@ -1404,7 +1402,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1404
1402
|
"stroke-width": 0.5,
|
|
1405
1403
|
"stroke-linecap": "round",
|
|
1406
1404
|
style: { animation: "none !important" }
|
|
1407
|
-
}, null, 8,
|
|
1405
|
+
}, null, 8, So))), 256)) : d("", !0)
|
|
1408
1406
|
]))), 256)) : d("", !0) : (u(), i(h, { key: 1 }, [
|
|
1409
1407
|
l.value.chart.grid.labels.yAxis.showBaseline ? (u(), i("line", {
|
|
1410
1408
|
key: 0,
|
|
@@ -1416,8 +1414,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1416
1414
|
y2: v(R)(n.value.bottom),
|
|
1417
1415
|
"stroke-linecap": "round",
|
|
1418
1416
|
style: { animation: "none !important" }
|
|
1419
|
-
}, null, 8,
|
|
1420
|
-
l.value.chart.grid.showHorizontalLines ? (u(), i("g",
|
|
1417
|
+
}, null, 8, po)) : d("", !0),
|
|
1418
|
+
l.value.chart.grid.showHorizontalLines ? (u(), i("g", ko, [
|
|
1421
1419
|
(u(!0), i(h, null, y(Aa.value, (e) => (u(), i("line", {
|
|
1422
1420
|
x1: n.value.left + G.value,
|
|
1423
1421
|
x2: n.value.right,
|
|
@@ -1427,26 +1425,26 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1427
1425
|
"stroke-width": 0.5,
|
|
1428
1426
|
"stroke-linecap": "round",
|
|
1429
1427
|
style: { animation: "none !important" }
|
|
1430
|
-
}, null, 8,
|
|
1428
|
+
}, null, 8, _o))), 256))
|
|
1431
1429
|
])) : d("", !0)
|
|
1432
1430
|
], 64)),
|
|
1433
|
-
l.value.chart.grid.showVerticalLines ? (u(), i("g",
|
|
1431
|
+
l.value.chart.grid.showVerticalLines ? (u(), i("g", $o, [
|
|
1434
1432
|
g("path", {
|
|
1435
|
-
d:
|
|
1433
|
+
d: ft.value,
|
|
1436
1434
|
"stroke-width": 0.5,
|
|
1437
1435
|
stroke: l.value.chart.grid.stroke,
|
|
1438
1436
|
"stroke-linecap": "round",
|
|
1439
1437
|
style: { animation: "none !important" }
|
|
1440
|
-
}, null, 8,
|
|
1438
|
+
}, null, 8, Lo)
|
|
1441
1439
|
])) : d("", !0),
|
|
1442
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g",
|
|
1440
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", Ao, [
|
|
1443
1441
|
g("path", {
|
|
1444
|
-
d:
|
|
1442
|
+
d: gt.value,
|
|
1445
1443
|
stroke: l.value.chart.grid.stroke,
|
|
1446
1444
|
"stroke-width": 1,
|
|
1447
1445
|
"stroke-linecap": "round",
|
|
1448
1446
|
style: { animation: "none !important" }
|
|
1449
|
-
}, null, 8,
|
|
1447
|
+
}, null, 8, Mo)
|
|
1450
1448
|
])) : d("", !0)
|
|
1451
1449
|
]),
|
|
1452
1450
|
(u(!0), i(h, null, y(Pe.value, (e, s) => (u(), i("defs", {
|
|
@@ -1460,16 +1458,16 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1460
1458
|
g("stop", {
|
|
1461
1459
|
offset: "0%",
|
|
1462
1460
|
"stop-color": e.color
|
|
1463
|
-
}, null, 8,
|
|
1461
|
+
}, null, 8, Co),
|
|
1464
1462
|
g("stop", {
|
|
1465
1463
|
offset: "62%",
|
|
1466
1464
|
"stop-color": `${v(Qe)(e.color, 0.02)}`
|
|
1467
|
-
}, null, 8,
|
|
1465
|
+
}, null, 8, Io),
|
|
1468
1466
|
g("stop", {
|
|
1469
1467
|
offset: "100%",
|
|
1470
1468
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1471
|
-
}, null, 8,
|
|
1472
|
-
], 8,
|
|
1469
|
+
}, null, 8, To)
|
|
1470
|
+
], 8, zo),
|
|
1473
1471
|
g("linearGradient", {
|
|
1474
1472
|
id: `rectGradient_neg_${s}_${U.value}`,
|
|
1475
1473
|
x2: "0%",
|
|
@@ -1478,16 +1476,16 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1478
1476
|
g("stop", {
|
|
1479
1477
|
offset: "0%",
|
|
1480
1478
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1481
|
-
}, null, 8,
|
|
1479
|
+
}, null, 8, No),
|
|
1482
1480
|
g("stop", {
|
|
1483
1481
|
offset: "38%",
|
|
1484
1482
|
"stop-color": `${v(Qe)(e.color, 0.02)}`
|
|
1485
|
-
}, null, 8,
|
|
1483
|
+
}, null, 8, Vo),
|
|
1486
1484
|
g("stop", {
|
|
1487
1485
|
offset: "100%",
|
|
1488
1486
|
"stop-color": e.color
|
|
1489
|
-
}, null, 8,
|
|
1490
|
-
], 8,
|
|
1487
|
+
}, null, 8, Po)
|
|
1488
|
+
], 8, Oo)
|
|
1491
1489
|
]))), 128)),
|
|
1492
1490
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("defs", {
|
|
1493
1491
|
key: `def_plot_${s}`
|
|
@@ -1503,12 +1501,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1503
1501
|
g("stop", {
|
|
1504
1502
|
offset: "0%",
|
|
1505
1503
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1506
|
-
}, null, 8,
|
|
1504
|
+
}, null, 8, Ro),
|
|
1507
1505
|
g("stop", {
|
|
1508
1506
|
offset: "100%",
|
|
1509
1507
|
"stop-color": e.color
|
|
1510
|
-
}, null, 8,
|
|
1511
|
-
], 8,
|
|
1508
|
+
}, null, 8, Bo)
|
|
1509
|
+
], 8, Ho)
|
|
1512
1510
|
]))), 128)),
|
|
1513
1511
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("defs", {
|
|
1514
1512
|
key: `def_line_${s}`
|
|
@@ -1524,12 +1522,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1524
1522
|
g("stop", {
|
|
1525
1523
|
offset: "0%",
|
|
1526
1524
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1527
|
-
}, null, 8,
|
|
1525
|
+
}, null, 8, Fo),
|
|
1528
1526
|
g("stop", {
|
|
1529
1527
|
offset: "100%",
|
|
1530
1528
|
"stop-color": e.color
|
|
1531
|
-
}, null, 8,
|
|
1532
|
-
], 8,
|
|
1529
|
+
}, null, 8, Eo)
|
|
1530
|
+
], 8, Yo),
|
|
1533
1531
|
g("linearGradient", {
|
|
1534
1532
|
id: `areaGradient_${s}_${U.value}`,
|
|
1535
1533
|
x1: "0%",
|
|
@@ -1540,14 +1538,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1540
1538
|
g("stop", {
|
|
1541
1539
|
offset: "0%",
|
|
1542
1540
|
"stop-color": `${v(we)(v(Qe)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1543
|
-
}, null, 8,
|
|
1541
|
+
}, null, 8, Xo),
|
|
1544
1542
|
g("stop", {
|
|
1545
1543
|
offset: "100%",
|
|
1546
1544
|
"stop-color": `${v(we)(e.color, l.value.line.area.opacity)}`
|
|
1547
|
-
}, null, 8,
|
|
1548
|
-
], 8,
|
|
1545
|
+
}, null, 8, Go)
|
|
1546
|
+
], 8, Wo)
|
|
1549
1547
|
]))), 128)),
|
|
1550
|
-
(u(!0), i(h, null, y(
|
|
1548
|
+
(u(!0), i(h, null, y(Lt.value, (e) => (u(), i("g", null, [
|
|
1551
1549
|
e.show ? (u(), i(h, { key: 0 }, [
|
|
1552
1550
|
(u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
|
|
1553
1551
|
g("rect", {
|
|
@@ -1555,43 +1553,43 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1555
1553
|
transition: "none",
|
|
1556
1554
|
opacity: e.from + t >= S.value.start && e.from + t <= S.value.end - 1 ? 1 : 0
|
|
1557
1555
|
}),
|
|
1558
|
-
x: n.value.left + n.value.width /
|
|
1556
|
+
x: n.value.left + n.value.width / b.value * (e.from + t - S.value.start),
|
|
1559
1557
|
y: n.value.top,
|
|
1560
1558
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1561
|
-
width: n.value.width /
|
|
1559
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1562
1560
|
fill: v(we)(e.color, e.opacity)
|
|
1563
|
-
}, null, 12,
|
|
1561
|
+
}, null, 12, Do)
|
|
1564
1562
|
]))), 256)),
|
|
1565
1563
|
(u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
|
|
1566
1564
|
e.caption.text && t === 0 ? (u(), i("foreignObject", {
|
|
1567
1565
|
key: 0,
|
|
1568
|
-
x: n.value.left + n.value.width /
|
|
1566
|
+
x: n.value.left + n.value.width / b.value * (e.from + t - S.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / b.value * e.span / 2),
|
|
1569
1567
|
y: n.value.top + e.caption.offsetY,
|
|
1570
1568
|
style: z({
|
|
1571
1569
|
overflow: "visible",
|
|
1572
1570
|
opacity: e.to >= S.value.start && e.from < S.value.end ? 1 : 0
|
|
1573
1571
|
}),
|
|
1574
1572
|
height: "1",
|
|
1575
|
-
width: e.caption.width === "auto" ? n.value.width /
|
|
1573
|
+
width: e.caption.width === "auto" ? n.value.width / b.value * e.span : e.caption.width
|
|
1576
1574
|
}, [
|
|
1577
1575
|
g("div", {
|
|
1578
1576
|
style: z(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
1579
1577
|
}, ee(e.caption.text), 5)
|
|
1580
|
-
], 12,
|
|
1578
|
+
], 12, qo)) : d("", !0)
|
|
1581
1579
|
]))), 256))
|
|
1582
1580
|
], 64)) : d("", !0)
|
|
1583
1581
|
]))), 256)),
|
|
1584
|
-
Ul.value ? (u(), i("g",
|
|
1585
|
-
(u(!0), i(h, null, y(
|
|
1582
|
+
Ul.value ? (u(), i("g", Uo, [
|
|
1583
|
+
(u(!0), i(h, null, y(b.value, (e, s) => (u(), i("g", {
|
|
1586
1584
|
key: `tooltip_trap_highlighter_${s}`
|
|
1587
1585
|
}, [
|
|
1588
1586
|
g("rect", {
|
|
1589
|
-
x: n.value.left + n.value.width /
|
|
1587
|
+
x: n.value.left + n.value.width / b.value * s,
|
|
1590
1588
|
y: n.value.top,
|
|
1591
1589
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1592
|
-
width: n.value.width /
|
|
1590
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1593
1591
|
fill: [O.value, k.value, Xe.value].includes(s) ? v(we)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
|
|
1594
|
-
}, null, 8,
|
|
1592
|
+
}, null, 8, Zo)
|
|
1595
1593
|
]))), 128))
|
|
1596
1594
|
])) : d("", !0),
|
|
1597
1595
|
Pe.value.length ? (u(!0), i(h, { key: 1 }, y(Pe.value, (e, s) => (u(), i("g", {
|
|
@@ -1613,7 +1611,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1613
1611
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1614
1612
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1615
1613
|
style: z(`${v(Xl) ? "transition:none !important" : ""}`)
|
|
1616
|
-
}, null, 12,
|
|
1614
|
+
}, null, 12, Jo)) : d("", !0),
|
|
1617
1615
|
fe(t.value) && a.$slots.pattern ? (u(), i("rect", {
|
|
1618
1616
|
key: 1,
|
|
1619
1617
|
x: Al(t),
|
|
@@ -1624,7 +1622,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1624
1622
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
|
|
1625
1623
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1626
1624
|
"stroke-width": l.value.bar.border.strokeWidth
|
|
1627
|
-
}, null, 8,
|
|
1625
|
+
}, null, 8, Ko)) : d("", !0),
|
|
1628
1626
|
t.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
|
|
1629
1627
|
key: 2,
|
|
1630
1628
|
style: { overflow: "visible" },
|
|
@@ -1636,9 +1634,9 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1636
1634
|
q(a.$slots, "plot-comment", {
|
|
1637
1635
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1638
1636
|
}, void 0, !0)
|
|
1639
|
-
], 8,
|
|
1637
|
+
], 8, Qo)) : d("", !0)
|
|
1640
1638
|
]))), 128)),
|
|
1641
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g",
|
|
1639
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", jo, [
|
|
1642
1640
|
g("defs", null, [
|
|
1643
1641
|
g("marker", {
|
|
1644
1642
|
id: `bar_arrow_${s}`,
|
|
@@ -1651,8 +1649,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1651
1649
|
g("polygon", {
|
|
1652
1650
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1653
1651
|
fill: e.color
|
|
1654
|
-
}, null, 8,
|
|
1655
|
-
], 8,
|
|
1652
|
+
}, null, 8, ls)
|
|
1653
|
+
], 8, es)
|
|
1656
1654
|
]),
|
|
1657
1655
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1658
1656
|
key: 0,
|
|
@@ -1664,7 +1662,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1664
1662
|
stroke: e.color,
|
|
1665
1663
|
"stroke-dasharray": 2,
|
|
1666
1664
|
"marker-end": `url(#bar_arrow_${s})`
|
|
1667
|
-
}, null, 8,
|
|
1665
|
+
}, null, 8, as)) : d("", !0),
|
|
1668
1666
|
e.plots.length > 1 ? (u(), i("text", {
|
|
1669
1667
|
key: 1,
|
|
1670
1668
|
"text-anchor": "middle",
|
|
@@ -1676,7 +1674,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1676
1674
|
v: v(X)(e.plots).trend * 100,
|
|
1677
1675
|
s: "%",
|
|
1678
1676
|
r: 2
|
|
1679
|
-
})), 9,
|
|
1677
|
+
})), 9, ts)) : d("", !0)
|
|
1680
1678
|
])) : d("", !0)
|
|
1681
1679
|
], 6))), 128)) : d("", !0),
|
|
1682
1680
|
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), i("line", {
|
|
@@ -1689,11 +1687,11 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1689
1687
|
y2: v(R)(ie.value),
|
|
1690
1688
|
"stroke-linecap": "round",
|
|
1691
1689
|
style: { animation: "none !important" }
|
|
1692
|
-
}, null, 8,
|
|
1693
|
-
l.value.chart.highlighter.useLine && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g",
|
|
1690
|
+
}, null, 8, os)) : d("", !0),
|
|
1691
|
+
l.value.chart.highlighter.useLine && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ss, [
|
|
1694
1692
|
g("line", {
|
|
1695
|
-
x1: n.value.left + n.value.width /
|
|
1696
|
-
x2: n.value.left + n.value.width /
|
|
1693
|
+
x1: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
1694
|
+
x2: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
1697
1695
|
y1: v(R)(n.value.top),
|
|
1698
1696
|
y2: v(R)(n.value.bottom),
|
|
1699
1697
|
stroke: l.value.chart.highlighter.color,
|
|
@@ -1701,14 +1699,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1701
1699
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
1702
1700
|
"stroke-linecap": "round",
|
|
1703
1701
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1704
|
-
}, null, 8,
|
|
1702
|
+
}, null, 8, us)
|
|
1705
1703
|
])) : d("", !0),
|
|
1706
1704
|
l.value.chart.grid.frame.show ? (u(), i("rect", {
|
|
1707
1705
|
key: 4,
|
|
1708
1706
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
1709
1707
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
1710
1708
|
y: n.value.top,
|
|
1711
|
-
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
1709
|
+
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / b.value),
|
|
1712
1710
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1713
1711
|
fill: "transparent",
|
|
1714
1712
|
stroke: l.value.chart.grid.frame.stroke,
|
|
@@ -1716,7 +1714,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1716
1714
|
"stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
|
|
1717
1715
|
"stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
|
|
1718
1716
|
"stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
|
|
1719
|
-
}, null, 8,
|
|
1717
|
+
}, null, 8, rs)) : d("", !0),
|
|
1720
1718
|
l.value.chart.grid.labels.show ? (u(), i("g", {
|
|
1721
1719
|
key: 5,
|
|
1722
1720
|
ref_key: "scaleLabels",
|
|
@@ -1733,7 +1731,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1733
1731
|
"stroke-width": l.value.chart.grid.stroke,
|
|
1734
1732
|
"stroke-linecap": "round",
|
|
1735
1733
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1736
|
-
}, null, 12,
|
|
1734
|
+
}, null, 12, is)
|
|
1737
1735
|
]))), 256)),
|
|
1738
1736
|
(u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", {
|
|
1739
1737
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
@@ -1744,7 +1742,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1744
1742
|
"text-anchor": "middle",
|
|
1745
1743
|
transform: `translate(${e.x - x.value.dataLabels * 0.8 / 2 + G.value}, ${f.value.isStacked ? n.value.bottom - e.yOffset - e.individualHeight / 2 : n.value.top + n.value.height / 2}) rotate(-90)`
|
|
1746
1744
|
}, ee(e.name) + " " + ee(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
1747
|
-
${e.scaleLabel}` : ""), 9,
|
|
1745
|
+
${e.scaleLabel}` : ""), 9, ns),
|
|
1748
1746
|
(u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i(h, null, [
|
|
1749
1747
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
1750
1748
|
key: 0,
|
|
@@ -1756,7 +1754,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1756
1754
|
"stroke-width": 1,
|
|
1757
1755
|
"stroke-linecap": "round",
|
|
1758
1756
|
style: { animation: "none !important" }
|
|
1759
|
-
}, null, 8,
|
|
1757
|
+
}, null, 8, cs)) : d("", !0)
|
|
1760
1758
|
], 64))), 256)),
|
|
1761
1759
|
(u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i("text", {
|
|
1762
1760
|
x: e.x - 5 + G.value - n.value.individualOffsetX,
|
|
@@ -1774,7 +1772,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1774
1772
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
1775
1773
|
}),
|
|
1776
1774
|
{ datapoint: s.datapoint, seriesIndex: t }
|
|
1777
|
-
)), 9,
|
|
1775
|
+
)), 9, vs))), 256))
|
|
1778
1776
|
], 4))), 256))
|
|
1779
1777
|
], 64)) : (u(!0), i(h, { key: 1 }, y(Aa.value, (e, s) => (u(), i("g", {
|
|
1780
1778
|
key: `yLabel_${s}`
|
|
@@ -1789,7 +1787,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1789
1787
|
"stroke-width": "1",
|
|
1790
1788
|
"stroke-linecap": "round",
|
|
1791
1789
|
style: { animation: "none !important" }
|
|
1792
|
-
}, null, 8,
|
|
1790
|
+
}, null, 8, ds)) : d("", !0),
|
|
1793
1791
|
e.value >= ye.value.min && e.value <= ye.value.max ? (u(), i("text", {
|
|
1794
1792
|
key: 1,
|
|
1795
1793
|
x: n.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -1806,7 +1804,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1806
1804
|
s: e.suffix,
|
|
1807
1805
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
1808
1806
|
})
|
|
1809
|
-
) : ""), 9,
|
|
1807
|
+
) : ""), 9, hs)) : d("", !0)
|
|
1810
1808
|
]))), 128))
|
|
1811
1809
|
], 512)) : d("", !0),
|
|
1812
1810
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("g", {
|
|
@@ -1834,14 +1832,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1834
1832
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1835
1833
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1836
1834
|
}, [
|
|
1837
|
-
g("div",
|
|
1835
|
+
g("div", gs, [
|
|
1838
1836
|
q(a.$slots, "plot-comment", {
|
|
1839
1837
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1840
1838
|
}, void 0, !0)
|
|
1841
1839
|
])
|
|
1842
|
-
], 8,
|
|
1840
|
+
], 8, fs)) : d("", !0)
|
|
1843
1841
|
]))), 128)),
|
|
1844
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g",
|
|
1842
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", xs, [
|
|
1845
1843
|
g("defs", null, [
|
|
1846
1844
|
g("marker", {
|
|
1847
1845
|
id: `plot_arrow_${s}`,
|
|
@@ -1855,7 +1853,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1855
1853
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1856
1854
|
fill: e.color
|
|
1857
1855
|
}, null, 8, ms)
|
|
1858
|
-
], 8,
|
|
1856
|
+
], 8, bs)
|
|
1859
1857
|
]),
|
|
1860
1858
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1861
1859
|
key: 0,
|
|
@@ -1867,7 +1865,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1867
1865
|
stroke: e.color,
|
|
1868
1866
|
"stroke-dasharray": 2,
|
|
1869
1867
|
"marker-end": `url(#plot_arrow_${s})`
|
|
1870
|
-
}, null, 8,
|
|
1868
|
+
}, null, 8, ys)) : d("", !0),
|
|
1871
1869
|
e.plots.length > 1 ? (u(), i("text", {
|
|
1872
1870
|
key: 1,
|
|
1873
1871
|
"text-anchor": "middle",
|
|
@@ -1879,7 +1877,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1879
1877
|
v: v(X)(e.plots).trend * 100,
|
|
1880
1878
|
s: "%",
|
|
1881
1879
|
r: 2
|
|
1882
|
-
})), 9,
|
|
1880
|
+
})), 9, ps)) : d("", !0)
|
|
1883
1881
|
])) : d("", !0)
|
|
1884
1882
|
], 6))), 128)),
|
|
1885
1883
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("g", {
|
|
@@ -1894,7 +1892,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1894
1892
|
"stroke-width": l.value.line.strokeWidth + 1,
|
|
1895
1893
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
1896
1894
|
fill: "none"
|
|
1897
|
-
}, null, 8,
|
|
1895
|
+
}, null, 8, ks)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
|
|
1898
1896
|
key: 1,
|
|
1899
1897
|
d: `M${e.straight}`,
|
|
1900
1898
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -1903,9 +1901,9 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1903
1901
|
fill: "none",
|
|
1904
1902
|
"stroke-linecap": "round",
|
|
1905
1903
|
"stroke-linejoin": "round"
|
|
1906
|
-
}, null, 8,
|
|
1904
|
+
}, null, 8, _s)) : d("", !0)
|
|
1907
1905
|
], 6))), 128)),
|
|
1908
|
-
a.$slots.pattern ? (u(), i("defs",
|
|
1906
|
+
a.$slots.pattern ? (u(), i("defs", ws, [
|
|
1909
1907
|
(u(!0), i(h, null, y(Ie.value, (e, s) => q(a.$slots, "pattern", jl({
|
|
1910
1908
|
key: `serie_pattern_slot_${s}`
|
|
1911
1909
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${s}` }), void 0, !0)), 128))
|
|
@@ -1915,27 +1913,27 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1915
1913
|
class: Ue(`serie_line_${s}`),
|
|
1916
1914
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1917
1915
|
}, [
|
|
1918
|
-
e.useArea && e.plots.length > 1 ? (u(), i("g",
|
|
1916
|
+
e.useArea && e.plots.length > 1 ? (u(), i("g", Ss, [
|
|
1919
1917
|
e.smooth ? (u(!0), i(h, { key: 0 }, y(e.curveAreas, (t, r) => (u(), i(h, { key: r }, [
|
|
1920
1918
|
g("path", {
|
|
1921
1919
|
d: t,
|
|
1922
1920
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(we)(e.color, l.value.line.area.opacity)
|
|
1923
|
-
}, null, 8,
|
|
1921
|
+
}, null, 8, $s),
|
|
1924
1922
|
a.$slots.pattern ? (u(), i("path", {
|
|
1925
1923
|
key: 0,
|
|
1926
1924
|
d: t,
|
|
1927
1925
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
|
|
1928
|
-
}, null, 8,
|
|
1926
|
+
}, null, 8, Ls)) : d("", !0)
|
|
1929
1927
|
], 64))), 128)) : (u(!0), i(h, { key: 1 }, y(e.area.split(";"), (t, r) => (u(), i(h, { key: r }, [
|
|
1930
1928
|
g("path", {
|
|
1931
1929
|
d: `M${t}Z`,
|
|
1932
1930
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(we)(e.color, l.value.line.area.opacity)
|
|
1933
|
-
}, null, 8,
|
|
1931
|
+
}, null, 8, As),
|
|
1934
1932
|
a.$slots.pattern ? (u(), i("path", {
|
|
1935
1933
|
key: 0,
|
|
1936
1934
|
d: `M${t}Z`,
|
|
1937
1935
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
|
|
1938
|
-
}, null, 8,
|
|
1936
|
+
}, null, 8, Ms)) : d("", !0)
|
|
1939
1937
|
], 64))), 128))
|
|
1940
1938
|
])) : d("", !0),
|
|
1941
1939
|
e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
|
|
@@ -1946,7 +1944,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1946
1944
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
1947
1945
|
fill: "none",
|
|
1948
1946
|
"stroke-linecap": "round"
|
|
1949
|
-
}, null, 8,
|
|
1947
|
+
}, null, 8, zs)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
|
|
1950
1948
|
key: 2,
|
|
1951
1949
|
d: `M${e.straight}`,
|
|
1952
1950
|
stroke: e.color,
|
|
@@ -1955,7 +1953,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1955
1953
|
fill: "none",
|
|
1956
1954
|
"stroke-linecap": "round",
|
|
1957
1955
|
"stroke-linejoin": "round"
|
|
1958
|
-
}, null, 8,
|
|
1956
|
+
}, null, 8, Cs)) : d("", !0),
|
|
1959
1957
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
1960
1958
|
key: `circle_line_${s}_${r}`
|
|
1961
1959
|
}, [
|
|
@@ -1976,14 +1974,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1976
1974
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1977
1975
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1978
1976
|
}, [
|
|
1979
|
-
g("div",
|
|
1977
|
+
g("div", Ts, [
|
|
1980
1978
|
q(a.$slots, "plot-comment", {
|
|
1981
1979
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1982
1980
|
}, void 0, !0)
|
|
1983
1981
|
])
|
|
1984
|
-
], 8,
|
|
1982
|
+
], 8, Is)) : d("", !0)
|
|
1985
1983
|
], 64))), 128)),
|
|
1986
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g",
|
|
1984
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", Os, [
|
|
1987
1985
|
g("defs", null, [
|
|
1988
1986
|
g("marker", {
|
|
1989
1987
|
id: `line_arrow_${s}`,
|
|
@@ -1996,8 +1994,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
1996
1994
|
g("polygon", {
|
|
1997
1995
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1998
1996
|
fill: e.color
|
|
1999
|
-
}, null, 8,
|
|
2000
|
-
], 8,
|
|
1997
|
+
}, null, 8, Vs)
|
|
1998
|
+
], 8, Ns)
|
|
2001
1999
|
]),
|
|
2002
2000
|
e.plots.length > 1 ? (u(), i("line", {
|
|
2003
2001
|
key: 0,
|
|
@@ -2009,7 +2007,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2009
2007
|
stroke: e.color,
|
|
2010
2008
|
"stroke-dasharray": 2,
|
|
2011
2009
|
"marker-end": `url(#line_arrow_${s})`
|
|
2012
|
-
}, null, 8,
|
|
2010
|
+
}, null, 8, Ps)) : d("", !0),
|
|
2013
2011
|
e.plots.length > 1 ? (u(), i("text", {
|
|
2014
2012
|
key: 1,
|
|
2015
2013
|
"text-anchor": "middle",
|
|
@@ -2021,10 +2019,10 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2021
2019
|
v: v(X)(e.plots).trend * 100,
|
|
2022
2020
|
s: "%",
|
|
2023
2021
|
r: 2
|
|
2024
|
-
})), 9,
|
|
2022
|
+
})), 9, Hs)) : d("", !0)
|
|
2025
2023
|
])) : d("", !0)
|
|
2026
2024
|
], 6))), 128)),
|
|
2027
|
-
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g",
|
|
2025
|
+
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", Rs, [
|
|
2028
2026
|
(u(!0), i(h, null, y(Pe.value, (e, s) => (u(), i(h, {
|
|
2029
2027
|
key: `xLabel_bar_${s}`
|
|
2030
2028
|
}, [
|
|
@@ -2052,7 +2050,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2052
2050
|
datapoint: t,
|
|
2053
2051
|
serie: e
|
|
2054
2052
|
}
|
|
2055
|
-
) : ""), 13,
|
|
2053
|
+
) : ""), 13, Bs)) : d("", !0),
|
|
2056
2054
|
t && l.value.bar.serieName.show ? (u(), i("text", {
|
|
2057
2055
|
key: 1,
|
|
2058
2056
|
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x + ke() * 1.1,
|
|
@@ -2062,14 +2060,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2062
2060
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2063
2061
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2064
2062
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2065
|
-
}, ee(l.value.bar.serieName.useAbbreviation ? v(
|
|
2063
|
+
}, ee(l.value.bar.serieName.useAbbreviation ? v(Kt)({
|
|
2066
2064
|
source: e.name,
|
|
2067
2065
|
length: l.value.bar.serieName.abbreviationSize
|
|
2068
|
-
}) : e.name), 13,
|
|
2066
|
+
}) : e.name), 13, Ys)) : d("", !0)
|
|
2069
2067
|
], 64))), 128))
|
|
2070
2068
|
], 64))), 128))
|
|
2071
2069
|
])) : d("", !0),
|
|
2072
|
-
l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g",
|
|
2070
|
+
l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Fs, [
|
|
2073
2071
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
2074
2072
|
key: `xLabel_plot_${s}`
|
|
2075
2073
|
}, [
|
|
@@ -2097,10 +2095,10 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2097
2095
|
datapoint: t,
|
|
2098
2096
|
serie: e
|
|
2099
2097
|
}
|
|
2100
|
-
) : ""), 13,
|
|
2098
|
+
) : ""), 13, Es)) : d("", !0)
|
|
2101
2099
|
], 64))), 128))
|
|
2102
2100
|
], 64))), 128))
|
|
2103
|
-
])) : (u(), i("g",
|
|
2101
|
+
])) : (u(), i("g", Ws, [
|
|
2104
2102
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
2105
2103
|
key: `xLabel_plot_${s}`
|
|
2106
2104
|
}, [
|
|
@@ -2119,7 +2117,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2119
2117
|
"stroke-linecap": "round",
|
|
2120
2118
|
"stroke-dasharray": "2",
|
|
2121
2119
|
stroke: e.color
|
|
2122
|
-
}, null, 8,
|
|
2120
|
+
}, null, 8, Us)) : d("", !0)
|
|
2123
2121
|
], 64)) : (u(), i(h, { key: 0 }, [
|
|
2124
2122
|
t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
|
|
2125
2123
|
key: 0,
|
|
@@ -2141,8 +2139,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2141
2139
|
serieName: e.name
|
|
2142
2140
|
}
|
|
2143
2141
|
)
|
|
2144
|
-
}, null, 12,
|
|
2145
|
-
], 12,
|
|
2142
|
+
}, null, 12, Gs)
|
|
2143
|
+
], 12, Xs)) : d("", !0),
|
|
2146
2144
|
t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
|
|
2147
2145
|
key: 1,
|
|
2148
2146
|
x: t.x - e.name.length * (x.value.plotLabels / 2),
|
|
@@ -2163,13 +2161,13 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2163
2161
|
serieName: e.name
|
|
2164
2162
|
}
|
|
2165
2163
|
)
|
|
2166
|
-
}, null, 12,
|
|
2167
|
-
], 12,
|
|
2164
|
+
}, null, 12, qs)
|
|
2165
|
+
], 12, Ds)) : d("", !0)
|
|
2168
2166
|
], 64))
|
|
2169
2167
|
], 64))), 128))
|
|
2170
2168
|
], 64))), 128))
|
|
2171
2169
|
])),
|
|
2172
|
-
l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g",
|
|
2170
|
+
l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", Zs, [
|
|
2173
2171
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2174
2172
|
key: `xLabel_line_${s}`
|
|
2175
2173
|
}, [
|
|
@@ -2197,10 +2195,10 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2197
2195
|
datapoint: t,
|
|
2198
2196
|
serie: e
|
|
2199
2197
|
}
|
|
2200
|
-
) : ""), 13,
|
|
2198
|
+
) : ""), 13, Js)) : d("", !0)
|
|
2201
2199
|
], 64))), 128))
|
|
2202
2200
|
], 64))), 128))
|
|
2203
|
-
])) : (u(), i("g",
|
|
2201
|
+
])) : (u(), i("g", Ks, [
|
|
2204
2202
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2205
2203
|
key: `xLabel_line_${s}`
|
|
2206
2204
|
}, [
|
|
@@ -2219,7 +2217,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2219
2217
|
"stroke-linecap": "round",
|
|
2220
2218
|
"stroke-dasharray": "2",
|
|
2221
2219
|
stroke: e.color
|
|
2222
|
-
}, null, 8,
|
|
2220
|
+
}, null, 8, au)) : d("", !0)
|
|
2223
2221
|
], 64)) : (u(), i(h, { key: 0 }, [
|
|
2224
2222
|
t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
|
|
2225
2223
|
key: 0,
|
|
@@ -2241,8 +2239,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2241
2239
|
serieName: e.name
|
|
2242
2240
|
}
|
|
2243
2241
|
)
|
|
2244
|
-
}, null, 12,
|
|
2245
|
-
], 12,
|
|
2242
|
+
}, null, 12, js)
|
|
2243
|
+
], 12, Qs)) : d("", !0),
|
|
2246
2244
|
t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
|
|
2247
2245
|
key: 1,
|
|
2248
2246
|
x: t.x,
|
|
@@ -2263,8 +2261,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2263
2261
|
serieName: e.name
|
|
2264
2262
|
}
|
|
2265
2263
|
)
|
|
2266
|
-
}, null, 12,
|
|
2267
|
-
], 12,
|
|
2264
|
+
}, null, 12, lu)
|
|
2265
|
+
], 12, eu)) : d("", !0)
|
|
2268
2266
|
], 64))
|
|
2269
2267
|
], 64))), 128))
|
|
2270
2268
|
], 64))), 128))
|
|
@@ -2291,7 +2289,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2291
2289
|
maxWords: 2
|
|
2292
2290
|
}),
|
|
2293
2291
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2294
|
-
}, null, 12,
|
|
2292
|
+
}, null, 12, tu)) : d("", !0),
|
|
2295
2293
|
t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
|
|
2296
2294
|
key: 1,
|
|
2297
2295
|
x: t.x + x.value.plotLabels,
|
|
@@ -2308,7 +2306,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2308
2306
|
maxWords: 2
|
|
2309
2307
|
}),
|
|
2310
2308
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2311
|
-
}, null, 12,
|
|
2309
|
+
}, null, 12, ou)) : d("", !0)
|
|
2312
2310
|
], 64))), 128))
|
|
2313
2311
|
], 64))), 128)),
|
|
2314
2312
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
@@ -2333,7 +2331,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2333
2331
|
maxWords: 2
|
|
2334
2332
|
}),
|
|
2335
2333
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2336
|
-
}, null, 12,
|
|
2334
|
+
}, null, 12, su)) : d("", !0),
|
|
2337
2335
|
t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
|
|
2338
2336
|
key: 1,
|
|
2339
2337
|
x: t.x + x.value.plotLabels,
|
|
@@ -2350,7 +2348,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2350
2348
|
maxWords: 2
|
|
2351
2349
|
}),
|
|
2352
2350
|
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2353
|
-
}, null, 12,
|
|
2351
|
+
}, null, 12, uu)) : d("", !0)
|
|
2354
2352
|
], 64))), 128))
|
|
2355
2353
|
], 64))), 128)),
|
|
2356
2354
|
f.value.useIndividualScale && !f.value.isStacked ? (u(), i(h, { key: 12 }, [
|
|
@@ -2366,13 +2364,13 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2366
2364
|
offset: "0%",
|
|
2367
2365
|
"stop-color": l.value.chart.backgroundColor,
|
|
2368
2366
|
"stop-opacity": "0"
|
|
2369
|
-
}, null, 8,
|
|
2367
|
+
}, null, 8, iu),
|
|
2370
2368
|
g("stop", {
|
|
2371
2369
|
offset: "100%",
|
|
2372
2370
|
"stop-color": e.color,
|
|
2373
2371
|
"stop-opacity": "0.2"
|
|
2374
|
-
}, null, 8,
|
|
2375
|
-
], 8,
|
|
2372
|
+
}, null, 8, nu)
|
|
2373
|
+
], 8, ru))), 256))
|
|
2376
2374
|
]),
|
|
2377
2375
|
(u(!0), i(h, null, y(dl.value, (e, s) => (u(), i("rect", {
|
|
2378
2376
|
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - n.value.individualOffsetX,
|
|
@@ -2382,7 +2380,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2382
2380
|
fill: M.value === e.groupId ? `url(#individual_scale_gradient_${U.value}_${s})` : "transparent",
|
|
2383
2381
|
onMouseenter: (t) => M.value = e.groupId,
|
|
2384
2382
|
onMouseleave: c[0] || (c[0] = (t) => M.value = null)
|
|
2385
|
-
}, null, 40,
|
|
2383
|
+
}, null, 40, cu))), 256))
|
|
2386
2384
|
], 64)) : d("", !0),
|
|
2387
2385
|
g("g", null, [
|
|
2388
2386
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
|
|
@@ -2394,7 +2392,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2394
2392
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
2395
2393
|
"text-anchor": "middle",
|
|
2396
2394
|
style: { transition: "none" }
|
|
2397
|
-
}, ee(l.value.chart.grid.labels.axis.yLabel), 9,
|
|
2395
|
+
}, ee(l.value.chart.grid.labels.axis.yLabel), 9, vu)) : d("", !0),
|
|
2398
2396
|
l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
|
|
2399
2397
|
key: 1,
|
|
2400
2398
|
ref_key: "xAxisLabel",
|
|
@@ -2404,7 +2402,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2404
2402
|
y: ve.value - 3,
|
|
2405
2403
|
"font-size": x.value.yAxis,
|
|
2406
2404
|
fill: l.value.chart.grid.labels.color
|
|
2407
|
-
}, ee(l.value.chart.grid.labels.axis.xLabel), 9,
|
|
2405
|
+
}, ee(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
|
|
2408
2406
|
]),
|
|
2409
2407
|
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
|
|
2410
2408
|
key: 13,
|
|
@@ -2415,53 +2413,53 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2415
2413
|
key: `time_label_${s}`,
|
|
2416
2414
|
ref_for: !0
|
|
2417
2415
|
}, {
|
|
2418
|
-
x: n.value.left + n.value.width /
|
|
2416
|
+
x: n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2,
|
|
2419
2417
|
y: n.value.bottom,
|
|
2420
2418
|
fontSize: x.value.xAxis,
|
|
2421
2419
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2422
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2420
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2423
2421
|
absoluteIndex: e.absoluteIndex,
|
|
2424
2422
|
content: e.text,
|
|
2425
2423
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2426
|
-
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo &&
|
|
2424
|
+
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= Ll.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === le.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / Ll.value) === 0
|
|
2427
2425
|
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(le.value, (e, s) => (u(), i("g", {
|
|
2428
2426
|
key: `time_label_${s}`
|
|
2429
2427
|
}, [
|
|
2430
|
-
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo &&
|
|
2428
|
+
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= Ll.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === le.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / Ll.value) === 0 ? (u(), i(h, { key: 0 }, [
|
|
2431
2429
|
String(e.text).includes(`
|
|
2432
2430
|
`) ? (u(), i("text", {
|
|
2433
2431
|
key: 1,
|
|
2434
2432
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2435
2433
|
"font-size": x.value.xAxis,
|
|
2436
2434
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2437
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2435
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2438
2436
|
style: z({
|
|
2439
2437
|
cursor: ga() ? "pointer" : "default"
|
|
2440
2438
|
}),
|
|
2441
|
-
innerHTML: v(
|
|
2439
|
+
innerHTML: v(Qt)({
|
|
2442
2440
|
content: String(e.text),
|
|
2443
2441
|
fontSize: x.value.xAxis,
|
|
2444
2442
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2445
2443
|
x: 0,
|
|
2446
2444
|
y: 0
|
|
2447
2445
|
}),
|
|
2448
|
-
onClick: () =>
|
|
2449
|
-
}, null, 12,
|
|
2446
|
+
onClick: () => ma(e, s)
|
|
2447
|
+
}, null, 12, fu)) : (u(), i("text", {
|
|
2450
2448
|
key: 0,
|
|
2451
2449
|
class: "vue-data-ui-time-label",
|
|
2452
2450
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2453
2451
|
"font-size": x.value.xAxis,
|
|
2454
2452
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2455
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2453
|
+
transform: `translate(${n.value.left + n.value.width / b.value * s + n.value.width / b.value / 2}, ${n.value.bottom + x.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2456
2454
|
style: z({
|
|
2457
2455
|
cursor: ga() ? "pointer" : "default"
|
|
2458
2456
|
}),
|
|
2459
|
-
onClick: () =>
|
|
2460
|
-
}, ee(e.text || ""), 13,
|
|
2457
|
+
onClick: () => ma(e, s)
|
|
2458
|
+
}, ee(e.text || ""), 13, hu))
|
|
2461
2459
|
], 64)) : d("", !0)
|
|
2462
2460
|
]))), 128))
|
|
2463
2461
|
], 512)) : d("", !0),
|
|
2464
|
-
Ma.value.length && !f.value.isStacked ? (u(), i("g",
|
|
2462
|
+
Ma.value.length && !f.value.isStacked ? (u(), i("g", gu, [
|
|
2465
2463
|
(u(!0), i(h, null, y(Ma.value, (e) => (u(), i("g", {
|
|
2466
2464
|
key: e.uid
|
|
2467
2465
|
}, [
|
|
@@ -2476,7 +2474,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2476
2474
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2477
2475
|
"stroke-linecap": "round",
|
|
2478
2476
|
style: { animation: "none !important" }
|
|
2479
|
-
}, null, 8,
|
|
2477
|
+
}, null, 8, xu)) : d("", !0),
|
|
2480
2478
|
e.yBottom && e.show && isFinite(e.yBottom) ? (u(), i("line", {
|
|
2481
2479
|
key: 1,
|
|
2482
2480
|
x1: e.x1,
|
|
@@ -2488,7 +2486,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2488
2486
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2489
2487
|
"stroke-linecap": "round",
|
|
2490
2488
|
style: { animation: "none !important" }
|
|
2491
|
-
}, null, 8,
|
|
2489
|
+
}, null, 8, bu)) : d("", !0),
|
|
2492
2490
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
|
|
2493
2491
|
key: 2,
|
|
2494
2492
|
y: Math.min(e.yTop, e.yBottom),
|
|
@@ -2511,25 +2509,25 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2511
2509
|
"font-size": e.config.label.fontSize,
|
|
2512
2510
|
fill: e.config.label.color,
|
|
2513
2511
|
"text-anchor": e.config.label.textAnchor
|
|
2514
|
-
}, ee(e.config.label.text), 9,
|
|
2512
|
+
}, ee(e.config.label.text), 9, yu)) : d("", !0)
|
|
2515
2513
|
]))), 128))
|
|
2516
2514
|
])) : d("", !0),
|
|
2517
|
-
Ul.value ? (u(), i("g",
|
|
2518
|
-
(u(!0), i(h, null, y(
|
|
2515
|
+
Ul.value ? (u(), i("g", pu, [
|
|
2516
|
+
(u(!0), i(h, null, y(b.value, (e, s) => (u(), i("rect", {
|
|
2519
2517
|
key: `tooltip_trap_${s}`,
|
|
2520
|
-
x: n.value.left + n.value.width /
|
|
2518
|
+
x: n.value.left + n.value.width / b.value * s,
|
|
2521
2519
|
y: n.value.top,
|
|
2522
2520
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
2523
|
-
width: n.value.width /
|
|
2521
|
+
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
2524
2522
|
fill: "transparent",
|
|
2525
|
-
onMouseenter: (t) =>
|
|
2526
|
-
onMouseleave: c[1] || (c[1] = (t) =>
|
|
2527
|
-
onClick: (t) =>
|
|
2528
|
-
}, null, 40,
|
|
2523
|
+
onMouseenter: (t) => Ta(!0, s),
|
|
2524
|
+
onMouseleave: c[1] || (c[1] = (t) => Ta(!1)),
|
|
2525
|
+
onClick: (t) => kt(s)
|
|
2526
|
+
}, null, 40, ku))), 128))
|
|
2529
2527
|
])) : d("", !0),
|
|
2530
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g",
|
|
2528
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", _u, [
|
|
2531
2529
|
(u(), i("foreignObject", {
|
|
2532
|
-
x: n.value.left + n.value.width /
|
|
2530
|
+
x: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / b.value / 2,
|
|
2533
2531
|
y: n.value.bottom,
|
|
2534
2532
|
width: "200",
|
|
2535
2533
|
height: "40",
|
|
@@ -2539,19 +2537,19 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2539
2537
|
class: "vue-ui-xy-time-tag",
|
|
2540
2538
|
style: z(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
|
|
2541
2539
|
}, ee(le.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)
|
|
2542
|
-
], 8,
|
|
2540
|
+
], 8, wu)),
|
|
2543
2541
|
g("circle", {
|
|
2544
|
-
cx: n.value.left + n.value.width /
|
|
2542
|
+
cx: n.value.left + n.value.width / b.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / b.value / 2,
|
|
2545
2543
|
cy: n.value.bottom,
|
|
2546
2544
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2547
2545
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
2548
|
-
}, null, 8,
|
|
2546
|
+
}, null, 8, Su)
|
|
2549
2547
|
])) : d("", !0)
|
|
2550
2548
|
])) : d("", !0),
|
|
2551
|
-
q(a.$slots, "svg", { svg:
|
|
2549
|
+
q(a.$slots, "svg", { svg: it.value }, void 0, !0)
|
|
2552
2550
|
], 512)
|
|
2553
|
-
], 14,
|
|
2554
|
-
a.$slots.watermark ? (u(), i("div",
|
|
2551
|
+
], 14, go)),
|
|
2552
|
+
a.$slots.watermark ? (u(), i("div", $u, [
|
|
2555
2553
|
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Gl) || v(ca) })), void 0, !0)
|
|
2556
2554
|
])) : d("", !0),
|
|
2557
2555
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
@@ -2569,14 +2567,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2569
2567
|
style: z({
|
|
2570
2568
|
position: "fixed",
|
|
2571
2569
|
top: v(Ee)({
|
|
2572
|
-
svgElement:
|
|
2570
|
+
svgElement: be.value,
|
|
2573
2571
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2574
2572
|
y: t.y,
|
|
2575
2573
|
element: Ce.value[`${s}_${r}_right_line`],
|
|
2576
2574
|
position: "right"
|
|
2577
2575
|
}).top + "px",
|
|
2578
2576
|
left: v(Ee)({
|
|
2579
|
-
svgElement:
|
|
2577
|
+
svgElement: be.value,
|
|
2580
2578
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2581
2579
|
y: t.y,
|
|
2582
2580
|
element: Ce.value[`${s}_${r}_right_line`],
|
|
@@ -2591,12 +2589,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2591
2589
|
opacity: 1
|
|
2592
2590
|
})
|
|
2593
2591
|
}, [
|
|
2594
|
-
(u(), i("svg",
|
|
2592
|
+
(u(), i("svg", Lu, [
|
|
2595
2593
|
g("path", {
|
|
2596
2594
|
d: "M 0,10 10,0 10,20 Z",
|
|
2597
2595
|
fill: e.color,
|
|
2598
2596
|
stroke: "none"
|
|
2599
|
-
}, null, 8,
|
|
2597
|
+
}, null, 8, Au)
|
|
2600
2598
|
])),
|
|
2601
2599
|
g("div", {
|
|
2602
2600
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2610,7 +2608,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2610
2608
|
serieName: e.name
|
|
2611
2609
|
}
|
|
2612
2610
|
)
|
|
2613
|
-
}, null, 8,
|
|
2611
|
+
}, null, 8, Mu)
|
|
2614
2612
|
], 4)) : d("", !0),
|
|
2615
2613
|
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2616
2614
|
key: 1,
|
|
@@ -2621,14 +2619,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2621
2619
|
style: z({
|
|
2622
2620
|
position: "fixed",
|
|
2623
2621
|
top: v(Ee)({
|
|
2624
|
-
svgElement:
|
|
2622
|
+
svgElement: be.value,
|
|
2625
2623
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2626
2624
|
y: t.y,
|
|
2627
2625
|
element: Ce.value[`${s}_${r}_left_line`],
|
|
2628
2626
|
position: "left"
|
|
2629
2627
|
}).top + "px",
|
|
2630
2628
|
left: v(Ee)({
|
|
2631
|
-
svgElement:
|
|
2629
|
+
svgElement: be.value,
|
|
2632
2630
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2633
2631
|
y: t.y,
|
|
2634
2632
|
element: Ce.value[`${s}_${r}_left_line`],
|
|
@@ -2643,12 +2641,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2643
2641
|
opacity: 1
|
|
2644
2642
|
})
|
|
2645
2643
|
}, [
|
|
2646
|
-
(u(), i("svg",
|
|
2644
|
+
(u(), i("svg", zu, [
|
|
2647
2645
|
g("path", {
|
|
2648
2646
|
d: "M 0,0 10,10 0,20 Z",
|
|
2649
2647
|
fill: e.color,
|
|
2650
2648
|
stroke: "none"
|
|
2651
|
-
}, null, 8,
|
|
2649
|
+
}, null, 8, Cu)
|
|
2652
2650
|
])),
|
|
2653
2651
|
g("div", {
|
|
2654
2652
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2662,7 +2660,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2662
2660
|
serieName: e.name
|
|
2663
2661
|
}
|
|
2664
2662
|
)
|
|
2665
|
-
}, null, 8,
|
|
2663
|
+
}, null, 8, Iu)
|
|
2666
2664
|
], 4)) : d("", !0)
|
|
2667
2665
|
], 64))), 128))
|
|
2668
2666
|
], 64))), 128)),
|
|
@@ -2681,14 +2679,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2681
2679
|
style: z({
|
|
2682
2680
|
position: "fixed",
|
|
2683
2681
|
top: v(Ee)({
|
|
2684
|
-
svgElement:
|
|
2682
|
+
svgElement: be.value,
|
|
2685
2683
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2686
2684
|
y: t.y,
|
|
2687
2685
|
element: Ce.value[`${s}_${r}_right_plot`],
|
|
2688
2686
|
position: "right"
|
|
2689
2687
|
}).top + "px",
|
|
2690
2688
|
left: v(Ee)({
|
|
2691
|
-
svgElement:
|
|
2689
|
+
svgElement: be.value,
|
|
2692
2690
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2693
2691
|
y: t.y,
|
|
2694
2692
|
element: Ce.value[`${s}_${r}_right_plot`],
|
|
@@ -2703,12 +2701,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2703
2701
|
opacity: 1
|
|
2704
2702
|
})
|
|
2705
2703
|
}, [
|
|
2706
|
-
(u(), i("svg",
|
|
2704
|
+
(u(), i("svg", Tu, [
|
|
2707
2705
|
g("path", {
|
|
2708
2706
|
d: "M 0,10 10,0 10,20 Z",
|
|
2709
2707
|
fill: e.color,
|
|
2710
2708
|
stroke: "none"
|
|
2711
|
-
}, null, 8,
|
|
2709
|
+
}, null, 8, Ou)
|
|
2712
2710
|
])),
|
|
2713
2711
|
g("div", {
|
|
2714
2712
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2722,7 +2720,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2722
2720
|
serieName: e.name
|
|
2723
2721
|
}
|
|
2724
2722
|
)
|
|
2725
|
-
}, null, 8,
|
|
2723
|
+
}, null, 8, Nu)
|
|
2726
2724
|
], 4)) : d("", !0),
|
|
2727
2725
|
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2728
2726
|
key: 1,
|
|
@@ -2733,14 +2731,14 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2733
2731
|
style: z({
|
|
2734
2732
|
position: "fixed",
|
|
2735
2733
|
top: v(Ee)({
|
|
2736
|
-
svgElement:
|
|
2734
|
+
svgElement: be.value,
|
|
2737
2735
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2738
2736
|
y: t.y,
|
|
2739
2737
|
element: Ce.value[`${s}_${r}_left_plot`],
|
|
2740
2738
|
position: "left"
|
|
2741
2739
|
}).top + "px",
|
|
2742
2740
|
left: v(Ee)({
|
|
2743
|
-
svgElement:
|
|
2741
|
+
svgElement: be.value,
|
|
2744
2742
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2745
2743
|
y: t.y,
|
|
2746
2744
|
element: Ce.value[`${s}_${r}_left_plot`],
|
|
@@ -2755,12 +2753,12 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2755
2753
|
opacity: 1
|
|
2756
2754
|
})
|
|
2757
2755
|
}, [
|
|
2758
|
-
(u(), i("svg",
|
|
2756
|
+
(u(), i("svg", Vu, [
|
|
2759
2757
|
g("path", {
|
|
2760
2758
|
d: "M 0,0 10,10 0,20 Z",
|
|
2761
2759
|
fill: e.color,
|
|
2762
2760
|
stroke: "none"
|
|
2763
|
-
}, null, 8,
|
|
2761
|
+
}, null, 8, Pu)
|
|
2764
2762
|
])),
|
|
2765
2763
|
g("div", {
|
|
2766
2764
|
class: "vue-ui-xy-tag-content",
|
|
@@ -2774,11 +2772,11 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2774
2772
|
serieName: e.name
|
|
2775
2773
|
}
|
|
2776
2774
|
)
|
|
2777
|
-
}, null, 8,
|
|
2775
|
+
}, null, 8, Hu)
|
|
2778
2776
|
], 4)) : d("", !0)
|
|
2779
2777
|
], 64))), 128))
|
|
2780
2778
|
], 64))), 128)),
|
|
2781
|
-
l.value.chart.zoom.show && Ve.value > 6 && Wl.value ? (u(), Me(
|
|
2779
|
+
l.value.chart.zoom.show && Ve.value > 6 && Wl.value ? (u(), Me(so, {
|
|
2782
2780
|
ref_key: "chartSlicer",
|
|
2783
2781
|
ref: Se,
|
|
2784
2782
|
key: `slicer_${Bl.value}`,
|
|
@@ -2791,7 +2789,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2791
2789
|
inputColor: l.value.chart.zoom.color,
|
|
2792
2790
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
2793
2791
|
borderColor: l.value.chart.backgroundColor,
|
|
2794
|
-
minimap:
|
|
2792
|
+
minimap: It.value,
|
|
2795
2793
|
smoothMinimap: l.value.chart.zoom.minimap.smooth,
|
|
2796
2794
|
minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
|
|
2797
2795
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
@@ -2812,8 +2810,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2812
2810
|
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Tl.dataset.map((e) => v(Ye)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
|
|
2813
2811
|
enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
|
|
2814
2812
|
enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
|
|
2815
|
-
onReset:
|
|
2816
|
-
onTrapMouse:
|
|
2813
|
+
onReset: pt,
|
|
2814
|
+
onTrapMouse: bt
|
|
2817
2815
|
}, {
|
|
2818
2816
|
"reset-action": ue(({ reset: e }) => [
|
|
2819
2817
|
q(a.$slots, "reset-action", Ze(Je({ reset: e })), void 0, !0)
|
|
@@ -2832,7 +2830,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2832
2830
|
onClick: (t) => $a(e),
|
|
2833
2831
|
class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
|
|
2834
2832
|
}, [
|
|
2835
|
-
il.value[e.type] === "line" ? (u(), i("svg",
|
|
2833
|
+
il.value[e.type] === "line" ? (u(), i("svg", Bu, [
|
|
2836
2834
|
g("rect", {
|
|
2837
2835
|
x: "0",
|
|
2838
2836
|
y: "7.5",
|
|
@@ -2842,7 +2840,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2842
2840
|
height: "3",
|
|
2843
2841
|
width: "20",
|
|
2844
2842
|
fill: e.color
|
|
2845
|
-
}, null, 8,
|
|
2843
|
+
}, null, 8, Yu),
|
|
2846
2844
|
xl(Il, {
|
|
2847
2845
|
plot: { x: 10, y: 9 },
|
|
2848
2846
|
radius: 4,
|
|
@@ -2851,7 +2849,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2851
2849
|
stroke: l.value.chart.backgroundColor,
|
|
2852
2850
|
strokeWidth: 0.5
|
|
2853
2851
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2854
|
-
])) : il.value[e.type] === "bar" ? (u(), i("svg",
|
|
2852
|
+
])) : il.value[e.type] === "bar" ? (u(), i("svg", Fu, [
|
|
2855
2853
|
il.value[e.type] === "bar" && a.$slots.pattern ? (u(), i("rect", {
|
|
2856
2854
|
key: 0,
|
|
2857
2855
|
x: "0",
|
|
@@ -2861,7 +2859,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2861
2859
|
width: "40",
|
|
2862
2860
|
stroke: "none",
|
|
2863
2861
|
fill: e.color
|
|
2864
|
-
}, null, 8,
|
|
2862
|
+
}, null, 8, Eu)) : d("", !0),
|
|
2865
2863
|
il.value[e.type] === "bar" ? (u(), i("rect", {
|
|
2866
2864
|
key: 1,
|
|
2867
2865
|
x: "0",
|
|
@@ -2871,8 +2869,8 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2871
2869
|
width: "40",
|
|
2872
2870
|
stroke: "none",
|
|
2873
2871
|
fill: a.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
|
|
2874
|
-
}, null, 8,
|
|
2875
|
-
])) : (u(), i("svg",
|
|
2872
|
+
}, null, 8, Wu)) : d("", !0)
|
|
2873
|
+
])) : (u(), i("svg", Xu, [
|
|
2876
2874
|
xl(Il, {
|
|
2877
2875
|
plot: { x: 6, y: 6 },
|
|
2878
2876
|
radius: 5,
|
|
@@ -2883,7 +2881,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2883
2881
|
g("span", {
|
|
2884
2882
|
style: z(`color:${l.value.chart.legend.color}`)
|
|
2885
2883
|
}, ee(e.name), 5)
|
|
2886
|
-
], 10,
|
|
2884
|
+
], 10, Ru))), 128))
|
|
2887
2885
|
], 4)) : (u(), i("div", {
|
|
2888
2886
|
key: 7,
|
|
2889
2887
|
ref_key: "chartLegend",
|
|
@@ -2899,7 +2897,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2899
2897
|
}, [
|
|
2900
2898
|
q(a.$slots, "source", {}, void 0, !0)
|
|
2901
2899
|
], 512)) : d("", !0),
|
|
2902
|
-
xl(v(
|
|
2900
|
+
xl(v(Qa), {
|
|
2903
2901
|
show: f.value.showTooltip && sa.value,
|
|
2904
2902
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
2905
2903
|
color: l.value.chart.tooltip.color,
|
|
@@ -2911,7 +2909,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2911
2909
|
position: l.value.chart.tooltip.position,
|
|
2912
2910
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
2913
2911
|
parent: a.$refs.chart,
|
|
2914
|
-
content:
|
|
2912
|
+
content: Tt.value,
|
|
2915
2913
|
isFullscreen: al.value,
|
|
2916
2914
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
|
|
2917
2915
|
}, {
|
|
@@ -2923,7 +2921,7 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2923
2921
|
]),
|
|
2924
2922
|
_: 3
|
|
2925
2923
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2926
|
-
Wl.value ? (u(), Me(v(
|
|
2924
|
+
Wl.value ? (u(), Me(v(at), {
|
|
2927
2925
|
key: 9,
|
|
2928
2926
|
hideDetails: "",
|
|
2929
2927
|
config: {
|
|
@@ -2943,29 +2941,29 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2943
2941
|
g("div", {
|
|
2944
2942
|
style: z(`${v(Gl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2945
2943
|
}, [
|
|
2946
|
-
g("div",
|
|
2947
|
-
|
|
2944
|
+
g("div", Gu, [
|
|
2945
|
+
Bt(g("input", {
|
|
2948
2946
|
type: "checkbox",
|
|
2949
2947
|
"onUpdate:modelValue": c[4] || (c[4] = (e) => nl.value = e)
|
|
2950
2948
|
}, null, 512), [
|
|
2951
|
-
[
|
|
2949
|
+
[Yt, nl.value]
|
|
2952
2950
|
]),
|
|
2953
2951
|
g("div", {
|
|
2954
2952
|
onClick: c[5] || (c[5] = (e) => nl.value = !nl.value),
|
|
2955
2953
|
style: { cursor: "pointer" }
|
|
2956
2954
|
}, [
|
|
2957
|
-
xl(v(
|
|
2955
|
+
xl(v(et), {
|
|
2958
2956
|
name: "chartLine",
|
|
2959
2957
|
size: 20,
|
|
2960
2958
|
stroke: l.value.chart.color
|
|
2961
2959
|
}, null, 8, ["stroke"])
|
|
2962
2960
|
])
|
|
2963
2961
|
]),
|
|
2964
|
-
nl.value ? (u(), Me(v(
|
|
2962
|
+
nl.value ? (u(), Me(v(lt), {
|
|
2965
2963
|
key: `sparkline_${Yl.value}`,
|
|
2966
|
-
dataset:
|
|
2967
|
-
config:
|
|
2968
|
-
}, null, 8, ["dataset", "config"])) : (u(), Me(v(
|
|
2964
|
+
dataset: Mt.value,
|
|
2965
|
+
config: zt.value
|
|
2966
|
+
}, null, 8, ["dataset", "config"])) : (u(), Me(v(Ka), {
|
|
2969
2967
|
key: `table_${ra.value}`,
|
|
2970
2968
|
colNames: Ml.value.colNames,
|
|
2971
2969
|
head: Ml.value.head,
|
|
@@ -2975,10 +2973,10 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2975
2973
|
onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
|
|
2976
2974
|
}, {
|
|
2977
2975
|
th: ue(({ th: e }) => [
|
|
2978
|
-
g("div", { innerHTML: e }, null, 8,
|
|
2976
|
+
g("div", { innerHTML: e }, null, 8, Du)
|
|
2979
2977
|
]),
|
|
2980
2978
|
td: ue(({ td: e }) => [
|
|
2981
|
-
|
|
2979
|
+
Ft(ee(isNaN(Number(e)) ? e : v(xe)({
|
|
2982
2980
|
p: l.value.chart.labels.prefix,
|
|
2983
2981
|
v: e,
|
|
2984
2982
|
s: l.value.chart.labels.suffix,
|
|
@@ -2991,10 +2989,10 @@ const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "hei
|
|
|
2991
2989
|
]),
|
|
2992
2990
|
_: 1
|
|
2993
2991
|
}, 8, ["config"])) : d("", !0),
|
|
2994
|
-
v(Xl) ? (u(), Me(
|
|
2995
|
-
], 46,
|
|
2992
|
+
v(Xl) ? (u(), Me(co, { key: 10 })) : d("", !0)
|
|
2993
|
+
], 46, fo));
|
|
2996
2994
|
}
|
|
2997
|
-
},
|
|
2995
|
+
}, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-f2bb4a89"]]);
|
|
2998
2996
|
export {
|
|
2999
|
-
|
|
2997
|
+
rr as default
|
|
3000
2998
|
};
|