vue-data-ui 3.0.0-next.37 → 3.0.0-next.38
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-BwexzLX9.js → Arrow-Cxfs_jDk.js} +1 -1
- package/dist/{BaseDraggableDialog-CqOYUWgJ.js → BaseDraggableDialog-D8bUhwCR.js} +2 -2
- package/dist/{BaseIcon-bM96sLiE.js → BaseIcon-B5hDik6M.js} +1 -1
- package/dist/{ColorPicker-DKeSOZp_.js → ColorPicker-X30bIjOM.js} +2 -2
- package/dist/{DataTable-CpC-f3bF.js → DataTable-BrP5zT2y.js} +2 -2
- package/dist/{Legend-CqhrdBNU.js → Legend-Bok1w9PE.js} +2 -2
- package/dist/{NonSvgPenAndPaper-qbMyX2kx.js → NonSvgPenAndPaper-mFU4kkja.js} +3 -3
- package/dist/{PackageVersion-C05X5sSL.js → PackageVersion-DoJRJ_yZ.js} +1 -1
- package/dist/{PenAndPaper-BX5caC5i.js → PenAndPaper-BKLSbUJJ.js} +3 -3
- package/dist/{Shape-DoY1nSuX.js → Shape-Bp0uUbyi.js} +1 -1
- package/dist/{Slicer-K-fV6Zyn.js → Slicer-BIL4fQe9.js} +2 -2
- package/dist/{SparkTooltip-BigTvWHM.js → SparkTooltip-BrA3pWY1.js} +1 -1
- package/dist/{Title-CdBcQLZl.js → Title-C4mHBlGm.js} +1 -1
- package/dist/{Tooltip-cQGOp05f.js → Tooltip-CIAaZqi-.js} +1 -1
- package/dist/{UserOptions-BLgabL-g.js → UserOptions-CtdmjrzM.js} +2 -2
- package/dist/{dom-to-png-ZtEhWueM.js → dom-to-png-D7urYnQL.js} +1 -1
- package/dist/{img-Ch-SX__W.js → img-u92jJi7s.js} +1 -1
- package/dist/{index-wp5binlq.js → index-Do8Yy3T8.js} +9 -1
- package/dist/{pdf-BvVuQkf5.js → pdf-Da78hVzB.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-DLeFGu88.js → useNestedProp-C7A9vyBD.js} +1 -1
- package/dist/{usePrinter-gmsJtZaC.js → usePrinter-BvP9oj3O.js} +2 -2
- package/dist/{vue-data-ui-DKdztRxO.js → vue-data-ui-BVss51hf.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BUzO3sJJ.js → vue-ui-3d-bar-CsijfJeX.js} +6 -6
- package/dist/{vue-ui-accordion-DR5j0NkU.js → vue-ui-accordion-DqXZmmXi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C5qSTZM-.js → vue-ui-age-pyramid-CLr8-9V2.js} +6 -6
- package/dist/{vue-ui-annotator-3QPadpcx.js → vue-ui-annotator-BKH5uBbZ.js} +2 -2
- package/dist/vue-ui-bullet-Bv-AKTw8.js +571 -0
- package/dist/{vue-ui-candlestick-BS2slL0A.js → vue-ui-candlestick-2MCzyUcz.js} +7 -7
- package/dist/{vue-ui-carousel-table-CZ2FKTL_.js → vue-ui-carousel-table-cw5HlSnS.js} +4 -4
- package/dist/{vue-ui-chestnut-YDFpeqcB.js → vue-ui-chestnut-BgsrweZJ.js} +5 -5
- package/dist/{vue-ui-chord-Uik7yTc-.js → vue-ui-chord-M_mjkpTk.js} +8 -8
- package/dist/{vue-ui-circle-pack-tLHQ_HMs.js → vue-ui-circle-pack-Mpyhugsj.js} +6 -6
- package/dist/{vue-ui-cursor-DuTjwu1N.js → vue-ui-cursor-DSM1Yx0w.js} +2 -2
- package/dist/{vue-ui-dashboard-BImS6A6f.js → vue-ui-dashboard-DRzgS8bH.js} +62 -62
- package/dist/{vue-ui-digits-DHyvQFHB.js → vue-ui-digits-Cc0q_XUJ.js} +2 -2
- package/dist/{vue-ui-donut-BzABsTv4.js → vue-ui-donut-BcWb6mkK.js} +8 -8
- package/dist/{vue-ui-donut-evolution-HYzJM6BY.js → vue-ui-donut-evolution-DwGNKYA1.js} +8 -8
- package/dist/{vue-ui-dumbbell-BcOhZ27d.js → vue-ui-dumbbell-ZyS0CtQ-.js} +7 -7
- package/dist/{vue-ui-flow-wr8MxKU3.js → vue-ui-flow-DcjaQvd5.js} +7 -7
- package/dist/{vue-ui-funnel-Dx3BObkz.js → vue-ui-funnel-DnPwnTbH.js} +6 -6
- package/dist/{vue-ui-galaxy-hvFBNCuJ.js → vue-ui-galaxy-BUf27AcC.js} +5 -5
- package/dist/{vue-ui-gauge-Bj9BTOK0.js → vue-ui-gauge-y52sZ03m.js} +6 -6
- package/dist/{vue-ui-gizmo-DrMgMC65.js → vue-ui-gizmo-CbOvKh62.js} +3 -3
- package/dist/{vue-ui-heatmap-svE65xaD.js → vue-ui-heatmap-DFcG0beX.js} +312 -318
- package/dist/{vue-ui-history-plot-C2RS1rJk.js → vue-ui-history-plot-CrEafJoS.js} +7 -7
- package/dist/{vue-ui-kpi-D5BC1Mr0.js → vue-ui-kpi-B7xxS9iY.js} +3 -3
- package/dist/{vue-ui-mini-loader-D62FIGRG.js → vue-ui-mini-loader-BOoPc7za.js} +2 -2
- package/dist/{vue-ui-molecule-CJf9kVTU.js → vue-ui-molecule-DjLDHkE4.js} +5 -5
- package/dist/{vue-ui-mood-radar-Dgtoq_LP.js → vue-ui-mood-radar-CDpRBAeI.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DwkH1lkj.js → vue-ui-nested-donuts-BB07uN8o.js} +9 -9
- package/dist/{vue-ui-onion-CJsi74WE.js → vue-ui-onion-QtmsKAXa.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-BmmszbMf.js → vue-ui-parallel-coordinate-plot-C9igDR3-.js} +8 -8
- package/dist/{vue-ui-quadrant-DHoY_j3Z.js → vue-ui-quadrant-Bbyn8jqM.js} +8 -8
- package/dist/{vue-ui-quick-chart-B-AMJ-H2.js → vue-ui-quick-chart-DpgVYsO_.js} +620 -611
- package/dist/{vue-ui-radar-wI51h1dY.js → vue-ui-radar-BQtoJTN1.js} +7 -7
- package/dist/{vue-ui-rating-Dx4qaN31.js → vue-ui-rating-CayItUX5.js} +2 -2
- package/dist/{vue-ui-relation-circle-DpkTm4GN.js → vue-ui-relation-circle-BQPvHFqF.js} +6 -6
- package/dist/{vue-ui-ridgeline-13TEZdZt.js → vue-ui-ridgeline-Djw8uzUc.js} +8 -8
- package/dist/{vue-ui-rings-KYYXSL_J.js → vue-ui-rings-DdW9icm5.js} +8 -8
- package/dist/{vue-ui-scatter-DThb1IMn.js → vue-ui-scatter-ko0ev9Hy.js} +8 -8
- package/dist/{vue-ui-skeleton-D4JJ_IcV.js → vue-ui-skeleton-Btfrm6Mb.js} +3 -3
- package/dist/{vue-ui-smiley-BjuXDhY2.js → vue-ui-smiley-CscAe46K.js} +2 -2
- package/dist/{vue-ui-spark-trend-slD0lRZ2.js → vue-ui-spark-trend-DPo61M0c.js} +3 -3
- package/dist/{vue-ui-sparkbar-CfY4t5Xc.js → vue-ui-sparkbar-C3PmYQCw.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BLwYhS2D.js → vue-ui-sparkgauge-BVeKIvzV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B07RkXJi.js → vue-ui-sparkhistogram-qQFd_Ahm.js} +4 -4
- package/dist/{vue-ui-sparkline-Cs4aXowg.js → vue-ui-sparkline-CS9mKrwW.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-5LmEwZJ5.js → vue-ui-sparkstackbar-CgQkP8A3.js} +3 -3
- package/dist/{vue-ui-stackbar-CH5n0yJL.js → vue-ui-stackbar-emX2SvlM.js} +9 -9
- package/dist/{vue-ui-strip-plot-DntZFKql.js → vue-ui-strip-plot-BUBtGmhH.js} +7 -7
- package/dist/{vue-ui-table-DHvtU4aX.js → vue-ui-table-DHJ5c0TM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CG7Vj0Km.js → vue-ui-table-heatmap-YXVD2ajW.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4jiuei1.js → vue-ui-table-sparkline-DehiyqPe.js} +4 -4
- package/dist/{vue-ui-thermometer-BDV1pxGB.js → vue-ui-thermometer-COQFOTU7.js} +6 -6
- package/dist/{vue-ui-timer-TNQa3Eof.js → vue-ui-timer-DG3qPM0B.js} +5 -5
- package/dist/{vue-ui-tiremarks-B7Pzjjc6.js → vue-ui-tiremarks-BSUFcLke.js} +6 -6
- package/dist/{vue-ui-treemap-TjFlub50.js → vue-ui-treemap-BDLQFlzo.js} +8 -8
- package/dist/{vue-ui-vertical-bar-CRrqaana.js → vue-ui-vertical-bar-D37Bl2x2.js} +9 -9
- package/dist/{vue-ui-waffle-galoGgFT.js → vue-ui-waffle-CysJSES6.js} +8 -8
- package/dist/{vue-ui-wheel-DLfh_d06.js → vue-ui-wheel-Cm5g4KdO.js} +6 -6
- package/dist/{vue-ui-word-cloud-D47QRpYd.js → vue-ui-word-cloud-FEIoDTjf.js} +6 -6
- package/dist/{vue-ui-world-C3tzPkEp.js → vue-ui-world-CQxuqljX.js} +6 -6
- package/dist/{vue-ui-xy-CHjxAv_x.js → vue-ui-xy-TBO42wxL.js} +527 -527
- package/dist/{vue-ui-xy-canvas-DVhri5-F.js → vue-ui-xy-canvas-DyPds5xu.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-bullet-B52QaMvO.js +0 -513
|
@@ -1,137 +1,143 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { defineAsyncComponent as $e, ref as w, computed as N, toRefs as ta, watch as Ie, shallowRef as $t, onMounted as aa, onBeforeUnmount as It, nextTick as Et, watchEffect as la, createElementBlock as o, openBlock as l, normalizeStyle as O, normalizeClass as ce, createBlock as qe, createCommentVNode as g, createVNode as ke, unref as r, createSlots as oa, withCtx as K, renderSlot as U, normalizeProps as he, guardReactiveProps as fe, toDisplayString as F, createElementVNode as z, Fragment as p, renderList as I, mergeProps as et } from "vue";
|
|
2
|
+
import { u as na, c as ia, A as ua, t as ra, p as X, a as sa, C as We, b as va, G as da, e as ca, o as ha, d as tt, m as fa, D as Tt, X as ga, j as ma, k as at, n as Ee, i as ee, f as W, I as Pt, V as Ot, v as te, x as je, y as lt } from "./index-Do8Yy3T8.js";
|
|
3
|
+
import { t as Rt, u as pa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as xa } from "./usePrinter-BvP9oj3O.js";
|
|
5
|
+
import { u as Mt } from "./useNestedProp-C7A9vyBD.js";
|
|
6
|
+
import { u as ya } from "./useTimeLabels-DkzmKfZn.js";
|
|
7
|
+
import { u as ka } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { u as ba } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
+
import Sa from "./img-u92jJi7s.js";
|
|
10
|
+
import { S as wa } from "./Slicer-BIL4fQe9.js";
|
|
11
|
+
import { u as Aa, B as La } from "./BaseScanner-DIK2NTdp.js";
|
|
12
|
+
import { _ as _a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const _ = {
|
|
14
14
|
LINE: "LINE",
|
|
15
15
|
BAR: "BAR",
|
|
16
16
|
DONUT: "DONUT"
|
|
17
|
-
},
|
|
18
|
-
function
|
|
19
|
-
let
|
|
20
|
-
if ((typeof
|
|
21
|
-
if (!
|
|
17
|
+
}, za = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
18
|
+
function Ca({ dataset: h, barLineSwitch: P = 6, debug: S = !0 }) {
|
|
19
|
+
let B = null, H = null, le = 0;
|
|
20
|
+
if ((typeof h == "number" || typeof h == "string") && S && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Te(h) && (ae(h) && (h.length < P ? B = _.BAR : B = _.LINE, H = h, le = h.length), Xe(h))) {
|
|
21
|
+
if (!Ia(h))
|
|
22
22
|
return S && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
23
|
-
const
|
|
24
|
-
if (!
|
|
23
|
+
const Se = Object.keys(h[0]), M = Object.values(h[0]);
|
|
24
|
+
if (!Se.some((R) => Ea(R)))
|
|
25
25
|
return S && console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
|
|
26
|
-
|
|
27
|
-
...
|
|
28
|
-
data:
|
|
29
|
-
}))),
|
|
26
|
+
Ft(M, (R) => typeof R == "number") && (B = _.DONUT, H = h), Ft(M, (R) => Array.isArray(R) && ae(R)) && (Nt(h) > P ? B = _.LINE : B = _.BAR, le = Nt(h), H = h.map((R) => ({
|
|
27
|
+
...R,
|
|
28
|
+
data: Ta(R, (Pe) => ae(Pe))
|
|
29
|
+
}))), h = h.map((R) => Bt(R)), H = H.map((R) => Bt(R));
|
|
30
30
|
}
|
|
31
|
-
return
|
|
32
|
-
dataset:
|
|
33
|
-
type:
|
|
31
|
+
return Te(h) && [...new Set(h.flatMap((Se) => Array.isArray(Se)))][0], {
|
|
32
|
+
dataset: h,
|
|
33
|
+
type: B,
|
|
34
34
|
usableDataset: H,
|
|
35
35
|
maxSeriesLength: le
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return !
|
|
38
|
+
function Dt(h) {
|
|
39
|
+
return !h || Te(h) && !h.length;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return Array.isArray(
|
|
41
|
+
function Te(h) {
|
|
42
|
+
return Array.isArray(h);
|
|
43
43
|
}
|
|
44
|
-
function ae(
|
|
45
|
-
if (!
|
|
46
|
-
const
|
|
47
|
-
return ![...new Set(
|
|
44
|
+
function ae(h) {
|
|
45
|
+
if (!Te(h) || Dt(h)) return !1;
|
|
46
|
+
const P = h.map((S) => Number(S));
|
|
47
|
+
return ![...new Set(P.flatMap((S) => typeof S == "number" && !isNaN(S)))].includes(!1);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return !
|
|
49
|
+
function Xe(h) {
|
|
50
|
+
return !Te(h) || Dt(h) || !![...new Set(h.flatMap((S) => typeof S == "object" && !Array.isArray(S)))].includes(!1) ? !1 : !h.map((S) => Object.keys(S).length > 0).includes(!1);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const S = Object.keys(
|
|
54
|
-
if (S.length !==
|
|
52
|
+
function $a(h, P) {
|
|
53
|
+
const S = Object.keys(h).sort(), B = Object.keys(P).sort();
|
|
54
|
+
if (S.length !== B.length)
|
|
55
55
|
return !1;
|
|
56
56
|
for (let H = 0; H < S.length; H += 1) {
|
|
57
|
-
const le = S[H],
|
|
58
|
-
if (le !==
|
|
57
|
+
const le = S[H], be = B[H];
|
|
58
|
+
if (le !== be || typeof h[le] != typeof P[be])
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
61
|
return !0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
65
|
-
for (let
|
|
66
|
-
for (let S =
|
|
67
|
-
if (
|
|
63
|
+
function Ia(h) {
|
|
64
|
+
if (h.length <= 1) return !0;
|
|
65
|
+
for (let P = 0; P < h.length; P += 1)
|
|
66
|
+
for (let S = P + 1; S < h.length; S += 1)
|
|
67
|
+
if (!$a(h[P], h[S]))
|
|
68
68
|
return !1;
|
|
69
69
|
return !0;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function Ea(h) {
|
|
72
|
+
return za.includes(h.toUpperCase());
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ft(h, P) {
|
|
75
75
|
let S = [];
|
|
76
|
-
for (let
|
|
77
|
-
S.push(
|
|
76
|
+
for (let B = 0; B < h.length; B += 1)
|
|
77
|
+
S.push(P(h[B]));
|
|
78
78
|
return S.includes(!0);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return Math.max(...[...
|
|
80
|
+
function Nt(h) {
|
|
81
|
+
return Math.max(...[...h].flatMap((P) => Object.values(P).filter((S) => ae(S)).map((S) => S.length)));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return Object.values(
|
|
83
|
+
function Ta(h, P) {
|
|
84
|
+
return Object.values(h).filter((S) => P(S))[0];
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
const
|
|
88
|
-
for (let S in
|
|
89
|
-
|
|
90
|
-
return
|
|
86
|
+
function Bt(h) {
|
|
87
|
+
const P = {};
|
|
88
|
+
for (let S in h)
|
|
89
|
+
h.hasOwnProperty(S) && (P[S.toUpperCase()] = h[S]);
|
|
90
|
+
return P;
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const Pa = ["id"], Oa = ["xmlns", "viewBox"], Ra = ["x", "y", "width", "height"], Ma = ["x", "y", "width", "height"], Fa = ["width", "height"], Na = ["id"], Ba = ["id"], Da = ["id"], Ua = ["flood-color"], Va = {
|
|
93
93
|
key: 0,
|
|
94
94
|
class: "donut-label-connectors"
|
|
95
|
-
},
|
|
95
|
+
}, Ha = ["d", "stroke", "stroke-width", "filter"], qa = ["cx", "cy", "r", "fill", "filter"], Wa = { class: "donut" }, ja = ["d", "fill", "stroke", "stroke-width", "filter"], Xa = ["d", "onMouseenter", "onMouseout", "onClick"], Ga = {
|
|
96
96
|
key: 1,
|
|
97
97
|
class: "donut-labels quick-animation"
|
|
98
|
-
},
|
|
98
|
+
}, Ya = ["cx", "cy", "fill", "stroke", "filter"], Za = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Ja = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Qa = {
|
|
99
99
|
key: 2,
|
|
100
100
|
class: "donut-hollow quick-animation"
|
|
101
|
-
},
|
|
101
|
+
}, Ka = ["x", "y", "font-size", "fill"], el = ["x", "y", "font-size", "fill"], tl = {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: "line-grid"
|
|
104
|
-
},
|
|
104
|
+
}, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = {
|
|
105
105
|
key: 1,
|
|
106
106
|
class: "line-axis"
|
|
107
|
-
},
|
|
107
|
+
}, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["x", "y", "font-size", "fill"], sl = {
|
|
108
108
|
key: 3,
|
|
109
109
|
class: "periodLabels"
|
|
110
|
-
},
|
|
110
|
+
}, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = { key: 0 }, cl = ["font-size", "text-anchor", "fill", "transform"], hl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], fl = { class: "plots" }, gl = { class: "line-plot-series" }, ml = ["d", "stroke", "stroke-width"], pl = ["d", "stroke", "stroke-width"], xl = ["d", "stroke", "stroke-width"], yl = ["d", "stroke", "stroke-width"], kl = ["cx", "cy", "fill", "stroke"], bl = {
|
|
111
111
|
key: 4,
|
|
112
112
|
class: "dataLabels"
|
|
113
|
-
},
|
|
113
|
+
}, Sl = ["font-size", "fill", "x", "y"], wl = {
|
|
114
|
+
key: 5,
|
|
115
|
+
class: "tooltip-traps"
|
|
116
|
+
}, Al = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Ll = {
|
|
114
117
|
key: 0,
|
|
115
118
|
class: "line-grid"
|
|
116
|
-
},
|
|
119
|
+
}, _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = {
|
|
117
120
|
key: 1,
|
|
118
121
|
class: "line-axis"
|
|
119
|
-
},
|
|
122
|
+
}, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x", "y", "font-size", "fill"], Pl = {
|
|
120
123
|
key: 3,
|
|
121
124
|
class: "periodLabels"
|
|
122
|
-
},
|
|
125
|
+
}, Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = { key: 0 }, Ml = ["font-size", "text-anchor", "fill", "transform"], Fl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Nl = { class: "plots" }, Bl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], Dl = ["to"], Ul = ["from", "to"], Vl = {
|
|
123
126
|
key: 4,
|
|
124
127
|
class: "dataLabels"
|
|
125
|
-
},
|
|
128
|
+
}, Hl = ["x", "y", "font-size", "fill"], ql = {
|
|
129
|
+
key: 5,
|
|
130
|
+
class: "tooltip-traps"
|
|
131
|
+
}, Wl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], jl = {
|
|
126
132
|
key: 6,
|
|
127
133
|
class: "axis-labels"
|
|
128
|
-
},
|
|
134
|
+
}, Xl = ["font-size", "fill", "x", "y"], Gl = ["font-size", "fill", "x", "y"], Yl = ["font-size", "fill", "transform"], Zl = ["font-size", "fill", "transform"], Jl = {
|
|
129
135
|
key: 5,
|
|
130
136
|
class: "vue-data-ui-watermark"
|
|
131
|
-
},
|
|
137
|
+
}, Ql = ["onClick"], Kl = ["onClick"], eo = ["onClick"], to = {
|
|
132
138
|
key: 1,
|
|
133
139
|
class: "vue-ui-quick-chart-not-processable"
|
|
134
|
-
},
|
|
140
|
+
}, ao = {
|
|
135
141
|
__name: "vue-ui-quick-chart",
|
|
136
142
|
props: {
|
|
137
143
|
config: {
|
|
@@ -148,13 +154,13 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
148
154
|
}
|
|
149
155
|
},
|
|
150
156
|
emits: ["selectDatapoint", "selectLegend"],
|
|
151
|
-
setup(
|
|
152
|
-
const
|
|
153
|
-
...
|
|
157
|
+
setup(h, { expose: P, emit: S }) {
|
|
158
|
+
const B = $e(() => import("./BaseIcon-B5hDik6M.js")), H = $e(() => import("./PackageVersion-DoJRJ_yZ.js")), le = $e(() => import("./PenAndPaper-BKLSbUJJ.js")), be = $e(() => import("./Tooltip-CIAaZqi-.js")), ot = $e(() => import("./UserOptions-CtdmjrzM.js")), { vue_ui_quick_chart: Se } = na(), M = h, R = w(null), Pe = w(null), nt = w(null), it = w(null), oe = w(ia()), re = w(!1), we = w(null), se = w(""), Y = w(null), ut = w(null), rt = w(null), A = w([]), st = w(0), Oe = w(0), Z = w(null), Re = w(null), vt = w(null), dt = w(null), Me = w("#FFFFFF"), e = w(Ze()), Ge = N(() => !!e.value.debug), { loading: D, FINAL_DATASET: Ut, manualLoading: ct } = Aa({
|
|
159
|
+
...ta(M),
|
|
154
160
|
FINAL_CONFIG: e,
|
|
155
|
-
prepareConfig:
|
|
161
|
+
prepareConfig: Ze,
|
|
156
162
|
skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
|
|
157
|
-
skeletonConfig:
|
|
163
|
+
skeletonConfig: ua({
|
|
158
164
|
defaultConfig: e.value,
|
|
159
165
|
userConfig: {
|
|
160
166
|
backgroundColor: "#99999930",
|
|
@@ -176,33 +182,33 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
176
182
|
zoomEndIndex: null
|
|
177
183
|
}
|
|
178
184
|
})
|
|
179
|
-
}), { svgRef:
|
|
180
|
-
function
|
|
181
|
-
|
|
185
|
+
}), { svgRef: ht } = ka({ config: { text: e.value.title } }), Vt = N(() => e.value.showUserOptionsOnChartHover), ft = N(() => e.value.keepUserOptionsStateOnChartLeave), Fe = w(!e.value.showUserOptionsOnChartHover), Ye = w(!1);
|
|
186
|
+
function gt(a = !1) {
|
|
187
|
+
Ye.value = a, Vt.value && (Fe.value = a);
|
|
182
188
|
}
|
|
183
|
-
function
|
|
184
|
-
const
|
|
185
|
-
userConfig:
|
|
186
|
-
defaultConfig:
|
|
189
|
+
function Ze() {
|
|
190
|
+
const a = Mt({
|
|
191
|
+
userConfig: M.config,
|
|
192
|
+
defaultConfig: Se
|
|
187
193
|
});
|
|
188
|
-
let
|
|
189
|
-
return
|
|
190
|
-
...
|
|
191
|
-
userConfig:
|
|
192
|
-
defaultConfig:
|
|
194
|
+
let c = {};
|
|
195
|
+
return a.theme ? c = {
|
|
196
|
+
...Mt({
|
|
197
|
+
userConfig: sa.vue_ui_quick_chart[a.theme] || M.config,
|
|
198
|
+
defaultConfig: a
|
|
193
199
|
}),
|
|
194
|
-
customPalette:
|
|
195
|
-
} :
|
|
200
|
+
customPalette: ra[a.theme] || X
|
|
201
|
+
} : c = a, M.config && We(M.config, "zoomStartIndex") ? c.zoomStartIndex = M.config.zoomStartIndex : c.zoomStartIndex = null, M.config && We(M.config, "zoomEndIndex") ? c.zoomEndIndex = M.config.zoomEndIndex : c.zoomEndIndex = null, M.config && !We(M.config, "donutStroke") ? We(M.config, "backgroundColor") ? Me.value = M.config.backgroundColor : Me.value = "#FFFFFF" : Me.value = M.config.donutStroke, c;
|
|
196
202
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}, { deep: !0 }),
|
|
200
|
-
k.value =
|
|
201
|
-
}, { deep: !0 }),
|
|
202
|
-
Array.isArray(
|
|
203
|
+
Ie(() => M.config, (a) => {
|
|
204
|
+
D.value || (e.value = Ze()), b.value.width = e.value.width, b.value.height = e.value.height, Fe.value = !e.value.showUserOptionsOnChartHover, xt(), me.value.showTooltip = e.value.showTooltip;
|
|
205
|
+
}, { deep: !0 }), Ie(() => M.dataset, (a) => {
|
|
206
|
+
k.value = Le.value, m.value.start = 0, m.value.end = k.value.maxSeriesLength, Oe.value += 1;
|
|
207
|
+
}, { deep: !0 }), Ie(() => M.dataset, (a) => {
|
|
208
|
+
Array.isArray(a) && a.length > 0 && (ct.value = !1);
|
|
203
209
|
}, { immediate: !0 });
|
|
204
|
-
const
|
|
205
|
-
const
|
|
210
|
+
const Ae = N(() => va(e.value.customPalette)), ge = S, Le = N(() => {
|
|
211
|
+
const a = Ca({ debug: Ge.value, dataset: da(Ut.value, [
|
|
206
212
|
"serie",
|
|
207
213
|
"series",
|
|
208
214
|
"data",
|
|
@@ -210,141 +216,141 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
210
216
|
"values",
|
|
211
217
|
"num"
|
|
212
218
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
213
|
-
return !
|
|
214
|
-
}), k =
|
|
215
|
-
|
|
216
|
-
|
|
219
|
+
return !a && Ge.value && console.error("VueUiQuickChart : Dataset is not processable"), a;
|
|
220
|
+
}), k = w(Le.value), Ht = N(() => !!k.value), $ = N(() => k.value ? k.value.type : null);
|
|
221
|
+
Ie(() => $.value, (a) => {
|
|
222
|
+
a || ca({
|
|
217
223
|
componentName: "VueUiQuickChart",
|
|
218
224
|
type: "dataset",
|
|
219
|
-
debug:
|
|
225
|
+
debug: Ge.value
|
|
220
226
|
});
|
|
221
227
|
}, { immediate: !0 });
|
|
222
|
-
const { isPrinting:
|
|
228
|
+
const { isPrinting: Ne, isImaging: Be, generatePdf: mt, generateImage: pt } = xa({
|
|
223
229
|
elementId: `${$.value}_${oe.value}`,
|
|
224
230
|
fileName: e.value.title || $.value,
|
|
225
231
|
options: e.value.userOptionsPrint
|
|
226
|
-
}),
|
|
232
|
+
}), qt = N(() => e.value.showUserOptions && !e.value.title), b = w({
|
|
227
233
|
width: e.value.width,
|
|
228
234
|
height: e.value.height
|
|
229
|
-
}), me =
|
|
235
|
+
}), me = w({
|
|
230
236
|
showTooltip: e.value.showTooltip
|
|
231
237
|
});
|
|
232
|
-
|
|
238
|
+
Ie(e, () => {
|
|
233
239
|
me.value = {
|
|
234
240
|
showTooltip: e.value.showTooltip
|
|
235
241
|
};
|
|
236
242
|
}, { immediate: !0 });
|
|
237
|
-
const ne =
|
|
238
|
-
|
|
239
|
-
|
|
243
|
+
const ne = $t(null), pe = $t(null);
|
|
244
|
+
aa(() => {
|
|
245
|
+
xt();
|
|
240
246
|
});
|
|
241
|
-
function
|
|
242
|
-
if (
|
|
243
|
-
const
|
|
244
|
-
const { width:
|
|
245
|
-
chart:
|
|
247
|
+
function xt() {
|
|
248
|
+
if (ha(M.dataset) || (ct.value = e.value.loading), e.value.responsive) {
|
|
249
|
+
const a = Rt(() => {
|
|
250
|
+
const { width: c, height: t } = pa({
|
|
251
|
+
chart: R.value,
|
|
246
252
|
title: e.value.title ? Pe.value : null,
|
|
247
|
-
legend: e.value.showLegend ?
|
|
248
|
-
slicer: [
|
|
249
|
-
source:
|
|
250
|
-
noTitle:
|
|
253
|
+
legend: e.value.showLegend ? nt.value : null,
|
|
254
|
+
slicer: [_.BAR, _.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? it.value : null,
|
|
255
|
+
source: ut.value,
|
|
256
|
+
noTitle: rt.value
|
|
251
257
|
});
|
|
252
258
|
requestAnimationFrame(() => {
|
|
253
|
-
b.value.width =
|
|
259
|
+
b.value.width = c, b.value.height = t;
|
|
254
260
|
});
|
|
255
261
|
});
|
|
256
|
-
ne.value && (pe.value && ne.value.unobserve(pe.value), ne.value.disconnect()), ne.value = new ResizeObserver(
|
|
262
|
+
ne.value && (pe.value && ne.value.unobserve(pe.value), ne.value.disconnect()), ne.value = new ResizeObserver(a), pe.value = R.value.parentNode, ne.value.observe(pe.value);
|
|
257
263
|
}
|
|
258
|
-
|
|
264
|
+
Lt();
|
|
259
265
|
}
|
|
260
|
-
|
|
266
|
+
It(() => {
|
|
261
267
|
ne.value && (pe.value && ne.value.unobserve(pe.value), ne.value.disconnect());
|
|
262
268
|
});
|
|
263
|
-
const
|
|
269
|
+
const Wt = N(() => {
|
|
264
270
|
switch ($.value) {
|
|
265
|
-
case
|
|
271
|
+
case _.LINE:
|
|
266
272
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
267
|
-
case
|
|
273
|
+
case _.BAR:
|
|
268
274
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
269
|
-
case
|
|
275
|
+
case _.DONUT:
|
|
270
276
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
271
277
|
default:
|
|
272
278
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
273
279
|
}
|
|
274
280
|
});
|
|
275
|
-
function
|
|
276
|
-
return [...
|
|
281
|
+
function yt(a) {
|
|
282
|
+
return [...a].map((c) => c.value).reduce((c, t) => c + t, 0);
|
|
277
283
|
}
|
|
278
|
-
function
|
|
279
|
-
return e.value.blurOnHover && ![null, void 0].includes(
|
|
284
|
+
function _e(a) {
|
|
285
|
+
return e.value.blurOnHover && ![null, void 0].includes(Y.value) && Y.value !== a ? `url(#blur_${oe.value})` : "";
|
|
280
286
|
}
|
|
281
|
-
function
|
|
282
|
-
|
|
287
|
+
function kt(a, c) {
|
|
288
|
+
A.value.includes(a) ? A.value = A.value.filter((t) => t !== a) : A.value.length < c && A.value.push(a);
|
|
283
289
|
}
|
|
284
|
-
const
|
|
285
|
-
function
|
|
286
|
-
|
|
287
|
-
let t =
|
|
288
|
-
const i =
|
|
289
|
-
if (
|
|
290
|
+
const bt = w(null), St = w(null), De = w(!1);
|
|
291
|
+
function jt(a, c) {
|
|
292
|
+
De.value = !0;
|
|
293
|
+
let t = a.value;
|
|
294
|
+
const i = Le.value.dataset.find((u, x) => a.id === `donut_${x}`).VALUE;
|
|
295
|
+
if (A.value.includes(a.id)) {
|
|
290
296
|
let u = function() {
|
|
291
|
-
t > i ? (
|
|
297
|
+
t > i ? (De.value = !1, cancelAnimationFrame(St.value), k.value = {
|
|
292
298
|
...k.value,
|
|
293
|
-
dataset: k.value.dataset.map((x,
|
|
299
|
+
dataset: k.value.dataset.map((x, L) => a.id === `donut_${L}` ? {
|
|
294
300
|
...x,
|
|
295
301
|
value: i,
|
|
296
302
|
VALUE: i
|
|
297
303
|
} : x)
|
|
298
304
|
}) : (t += i * 0.025, k.value = {
|
|
299
305
|
...k.value,
|
|
300
|
-
dataset: k.value.dataset.map((x,
|
|
306
|
+
dataset: k.value.dataset.map((x, L) => a.id === `donut_${L}` ? {
|
|
301
307
|
...x,
|
|
302
308
|
value: t,
|
|
303
309
|
VALUE: t
|
|
304
310
|
} : x)
|
|
305
|
-
},
|
|
311
|
+
}, St.value = requestAnimationFrame(u));
|
|
306
312
|
};
|
|
307
|
-
|
|
308
|
-
} else if (
|
|
313
|
+
A.value = A.value.filter((x) => x !== a.id), u();
|
|
314
|
+
} else if (c.length > 1) {
|
|
309
315
|
let u = function() {
|
|
310
|
-
t < i / 100 ? (
|
|
316
|
+
t < i / 100 ? (De.value = !1, cancelAnimationFrame(bt.value), A.value.push(a.id), k.value = {
|
|
311
317
|
...k.value,
|
|
312
|
-
dataset: k.value.dataset.map((x,
|
|
318
|
+
dataset: k.value.dataset.map((x, L) => a.id === `donut_${L}` ? {
|
|
313
319
|
...x,
|
|
314
320
|
value: 0,
|
|
315
321
|
VALUE: 0
|
|
316
322
|
} : x)
|
|
317
323
|
}) : (t /= 1.1, k.value = {
|
|
318
324
|
...k.value,
|
|
319
|
-
dataset: k.value.dataset.map((x,
|
|
325
|
+
dataset: k.value.dataset.map((x, L) => a.id === `donut_${L}` ? {
|
|
320
326
|
...x,
|
|
321
327
|
value: t,
|
|
322
328
|
VALUE: t
|
|
323
329
|
} : x)
|
|
324
|
-
},
|
|
330
|
+
}, bt.value = requestAnimationFrame(u));
|
|
325
331
|
};
|
|
326
332
|
u();
|
|
327
333
|
}
|
|
328
334
|
}
|
|
329
|
-
const J =
|
|
330
|
-
function
|
|
331
|
-
J.value =
|
|
335
|
+
const J = w(null);
|
|
336
|
+
function Xt(a) {
|
|
337
|
+
J.value = a;
|
|
332
338
|
}
|
|
333
|
-
const
|
|
334
|
-
if ($.value !==
|
|
335
|
-
const
|
|
339
|
+
const wt = N(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), T = N(() => {
|
|
340
|
+
if ($.value !== _.DONUT) return null;
|
|
341
|
+
const a = k.value.dataset.map((f, C) => ({
|
|
336
342
|
...f,
|
|
337
343
|
value: f.VALUE || f.DATA || f.SERIE || f.VALUES || f.NUM || 0,
|
|
338
344
|
name: f.NAME || f.DESCRIPTION || f.TITLE || f.LABEL || `Serie ${C}`,
|
|
339
345
|
id: `donut_${C}`
|
|
340
346
|
})).map((f, C) => ({
|
|
341
347
|
...f,
|
|
342
|
-
color: f.COLOR ?
|
|
348
|
+
color: f.COLOR ? tt(f.COLOR) : Ae.value[C + e.value.paletteStartIndex] || X[C + e.value.paletteStartIndex] || X[(C + e.value.paletteStartIndex) % X.length],
|
|
343
349
|
immutableValue: f.value
|
|
344
350
|
}));
|
|
345
|
-
function
|
|
351
|
+
function c(f, C) {
|
|
346
352
|
return W({
|
|
347
|
-
v: isNaN(f.value /
|
|
353
|
+
v: isNaN(f.value / yt(C)) ? 0 : f.value / yt(C) * 100,
|
|
348
354
|
s: "%",
|
|
349
355
|
r: e.value.dataLabelRoundingPercentage
|
|
350
356
|
});
|
|
@@ -353,22 +359,22 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
353
359
|
return f.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
354
360
|
}
|
|
355
361
|
function i(f, C) {
|
|
356
|
-
const v =
|
|
362
|
+
const v = Le.value.dataset.find((y, E) => `donut_${E}` === f).VALUE;
|
|
357
363
|
return Math.abs(String(Number(v.toFixed(0))).length - String(Number(C.toFixed(0))).length);
|
|
358
364
|
}
|
|
359
365
|
function u({ datapoint: f, seriesIndex: C }) {
|
|
360
|
-
|
|
366
|
+
we.value = { datapoint: f, seriesIndex: C, config: e.value, dataset: a }, Y.value = f.id;
|
|
361
367
|
const v = e.value.tooltipCustomFormat;
|
|
362
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: C }),
|
|
368
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: C }), je(v) && lt(() => v({
|
|
363
369
|
datapoint: f,
|
|
364
370
|
seriesIndex: C,
|
|
365
|
-
series:
|
|
371
|
+
series: a,
|
|
366
372
|
config: e.value
|
|
367
373
|
})))
|
|
368
374
|
se.value = v({
|
|
369
375
|
datapoint: f,
|
|
370
376
|
seriesIndex: C,
|
|
371
|
-
series:
|
|
377
|
+
series: a,
|
|
372
378
|
config: e.value
|
|
373
379
|
});
|
|
374
380
|
else {
|
|
@@ -388,36 +394,36 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
388
394
|
re.value = !0;
|
|
389
395
|
}
|
|
390
396
|
function x({ datapoint: f, seriesIndex: C }) {
|
|
391
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: C }), re.value = !1,
|
|
397
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: C }), re.value = !1, Y.value = null, J.value = null;
|
|
392
398
|
}
|
|
393
|
-
function
|
|
399
|
+
function L({ datapoint: f, seriesIndex: C }) {
|
|
394
400
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex: C }), ge("selectDatapoint", f);
|
|
395
401
|
}
|
|
396
402
|
const ie = {
|
|
397
403
|
centerX: b.value.width / 2,
|
|
398
404
|
centerY: b.value.height / 2
|
|
399
|
-
}, j =
|
|
405
|
+
}, j = a.filter((f) => !A.value.includes(f.id)).map((f) => f.value || 0).reduce((f, C) => f + C, 0), ye = a.map((f, C) => ({
|
|
400
406
|
...f,
|
|
401
407
|
proportion: (f.value || 0) / j,
|
|
402
408
|
value: f.value || 0,
|
|
403
|
-
absoluteValue:
|
|
409
|
+
absoluteValue: Le.value.dataset.find((v, n) => `donut_${n}` === f.id).VALUE
|
|
404
410
|
})), ve = b.value.width / 2, ue = b.value.height / 2, Q = b.value.height * e.value.donutRadiusRatio;
|
|
405
411
|
return {
|
|
406
|
-
dataset:
|
|
407
|
-
legend:
|
|
412
|
+
dataset: ye.filter((f) => !A.value.includes(f.id)),
|
|
413
|
+
legend: ye,
|
|
408
414
|
drawingArea: ie,
|
|
409
|
-
displayArcPercentage:
|
|
415
|
+
displayArcPercentage: c,
|
|
410
416
|
isArcBigEnough: t,
|
|
411
417
|
useTooltip: u,
|
|
412
418
|
killTooltip: x,
|
|
413
|
-
selectDatapoint:
|
|
419
|
+
selectDatapoint: L,
|
|
414
420
|
getSpaces: i,
|
|
415
421
|
total: j,
|
|
416
422
|
cx: ve,
|
|
417
423
|
cy: ue,
|
|
418
424
|
radius: Q,
|
|
419
|
-
chart:
|
|
420
|
-
{ series:
|
|
425
|
+
chart: fa(
|
|
426
|
+
{ series: a.filter((f) => !A.value.includes(f.id)) },
|
|
421
427
|
ve,
|
|
422
428
|
ue,
|
|
423
429
|
Q,
|
|
@@ -427,87 +433,87 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
427
433
|
1,
|
|
428
434
|
360,
|
|
429
435
|
105.25,
|
|
430
|
-
b.value.height *
|
|
436
|
+
b.value.height * wt.value
|
|
431
437
|
)
|
|
432
438
|
};
|
|
433
|
-
}), m =
|
|
439
|
+
}), m = w({
|
|
434
440
|
start: 0,
|
|
435
441
|
end: k.value.maxSeriesLength
|
|
436
442
|
});
|
|
437
|
-
function
|
|
438
|
-
|
|
443
|
+
function Gt() {
|
|
444
|
+
Lt();
|
|
439
445
|
}
|
|
440
|
-
const
|
|
441
|
-
async function
|
|
442
|
-
await
|
|
443
|
-
const { zoomStartIndex:
|
|
444
|
-
(
|
|
446
|
+
const At = w(null);
|
|
447
|
+
async function Lt() {
|
|
448
|
+
await Et(), await Et();
|
|
449
|
+
const { zoomStartIndex: a, zoomEndIndex: c } = e.value, t = At.value;
|
|
450
|
+
(a != null || c != null) && t ? (a != null && t.setStartValue(a), c != null && t.setEndValue(Yt(c + 1))) : (m.value = {
|
|
445
451
|
start: 0,
|
|
446
452
|
end: k.value.maxSeriesLength
|
|
447
|
-
},
|
|
453
|
+
}, Oe.value += 1);
|
|
448
454
|
}
|
|
449
|
-
function
|
|
450
|
-
const
|
|
451
|
-
return
|
|
455
|
+
function Yt(a) {
|
|
456
|
+
const c = k.value.maxSeriesLength;
|
|
457
|
+
return a > c ? c : a < 0 || e.value.zoomStartIndex !== null && a < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : a;
|
|
452
458
|
}
|
|
453
|
-
const
|
|
454
|
-
if (!e.value.zoomMinimap.show || $.value ===
|
|
455
|
-
let
|
|
456
|
-
ae(k.value.dataset) && (
|
|
459
|
+
const Zt = N(() => {
|
|
460
|
+
if (!e.value.zoomMinimap.show || $.value === _.DONUT) return [];
|
|
461
|
+
let a = [];
|
|
462
|
+
ae(k.value.dataset) && (a = k.value.dataset), Xe(k.value.dataset) && (a = k.value.dataset.map((u, x) => ({
|
|
457
463
|
values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
|
|
458
|
-
id: $.value ===
|
|
459
|
-
})).filter((u) => !
|
|
460
|
-
const
|
|
464
|
+
id: $.value === _.LINE ? `line_${x}` : `bar_${x}`
|
|
465
|
+
})).filter((u) => !A.value.includes(u.id)));
|
|
466
|
+
const c = ae(a) ? a.length : Math.max(...a.map((u) => u.values.length));
|
|
461
467
|
let t = [];
|
|
462
|
-
if (ae(
|
|
463
|
-
t =
|
|
468
|
+
if (ae(a))
|
|
469
|
+
t = a;
|
|
464
470
|
else
|
|
465
|
-
for (let u = 0; u <
|
|
466
|
-
t.push(
|
|
471
|
+
for (let u = 0; u < c; u += 1)
|
|
472
|
+
t.push(a.map((x) => x.values[u] || 0).reduce((x, L) => (x || 0) + (L || 0), 0));
|
|
467
473
|
const i = Math.min(...t);
|
|
468
474
|
return t.map((u) => u + (i < 0 ? Math.abs(i) : 0));
|
|
469
475
|
});
|
|
470
|
-
function
|
|
471
|
-
let
|
|
472
|
-
return
|
|
476
|
+
function _t() {
|
|
477
|
+
let a = 0;
|
|
478
|
+
return Re.value && (a = Array.from(Re.value.querySelectorAll("text")).reduce((i, u) => {
|
|
473
479
|
const x = u.getComputedTextLength();
|
|
474
480
|
return x > i ? x : i;
|
|
475
|
-
}, 0)),
|
|
481
|
+
}, 0)), a + 4;
|
|
476
482
|
}
|
|
477
|
-
const
|
|
478
|
-
|
|
483
|
+
const Je = w(0), Jt = Rt((a) => {
|
|
484
|
+
Je.value = a;
|
|
479
485
|
}, 100);
|
|
480
|
-
|
|
481
|
-
const
|
|
482
|
-
if (!
|
|
486
|
+
la((a) => {
|
|
487
|
+
const c = Z.value;
|
|
488
|
+
if (!c) return;
|
|
483
489
|
const t = new ResizeObserver((i) => {
|
|
484
|
-
|
|
490
|
+
Jt(i[0].contentRect.height);
|
|
485
491
|
});
|
|
486
|
-
t.observe(
|
|
487
|
-
}),
|
|
488
|
-
|
|
492
|
+
t.observe(c), a(() => t.disconnect());
|
|
493
|
+
}), It(() => {
|
|
494
|
+
Je.value = 0;
|
|
489
495
|
});
|
|
490
|
-
const
|
|
491
|
-
let
|
|
492
|
-
return Z.value && (
|
|
493
|
-
}), d =
|
|
494
|
-
if ($.value !==
|
|
495
|
-
const
|
|
496
|
+
const Ue = N(() => {
|
|
497
|
+
let a = 0, c = 0;
|
|
498
|
+
return Z.value && (c = Je.value), a + c;
|
|
499
|
+
}), d = N(() => {
|
|
500
|
+
if ($.value !== _.LINE) return null;
|
|
501
|
+
const a = {
|
|
496
502
|
height: b.value.height,
|
|
497
503
|
width: b.value.width
|
|
498
504
|
};
|
|
499
|
-
let
|
|
505
|
+
let c = _t();
|
|
500
506
|
if (Z.value) {
|
|
501
507
|
const v = Z.value.getBBox().x;
|
|
502
|
-
v < 0 && (
|
|
508
|
+
v < 0 && (c += Math.abs(v));
|
|
503
509
|
}
|
|
504
510
|
const t = {
|
|
505
|
-
left:
|
|
511
|
+
left: c + e.value.xyPaddingLeft,
|
|
506
512
|
top: e.value.xyPaddingTop,
|
|
507
|
-
right:
|
|
508
|
-
bottom:
|
|
509
|
-
width: Math.max(10,
|
|
510
|
-
height: Math.max(10,
|
|
513
|
+
right: a.width - e.value.xyPaddingRight,
|
|
514
|
+
bottom: a.height - e.value.xyPaddingBottom - Ue.value,
|
|
515
|
+
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - c),
|
|
516
|
+
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ue.value)
|
|
511
517
|
};
|
|
512
518
|
let i = [];
|
|
513
519
|
ae(k.value.dataset) && (i = [
|
|
@@ -515,33 +521,33 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
515
521
|
values: k.value.dataset.slice(m.value.start, m.value.end),
|
|
516
522
|
absoluteIndices: k.value.dataset.map((v, n) => n).slice(m.value.start, m.value.end),
|
|
517
523
|
name: e.value.title,
|
|
518
|
-
color:
|
|
524
|
+
color: Ae.value[e.value.paletteStartIndex] || X[e.value.paletteStartIndex],
|
|
519
525
|
id: "line_0"
|
|
520
526
|
}
|
|
521
|
-
]),
|
|
527
|
+
]), Xe(k.value.dataset) && (i = k.value.dataset.map((v, n) => ({
|
|
522
528
|
...v,
|
|
523
529
|
values: v.VALUE || v.DATA || v.SERIE || v.SERIES || v.VALUES || v.NUM || 0,
|
|
524
530
|
name: v.NAME || v.DESCRIPTION || v.TITLE || v.LABEL || `Serie ${n}`,
|
|
525
531
|
id: `line_${n}`
|
|
526
532
|
})).map((v, n) => ({
|
|
527
533
|
...v,
|
|
528
|
-
color: v.COLOR ?
|
|
534
|
+
color: v.COLOR ? tt(v.COLOR) : Ae.value[n + e.value.paletteStartIndex] || X[n + e.value.paletteStartIndex] || X[(n + e.value.paletteStartIndex) % X.length],
|
|
529
535
|
values: v.values.slice(m.value.start, m.value.end),
|
|
530
536
|
absoluteIndices: v.values.map((y, E) => E).slice(m.value.start, m.value.end)
|
|
531
537
|
})));
|
|
532
538
|
const u = {
|
|
533
|
-
max: Math.max(...i.filter((v) => !
|
|
534
|
-
min: Math.min(...i.filter((v) => !
|
|
539
|
+
max: Math.max(...i.filter((v) => !A.value.includes(v.id)).flatMap((v) => v.values)),
|
|
540
|
+
min: Math.min(...i.filter((v) => !A.value.includes(v.id)).flatMap((v) => v.values)),
|
|
535
541
|
maxSeries: Math.max(...i.map((v) => v.values.length))
|
|
536
|
-
}, x =
|
|
537
|
-
y: t.bottom - t.height * ((v +
|
|
542
|
+
}, x = Tt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), L = u.min < 0 ? Math.abs(u.min) : 0, ie = u.max < 0 ? t.top : t.bottom - L / (x.max + L) * t.height, j = t.width / u.maxSeries, ye = x.ticks.map((v) => ({
|
|
543
|
+
y: t.bottom - t.height * ((v + L) / (x.max + L)),
|
|
538
544
|
x: t.left - 8,
|
|
539
545
|
value: v
|
|
540
546
|
})), ve = i.map((v, n) => ({
|
|
541
547
|
...v,
|
|
542
548
|
coordinates: v.values.map((y, E) => ({
|
|
543
549
|
x: t.left + j * (E + 1) - j / 2,
|
|
544
|
-
y: t.bottom - (y +
|
|
550
|
+
y: t.bottom - (y + L) / (x.max + L) * t.height,
|
|
545
551
|
value: y
|
|
546
552
|
}))
|
|
547
553
|
})).map((v) => {
|
|
@@ -558,14 +564,14 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
558
564
|
...n,
|
|
559
565
|
value: n.values[v],
|
|
560
566
|
absoluteIndex: n.absoluteIndices[v]
|
|
561
|
-
})).filter((n) => !
|
|
567
|
+
})).filter((n) => !A.value.includes(n.id));
|
|
562
568
|
}
|
|
563
569
|
function Q(v) {
|
|
564
|
-
|
|
570
|
+
Y.value = v, J.value = v;
|
|
565
571
|
const n = ue(v);
|
|
566
|
-
|
|
572
|
+
we.value = { datapoint: n, seriesIndex: v, config: e.value, dataset: i };
|
|
567
573
|
const y = e.value.tooltipCustomFormat;
|
|
568
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: n, seriesIndex: v + m.value.start }),
|
|
574
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: n, seriesIndex: v + m.value.start }), je(y) && lt(() => y({
|
|
569
575
|
datapoint: n,
|
|
570
576
|
seriesIndex: v,
|
|
571
577
|
series: i,
|
|
@@ -579,7 +585,7 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
579
585
|
});
|
|
580
586
|
else {
|
|
581
587
|
let E = "";
|
|
582
|
-
|
|
588
|
+
G.value[n[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${G.value[n[0].absoluteIndex].text}</div>`), n.forEach((V, q) => {
|
|
583
589
|
E += `
|
|
584
590
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
585
591
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${V.color}"/></svg>
|
|
@@ -604,7 +610,7 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
604
610
|
}
|
|
605
611
|
function f(v) {
|
|
606
612
|
const n = ue(v);
|
|
607
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: n, seriesIndex: v + m.value.start }),
|
|
613
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: n, seriesIndex: v + m.value.start }), Y.value = null, J.value = null, re.value = !1;
|
|
608
614
|
}
|
|
609
615
|
function C(v) {
|
|
610
616
|
const n = ue(v);
|
|
@@ -612,34 +618,34 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
612
618
|
}
|
|
613
619
|
return {
|
|
614
620
|
absoluteZero: ie,
|
|
615
|
-
dataset: ve.filter((v) => !
|
|
621
|
+
dataset: ve.filter((v) => !A.value.includes(v.id)),
|
|
616
622
|
legend: ve,
|
|
617
623
|
drawingArea: t,
|
|
618
624
|
extremes: u,
|
|
619
625
|
slotSize: j,
|
|
620
|
-
yLabels:
|
|
626
|
+
yLabels: ye,
|
|
621
627
|
useTooltip: Q,
|
|
622
628
|
killTooltip: f,
|
|
623
629
|
selectDatapoint: C
|
|
624
630
|
};
|
|
625
|
-
}), s =
|
|
626
|
-
if ($.value !==
|
|
627
|
-
const
|
|
631
|
+
}), s = N(() => {
|
|
632
|
+
if ($.value !== _.BAR) return null;
|
|
633
|
+
const a = {
|
|
628
634
|
height: b.value.height,
|
|
629
635
|
width: b.value.width
|
|
630
636
|
};
|
|
631
|
-
let
|
|
637
|
+
let c = _t();
|
|
632
638
|
if (Z.value) {
|
|
633
639
|
const n = Z.value.getBBox().x;
|
|
634
|
-
n < 0 && (
|
|
640
|
+
n < 0 && (c += Math.abs(n));
|
|
635
641
|
}
|
|
636
642
|
const t = {
|
|
637
|
-
left:
|
|
643
|
+
left: c + e.value.xyPaddingLeft,
|
|
638
644
|
top: e.value.xyPaddingTop,
|
|
639
|
-
right:
|
|
640
|
-
bottom:
|
|
641
|
-
width: Math.max(10,
|
|
642
|
-
height: Math.max(10,
|
|
645
|
+
right: a.width - e.value.xyPaddingRight,
|
|
646
|
+
bottom: a.height - e.value.xyPaddingBottom - Ue.value,
|
|
647
|
+
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - c),
|
|
648
|
+
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ue.value)
|
|
643
649
|
};
|
|
644
650
|
let i = [];
|
|
645
651
|
ae(k.value.dataset) && (i = [
|
|
@@ -647,50 +653,50 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
647
653
|
values: k.value.dataset.slice(m.value.start, m.value.end),
|
|
648
654
|
absoluteIndices: k.value.dataset.map((n, y) => y).slice(m.value.start, m.value.end),
|
|
649
655
|
name: e.value.title,
|
|
650
|
-
color:
|
|
656
|
+
color: Ae.value[e.value.paletteStartIndex] || X[e.value.paletteStartIndex],
|
|
651
657
|
id: "bar_0"
|
|
652
658
|
}
|
|
653
|
-
]),
|
|
659
|
+
]), Xe(k.value.dataset) && (i = k.value.dataset.map((n, y) => ({
|
|
654
660
|
...n,
|
|
655
661
|
values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
|
|
656
662
|
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${y}`,
|
|
657
663
|
id: `bar_${y}`
|
|
658
664
|
})).map((n, y) => ({
|
|
659
665
|
...n,
|
|
660
|
-
color: n.COLOR ?
|
|
666
|
+
color: n.COLOR ? tt(n.COLOR) : Ae.value[y + e.value.paletteStartIndex] || X[y + e.value.paletteStartIndex] || X[(y + e.value.paletteStartIndex) % X.length],
|
|
661
667
|
values: n.values.slice(m.value.start, m.value.end),
|
|
662
668
|
absoluteIndices: n.values.map((E, V) => V).slice(m.value.start, m.value.end)
|
|
663
669
|
})));
|
|
664
670
|
const u = {
|
|
665
|
-
max: Math.max(...i.filter((n) => !
|
|
666
|
-
min: Math.min(...i.filter((n) => !
|
|
667
|
-
maxSeries: Math.max(...i.filter((n) => !
|
|
668
|
-
}, x =
|
|
669
|
-
y: t.bottom - t.height * ((n +
|
|
671
|
+
max: Math.max(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)) < 0 ? 0 : Math.max(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)),
|
|
672
|
+
min: Math.min(...i.filter((n) => !A.value.includes(n.id)).flatMap((n) => n.values)),
|
|
673
|
+
maxSeries: Math.max(...i.filter((n) => !A.value.includes(n.id)).map((n) => n.values.length))
|
|
674
|
+
}, x = Tt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), L = x.min < 0 ? Math.abs(x.min) : 0, ie = t.bottom - L / (x.max + L) * t.height, j = t.width / u.maxSeries, ye = x.ticks.map((n) => ({
|
|
675
|
+
y: t.bottom - t.height * ((n + L) / (x.max + L)),
|
|
670
676
|
x: t.left - 8,
|
|
671
677
|
value: n
|
|
672
678
|
})), ve = i.map((n, y) => ({
|
|
673
679
|
...n,
|
|
674
680
|
coordinates: n.values.map((E, V) => {
|
|
675
|
-
const q = (E +
|
|
681
|
+
const q = (E + L) / (u.max + L) * t.height, ze = Math.abs(E) / Math.abs(u.min) * (t.height - ie), Ke = L / (u.max + L) * t.height, Ce = j / i.filter((de) => !A.value.includes(de.id)).length - e.value.barGap / i.filter((de) => !A.value.includes(de.id)).length;
|
|
676
682
|
return {
|
|
677
|
-
x: t.left + j * V +
|
|
683
|
+
x: t.left + j * V + Ce * y + e.value.barGap / 2,
|
|
678
684
|
y: E > 0 ? t.bottom - q : ie,
|
|
679
|
-
height: E > 0 ? q -
|
|
685
|
+
height: E > 0 ? q - Ke : ze,
|
|
680
686
|
value: E,
|
|
681
|
-
width:
|
|
687
|
+
width: Ce
|
|
682
688
|
};
|
|
683
689
|
})
|
|
684
|
-
})), ue = i.filter((n) => !
|
|
690
|
+
})), ue = i.filter((n) => !A.value.includes(n.id)).map((n, y) => ({
|
|
685
691
|
...n,
|
|
686
692
|
coordinates: n.values.map((E, V) => {
|
|
687
|
-
const q = (E +
|
|
693
|
+
const q = (E + L) / (u.max + L) * t.height, ze = Math.abs(E) / (u.max + L) * t.height, Ke = L / (u.max + L) * t.height, Ce = j / i.filter((de) => !A.value.includes(de.id)).length - e.value.barGap / i.filter((de) => !A.value.includes(de.id)).length;
|
|
688
694
|
return {
|
|
689
|
-
x: t.left + j * V +
|
|
695
|
+
x: t.left + j * V + Ce * y + e.value.barGap / 2,
|
|
690
696
|
y: E > 0 ? t.bottom - q : ie,
|
|
691
|
-
height: E > 0 ? q -
|
|
697
|
+
height: E > 0 ? q - Ke : ze,
|
|
692
698
|
value: E,
|
|
693
|
-
width:
|
|
699
|
+
width: Ce
|
|
694
700
|
};
|
|
695
701
|
})
|
|
696
702
|
}));
|
|
@@ -699,14 +705,14 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
699
705
|
...y,
|
|
700
706
|
value: y.values[n],
|
|
701
707
|
absoluteIndex: y.absoluteIndices[n]
|
|
702
|
-
})).filter((y) => !
|
|
708
|
+
})).filter((y) => !A.value.includes(y.id));
|
|
703
709
|
}
|
|
704
710
|
function f(n) {
|
|
705
|
-
|
|
711
|
+
Y.value = n, J.value = n;
|
|
706
712
|
const y = Q(n);
|
|
707
|
-
|
|
713
|
+
we.value = { datapoint: y, seriesIndex: n, config: e.value, dataset: i };
|
|
708
714
|
const E = e.value.tooltipCustomFormat;
|
|
709
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: y, seriesIndex: n + m.value.start }),
|
|
715
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: y, seriesIndex: n + m.value.start }), je(E) && lt(() => E({
|
|
710
716
|
datapoint: y,
|
|
711
717
|
seriesIndex: n,
|
|
712
718
|
series: i,
|
|
@@ -720,7 +726,7 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
720
726
|
});
|
|
721
727
|
else {
|
|
722
728
|
let V = "";
|
|
723
|
-
|
|
729
|
+
G.value[y[0].absoluteIndex] && (V += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${G.value[y[0].absoluteIndex].text}</div>`), y.forEach((q, ze) => {
|
|
724
730
|
V += `
|
|
725
731
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
726
732
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${q.color}"/></svg>
|
|
@@ -734,7 +740,7 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
734
740
|
s: e.value.valueSuffix,
|
|
735
741
|
r: e.value.dataLabelRoundingValue
|
|
736
742
|
}),
|
|
737
|
-
{ datapoint: q, seriesIndex:
|
|
743
|
+
{ datapoint: q, seriesIndex: ze }
|
|
738
744
|
)}
|
|
739
745
|
</b>
|
|
740
746
|
</div>
|
|
@@ -745,7 +751,7 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
745
751
|
}
|
|
746
752
|
function C(n) {
|
|
747
753
|
const y = Q(n);
|
|
748
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: y, seriesIndex: n + m.value.start }), re.value = !1,
|
|
754
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: y, seriesIndex: n + m.value.start }), re.value = !1, Y.value = null, J.value = null;
|
|
749
755
|
}
|
|
750
756
|
function v(n) {
|
|
751
757
|
const y = Q(n);
|
|
@@ -753,95 +759,98 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
753
759
|
}
|
|
754
760
|
return {
|
|
755
761
|
absoluteZero: ie,
|
|
756
|
-
dataset: ue.filter((n) => !
|
|
762
|
+
dataset: ue.filter((n) => !A.value.includes(n.id)),
|
|
757
763
|
legend: ve,
|
|
758
764
|
drawingArea: t,
|
|
759
765
|
extremes: u,
|
|
760
766
|
slotSize: j,
|
|
761
|
-
yLabels:
|
|
767
|
+
yLabels: ye,
|
|
762
768
|
useTooltip: f,
|
|
763
769
|
killTooltip: C,
|
|
764
770
|
selectDatapoint: v
|
|
765
771
|
};
|
|
766
|
-
}),
|
|
772
|
+
}), G = N(() => ya({
|
|
767
773
|
values: e.value.xyPeriods,
|
|
768
774
|
maxDatapoints: k.value.maxSeriesLength,
|
|
769
775
|
formatter: e.value.datetimeFormatter,
|
|
770
776
|
start: m.value.start,
|
|
771
777
|
end: m.value.end
|
|
772
|
-
})),
|
|
773
|
-
|
|
774
|
-
|
|
778
|
+
})), xe = N(() => {
|
|
779
|
+
const a = e.value.xyPeriodsModulo;
|
|
780
|
+
return e.value.xyPeriods.length ? Math.min(a, [...new Set(G.value.map((c) => c.text))].length) : a;
|
|
781
|
+
}), Ve = w(!1);
|
|
782
|
+
function zt(a) {
|
|
783
|
+
Ve.value = a, st.value += 1;
|
|
775
784
|
}
|
|
776
|
-
function
|
|
785
|
+
function Ct() {
|
|
777
786
|
me.value.showTooltip = !me.value.showTooltip;
|
|
778
787
|
}
|
|
779
|
-
const
|
|
780
|
-
function
|
|
781
|
-
|
|
788
|
+
const He = w(!1);
|
|
789
|
+
function Qe() {
|
|
790
|
+
He.value = !He.value;
|
|
782
791
|
}
|
|
783
|
-
async function
|
|
784
|
-
if (!
|
|
785
|
-
const { width:
|
|
792
|
+
async function Qt({ scale: a = 2 } = {}) {
|
|
793
|
+
if (!R.value) return;
|
|
794
|
+
const { width: c, height: t } = R.value.getBoundingClientRect(), i = c / t, { imageUri: u, base64: x } = await Sa({ domElement: R.value, base64: !0, img: !0, scale: a });
|
|
786
795
|
return {
|
|
787
796
|
imageUri: u,
|
|
788
797
|
base64: x,
|
|
789
798
|
title: e.value.title,
|
|
790
|
-
width:
|
|
799
|
+
width: c,
|
|
791
800
|
height: t,
|
|
792
801
|
aspectRatio: i
|
|
793
802
|
};
|
|
794
803
|
}
|
|
795
|
-
const
|
|
796
|
-
return
|
|
804
|
+
const Kt = N(() => b.value.width), ea = N(() => b.value.height);
|
|
805
|
+
return ba({
|
|
797
806
|
timeLabelsEls: Z,
|
|
798
|
-
timeLabels:
|
|
807
|
+
timeLabels: G,
|
|
799
808
|
slicer: m,
|
|
800
809
|
configRef: e,
|
|
801
810
|
rotationPath: ["xyPeriodLabelsRotation"],
|
|
802
811
|
autoRotatePath: ["xyPeriodLabelsAutoRotate"],
|
|
803
812
|
isAutoSize: !1,
|
|
804
|
-
height:
|
|
805
|
-
width:
|
|
806
|
-
}),
|
|
807
|
-
getImage:
|
|
808
|
-
generatePdf:
|
|
809
|
-
generateImage:
|
|
810
|
-
toggleTooltip:
|
|
811
|
-
toggleAnnotator:
|
|
812
|
-
toggleFullscreen:
|
|
813
|
-
}), (
|
|
813
|
+
height: ea.value,
|
|
814
|
+
width: Kt.value
|
|
815
|
+
}), P({
|
|
816
|
+
getImage: Qt,
|
|
817
|
+
generatePdf: mt,
|
|
818
|
+
generateImage: pt,
|
|
819
|
+
toggleTooltip: Ct,
|
|
820
|
+
toggleAnnotator: Qe,
|
|
821
|
+
toggleFullscreen: zt
|
|
822
|
+
}), (a, c) => Ht.value ? (l(), o("div", {
|
|
814
823
|
key: 0,
|
|
815
824
|
id: `${$.value}_${oe.value}`,
|
|
816
825
|
ref_key: "quickChart",
|
|
817
|
-
ref:
|
|
818
|
-
class: ce({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen":
|
|
826
|
+
ref: R,
|
|
827
|
+
class: ce({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Ve.value }),
|
|
819
828
|
style: O(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
820
|
-
onMouseenter:
|
|
821
|
-
onMouseleave:
|
|
829
|
+
onMouseenter: c[2] || (c[2] = () => gt(!0)),
|
|
830
|
+
onMouseleave: c[3] || (c[3] = () => gt(!1))
|
|
822
831
|
}, [
|
|
823
|
-
e.value.userOptionsButtons.annotator ? (
|
|
832
|
+
e.value.userOptionsButtons.annotator ? (l(), qe(r(le), {
|
|
824
833
|
key: 0,
|
|
825
|
-
svgRef: r(
|
|
834
|
+
svgRef: r(ht),
|
|
826
835
|
backgroundColor: e.value.backgroundColor,
|
|
827
836
|
color: e.value.color,
|
|
828
|
-
active:
|
|
829
|
-
onClose:
|
|
837
|
+
active: He.value,
|
|
838
|
+
onClose: Qe
|
|
830
839
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
831
|
-
|
|
840
|
+
qt.value ? (l(), o("div", {
|
|
832
841
|
key: 1,
|
|
833
842
|
ref_key: "noTitle",
|
|
834
|
-
ref:
|
|
843
|
+
ref: rt,
|
|
835
844
|
class: "vue-data-ui-no-title-space",
|
|
836
845
|
style: "height:36px; width: 100%;background:transparent"
|
|
837
846
|
}, null, 512)) : g("", !0),
|
|
838
|
-
e.value.showUserOptions && (
|
|
847
|
+
e.value.showUserOptions && (ft.value || Fe.value) ? (l(), qe(r(ot), {
|
|
839
848
|
ref: "details",
|
|
840
|
-
key: `user_option_${
|
|
849
|
+
key: `user_option_${st.value}`,
|
|
841
850
|
backgroundColor: e.value.backgroundColor,
|
|
842
851
|
color: e.value.color,
|
|
843
|
-
isPrinting: r(
|
|
844
|
-
isImaging: r(
|
|
852
|
+
isPrinting: r(Ne),
|
|
853
|
+
isImaging: r(Be),
|
|
845
854
|
uid: oe.value,
|
|
846
855
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
847
856
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
@@ -849,83 +858,83 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
849
858
|
hasFullscreen: e.value.userOptionsButtons.fullscreen,
|
|
850
859
|
hasXls: !1,
|
|
851
860
|
isTooltip: me.value.showTooltip,
|
|
852
|
-
isFullscreen:
|
|
861
|
+
isFullscreen: Ve.value,
|
|
853
862
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
854
|
-
chartElement:
|
|
863
|
+
chartElement: R.value,
|
|
855
864
|
position: e.value.userOptionsPosition,
|
|
856
865
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
857
|
-
isAnnotation:
|
|
866
|
+
isAnnotation: He.value,
|
|
858
867
|
callbacks: e.value.userOptionsCallbacks,
|
|
859
868
|
printScale: e.value.userOptionsPrint.scale,
|
|
860
|
-
onToggleFullscreen:
|
|
861
|
-
onGeneratePdf: r(
|
|
862
|
-
onGenerateImage: r(
|
|
863
|
-
onToggleTooltip:
|
|
864
|
-
onToggleAnnotator:
|
|
869
|
+
onToggleFullscreen: zt,
|
|
870
|
+
onGeneratePdf: r(mt),
|
|
871
|
+
onGenerateImage: r(pt),
|
|
872
|
+
onToggleTooltip: Ct,
|
|
873
|
+
onToggleAnnotator: Qe,
|
|
865
874
|
style: O({
|
|
866
|
-
visibility:
|
|
875
|
+
visibility: ft.value ? Fe.value ? "visible" : "hidden" : "visible"
|
|
867
876
|
})
|
|
868
|
-
},
|
|
869
|
-
|
|
877
|
+
}, oa({ _: 2 }, [
|
|
878
|
+
a.$slots.menuIcon ? {
|
|
870
879
|
name: "menuIcon",
|
|
871
880
|
fn: K(({ isOpen: t, color: i }) => [
|
|
872
|
-
U(
|
|
881
|
+
U(a.$slots, "menuIcon", he(fe({ isOpen: t, color: i })), void 0, !0)
|
|
873
882
|
]),
|
|
874
883
|
key: "0"
|
|
875
884
|
} : void 0,
|
|
876
|
-
|
|
885
|
+
a.$slots.optionTooltip ? {
|
|
877
886
|
name: "optionTooltip",
|
|
878
887
|
fn: K(() => [
|
|
879
|
-
U(
|
|
888
|
+
U(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
880
889
|
]),
|
|
881
890
|
key: "1"
|
|
882
891
|
} : void 0,
|
|
883
|
-
|
|
892
|
+
a.$slots.optionPdf ? {
|
|
884
893
|
name: "optionPdf",
|
|
885
894
|
fn: K(() => [
|
|
886
|
-
U(
|
|
895
|
+
U(a.$slots, "optionPdf", {}, void 0, !0)
|
|
887
896
|
]),
|
|
888
897
|
key: "2"
|
|
889
898
|
} : void 0,
|
|
890
|
-
|
|
899
|
+
a.$slots.optionImg ? {
|
|
891
900
|
name: "optionImg",
|
|
892
901
|
fn: K(() => [
|
|
893
|
-
U(
|
|
902
|
+
U(a.$slots, "optionImg", {}, void 0, !0)
|
|
894
903
|
]),
|
|
895
904
|
key: "3"
|
|
896
905
|
} : void 0,
|
|
897
|
-
|
|
906
|
+
a.$slots.optionFullscreen ? {
|
|
898
907
|
name: "optionFullscreen",
|
|
899
908
|
fn: K(({ toggleFullscreen: t, isFullscreen: i }) => [
|
|
900
|
-
U(
|
|
909
|
+
U(a.$slots, "optionFullscreen", he(fe({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
|
|
901
910
|
]),
|
|
902
911
|
key: "4"
|
|
903
912
|
} : void 0,
|
|
904
|
-
|
|
913
|
+
a.$slots.optionAnnotator ? {
|
|
905
914
|
name: "optionAnnotator",
|
|
906
915
|
fn: K(({ toggleAnnotator: t, isAnnotator: i }) => [
|
|
907
|
-
U(
|
|
916
|
+
U(a.$slots, "optionAnnotator", he(fe({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
|
|
908
917
|
]),
|
|
909
918
|
key: "5"
|
|
910
919
|
} : void 0
|
|
911
920
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
912
|
-
e.value.title ? (
|
|
921
|
+
e.value.title ? (l(), o("div", {
|
|
913
922
|
key: 3,
|
|
914
923
|
ref_key: "quickChartTitle",
|
|
915
924
|
ref: Pe,
|
|
916
925
|
class: "vue-ui-quick-chart-title",
|
|
917
926
|
style: O(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
918
927
|
}, F(e.value.title), 5)) : g("", !0),
|
|
919
|
-
$.value ? (
|
|
928
|
+
$.value ? (l(), o("svg", {
|
|
920
929
|
key: 4,
|
|
921
930
|
ref_key: "svgRef",
|
|
922
|
-
ref:
|
|
923
|
-
xmlns: r(
|
|
924
|
-
viewBox:
|
|
931
|
+
ref: ht,
|
|
932
|
+
xmlns: r(ga),
|
|
933
|
+
viewBox: Wt.value,
|
|
925
934
|
style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
926
935
|
}, [
|
|
927
|
-
|
|
928
|
-
|
|
936
|
+
ke(r(H)),
|
|
937
|
+
a.$slots["chart-background"] && $.value === _.BAR ? (l(), o("foreignObject", {
|
|
929
938
|
key: 0,
|
|
930
939
|
x: s.value.drawingArea.left,
|
|
931
940
|
y: s.value.drawingArea.top,
|
|
@@ -935,9 +944,9 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
935
944
|
pointerEvents: "none"
|
|
936
945
|
}
|
|
937
946
|
}, [
|
|
938
|
-
U(
|
|
939
|
-
], 8,
|
|
940
|
-
|
|
947
|
+
U(a.$slots, "chart-background", {}, void 0, !0)
|
|
948
|
+
], 8, Ra)) : g("", !0),
|
|
949
|
+
a.$slots["chart-background"] && $.value === _.LINE ? (l(), o("foreignObject", {
|
|
941
950
|
key: 1,
|
|
942
951
|
x: d.value.drawingArea.left,
|
|
943
952
|
y: d.value.drawingArea.top,
|
|
@@ -947,9 +956,9 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
947
956
|
pointerEvents: "none"
|
|
948
957
|
}
|
|
949
958
|
}, [
|
|
950
|
-
U(
|
|
951
|
-
], 8,
|
|
952
|
-
|
|
959
|
+
U(a.$slots, "chart-background", {}, void 0, !0)
|
|
960
|
+
], 8, Ma)) : g("", !0),
|
|
961
|
+
a.$slots["chart-background"] && $.value === _.DONUT ? (l(), o("foreignObject", {
|
|
953
962
|
key: 2,
|
|
954
963
|
x: 0,
|
|
955
964
|
y: 0,
|
|
@@ -959,98 +968,98 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
959
968
|
pointerEvents: "none"
|
|
960
969
|
}
|
|
961
970
|
}, [
|
|
962
|
-
U(
|
|
963
|
-
], 8,
|
|
964
|
-
|
|
965
|
-
|
|
971
|
+
U(a.$slots, "chart-background", {}, void 0, !0)
|
|
972
|
+
], 8, Fa)) : g("", !0),
|
|
973
|
+
z("defs", null, [
|
|
974
|
+
z("filter", {
|
|
966
975
|
id: `blur_${oe.value}`,
|
|
967
976
|
x: "-50%",
|
|
968
977
|
y: "-50%",
|
|
969
978
|
width: "200%",
|
|
970
979
|
height: "200%"
|
|
971
980
|
}, [
|
|
972
|
-
|
|
981
|
+
z("feGaussianBlur", {
|
|
973
982
|
in: "SourceGraphic",
|
|
974
983
|
stdDeviation: 2,
|
|
975
984
|
id: `blur_std_${oe.value}`
|
|
976
|
-
}, null, 8,
|
|
977
|
-
|
|
985
|
+
}, null, 8, Ba),
|
|
986
|
+
c[4] || (c[4] = z("feColorMatrix", {
|
|
978
987
|
type: "saturate",
|
|
979
988
|
values: "0"
|
|
980
989
|
}, null, -1))
|
|
981
|
-
], 8,
|
|
982
|
-
|
|
990
|
+
], 8, Na),
|
|
991
|
+
z("filter", {
|
|
983
992
|
id: `shadow_${oe.value}`,
|
|
984
993
|
"color-interpolation-filters": "sRGB"
|
|
985
994
|
}, [
|
|
986
|
-
|
|
995
|
+
z("feDropShadow", {
|
|
987
996
|
dx: "0",
|
|
988
997
|
dy: "0",
|
|
989
998
|
stdDeviation: "10",
|
|
990
999
|
"flood-opacity": "0.5",
|
|
991
1000
|
"flood-color": e.value.donutShadowColor
|
|
992
|
-
}, null, 8,
|
|
993
|
-
], 8,
|
|
1001
|
+
}, null, 8, Ua)
|
|
1002
|
+
], 8, Da)
|
|
994
1003
|
]),
|
|
995
|
-
$.value ===
|
|
996
|
-
e.value.showDataLabels ? (
|
|
997
|
-
(
|
|
998
|
-
|
|
1004
|
+
$.value === _.DONUT ? (l(), o(p, { key: 3 }, [
|
|
1005
|
+
e.value.showDataLabels ? (l(), o("g", Va, [
|
|
1006
|
+
(l(!0), o(p, null, I(T.value.chart, (t, i) => (l(), o(p, null, [
|
|
1007
|
+
T.value.isArcBigEnough(t) ? (l(), o("path", {
|
|
999
1008
|
key: 0,
|
|
1000
|
-
d: r(
|
|
1009
|
+
d: r(ma)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * wt.value, 12, e.value.donutCurvedMarkers),
|
|
1001
1010
|
stroke: t.color,
|
|
1002
1011
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
1003
1012
|
"stroke-linecap": "round",
|
|
1004
1013
|
"stroke-linejoin": "round",
|
|
1005
1014
|
fill: "none",
|
|
1006
|
-
filter:
|
|
1007
|
-
}, null, 8,
|
|
1015
|
+
filter: _e(t.id)
|
|
1016
|
+
}, null, 8, Ha)) : g("", !0)
|
|
1008
1017
|
], 64))), 256))
|
|
1009
1018
|
])) : g("", !0),
|
|
1010
|
-
|
|
1011
|
-
cx:
|
|
1012
|
-
cy:
|
|
1013
|
-
r:
|
|
1019
|
+
z("circle", {
|
|
1020
|
+
cx: T.value.cx,
|
|
1021
|
+
cy: T.value.cy,
|
|
1022
|
+
r: T.value.radius,
|
|
1014
1023
|
fill: e.value.backgroundColor,
|
|
1015
1024
|
filter: e.value.donutUseShadow ? `url(#shadow_${oe.value})` : ""
|
|
1016
|
-
}, null, 8,
|
|
1017
|
-
|
|
1018
|
-
(
|
|
1025
|
+
}, null, 8, qa),
|
|
1026
|
+
z("g", Wa, [
|
|
1027
|
+
(l(!0), o(p, null, I(T.value.chart, (t, i) => (l(), o("path", {
|
|
1019
1028
|
d: t.arcSlice,
|
|
1020
1029
|
fill: t.color,
|
|
1021
1030
|
stroke: Me.value,
|
|
1022
1031
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1023
|
-
filter:
|
|
1024
|
-
}, null, 8,
|
|
1025
|
-
(
|
|
1032
|
+
filter: _e(t.id)
|
|
1033
|
+
}, null, 8, ja))), 256)),
|
|
1034
|
+
(l(!0), o(p, null, I(T.value.chart, (t, i) => (l(), o("path", {
|
|
1026
1035
|
d: t.arcSlice,
|
|
1027
1036
|
fill: "transparent",
|
|
1028
|
-
onMouseenter: (u) =>
|
|
1029
|
-
onMouseout: (u) =>
|
|
1030
|
-
onClick: (u) =>
|
|
1031
|
-
}, null, 40,
|
|
1037
|
+
onMouseenter: (u) => T.value.useTooltip({ datapoint: t, seriesIndex: i }),
|
|
1038
|
+
onMouseout: (u) => T.value.killTooltip({ datapoint: t, seriesIndex: i }),
|
|
1039
|
+
onClick: (u) => T.value.selectDatapoint({ datapoint: t, seriesIndex: i })
|
|
1040
|
+
}, null, 40, Xa))), 256))
|
|
1032
1041
|
]),
|
|
1033
|
-
e.value.showDataLabels ? (
|
|
1034
|
-
(
|
|
1035
|
-
|
|
1042
|
+
e.value.showDataLabels ? (l(), o("g", Ga, [
|
|
1043
|
+
(l(!0), o(p, null, I(T.value.chart, (t, i) => (l(), o(p, null, [
|
|
1044
|
+
T.value.isArcBigEnough(t) ? (l(), o("circle", {
|
|
1036
1045
|
key: 0,
|
|
1037
|
-
cx: r(
|
|
1038
|
-
cy: r(
|
|
1046
|
+
cx: r(Ee)(t).x,
|
|
1047
|
+
cy: r(at)(t) - 3.7,
|
|
1039
1048
|
fill: t.color,
|
|
1040
1049
|
stroke: e.value.backgroundColor,
|
|
1041
1050
|
"stroke-width": 1,
|
|
1042
1051
|
r: 3,
|
|
1043
|
-
filter:
|
|
1044
|
-
}, null, 8,
|
|
1045
|
-
|
|
1052
|
+
filter: _e(t.id)
|
|
1053
|
+
}, null, 8, Ya)) : g("", !0),
|
|
1054
|
+
T.value.isArcBigEnough(t) ? (l(), o("text", {
|
|
1046
1055
|
key: 1,
|
|
1047
|
-
"text-anchor": r(
|
|
1048
|
-
x: r(
|
|
1049
|
-
y: r(
|
|
1056
|
+
"text-anchor": r(Ee)(t, !0, 20).anchor,
|
|
1057
|
+
x: r(Ee)(t, !0).x,
|
|
1058
|
+
y: r(at)(t),
|
|
1050
1059
|
fill: e.value.color,
|
|
1051
1060
|
"font-size": e.value.dataLabelFontSize,
|
|
1052
|
-
filter:
|
|
1053
|
-
}, F(
|
|
1061
|
+
filter: _e(t.id)
|
|
1062
|
+
}, F(T.value.displayArcPercentage(t, T.value.chart)) + " (" + F(r(ee)(
|
|
1054
1063
|
e.value.formatter,
|
|
1055
1064
|
t.value,
|
|
1056
1065
|
r(W)({
|
|
@@ -1060,44 +1069,44 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1060
1069
|
r: e.value.dataLabelRoundingValue
|
|
1061
1070
|
}),
|
|
1062
1071
|
{ datapoint: t, seriesIndex: i }
|
|
1063
|
-
)) + ") ", 9,
|
|
1064
|
-
|
|
1072
|
+
)) + ") ", 9, Za)) : g("", !0),
|
|
1073
|
+
T.value.isArcBigEnough(t, !0, 20) ? (l(), o("text", {
|
|
1065
1074
|
key: 2,
|
|
1066
|
-
"text-anchor": r(
|
|
1067
|
-
x: r(
|
|
1068
|
-
y: r(
|
|
1075
|
+
"text-anchor": r(Ee)(t).anchor,
|
|
1076
|
+
x: r(Ee)(t, !0).x,
|
|
1077
|
+
y: r(at)(t) + e.value.dataLabelFontSize,
|
|
1069
1078
|
fill: e.value.color,
|
|
1070
1079
|
"font-size": e.value.dataLabelFontSize,
|
|
1071
|
-
filter:
|
|
1072
|
-
}, F(t.name), 9,
|
|
1080
|
+
filter: _e(t.id)
|
|
1081
|
+
}, F(t.name), 9, Ja)) : g("", !0)
|
|
1073
1082
|
], 64))), 256))
|
|
1074
1083
|
])) : g("", !0),
|
|
1075
|
-
e.value.donutShowTotal ? (
|
|
1076
|
-
|
|
1084
|
+
e.value.donutShowTotal ? (l(), o("g", Qa, [
|
|
1085
|
+
z("text", {
|
|
1077
1086
|
"text-anchor": "middle",
|
|
1078
|
-
x:
|
|
1079
|
-
y:
|
|
1087
|
+
x: T.value.drawingArea.centerX,
|
|
1088
|
+
y: T.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
1080
1089
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1081
1090
|
fill: e.value.color
|
|
1082
|
-
}, F(e.value.donutTotalLabelText), 9,
|
|
1083
|
-
|
|
1091
|
+
}, F(e.value.donutTotalLabelText), 9, Ka),
|
|
1092
|
+
z("text", {
|
|
1084
1093
|
"text-anchor": "middle",
|
|
1085
|
-
x:
|
|
1086
|
-
y:
|
|
1094
|
+
x: T.value.drawingArea.centerX,
|
|
1095
|
+
y: T.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
1087
1096
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1088
1097
|
fill: e.value.color
|
|
1089
1098
|
}, F(r(W)({
|
|
1090
1099
|
p: e.value.valuePrefix,
|
|
1091
|
-
v:
|
|
1100
|
+
v: T.value.total,
|
|
1092
1101
|
s: e.value.valueSuffix,
|
|
1093
1102
|
r: e.value.dataLabelRoundingValue
|
|
1094
|
-
})), 9,
|
|
1103
|
+
})), 9, el)
|
|
1095
1104
|
])) : g("", !0)
|
|
1096
1105
|
], 64)) : g("", !0),
|
|
1097
|
-
$.value ===
|
|
1098
|
-
e.value.xyShowGrid ? (
|
|
1099
|
-
(
|
|
1100
|
-
t.y <= d.value.drawingArea.bottom ? (
|
|
1106
|
+
$.value === _.LINE ? (l(), o(p, { key: 4 }, [
|
|
1107
|
+
e.value.xyShowGrid ? (l(), o("g", tl, [
|
|
1108
|
+
(l(!0), o(p, null, I(d.value.yLabels, (t) => (l(), o(p, null, [
|
|
1109
|
+
t.y <= d.value.drawingArea.bottom ? (l(), o("line", {
|
|
1101
1110
|
key: 0,
|
|
1102
1111
|
x1: d.value.drawingArea.left,
|
|
1103
1112
|
x2: d.value.drawingArea.right,
|
|
@@ -1106,9 +1115,9 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1106
1115
|
stroke: e.value.xyGridStroke,
|
|
1107
1116
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1108
1117
|
"stroke-linecap": "round"
|
|
1109
|
-
}, null, 8,
|
|
1118
|
+
}, null, 8, al)) : g("", !0)
|
|
1110
1119
|
], 64))), 256)),
|
|
1111
|
-
(
|
|
1120
|
+
(l(!0), o(p, null, I(d.value.extremes.maxSeries + 1, (t, i) => (l(), o("line", {
|
|
1112
1121
|
x1: d.value.drawingArea.left + d.value.slotSize * i,
|
|
1113
1122
|
x2: d.value.drawingArea.left + d.value.slotSize * i,
|
|
1114
1123
|
y1: d.value.drawingArea.top,
|
|
@@ -1116,10 +1125,10 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1116
1125
|
stroke: e.value.xyGridStroke,
|
|
1117
1126
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1118
1127
|
"stroke-linecap": "round"
|
|
1119
|
-
}, null, 8,
|
|
1128
|
+
}, null, 8, ll))), 256))
|
|
1120
1129
|
])) : g("", !0),
|
|
1121
|
-
e.value.xyShowAxis ? (
|
|
1122
|
-
|
|
1130
|
+
e.value.xyShowAxis ? (l(), o("g", ol, [
|
|
1131
|
+
z("line", {
|
|
1123
1132
|
x1: d.value.drawingArea.left,
|
|
1124
1133
|
x2: d.value.drawingArea.left,
|
|
1125
1134
|
y1: d.value.drawingArea.top,
|
|
@@ -1127,8 +1136,8 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1127
1136
|
stroke: e.value.xyAxisStroke,
|
|
1128
1137
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1129
1138
|
"stroke-linecap": "round"
|
|
1130
|
-
}, null, 8,
|
|
1131
|
-
|
|
1139
|
+
}, null, 8, nl),
|
|
1140
|
+
z("line", {
|
|
1132
1141
|
x1: d.value.drawingArea.left,
|
|
1133
1142
|
x2: d.value.drawingArea.right,
|
|
1134
1143
|
y1: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
|
|
@@ -1136,16 +1145,16 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1136
1145
|
stroke: e.value.xyAxisStroke,
|
|
1137
1146
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1138
1147
|
"stroke-linecap": "round"
|
|
1139
|
-
}, null, 8,
|
|
1148
|
+
}, null, 8, il)
|
|
1140
1149
|
])) : g("", !0),
|
|
1141
|
-
e.value.xyShowScale ? (
|
|
1150
|
+
e.value.xyShowScale ? (l(), o("g", {
|
|
1142
1151
|
key: 2,
|
|
1143
1152
|
class: "yLabels",
|
|
1144
1153
|
ref_key: "scaleLabels",
|
|
1145
|
-
ref:
|
|
1154
|
+
ref: Re
|
|
1146
1155
|
}, [
|
|
1147
|
-
(
|
|
1148
|
-
t.y <= d.value.drawingArea.bottom ? (
|
|
1156
|
+
(l(!0), o(p, null, I(d.value.yLabels, (t, i) => (l(), o(p, null, [
|
|
1157
|
+
t.y <= d.value.drawingArea.bottom ? (l(), o("line", {
|
|
1149
1158
|
key: 0,
|
|
1150
1159
|
x1: t.x + 4,
|
|
1151
1160
|
x2: d.value.drawingArea.left,
|
|
@@ -1154,8 +1163,8 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1154
1163
|
stroke: e.value.xyAxisStroke,
|
|
1155
1164
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1156
1165
|
"stroke-linecap": "round"
|
|
1157
|
-
}, null, 8,
|
|
1158
|
-
t.y <= d.value.drawingArea.bottom ? (
|
|
1166
|
+
}, null, 8, ul)) : g("", !0),
|
|
1167
|
+
t.y <= d.value.drawingArea.bottom ? (l(), o("text", {
|
|
1159
1168
|
key: 1,
|
|
1160
1169
|
x: t.x,
|
|
1161
1170
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
@@ -1172,12 +1181,12 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1172
1181
|
r: e.value.dataLabelRoundingValue
|
|
1173
1182
|
}),
|
|
1174
1183
|
{ datapoint: t, seriesIndex: i }
|
|
1175
|
-
)), 9,
|
|
1184
|
+
)), 9, rl)) : g("", !0)
|
|
1176
1185
|
], 64))), 256))
|
|
1177
1186
|
], 512)) : g("", !0),
|
|
1178
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (
|
|
1179
|
-
(
|
|
1180
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) /
|
|
1187
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (l(), o("g", sl, [
|
|
1188
|
+
(l(!0), o(p, null, I(G.value.map((t) => t.text), (t, i) => (l(), o(p, null, [
|
|
1189
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (l(), o("line", {
|
|
1181
1190
|
key: 0,
|
|
1182
1191
|
x1: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
|
|
1183
1192
|
x2: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
|
|
@@ -1186,104 +1195,104 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1186
1195
|
stroke: e.value.xyAxisStroke,
|
|
1187
1196
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1188
1197
|
"stroke-linecap": "round"
|
|
1189
|
-
}, null, 8,
|
|
1198
|
+
}, null, 8, vl)) : g("", !0)
|
|
1190
1199
|
], 64))), 256)),
|
|
1191
|
-
|
|
1200
|
+
z("g", {
|
|
1192
1201
|
ref_key: "timeLabelsEls",
|
|
1193
1202
|
ref: Z
|
|
1194
1203
|
}, [
|
|
1195
|
-
(
|
|
1196
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) /
|
|
1204
|
+
(l(!0), o(p, null, I(G.value.map((t) => t.text), (t, i) => (l(), o(p, null, [
|
|
1205
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (l(), o("g", dl, [
|
|
1197
1206
|
String(t).includes(`
|
|
1198
|
-
`) ? (
|
|
1207
|
+
`) ? (l(), o("text", {
|
|
1199
1208
|
key: 1,
|
|
1200
1209
|
class: "vue-data-ui-time-label",
|
|
1201
1210
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1202
1211
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1203
1212
|
fill: e.value.color,
|
|
1204
1213
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1205
|
-
innerHTML: r(
|
|
1214
|
+
innerHTML: r(Pt)({
|
|
1206
1215
|
content: String(t),
|
|
1207
1216
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1208
1217
|
fill: e.value.color,
|
|
1209
1218
|
x: 0,
|
|
1210
1219
|
y: 0
|
|
1211
1220
|
})
|
|
1212
|
-
}, null, 8,
|
|
1221
|
+
}, null, 8, hl)) : (l(), o("text", {
|
|
1213
1222
|
key: 0,
|
|
1214
1223
|
class: "vue-data-ui-time-label",
|
|
1215
1224
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1216
1225
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1217
1226
|
fill: e.value.color,
|
|
1218
1227
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1219
|
-
}, F(t), 9,
|
|
1228
|
+
}, F(t), 9, cl))
|
|
1220
1229
|
])) : g("", !0)
|
|
1221
1230
|
], 64))), 256))
|
|
1222
1231
|
], 512)
|
|
1223
1232
|
])) : g("", !0),
|
|
1224
|
-
|
|
1225
|
-
(
|
|
1226
|
-
e.value.lineSmooth ? (
|
|
1227
|
-
|
|
1228
|
-
d: `M ${r(
|
|
1233
|
+
z("g", fl, [
|
|
1234
|
+
(l(!0), o(p, null, I(d.value.dataset, (t, i) => (l(), o("g", gl, [
|
|
1235
|
+
e.value.lineSmooth ? (l(), o(p, { key: 0 }, [
|
|
1236
|
+
z("path", {
|
|
1237
|
+
d: `M ${r(Ot)(t.coordinates)}`,
|
|
1229
1238
|
stroke: e.value.backgroundColor,
|
|
1230
1239
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1231
1240
|
"stroke-linecap": "round",
|
|
1232
1241
|
fill: "none",
|
|
1233
|
-
class: ce({ "quick-animation": !r(
|
|
1234
|
-
style: O({ transition: r(
|
|
1235
|
-
}, null, 14,
|
|
1236
|
-
|
|
1237
|
-
d: `M ${r(
|
|
1242
|
+
class: ce({ "quick-animation": !r(D), "vue-data-ui-line-animated": e.value.lineAnimated && !r(D) }),
|
|
1243
|
+
style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
|
|
1244
|
+
}, null, 14, ml),
|
|
1245
|
+
z("path", {
|
|
1246
|
+
d: `M ${r(Ot)(t.coordinates)}`,
|
|
1238
1247
|
stroke: t.color,
|
|
1239
1248
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1240
1249
|
"stroke-linecap": "round",
|
|
1241
1250
|
fill: "none",
|
|
1242
|
-
class: ce({ "quick-animation": !r(
|
|
1243
|
-
style: O({ transition: r(
|
|
1244
|
-
}, null, 14,
|
|
1245
|
-
], 64)) : (
|
|
1246
|
-
|
|
1251
|
+
class: ce({ "quick-animation": !r(D), "vue-data-ui-line-animated": e.value.lineAnimated && !r(D) }),
|
|
1252
|
+
style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
|
|
1253
|
+
}, null, 14, pl)
|
|
1254
|
+
], 64)) : (l(), o(p, { key: 1 }, [
|
|
1255
|
+
z("path", {
|
|
1247
1256
|
d: `M ${t.linePath}`,
|
|
1248
1257
|
stroke: e.value.backgroundColor,
|
|
1249
1258
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1250
1259
|
"stroke-linecap": "round",
|
|
1251
1260
|
fill: "none",
|
|
1252
|
-
class: ce({ "quick-animation": !r(
|
|
1253
|
-
style: O({ transition: r(
|
|
1254
|
-
}, null, 14,
|
|
1255
|
-
|
|
1261
|
+
class: ce({ "quick-animation": !r(D), "vue-data-ui-line-animated": e.value.lineAnimated && !r(D) }),
|
|
1262
|
+
style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
|
|
1263
|
+
}, null, 14, xl),
|
|
1264
|
+
z("path", {
|
|
1256
1265
|
d: `M ${t.linePath}`,
|
|
1257
1266
|
stroke: t.color,
|
|
1258
1267
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1259
1268
|
"stroke-linecap": "round",
|
|
1260
1269
|
fill: "none",
|
|
1261
|
-
class: ce({ "quick-animation": !r(
|
|
1262
|
-
style: O({ transition: r(
|
|
1263
|
-
}, null, 14,
|
|
1270
|
+
class: ce({ "quick-animation": !r(D), "vue-data-ui-line-animated": e.value.lineAnimated && !r(D) }),
|
|
1271
|
+
style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
|
|
1272
|
+
}, null, 14, yl)
|
|
1264
1273
|
], 64)),
|
|
1265
|
-
(
|
|
1274
|
+
(l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("circle", {
|
|
1266
1275
|
cx: u.x,
|
|
1267
1276
|
cy: r(te)(u.y),
|
|
1268
1277
|
r: 3,
|
|
1269
1278
|
fill: t.color,
|
|
1270
1279
|
stroke: e.value.backgroundColor,
|
|
1271
1280
|
"stroke-width": "0.5",
|
|
1272
|
-
class: ce({ "quick-animation": !r(
|
|
1273
|
-
style: O({ transition: r(
|
|
1274
|
-
}, null, 14,
|
|
1281
|
+
class: ce({ "quick-animation": !r(D) }),
|
|
1282
|
+
style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
|
|
1283
|
+
}, null, 14, kl))), 256))
|
|
1275
1284
|
]))), 256))
|
|
1276
1285
|
]),
|
|
1277
|
-
e.value.showDataLabels ? (
|
|
1278
|
-
(
|
|
1279
|
-
(
|
|
1286
|
+
e.value.showDataLabels ? (l(), o("g", bl, [
|
|
1287
|
+
(l(!0), o(p, null, I(d.value.dataset, (t, i) => (l(), o(p, null, [
|
|
1288
|
+
(l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("text", {
|
|
1280
1289
|
"text-anchor": "middle",
|
|
1281
1290
|
"font-size": e.value.dataLabelFontSize,
|
|
1282
1291
|
fill: t.color,
|
|
1283
1292
|
x: u.x,
|
|
1284
1293
|
y: r(te)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1285
1294
|
class: "quick-animation",
|
|
1286
|
-
style: O({ transition: r(
|
|
1295
|
+
style: O({ transition: r(D) ? void 0 : "all 0.3s ease-in-out" })
|
|
1287
1296
|
}, F(r(ee)(
|
|
1288
1297
|
e.value.formatter,
|
|
1289
1298
|
r(te)(u.value),
|
|
@@ -1294,27 +1303,27 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1294
1303
|
r: e.value.dataLabelRoundingValue
|
|
1295
1304
|
}),
|
|
1296
1305
|
{ datapoint: u, seriesIndex: x }
|
|
1297
|
-
)), 13,
|
|
1306
|
+
)), 13, Sl))), 256))
|
|
1298
1307
|
], 64))), 256))
|
|
1299
1308
|
])) : g("", !0),
|
|
1300
|
-
|
|
1301
|
-
(
|
|
1309
|
+
Ye.value ? (l(), o("g", wl, [
|
|
1310
|
+
(l(!0), o(p, null, I(d.value.extremes.maxSeries, (t, i) => (l(), o("rect", {
|
|
1302
1311
|
x: d.value.drawingArea.left + i * d.value.slotSize,
|
|
1303
1312
|
y: d.value.drawingArea.top,
|
|
1304
1313
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1305
1314
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1306
|
-
fill: [
|
|
1315
|
+
fill: [Y.value, J.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
|
|
1307
1316
|
style: O(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1308
1317
|
onMouseenter: (u) => d.value.useTooltip(i),
|
|
1309
1318
|
onMouseleave: (u) => d.value.killTooltip(i),
|
|
1310
1319
|
onClick: (u) => d.value.selectDatapoint(i)
|
|
1311
|
-
}, null, 44,
|
|
1312
|
-
])
|
|
1320
|
+
}, null, 44, Al))), 256))
|
|
1321
|
+
])) : g("", !0)
|
|
1313
1322
|
], 64)) : g("", !0),
|
|
1314
|
-
$.value ===
|
|
1315
|
-
e.value.xyShowGrid ? (
|
|
1316
|
-
(
|
|
1317
|
-
t.y <= s.value.drawingArea.bottom ? (
|
|
1323
|
+
$.value === _.BAR ? (l(), o(p, { key: 5 }, [
|
|
1324
|
+
e.value.xyShowGrid ? (l(), o("g", Ll, [
|
|
1325
|
+
(l(!0), o(p, null, I(s.value.yLabels, (t) => (l(), o(p, null, [
|
|
1326
|
+
t.y <= s.value.drawingArea.bottom ? (l(), o("line", {
|
|
1318
1327
|
key: 0,
|
|
1319
1328
|
x1: s.value.drawingArea.left,
|
|
1320
1329
|
x2: s.value.drawingArea.right,
|
|
@@ -1323,9 +1332,9 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1323
1332
|
stroke: e.value.xyGridStroke,
|
|
1324
1333
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1325
1334
|
"stroke-linecap": "round"
|
|
1326
|
-
}, null, 8,
|
|
1335
|
+
}, null, 8, _l)) : g("", !0)
|
|
1327
1336
|
], 64))), 256)),
|
|
1328
|
-
(
|
|
1337
|
+
(l(!0), o(p, null, I(s.value.extremes.maxSeries + 1, (t, i) => (l(), o("line", {
|
|
1329
1338
|
x1: s.value.drawingArea.left + s.value.slotSize * i,
|
|
1330
1339
|
x2: s.value.drawingArea.left + s.value.slotSize * i,
|
|
1331
1340
|
y1: s.value.drawingArea.top,
|
|
@@ -1333,10 +1342,10 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1333
1342
|
stroke: e.value.xyGridStroke,
|
|
1334
1343
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1335
1344
|
"stroke-linecap": "round"
|
|
1336
|
-
}, null, 8,
|
|
1345
|
+
}, null, 8, zl))), 256))
|
|
1337
1346
|
])) : g("", !0),
|
|
1338
|
-
e.value.xyShowAxis ? (
|
|
1339
|
-
|
|
1347
|
+
e.value.xyShowAxis ? (l(), o("g", Cl, [
|
|
1348
|
+
z("line", {
|
|
1340
1349
|
x1: s.value.drawingArea.left,
|
|
1341
1350
|
x2: s.value.drawingArea.left,
|
|
1342
1351
|
y1: s.value.drawingArea.top,
|
|
@@ -1344,8 +1353,8 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1344
1353
|
stroke: e.value.xyAxisStroke,
|
|
1345
1354
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1346
1355
|
"stroke-linecap": "round"
|
|
1347
|
-
}, null, 8,
|
|
1348
|
-
|
|
1356
|
+
}, null, 8, $l),
|
|
1357
|
+
z("line", {
|
|
1349
1358
|
x1: s.value.drawingArea.left,
|
|
1350
1359
|
x2: s.value.drawingArea.right,
|
|
1351
1360
|
y1: isNaN(s.value.absoluteZero) ? s.value.drawingArea.bottom : s.value.absoluteZero,
|
|
@@ -1353,16 +1362,16 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1353
1362
|
stroke: e.value.xyAxisStroke,
|
|
1354
1363
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1355
1364
|
"stroke-linecap": "round"
|
|
1356
|
-
}, null, 8,
|
|
1365
|
+
}, null, 8, Il)
|
|
1357
1366
|
])) : g("", !0),
|
|
1358
|
-
e.value.xyShowScale ? (
|
|
1367
|
+
e.value.xyShowScale ? (l(), o("g", {
|
|
1359
1368
|
key: 2,
|
|
1360
1369
|
class: "yLabels",
|
|
1361
1370
|
ref_key: "scaleLabels",
|
|
1362
|
-
ref:
|
|
1371
|
+
ref: Re
|
|
1363
1372
|
}, [
|
|
1364
|
-
(
|
|
1365
|
-
t.y <= s.value.drawingArea.bottom ? (
|
|
1373
|
+
(l(!0), o(p, null, I(s.value.yLabels, (t, i) => (l(), o(p, null, [
|
|
1374
|
+
t.y <= s.value.drawingArea.bottom ? (l(), o("line", {
|
|
1366
1375
|
key: 0,
|
|
1367
1376
|
x1: t.x + 4,
|
|
1368
1377
|
x2: s.value.drawingArea.left,
|
|
@@ -1371,8 +1380,8 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1371
1380
|
stroke: e.value.xyAxisStroke,
|
|
1372
1381
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1373
1382
|
"stroke-linecap": "round"
|
|
1374
|
-
}, null, 8,
|
|
1375
|
-
t.y <= s.value.drawingArea.bottom ? (
|
|
1383
|
+
}, null, 8, El)) : g("", !0),
|
|
1384
|
+
t.y <= s.value.drawingArea.bottom ? (l(), o("text", {
|
|
1376
1385
|
key: 1,
|
|
1377
1386
|
x: t.x,
|
|
1378
1387
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
@@ -1389,11 +1398,11 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1389
1398
|
r: e.value.dataLabelRoundingValue
|
|
1390
1399
|
}),
|
|
1391
1400
|
{ datapoint: t, seriesIndex: i }
|
|
1392
|
-
)), 9,
|
|
1401
|
+
)), 9, Tl)) : g("", !0)
|
|
1393
1402
|
], 64))), 256))
|
|
1394
1403
|
], 512)) : g("", !0),
|
|
1395
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (
|
|
1396
|
-
(
|
|
1404
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (l(), o("g", Pl, [
|
|
1405
|
+
(l(!0), o(p, null, I(e.value.xyPeriods.slice(m.value.start, m.value.end), (t, i) => (l(), o("line", {
|
|
1397
1406
|
x1: s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2,
|
|
1398
1407
|
x2: s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2,
|
|
1399
1408
|
y1: s.value.drawingArea.bottom,
|
|
@@ -1401,43 +1410,43 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1401
1410
|
stroke: e.value.xyAxisStroke,
|
|
1402
1411
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1403
1412
|
"stroke-linecap": "round"
|
|
1404
|
-
}, null, 8,
|
|
1405
|
-
|
|
1413
|
+
}, null, 8, Ol))), 256)),
|
|
1414
|
+
z("g", {
|
|
1406
1415
|
ref_key: "timeLabelsEls",
|
|
1407
1416
|
ref: Z
|
|
1408
1417
|
}, [
|
|
1409
|
-
(
|
|
1410
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) /
|
|
1418
|
+
(l(!0), o(p, null, I(G.value.map((t) => t.text), (t, i) => (l(), o(p, null, [
|
|
1419
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((m.value.end - m.value.start) / xe.value) === 0 || m.value.end - m.value.start <= xe.value ? (l(), o("g", Rl, [
|
|
1411
1420
|
String(t).includes(`
|
|
1412
|
-
`) ? (
|
|
1421
|
+
`) ? (l(), o("text", {
|
|
1413
1422
|
key: 1,
|
|
1414
1423
|
class: "vue-data-ui-time-label",
|
|
1415
1424
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1416
1425
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1417
1426
|
fill: e.value.color,
|
|
1418
1427
|
transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1419
|
-
innerHTML: r(
|
|
1428
|
+
innerHTML: r(Pt)({
|
|
1420
1429
|
content: String(t),
|
|
1421
1430
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1422
1431
|
fill: e.value.color,
|
|
1423
1432
|
x: 0,
|
|
1424
1433
|
y: 0
|
|
1425
1434
|
})
|
|
1426
|
-
}, null, 8,
|
|
1435
|
+
}, null, 8, Fl)) : (l(), o("text", {
|
|
1427
1436
|
key: 0,
|
|
1428
1437
|
class: "vue-data-ui-time-label",
|
|
1429
1438
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1430
1439
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1431
1440
|
fill: e.value.color,
|
|
1432
1441
|
transform: `translate(${s.value.drawingArea.left + s.value.slotSize * (i + 1) - s.value.slotSize / 2}, ${s.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1433
|
-
}, F(t), 9,
|
|
1442
|
+
}, F(t), 9, Ml))
|
|
1434
1443
|
])) : g("", !0)
|
|
1435
1444
|
], 64))), 256))
|
|
1436
1445
|
], 512)
|
|
1437
1446
|
])) : g("", !0),
|
|
1438
|
-
|
|
1439
|
-
(
|
|
1440
|
-
(
|
|
1447
|
+
z("g", Nl, [
|
|
1448
|
+
(l(!0), o(p, null, I(s.value.dataset, (t, i) => (l(), o(p, null, [
|
|
1449
|
+
(l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("rect", {
|
|
1441
1450
|
x: u.x,
|
|
1442
1451
|
width: u.width <= 0 ? 1e-5 : u.width,
|
|
1443
1452
|
height: r(te)(u.height <= 0 ? 1e-5 : u.height),
|
|
@@ -1446,28 +1455,28 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1446
1455
|
stroke: e.value.backgroundColor,
|
|
1447
1456
|
"stroke-width": e.value.barStrokeWidth,
|
|
1448
1457
|
"stroke-linecap": "round",
|
|
1449
|
-
class: ce({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !r(
|
|
1458
|
+
class: ce({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !r(D) })
|
|
1450
1459
|
}, [
|
|
1451
|
-
e.value.barAnimated && u.value > 0 && !r(
|
|
1460
|
+
e.value.barAnimated && u.value > 0 && !r(Ne) && !r(Be) ? (l(), o("animate", {
|
|
1452
1461
|
key: 0,
|
|
1453
1462
|
attributeName: "height",
|
|
1454
1463
|
from: 0,
|
|
1455
1464
|
to: u.height,
|
|
1456
1465
|
dur: "0.5s"
|
|
1457
|
-
}, null, 8,
|
|
1458
|
-
e.value.barAnimated && u.value > 0 && !r(
|
|
1466
|
+
}, null, 8, Dl)) : g("", !0),
|
|
1467
|
+
e.value.barAnimated && u.value > 0 && !r(Ne) && !r(Be) ? (l(), o("animate", {
|
|
1459
1468
|
key: 1,
|
|
1460
1469
|
attributeName: "y",
|
|
1461
1470
|
from: s.value.absoluteZero,
|
|
1462
1471
|
to: s.value.absoluteZero - u.height,
|
|
1463
1472
|
dur: "0.5s"
|
|
1464
|
-
}, null, 8,
|
|
1465
|
-
], 10,
|
|
1473
|
+
}, null, 8, Ul)) : g("", !0)
|
|
1474
|
+
], 10, Bl))), 256))
|
|
1466
1475
|
], 64))), 256))
|
|
1467
1476
|
]),
|
|
1468
|
-
e.value.showDataLabels ? (
|
|
1469
|
-
(
|
|
1470
|
-
(
|
|
1477
|
+
e.value.showDataLabels ? (l(), o("g", Vl, [
|
|
1478
|
+
(l(!0), o(p, null, I(s.value.dataset, (t, i) => (l(), o(p, null, [
|
|
1479
|
+
(l(!0), o(p, null, I(t.coordinates, (u, x) => (l(), o("text", {
|
|
1471
1480
|
x: u.x + u.width / 2,
|
|
1472
1481
|
y: r(te)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1473
1482
|
"text-anchor": "middle",
|
|
@@ -1484,94 +1493,94 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1484
1493
|
r: e.value.dataLabelRoundingValue
|
|
1485
1494
|
}),
|
|
1486
1495
|
{ datapoint: u, seriesIndex: x }
|
|
1487
|
-
)), 9,
|
|
1496
|
+
)), 9, Hl))), 256))
|
|
1488
1497
|
], 64))), 256))
|
|
1489
1498
|
])) : g("", !0),
|
|
1490
|
-
|
|
1491
|
-
(
|
|
1499
|
+
Ye.value ? (l(), o("g", ql, [
|
|
1500
|
+
(l(!0), o(p, null, I(s.value.extremes.maxSeries, (t, i) => (l(), o("rect", {
|
|
1492
1501
|
x: s.value.drawingArea.left + i * s.value.slotSize,
|
|
1493
1502
|
y: s.value.drawingArea.top,
|
|
1494
1503
|
height: s.value.drawingArea.height <= 0 ? 1e-5 : s.value.drawingArea.height,
|
|
1495
1504
|
width: s.value.slotSize <= 0 ? 1e-5 : s.value.slotSize,
|
|
1496
|
-
fill: [
|
|
1505
|
+
fill: [Y.value, J.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
|
|
1497
1506
|
style: O(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1498
1507
|
onMouseenter: (u) => s.value.useTooltip(i),
|
|
1499
1508
|
onMouseleave: (u) => s.value.killTooltip(i),
|
|
1500
1509
|
onClick: (u) => s.value.selectDatapoint(i)
|
|
1501
|
-
}, null, 44,
|
|
1502
|
-
])
|
|
1510
|
+
}, null, 44, Wl))), 256))
|
|
1511
|
+
])) : g("", !0)
|
|
1503
1512
|
], 64)) : g("", !0),
|
|
1504
|
-
[
|
|
1505
|
-
e.value.xAxisLabel && $.value ===
|
|
1513
|
+
[_.LINE, _.BAR].includes($.value) ? (l(), o("g", jl, [
|
|
1514
|
+
e.value.xAxisLabel && $.value === _.LINE ? (l(), o("g", {
|
|
1506
1515
|
key: 0,
|
|
1507
1516
|
ref_key: "xAxisLabel",
|
|
1508
|
-
ref:
|
|
1517
|
+
ref: vt
|
|
1509
1518
|
}, [
|
|
1510
|
-
|
|
1519
|
+
z("text", {
|
|
1511
1520
|
"font-size": e.value.axisLabelsFontSize,
|
|
1512
1521
|
fill: e.value.color,
|
|
1513
1522
|
"text-anchor": "middle",
|
|
1514
1523
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1515
1524
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1516
|
-
}, F(e.value.xAxisLabel), 9,
|
|
1525
|
+
}, F(e.value.xAxisLabel), 9, Xl)
|
|
1517
1526
|
], 512)) : g("", !0),
|
|
1518
|
-
e.value.xAxisLabel && $.value ===
|
|
1527
|
+
e.value.xAxisLabel && $.value === _.BAR ? (l(), o("g", {
|
|
1519
1528
|
key: 1,
|
|
1520
1529
|
ref_key: "xAxisLabel",
|
|
1521
|
-
ref:
|
|
1530
|
+
ref: vt
|
|
1522
1531
|
}, [
|
|
1523
|
-
|
|
1532
|
+
z("text", {
|
|
1524
1533
|
"font-size": e.value.axisLabelsFontSize,
|
|
1525
1534
|
fill: e.value.color,
|
|
1526
1535
|
"text-anchor": "middle",
|
|
1527
1536
|
x: s.value.drawingArea.left + s.value.drawingArea.width / 2,
|
|
1528
1537
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1529
|
-
}, F(e.value.xAxisLabel), 9,
|
|
1538
|
+
}, F(e.value.xAxisLabel), 9, Gl)
|
|
1530
1539
|
], 512)) : g("", !0),
|
|
1531
|
-
e.value.yAxisLabel && $.value ===
|
|
1540
|
+
e.value.yAxisLabel && $.value === _.LINE ? (l(), o("g", {
|
|
1532
1541
|
key: 2,
|
|
1533
1542
|
ref_key: "yAxisLabel",
|
|
1534
|
-
ref:
|
|
1543
|
+
ref: dt
|
|
1535
1544
|
}, [
|
|
1536
|
-
|
|
1545
|
+
z("text", {
|
|
1537
1546
|
"font-size": e.value.axisLabelsFontSize,
|
|
1538
1547
|
fill: e.value.color,
|
|
1539
1548
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1540
1549
|
"text-anchor": "middle"
|
|
1541
|
-
}, F(e.value.yAxisLabel), 9,
|
|
1550
|
+
}, F(e.value.yAxisLabel), 9, Yl)
|
|
1542
1551
|
], 512)) : g("", !0),
|
|
1543
|
-
e.value.yAxisLabel && $.value ===
|
|
1552
|
+
e.value.yAxisLabel && $.value === _.BAR ? (l(), o("g", {
|
|
1544
1553
|
key: 3,
|
|
1545
1554
|
ref_key: "yAxisLabel",
|
|
1546
|
-
ref:
|
|
1555
|
+
ref: dt
|
|
1547
1556
|
}, [
|
|
1548
|
-
|
|
1557
|
+
z("text", {
|
|
1549
1558
|
"font-size": e.value.axisLabelsFontSize,
|
|
1550
1559
|
fill: e.value.color,
|
|
1551
1560
|
transform: `translate(${e.value.axisLabelsFontSize}, ${s.value.drawingArea.top + s.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1552
1561
|
"text-anchor": "middle"
|
|
1553
|
-
}, F(e.value.yAxisLabel), 9,
|
|
1562
|
+
}, F(e.value.yAxisLabel), 9, Zl)
|
|
1554
1563
|
], 512)) : g("", !0)
|
|
1555
1564
|
])) : g("", !0)
|
|
1556
|
-
], 12,
|
|
1557
|
-
|
|
1558
|
-
U(
|
|
1565
|
+
], 12, Oa)) : g("", !0),
|
|
1566
|
+
a.$slots.watermark ? (l(), o("div", Jl, [
|
|
1567
|
+
U(a.$slots, "watermark", he(fe({ isPrinting: r(Ne) || r(Be) })), void 0, !0)
|
|
1559
1568
|
])) : g("", !0),
|
|
1560
|
-
[
|
|
1561
|
-
key: `slicer_${
|
|
1569
|
+
[_.BAR, _.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (l(), o("div", {
|
|
1570
|
+
key: `slicer_${Oe.value}`,
|
|
1562
1571
|
ref_key: "quickChartSlicer",
|
|
1563
|
-
ref:
|
|
1572
|
+
ref: it
|
|
1564
1573
|
}, [
|
|
1565
|
-
(
|
|
1574
|
+
(l(), qe(wa, {
|
|
1566
1575
|
ref_key: "slicerComponent",
|
|
1567
|
-
ref:
|
|
1568
|
-
key: `slicer_${
|
|
1576
|
+
ref: At,
|
|
1577
|
+
key: `slicer_${Oe.value}`,
|
|
1569
1578
|
background: e.value.zoomColor,
|
|
1570
1579
|
borderColor: e.value.backgroundColor,
|
|
1571
1580
|
fontSize: e.value.zoomFontSize,
|
|
1572
1581
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1573
|
-
labelLeft: e.value.xyPeriods[m.value.start] ?
|
|
1574
|
-
labelRight: e.value.xyPeriods[m.value.end - 1] ?
|
|
1582
|
+
labelLeft: e.value.xyPeriods[m.value.start] ? G.value[0].text : "",
|
|
1583
|
+
labelRight: e.value.xyPeriods[m.value.end - 1] ? G.value.at(-1).text : "",
|
|
1575
1584
|
textColor: e.value.color,
|
|
1576
1585
|
inputColor: e.value.zoomColor,
|
|
1577
1586
|
selectColor: e.value.zoomHighlightColor,
|
|
@@ -1584,56 +1593,56 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1584
1593
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1585
1594
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1586
1595
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1587
|
-
minimap:
|
|
1596
|
+
minimap: Zt.value,
|
|
1588
1597
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1589
1598
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1590
1599
|
minimapSelectedIndex: J.value,
|
|
1591
1600
|
start: m.value.start,
|
|
1592
|
-
"onUpdate:start":
|
|
1601
|
+
"onUpdate:start": c[0] || (c[0] = (t) => m.value.start = t),
|
|
1593
1602
|
end: m.value.end,
|
|
1594
|
-
"onUpdate:end":
|
|
1603
|
+
"onUpdate:end": c[1] || (c[1] = (t) => m.value.end = t),
|
|
1595
1604
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1596
1605
|
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : k.value.maxSeriesLength,
|
|
1597
1606
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
1598
1607
|
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1599
|
-
onReset:
|
|
1600
|
-
onTrapMouse:
|
|
1608
|
+
onReset: Gt,
|
|
1609
|
+
onTrapMouse: Xt
|
|
1601
1610
|
}, {
|
|
1602
1611
|
"reset-action": K(({ reset: t }) => [
|
|
1603
|
-
U(
|
|
1612
|
+
U(a.$slots, "reset-action", he(fe({ reset: t })), void 0, !0)
|
|
1604
1613
|
]),
|
|
1605
1614
|
_: 3
|
|
1606
1615
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "verticalHandles", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
1607
1616
|
])) : g("", !0),
|
|
1608
|
-
e.value.showLegend ? (
|
|
1617
|
+
e.value.showLegend ? (l(), o("div", {
|
|
1609
1618
|
key: 7,
|
|
1610
1619
|
ref_key: "quickChartLegend",
|
|
1611
|
-
ref:
|
|
1620
|
+
ref: nt,
|
|
1612
1621
|
class: "vue-ui-quick-chart-legend",
|
|
1613
1622
|
style: O(`background:transparent;color:${e.value.color}`)
|
|
1614
1623
|
}, [
|
|
1615
|
-
$.value ===
|
|
1624
|
+
$.value === _.DONUT ? (l(!0), o(p, { key: 0 }, I(T.value.legend, (t, i) => (l(), o("div", {
|
|
1616
1625
|
class: "vue-ui-quick-chart-legend-item",
|
|
1617
1626
|
onClick: (u) => {
|
|
1618
|
-
|
|
1627
|
+
jt(t, T.value.dataset), ge("selectLegend", t);
|
|
1619
1628
|
},
|
|
1620
|
-
style: O(`cursor: ${
|
|
1629
|
+
style: O(`cursor: ${T.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1621
1630
|
}, [
|
|
1622
|
-
e.value.useCustomLegend ? U(
|
|
1631
|
+
e.value.useCustomLegend ? U(a.$slots, "legend", et({
|
|
1623
1632
|
key: 0,
|
|
1624
1633
|
ref_for: !0
|
|
1625
|
-
}, { legend: t }), void 0, !0) : (
|
|
1626
|
-
|
|
1634
|
+
}, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
|
|
1635
|
+
ke(r(B), {
|
|
1627
1636
|
name: e.value.legendIcon,
|
|
1628
1637
|
stroke: t.color,
|
|
1629
1638
|
size: e.value.legendIconSize
|
|
1630
1639
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1631
|
-
|
|
1640
|
+
z("span", {
|
|
1632
1641
|
style: O(`font-size:${e.value.legendFontSize}px`)
|
|
1633
1642
|
}, F(t.name), 5),
|
|
1634
|
-
|
|
1643
|
+
z("span", {
|
|
1635
1644
|
style: O(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1636
|
-
}, F(
|
|
1645
|
+
}, F(A.value.includes(t.id) ? "-" : r(ee)(
|
|
1637
1646
|
e.value.formatter,
|
|
1638
1647
|
t.absoluteValue,
|
|
1639
1648
|
r(W)({
|
|
@@ -1644,74 +1653,74 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1644
1653
|
}),
|
|
1645
1654
|
{ datapoint: t, seriesIndex: i }
|
|
1646
1655
|
)), 5),
|
|
1647
|
-
|
|
1656
|
+
A.value.includes(t.id) ? (l(), o("span", {
|
|
1648
1657
|
key: 0,
|
|
1649
1658
|
style: O(`font-size:${e.value.legendFontSize}px`)
|
|
1650
|
-
}, " ( - % ) ", 4)) :
|
|
1659
|
+
}, " ( - % ) ", 4)) : De.value ? (l(), o("span", {
|
|
1651
1660
|
key: 1,
|
|
1652
1661
|
style: O(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1653
|
-
}, " ( - % ) ", 4)) : (
|
|
1662
|
+
}, " ( - % ) ", 4)) : (l(), o("span", {
|
|
1654
1663
|
key: 2,
|
|
1655
1664
|
style: O(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1656
1665
|
}, " (" + F(r(W)({
|
|
1657
|
-
v: t.value /
|
|
1666
|
+
v: t.value / T.value.total * 100,
|
|
1658
1667
|
s: "%",
|
|
1659
1668
|
r: e.value.dataLabelRoundingPercentage
|
|
1660
1669
|
})) + ") ", 5))
|
|
1661
1670
|
], 64))
|
|
1662
|
-
], 12,
|
|
1663
|
-
$.value ===
|
|
1671
|
+
], 12, Ql))), 256)) : g("", !0),
|
|
1672
|
+
$.value === _.LINE ? (l(!0), o(p, { key: 1 }, I(d.value.legend, (t, i) => (l(), o("div", {
|
|
1664
1673
|
class: "vue-ui-quick-chart-legend-item",
|
|
1665
1674
|
onClick: (u) => {
|
|
1666
|
-
|
|
1675
|
+
kt(t.id, d.value.legend.length - 1), ge("selectLegend", t);
|
|
1667
1676
|
},
|
|
1668
|
-
style: O(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${
|
|
1677
|
+
style: O(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1669
1678
|
}, [
|
|
1670
|
-
e.value.useCustomLegend ? U(
|
|
1679
|
+
e.value.useCustomLegend ? U(a.$slots, "legend", et({
|
|
1671
1680
|
key: 0,
|
|
1672
1681
|
ref_for: !0
|
|
1673
|
-
}, { legend: t }), void 0, !0) : (
|
|
1674
|
-
|
|
1682
|
+
}, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
|
|
1683
|
+
ke(r(B), {
|
|
1675
1684
|
name: e.value.legendIcon,
|
|
1676
1685
|
stroke: t.color,
|
|
1677
1686
|
size: e.value.legendIconSize
|
|
1678
1687
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1679
|
-
|
|
1688
|
+
z("span", {
|
|
1680
1689
|
style: O(`font-size:${e.value.legendFontSize}px`)
|
|
1681
1690
|
}, F(t.name), 5)
|
|
1682
1691
|
], 64))
|
|
1683
|
-
], 12,
|
|
1684
|
-
$.value ===
|
|
1692
|
+
], 12, Kl))), 256)) : g("", !0),
|
|
1693
|
+
$.value === _.BAR ? (l(!0), o(p, { key: 2 }, I(s.value.legend, (t, i) => (l(), o("div", {
|
|
1685
1694
|
class: "vue-ui-quick-chart-legend-item",
|
|
1686
1695
|
onClick: (u) => {
|
|
1687
|
-
|
|
1696
|
+
kt(t.id, s.value.legend.length - 1), ge("selectLegend", t);
|
|
1688
1697
|
},
|
|
1689
|
-
style: O(`cursor: ${s.value.legend.length > 1 ? "pointer" : "default"}; opacity:${
|
|
1698
|
+
style: O(`cursor: ${s.value.legend.length > 1 ? "pointer" : "default"}; opacity:${A.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1690
1699
|
}, [
|
|
1691
|
-
e.value.useCustomLegend ? U(
|
|
1700
|
+
e.value.useCustomLegend ? U(a.$slots, "legend", et({
|
|
1692
1701
|
key: 0,
|
|
1693
1702
|
ref_for: !0
|
|
1694
|
-
}, { legend: t }), void 0, !0) : (
|
|
1695
|
-
|
|
1703
|
+
}, { legend: t }), void 0, !0) : (l(), o(p, { key: 1 }, [
|
|
1704
|
+
ke(r(B), {
|
|
1696
1705
|
name: e.value.legendIcon,
|
|
1697
1706
|
stroke: t.color,
|
|
1698
1707
|
size: e.value.legendIconSize
|
|
1699
1708
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1700
|
-
|
|
1709
|
+
z("span", {
|
|
1701
1710
|
style: O(`font-size:${e.value.legendFontSize}px`)
|
|
1702
1711
|
}, F(t.name), 5)
|
|
1703
1712
|
], 64))
|
|
1704
|
-
], 12,
|
|
1713
|
+
], 12, eo))), 256)) : g("", !0)
|
|
1705
1714
|
], 4)) : g("", !0),
|
|
1706
|
-
|
|
1715
|
+
a.$slots.source ? (l(), o("div", {
|
|
1707
1716
|
key: 8,
|
|
1708
1717
|
ref_key: "source",
|
|
1709
|
-
ref:
|
|
1718
|
+
ref: ut,
|
|
1710
1719
|
dir: "auto"
|
|
1711
1720
|
}, [
|
|
1712
|
-
U(
|
|
1721
|
+
U(a.$slots, "source", {}, void 0, !0)
|
|
1713
1722
|
], 512)) : g("", !0),
|
|
1714
|
-
|
|
1723
|
+
ke(r(be), {
|
|
1715
1724
|
show: me.value.showTooltip && re.value,
|
|
1716
1725
|
backgroundColor: e.value.backgroundColor,
|
|
1717
1726
|
color: e.value.color,
|
|
@@ -1722,31 +1731,31 @@ const Ea = ["id"], Pa = ["xmlns", "viewBox"], Ta = ["x", "y", "width", "height"]
|
|
|
1722
1731
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1723
1732
|
position: e.value.tooltipPosition,
|
|
1724
1733
|
offsetY: e.value.tooltipOffsetY,
|
|
1725
|
-
parent:
|
|
1734
|
+
parent: R.value,
|
|
1726
1735
|
content: se.value,
|
|
1727
|
-
isFullscreen:
|
|
1728
|
-
isCustom: r(
|
|
1736
|
+
isFullscreen: Ve.value,
|
|
1737
|
+
isCustom: r(je)(e.value.tooltipCustomFormat),
|
|
1729
1738
|
smooth: e.value.tooltipSmooth,
|
|
1730
1739
|
backdropFilter: e.value.tooltipBackdropFilter
|
|
1731
1740
|
}, {
|
|
1732
1741
|
"tooltip-before": K(() => [
|
|
1733
|
-
U(
|
|
1742
|
+
U(a.$slots, "tooltip-before", he(fe({ ...we.value })), void 0, !0)
|
|
1734
1743
|
]),
|
|
1735
1744
|
"tooltip-after": K(() => [
|
|
1736
|
-
U(
|
|
1745
|
+
U(a.$slots, "tooltip-after", he(fe({ ...we.value })), void 0, !0)
|
|
1737
1746
|
]),
|
|
1738
1747
|
_: 3
|
|
1739
1748
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1740
|
-
r(
|
|
1741
|
-
], 46,
|
|
1742
|
-
|
|
1749
|
+
r(D) ? (l(), qe(La, { key: 9 })) : g("", !0)
|
|
1750
|
+
], 46, Pa)) : (l(), o("div", to, [
|
|
1751
|
+
ke(r(B), {
|
|
1743
1752
|
name: "circleCancel",
|
|
1744
1753
|
stroke: "red"
|
|
1745
1754
|
}),
|
|
1746
|
-
|
|
1755
|
+
c[5] || (c[5] = z("span", null, "Dataset is not processable", -1))
|
|
1747
1756
|
]));
|
|
1748
1757
|
}
|
|
1749
|
-
},
|
|
1758
|
+
}, mo = /* @__PURE__ */ _a(ao, [["__scopeId", "data-v-64f113e9"]]);
|
|
1750
1759
|
export {
|
|
1751
|
-
|
|
1760
|
+
mo as default
|
|
1752
1761
|
};
|