vue-data-ui 3.0.0-next.20 → 3.0.0-next.21
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-C3yKQTJs.js} +1 -1
- package/dist/{BaseDraggableDialog-DdMqvofL.js → BaseDraggableDialog-B2wP_11m.js} +2 -2
- package/dist/{BaseIcon-GwmxkCYt.js → BaseIcon-_brgsjLG.js} +1 -1
- package/dist/{ColorPicker-CWPVu4Mn.js → ColorPicker-CCG8G1nd.js} +2 -2
- package/dist/{DataTable-DiYlFcoN.js → DataTable-C3ve--z6.js} +2 -2
- package/dist/{Legend-CJH2DwvF.js → Legend-CX874XJp.js} +2 -2
- package/dist/{NonSvgPenAndPaper-kP7w_wnX.js → NonSvgPenAndPaper-CnTtK3iB.js} +3 -3
- package/dist/{PackageVersion-C3IgYdy5.js → PackageVersion-5l2M4Zh4.js} +1 -1
- package/dist/{PenAndPaper-DX7Vz7zG.js → PenAndPaper-CYEXrj4q.js} +3 -3
- package/dist/{Shape-M_osyQRq.js → Shape-Du8dC9QE.js} +1 -1
- package/dist/{Slicer-DSoA99Qi.js → Slicer-D06CTSaX.js} +2 -2
- package/dist/{SparkTooltip-QHzSSaRw.js → SparkTooltip-DcX30xns.js} +1 -1
- package/dist/{Title-BZzqwhfm.js → Title-CItmidxn.js} +1 -1
- package/dist/{Tooltip-CM7R4xmg.js → Tooltip-lhQXI9xT.js} +1 -1
- package/dist/{UserOptions-YnajLuA-.js → UserOptions-mGHinyKk.js} +2 -2
- package/dist/{dom-to-png-CwcljPsH.js → dom-to-png-juWKTR2G.js} +1 -1
- package/dist/{img-BTcfCQH5.js → img-2Cyzq02w.js} +1 -1
- package/dist/{index-BAN_h_nZ.js → index-DyWXkFFm.js} +1 -1
- package/dist/{pdf-BpoXwx5J.js → pdf-C9bVIzob.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BV-XJ1SY.js → useNestedProp-5rJrnAmD.js} +1 -1
- package/dist/{usePrinter-UlRss_LR.js → usePrinter-YV36Zq2L.js} +2 -2
- package/dist/{vue-data-ui-djYxJCHp.js → vue-data-ui-Br6XzNcY.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C_4BSVNz.js → vue-ui-3d-bar-BeZ4UXj1.js} +6 -6
- package/dist/{vue-ui-accordion-7QHuQc6-.js → vue-ui-accordion-_T76roov.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bk6krIzr.js → vue-ui-age-pyramid-DyILZmL1.js} +6 -6
- package/dist/{vue-ui-annotator-CdX7H6hn.js → vue-ui-annotator-D6vtgVKu.js} +2 -2
- package/dist/{vue-ui-bullet-DwyS1JQX.js → vue-ui-bullet-CRL0nm0H.js} +7 -7
- package/dist/{vue-ui-candlestick-DX_YX-vm.js → vue-ui-candlestick-Lv87ukLK.js} +7 -7
- package/dist/{vue-ui-carousel-table-B1cAxuTm.js → vue-ui-carousel-table-bQiT7iYL.js} +4 -4
- package/dist/{vue-ui-chestnut-DpKv0sh4.js → vue-ui-chestnut-CshEgUb5.js} +5 -5
- package/dist/{vue-ui-chord-CiPJPGiG.js → vue-ui-chord-C_Gurj0k.js} +8 -8
- package/dist/{vue-ui-circle-pack-Bjkt4LB5.js → vue-ui-circle-pack-DcDbc0cs.js} +6 -6
- package/dist/{vue-ui-cursor-D84ggJvK.js → vue-ui-cursor-BlANSWeT.js} +2 -2
- package/dist/{vue-ui-dashboard-C_yR4UTa.js → vue-ui-dashboard-Dylth91b.js} +62 -62
- package/dist/{vue-ui-digits-BqEMiolR.js → vue-ui-digits-BISvEvKG.js} +2 -2
- package/dist/{vue-ui-donut-SC_gy9DF.js → vue-ui-donut-DJYRCCLe.js} +8 -8
- package/dist/{vue-ui-donut-evolution-NkWihGjp.js → vue-ui-donut-evolution--nHID422.js} +8 -8
- package/dist/{vue-ui-dumbbell-tCZEa_qU.js → vue-ui-dumbbell-CsZa3YKC.js} +7 -7
- package/dist/{vue-ui-flow-BsnqODVX.js → vue-ui-flow-D1YZHLf1.js} +7 -7
- package/dist/{vue-ui-funnel-rjuN7SMb.js → vue-ui-funnel-KScJM0Sk.js} +6 -6
- package/dist/{vue-ui-galaxy-maMA25Pj.js → vue-ui-galaxy-7I6nMU7k.js} +5 -5
- package/dist/{vue-ui-gauge-DBk_QEqG.js → vue-ui-gauge-BWOeGXdp.js} +6 -6
- package/dist/{vue-ui-gizmo-BbGKsycH.js → vue-ui-gizmo-C7Oci8xf.js} +3 -3
- package/dist/{vue-ui-heatmap-J0HrOp33.js → vue-ui-heatmap-CeQq5YFh.js} +7 -7
- package/dist/{vue-ui-history-plot-C1WCPCFB.js → vue-ui-history-plot-C1R46zuZ.js} +7 -7
- package/dist/{vue-ui-kpi-DXP7mJmU.js → vue-ui-kpi-CXXCCBoi.js} +3 -3
- package/dist/{vue-ui-mini-loader-BDCUhVXV.js → vue-ui-mini-loader-BDeMu-HG.js} +2 -2
- package/dist/{vue-ui-molecule-BK4mr3zK.js → vue-ui-molecule-BG_Vm9Z-.js} +5 -5
- package/dist/{vue-ui-mood-radar-CidQ7htJ.js → vue-ui-mood-radar-68rvpqSe.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CNNuwHVy.js → vue-ui-nested-donuts-y7DnbLj7.js} +9 -9
- package/dist/{vue-ui-onion-BKzAnhfX.js → vue-ui-onion-cpCWH8CY.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BVxjoZbs.js → vue-ui-parallel-coordinate-plot-AXeySjsk.js} +8 -8
- package/dist/{vue-ui-quadrant-DMTwRxJO.js → vue-ui-quadrant-9-wXsL9m.js} +8 -8
- package/dist/{vue-ui-quick-chart-Bh7Uzdkl.js → vue-ui-quick-chart-B_SOReEM.js} +6 -6
- package/dist/{vue-ui-radar-CWneFyvx.js → vue-ui-radar-BryqHi8h.js} +7 -7
- package/dist/{vue-ui-rating-Cpj3lgkf.js → vue-ui-rating-Cm4WHdIj.js} +2 -2
- package/dist/{vue-ui-relation-circle-BbLMXzQC.js → vue-ui-relation-circle-D-wNj3HG.js} +6 -6
- package/dist/{vue-ui-ridgeline-DQOxy2Wd.js → vue-ui-ridgeline-B5y-Z_xt.js} +8 -8
- package/dist/{vue-ui-rings-DQ0sF_fU.js → vue-ui-rings-D-TtSoDJ.js} +8 -8
- package/dist/{vue-ui-scatter-BtdXQwop.js → vue-ui-scatter-DzPgW23k.js} +8 -8
- package/dist/{vue-ui-skeleton-B7V8lFmX.js → vue-ui-skeleton-QZs3A3_K.js} +3 -3
- package/dist/{vue-ui-smiley-ZOCueWUm.js → vue-ui-smiley-ka3aFa0e.js} +2 -2
- package/dist/{vue-ui-spark-trend-DFYHQJ_o.js → vue-ui-spark-trend-CJhdQ9Ls.js} +3 -3
- package/dist/{vue-ui-sparkbar-DDSLizGP.js → vue-ui-sparkbar-CL5ZGdHd.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B7WUdl3j.js → vue-ui-sparkgauge-C5Jdp3zp.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-D8QDG-TS.js → vue-ui-sparkhistogram-CHRRpkm0.js} +4 -4
- package/dist/{vue-ui-sparkline-DeU8AfL8.js → vue-ui-sparkline-B0r89-4E.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-ChW_4elU.js → vue-ui-sparkstackbar-l35guX1R.js} +3 -3
- package/dist/{vue-ui-stackbar-DHgP90mv.js → vue-ui-stackbar-AKs4GMxY.js} +9 -9
- package/dist/{vue-ui-strip-plot-DcUh22d6.js → vue-ui-strip-plot-uhUjZcif.js} +7 -7
- package/dist/{vue-ui-table-B1cY8Rpp.js → vue-ui-table-BbRxUiDQ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BvPtl3oA.js → vue-ui-table-heatmap-CVdmaPTJ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DGDQjRme.js → vue-ui-table-sparkline-DJfVAI5W.js} +4 -4
- package/dist/{vue-ui-thermometer-Dw3WZJ9y.js → vue-ui-thermometer-BYx0gV05.js} +6 -6
- package/dist/{vue-ui-timer-InBkyjSR.js → vue-ui-timer-DL2v49kR.js} +5 -5
- package/dist/{vue-ui-tiremarks-B2K05981.js → vue-ui-tiremarks-LlgdqzTU.js} +6 -6
- package/dist/{vue-ui-treemap-CH0WwNHy.js → vue-ui-treemap-B2v9uGdI.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Hc_kP36D.js → vue-ui-vertical-bar-DSCAkzDF.js} +9 -9
- package/dist/{vue-ui-waffle-BZGzaNiM.js → vue-ui-waffle-DmNJRK-_.js} +8 -8
- package/dist/{vue-ui-wheel-QBwIVAdZ.js → vue-ui-wheel-ChRAwecI.js} +6 -6
- package/dist/{vue-ui-word-cloud-Blri-0nB.js → vue-ui-word-cloud-CELkzbyr.js} +6 -6
- package/dist/{vue-ui-world-Ug4iiW5F.js → vue-ui-world-BOJa-cTu.js} +6 -6
- package/dist/{vue-ui-xy-DGdMvSQ8.js → vue-ui-xy-DfeP_T81.js} +683 -680
- package/dist/{vue-ui-xy-canvas-D_yxXjPt.js → vue-ui-xy-canvas-Dijs3J4M.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 Ot, getCurrentInstance as Nt, ref as w, computed as $, onMounted as Ra, toRefs as Vt, watchEffect as Pt, onBeforeUnmount as Ba, 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 Ht, 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 Rt, vModelCheckbox as Bt, createTextVNode as Yt, nextTick as ml } from "vue";
|
|
2
|
+
import { u as Ft, c as ea, e as la, A as Et, a5 as Ye, b as Wt, D as bl, ab as Ke, d as Xt, p as Gt, ac as zl, aa as R, ad as Dt, v as T, ae as Ya, V as Fa, af as Ea, U as Wa, ag as qt, ah as Xa, ai as Ga, i as re, x as Ut, y as Zt, _ as Da, R as ze, f as xe, w as Qe, s as we, a8 as X, L as Jt, F as Fe, aj as Cl, I as Kt, ak as Ee, C as Ne, t as Qt, a as jt, o as qa, q as eo, r as lo, E as ol } from "./index-DyWXkFFm.js";
|
|
3
|
+
import { u as aa } from "./useNestedProp-5rJrnAmD.js";
|
|
4
|
+
import { u as ao } from "./useTimeLabels-DFkUfjfs.js";
|
|
5
|
+
import { u as to } from "./useTimeLabelCollider-V7AOiPLB.js";
|
|
6
|
+
import { S as oo } from "./Slicer-D06CTSaX.js";
|
|
7
|
+
import so from "./Title-CItmidxn.js";
|
|
8
|
+
import { _ as Il } from "./Shape-Du8dC9QE.js";
|
|
9
|
+
import uo from "./img-2Cyzq02w.js";
|
|
10
|
+
import { u as ro } from "./usePrinter-YV36Zq2L.js";
|
|
11
|
+
import { u as io, B as no } from "./BaseScanner-DIK2NTdp.js";
|
|
12
|
+
import { t as co } from "./useResponsive-DfdjqQps.js";
|
|
13
|
+
import { _ as vo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const ho = ["id"], fo = ["viewBox", "aria-label"], go = ["x", "y", "width", "height"], xo = { key: 1 }, mo = { class: "vue-ui-xy-grid" }, bo = ["stroke", "x1", "x2", "y1", "y2"], yo = ["stroke", "x1", "x2", "y1", "y2"], po = { key: 1 }, ko = ["x1", "x2", "y1", "y2", "stroke"], _o = ["x1", "x2", "y1", "y2", "stroke"], wo = ["x1", "x2", "y1", "y2", "stroke"], So = { key: 3 }, $o = ["d", "stroke"], Lo = { key: 4 }, Ao = ["d", "stroke"], Mo = ["id"], zo = ["stop-color"], Co = ["stop-color"], Io = ["stop-color"], To = ["id"], Oo = ["stop-color"], No = ["stop-color"], Vo = ["stop-color"], Po = ["id"], Ho = ["stop-color"], Ro = ["stop-color"], Bo = ["id"], Yo = ["stop-color"], Fo = ["stop-color"], Eo = ["id"], Wo = ["stop-color"], Xo = ["stop-color"], Go = ["x", "y", "height", "width", "fill"], Do = ["x", "y", "width"], qo = { key: 0 }, Uo = ["x", "y", "height", "width", "fill"], Zo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Jo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ko = ["width", "x", "y"], Qo = { key: 0 }, jo = ["id"], es = ["fill"], ls = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], as = ["x", "y", "font-size", "fill"], ts = ["stroke", "x1", "x2", "y1", "y2"], os = { key: 3 }, ss = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], us = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], rs = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], is = ["fill", "font-size", "transform"], ns = ["x1", "x2", "y1", "y2", "stroke"], cs = ["x", "y", "font-size", "fill"], vs = ["x1", "x2", "y1", "y2", "stroke"], ds = ["x", "y", "font-size", "fill"], hs = ["width", "x", "y"], fs = { style: { width: "100%" } }, gs = { key: 0 }, xs = ["id"], ms = ["fill"], bs = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ys = ["x", "y", "font-size", "fill"], ps = ["d", "stroke", "stroke-width", "stroke-dasharray"], ks = ["d", "stroke", "stroke-width", "stroke-dasharray"], _s = { key: 6 }, ws = { key: 0 }, Ss = ["d", "fill"], $s = ["d", "fill"], Ls = ["d", "fill"], As = ["d", "fill"], Ms = ["d", "stroke", "stroke-width", "stroke-dasharray"], zs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Cs = ["width", "x", "y"], Is = { style: { width: "100%" } }, Ts = { key: 3 }, Os = ["id"], Ns = ["fill"], Vs = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ps = ["x", "y", "font-size", "fill"], Hs = { key: 7 }, Rs = ["x", "y", "font-size", "fill"], Bs = ["x", "y", "font-size", "fill", "font-weight"], Ys = { key: 8 }, Fs = ["x", "y", "font-size", "fill"], Es = { key: 9 }, Ws = ["x", "y"], Xs = ["innerHTML"], Gs = ["x", "y"], Ds = ["innerHTML"], qs = ["x1", "x2", "y1", "y2", "stroke"], Us = { key: 10 }, Zs = ["x", "y", "font-size", "fill"], Js = { key: 11 }, Ks = ["x", "y"], Qs = ["innerHTML"], js = ["x", "y"], eu = ["innerHTML"], lu = ["x1", "x2", "y1", "y2", "stroke"], au = ["x", "y", "font-size", "fill", "innerHTML"], tu = ["x", "y", "font-size", "fill", "innerHTML"], ou = ["x", "y", "font-size", "fill", "innerHTML"], su = ["x", "y", "font-size", "fill", "innerHTML"], uu = ["id"], ru = ["stop-color"], iu = ["stop-color"], nu = ["x", "y", "width", "height", "fill", "onMouseenter"], cu = ["font-size", "fill", "transform"], vu = ["x", "y", "font-size", "fill"], du = ["text-anchor", "font-size", "fill", "transform", "onClick"], hu = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], fu = { key: 14 }, gu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], xu = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], mu = ["y", "x", "width", "height", "fill"], bu = ["id", "x", "y", "font-size", "fill", "text-anchor"], yu = { key: 15 }, pu = ["x", "y", "height", "width", "onMouseenter", "onClick"], ku = {
|
|
15
15
|
key: 16,
|
|
16
16
|
style: { "pointer-events": "none" }
|
|
17
|
-
},
|
|
17
|
+
}, _u = ["x", "y"], wu = ["cx", "cy", "r", "fill"], Su = {
|
|
18
18
|
key: 4,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, $u = {
|
|
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
|
+
}, Lu = ["fill"], Au = ["innerHTML"], Mu = {
|
|
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
|
+
}, zu = ["fill"], Cu = ["innerHTML"], Iu = {
|
|
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
|
+
}, Tu = ["fill"], Ou = ["innerHTML"], Nu = {
|
|
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
|
+
}, Vu = ["fill"], Pu = ["innerHTML"], Hu = ["onClick"], Ru = {
|
|
41
41
|
key: 0,
|
|
42
42
|
viewBox: "0 0 20 12",
|
|
43
43
|
height: "14",
|
|
44
44
|
width: "20"
|
|
45
|
-
},
|
|
45
|
+
}, Bu = ["stroke", "fill"], Yu = {
|
|
46
46
|
key: 1,
|
|
47
47
|
viewBox: "0 0 40 40",
|
|
48
48
|
height: "14",
|
|
49
49
|
width: "14"
|
|
50
|
-
},
|
|
50
|
+
}, Fu = ["fill"], Eu = ["fill"], Wu = {
|
|
51
51
|
key: 2,
|
|
52
52
|
viewBox: "0 0 12 12",
|
|
53
53
|
height: "14",
|
|
54
54
|
width: "14"
|
|
55
|
-
},
|
|
55
|
+
}, Xu = {
|
|
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
|
+
}, Gu = ["innerHTML"], Du = {
|
|
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
|
|
75
|
+
setup(Tl, { expose: Ua, emit: Za }) {
|
|
76
|
+
const b = Tl, Ja = Be(() => import("./DataTable-C3ve--z6.js")), Ka = Be(() => import("./Tooltip-lhQXI9xT.js")), Qa = Be(() => import("./UserOptions-mGHinyKk.js")), ja = Be(() => import("./BaseIcon-_brgsjLG.js")), et = Be(() => import("./vue-ui-table-sparkline-DJfVAI5W.js")), lt = Be(() => import("./vue-ui-accordion-_T76roov.js")), at = Be(() => import("./PackageVersion-5l2M4Zh4.js")), tt = Be(() => import("./PenAndPaper-CYEXrj4q.js")), Ol = Za, ta = Ot(), ot = Nt(), { vue_ui_xy: Nl } = Ft(), je = w(null), sl = w(null), Se = w(null), el = w(null), ul = w(null), rl = w(null), st = 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"), ut = 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), me = w(null), Ce = w({}), _l = w(null), rt = $(() => ({
|
|
77
77
|
height: ve.value,
|
|
78
|
-
width:
|
|
79
|
-
})),
|
|
78
|
+
width: ae.value
|
|
79
|
+
})), it = b.config.downsample && b.config.downsample.threshold ? b.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
|
-
|
|
92
|
-
|
|
93
|
-
[null, void 0].includes(a.series) &&
|
|
91
|
+
Ra(() => {
|
|
92
|
+
b.dataset.length && b.dataset.forEach((a, c) => {
|
|
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
|
|
103
|
-
if (!Object.keys(
|
|
104
|
-
return
|
|
105
|
-
const a =
|
|
106
|
-
userConfig:
|
|
107
|
-
defaultConfig:
|
|
102
|
+
function El() {
|
|
103
|
+
if (!Object.keys(b.config || {}).length)
|
|
104
|
+
return Nl;
|
|
105
|
+
const a = aa({
|
|
106
|
+
userConfig: b.config,
|
|
107
|
+
defaultConfig: Nl
|
|
108
108
|
});
|
|
109
|
-
return
|
|
110
|
-
defaultConfig:
|
|
109
|
+
return b.config && Ne(b.config, "chart.highlightArea") && (Array.isArray(b.config.chart.highlightArea) ? a.chart.highlightArea = b.config.chart.highlightArea : a.chart.highlightArea = [b.config.chart.highlightArea]), b.config && Ne(b.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = b.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, b.config && Ne(b.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = b.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, b.config && Ne(b.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = b.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, b.config && Ne(b.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = b.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, b.config && Ne(b.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = b.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, b.config && b.config.chart.annotations && Array.isArray(b.config.chart.annotations) && b.config.chart.annotations.length ? a.chart.annotations = b.config.chart.annotations.map((c) => aa({
|
|
110
|
+
defaultConfig: Nl.chart.annotations[0],
|
|
111
111
|
userConfig: c
|
|
112
|
-
})) : a.chart.annotations = [],
|
|
113
|
-
...
|
|
114
|
-
userConfig:
|
|
112
|
+
})) : a.chart.annotations = [], b.config && Ne(b.config, "chart.grid.position") && b.config.chart.grid.position === "start" && b.dataset.length && b.dataset.some((c) => c.type === "bar") && (a.chart.grid.position = "middle", Ne(b.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), b.config && Ne(b.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = b.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, a.theme ? {
|
|
113
|
+
...aa({
|
|
114
|
+
userConfig: jt.vue_ui_xy[a.theme] || b.config,
|
|
115
115
|
defaultConfig: a
|
|
116
116
|
}),
|
|
117
|
-
customPalette:
|
|
117
|
+
customPalette: Qt[a.theme] || b.palette
|
|
118
118
|
} : a;
|
|
119
119
|
}
|
|
120
|
-
const
|
|
120
|
+
const Wl = $({
|
|
121
121
|
get() {
|
|
122
|
-
return !!
|
|
122
|
+
return !!b.dataset && b.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: be, manualLoading: wl } = io({
|
|
128
|
+
...Vt(b),
|
|
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: Et({
|
|
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(...
|
|
209
|
+
}), Ve = $({
|
|
210
|
+
get: () => Math.max(...be.value.map((a) => Ye({ data: a.series, threshold: it }).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 } = ro({
|
|
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
|
+
}), nt = w(!1), ha = $(() => Wt(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 ? bl(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 ? be.value.map((a, c) => {
|
|
222
222
|
const e = Ye({
|
|
223
223
|
data: a.series,
|
|
224
224
|
threshold: l.value.downsample.threshold
|
|
@@ -226,126 +226,129 @@ 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: Xt(a.color ? a.color : ha.value[c] ? ha.value[c] : Gt[c]),
|
|
231
231
|
id: s,
|
|
232
232
|
scaleLabel: a.scaleLabel || s
|
|
233
233
|
};
|
|
234
|
-
}) :
|
|
234
|
+
}) : be.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 ct() {
|
|
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), vt = co((a) => {
|
|
256
|
+
ql.value = a;
|
|
257
257
|
}, 100);
|
|
258
|
-
|
|
258
|
+
Pt((a) => {
|
|
259
259
|
const c = ll.value;
|
|
260
260
|
if (!c) return;
|
|
261
261
|
const e = new ResizeObserver((s) => {
|
|
262
|
-
|
|
262
|
+
vt(s[0].contentRect.height);
|
|
263
263
|
});
|
|
264
264
|
e.observe(c), a(() => e.disconnect());
|
|
265
|
-
}),
|
|
266
|
-
|
|
265
|
+
}), Ba(() => {
|
|
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
|
+
}), dt = $(() => be.value.some((a) => a.useProgression)), n = $(() => {
|
|
274
274
|
let a = 0;
|
|
275
275
|
const c = 36;
|
|
276
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (
|
|
277
|
-
const e = l.value.chart.labels.fontSize * 1.1, s =
|
|
276
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (be.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 = ct());
|
|
277
|
+
const e = l.value.chart.labels.fontSize * 1.1, s = dt.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 / m.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
|
-
}),
|
|
294
|
-
const a = l.value.chart.grid.position === "middle" ? 1 : 0, c =
|
|
293
|
+
}), ht = $(() => {
|
|
294
|
+
const a = l.value.chart.grid.position === "middle" ? 1 : 0, c = m.value + a, e = R(n.value.top), s = R(n.value.bottom);
|
|
295
295
|
return Array.from({ length: c }).map((t, r) => {
|
|
296
|
-
const o = n.value.width /
|
|
296
|
+
const o = n.value.width / m.value * r + n.value.left + G.value;
|
|
297
297
|
return `M${o},${e} L${o},${s}`;
|
|
298
298
|
}).join(" ");
|
|
299
|
-
}),
|
|
299
|
+
}), ft = $(() => {
|
|
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 && m.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 / m.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 !!ot?.vnode.props?.onSelectTimeLabel;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function gt(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
|
|
333
|
+
const Ul = w(!1);
|
|
334
|
+
async function ma(a = !1) {
|
|
335
|
+
await ml(), 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
|
|
341
|
-
const a = Math.max(...
|
|
342
|
-
return
|
|
340
|
+
const le = $(() => {
|
|
341
|
+
const a = Math.max(...be.value.map((c) => Ye({ data: c.series, threshold: l.value.downsample.threshold }).length));
|
|
342
|
+
return ao({
|
|
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
353
|
function ba(a, c) {
|
|
351
354
|
const e = pe.value.map((s) => ({
|
|
@@ -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
|
|
368
|
-
function
|
|
370
|
+
const m = $(() => S.value.end - S.value.start);
|
|
371
|
+
function xt(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
386
|
function bt(a) {
|
|
384
|
-
const c = Math.max(...
|
|
387
|
+
const c = Math.max(...be.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
|
|
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 ml(), await ml(), Se.value.setStartValue(l.value.chart.zoom.startIndex)), l.value.chart.zoom.endIndex !== null && (await ml(), await ml(), Se.value.setEndValue(bt(l.value.chart.zoom.endIndex + 1)))) : (S.value = {
|
|
389
392
|
start: 0,
|
|
390
|
-
end: Math.max(...
|
|
391
|
-
},
|
|
393
|
+
end: Math.max(...be.value.map((a) => Ye({ data: a.series, threshold: l.value.downsample.threshold }).length))
|
|
394
|
+
}, Bl.value += 1);
|
|
392
395
|
}
|
|
393
|
-
function
|
|
394
|
-
|
|
396
|
+
function yt() {
|
|
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 /
|
|
413
|
-
plot: n.value.width /
|
|
414
|
-
line: n.value.width /
|
|
414
|
+
const Z = $(() => ({
|
|
415
|
+
bar: n.value.width / m.value / Ie.value.filter((a) => a.type === "bar").filter((a) => !te.value.includes(a.id)).length,
|
|
416
|
+
plot: n.value.width / m.value,
|
|
417
|
+
line: n.value.width / m.value
|
|
415
418
|
}));
|
|
416
419
|
function ke() {
|
|
417
|
-
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width /
|
|
420
|
+
return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - n.value.width / m.value * 0.1 : Z.value.bar;
|
|
418
421
|
}
|
|
419
|
-
function
|
|
420
|
-
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width /
|
|
421
|
-
}
|
|
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;
|
|
422
|
+
function Al(a) {
|
|
423
|
+
return f.value.useIndividualScale && f.value.isStacked ? a.x + n.value.width / m.value * 0.05 : a.x + Z.value.bar / 2;
|
|
424
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 pt(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 kt() {
|
|
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 _t({ 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 uo({ 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 wt = $(() => {
|
|
478
481
|
const a = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
|
|
479
482
|
return `${a}. ${c}`;
|
|
480
|
-
}),
|
|
481
|
-
linePlot:
|
|
482
|
-
})),
|
|
483
|
+
}), La = $(() => ({
|
|
484
|
+
linePlot: m.value > l.value.line.dot.hideAboveMaxSerieLength
|
|
485
|
+
})), St = $(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), $t = $(() => {
|
|
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
|
+
}), Lt = $(() => oa.value ? be.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
|
-
})) :
|
|
506
|
+
})) : be.value), At = $(() => 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(m.value, c)
|
|
510
513
|
};
|
|
511
|
-
})),
|
|
514
|
+
})), Mt = $(() => ({
|
|
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 / m.value / 2), De = $(() => Dt(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) => !
|
|
547
|
-
return n.value.width /
|
|
548
|
-
}), Oe =
|
|
548
|
+
}), zt = $(() => {
|
|
549
|
+
const a = Ie.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
|
|
550
|
+
return n.value.width / m.value / a - Oe.value * a;
|
|
551
|
+
}), Oe = $(() => Z.value.line * l.value.bar.periodGap), Ct = $(() => {
|
|
549
552
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
550
|
-
const a =
|
|
553
|
+
const a = Lt.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 = gt(_.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 /
|
|
627
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, N = l.value.chart.grid.labels.yAxis.useNiceScale ? bl(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 ? bl(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 / m.value * j : n.value.left + Z.value.bar * B + Z.value.bar * j * ne - zt.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 /
|
|
640
|
+
const Re = f.value.useIndividualScale && f.value.isStacked ? n.value.left + n.value.width / m.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 ? bl(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 ? bl(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 Tt = 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 * Tt),
|
|
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 ? Ya(ne) : Fa(ne.filter((I) => I.value !== null)), W = l.value.line.cutNullValues ? Ya(ce) : Fa(ce.filter((I) => I.value !== null)), Q = l.value.line.cutNullValues ? Ea(ne) : Wa(ne.filter((I) => I.value !== null)), V = l.value.line.cutNullValues ? Ea(ce) : Wa(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 ? Xa(
|
|
740
|
+
o.autoScaling ? ce : ne,
|
|
738
741
|
gl
|
|
739
|
-
) :
|
|
740
|
-
o.autoScaling ? ce.filter((I) => I.value !== null) :
|
|
742
|
+
) : Ga(
|
|
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 ? Xa(ne, gl) : Ga(ne.filter((I) => I.value !== null), gl) : "",
|
|
746
|
+
curveAreas: o.useArea ? qt(
|
|
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
|
+
})), It = $(() => {
|
|
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 Ut(s) && Zt(() => 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="${Da({ 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="${Da({ 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,36 +952,36 @@ 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
958
|
});
|
|
956
|
-
|
|
959
|
+
$(() => {
|
|
957
960
|
if (Ie.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
958
961
|
const a = pe.value.map((e) => ({
|
|
959
962
|
label: e.name,
|
|
960
963
|
color: e.color,
|
|
961
964
|
type: e.type
|
|
962
965
|
})), c = [];
|
|
963
|
-
return
|
|
966
|
+
return le.value.forEach((e, s) => {
|
|
964
967
|
const t = [e.text];
|
|
965
968
|
pe.value.forEach((r) => {
|
|
966
969
|
t.push(fe(r.absoluteValues[s]) ? Number(r.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
|
|
967
970
|
}), c.push(t);
|
|
968
971
|
}), { head: a, body: c };
|
|
969
972
|
});
|
|
970
|
-
const
|
|
973
|
+
const Ml = $(() => {
|
|
971
974
|
const a = l.value.table.showSum;
|
|
972
975
|
let c = [""].concat(pe.value.map((r) => r.name));
|
|
973
976
|
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>'));
|
|
974
977
|
let e = [];
|
|
975
|
-
for (let r = 0; r <
|
|
978
|
+
for (let r = 0; r < m.value; r += 1) {
|
|
976
979
|
const o = pe.value.map((B) => B.absoluteValues[r] ?? 0).reduce((B, F) => B + F, 0);
|
|
977
980
|
e.push(
|
|
978
981
|
[
|
|
979
|
-
|
|
982
|
+
le.value[r].text ?? "-"
|
|
980
983
|
].concat(pe.value.map(
|
|
981
|
-
(B) =>
|
|
984
|
+
(B) => re(
|
|
982
985
|
B.type === "line" ? l.value.line.labels.formatter : B.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
|
|
983
986
|
B.absoluteValues[r] ?? 0,
|
|
984
987
|
xe({
|
|
@@ -1006,26 +1009,26 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1006
1009
|
}, t = [l.value.table.columnNames.period].concat(pe.value.map((r) => r.name)).concat(l.value.table.columnNames.total);
|
|
1007
1010
|
return { head: c, body: e, config: s, colNames: t };
|
|
1008
1011
|
});
|
|
1009
|
-
function
|
|
1010
|
-
const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = c.concat([e]).concat(s), r =
|
|
1011
|
-
a ? a(r) :
|
|
1012
|
+
function Ca(a = null) {
|
|
1013
|
+
const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...t.value.head.map((o) => o.label)], s = t.value.body, t = c.concat([e]).concat(s), r = eo(t);
|
|
1014
|
+
a ? a(r) : lo({ csvContent: r, title: l.value.chart.title.text || "vue-ui-xy" });
|
|
1012
1015
|
}
|
|
1013
|
-
function
|
|
1014
|
-
|
|
1016
|
+
function Ia(a, c = null) {
|
|
1017
|
+
sa.value = a, a ? k.value = c : k.value = null;
|
|
1015
1018
|
}
|
|
1016
|
-
function
|
|
1019
|
+
function Ta() {
|
|
1017
1020
|
f.value.showTable = !f.value.showTable;
|
|
1018
1021
|
}
|
|
1019
|
-
function
|
|
1022
|
+
function Oa() {
|
|
1020
1023
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
1021
1024
|
}
|
|
1022
|
-
function
|
|
1025
|
+
function Na() {
|
|
1023
1026
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1024
1027
|
}
|
|
1025
|
-
function
|
|
1026
|
-
al.value = a,
|
|
1028
|
+
function Va(a) {
|
|
1029
|
+
al.value = a, ua.value += 1;
|
|
1027
1030
|
}
|
|
1028
|
-
function
|
|
1031
|
+
function Pa() {
|
|
1029
1032
|
if (!l.value.responsiveProportionalSizing) {
|
|
1030
1033
|
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
1034
|
return;
|
|
@@ -1037,58 +1040,58 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1037
1040
|
threshold: 10,
|
|
1038
1041
|
fallback: 10
|
|
1039
1042
|
}), x.value.yAxis = ol({
|
|
1040
|
-
relator:
|
|
1043
|
+
relator: ae.value,
|
|
1041
1044
|
adjuster: 1e3,
|
|
1042
1045
|
source: l.value.chart.grid.labels.axis.fontSize,
|
|
1043
1046
|
threshold: 10,
|
|
1044
1047
|
fallback: 10
|
|
1045
1048
|
}), x.value.xAxis = ol({
|
|
1046
|
-
relator:
|
|
1049
|
+
relator: ae.value,
|
|
1047
1050
|
adjuster: 1e3,
|
|
1048
1051
|
source: l.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1049
1052
|
threshold: 10,
|
|
1050
1053
|
fallback: 10
|
|
1051
1054
|
}), x.value.plotLabels = ol({
|
|
1052
|
-
relator:
|
|
1055
|
+
relator: ae.value,
|
|
1053
1056
|
adjuster: 800,
|
|
1054
1057
|
source: l.value.chart.labels.fontSize,
|
|
1055
1058
|
threshold: 10,
|
|
1056
1059
|
fallback: 10
|
|
1057
1060
|
}), $e.value.plot = ol({
|
|
1058
|
-
relator:
|
|
1061
|
+
relator: ae.value,
|
|
1059
1062
|
adjuster: 800,
|
|
1060
1063
|
source: l.value.plot.radius,
|
|
1061
1064
|
threshold: 1,
|
|
1062
1065
|
fallback: 1
|
|
1063
1066
|
}), $e.value.line = ol({
|
|
1064
|
-
relator:
|
|
1067
|
+
relator: ae.value,
|
|
1065
1068
|
adjuster: 800,
|
|
1066
1069
|
source: l.value.line.radius,
|
|
1067
1070
|
threshold: 1,
|
|
1068
1071
|
fallback: 1
|
|
1069
1072
|
});
|
|
1070
1073
|
}
|
|
1071
|
-
const hl =
|
|
1072
|
-
function
|
|
1073
|
-
|
|
1074
|
+
const hl = $(() => !!l.value.debug);
|
|
1075
|
+
function Ha() {
|
|
1076
|
+
qa(b.dataset) ? (la({
|
|
1074
1077
|
componentName: "VueUiXy",
|
|
1075
1078
|
type: "dataset",
|
|
1076
1079
|
debug: hl.value
|
|
1077
|
-
}), wl.value = !0) :
|
|
1078
|
-
[null, void 0].includes(c.name) && (
|
|
1080
|
+
}), wl.value = !0) : b.dataset.forEach((c, e) => {
|
|
1081
|
+
[null, void 0].includes(c.name) && (la({
|
|
1079
1082
|
componentName: "VueUiXy",
|
|
1080
1083
|
type: "datasetSerieAttribute",
|
|
1081
1084
|
property: "name (string)",
|
|
1082
1085
|
index: e,
|
|
1083
1086
|
debug: hl.value
|
|
1084
1087
|
}), wl.value = !0);
|
|
1085
|
-
}), hl.value &&
|
|
1088
|
+
}), hl.value && b.dataset.forEach((c) => {
|
|
1086
1089
|
c.series.forEach((e, s) => {
|
|
1087
|
-
|
|
1090
|
+
zl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1088
1091
|
-----> The serie '${c.name}' contains the value '${e}' at index ${s}.
|
|
1089
1092
|
'${e}' was converted to null to allow the chart to display.`);
|
|
1090
1093
|
});
|
|
1091
|
-
}),
|
|
1094
|
+
}), qa(b.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
1095
|
dataLabels: {
|
|
1093
1096
|
show: !0
|
|
1094
1097
|
},
|
|
@@ -1100,55 +1103,55 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1100
1103
|
const a = 12;
|
|
1101
1104
|
if (l.value.responsive) {
|
|
1102
1105
|
const e = je.value.parentNode;
|
|
1103
|
-
We.value && (We.value.unobserve(
|
|
1106
|
+
We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
|
|
1104
1107
|
const { height: s, width: t } = e.getBoundingClientRect();
|
|
1105
1108
|
let r = null, o = 0;
|
|
1106
1109
|
l.value.chart.title.show && sl.value && (r = sl.value, o = r.getBoundingClientRect().height);
|
|
1107
1110
|
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 && (
|
|
1111
|
+
l.value.chart.zoom.show && Ve.value > 6 && Wl.value && Se.value && Se.value.$el && (B = Se.value.$el, F = B.getBoundingClientRect().height);
|
|
1112
|
+
let E = null, L = 0;
|
|
1113
|
+
l.value.chart.legend.show && el.value && (E = el.value, L = E.getBoundingClientRect().height);
|
|
1114
|
+
let C = 0;
|
|
1115
|
+
ul.value && (C = ul.value.getBoundingClientRect().height);
|
|
1113
1116
|
let Y = 0;
|
|
1114
|
-
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o -
|
|
1115
|
-
const
|
|
1117
|
+
rl.value && (Y = rl.value.getBoundingClientRect().height), ve.value = s - o - L - F - C - Y - a, ae.value = t, yl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Pa();
|
|
1118
|
+
const _ = new ResizeObserver((N) => {
|
|
1116
1119
|
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 -
|
|
1120
|
+
l.value.chart.title.show && sl.value ? o = sl.value.getBoundingClientRect().height : o = 0, Se.value && Se.value.$el ? F = Se.value.$el.getBoundingClientRect().height : F = 0, el.value ? L = el.value.getBoundingClientRect().height : L = 0, ul.value ? C = ul.value.getBoundingClientRect().height : C = 0, rl.value ? Y = rl.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
|
|
1121
|
+
ve.value = A.contentRect.height - o - L - F - C - Y - a, ae.value = A.contentBoxSize[0].inlineSize, yl.value = `0 0 ${ae.value < 0 ? 10 : ae.value} ${ve.value < 0 ? 10 : ve.value}`, Pa();
|
|
1119
1122
|
});
|
|
1120
1123
|
});
|
|
1121
|
-
We.value =
|
|
1124
|
+
We.value = _, Rl.value = e, _.observe(e);
|
|
1122
1125
|
} else
|
|
1123
|
-
ve.value = l.value.chart.height,
|
|
1126
|
+
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
1127
|
}
|
|
1125
|
-
return
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
+
return Ra(() => {
|
|
1129
|
+
Ha(), Kl(), document.addEventListener("mousemove", (a) => {
|
|
1130
|
+
ut.value = {
|
|
1128
1131
|
x: a.clientX,
|
|
1129
1132
|
y: a.clientY
|
|
1130
1133
|
};
|
|
1131
|
-
}), document.addEventListener("scroll",
|
|
1132
|
-
}),
|
|
1133
|
-
document.removeEventListener("scroll",
|
|
1134
|
-
}),
|
|
1134
|
+
}), document.addEventListener("scroll", xa);
|
|
1135
|
+
}), Ba(() => {
|
|
1136
|
+
document.removeEventListener("scroll", xa), We.value && (We.value.unobserve(Rl.value), We.value.disconnect());
|
|
1137
|
+
}), to({
|
|
1135
1138
|
timeLabelsEls: ll,
|
|
1136
|
-
timeLabels:
|
|
1139
|
+
timeLabels: le,
|
|
1137
1140
|
slicer: S,
|
|
1138
1141
|
configRef: l,
|
|
1139
1142
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1140
1143
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
|
|
1141
|
-
isAutoSize:
|
|
1142
|
-
}),
|
|
1143
|
-
Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...
|
|
1144
|
+
isAutoSize: nt
|
|
1145
|
+
}), Ql(() => b.dataset, (a) => {
|
|
1146
|
+
Array.isArray(a) && a.length > 0 && (wl.value = !1), Ve.value = Math.max(...be.value.map((c) => Ye({
|
|
1144
1147
|
data: c.series,
|
|
1145
1148
|
threshold: l.value.downsample.threshold
|
|
1146
1149
|
}).length)), S.value = {
|
|
1147
1150
|
start: 0,
|
|
1148
1151
|
end: Ve.value
|
|
1149
|
-
},
|
|
1150
|
-
}, { deep: !0 }),
|
|
1151
|
-
|
|
1152
|
+
}, Bl.value += 1, Yl.value += 1;
|
|
1153
|
+
}, { deep: !0 }), Ql(() => b.config, (a) => {
|
|
1154
|
+
Xl.value || (l.value = El()), Ha(), ia.value += 1, ra.value += 1, f.value = {
|
|
1152
1155
|
dataLabels: {
|
|
1153
1156
|
show: !0
|
|
1154
1157
|
},
|
|
@@ -1157,7 +1160,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1157
1160
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1158
1161
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1159
1162
|
};
|
|
1160
|
-
}, { deep: !0 }),
|
|
1163
|
+
}, { deep: !0 }), Ql(l, () => {
|
|
1161
1164
|
f.value = {
|
|
1162
1165
|
dataLabels: {
|
|
1163
1166
|
show: !0
|
|
@@ -1167,36 +1170,36 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1167
1170
|
isStacked: l.value.chart.grid.labels.yAxis.stacked,
|
|
1168
1171
|
useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1169
1172
|
};
|
|
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:
|
|
1173
|
+
}, { immediate: !0 }), Ua({
|
|
1174
|
+
getData: kt,
|
|
1175
|
+
getImage: _t,
|
|
1176
|
+
generatePdf: va,
|
|
1177
|
+
generateImage: da,
|
|
1178
|
+
generateCsv: Ca,
|
|
1179
|
+
toggleStack: ya,
|
|
1180
|
+
toggleTable: Ta,
|
|
1181
|
+
toggleLabels: Oa,
|
|
1182
|
+
toggleTooltip: Na,
|
|
1183
|
+
toggleAnnotator: Zl,
|
|
1184
|
+
toggleFullscreen: Va
|
|
1182
1185
|
}), (a, c) => (u(), i("div", {
|
|
1183
1186
|
id: `vue-ui-xy_${U.value}`,
|
|
1184
1187
|
class: Ue(`vue-ui-xy ${al.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1185
1188
|
ref_key: "chart",
|
|
1186
1189
|
ref: je,
|
|
1187
|
-
style:
|
|
1188
|
-
onMouseenter: c[7] || (c[7] = () =>
|
|
1189
|
-
onMouseleave: c[8] || (c[8] = () =>
|
|
1190
|
+
style: z(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
1191
|
+
onMouseenter: c[7] || (c[7] = () => ma(!0)),
|
|
1192
|
+
onMouseleave: c[8] || (c[8] = () => ma(!1))
|
|
1190
1193
|
}, [
|
|
1191
|
-
l.value.chart.userOptions.buttons.annotator &&
|
|
1194
|
+
l.value.chart.userOptions.buttons.annotator && me.value ? (u(), Me(v(tt), {
|
|
1192
1195
|
key: 0,
|
|
1193
|
-
svgRef:
|
|
1196
|
+
svgRef: me.value,
|
|
1194
1197
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1195
1198
|
color: l.value.chart.color,
|
|
1196
1199
|
active: pl.value,
|
|
1197
|
-
onClose:
|
|
1200
|
+
onClose: Zl
|
|
1198
1201
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
1199
|
-
|
|
1202
|
+
St.value ? (u(), i("div", {
|
|
1200
1203
|
key: 1,
|
|
1201
1204
|
ref_key: "noTitle",
|
|
1202
1205
|
ref: rl,
|
|
@@ -1208,10 +1211,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1208
1211
|
ref_key: "chartTitle",
|
|
1209
1212
|
ref: sl,
|
|
1210
1213
|
class: "vue-ui-xy-title",
|
|
1211
|
-
style:
|
|
1214
|
+
style: z(`font-family:${l.value.chart.fontFamily}`)
|
|
1212
1215
|
}, [
|
|
1213
|
-
(u(), Me(
|
|
1214
|
-
key: `title_${
|
|
1216
|
+
(u(), Me(so, {
|
|
1217
|
+
key: `title_${ia.value}`,
|
|
1215
1218
|
config: {
|
|
1216
1219
|
title: {
|
|
1217
1220
|
cy: "xy-div-title",
|
|
@@ -1224,13 +1227,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1224
1227
|
}
|
|
1225
1228
|
}, null, 8, ["config"]))
|
|
1226
1229
|
], 4)) : d("", !0),
|
|
1227
|
-
l.value.chart.userOptions.show && (
|
|
1230
|
+
l.value.chart.userOptions.show && (Fl.value || kl.value) ? (u(), Me(v(Qa), {
|
|
1228
1231
|
ref: "defails",
|
|
1229
|
-
key: `user_options_${
|
|
1232
|
+
key: `user_options_${ua.value}`,
|
|
1230
1233
|
backgroundColor: l.value.chart.backgroundColor,
|
|
1231
1234
|
color: l.value.chart.color,
|
|
1232
|
-
isPrinting: v(
|
|
1233
|
-
isImaging: v(
|
|
1235
|
+
isPrinting: v(Gl),
|
|
1236
|
+
isImaging: v(ca),
|
|
1234
1237
|
uid: U.value,
|
|
1235
1238
|
hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
|
|
1236
1239
|
hasPdf: l.value.chart.userOptions.buttons.pdf,
|
|
@@ -1238,7 +1241,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1238
1241
|
hasImg: l.value.chart.userOptions.buttons.img,
|
|
1239
1242
|
hasLabel: l.value.chart.userOptions.buttons.labels,
|
|
1240
1243
|
hasTable: l.value.chart.userOptions.buttons.table,
|
|
1241
|
-
hasStack:
|
|
1244
|
+
hasStack: Tl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
|
|
1242
1245
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1243
1246
|
isStacked: f.value.isStacked,
|
|
1244
1247
|
isFullscreen: al.value,
|
|
@@ -1250,85 +1253,85 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1250
1253
|
isAnnotation: pl.value,
|
|
1251
1254
|
callbacks: l.value.chart.userOptions.callbacks,
|
|
1252
1255
|
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:
|
|
1256
|
+
onToggleFullscreen: Va,
|
|
1257
|
+
onGeneratePdf: v(va),
|
|
1258
|
+
onGenerateCsv: Ca,
|
|
1259
|
+
onGenerateImage: v(da),
|
|
1260
|
+
onToggleTable: Ta,
|
|
1261
|
+
onToggleLabels: Oa,
|
|
1262
|
+
onToggleStack: ya,
|
|
1263
|
+
onToggleTooltip: Na,
|
|
1264
|
+
onToggleAnnotator: Zl,
|
|
1265
|
+
style: z({
|
|
1266
|
+
visibility: Fl.value ? kl.value ? "visible" : "hidden" : "visible"
|
|
1264
1267
|
})
|
|
1265
|
-
},
|
|
1268
|
+
}, Ht({ _: 2 }, [
|
|
1266
1269
|
a.$slots.menuIcon ? {
|
|
1267
1270
|
name: "menuIcon",
|
|
1268
|
-
fn:
|
|
1271
|
+
fn: ue(({ isOpen: e, color: s }) => [
|
|
1269
1272
|
q(a.$slots, "menuIcon", Ze(Je({ isOpen: e, color: s })), void 0, !0)
|
|
1270
1273
|
]),
|
|
1271
1274
|
key: "0"
|
|
1272
1275
|
} : void 0,
|
|
1273
1276
|
a.$slots.optionTooltip ? {
|
|
1274
1277
|
name: "optionTooltip",
|
|
1275
|
-
fn:
|
|
1278
|
+
fn: ue(() => [
|
|
1276
1279
|
q(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1277
1280
|
]),
|
|
1278
1281
|
key: "1"
|
|
1279
1282
|
} : void 0,
|
|
1280
1283
|
a.$slots.optionPdf ? {
|
|
1281
1284
|
name: "optionPdf",
|
|
1282
|
-
fn:
|
|
1285
|
+
fn: ue(() => [
|
|
1283
1286
|
q(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1284
1287
|
]),
|
|
1285
1288
|
key: "2"
|
|
1286
1289
|
} : void 0,
|
|
1287
1290
|
a.$slots.optionCsv ? {
|
|
1288
1291
|
name: "optionCsv",
|
|
1289
|
-
fn:
|
|
1292
|
+
fn: ue(() => [
|
|
1290
1293
|
q(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1291
1294
|
]),
|
|
1292
1295
|
key: "3"
|
|
1293
1296
|
} : void 0,
|
|
1294
1297
|
a.$slots.optionImg ? {
|
|
1295
1298
|
name: "optionImg",
|
|
1296
|
-
fn:
|
|
1299
|
+
fn: ue(() => [
|
|
1297
1300
|
q(a.$slots, "optionImg", {}, void 0, !0)
|
|
1298
1301
|
]),
|
|
1299
1302
|
key: "4"
|
|
1300
1303
|
} : void 0,
|
|
1301
1304
|
a.$slots.optionTable ? {
|
|
1302
1305
|
name: "optionTable",
|
|
1303
|
-
fn:
|
|
1306
|
+
fn: ue(() => [
|
|
1304
1307
|
q(a.$slots, "optionTable", {}, void 0, !0)
|
|
1305
1308
|
]),
|
|
1306
1309
|
key: "5"
|
|
1307
1310
|
} : void 0,
|
|
1308
1311
|
a.$slots.optionLabels ? {
|
|
1309
1312
|
name: "optionLabels",
|
|
1310
|
-
fn:
|
|
1313
|
+
fn: ue(() => [
|
|
1311
1314
|
q(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1312
1315
|
]),
|
|
1313
1316
|
key: "6"
|
|
1314
1317
|
} : void 0,
|
|
1315
1318
|
a.$slots.optionStack ? {
|
|
1316
1319
|
name: "optionStack",
|
|
1317
|
-
fn:
|
|
1320
|
+
fn: ue(() => [
|
|
1318
1321
|
q(a.$slots, "optionStack", {}, void 0, !0)
|
|
1319
1322
|
]),
|
|
1320
1323
|
key: "7"
|
|
1321
1324
|
} : void 0,
|
|
1322
1325
|
a.$slots.optionFullscreen ? {
|
|
1323
1326
|
name: "optionFullscreen",
|
|
1324
|
-
fn:
|
|
1327
|
+
fn: ue(({ toggleFullscreen: e, isFullscreen: s }) => [
|
|
1325
1328
|
q(a.$slots, "optionFullscreen", Ze(Je({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
|
|
1326
1329
|
]),
|
|
1327
1330
|
key: "8"
|
|
1328
1331
|
} : void 0,
|
|
1329
1332
|
a.$slots.optionAnnotator ? {
|
|
1330
1333
|
name: "optionAnnotator",
|
|
1331
|
-
fn:
|
|
1334
|
+
fn: ue(({ toggleAnnotator: e, isAnnotator: s }) => [
|
|
1332
1335
|
q(a.$slots, "optionAnnotator", Ze(Je({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
|
|
1333
1336
|
]),
|
|
1334
1337
|
key: "9"
|
|
@@ -1336,41 +1339,41 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1336
1339
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
1337
1340
|
(u(), i("svg", {
|
|
1338
1341
|
ref_key: "svgRef",
|
|
1339
|
-
ref:
|
|
1342
|
+
ref: me,
|
|
1340
1343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1341
1344
|
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
1345
|
width: "100%",
|
|
1343
1346
|
viewBox: yl.value,
|
|
1344
|
-
style:
|
|
1347
|
+
style: z({
|
|
1345
1348
|
background: "transparent",
|
|
1346
1349
|
color: l.value.chart.color,
|
|
1347
1350
|
fontFamily: l.value.chart.fontFamily
|
|
1348
1351
|
}),
|
|
1349
|
-
"aria-label":
|
|
1352
|
+
"aria-label": wt.value,
|
|
1350
1353
|
role: "img",
|
|
1351
1354
|
"aria-live": "polite",
|
|
1352
1355
|
preserveAspectRatio: "xMidYMid"
|
|
1353
1356
|
}, [
|
|
1354
1357
|
g("g", {
|
|
1355
1358
|
ref_key: "G",
|
|
1356
|
-
ref:
|
|
1359
|
+
ref: st,
|
|
1357
1360
|
class: "vue-data-ui-g"
|
|
1358
1361
|
}, [
|
|
1359
|
-
xl(v(
|
|
1362
|
+
xl(v(at)),
|
|
1360
1363
|
a.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
1361
1364
|
key: 0,
|
|
1362
1365
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
1363
1366
|
y: n.value.top,
|
|
1364
|
-
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
1367
|
+
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value),
|
|
1365
1368
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1366
1369
|
style: {
|
|
1367
1370
|
pointerEvents: "none"
|
|
1368
1371
|
}
|
|
1369
1372
|
}, [
|
|
1370
1373
|
q(a.$slots, "chart-background", {}, void 0, !0)
|
|
1371
|
-
], 8,
|
|
1372
|
-
|
|
1373
|
-
g("g",
|
|
1374
|
+
], 8, go)) : d("", !0),
|
|
1375
|
+
m.value > 0 ? (u(), i("g", xo, [
|
|
1376
|
+
g("g", mo, [
|
|
1374
1377
|
l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
|
|
1375
1378
|
key: 0,
|
|
1376
1379
|
stroke: l.value.chart.grid.stroke,
|
|
@@ -1392,7 +1395,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1392
1395
|
"stroke-width": 0.5,
|
|
1393
1396
|
"stroke-linecap": "round",
|
|
1394
1397
|
style: { animation: "none !important" }
|
|
1395
|
-
}, null, 8,
|
|
1398
|
+
}, null, 8, _o))), 256)) : e.yLabels.length ? (u(!0), i(h, { key: 1 }, y(e.yLabels, (s) => (u(), i("line", {
|
|
1396
1399
|
x1: n.value.left + G.value,
|
|
1397
1400
|
x2: n.value.right - G.value,
|
|
1398
1401
|
y1: v(R)(s.y),
|
|
@@ -1401,7 +1404,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1401
1404
|
"stroke-width": 0.5,
|
|
1402
1405
|
"stroke-linecap": "round",
|
|
1403
1406
|
style: { animation: "none !important" }
|
|
1404
|
-
}, null, 8,
|
|
1407
|
+
}, null, 8, wo))), 256)) : d("", !0)
|
|
1405
1408
|
]))), 256)) : d("", !0) : (u(), i(h, { key: 1 }, [
|
|
1406
1409
|
l.value.chart.grid.labels.yAxis.showBaseline ? (u(), i("line", {
|
|
1407
1410
|
key: 0,
|
|
@@ -1413,9 +1416,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1413
1416
|
y2: v(R)(n.value.bottom),
|
|
1414
1417
|
"stroke-linecap": "round",
|
|
1415
1418
|
style: { animation: "none !important" }
|
|
1416
|
-
}, null, 8,
|
|
1417
|
-
l.value.chart.grid.showHorizontalLines ? (u(), i("g",
|
|
1418
|
-
(u(!0), i(h, null, y(
|
|
1419
|
+
}, null, 8, yo)) : d("", !0),
|
|
1420
|
+
l.value.chart.grid.showHorizontalLines ? (u(), i("g", po, [
|
|
1421
|
+
(u(!0), i(h, null, y(Aa.value, (e) => (u(), i("line", {
|
|
1419
1422
|
x1: n.value.left + G.value,
|
|
1420
1423
|
x2: n.value.right,
|
|
1421
1424
|
y1: v(R)(e.y),
|
|
@@ -1424,26 +1427,26 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1424
1427
|
"stroke-width": 0.5,
|
|
1425
1428
|
"stroke-linecap": "round",
|
|
1426
1429
|
style: { animation: "none !important" }
|
|
1427
|
-
}, null, 8,
|
|
1430
|
+
}, null, 8, ko))), 256))
|
|
1428
1431
|
])) : d("", !0)
|
|
1429
1432
|
], 64)),
|
|
1430
|
-
l.value.chart.grid.showVerticalLines ? (u(), i("g",
|
|
1433
|
+
l.value.chart.grid.showVerticalLines ? (u(), i("g", So, [
|
|
1431
1434
|
g("path", {
|
|
1432
|
-
d:
|
|
1435
|
+
d: ht.value,
|
|
1433
1436
|
"stroke-width": 0.5,
|
|
1434
1437
|
stroke: l.value.chart.grid.stroke,
|
|
1435
1438
|
"stroke-linecap": "round",
|
|
1436
1439
|
style: { animation: "none !important" }
|
|
1437
|
-
}, null, 8,
|
|
1440
|
+
}, null, 8, $o)
|
|
1438
1441
|
])) : d("", !0),
|
|
1439
|
-
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g",
|
|
1442
|
+
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", Lo, [
|
|
1440
1443
|
g("path", {
|
|
1441
|
-
d:
|
|
1444
|
+
d: ft.value,
|
|
1442
1445
|
stroke: l.value.chart.grid.stroke,
|
|
1443
1446
|
"stroke-width": 1,
|
|
1444
1447
|
"stroke-linecap": "round",
|
|
1445
1448
|
style: { animation: "none !important" }
|
|
1446
|
-
}, null, 8,
|
|
1449
|
+
}, null, 8, Ao)
|
|
1447
1450
|
])) : d("", !0)
|
|
1448
1451
|
]),
|
|
1449
1452
|
(u(!0), i(h, null, y(Pe.value, (e, s) => (u(), i("defs", {
|
|
@@ -1457,16 +1460,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1457
1460
|
g("stop", {
|
|
1458
1461
|
offset: "0%",
|
|
1459
1462
|
"stop-color": e.color
|
|
1460
|
-
}, null, 8,
|
|
1463
|
+
}, null, 8, zo),
|
|
1461
1464
|
g("stop", {
|
|
1462
1465
|
offset: "62%",
|
|
1463
1466
|
"stop-color": `${v(Qe)(e.color, 0.02)}`
|
|
1464
|
-
}, null, 8,
|
|
1467
|
+
}, null, 8, Co),
|
|
1465
1468
|
g("stop", {
|
|
1466
1469
|
offset: "100%",
|
|
1467
1470
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1468
|
-
}, null, 8,
|
|
1469
|
-
], 8,
|
|
1471
|
+
}, null, 8, Io)
|
|
1472
|
+
], 8, Mo),
|
|
1470
1473
|
g("linearGradient", {
|
|
1471
1474
|
id: `rectGradient_neg_${s}_${U.value}`,
|
|
1472
1475
|
x2: "0%",
|
|
@@ -1475,16 +1478,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1475
1478
|
g("stop", {
|
|
1476
1479
|
offset: "0%",
|
|
1477
1480
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1478
|
-
}, null, 8,
|
|
1481
|
+
}, null, 8, Oo),
|
|
1479
1482
|
g("stop", {
|
|
1480
1483
|
offset: "38%",
|
|
1481
1484
|
"stop-color": `${v(Qe)(e.color, 0.02)}`
|
|
1482
|
-
}, null, 8,
|
|
1485
|
+
}, null, 8, No),
|
|
1483
1486
|
g("stop", {
|
|
1484
1487
|
offset: "100%",
|
|
1485
1488
|
"stop-color": e.color
|
|
1486
|
-
}, null, 8,
|
|
1487
|
-
], 8,
|
|
1489
|
+
}, null, 8, Vo)
|
|
1490
|
+
], 8, To)
|
|
1488
1491
|
]))), 128)),
|
|
1489
1492
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("defs", {
|
|
1490
1493
|
key: `def_plot_${s}`
|
|
@@ -1500,12 +1503,12 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1500
1503
|
g("stop", {
|
|
1501
1504
|
offset: "0%",
|
|
1502
1505
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1503
|
-
}, null, 8,
|
|
1506
|
+
}, null, 8, Ho),
|
|
1504
1507
|
g("stop", {
|
|
1505
1508
|
offset: "100%",
|
|
1506
1509
|
"stop-color": e.color
|
|
1507
|
-
}, null, 8,
|
|
1508
|
-
], 8,
|
|
1510
|
+
}, null, 8, Ro)
|
|
1511
|
+
], 8, Po)
|
|
1509
1512
|
]))), 128)),
|
|
1510
1513
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("defs", {
|
|
1511
1514
|
key: `def_line_${s}`
|
|
@@ -1521,12 +1524,12 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1521
1524
|
g("stop", {
|
|
1522
1525
|
offset: "0%",
|
|
1523
1526
|
"stop-color": `${v(Qe)(e.color, 0.05)}`
|
|
1524
|
-
}, null, 8,
|
|
1527
|
+
}, null, 8, Yo),
|
|
1525
1528
|
g("stop", {
|
|
1526
1529
|
offset: "100%",
|
|
1527
1530
|
"stop-color": e.color
|
|
1528
|
-
}, null, 8,
|
|
1529
|
-
], 8,
|
|
1531
|
+
}, null, 8, Fo)
|
|
1532
|
+
], 8, Bo),
|
|
1530
1533
|
g("linearGradient", {
|
|
1531
1534
|
id: `areaGradient_${s}_${U.value}`,
|
|
1532
1535
|
x1: "0%",
|
|
@@ -1537,105 +1540,105 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1537
1540
|
g("stop", {
|
|
1538
1541
|
offset: "0%",
|
|
1539
1542
|
"stop-color": `${v(we)(v(Qe)(e.color, 0.03), l.value.line.area.opacity)}`
|
|
1540
|
-
}, null, 8,
|
|
1543
|
+
}, null, 8, Wo),
|
|
1541
1544
|
g("stop", {
|
|
1542
1545
|
offset: "100%",
|
|
1543
1546
|
"stop-color": `${v(we)(e.color, l.value.line.area.opacity)}`
|
|
1544
|
-
}, null, 8,
|
|
1545
|
-
], 8,
|
|
1547
|
+
}, null, 8, Xo)
|
|
1548
|
+
], 8, Eo)
|
|
1546
1549
|
]))), 128)),
|
|
1547
|
-
(u(!0), i(h, null, y(
|
|
1550
|
+
(u(!0), i(h, null, y($t.value, (e) => (u(), i("g", null, [
|
|
1548
1551
|
e.show ? (u(), i(h, { key: 0 }, [
|
|
1549
1552
|
(u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
|
|
1550
1553
|
g("rect", {
|
|
1551
|
-
style:
|
|
1554
|
+
style: z({
|
|
1552
1555
|
transition: "none",
|
|
1553
1556
|
opacity: e.from + t >= S.value.start && e.from + t <= S.value.end - 1 ? 1 : 0
|
|
1554
1557
|
}),
|
|
1555
|
-
x: n.value.left + n.value.width /
|
|
1558
|
+
x: n.value.left + n.value.width / m.value * (e.from + t - S.value.start),
|
|
1556
1559
|
y: n.value.top,
|
|
1557
1560
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1558
|
-
width: n.value.width /
|
|
1561
|
+
width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
|
|
1559
1562
|
fill: v(we)(e.color, e.opacity)
|
|
1560
|
-
}, null, 12,
|
|
1563
|
+
}, null, 12, Go)
|
|
1561
1564
|
]))), 256)),
|
|
1562
1565
|
(u(!0), i(h, null, y(e.span, (s, t) => (u(), i("g", null, [
|
|
1563
1566
|
e.caption.text && t === 0 ? (u(), i("foreignObject", {
|
|
1564
1567
|
key: 0,
|
|
1565
|
-
x: n.value.left + n.value.width /
|
|
1568
|
+
x: n.value.left + n.value.width / m.value * (e.from + t - S.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - n.value.width / m.value * e.span / 2),
|
|
1566
1569
|
y: n.value.top + e.caption.offsetY,
|
|
1567
|
-
style:
|
|
1570
|
+
style: z({
|
|
1568
1571
|
overflow: "visible",
|
|
1569
1572
|
opacity: e.to >= S.value.start && e.from < S.value.end ? 1 : 0
|
|
1570
1573
|
}),
|
|
1571
1574
|
height: "1",
|
|
1572
|
-
width: e.caption.width === "auto" ? n.value.width /
|
|
1575
|
+
width: e.caption.width === "auto" ? n.value.width / m.value * e.span : e.caption.width
|
|
1573
1576
|
}, [
|
|
1574
1577
|
g("div", {
|
|
1575
|
-
style:
|
|
1578
|
+
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
1579
|
}, ee(e.caption.text), 5)
|
|
1577
|
-
], 12,
|
|
1580
|
+
], 12, Do)) : d("", !0)
|
|
1578
1581
|
]))), 256))
|
|
1579
1582
|
], 64)) : d("", !0)
|
|
1580
1583
|
]))), 256)),
|
|
1581
|
-
|
|
1582
|
-
(u(!0), i(h, null, y(
|
|
1584
|
+
Ul.value ? (u(), i("g", qo, [
|
|
1585
|
+
(u(!0), i(h, null, y(m.value, (e, s) => (u(), i("g", {
|
|
1583
1586
|
key: `tooltip_trap_highlighter_${s}`
|
|
1584
1587
|
}, [
|
|
1585
1588
|
g("rect", {
|
|
1586
|
-
x: n.value.left + n.value.width /
|
|
1589
|
+
x: n.value.left + n.value.width / m.value * s,
|
|
1587
1590
|
y: n.value.top,
|
|
1588
1591
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
1589
|
-
width: n.value.width /
|
|
1590
|
-
fill: [O.value,
|
|
1591
|
-
}, null, 8,
|
|
1592
|
+
width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
|
|
1593
|
+
fill: [O.value, k.value, Xe.value].includes(s) ? v(we)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
|
|
1594
|
+
}, null, 8, Uo)
|
|
1592
1595
|
]))), 128))
|
|
1593
1596
|
])) : d("", !0),
|
|
1594
1597
|
Pe.value.length ? (u(!0), i(h, { key: 1 }, y(Pe.value, (e, s) => (u(), i("g", {
|
|
1595
1598
|
key: `serie_bar_${s}`,
|
|
1596
1599
|
class: Ue(`serie_bar_${s}`),
|
|
1597
|
-
style:
|
|
1600
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1598
1601
|
}, [
|
|
1599
1602
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
|
|
1600
1603
|
key: `bar_plot_${s}_${r}`
|
|
1601
1604
|
}, [
|
|
1602
1605
|
fe(t.value) ? (u(), i("rect", {
|
|
1603
1606
|
key: 0,
|
|
1604
|
-
x:
|
|
1605
|
-
y: f.value.useIndividualScale ?
|
|
1606
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1607
|
+
x: Al(t),
|
|
1608
|
+
y: f.value.useIndividualScale ? Sa(t) : wa(t),
|
|
1609
|
+
height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
|
|
1607
1610
|
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
1611
|
rx: l.value.bar.borderRadius,
|
|
1609
1612
|
fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${U.value})` : `url(#rectGradient_neg_${s}_${U.value})` : e.color,
|
|
1610
1613
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1611
1614
|
"stroke-width": l.value.bar.border.strokeWidth,
|
|
1612
|
-
style:
|
|
1613
|
-
}, null, 12,
|
|
1615
|
+
style: z(`${v(Xl) ? "transition:none !important" : ""}`)
|
|
1616
|
+
}, null, 12, Zo)) : d("", !0),
|
|
1614
1617
|
fe(t.value) && a.$slots.pattern ? (u(), i("rect", {
|
|
1615
1618
|
key: 1,
|
|
1616
|
-
x:
|
|
1617
|
-
y: f.value.useIndividualScale ?
|
|
1618
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
1619
|
+
x: Al(t),
|
|
1620
|
+
y: f.value.useIndividualScale ? Sa(t) : wa(t),
|
|
1621
|
+
height: f.value.useIndividualScale ? Math.abs(_a(t)) : Math.abs(ka(t)),
|
|
1619
1622
|
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
1623
|
rx: l.value.bar.borderRadius,
|
|
1621
1624
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`,
|
|
1622
1625
|
stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
|
|
1623
1626
|
"stroke-width": l.value.bar.border.strokeWidth
|
|
1624
|
-
}, null, 8,
|
|
1627
|
+
}, null, 8, Jo)) : d("", !0),
|
|
1625
1628
|
t.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
|
|
1626
1629
|
key: 2,
|
|
1627
1630
|
style: { overflow: "visible" },
|
|
1628
1631
|
height: "12",
|
|
1629
1632
|
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:
|
|
1633
|
+
x: Al(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1631
1634
|
y: v(T)(t.y) + l.value.chart.comments.offsetY + 6
|
|
1632
1635
|
}, [
|
|
1633
1636
|
q(a.$slots, "plot-comment", {
|
|
1634
1637
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1635
1638
|
}, void 0, !0)
|
|
1636
|
-
], 8,
|
|
1639
|
+
], 8, Ko)) : d("", !0)
|
|
1637
1640
|
]))), 128)),
|
|
1638
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g",
|
|
1641
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", Qo, [
|
|
1639
1642
|
g("defs", null, [
|
|
1640
1643
|
g("marker", {
|
|
1641
1644
|
id: `bar_arrow_${s}`,
|
|
@@ -1648,8 +1651,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1648
1651
|
g("polygon", {
|
|
1649
1652
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1650
1653
|
fill: e.color
|
|
1651
|
-
}, null, 8,
|
|
1652
|
-
], 8,
|
|
1654
|
+
}, null, 8, es)
|
|
1655
|
+
], 8, jo)
|
|
1653
1656
|
]),
|
|
1654
1657
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1655
1658
|
key: 0,
|
|
@@ -1661,7 +1664,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1661
1664
|
stroke: e.color,
|
|
1662
1665
|
"stroke-dasharray": 2,
|
|
1663
1666
|
"marker-end": `url(#bar_arrow_${s})`
|
|
1664
|
-
}, null, 8,
|
|
1667
|
+
}, null, 8, ls)) : d("", !0),
|
|
1665
1668
|
e.plots.length > 1 ? (u(), i("text", {
|
|
1666
1669
|
key: 1,
|
|
1667
1670
|
"text-anchor": "middle",
|
|
@@ -1673,7 +1676,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1673
1676
|
v: v(X)(e.plots).trend * 100,
|
|
1674
1677
|
s: "%",
|
|
1675
1678
|
r: 2
|
|
1676
|
-
})), 9,
|
|
1679
|
+
})), 9, as)) : d("", !0)
|
|
1677
1680
|
])) : d("", !0)
|
|
1678
1681
|
], 6))), 128)) : d("", !0),
|
|
1679
1682
|
!f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), i("line", {
|
|
@@ -1682,15 +1685,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1682
1685
|
"stroke-width": "1",
|
|
1683
1686
|
x1: n.value.left + G.value,
|
|
1684
1687
|
x2: n.value.right - G.value,
|
|
1685
|
-
y1: v(R)(
|
|
1686
|
-
y2: v(R)(
|
|
1688
|
+
y1: v(R)(ie.value),
|
|
1689
|
+
y2: v(R)(ie.value),
|
|
1687
1690
|
"stroke-linecap": "round",
|
|
1688
1691
|
style: { animation: "none !important" }
|
|
1689
|
-
}, null, 8,
|
|
1690
|
-
l.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
1692
|
+
}, null, 8, ts)) : d("", !0),
|
|
1693
|
+
l.value.chart.highlighter.useLine && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", os, [
|
|
1691
1694
|
g("line", {
|
|
1692
|
-
x1: n.value.left + n.value.width /
|
|
1693
|
-
x2: n.value.left + n.value.width /
|
|
1695
|
+
x1: n.value.left + n.value.width / m.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
|
|
1696
|
+
x2: n.value.left + n.value.width / m.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
|
|
1694
1697
|
y1: v(R)(n.value.top),
|
|
1695
1698
|
y2: v(R)(n.value.bottom),
|
|
1696
1699
|
stroke: l.value.chart.highlighter.color,
|
|
@@ -1698,14 +1701,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1698
1701
|
"stroke-dasharray": l.value.chart.highlighter.lineDasharray,
|
|
1699
1702
|
"stroke-linecap": "round",
|
|
1700
1703
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1701
|
-
}, null, 8,
|
|
1704
|
+
}, null, 8, ss)
|
|
1702
1705
|
])) : d("", !0),
|
|
1703
1706
|
l.value.chart.grid.frame.show ? (u(), i("rect", {
|
|
1704
1707
|
key: 4,
|
|
1705
1708
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
1706
1709
|
x: n.value.left + G.value < 0 ? 0 : n.value.left + G.value,
|
|
1707
1710
|
y: n.value.top,
|
|
1708
|
-
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width /
|
|
1711
|
+
width: n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value) < 0 ? 0 : n.value.width - (l.value.chart.grid.position === "middle" ? 0 : n.value.width / m.value),
|
|
1709
1712
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1710
1713
|
fill: "transparent",
|
|
1711
1714
|
stroke: l.value.chart.grid.frame.stroke,
|
|
@@ -1713,11 +1716,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1713
1716
|
"stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
|
|
1714
1717
|
"stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
|
|
1715
1718
|
"stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
|
|
1716
|
-
}, null, 8,
|
|
1719
|
+
}, null, 8, us)) : d("", !0),
|
|
1717
1720
|
l.value.chart.grid.labels.show ? (u(), i("g", {
|
|
1718
1721
|
key: 5,
|
|
1719
1722
|
ref_key: "scaleLabels",
|
|
1720
|
-
ref:
|
|
1723
|
+
ref: Hl
|
|
1721
1724
|
}, [
|
|
1722
1725
|
f.value.useIndividualScale ? (u(), i(h, { key: 0 }, [
|
|
1723
1726
|
(u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", null, [
|
|
@@ -1729,11 +1732,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1729
1732
|
stroke: e.color,
|
|
1730
1733
|
"stroke-width": l.value.chart.grid.stroke,
|
|
1731
1734
|
"stroke-linecap": "round",
|
|
1732
|
-
style:
|
|
1733
|
-
}, null, 12,
|
|
1735
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
1736
|
+
}, null, 12, rs)
|
|
1734
1737
|
]))), 256)),
|
|
1735
1738
|
(u(!0), i(h, null, y(dl.value, (e) => (u(), i("g", {
|
|
1736
|
-
style:
|
|
1739
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1737
1740
|
}, [
|
|
1738
1741
|
g("text", {
|
|
1739
1742
|
fill: e.color,
|
|
@@ -1741,7 +1744,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1741
1744
|
"text-anchor": "middle",
|
|
1742
1745
|
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
1746
|
}, ee(e.name) + " " + ee(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
1744
|
-
${e.scaleLabel}` : ""), 9,
|
|
1747
|
+
${e.scaleLabel}` : ""), 9, is),
|
|
1745
1748
|
(u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i(h, null, [
|
|
1746
1749
|
l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
1747
1750
|
key: 0,
|
|
@@ -1753,7 +1756,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1753
1756
|
"stroke-width": 1,
|
|
1754
1757
|
"stroke-linecap": "round",
|
|
1755
1758
|
style: { animation: "none !important" }
|
|
1756
|
-
}, null, 8,
|
|
1759
|
+
}, null, 8, ns)) : d("", !0)
|
|
1757
1760
|
], 64))), 256)),
|
|
1758
1761
|
(u(!0), i(h, null, y(e.yLabels, (s, t) => (u(), i("text", {
|
|
1759
1762
|
x: e.x - 5 + G.value - n.value.individualOffsetX,
|
|
@@ -1761,7 +1764,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1761
1764
|
"font-size": x.value.dataLabels,
|
|
1762
1765
|
"text-anchor": "end",
|
|
1763
1766
|
fill: e.color
|
|
1764
|
-
}, ee(v(
|
|
1767
|
+
}, ee(v(re)(
|
|
1765
1768
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1766
1769
|
s.value,
|
|
1767
1770
|
v(xe)({
|
|
@@ -1771,9 +1774,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1771
1774
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
1772
1775
|
}),
|
|
1773
1776
|
{ datapoint: s.datapoint, seriesIndex: t }
|
|
1774
|
-
)), 9,
|
|
1777
|
+
)), 9, cs))), 256))
|
|
1775
1778
|
], 4))), 256))
|
|
1776
|
-
], 64)) : (u(!0), i(h, { key: 1 }, y(
|
|
1779
|
+
], 64)) : (u(!0), i(h, { key: 1 }, y(Aa.value, (e, s) => (u(), i("g", {
|
|
1777
1780
|
key: `yLabel_${s}`
|
|
1778
1781
|
}, [
|
|
1779
1782
|
fe(e) && e.value >= ye.value.min && e.value <= ye.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
|
|
@@ -1786,15 +1789,15 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1786
1789
|
"stroke-width": "1",
|
|
1787
1790
|
"stroke-linecap": "round",
|
|
1788
1791
|
style: { animation: "none !important" }
|
|
1789
|
-
}, null, 8,
|
|
1792
|
+
}, null, 8, vs)) : d("", !0),
|
|
1790
1793
|
e.value >= ye.value.min && e.value <= ye.value.max ? (u(), i("text", {
|
|
1791
1794
|
key: 1,
|
|
1792
|
-
x: n.value.scaleLabelX
|
|
1795
|
+
x: n.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
|
|
1793
1796
|
y: v(T)(e.y + x.value.dataLabels / 3),
|
|
1794
1797
|
"font-size": x.value.dataLabels,
|
|
1795
1798
|
"text-anchor": "end",
|
|
1796
1799
|
fill: l.value.chart.grid.labels.color
|
|
1797
|
-
}, ee(fe(e.value) ? v(
|
|
1800
|
+
}, ee(fe(e.value) ? v(re)(
|
|
1798
1801
|
l.value.chart.grid.labels.yAxis.formatter,
|
|
1799
1802
|
e.value,
|
|
1800
1803
|
v(xe)({
|
|
@@ -1803,23 +1806,23 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1803
1806
|
s: e.suffix,
|
|
1804
1807
|
r: l.value.chart.grid.labels.yAxis.rounding
|
|
1805
1808
|
})
|
|
1806
|
-
) : ""), 9,
|
|
1809
|
+
) : ""), 9, ds)) : d("", !0)
|
|
1807
1810
|
]))), 128))
|
|
1808
1811
|
], 512)) : d("", !0),
|
|
1809
1812
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i("g", {
|
|
1810
1813
|
key: `serie_plot_${s}`,
|
|
1811
1814
|
class: Ue(`serie_plot_${s}`),
|
|
1812
|
-
style:
|
|
1815
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1813
1816
|
}, [
|
|
1814
1817
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i("g", {
|
|
1815
1818
|
key: `circle_plot_${s}_${r}`
|
|
1816
1819
|
}, [
|
|
1817
|
-
t && fe(t.value) ? (u(), Me(
|
|
1820
|
+
t && fe(t.value) ? (u(), Me(Il, {
|
|
1818
1821
|
key: 0,
|
|
1819
1822
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1820
1823
|
color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${U.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
|
|
1821
1824
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1822
|
-
radius:
|
|
1825
|
+
radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? ($e.value.plot || 6) * 1.5 : $e.value.plot || 6,
|
|
1823
1826
|
stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1824
1827
|
strokeWidth: l.value.plot.dot.strokeWidth
|
|
1825
1828
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1831,14 +1834,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1831
1834
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1832
1835
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1833
1836
|
}, [
|
|
1834
|
-
g("div",
|
|
1837
|
+
g("div", fs, [
|
|
1835
1838
|
q(a.$slots, "plot-comment", {
|
|
1836
1839
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1837
1840
|
}, void 0, !0)
|
|
1838
1841
|
])
|
|
1839
|
-
], 8,
|
|
1842
|
+
], 8, hs)) : d("", !0)
|
|
1840
1843
|
]))), 128)),
|
|
1841
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g",
|
|
1844
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", gs, [
|
|
1842
1845
|
g("defs", null, [
|
|
1843
1846
|
g("marker", {
|
|
1844
1847
|
id: `plot_arrow_${s}`,
|
|
@@ -1851,8 +1854,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1851
1854
|
g("polygon", {
|
|
1852
1855
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1853
1856
|
fill: e.color
|
|
1854
|
-
}, null, 8,
|
|
1855
|
-
], 8,
|
|
1857
|
+
}, null, 8, ms)
|
|
1858
|
+
], 8, xs)
|
|
1856
1859
|
]),
|
|
1857
1860
|
e.plots.length > 1 ? (u(), i("line", {
|
|
1858
1861
|
key: 0,
|
|
@@ -1876,13 +1879,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1876
1879
|
v: v(X)(e.plots).trend * 100,
|
|
1877
1880
|
s: "%",
|
|
1878
1881
|
r: 2
|
|
1879
|
-
})), 9,
|
|
1882
|
+
})), 9, ys)) : d("", !0)
|
|
1880
1883
|
])) : d("", !0)
|
|
1881
1884
|
], 6))), 128)),
|
|
1882
1885
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("g", {
|
|
1883
1886
|
key: `serie_line_${s}`,
|
|
1884
1887
|
class: Ue(`serie_line_${s}`),
|
|
1885
|
-
style:
|
|
1888
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1886
1889
|
}, [
|
|
1887
1890
|
e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
|
|
1888
1891
|
key: 0,
|
|
@@ -1891,7 +1894,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1891
1894
|
"stroke-width": l.value.line.strokeWidth + 1,
|
|
1892
1895
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
1893
1896
|
fill: "none"
|
|
1894
|
-
}, null, 8,
|
|
1897
|
+
}, null, 8, ps)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
|
|
1895
1898
|
key: 1,
|
|
1896
1899
|
d: `M${e.straight}`,
|
|
1897
1900
|
stroke: l.value.chart.backgroundColor,
|
|
@@ -1900,39 +1903,39 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1900
1903
|
fill: "none",
|
|
1901
1904
|
"stroke-linecap": "round",
|
|
1902
1905
|
"stroke-linejoin": "round"
|
|
1903
|
-
}, null, 8,
|
|
1906
|
+
}, null, 8, ks)) : d("", !0)
|
|
1904
1907
|
], 6))), 128)),
|
|
1905
|
-
a.$slots.pattern ? (u(), i("defs",
|
|
1906
|
-
(u(!0), i(h, null, y(Ie.value, (e, s) => q(a.$slots, "pattern",
|
|
1908
|
+
a.$slots.pattern ? (u(), i("defs", _s, [
|
|
1909
|
+
(u(!0), i(h, null, y(Ie.value, (e, s) => q(a.$slots, "pattern", jl({
|
|
1907
1910
|
key: `serie_pattern_slot_${s}`
|
|
1908
1911
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${U.value}_${s}` }), void 0, !0)), 128))
|
|
1909
1912
|
])) : d("", !0),
|
|
1910
1913
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i("g", {
|
|
1911
1914
|
key: `serie_line_${s}`,
|
|
1912
1915
|
class: Ue(`serie_line_${s}`),
|
|
1913
|
-
style:
|
|
1916
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1914
1917
|
}, [
|
|
1915
|
-
e.useArea && e.plots.length > 1 ? (u(), i("g",
|
|
1918
|
+
e.useArea && e.plots.length > 1 ? (u(), i("g", ws, [
|
|
1916
1919
|
e.smooth ? (u(!0), i(h, { key: 0 }, y(e.curveAreas, (t, r) => (u(), i(h, { key: r }, [
|
|
1917
1920
|
g("path", {
|
|
1918
1921
|
d: t,
|
|
1919
1922
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(we)(e.color, l.value.line.area.opacity)
|
|
1920
|
-
}, null, 8,
|
|
1923
|
+
}, null, 8, Ss),
|
|
1921
1924
|
a.$slots.pattern ? (u(), i("path", {
|
|
1922
1925
|
key: 0,
|
|
1923
1926
|
d: t,
|
|
1924
1927
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
|
|
1925
|
-
}, null, 8,
|
|
1928
|
+
}, null, 8, $s)) : d("", !0)
|
|
1926
1929
|
], 64))), 128)) : (u(!0), i(h, { key: 1 }, y(e.area.split(";"), (t, r) => (u(), i(h, { key: r }, [
|
|
1927
1930
|
g("path", {
|
|
1928
1931
|
d: `M${t}Z`,
|
|
1929
1932
|
fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${U.value})` : v(we)(e.color, l.value.line.area.opacity)
|
|
1930
|
-
}, null, 8,
|
|
1933
|
+
}, null, 8, Ls),
|
|
1931
1934
|
a.$slots.pattern ? (u(), i("path", {
|
|
1932
1935
|
key: 0,
|
|
1933
1936
|
d: `M${t}Z`,
|
|
1934
1937
|
fill: `url(#pattern_${U.value}_${e.slotAbsoluteIndex})`
|
|
1935
|
-
}, null, 8,
|
|
1938
|
+
}, null, 8, As)) : d("", !0)
|
|
1936
1939
|
], 64))), 128))
|
|
1937
1940
|
])) : d("", !0),
|
|
1938
1941
|
e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
|
|
@@ -1943,7 +1946,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1943
1946
|
"stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
|
|
1944
1947
|
fill: "none",
|
|
1945
1948
|
"stroke-linecap": "round"
|
|
1946
|
-
}, null, 8,
|
|
1949
|
+
}, null, 8, Ms)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
|
|
1947
1950
|
key: 2,
|
|
1948
1951
|
d: `M${e.straight}`,
|
|
1949
1952
|
stroke: e.color,
|
|
@@ -1952,16 +1955,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1952
1955
|
fill: "none",
|
|
1953
1956
|
"stroke-linecap": "round",
|
|
1954
1957
|
"stroke-linejoin": "round"
|
|
1955
|
-
}, null, 8,
|
|
1958
|
+
}, null, 8, zs)) : d("", !0),
|
|
1956
1959
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
1957
1960
|
key: `circle_line_${s}_${r}`
|
|
1958
1961
|
}, [
|
|
1959
|
-
|
|
1962
|
+
!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
1963
|
key: 0,
|
|
1961
1964
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
1962
1965
|
color: l.value.line.useGradient ? `url(#lineGradient_${s}_${U.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
|
|
1963
1966
|
plot: { x: v(T)(t.x), y: v(T)(t.y) },
|
|
1964
|
-
radius:
|
|
1967
|
+
radius: k.value !== null && k.value === r || O.value !== null && O.value === r ? ($e.value.line || 6) * 1.5 : $e.value.line || 6,
|
|
1965
1968
|
stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
|
|
1966
1969
|
strokeWidth: l.value.line.dot.strokeWidth
|
|
1967
1970
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : d("", !0),
|
|
@@ -1973,14 +1976,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1973
1976
|
x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1974
1977
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
1975
1978
|
}, [
|
|
1976
|
-
g("div",
|
|
1979
|
+
g("div", Is, [
|
|
1977
1980
|
q(a.$slots, "plot-comment", {
|
|
1978
1981
|
plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: r }
|
|
1979
1982
|
}, void 0, !0)
|
|
1980
1983
|
])
|
|
1981
|
-
], 8,
|
|
1984
|
+
], 8, Cs)) : d("", !0)
|
|
1982
1985
|
], 64))), 128)),
|
|
1983
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g",
|
|
1986
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(X)(e.plots).trend) ? (u(), i("g", Ts, [
|
|
1984
1987
|
g("defs", null, [
|
|
1985
1988
|
g("marker", {
|
|
1986
1989
|
id: `line_arrow_${s}`,
|
|
@@ -1993,8 +1996,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
1993
1996
|
g("polygon", {
|
|
1994
1997
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1995
1998
|
fill: e.color
|
|
1996
|
-
}, null, 8,
|
|
1997
|
-
], 8,
|
|
1999
|
+
}, null, 8, Ns)
|
|
2000
|
+
], 8, Os)
|
|
1998
2001
|
]),
|
|
1999
2002
|
e.plots.length > 1 ? (u(), i("line", {
|
|
2000
2003
|
key: 0,
|
|
@@ -2006,7 +2009,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2006
2009
|
stroke: e.color,
|
|
2007
2010
|
"stroke-dasharray": 2,
|
|
2008
2011
|
"marker-end": `url(#line_arrow_${s})`
|
|
2009
|
-
}, null, 8,
|
|
2012
|
+
}, null, 8, Vs)) : d("", !0),
|
|
2010
2013
|
e.plots.length > 1 ? (u(), i("text", {
|
|
2011
2014
|
key: 1,
|
|
2012
2015
|
"text-anchor": "middle",
|
|
@@ -2018,25 +2021,25 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2018
2021
|
v: v(X)(e.plots).trend * 100,
|
|
2019
2022
|
s: "%",
|
|
2020
2023
|
r: 2
|
|
2021
|
-
})), 9,
|
|
2024
|
+
})), 9, Ps)) : d("", !0)
|
|
2022
2025
|
])) : d("", !0)
|
|
2023
2026
|
], 6))), 128)),
|
|
2024
|
-
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g",
|
|
2027
|
+
(l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", Hs, [
|
|
2025
2028
|
(u(!0), i(h, null, y(Pe.value, (e, s) => (u(), i(h, {
|
|
2026
2029
|
key: `xLabel_bar_${s}`
|
|
2027
2030
|
}, [
|
|
2028
2031
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2029
2032
|
key: `xLabel_bar_${s}_${r}`
|
|
2030
2033
|
}, [
|
|
2031
|
-
t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2034
|
+
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
2035
|
key: 0,
|
|
2033
|
-
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 :
|
|
2036
|
+
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Al(t) + ke() / 2 - Oe.value / 2,
|
|
2034
2037
|
y: v(T)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
|
|
2035
2038
|
"text-anchor": "middle",
|
|
2036
2039
|
"font-size": x.value.plotLabels,
|
|
2037
2040
|
fill: l.value.bar.labels.color,
|
|
2038
|
-
style:
|
|
2039
|
-
}, ee(fe(t.value) ? v(
|
|
2041
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2042
|
+
}, ee(fe(t.value) ? v(re)(
|
|
2040
2043
|
l.value.bar.labels.formatter,
|
|
2041
2044
|
t.value,
|
|
2042
2045
|
v(xe)({
|
|
@@ -2049,7 +2052,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2049
2052
|
datapoint: t,
|
|
2050
2053
|
serie: e
|
|
2051
2054
|
}
|
|
2052
|
-
) : ""), 13,
|
|
2055
|
+
) : ""), 13, Rs)) : d("", !0),
|
|
2053
2056
|
t && l.value.bar.serieName.show ? (u(), i("text", {
|
|
2054
2057
|
key: 1,
|
|
2055
2058
|
x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x + ke() * 1.1,
|
|
@@ -2058,30 +2061,30 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2058
2061
|
"font-size": x.value.plotLabels,
|
|
2059
2062
|
fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
|
|
2060
2063
|
"font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
|
|
2061
|
-
style:
|
|
2062
|
-
}, ee(l.value.bar.serieName.useAbbreviation ? v(
|
|
2064
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2065
|
+
}, ee(l.value.bar.serieName.useAbbreviation ? v(Jt)({
|
|
2063
2066
|
source: e.name,
|
|
2064
2067
|
length: l.value.bar.serieName.abbreviationSize
|
|
2065
|
-
}) : e.name), 13,
|
|
2068
|
+
}) : e.name), 13, Bs)) : d("", !0)
|
|
2066
2069
|
], 64))), 128))
|
|
2067
2070
|
], 64))), 128))
|
|
2068
2071
|
])) : d("", !0),
|
|
2069
|
-
l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g",
|
|
2072
|
+
l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", Ys, [
|
|
2070
2073
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
2071
2074
|
key: `xLabel_plot_${s}`
|
|
2072
2075
|
}, [
|
|
2073
2076
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2074
2077
|
key: `xLabel_plot_${s}_${r}`
|
|
2075
2078
|
}, [
|
|
2076
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2079
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || k.value !== null && k.value === r || O.value !== null && O.value === r ? (u(), i("text", {
|
|
2077
2080
|
key: 0,
|
|
2078
2081
|
x: t.x,
|
|
2079
2082
|
y: t.y + l.value.plot.labels.offsetY,
|
|
2080
2083
|
"text-anchor": "middle",
|
|
2081
2084
|
"font-size": x.value.plotLabels,
|
|
2082
2085
|
fill: l.value.plot.labels.color,
|
|
2083
|
-
style:
|
|
2084
|
-
}, ee(fe(t.value) ? v(
|
|
2086
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2087
|
+
}, ee(fe(t.value) ? v(re)(
|
|
2085
2088
|
l.value.plot.labels.formatter,
|
|
2086
2089
|
t.value,
|
|
2087
2090
|
v(xe)({
|
|
@@ -2094,10 +2097,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2094
2097
|
datapoint: t,
|
|
2095
2098
|
serie: e
|
|
2096
2099
|
}
|
|
2097
|
-
) : ""), 13,
|
|
2100
|
+
) : ""), 13, Fs)) : d("", !0)
|
|
2098
2101
|
], 64))), 128))
|
|
2099
2102
|
], 64))), 128))
|
|
2100
|
-
])) : (u(), i("g",
|
|
2103
|
+
])) : (u(), i("g", Es, [
|
|
2101
2104
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
2102
2105
|
key: `xLabel_plot_${s}`
|
|
2103
2106
|
}, [
|
|
@@ -2105,7 +2108,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2105
2108
|
key: `xLabel_plot_${s}_${r}`
|
|
2106
2109
|
}, [
|
|
2107
2110
|
l.value.plot.tag.followValue ? (u(), i(h, { key: 1 }, [
|
|
2108
|
-
[O.value,
|
|
2111
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
|
|
2109
2112
|
key: 0,
|
|
2110
2113
|
class: "vue-ui-xy-tag-plot",
|
|
2111
2114
|
x1: n.value.left,
|
|
@@ -2116,7 +2119,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2116
2119
|
"stroke-linecap": "round",
|
|
2117
2120
|
"stroke-dasharray": "2",
|
|
2118
2121
|
stroke: e.color
|
|
2119
|
-
}, null, 8,
|
|
2122
|
+
}, null, 8, qs)) : d("", !0)
|
|
2120
2123
|
], 64)) : (u(), i(h, { key: 0 }, [
|
|
2121
2124
|
t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
|
|
2122
2125
|
key: 0,
|
|
@@ -2124,11 +2127,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2124
2127
|
y: t.y - 20,
|
|
2125
2128
|
height: 24,
|
|
2126
2129
|
width: "150",
|
|
2127
|
-
style:
|
|
2130
|
+
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2128
2131
|
}, [
|
|
2129
2132
|
g("div", {
|
|
2130
|
-
style:
|
|
2131
|
-
innerHTML: v(
|
|
2133
|
+
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;`),
|
|
2134
|
+
innerHTML: v(re)(
|
|
2132
2135
|
l.value.plot.tag.formatter,
|
|
2133
2136
|
t.value,
|
|
2134
2137
|
e.name,
|
|
@@ -2138,19 +2141,19 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2138
2141
|
serieName: e.name
|
|
2139
2142
|
}
|
|
2140
2143
|
)
|
|
2141
|
-
}, null, 12,
|
|
2142
|
-
], 12,
|
|
2144
|
+
}, null, 12, Xs)
|
|
2145
|
+
], 12, Ws)) : d("", !0),
|
|
2143
2146
|
t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
|
|
2144
2147
|
key: 1,
|
|
2145
2148
|
x: t.x - e.name.length * (x.value.plotLabels / 2),
|
|
2146
2149
|
y: t.y - 20,
|
|
2147
2150
|
height: 24,
|
|
2148
2151
|
width: "150",
|
|
2149
|
-
style:
|
|
2152
|
+
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2150
2153
|
}, [
|
|
2151
2154
|
g("div", {
|
|
2152
|
-
style:
|
|
2153
|
-
innerHTML: v(
|
|
2155
|
+
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;`),
|
|
2156
|
+
innerHTML: v(re)(
|
|
2154
2157
|
l.value.plot.tag.formatter,
|
|
2155
2158
|
t.value,
|
|
2156
2159
|
e.name,
|
|
@@ -2160,28 +2163,28 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2160
2163
|
serieName: e.name
|
|
2161
2164
|
}
|
|
2162
2165
|
)
|
|
2163
|
-
}, null, 12,
|
|
2164
|
-
], 12,
|
|
2166
|
+
}, null, 12, Ds)
|
|
2167
|
+
], 12, Gs)) : d("", !0)
|
|
2165
2168
|
], 64))
|
|
2166
2169
|
], 64))), 128))
|
|
2167
2170
|
], 64))), 128))
|
|
2168
2171
|
])),
|
|
2169
|
-
l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g",
|
|
2172
|
+
l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", Us, [
|
|
2170
2173
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2171
2174
|
key: `xLabel_line_${s}`
|
|
2172
2175
|
}, [
|
|
2173
2176
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2174
2177
|
key: `xLabel_line_${s}_${r}`
|
|
2175
2178
|
}, [
|
|
2176
|
-
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
2179
|
+
t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || k.value !== null && k.value === r || O.value !== null && O.value === r ? (u(), i("text", {
|
|
2177
2180
|
key: 0,
|
|
2178
2181
|
x: t.x,
|
|
2179
2182
|
y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
|
|
2180
2183
|
"text-anchor": "middle",
|
|
2181
2184
|
"font-size": x.value.plotLabels,
|
|
2182
2185
|
fill: l.value.line.labels.color,
|
|
2183
|
-
style:
|
|
2184
|
-
}, ee(fe(t.value) ? v(
|
|
2186
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2187
|
+
}, ee(fe(t.value) ? v(re)(
|
|
2185
2188
|
l.value.line.labels.formatter,
|
|
2186
2189
|
t.value,
|
|
2187
2190
|
v(xe)({
|
|
@@ -2194,10 +2197,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2194
2197
|
datapoint: t,
|
|
2195
2198
|
serie: e
|
|
2196
2199
|
}
|
|
2197
|
-
) : ""), 13,
|
|
2200
|
+
) : ""), 13, Zs)) : d("", !0)
|
|
2198
2201
|
], 64))), 128))
|
|
2199
2202
|
], 64))), 128))
|
|
2200
|
-
])) : (u(), i("g",
|
|
2203
|
+
])) : (u(), i("g", Js, [
|
|
2201
2204
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2202
2205
|
key: `xLabel_line_${s}`
|
|
2203
2206
|
}, [
|
|
@@ -2205,7 +2208,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2205
2208
|
key: `xLabel_line_${s}_${r}`
|
|
2206
2209
|
}, [
|
|
2207
2210
|
l.value.line.tag.followValue ? (u(), i(h, { key: 1 }, [
|
|
2208
|
-
[O.value,
|
|
2211
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag ? (u(), i("line", {
|
|
2209
2212
|
key: 0,
|
|
2210
2213
|
class: "vue-ui-xy-tag-line",
|
|
2211
2214
|
x1: n.value.left,
|
|
@@ -2216,7 +2219,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2216
2219
|
"stroke-linecap": "round",
|
|
2217
2220
|
"stroke-dasharray": "2",
|
|
2218
2221
|
stroke: e.color
|
|
2219
|
-
}, null, 8,
|
|
2222
|
+
}, null, 8, lu)) : d("", !0)
|
|
2220
2223
|
], 64)) : (u(), i(h, { key: 0 }, [
|
|
2221
2224
|
t && r === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
|
|
2222
2225
|
key: 0,
|
|
@@ -2224,11 +2227,11 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2224
2227
|
y: t.y - 20,
|
|
2225
2228
|
height: 24,
|
|
2226
2229
|
width: "150",
|
|
2227
|
-
style:
|
|
2230
|
+
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2228
2231
|
}, [
|
|
2229
2232
|
g("div", {
|
|
2230
|
-
style:
|
|
2231
|
-
innerHTML: v(
|
|
2233
|
+
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;`),
|
|
2234
|
+
innerHTML: v(re)(
|
|
2232
2235
|
l.value.line.tag.formatter,
|
|
2233
2236
|
t.value,
|
|
2234
2237
|
e.name,
|
|
@@ -2238,19 +2241,19 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2238
2241
|
serieName: e.name
|
|
2239
2242
|
}
|
|
2240
2243
|
)
|
|
2241
|
-
}, null, 12,
|
|
2242
|
-
], 12,
|
|
2244
|
+
}, null, 12, Qs)
|
|
2245
|
+
], 12, Ks)) : d("", !0),
|
|
2243
2246
|
t && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
|
|
2244
2247
|
key: 1,
|
|
2245
2248
|
x: t.x,
|
|
2246
2249
|
y: t.y - 20,
|
|
2247
2250
|
height: 24,
|
|
2248
2251
|
width: "150",
|
|
2249
|
-
style:
|
|
2252
|
+
style: z(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2250
2253
|
}, [
|
|
2251
2254
|
g("div", {
|
|
2252
|
-
style:
|
|
2253
|
-
innerHTML: v(
|
|
2255
|
+
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;`),
|
|
2256
|
+
innerHTML: v(re)(
|
|
2254
2257
|
l.value.line.tag.formatter,
|
|
2255
2258
|
t.value,
|
|
2256
2259
|
e.name,
|
|
@@ -2260,8 +2263,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2260
2263
|
serieName: e.name
|
|
2261
2264
|
}
|
|
2262
2265
|
)
|
|
2263
|
-
}, null, 12,
|
|
2264
|
-
], 12,
|
|
2266
|
+
}, null, 12, eu)
|
|
2267
|
+
], 12, js)) : d("", !0)
|
|
2265
2268
|
], 64))
|
|
2266
2269
|
], 64))), 128))
|
|
2267
2270
|
], 64))), 128))
|
|
@@ -2279,7 +2282,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2279
2282
|
"font-size": x.value.plotLabels,
|
|
2280
2283
|
"text-anchor": "end",
|
|
2281
2284
|
fill: e.color,
|
|
2282
|
-
innerHTML: v(
|
|
2285
|
+
innerHTML: v(Cl)({
|
|
2283
2286
|
content: e.name,
|
|
2284
2287
|
fontSize: x.value.plotLabels,
|
|
2285
2288
|
fill: e.color,
|
|
@@ -2287,8 +2290,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2287
2290
|
y: t.y,
|
|
2288
2291
|
maxWords: 2
|
|
2289
2292
|
}),
|
|
2290
|
-
style:
|
|
2291
|
-
}, null, 12,
|
|
2293
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2294
|
+
}, null, 12, au)) : d("", !0),
|
|
2292
2295
|
t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
|
|
2293
2296
|
key: 1,
|
|
2294
2297
|
x: t.x + x.value.plotLabels,
|
|
@@ -2296,7 +2299,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2296
2299
|
"font-size": x.value.plotLabels,
|
|
2297
2300
|
"text-anchor": "start",
|
|
2298
2301
|
fill: e.color,
|
|
2299
|
-
innerHTML: v(
|
|
2302
|
+
innerHTML: v(Cl)({
|
|
2300
2303
|
content: e.name,
|
|
2301
2304
|
fontSize: x.value.plotLabels,
|
|
2302
2305
|
fill: e.color,
|
|
@@ -2304,8 +2307,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2304
2307
|
y: t.y,
|
|
2305
2308
|
maxWords: 2
|
|
2306
2309
|
}),
|
|
2307
|
-
style:
|
|
2308
|
-
}, null, 12,
|
|
2310
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2311
|
+
}, null, 12, tu)) : d("", !0)
|
|
2309
2312
|
], 64))), 128))
|
|
2310
2313
|
], 64))), 128)),
|
|
2311
2314
|
(u(!0), i(h, null, y(Le.value, (e, s) => (u(), i(h, {
|
|
@@ -2321,7 +2324,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2321
2324
|
"font-size": x.value.plotLabels,
|
|
2322
2325
|
"text-anchor": "end",
|
|
2323
2326
|
fill: e.color,
|
|
2324
|
-
innerHTML: v(
|
|
2327
|
+
innerHTML: v(Cl)({
|
|
2325
2328
|
content: e.name,
|
|
2326
2329
|
fontSize: x.value.plotLabels,
|
|
2327
2330
|
fill: e.color,
|
|
@@ -2329,8 +2332,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2329
2332
|
y: t.y,
|
|
2330
2333
|
maxWords: 2
|
|
2331
2334
|
}),
|
|
2332
|
-
style:
|
|
2333
|
-
}, null, 12,
|
|
2335
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2336
|
+
}, null, 12, ou)) : d("", !0),
|
|
2334
2337
|
t && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
|
|
2335
2338
|
key: 1,
|
|
2336
2339
|
x: t.x + x.value.plotLabels,
|
|
@@ -2338,7 +2341,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2338
2341
|
"font-size": x.value.plotLabels,
|
|
2339
2342
|
"text-anchor": "start",
|
|
2340
2343
|
fill: e.color,
|
|
2341
|
-
innerHTML: v(
|
|
2344
|
+
innerHTML: v(Cl)({
|
|
2342
2345
|
content: e.name,
|
|
2343
2346
|
fontSize: x.value.plotLabels,
|
|
2344
2347
|
fill: e.color,
|
|
@@ -2346,8 +2349,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2346
2349
|
y: t.y,
|
|
2347
2350
|
maxWords: 2
|
|
2348
2351
|
}),
|
|
2349
|
-
style:
|
|
2350
|
-
}, null, 12,
|
|
2352
|
+
style: z(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2353
|
+
}, null, 12, su)) : d("", !0)
|
|
2351
2354
|
], 64))), 128))
|
|
2352
2355
|
], 64))), 128)),
|
|
2353
2356
|
f.value.useIndividualScale && !f.value.isStacked ? (u(), i(h, { key: 12 }, [
|
|
@@ -2363,13 +2366,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2363
2366
|
offset: "0%",
|
|
2364
2367
|
"stop-color": l.value.chart.backgroundColor,
|
|
2365
2368
|
"stop-opacity": "0"
|
|
2366
|
-
}, null, 8,
|
|
2369
|
+
}, null, 8, ru),
|
|
2367
2370
|
g("stop", {
|
|
2368
2371
|
offset: "100%",
|
|
2369
2372
|
"stop-color": e.color,
|
|
2370
2373
|
"stop-opacity": "0.2"
|
|
2371
|
-
}, null, 8,
|
|
2372
|
-
], 8,
|
|
2374
|
+
}, null, 8, iu)
|
|
2375
|
+
], 8, uu))), 256))
|
|
2373
2376
|
]),
|
|
2374
2377
|
(u(!0), i(h, null, y(dl.value, (e, s) => (u(), i("rect", {
|
|
2375
2378
|
x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + G.value - n.value.individualOffsetX,
|
|
@@ -2379,63 +2382,63 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2379
2382
|
fill: M.value === e.groupId ? `url(#individual_scale_gradient_${U.value}_${s})` : "transparent",
|
|
2380
2383
|
onMouseenter: (t) => M.value = e.groupId,
|
|
2381
2384
|
onMouseleave: c[0] || (c[0] = (t) => M.value = null)
|
|
2382
|
-
}, null, 40,
|
|
2385
|
+
}, null, 40, nu))), 256))
|
|
2383
2386
|
], 64)) : d("", !0),
|
|
2384
2387
|
g("g", null, [
|
|
2385
2388
|
l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
|
|
2386
2389
|
key: 0,
|
|
2387
2390
|
ref_key: "yAxisLabel",
|
|
2388
|
-
ref:
|
|
2391
|
+
ref: Pl,
|
|
2389
2392
|
"font-size": x.value.yAxis,
|
|
2390
2393
|
fill: l.value.chart.grid.labels.color,
|
|
2391
2394
|
transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
2392
2395
|
"text-anchor": "middle",
|
|
2393
2396
|
style: { transition: "none" }
|
|
2394
|
-
}, ee(l.value.chart.grid.labels.axis.yLabel), 9,
|
|
2397
|
+
}, ee(l.value.chart.grid.labels.axis.yLabel), 9, cu)) : d("", !0),
|
|
2395
2398
|
l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
|
|
2396
2399
|
key: 1,
|
|
2397
2400
|
ref_key: "xAxisLabel",
|
|
2398
|
-
ref:
|
|
2401
|
+
ref: Vl,
|
|
2399
2402
|
"text-anchor": "middle",
|
|
2400
|
-
x:
|
|
2403
|
+
x: ae.value / 2,
|
|
2401
2404
|
y: ve.value - 3,
|
|
2402
2405
|
"font-size": x.value.yAxis,
|
|
2403
2406
|
fill: l.value.chart.grid.labels.color
|
|
2404
|
-
}, ee(l.value.chart.grid.labels.axis.xLabel), 9,
|
|
2407
|
+
}, ee(l.value.chart.grid.labels.axis.xLabel), 9, vu)) : d("", !0)
|
|
2405
2408
|
]),
|
|
2406
2409
|
l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
|
|
2407
2410
|
key: 13,
|
|
2408
2411
|
ref_key: "timeLabelsEls",
|
|
2409
2412
|
ref: ll
|
|
2410
2413
|
}, [
|
|
2411
|
-
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(
|
|
2414
|
+
a.$slots["time-label"] ? (u(!0), i(h, { key: 0 }, y(le.value, (e, s) => q(a.$slots, "time-label", jl({
|
|
2412
2415
|
key: `time_label_${s}`,
|
|
2413
2416
|
ref_for: !0
|
|
2414
2417
|
}, {
|
|
2415
|
-
x: n.value.left + n.value.width /
|
|
2418
|
+
x: n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2,
|
|
2416
2419
|
y: n.value.bottom,
|
|
2417
2420
|
fontSize: x.value.xAxis,
|
|
2418
2421
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2419
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2422
|
+
transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.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})`,
|
|
2420
2423
|
absoluteIndex: e.absoluteIndex,
|
|
2421
2424
|
content: e.text,
|
|
2422
2425
|
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 &&
|
|
2424
|
-
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(
|
|
2426
|
+
show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && m.value <= Ll.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === le.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((S.value.end - S.value.start) / Ll.value) === 0
|
|
2427
|
+
}), void 0, !0)), 128)) : (u(!0), i(h, { key: 1 }, y(le.value, (e, s) => (u(), i("g", {
|
|
2425
2428
|
key: `time_label_${s}`
|
|
2426
2429
|
}, [
|
|
2427
|
-
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo &&
|
|
2430
|
+
e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && m.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
2431
|
String(e.text).includes(`
|
|
2429
2432
|
`) ? (u(), i("text", {
|
|
2430
2433
|
key: 1,
|
|
2431
2434
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2432
2435
|
"font-size": x.value.xAxis,
|
|
2433
2436
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2434
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2435
|
-
style:
|
|
2436
|
-
cursor:
|
|
2437
|
+
transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2}, ${n.value.bottom + x.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2438
|
+
style: z({
|
|
2439
|
+
cursor: ga() ? "pointer" : "default"
|
|
2437
2440
|
}),
|
|
2438
|
-
innerHTML: v(
|
|
2441
|
+
innerHTML: v(Kt)({
|
|
2439
2442
|
content: String(e.text),
|
|
2440
2443
|
fontSize: x.value.xAxis,
|
|
2441
2444
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
@@ -2443,23 +2446,23 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2443
2446
|
y: 0
|
|
2444
2447
|
}),
|
|
2445
2448
|
onClick: () => ba(e, s)
|
|
2446
|
-
}, null, 12,
|
|
2449
|
+
}, null, 12, hu)) : (u(), i("text", {
|
|
2447
2450
|
key: 0,
|
|
2448
2451
|
class: "vue-data-ui-time-label",
|
|
2449
2452
|
"text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2450
2453
|
"font-size": x.value.xAxis,
|
|
2451
2454
|
fill: l.value.chart.grid.labels.xAxisLabels.color,
|
|
2452
|
-
transform: `translate(${n.value.left + n.value.width /
|
|
2453
|
-
style:
|
|
2454
|
-
cursor:
|
|
2455
|
+
transform: `translate(${n.value.left + n.value.width / m.value * s + n.value.width / m.value / 2}, ${n.value.bottom + x.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2456
|
+
style: z({
|
|
2457
|
+
cursor: ga() ? "pointer" : "default"
|
|
2455
2458
|
}),
|
|
2456
2459
|
onClick: () => ba(e, s)
|
|
2457
|
-
}, ee(e.text || ""), 13,
|
|
2460
|
+
}, ee(e.text || ""), 13, du))
|
|
2458
2461
|
], 64)) : d("", !0)
|
|
2459
2462
|
]))), 128))
|
|
2460
2463
|
], 512)) : d("", !0),
|
|
2461
|
-
|
|
2462
|
-
(u(!0), i(h, null, y(
|
|
2464
|
+
Ma.value.length && !f.value.isStacked ? (u(), i("g", fu, [
|
|
2465
|
+
(u(!0), i(h, null, y(Ma.value, (e) => (u(), i("g", {
|
|
2463
2466
|
key: e.uid
|
|
2464
2467
|
}, [
|
|
2465
2468
|
e.yTop && e.show && isFinite(e.yTop) ? (u(), i("line", {
|
|
@@ -2473,7 +2476,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2473
2476
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2474
2477
|
"stroke-linecap": "round",
|
|
2475
2478
|
style: { animation: "none !important" }
|
|
2476
|
-
}, null, 8,
|
|
2479
|
+
}, null, 8, gu)) : d("", !0),
|
|
2477
2480
|
e.yBottom && e.show && isFinite(e.yBottom) ? (u(), i("line", {
|
|
2478
2481
|
key: 1,
|
|
2479
2482
|
x1: e.x1,
|
|
@@ -2485,7 +2488,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2485
2488
|
"stroke-dasharray": e.config.line.strokeDasharray,
|
|
2486
2489
|
"stroke-linecap": "round",
|
|
2487
2490
|
style: { animation: "none !important" }
|
|
2488
|
-
}, null, 8,
|
|
2491
|
+
}, null, 8, xu)) : d("", !0),
|
|
2489
2492
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
|
|
2490
2493
|
key: 2,
|
|
2491
2494
|
y: Math.min(e.yTop, e.yBottom),
|
|
@@ -2494,8 +2497,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2494
2497
|
height: v(T)(e.areaHeight, 0),
|
|
2495
2498
|
fill: v(we)(e.config.area.fill, e.config.area.opacity),
|
|
2496
2499
|
style: { animation: "none !important" }
|
|
2497
|
-
}, null, 8,
|
|
2498
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect",
|
|
2500
|
+
}, null, 8, mu)) : d("", !0),
|
|
2501
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", jl({
|
|
2499
2502
|
key: 3,
|
|
2500
2503
|
class: "vue-ui-xy-annotation-label-box"
|
|
2501
2504
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : d("", !0),
|
|
@@ -2511,22 +2514,22 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2511
2514
|
}, ee(e.config.label.text), 9, bu)) : d("", !0)
|
|
2512
2515
|
]))), 128))
|
|
2513
2516
|
])) : d("", !0),
|
|
2514
|
-
|
|
2515
|
-
(u(!0), i(h, null, y(
|
|
2517
|
+
Ul.value ? (u(), i("g", yu, [
|
|
2518
|
+
(u(!0), i(h, null, y(m.value, (e, s) => (u(), i("rect", {
|
|
2516
2519
|
key: `tooltip_trap_${s}`,
|
|
2517
|
-
x: n.value.left + n.value.width /
|
|
2520
|
+
x: n.value.left + n.value.width / m.value * s,
|
|
2518
2521
|
y: n.value.top,
|
|
2519
2522
|
height: n.value.height < 0 ? 10 : n.value.height,
|
|
2520
|
-
width: n.value.width /
|
|
2523
|
+
width: n.value.width / m.value < 0 ? 1e-5 : n.value.width / m.value,
|
|
2521
2524
|
fill: "transparent",
|
|
2522
|
-
onMouseenter: (t) =>
|
|
2523
|
-
onMouseleave: c[1] || (c[1] = (t) =>
|
|
2524
|
-
onClick: (t) =>
|
|
2525
|
-
}, null, 40,
|
|
2525
|
+
onMouseenter: (t) => Ia(!0, s),
|
|
2526
|
+
onMouseleave: c[1] || (c[1] = (t) => Ia(!1)),
|
|
2527
|
+
onClick: (t) => pt(s)
|
|
2528
|
+
}, null, 40, pu))), 128))
|
|
2526
2529
|
])) : d("", !0),
|
|
2527
|
-
l.value.chart.timeTag.show && (![null, void 0].includes(
|
|
2530
|
+
l.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), i("g", ku, [
|
|
2528
2531
|
(u(), i("foreignObject", {
|
|
2529
|
-
x: n.value.left + n.value.width /
|
|
2532
|
+
x: n.value.left + n.value.width / m.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) - 100 + n.value.width / m.value / 2,
|
|
2530
2533
|
y: n.value.bottom,
|
|
2531
2534
|
width: "200",
|
|
2532
2535
|
height: "40",
|
|
@@ -2534,22 +2537,22 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2534
2537
|
}, [
|
|
2535
2538
|
g("div", {
|
|
2536
2539
|
class: "vue-ui-xy-time-tag",
|
|
2537
|
-
style:
|
|
2538
|
-
}, ee(
|
|
2539
|
-
], 8,
|
|
2540
|
+
style: z(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
|
|
2541
|
+
}, ee(le.value[(k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)].text || (k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)), 5)
|
|
2542
|
+
], 8, _u)),
|
|
2540
2543
|
g("circle", {
|
|
2541
|
-
cx: n.value.left + n.value.width /
|
|
2544
|
+
cx: n.value.left + n.value.width / m.value * ((k.value !== null ? k.value : 0) || (O.value !== null ? O.value : 0)) + n.value.width / m.value / 2,
|
|
2542
2545
|
cy: n.value.bottom,
|
|
2543
2546
|
r: l.value.chart.timeTag.circleMarker.radius,
|
|
2544
2547
|
fill: l.value.chart.timeTag.circleMarker.color
|
|
2545
|
-
}, null, 8,
|
|
2548
|
+
}, null, 8, wu)
|
|
2546
2549
|
])) : d("", !0)
|
|
2547
2550
|
])) : d("", !0),
|
|
2548
|
-
q(a.$slots, "svg", { svg:
|
|
2551
|
+
q(a.$slots, "svg", { svg: rt.value }, void 0, !0)
|
|
2549
2552
|
], 512)
|
|
2550
|
-
], 14,
|
|
2551
|
-
a.$slots.watermark ? (u(), i("div",
|
|
2552
|
-
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(
|
|
2553
|
+
], 14, fo)),
|
|
2554
|
+
a.$slots.watermark ? (u(), i("div", Su, [
|
|
2555
|
+
q(a.$slots, "watermark", Ze(Je({ isPrinting: v(Gl) || v(ca) })), void 0, !0)
|
|
2553
2556
|
])) : d("", !0),
|
|
2554
2557
|
(u(!0), i(h, null, y(_e.value, (e, s) => (u(), i(h, {
|
|
2555
2558
|
key: `tag_line_${s}`
|
|
@@ -2557,23 +2560,23 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2557
2560
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2558
2561
|
key: `tag_line_${s}_${r}`
|
|
2559
2562
|
}, [
|
|
2560
|
-
[O.value,
|
|
2563
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2561
2564
|
key: 0,
|
|
2562
2565
|
ref_for: !0,
|
|
2563
2566
|
ref: (o) => $l(s, r, o, "right", "line"),
|
|
2564
2567
|
class: "vue-ui-xy-tag",
|
|
2565
2568
|
"data-tag": "right",
|
|
2566
|
-
style:
|
|
2569
|
+
style: z({
|
|
2567
2570
|
position: "fixed",
|
|
2568
2571
|
top: v(Ee)({
|
|
2569
|
-
svgElement:
|
|
2572
|
+
svgElement: me.value,
|
|
2570
2573
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2571
2574
|
y: t.y,
|
|
2572
2575
|
element: Ce.value[`${s}_${r}_right_line`],
|
|
2573
2576
|
position: "right"
|
|
2574
2577
|
}).top + "px",
|
|
2575
2578
|
left: v(Ee)({
|
|
2576
|
-
svgElement:
|
|
2579
|
+
svgElement: me.value,
|
|
2577
2580
|
x: n.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2578
2581
|
y: t.y,
|
|
2579
2582
|
element: Ce.value[`${s}_${r}_right_line`],
|
|
@@ -2588,16 +2591,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2588
2591
|
opacity: 1
|
|
2589
2592
|
})
|
|
2590
2593
|
}, [
|
|
2591
|
-
(u(), i("svg",
|
|
2594
|
+
(u(), i("svg", $u, [
|
|
2592
2595
|
g("path", {
|
|
2593
2596
|
d: "M 0,10 10,0 10,20 Z",
|
|
2594
2597
|
fill: e.color,
|
|
2595
2598
|
stroke: "none"
|
|
2596
|
-
}, null, 8,
|
|
2599
|
+
}, null, 8, Lu)
|
|
2597
2600
|
])),
|
|
2598
2601
|
g("div", {
|
|
2599
2602
|
class: "vue-ui-xy-tag-content",
|
|
2600
|
-
innerHTML: v(
|
|
2603
|
+
innerHTML: v(re)(
|
|
2601
2604
|
l.value.line.tag.formatter,
|
|
2602
2605
|
t.value,
|
|
2603
2606
|
e.name,
|
|
@@ -2607,25 +2610,25 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2607
2610
|
serieName: e.name
|
|
2608
2611
|
}
|
|
2609
2612
|
)
|
|
2610
|
-
}, null, 8,
|
|
2613
|
+
}, null, 8, Au)
|
|
2611
2614
|
], 4)) : d("", !0),
|
|
2612
|
-
[O.value,
|
|
2615
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
|
|
2613
2616
|
key: 1,
|
|
2614
2617
|
ref_for: !0,
|
|
2615
2618
|
ref: (o) => $l(s, r, o, "left", "line"),
|
|
2616
2619
|
class: "vue-ui-xy-tag",
|
|
2617
2620
|
"data-tag": "left",
|
|
2618
|
-
style:
|
|
2621
|
+
style: z({
|
|
2619
2622
|
position: "fixed",
|
|
2620
2623
|
top: v(Ee)({
|
|
2621
|
-
svgElement:
|
|
2624
|
+
svgElement: me.value,
|
|
2622
2625
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2623
2626
|
y: t.y,
|
|
2624
2627
|
element: Ce.value[`${s}_${r}_left_line`],
|
|
2625
2628
|
position: "left"
|
|
2626
2629
|
}).top + "px",
|
|
2627
2630
|
left: v(Ee)({
|
|
2628
|
-
svgElement:
|
|
2631
|
+
svgElement: me.value,
|
|
2629
2632
|
x: n.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2630
2633
|
y: t.y,
|
|
2631
2634
|
element: Ce.value[`${s}_${r}_left_line`],
|
|
@@ -2640,16 +2643,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2640
2643
|
opacity: 1
|
|
2641
2644
|
})
|
|
2642
2645
|
}, [
|
|
2643
|
-
(u(), i("svg",
|
|
2646
|
+
(u(), i("svg", Mu, [
|
|
2644
2647
|
g("path", {
|
|
2645
2648
|
d: "M 0,0 10,10 0,20 Z",
|
|
2646
2649
|
fill: e.color,
|
|
2647
2650
|
stroke: "none"
|
|
2648
|
-
}, null, 8,
|
|
2651
|
+
}, null, 8, zu)
|
|
2649
2652
|
])),
|
|
2650
2653
|
g("div", {
|
|
2651
2654
|
class: "vue-ui-xy-tag-content",
|
|
2652
|
-
innerHTML: v(
|
|
2655
|
+
innerHTML: v(re)(
|
|
2653
2656
|
l.value.line.tag.formatter,
|
|
2654
2657
|
t.value,
|
|
2655
2658
|
e.name,
|
|
@@ -2659,7 +2662,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2659
2662
|
serieName: e.name
|
|
2660
2663
|
}
|
|
2661
2664
|
)
|
|
2662
|
-
}, null, 8,
|
|
2665
|
+
}, null, 8, Cu)
|
|
2663
2666
|
], 4)) : d("", !0)
|
|
2664
2667
|
], 64))), 128))
|
|
2665
2668
|
], 64))), 128)),
|
|
@@ -2669,23 +2672,23 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2669
2672
|
(u(!0), i(h, null, y(e.plots, (t, r) => (u(), i(h, {
|
|
2670
2673
|
key: `tag_plot_${s}_${r}`
|
|
2671
2674
|
}, [
|
|
2672
|
-
[O.value,
|
|
2675
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2673
2676
|
key: 0,
|
|
2674
2677
|
ref_for: !0,
|
|
2675
2678
|
ref: (o) => $l(s, r, o, "right", "plot"),
|
|
2676
2679
|
class: "vue-ui-xy-tag",
|
|
2677
2680
|
"data-tag": "right",
|
|
2678
|
-
style:
|
|
2681
|
+
style: z({
|
|
2679
2682
|
position: "fixed",
|
|
2680
2683
|
top: v(Ee)({
|
|
2681
|
-
svgElement:
|
|
2684
|
+
svgElement: me.value,
|
|
2682
2685
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2683
2686
|
y: t.y,
|
|
2684
2687
|
element: Ce.value[`${s}_${r}_right_plot`],
|
|
2685
2688
|
position: "right"
|
|
2686
2689
|
}).top + "px",
|
|
2687
2690
|
left: v(Ee)({
|
|
2688
|
-
svgElement:
|
|
2691
|
+
svgElement: me.value,
|
|
2689
2692
|
x: n.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
2690
2693
|
y: t.y,
|
|
2691
2694
|
element: Ce.value[`${s}_${r}_right_plot`],
|
|
@@ -2700,16 +2703,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2700
2703
|
opacity: 1
|
|
2701
2704
|
})
|
|
2702
2705
|
}, [
|
|
2703
|
-
(u(), i("svg",
|
|
2706
|
+
(u(), i("svg", Iu, [
|
|
2704
2707
|
g("path", {
|
|
2705
2708
|
d: "M 0,10 10,0 10,20 Z",
|
|
2706
2709
|
fill: e.color,
|
|
2707
2710
|
stroke: "none"
|
|
2708
|
-
}, null, 8,
|
|
2711
|
+
}, null, 8, Tu)
|
|
2709
2712
|
])),
|
|
2710
2713
|
g("div", {
|
|
2711
2714
|
class: "vue-ui-xy-tag-content",
|
|
2712
|
-
innerHTML: v(
|
|
2715
|
+
innerHTML: v(re)(
|
|
2713
2716
|
l.value.plot.tag.formatter,
|
|
2714
2717
|
t.value,
|
|
2715
2718
|
e.name,
|
|
@@ -2719,25 +2722,25 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2719
2722
|
serieName: e.name
|
|
2720
2723
|
}
|
|
2721
2724
|
)
|
|
2722
|
-
}, null, 8,
|
|
2725
|
+
}, null, 8, Ou)
|
|
2723
2726
|
], 4)) : d("", !0),
|
|
2724
|
-
[O.value,
|
|
2727
|
+
[O.value, k.value, Xe.value].includes(r) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
|
|
2725
2728
|
key: 1,
|
|
2726
2729
|
ref_for: !0,
|
|
2727
2730
|
ref: (o) => $l(s, r, o, "left", "plot"),
|
|
2728
2731
|
class: "vue-ui-xy-tag",
|
|
2729
2732
|
"data-tag": "left",
|
|
2730
|
-
style:
|
|
2733
|
+
style: z({
|
|
2731
2734
|
position: "fixed",
|
|
2732
2735
|
top: v(Ee)({
|
|
2733
|
-
svgElement:
|
|
2736
|
+
svgElement: me.value,
|
|
2734
2737
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2735
2738
|
y: t.y,
|
|
2736
2739
|
element: Ce.value[`${s}_${r}_left_plot`],
|
|
2737
2740
|
position: "left"
|
|
2738
2741
|
}).top + "px",
|
|
2739
2742
|
left: v(Ee)({
|
|
2740
|
-
svgElement:
|
|
2743
|
+
svgElement: me.value,
|
|
2741
2744
|
x: n.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
2742
2745
|
y: t.y,
|
|
2743
2746
|
element: Ce.value[`${s}_${r}_left_plot`],
|
|
@@ -2752,16 +2755,16 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2752
2755
|
opacity: 1
|
|
2753
2756
|
})
|
|
2754
2757
|
}, [
|
|
2755
|
-
(u(), i("svg",
|
|
2758
|
+
(u(), i("svg", Nu, [
|
|
2756
2759
|
g("path", {
|
|
2757
2760
|
d: "M 0,0 10,10 0,20 Z",
|
|
2758
2761
|
fill: e.color,
|
|
2759
2762
|
stroke: "none"
|
|
2760
|
-
}, null, 8,
|
|
2763
|
+
}, null, 8, Vu)
|
|
2761
2764
|
])),
|
|
2762
2765
|
g("div", {
|
|
2763
2766
|
class: "vue-ui-xy-tag-content",
|
|
2764
|
-
innerHTML: v(
|
|
2767
|
+
innerHTML: v(re)(
|
|
2765
2768
|
l.value.plot.tag.formatter,
|
|
2766
2769
|
t.value,
|
|
2767
2770
|
e.name,
|
|
@@ -2771,30 +2774,30 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2771
2774
|
serieName: e.name
|
|
2772
2775
|
}
|
|
2773
2776
|
)
|
|
2774
|
-
}, null, 8,
|
|
2777
|
+
}, null, 8, Pu)
|
|
2775
2778
|
], 4)) : d("", !0)
|
|
2776
2779
|
], 64))), 128))
|
|
2777
2780
|
], 64))), 128)),
|
|
2778
|
-
l.value.chart.zoom.show && Ve.value > 6 &&
|
|
2781
|
+
l.value.chart.zoom.show && Ve.value > 6 && Wl.value ? (u(), Me(oo, {
|
|
2779
2782
|
ref_key: "chartSlicer",
|
|
2780
2783
|
ref: Se,
|
|
2781
|
-
key: `slicer_${
|
|
2784
|
+
key: `slicer_${Bl.value}`,
|
|
2782
2785
|
background: l.value.chart.zoom.color,
|
|
2783
2786
|
fontSize: l.value.chart.zoom.fontSize,
|
|
2784
2787
|
useResetSlot: l.value.chart.zoom.useResetSlot,
|
|
2785
|
-
labelLeft:
|
|
2786
|
-
labelRight:
|
|
2788
|
+
labelLeft: le.value[0].text,
|
|
2789
|
+
labelRight: le.value.at(-1).text,
|
|
2787
2790
|
textColor: l.value.chart.color,
|
|
2788
2791
|
inputColor: l.value.chart.zoom.color,
|
|
2789
2792
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
2790
2793
|
borderColor: l.value.chart.backgroundColor,
|
|
2791
|
-
minimap:
|
|
2794
|
+
minimap: Ct.value,
|
|
2792
2795
|
smoothMinimap: l.value.chart.zoom.minimap.smooth,
|
|
2793
2796
|
minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
|
|
2794
2797
|
minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
|
|
2795
2798
|
minimapLineColor: l.value.chart.zoom.minimap.lineColor,
|
|
2796
2799
|
minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
|
|
2797
|
-
minimapSelectedIndex:
|
|
2800
|
+
minimapSelectedIndex: k.value,
|
|
2798
2801
|
minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
|
|
2799
2802
|
verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
|
|
2800
2803
|
max: Ve.value,
|
|
@@ -2806,13 +2809,13 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2806
2809
|
end: S.value.end,
|
|
2807
2810
|
"onUpdate:end": c[3] || (c[3] = (e) => S.value.end = e),
|
|
2808
2811
|
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(...
|
|
2812
|
+
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
2813
|
enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
|
|
2811
2814
|
enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
|
|
2812
|
-
onReset:
|
|
2813
|
-
onTrapMouse:
|
|
2815
|
+
onReset: yt,
|
|
2816
|
+
onTrapMouse: xt
|
|
2814
2817
|
}, {
|
|
2815
|
-
"reset-action":
|
|
2818
|
+
"reset-action": ue(({ reset: e }) => [
|
|
2816
2819
|
q(a.$slots, "reset-action", Ze(Je({ reset: e })), void 0, !0)
|
|
2817
2820
|
]),
|
|
2818
2821
|
_: 3
|
|
@@ -2822,14 +2825,14 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2822
2825
|
ref_key: "chartLegend",
|
|
2823
2826
|
ref: el,
|
|
2824
2827
|
class: "vue-ui-xy-legend",
|
|
2825
|
-
style:
|
|
2828
|
+
style: z(`font-size:${l.value.chart.legend.fontSize}px`)
|
|
2826
2829
|
}, [
|
|
2827
2830
|
(u(!0), i(h, null, y(Te.value, (e, s) => (u(), i("div", {
|
|
2828
2831
|
key: `div_legend_item_${s}`,
|
|
2829
|
-
onClick: (t) =>
|
|
2830
|
-
class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated":
|
|
2832
|
+
onClick: (t) => $a(e),
|
|
2833
|
+
class: Ue({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
|
|
2831
2834
|
}, [
|
|
2832
|
-
il.value[e.type] === "line" ? (u(), i("svg",
|
|
2835
|
+
il.value[e.type] === "line" ? (u(), i("svg", Ru, [
|
|
2833
2836
|
g("rect", {
|
|
2834
2837
|
x: "0",
|
|
2835
2838
|
y: "7.5",
|
|
@@ -2839,8 +2842,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2839
2842
|
height: "3",
|
|
2840
2843
|
width: "20",
|
|
2841
2844
|
fill: e.color
|
|
2842
|
-
}, null, 8,
|
|
2843
|
-
xl(
|
|
2845
|
+
}, null, 8, Bu),
|
|
2846
|
+
xl(Il, {
|
|
2844
2847
|
plot: { x: 10, y: 9 },
|
|
2845
2848
|
radius: 4,
|
|
2846
2849
|
color: e.color,
|
|
@@ -2848,7 +2851,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2848
2851
|
stroke: l.value.chart.backgroundColor,
|
|
2849
2852
|
strokeWidth: 0.5
|
|
2850
2853
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2851
|
-
])) : il.value[e.type] === "bar" ? (u(), i("svg",
|
|
2854
|
+
])) : il.value[e.type] === "bar" ? (u(), i("svg", Yu, [
|
|
2852
2855
|
il.value[e.type] === "bar" && a.$slots.pattern ? (u(), i("rect", {
|
|
2853
2856
|
key: 0,
|
|
2854
2857
|
x: "0",
|
|
@@ -2858,7 +2861,7 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2858
2861
|
width: "40",
|
|
2859
2862
|
stroke: "none",
|
|
2860
2863
|
fill: e.color
|
|
2861
|
-
}, null, 8,
|
|
2864
|
+
}, null, 8, Fu)) : d("", !0),
|
|
2862
2865
|
il.value[e.type] === "bar" ? (u(), i("rect", {
|
|
2863
2866
|
key: 1,
|
|
2864
2867
|
x: "0",
|
|
@@ -2868,9 +2871,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2868
2871
|
width: "40",
|
|
2869
2872
|
stroke: "none",
|
|
2870
2873
|
fill: a.$slots.pattern ? `url(#pattern_${U.value}_${e.slotAbsoluteIndex})` : e.color
|
|
2871
|
-
}, null, 8,
|
|
2872
|
-
])) : (u(), i("svg",
|
|
2873
|
-
xl(
|
|
2874
|
+
}, null, 8, Eu)) : d("", !0)
|
|
2875
|
+
])) : (u(), i("svg", Wu, [
|
|
2876
|
+
xl(Il, {
|
|
2874
2877
|
plot: { x: 6, y: 6 },
|
|
2875
2878
|
radius: 5,
|
|
2876
2879
|
color: e.color,
|
|
@@ -2878,9 +2881,9 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2878
2881
|
}, null, 8, ["color", "shape"])
|
|
2879
2882
|
])),
|
|
2880
2883
|
g("span", {
|
|
2881
|
-
style:
|
|
2884
|
+
style: z(`color:${l.value.chart.legend.color}`)
|
|
2882
2885
|
}, ee(e.name), 5)
|
|
2883
|
-
], 10,
|
|
2886
|
+
], 10, Hu))), 128))
|
|
2884
2887
|
], 4)) : (u(), i("div", {
|
|
2885
2888
|
key: 7,
|
|
2886
2889
|
ref_key: "chartLegend",
|
|
@@ -2896,8 +2899,8 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2896
2899
|
}, [
|
|
2897
2900
|
q(a.$slots, "source", {}, void 0, !0)
|
|
2898
2901
|
], 512)) : d("", !0),
|
|
2899
|
-
xl(v(
|
|
2900
|
-
show: f.value.showTooltip &&
|
|
2902
|
+
xl(v(Ka), {
|
|
2903
|
+
show: f.value.showTooltip && sa.value,
|
|
2901
2904
|
backgroundColor: l.value.chart.tooltip.backgroundColor,
|
|
2902
2905
|
color: l.value.chart.tooltip.color,
|
|
2903
2906
|
fontSize: l.value.chart.tooltip.fontSize,
|
|
@@ -2908,19 +2911,19 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2908
2911
|
position: l.value.chart.tooltip.position,
|
|
2909
2912
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
2910
2913
|
parent: a.$refs.chart,
|
|
2911
|
-
content:
|
|
2914
|
+
content: It.value,
|
|
2912
2915
|
isFullscreen: al.value,
|
|
2913
2916
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function"
|
|
2914
2917
|
}, {
|
|
2915
|
-
"tooltip-before":
|
|
2916
|
-
q(a.$slots, "tooltip-before", Ze(Je({ ...
|
|
2918
|
+
"tooltip-before": ue(() => [
|
|
2919
|
+
q(a.$slots, "tooltip-before", Ze(Je({ ...za.value })), void 0, !0)
|
|
2917
2920
|
]),
|
|
2918
|
-
"tooltip-after":
|
|
2919
|
-
q(a.$slots, "tooltip-after", Ze(Je({ ...
|
|
2921
|
+
"tooltip-after": ue(() => [
|
|
2922
|
+
q(a.$slots, "tooltip-after", Ze(Je({ ...za.value })), void 0, !0)
|
|
2920
2923
|
]),
|
|
2921
2924
|
_: 3
|
|
2922
2925
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2923
|
-
|
|
2926
|
+
Wl.value ? (u(), Me(v(lt), {
|
|
2924
2927
|
key: 9,
|
|
2925
2928
|
hideDetails: "",
|
|
2926
2929
|
config: {
|
|
@@ -2936,46 +2939,46 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2936
2939
|
}
|
|
2937
2940
|
}
|
|
2938
2941
|
}, {
|
|
2939
|
-
content:
|
|
2942
|
+
content: ue(() => [
|
|
2940
2943
|
g("div", {
|
|
2941
|
-
style:
|
|
2944
|
+
style: z(`${v(Gl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2942
2945
|
}, [
|
|
2943
|
-
g("div",
|
|
2944
|
-
|
|
2946
|
+
g("div", Xu, [
|
|
2947
|
+
Rt(g("input", {
|
|
2945
2948
|
type: "checkbox",
|
|
2946
2949
|
"onUpdate:modelValue": c[4] || (c[4] = (e) => nl.value = e)
|
|
2947
2950
|
}, null, 512), [
|
|
2948
|
-
[
|
|
2951
|
+
[Bt, nl.value]
|
|
2949
2952
|
]),
|
|
2950
2953
|
g("div", {
|
|
2951
2954
|
onClick: c[5] || (c[5] = (e) => nl.value = !nl.value),
|
|
2952
2955
|
style: { cursor: "pointer" }
|
|
2953
2956
|
}, [
|
|
2954
|
-
xl(v(
|
|
2957
|
+
xl(v(ja), {
|
|
2955
2958
|
name: "chartLine",
|
|
2956
2959
|
size: 20,
|
|
2957
2960
|
stroke: l.value.chart.color
|
|
2958
2961
|
}, null, 8, ["stroke"])
|
|
2959
2962
|
])
|
|
2960
2963
|
]),
|
|
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:
|
|
2964
|
+
nl.value ? (u(), Me(v(et), {
|
|
2965
|
+
key: `sparkline_${Yl.value}`,
|
|
2966
|
+
dataset: At.value,
|
|
2967
|
+
config: Mt.value
|
|
2968
|
+
}, null, 8, ["dataset", "config"])) : (u(), Me(v(Ja), {
|
|
2969
|
+
key: `table_${ra.value}`,
|
|
2970
|
+
colNames: Ml.value.colNames,
|
|
2971
|
+
head: Ml.value.head,
|
|
2972
|
+
body: Ml.value.body,
|
|
2973
|
+
config: Ml.value.config,
|
|
2971
2974
|
title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
|
|
2972
2975
|
onClose: c[6] || (c[6] = (e) => f.value.showTable = !1)
|
|
2973
2976
|
}, {
|
|
2974
|
-
th:
|
|
2975
|
-
g("div", { innerHTML: e }, null, 8,
|
|
2977
|
+
th: ue(({ th: e }) => [
|
|
2978
|
+
g("div", { innerHTML: e }, null, 8, Gu)
|
|
2976
2979
|
]),
|
|
2977
|
-
td:
|
|
2978
|
-
|
|
2980
|
+
td: ue(({ td: e }) => [
|
|
2981
|
+
Yt(ee(isNaN(Number(e)) ? e : v(xe)({
|
|
2979
2982
|
p: l.value.chart.labels.prefix,
|
|
2980
2983
|
v: e,
|
|
2981
2984
|
s: l.value.chart.labels.suffix,
|
|
@@ -2988,10 +2991,10 @@ const vo = ["id"], ho = ["viewBox", "aria-label"], fo = ["x", "y", "width", "hei
|
|
|
2988
2991
|
]),
|
|
2989
2992
|
_: 1
|
|
2990
2993
|
}, 8, ["config"])) : d("", !0),
|
|
2991
|
-
v(
|
|
2992
|
-
], 46,
|
|
2994
|
+
v(Xl) ? (u(), Me(no, { key: 10 })) : d("", !0)
|
|
2995
|
+
], 46, ho));
|
|
2993
2996
|
}
|
|
2994
|
-
},
|
|
2997
|
+
}, ur = /* @__PURE__ */ vo(Du, [["__scopeId", "data-v-0af4f2ed"]]);
|
|
2995
2998
|
export {
|
|
2996
|
-
|
|
2999
|
+
ur as default
|
|
2997
3000
|
};
|