vue-data-ui 2.13.4 → 2.13.5-beta.0
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-Cv5RKI2K.js → Arrow-nJWOreP4.js} +1 -1
- package/dist/{BaseDraggableDialog-CbNaTai1.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
- package/dist/{BaseIcon-B90jg7Eo.js → BaseIcon-lwpKi6Wa.js} +1 -1
- package/dist/{ColorPicker-DrHXo6NB.js → ColorPicker-D8TZj-R5.js} +2 -2
- package/dist/{DataTable-DOdmEVBM.js → DataTable-CuFlXUxm.js} +2 -2
- package/dist/{Legend-D7As_VVi.js → Legend-DwNuhYnG.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Qe1IsvyR.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
- package/dist/{PackageVersion-CJ0MHPau.js → PackageVersion-1psmmuzo.js} +2 -2
- package/dist/{PenAndPaper-CsV9xVqP.js → PenAndPaper-DgUkj01g.js} +3 -3
- package/dist/{Shape-CMT3DgWJ.js → Shape-CmlBrd-F.js} +1 -1
- package/dist/{Slicer-kZ-UNW0I.js → Slicer-B-5jXhhw.js} +161 -161
- package/dist/{SparkTooltip-DgaaFrSC.js → SparkTooltip-BGjRXPbu.js} +1 -1
- package/dist/{Title-Cuxd1Hw4.js → Title-BoKeR6i0.js} +1 -1
- package/dist/{Tooltip-nm6v9SvD.js → Tooltip-Df2iF7bv.js} +1 -1
- package/dist/{UserOptions-B4olqrwb.js → UserOptions-NrArsCuC.js} +2 -2
- package/dist/{dom-to-png-JxvpNdgk.js → dom-to-png-DK9TIQio.js} +1 -1
- package/dist/{img-BrSPXg54.js → img-CqqmkwDl.js} +1 -1
- package/dist/{index-DXfqC_CG.js → index-C137VZkI.js} +675 -656
- package/dist/{pdf-CRNRsa97.js → pdf-DTB7aasS.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/{useNestedProp-CUF1PWxQ.js → useNestedProp-ZNu8JrRX.js} +1 -1
- package/dist/{usePrinter-DGQh_spY.js → usePrinter-B63T3abI.js} +2 -2
- package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
- package/dist/{vue-data-ui-tkhMq-bw.js → vue-data-ui-CBTXw5iV.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Dwdfdqch.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
- package/dist/{vue-ui-accordion-D-tjbzQS.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BZmYWVrS.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
- package/dist/{vue-ui-annotator-DBrXod-O.js → vue-ui-annotator-BokgyAXW.js} +2 -2
- package/dist/{vue-ui-bullet-ur-PTrPw.js → vue-ui-bullet-D5TWFElT.js} +6 -6
- package/dist/{vue-ui-candlestick-72UivaQY.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
- package/dist/{vue-ui-carousel-table-CApme8lg.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
- package/dist/{vue-ui-chestnut-jcZZ8cOw.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
- package/dist/{vue-ui-chord-A9jGFNM2.js → vue-ui-chord-Drxbeh2P.js} +7 -7
- package/dist/{vue-ui-circle-pack-DPnOBq40.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
- package/dist/{vue-ui-cursor-Cby6-Vrh.js → vue-ui-cursor-DaT20eFb.js} +2 -2
- package/dist/{vue-ui-dashboard-BGzORkrX.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
- package/dist/{vue-ui-digits-Dhxd38mc.js → vue-ui-digits-D6kq38s9.js} +2 -2
- package/dist/{vue-ui-donut-DsFBb3Cl.js → vue-ui-donut-_kVdFrZR.js} +7 -7
- package/dist/{vue-ui-donut-evolution-B-Bo4b4Y.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
- package/dist/{vue-ui-dumbbell-EVSJdr9V.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
- package/dist/{vue-ui-flow-Cr1-ETyc.js → vue-ui-flow-DTx267Ka.js} +6 -6
- package/dist/{vue-ui-funnel-BQ0LckzE.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
- package/dist/{vue-ui-galaxy-_fwGK1PY.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
- package/dist/{vue-ui-gauge-BrnOoF9C.js → vue-ui-gauge-CAKj45DE.js} +5 -5
- package/dist/{vue-ui-gizmo-tgjSYkeV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
- package/dist/{vue-ui-heatmap-CamaTaei.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
- package/dist/{vue-ui-history-plot-DSBQu-9Y.js → vue-ui-history-plot-DfduurUS.js} +103 -103
- package/dist/{vue-ui-kpi-OCtgONK3.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
- package/dist/{vue-ui-mini-loader--xzmMUNI.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
- package/dist/{vue-ui-molecule-DnkENzdw.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
- package/dist/{vue-ui-mood-radar-DKP1rjSd.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CHwTDQ9J.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
- package/dist/{vue-ui-onion-BxaynRPn.js → vue-ui-onion-BV3A2JCN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-ohCDDK1Q.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
- package/dist/{vue-ui-quadrant-DXZsVWe3.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
- package/dist/{vue-ui-quick-chart-C_ofgdSY.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
- package/dist/{vue-ui-radar-CLa2PHHK.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
- package/dist/{vue-ui-rating-GiRUw1Wv.js → vue-ui-rating-FuSmmUE8.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJ1M2Pnc.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
- package/dist/{vue-ui-ridgeline-E_7xjHTY.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
- package/dist/{vue-ui-rings-BiOAND3T.js → vue-ui-rings-DMx8sMKa.js} +7 -7
- package/dist/{vue-ui-scatter-Bai9QSqI.js → vue-ui-scatter-DX42tHz8.js} +7 -7
- package/dist/{vue-ui-skeleton-B2N_3mr0.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
- package/dist/{vue-ui-smiley-DAvm3IGu.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
- package/dist/{vue-ui-spark-trend-D4EwvdX0.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
- package/dist/{vue-ui-sparkbar-DM_2iDVI.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-UW6sVQdV.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CF0JPKYB.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
- package/dist/{vue-ui-sparkline-Dg8j2KTF.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CqT_oEk7.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
- package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
- package/dist/{vue-ui-strip-plot-BR66rY0G.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
- package/dist/{vue-ui-table-Dk0eXTU9.js → vue-ui-table-Cfb6eIU4.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Brldpa0g.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxQrZBCR.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
- package/dist/{vue-ui-thermometer-B_OrqIjE.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
- package/dist/{vue-ui-timer-Cz0J-s5D.js → vue-ui-timer-By6_kV9k.js} +8 -8
- package/dist/{vue-ui-tiremarks-B1B3h-Vi.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
- package/dist/{vue-ui-treemap-CMm6fSIO.js → vue-ui-treemap-DivJblJW.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DA2Xpx46.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
- package/dist/{vue-ui-waffle-U3NxGQ3l.js → vue-ui-waffle-DSzMjANd.js} +7 -7
- package/dist/{vue-ui-wheel-WNOVLYp8.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
- package/dist/{vue-ui-word-cloud-_TBCcmAV.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
- package/dist/{vue-ui-world-DREkLtrD.js → vue-ui-world-BhGGmeGq.js} +5 -5
- package/dist/{vue-ui-xy-CIiqKrxF.js → vue-ui-xy-CZpcKEkV.js} +680 -668
- package/dist/{vue-ui-xy-canvas-ClHv-Wlu.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
- package/package.json +1 -1
- package/dist/vue-ui-stackbar-By7DVfJV.js +0 -1132
|
@@ -1,139 +1,140 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import {
|
|
1
|
+
import { defineAsyncComponent as ce, ref as z, computed as U, watch as Ve, shallowRef as ht, onMounted as Ot, onBeforeUnmount as Tt, nextTick as Me, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as he, createBlock as Ne, createCommentVNode as g, createVNode as fe, unref as f, createSlots as Pt, withCtx as G, renderSlot as M, normalizeProps as ne, guardReactiveProps as ue, toDisplayString as O, createElementVNode as _, Fragment as m, renderList as $, mergeProps as qe } from "vue";
|
|
2
|
+
import { u as Rt, c as Mt, t as Nt, p as q, a as Ft, C as ft, b as Ut, H as Dt, e as Bt, d as He, m as Vt, D as gt, X as qt, j as Ht, k as We, n as Le, i as X, f as B, U as mt, v as Z, x as Fe, y as je } from "./index-C137VZkI.js";
|
|
3
|
+
import { t as Wt, u as jt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as pt } from "./useNestedProp-ZNu8JrRX.js";
|
|
5
|
+
import { u as Gt } from "./usePrinter-B63T3abI.js";
|
|
6
|
+
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { S as Zt } from "./Slicer-B-5jXhhw.js";
|
|
8
|
+
import { u as Yt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
9
|
+
import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
10
|
const A = {
|
|
10
11
|
LINE: "LINE",
|
|
11
12
|
BAR: "BAR",
|
|
12
13
|
DONUT: "DONUT"
|
|
13
|
-
},
|
|
14
|
-
function
|
|
15
|
-
let y = null,
|
|
16
|
-
if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), ze(c) && (Y(c) && (c.length < C ? y = A.BAR : y = A.LINE,
|
|
17
|
-
if (!
|
|
14
|
+
}, Qt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
15
|
+
function Kt({ dataset: c, barLineSwitch: C = 6 }) {
|
|
16
|
+
let y = null, T = null, H = 0;
|
|
17
|
+
if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), ze(c) && (Y(c) && (c.length < C ? y = A.BAR : y = A.LINE, T = c, H = c.length), Ue(c))) {
|
|
18
|
+
if (!ta(c))
|
|
18
19
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
19
|
-
const
|
|
20
|
-
if (!
|
|
20
|
+
const pe = Object.keys(c[0]), $e = Object.values(c[0]);
|
|
21
|
+
if (!pe.some((N) => aa(N)))
|
|
21
22
|
return 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;
|
|
22
|
-
|
|
23
|
+
yt($e, (N) => typeof N == "number") && (y = A.DONUT, T = c), yt($e, (N) => Array.isArray(N) && Y(N)) && (xt(c) > C ? y = A.LINE : y = A.BAR, H = xt(c), T = c.map((N) => ({
|
|
23
24
|
...N,
|
|
24
|
-
data:
|
|
25
|
-
}))), c = c.map((N) =>
|
|
25
|
+
data: la(N, (D) => Y(D))
|
|
26
|
+
}))), c = c.map((N) => kt(N)), T = T.map((N) => kt(N));
|
|
26
27
|
}
|
|
27
|
-
return ze(c) && [...new Set(c.flatMap((
|
|
28
|
+
return ze(c) && [...new Set(c.flatMap((pe) => Array.isArray(pe)))][0], {
|
|
28
29
|
dataset: c,
|
|
29
30
|
type: y,
|
|
30
|
-
usableDataset:
|
|
31
|
+
usableDataset: T,
|
|
31
32
|
maxSeriesLength: H
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function bt(c) {
|
|
35
36
|
return !c || ze(c) && !c.length;
|
|
36
37
|
}
|
|
37
38
|
function ze(c) {
|
|
38
39
|
return Array.isArray(c);
|
|
39
40
|
}
|
|
40
41
|
function Y(c) {
|
|
41
|
-
if (!ze(c) ||
|
|
42
|
+
if (!ze(c) || bt(c)) return !1;
|
|
42
43
|
const C = c.map((y) => Number(y));
|
|
43
44
|
return ![...new Set(C.flatMap((y) => typeof y == "number" && !isNaN(y)))].includes(!1);
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
return !ze(c) ||
|
|
46
|
+
function Ue(c) {
|
|
47
|
+
return !ze(c) || bt(c) || !![...new Set(c.flatMap((y) => typeof y == "object" && !Array.isArray(y)))].includes(!1) ? !1 : !c.map((y) => Object.keys(y).length > 0).includes(!1);
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
const y = Object.keys(c).sort(),
|
|
50
|
-
if (y.length !==
|
|
49
|
+
function ea(c, C) {
|
|
50
|
+
const y = Object.keys(c).sort(), T = Object.keys(C).sort();
|
|
51
|
+
if (y.length !== T.length)
|
|
51
52
|
return !1;
|
|
52
53
|
for (let H = 0; H < y.length; H += 1) {
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
54
|
+
const ge = y[H], me = T[H];
|
|
55
|
+
if (ge !== me || typeof c[ge] != typeof C[me])
|
|
55
56
|
return !1;
|
|
56
57
|
}
|
|
57
58
|
return !0;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function ta(c) {
|
|
60
61
|
if (c.length <= 1) return !0;
|
|
61
62
|
for (let C = 0; C < c.length; C += 1)
|
|
62
63
|
for (let y = C + 1; y < c.length; y += 1)
|
|
63
|
-
if (!
|
|
64
|
+
if (!ea(c[C], c[y]))
|
|
64
65
|
return !1;
|
|
65
66
|
return !0;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
68
|
+
function aa(c) {
|
|
69
|
+
return Qt.includes(c.toUpperCase());
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function yt(c, C) {
|
|
71
72
|
let y = [];
|
|
72
|
-
for (let
|
|
73
|
-
y.push(C(c[
|
|
73
|
+
for (let T = 0; T < c.length; T += 1)
|
|
74
|
+
y.push(C(c[T]));
|
|
74
75
|
return y.includes(!0);
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function xt(c) {
|
|
77
78
|
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((y) => Y(y)).map((y) => y.length)));
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function la(c, C) {
|
|
80
81
|
return Object.values(c).filter((y) => C(y))[0];
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function kt(c) {
|
|
83
84
|
const C = {};
|
|
84
85
|
for (let y in c)
|
|
85
86
|
c.hasOwnProperty(y) && (C[y.toUpperCase()] = c[y]);
|
|
86
87
|
return C;
|
|
87
88
|
}
|
|
88
|
-
const
|
|
89
|
+
const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"], ia = ["x", "y", "width", "height"], ra = ["width", "height"], sa = ["id"], va = ["id"], da = ["id"], ca = ["flood-color"], ha = {
|
|
89
90
|
key: 0,
|
|
90
91
|
class: "donut-label-connectors"
|
|
91
|
-
},
|
|
92
|
+
}, fa = ["d", "stroke", "stroke-width", "filter"], ga = ["cx", "cy", "r", "fill", "filter"], ma = { class: "donut" }, pa = ["d", "fill", "stroke", "stroke-width", "filter"], ya = ["d", "onMouseenter", "onClick"], xa = {
|
|
92
93
|
key: 1,
|
|
93
94
|
class: "donut-labels quick-animation"
|
|
94
|
-
},
|
|
95
|
+
}, ka = ["cx", "cy", "fill", "stroke", "filter"], ba = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Sa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], wa = {
|
|
95
96
|
key: 2,
|
|
96
97
|
class: "donut-hollow quick-animation"
|
|
97
|
-
},
|
|
98
|
+
}, Aa = ["x", "y", "font-size", "fill"], _a = ["x", "y", "font-size", "fill"], La = {
|
|
98
99
|
key: 0,
|
|
99
100
|
class: "line-grid"
|
|
100
|
-
},
|
|
101
|
+
}, za = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = {
|
|
101
102
|
key: 1,
|
|
102
103
|
class: "line-axis"
|
|
103
|
-
},
|
|
104
|
+
}, Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = {
|
|
104
105
|
key: 2,
|
|
105
106
|
class: "yLabels"
|
|
106
|
-
},
|
|
107
|
+
}, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["x", "y", "font-size", "fill"], Ra = {
|
|
107
108
|
key: 3,
|
|
108
109
|
class: "periodLabels"
|
|
109
|
-
},
|
|
110
|
+
}, Ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["font-size", "text-anchor", "fill", "transform"], Fa = { class: "plots" }, Ua = { class: "line-plot-series" }, Da = ["d", "stroke", "stroke-width"], Ba = ["d", "stroke", "stroke-width"], Va = ["d", "stroke", "stroke-width"], qa = ["d", "stroke", "stroke-width"], Ha = ["cx", "cy", "fill", "stroke"], Wa = {
|
|
110
111
|
key: 4,
|
|
111
112
|
class: "dataLabels"
|
|
112
|
-
},
|
|
113
|
+
}, ja = ["font-size", "fill", "x", "y"], Ga = { class: "tooltip-traps" }, Xa = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Za = {
|
|
113
114
|
key: 0,
|
|
114
115
|
class: "line-grid"
|
|
115
|
-
},
|
|
116
|
+
}, Ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ja = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qa = {
|
|
116
117
|
key: 1,
|
|
117
118
|
class: "line-axis"
|
|
118
|
-
},
|
|
119
|
+
}, Ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = {
|
|
119
120
|
key: 2,
|
|
120
121
|
class: "yLabels"
|
|
121
|
-
},
|
|
122
|
+
}, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x", "y", "font-size", "fill"], ol = {
|
|
122
123
|
key: 3,
|
|
123
124
|
class: "periodLabels"
|
|
124
|
-
},
|
|
125
|
+
}, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["font-size", "text-anchor", "transform", "fill"], il = { class: "plots" }, rl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], sl = ["to"], vl = ["from", "to"], dl = {
|
|
125
126
|
key: 4,
|
|
126
127
|
class: "dataLabels"
|
|
127
|
-
},
|
|
128
|
+
}, cl = ["x", "y", "font-size", "fill"], hl = { class: "tooltip-traps" }, fl = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], gl = {
|
|
128
129
|
key: 6,
|
|
129
130
|
class: "axis-labels"
|
|
130
|
-
},
|
|
131
|
+
}, ml = { key: 0 }, pl = ["font-size", "fill", "x", "y"], yl = { key: 1 }, xl = ["font-size", "fill", "x", "y"], kl = { key: 2 }, bl = ["font-size", "fill", "transform"], Sl = { key: 3 }, wl = ["font-size", "fill", "transform"], Al = {
|
|
131
132
|
key: 6,
|
|
132
133
|
class: "vue-data-ui-watermark"
|
|
133
|
-
},
|
|
134
|
+
}, _l = ["onClick"], Ll = ["onClick"], zl = ["onClick"], $l = {
|
|
134
135
|
key: 1,
|
|
135
136
|
class: "vue-ui-quick-chart-not-processable"
|
|
136
|
-
},
|
|
137
|
+
}, Cl = {
|
|
137
138
|
__name: "vue-ui-quick-chart",
|
|
138
139
|
props: {
|
|
139
140
|
config: {
|
|
@@ -151,34 +152,34 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
151
152
|
},
|
|
152
153
|
emits: ["selectDatapoint", "selectLegend"],
|
|
153
154
|
setup(c, { expose: C, emit: y }) {
|
|
154
|
-
const
|
|
155
|
-
get: () =>
|
|
155
|
+
const T = ce(() => import("./BaseIcon-lwpKi6Wa.js")), H = ce(() => import("./PackageVersion-1psmmuzo.js")), ge = ce(() => import("./PenAndPaper-DgUkj01g.js")), me = ce(() => import("./vue-ui-skeleton-CO_Hk6A_.js")), pe = ce(() => import("./Tooltip-Df2iF7bv.js")), $e = ce(() => import("./UserOptions-NrArsCuC.js")), { vue_ui_quick_chart: N } = Rt(), D = c, ye = z(null), Ge = z(null), Xe = z(null), Ze = z(null), J = z(Mt()), ee = z(!1), xe = z(null), te = z(""), W = z(null), Ye = z(null), Je = z(null), w = z([]), Qe = z(0), Ce = z(0), e = U({
|
|
156
|
+
get: () => at(),
|
|
156
157
|
set: (o) => o
|
|
157
|
-
}), { svgRef:
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
}), { svgRef: Ke } = Xt({ config: { text: e.value.title } }), St = U(() => e.value.showUserOptionsOnChartHover), et = U(() => e.value.keepUserOptionsStateOnChartLeave), Ie = z(!e.value.showUserOptionsOnChartHover);
|
|
159
|
+
function tt(o = !1) {
|
|
160
|
+
St.value && (Ie.value = o);
|
|
160
161
|
}
|
|
161
|
-
function
|
|
162
|
-
const o =
|
|
163
|
-
userConfig:
|
|
162
|
+
function at() {
|
|
163
|
+
const o = pt({
|
|
164
|
+
userConfig: D.config,
|
|
164
165
|
defaultConfig: N
|
|
165
166
|
});
|
|
166
167
|
let s = {};
|
|
167
168
|
return o.theme ? s = {
|
|
168
|
-
...
|
|
169
|
-
userConfig:
|
|
169
|
+
...pt({
|
|
170
|
+
userConfig: Ft.vue_ui_quick_chart[o.theme] || D.config,
|
|
170
171
|
defaultConfig: o
|
|
171
172
|
}),
|
|
172
|
-
customPalette:
|
|
173
|
-
} : s = o,
|
|
173
|
+
customPalette: Nt[o.theme] || q
|
|
174
|
+
} : s = o, D.config && ft(D.config, "zoomStartIndex") ? s.zoomStartIndex = D.config.zoomStartIndex : s.zoomStartIndex = null, D.config && ft(D.config, "zoomEndIndex") ? s.zoomEndIndex = D.config.zoomEndIndex : s.zoomEndIndex = null, s;
|
|
174
175
|
}
|
|
175
|
-
|
|
176
|
-
e.value =
|
|
177
|
-
}, { deep: !0 }),
|
|
178
|
-
|
|
176
|
+
Ve(() => D.config, (o) => {
|
|
177
|
+
e.value = at(), b.value.width = e.value.width, b.value.height = e.value.height, Ie.value = !e.value.showUserOptionsOnChartHover, nt(), Se.value.showTooltip = e.value.showTooltip;
|
|
178
|
+
}, { deep: !0 }), Ve(() => D.dataset, (o) => {
|
|
179
|
+
p.value = be.value, x.value.start = 0, x.value.end = p.value.maxSeriesLength, Ce.value += 1;
|
|
179
180
|
}, { deep: !0 });
|
|
180
|
-
const
|
|
181
|
-
const o =
|
|
181
|
+
const ke = U(() => Ut(e.value.customPalette)), ie = y, be = U(() => {
|
|
182
|
+
const o = Kt({ dataset: Dt(D.dataset, [
|
|
182
183
|
"serie",
|
|
183
184
|
"series",
|
|
184
185
|
"data",
|
|
@@ -187,50 +188,50 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
187
188
|
"num"
|
|
188
189
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
189
190
|
return o || console.error("VueUiQuickChart : Dataset is not processable"), o;
|
|
190
|
-
}),
|
|
191
|
-
|
|
191
|
+
}), p = z(be.value), wt = U(() => !!p.value), L = U(() => p.value ? p.value.type : null);
|
|
192
|
+
Ve(() => L.value, (o) => {
|
|
192
193
|
o || Bt({
|
|
193
194
|
componentName: "VueUiQuickChart",
|
|
194
195
|
type: "dataset"
|
|
195
196
|
});
|
|
196
197
|
}, { immediate: !0 });
|
|
197
|
-
const { isPrinting:
|
|
198
|
-
elementId: `${
|
|
199
|
-
fileName: e.value.title ||
|
|
198
|
+
const { isPrinting: Ee, isImaging: Oe, generatePdf: lt, generateImage: ot } = Gt({
|
|
199
|
+
elementId: `${L.value}_${J.value}`,
|
|
200
|
+
fileName: e.value.title || L.value,
|
|
200
201
|
options: e.value.userOptionsPrint
|
|
201
|
-
}),
|
|
202
|
+
}), At = U(() => e.value.showUserOptions && !e.value.title), b = z({
|
|
202
203
|
width: e.value.width,
|
|
203
204
|
height: e.value.height
|
|
204
|
-
}),
|
|
205
|
+
}), Se = z({
|
|
205
206
|
showTooltip: e.value.showTooltip
|
|
206
|
-
}), Q =
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
}), Q = ht(null), re = ht(null);
|
|
208
|
+
Ot(() => {
|
|
209
|
+
nt();
|
|
209
210
|
});
|
|
210
|
-
function
|
|
211
|
+
function nt() {
|
|
211
212
|
if (e.value.responsive) {
|
|
212
|
-
const o =
|
|
213
|
-
const { width: s, height: t } =
|
|
214
|
-
chart:
|
|
215
|
-
title: e.value.title ?
|
|
216
|
-
legend: e.value.showLegend ?
|
|
217
|
-
slicer: [A.BAR, A.LINE].includes(
|
|
218
|
-
source:
|
|
219
|
-
noTitle:
|
|
213
|
+
const o = Wt(() => {
|
|
214
|
+
const { width: s, height: t } = jt({
|
|
215
|
+
chart: ye.value,
|
|
216
|
+
title: e.value.title ? Ge.value : null,
|
|
217
|
+
legend: e.value.showLegend ? Xe.value : null,
|
|
218
|
+
slicer: [A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? Ze.value : null,
|
|
219
|
+
source: Ye.value,
|
|
220
|
+
noTitle: Je.value
|
|
220
221
|
});
|
|
221
222
|
requestAnimationFrame(() => {
|
|
222
223
|
b.value.width = s, b.value.height = t;
|
|
223
224
|
});
|
|
224
225
|
});
|
|
225
|
-
Q.value && (
|
|
226
|
+
Q.value && (re.value && Q.value.unobserve(re.value), Q.value.disconnect()), Q.value = new ResizeObserver(o), re.value = ye.value.parentNode, Q.value.observe(re.value);
|
|
226
227
|
}
|
|
227
|
-
|
|
228
|
+
dt();
|
|
228
229
|
}
|
|
229
|
-
|
|
230
|
-
Q.value && (
|
|
230
|
+
Tt(() => {
|
|
231
|
+
Q.value && (re.value && Q.value.unobserve(re.value), Q.value.disconnect());
|
|
231
232
|
});
|
|
232
|
-
const
|
|
233
|
-
switch (
|
|
233
|
+
const _t = U(() => {
|
|
234
|
+
switch (L.value) {
|
|
234
235
|
case A.LINE:
|
|
235
236
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
236
237
|
case A.BAR:
|
|
@@ -241,79 +242,79 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
241
242
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
|
-
function
|
|
245
|
+
function ut(o) {
|
|
245
246
|
return [...o].map((s) => s.value).reduce((s, t) => s + t, 0);
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
+
function we(o) {
|
|
248
249
|
return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${J.value})` : "";
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
+
function it(o, s) {
|
|
251
252
|
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
|
|
252
253
|
}
|
|
253
|
-
const
|
|
254
|
-
function
|
|
255
|
-
|
|
254
|
+
const rt = z(null), st = z(null), Te = z(!1);
|
|
255
|
+
function Lt(o, s) {
|
|
256
|
+
Te.value = !0;
|
|
256
257
|
let t = o.value;
|
|
257
|
-
const i =
|
|
258
|
+
const i = be.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
|
|
258
259
|
if (w.value.includes(o.id)) {
|
|
259
260
|
let r = function() {
|
|
260
|
-
t > i ? (
|
|
261
|
-
...
|
|
262
|
-
dataset:
|
|
261
|
+
t > i ? (Te.value = !1, cancelAnimationFrame(st.value), p.value = {
|
|
262
|
+
...p.value,
|
|
263
|
+
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
263
264
|
...h,
|
|
264
265
|
value: i,
|
|
265
266
|
VALUE: i
|
|
266
267
|
} : h)
|
|
267
|
-
}) : (t += i * 0.025,
|
|
268
|
-
...
|
|
269
|
-
dataset:
|
|
268
|
+
}) : (t += i * 0.025, p.value = {
|
|
269
|
+
...p.value,
|
|
270
|
+
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
270
271
|
...h,
|
|
271
272
|
value: t,
|
|
272
273
|
VALUE: t
|
|
273
274
|
} : h)
|
|
274
|
-
},
|
|
275
|
+
}, st.value = requestAnimationFrame(r));
|
|
275
276
|
};
|
|
276
277
|
w.value = w.value.filter((h) => h !== o.id), r();
|
|
277
278
|
} else if (s.length > 1) {
|
|
278
279
|
let r = function() {
|
|
279
|
-
t < i / 100 ? (
|
|
280
|
-
...
|
|
281
|
-
dataset:
|
|
280
|
+
t < i / 100 ? (Te.value = !1, cancelAnimationFrame(rt.value), w.value.push(o.id), p.value = {
|
|
281
|
+
...p.value,
|
|
282
|
+
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
282
283
|
...h,
|
|
283
284
|
value: 0,
|
|
284
285
|
VALUE: 0
|
|
285
286
|
} : h)
|
|
286
|
-
}) : (t /= 1.1,
|
|
287
|
-
...
|
|
288
|
-
dataset:
|
|
287
|
+
}) : (t /= 1.1, p.value = {
|
|
288
|
+
...p.value,
|
|
289
|
+
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
289
290
|
...h,
|
|
290
291
|
value: t,
|
|
291
292
|
VALUE: t
|
|
292
293
|
} : h)
|
|
293
|
-
},
|
|
294
|
+
}, rt.value = requestAnimationFrame(r));
|
|
294
295
|
};
|
|
295
296
|
r();
|
|
296
297
|
}
|
|
297
298
|
}
|
|
298
|
-
const j =
|
|
299
|
+
const j = z(null);
|
|
299
300
|
function zt(o) {
|
|
300
301
|
j.value = o;
|
|
301
302
|
}
|
|
302
|
-
const
|
|
303
|
-
if (
|
|
304
|
-
const o =
|
|
303
|
+
const vt = U(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = U(() => {
|
|
304
|
+
if (L.value !== A.DONUT) return null;
|
|
305
|
+
const o = p.value.dataset.map((n, u) => ({
|
|
305
306
|
...n,
|
|
306
307
|
value: n.VALUE || n.DATA || n.SERIE || n.VALUES || n.NUM || 0,
|
|
307
308
|
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${u}`,
|
|
308
309
|
id: `donut_${u}`
|
|
309
310
|
})).map((n, u) => ({
|
|
310
311
|
...n,
|
|
311
|
-
color: n.COLOR ?
|
|
312
|
+
color: n.COLOR ? He(n.COLOR) : ke.value[u + e.value.paletteStartIndex] || q[u + e.value.paletteStartIndex] || q[(u + e.value.paletteStartIndex) % q.length],
|
|
312
313
|
immutableValue: n.value
|
|
313
314
|
}));
|
|
314
315
|
function s(n, u) {
|
|
315
|
-
return
|
|
316
|
-
v: isNaN(n.value /
|
|
316
|
+
return B({
|
|
317
|
+
v: isNaN(n.value / ut(u)) ? 0 : n.value / ut(u) * 100,
|
|
317
318
|
s: "%",
|
|
318
319
|
r: e.value.dataLabelRoundingPercentage
|
|
319
320
|
});
|
|
@@ -322,19 +323,19 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
322
323
|
return n.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
323
324
|
}
|
|
324
325
|
function i(n, u) {
|
|
325
|
-
const S =
|
|
326
|
+
const S = be.value.dataset.find((E, F) => `donut_${F}` === n).VALUE;
|
|
326
327
|
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(u.toFixed(0))).length);
|
|
327
328
|
}
|
|
328
329
|
function r({ datapoint: n, seriesIndex: u }) {
|
|
329
|
-
|
|
330
|
+
xe.value = { datapoint: n, seriesIndex: u, config: e.value, dataset: o }, W.value = n.id;
|
|
330
331
|
const S = e.value.tooltipCustomFormat;
|
|
331
|
-
if (
|
|
332
|
+
if (Fe(S) && je(() => S({
|
|
332
333
|
datapoint: n,
|
|
333
334
|
seriesIndex: u,
|
|
334
335
|
series: o,
|
|
335
336
|
config: e.value
|
|
336
337
|
})))
|
|
337
|
-
|
|
338
|
+
te.value = S({
|
|
338
339
|
datapoint: n,
|
|
339
340
|
seriesIndex: u,
|
|
340
341
|
series: o,
|
|
@@ -345,80 +346,80 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
345
346
|
k += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, k += `<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="${n.color}"/></svg>`, k += `<b>${X(
|
|
346
347
|
e.value.formatter,
|
|
347
348
|
n.value,
|
|
348
|
-
|
|
349
|
+
B({
|
|
349
350
|
p: e.value.valuePrefix,
|
|
350
351
|
v: n.value,
|
|
351
352
|
s: e.value.valueSuffix,
|
|
352
353
|
r: e.value.dataLabelRoundingValue
|
|
353
354
|
}),
|
|
354
355
|
{ datapoint: n, seriesIndex: u }
|
|
355
|
-
)}</b>`, k += `<span>(${
|
|
356
|
+
)}</b>`, k += `<span>(${B({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, te.value = `<div>${k}</div>`;
|
|
356
357
|
}
|
|
357
|
-
|
|
358
|
+
ee.value = !0;
|
|
358
359
|
}
|
|
359
360
|
function h() {
|
|
360
|
-
|
|
361
|
+
ee.value = !1, W.value = null, j.value = null;
|
|
361
362
|
}
|
|
362
|
-
const
|
|
363
|
+
const P = {
|
|
363
364
|
centerX: b.value.width / 2,
|
|
364
365
|
centerY: b.value.height / 2
|
|
365
|
-
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, u) => n + u, 0),
|
|
366
|
+
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, u) => n + u, 0), ve = o.map((n, u) => ({
|
|
366
367
|
...n,
|
|
367
368
|
proportion: (n.value || 0) / V,
|
|
368
369
|
value: n.value || 0,
|
|
369
|
-
absoluteValue:
|
|
370
|
-
})),
|
|
370
|
+
absoluteValue: be.value.dataset.find((S, k) => `donut_${k}` === n.id).VALUE
|
|
371
|
+
})), ae = b.value.width / 2, de = b.value.height / 2, le = b.value.height * e.value.donutRadiusRatio;
|
|
371
372
|
return {
|
|
372
|
-
dataset:
|
|
373
|
-
legend:
|
|
374
|
-
drawingArea:
|
|
373
|
+
dataset: ve.filter((n) => !w.value.includes(n.id)),
|
|
374
|
+
legend: ve,
|
|
375
|
+
drawingArea: P,
|
|
375
376
|
displayArcPercentage: s,
|
|
376
377
|
isArcBigEnough: t,
|
|
377
378
|
useTooltip: r,
|
|
378
379
|
killTooltip: h,
|
|
379
380
|
getSpaces: i,
|
|
380
381
|
total: V,
|
|
381
|
-
cx:
|
|
382
|
-
cy:
|
|
383
|
-
radius:
|
|
384
|
-
chart:
|
|
382
|
+
cx: ae,
|
|
383
|
+
cy: de,
|
|
384
|
+
radius: le,
|
|
385
|
+
chart: Vt(
|
|
385
386
|
{ series: o.filter((n) => !w.value.includes(n.id)) },
|
|
386
|
-
te,
|
|
387
|
-
ve,
|
|
388
|
-
ae,
|
|
389
387
|
ae,
|
|
388
|
+
de,
|
|
389
|
+
le,
|
|
390
|
+
le,
|
|
390
391
|
1.99999,
|
|
391
392
|
2,
|
|
392
393
|
1,
|
|
393
394
|
360,
|
|
394
395
|
105.25,
|
|
395
|
-
b.value.height *
|
|
396
|
+
b.value.height * vt.value
|
|
396
397
|
)
|
|
397
398
|
};
|
|
398
|
-
}),
|
|
399
|
+
}), x = z({
|
|
399
400
|
start: 0,
|
|
400
|
-
end:
|
|
401
|
+
end: p.value.maxSeriesLength
|
|
401
402
|
});
|
|
402
|
-
function
|
|
403
|
-
|
|
403
|
+
function $t() {
|
|
404
|
+
dt();
|
|
404
405
|
}
|
|
405
|
-
const
|
|
406
|
-
async function
|
|
407
|
-
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) &&
|
|
406
|
+
const se = z(null);
|
|
407
|
+
async function dt() {
|
|
408
|
+
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && se.value ? (e.value.zoomStartIndex !== null && (await Me(), await Me(), se.value && se.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Me(), await Me(), se.value && se.value.setEndValue(Ct(e.value.zoomEndIndex + 1)))) : (x.value = {
|
|
408
409
|
start: 0,
|
|
409
|
-
end:
|
|
410
|
-
},
|
|
410
|
+
end: p.value.maxSeriesLength
|
|
411
|
+
}, Ce.value += 1);
|
|
411
412
|
}
|
|
412
|
-
function
|
|
413
|
-
const s =
|
|
413
|
+
function Ct(o) {
|
|
414
|
+
const s = p.value.maxSeriesLength;
|
|
414
415
|
return o > s ? s : o < 0 || e.value.zoomStartIndex !== null && o < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : o;
|
|
415
416
|
}
|
|
416
|
-
const
|
|
417
|
-
if (!e.value.zoomMinimap.show ||
|
|
417
|
+
const It = U(() => {
|
|
418
|
+
if (!e.value.zoomMinimap.show || L.value === A.DONUT) return [];
|
|
418
419
|
let o = [];
|
|
419
|
-
Y(
|
|
420
|
+
Y(p.value.dataset) && (o = p.value.dataset), Ue(p.value.dataset) && (o = p.value.dataset.map((r, h) => ({
|
|
420
421
|
values: r.VALUE || r.DATA || r.SERIE || r.SERIES || r.VALUES || r.NUM || 0,
|
|
421
|
-
id:
|
|
422
|
+
id: L.value === A.LINE ? `line_${h}` : `bar_${h}`
|
|
422
423
|
})).filter((r) => !w.value.includes(r.id)));
|
|
423
424
|
const s = Y(o) ? o.length : Math.max(...o.map((r) => r.values.length));
|
|
424
425
|
let t = [];
|
|
@@ -426,11 +427,11 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
426
427
|
t = o;
|
|
427
428
|
else
|
|
428
429
|
for (let r = 0; r < s; r += 1)
|
|
429
|
-
t.push(o.map((h) => h.values[r] || 0).reduce((h,
|
|
430
|
+
t.push(o.map((h) => h.values[r] || 0).reduce((h, P) => (h || 0) + (P || 0), 0));
|
|
430
431
|
const i = Math.min(...t);
|
|
431
432
|
return t.map((r) => r + (i < 0 ? Math.abs(i) : 0));
|
|
432
433
|
}), d = U(() => {
|
|
433
|
-
if (
|
|
434
|
+
if (L.value !== A.LINE) return null;
|
|
434
435
|
const o = {
|
|
435
436
|
height: b.value.height,
|
|
436
437
|
width: b.value.width
|
|
@@ -443,34 +444,34 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
443
444
|
height: o.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
444
445
|
};
|
|
445
446
|
let t = [];
|
|
446
|
-
Y(
|
|
447
|
+
Y(p.value.dataset) && (t = [
|
|
447
448
|
{
|
|
448
|
-
values:
|
|
449
|
-
absoluteIndices:
|
|
449
|
+
values: p.value.dataset.slice(x.value.start, x.value.end),
|
|
450
|
+
absoluteIndices: p.value.dataset.map((n, u) => u).slice(x.value.start, x.value.end),
|
|
450
451
|
name: e.value.title,
|
|
451
|
-
color:
|
|
452
|
+
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
452
453
|
id: "line_0"
|
|
453
454
|
}
|
|
454
|
-
]),
|
|
455
|
+
]), Ue(p.value.dataset) && (t = p.value.dataset.map((n, u) => ({
|
|
455
456
|
...n,
|
|
456
457
|
values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
|
|
457
458
|
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${u}`,
|
|
458
459
|
id: `line_${u}`
|
|
459
460
|
})).map((n, u) => ({
|
|
460
461
|
...n,
|
|
461
|
-
color: n.COLOR ?
|
|
462
|
-
values: n.values.slice(
|
|
463
|
-
absoluteIndices: n.values.map((S, k) => k).slice(
|
|
462
|
+
color: n.COLOR ? He(n.COLOR) : ke.value[u + e.value.paletteStartIndex] || q[u + e.value.paletteStartIndex] || q[(u + e.value.paletteStartIndex) % q.length],
|
|
463
|
+
values: n.values.slice(x.value.start, x.value.end),
|
|
464
|
+
absoluteIndices: n.values.map((S, k) => k).slice(x.value.start, x.value.end)
|
|
464
465
|
})));
|
|
465
466
|
const i = {
|
|
466
467
|
max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
467
468
|
min: Math.min(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
468
469
|
maxSeries: Math.max(...t.map((n) => n.values.length))
|
|
469
|
-
}, r =
|
|
470
|
+
}, r = gt(i.min < 0 ? i.min : 0, i.max < 0 ? 0 : i.max, e.value.xyScaleSegments), h = i.min < 0 ? Math.abs(i.min) : 0, P = i.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, V = s.width / i.maxSeries, ve = r.ticks.map((n) => ({
|
|
470
471
|
y: s.bottom - s.height * ((n + h) / (r.max + h)),
|
|
471
472
|
x: s.left - 8,
|
|
472
473
|
value: n
|
|
473
|
-
})),
|
|
474
|
+
})), ae = t.map((n, u) => ({
|
|
474
475
|
...n,
|
|
475
476
|
coordinates: n.values.map((S, k) => ({
|
|
476
477
|
x: s.left + V * (k + 1) - V / 2,
|
|
@@ -486,22 +487,22 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
486
487
|
linePath: u.join(" ")
|
|
487
488
|
};
|
|
488
489
|
});
|
|
489
|
-
function
|
|
490
|
+
function de(n) {
|
|
490
491
|
W.value = n, j.value = n;
|
|
491
492
|
const u = t.map((k) => ({
|
|
492
493
|
...k,
|
|
493
494
|
value: k.values[n],
|
|
494
495
|
absoluteIndex: k.absoluteIndices[n]
|
|
495
496
|
})).filter((k) => !w.value.includes(k.id));
|
|
496
|
-
|
|
497
|
+
xe.value = { datapoint: u, seriesIndex: n, config: e.value, dataset: t };
|
|
497
498
|
const S = e.value.tooltipCustomFormat;
|
|
498
|
-
if (
|
|
499
|
+
if (Fe(S) && je(() => S({
|
|
499
500
|
datapoint: u,
|
|
500
501
|
seriesIndex: n,
|
|
501
502
|
series: t,
|
|
502
503
|
config: e.value
|
|
503
504
|
})))
|
|
504
|
-
|
|
505
|
+
te.value = S({
|
|
505
506
|
datapoint: u,
|
|
506
507
|
seriesIndex: n,
|
|
507
508
|
series: t,
|
|
@@ -509,7 +510,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
509
510
|
});
|
|
510
511
|
else {
|
|
511
512
|
let k = "";
|
|
512
|
-
|
|
513
|
+
K.value[u[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[u[0].absoluteIndex].text}</div>`), u.forEach((E, F) => {
|
|
513
514
|
k += `
|
|
514
515
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
515
516
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${E.color}"/></svg>
|
|
@@ -517,7 +518,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
517
518
|
<b>${X(
|
|
518
519
|
e.value.formatter,
|
|
519
520
|
E.value,
|
|
520
|
-
|
|
521
|
+
B({
|
|
521
522
|
p: e.value.valuePrefix,
|
|
522
523
|
v: E.value,
|
|
523
524
|
s: e.value.valueSuffix,
|
|
@@ -528,26 +529,26 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
528
529
|
</b>
|
|
529
530
|
</div>
|
|
530
531
|
`;
|
|
531
|
-
}),
|
|
532
|
+
}), te.value = k;
|
|
532
533
|
}
|
|
533
|
-
|
|
534
|
+
ee.value = !0;
|
|
534
535
|
}
|
|
535
|
-
function
|
|
536
|
-
W.value = null, j.value = null,
|
|
536
|
+
function le() {
|
|
537
|
+
W.value = null, j.value = null, ee.value = !1;
|
|
537
538
|
}
|
|
538
539
|
return {
|
|
539
|
-
absoluteZero:
|
|
540
|
-
dataset:
|
|
541
|
-
legend:
|
|
540
|
+
absoluteZero: P,
|
|
541
|
+
dataset: ae.filter((n) => !w.value.includes(n.id)),
|
|
542
|
+
legend: ae,
|
|
542
543
|
drawingArea: s,
|
|
543
544
|
extremes: i,
|
|
544
545
|
slotSize: V,
|
|
545
|
-
yLabels:
|
|
546
|
-
useTooltip:
|
|
547
|
-
killTooltip:
|
|
546
|
+
yLabels: ve,
|
|
547
|
+
useTooltip: de,
|
|
548
|
+
killTooltip: le
|
|
548
549
|
};
|
|
549
550
|
}), v = U(() => {
|
|
550
|
-
if (
|
|
551
|
+
if (L.value !== A.BAR) return null;
|
|
551
552
|
const o = {
|
|
552
553
|
height: b.value.height,
|
|
553
554
|
width: b.value.width
|
|
@@ -560,74 +561,74 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
560
561
|
height: o.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
561
562
|
};
|
|
562
563
|
let t = [];
|
|
563
|
-
Y(
|
|
564
|
+
Y(p.value.dataset) && (t = [
|
|
564
565
|
{
|
|
565
|
-
values:
|
|
566
|
-
absoluteIndices:
|
|
566
|
+
values: p.value.dataset.slice(x.value.start, x.value.end),
|
|
567
|
+
absoluteIndices: p.value.dataset.map((u, S) => S).slice(x.value.start, x.value.end),
|
|
567
568
|
name: e.value.title,
|
|
568
|
-
color:
|
|
569
|
+
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
569
570
|
id: "bar_0"
|
|
570
571
|
}
|
|
571
|
-
]),
|
|
572
|
+
]), Ue(p.value.dataset) && (t = p.value.dataset.map((u, S) => ({
|
|
572
573
|
...u,
|
|
573
574
|
values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
|
|
574
575
|
name: u.NAME || u.DESCRIPTION || u.TITLE || u.LABEL || `Serie ${S}`,
|
|
575
576
|
id: `bar_${S}`
|
|
576
577
|
})).map((u, S) => ({
|
|
577
578
|
...u,
|
|
578
|
-
color: u.COLOR ?
|
|
579
|
-
values: u.values.slice(
|
|
580
|
-
absoluteIndices: u.values.map((k, E) => E).slice(
|
|
579
|
+
color: u.COLOR ? He(u.COLOR) : ke.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
|
|
580
|
+
values: u.values.slice(x.value.start, x.value.end),
|
|
581
|
+
absoluteIndices: u.values.map((k, E) => E).slice(x.value.start, x.value.end)
|
|
581
582
|
})));
|
|
582
583
|
const i = {
|
|
583
584
|
max: Math.max(...t.filter((u) => !w.value.includes(u.id)).flatMap((u) => u.values)) < 0 ? 0 : Math.max(...t.filter((u) => !w.value.includes(u.id)).flatMap((u) => u.values)),
|
|
584
585
|
min: Math.min(...t.filter((u) => !w.value.includes(u.id)).flatMap((u) => u.values)),
|
|
585
586
|
maxSeries: Math.max(...t.filter((u) => !w.value.includes(u.id)).map((u) => u.values.length))
|
|
586
|
-
}, r =
|
|
587
|
+
}, r = gt(i.min < 0 ? i.min : 0, i.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, P = s.bottom - h / (r.max + h) * s.height, V = s.width / i.maxSeries, ve = r.ticks.map((u) => ({
|
|
587
588
|
y: s.bottom - s.height * ((u + h) / (r.max + h)),
|
|
588
589
|
x: s.left - 8,
|
|
589
590
|
value: u
|
|
590
|
-
})),
|
|
591
|
+
})), ae = t.map((u, S) => ({
|
|
591
592
|
...u,
|
|
592
593
|
coordinates: u.values.map((k, E) => {
|
|
593
|
-
const F = (k + h) / (i.max + h) * s.height,
|
|
594
|
+
const F = (k + h) / (i.max + h) * s.height, Ae = Math.abs(k) / Math.abs(i.min) * (s.height - P), Be = h / (i.max + h) * s.height, _e = V / t.filter((oe) => !w.value.includes(oe.id)).length - e.value.barGap / t.filter((oe) => !w.value.includes(oe.id)).length;
|
|
594
595
|
return {
|
|
595
|
-
x: s.left + V * E +
|
|
596
|
-
y: k > 0 ? s.bottom - F :
|
|
597
|
-
height: k > 0 ? F - Be :
|
|
596
|
+
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
597
|
+
y: k > 0 ? s.bottom - F : P,
|
|
598
|
+
height: k > 0 ? F - Be : Ae,
|
|
598
599
|
value: k,
|
|
599
|
-
width:
|
|
600
|
+
width: _e
|
|
600
601
|
};
|
|
601
602
|
})
|
|
602
|
-
})),
|
|
603
|
+
})), de = t.filter((u) => !w.value.includes(u.id)).map((u, S) => ({
|
|
603
604
|
...u,
|
|
604
605
|
coordinates: u.values.map((k, E) => {
|
|
605
|
-
const F = (k + h) / (i.max + h) * s.height,
|
|
606
|
+
const F = (k + h) / (i.max + h) * s.height, Ae = Math.abs(k) / (i.max + h) * s.height, Be = h / (i.max + h) * s.height, _e = V / t.filter((oe) => !w.value.includes(oe.id)).length - e.value.barGap / t.filter((oe) => !w.value.includes(oe.id)).length;
|
|
606
607
|
return {
|
|
607
|
-
x: s.left + V * E +
|
|
608
|
-
y: k > 0 ? s.bottom - F :
|
|
609
|
-
height: k > 0 ? F - Be :
|
|
608
|
+
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
609
|
+
y: k > 0 ? s.bottom - F : P,
|
|
610
|
+
height: k > 0 ? F - Be : Ae,
|
|
610
611
|
value: k,
|
|
611
|
-
width:
|
|
612
|
+
width: _e
|
|
612
613
|
};
|
|
613
614
|
})
|
|
614
615
|
}));
|
|
615
|
-
function
|
|
616
|
+
function le(u) {
|
|
616
617
|
W.value = u, j.value = u;
|
|
617
618
|
const S = t.map((E) => ({
|
|
618
619
|
...E,
|
|
619
620
|
value: E.values[u],
|
|
620
621
|
absoluteIndex: E.absoluteIndices[u]
|
|
621
622
|
})).filter((E) => !w.value.includes(E.id));
|
|
622
|
-
|
|
623
|
+
xe.value = { datapoint: S, seriesIndex: u, config: e.value, dataset: t };
|
|
623
624
|
const k = e.value.tooltipCustomFormat;
|
|
624
|
-
if (
|
|
625
|
+
if (Fe(k) && je(() => k({
|
|
625
626
|
datapoint: S,
|
|
626
627
|
seriesIndex: u,
|
|
627
628
|
series: t,
|
|
628
629
|
config: e.value
|
|
629
630
|
})))
|
|
630
|
-
|
|
631
|
+
te.value = k({
|
|
631
632
|
point: S,
|
|
632
633
|
seriesIndex: u,
|
|
633
634
|
series: t,
|
|
@@ -635,7 +636,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
635
636
|
});
|
|
636
637
|
else {
|
|
637
638
|
let E = "";
|
|
638
|
-
|
|
639
|
+
K.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[S[0].absoluteIndex].text}</div>`), S.forEach((F, Ae) => {
|
|
639
640
|
E += `
|
|
640
641
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
641
642
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${F.color}"/></svg>
|
|
@@ -643,110 +644,116 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
643
644
|
<b>${X(
|
|
644
645
|
e.value.formatter,
|
|
645
646
|
F.value,
|
|
646
|
-
|
|
647
|
+
B({
|
|
647
648
|
p: e.value.valuePrefix,
|
|
648
649
|
v: F.value,
|
|
649
650
|
s: e.value.valueSuffix,
|
|
650
651
|
r: e.value.dataLabelRoundingValue
|
|
651
652
|
}),
|
|
652
|
-
{ datapoint: F, seriesIndex:
|
|
653
|
+
{ datapoint: F, seriesIndex: Ae }
|
|
653
654
|
)}
|
|
654
655
|
</b>
|
|
655
656
|
</div>
|
|
656
657
|
`;
|
|
657
|
-
}),
|
|
658
|
+
}), te.value = E;
|
|
658
659
|
}
|
|
659
|
-
|
|
660
|
+
ee.value = !0;
|
|
660
661
|
}
|
|
661
662
|
function n() {
|
|
662
|
-
|
|
663
|
+
ee.value = !1, W.value = null, j.value = null;
|
|
663
664
|
}
|
|
664
665
|
return {
|
|
665
|
-
absoluteZero:
|
|
666
|
-
dataset:
|
|
667
|
-
legend:
|
|
666
|
+
absoluteZero: P,
|
|
667
|
+
dataset: de.filter((u) => !w.value.includes(u.id)),
|
|
668
|
+
legend: ae,
|
|
668
669
|
drawingArea: s,
|
|
669
670
|
extremes: i,
|
|
670
671
|
slotSize: V,
|
|
671
|
-
yLabels:
|
|
672
|
-
useTooltip:
|
|
672
|
+
yLabels: ve,
|
|
673
|
+
useTooltip: le,
|
|
673
674
|
killTooltip: n
|
|
674
675
|
};
|
|
675
|
-
}),
|
|
676
|
-
|
|
677
|
-
|
|
676
|
+
}), K = U(() => Yt({
|
|
677
|
+
values: e.value.xyPeriods,
|
|
678
|
+
maxDatapoints: p.value.maxSeriesLength,
|
|
679
|
+
formatter: e.value.xyPeriodFormatter,
|
|
680
|
+
start: x.value.start,
|
|
681
|
+
end: x.value.end
|
|
682
|
+
})), Pe = z(!1);
|
|
683
|
+
function Et(o) {
|
|
684
|
+
Pe.value = o, Qe.value += 1;
|
|
678
685
|
}
|
|
679
|
-
function
|
|
680
|
-
|
|
686
|
+
function ct() {
|
|
687
|
+
Se.value.showTooltip = !Se.value.showTooltip;
|
|
681
688
|
}
|
|
682
|
-
const
|
|
683
|
-
function
|
|
684
|
-
|
|
689
|
+
const Re = z(!1);
|
|
690
|
+
function De() {
|
|
691
|
+
Re.value = !Re.value;
|
|
685
692
|
}
|
|
686
693
|
return C({
|
|
687
|
-
generatePdf:
|
|
688
|
-
generateImage:
|
|
689
|
-
toggleTooltip:
|
|
690
|
-
toggleAnnotator:
|
|
691
|
-
}), (o, s) =>
|
|
694
|
+
generatePdf: lt,
|
|
695
|
+
generateImage: ot,
|
|
696
|
+
toggleTooltip: ct,
|
|
697
|
+
toggleAnnotator: De
|
|
698
|
+
}), (o, s) => wt.value ? (a(), l("div", {
|
|
692
699
|
key: 0,
|
|
693
|
-
id: `${
|
|
700
|
+
id: `${L.value}_${J.value}`,
|
|
694
701
|
ref_key: "quickChart",
|
|
695
|
-
ref:
|
|
696
|
-
class:
|
|
702
|
+
ref: ye,
|
|
703
|
+
class: he({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
|
|
697
704
|
style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
698
|
-
onMouseenter: s[5] || (s[5] = () =>
|
|
699
|
-
onMouseleave: s[6] || (s[6] = () =>
|
|
705
|
+
onMouseenter: s[5] || (s[5] = () => tt(!0)),
|
|
706
|
+
onMouseleave: s[6] || (s[6] = () => tt(!1))
|
|
700
707
|
}, [
|
|
701
|
-
e.value.userOptionsButtons.annotator ? (a(),
|
|
708
|
+
e.value.userOptionsButtons.annotator ? (a(), Ne(f(ge), {
|
|
702
709
|
key: 0,
|
|
703
|
-
svgRef: f(
|
|
710
|
+
svgRef: f(Ke),
|
|
704
711
|
backgroundColor: e.value.backgroundColor,
|
|
705
712
|
color: e.value.color,
|
|
706
|
-
active:
|
|
707
|
-
onClose:
|
|
713
|
+
active: Re.value,
|
|
714
|
+
onClose: De
|
|
708
715
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
709
|
-
|
|
716
|
+
At.value ? (a(), l("div", {
|
|
710
717
|
key: 1,
|
|
711
718
|
ref_key: "noTitle",
|
|
712
|
-
ref:
|
|
719
|
+
ref: Je,
|
|
713
720
|
class: "vue-data-ui-no-title-space",
|
|
714
721
|
style: "height:36px; width: 100%;background:transparent"
|
|
715
722
|
}, null, 512)) : g("", !0),
|
|
716
|
-
e.value.showUserOptions && (
|
|
723
|
+
e.value.showUserOptions && (et.value || Ie.value) ? (a(), Ne(f($e), {
|
|
717
724
|
ref: "details",
|
|
718
|
-
key: `user_option_${
|
|
725
|
+
key: `user_option_${Qe.value}`,
|
|
719
726
|
backgroundColor: e.value.backgroundColor,
|
|
720
727
|
color: e.value.color,
|
|
721
|
-
isPrinting: f(
|
|
722
|
-
isImaging: f(
|
|
728
|
+
isPrinting: f(Ee),
|
|
729
|
+
isImaging: f(Oe),
|
|
723
730
|
uid: J.value,
|
|
724
731
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
725
732
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
726
733
|
hasImg: e.value.userOptionsButtons.img,
|
|
727
734
|
hasFullscreen: e.value.userOptionsButtons.fullscreen,
|
|
728
735
|
hasXls: !1,
|
|
729
|
-
isTooltip:
|
|
730
|
-
isFullscreen:
|
|
736
|
+
isTooltip: Se.value.showTooltip,
|
|
737
|
+
isFullscreen: Pe.value,
|
|
731
738
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
732
|
-
chartElement:
|
|
739
|
+
chartElement: ye.value,
|
|
733
740
|
position: e.value.userOptionsPosition,
|
|
734
741
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
735
|
-
isAnnotation:
|
|
742
|
+
isAnnotation: Re.value,
|
|
736
743
|
callbacks: e.value.userOptionsCallbacks,
|
|
737
|
-
onToggleFullscreen:
|
|
738
|
-
onGeneratePdf: f(
|
|
739
|
-
onGenerateImage: f(
|
|
740
|
-
onToggleTooltip:
|
|
741
|
-
onToggleAnnotator:
|
|
744
|
+
onToggleFullscreen: Et,
|
|
745
|
+
onGeneratePdf: f(lt),
|
|
746
|
+
onGenerateImage: f(ot),
|
|
747
|
+
onToggleTooltip: ct,
|
|
748
|
+
onToggleAnnotator: De,
|
|
742
749
|
style: R({
|
|
743
|
-
visibility:
|
|
750
|
+
visibility: et.value ? Ie.value ? "visible" : "hidden" : "visible"
|
|
744
751
|
})
|
|
745
|
-
},
|
|
752
|
+
}, Pt({ _: 2 }, [
|
|
746
753
|
o.$slots.menuIcon ? {
|
|
747
754
|
name: "menuIcon",
|
|
748
755
|
fn: G(({ isOpen: t, color: i }) => [
|
|
749
|
-
M(o.$slots, "menuIcon",
|
|
756
|
+
M(o.$slots, "menuIcon", ne(ue({ isOpen: t, color: i })), void 0, !0)
|
|
750
757
|
]),
|
|
751
758
|
key: "0"
|
|
752
759
|
} : void 0,
|
|
@@ -774,14 +781,14 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
774
781
|
o.$slots.optionFullscreen ? {
|
|
775
782
|
name: "optionFullscreen",
|
|
776
783
|
fn: G(({ toggleFullscreen: t, isFullscreen: i }) => [
|
|
777
|
-
M(o.$slots, "optionFullscreen",
|
|
784
|
+
M(o.$slots, "optionFullscreen", ne(ue({ toggleFullscreen: t, isFullscreen: i })), void 0, !0)
|
|
778
785
|
]),
|
|
779
786
|
key: "4"
|
|
780
787
|
} : void 0,
|
|
781
788
|
o.$slots.optionAnnotator ? {
|
|
782
789
|
name: "optionAnnotator",
|
|
783
790
|
fn: G(({ toggleAnnotator: t, isAnnotator: i }) => [
|
|
784
|
-
M(o.$slots, "optionAnnotator",
|
|
791
|
+
M(o.$slots, "optionAnnotator", ne(ue({ toggleAnnotator: t, isAnnotator: i })), void 0, !0)
|
|
785
792
|
]),
|
|
786
793
|
key: "5"
|
|
787
794
|
} : void 0
|
|
@@ -789,20 +796,20 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
789
796
|
e.value.title ? (a(), l("div", {
|
|
790
797
|
key: 3,
|
|
791
798
|
ref_key: "quickChartTitle",
|
|
792
|
-
ref:
|
|
799
|
+
ref: Ge,
|
|
793
800
|
class: "vue-ui-quick-chart-title",
|
|
794
801
|
style: R(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
795
|
-
},
|
|
796
|
-
|
|
802
|
+
}, O(e.value.title), 5)) : g("", !0),
|
|
803
|
+
L.value ? (a(), l("svg", {
|
|
797
804
|
key: 4,
|
|
798
805
|
ref_key: "svgRef",
|
|
799
|
-
ref:
|
|
800
|
-
xmlns: f(
|
|
801
|
-
viewBox:
|
|
806
|
+
ref: Ke,
|
|
807
|
+
xmlns: f(qt),
|
|
808
|
+
viewBox: _t.value,
|
|
802
809
|
style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
803
810
|
}, [
|
|
804
|
-
|
|
805
|
-
o.$slots["chart-background"] &&
|
|
811
|
+
fe(f(H)),
|
|
812
|
+
o.$slots["chart-background"] && L.value === A.BAR ? (a(), l("foreignObject", {
|
|
806
813
|
key: 0,
|
|
807
814
|
x: v.value.drawingArea.left,
|
|
808
815
|
y: v.value.drawingArea.top,
|
|
@@ -813,8 +820,8 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
813
820
|
}
|
|
814
821
|
}, [
|
|
815
822
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
816
|
-
], 8,
|
|
817
|
-
o.$slots["chart-background"] &&
|
|
823
|
+
], 8, ua)) : g("", !0),
|
|
824
|
+
o.$slots["chart-background"] && L.value === A.LINE ? (a(), l("foreignObject", {
|
|
818
825
|
key: 1,
|
|
819
826
|
x: d.value.drawingArea.left,
|
|
820
827
|
y: d.value.drawingArea.top,
|
|
@@ -825,8 +832,8 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
825
832
|
}
|
|
826
833
|
}, [
|
|
827
834
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
828
|
-
], 8,
|
|
829
|
-
o.$slots["chart-background"] &&
|
|
835
|
+
], 8, ia)) : g("", !0),
|
|
836
|
+
o.$slots["chart-background"] && L.value === A.DONUT ? (a(), l("foreignObject", {
|
|
830
837
|
key: 2,
|
|
831
838
|
x: 0,
|
|
832
839
|
y: 0,
|
|
@@ -837,7 +844,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
837
844
|
}
|
|
838
845
|
}, [
|
|
839
846
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
840
|
-
], 8,
|
|
847
|
+
], 8, ra)) : g("", !0),
|
|
841
848
|
_("defs", null, [
|
|
842
849
|
_("filter", {
|
|
843
850
|
id: `blur_${J.value}`,
|
|
@@ -850,12 +857,12 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
850
857
|
in: "SourceGraphic",
|
|
851
858
|
stdDeviation: 2,
|
|
852
859
|
id: `blur_std_${J.value}`
|
|
853
|
-
}, null, 8,
|
|
860
|
+
}, null, 8, va),
|
|
854
861
|
s[7] || (s[7] = _("feColorMatrix", {
|
|
855
862
|
type: "saturate",
|
|
856
863
|
values: "0"
|
|
857
864
|
}, null, -1))
|
|
858
|
-
], 8,
|
|
865
|
+
], 8, sa),
|
|
859
866
|
_("filter", {
|
|
860
867
|
id: `shadow_${J.value}`,
|
|
861
868
|
"color-interpolation-filters": "sRGB"
|
|
@@ -866,22 +873,22 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
866
873
|
stdDeviation: "10",
|
|
867
874
|
"flood-opacity": "0.5",
|
|
868
875
|
"flood-color": e.value.donutShadowColor
|
|
869
|
-
}, null, 8,
|
|
870
|
-
], 8,
|
|
876
|
+
}, null, 8, ca)
|
|
877
|
+
], 8, da)
|
|
871
878
|
]),
|
|
872
|
-
|
|
873
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
879
|
+
L.value === A.DONUT ? (a(), l(m, { key: 3 }, [
|
|
880
|
+
e.value.showDataLabels ? (a(), l("g", ha, [
|
|
874
881
|
(a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l(m, null, [
|
|
875
882
|
I.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
876
883
|
key: 0,
|
|
877
|
-
d: f(
|
|
884
|
+
d: f(Ht)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * vt.value),
|
|
878
885
|
stroke: t.color,
|
|
879
886
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
880
887
|
"stroke-linecap": "round",
|
|
881
888
|
"stroke-linejoin": "round",
|
|
882
889
|
fill: "none",
|
|
883
|
-
filter:
|
|
884
|
-
}, null, 8,
|
|
890
|
+
filter: we(t.id)
|
|
891
|
+
}, null, 8, fa)) : g("", !0)
|
|
885
892
|
], 64))), 256))
|
|
886
893
|
])) : g("", !0),
|
|
887
894
|
_("circle", {
|
|
@@ -890,89 +897,89 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
890
897
|
r: I.value.radius,
|
|
891
898
|
fill: e.value.backgroundColor,
|
|
892
899
|
filter: e.value.donutUseShadow ? `url(#shadow_${J.value})` : ""
|
|
893
|
-
}, null, 8,
|
|
894
|
-
_("g",
|
|
900
|
+
}, null, 8, ga),
|
|
901
|
+
_("g", ma, [
|
|
895
902
|
(a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l("path", {
|
|
896
903
|
d: t.arcSlice,
|
|
897
904
|
fill: t.color,
|
|
898
905
|
stroke: e.value.backgroundColor,
|
|
899
906
|
"stroke-width": e.value.donutStrokeWidth,
|
|
900
|
-
filter:
|
|
901
|
-
}, null, 8,
|
|
907
|
+
filter: we(t.id)
|
|
908
|
+
}, null, 8, pa))), 256)),
|
|
902
909
|
(a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l("path", {
|
|
903
910
|
d: t.arcSlice,
|
|
904
911
|
fill: "transparent",
|
|
905
912
|
onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex: i }),
|
|
906
913
|
onMouseout: s[0] || (s[0] = (r) => I.value.killTooltip()),
|
|
907
|
-
onClick: (r) =>
|
|
908
|
-
}, null, 40,
|
|
914
|
+
onClick: (r) => ie("selectDatapoint", t)
|
|
915
|
+
}, null, 40, ya))), 256))
|
|
909
916
|
]),
|
|
910
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
917
|
+
e.value.showDataLabels ? (a(), l("g", xa, [
|
|
911
918
|
(a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l(m, null, [
|
|
912
919
|
I.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
913
920
|
key: 0,
|
|
914
|
-
cx: f(
|
|
915
|
-
cy: f(
|
|
921
|
+
cx: f(Le)(t).x,
|
|
922
|
+
cy: f(We)(t) - 3.7,
|
|
916
923
|
fill: t.color,
|
|
917
924
|
stroke: e.value.backgroundColor,
|
|
918
925
|
"stroke-width": 1,
|
|
919
926
|
r: 3,
|
|
920
|
-
filter:
|
|
921
|
-
}, null, 8,
|
|
927
|
+
filter: we(t.id)
|
|
928
|
+
}, null, 8, ka)) : g("", !0),
|
|
922
929
|
I.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
923
930
|
key: 1,
|
|
924
|
-
"text-anchor": f(
|
|
925
|
-
x: f(
|
|
926
|
-
y: f(
|
|
931
|
+
"text-anchor": f(Le)(t, !0, 20).anchor,
|
|
932
|
+
x: f(Le)(t, !0).x,
|
|
933
|
+
y: f(We)(t),
|
|
927
934
|
fill: e.value.color,
|
|
928
935
|
"font-size": e.value.dataLabelFontSize,
|
|
929
|
-
filter:
|
|
930
|
-
},
|
|
936
|
+
filter: we(t.id)
|
|
937
|
+
}, O(I.value.displayArcPercentage(t, I.value.chart)) + " (" + O(f(X)(
|
|
931
938
|
e.value.formatter,
|
|
932
939
|
t.value,
|
|
933
|
-
f(
|
|
940
|
+
f(B)({
|
|
934
941
|
p: e.value.valuePrefix,
|
|
935
942
|
v: t.value,
|
|
936
943
|
s: e.value.valueSuffix,
|
|
937
944
|
r: e.value.dataLabelRoundingValue
|
|
938
945
|
}),
|
|
939
946
|
{ datapoint: t, seriesIndex: i }
|
|
940
|
-
)) + ") ", 9,
|
|
947
|
+
)) + ") ", 9, ba)) : g("", !0),
|
|
941
948
|
I.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
942
949
|
key: 2,
|
|
943
|
-
"text-anchor": f(
|
|
944
|
-
x: f(
|
|
945
|
-
y: f(
|
|
950
|
+
"text-anchor": f(Le)(t).anchor,
|
|
951
|
+
x: f(Le)(t, !0).x,
|
|
952
|
+
y: f(We)(t) + e.value.dataLabelFontSize,
|
|
946
953
|
fill: e.value.color,
|
|
947
954
|
"font-size": e.value.dataLabelFontSize,
|
|
948
|
-
filter:
|
|
949
|
-
},
|
|
955
|
+
filter: we(t.id)
|
|
956
|
+
}, O(t.name), 9, Sa)) : g("", !0)
|
|
950
957
|
], 64))), 256))
|
|
951
958
|
])) : g("", !0),
|
|
952
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
959
|
+
e.value.donutShowTotal ? (a(), l("g", wa, [
|
|
953
960
|
_("text", {
|
|
954
961
|
"text-anchor": "middle",
|
|
955
962
|
x: I.value.drawingArea.centerX,
|
|
956
963
|
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
957
964
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
958
965
|
fill: e.value.color
|
|
959
|
-
},
|
|
966
|
+
}, O(e.value.donutTotalLabelText), 9, Aa),
|
|
960
967
|
_("text", {
|
|
961
968
|
"text-anchor": "middle",
|
|
962
969
|
x: I.value.drawingArea.centerX,
|
|
963
970
|
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
964
971
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
965
972
|
fill: e.value.color
|
|
966
|
-
},
|
|
973
|
+
}, O(f(B)({
|
|
967
974
|
p: e.value.valuePrefix,
|
|
968
975
|
v: I.value.total,
|
|
969
976
|
s: e.value.valueSuffix,
|
|
970
977
|
r: e.value.dataLabelRoundingValue
|
|
971
|
-
})), 9,
|
|
978
|
+
})), 9, _a)
|
|
972
979
|
])) : g("", !0)
|
|
973
980
|
], 64)) : g("", !0),
|
|
974
|
-
|
|
975
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
981
|
+
L.value === A.LINE ? (a(), l(m, { key: 4 }, [
|
|
982
|
+
e.value.xyShowGrid ? (a(), l("g", La, [
|
|
976
983
|
(a(!0), l(m, null, $(d.value.yLabels, (t) => (a(), l(m, null, [
|
|
977
984
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
978
985
|
key: 0,
|
|
@@ -983,7 +990,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
983
990
|
stroke: e.value.xyGridStroke,
|
|
984
991
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
985
992
|
"stroke-linecap": "round"
|
|
986
|
-
}, null, 8,
|
|
993
|
+
}, null, 8, za)) : g("", !0)
|
|
987
994
|
], 64))), 256)),
|
|
988
995
|
(a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t, i) => (a(), l("line", {
|
|
989
996
|
x1: d.value.drawingArea.left + d.value.slotSize * i,
|
|
@@ -993,9 +1000,9 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
993
1000
|
stroke: e.value.xyGridStroke,
|
|
994
1001
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
995
1002
|
"stroke-linecap": "round"
|
|
996
|
-
}, null, 8,
|
|
1003
|
+
}, null, 8, $a))), 256))
|
|
997
1004
|
])) : g("", !0),
|
|
998
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1005
|
+
e.value.xyShowAxis ? (a(), l("g", Ca, [
|
|
999
1006
|
_("line", {
|
|
1000
1007
|
x1: d.value.drawingArea.left,
|
|
1001
1008
|
x2: d.value.drawingArea.left,
|
|
@@ -1004,7 +1011,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1004
1011
|
stroke: e.value.xyAxisStroke,
|
|
1005
1012
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1006
1013
|
"stroke-linecap": "round"
|
|
1007
|
-
}, null, 8,
|
|
1014
|
+
}, null, 8, Ia),
|
|
1008
1015
|
_("line", {
|
|
1009
1016
|
x1: d.value.drawingArea.left,
|
|
1010
1017
|
x2: d.value.drawingArea.right,
|
|
@@ -1013,9 +1020,9 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1013
1020
|
stroke: e.value.xyAxisStroke,
|
|
1014
1021
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1015
1022
|
"stroke-linecap": "round"
|
|
1016
|
-
}, null, 8,
|
|
1023
|
+
}, null, 8, Ea)
|
|
1017
1024
|
])) : g("", !0),
|
|
1018
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1025
|
+
e.value.xyShowScale ? (a(), l("g", Oa, [
|
|
1019
1026
|
(a(!0), l(m, null, $(d.value.yLabels, (t, i) => (a(), l(m, null, [
|
|
1020
1027
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1021
1028
|
key: 0,
|
|
@@ -1026,7 +1033,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1026
1033
|
stroke: e.value.xyAxisStroke,
|
|
1027
1034
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1028
1035
|
"stroke-linecap": "round"
|
|
1029
|
-
}, null, 8,
|
|
1036
|
+
}, null, 8, Ta)) : g("", !0),
|
|
1030
1037
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
1031
1038
|
key: 1,
|
|
1032
1039
|
x: t.x,
|
|
@@ -1034,10 +1041,10 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1034
1041
|
"text-anchor": "end",
|
|
1035
1042
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1036
1043
|
fill: e.value.color
|
|
1037
|
-
},
|
|
1044
|
+
}, O(f(X)(
|
|
1038
1045
|
e.value.formatter,
|
|
1039
1046
|
t.value,
|
|
1040
|
-
f(
|
|
1047
|
+
f(B)({
|
|
1041
1048
|
p: e.value.valuePrefix,
|
|
1042
1049
|
v: t.value,
|
|
1043
1050
|
s: e.value.valueSuffix,
|
|
@@ -1047,9 +1054,9 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1047
1054
|
)), 9, Pa)) : g("", !0)
|
|
1048
1055
|
], 64))), 256))
|
|
1049
1056
|
])) : g("", !0),
|
|
1050
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1051
|
-
(a(!0), l(m, null, $(
|
|
1052
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((
|
|
1057
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Ra, [
|
|
1058
|
+
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, i) => (a(), l(m, null, [
|
|
1059
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((x.value.end - x.value.start) / e.value.xyPeriodsModulo) === 0 || x.value.end - x.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
|
|
1053
1060
|
key: 0,
|
|
1054
1061
|
x1: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
|
|
1055
1062
|
x2: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
|
|
@@ -1058,37 +1065,37 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1058
1065
|
stroke: e.value.xyAxisStroke,
|
|
1059
1066
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1060
1067
|
"stroke-linecap": "round"
|
|
1061
|
-
}, null, 8,
|
|
1062
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((
|
|
1068
|
+
}, null, 8, Ma)) : g("", !0),
|
|
1069
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((x.value.end - x.value.start) / e.value.xyPeriodsModulo) === 0 || x.value.end - x.value.start <= e.value.xyPeriodsModulo ? (a(), l("text", {
|
|
1063
1070
|
key: 1,
|
|
1064
1071
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1065
1072
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1066
1073
|
fill: e.value.color,
|
|
1067
1074
|
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})`
|
|
1068
|
-
},
|
|
1075
|
+
}, O(t), 9, Na)) : g("", !0)
|
|
1069
1076
|
], 64))), 256))
|
|
1070
1077
|
])) : g("", !0),
|
|
1071
|
-
_("g",
|
|
1072
|
-
(a(!0), l(m, null, $(d.value.dataset, (t, i) => (a(), l("g",
|
|
1078
|
+
_("g", Fa, [
|
|
1079
|
+
(a(!0), l(m, null, $(d.value.dataset, (t, i) => (a(), l("g", Ua, [
|
|
1073
1080
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
1074
1081
|
_("path", {
|
|
1075
|
-
d: `M ${f(
|
|
1082
|
+
d: `M ${f(mt)(t.coordinates)}`,
|
|
1076
1083
|
stroke: e.value.backgroundColor,
|
|
1077
1084
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1078
1085
|
"stroke-linecap": "round",
|
|
1079
1086
|
fill: "none",
|
|
1080
|
-
class:
|
|
1087
|
+
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1081
1088
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1082
|
-
}, null, 10,
|
|
1089
|
+
}, null, 10, Da),
|
|
1083
1090
|
_("path", {
|
|
1084
|
-
d: `M ${f(
|
|
1091
|
+
d: `M ${f(mt)(t.coordinates)}`,
|
|
1085
1092
|
stroke: t.color,
|
|
1086
1093
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1087
1094
|
"stroke-linecap": "round",
|
|
1088
1095
|
fill: "none",
|
|
1089
|
-
class:
|
|
1096
|
+
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1090
1097
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1091
|
-
}, null, 10,
|
|
1098
|
+
}, null, 10, Ba)
|
|
1092
1099
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
1093
1100
|
_("path", {
|
|
1094
1101
|
d: `M ${t.linePath}`,
|
|
@@ -1096,18 +1103,18 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1096
1103
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1097
1104
|
"stroke-linecap": "round",
|
|
1098
1105
|
fill: "none",
|
|
1099
|
-
class:
|
|
1106
|
+
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1100
1107
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1101
|
-
}, null, 10,
|
|
1108
|
+
}, null, 10, Va),
|
|
1102
1109
|
_("path", {
|
|
1103
1110
|
d: `M ${t.linePath}`,
|
|
1104
1111
|
stroke: t.color,
|
|
1105
1112
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1106
1113
|
"stroke-linecap": "round",
|
|
1107
1114
|
fill: "none",
|
|
1108
|
-
class:
|
|
1115
|
+
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1109
1116
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1110
|
-
}, null, 10,
|
|
1117
|
+
}, null, 10, qa)
|
|
1111
1118
|
], 64)),
|
|
1112
1119
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1113
1120
|
cx: r.x,
|
|
@@ -1118,10 +1125,10 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1118
1125
|
"stroke-width": "0.5",
|
|
1119
1126
|
class: "quick-animation",
|
|
1120
1127
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1121
|
-
}, null, 8,
|
|
1128
|
+
}, null, 8, Ha))), 256))
|
|
1122
1129
|
]))), 256))
|
|
1123
1130
|
]),
|
|
1124
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1131
|
+
e.value.showDataLabels ? (a(), l("g", Wa, [
|
|
1125
1132
|
(a(!0), l(m, null, $(d.value.dataset, (t, i) => (a(), l(m, null, [
|
|
1126
1133
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1127
1134
|
"text-anchor": "middle",
|
|
@@ -1131,20 +1138,20 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1131
1138
|
y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1132
1139
|
class: "quick-animation",
|
|
1133
1140
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1134
|
-
},
|
|
1141
|
+
}, O(f(X)(
|
|
1135
1142
|
e.value.formatter,
|
|
1136
1143
|
f(Z)(r.value),
|
|
1137
|
-
f(
|
|
1144
|
+
f(B)({
|
|
1138
1145
|
p: e.value.valuePrefix,
|
|
1139
1146
|
v: f(Z)(r.value),
|
|
1140
1147
|
s: e.value.valueSuffix,
|
|
1141
1148
|
r: e.value.dataLabelRoundingValue
|
|
1142
1149
|
}),
|
|
1143
1150
|
{ datapoint: r, seriesIndex: h }
|
|
1144
|
-
)), 9,
|
|
1151
|
+
)), 9, ja))), 256))
|
|
1145
1152
|
], 64))), 256))
|
|
1146
1153
|
])) : g("", !0),
|
|
1147
|
-
_("g",
|
|
1154
|
+
_("g", Ga, [
|
|
1148
1155
|
(a(!0), l(m, null, $(d.value.extremes.maxSeries, (t, i) => (a(), l("rect", {
|
|
1149
1156
|
x: d.value.drawingArea.left + i * d.value.slotSize,
|
|
1150
1157
|
y: d.value.drawingArea.top,
|
|
@@ -1154,15 +1161,15 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1154
1161
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1155
1162
|
onMouseenter: (r) => d.value.useTooltip(i),
|
|
1156
1163
|
onMouseleave: s[1] || (s[1] = (r) => d.value.killTooltip()),
|
|
1157
|
-
onClick: (r) =>
|
|
1164
|
+
onClick: (r) => ie("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1158
1165
|
...h,
|
|
1159
1166
|
value: h.values[i]
|
|
1160
1167
|
})))
|
|
1161
|
-
}, null, 44,
|
|
1168
|
+
}, null, 44, Xa))), 256))
|
|
1162
1169
|
])
|
|
1163
1170
|
], 64)) : g("", !0),
|
|
1164
|
-
|
|
1165
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1171
|
+
L.value === A.BAR ? (a(), l(m, { key: 5 }, [
|
|
1172
|
+
e.value.xyShowGrid ? (a(), l("g", Za, [
|
|
1166
1173
|
(a(!0), l(m, null, $(v.value.yLabels, (t) => (a(), l(m, null, [
|
|
1167
1174
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1168
1175
|
key: 0,
|
|
@@ -1173,7 +1180,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1173
1180
|
stroke: e.value.xyGridStroke,
|
|
1174
1181
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1175
1182
|
"stroke-linecap": "round"
|
|
1176
|
-
}, null, 8,
|
|
1183
|
+
}, null, 8, Ya)) : g("", !0)
|
|
1177
1184
|
], 64))), 256)),
|
|
1178
1185
|
(a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t, i) => (a(), l("line", {
|
|
1179
1186
|
x1: v.value.drawingArea.left + v.value.slotSize * i,
|
|
@@ -1183,9 +1190,9 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1183
1190
|
stroke: e.value.xyGridStroke,
|
|
1184
1191
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1185
1192
|
"stroke-linecap": "round"
|
|
1186
|
-
}, null, 8,
|
|
1193
|
+
}, null, 8, Ja))), 256))
|
|
1187
1194
|
])) : g("", !0),
|
|
1188
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1195
|
+
e.value.xyShowAxis ? (a(), l("g", Qa, [
|
|
1189
1196
|
_("line", {
|
|
1190
1197
|
x1: v.value.drawingArea.left,
|
|
1191
1198
|
x2: v.value.drawingArea.left,
|
|
@@ -1194,7 +1201,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1194
1201
|
stroke: e.value.xyAxisStroke,
|
|
1195
1202
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1196
1203
|
"stroke-linecap": "round"
|
|
1197
|
-
}, null, 8,
|
|
1204
|
+
}, null, 8, Ka),
|
|
1198
1205
|
_("line", {
|
|
1199
1206
|
x1: v.value.drawingArea.left,
|
|
1200
1207
|
x2: v.value.drawingArea.right,
|
|
@@ -1203,9 +1210,9 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1203
1210
|
stroke: e.value.xyAxisStroke,
|
|
1204
1211
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1205
1212
|
"stroke-linecap": "round"
|
|
1206
|
-
}, null, 8,
|
|
1213
|
+
}, null, 8, el)
|
|
1207
1214
|
])) : g("", !0),
|
|
1208
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1215
|
+
e.value.xyShowScale ? (a(), l("g", tl, [
|
|
1209
1216
|
(a(!0), l(m, null, $(v.value.yLabels, (t, i) => (a(), l(m, null, [
|
|
1210
1217
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1211
1218
|
key: 0,
|
|
@@ -1216,7 +1223,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1216
1223
|
stroke: e.value.xyAxisStroke,
|
|
1217
1224
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1218
1225
|
"stroke-linecap": "round"
|
|
1219
|
-
}, null, 8,
|
|
1226
|
+
}, null, 8, al)) : g("", !0),
|
|
1220
1227
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1221
1228
|
key: 1,
|
|
1222
1229
|
x: t.x,
|
|
@@ -1224,21 +1231,21 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1224
1231
|
"text-anchor": "end",
|
|
1225
1232
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1226
1233
|
fill: e.value.color
|
|
1227
|
-
},
|
|
1234
|
+
}, O(f(X)(
|
|
1228
1235
|
e.value.formatter,
|
|
1229
1236
|
t.value,
|
|
1230
|
-
f(
|
|
1237
|
+
f(B)({
|
|
1231
1238
|
p: e.value.valuePrefix,
|
|
1232
1239
|
v: t.value,
|
|
1233
1240
|
s: e.value.valueSuffix,
|
|
1234
1241
|
r: e.value.dataLabelRoundingValue
|
|
1235
1242
|
}),
|
|
1236
1243
|
{ datapoint: t, seriesIndex: i }
|
|
1237
|
-
)), 9,
|
|
1244
|
+
)), 9, ll)) : g("", !0)
|
|
1238
1245
|
], 64))), 256))
|
|
1239
1246
|
])) : g("", !0),
|
|
1240
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1241
|
-
(a(!0), l(m, null, $(e.value.xyPeriods.slice(
|
|
1247
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", ol, [
|
|
1248
|
+
(a(!0), l(m, null, $(e.value.xyPeriods.slice(x.value.start, x.value.end), (t, i) => (a(), l("line", {
|
|
1242
1249
|
x1: v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2,
|
|
1243
1250
|
x2: v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2,
|
|
1244
1251
|
y1: v.value.drawingArea.bottom,
|
|
@@ -1246,15 +1253,15 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1246
1253
|
stroke: e.value.xyAxisStroke,
|
|
1247
1254
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1248
1255
|
"stroke-linecap": "round"
|
|
1249
|
-
}, null, 8,
|
|
1250
|
-
(a(!0), l(m, null, $(
|
|
1256
|
+
}, null, 8, nl))), 256)),
|
|
1257
|
+
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, i) => (a(), l("text", {
|
|
1251
1258
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1252
1259
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1253
1260
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1254
1261
|
fill: e.value.color
|
|
1255
|
-
},
|
|
1262
|
+
}, O(t), 9, ul))), 256))
|
|
1256
1263
|
])) : g("", !0),
|
|
1257
|
-
_("g",
|
|
1264
|
+
_("g", il, [
|
|
1258
1265
|
(a(!0), l(m, null, $(v.value.dataset, (t, i) => (a(), l(m, null, [
|
|
1259
1266
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1260
1267
|
x: r.x,
|
|
@@ -1265,26 +1272,26 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1265
1272
|
stroke: e.value.backgroundColor,
|
|
1266
1273
|
"stroke-width": e.value.barStrokeWidth,
|
|
1267
1274
|
"stroke-linecap": "round",
|
|
1268
|
-
class:
|
|
1275
|
+
class: he({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
|
|
1269
1276
|
}, [
|
|
1270
|
-
e.value.barAnimated && r.value > 0 && !f(
|
|
1277
|
+
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Oe) ? (a(), l("animate", {
|
|
1271
1278
|
key: 0,
|
|
1272
1279
|
attributeName: "height",
|
|
1273
1280
|
from: 0,
|
|
1274
1281
|
to: r.height,
|
|
1275
1282
|
dur: "0.5s"
|
|
1276
|
-
}, null, 8,
|
|
1277
|
-
e.value.barAnimated && r.value > 0 && !f(
|
|
1283
|
+
}, null, 8, sl)) : g("", !0),
|
|
1284
|
+
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Oe) ? (a(), l("animate", {
|
|
1278
1285
|
key: 1,
|
|
1279
1286
|
attributeName: "y",
|
|
1280
1287
|
from: v.value.absoluteZero,
|
|
1281
1288
|
to: v.value.absoluteZero - r.height,
|
|
1282
1289
|
dur: "0.5s"
|
|
1283
|
-
}, null, 8,
|
|
1284
|
-
], 10,
|
|
1290
|
+
}, null, 8, vl)) : g("", !0)
|
|
1291
|
+
], 10, rl))), 256))
|
|
1285
1292
|
], 64))), 256))
|
|
1286
1293
|
]),
|
|
1287
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1294
|
+
e.value.showDataLabels ? (a(), l("g", dl, [
|
|
1288
1295
|
(a(!0), l(m, null, $(v.value.dataset, (t, i) => (a(), l(m, null, [
|
|
1289
1296
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1290
1297
|
x: r.x + r.width / 2,
|
|
@@ -1293,20 +1300,20 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1293
1300
|
"font-size": e.value.dataLabelFontSize,
|
|
1294
1301
|
fill: t.color,
|
|
1295
1302
|
class: "quick-animation"
|
|
1296
|
-
},
|
|
1303
|
+
}, O(f(X)(
|
|
1297
1304
|
e.value.formatter,
|
|
1298
1305
|
f(Z)(r.value),
|
|
1299
|
-
f(
|
|
1306
|
+
f(B)({
|
|
1300
1307
|
p: e.value.valuePrefix,
|
|
1301
1308
|
v: f(Z)(r.value),
|
|
1302
1309
|
s: e.value.valueSuffix,
|
|
1303
1310
|
r: e.value.dataLabelRoundingValue
|
|
1304
1311
|
}),
|
|
1305
1312
|
{ datapoint: r, seriesIndex: h }
|
|
1306
|
-
)), 9,
|
|
1313
|
+
)), 9, cl))), 256))
|
|
1307
1314
|
], 64))), 256))
|
|
1308
1315
|
])) : g("", !0),
|
|
1309
|
-
_("g",
|
|
1316
|
+
_("g", hl, [
|
|
1310
1317
|
(a(!0), l(m, null, $(v.value.extremes.maxSeries, (t, i) => (a(), l("rect", {
|
|
1311
1318
|
x: v.value.drawingArea.left + i * v.value.slotSize,
|
|
1312
1319
|
y: v.value.drawingArea.top,
|
|
@@ -1316,51 +1323,51 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1316
1323
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1317
1324
|
onMouseenter: (r) => v.value.useTooltip(i),
|
|
1318
1325
|
onMouseleave: s[2] || (s[2] = (r) => v.value.killTooltip()),
|
|
1319
|
-
onClick: (r) =>
|
|
1326
|
+
onClick: (r) => ie("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1320
1327
|
...h,
|
|
1321
1328
|
value: h.values[i]
|
|
1322
1329
|
})))
|
|
1323
|
-
}, null, 44,
|
|
1330
|
+
}, null, 44, fl))), 256))
|
|
1324
1331
|
])
|
|
1325
1332
|
], 64)) : g("", !0),
|
|
1326
|
-
[A.LINE, A.BAR].includes(
|
|
1327
|
-
e.value.xAxisLabel &&
|
|
1333
|
+
[A.LINE, A.BAR].includes(L.value) ? (a(), l("g", gl, [
|
|
1334
|
+
e.value.xAxisLabel && L.value === A.LINE ? (a(), l("g", ml, [
|
|
1328
1335
|
_("text", {
|
|
1329
1336
|
"font-size": e.value.axisLabelsFontSize,
|
|
1330
1337
|
fill: e.value.color,
|
|
1331
1338
|
"text-anchor": "middle",
|
|
1332
1339
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1333
1340
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1334
|
-
},
|
|
1341
|
+
}, O(e.value.xAxisLabel), 9, pl)
|
|
1335
1342
|
])) : g("", !0),
|
|
1336
|
-
e.value.xAxisLabel &&
|
|
1343
|
+
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g", yl, [
|
|
1337
1344
|
_("text", {
|
|
1338
1345
|
"font-size": e.value.axisLabelsFontSize,
|
|
1339
1346
|
fill: e.value.color,
|
|
1340
1347
|
"text-anchor": "middle",
|
|
1341
1348
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1342
1349
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1343
|
-
},
|
|
1350
|
+
}, O(e.value.xAxisLabel), 9, xl)
|
|
1344
1351
|
])) : g("", !0),
|
|
1345
|
-
e.value.yAxisLabel &&
|
|
1352
|
+
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g", kl, [
|
|
1346
1353
|
_("text", {
|
|
1347
1354
|
"font-size": e.value.axisLabelsFontSize,
|
|
1348
1355
|
fill: e.value.color,
|
|
1349
1356
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1350
1357
|
"text-anchor": "middle"
|
|
1351
|
-
},
|
|
1358
|
+
}, O(e.value.yAxisLabel), 9, bl)
|
|
1352
1359
|
])) : g("", !0),
|
|
1353
|
-
e.value.yAxisLabel &&
|
|
1360
|
+
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g", Sl, [
|
|
1354
1361
|
_("text", {
|
|
1355
1362
|
"font-size": e.value.axisLabelsFontSize,
|
|
1356
1363
|
fill: e.value.color,
|
|
1357
1364
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1358
1365
|
"text-anchor": "middle"
|
|
1359
|
-
},
|
|
1366
|
+
}, O(e.value.yAxisLabel), 9, wl)
|
|
1360
1367
|
])) : g("", !0)
|
|
1361
1368
|
])) : g("", !0)
|
|
1362
|
-
], 12,
|
|
1363
|
-
|
|
1369
|
+
], 12, na)) : g("", !0),
|
|
1370
|
+
L.value ? g("", !0) : (a(), Ne(f(me), {
|
|
1364
1371
|
key: 5,
|
|
1365
1372
|
config: {
|
|
1366
1373
|
type: "line",
|
|
@@ -1378,53 +1385,53 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1378
1385
|
}
|
|
1379
1386
|
}
|
|
1380
1387
|
}, null, 8, ["config"])),
|
|
1381
|
-
o.$slots.watermark ? (a(), l("div",
|
|
1382
|
-
M(o.$slots, "watermark",
|
|
1388
|
+
o.$slots.watermark ? (a(), l("div", Al, [
|
|
1389
|
+
M(o.$slots, "watermark", ne(ue({ isPrinting: f(Ee) || f(Oe) })), void 0, !0)
|
|
1383
1390
|
])) : g("", !0),
|
|
1384
|
-
[A.BAR, A.LINE].includes(
|
|
1385
|
-
key: `slicer_${
|
|
1391
|
+
[A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1392
|
+
key: `slicer_${Ce.value}`,
|
|
1386
1393
|
ref_key: "quickChartSlicer",
|
|
1387
|
-
ref:
|
|
1394
|
+
ref: Ze
|
|
1388
1395
|
}, [
|
|
1389
|
-
(a(),
|
|
1396
|
+
(a(), Ne(Zt, {
|
|
1390
1397
|
ref_key: "slicerComponent",
|
|
1391
|
-
ref:
|
|
1392
|
-
key: `slicer_${
|
|
1398
|
+
ref: se,
|
|
1399
|
+
key: `slicer_${Ce.value}`,
|
|
1393
1400
|
background: e.value.zoomColor,
|
|
1394
1401
|
borderColor: e.value.backgroundColor,
|
|
1395
1402
|
fontSize: e.value.zoomFontSize,
|
|
1396
1403
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1397
|
-
labelLeft: e.value.xyPeriods[
|
|
1398
|
-
labelRight: e.value.xyPeriods[
|
|
1404
|
+
labelLeft: e.value.xyPeriods[x.value.start] ? K.value[0].text : "",
|
|
1405
|
+
labelRight: e.value.xyPeriods[x.value.end - 1] ? K.value.at(-1).text : "",
|
|
1399
1406
|
textColor: e.value.color,
|
|
1400
1407
|
inputColor: e.value.zoomColor,
|
|
1401
1408
|
selectColor: e.value.zoomHighlightColor,
|
|
1402
|
-
max:
|
|
1409
|
+
max: p.value.maxSeriesLength,
|
|
1403
1410
|
min: 0,
|
|
1404
|
-
valueStart:
|
|
1405
|
-
valueEnd:
|
|
1411
|
+
valueStart: x.value.start,
|
|
1412
|
+
valueEnd: x.value.end,
|
|
1406
1413
|
smoothMinimap: e.value.zoomMinimap.smooth,
|
|
1407
1414
|
minimapSelectedColor: e.value.zoomMinimap.selectedColor,
|
|
1408
1415
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1409
1416
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1410
1417
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1411
|
-
minimap:
|
|
1418
|
+
minimap: It.value,
|
|
1412
1419
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1413
1420
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1414
1421
|
minimapSelectedIndex: j.value,
|
|
1415
|
-
start:
|
|
1416
|
-
"onUpdate:start": s[3] || (s[3] = (t) =>
|
|
1417
|
-
end:
|
|
1418
|
-
"onUpdate:end": s[4] || (s[4] = (t) =>
|
|
1422
|
+
start: x.value.start,
|
|
1423
|
+
"onUpdate:start": s[3] || (s[3] = (t) => x.value.start = t),
|
|
1424
|
+
end: x.value.end,
|
|
1425
|
+
"onUpdate:end": s[4] || (s[4] = (t) => x.value.end = t),
|
|
1419
1426
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1420
|
-
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 :
|
|
1427
|
+
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : p.value.maxSeriesLength,
|
|
1421
1428
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
1422
1429
|
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1423
|
-
onReset:
|
|
1430
|
+
onReset: $t,
|
|
1424
1431
|
onTrapMouse: zt
|
|
1425
1432
|
}, {
|
|
1426
1433
|
"reset-action": G(({ reset: t }) => [
|
|
1427
|
-
M(o.$slots, "reset-action",
|
|
1434
|
+
M(o.$slots, "reset-action", ne(ue({ reset: t })), void 0, !0)
|
|
1428
1435
|
]),
|
|
1429
1436
|
_: 3
|
|
1430
1437
|
}, 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"]))
|
|
@@ -1432,35 +1439,35 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1432
1439
|
e.value.showLegend ? (a(), l("div", {
|
|
1433
1440
|
key: 8,
|
|
1434
1441
|
ref_key: "quickChartLegend",
|
|
1435
|
-
ref:
|
|
1442
|
+
ref: Xe,
|
|
1436
1443
|
class: "vue-ui-quick-chart-legend",
|
|
1437
1444
|
style: R(`background:transparent;color:${e.value.color}`)
|
|
1438
1445
|
}, [
|
|
1439
|
-
|
|
1446
|
+
L.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, i) => (a(), l("div", {
|
|
1440
1447
|
class: "vue-ui-quick-chart-legend-item",
|
|
1441
1448
|
onClick: (r) => {
|
|
1442
|
-
|
|
1449
|
+
Lt(t, I.value.dataset), ie("selectLegend", t);
|
|
1443
1450
|
},
|
|
1444
1451
|
style: R(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1445
1452
|
}, [
|
|
1446
|
-
e.value.useCustomLegend ? M(o.$slots, "legend",
|
|
1453
|
+
e.value.useCustomLegend ? M(o.$slots, "legend", qe({
|
|
1447
1454
|
key: 0,
|
|
1448
1455
|
ref_for: !0
|
|
1449
1456
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1450
|
-
|
|
1457
|
+
fe(f(T), {
|
|
1451
1458
|
name: e.value.legendIcon,
|
|
1452
1459
|
stroke: t.color,
|
|
1453
1460
|
size: e.value.legendIconSize
|
|
1454
1461
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1455
1462
|
_("span", {
|
|
1456
1463
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1457
|
-
},
|
|
1464
|
+
}, O(t.name), 5),
|
|
1458
1465
|
_("span", {
|
|
1459
1466
|
style: R(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1460
|
-
},
|
|
1467
|
+
}, O(w.value.includes(t.id) ? "-" : f(X)(
|
|
1461
1468
|
e.value.formatter,
|
|
1462
1469
|
t.absoluteValue,
|
|
1463
|
-
f(
|
|
1470
|
+
f(B)({
|
|
1464
1471
|
p: e.value.valuePrefix,
|
|
1465
1472
|
v: t.absoluteValue,
|
|
1466
1473
|
s: e.value.valueSuffix,
|
|
@@ -1471,72 +1478,72 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1471
1478
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1472
1479
|
key: 0,
|
|
1473
1480
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1474
|
-
}, " ( - % ) ", 4)) :
|
|
1481
|
+
}, " ( - % ) ", 4)) : Te.value ? (a(), l("span", {
|
|
1475
1482
|
key: 1,
|
|
1476
1483
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1477
1484
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1478
1485
|
key: 2,
|
|
1479
1486
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1480
|
-
}, " (" +
|
|
1487
|
+
}, " (" + O(f(B)({
|
|
1481
1488
|
v: t.value / I.value.total * 100,
|
|
1482
1489
|
s: "%",
|
|
1483
1490
|
r: e.value.dataLabelRoundingPercentage
|
|
1484
1491
|
})) + ") ", 5))
|
|
1485
1492
|
], 64))
|
|
1486
|
-
], 12,
|
|
1487
|
-
|
|
1493
|
+
], 12, _l))), 256)) : g("", !0),
|
|
1494
|
+
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(d.value.legend, (t, i) => (a(), l("div", {
|
|
1488
1495
|
class: "vue-ui-quick-chart-legend-item",
|
|
1489
1496
|
onClick: (r) => {
|
|
1490
|
-
|
|
1497
|
+
it(t.id, d.value.legend.length - 1), ie("selectLegend", t);
|
|
1491
1498
|
},
|
|
1492
1499
|
style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1493
1500
|
}, [
|
|
1494
|
-
e.value.useCustomLegend ? M(o.$slots, "legend",
|
|
1501
|
+
e.value.useCustomLegend ? M(o.$slots, "legend", qe({
|
|
1495
1502
|
key: 0,
|
|
1496
1503
|
ref_for: !0
|
|
1497
1504
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1498
|
-
|
|
1505
|
+
fe(f(T), {
|
|
1499
1506
|
name: e.value.legendIcon,
|
|
1500
1507
|
stroke: t.color,
|
|
1501
1508
|
size: e.value.legendIconSize
|
|
1502
1509
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1503
1510
|
_("span", {
|
|
1504
1511
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1505
|
-
},
|
|
1512
|
+
}, O(t.name), 5)
|
|
1506
1513
|
], 64))
|
|
1507
|
-
], 12,
|
|
1508
|
-
|
|
1514
|
+
], 12, Ll))), 256)) : g("", !0),
|
|
1515
|
+
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(v.value.legend, (t, i) => (a(), l("div", {
|
|
1509
1516
|
class: "vue-ui-quick-chart-legend-item",
|
|
1510
1517
|
onClick: (r) => {
|
|
1511
|
-
|
|
1518
|
+
it(t.id, v.value.legend.length - 1), ie("selectLegend", t);
|
|
1512
1519
|
},
|
|
1513
1520
|
style: R(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1514
1521
|
}, [
|
|
1515
|
-
e.value.useCustomLegend ? M(o.$slots, "legend",
|
|
1522
|
+
e.value.useCustomLegend ? M(o.$slots, "legend", qe({
|
|
1516
1523
|
key: 0,
|
|
1517
1524
|
ref_for: !0
|
|
1518
1525
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1519
|
-
|
|
1526
|
+
fe(f(T), {
|
|
1520
1527
|
name: e.value.legendIcon,
|
|
1521
1528
|
stroke: t.color,
|
|
1522
1529
|
size: e.value.legendIconSize
|
|
1523
1530
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1524
1531
|
_("span", {
|
|
1525
1532
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1526
|
-
},
|
|
1533
|
+
}, O(t.name), 5)
|
|
1527
1534
|
], 64))
|
|
1528
|
-
], 12,
|
|
1535
|
+
], 12, zl))), 256)) : g("", !0)
|
|
1529
1536
|
], 4)) : g("", !0),
|
|
1530
1537
|
o.$slots.source ? (a(), l("div", {
|
|
1531
1538
|
key: 9,
|
|
1532
1539
|
ref_key: "source",
|
|
1533
|
-
ref:
|
|
1540
|
+
ref: Ye,
|
|
1534
1541
|
dir: "auto"
|
|
1535
1542
|
}, [
|
|
1536
1543
|
M(o.$slots, "source", {}, void 0, !0)
|
|
1537
1544
|
], 512)) : g("", !0),
|
|
1538
|
-
|
|
1539
|
-
show:
|
|
1545
|
+
fe(f(pe), {
|
|
1546
|
+
show: Se.value.showTooltip && ee.value,
|
|
1540
1547
|
backgroundColor: e.value.backgroundColor,
|
|
1541
1548
|
color: e.value.color,
|
|
1542
1549
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1546,28 +1553,28 @@ const aa = ["id"], la = ["xmlns", "viewBox"], oa = ["x", "y", "width", "height"]
|
|
|
1546
1553
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1547
1554
|
position: e.value.tooltipPosition,
|
|
1548
1555
|
offsetY: e.value.tooltipOffsetY,
|
|
1549
|
-
parent:
|
|
1550
|
-
content:
|
|
1551
|
-
isFullscreen:
|
|
1552
|
-
isCustom: f(
|
|
1556
|
+
parent: ye.value,
|
|
1557
|
+
content: te.value,
|
|
1558
|
+
isFullscreen: Pe.value,
|
|
1559
|
+
isCustom: f(Fe)(e.value.tooltipCustomFormat)
|
|
1553
1560
|
}, {
|
|
1554
1561
|
"tooltip-before": G(() => [
|
|
1555
|
-
M(o.$slots, "tooltip-before",
|
|
1562
|
+
M(o.$slots, "tooltip-before", ne(ue({ ...xe.value })), void 0, !0)
|
|
1556
1563
|
]),
|
|
1557
1564
|
"tooltip-after": G(() => [
|
|
1558
|
-
M(o.$slots, "tooltip-after",
|
|
1565
|
+
M(o.$slots, "tooltip-after", ne(ue({ ...xe.value })), void 0, !0)
|
|
1559
1566
|
]),
|
|
1560
1567
|
_: 3
|
|
1561
1568
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
1562
|
-
], 46,
|
|
1563
|
-
|
|
1569
|
+
], 46, oa)) : (a(), l("div", $l, [
|
|
1570
|
+
fe(f(T), {
|
|
1564
1571
|
name: "circleCancel",
|
|
1565
1572
|
stroke: "red"
|
|
1566
1573
|
}),
|
|
1567
1574
|
s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
|
|
1568
1575
|
]));
|
|
1569
1576
|
}
|
|
1570
|
-
},
|
|
1577
|
+
}, Ul = /* @__PURE__ */ Jt(Cl, [["__scopeId", "data-v-36eb7869"]]);
|
|
1571
1578
|
export {
|
|
1572
|
-
|
|
1579
|
+
Ul as default
|
|
1573
1580
|
};
|