vue-data-ui 2.16.6 → 2.17.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/README.md +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,140 +1,141 @@
|
|
|
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 { u as
|
|
9
|
-
import
|
|
1
|
+
import { defineAsyncComponent as he, ref as z, computed as U, watch as Ve, shallowRef as ft, onMounted as Tt, onBeforeUnmount as Pt, nextTick as Me, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as fe, createBlock as Fe, createCommentVNode as g, createVNode as ge, unref as f, createSlots as Rt, withCtx as G, renderSlot as M, normalizeProps as ie, guardReactiveProps as ue, toDisplayString as O, createElementVNode as _, Fragment as m, renderList as $, mergeProps as qe } from "vue";
|
|
2
|
+
import { u as Mt, c as Ft, t as Nt, p as q, a as Ut, C as gt, b as Bt, G as Dt, e as Vt, d as He, m as qt, D as mt, X as Ht, j as Wt, k as We, n as Le, i as X, f as D, I as jt, V as pt, v as Z, x as Ne, y as je } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as Gt, u as Xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as yt } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as Zt } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { S as Jt } from "./Slicer-CL6-MRI6.js";
|
|
8
|
+
import { u as Qt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
9
|
+
import Kt from "./img-Y_hYz-ZC.js";
|
|
10
|
+
import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
11
|
const A = {
|
|
11
12
|
LINE: "LINE",
|
|
12
13
|
BAR: "BAR",
|
|
13
14
|
DONUT: "DONUT"
|
|
14
|
-
},
|
|
15
|
-
function
|
|
16
|
-
let
|
|
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 ?
|
|
18
|
-
if (!
|
|
15
|
+
}, ta = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
16
|
+
function aa({ dataset: c, barLineSwitch: C = 6 }) {
|
|
17
|
+
let y = null, T = null, H = 0;
|
|
18
|
+
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))) {
|
|
19
|
+
if (!oa(c))
|
|
19
20
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
21
|
+
const ye = Object.keys(c[0]), $e = Object.values(c[0]);
|
|
22
|
+
if (!ye.some((F) => na(F)))
|
|
22
23
|
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;
|
|
23
|
-
xt($e, (F) => typeof F == "number") && (
|
|
24
|
+
xt($e, (F) => typeof F == "number") && (y = A.DONUT, T = c), xt($e, (F) => Array.isArray(F) && Y(F)) && (kt(c) > C ? y = A.LINE : y = A.BAR, H = kt(c), T = c.map((F) => ({
|
|
24
25
|
...F,
|
|
25
|
-
data:
|
|
26
|
-
}))), c = c.map((F) =>
|
|
26
|
+
data: ia(F, (B) => Y(B))
|
|
27
|
+
}))), c = c.map((F) => bt(F)), T = T.map((F) => bt(F));
|
|
27
28
|
}
|
|
28
|
-
return ze(c) && [...new Set(c.flatMap((
|
|
29
|
+
return ze(c) && [...new Set(c.flatMap((ye) => Array.isArray(ye)))][0], {
|
|
29
30
|
dataset: c,
|
|
30
|
-
type:
|
|
31
|
+
type: y,
|
|
31
32
|
usableDataset: T,
|
|
32
33
|
maxSeriesLength: H
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function St(c) {
|
|
36
37
|
return !c || ze(c) && !c.length;
|
|
37
38
|
}
|
|
38
39
|
function ze(c) {
|
|
39
40
|
return Array.isArray(c);
|
|
40
41
|
}
|
|
41
42
|
function Y(c) {
|
|
42
|
-
if (!ze(c) ||
|
|
43
|
-
const C = c.map((
|
|
44
|
-
return ![...new Set(C.flatMap((
|
|
43
|
+
if (!ze(c) || St(c)) return !1;
|
|
44
|
+
const C = c.map((y) => Number(y));
|
|
45
|
+
return ![...new Set(C.flatMap((y) => typeof y == "number" && !isNaN(y)))].includes(!1);
|
|
45
46
|
}
|
|
46
47
|
function Ue(c) {
|
|
47
|
-
return !ze(c) ||
|
|
48
|
+
return !ze(c) || St(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);
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
50
|
+
function la(c, C) {
|
|
51
|
+
const y = Object.keys(c).sort(), T = Object.keys(C).sort();
|
|
52
|
+
if (y.length !== T.length)
|
|
52
53
|
return !1;
|
|
53
|
-
for (let H = 0; H <
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
54
|
+
for (let H = 0; H < y.length; H += 1) {
|
|
55
|
+
const me = y[H], pe = T[H];
|
|
56
|
+
if (me !== pe || typeof c[me] != typeof C[pe])
|
|
56
57
|
return !1;
|
|
57
58
|
}
|
|
58
59
|
return !0;
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function oa(c) {
|
|
61
62
|
if (c.length <= 1) return !0;
|
|
62
63
|
for (let C = 0; C < c.length; C += 1)
|
|
63
|
-
for (let
|
|
64
|
-
if (!
|
|
64
|
+
for (let y = C + 1; y < c.length; y += 1)
|
|
65
|
+
if (!la(c[C], c[y]))
|
|
65
66
|
return !1;
|
|
66
67
|
return !0;
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
69
|
+
function na(c) {
|
|
70
|
+
return ta.includes(c.toUpperCase());
|
|
70
71
|
}
|
|
71
72
|
function xt(c, C) {
|
|
72
|
-
let
|
|
73
|
+
let y = [];
|
|
73
74
|
for (let T = 0; T < c.length; T += 1)
|
|
74
|
-
|
|
75
|
-
return
|
|
75
|
+
y.push(C(c[T]));
|
|
76
|
+
return y.includes(!0);
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((
|
|
78
|
+
function kt(c) {
|
|
79
|
+
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((y) => Y(y)).map((y) => y.length)));
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
return Object.values(c).filter((
|
|
81
|
+
function ia(c, C) {
|
|
82
|
+
return Object.values(c).filter((y) => C(y))[0];
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function bt(c) {
|
|
84
85
|
const C = {};
|
|
85
|
-
for (let
|
|
86
|
-
c.hasOwnProperty(
|
|
86
|
+
for (let y in c)
|
|
87
|
+
c.hasOwnProperty(y) && (C[y.toUpperCase()] = c[y]);
|
|
87
88
|
return C;
|
|
88
89
|
}
|
|
89
|
-
const
|
|
90
|
+
const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], va = ["x", "y", "width", "height"], da = ["width", "height"], ca = ["id"], ha = ["id"], fa = ["id"], ga = ["flood-color"], ma = {
|
|
90
91
|
key: 0,
|
|
91
92
|
class: "donut-label-connectors"
|
|
92
|
-
},
|
|
93
|
+
}, pa = ["d", "stroke", "stroke-width", "filter"], ya = ["cx", "cy", "r", "fill", "filter"], xa = { class: "donut" }, ka = ["d", "fill", "stroke", "stroke-width", "filter"], ba = ["d", "onMouseenter", "onClick"], Sa = {
|
|
93
94
|
key: 1,
|
|
94
95
|
class: "donut-labels quick-animation"
|
|
95
|
-
},
|
|
96
|
+
}, wa = ["cx", "cy", "fill", "stroke", "filter"], Aa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], _a = ["text-anchor", "x", "y", "fill", "font-size", "filter"], La = {
|
|
96
97
|
key: 2,
|
|
97
98
|
class: "donut-hollow quick-animation"
|
|
98
|
-
},
|
|
99
|
+
}, za = ["x", "y", "font-size", "fill"], $a = ["x", "y", "font-size", "fill"], Ca = {
|
|
99
100
|
key: 0,
|
|
100
101
|
class: "line-grid"
|
|
101
|
-
},
|
|
102
|
+
}, Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = {
|
|
102
103
|
key: 1,
|
|
103
104
|
class: "line-axis"
|
|
104
|
-
},
|
|
105
|
+
}, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = {
|
|
105
106
|
key: 2,
|
|
106
107
|
class: "yLabels"
|
|
107
|
-
},
|
|
108
|
+
}, Ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fa = ["x", "y", "font-size", "fill"], Na = {
|
|
108
109
|
key: 3,
|
|
109
110
|
class: "periodLabels"
|
|
110
|
-
},
|
|
111
|
+
}, Ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = { key: 1 }, Da = ["font-size", "text-anchor", "fill", "transform"], Va = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], qa = { class: "plots" }, Ha = { class: "line-plot-series" }, Wa = ["d", "stroke", "stroke-width"], ja = ["d", "stroke", "stroke-width"], Ga = ["d", "stroke", "stroke-width"], Xa = ["d", "stroke", "stroke-width"], Za = ["cx", "cy", "fill", "stroke"], Ya = {
|
|
111
112
|
key: 4,
|
|
112
113
|
class: "dataLabels"
|
|
113
|
-
},
|
|
114
|
+
}, Ja = ["font-size", "fill", "x", "y"], Qa = { class: "tooltip-traps" }, Ka = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], el = {
|
|
114
115
|
key: 0,
|
|
115
116
|
class: "line-grid"
|
|
116
|
-
},
|
|
117
|
+
}, tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = {
|
|
117
118
|
key: 1,
|
|
118
119
|
class: "line-axis"
|
|
119
|
-
},
|
|
120
|
+
}, ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = {
|
|
120
121
|
key: 2,
|
|
121
122
|
class: "yLabels"
|
|
122
|
-
},
|
|
123
|
+
}, ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["x", "y", "font-size", "fill"], sl = {
|
|
123
124
|
key: 3,
|
|
124
125
|
class: "periodLabels"
|
|
125
|
-
},
|
|
126
|
+
}, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = ["font-size", "text-anchor", "transform", "fill"], cl = { class: "plots" }, hl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], fl = ["to"], gl = ["from", "to"], ml = {
|
|
126
127
|
key: 4,
|
|
127
128
|
class: "dataLabels"
|
|
128
|
-
},
|
|
129
|
+
}, pl = ["x", "y", "font-size", "fill"], yl = { class: "tooltip-traps" }, xl = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], kl = {
|
|
129
130
|
key: 6,
|
|
130
131
|
class: "axis-labels"
|
|
131
|
-
},
|
|
132
|
+
}, bl = { key: 0 }, Sl = ["font-size", "fill", "x", "y"], wl = { key: 1 }, Al = ["font-size", "fill", "x", "y"], _l = { key: 2 }, Ll = ["font-size", "fill", "transform"], zl = { key: 3 }, $l = ["font-size", "fill", "transform"], Cl = {
|
|
132
133
|
key: 6,
|
|
133
134
|
class: "vue-data-ui-watermark"
|
|
134
|
-
},
|
|
135
|
+
}, Il = ["onClick"], El = ["onClick"], Ol = ["onClick"], Tl = {
|
|
135
136
|
key: 1,
|
|
136
137
|
class: "vue-ui-quick-chart-not-processable"
|
|
137
|
-
},
|
|
138
|
+
}, Pl = {
|
|
138
139
|
__name: "vue-ui-quick-chart",
|
|
139
140
|
props: {
|
|
140
141
|
config: {
|
|
@@ -151,35 +152,35 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
154
|
emits: ["selectDatapoint", "selectLegend"],
|
|
154
|
-
setup(c, { expose: C, emit:
|
|
155
|
-
const T =
|
|
155
|
+
setup(c, { expose: C, emit: y }) {
|
|
156
|
+
const T = he(() => import("./BaseIcon-naqtCxVi.js")), H = he(() => import("./PackageVersion-5TR4ocqp.js")), me = he(() => import("./PenAndPaper-D6AqipIO.js")), pe = he(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ye = he(() => import("./Tooltip-CoQnTnr-.js")), $e = he(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_quick_chart: F } = Mt(), B = c, ee = z(null), Ge = z(null), Xe = z(null), Ze = z(null), J = z(Ft()), te = z(!1), xe = z(null), ae = z(""), W = z(null), Ye = z(null), Je = z(null), w = z([]), Qe = z(0), Ce = z(0), e = U({
|
|
156
157
|
get: () => at(),
|
|
157
158
|
set: (o) => o
|
|
158
|
-
}), { svgRef: Ke } =
|
|
159
|
+
}), { svgRef: Ke } = Yt({ config: { text: e.value.title } }), wt = U(() => e.value.showUserOptionsOnChartHover), et = U(() => e.value.keepUserOptionsStateOnChartLeave), Ie = z(!e.value.showUserOptionsOnChartHover);
|
|
159
160
|
function tt(o = !1) {
|
|
160
|
-
|
|
161
|
+
wt.value && (Ie.value = o);
|
|
161
162
|
}
|
|
162
163
|
function at() {
|
|
163
|
-
const o =
|
|
164
|
+
const o = yt({
|
|
164
165
|
userConfig: B.config,
|
|
165
166
|
defaultConfig: F
|
|
166
167
|
});
|
|
167
168
|
let s = {};
|
|
168
169
|
return o.theme ? s = {
|
|
169
|
-
...
|
|
170
|
-
userConfig:
|
|
170
|
+
...yt({
|
|
171
|
+
userConfig: Ut.vue_ui_quick_chart[o.theme] || B.config,
|
|
171
172
|
defaultConfig: o
|
|
172
173
|
}),
|
|
173
|
-
customPalette:
|
|
174
|
-
} : s = o, B.config &&
|
|
174
|
+
customPalette: Nt[o.theme] || q
|
|
175
|
+
} : s = o, B.config && gt(B.config, "zoomStartIndex") ? s.zoomStartIndex = B.config.zoomStartIndex : s.zoomStartIndex = null, B.config && gt(B.config, "zoomEndIndex") ? s.zoomEndIndex = B.config.zoomEndIndex : s.zoomEndIndex = null, s;
|
|
175
176
|
}
|
|
176
177
|
Ve(() => B.config, (o) => {
|
|
177
178
|
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
179
|
}, { deep: !0 }), Ve(() => B.dataset, (o) => {
|
|
179
|
-
p.value = be.value,
|
|
180
|
+
p.value = be.value, x.value.start = 0, x.value.end = p.value.maxSeriesLength, Ce.value += 1;
|
|
180
181
|
}, { deep: !0 });
|
|
181
|
-
const ke = U(() =>
|
|
182
|
-
const o =
|
|
182
|
+
const ke = U(() => Bt(e.value.customPalette)), re = y, be = U(() => {
|
|
183
|
+
const o = aa({ dataset: Dt(B.dataset, [
|
|
183
184
|
"serie",
|
|
184
185
|
"series",
|
|
185
186
|
"data",
|
|
@@ -188,31 +189,31 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
188
189
|
"num"
|
|
189
190
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
190
191
|
return o || console.error("VueUiQuickChart : Dataset is not processable"), o;
|
|
191
|
-
}), p = z(be.value),
|
|
192
|
+
}), p = z(be.value), At = U(() => !!p.value), L = U(() => p.value ? p.value.type : null);
|
|
192
193
|
Ve(() => L.value, (o) => {
|
|
193
|
-
o ||
|
|
194
|
+
o || Vt({
|
|
194
195
|
componentName: "VueUiQuickChart",
|
|
195
196
|
type: "dataset"
|
|
196
197
|
});
|
|
197
198
|
}, { immediate: !0 });
|
|
198
|
-
const { isPrinting: Ee, isImaging: Oe, generatePdf: lt, generateImage: ot } =
|
|
199
|
+
const { isPrinting: Ee, isImaging: Oe, generatePdf: lt, generateImage: ot } = Zt({
|
|
199
200
|
elementId: `${L.value}_${J.value}`,
|
|
200
201
|
fileName: e.value.title || L.value,
|
|
201
202
|
options: e.value.userOptionsPrint
|
|
202
|
-
}),
|
|
203
|
+
}), _t = U(() => e.value.showUserOptions && !e.value.title), b = z({
|
|
203
204
|
width: e.value.width,
|
|
204
205
|
height: e.value.height
|
|
205
206
|
}), Se = z({
|
|
206
207
|
showTooltip: e.value.showTooltip
|
|
207
|
-
}), Q =
|
|
208
|
-
|
|
208
|
+
}), Q = ft(null), se = ft(null);
|
|
209
|
+
Tt(() => {
|
|
209
210
|
nt();
|
|
210
211
|
});
|
|
211
212
|
function nt() {
|
|
212
213
|
if (e.value.responsive) {
|
|
213
|
-
const o =
|
|
214
|
-
const { width: s, height: t } =
|
|
215
|
-
chart:
|
|
214
|
+
const o = Gt(() => {
|
|
215
|
+
const { width: s, height: t } = Xt({
|
|
216
|
+
chart: ee.value,
|
|
216
217
|
title: e.value.title ? Ge.value : null,
|
|
217
218
|
legend: e.value.showLegend ? Xe.value : null,
|
|
218
219
|
slicer: [A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? Ze.value : null,
|
|
@@ -223,14 +224,14 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
223
224
|
b.value.width = s, b.value.height = t;
|
|
224
225
|
});
|
|
225
226
|
});
|
|
226
|
-
Q.value && (
|
|
227
|
+
Q.value && (se.value && Q.value.unobserve(se.value), Q.value.disconnect()), Q.value = new ResizeObserver(o), se.value = ee.value.parentNode, Q.value.observe(se.value);
|
|
227
228
|
}
|
|
228
229
|
dt();
|
|
229
230
|
}
|
|
230
|
-
|
|
231
|
-
Q.value && (
|
|
231
|
+
Pt(() => {
|
|
232
|
+
Q.value && (se.value && Q.value.unobserve(se.value), Q.value.disconnect());
|
|
232
233
|
});
|
|
233
|
-
const
|
|
234
|
+
const Lt = U(() => {
|
|
234
235
|
switch (L.value) {
|
|
235
236
|
case A.LINE:
|
|
236
237
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
@@ -252,7 +253,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
252
253
|
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
|
|
253
254
|
}
|
|
254
255
|
const rt = z(null), st = z(null), Te = z(!1);
|
|
255
|
-
function
|
|
256
|
+
function zt(o, s) {
|
|
256
257
|
Te.value = !0;
|
|
257
258
|
let t = o.value;
|
|
258
259
|
const u = be.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
|
|
@@ -297,7 +298,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
const j = z(null);
|
|
300
|
-
function
|
|
301
|
+
function $t(o) {
|
|
301
302
|
j.value = o;
|
|
302
303
|
}
|
|
303
304
|
const vt = U(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = U(() => {
|
|
@@ -327,7 +328,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
327
328
|
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
328
329
|
}
|
|
329
330
|
function r({ datapoint: n, seriesIndex: i }) {
|
|
330
|
-
|
|
331
|
+
xe.value = { datapoint: n, seriesIndex: i, config: e.value, dataset: o }, W.value = n.id;
|
|
331
332
|
const S = e.value.tooltipCustomFormat;
|
|
332
333
|
if (Ne(S) && je(() => S({
|
|
333
334
|
datapoint: n,
|
|
@@ -335,7 +336,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
335
336
|
series: o,
|
|
336
337
|
config: e.value
|
|
337
338
|
})))
|
|
338
|
-
|
|
339
|
+
ae.value = S({
|
|
339
340
|
datapoint: n,
|
|
340
341
|
seriesIndex: i,
|
|
341
342
|
series: o,
|
|
@@ -353,25 +354,25 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
353
354
|
r: e.value.dataLabelRoundingValue
|
|
354
355
|
}),
|
|
355
356
|
{ datapoint: n, seriesIndex: i }
|
|
356
|
-
)}</b>`, k += `<span>(${D({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`,
|
|
357
|
+
)}</b>`, k += `<span>(${D({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, ae.value = `<div>${k}</div>`;
|
|
357
358
|
}
|
|
358
|
-
|
|
359
|
+
te.value = !0;
|
|
359
360
|
}
|
|
360
361
|
function h() {
|
|
361
|
-
|
|
362
|
+
te.value = !1, W.value = null, j.value = null;
|
|
362
363
|
}
|
|
363
364
|
const P = {
|
|
364
365
|
centerX: b.value.width / 2,
|
|
365
366
|
centerY: b.value.height / 2
|
|
366
|
-
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, i) => n + i, 0),
|
|
367
|
+
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, i) => n + i, 0), de = o.map((n, i) => ({
|
|
367
368
|
...n,
|
|
368
369
|
proportion: (n.value || 0) / V,
|
|
369
370
|
value: n.value || 0,
|
|
370
371
|
absoluteValue: be.value.dataset.find((S, k) => `donut_${k}` === n.id).VALUE
|
|
371
|
-
})),
|
|
372
|
+
})), le = b.value.width / 2, ce = b.value.height / 2, oe = b.value.height * e.value.donutRadiusRatio;
|
|
372
373
|
return {
|
|
373
|
-
dataset:
|
|
374
|
-
legend:
|
|
374
|
+
dataset: de.filter((n) => !w.value.includes(n.id)),
|
|
375
|
+
legend: de,
|
|
375
376
|
drawingArea: P,
|
|
376
377
|
displayArcPercentage: s,
|
|
377
378
|
isArcBigEnough: t,
|
|
@@ -379,15 +380,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
379
380
|
killTooltip: h,
|
|
380
381
|
getSpaces: u,
|
|
381
382
|
total: V,
|
|
382
|
-
cx:
|
|
383
|
-
cy:
|
|
384
|
-
radius:
|
|
385
|
-
chart:
|
|
383
|
+
cx: le,
|
|
384
|
+
cy: ce,
|
|
385
|
+
radius: oe,
|
|
386
|
+
chart: qt(
|
|
386
387
|
{ series: o.filter((n) => !w.value.includes(n.id)) },
|
|
387
|
-
ae,
|
|
388
|
-
de,
|
|
389
|
-
le,
|
|
390
388
|
le,
|
|
389
|
+
ce,
|
|
390
|
+
oe,
|
|
391
|
+
oe,
|
|
391
392
|
1.99999,
|
|
392
393
|
2,
|
|
393
394
|
1,
|
|
@@ -396,25 +397,25 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
396
397
|
b.value.height * vt.value
|
|
397
398
|
)
|
|
398
399
|
};
|
|
399
|
-
}),
|
|
400
|
+
}), x = z({
|
|
400
401
|
start: 0,
|
|
401
402
|
end: p.value.maxSeriesLength
|
|
402
403
|
});
|
|
403
|
-
function
|
|
404
|
+
function Ct() {
|
|
404
405
|
dt();
|
|
405
406
|
}
|
|
406
|
-
const
|
|
407
|
+
const ve = z(null);
|
|
407
408
|
async function dt() {
|
|
408
|
-
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) &&
|
|
409
|
+
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && ve.value ? (e.value.zoomStartIndex !== null && (await Me(), await Me(), ve.value && ve.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Me(), await Me(), ve.value && ve.value.setEndValue(It(e.value.zoomEndIndex + 1)))) : (x.value = {
|
|
409
410
|
start: 0,
|
|
410
411
|
end: p.value.maxSeriesLength
|
|
411
412
|
}, Ce.value += 1);
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
+
function It(o) {
|
|
414
415
|
const s = p.value.maxSeriesLength;
|
|
415
416
|
return o > s ? s : o < 0 || e.value.zoomStartIndex !== null && o < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : o;
|
|
416
417
|
}
|
|
417
|
-
const
|
|
418
|
+
const Et = U(() => {
|
|
418
419
|
if (!e.value.zoomMinimap.show || L.value === A.DONUT) return [];
|
|
419
420
|
let o = [];
|
|
420
421
|
Y(p.value.dataset) && (o = p.value.dataset), Ue(p.value.dataset) && (o = p.value.dataset.map((r, h) => ({
|
|
@@ -446,8 +447,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
446
447
|
let t = [];
|
|
447
448
|
Y(p.value.dataset) && (t = [
|
|
448
449
|
{
|
|
449
|
-
values: p.value.dataset.slice(
|
|
450
|
-
absoluteIndices: p.value.dataset.map((n, i) => i).slice(
|
|
450
|
+
values: p.value.dataset.slice(x.value.start, x.value.end),
|
|
451
|
+
absoluteIndices: p.value.dataset.map((n, i) => i).slice(x.value.start, x.value.end),
|
|
451
452
|
name: e.value.title,
|
|
452
453
|
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
453
454
|
id: "line_0"
|
|
@@ -460,18 +461,18 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
460
461
|
})).map((n, i) => ({
|
|
461
462
|
...n,
|
|
462
463
|
color: n.COLOR ? He(n.COLOR) : ke.value[i + e.value.paletteStartIndex] || q[i + e.value.paletteStartIndex] || q[(i + e.value.paletteStartIndex) % q.length],
|
|
463
|
-
values: n.values.slice(
|
|
464
|
-
absoluteIndices: n.values.map((S, k) => k).slice(
|
|
464
|
+
values: n.values.slice(x.value.start, x.value.end),
|
|
465
|
+
absoluteIndices: n.values.map((S, k) => k).slice(x.value.start, x.value.end)
|
|
465
466
|
})));
|
|
466
467
|
const u = {
|
|
467
468
|
max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
468
469
|
min: Math.min(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
469
470
|
maxSeries: Math.max(...t.map((n) => n.values.length))
|
|
470
|
-
}, r =
|
|
471
|
+
}, r = mt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, de = r.ticks.map((n) => ({
|
|
471
472
|
y: s.bottom - s.height * ((n + h) / (r.max + h)),
|
|
472
473
|
x: s.left - 8,
|
|
473
474
|
value: n
|
|
474
|
-
})),
|
|
475
|
+
})), le = t.map((n, i) => ({
|
|
475
476
|
...n,
|
|
476
477
|
coordinates: n.values.map((S, k) => ({
|
|
477
478
|
x: s.left + V * (k + 1) - V / 2,
|
|
@@ -487,14 +488,14 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
487
488
|
linePath: i.join(" ")
|
|
488
489
|
};
|
|
489
490
|
});
|
|
490
|
-
function
|
|
491
|
+
function ce(n) {
|
|
491
492
|
W.value = n, j.value = n;
|
|
492
493
|
const i = t.map((k) => ({
|
|
493
494
|
...k,
|
|
494
495
|
value: k.values[n],
|
|
495
496
|
absoluteIndex: k.absoluteIndices[n]
|
|
496
497
|
})).filter((k) => !w.value.includes(k.id));
|
|
497
|
-
|
|
498
|
+
xe.value = { datapoint: i, seriesIndex: n, config: e.value, dataset: t };
|
|
498
499
|
const S = e.value.tooltipCustomFormat;
|
|
499
500
|
if (Ne(S) && je(() => S({
|
|
500
501
|
datapoint: i,
|
|
@@ -502,7 +503,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
502
503
|
series: t,
|
|
503
504
|
config: e.value
|
|
504
505
|
})))
|
|
505
|
-
|
|
506
|
+
ae.value = S({
|
|
506
507
|
datapoint: i,
|
|
507
508
|
seriesIndex: n,
|
|
508
509
|
series: t,
|
|
@@ -529,23 +530,23 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
529
530
|
</b>
|
|
530
531
|
</div>
|
|
531
532
|
`;
|
|
532
|
-
}),
|
|
533
|
+
}), ae.value = k;
|
|
533
534
|
}
|
|
534
|
-
|
|
535
|
+
te.value = !0;
|
|
535
536
|
}
|
|
536
|
-
function
|
|
537
|
-
W.value = null, j.value = null,
|
|
537
|
+
function oe() {
|
|
538
|
+
W.value = null, j.value = null, te.value = !1;
|
|
538
539
|
}
|
|
539
540
|
return {
|
|
540
541
|
absoluteZero: P,
|
|
541
|
-
dataset:
|
|
542
|
-
legend:
|
|
542
|
+
dataset: le.filter((n) => !w.value.includes(n.id)),
|
|
543
|
+
legend: le,
|
|
543
544
|
drawingArea: s,
|
|
544
545
|
extremes: u,
|
|
545
546
|
slotSize: V,
|
|
546
|
-
yLabels:
|
|
547
|
-
useTooltip:
|
|
548
|
-
killTooltip:
|
|
547
|
+
yLabels: de,
|
|
548
|
+
useTooltip: ce,
|
|
549
|
+
killTooltip: oe
|
|
549
550
|
};
|
|
550
551
|
}), d = U(() => {
|
|
551
552
|
if (L.value !== A.BAR) return null;
|
|
@@ -563,8 +564,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
563
564
|
let t = [];
|
|
564
565
|
Y(p.value.dataset) && (t = [
|
|
565
566
|
{
|
|
566
|
-
values: p.value.dataset.slice(
|
|
567
|
-
absoluteIndices: p.value.dataset.map((i, S) => S).slice(
|
|
567
|
+
values: p.value.dataset.slice(x.value.start, x.value.end),
|
|
568
|
+
absoluteIndices: p.value.dataset.map((i, S) => S).slice(x.value.start, x.value.end),
|
|
568
569
|
name: e.value.title,
|
|
569
570
|
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
570
571
|
id: "bar_0"
|
|
@@ -577,21 +578,21 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
577
578
|
})).map((i, S) => ({
|
|
578
579
|
...i,
|
|
579
580
|
color: i.COLOR ? He(i.COLOR) : ke.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
|
|
580
|
-
values: i.values.slice(
|
|
581
|
-
absoluteIndices: i.values.map((k, E) => E).slice(
|
|
581
|
+
values: i.values.slice(x.value.start, x.value.end),
|
|
582
|
+
absoluteIndices: i.values.map((k, E) => E).slice(x.value.start, x.value.end)
|
|
582
583
|
})));
|
|
583
584
|
const u = {
|
|
584
585
|
max: Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
585
586
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
586
587
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
587
|
-
}, r =
|
|
588
|
+
}, r = mt(u.min < 0 ? u.min : 0, u.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 / u.maxSeries, de = r.ticks.map((i) => ({
|
|
588
589
|
y: s.bottom - s.height * ((i + h) / (r.max + h)),
|
|
589
590
|
x: s.left - 8,
|
|
590
591
|
value: i
|
|
591
|
-
})),
|
|
592
|
+
})), le = t.map((i, S) => ({
|
|
592
593
|
...i,
|
|
593
594
|
coordinates: i.values.map((k, E) => {
|
|
594
|
-
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / Math.abs(u.min) * (s.height - P), De = h / (u.max + h) * s.height, _e = V / t.filter((
|
|
595
|
+
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / Math.abs(u.min) * (s.height - P), De = h / (u.max + h) * s.height, _e = V / t.filter((ne) => !w.value.includes(ne.id)).length - e.value.barGap / t.filter((ne) => !w.value.includes(ne.id)).length;
|
|
595
596
|
return {
|
|
596
597
|
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
597
598
|
y: k > 0 ? s.bottom - N : P,
|
|
@@ -600,10 +601,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
600
601
|
width: _e
|
|
601
602
|
};
|
|
602
603
|
})
|
|
603
|
-
})),
|
|
604
|
+
})), ce = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
|
|
604
605
|
...i,
|
|
605
606
|
coordinates: i.values.map((k, E) => {
|
|
606
|
-
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / (u.max + h) * s.height, De = h / (u.max + h) * s.height, _e = V / t.filter((
|
|
607
|
+
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / (u.max + h) * s.height, De = h / (u.max + h) * s.height, _e = V / t.filter((ne) => !w.value.includes(ne.id)).length - e.value.barGap / t.filter((ne) => !w.value.includes(ne.id)).length;
|
|
607
608
|
return {
|
|
608
609
|
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
609
610
|
y: k > 0 ? s.bottom - N : P,
|
|
@@ -613,14 +614,14 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
613
614
|
};
|
|
614
615
|
})
|
|
615
616
|
}));
|
|
616
|
-
function
|
|
617
|
+
function oe(i) {
|
|
617
618
|
W.value = i, j.value = i;
|
|
618
619
|
const S = t.map((E) => ({
|
|
619
620
|
...E,
|
|
620
621
|
value: E.values[i],
|
|
621
622
|
absoluteIndex: E.absoluteIndices[i]
|
|
622
623
|
})).filter((E) => !w.value.includes(E.id));
|
|
623
|
-
|
|
624
|
+
xe.value = { datapoint: S, seriesIndex: i, config: e.value, dataset: t };
|
|
624
625
|
const k = e.value.tooltipCustomFormat;
|
|
625
626
|
if (Ne(k) && je(() => k({
|
|
626
627
|
datapoint: S,
|
|
@@ -628,7 +629,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
628
629
|
series: t,
|
|
629
630
|
config: e.value
|
|
630
631
|
})))
|
|
631
|
-
|
|
632
|
+
ae.value = k({
|
|
632
633
|
point: S,
|
|
633
634
|
seriesIndex: i,
|
|
634
635
|
series: t,
|
|
@@ -655,57 +656,64 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
655
656
|
</b>
|
|
656
657
|
</div>
|
|
657
658
|
`;
|
|
658
|
-
}),
|
|
659
|
+
}), ae.value = E;
|
|
659
660
|
}
|
|
660
|
-
|
|
661
|
+
te.value = !0;
|
|
661
662
|
}
|
|
662
663
|
function n() {
|
|
663
|
-
|
|
664
|
+
te.value = !1, W.value = null, j.value = null;
|
|
664
665
|
}
|
|
665
666
|
return {
|
|
666
667
|
absoluteZero: P,
|
|
667
|
-
dataset:
|
|
668
|
-
legend:
|
|
668
|
+
dataset: ce.filter((i) => !w.value.includes(i.id)),
|
|
669
|
+
legend: le,
|
|
669
670
|
drawingArea: s,
|
|
670
671
|
extremes: u,
|
|
671
672
|
slotSize: V,
|
|
672
|
-
yLabels:
|
|
673
|
-
useTooltip:
|
|
673
|
+
yLabels: de,
|
|
674
|
+
useTooltip: oe,
|
|
674
675
|
killTooltip: n
|
|
675
676
|
};
|
|
676
|
-
}), K = U(() =>
|
|
677
|
+
}), K = U(() => Qt({
|
|
677
678
|
values: e.value.xyPeriods,
|
|
678
679
|
maxDatapoints: p.value.maxSeriesLength,
|
|
679
680
|
formatter: e.value.datetimeFormatter,
|
|
680
|
-
start:
|
|
681
|
-
end:
|
|
681
|
+
start: x.value.start,
|
|
682
|
+
end: x.value.end
|
|
682
683
|
})), Pe = z(!1);
|
|
683
|
-
function
|
|
684
|
+
function ct(o) {
|
|
684
685
|
Pe.value = o, Qe.value += 1;
|
|
685
686
|
}
|
|
686
|
-
function
|
|
687
|
+
function ht() {
|
|
687
688
|
Se.value.showTooltip = !Se.value.showTooltip;
|
|
688
689
|
}
|
|
689
690
|
const Re = z(!1);
|
|
690
691
|
function Be() {
|
|
691
692
|
Re.value = !Re.value;
|
|
692
693
|
}
|
|
694
|
+
async function Ot({ scale: o = 2 } = {}) {
|
|
695
|
+
if (!ee.value) return;
|
|
696
|
+
const { imageUri: s, base64: t } = await Kt({ domElement: ee.value, base64: !0, img: !0, scale: o });
|
|
697
|
+
return { imageUri: s, base64: t };
|
|
698
|
+
}
|
|
693
699
|
return C({
|
|
700
|
+
getImage: Ot,
|
|
694
701
|
generatePdf: lt,
|
|
695
702
|
generateImage: ot,
|
|
696
|
-
toggleTooltip:
|
|
697
|
-
toggleAnnotator: Be
|
|
698
|
-
|
|
703
|
+
toggleTooltip: ht,
|
|
704
|
+
toggleAnnotator: Be,
|
|
705
|
+
toggleFullscreen: ct
|
|
706
|
+
}), (o, s) => At.value ? (a(), l("div", {
|
|
699
707
|
key: 0,
|
|
700
708
|
id: `${L.value}_${J.value}`,
|
|
701
709
|
ref_key: "quickChart",
|
|
702
|
-
ref:
|
|
703
|
-
class:
|
|
710
|
+
ref: ee,
|
|
711
|
+
class: fe({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
|
|
704
712
|
style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
705
713
|
onMouseenter: s[5] || (s[5] = () => tt(!0)),
|
|
706
714
|
onMouseleave: s[6] || (s[6] = () => tt(!1))
|
|
707
715
|
}, [
|
|
708
|
-
e.value.userOptionsButtons.annotator ? (a(), Fe(f(
|
|
716
|
+
e.value.userOptionsButtons.annotator ? (a(), Fe(f(me), {
|
|
709
717
|
key: 0,
|
|
710
718
|
svgRef: f(Ke),
|
|
711
719
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -713,7 +721,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
713
721
|
active: Re.value,
|
|
714
722
|
onClose: Be
|
|
715
723
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
716
|
-
|
|
724
|
+
_t.value ? (a(), l("div", {
|
|
717
725
|
key: 1,
|
|
718
726
|
ref_key: "noTitle",
|
|
719
727
|
ref: Je,
|
|
@@ -736,25 +744,25 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
736
744
|
isTooltip: Se.value.showTooltip,
|
|
737
745
|
isFullscreen: Pe.value,
|
|
738
746
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
739
|
-
chartElement:
|
|
747
|
+
chartElement: ee.value,
|
|
740
748
|
position: e.value.userOptionsPosition,
|
|
741
749
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
742
750
|
isAnnotation: Re.value,
|
|
743
751
|
callbacks: e.value.userOptionsCallbacks,
|
|
744
752
|
printScale: e.value.userOptionsPrint.scale,
|
|
745
|
-
onToggleFullscreen:
|
|
753
|
+
onToggleFullscreen: ct,
|
|
746
754
|
onGeneratePdf: f(lt),
|
|
747
755
|
onGenerateImage: f(ot),
|
|
748
|
-
onToggleTooltip:
|
|
756
|
+
onToggleTooltip: ht,
|
|
749
757
|
onToggleAnnotator: Be,
|
|
750
758
|
style: R({
|
|
751
759
|
visibility: et.value ? Ie.value ? "visible" : "hidden" : "visible"
|
|
752
760
|
})
|
|
753
|
-
},
|
|
761
|
+
}, Rt({ _: 2 }, [
|
|
754
762
|
o.$slots.menuIcon ? {
|
|
755
763
|
name: "menuIcon",
|
|
756
764
|
fn: G(({ isOpen: t, color: u }) => [
|
|
757
|
-
M(o.$slots, "menuIcon",
|
|
765
|
+
M(o.$slots, "menuIcon", ie(ue({ isOpen: t, color: u })), void 0, !0)
|
|
758
766
|
]),
|
|
759
767
|
key: "0"
|
|
760
768
|
} : void 0,
|
|
@@ -782,14 +790,14 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
782
790
|
o.$slots.optionFullscreen ? {
|
|
783
791
|
name: "optionFullscreen",
|
|
784
792
|
fn: G(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
785
|
-
M(o.$slots, "optionFullscreen",
|
|
793
|
+
M(o.$slots, "optionFullscreen", ie(ue({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
786
794
|
]),
|
|
787
795
|
key: "4"
|
|
788
796
|
} : void 0,
|
|
789
797
|
o.$slots.optionAnnotator ? {
|
|
790
798
|
name: "optionAnnotator",
|
|
791
799
|
fn: G(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
792
|
-
M(o.$slots, "optionAnnotator",
|
|
800
|
+
M(o.$slots, "optionAnnotator", ie(ue({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
793
801
|
]),
|
|
794
802
|
key: "5"
|
|
795
803
|
} : void 0
|
|
@@ -805,11 +813,11 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
805
813
|
key: 4,
|
|
806
814
|
ref_key: "svgRef",
|
|
807
815
|
ref: Ke,
|
|
808
|
-
xmlns: f(
|
|
809
|
-
viewBox:
|
|
816
|
+
xmlns: f(Ht),
|
|
817
|
+
viewBox: Lt.value,
|
|
810
818
|
style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
811
819
|
}, [
|
|
812
|
-
|
|
820
|
+
ge(f(H)),
|
|
813
821
|
o.$slots["chart-background"] && L.value === A.BAR ? (a(), l("foreignObject", {
|
|
814
822
|
key: 0,
|
|
815
823
|
x: d.value.drawingArea.left,
|
|
@@ -821,7 +829,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
821
829
|
}
|
|
822
830
|
}, [
|
|
823
831
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
824
|
-
], 8,
|
|
832
|
+
], 8, sa)) : g("", !0),
|
|
825
833
|
o.$slots["chart-background"] && L.value === A.LINE ? (a(), l("foreignObject", {
|
|
826
834
|
key: 1,
|
|
827
835
|
x: v.value.drawingArea.left,
|
|
@@ -833,7 +841,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
833
841
|
}
|
|
834
842
|
}, [
|
|
835
843
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
836
|
-
], 8,
|
|
844
|
+
], 8, va)) : g("", !0),
|
|
837
845
|
o.$slots["chart-background"] && L.value === A.DONUT ? (a(), l("foreignObject", {
|
|
838
846
|
key: 2,
|
|
839
847
|
x: 0,
|
|
@@ -845,7 +853,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
845
853
|
}
|
|
846
854
|
}, [
|
|
847
855
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
848
|
-
], 8,
|
|
856
|
+
], 8, da)) : g("", !0),
|
|
849
857
|
_("defs", null, [
|
|
850
858
|
_("filter", {
|
|
851
859
|
id: `blur_${J.value}`,
|
|
@@ -858,12 +866,12 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
858
866
|
in: "SourceGraphic",
|
|
859
867
|
stdDeviation: 2,
|
|
860
868
|
id: `blur_std_${J.value}`
|
|
861
|
-
}, null, 8,
|
|
869
|
+
}, null, 8, ha),
|
|
862
870
|
s[7] || (s[7] = _("feColorMatrix", {
|
|
863
871
|
type: "saturate",
|
|
864
872
|
values: "0"
|
|
865
873
|
}, null, -1))
|
|
866
|
-
], 8,
|
|
874
|
+
], 8, ca),
|
|
867
875
|
_("filter", {
|
|
868
876
|
id: `shadow_${J.value}`,
|
|
869
877
|
"color-interpolation-filters": "sRGB"
|
|
@@ -874,22 +882,22 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
874
882
|
stdDeviation: "10",
|
|
875
883
|
"flood-opacity": "0.5",
|
|
876
884
|
"flood-color": e.value.donutShadowColor
|
|
877
|
-
}, null, 8,
|
|
878
|
-
], 8,
|
|
885
|
+
}, null, 8, ga)
|
|
886
|
+
], 8, fa)
|
|
879
887
|
]),
|
|
880
888
|
L.value === A.DONUT ? (a(), l(m, { key: 3 }, [
|
|
881
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
889
|
+
e.value.showDataLabels ? (a(), l("g", ma, [
|
|
882
890
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
883
891
|
I.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
884
892
|
key: 0,
|
|
885
|
-
d: f(
|
|
893
|
+
d: f(Wt)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * vt.value),
|
|
886
894
|
stroke: t.color,
|
|
887
895
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
888
896
|
"stroke-linecap": "round",
|
|
889
897
|
"stroke-linejoin": "round",
|
|
890
898
|
fill: "none",
|
|
891
899
|
filter: we(t.id)
|
|
892
|
-
}, null, 8,
|
|
900
|
+
}, null, 8, pa)) : g("", !0)
|
|
893
901
|
], 64))), 256))
|
|
894
902
|
])) : g("", !0),
|
|
895
903
|
_("circle", {
|
|
@@ -898,24 +906,24 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
898
906
|
r: I.value.radius,
|
|
899
907
|
fill: e.value.backgroundColor,
|
|
900
908
|
filter: e.value.donutUseShadow ? `url(#shadow_${J.value})` : ""
|
|
901
|
-
}, null, 8,
|
|
902
|
-
_("g",
|
|
909
|
+
}, null, 8, ya),
|
|
910
|
+
_("g", xa, [
|
|
903
911
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
904
912
|
d: t.arcSlice,
|
|
905
913
|
fill: t.color,
|
|
906
914
|
stroke: e.value.backgroundColor,
|
|
907
915
|
"stroke-width": e.value.donutStrokeWidth,
|
|
908
916
|
filter: we(t.id)
|
|
909
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, ka))), 256)),
|
|
910
918
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
911
919
|
d: t.arcSlice,
|
|
912
920
|
fill: "transparent",
|
|
913
921
|
onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex: u }),
|
|
914
922
|
onMouseout: s[0] || (s[0] = (r) => I.value.killTooltip()),
|
|
915
|
-
onClick: (r) =>
|
|
916
|
-
}, null, 40,
|
|
923
|
+
onClick: (r) => re("selectDatapoint", t)
|
|
924
|
+
}, null, 40, ba))), 256))
|
|
917
925
|
]),
|
|
918
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
926
|
+
e.value.showDataLabels ? (a(), l("g", Sa, [
|
|
919
927
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
920
928
|
I.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
921
929
|
key: 0,
|
|
@@ -926,7 +934,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
926
934
|
"stroke-width": 1,
|
|
927
935
|
r: 3,
|
|
928
936
|
filter: we(t.id)
|
|
929
|
-
}, null, 8,
|
|
937
|
+
}, null, 8, wa)) : g("", !0),
|
|
930
938
|
I.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
931
939
|
key: 1,
|
|
932
940
|
"text-anchor": f(Le)(t, !0, 20).anchor,
|
|
@@ -945,7 +953,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
945
953
|
r: e.value.dataLabelRoundingValue
|
|
946
954
|
}),
|
|
947
955
|
{ datapoint: t, seriesIndex: u }
|
|
948
|
-
)) + ") ", 9,
|
|
956
|
+
)) + ") ", 9, Aa)) : g("", !0),
|
|
949
957
|
I.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
950
958
|
key: 2,
|
|
951
959
|
"text-anchor": f(Le)(t).anchor,
|
|
@@ -954,17 +962,17 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
954
962
|
fill: e.value.color,
|
|
955
963
|
"font-size": e.value.dataLabelFontSize,
|
|
956
964
|
filter: we(t.id)
|
|
957
|
-
}, O(t.name), 9,
|
|
965
|
+
}, O(t.name), 9, _a)) : g("", !0)
|
|
958
966
|
], 64))), 256))
|
|
959
967
|
])) : g("", !0),
|
|
960
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
968
|
+
e.value.donutShowTotal ? (a(), l("g", La, [
|
|
961
969
|
_("text", {
|
|
962
970
|
"text-anchor": "middle",
|
|
963
971
|
x: I.value.drawingArea.centerX,
|
|
964
972
|
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
965
973
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
966
974
|
fill: e.value.color
|
|
967
|
-
}, O(e.value.donutTotalLabelText), 9,
|
|
975
|
+
}, O(e.value.donutTotalLabelText), 9, za),
|
|
968
976
|
_("text", {
|
|
969
977
|
"text-anchor": "middle",
|
|
970
978
|
x: I.value.drawingArea.centerX,
|
|
@@ -976,11 +984,11 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
976
984
|
v: I.value.total,
|
|
977
985
|
s: e.value.valueSuffix,
|
|
978
986
|
r: e.value.dataLabelRoundingValue
|
|
979
|
-
})), 9,
|
|
987
|
+
})), 9, $a)
|
|
980
988
|
])) : g("", !0)
|
|
981
989
|
], 64)) : g("", !0),
|
|
982
990
|
L.value === A.LINE ? (a(), l(m, { key: 4 }, [
|
|
983
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
991
|
+
e.value.xyShowGrid ? (a(), l("g", Ca, [
|
|
984
992
|
(a(!0), l(m, null, $(v.value.yLabels, (t) => (a(), l(m, null, [
|
|
985
993
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
986
994
|
key: 0,
|
|
@@ -991,7 +999,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
991
999
|
stroke: e.value.xyGridStroke,
|
|
992
1000
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
993
1001
|
"stroke-linecap": "round"
|
|
994
|
-
}, null, 8,
|
|
1002
|
+
}, null, 8, Ia)) : g("", !0)
|
|
995
1003
|
], 64))), 256)),
|
|
996
1004
|
(a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
997
1005
|
x1: v.value.drawingArea.left + v.value.slotSize * u,
|
|
@@ -1001,9 +1009,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1001
1009
|
stroke: e.value.xyGridStroke,
|
|
1002
1010
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1003
1011
|
"stroke-linecap": "round"
|
|
1004
|
-
}, null, 8,
|
|
1012
|
+
}, null, 8, Ea))), 256))
|
|
1005
1013
|
])) : g("", !0),
|
|
1006
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1014
|
+
e.value.xyShowAxis ? (a(), l("g", Oa, [
|
|
1007
1015
|
_("line", {
|
|
1008
1016
|
x1: v.value.drawingArea.left,
|
|
1009
1017
|
x2: v.value.drawingArea.left,
|
|
@@ -1012,7 +1020,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1012
1020
|
stroke: e.value.xyAxisStroke,
|
|
1013
1021
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1014
1022
|
"stroke-linecap": "round"
|
|
1015
|
-
}, null, 8,
|
|
1023
|
+
}, null, 8, Ta),
|
|
1016
1024
|
_("line", {
|
|
1017
1025
|
x1: v.value.drawingArea.left,
|
|
1018
1026
|
x2: v.value.drawingArea.right,
|
|
@@ -1021,9 +1029,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1021
1029
|
stroke: e.value.xyAxisStroke,
|
|
1022
1030
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1023
1031
|
"stroke-linecap": "round"
|
|
1024
|
-
}, null, 8,
|
|
1032
|
+
}, null, 8, Pa)
|
|
1025
1033
|
])) : g("", !0),
|
|
1026
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1034
|
+
e.value.xyShowScale ? (a(), l("g", Ra, [
|
|
1027
1035
|
(a(!0), l(m, null, $(v.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1028
1036
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1029
1037
|
key: 0,
|
|
@@ -1034,7 +1042,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1034
1042
|
stroke: e.value.xyAxisStroke,
|
|
1035
1043
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1036
1044
|
"stroke-linecap": "round"
|
|
1037
|
-
}, null, 8,
|
|
1045
|
+
}, null, 8, Ma)) : g("", !0),
|
|
1038
1046
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1039
1047
|
key: 1,
|
|
1040
1048
|
x: t.x,
|
|
@@ -1052,12 +1060,12 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1052
1060
|
r: e.value.dataLabelRoundingValue
|
|
1053
1061
|
}),
|
|
1054
1062
|
{ datapoint: t, seriesIndex: u }
|
|
1055
|
-
)), 9,
|
|
1063
|
+
)), 9, Fa)) : g("", !0)
|
|
1056
1064
|
], 64))), 256))
|
|
1057
1065
|
])) : g("", !0),
|
|
1058
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1066
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Na, [
|
|
1059
1067
|
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, u) => (a(), l(m, null, [
|
|
1060
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((
|
|
1068
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((x.value.end - x.value.start) / e.value.xyPeriodsModulo) === 0 || x.value.end - x.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
|
|
1061
1069
|
key: 0,
|
|
1062
1070
|
x1: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
1063
1071
|
x2: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
@@ -1066,8 +1074,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1066
1074
|
stroke: e.value.xyAxisStroke,
|
|
1067
1075
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1068
1076
|
"stroke-linecap": "round"
|
|
1069
|
-
}, null, 8,
|
|
1070
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((
|
|
1077
|
+
}, null, 8, Ua)) : g("", !0),
|
|
1078
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((x.value.end - x.value.start) / e.value.xyPeriodsModulo) === 0 || x.value.end - x.value.start <= e.value.xyPeriodsModulo ? (a(), l("g", Ba, [
|
|
1071
1079
|
String(t).includes(`
|
|
1072
1080
|
`) ? (a(), l("text", {
|
|
1073
1081
|
key: 1,
|
|
@@ -1075,44 +1083,44 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1075
1083
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1076
1084
|
fill: e.value.color,
|
|
1077
1085
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1078
|
-
innerHTML: f(
|
|
1086
|
+
innerHTML: f(jt)({
|
|
1079
1087
|
content: String(t),
|
|
1080
1088
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1081
1089
|
fill: e.value.color,
|
|
1082
1090
|
x: 0,
|
|
1083
1091
|
y: 0
|
|
1084
1092
|
})
|
|
1085
|
-
}, null, 8,
|
|
1093
|
+
}, null, 8, Va)) : (a(), l("text", {
|
|
1086
1094
|
key: 0,
|
|
1087
1095
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1088
1096
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1089
1097
|
fill: e.value.color,
|
|
1090
1098
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1091
|
-
}, O(t), 9,
|
|
1099
|
+
}, O(t), 9, Da))
|
|
1092
1100
|
])) : g("", !0)
|
|
1093
1101
|
], 64))), 256))
|
|
1094
1102
|
])) : g("", !0),
|
|
1095
|
-
_("g",
|
|
1096
|
-
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l("g",
|
|
1103
|
+
_("g", qa, [
|
|
1104
|
+
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l("g", Ha, [
|
|
1097
1105
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
1098
1106
|
_("path", {
|
|
1099
|
-
d: `M ${f(
|
|
1107
|
+
d: `M ${f(pt)(t.coordinates)}`,
|
|
1100
1108
|
stroke: e.value.backgroundColor,
|
|
1101
1109
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1102
1110
|
"stroke-linecap": "round",
|
|
1103
1111
|
fill: "none",
|
|
1104
|
-
class:
|
|
1112
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1105
1113
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1106
|
-
}, null, 10,
|
|
1114
|
+
}, null, 10, Wa),
|
|
1107
1115
|
_("path", {
|
|
1108
|
-
d: `M ${f(
|
|
1116
|
+
d: `M ${f(pt)(t.coordinates)}`,
|
|
1109
1117
|
stroke: t.color,
|
|
1110
1118
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1111
1119
|
"stroke-linecap": "round",
|
|
1112
1120
|
fill: "none",
|
|
1113
|
-
class:
|
|
1121
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1114
1122
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1115
|
-
}, null, 10,
|
|
1123
|
+
}, null, 10, ja)
|
|
1116
1124
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
1117
1125
|
_("path", {
|
|
1118
1126
|
d: `M ${t.linePath}`,
|
|
@@ -1120,18 +1128,18 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1120
1128
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1121
1129
|
"stroke-linecap": "round",
|
|
1122
1130
|
fill: "none",
|
|
1123
|
-
class:
|
|
1131
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1124
1132
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1125
|
-
}, null, 10,
|
|
1133
|
+
}, null, 10, Ga),
|
|
1126
1134
|
_("path", {
|
|
1127
1135
|
d: `M ${t.linePath}`,
|
|
1128
1136
|
stroke: t.color,
|
|
1129
1137
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1130
1138
|
"stroke-linecap": "round",
|
|
1131
1139
|
fill: "none",
|
|
1132
|
-
class:
|
|
1140
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1133
1141
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1134
|
-
}, null, 10,
|
|
1142
|
+
}, null, 10, Xa)
|
|
1135
1143
|
], 64)),
|
|
1136
1144
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1137
1145
|
cx: r.x,
|
|
@@ -1142,10 +1150,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1142
1150
|
"stroke-width": "0.5",
|
|
1143
1151
|
class: "quick-animation",
|
|
1144
1152
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1145
|
-
}, null, 8,
|
|
1153
|
+
}, null, 8, Za))), 256))
|
|
1146
1154
|
]))), 256))
|
|
1147
1155
|
]),
|
|
1148
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1156
|
+
e.value.showDataLabels ? (a(), l("g", Ya, [
|
|
1149
1157
|
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1150
1158
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1151
1159
|
"text-anchor": "middle",
|
|
@@ -1165,10 +1173,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1165
1173
|
r: e.value.dataLabelRoundingValue
|
|
1166
1174
|
}),
|
|
1167
1175
|
{ datapoint: r, seriesIndex: h }
|
|
1168
|
-
)), 9,
|
|
1176
|
+
)), 9, Ja))), 256))
|
|
1169
1177
|
], 64))), 256))
|
|
1170
1178
|
])) : g("", !0),
|
|
1171
|
-
_("g",
|
|
1179
|
+
_("g", Qa, [
|
|
1172
1180
|
(a(!0), l(m, null, $(v.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1173
1181
|
x: v.value.drawingArea.left + u * v.value.slotSize,
|
|
1174
1182
|
y: v.value.drawingArea.top,
|
|
@@ -1178,15 +1186,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1178
1186
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1179
1187
|
onMouseenter: (r) => v.value.useTooltip(u),
|
|
1180
1188
|
onMouseleave: s[1] || (s[1] = (r) => v.value.killTooltip()),
|
|
1181
|
-
onClick: (r) =>
|
|
1189
|
+
onClick: (r) => re("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1182
1190
|
...h,
|
|
1183
1191
|
value: h.values[u]
|
|
1184
1192
|
})))
|
|
1185
|
-
}, null, 44,
|
|
1193
|
+
}, null, 44, Ka))), 256))
|
|
1186
1194
|
])
|
|
1187
1195
|
], 64)) : g("", !0),
|
|
1188
1196
|
L.value === A.BAR ? (a(), l(m, { key: 5 }, [
|
|
1189
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1197
|
+
e.value.xyShowGrid ? (a(), l("g", el, [
|
|
1190
1198
|
(a(!0), l(m, null, $(d.value.yLabels, (t) => (a(), l(m, null, [
|
|
1191
1199
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1192
1200
|
key: 0,
|
|
@@ -1197,7 +1205,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1197
1205
|
stroke: e.value.xyGridStroke,
|
|
1198
1206
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1199
1207
|
"stroke-linecap": "round"
|
|
1200
|
-
}, null, 8,
|
|
1208
|
+
}, null, 8, tl)) : g("", !0)
|
|
1201
1209
|
], 64))), 256)),
|
|
1202
1210
|
(a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
1203
1211
|
x1: d.value.drawingArea.left + d.value.slotSize * u,
|
|
@@ -1207,9 +1215,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1207
1215
|
stroke: e.value.xyGridStroke,
|
|
1208
1216
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1209
1217
|
"stroke-linecap": "round"
|
|
1210
|
-
}, null, 8,
|
|
1218
|
+
}, null, 8, al))), 256))
|
|
1211
1219
|
])) : g("", !0),
|
|
1212
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1220
|
+
e.value.xyShowAxis ? (a(), l("g", ll, [
|
|
1213
1221
|
_("line", {
|
|
1214
1222
|
x1: d.value.drawingArea.left,
|
|
1215
1223
|
x2: d.value.drawingArea.left,
|
|
@@ -1218,7 +1226,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1218
1226
|
stroke: e.value.xyAxisStroke,
|
|
1219
1227
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1220
1228
|
"stroke-linecap": "round"
|
|
1221
|
-
}, null, 8,
|
|
1229
|
+
}, null, 8, ol),
|
|
1222
1230
|
_("line", {
|
|
1223
1231
|
x1: d.value.drawingArea.left,
|
|
1224
1232
|
x2: d.value.drawingArea.right,
|
|
@@ -1227,9 +1235,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1227
1235
|
stroke: e.value.xyAxisStroke,
|
|
1228
1236
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1229
1237
|
"stroke-linecap": "round"
|
|
1230
|
-
}, null, 8,
|
|
1238
|
+
}, null, 8, nl)
|
|
1231
1239
|
])) : g("", !0),
|
|
1232
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1240
|
+
e.value.xyShowScale ? (a(), l("g", il, [
|
|
1233
1241
|
(a(!0), l(m, null, $(d.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1234
1242
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1235
1243
|
key: 0,
|
|
@@ -1240,7 +1248,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1240
1248
|
stroke: e.value.xyAxisStroke,
|
|
1241
1249
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1242
1250
|
"stroke-linecap": "round"
|
|
1243
|
-
}, null, 8,
|
|
1251
|
+
}, null, 8, ul)) : g("", !0),
|
|
1244
1252
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
1245
1253
|
key: 1,
|
|
1246
1254
|
x: t.x,
|
|
@@ -1258,11 +1266,11 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1258
1266
|
r: e.value.dataLabelRoundingValue
|
|
1259
1267
|
}),
|
|
1260
1268
|
{ datapoint: t, seriesIndex: u }
|
|
1261
|
-
)), 9,
|
|
1269
|
+
)), 9, rl)) : g("", !0)
|
|
1262
1270
|
], 64))), 256))
|
|
1263
1271
|
])) : g("", !0),
|
|
1264
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1265
|
-
(a(!0), l(m, null, $(e.value.xyPeriods.slice(
|
|
1272
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", sl, [
|
|
1273
|
+
(a(!0), l(m, null, $(e.value.xyPeriods.slice(x.value.start, x.value.end), (t, u) => (a(), l("line", {
|
|
1266
1274
|
x1: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
1267
1275
|
x2: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
1268
1276
|
y1: d.value.drawingArea.bottom,
|
|
@@ -1270,15 +1278,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1270
1278
|
stroke: e.value.xyAxisStroke,
|
|
1271
1279
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1272
1280
|
"stroke-linecap": "round"
|
|
1273
|
-
}, null, 8,
|
|
1281
|
+
}, null, 8, vl))), 256)),
|
|
1274
1282
|
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, u) => (a(), l("text", {
|
|
1275
1283
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1276
1284
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1277
1285
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1278
1286
|
fill: e.value.color
|
|
1279
|
-
}, O(t), 9,
|
|
1287
|
+
}, O(t), 9, dl))), 256))
|
|
1280
1288
|
])) : g("", !0),
|
|
1281
|
-
_("g",
|
|
1289
|
+
_("g", cl, [
|
|
1282
1290
|
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1283
1291
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1284
1292
|
x: r.x,
|
|
@@ -1289,7 +1297,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1289
1297
|
stroke: e.value.backgroundColor,
|
|
1290
1298
|
"stroke-width": e.value.barStrokeWidth,
|
|
1291
1299
|
"stroke-linecap": "round",
|
|
1292
|
-
class:
|
|
1300
|
+
class: fe({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
|
|
1293
1301
|
}, [
|
|
1294
1302
|
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Oe) ? (a(), l("animate", {
|
|
1295
1303
|
key: 0,
|
|
@@ -1297,18 +1305,18 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1297
1305
|
from: 0,
|
|
1298
1306
|
to: r.height,
|
|
1299
1307
|
dur: "0.5s"
|
|
1300
|
-
}, null, 8,
|
|
1308
|
+
}, null, 8, fl)) : g("", !0),
|
|
1301
1309
|
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Oe) ? (a(), l("animate", {
|
|
1302
1310
|
key: 1,
|
|
1303
1311
|
attributeName: "y",
|
|
1304
1312
|
from: d.value.absoluteZero,
|
|
1305
1313
|
to: d.value.absoluteZero - r.height,
|
|
1306
1314
|
dur: "0.5s"
|
|
1307
|
-
}, null, 8,
|
|
1308
|
-
], 10,
|
|
1315
|
+
}, null, 8, gl)) : g("", !0)
|
|
1316
|
+
], 10, hl))), 256))
|
|
1309
1317
|
], 64))), 256))
|
|
1310
1318
|
]),
|
|
1311
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1319
|
+
e.value.showDataLabels ? (a(), l("g", ml, [
|
|
1312
1320
|
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1313
1321
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1314
1322
|
x: r.x + r.width / 2,
|
|
@@ -1327,10 +1335,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1327
1335
|
r: e.value.dataLabelRoundingValue
|
|
1328
1336
|
}),
|
|
1329
1337
|
{ datapoint: r, seriesIndex: h }
|
|
1330
|
-
)), 9,
|
|
1338
|
+
)), 9, pl))), 256))
|
|
1331
1339
|
], 64))), 256))
|
|
1332
1340
|
])) : g("", !0),
|
|
1333
|
-
_("g",
|
|
1341
|
+
_("g", yl, [
|
|
1334
1342
|
(a(!0), l(m, null, $(d.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1335
1343
|
x: d.value.drawingArea.left + u * d.value.slotSize,
|
|
1336
1344
|
y: d.value.drawingArea.top,
|
|
@@ -1340,51 +1348,51 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1340
1348
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1341
1349
|
onMouseenter: (r) => d.value.useTooltip(u),
|
|
1342
1350
|
onMouseleave: s[2] || (s[2] = (r) => d.value.killTooltip()),
|
|
1343
|
-
onClick: (r) =>
|
|
1351
|
+
onClick: (r) => re("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1344
1352
|
...h,
|
|
1345
1353
|
value: h.values[u]
|
|
1346
1354
|
})))
|
|
1347
|
-
}, null, 44,
|
|
1355
|
+
}, null, 44, xl))), 256))
|
|
1348
1356
|
])
|
|
1349
1357
|
], 64)) : g("", !0),
|
|
1350
|
-
[A.LINE, A.BAR].includes(L.value) ? (a(), l("g",
|
|
1351
|
-
e.value.xAxisLabel && L.value === A.LINE ? (a(), l("g",
|
|
1358
|
+
[A.LINE, A.BAR].includes(L.value) ? (a(), l("g", kl, [
|
|
1359
|
+
e.value.xAxisLabel && L.value === A.LINE ? (a(), l("g", bl, [
|
|
1352
1360
|
_("text", {
|
|
1353
1361
|
"font-size": e.value.axisLabelsFontSize,
|
|
1354
1362
|
fill: e.value.color,
|
|
1355
1363
|
"text-anchor": "middle",
|
|
1356
1364
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1357
1365
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1358
|
-
}, O(e.value.xAxisLabel), 9,
|
|
1366
|
+
}, O(e.value.xAxisLabel), 9, Sl)
|
|
1359
1367
|
])) : g("", !0),
|
|
1360
|
-
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g",
|
|
1368
|
+
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g", wl, [
|
|
1361
1369
|
_("text", {
|
|
1362
1370
|
"font-size": e.value.axisLabelsFontSize,
|
|
1363
1371
|
fill: e.value.color,
|
|
1364
1372
|
"text-anchor": "middle",
|
|
1365
1373
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1366
1374
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1367
|
-
}, O(e.value.xAxisLabel), 9,
|
|
1375
|
+
}, O(e.value.xAxisLabel), 9, Al)
|
|
1368
1376
|
])) : g("", !0),
|
|
1369
|
-
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g",
|
|
1377
|
+
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g", _l, [
|
|
1370
1378
|
_("text", {
|
|
1371
1379
|
"font-size": e.value.axisLabelsFontSize,
|
|
1372
1380
|
fill: e.value.color,
|
|
1373
1381
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1374
1382
|
"text-anchor": "middle"
|
|
1375
|
-
}, O(e.value.yAxisLabel), 9,
|
|
1383
|
+
}, O(e.value.yAxisLabel), 9, Ll)
|
|
1376
1384
|
])) : g("", !0),
|
|
1377
|
-
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g",
|
|
1385
|
+
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g", zl, [
|
|
1378
1386
|
_("text", {
|
|
1379
1387
|
"font-size": e.value.axisLabelsFontSize,
|
|
1380
1388
|
fill: e.value.color,
|
|
1381
1389
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1382
1390
|
"text-anchor": "middle"
|
|
1383
|
-
}, O(e.value.yAxisLabel), 9,
|
|
1391
|
+
}, O(e.value.yAxisLabel), 9, $l)
|
|
1384
1392
|
])) : g("", !0)
|
|
1385
1393
|
])) : g("", !0)
|
|
1386
|
-
], 12,
|
|
1387
|
-
L.value ? g("", !0) : (a(), Fe(f(
|
|
1394
|
+
], 12, ra)) : g("", !0),
|
|
1395
|
+
L.value ? g("", !0) : (a(), Fe(f(pe), {
|
|
1388
1396
|
key: 5,
|
|
1389
1397
|
config: {
|
|
1390
1398
|
type: "line",
|
|
@@ -1402,53 +1410,53 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1402
1410
|
}
|
|
1403
1411
|
}
|
|
1404
1412
|
}, null, 8, ["config"])),
|
|
1405
|
-
o.$slots.watermark ? (a(), l("div",
|
|
1406
|
-
M(o.$slots, "watermark",
|
|
1413
|
+
o.$slots.watermark ? (a(), l("div", Cl, [
|
|
1414
|
+
M(o.$slots, "watermark", ie(ue({ isPrinting: f(Ee) || f(Oe) })), void 0, !0)
|
|
1407
1415
|
])) : g("", !0),
|
|
1408
1416
|
[A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1409
1417
|
key: `slicer_${Ce.value}`,
|
|
1410
1418
|
ref_key: "quickChartSlicer",
|
|
1411
1419
|
ref: Ze
|
|
1412
1420
|
}, [
|
|
1413
|
-
(a(), Fe(
|
|
1421
|
+
(a(), Fe(Jt, {
|
|
1414
1422
|
ref_key: "slicerComponent",
|
|
1415
|
-
ref:
|
|
1423
|
+
ref: ve,
|
|
1416
1424
|
key: `slicer_${Ce.value}`,
|
|
1417
1425
|
background: e.value.zoomColor,
|
|
1418
1426
|
borderColor: e.value.backgroundColor,
|
|
1419
1427
|
fontSize: e.value.zoomFontSize,
|
|
1420
1428
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1421
|
-
labelLeft: e.value.xyPeriods[
|
|
1422
|
-
labelRight: e.value.xyPeriods[
|
|
1429
|
+
labelLeft: e.value.xyPeriods[x.value.start] ? K.value[0].text : "",
|
|
1430
|
+
labelRight: e.value.xyPeriods[x.value.end - 1] ? K.value.at(-1).text : "",
|
|
1423
1431
|
textColor: e.value.color,
|
|
1424
1432
|
inputColor: e.value.zoomColor,
|
|
1425
1433
|
selectColor: e.value.zoomHighlightColor,
|
|
1426
1434
|
max: p.value.maxSeriesLength,
|
|
1427
1435
|
min: 0,
|
|
1428
|
-
valueStart:
|
|
1429
|
-
valueEnd:
|
|
1436
|
+
valueStart: x.value.start,
|
|
1437
|
+
valueEnd: x.value.end,
|
|
1430
1438
|
smoothMinimap: e.value.zoomMinimap.smooth,
|
|
1431
1439
|
minimapSelectedColor: e.value.zoomMinimap.selectedColor,
|
|
1432
1440
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1433
1441
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1434
1442
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1435
|
-
minimap:
|
|
1443
|
+
minimap: Et.value,
|
|
1436
1444
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1437
1445
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1438
1446
|
minimapSelectedIndex: j.value,
|
|
1439
|
-
start:
|
|
1440
|
-
"onUpdate:start": s[3] || (s[3] = (t) =>
|
|
1441
|
-
end:
|
|
1442
|
-
"onUpdate:end": s[4] || (s[4] = (t) =>
|
|
1447
|
+
start: x.value.start,
|
|
1448
|
+
"onUpdate:start": s[3] || (s[3] = (t) => x.value.start = t),
|
|
1449
|
+
end: x.value.end,
|
|
1450
|
+
"onUpdate:end": s[4] || (s[4] = (t) => x.value.end = t),
|
|
1443
1451
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1444
1452
|
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : p.value.maxSeriesLength,
|
|
1445
1453
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
1446
1454
|
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1447
|
-
onReset:
|
|
1448
|
-
onTrapMouse:
|
|
1455
|
+
onReset: Ct,
|
|
1456
|
+
onTrapMouse: $t
|
|
1449
1457
|
}, {
|
|
1450
1458
|
"reset-action": G(({ reset: t }) => [
|
|
1451
|
-
M(o.$slots, "reset-action",
|
|
1459
|
+
M(o.$slots, "reset-action", ie(ue({ reset: t })), void 0, !0)
|
|
1452
1460
|
]),
|
|
1453
1461
|
_: 3
|
|
1454
1462
|
}, 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"]))
|
|
@@ -1463,7 +1471,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1463
1471
|
L.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, u) => (a(), l("div", {
|
|
1464
1472
|
class: "vue-ui-quick-chart-legend-item",
|
|
1465
1473
|
onClick: (r) => {
|
|
1466
|
-
|
|
1474
|
+
zt(t, I.value.dataset), re("selectLegend", t);
|
|
1467
1475
|
},
|
|
1468
1476
|
style: R(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1469
1477
|
}, [
|
|
@@ -1471,7 +1479,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1471
1479
|
key: 0,
|
|
1472
1480
|
ref_for: !0
|
|
1473
1481
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1474
|
-
|
|
1482
|
+
ge(f(T), {
|
|
1475
1483
|
name: e.value.legendIcon,
|
|
1476
1484
|
stroke: t.color,
|
|
1477
1485
|
size: e.value.legendIconSize
|
|
@@ -1507,11 +1515,11 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1507
1515
|
r: e.value.dataLabelRoundingPercentage
|
|
1508
1516
|
})) + ") ", 5))
|
|
1509
1517
|
], 64))
|
|
1510
|
-
], 12,
|
|
1518
|
+
], 12, Il))), 256)) : g("", !0),
|
|
1511
1519
|
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(v.value.legend, (t, u) => (a(), l("div", {
|
|
1512
1520
|
class: "vue-ui-quick-chart-legend-item",
|
|
1513
1521
|
onClick: (r) => {
|
|
1514
|
-
ut(t.id, v.value.legend.length - 1),
|
|
1522
|
+
ut(t.id, v.value.legend.length - 1), re("selectLegend", t);
|
|
1515
1523
|
},
|
|
1516
1524
|
style: R(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1517
1525
|
}, [
|
|
@@ -1519,7 +1527,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1519
1527
|
key: 0,
|
|
1520
1528
|
ref_for: !0
|
|
1521
1529
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1522
|
-
|
|
1530
|
+
ge(f(T), {
|
|
1523
1531
|
name: e.value.legendIcon,
|
|
1524
1532
|
stroke: t.color,
|
|
1525
1533
|
size: e.value.legendIconSize
|
|
@@ -1528,11 +1536,11 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1528
1536
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1529
1537
|
}, O(t.name), 5)
|
|
1530
1538
|
], 64))
|
|
1531
|
-
], 12,
|
|
1539
|
+
], 12, El))), 256)) : g("", !0),
|
|
1532
1540
|
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(d.value.legend, (t, u) => (a(), l("div", {
|
|
1533
1541
|
class: "vue-ui-quick-chart-legend-item",
|
|
1534
1542
|
onClick: (r) => {
|
|
1535
|
-
ut(t.id, d.value.legend.length - 1),
|
|
1543
|
+
ut(t.id, d.value.legend.length - 1), re("selectLegend", t);
|
|
1536
1544
|
},
|
|
1537
1545
|
style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1538
1546
|
}, [
|
|
@@ -1540,7 +1548,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1540
1548
|
key: 0,
|
|
1541
1549
|
ref_for: !0
|
|
1542
1550
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1543
|
-
|
|
1551
|
+
ge(f(T), {
|
|
1544
1552
|
name: e.value.legendIcon,
|
|
1545
1553
|
stroke: t.color,
|
|
1546
1554
|
size: e.value.legendIconSize
|
|
@@ -1549,7 +1557,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1549
1557
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1550
1558
|
}, O(t.name), 5)
|
|
1551
1559
|
], 64))
|
|
1552
|
-
], 12,
|
|
1560
|
+
], 12, Ol))), 256)) : g("", !0)
|
|
1553
1561
|
], 4)) : g("", !0),
|
|
1554
1562
|
o.$slots.source ? (a(), l("div", {
|
|
1555
1563
|
key: 9,
|
|
@@ -1559,8 +1567,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1559
1567
|
}, [
|
|
1560
1568
|
M(o.$slots, "source", {}, void 0, !0)
|
|
1561
1569
|
], 512)) : g("", !0),
|
|
1562
|
-
|
|
1563
|
-
show: Se.value.showTooltip &&
|
|
1570
|
+
ge(f(ye), {
|
|
1571
|
+
show: Se.value.showTooltip && te.value,
|
|
1564
1572
|
backgroundColor: e.value.backgroundColor,
|
|
1565
1573
|
color: e.value.color,
|
|
1566
1574
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1570,28 +1578,28 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1570
1578
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1571
1579
|
position: e.value.tooltipPosition,
|
|
1572
1580
|
offsetY: e.value.tooltipOffsetY,
|
|
1573
|
-
parent:
|
|
1574
|
-
content:
|
|
1581
|
+
parent: ee.value,
|
|
1582
|
+
content: ae.value,
|
|
1575
1583
|
isFullscreen: Pe.value,
|
|
1576
1584
|
isCustom: f(Ne)(e.value.tooltipCustomFormat)
|
|
1577
1585
|
}, {
|
|
1578
1586
|
"tooltip-before": G(() => [
|
|
1579
|
-
M(o.$slots, "tooltip-before",
|
|
1587
|
+
M(o.$slots, "tooltip-before", ie(ue({ ...xe.value })), void 0, !0)
|
|
1580
1588
|
]),
|
|
1581
1589
|
"tooltip-after": G(() => [
|
|
1582
|
-
M(o.$slots, "tooltip-after",
|
|
1590
|
+
M(o.$slots, "tooltip-after", ie(ue({ ...xe.value })), void 0, !0)
|
|
1583
1591
|
]),
|
|
1584
1592
|
_: 3
|
|
1585
1593
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
1586
|
-
], 46,
|
|
1587
|
-
|
|
1594
|
+
], 46, ua)) : (a(), l("div", Tl, [
|
|
1595
|
+
ge(f(T), {
|
|
1588
1596
|
name: "circleCancel",
|
|
1589
1597
|
stroke: "red"
|
|
1590
1598
|
}),
|
|
1591
1599
|
s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
|
|
1592
1600
|
]));
|
|
1593
1601
|
}
|
|
1594
|
-
},
|
|
1602
|
+
}, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-c0908d48"]]);
|
|
1595
1603
|
export {
|
|
1596
|
-
|
|
1604
|
+
Wl as default
|
|
1597
1605
|
};
|