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