vue-data-ui 3.0.0-next.20 → 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-BUlbY5qN.js → Arrow-CG6jvVsg.js} +1 -1
- package/dist/{BaseDraggableDialog-DdMqvofL.js → BaseDraggableDialog-Du2C2PRN.js} +2 -2
- package/dist/{BaseIcon-GwmxkCYt.js → BaseIcon-B02_iZvv.js} +1 -1
- package/dist/{ColorPicker-CWPVu4Mn.js → ColorPicker-D8pAbBHF.js} +2 -2
- package/dist/{DataTable-DiYlFcoN.js → DataTable-DWrR2huG.js} +2 -2
- package/dist/{Legend-CJH2DwvF.js → Legend-DuIBb5-l.js} +2 -2
- package/dist/{NonSvgPenAndPaper-kP7w_wnX.js → NonSvgPenAndPaper-CgdXT3Mo.js} +3 -3
- package/dist/{PackageVersion-C3IgYdy5.js → PackageVersion-Dw8LsLrG.js} +1 -1
- package/dist/{PenAndPaper-DX7Vz7zG.js → PenAndPaper-B5NLS-T8.js} +3 -3
- package/dist/{Shape-M_osyQRq.js → Shape-BYtD3aCC.js} +1 -1
- package/dist/{Slicer-DSoA99Qi.js → Slicer-DEWW_x3E.js} +2 -2
- package/dist/{SparkTooltip-QHzSSaRw.js → SparkTooltip-49EExszm.js} +1 -1
- package/dist/{Title-BZzqwhfm.js → Title-CSrQOK6i.js} +1 -1
- package/dist/{Tooltip-CM7R4xmg.js → Tooltip-BXN6Dia0.js} +1 -1
- package/dist/{UserOptions-YnajLuA-.js → UserOptions-DuttP5Ha.js} +2 -2
- package/dist/{dom-to-png-CwcljPsH.js → dom-to-png-1vZ7Gzre.js} +1 -1
- package/dist/{img-BTcfCQH5.js → img-Cw1NdbG_.js} +1 -1
- package/dist/{index-BAN_h_nZ.js → index-BW0C2_Tb.js} +1 -1
- package/dist/{pdf-BpoXwx5J.js → pdf-Dhv7sPee.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BV-XJ1SY.js → useNestedProp-CTefm-aW.js} +1 -1
- package/dist/{usePrinter-UlRss_LR.js → usePrinter-B4zYrgnb.js} +2 -2
- package/dist/{vue-data-ui-djYxJCHp.js → vue-data-ui-CAy6ShPG.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C_4BSVNz.js → vue-ui-3d-bar-CGy2iAMa.js} +6 -6
- package/dist/{vue-ui-accordion-7QHuQc6-.js → vue-ui-accordion-c1jZbYHr.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bk6krIzr.js → vue-ui-age-pyramid-CAzHUVIF.js} +6 -6
- package/dist/{vue-ui-annotator-CdX7H6hn.js → vue-ui-annotator-bSYt6z3h.js} +2 -2
- package/dist/{vue-ui-bullet-DwyS1JQX.js → vue-ui-bullet-oMgx5uwV.js} +7 -7
- package/dist/{vue-ui-candlestick-DX_YX-vm.js → vue-ui-candlestick-DWdZfON_.js} +7 -7
- package/dist/{vue-ui-carousel-table-B1cAxuTm.js → vue-ui-carousel-table-DvK9e5fw.js} +4 -4
- package/dist/{vue-ui-chestnut-DpKv0sh4.js → vue-ui-chestnut-xJhDrfjB.js} +5 -5
- package/dist/{vue-ui-chord-CiPJPGiG.js → vue-ui-chord-C4HzHUAY.js} +8 -8
- package/dist/{vue-ui-circle-pack-Bjkt4LB5.js → vue-ui-circle-pack-DBK62SdA.js} +6 -6
- package/dist/{vue-ui-cursor-D84ggJvK.js → vue-ui-cursor-BYc6Mwym.js} +2 -2
- package/dist/{vue-ui-dashboard-C_yR4UTa.js → vue-ui-dashboard-DloLrGpO.js} +62 -62
- package/dist/{vue-ui-digits-BqEMiolR.js → vue-ui-digits-Q89rZ9Pe.js} +2 -2
- package/dist/{vue-ui-donut-SC_gy9DF.js → vue-ui-donut-awxg4BQq.js} +8 -8
- package/dist/{vue-ui-donut-evolution-NkWihGjp.js → vue-ui-donut-evolution-CYUOog5f.js} +8 -8
- package/dist/{vue-ui-dumbbell-tCZEa_qU.js → vue-ui-dumbbell-C5j0XpO5.js} +7 -7
- package/dist/{vue-ui-flow-BsnqODVX.js → vue-ui-flow-CqdoGSch.js} +7 -7
- package/dist/{vue-ui-funnel-rjuN7SMb.js → vue-ui-funnel-CD0RA9Rn.js} +6 -6
- package/dist/{vue-ui-galaxy-maMA25Pj.js → vue-ui-galaxy-c_qleL6O.js} +5 -5
- package/dist/{vue-ui-gauge-DBk_QEqG.js → vue-ui-gauge-CtcJu8vb.js} +6 -6
- package/dist/{vue-ui-gizmo-BbGKsycH.js → vue-ui-gizmo-CxvHL2NS.js} +3 -3
- package/dist/{vue-ui-heatmap-J0HrOp33.js → vue-ui-heatmap-NC425dJO.js} +7 -7
- package/dist/{vue-ui-history-plot-C1WCPCFB.js → vue-ui-history-plot-7d_SmyIF.js} +7 -7
- package/dist/{vue-ui-kpi-DXP7mJmU.js → vue-ui-kpi-B1159KLv.js} +3 -3
- package/dist/{vue-ui-mini-loader-BDCUhVXV.js → vue-ui-mini-loader-D4lhtzRC.js} +2 -2
- package/dist/{vue-ui-molecule-BK4mr3zK.js → vue-ui-molecule-ClAIN3Ua.js} +5 -5
- package/dist/{vue-ui-mood-radar-CidQ7htJ.js → vue-ui-mood-radar-B8cBu8B_.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CNNuwHVy.js → vue-ui-nested-donuts-BxAB5Csu.js} +9 -9
- package/dist/{vue-ui-onion-BKzAnhfX.js → vue-ui-onion-oVP1iKkS.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BVxjoZbs.js → vue-ui-parallel-coordinate-plot-DNi4yM-k.js} +8 -8
- package/dist/{vue-ui-quadrant-DMTwRxJO.js → vue-ui-quadrant-V99phN2R.js} +8 -8
- package/dist/{vue-ui-quick-chart-Bh7Uzdkl.js → vue-ui-quick-chart-Ci74ZJeI.js} +6 -6
- package/dist/{vue-ui-radar-CWneFyvx.js → vue-ui-radar-V4YCXUOo.js} +7 -7
- package/dist/{vue-ui-rating-Cpj3lgkf.js → vue-ui-rating-DexrpBbo.js} +2 -2
- package/dist/{vue-ui-relation-circle-BbLMXzQC.js → vue-ui-relation-circle-rPlpFgzI.js} +6 -6
- package/dist/{vue-ui-ridgeline-DQOxy2Wd.js → vue-ui-ridgeline-CBa7hm9Z.js} +8 -8
- package/dist/{vue-ui-rings-DQ0sF_fU.js → vue-ui-rings-DBGi-AUn.js} +8 -8
- package/dist/{vue-ui-scatter-BtdXQwop.js → vue-ui-scatter-D5mAcA9O.js} +8 -8
- package/dist/{vue-ui-skeleton-B7V8lFmX.js → vue-ui-skeleton-CdLMeOld.js} +3 -3
- package/dist/{vue-ui-smiley-ZOCueWUm.js → vue-ui-smiley-BV-tMmxi.js} +2 -2
- package/dist/{vue-ui-spark-trend-DFYHQJ_o.js → vue-ui-spark-trend-CtCtidOg.js} +3 -3
- package/dist/{vue-ui-sparkbar-DDSLizGP.js → vue-ui-sparkbar-Bs1xm4es.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B7WUdl3j.js → vue-ui-sparkgauge-CspfsOd_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-D8QDG-TS.js → vue-ui-sparkhistogram-BaNvyNzr.js} +4 -4
- package/dist/{vue-ui-sparkline-DeU8AfL8.js → vue-ui-sparkline-OMWoZFo2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-ChW_4elU.js → vue-ui-sparkstackbar-D6L8x3fT.js} +3 -3
- package/dist/{vue-ui-stackbar-DHgP90mv.js → vue-ui-stackbar-DfCeJnfw.js} +9 -9
- package/dist/{vue-ui-strip-plot-DcUh22d6.js → vue-ui-strip-plot-070FX-oE.js} +7 -7
- package/dist/{vue-ui-table-B1cY8Rpp.js → vue-ui-table-KxfZz3KW.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BvPtl3oA.js → vue-ui-table-heatmap-CAv0UFbh.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DGDQjRme.js → vue-ui-table-sparkline-BfxTdEYr.js} +4 -4
- package/dist/{vue-ui-thermometer-Dw3WZJ9y.js → vue-ui-thermometer-gNuiHPTL.js} +6 -6
- package/dist/{vue-ui-timer-InBkyjSR.js → vue-ui-timer-DBjrqdbd.js} +5 -5
- package/dist/{vue-ui-tiremarks-B2K05981.js → vue-ui-tiremarks-B4jaLtgL.js} +6 -6
- package/dist/{vue-ui-treemap-CH0WwNHy.js → vue-ui-treemap-Br0tUn0s.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Hc_kP36D.js → vue-ui-vertical-bar-fPUMFtfV.js} +9 -9
- package/dist/{vue-ui-waffle-BZGzaNiM.js → vue-ui-waffle-yfCV-Ucn.js} +8 -8
- package/dist/{vue-ui-wheel-QBwIVAdZ.js → vue-ui-wheel-B2ytuASN.js} +6 -6
- package/dist/{vue-ui-word-cloud-Blri-0nB.js → vue-ui-word-cloud-DoztPnSM.js} +6 -6
- package/dist/{vue-ui-world-Ug4iiW5F.js → vue-ui-world-p6uUq2VG.js} +6 -6
- package/dist/{vue-ui-xy-DGdMvSQ8.js → vue-ui-xy-Cb4IrNMs.js} +644 -643
- package/dist/{vue-ui-xy-canvas-D_yxXjPt.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
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { S as
|
|
7
|
-
import
|
|
8
|
-
import { _ as
|
|
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 vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
75
|
-
setup(
|
|
76
|
-
const m =
|
|
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
|
-
width:
|
|
79
|
-
})),
|
|
78
|
+
width: ae.value
|
|
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,9 +88,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
88
88
|
dataLabels: 20,
|
|
89
89
|
plotLabels: 10
|
|
90
90
|
}), $e = w({ plot: 3, line: 3 });
|
|
91
|
-
|
|
91
|
+
Ba(() => {
|
|
92
92
|
m.dataset.length && m.dataset.forEach((a, c) => {
|
|
93
|
-
[null, void 0].includes(a.series) &&
|
|
93
|
+
[null, void 0].includes(a.series) && la({
|
|
94
94
|
componentName: "VueUiXy",
|
|
95
95
|
type: "datasetSerieAttribute",
|
|
96
96
|
property: "series (number[])",
|
|
@@ -99,38 +99,38 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
|
-
function
|
|
102
|
+
function El() {
|
|
103
103
|
if (!Object.keys(m.config || {}).length)
|
|
104
|
-
return
|
|
105
|
-
const a =
|
|
104
|
+
return Nl;
|
|
105
|
+
const a = aa({
|
|
106
106
|
userConfig: m.config,
|
|
107
|
-
defaultConfig:
|
|
107
|
+
defaultConfig: Nl
|
|
108
108
|
});
|
|
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) =>
|
|
110
|
-
defaultConfig:
|
|
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
|
+
defaultConfig: Nl.chart.annotations[0],
|
|
111
111
|
userConfig: c
|
|
112
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
|
-
...
|
|
114
|
-
userConfig:
|
|
113
|
+
...aa({
|
|
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
|
-
const
|
|
120
|
+
const Wl = $({
|
|
121
121
|
get() {
|
|
122
122
|
return !!m.dataset && m.dataset.length;
|
|
123
123
|
},
|
|
124
124
|
set(a) {
|
|
125
125
|
return a;
|
|
126
126
|
}
|
|
127
|
-
}), l = w(
|
|
128
|
-
...
|
|
127
|
+
}), l = w(El()), { loading: Xl, FINAL_DATASET: me, manualLoading: wl } = no({
|
|
128
|
+
...Pt(m),
|
|
129
129
|
FINAL_CONFIG: l,
|
|
130
|
-
prepareConfig:
|
|
130
|
+
prepareConfig: El,
|
|
131
131
|
callback: () => {
|
|
132
132
|
Promise.resolve().then(async () => {
|
|
133
|
-
await
|
|
133
|
+
await Kl();
|
|
134
134
|
});
|
|
135
135
|
},
|
|
136
136
|
skeletonDataset: [
|
|
@@ -148,7 +148,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["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,
|
|
@@ -206,19 +206,19 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
})
|
|
209
|
-
}), Ve =
|
|
210
|
-
get: () => Math.max(...me.value.map((a) => Ye({ data: a.series, threshold:
|
|
209
|
+
}), Ve = $({
|
|
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:
|
|
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
|
-
const a = Math.min(...Ie.value.filter((c) => !
|
|
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 =
|
|
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
|
|
@@ -226,128 +226,131 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
226
226
|
return {
|
|
227
227
|
...a,
|
|
228
228
|
slotAbsoluteIndex: c,
|
|
229
|
-
series: e.map((t) =>
|
|
230
|
-
color:
|
|
229
|
+
series: e.map((t) => zl(t) ? t : null).slice(S.value.start, S.value.end),
|
|
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
|
-
}) : me.value), Te =
|
|
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),
|
|
238
238
|
absoluteValues: a.series,
|
|
239
|
-
segregate: () =>
|
|
240
|
-
isSegregated:
|
|
241
|
-
}))), pe =
|
|
239
|
+
segregate: () => $a(a),
|
|
240
|
+
isSegregated: te.value.includes(a.id)
|
|
241
|
+
}))), pe = $(() => Ie.value.map((a, c) => ({
|
|
242
242
|
...a,
|
|
243
243
|
series: a.series.map((e) => e + cl.value),
|
|
244
244
|
absoluteValues: a.series
|
|
245
|
-
})).filter((a) => !
|
|
246
|
-
function
|
|
247
|
-
let a =
|
|
248
|
-
|
|
245
|
+
})).filter((a) => !te.value.includes(a.id)));
|
|
246
|
+
function vt() {
|
|
247
|
+
let a = 0;
|
|
248
|
+
Hl.value && (a = Array.from(Hl.value.querySelectorAll("text")).reduce((t, r) => {
|
|
249
249
|
const o = r.getComputedTextLength();
|
|
250
|
-
return o > t ? o : t;
|
|
250
|
+
return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
251
251
|
}, 0));
|
|
252
|
-
const c =
|
|
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
|
|
256
|
-
|
|
255
|
+
const ql = w(0), dt = vo((a) => {
|
|
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
|
-
}),
|
|
266
|
-
|
|
265
|
+
}), Ya(() => {
|
|
266
|
+
ql.value = 0;
|
|
267
267
|
});
|
|
268
|
-
const
|
|
268
|
+
const fa = $(() => {
|
|
269
269
|
let a = 0;
|
|
270
|
-
|
|
270
|
+
Vl.value && (a = Vl.value.getBBox().height);
|
|
271
271
|
let c = 0;
|
|
272
|
-
return ll.value && (c =
|
|
273
|
-
}),
|
|
272
|
+
return ll.value && (c = ql.value), a + c + x.value.xAxis;
|
|
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 = (me.value.length -
|
|
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 =
|
|
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
|
-
right:
|
|
286
|
-
bottom: ve.value -
|
|
285
|
+
right: ae.value - s - l.value.chart.padding.right,
|
|
286
|
+
bottom: ve.value - fa.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
287
287
|
left: a + l.value.chart.grid.labels.yAxis.crosshairSize - r + l.value.chart.padding.left,
|
|
288
|
-
height: ve.value -
|
|
288
|
+
height: ve.value - fa.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
289
289
|
width: t,
|
|
290
290
|
scaleLabelX: a,
|
|
291
291
|
individualOffsetX: c
|
|
292
292
|
};
|
|
293
|
-
}),
|
|
293
|
+
}), ft = $(() => {
|
|
294
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
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 {
|
|
303
303
|
showOnlyAtModulo: a,
|
|
304
304
|
showOnlyFirstAndLast: c,
|
|
305
305
|
modulo: e
|
|
306
|
-
} = l.value.chart.grid.labels.xAxisLabels, s = Math.floor((S.value.end - S.value.start) /
|
|
307
|
-
return
|
|
308
|
-
if (!
|
|
309
|
-
const
|
|
310
|
-
if (!(
|
|
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
|
+
return le.value.map((r, o) => {
|
|
308
|
+
if (!r) return null;
|
|
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
|
+
if (!(B || F || E || L || C))
|
|
311
311
|
return null;
|
|
312
|
-
const
|
|
313
|
-
return `M${
|
|
314
|
-
}).filter((
|
|
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
|
+
return `M${_},${J} L${_},${oe}`;
|
|
314
|
+
}).filter((r) => r !== null).join(" ");
|
|
315
315
|
});
|
|
316
|
-
function
|
|
317
|
-
return !!
|
|
316
|
+
function ga() {
|
|
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");
|
|
323
323
|
}
|
|
324
324
|
return _l.value.font = `normal ${a}px sans-serif`, _l.value;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function xa() {
|
|
327
327
|
const a = je.value.querySelectorAll(".vue-ui-xy-tag");
|
|
328
328
|
a.length && Array.from(a).forEach((c) => c.style.opacity = "0");
|
|
329
329
|
}
|
|
330
330
|
function $l(a, c, e, s, t) {
|
|
331
331
|
e && (Ce.value[`${a}_${c}_${s}_${t}`] = e);
|
|
332
332
|
}
|
|
333
|
-
const
|
|
334
|
-
async function
|
|
335
|
-
await bl(),
|
|
333
|
+
const Ul = w(!1);
|
|
334
|
+
async function ba(a = !1) {
|
|
335
|
+
await bl(), Ul.value = a, na.value && (kl.value = a);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Zl() {
|
|
338
338
|
pl.value = !pl.value;
|
|
339
339
|
}
|
|
340
|
-
const
|
|
340
|
+
const le = $(() => {
|
|
341
341
|
const a = Math.max(...me.value.map((c) => Ye({ data: c.series, threshold: l.value.downsample.threshold }).length));
|
|
342
|
-
return
|
|
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,
|
|
346
346
|
start: S.value.start,
|
|
347
347
|
end: S.value.end
|
|
348
348
|
});
|
|
349
|
+
}), Ll = $(() => {
|
|
350
|
+
const a = l.value.chart.grid.labels.xAxisLabels.modulo;
|
|
351
|
+
return le.value.length ? Math.min(a, [...new Set(le.value.map((c) => c.text))].length) : a;
|
|
349
352
|
});
|
|
350
|
-
function
|
|
353
|
+
function ma(a, c) {
|
|
351
354
|
const e = pe.value.map((s) => ({
|
|
352
355
|
shape: s.shape || null,
|
|
353
356
|
name: s.name,
|
|
@@ -358,75 +361,75 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
358
361
|
prefix: s.prefix || l.value.chart.labels.prefix,
|
|
359
362
|
suffix: s.suffix || l.value.chart.labels.suffix
|
|
360
363
|
}));
|
|
361
|
-
|
|
364
|
+
Ol("selectTimeLabel", {
|
|
362
365
|
datapoint: e,
|
|
363
366
|
absoluteIndex: a.absoluteIndex,
|
|
364
367
|
label: a.text
|
|
365
368
|
});
|
|
366
369
|
}
|
|
367
|
-
const b =
|
|
368
|
-
function
|
|
370
|
+
const b = $(() => S.value.end - S.value.start);
|
|
371
|
+
function bt(a) {
|
|
369
372
|
O.value = a;
|
|
370
373
|
}
|
|
371
|
-
function
|
|
374
|
+
function ya() {
|
|
372
375
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
373
376
|
}
|
|
374
|
-
function
|
|
377
|
+
function Jl(a) {
|
|
375
378
|
hl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
376
379
|
}
|
|
377
|
-
function
|
|
380
|
+
function mt(a, c) {
|
|
378
381
|
let e = Array(a).fill(0);
|
|
379
382
|
for (let s = 0; s < c.length && s < a; s += 1)
|
|
380
383
|
e[s] = c[s];
|
|
381
384
|
return e;
|
|
382
385
|
}
|
|
383
|
-
function
|
|
386
|
+
function yt(a) {
|
|
384
387
|
const c = Math.max(...me.value.map((e) => Ye({ data: e.series, threshold: l.value.downsample.threshold }).length));
|
|
385
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;
|
|
386
389
|
}
|
|
387
|
-
async function
|
|
388
|
-
(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(
|
|
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 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 = {
|
|
389
392
|
start: 0,
|
|
390
393
|
end: Math.max(...me.value.map((a) => Ye({ data: a.series, threshold: l.value.downsample.threshold }).length))
|
|
391
|
-
},
|
|
394
|
+
}, Bl.value += 1);
|
|
392
395
|
}
|
|
393
|
-
function
|
|
394
|
-
|
|
396
|
+
function pt() {
|
|
397
|
+
Kl();
|
|
395
398
|
}
|
|
396
399
|
function fe(a) {
|
|
397
400
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
398
401
|
}
|
|
399
|
-
const
|
|
402
|
+
const pa = $(() => ye.value.max + cl.value);
|
|
400
403
|
function Ge(a) {
|
|
401
|
-
return a / (fe(
|
|
402
|
-
}
|
|
403
|
-
const ue = L(() => isNaN(Ge(cl.value)) ? n.value.bottom : n.value.bottom - n.value.height * Ge(cl.value));
|
|
404
|
-
function pa(a) {
|
|
405
|
-
const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Gl.value >= 0 ? n.value.bottom : ue.value;
|
|
406
|
-
return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ue.value <= 0 ? 1e-5 : a.y - ue.value);
|
|
404
|
+
return a / (fe(pa.value) ? pa.value : 1);
|
|
407
405
|
}
|
|
406
|
+
const ie = $(() => isNaN(Ge(cl.value)) ? n.value.bottom : n.value.bottom - n.value.height * Ge(cl.value));
|
|
408
407
|
function ka(a) {
|
|
408
|
+
const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Dl.value >= 0 ? n.value.bottom : ie.value;
|
|
409
|
+
return a.value >= 0 ? T(c - a.y <= 0 ? 1e-5 : c - a.y) : T(a.y - ie.value <= 0 ? 1e-5 : a.y - ie.value);
|
|
410
|
+
}
|
|
411
|
+
function _a(a) {
|
|
409
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);
|
|
410
413
|
}
|
|
411
|
-
const Z =
|
|
412
|
-
bar: n.value.width / b.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !
|
|
414
|
+
const Z = $(() => ({
|
|
415
|
+
bar: n.value.width / b.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
|
|
413
416
|
plot: n.value.width / b.value,
|
|
414
417
|
line: n.value.width / b.value
|
|
415
418
|
}));
|
|
416
419
|
function ke() {
|
|
417
420
|
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / b.value * 0.1 : Z.value.bar;
|
|
418
421
|
}
|
|
419
|
-
function
|
|
422
|
+
function Al(a) {
|
|
420
423
|
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / b.value * 0.05 : a.x + Z.value.bar / 2;
|
|
421
424
|
}
|
|
422
|
-
function _a(a) {
|
|
423
|
-
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ue.value) ? n.bottom.value : ue.value;
|
|
424
|
-
}
|
|
425
425
|
function wa(a) {
|
|
426
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ie.value) ? n.bottom.value : ie.value;
|
|
427
|
+
}
|
|
428
|
+
function Sa(a) {
|
|
426
429
|
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
427
430
|
}
|
|
428
|
-
function
|
|
429
|
-
|
|
431
|
+
function kt(a) {
|
|
432
|
+
Ol(
|
|
430
433
|
"selectX",
|
|
431
434
|
{
|
|
432
435
|
dataset: pe.value.map((c) => ({
|
|
@@ -440,7 +443,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
440
443
|
}
|
|
441
444
|
);
|
|
442
445
|
}
|
|
443
|
-
function
|
|
446
|
+
function _t() {
|
|
444
447
|
return Te.value.map((a) => ({
|
|
445
448
|
values: a.absoluteValues,
|
|
446
449
|
color: a.color,
|
|
@@ -448,9 +451,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
448
451
|
type: a.type
|
|
449
452
|
}));
|
|
450
453
|
}
|
|
451
|
-
async function
|
|
454
|
+
async function wt({ scale: a = 2 } = {}) {
|
|
452
455
|
if (!je.value) return;
|
|
453
|
-
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 });
|
|
454
457
|
return {
|
|
455
458
|
imageUri: t,
|
|
456
459
|
base64: r,
|
|
@@ -460,26 +463,26 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
460
463
|
aspectRatio: s
|
|
461
464
|
};
|
|
462
465
|
}
|
|
463
|
-
function
|
|
464
|
-
if (
|
|
465
|
-
|
|
466
|
+
function $a(a) {
|
|
467
|
+
if (te.value.includes(a.id))
|
|
468
|
+
te.value = te.value.filter((c) => c !== a.id);
|
|
466
469
|
else {
|
|
467
|
-
if (
|
|
468
|
-
|
|
470
|
+
if (te.value.length + 1 === Ie.value.length) return;
|
|
471
|
+
te.value.push(a.id);
|
|
469
472
|
}
|
|
470
|
-
|
|
473
|
+
Ol("selectLegend", pe.value.map((c) => ({
|
|
471
474
|
name: c.name,
|
|
472
475
|
values: c.absoluteValues,
|
|
473
476
|
color: c.color,
|
|
474
477
|
type: c.type
|
|
475
|
-
}))),
|
|
478
|
+
}))), Yl.value += 1;
|
|
476
479
|
}
|
|
477
|
-
const
|
|
480
|
+
const St = $(() => {
|
|
478
481
|
const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
|
|
479
482
|
return `${a}. ${c}`;
|
|
480
|
-
}),
|
|
483
|
+
}), La = $(() => ({
|
|
481
484
|
linePlot: b.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
482
|
-
})),
|
|
485
|
+
})), $t = $(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Lt = $(() => {
|
|
483
486
|
if (Array.isArray(l.value.chart.highlightArea))
|
|
484
487
|
return l.value.chart.highlightArea.map((c) => {
|
|
485
488
|
const e = Math.min(c.to, Ve.value - 1);
|
|
@@ -493,22 +496,22 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
493
496
|
to: Math.min(l.value.chart.highlightArea.to, Ve.value - 1)
|
|
494
497
|
};
|
|
495
498
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
496
|
-
}),
|
|
499
|
+
}), At = $(() => oa.value ? me.value.map((a, c) => ({
|
|
497
500
|
...a,
|
|
498
501
|
series: Ye({
|
|
499
502
|
data: a.series,
|
|
500
503
|
threshold: l.value.downsample.threshold
|
|
501
504
|
}),
|
|
502
505
|
id: `uniqueId_${c}`
|
|
503
|
-
})) : me.value),
|
|
506
|
+
})) : me.value), Mt = $(() => pe.value.map((a) => {
|
|
504
507
|
const c = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
505
508
|
return {
|
|
506
509
|
id: a.id,
|
|
507
510
|
name: a.name,
|
|
508
511
|
color: a.color,
|
|
509
|
-
values:
|
|
512
|
+
values: mt(b.value, c)
|
|
510
513
|
};
|
|
511
|
-
})),
|
|
514
|
+
})), zt = $(() => ({
|
|
512
515
|
responsiveBreakpoint: l.value.table.responsiveBreakpoint,
|
|
513
516
|
roundingValues: l.value.table.rounding,
|
|
514
517
|
showAverage: !1,
|
|
@@ -517,7 +520,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
517
520
|
fontFamily: l.value.chart.fontFamily,
|
|
518
521
|
prefix: l.value.chart.labels.prefix,
|
|
519
522
|
suffix: l.value.chart.labels.suffix,
|
|
520
|
-
colNames:
|
|
523
|
+
colNames: le.value.map((a) => a.text),
|
|
521
524
|
thead: {
|
|
522
525
|
backgroundColor: l.value.table.th.backgroundColor,
|
|
523
526
|
color: l.value.table.th.color,
|
|
@@ -531,98 +534,98 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
531
534
|
userOptions: {
|
|
532
535
|
show: !1
|
|
533
536
|
}
|
|
534
|
-
})), G =
|
|
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 = $(() => {
|
|
535
538
|
const a = Object.groupBy(De.value, (e) => e.scaleLabel), c = {};
|
|
536
539
|
for (const [e, s] of Object.entries(a)) {
|
|
537
540
|
const t = s.flatMap((r) => r.absoluteValues);
|
|
538
541
|
c[e] = {
|
|
539
542
|
min: Math.min(...t) || 0,
|
|
540
543
|
max: Math.max(...t) || 1,
|
|
541
|
-
groupId: `scale_group_${
|
|
544
|
+
groupId: `scale_group_${ea()}`
|
|
542
545
|
};
|
|
543
546
|
}
|
|
544
547
|
return c;
|
|
545
|
-
}),
|
|
546
|
-
const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !
|
|
548
|
+
}), Ct = $(() => {
|
|
549
|
+
const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
|
|
547
550
|
return n.value.width / b.value / a - Oe.value * a;
|
|
548
|
-
}), Oe =
|
|
551
|
+
}), Oe = $(() => Z.value.line * l.value.bar.periodGap), It = $(() => {
|
|
549
552
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
550
|
-
const a =
|
|
553
|
+
const a = At.value.filter((t) => !te.value.includes(t.id)), c = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
551
554
|
for (let t = 0; t < c; t += 1)
|
|
552
555
|
e.push(a.map((r) => r.series[t] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
|
|
553
556
|
const s = Math.min(...e);
|
|
554
557
|
return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
|
|
555
|
-
}), vl =
|
|
558
|
+
}), vl = $(() => pe.value.map((a) => ({
|
|
556
559
|
slotAbsoluteIndex: a.slotAbsoluteIndex,
|
|
557
560
|
shape: a.shape || null,
|
|
558
561
|
name: a.name,
|
|
559
562
|
color: a.color,
|
|
560
563
|
type: a.type,
|
|
561
|
-
value: a.absoluteValues.find((c, e) => e ===
|
|
564
|
+
value: a.absoluteValues.find((c, e) => e === k.value),
|
|
562
565
|
comments: a.comments || [],
|
|
563
566
|
prefix: a.prefix || l.value.chart.labels.prefix,
|
|
564
567
|
suffix: a.suffix || l.value.chart.labels.suffix
|
|
565
|
-
}))),
|
|
566
|
-
y: a >= 0 ?
|
|
568
|
+
}))), Aa = $(() => ye.value.ticks.map((a) => ({
|
|
569
|
+
y: a >= 0 ? ie.value - n.value.height * Ge(a) : ie.value + n.value.height * Ge(Math.abs(a)),
|
|
567
570
|
value: a,
|
|
568
571
|
prefix: l.value.chart.labels.prefix,
|
|
569
572
|
suffix: l.value.chart.labels.suffix
|
|
570
|
-
}))),
|
|
573
|
+
}))), Ma = $(() => {
|
|
571
574
|
const a = l.value.chart.annotations;
|
|
572
|
-
if (!a || !Array.isArray(a) || a.every((
|
|
575
|
+
if (!a || !Array.isArray(a) || a.every((L) => !L.show)) return [];
|
|
573
576
|
const c = a.filter(
|
|
574
|
-
(
|
|
577
|
+
(L) => L.show && (L.yAxis.yTop != null || L.yAxis.yBottom != null)
|
|
575
578
|
);
|
|
576
579
|
if (!c.length) return [];
|
|
577
|
-
const { left: e, right: s } = n.value, t =
|
|
578
|
-
const
|
|
579
|
-
return t -
|
|
580
|
+
const { left: e, right: s } = n.value, t = ie.value, r = n.value.height, o = ye.value.min, F = ye.value.max - o, E = (L) => {
|
|
581
|
+
const C = (L - 0) / F;
|
|
582
|
+
return t - C * r;
|
|
580
583
|
};
|
|
581
|
-
return c.map((
|
|
582
|
-
const { yAxis: { yTop:
|
|
583
|
-
|
|
584
|
-
const D =
|
|
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 = xt(_.fontSize);
|
|
586
|
+
oe.font = `${_.fontSize}px sans-serif`;
|
|
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;
|
|
585
588
|
let P;
|
|
586
|
-
|
|
587
|
-
const H = de - ge * 0.75 -
|
|
589
|
+
_.textAnchor === "middle" ? P = Ae - D / 2 - _.padding.left : _.textAnchor === "end" ? P = Ae - D - _.padding.right : P = Ae - _.padding.left;
|
|
590
|
+
const H = de - ge * 0.75 - _.padding.top;
|
|
588
591
|
return {
|
|
589
592
|
show: ![A, J, H].includes(NaN),
|
|
590
|
-
id: `annotation_y_${
|
|
593
|
+
id: `annotation_y_${ea()}`,
|
|
591
594
|
hasArea: N,
|
|
592
595
|
areaHeight: N ? Math.abs(A - J) : 0,
|
|
593
596
|
yTop: A,
|
|
594
597
|
yBottom: J,
|
|
595
|
-
config:
|
|
598
|
+
config: L.yAxis,
|
|
596
599
|
x1: e,
|
|
597
600
|
x2: s,
|
|
598
601
|
_text: { x: Ae, y: de },
|
|
599
602
|
_box: {
|
|
600
603
|
x: P,
|
|
601
604
|
y: H,
|
|
602
|
-
width: D +
|
|
603
|
-
height: ge +
|
|
604
|
-
fill:
|
|
605
|
-
stroke:
|
|
606
|
-
rx:
|
|
607
|
-
ry:
|
|
608
|
-
strokeWidth:
|
|
605
|
+
width: D + _.padding.left + _.padding.right,
|
|
606
|
+
height: ge + _.padding.top + _.padding.bottom,
|
|
607
|
+
fill: _.backgroundColor,
|
|
608
|
+
stroke: _.border.stroke,
|
|
609
|
+
rx: _.border.rx,
|
|
610
|
+
ry: _.border.ry,
|
|
611
|
+
strokeWidth: _.border.strokeWidth
|
|
609
612
|
}
|
|
610
613
|
};
|
|
611
614
|
});
|
|
612
|
-
}), Pe =
|
|
615
|
+
}), Pe = $(() => {
|
|
613
616
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
614
617
|
return a.filter((o) => o.type === "bar").map((o, B) => {
|
|
615
|
-
|
|
618
|
+
Jl(o);
|
|
616
619
|
const F = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
|
|
617
620
|
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - F) / (E - F));
|
|
618
|
-
const
|
|
621
|
+
const L = {
|
|
619
622
|
valueMin: F,
|
|
620
623
|
valueMax: E < 0 ? 0 : E
|
|
621
|
-
},
|
|
624
|
+
}, C = {
|
|
622
625
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
623
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)))
|
|
624
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
625
|
-
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 *
|
|
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;
|
|
626
629
|
return {
|
|
627
630
|
yOffset: T(P),
|
|
628
631
|
individualHeight: T(H),
|
|
@@ -634,7 +637,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
634
637
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[j] || ""
|
|
635
638
|
};
|
|
636
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) => {
|
|
637
|
-
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) => !
|
|
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;
|
|
638
641
|
return {
|
|
639
642
|
yOffset: T(P),
|
|
640
643
|
individualHeight: T(H),
|
|
@@ -674,46 +677,46 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
674
677
|
groupId: p.value[o.scaleLabel].groupId
|
|
675
678
|
};
|
|
676
679
|
});
|
|
677
|
-
}), _e =
|
|
680
|
+
}), _e = $(() => {
|
|
678
681
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
679
682
|
return a.filter((o) => o.type === "line").map((o, B) => {
|
|
680
|
-
|
|
683
|
+
Jl(o);
|
|
681
684
|
const F = p.value[o.scaleLabel].min, E = p.value[o.scaleLabel].max;
|
|
682
685
|
o.absoluteValues.filter((I) => ![null, void 0].includes(I)).map((I) => (I - F) / (E - F));
|
|
683
|
-
const
|
|
686
|
+
const L = {
|
|
684
687
|
valueMin: F,
|
|
685
688
|
valueMax: E
|
|
686
|
-
},
|
|
689
|
+
}, C = {
|
|
687
690
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
688
691
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
689
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
690
|
-
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);
|
|
691
694
|
return {
|
|
692
|
-
x: T(n.value.left + Z.value.line / 2 + Z.value.line *
|
|
693
|
-
y: T(n.value.bottom - P - H *
|
|
694
|
-
value: o.absoluteValues[
|
|
695
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
695
|
+
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
696
|
+
y: T(n.value.bottom - P - H * Ot),
|
|
697
|
+
value: o.absoluteValues[se],
|
|
698
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
|
|
696
699
|
};
|
|
697
|
-
}), fl = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), ce = o.series.map((I,
|
|
698
|
-
x: T(n.value.left + Z.value.line / 2 + Z.value.line *
|
|
700
|
+
}), fl = o.absoluteValues.map((I) => A.min >= 0 ? (I - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (I + Math.abs(A.min)) / (A.max + Math.abs(A.min))), ce = o.series.map((I, se) => [void 0, null].includes(o.absoluteValues[se]) ? {
|
|
701
|
+
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
699
702
|
y: K,
|
|
700
|
-
value: o.absoluteValues[
|
|
701
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
703
|
+
value: o.absoluteValues[se],
|
|
704
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
|
|
702
705
|
} : {
|
|
703
|
-
x: T(n.value.left + Z.value.line / 2 + Z.value.line *
|
|
704
|
-
y: T(n.value.bottom - P - (H * fl[
|
|
705
|
-
value: o.absoluteValues[
|
|
706
|
-
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[
|
|
707
|
-
}), He = l.value.line.cutNullValues ?
|
|
706
|
+
x: T(n.value.left + Z.value.line / 2 + Z.value.line * se),
|
|
707
|
+
y: T(n.value.bottom - P - (H * fl[se] || 0)),
|
|
708
|
+
value: o.absoluteValues[se],
|
|
709
|
+
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[se] || ""
|
|
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) => ({
|
|
708
711
|
y: I >= 0 ? K - H * (I / D) : K + H * Math.abs(I) / D,
|
|
709
712
|
value: I,
|
|
710
713
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
711
714
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
712
715
|
datapoint: o
|
|
713
716
|
})), Re = A.ticks.map((I) => {
|
|
714
|
-
const
|
|
717
|
+
const se = (I - A.min) / (A.max - A.min);
|
|
715
718
|
return {
|
|
716
|
-
y: I >= 0 ? he - H *
|
|
719
|
+
y: I >= 0 ? he - H * se : he + H * se,
|
|
717
720
|
value: I,
|
|
718
721
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
719
722
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
@@ -721,7 +724,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
721
724
|
};
|
|
722
725
|
});
|
|
723
726
|
p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Re : j, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? he : K, p.value[o.scaleLabel].individualMax = o.autoScaling ? ge : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = P, p.value[o.scaleLabel].individualHeight = H, p.value[o.scaleLabel].autoScaleYLabels = Re, p.value[o.scaleLabel].unique = De.value.filter((I) => I.scaleLabel === o.scaleLabel).length === 1;
|
|
724
|
-
const qe = f.value.useIndividualScale ? o.autoScaling ? he : K :
|
|
727
|
+
const qe = f.value.useIndividualScale ? o.autoScaling ? he : K : ie.value, gl = Math.max(Math.max(o.autoScaling ? he : j.at(-1) ? j.at(-1).y : 0, n.value.top), qe);
|
|
725
728
|
return {
|
|
726
729
|
...o,
|
|
727
730
|
yOffset: P,
|
|
@@ -732,16 +735,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
732
735
|
individualMax: o.autoScaling ? ge : D,
|
|
733
736
|
zeroPosition: o.autoScaling ? he : K,
|
|
734
737
|
curve: o.autoScaling ? W : He,
|
|
735
|
-
plots: o.autoScaling ? ce :
|
|
736
|
-
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ?
|
|
737
|
-
o.autoScaling ? ce :
|
|
738
|
+
plots: o.autoScaling ? ce : ne,
|
|
739
|
+
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Ga(
|
|
740
|
+
o.autoScaling ? ce : ne,
|
|
738
741
|
gl
|
|
739
|
-
) :
|
|
740
|
-
o.autoScaling ? ce.filter((I) => I.value !== null) :
|
|
742
|
+
) : Da(
|
|
743
|
+
o.autoScaling ? ce.filter((I) => I.value !== null) : ne.filter((I) => I.value !== null),
|
|
741
744
|
gl
|
|
742
|
-
) : l.value.line.cutNullValues ?
|
|
743
|
-
curveAreas: o.useArea ?
|
|
744
|
-
o.autoScaling ? l.value.line.cutNullValues ? ce : ce.filter((I) => I.value !== null) : l.value.line.cutNullValues ?
|
|
745
|
+
) : l.value.line.cutNullValues ? Ga(ne, gl) : Da(ne.filter((I) => I.value !== null), gl) : "",
|
|
746
|
+
curveAreas: o.useArea ? Ut(
|
|
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),
|
|
745
748
|
gl,
|
|
746
749
|
l.value.line.cutNullValues
|
|
747
750
|
) : [],
|
|
@@ -749,33 +752,33 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
749
752
|
groupId: p.value[o.scaleLabel].groupId
|
|
750
753
|
};
|
|
751
754
|
});
|
|
752
|
-
}), Le =
|
|
755
|
+
}), Le = $(() => {
|
|
753
756
|
const a = De.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (c - 1) : 0, r = n.value.height - t;
|
|
754
757
|
return a.filter((o) => o.type === "plot").map((o) => {
|
|
755
|
-
|
|
758
|
+
Jl(o);
|
|
756
759
|
const B = p.value[o.scaleLabel].min, F = p.value[o.scaleLabel].max;
|
|
757
760
|
o.absoluteValues.filter((W) => ![null, void 0].includes(W)).map((W) => (W - B) / (F - B));
|
|
758
761
|
const E = {
|
|
759
762
|
valueMin: B,
|
|
760
763
|
valueMax: F
|
|
761
|
-
},
|
|
764
|
+
}, L = {
|
|
762
765
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
763
766
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
764
|
-
},
|
|
765
|
-
const V = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(A)) /
|
|
767
|
+
}, C = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, _ = Ke(L.min, L.max === L.min ? L.max * Y : L.max, C), N = Ke(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * Y : E.valueMax, C), A = _.min >= 0 ? 0 : Math.abs(_.min), J = 0, oe = _.max + A, D = N.max + Math.abs(J), ge = o.stackIndex, Ae = c - 1 - ge, tl = s ? 1 - o.cumulatedStackRatio : 0, de = s ? r * tl + e * Ae : 0, P = s ? r * o.stackRatio : n.value.height, H = n.value.bottom - de - P * A / oe, K = n.value.bottom - de - P * J / D, he = o.series.map((W, Q) => {
|
|
768
|
+
const V = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(A)) / oe : Ge(W);
|
|
766
769
|
return {
|
|
767
770
|
x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * Q),
|
|
768
771
|
y: T(n.value.bottom - de - P * V),
|
|
769
772
|
value: o.absoluteValues[Q],
|
|
770
773
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[Q] || ""
|
|
771
774
|
};
|
|
772
|
-
}),
|
|
775
|
+
}), ne = o.absoluteValues.map((W) => N.min >= 0 ? (W - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (W + Math.abs(N.min)) / (N.max + Math.abs(N.min))), fl = o.series.map((W, Q) => ({
|
|
773
776
|
x: T(n.value.left + Z.value.plot / 2 + Z.value.plot * Q),
|
|
774
|
-
y: T(n.value.bottom - de - (P *
|
|
777
|
+
y: T(n.value.bottom - de - (P * ne[Q] || 0)),
|
|
775
778
|
value: o.absoluteValues[Q],
|
|
776
779
|
comment: o.comments && o.comments.slice(S.value.start, S.value.end)[Q] || ""
|
|
777
|
-
})), ce =
|
|
778
|
-
y: W >= 0 ? H - P * (W /
|
|
780
|
+
})), ce = _.ticks.map((W) => ({
|
|
781
|
+
y: W >= 0 ? H - P * (W / oe) : H + P * Math.abs(W) / oe,
|
|
779
782
|
value: W,
|
|
780
783
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
781
784
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
@@ -790,20 +793,20 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
790
793
|
datapoint: o
|
|
791
794
|
};
|
|
792
795
|
});
|
|
793
|
-
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? He : ce, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? K : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? D :
|
|
796
|
+
return p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? He : ce, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? K : H, p.value[o.scaleLabel].individualMax = o.autoScaling ? D : oe, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = de, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = He, p.value[o.scaleLabel].unique = De.value.filter((W) => W.scaleLabel === o.scaleLabel).length === 1, {
|
|
794
797
|
...o,
|
|
795
798
|
yOffset: de,
|
|
796
799
|
autoScaleYLabels: He,
|
|
797
800
|
individualHeight: P,
|
|
798
801
|
scaleYLabels: o.autoScaling ? He : ce,
|
|
799
|
-
individualScale: o.autoScaling ? N :
|
|
800
|
-
individualMax: o.autoScaling ? D :
|
|
802
|
+
individualScale: o.autoScaling ? N : _,
|
|
803
|
+
individualMax: o.autoScaling ? D : oe,
|
|
801
804
|
zeroPosition: o.autoScaling ? K : H,
|
|
802
805
|
plots: o.autoScaling ? fl : he,
|
|
803
806
|
groupId: p.value[o.scaleLabel].groupId
|
|
804
807
|
};
|
|
805
808
|
});
|
|
806
|
-
}), dl =
|
|
809
|
+
}), dl = $(() => {
|
|
807
810
|
const a = _e.value.map((r) => ({
|
|
808
811
|
name: r.name,
|
|
809
812
|
color: r.color,
|
|
@@ -849,7 +852,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
849
852
|
id: r.id,
|
|
850
853
|
groupId: r.groupId,
|
|
851
854
|
scaleLabel: r.scaleLabel,
|
|
852
|
-
name:
|
|
855
|
+
name: re(
|
|
853
856
|
l.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
854
857
|
F,
|
|
855
858
|
F,
|
|
@@ -866,20 +869,20 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
866
869
|
}))
|
|
867
870
|
};
|
|
868
871
|
});
|
|
869
|
-
}),
|
|
872
|
+
}), za = $(() => ({
|
|
870
873
|
datapoint: vl.value,
|
|
871
|
-
seriesIndex:
|
|
874
|
+
seriesIndex: k.value,
|
|
872
875
|
series: Te.value,
|
|
873
876
|
bars: Pe.value,
|
|
874
877
|
lines: _e.value,
|
|
875
878
|
plots: Le.value,
|
|
876
879
|
config: l.value
|
|
877
|
-
})),
|
|
878
|
-
let a = "", c = vl.value.map((t) => t.value).filter((t) =>
|
|
879
|
-
const e =
|
|
880
|
-
return
|
|
881
|
-
absoluteIndex:
|
|
882
|
-
seriesIndex:
|
|
880
|
+
})), Tt = $(() => {
|
|
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
|
+
const e = le.value[k.value], s = l.value.chart.tooltip.customFormat;
|
|
883
|
+
return Zt(s) && Jt(() => s({
|
|
884
|
+
absoluteIndex: k.value + S.value.start,
|
|
885
|
+
seriesIndex: k.value,
|
|
883
886
|
datapoint: vl.value,
|
|
884
887
|
series: Te.value,
|
|
885
888
|
bars: Pe.value,
|
|
@@ -887,8 +890,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
887
890
|
plots: Le.value,
|
|
888
891
|
config: l.value
|
|
889
892
|
})) ? s({
|
|
890
|
-
absoluteIndex:
|
|
891
|
-
seriesIndex:
|
|
893
|
+
absoluteIndex: k.value + S.value.start,
|
|
894
|
+
seriesIndex: k.value,
|
|
892
895
|
datapoint: vl.value,
|
|
893
896
|
series: Te.value,
|
|
894
897
|
bars: Pe.value,
|
|
@@ -896,14 +899,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
896
899
|
plots: Le.value,
|
|
897
900
|
config: l.value
|
|
898
901
|
}) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), vl.value.forEach((t) => {
|
|
899
|
-
if (
|
|
902
|
+
if (zl(t.value)) {
|
|
900
903
|
let r = "", o = "";
|
|
901
904
|
switch (il.value[t.type]) {
|
|
902
905
|
case "bar":
|
|
903
|
-
r = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
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>`;
|
|
904
907
|
break;
|
|
905
908
|
case "line":
|
|
906
|
-
!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>`;
|
|
907
910
|
break;
|
|
908
911
|
case "plot":
|
|
909
912
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -911,7 +914,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
911
914
|
break;
|
|
912
915
|
}
|
|
913
916
|
if (t.shape === "star") {
|
|
914
|
-
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>`;
|
|
915
918
|
break;
|
|
916
919
|
}
|
|
917
920
|
if (t.shape === "triangle") {
|
|
@@ -935,7 +938,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
935
938
|
break;
|
|
936
939
|
}
|
|
937
940
|
}
|
|
938
|
-
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ?
|
|
941
|
+
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? re(
|
|
939
942
|
t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
940
943
|
t.value,
|
|
941
944
|
xe({
|
|
@@ -949,25 +952,23 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
949
952
|
v: T(Math.abs(t.value) / c * 100),
|
|
950
953
|
s: "%",
|
|
951
954
|
r: l.value.chart.tooltip.roundingPercentage
|
|
952
|
-
})})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(S.value.start, S.value.end)[
|
|
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>`);
|
|
953
956
|
}
|
|
954
957
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`);
|
|
955
|
-
})
|
|
956
|
-
L(() => {
|
|
958
|
+
}), Ca = $(() => {
|
|
957
959
|
if (Ie.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
958
960
|
const a = pe.value.map((e) => ({
|
|
959
961
|
label: e.name,
|
|
960
962
|
color: e.color,
|
|
961
963
|
type: e.type
|
|
962
964
|
})), c = [];
|
|
963
|
-
return
|
|
965
|
+
return le.value.forEach((e, s) => {
|
|
964
966
|
const t = [e.text];
|
|
965
967
|
pe.value.forEach((r) => {
|
|
966
968
|
t.push(fe(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
|
|
967
969
|
}), c.push(t);
|
|
968
970
|
}), { head: a, body: c };
|
|
969
|
-
})
|
|
970
|
-
const Al = L(() => {
|
|
971
|
+
}), Ml = $(() => {
|
|
971
972
|
const a = l.value.table.showSum;
|
|
972
973
|
let c = [""].concat(pe.value.map((r) => r.name));
|
|
973
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>'));
|
|
@@ -976,9 +977,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
976
977
|
const o = pe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
|
|
977
978
|
e.push(
|
|
978
979
|
[
|
|
979
|
-
|
|
980
|
+
le.value[r].text ?? "-"
|
|
980
981
|
].concat(pe.value.map(
|
|
981
|
-
(B) =>
|
|
982
|
+
(B) => re(
|
|
982
983
|
B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
983
984
|
B.absoluteValues[r] ?? 0,
|
|
984
985
|
xe({
|
|
@@ -1006,26 +1007,26 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1006
1007
|
}, t = [l.value.table.columnNames.period].concat(pe.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
|
|
1007
1008
|
return { head: c, body: e, config: s, colNames: t };
|
|
1008
1009
|
});
|
|
1009
|
-
function
|
|
1010
|
-
const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...
|
|
1011
|
-
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" });
|
|
1012
1013
|
}
|
|
1013
|
-
function
|
|
1014
|
-
|
|
1014
|
+
function Ta(a, c = null) {
|
|
1015
|
+
sa.value = a, a ? k.value = c : k.value = null;
|
|
1015
1016
|
}
|
|
1016
|
-
function
|
|
1017
|
+
function Oa() {
|
|
1017
1018
|
f.value.showTable = !f.value.showTable;
|
|
1018
1019
|
}
|
|
1019
|
-
function
|
|
1020
|
+
function Na() {
|
|
1020
1021
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1021
1022
|
}
|
|
1022
|
-
function
|
|
1023
|
+
function Va() {
|
|
1023
1024
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1024
1025
|
}
|
|
1025
|
-
function
|
|
1026
|
-
al.value = a,
|
|
1026
|
+
function Pa(a) {
|
|
1027
|
+
al.value = a, ua.value += 1;
|
|
1027
1028
|
}
|
|
1028
|
-
function
|
|
1029
|
+
function Ha() {
|
|
1029
1030
|
if (!l.value.responsiveProportionalSizing) {
|
|
1030
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;
|
|
1031
1032
|
return;
|
|
@@ -1037,45 +1038,45 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1037
1038
|
threshold: 10,
|
|
1038
1039
|
fallback: 10
|
|
1039
1040
|
}), x.value.yAxis = ol({
|
|
1040
|
-
relator:
|
|
1041
|
+
relator: ae.value,
|
|
1041
1042
|
adjuster: 1e3,
|
|
1042
1043
|
source: l.value.chart.grid.labels.axis.fontSize,
|
|
1043
1044
|
threshold: 10,
|
|
1044
1045
|
fallback: 10
|
|
1045
1046
|
}), x.value.xAxis = ol({
|
|
1046
|
-
relator:
|
|
1047
|
+
relator: ae.value,
|
|
1047
1048
|
adjuster: 1e3,
|
|
1048
1049
|
source: l.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1049
1050
|
threshold: 10,
|
|
1050
1051
|
fallback: 10
|
|
1051
1052
|
}), x.value.plotLabels = ol({
|
|
1052
|
-
relator:
|
|
1053
|
+
relator: ae.value,
|
|
1053
1054
|
adjuster: 800,
|
|
1054
1055
|
source: l.value.chart.labels.fontSize,
|
|
1055
1056
|
threshold: 10,
|
|
1056
1057
|
fallback: 10
|
|
1057
1058
|
}), $e.value.plot = ol({
|
|
1058
|
-
relator:
|
|
1059
|
+
relator: ae.value,
|
|
1059
1060
|
adjuster: 800,
|
|
1060
1061
|
source: l.value.plot.radius,
|
|
1061
1062
|
threshold: 1,
|
|
1062
1063
|
fallback: 1
|
|
1063
1064
|
}), $e.value.line = ol({
|
|
1064
|
-
relator:
|
|
1065
|
+
relator: ae.value,
|
|
1065
1066
|
adjuster: 800,
|
|
1066
1067
|
source: l.value.line.radius,
|
|
1067
1068
|
threshold: 1,
|
|
1068
1069
|
fallback: 1
|
|
1069
1070
|
});
|
|
1070
1071
|
}
|
|
1071
|
-
const hl =
|
|
1072
|
-
function
|
|
1073
|
-
|
|
1072
|
+
const hl = $(() => !!l.value.debug);
|
|
1073
|
+
function Ra() {
|
|
1074
|
+
Ua(m.dataset) ? (la({
|
|
1074
1075
|
componentName: "VueUiXy",
|
|
1075
1076
|
type: "dataset",
|
|
1076
1077
|
debug: hl.value
|
|
1077
1078
|
}), wl.value = !0) : m.dataset.forEach((c, e) => {
|
|
1078
|
-
[null, void 0].includes(c.name) && (
|
|
1079
|
+
[null, void 0].includes(c.name) && (la({
|
|
1079
1080
|
componentName: "VueUiXy",
|
|
1080
1081
|
type: "datasetSerieAttribute",
|
|
1081
1082
|
property: "name (string)",
|
|
@@ -1084,11 +1085,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1084
1085
|
}), wl.value = !0);
|
|
1085
1086
|
}), hl.value && m.dataset.forEach((c) => {
|
|
1086
1087
|
c.series.forEach((e, s) => {
|
|
1087
|
-
|
|
1088
|
+
zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1088
1089
|
-----> The serie '${c.name}' contains the value '${e}' at index ${s}.
|
|
1089
1090
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1090
1091
|
});
|
|
1091
|
-
}),
|
|
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 = {
|
|
1092
1093
|
dataLabels: {
|
|
1093
1094
|
show: !0
|
|
1094
1095
|
},
|
|
@@ -1100,55 +1101,55 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1100
1101
|
const a = 12;
|
|
1101
1102
|
if (l.value.responsive) {
|
|
1102
1103
|
const e = je.value.parentNode;
|
|
1103
|
-
We.value && (We.value.unobserve(
|
|
1104
|
+
We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
|
|
1104
1105
|
const { height: s, width: t } = e.getBoundingClientRect();
|
|
1105
1106
|
let r = null, o = 0;
|
|
1106
1107
|
l.value.chart.title.show && sl.value && (r = sl.value, o = r.getBoundingClientRect().height);
|
|
1107
1108
|
let B = null, F = 0;
|
|
1108
|
-
l.value.chart.zoom.show && Ve.value > 6 &&
|
|
1109
|
-
let E = null,
|
|
1110
|
-
l.value.chart.legend.show && el.value && (E = el.value,
|
|
1111
|
-
let
|
|
1112
|
-
ul.value && (
|
|
1109
|
+
l.value.chart.zoom.show && Ve.value > 6 && Wl.value && Se.value && Se.value.$el && (B = Se.value.$el, F = B.getBoundingClientRect().height);
|
|
1110
|
+
let E = null, L = 0;
|
|
1111
|
+
l.value.chart.legend.show && el.value && (E = el.value, L = E.getBoundingClientRect().height);
|
|
1112
|
+
let C = 0;
|
|
1113
|
+
ul.value && (C = ul.value.getBoundingClientRect().height);
|
|
1113
1114
|
let Y = 0;
|
|
1114
|
-
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o -
|
|
1115
|
-
const
|
|
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();
|
|
1116
|
+
const _ = new ResizeObserver((N) => {
|
|
1116
1117
|
for (const A of N)
|
|
1117
|
-
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 ?
|
|
1118
|
-
ve.value = A.contentRect.height - o -
|
|
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(() => {
|
|
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();
|
|
1119
1120
|
});
|
|
1120
1121
|
});
|
|
1121
|
-
We.value =
|
|
1122
|
+
We.value = _, Rl.value = e, _.observe(e);
|
|
1122
1123
|
} else
|
|
1123
|
-
ve.value = l.value.chart.height,
|
|
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}`;
|
|
1124
1125
|
}
|
|
1125
|
-
return
|
|
1126
|
-
|
|
1127
|
-
|
|
1126
|
+
return Ba(() => {
|
|
1127
|
+
Ra(), Kl(), document.addEventListener("mousemove", (a) => {
|
|
1128
|
+
rt.value = {
|
|
1128
1129
|
x: a.clientX,
|
|
1129
1130
|
y: a.clientY
|
|
1130
1131
|
};
|
|
1131
|
-
}), document.addEventListener("scroll",
|
|
1132
|
-
}),
|
|
1133
|
-
document.removeEventListener("scroll",
|
|
1134
|
-
}),
|
|
1132
|
+
}), document.addEventListener("scroll", xa);
|
|
1133
|
+
}), Ya(() => {
|
|
1134
|
+
document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
|
|
1135
|
+
}), oo({
|
|
1135
1136
|
timeLabelsEls: ll,
|
|
1136
|
-
timeLabels:
|
|
1137
|
+
timeLabels: le,
|
|
1137
1138
|
slicer: S,
|
|
1138
1139
|
configRef: l,
|
|
1139
1140
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1140
1141
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
|
|
1141
|
-
isAutoSize:
|
|
1142
|
-
}),
|
|
1142
|
+
isAutoSize: ct
|
|
1143
|
+
}), Ql(() => m.dataset, (a) => {
|
|
1143
1144
|
Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...me.value.map((c) => Ye({
|
|
1144
1145
|
data: c.series,
|
|
1145
1146
|
threshold: l.value.downsample.threshold
|
|
1146
1147
|
}).length)), S.value = {
|
|
1147
1148
|
start: 0,
|
|
1148
1149
|
end: Ve.value
|
|
1149
|
-
},
|
|
1150
|
-
}, { deep: !0 }),
|
|
1151
|
-
|
|
1150
|
+
}, Bl.value += 1, Yl.value += 1;
|
|
1151
|
+
}, { deep: !0 }), Ql(() => m.config, (a) => {
|
|
1152
|
+
Xl.value || (l.value = El()), Ra(), ia.value += 1, ra.value += 1, f.value = {
|
|
1152
1153
|
dataLabels: {
|
|
1153
1154
|
show: !0
|
|
1154
1155
|
},
|
|
@@ -1157,7 +1158,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1157
1158
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1158
1159
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1159
1160
|
};
|
|
1160
|
-
}, { deep: !0 }),
|
|
1161
|
+
}, { deep: !0 }), Ql(l, () => {
|
|
1161
1162
|
f.value = {
|
|
1162
1163
|
dataLabels: {
|
|
1163
1164
|
show: !0
|
|
@@ -1167,36 +1168,36 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1167
1168
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1168
1169
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1169
1170
|
};
|
|
1170
|
-
}, { immediate: !0 }),
|
|
1171
|
-
getData:
|
|
1172
|
-
getImage:
|
|
1173
|
-
generatePdf:
|
|
1174
|
-
generateImage:
|
|
1175
|
-
generateCsv:
|
|
1176
|
-
toggleStack:
|
|
1177
|
-
toggleTable:
|
|
1178
|
-
toggleLabels:
|
|
1179
|
-
toggleTooltip:
|
|
1180
|
-
toggleAnnotator:
|
|
1181
|
-
toggleFullscreen:
|
|
1171
|
+
}, { immediate: !0 }), Za({
|
|
1172
|
+
getData: _t,
|
|
1173
|
+
getImage: wt,
|
|
1174
|
+
generatePdf: va,
|
|
1175
|
+
generateImage: da,
|
|
1176
|
+
generateCsv: Ia,
|
|
1177
|
+
toggleStack: ya,
|
|
1178
|
+
toggleTable: Oa,
|
|
1179
|
+
toggleLabels: Na,
|
|
1180
|
+
toggleTooltip: Va,
|
|
1181
|
+
toggleAnnotator: Zl,
|
|
1182
|
+
toggleFullscreen: Pa
|
|
1182
1183
|
}), (a, c) => (u(), i("div", {
|
|
1183
1184
|
id: `vue-ui-xy_${U.value}`,
|
|
1184
1185
|
class: Ue(`vue-ui-xy ${al.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1185
1186
|
ref_key: "chart",
|
|
1186
1187
|
ref: je,
|
|
1187
|
-
style:
|
|
1188
|
-
onMouseenter: c[7] || (c[7] = () =>
|
|
1189
|
-
onMouseleave: c[8] || (c[8] = () =>
|
|
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%" : ""}`),
|
|
1189
|
+
onMouseenter: c[7] || (c[7] = () => ba(!0)),
|
|
1190
|
+
onMouseleave: c[8] || (c[8] = () => ba(!1))
|
|
1190
1191
|
}, [
|
|
1191
|
-
l.value.chart.userOptions.buttons.annotator && be.value ? (u(), Me(v(
|
|
1192
|
+
l.value.chart.userOptions.buttons.annotator && be.value ? (u(), Me(v(ot), {
|
|
1192
1193
|
key: 0,
|
|
1193
1194
|
svgRef: be.value,
|
|
1194
1195
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1195
1196
|
color: l.value.chart.color,
|
|
1196
1197
|
active: pl.value,
|
|
1197
|
-
onClose:
|
|
1198
|
+
onClose: Zl
|
|
1198
1199
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1199
|
-
|
|
1200
|
+
$t.value ? (u(), i("div", {
|
|
1200
1201
|
key: 1,
|
|
1201
1202
|
ref_key: "noTitle",
|
|
1202
1203
|
ref: rl,
|
|
@@ -1208,10 +1209,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1208
1209
|
ref_key: "chartTitle",
|
|
1209
1210
|
ref: sl,
|
|
1210
1211
|
class: "vue-ui-xy-title",
|
|
1211
|
-
style:
|
|
1212
|
+
style: z(`font-family:${l.value.chart.fontFamily}`)
|
|
1212
1213
|
}, [
|
|
1213
|
-
(u(), Me(
|
|
1214
|
-
key: `title_${
|
|
1214
|
+
(u(), Me(uo, {
|
|
1215
|
+
key: `title_${ia.value}`,
|
|
1215
1216
|
config: {
|
|
1216
1217
|
title: {
|
|
1217
1218
|
cy: "xy-div-title",
|
|
@@ -1224,13 +1225,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1224
1225
|
}
|
|
1225
1226
|
}, null, 8, ["config"]))
|
|
1226
1227
|
], 4)) : d("", !0),
|
|
1227
|
-
l.value.chart.userOptions.show && (
|
|
1228
|
+
l.value.chart.userOptions.show && (Fl.value || kl.value) ? (u(), Me(v(ja), {
|
|
1228
1229
|
ref: "defails",
|
|
1229
|
-
key: `user_options_${
|
|
1230
|
+
key: `user_options_${ua.value}`,
|
|
1230
1231
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1231
1232
|
color: l.value.chart.color,
|
|
1232
|
-
isPrinting: v(
|
|
1233
|
-
isImaging: v(
|
|
1233
|
+
isPrinting: v(Gl),
|
|
1234
|
+
isImaging: v(ca),
|
|
1234
1235
|
uid: U.value,
|
|
1235
1236
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
1236
1237
|
hasPdf: l.value.chart.userOptions.buttons.pdf,
|
|
@@ -1238,7 +1239,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1238
1239
|
hasImg: l.value.chart.userOptions.buttons.img,
|
|
1239
1240
|
hasLabel: l.value.chart.userOptions.buttons.labels,
|
|
1240
1241
|
hasTable: l.value.chart.userOptions.buttons.table,
|
|
1241
|
-
hasStack:
|
|
1242
|
+
hasStack: Tl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
|
|
1242
1243
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1243
1244
|
isStacked: f.value.isStacked,
|
|
1244
1245
|
isFullscreen: al.value,
|
|
@@ -1250,85 +1251,85 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1250
1251
|
isAnnotation: pl.value,
|
|
1251
1252
|
callbacks: l.value.chart.userOptions.callbacks,
|
|
1252
1253
|
printScale: l.value.chart.userOptions.print.scale,
|
|
1253
|
-
onToggleFullscreen:
|
|
1254
|
-
onGeneratePdf: v(
|
|
1255
|
-
onGenerateCsv:
|
|
1256
|
-
onGenerateImage: v(
|
|
1257
|
-
onToggleTable:
|
|
1258
|
-
onToggleLabels:
|
|
1259
|
-
onToggleStack:
|
|
1260
|
-
onToggleTooltip:
|
|
1261
|
-
onToggleAnnotator:
|
|
1262
|
-
style:
|
|
1263
|
-
visibility:
|
|
1254
|
+
onToggleFullscreen: Pa,
|
|
1255
|
+
onGeneratePdf: v(va),
|
|
1256
|
+
onGenerateCsv: Ia,
|
|
1257
|
+
onGenerateImage: v(da),
|
|
1258
|
+
onToggleTable: Oa,
|
|
1259
|
+
onToggleLabels: Na,
|
|
1260
|
+
onToggleStack: ya,
|
|
1261
|
+
onToggleTooltip: Va,
|
|
1262
|
+
onToggleAnnotator: Zl,
|
|
1263
|
+
style: z({
|
|
1264
|
+
visibility: Fl.value ? kl.value ? "visible" : "hidden" : "visible"
|
|
1264
1265
|
})
|
|
1265
|
-
},
|
|
1266
|
+
}, Rt({ _: 2 }, [
|
|
1266
1267
|
a.$slots.menuIcon ? {
|
|
1267
1268
|
name: "menuIcon",
|
|
1268
|
-
fn:
|
|
1269
|
+
fn: ue(({ isOpen: e, color: s }) => [
|
|
1269
1270
|
q(a.$slots, "menuIcon", Ze(Je({ isOpen: e, color: s })), void 0, !0)
|
|
1270
1271
|
]),
|
|
1271
1272
|
key: "0"
|
|
1272
1273
|
} : void 0,
|
|
1273
1274
|
a.$slots.optionTooltip ? {
|
|
1274
1275
|
name: "optionTooltip",
|
|
1275
|
-
fn:
|
|
1276
|
+
fn: ue(() => [
|
|
1276
1277
|
q(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1277
1278
|
]),
|
|
1278
1279
|
key: "1"
|
|
1279
1280
|
} : void 0,
|
|
1280
1281
|
a.$slots.optionPdf ? {
|
|
1281
1282
|
name: "optionPdf",
|
|
1282
|
-
fn:
|
|
1283
|
+
fn: ue(() => [
|
|
1283
1284
|
q(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1284
1285
|
]),
|
|
1285
1286
|
key: "2"
|
|
1286
1287
|
} : void 0,
|
|
1287
1288
|
a.$slots.optionCsv ? {
|
|
1288
1289
|
name: "optionCsv",
|
|
1289
|
-
fn:
|
|
1290
|
+
fn: ue(() => [
|
|
1290
1291
|
q(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1291
1292
|
]),
|
|
1292
1293
|
key: "3"
|
|
1293
1294
|
} : void 0,
|
|
1294
1295
|
a.$slots.optionImg ? {
|
|
1295
1296
|
name: "optionImg",
|
|
1296
|
-
fn:
|
|
1297
|
+
fn: ue(() => [
|
|
1297
1298
|
q(a.$slots, "optionImg", {}, void 0, !0)
|
|
1298
1299
|
]),
|
|
1299
1300
|
key: "4"
|
|
1300
1301
|
} : void 0,
|
|
1301
1302
|
a.$slots.optionTable ? {
|
|
1302
1303
|
name: "optionTable",
|
|
1303
|
-
fn:
|
|
1304
|
+
fn: ue(() => [
|
|
1304
1305
|
q(a.$slots, "optionTable", {}, void 0, !0)
|
|
1305
1306
|
]),
|
|
1306
1307
|
key: "5"
|
|
1307
1308
|
} : void 0,
|
|
1308
1309
|
a.$slots.optionLabels ? {
|
|
1309
1310
|
name: "optionLabels",
|
|
1310
|
-
fn:
|
|
1311
|
+
fn: ue(() => [
|
|
1311
1312
|
q(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1312
1313
|
]),
|
|
1313
1314
|
key: "6"
|
|
1314
1315
|
} : void 0,
|
|
1315
1316
|
a.$slots.optionStack ? {
|
|
1316
1317
|
name: "optionStack",
|
|
1317
|
-
fn:
|
|
1318
|
+
fn: ue(() => [
|
|
1318
1319
|
q(a.$slots, "optionStack", {}, void 0, !0)
|
|
1319
1320
|
]),
|
|
1320
1321
|
key: "7"
|
|
1321
1322
|
} : void 0,
|
|
1322
1323
|
a.$slots.optionFullscreen ? {
|
|
1323
1324
|
name: "optionFullscreen",
|
|
1324
|
-
fn:
|
|
1325
|
+
fn: ue(({ toggleFullscreen: e, isFullscreen: s }) => [
|
|
1325
1326
|
q(a.$slots, "optionFullscreen", Ze(Je({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
|
|
1326
1327
|
]),
|
|
1327
1328
|
key: "8"
|
|
1328
1329
|
} : void 0,
|
|
1329
1330
|
a.$slots.optionAnnotator ? {
|
|
1330
1331
|
name: "optionAnnotator",
|
|
1331
|
-
fn:
|
|
1332
|
+
fn: ue(({ toggleAnnotator: e, isAnnotator: s }) => [
|
|
1332
1333
|
q(a.$slots, "optionAnnotator", Ze(Je({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
|
|
1333
1334
|
]),
|
|
1334
1335
|
key: "9"
|
|
@@ -1341,22 +1342,22 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1341
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"]),
|
|
1342
1343
|
width: "100%",
|
|
1343
1344
|
viewBox: yl.value,
|
|
1344
|
-
style:
|
|
1345
|
+
style: z({
|
|
1345
1346
|
background: "transparent",
|
|
1346
1347
|
color: l.value.chart.color,
|
|
1347
1348
|
fontFamily: l.value.chart.fontFamily
|
|
1348
1349
|
}),
|
|
1349
|
-
"aria-label":
|
|
1350
|
+
"aria-label": St.value,
|
|
1350
1351
|
role: "img",
|
|
1351
1352
|
"aria-live": "polite",
|
|
1352
1353
|
preserveAspectRatio: "xMidYMid"
|
|
1353
1354
|
}, [
|
|
1354
1355
|
g("g", {
|
|
1355
1356
|
ref_key: "G",
|
|
1356
|
-
ref:
|
|
1357
|
+
ref: ut,
|
|
1357
1358
|
class: "vue-data-ui-g"
|
|
1358
1359
|
}, [
|
|
1359
|
-
xl(v(
|
|
1360
|
+
xl(v(tt)),
|
|
1360
1361
|
a.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
1361
1362
|
key: 0,
|
|
1362
1363
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
@@ -1368,9 +1369,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1368
1369
|
}
|
|
1369
1370
|
}, [
|
|
1370
1371
|
q(a.$slots, "chart-background", {}, void 0, !0)
|
|
1371
|
-
], 8,
|
|
1372
|
-
b.value > 0 ? (u(), i("g",
|
|
1373
|
-
g("g",
|
|
1372
|
+
], 8, xo)) : d("", !0),
|
|
1373
|
+
b.value > 0 ? (u(), i("g", bo, [
|
|
1374
|
+
g("g", mo, [
|
|
1374
1375
|
l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
|
|
1375
1376
|
key: 0,
|
|
1376
1377
|
stroke: l.value.chart.grid.stroke,
|
|
@@ -1381,7 +1382,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1381
1382
|
y2: v(R)(n.value.bottom),
|
|
1382
1383
|
"stroke-linecap": "round",
|
|
1383
1384
|
style: { animation: "none !important" }
|
|
1384
|
-
}, null, 8,
|
|
1385
|
+
}, null, 8, yo)) : d("", !0),
|
|
1385
1386
|
f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(h, { key: 2 }, y(dl.value, (e) => (u(), i("g", null, [
|
|
1386
1387
|
e.id === M.value && e.yLabels.length ? (u(!0), i(h, { key: 0 }, y(e.yLabels, (s) => (u(), i("line", {
|
|
1387
1388
|
x1: n.value.left + G.value,
|
|
@@ -1392,7 +1393,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1392
1393
|
"stroke-width": 0.5,
|
|
1393
1394
|
"stroke-linecap": "round",
|
|
1394
1395
|
style: { animation: "none !important" }
|
|
1395
|
-
}, null, 8,
|
|
1396
|
+
}, null, 8, wo))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 }, y(e.yLabels, (s) => (u(), i("line", {
|
|
1396
1397
|
x1: n.value.left + G.value,
|
|
1397
1398
|
x2: n.value.right - G.value,
|
|
1398
1399
|
y1: v(R)(s.y),
|
|
@@ -1401,7 +1402,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1401
1402
|
"stroke-width": 0.5,
|
|
1402
1403
|
"stroke-linecap": "round",
|
|
1403
1404
|
style: { animation: "none !important" }
|
|
1404
|
-
}, null, 8,
|
|
1405
|
+
}, null, 8, So))), 256)) : d("", !0)
|
|
1405
1406
|
]))), 256)) : d("", !0) : (u(), i(h, { key: 1 }, [
|
|
1406
1407
|
l.value.chart.grid.labels.yAxis.showBaseline ? (u(), i("line", {
|
|
1407
1408
|
key: 0,
|
|
@@ -1413,9 +1414,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1413
1414
|
y2: v(R)(n.value.bottom),
|
|
1414
1415
|
"stroke-linecap": "round",
|
|
1415
1416
|
style: { animation: "none !important" }
|
|
1416
|
-
}, null, 8,
|
|
1417
|
-
l.value.chart.grid.showHorizontalLines ? (u(), i("g",
|
|
1418
|
-
(u(!0), i(h, null, y(
|
|
1417
|
+
}, null, 8, po)) : d("", !0),
|
|
1418
|
+
l.value.chart.grid.showHorizontalLines ? (u(), i("g", ko, [
|
|
1419
|
+
(u(!0), i(h, null, y(Aa.value, (e) => (u(), i("line", {
|
|
1419
1420
|
x1: n.value.left + G.value,
|
|
1420
1421
|
x2: n.value.right,
|
|
1421
1422
|
y1: v(R)(e.y),
|
|
@@ -1424,26 +1425,26 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1424
1425
|
"stroke-width": 0.5,
|
|
1425
1426
|
"stroke-linecap": "round",
|
|
1426
1427
|
style: { animation: "none !important" }
|
|
1427
|
-
}, null, 8,
|
|
1428
|
+
}, null, 8, _o))), 256))
|
|
1428
1429
|
])) : d("", !0)
|
|
1429
1430
|
], 64)),
|
|
1430
|
-
l.value.chart.grid.showVerticalLines ? (u(), i("g",
|
|
1431
|
+
l.value.chart.grid.showVerticalLines ? (u(), i("g", $o, [
|
|
1431
1432
|
g("path", {
|
|
1432
|
-
d:
|
|
1433
|
+
d: ft.value,
|
|
1433
1434
|
"stroke-width": 0.5,
|
|
1434
1435
|
stroke: l.value.chart.grid.stroke,
|
|
1435
1436
|
"stroke-linecap": "round",
|
|
1436
1437
|
style: { animation: "none !important" }
|
|
1437
|
-
}, null, 8,
|
|
1438
|
+
}, null, 8, Lo)
|
|
1438
1439
|
])) : d("", !0),
|
|
1439
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g",
|
|
1440
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", Ao, [
|
|
1440
1441
|
g("path", {
|
|
1441
|
-
d:
|
|
1442
|
+
d: gt.value,
|
|
1442
1443
|
stroke: l.value.chart.grid.stroke,
|
|
1443
1444
|
"stroke-width": 1,
|
|
1444
1445
|
"stroke-linecap": "round",
|
|
1445
1446
|
style: { animation: "none !important" }
|
|
1446
|
-
}, null, 8,
|
|
1447
|
+
}, null, 8, Mo)
|
|
1447
1448
|
])) : d("", !0)
|
|
1448
1449
|
]),
|
|
1449
1450
|
(u(!0), i(h, null, y(Pe.value, (e, s) => (u(), i("defs", {
|
|
@@ -1457,16 +1458,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1457
1458
|
g("stop", {
|
|
1458
1459
|
offset: "0%",
|
|
1459
1460
|
"stop-color": e.color
|
|
1460
|
-
}, null, 8,
|
|
1461
|
+
}, null, 8, Co),
|
|
1461
1462
|
g("stop", {
|
|
1462
1463
|
offset: "62%",
|
|
1463
1464
|
"stop-color": `${v(Qe)(e.color, 0.02)}`
|
|
1464
|
-
}, null, 8,
|
|
1465
|
+
}, null, 8, Io),
|
|
1465
1466
|
g("stop", {
|
|
1466
1467
|
offset: "100%",
|
|
1467
1468
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1468
|
-
}, null, 8,
|
|
1469
|
-
], 8,
|
|
1469
|
+
}, null, 8, To)
|
|
1470
|
+
], 8, zo),
|
|
1470
1471
|
g("linearGradient", {
|
|
1471
1472
|
id: `rectGradient_neg_${s}_${U.value}`,
|
|
1472
1473
|
x2: "0%",
|
|
@@ -1475,16 +1476,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1475
1476
|
g("stop", {
|
|
1476
1477
|
offset: "0%",
|
|
1477
1478
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1478
|
-
}, null, 8,
|
|
1479
|
+
}, null, 8, No),
|
|
1479
1480
|
g("stop", {
|
|
1480
1481
|
offset: "38%",
|
|
1481
1482
|
"stop-color": `${v(Qe)(e.color, 0.02)}`
|
|
1482
|
-
}, null, 8,
|
|
1483
|
+
}, null, 8, Vo),
|
|
1483
1484
|
g("stop", {
|
|
1484
1485
|
offset: "100%",
|
|
1485
1486
|
"stop-color": e.color
|
|
1486
|
-
}, null, 8,
|
|
1487
|
-
], 8,
|
|
1487
|
+
}, null, 8, Po)
|
|
1488
|
+
], 8, Oo)
|
|
1488
1489
|
]))), 128)),
|
|
1489
1490
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("defs", {
|
|
1490
1491
|
key: `def_plot_${s}`
|
|
@@ -1500,12 +1501,12 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1500
1501
|
g("stop", {
|
|
1501
1502
|
offset: "0%",
|
|
1502
1503
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1503
|
-
}, null, 8,
|
|
1504
|
+
}, null, 8, Ro),
|
|
1504
1505
|
g("stop", {
|
|
1505
1506
|
offset: "100%",
|
|
1506
1507
|
"stop-color": e.color
|
|
1507
|
-
}, null, 8,
|
|
1508
|
-
], 8,
|
|
1508
|
+
}, null, 8, Bo)
|
|
1509
|
+
], 8, Ho)
|
|
1509
1510
|
]))), 128)),
|
|
1510
1511
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("defs", {
|
|
1511
1512
|
key: `def_line_${s}`
|
|
@@ -1521,12 +1522,12 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1521
1522
|
g("stop", {
|
|
1522
1523
|
offset: "0%",
|
|
1523
1524
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1524
|
-
}, null, 8,
|
|
1525
|
+
}, null, 8, Fo),
|
|
1525
1526
|
g("stop", {
|
|
1526
1527
|
offset: "100%",
|
|
1527
1528
|
"stop-color": e.color
|
|
1528
|
-
}, null, 8,
|
|
1529
|
-
], 8,
|
|
1529
|
+
}, null, 8, Eo)
|
|
1530
|
+
], 8, Yo),
|
|
1530
1531
|
g("linearGradient", {
|
|
1531
1532
|
id: `areaGradient_${s}_${U.value}`,
|
|
1532
1533
|
x1: "0%",
|
|
@@ -1537,18 +1538,18 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1537
1538
|
g("stop", {
|
|
1538
1539
|
offset: "0%",
|
|
1539
1540
|
"stop-color": `${v(we)(v(Qe)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1540
|
-
}, null, 8,
|
|
1541
|
+
}, null, 8, Xo),
|
|
1541
1542
|
g("stop", {
|
|
1542
1543
|
offset: "100%",
|
|
1543
1544
|
"stop-color": `${v(we)(e.color, l.value.line.area.opacity)}`
|
|
1544
|
-
}, null, 8,
|
|
1545
|
-
], 8,
|
|
1545
|
+
}, null, 8, Go)
|
|
1546
|
+
], 8, Wo)
|
|
1546
1547
|
]))), 128)),
|
|
1547
|
-
(u(!0), i(h, null, y(
|
|
1548
|
+
(u(!0), i(h, null, y(Lt.value, (e) => (u(), i("g", null, [
|
|
1548
1549
|
e.show ? (u(), i(h, { key: 0 }, [
|
|
1549
1550
|
(u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
|
|
1550
1551
|
g("rect", {
|
|
1551
|
-
style:
|
|
1552
|
+
style: z({
|
|
1552
1553
|
transition: "none",
|
|
1553
1554
|
opacity: e.from + t >= S.value.start && e.from + t <= S.value.end - 1 ? 1 : 0
|
|
1554
1555
|
}),
|
|
@@ -1557,14 +1558,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1557
1558
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1558
1559
|
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1559
1560
|
fill: v(we)(e.color, e.opacity)
|
|
1560
|
-
}, null, 12,
|
|
1561
|
+
}, null, 12, Do)
|
|
1561
1562
|
]))), 256)),
|
|
1562
1563
|
(u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
|
|
1563
1564
|
e.caption.text && t === 0 ? (u(), i("foreignObject", {
|
|
1564
1565
|
key: 0,
|
|
1565
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),
|
|
1566
1567
|
y: n.value.top + e.caption.offsetY,
|
|
1567
|
-
style:
|
|
1568
|
+
style: z({
|
|
1568
1569
|
overflow: "visible",
|
|
1569
1570
|
opacity: e.to >= S.value.start && e.from < S.value.end ? 1 : 0
|
|
1570
1571
|
}),
|
|
@@ -1572,13 +1573,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1572
1573
|
width: e.caption.width === "auto" ? n.value.width / b.value * e.span : e.caption.width
|
|
1573
1574
|
}, [
|
|
1574
1575
|
g("div", {
|
|
1575
|
-
style:
|
|
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"}`)
|
|
1576
1577
|
}, ee(e.caption.text), 5)
|
|
1577
|
-
], 12,
|
|
1578
|
+
], 12, qo)) : d("", !0)
|
|
1578
1579
|
]))), 256))
|
|
1579
1580
|
], 64)) : d("", !0)
|
|
1580
1581
|
]))), 256)),
|
|
1581
|
-
|
|
1582
|
+
Ul.value ? (u(), i("g", Uo, [
|
|
1582
1583
|
(u(!0), i(h, null, y(b.value, (e, s) => (u(), i("g", {
|
|
1583
1584
|
key: `tooltip_trap_highlighter_${s}`
|
|
1584
1585
|
}, [
|
|
@@ -1587,55 +1588,55 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1587
1588
|
y: n.value.top,
|
|
1588
1589
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1589
1590
|
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
1590
|
-
fill: [O.value,
|
|
1591
|
-
}, null, 8,
|
|
1591
|
+
fill: [O.value, k.value, Xe.value].includes(s) ? v(we)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
|
|
1592
|
+
}, null, 8, Zo)
|
|
1592
1593
|
]))), 128))
|
|
1593
1594
|
])) : d("", !0),
|
|
1594
1595
|
Pe.value.length ? (u(!0), i(h, { key: 1 }, y(Pe.value, (e, s) => (u(), i("g", {
|
|
1595
1596
|
key: `serie_bar_${s}`,
|
|
1596
1597
|
class: Ue(`serie_bar_${s}`),
|
|
1597
|
-
style:
|
|
1598
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1598
1599
|
}, [
|
|
1599
1600
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
|
|
1600
1601
|
key: `bar_plot_${s}_${r}`
|
|
1601
1602
|
}, [
|
|
1602
1603
|
fe(t.value) ? (u(), i("rect", {
|
|
1603
1604
|
key: 0,
|
|
1604
|
-
x:
|
|
1605
|
-
y: f.value.useIndividualScale ?
|
|
1606
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1605
|
+
x: Al(t),
|
|
1606
|
+
y: f.value.useIndividualScale ? Sa(t) : wa(t),
|
|
1607
|
+
height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
|
|
1607
1608
|
width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
|
|
1608
1609
|
rx: l.value.bar.borderRadius,
|
|
1609
1610
|
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${U.value})` : `url(#rectGradient_neg_${s}_${U.value})` : e.color,
|
|
1610
1611
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1611
1612
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1612
|
-
style:
|
|
1613
|
-
}, null, 12,
|
|
1613
|
+
style: z(`${v(Xl) ? "transition:none !important" : ""}`)
|
|
1614
|
+
}, null, 12, Jo)) : d("", !0),
|
|
1614
1615
|
fe(t.value) && a.$slots.pattern ? (u(), i("rect", {
|
|
1615
1616
|
key: 1,
|
|
1616
|
-
x:
|
|
1617
|
-
y: f.value.useIndividualScale ?
|
|
1618
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1617
|
+
x: Al(t),
|
|
1618
|
+
y: f.value.useIndividualScale ? Sa(t) : wa(t),
|
|
1619
|
+
height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
|
|
1619
1620
|
width: ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value),
|
|
1620
1621
|
rx: l.value.bar.borderRadius,
|
|
1621
1622
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
|
|
1622
1623
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1623
1624
|
"stroke-width": l.value.bar.border.strokeWidth
|
|
1624
|
-
}, null, 8,
|
|
1625
|
+
}, null, 8, Ko)) : d("", !0),
|
|
1625
1626
|
t.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
|
|
1626
1627
|
key: 2,
|
|
1627
1628
|
style: { overflow: "visible" },
|
|
1628
1629
|
height: "12",
|
|
1629
1630
|
width: (ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) < 0 ? 1e-5 : ke() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Oe.value) / 2) + l.value.chart.comments.width,
|
|
1630
|
-
x:
|
|
1631
|
+
x: Al(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1631
1632
|
y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
|
|
1632
1633
|
}, [
|
|
1633
1634
|
q(a.$slots, "plot-comment", {
|
|
1634
1635
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1635
1636
|
}, void 0, !0)
|
|
1636
|
-
], 8,
|
|
1637
|
+
], 8, Qo)) : d("", !0)
|
|
1637
1638
|
]))), 128)),
|
|
1638
|
-
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, [
|
|
1639
1640
|
g("defs", null, [
|
|
1640
1641
|
g("marker", {
|
|
1641
1642
|
id: `bar_arrow_${s}`,
|
|
@@ -1648,8 +1649,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1648
1649
|
g("polygon", {
|
|
1649
1650
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1650
1651
|
fill: e.color
|
|
1651
|
-
}, null, 8,
|
|
1652
|
-
], 8,
|
|
1652
|
+
}, null, 8, ls)
|
|
1653
|
+
], 8, es)
|
|
1653
1654
|
]),
|
|
1654
1655
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1655
1656
|
key: 0,
|
|
@@ -1661,7 +1662,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1661
1662
|
stroke: e.color,
|
|
1662
1663
|
"stroke-dasharray": 2,
|
|
1663
1664
|
"marker-end": `url(#bar_arrow_${s})`
|
|
1664
|
-
}, null, 8,
|
|
1665
|
+
}, null, 8, as)) : d("", !0),
|
|
1665
1666
|
e.plots.length > 1 ? (u(), i("text", {
|
|
1666
1667
|
key: 1,
|
|
1667
1668
|
"text-anchor": "middle",
|
|
@@ -1673,7 +1674,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1673
1674
|
v: v(X)(e.plots).trend * 100,
|
|
1674
1675
|
s: "%",
|
|
1675
1676
|
r: 2
|
|
1676
|
-
})), 9,
|
|
1677
|
+
})), 9, ts)) : d("", !0)
|
|
1677
1678
|
])) : d("", !0)
|
|
1678
1679
|
], 6))), 128)) : d("", !0),
|
|
1679
1680
|
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), i("line", {
|
|
@@ -1682,15 +1683,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1682
1683
|
"stroke-width": "1",
|
|
1683
1684
|
x1: n.value.left + G.value,
|
|
1684
1685
|
x2: n.value.right - G.value,
|
|
1685
|
-
y1: v(R)(
|
|
1686
|
-
y2: v(R)(
|
|
1686
|
+
y1: v(R)(ie.value),
|
|
1687
|
+
y2: v(R)(ie.value),
|
|
1687
1688
|
"stroke-linecap": "round",
|
|
1688
1689
|
style: { animation: "none !important" }
|
|
1689
|
-
}, null, 8,
|
|
1690
|
-
l.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
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, [
|
|
1691
1692
|
g("line", {
|
|
1692
|
-
x1: n.value.left + n.value.width / b.value * ((
|
|
1693
|
-
x2: n.value.left + n.value.width / b.value * ((
|
|
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,
|
|
1694
1695
|
y1: v(R)(n.value.top),
|
|
1695
1696
|
y2: v(R)(n.value.bottom),
|
|
1696
1697
|
stroke: l.value.chart.highlighter.color,
|
|
@@ -1698,7 +1699,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1698
1699
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
1699
1700
|
"stroke-linecap": "round",
|
|
1700
1701
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1701
|
-
}, null, 8,
|
|
1702
|
+
}, null, 8, us)
|
|
1702
1703
|
])) : d("", !0),
|
|
1703
1704
|
l.value.chart.grid.frame.show ? (u(), i("rect", {
|
|
1704
1705
|
key: 4,
|
|
@@ -1713,11 +1714,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1713
1714
|
"stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
|
|
1714
1715
|
"stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
|
|
1715
1716
|
"stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
|
|
1716
|
-
}, null, 8,
|
|
1717
|
+
}, null, 8, rs)) : d("", !0),
|
|
1717
1718
|
l.value.chart.grid.labels.show ? (u(), i("g", {
|
|
1718
1719
|
key: 5,
|
|
1719
1720
|
ref_key: "scaleLabels",
|
|
1720
|
-
ref:
|
|
1721
|
+
ref: Hl
|
|
1721
1722
|
}, [
|
|
1722
1723
|
f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
|
|
1723
1724
|
(u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", null, [
|
|
@@ -1729,11 +1730,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1729
1730
|
stroke: e.color,
|
|
1730
1731
|
"stroke-width": l.value.chart.grid.stroke,
|
|
1731
1732
|
"stroke-linecap": "round",
|
|
1732
|
-
style:
|
|
1733
|
-
}, null, 12,
|
|
1733
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1734
|
+
}, null, 12, is)
|
|
1734
1735
|
]))), 256)),
|
|
1735
1736
|
(u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", {
|
|
1736
|
-
style:
|
|
1737
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1737
1738
|
}, [
|
|
1738
1739
|
g("text", {
|
|
1739
1740
|
fill: e.color,
|
|
@@ -1741,7 +1742,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1741
1742
|
"text-anchor": "middle",
|
|
1742
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)`
|
|
1743
1744
|
}, ee(e.name) + " " + ee(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
1744
|
-
${e.scaleLabel}` : ""), 9,
|
|
1745
|
+
${e.scaleLabel}` : ""), 9, ns),
|
|
1745
1746
|
(u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i(h, null, [
|
|
1746
1747
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
1747
1748
|
key: 0,
|
|
@@ -1753,7 +1754,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1753
1754
|
"stroke-width": 1,
|
|
1754
1755
|
"stroke-linecap": "round",
|
|
1755
1756
|
style: { animation: "none !important" }
|
|
1756
|
-
}, null, 8,
|
|
1757
|
+
}, null, 8, cs)) : d("", !0)
|
|
1757
1758
|
], 64))), 256)),
|
|
1758
1759
|
(u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i("text", {
|
|
1759
1760
|
x: e.x - 5 + G.value - n.value.individualOffsetX,
|
|
@@ -1761,7 +1762,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1761
1762
|
"font-size": x.value.dataLabels,
|
|
1762
1763
|
"text-anchor": "end",
|
|
1763
1764
|
fill: e.color
|
|
1764
|
-
}, ee(v(
|
|
1765
|
+
}, ee(v(re)(
|
|
1765
1766
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1766
1767
|
s.value,
|
|
1767
1768
|
v(xe)({
|
|
@@ -1771,9 +1772,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1771
1772
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
1772
1773
|
}),
|
|
1773
1774
|
{ datapoint: s.datapoint, seriesIndex: t }
|
|
1774
|
-
)), 9,
|
|
1775
|
+
)), 9, vs))), 256))
|
|
1775
1776
|
], 4))), 256))
|
|
1776
|
-
], 64)) : (u(!0), i(h, { key: 1 }, y(
|
|
1777
|
+
], 64)) : (u(!0), i(h, { key: 1 }, y(Aa.value, (e, s) => (u(), i("g", {
|
|
1777
1778
|
key: `yLabel_${s}`
|
|
1778
1779
|
}, [
|
|
1779
1780
|
fe(e) && e.value >= ye.value.min && e.value <= ye.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
@@ -1786,15 +1787,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1786
1787
|
"stroke-width": "1",
|
|
1787
1788
|
"stroke-linecap": "round",
|
|
1788
1789
|
style: { animation: "none !important" }
|
|
1789
|
-
}, null, 8,
|
|
1790
|
+
}, null, 8, ds)) : d("", !0),
|
|
1790
1791
|
e.value >= ye.value.min && e.value <= ye.value.max ? (u(), i("text", {
|
|
1791
1792
|
key: 1,
|
|
1792
|
-
x: n.value.scaleLabelX
|
|
1793
|
+
x: n.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
1793
1794
|
y: v(T)(e.y + x.value.dataLabels / 3),
|
|
1794
1795
|
"font-size": x.value.dataLabels,
|
|
1795
1796
|
"text-anchor": "end",
|
|
1796
1797
|
fill: l.value.chart.grid.labels.color
|
|
1797
|
-
}, ee(fe(e.value) ? v(
|
|
1798
|
+
}, ee(fe(e.value) ? v(re)(
|
|
1798
1799
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1799
1800
|
e.value,
|
|
1800
1801
|
v(xe)({
|
|
@@ -1803,23 +1804,23 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1803
1804
|
s: e.suffix,
|
|
1804
1805
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
1805
1806
|
})
|
|
1806
|
-
) : ""), 9,
|
|
1807
|
+
) : ""), 9, hs)) : d("", !0)
|
|
1807
1808
|
]))), 128))
|
|
1808
1809
|
], 512)) : d("", !0),
|
|
1809
1810
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("g", {
|
|
1810
1811
|
key: `serie_plot_${s}`,
|
|
1811
1812
|
class: Ue(`serie_plot_${s}`),
|
|
1812
|
-
style:
|
|
1813
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1813
1814
|
}, [
|
|
1814
1815
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
|
|
1815
1816
|
key: `circle_plot_${s}_${r}`
|
|
1816
1817
|
}, [
|
|
1817
|
-
t && fe(t.value) ? (u(), Me(
|
|
1818
|
+
t && fe(t.value) ? (u(), Me(Il, {
|
|
1818
1819
|
key: 0,
|
|
1819
1820
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1820
1821
|
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${U.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
1821
1822
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1822
|
-
radius:
|
|
1823
|
+
radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? ($e.value.plot || 6) * 1.5 : $e.value.plot || 6,
|
|
1823
1824
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1824
1825
|
strokeWidth: l.value.plot.dot.strokeWidth
|
|
1825
1826
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1831,14 +1832,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1831
1832
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1832
1833
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1833
1834
|
}, [
|
|
1834
|
-
g("div",
|
|
1835
|
+
g("div", gs, [
|
|
1835
1836
|
q(a.$slots, "plot-comment", {
|
|
1836
1837
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1837
1838
|
}, void 0, !0)
|
|
1838
1839
|
])
|
|
1839
|
-
], 8,
|
|
1840
|
+
], 8, fs)) : d("", !0)
|
|
1840
1841
|
]))), 128)),
|
|
1841
|
-
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, [
|
|
1842
1843
|
g("defs", null, [
|
|
1843
1844
|
g("marker", {
|
|
1844
1845
|
id: `plot_arrow_${s}`,
|
|
@@ -1851,8 +1852,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1851
1852
|
g("polygon", {
|
|
1852
1853
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1853
1854
|
fill: e.color
|
|
1854
|
-
}, null, 8,
|
|
1855
|
-
], 8,
|
|
1855
|
+
}, null, 8, ms)
|
|
1856
|
+
], 8, bs)
|
|
1856
1857
|
]),
|
|
1857
1858
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1858
1859
|
key: 0,
|
|
@@ -1864,7 +1865,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1864
1865
|
stroke: e.color,
|
|
1865
1866
|
"stroke-dasharray": 2,
|
|
1866
1867
|
"marker-end": `url(#plot_arrow_${s})`
|
|
1867
|
-
}, null, 8,
|
|
1868
|
+
}, null, 8, ys)) : d("", !0),
|
|
1868
1869
|
e.plots.length > 1 ? (u(), i("text", {
|
|
1869
1870
|
key: 1,
|
|
1870
1871
|
"text-anchor": "middle",
|
|
@@ -1876,13 +1877,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1876
1877
|
v: v(X)(e.plots).trend * 100,
|
|
1877
1878
|
s: "%",
|
|
1878
1879
|
r: 2
|
|
1879
|
-
})), 9,
|
|
1880
|
+
})), 9, ps)) : d("", !0)
|
|
1880
1881
|
])) : d("", !0)
|
|
1881
1882
|
], 6))), 128)),
|
|
1882
1883
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("g", {
|
|
1883
1884
|
key: `serie_line_${s}`,
|
|
1884
1885
|
class: Ue(`serie_line_${s}`),
|
|
1885
|
-
style:
|
|
1886
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1886
1887
|
}, [
|
|
1887
1888
|
e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
|
|
1888
1889
|
key: 0,
|
|
@@ -1891,7 +1892,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1891
1892
|
"stroke-width": l.value.line.strokeWidth + 1,
|
|
1892
1893
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
1893
1894
|
fill: "none"
|
|
1894
|
-
}, null, 8,
|
|
1895
|
+
}, null, 8, ks)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
|
|
1895
1896
|
key: 1,
|
|
1896
1897
|
d: `M${e.straight}`,
|
|
1897
1898
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -1900,39 +1901,39 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1900
1901
|
fill: "none",
|
|
1901
1902
|
"stroke-linecap": "round",
|
|
1902
1903
|
"stroke-linejoin": "round"
|
|
1903
|
-
}, null, 8,
|
|
1904
|
+
}, null, 8, _s)) : d("", !0)
|
|
1904
1905
|
], 6))), 128)),
|
|
1905
|
-
a.$slots.pattern ? (u(), i("defs",
|
|
1906
|
-
(u(!0), i(h, null, y(Ie.value, (e, s) => q(a.$slots, "pattern",
|
|
1906
|
+
a.$slots.pattern ? (u(), i("defs", ws, [
|
|
1907
|
+
(u(!0), i(h, null, y(Ie.value, (e, s) => q(a.$slots, "pattern", jl({
|
|
1907
1908
|
key: `serie_pattern_slot_${s}`
|
|
1908
1909
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${s}` }), void 0, !0)), 128))
|
|
1909
1910
|
])) : d("", !0),
|
|
1910
1911
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("g", {
|
|
1911
1912
|
key: `serie_line_${s}`,
|
|
1912
1913
|
class: Ue(`serie_line_${s}`),
|
|
1913
|
-
style:
|
|
1914
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1914
1915
|
}, [
|
|
1915
|
-
e.useArea && e.plots.length > 1 ? (u(), i("g",
|
|
1916
|
+
e.useArea && e.plots.length > 1 ? (u(), i("g", Ss, [
|
|
1916
1917
|
e.smooth ? (u(!0), i(h, { key: 0 }, y(e.curveAreas, (t, r) => (u(), i(h, { key: r }, [
|
|
1917
1918
|
g("path", {
|
|
1918
1919
|
d: t,
|
|
1919
1920
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(we)(e.color, l.value.line.area.opacity)
|
|
1920
|
-
}, null, 8,
|
|
1921
|
+
}, null, 8, $s),
|
|
1921
1922
|
a.$slots.pattern ? (u(), i("path", {
|
|
1922
1923
|
key: 0,
|
|
1923
1924
|
d: t,
|
|
1924
1925
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
|
|
1925
|
-
}, null, 8,
|
|
1926
|
+
}, null, 8, Ls)) : d("", !0)
|
|
1926
1927
|
], 64))), 128)) : (u(!0), i(h, { key: 1 }, y(e.area.split(";"), (t, r) => (u(), i(h, { key: r }, [
|
|
1927
1928
|
g("path", {
|
|
1928
1929
|
d: `M${t}Z`,
|
|
1929
1930
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(we)(e.color, l.value.line.area.opacity)
|
|
1930
|
-
}, null, 8,
|
|
1931
|
+
}, null, 8, As),
|
|
1931
1932
|
a.$slots.pattern ? (u(), i("path", {
|
|
1932
1933
|
key: 0,
|
|
1933
1934
|
d: `M${t}Z`,
|
|
1934
1935
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
|
|
1935
|
-
}, null, 8,
|
|
1936
|
+
}, null, 8, Ms)) : d("", !0)
|
|
1936
1937
|
], 64))), 128))
|
|
1937
1938
|
])) : d("", !0),
|
|
1938
1939
|
e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
|
|
@@ -1943,7 +1944,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1943
1944
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
1944
1945
|
fill: "none",
|
|
1945
1946
|
"stroke-linecap": "round"
|
|
1946
|
-
}, null, 8,
|
|
1947
|
+
}, null, 8, zs)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
|
|
1947
1948
|
key: 2,
|
|
1948
1949
|
d: `M${e.straight}`,
|
|
1949
1950
|
stroke: e.color,
|
|
@@ -1952,16 +1953,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1952
1953
|
fill: "none",
|
|
1953
1954
|
"stroke-linecap": "round",
|
|
1954
1955
|
"stroke-linejoin": "round"
|
|
1955
|
-
}, null, 8,
|
|
1956
|
+
}, null, 8, Cs)) : d("", !0),
|
|
1956
1957
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
1957
1958
|
key: `circle_line_${s}_${r}`
|
|
1958
1959
|
}, [
|
|
1959
|
-
|
|
1960
|
+
!La.value.linePlot && t && fe(t.value) || La.value.linePlot && t && fe(t.value) && (k.value !== null && k.value === r || O.value !== null && O.value === r) ? (u(), Me(Il, {
|
|
1960
1961
|
key: 0,
|
|
1961
1962
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1962
1963
|
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${U.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
1963
1964
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1964
|
-
radius:
|
|
1965
|
+
radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? ($e.value.line || 6) * 1.5 : $e.value.line || 6,
|
|
1965
1966
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1966
1967
|
strokeWidth: l.value.line.dot.strokeWidth
|
|
1967
1968
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1973,14 +1974,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1973
1974
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1974
1975
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1975
1976
|
}, [
|
|
1976
|
-
g("div",
|
|
1977
|
+
g("div", Ts, [
|
|
1977
1978
|
q(a.$slots, "plot-comment", {
|
|
1978
1979
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1979
1980
|
}, void 0, !0)
|
|
1980
1981
|
])
|
|
1981
|
-
], 8,
|
|
1982
|
+
], 8, Is)) : d("", !0)
|
|
1982
1983
|
], 64))), 128)),
|
|
1983
|
-
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, [
|
|
1984
1985
|
g("defs", null, [
|
|
1985
1986
|
g("marker", {
|
|
1986
1987
|
id: `line_arrow_${s}`,
|
|
@@ -1993,8 +1994,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1993
1994
|
g("polygon", {
|
|
1994
1995
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1995
1996
|
fill: e.color
|
|
1996
|
-
}, null, 8,
|
|
1997
|
-
], 8,
|
|
1997
|
+
}, null, 8, Vs)
|
|
1998
|
+
], 8, Ns)
|
|
1998
1999
|
]),
|
|
1999
2000
|
e.plots.length > 1 ? (u(), i("line", {
|
|
2000
2001
|
key: 0,
|
|
@@ -2006,7 +2007,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2006
2007
|
stroke: e.color,
|
|
2007
2008
|
"stroke-dasharray": 2,
|
|
2008
2009
|
"marker-end": `url(#line_arrow_${s})`
|
|
2009
|
-
}, null, 8,
|
|
2010
|
+
}, null, 8, Ps)) : d("", !0),
|
|
2010
2011
|
e.plots.length > 1 ? (u(), i("text", {
|
|
2011
2012
|
key: 1,
|
|
2012
2013
|
"text-anchor": "middle",
|
|
@@ -2018,25 +2019,25 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2018
2019
|
v: v(X)(e.plots).trend * 100,
|
|
2019
2020
|
s: "%",
|
|
2020
2021
|
r: 2
|
|
2021
|
-
})), 9,
|
|
2022
|
+
})), 9, Hs)) : d("", !0)
|
|
2022
2023
|
])) : d("", !0)
|
|
2023
2024
|
], 6))), 128)),
|
|
2024
|
-
(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, [
|
|
2025
2026
|
(u(!0), i(h, null, y(Pe.value, (e, s) => (u(), i(h, {
|
|
2026
2027
|
key: `xLabel_bar_${s}`
|
|
2027
2028
|
}, [
|
|
2028
2029
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2029
2030
|
key: `xLabel_bar_${s}_${r}`
|
|
2030
2031
|
}, [
|
|
2031
|
-
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2032
|
+
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || k.value !== null && k.value === r || O.value !== null && O.value === r) && l.value.bar.labels.show ? (u(), i("text", {
|
|
2032
2033
|
key: 0,
|
|
2033
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 :
|
|
2034
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Al(t) + ke() / 2 - Oe.value / 2,
|
|
2034
2035
|
y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2035
2036
|
"text-anchor": "middle",
|
|
2036
2037
|
"font-size": x.value.plotLabels,
|
|
2037
2038
|
fill: l.value.bar.labels.color,
|
|
2038
|
-
style:
|
|
2039
|
-
}, ee(fe(t.value) ? v(
|
|
2039
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2040
|
+
}, ee(fe(t.value) ? v(re)(
|
|
2040
2041
|
l.value.bar.labels.formatter,
|
|
2041
2042
|
t.value,
|
|
2042
2043
|
v(xe)({
|
|
@@ -2049,7 +2050,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2049
2050
|
datapoint: t,
|
|
2050
2051
|
serie: e
|
|
2051
2052
|
}
|
|
2052
|
-
) : ""), 13,
|
|
2053
|
+
) : ""), 13, Bs)) : d("", !0),
|
|
2053
2054
|
t && l.value.bar.serieName.show ? (u(), i("text", {
|
|
2054
2055
|
key: 1,
|
|
2055
2056
|
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x + ke() * 1.1,
|
|
@@ -2058,30 +2059,30 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2058
2059
|
"font-size": x.value.plotLabels,
|
|
2059
2060
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2060
2061
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2061
|
-
style:
|
|
2062
|
-
}, ee(l.value.bar.serieName.useAbbreviation ? v(
|
|
2062
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2063
|
+
}, ee(l.value.bar.serieName.useAbbreviation ? v(Kt)({
|
|
2063
2064
|
source: e.name,
|
|
2064
2065
|
length: l.value.bar.serieName.abbreviationSize
|
|
2065
|
-
}) : e.name), 13,
|
|
2066
|
+
}) : e.name), 13, Ys)) : d("", !0)
|
|
2066
2067
|
], 64))), 128))
|
|
2067
2068
|
], 64))), 128))
|
|
2068
2069
|
])) : d("", !0),
|
|
2069
|
-
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, [
|
|
2070
2071
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
2071
2072
|
key: `xLabel_plot_${s}`
|
|
2072
2073
|
}, [
|
|
2073
2074
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2074
2075
|
key: `xLabel_plot_${s}_${r}`
|
|
2075
2076
|
}, [
|
|
2076
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2077
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || k.value !== null && k.value === r || O.value !== null && O.value === r ? (u(), i("text", {
|
|
2077
2078
|
key: 0,
|
|
2078
2079
|
x: t.x,
|
|
2079
2080
|
y: t.y + l.value.plot.labels.offsetY,
|
|
2080
2081
|
"text-anchor": "middle",
|
|
2081
2082
|
"font-size": x.value.plotLabels,
|
|
2082
2083
|
fill: l.value.plot.labels.color,
|
|
2083
|
-
style:
|
|
2084
|
-
}, ee(fe(t.value) ? v(
|
|
2084
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2085
|
+
}, ee(fe(t.value) ? v(re)(
|
|
2085
2086
|
l.value.plot.labels.formatter,
|
|
2086
2087
|
t.value,
|
|
2087
2088
|
v(xe)({
|
|
@@ -2094,10 +2095,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2094
2095
|
datapoint: t,
|
|
2095
2096
|
serie: e
|
|
2096
2097
|
}
|
|
2097
|
-
) : ""), 13,
|
|
2098
|
+
) : ""), 13, Es)) : d("", !0)
|
|
2098
2099
|
], 64))), 128))
|
|
2099
2100
|
], 64))), 128))
|
|
2100
|
-
])) : (u(), i("g",
|
|
2101
|
+
])) : (u(), i("g", Ws, [
|
|
2101
2102
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
2102
2103
|
key: `xLabel_plot_${s}`
|
|
2103
2104
|
}, [
|
|
@@ -2105,7 +2106,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2105
2106
|
key: `xLabel_plot_${s}_${r}`
|
|
2106
2107
|
}, [
|
|
2107
2108
|
l.value.plot.tag.followValue ? (u(), i(h, { key: 1 }, [
|
|
2108
|
-
[O.value,
|
|
2109
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
|
|
2109
2110
|
key: 0,
|
|
2110
2111
|
class: "vue-ui-xy-tag-plot",
|
|
2111
2112
|
x1: n.value.left,
|
|
@@ -2116,7 +2117,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2116
2117
|
"stroke-linecap": "round",
|
|
2117
2118
|
"stroke-dasharray": "2",
|
|
2118
2119
|
stroke: e.color
|
|
2119
|
-
}, null, 8,
|
|
2120
|
+
}, null, 8, Us)) : d("", !0)
|
|
2120
2121
|
], 64)) : (u(), i(h, { key: 0 }, [
|
|
2121
2122
|
t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
|
|
2122
2123
|
key: 0,
|
|
@@ -2124,11 +2125,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2124
2125
|
y: t.y - 20,
|
|
2125
2126
|
height: 24,
|
|
2126
2127
|
width: "150",
|
|
2127
|
-
style:
|
|
2128
|
+
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2128
2129
|
}, [
|
|
2129
2130
|
g("div", {
|
|
2130
|
-
style:
|
|
2131
|
-
innerHTML: v(
|
|
2131
|
+
style: z(`padding: 3px; background:${v(we)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2132
|
+
innerHTML: v(re)(
|
|
2132
2133
|
l.value.plot.tag.formatter,
|
|
2133
2134
|
t.value,
|
|
2134
2135
|
e.name,
|
|
@@ -2138,19 +2139,19 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2138
2139
|
serieName: e.name
|
|
2139
2140
|
}
|
|
2140
2141
|
)
|
|
2141
|
-
}, null, 12,
|
|
2142
|
-
], 12,
|
|
2142
|
+
}, null, 12, Gs)
|
|
2143
|
+
], 12, Xs)) : d("", !0),
|
|
2143
2144
|
t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
|
|
2144
2145
|
key: 1,
|
|
2145
2146
|
x: t.x - e.name.length * (x.value.plotLabels / 2),
|
|
2146
2147
|
y: t.y - 20,
|
|
2147
2148
|
height: 24,
|
|
2148
2149
|
width: "150",
|
|
2149
|
-
style:
|
|
2150
|
+
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2150
2151
|
}, [
|
|
2151
2152
|
g("div", {
|
|
2152
|
-
style:
|
|
2153
|
-
innerHTML: v(
|
|
2153
|
+
style: z(`padding: 3px; background:${v(we)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2154
|
+
innerHTML: v(re)(
|
|
2154
2155
|
l.value.plot.tag.formatter,
|
|
2155
2156
|
t.value,
|
|
2156
2157
|
e.name,
|
|
@@ -2160,28 +2161,28 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2160
2161
|
serieName: e.name
|
|
2161
2162
|
}
|
|
2162
2163
|
)
|
|
2163
|
-
}, null, 12,
|
|
2164
|
-
], 12,
|
|
2164
|
+
}, null, 12, qs)
|
|
2165
|
+
], 12, Ds)) : d("", !0)
|
|
2165
2166
|
], 64))
|
|
2166
2167
|
], 64))), 128))
|
|
2167
2168
|
], 64))), 128))
|
|
2168
2169
|
])),
|
|
2169
|
-
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, [
|
|
2170
2171
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2171
2172
|
key: `xLabel_line_${s}`
|
|
2172
2173
|
}, [
|
|
2173
2174
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2174
2175
|
key: `xLabel_line_${s}_${r}`
|
|
2175
2176
|
}, [
|
|
2176
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2177
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || k.value !== null && k.value === r || O.value !== null && O.value === r ? (u(), i("text", {
|
|
2177
2178
|
key: 0,
|
|
2178
2179
|
x: t.x,
|
|
2179
2180
|
y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
|
|
2180
2181
|
"text-anchor": "middle",
|
|
2181
2182
|
"font-size": x.value.plotLabels,
|
|
2182
2183
|
fill: l.value.line.labels.color,
|
|
2183
|
-
style:
|
|
2184
|
-
}, ee(fe(t.value) ? v(
|
|
2184
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2185
|
+
}, ee(fe(t.value) ? v(re)(
|
|
2185
2186
|
l.value.line.labels.formatter,
|
|
2186
2187
|
t.value,
|
|
2187
2188
|
v(xe)({
|
|
@@ -2194,10 +2195,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2194
2195
|
datapoint: t,
|
|
2195
2196
|
serie: e
|
|
2196
2197
|
}
|
|
2197
|
-
) : ""), 13,
|
|
2198
|
+
) : ""), 13, Js)) : d("", !0)
|
|
2198
2199
|
], 64))), 128))
|
|
2199
2200
|
], 64))), 128))
|
|
2200
|
-
])) : (u(), i("g",
|
|
2201
|
+
])) : (u(), i("g", Ks, [
|
|
2201
2202
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2202
2203
|
key: `xLabel_line_${s}`
|
|
2203
2204
|
}, [
|
|
@@ -2205,7 +2206,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2205
2206
|
key: `xLabel_line_${s}_${r}`
|
|
2206
2207
|
}, [
|
|
2207
2208
|
l.value.line.tag.followValue ? (u(), i(h, { key: 1 }, [
|
|
2208
|
-
[O.value,
|
|
2209
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
|
|
2209
2210
|
key: 0,
|
|
2210
2211
|
class: "vue-ui-xy-tag-line",
|
|
2211
2212
|
x1: n.value.left,
|
|
@@ -2216,7 +2217,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2216
2217
|
"stroke-linecap": "round",
|
|
2217
2218
|
"stroke-dasharray": "2",
|
|
2218
2219
|
stroke: e.color
|
|
2219
|
-
}, null, 8,
|
|
2220
|
+
}, null, 8, au)) : d("", !0)
|
|
2220
2221
|
], 64)) : (u(), i(h, { key: 0 }, [
|
|
2221
2222
|
t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
|
|
2222
2223
|
key: 0,
|
|
@@ -2224,11 +2225,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2224
2225
|
y: t.y - 20,
|
|
2225
2226
|
height: 24,
|
|
2226
2227
|
width: "150",
|
|
2227
|
-
style:
|
|
2228
|
+
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2228
2229
|
}, [
|
|
2229
2230
|
g("div", {
|
|
2230
|
-
style:
|
|
2231
|
-
innerHTML: v(
|
|
2231
|
+
style: z(`padding: 3px; background:${v(we)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2232
|
+
innerHTML: v(re)(
|
|
2232
2233
|
l.value.line.tag.formatter,
|
|
2233
2234
|
t.value,
|
|
2234
2235
|
e.name,
|
|
@@ -2238,19 +2239,19 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2238
2239
|
serieName: e.name
|
|
2239
2240
|
}
|
|
2240
2241
|
)
|
|
2241
|
-
}, null, 12,
|
|
2242
|
-
], 12,
|
|
2242
|
+
}, null, 12, js)
|
|
2243
|
+
], 12, Qs)) : d("", !0),
|
|
2243
2244
|
t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
|
|
2244
2245
|
key: 1,
|
|
2245
2246
|
x: t.x,
|
|
2246
2247
|
y: t.y - 20,
|
|
2247
2248
|
height: 24,
|
|
2248
2249
|
width: "150",
|
|
2249
|
-
style:
|
|
2250
|
+
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2250
2251
|
}, [
|
|
2251
2252
|
g("div", {
|
|
2252
|
-
style:
|
|
2253
|
-
innerHTML: v(
|
|
2253
|
+
style: z(`padding: 3px; background:${v(we)(e.color, 80)};color:${v(Fe)(e.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
|
|
2254
|
+
innerHTML: v(re)(
|
|
2254
2255
|
l.value.line.tag.formatter,
|
|
2255
2256
|
t.value,
|
|
2256
2257
|
e.name,
|
|
@@ -2260,8 +2261,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2260
2261
|
serieName: e.name
|
|
2261
2262
|
}
|
|
2262
2263
|
)
|
|
2263
|
-
}, null, 12,
|
|
2264
|
-
], 12,
|
|
2264
|
+
}, null, 12, lu)
|
|
2265
|
+
], 12, eu)) : d("", !0)
|
|
2265
2266
|
], 64))
|
|
2266
2267
|
], 64))), 128))
|
|
2267
2268
|
], 64))), 128))
|
|
@@ -2279,7 +2280,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2279
2280
|
"font-size": x.value.plotLabels,
|
|
2280
2281
|
"text-anchor": "end",
|
|
2281
2282
|
fill: e.color,
|
|
2282
|
-
innerHTML: v(
|
|
2283
|
+
innerHTML: v(Cl)({
|
|
2283
2284
|
content: e.name,
|
|
2284
2285
|
fontSize: x.value.plotLabels,
|
|
2285
2286
|
fill: e.color,
|
|
@@ -2287,8 +2288,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2287
2288
|
y: t.y,
|
|
2288
2289
|
maxWords: 2
|
|
2289
2290
|
}),
|
|
2290
|
-
style:
|
|
2291
|
-
}, null, 12,
|
|
2291
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2292
|
+
}, null, 12, tu)) : d("", !0),
|
|
2292
2293
|
t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
|
|
2293
2294
|
key: 1,
|
|
2294
2295
|
x: t.x + x.value.plotLabels,
|
|
@@ -2296,7 +2297,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2296
2297
|
"font-size": x.value.plotLabels,
|
|
2297
2298
|
"text-anchor": "start",
|
|
2298
2299
|
fill: e.color,
|
|
2299
|
-
innerHTML: v(
|
|
2300
|
+
innerHTML: v(Cl)({
|
|
2300
2301
|
content: e.name,
|
|
2301
2302
|
fontSize: x.value.plotLabels,
|
|
2302
2303
|
fill: e.color,
|
|
@@ -2304,8 +2305,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2304
2305
|
y: t.y,
|
|
2305
2306
|
maxWords: 2
|
|
2306
2307
|
}),
|
|
2307
|
-
style:
|
|
2308
|
-
}, null, 12,
|
|
2308
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2309
|
+
}, null, 12, ou)) : d("", !0)
|
|
2309
2310
|
], 64))), 128))
|
|
2310
2311
|
], 64))), 128)),
|
|
2311
2312
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
@@ -2321,7 +2322,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2321
2322
|
"font-size": x.value.plotLabels,
|
|
2322
2323
|
"text-anchor": "end",
|
|
2323
2324
|
fill: e.color,
|
|
2324
|
-
innerHTML: v(
|
|
2325
|
+
innerHTML: v(Cl)({
|
|
2325
2326
|
content: e.name,
|
|
2326
2327
|
fontSize: x.value.plotLabels,
|
|
2327
2328
|
fill: e.color,
|
|
@@ -2329,8 +2330,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2329
2330
|
y: t.y,
|
|
2330
2331
|
maxWords: 2
|
|
2331
2332
|
}),
|
|
2332
|
-
style:
|
|
2333
|
-
}, null, 12,
|
|
2333
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2334
|
+
}, null, 12, su)) : d("", !0),
|
|
2334
2335
|
t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
|
|
2335
2336
|
key: 1,
|
|
2336
2337
|
x: t.x + x.value.plotLabels,
|
|
@@ -2338,7 +2339,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2338
2339
|
"font-size": x.value.plotLabels,
|
|
2339
2340
|
"text-anchor": "start",
|
|
2340
2341
|
fill: e.color,
|
|
2341
|
-
innerHTML: v(
|
|
2342
|
+
innerHTML: v(Cl)({
|
|
2342
2343
|
content: e.name,
|
|
2343
2344
|
fontSize: x.value.plotLabels,
|
|
2344
2345
|
fill: e.color,
|
|
@@ -2346,8 +2347,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2346
2347
|
y: t.y,
|
|
2347
2348
|
maxWords: 2
|
|
2348
2349
|
}),
|
|
2349
|
-
style:
|
|
2350
|
-
}, null, 12,
|
|
2350
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2351
|
+
}, null, 12, uu)) : d("", !0)
|
|
2351
2352
|
], 64))), 128))
|
|
2352
2353
|
], 64))), 128)),
|
|
2353
2354
|
f.value.useIndividualScale && !f.value.isStacked ? (u(), i(h, { key: 12 }, [
|
|
@@ -2363,13 +2364,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2363
2364
|
offset: "0%",
|
|
2364
2365
|
"stop-color": l.value.chart.backgroundColor,
|
|
2365
2366
|
"stop-opacity": "0"
|
|
2366
|
-
}, null, 8,
|
|
2367
|
+
}, null, 8, iu),
|
|
2367
2368
|
g("stop", {
|
|
2368
2369
|
offset: "100%",
|
|
2369
2370
|
"stop-color": e.color,
|
|
2370
2371
|
"stop-opacity": "0.2"
|
|
2371
|
-
}, null, 8,
|
|
2372
|
-
], 8,
|
|
2372
|
+
}, null, 8, nu)
|
|
2373
|
+
], 8, ru))), 256))
|
|
2373
2374
|
]),
|
|
2374
2375
|
(u(!0), i(h, null, y(dl.value, (e, s) => (u(), i("rect", {
|
|
2375
2376
|
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - n.value.individualOffsetX,
|
|
@@ -2379,36 +2380,36 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2379
2380
|
fill: M.value === e.groupId ? `url(#individual_scale_gradient_${U.value}_${s})` : "transparent",
|
|
2380
2381
|
onMouseenter: (t) => M.value = e.groupId,
|
|
2381
2382
|
onMouseleave: c[0] || (c[0] = (t) => M.value = null)
|
|
2382
|
-
}, null, 40,
|
|
2383
|
+
}, null, 40, cu))), 256))
|
|
2383
2384
|
], 64)) : d("", !0),
|
|
2384
2385
|
g("g", null, [
|
|
2385
2386
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
|
|
2386
2387
|
key: 0,
|
|
2387
2388
|
ref_key: "yAxisLabel",
|
|
2388
|
-
ref:
|
|
2389
|
+
ref: Pl,
|
|
2389
2390
|
"font-size": x.value.yAxis,
|
|
2390
2391
|
fill: l.value.chart.grid.labels.color,
|
|
2391
2392
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
2392
2393
|
"text-anchor": "middle",
|
|
2393
2394
|
style: { transition: "none" }
|
|
2394
|
-
}, ee(l.value.chart.grid.labels.axis.yLabel), 9,
|
|
2395
|
+
}, ee(l.value.chart.grid.labels.axis.yLabel), 9, vu)) : d("", !0),
|
|
2395
2396
|
l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
|
|
2396
2397
|
key: 1,
|
|
2397
2398
|
ref_key: "xAxisLabel",
|
|
2398
|
-
ref:
|
|
2399
|
+
ref: Vl,
|
|
2399
2400
|
"text-anchor": "middle",
|
|
2400
|
-
x:
|
|
2401
|
+
x: ae.value / 2,
|
|
2401
2402
|
y: ve.value - 3,
|
|
2402
2403
|
"font-size": x.value.yAxis,
|
|
2403
2404
|
fill: l.value.chart.grid.labels.color
|
|
2404
|
-
}, ee(l.value.chart.grid.labels.axis.xLabel), 9,
|
|
2405
|
+
}, ee(l.value.chart.grid.labels.axis.xLabel), 9, du)) : d("", !0)
|
|
2405
2406
|
]),
|
|
2406
2407
|
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
|
|
2407
2408
|
key: 13,
|
|
2408
2409
|
ref_key: "timeLabelsEls",
|
|
2409
2410
|
ref: ll
|
|
2410
2411
|
}, [
|
|
2411
|
-
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(
|
|
2412
|
+
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(le.value, (e, s) => q(a.$slots, "time-label", jl({
|
|
2412
2413
|
key: `time_label_${s}`,
|
|
2413
2414
|
ref_for: !0
|
|
2414
2415
|
}, {
|
|
@@ -2420,11 +2421,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2420
2421
|
absoluteIndex: e.absoluteIndex,
|
|
2421
2422
|
content: e.text,
|
|
2422
2423
|
textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2423
|
-
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <=
|
|
2424
|
-
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(
|
|
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
|
|
2425
|
+
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(le.value, (e, s) => (u(), i("g", {
|
|
2425
2426
|
key: `time_label_${s}`
|
|
2426
2427
|
}, [
|
|
2427
|
-
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <=
|
|
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 }, [
|
|
2428
2429
|
String(e.text).includes(`
|
|
2429
2430
|
`) ? (u(), i("text", {
|
|
2430
2431
|
key: 1,
|
|
@@ -2432,34 +2433,34 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2432
2433
|
"font-size": x.value.xAxis,
|
|
2433
2434
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2434
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})`,
|
|
2435
|
-
style:
|
|
2436
|
-
cursor:
|
|
2436
|
+
style: z({
|
|
2437
|
+
cursor: ga() ? "pointer" : "default"
|
|
2437
2438
|
}),
|
|
2438
|
-
innerHTML: v(
|
|
2439
|
+
innerHTML: v(Qt)({
|
|
2439
2440
|
content: String(e.text),
|
|
2440
2441
|
fontSize: x.value.xAxis,
|
|
2441
2442
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2442
2443
|
x: 0,
|
|
2443
2444
|
y: 0
|
|
2444
2445
|
}),
|
|
2445
|
-
onClick: () =>
|
|
2446
|
-
}, null, 12,
|
|
2446
|
+
onClick: () => ma(e, s)
|
|
2447
|
+
}, null, 12, fu)) : (u(), i("text", {
|
|
2447
2448
|
key: 0,
|
|
2448
2449
|
class: "vue-data-ui-time-label",
|
|
2449
2450
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2450
2451
|
"font-size": x.value.xAxis,
|
|
2451
2452
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2452
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})`,
|
|
2453
|
-
style:
|
|
2454
|
-
cursor:
|
|
2454
|
+
style: z({
|
|
2455
|
+
cursor: ga() ? "pointer" : "default"
|
|
2455
2456
|
}),
|
|
2456
|
-
onClick: () =>
|
|
2457
|
-
}, ee(e.text || ""), 13,
|
|
2457
|
+
onClick: () => ma(e, s)
|
|
2458
|
+
}, ee(e.text || ""), 13, hu))
|
|
2458
2459
|
], 64)) : d("", !0)
|
|
2459
2460
|
]))), 128))
|
|
2460
2461
|
], 512)) : d("", !0),
|
|
2461
|
-
|
|
2462
|
-
(u(!0), i(h, null, y(
|
|
2462
|
+
Ma.value.length && !f.value.isStacked ? (u(), i("g", gu, [
|
|
2463
|
+
(u(!0), i(h, null, y(Ma.value, (e) => (u(), i("g", {
|
|
2463
2464
|
key: e.uid
|
|
2464
2465
|
}, [
|
|
2465
2466
|
e.yTop && e.show && isFinite(e.yTop) ? (u(), i("line", {
|
|
@@ -2473,7 +2474,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2473
2474
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2474
2475
|
"stroke-linecap": "round",
|
|
2475
2476
|
style: { animation: "none !important" }
|
|
2476
|
-
}, null, 8,
|
|
2477
|
+
}, null, 8, xu)) : d("", !0),
|
|
2477
2478
|
e.yBottom && e.show && isFinite(e.yBottom) ? (u(), i("line", {
|
|
2478
2479
|
key: 1,
|
|
2479
2480
|
x1: e.x1,
|
|
@@ -2485,7 +2486,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2485
2486
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2486
2487
|
"stroke-linecap": "round",
|
|
2487
2488
|
style: { animation: "none !important" }
|
|
2488
|
-
}, null, 8,
|
|
2489
|
+
}, null, 8, bu)) : d("", !0),
|
|
2489
2490
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
|
|
2490
2491
|
key: 2,
|
|
2491
2492
|
y: Math.min(e.yTop, e.yBottom),
|
|
@@ -2494,8 +2495,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2494
2495
|
height: v(T)(e.areaHeight, 0),
|
|
2495
2496
|
fill: v(we)(e.config.area.fill, e.config.area.opacity),
|
|
2496
2497
|
style: { animation: "none !important" }
|
|
2497
|
-
}, null, 8,
|
|
2498
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect",
|
|
2498
|
+
}, null, 8, mu)) : d("", !0),
|
|
2499
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", jl({
|
|
2499
2500
|
key: 3,
|
|
2500
2501
|
class: "vue-ui-xy-annotation-label-box"
|
|
2501
2502
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
|
|
@@ -2508,10 +2509,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2508
2509
|
"font-size": e.config.label.fontSize,
|
|
2509
2510
|
fill: e.config.label.color,
|
|
2510
2511
|
"text-anchor": e.config.label.textAnchor
|
|
2511
|
-
}, ee(e.config.label.text), 9,
|
|
2512
|
+
}, ee(e.config.label.text), 9, yu)) : d("", !0)
|
|
2512
2513
|
]))), 128))
|
|
2513
2514
|
])) : d("", !0),
|
|
2514
|
-
|
|
2515
|
+
Ul.value ? (u(), i("g", pu, [
|
|
2515
2516
|
(u(!0), i(h, null, y(b.value, (e, s) => (u(), i("rect", {
|
|
2516
2517
|
key: `tooltip_trap_${s}`,
|
|
2517
2518
|
x: n.value.left + n.value.width / b.value * s,
|
|
@@ -2519,14 +2520,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2519
2520
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
2520
2521
|
width: n.value.width / b.value < 0 ? 1e-5 : n.value.width / b.value,
|
|
2521
2522
|
fill: "transparent",
|
|
2522
|
-
onMouseenter: (t) =>
|
|
2523
|
-
onMouseleave: c[1] || (c[1] = (t) =>
|
|
2524
|
-
onClick: (t) =>
|
|
2525
|
-
}, 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))
|
|
2526
2527
|
])) : d("", !0),
|
|
2527
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(
|
|
2528
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", _u, [
|
|
2528
2529
|
(u(), i("foreignObject", {
|
|
2529
|
-
x: n.value.left + n.value.width / b.value * ((
|
|
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,
|
|
2530
2531
|
y: n.value.bottom,
|
|
2531
2532
|
width: "200",
|
|
2532
2533
|
height: "40",
|
|
@@ -2534,22 +2535,22 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2534
2535
|
}, [
|
|
2535
2536
|
g("div", {
|
|
2536
2537
|
class: "vue-ui-xy-time-tag",
|
|
2537
|
-
style:
|
|
2538
|
-
}, ee(
|
|
2539
|
-
], 8,
|
|
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`)
|
|
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)
|
|
2540
|
+
], 8, wu)),
|
|
2540
2541
|
g("circle", {
|
|
2541
|
-
cx: n.value.left + n.value.width / b.value * ((
|
|
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,
|
|
2542
2543
|
cy: n.value.bottom,
|
|
2543
2544
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2544
2545
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
2545
|
-
}, null, 8,
|
|
2546
|
+
}, null, 8, Su)
|
|
2546
2547
|
])) : d("", !0)
|
|
2547
2548
|
])) : d("", !0),
|
|
2548
|
-
q(a.$slots, "svg", { svg:
|
|
2549
|
+
q(a.$slots, "svg", { svg: it.value }, void 0, !0)
|
|
2549
2550
|
], 512)
|
|
2550
|
-
], 14,
|
|
2551
|
-
a.$slots.watermark ? (u(), i("div",
|
|
2552
|
-
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(
|
|
2551
|
+
], 14, go)),
|
|
2552
|
+
a.$slots.watermark ? (u(), i("div", $u, [
|
|
2553
|
+
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Gl) || v(ca) })), void 0, !0)
|
|
2553
2554
|
])) : d("", !0),
|
|
2554
2555
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2555
2556
|
key: `tag_line_${s}`
|
|
@@ -2557,13 +2558,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2557
2558
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2558
2559
|
key: `tag_line_${s}_${r}`
|
|
2559
2560
|
}, [
|
|
2560
|
-
[O.value,
|
|
2561
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2561
2562
|
key: 0,
|
|
2562
2563
|
ref_for: !0,
|
|
2563
2564
|
ref: (o) => $l(s, r, o, "right", "line"),
|
|
2564
2565
|
class: "vue-ui-xy-tag",
|
|
2565
2566
|
"data-tag": "right",
|
|
2566
|
-
style:
|
|
2567
|
+
style: z({
|
|
2567
2568
|
position: "fixed",
|
|
2568
2569
|
top: v(Ee)({
|
|
2569
2570
|
svgElement: be.value,
|
|
@@ -2588,16 +2589,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2588
2589
|
opacity: 1
|
|
2589
2590
|
})
|
|
2590
2591
|
}, [
|
|
2591
|
-
(u(), i("svg",
|
|
2592
|
+
(u(), i("svg", Lu, [
|
|
2592
2593
|
g("path", {
|
|
2593
2594
|
d: "M 0,10 10,0 10,20 Z",
|
|
2594
2595
|
fill: e.color,
|
|
2595
2596
|
stroke: "none"
|
|
2596
|
-
}, null, 8,
|
|
2597
|
+
}, null, 8, Au)
|
|
2597
2598
|
])),
|
|
2598
2599
|
g("div", {
|
|
2599
2600
|
class: "vue-ui-xy-tag-content",
|
|
2600
|
-
innerHTML: v(
|
|
2601
|
+
innerHTML: v(re)(
|
|
2601
2602
|
l.value.line.tag.formatter,
|
|
2602
2603
|
t.value,
|
|
2603
2604
|
e.name,
|
|
@@ -2607,15 +2608,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2607
2608
|
serieName: e.name
|
|
2608
2609
|
}
|
|
2609
2610
|
)
|
|
2610
|
-
}, null, 8,
|
|
2611
|
+
}, null, 8, Mu)
|
|
2611
2612
|
], 4)) : d("", !0),
|
|
2612
|
-
[O.value,
|
|
2613
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2613
2614
|
key: 1,
|
|
2614
2615
|
ref_for: !0,
|
|
2615
2616
|
ref: (o) => $l(s, r, o, "left", "line"),
|
|
2616
2617
|
class: "vue-ui-xy-tag",
|
|
2617
2618
|
"data-tag": "left",
|
|
2618
|
-
style:
|
|
2619
|
+
style: z({
|
|
2619
2620
|
position: "fixed",
|
|
2620
2621
|
top: v(Ee)({
|
|
2621
2622
|
svgElement: be.value,
|
|
@@ -2640,16 +2641,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2640
2641
|
opacity: 1
|
|
2641
2642
|
})
|
|
2642
2643
|
}, [
|
|
2643
|
-
(u(), i("svg",
|
|
2644
|
+
(u(), i("svg", zu, [
|
|
2644
2645
|
g("path", {
|
|
2645
2646
|
d: "M 0,0 10,10 0,20 Z",
|
|
2646
2647
|
fill: e.color,
|
|
2647
2648
|
stroke: "none"
|
|
2648
|
-
}, null, 8,
|
|
2649
|
+
}, null, 8, Cu)
|
|
2649
2650
|
])),
|
|
2650
2651
|
g("div", {
|
|
2651
2652
|
class: "vue-ui-xy-tag-content",
|
|
2652
|
-
innerHTML: v(
|
|
2653
|
+
innerHTML: v(re)(
|
|
2653
2654
|
l.value.line.tag.formatter,
|
|
2654
2655
|
t.value,
|
|
2655
2656
|
e.name,
|
|
@@ -2659,7 +2660,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2659
2660
|
serieName: e.name
|
|
2660
2661
|
}
|
|
2661
2662
|
)
|
|
2662
|
-
}, null, 8,
|
|
2663
|
+
}, null, 8, Iu)
|
|
2663
2664
|
], 4)) : d("", !0)
|
|
2664
2665
|
], 64))), 128))
|
|
2665
2666
|
], 64))), 128)),
|
|
@@ -2669,13 +2670,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2669
2670
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2670
2671
|
key: `tag_plot_${s}_${r}`
|
|
2671
2672
|
}, [
|
|
2672
|
-
[O.value,
|
|
2673
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2673
2674
|
key: 0,
|
|
2674
2675
|
ref_for: !0,
|
|
2675
2676
|
ref: (o) => $l(s, r, o, "right", "plot"),
|
|
2676
2677
|
class: "vue-ui-xy-tag",
|
|
2677
2678
|
"data-tag": "right",
|
|
2678
|
-
style:
|
|
2679
|
+
style: z({
|
|
2679
2680
|
position: "fixed",
|
|
2680
2681
|
top: v(Ee)({
|
|
2681
2682
|
svgElement: be.value,
|
|
@@ -2700,16 +2701,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2700
2701
|
opacity: 1
|
|
2701
2702
|
})
|
|
2702
2703
|
}, [
|
|
2703
|
-
(u(), i("svg",
|
|
2704
|
+
(u(), i("svg", Tu, [
|
|
2704
2705
|
g("path", {
|
|
2705
2706
|
d: "M 0,10 10,0 10,20 Z",
|
|
2706
2707
|
fill: e.color,
|
|
2707
2708
|
stroke: "none"
|
|
2708
|
-
}, null, 8,
|
|
2709
|
+
}, null, 8, Ou)
|
|
2709
2710
|
])),
|
|
2710
2711
|
g("div", {
|
|
2711
2712
|
class: "vue-ui-xy-tag-content",
|
|
2712
|
-
innerHTML: v(
|
|
2713
|
+
innerHTML: v(re)(
|
|
2713
2714
|
l.value.plot.tag.formatter,
|
|
2714
2715
|
t.value,
|
|
2715
2716
|
e.name,
|
|
@@ -2719,15 +2720,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2719
2720
|
serieName: e.name
|
|
2720
2721
|
}
|
|
2721
2722
|
)
|
|
2722
|
-
}, null, 8,
|
|
2723
|
+
}, null, 8, Nu)
|
|
2723
2724
|
], 4)) : d("", !0),
|
|
2724
|
-
[O.value,
|
|
2725
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2725
2726
|
key: 1,
|
|
2726
2727
|
ref_for: !0,
|
|
2727
2728
|
ref: (o) => $l(s, r, o, "left", "plot"),
|
|
2728
2729
|
class: "vue-ui-xy-tag",
|
|
2729
2730
|
"data-tag": "left",
|
|
2730
|
-
style:
|
|
2731
|
+
style: z({
|
|
2731
2732
|
position: "fixed",
|
|
2732
2733
|
top: v(Ee)({
|
|
2733
2734
|
svgElement: be.value,
|
|
@@ -2752,16 +2753,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2752
2753
|
opacity: 1
|
|
2753
2754
|
})
|
|
2754
2755
|
}, [
|
|
2755
|
-
(u(), i("svg",
|
|
2756
|
+
(u(), i("svg", Vu, [
|
|
2756
2757
|
g("path", {
|
|
2757
2758
|
d: "M 0,0 10,10 0,20 Z",
|
|
2758
2759
|
fill: e.color,
|
|
2759
2760
|
stroke: "none"
|
|
2760
|
-
}, null, 8,
|
|
2761
|
+
}, null, 8, Pu)
|
|
2761
2762
|
])),
|
|
2762
2763
|
g("div", {
|
|
2763
2764
|
class: "vue-ui-xy-tag-content",
|
|
2764
|
-
innerHTML: v(
|
|
2765
|
+
innerHTML: v(re)(
|
|
2765
2766
|
l.value.plot.tag.formatter,
|
|
2766
2767
|
t.value,
|
|
2767
2768
|
e.name,
|
|
@@ -2771,30 +2772,30 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2771
2772
|
serieName: e.name
|
|
2772
2773
|
}
|
|
2773
2774
|
)
|
|
2774
|
-
}, null, 8,
|
|
2775
|
+
}, null, 8, Hu)
|
|
2775
2776
|
], 4)) : d("", !0)
|
|
2776
2777
|
], 64))), 128))
|
|
2777
2778
|
], 64))), 128)),
|
|
2778
|
-
l.value.chart.zoom.show && Ve.value > 6 &&
|
|
2779
|
+
l.value.chart.zoom.show && Ve.value > 6 && Wl.value ? (u(), Me(so, {
|
|
2779
2780
|
ref_key: "chartSlicer",
|
|
2780
2781
|
ref: Se,
|
|
2781
|
-
key: `slicer_${
|
|
2782
|
+
key: `slicer_${Bl.value}`,
|
|
2782
2783
|
background: l.value.chart.zoom.color,
|
|
2783
2784
|
fontSize: l.value.chart.zoom.fontSize,
|
|
2784
2785
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
2785
|
-
labelLeft:
|
|
2786
|
-
labelRight:
|
|
2786
|
+
labelLeft: le.value[0].text,
|
|
2787
|
+
labelRight: le.value.at(-1).text,
|
|
2787
2788
|
textColor: l.value.chart.color,
|
|
2788
2789
|
inputColor: l.value.chart.zoom.color,
|
|
2789
2790
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
2790
2791
|
borderColor: l.value.chart.backgroundColor,
|
|
2791
|
-
minimap:
|
|
2792
|
+
minimap: It.value,
|
|
2792
2793
|
smoothMinimap: l.value.chart.zoom.minimap.smooth,
|
|
2793
2794
|
minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
|
|
2794
2795
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
2795
2796
|
minimapLineColor: l.value.chart.zoom.minimap.lineColor,
|
|
2796
2797
|
minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
|
|
2797
|
-
minimapSelectedIndex:
|
|
2798
|
+
minimapSelectedIndex: k.value,
|
|
2798
2799
|
minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
|
|
2799
2800
|
verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
|
|
2800
2801
|
max: Ve.value,
|
|
@@ -2806,13 +2807,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2806
2807
|
end: S.value.end,
|
|
2807
2808
|
"onUpdate:end": c[3] || (c[3] = (e) => S.value.end = e),
|
|
2808
2809
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
2809
|
-
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...
|
|
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)),
|
|
2810
2811
|
enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
|
|
2811
2812
|
enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
|
|
2812
|
-
onReset:
|
|
2813
|
-
onTrapMouse:
|
|
2813
|
+
onReset: pt,
|
|
2814
|
+
onTrapMouse: bt
|
|
2814
2815
|
}, {
|
|
2815
|
-
"reset-action":
|
|
2816
|
+
"reset-action": ue(({ reset: e }) => [
|
|
2816
2817
|
q(a.$slots, "reset-action", Ze(Je({ reset: e })), void 0, !0)
|
|
2817
2818
|
]),
|
|
2818
2819
|
_: 3
|
|
@@ -2822,14 +2823,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2822
2823
|
ref_key: "chartLegend",
|
|
2823
2824
|
ref: el,
|
|
2824
2825
|
class: "vue-ui-xy-legend",
|
|
2825
|
-
style:
|
|
2826
|
+
style: z(`font-size:${l.value.chart.legend.fontSize}px`)
|
|
2826
2827
|
}, [
|
|
2827
2828
|
(u(!0), i(h, null, y(Te.value, (e, s) => (u(), i("div", {
|
|
2828
2829
|
key: `div_legend_item_${s}`,
|
|
2829
|
-
onClick: (t) =>
|
|
2830
|
-
class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated":
|
|
2830
|
+
onClick: (t) => $a(e),
|
|
2831
|
+
class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
|
|
2831
2832
|
}, [
|
|
2832
|
-
il.value[e.type] === "line" ? (u(), i("svg",
|
|
2833
|
+
il.value[e.type] === "line" ? (u(), i("svg", Bu, [
|
|
2833
2834
|
g("rect", {
|
|
2834
2835
|
x: "0",
|
|
2835
2836
|
y: "7.5",
|
|
@@ -2839,8 +2840,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2839
2840
|
height: "3",
|
|
2840
2841
|
width: "20",
|
|
2841
2842
|
fill: e.color
|
|
2842
|
-
}, null, 8,
|
|
2843
|
-
xl(
|
|
2843
|
+
}, null, 8, Yu),
|
|
2844
|
+
xl(Il, {
|
|
2844
2845
|
plot: { x: 10, y: 9 },
|
|
2845
2846
|
radius: 4,
|
|
2846
2847
|
color: e.color,
|
|
@@ -2848,7 +2849,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2848
2849
|
stroke: l.value.chart.backgroundColor,
|
|
2849
2850
|
strokeWidth: 0.5
|
|
2850
2851
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2851
|
-
])) : il.value[e.type] === "bar" ? (u(), i("svg",
|
|
2852
|
+
])) : il.value[e.type] === "bar" ? (u(), i("svg", Fu, [
|
|
2852
2853
|
il.value[e.type] === "bar" && a.$slots.pattern ? (u(), i("rect", {
|
|
2853
2854
|
key: 0,
|
|
2854
2855
|
x: "0",
|
|
@@ -2858,7 +2859,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2858
2859
|
width: "40",
|
|
2859
2860
|
stroke: "none",
|
|
2860
2861
|
fill: e.color
|
|
2861
|
-
}, null, 8,
|
|
2862
|
+
}, null, 8, Eu)) : d("", !0),
|
|
2862
2863
|
il.value[e.type] === "bar" ? (u(), i("rect", {
|
|
2863
2864
|
key: 1,
|
|
2864
2865
|
x: "0",
|
|
@@ -2868,9 +2869,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2868
2869
|
width: "40",
|
|
2869
2870
|
stroke: "none",
|
|
2870
2871
|
fill: a.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
|
|
2871
|
-
}, null, 8,
|
|
2872
|
-
])) : (u(), i("svg",
|
|
2873
|
-
xl(
|
|
2872
|
+
}, null, 8, Wu)) : d("", !0)
|
|
2873
|
+
])) : (u(), i("svg", Xu, [
|
|
2874
|
+
xl(Il, {
|
|
2874
2875
|
plot: { x: 6, y: 6 },
|
|
2875
2876
|
radius: 5,
|
|
2876
2877
|
color: e.color,
|
|
@@ -2878,9 +2879,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2878
2879
|
}, null, 8, ["color", "shape"])
|
|
2879
2880
|
])),
|
|
2880
2881
|
g("span", {
|
|
2881
|
-
style:
|
|
2882
|
+
style: z(`color:${l.value.chart.legend.color}`)
|
|
2882
2883
|
}, ee(e.name), 5)
|
|
2883
|
-
], 10,
|
|
2884
|
+
], 10, Ru))), 128))
|
|
2884
2885
|
], 4)) : (u(), i("div", {
|
|
2885
2886
|
key: 7,
|
|
2886
2887
|
ref_key: "chartLegend",
|
|
@@ -2896,8 +2897,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2896
2897
|
}, [
|
|
2897
2898
|
q(a.$slots, "source", {}, void 0, !0)
|
|
2898
2899
|
], 512)) : d("", !0),
|
|
2899
|
-
xl(v(
|
|
2900
|
-
show: f.value.showTooltip &&
|
|
2900
|
+
xl(v(Qa), {
|
|
2901
|
+
show: f.value.showTooltip && sa.value,
|
|
2901
2902
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
2902
2903
|
color: l.value.chart.tooltip.color,
|
|
2903
2904
|
fontSize: l.value.chart.tooltip.fontSize,
|
|
@@ -2908,19 +2909,19 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2908
2909
|
position: l.value.chart.tooltip.position,
|
|
2909
2910
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
2910
2911
|
parent: a.$refs.chart,
|
|
2911
|
-
content:
|
|
2912
|
+
content: Tt.value,
|
|
2912
2913
|
isFullscreen: al.value,
|
|
2913
2914
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
|
|
2914
2915
|
}, {
|
|
2915
|
-
"tooltip-before":
|
|
2916
|
-
q(a.$slots, "tooltip-before", Ze(Je({ ...
|
|
2916
|
+
"tooltip-before": ue(() => [
|
|
2917
|
+
q(a.$slots, "tooltip-before", Ze(Je({ ...za.value })), void 0, !0)
|
|
2917
2918
|
]),
|
|
2918
|
-
"tooltip-after":
|
|
2919
|
-
q(a.$slots, "tooltip-after", Ze(Je({ ...
|
|
2919
|
+
"tooltip-after": ue(() => [
|
|
2920
|
+
q(a.$slots, "tooltip-after", Ze(Je({ ...za.value })), void 0, !0)
|
|
2920
2921
|
]),
|
|
2921
2922
|
_: 3
|
|
2922
2923
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2923
|
-
|
|
2924
|
+
Wl.value ? (u(), Me(v(at), {
|
|
2924
2925
|
key: 9,
|
|
2925
2926
|
hideDetails: "",
|
|
2926
2927
|
config: {
|
|
@@ -2936,46 +2937,46 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2936
2937
|
}
|
|
2937
2938
|
}
|
|
2938
2939
|
}, {
|
|
2939
|
-
content:
|
|
2940
|
+
content: ue(() => [
|
|
2940
2941
|
g("div", {
|
|
2941
|
-
style:
|
|
2942
|
+
style: z(`${v(Gl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2942
2943
|
}, [
|
|
2943
|
-
g("div",
|
|
2944
|
-
|
|
2944
|
+
g("div", Gu, [
|
|
2945
|
+
Bt(g("input", {
|
|
2945
2946
|
type: "checkbox",
|
|
2946
2947
|
"onUpdate:modelValue": c[4] || (c[4] = (e) => nl.value = e)
|
|
2947
2948
|
}, null, 512), [
|
|
2948
|
-
[
|
|
2949
|
+
[Yt, nl.value]
|
|
2949
2950
|
]),
|
|
2950
2951
|
g("div", {
|
|
2951
2952
|
onClick: c[5] || (c[5] = (e) => nl.value = !nl.value),
|
|
2952
2953
|
style: { cursor: "pointer" }
|
|
2953
2954
|
}, [
|
|
2954
|
-
xl(v(
|
|
2955
|
+
xl(v(et), {
|
|
2955
2956
|
name: "chartLine",
|
|
2956
2957
|
size: 20,
|
|
2957
2958
|
stroke: l.value.chart.color
|
|
2958
2959
|
}, null, 8, ["stroke"])
|
|
2959
2960
|
])
|
|
2960
2961
|
]),
|
|
2961
|
-
nl.value ? (u(), Me(v(
|
|
2962
|
-
key: `sparkline_${
|
|
2963
|
-
dataset:
|
|
2964
|
-
config:
|
|
2965
|
-
}, null, 8, ["dataset", "config"])) : (u(), Me(v(
|
|
2966
|
-
key: `table_${
|
|
2967
|
-
colNames:
|
|
2968
|
-
head:
|
|
2969
|
-
body:
|
|
2970
|
-
config:
|
|
2962
|
+
nl.value ? (u(), Me(v(lt), {
|
|
2963
|
+
key: `sparkline_${Yl.value}`,
|
|
2964
|
+
dataset: Mt.value,
|
|
2965
|
+
config: zt.value
|
|
2966
|
+
}, null, 8, ["dataset", "config"])) : (u(), Me(v(Ka), {
|
|
2967
|
+
key: `table_${ra.value}`,
|
|
2968
|
+
colNames: Ml.value.colNames,
|
|
2969
|
+
head: Ml.value.head,
|
|
2970
|
+
body: Ml.value.body,
|
|
2971
|
+
config: Ml.value.config,
|
|
2971
2972
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
2972
2973
|
onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
|
|
2973
2974
|
}, {
|
|
2974
|
-
th:
|
|
2975
|
-
g("div", { innerHTML: e }, null, 8,
|
|
2975
|
+
th: ue(({ th: e }) => [
|
|
2976
|
+
g("div", { innerHTML: e }, null, 8, Du)
|
|
2976
2977
|
]),
|
|
2977
|
-
td:
|
|
2978
|
-
|
|
2978
|
+
td: ue(({ td: e }) => [
|
|
2979
|
+
Ft(ee(isNaN(Number(e)) ? e : v(xe)({
|
|
2979
2980
|
p: l.value.chart.labels.prefix,
|
|
2980
2981
|
v: e,
|
|
2981
2982
|
s: l.value.chart.labels.suffix,
|
|
@@ -2988,10 +2989,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2988
2989
|
]),
|
|
2989
2990
|
_: 1
|
|
2990
2991
|
}, 8, ["config"])) : d("", !0),
|
|
2991
|
-
v(
|
|
2992
|
-
], 46,
|
|
2992
|
+
v(Xl) ? (u(), Me(co, { key: 10 })) : d("", !0)
|
|
2993
|
+
], 46, fo));
|
|
2993
2994
|
}
|
|
2994
|
-
},
|
|
2995
|
+
}, rr = /* @__PURE__ */ ho(qu, [["__scopeId", "data-v-f2bb4a89"]]);
|
|
2995
2996
|
export {
|
|
2996
|
-
|
|
2997
|
+
rr as default
|
|
2997
2998
|
};
|