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