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