vue-data-ui 3.0.0-next.5 → 3.0.0-next.6
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-6c56sGJ3.js → Arrow-Ul64M9UV.js} +1 -1
- package/dist/{BaseDraggableDialog-y-BEzdTM.js → BaseDraggableDialog-Q2ajCztp.js} +2 -2
- package/dist/{BaseIcon-C-MP5EHV.js → BaseIcon-BKR7AGeP.js} +1 -1
- package/dist/{ColorPicker-P7R8vBej.js → ColorPicker-BagIs8-K.js} +2 -2
- package/dist/{DataTable-DD2pZIgh.js → DataTable-CDwApkI_.js} +2 -2
- package/dist/{Legend-DZZeyx5j.js → Legend-BSLj7tYc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-uETwt6yC.js → NonSvgPenAndPaper-DjJe5fXu.js} +3 -3
- package/dist/{PackageVersion-D3jqYZS6.js → PackageVersion-BsKpz6KS.js} +1 -1
- package/dist/{PenAndPaper-Dy9zUXnw.js → PenAndPaper-BYRk8xrS.js} +3 -3
- package/dist/{Shape-CFp_TwS5.js → Shape-DK7zYTKa.js} +1 -1
- package/dist/{Slicer-Bba4UfIm.js → Slicer-B_Hb6qSk.js} +2 -2
- package/dist/{SparkTooltip-BMV9aNLi.js → SparkTooltip-Dy2sVTb_.js} +1 -1
- package/dist/{Title-zqtIOYc5.js → Title-Cednydse.js} +1 -1
- package/dist/{Tooltip-Bo30Qf34.js → Tooltip-DJlwW-XP.js} +1 -1
- package/dist/{UserOptions-Cgrlu96K.js → UserOptions-DxIzWere.js} +2 -2
- package/dist/{dom-to-png-SVXVB8J4.js → dom-to-png-lZcM-YfK.js} +1 -1
- package/dist/{img-DJTFe-dE.js → img-DqlIAUF6.js} +1 -1
- package/dist/{index-DFSXaw69.js → index-BQcLOx39.js} +1 -1
- package/dist/{pdf-D-ie2h2J.js → pdf-CjIXhsyg.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CV3NndHa.js → useNestedProp-DefBVltl.js} +1 -1
- package/dist/{usePrinter-DXG9SdJr.js → usePrinter-BRY5saEA.js} +2 -2
- package/dist/{vue-data-ui-DhThPvS0.js → vue-data-ui-CWRlSsiN.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C1M9fXQl.js → vue-ui-3d-bar-CJMZqDo1.js} +6 -6
- package/dist/{vue-ui-accordion-B-PjY4U8.js → vue-ui-accordion-Df-5BRRg.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bt0KEjza.js → vue-ui-age-pyramid-B6WAMtPk.js} +6 -6
- package/dist/{vue-ui-annotator-DauoYrzs.js → vue-ui-annotator-BxC5dcIv.js} +2 -2
- package/dist/{vue-ui-bullet-CWxvbrat.js → vue-ui-bullet-NmtltFbU.js} +7 -7
- package/dist/{vue-ui-candlestick-BmYaA6wk.js → vue-ui-candlestick-BzqQtynP.js} +7 -7
- package/dist/{vue-ui-carousel-table-B7i9TvuL.js → vue-ui-carousel-table-NTDzafWQ.js} +4 -4
- package/dist/{vue-ui-chestnut-D9HL_oAu.js → vue-ui-chestnut-k21Qqjjq.js} +5 -5
- package/dist/{vue-ui-chord-BaEQ4_bQ.js → vue-ui-chord-BVoA6nfI.js} +8 -8
- package/dist/{vue-ui-circle-pack-DumySU9s.js → vue-ui-circle-pack-CEBgImRX.js} +6 -6
- package/dist/{vue-ui-cursor-D-88A6ue.js → vue-ui-cursor-BQcz8xw2.js} +2 -2
- package/dist/{vue-ui-dashboard-Br7MlswR.js → vue-ui-dashboard-CyzEpJoI.js} +62 -62
- package/dist/{vue-ui-digits-BMb2ZxN9.js → vue-ui-digits-Dafw1UsT.js} +2 -2
- package/dist/{vue-ui-donut-NZIGKCYr.js → vue-ui-donut-DKfux8XT.js} +405 -391
- package/dist/{vue-ui-donut-evolution-D38U9QxB.js → vue-ui-donut-evolution-D7cNk_6l.js} +8 -8
- package/dist/{vue-ui-dumbbell-B7jEqxUu.js → vue-ui-dumbbell--H80zebk.js} +7 -7
- package/dist/{vue-ui-flow-k4KjXCTn.js → vue-ui-flow-lk_HU5NB.js} +7 -7
- package/dist/{vue-ui-funnel-BRfQjCk6.js → vue-ui-funnel-CuN8HWwP.js} +6 -6
- package/dist/{vue-ui-galaxy-u0oNgjDP.js → vue-ui-galaxy-BHCLFlmy.js} +5 -5
- package/dist/{vue-ui-gauge-DUpSrOgm.js → vue-ui-gauge-DWlCh2_B.js} +6 -6
- package/dist/{vue-ui-gizmo-6QSDxdTp.js → vue-ui-gizmo-DHEEfdp9.js} +3 -3
- package/dist/{vue-ui-heatmap-CqqXcJ8F.js → vue-ui-heatmap-BK6BNOY_.js} +7 -7
- package/dist/{vue-ui-history-plot-BiC39PhQ.js → vue-ui-history-plot-CGF6lE-7.js} +7 -7
- package/dist/{vue-ui-kpi-DwOX2xG0.js → vue-ui-kpi-C4i2w_Yd.js} +3 -3
- package/dist/{vue-ui-mini-loader-CrAhBt4w.js → vue-ui-mini-loader-BeetGv_m.js} +2 -2
- package/dist/{vue-ui-molecule-DVPFCYdv.js → vue-ui-molecule-F_gDXjJr.js} +5 -5
- package/dist/{vue-ui-mood-radar-BPCedEDi.js → vue-ui-mood-radar-BJMOEqlu.js} +7 -7
- package/dist/{vue-ui-nested-donuts-C2kl6581.js → vue-ui-nested-donuts-BX0Z0rb1.js} +7 -7
- package/dist/{vue-ui-onion-Dk3OUNGJ.js → vue-ui-onion-BhjUET_W.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-B-r0h3BM.js → vue-ui-parallel-coordinate-plot-n7QPVLrW.js} +8 -8
- package/dist/{vue-ui-quadrant-CRR0XJzp.js → vue-ui-quadrant-DTyRC1_v.js} +8 -8
- package/dist/{vue-ui-quick-chart-CS-Uk49C.js → vue-ui-quick-chart-5xX-yBIY.js} +6 -6
- package/dist/{vue-ui-radar-Fxk4Nq3_.js → vue-ui-radar-De2iznwo.js} +7 -7
- package/dist/{vue-ui-rating-EwwvsCi3.js → vue-ui-rating-CarXXyD-.js} +2 -2
- package/dist/{vue-ui-relation-circle-DB7plTEJ.js → vue-ui-relation-circle-CKkK9D4E.js} +6 -6
- package/dist/{vue-ui-ridgeline-D55xotqc.js → vue-ui-ridgeline-DQ8RQf3E.js} +8 -8
- package/dist/{vue-ui-rings-D6gr6DBO.js → vue-ui-rings-Cze6OsmO.js} +8 -8
- package/dist/{vue-ui-scatter-hFI2YfFt.js → vue-ui-scatter-CwI3_Dn7.js} +8 -8
- package/dist/{vue-ui-skeleton-1OErZL6t.js → vue-ui-skeleton-C7maR60-.js} +3 -3
- package/dist/{vue-ui-smiley-C_8dvJDX.js → vue-ui-smiley-DzCCn5Oc.js} +2 -2
- package/dist/{vue-ui-spark-trend-Ds3apeYN.js → vue-ui-spark-trend-Db-Fnp8C.js} +3 -3
- package/dist/{vue-ui-sparkbar-NpyQVY-J.js → vue-ui-sparkbar-C6wsNMMO.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BYHhBxke.js → vue-ui-sparkgauge-DAQ4zozy.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DFbQ-g2X.js → vue-ui-sparkhistogram-CMEaO0CW.js} +4 -4
- package/dist/{vue-ui-sparkline-CiVlvGOI.js → vue-ui-sparkline-R7pfxRWN.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BxMFKBBt.js → vue-ui-sparkstackbar-DV_XqJQ2.js} +3 -3
- package/dist/{vue-ui-stackbar-DHsxlaNI.js → vue-ui-stackbar-gReSujA_.js} +9 -9
- package/dist/{vue-ui-strip-plot-Crml8nCi.js → vue-ui-strip-plot-8fsm3nn2.js} +7 -7
- package/dist/{vue-ui-table-C3lxyo1m.js → vue-ui-table-Dck8Pyg9.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DYgu1wOK.js → vue-ui-table-heatmap-DknIGf9_.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B_eROo0E.js → vue-ui-table-sparkline-G4HAzUt6.js} +4 -4
- package/dist/{vue-ui-thermometer-Dn8-68zJ.js → vue-ui-thermometer-BIkXa4hY.js} +6 -6
- package/dist/{vue-ui-timer-CREgpYVZ.js → vue-ui-timer-Dmr-HCSc.js} +5 -5
- package/dist/{vue-ui-tiremarks-DrFKdGSj.js → vue-ui-tiremarks-YWbRk0dm.js} +6 -6
- package/dist/{vue-ui-treemap-C1m-cAh0.js → vue-ui-treemap-D2OnG3Fh.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BYtbI3Eq.js → vue-ui-vertical-bar--QFtoFje.js} +15 -15
- package/dist/{vue-ui-waffle-Cr0JqMuU.js → vue-ui-waffle-BdaCXuWc.js} +8 -8
- package/dist/{vue-ui-wheel-CUgfhL9p.js → vue-ui-wheel-Bw3XSa8N.js} +6 -6
- package/dist/{vue-ui-word-cloud-DBJueUIP.js → vue-ui-word-cloud-BH8UZH_J.js} +6 -6
- package/dist/{vue-ui-world-DR6IEkat.js → vue-ui-world-BcK_brDq.js} +6 -6
- package/dist/{vue-ui-xy-BCFKGTws.js → vue-ui-xy-Be--zwe9.js} +8 -8
- package/dist/{vue-ui-xy-canvas-C2k2SOVa.js → vue-ui-xy-canvas--88oKdGN.js} +8 -8
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as ce, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as ce, useSlots as rl, computed as y, shallowRef as H, ref as p, onMounted as kt, onBeforeUnmount as xt, toRefs as il, watch as ge, createElementBlock as r, openBlock as u, normalizeStyle as $, normalizeClass as De, createBlock as ae, createCommentVNode as v, renderSlot as w, createElementVNode as h, createVNode as Be, unref as n, createSlots as _t, withCtx as A, normalizeProps as he, guardReactiveProps as ye, Fragment as b, renderList as F, mergeProps as $t, toDisplayString as I, withDirectives as Ct, createTextVNode as Ve, vShow as At, nextTick as vl } from "vue";
|
|
2
|
+
import { u as dl, o as Tt, e as Ee, g as cl, c as hl, A as yl, b as fl, v as pl, d as St, p as oe, m as Pt, $ as gl, f as N, X as ml, s as Ce, w as bl, j as wl, N as P, i as V, k as fe, n as x, a0 as Ft, a1 as kl, a2 as xl, t as _l, a as $l, C as Ge, q as Cl, r as Al, x as Tl, T as Lt } from "./index-BQcLOx39.js";
|
|
3
|
+
import { t as Sl, u as Pl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as It } from "./useNestedProp-DefBVltl.js";
|
|
5
|
+
import { u as Fl } from "./usePrinter-BRY5saEA.js";
|
|
6
|
+
import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Il } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Ml from "./Legend-BSLj7tYc.js";
|
|
9
|
+
import zl from "./Title-Cednydse.js";
|
|
10
|
+
import { _ as Ol } from "./Shape-DK7zYTKa.js";
|
|
11
|
+
import { u as Nl, B as Yl } from "./useLoading-Bt5Doa8m.js";
|
|
12
|
+
import Xl from "./img-DqlIAUF6.js";
|
|
13
|
+
import { _ as Dl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { key: 1 }, Rl = ["id"], ql = ["stop-color"], Wl = ["offset", "stop-color"], Ul = ["offset", "stop-color"], Hl = ["stop-color"], jl = { key: 2 }, Jl = ["id", "cx", "cy"], Kl = ["stop-color", "stop-opacity"], Ql = ["stop-color"], Zl = ["id"], ea = ["id"], ta = ["id"], la = ["flood-color"], aa = ["id"], oa = ["flood-color"], sa = ["d", "stroke", "filter"], na = ["d", "stroke", "filter"], ua = ["cx", "cy", "r", "fill", "filter"], ra = { key: 6 }, ia = ["stroke", "d"], va = ["d", "fill", "stroke", "stroke-width", "filter"], da = { key: 0 }, ca = ["d", "fill", "stroke", "stroke-width", "filter"], ha = { key: 0 }, ya = ["stroke", "d"], fa = { key: 0 }, pa = ["d", "stroke", "stroke-width", "filter"], ga = { key: 1 }, ma = ["d", "fill", "stroke", "stroke-width", "filter"], ba = ["d", "fill", "stroke", "stroke-width", "filter"], wa = { key: 1 }, ka = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], xa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], _a = { key: 0 }, $a = ["d", "fill", "stroke", "stroke-width"], Ca = ["cx", "cy", "r", "stroke"], Aa = ["cx", "cy", "r", "fill"], Ta = ["cx", "cy", "r"], Sa = { key: 0 }, Pa = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Fa = { key: 1 }, La = ["cx", "cy", "r"], Ia = ["x", "y", "fill", "font-size"], Ma = ["x", "y", "fill", "font-size"], za = ["x", "y", "fill", "font-size"], Oa = ["x", "y", "fill", "font-size"], Na = ["filter"], Ya = { key: 0 }, Xa = ["x", "y"], Da = { key: 1 }, Ba = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Va = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ea = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ra = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], qa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Wa = { key: 2 }, Ua = ["x", "y", "width"], Ha = ["x", "y", "width"], ja = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Ja = ["onClick"], Ka = ["innerHTML"], Qa = {
|
|
18
18
|
__name: "vue-ui-donut",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,15 +31,15 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
34
|
+
setup(Re, { expose: Mt, emit: zt }) {
|
|
35
|
+
const Ot = ce(() => import("./vue-ui-accordion-Df-5BRRg.js")), Nt = ce(() => import("./DataTable-CDwApkI_.js")), Yt = ce(() => import("./PackageVersion-BsKpz6KS.js")), Xt = ce(() => import("./PenAndPaper-BYRk8xrS.js")), Dt = ce(() => import("./Tooltip-DJlwW-XP.js")), Bt = ce(() => import("./UserOptions-DxIzWere.js")), { vue_ui_donut: Vt } = dl(), Et = rl(), k = Re, me = y({
|
|
36
36
|
get() {
|
|
37
37
|
return !!k.dataset && k.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(l) {
|
|
40
40
|
return l;
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), E = H(null), be = p(null), Ae = p(null), Te = p(null), qe = H(null), We = H(null), j = H(null), se = H(null), Ue = H(null), He = H(null), je = p(0), Je = p(0), Ke = p(0), we = y({
|
|
43
43
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
44
44
|
set: (l) => l
|
|
45
45
|
}), J = y({
|
|
@@ -50,7 +50,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
50
50
|
const G = () => {
|
|
51
51
|
!e.value.autoSize || Se || (Se = !0, requestAnimationFrame(() => {
|
|
52
52
|
Se = !1;
|
|
53
|
-
const l = e.value, o = be.value, t =
|
|
53
|
+
const l = e.value, o = be.value, t = ue.value;
|
|
54
54
|
if (!l.autoSize || !o || !t) return;
|
|
55
55
|
const [a, i, c, m] = t.getAttribute("viewBox").split(" ").map(Number), C = { x: a, y: i, width: c, height: m }, z = [
|
|
56
56
|
{
|
|
@@ -66,92 +66,106 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
66
66
|
sizeRef: J
|
|
67
67
|
}
|
|
68
68
|
];
|
|
69
|
-
z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && (z.forEach(({ selector: B, baseSize: Z, minSize:
|
|
70
|
-
o.querySelectorAll(B).forEach((
|
|
71
|
-
const
|
|
72
|
-
el:
|
|
69
|
+
z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && (z.forEach(({ selector: B, baseSize: Z, minSize: Xe, sizeRef: sl }) => {
|
|
70
|
+
o.querySelectorAll(B).forEach((nl) => {
|
|
71
|
+
const ul = kl({
|
|
72
|
+
el: nl,
|
|
73
73
|
bounds: C,
|
|
74
74
|
currentFontSize: Z,
|
|
75
|
-
minFontSize:
|
|
75
|
+
minFontSize: Xe,
|
|
76
76
|
attempts: 200,
|
|
77
77
|
padding: 1
|
|
78
78
|
});
|
|
79
|
-
|
|
79
|
+
sl.value = ul;
|
|
80
80
|
});
|
|
81
|
-
}), e.value.autoSize && Ae.value && Te.value &&
|
|
81
|
+
}), e.value.autoSize && Ae.value && Te.value && xl({
|
|
82
82
|
el: Ae.value,
|
|
83
83
|
container: Te.value
|
|
84
84
|
}));
|
|
85
85
|
}));
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
})
|
|
87
|
+
kt(async () => {
|
|
88
|
+
Qe(), requestAnimationFrame(G);
|
|
89
|
+
});
|
|
90
|
+
let Pe;
|
|
91
|
+
kt(() => {
|
|
92
|
+
E.value && (Pe = new ResizeObserver((l) => {
|
|
93
|
+
for (const o of l) {
|
|
94
|
+
const { width: t, height: a } = o.contentRect;
|
|
95
|
+
if (t > 0 && a > 0) {
|
|
96
|
+
G();
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}), Pe.observe(E.value.parentElement));
|
|
101
|
+
}), xt(() => {
|
|
102
|
+
Pe?.disconnect();
|
|
103
|
+
}), xt(() => {
|
|
90
104
|
j.value && (se.value && j.value.unobserve(se.value), j.value.disconnect());
|
|
91
105
|
});
|
|
92
|
-
const
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
106
|
+
const Fe = y(() => !!e.value.debug);
|
|
107
|
+
function Qe() {
|
|
108
|
+
if (Tt(k.dataset) ? (Ee({
|
|
95
109
|
componentName: "VueUiDonut",
|
|
96
110
|
type: "dataset",
|
|
97
|
-
debug:
|
|
111
|
+
debug: Fe.value
|
|
98
112
|
}), me.value = !1, xe.value = !0) : (k.dataset.forEach((l, o) => {
|
|
99
|
-
|
|
113
|
+
cl({
|
|
100
114
|
datasetObject: l,
|
|
101
115
|
requiredAttributes: ["name", "values"]
|
|
102
116
|
}).forEach((t) => {
|
|
103
|
-
|
|
117
|
+
Ee({
|
|
104
118
|
componentName: "VueUiDonut",
|
|
105
119
|
type: "datasetSerieAttribute",
|
|
106
120
|
property: t,
|
|
107
121
|
index: o,
|
|
108
|
-
debug:
|
|
122
|
+
debug: Fe.value
|
|
109
123
|
}), me.value = !1, xe.value = !0;
|
|
110
124
|
});
|
|
111
125
|
}), k.dataset.forEach((l, o) => {
|
|
112
|
-
(!l.name || l.name === "") &&
|
|
126
|
+
(!l.name || l.name === "") && Ee({
|
|
113
127
|
componentName: "VueUiDonut",
|
|
114
128
|
type: "datasetAttributeEmpty",
|
|
115
129
|
property: "name",
|
|
116
130
|
index: o,
|
|
117
|
-
debug:
|
|
131
|
+
debug: Fe.value
|
|
118
132
|
});
|
|
119
|
-
})),
|
|
120
|
-
const l =
|
|
121
|
-
const { width: o, height: t } =
|
|
122
|
-
chart:
|
|
123
|
-
title: e.value.style.chart.title.text ?
|
|
124
|
-
legend: e.value.style.chart.legend.show ?
|
|
125
|
-
source:
|
|
126
|
-
noTitle:
|
|
127
|
-
padding: e.value.autoSize ? void 0 :
|
|
133
|
+
})), Tt(k.dataset) || (xe.value = e.value.loading), e.value.responsive) {
|
|
134
|
+
const l = Sl(() => {
|
|
135
|
+
const { width: o, height: t } = Pl({
|
|
136
|
+
chart: E.value,
|
|
137
|
+
title: e.value.style.chart.title.text ? qe.value : null,
|
|
138
|
+
legend: e.value.style.chart.legend.show ? We.value : null,
|
|
139
|
+
source: Ue.value,
|
|
140
|
+
noTitle: He.value,
|
|
141
|
+
padding: e.value.autoSize ? void 0 : at.value
|
|
128
142
|
});
|
|
129
143
|
requestAnimationFrame(() => {
|
|
130
144
|
s.value.width = o, s.value.height = t, G();
|
|
131
145
|
});
|
|
132
146
|
});
|
|
133
|
-
j.value && (se.value && j.value.unobserve(se.value), j.value.disconnect()), j.value = new ResizeObserver(l), se.value =
|
|
147
|
+
j.value && (se.value && j.value.unobserve(se.value), j.value.disconnect()), j.value = new ResizeObserver(l), se.value = E.value.parentNode, j.value.observe(se.value);
|
|
134
148
|
}
|
|
135
149
|
}
|
|
136
|
-
const g = p(
|
|
137
|
-
function
|
|
138
|
-
const l =
|
|
150
|
+
const g = p(hl()), Gt = p(null), Le = p(!1), Ie = p(""), Y = p(null), Ze = p(0);
|
|
151
|
+
function Me() {
|
|
152
|
+
const l = It({
|
|
139
153
|
userConfig: k.config,
|
|
140
|
-
defaultConfig:
|
|
154
|
+
defaultConfig: Vt
|
|
141
155
|
});
|
|
142
156
|
let o = {};
|
|
143
157
|
return l.theme ? o = {
|
|
144
|
-
...
|
|
145
|
-
userConfig:
|
|
158
|
+
...It({
|
|
159
|
+
userConfig: $l.vue_ui_donut[l.theme] || k.config,
|
|
146
160
|
defaultConfig: l
|
|
147
161
|
}),
|
|
148
|
-
customPalette:
|
|
149
|
-
} : o = l, k.config &&
|
|
162
|
+
customPalette: _l[l.theme] || oe
|
|
163
|
+
} : o = l, k.config && Ge(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && Ge(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && Ge(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
150
164
|
}
|
|
151
|
-
const e = p(
|
|
152
|
-
...
|
|
165
|
+
const e = p(Me()), { loading: ke, FINAL_DATASET: ne, manualLoading: xe, skeletonDataset: Rt } = Nl({
|
|
166
|
+
...il(k),
|
|
153
167
|
FINAL_CONFIG: e,
|
|
154
|
-
prepareConfig:
|
|
168
|
+
prepareConfig: Me,
|
|
155
169
|
skeletonDataset: [
|
|
156
170
|
{
|
|
157
171
|
name: "",
|
|
@@ -169,7 +183,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
169
183
|
color: "#CACACA"
|
|
170
184
|
}
|
|
171
185
|
],
|
|
172
|
-
skeletonConfig:
|
|
186
|
+
skeletonConfig: yl({
|
|
173
187
|
defaultConfig: e.value,
|
|
174
188
|
userConfig: {
|
|
175
189
|
useCssAnimation: !1,
|
|
@@ -206,36 +220,36 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
206
220
|
}
|
|
207
221
|
}
|
|
208
222
|
})
|
|
209
|
-
}), T = p(!0),
|
|
210
|
-
function
|
|
223
|
+
}), T = p(!0), q = H([]);
|
|
224
|
+
function qt(l, o = 1e3, t = 50) {
|
|
211
225
|
return new Promise((a) => {
|
|
212
226
|
const i = l.length;
|
|
213
|
-
|
|
227
|
+
q.value = Array(i).fill(0);
|
|
214
228
|
let c = 0;
|
|
215
229
|
l.forEach((m, C) => {
|
|
216
230
|
setTimeout(() => {
|
|
217
231
|
const z = performance.now();
|
|
218
232
|
function O(B) {
|
|
219
|
-
const Z = Math.min((B - z) / o, 1),
|
|
220
|
-
|
|
233
|
+
const Z = Math.min((B - z) / o, 1), Xe = Lt(Z);
|
|
234
|
+
q.value[C] = m * Xe, q.value = [...q.value], Z < 1 ? (requestAnimationFrame(O), requestAnimationFrame(G)) : (q.value[C] = m, q.value = [...q.value], c += 1, c === i && a(), requestAnimationFrame(G));
|
|
221
235
|
}
|
|
222
236
|
requestAnimationFrame(O);
|
|
223
237
|
}, C * t);
|
|
224
238
|
});
|
|
225
239
|
});
|
|
226
240
|
}
|
|
227
|
-
const
|
|
241
|
+
const et = p(!1);
|
|
228
242
|
ge(
|
|
229
243
|
() => ke.value,
|
|
230
244
|
async (l) => {
|
|
231
|
-
if (l ||
|
|
232
|
-
const o =
|
|
245
|
+
if (l || et.value) return;
|
|
246
|
+
const o = ne.value === Rt, t = e.value.startAnimation?.show;
|
|
233
247
|
if (!o && t) {
|
|
234
|
-
|
|
235
|
-
const a =
|
|
248
|
+
et.value = !0;
|
|
249
|
+
const a = ne.value.map(
|
|
236
250
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
237
251
|
);
|
|
238
|
-
await
|
|
252
|
+
await qt(
|
|
239
253
|
a,
|
|
240
254
|
e.value.startAnimation.durationMs,
|
|
241
255
|
e.value.startAnimation.staggerMs
|
|
@@ -245,17 +259,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
245
259
|
},
|
|
246
260
|
{ immediate: !0 }
|
|
247
261
|
);
|
|
248
|
-
const { userOptionsVisible:
|
|
249
|
-
function
|
|
250
|
-
|
|
262
|
+
const { userOptionsVisible: ze, setUserOptionsVisibility: tt, keepUserOptionState: lt } = Ll({ config: e.value }), { svgRef: ue } = Il({ config: e.value.style.chart.title });
|
|
263
|
+
function Wt() {
|
|
264
|
+
tt(!0);
|
|
251
265
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
266
|
+
function Ut() {
|
|
267
|
+
tt(!1);
|
|
254
268
|
}
|
|
255
269
|
ge(() => k.config, (l) => {
|
|
256
|
-
ke.value || (e.value =
|
|
270
|
+
ke.value || (e.value = Me()), ze.value = !e.value.userOptions.showOnChartHover, Qe(), je.value += 1, Je.value += 1, Ke.value += 1, f.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, f.value.showTable = e.value.table.show, f.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
|
|
257
271
|
}, { deep: !0 });
|
|
258
|
-
const
|
|
272
|
+
const at = y(() => {
|
|
259
273
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
260
274
|
return {
|
|
261
275
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -264,11 +278,11 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
264
278
|
bottom: t,
|
|
265
279
|
left: a
|
|
266
280
|
};
|
|
267
|
-
}), { isPrinting:
|
|
281
|
+
}), { isPrinting: ot, isImaging: st, generatePdf: nt, generateImage: ut } = Fl({
|
|
268
282
|
elementId: `donut__${g.value}`,
|
|
269
283
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
270
284
|
options: e.value.userOptions.print
|
|
271
|
-
}),
|
|
285
|
+
}), Ht = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), rt = y(() => fl(e.value.customPalette)), f = p({
|
|
272
286
|
dataLabels: {
|
|
273
287
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
274
288
|
},
|
|
@@ -292,10 +306,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
292
306
|
return _.value;
|
|
293
307
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * l, t = o > _.value ? _.value : o;
|
|
294
308
|
return Math.max(t, 12 * (1 + l));
|
|
295
|
-
}),
|
|
309
|
+
}), it = zt, W = y(() => ne.value.map((l, o) => ({
|
|
296
310
|
name: l.name,
|
|
297
|
-
color:
|
|
298
|
-
value:
|
|
311
|
+
color: St(l.color) || rt.value[o] || oe[o] || oe[o % oe.length],
|
|
312
|
+
value: pl(l.values.reduce((t, a) => t + a, 0)),
|
|
299
313
|
absoluteValues: l.values,
|
|
300
314
|
comment: l.comment || "",
|
|
301
315
|
patternIndex: o,
|
|
@@ -306,19 +320,19 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
306
320
|
ge(() => k.dataset, (l) => {
|
|
307
321
|
Array.isArray(l) && l.length > 0 && (xe.value = !1);
|
|
308
322
|
}, { immediate: !0 });
|
|
309
|
-
const M =
|
|
310
|
-
ge(() =>
|
|
323
|
+
const M = H(W.value);
|
|
324
|
+
ge(() => W.value, (l) => {
|
|
311
325
|
M.value = l, requestAnimationFrame(G);
|
|
312
326
|
});
|
|
313
|
-
function
|
|
314
|
-
return
|
|
327
|
+
function jt() {
|
|
328
|
+
return W.value.map((l) => ({
|
|
315
329
|
name: l.name,
|
|
316
330
|
color: l.color,
|
|
317
331
|
value: l.value
|
|
318
332
|
}));
|
|
319
333
|
}
|
|
320
|
-
const
|
|
321
|
-
function
|
|
334
|
+
const R = p([]), te = p(!1);
|
|
335
|
+
function vt({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = Lt }) {
|
|
322
336
|
const m = performance.now();
|
|
323
337
|
function C(z) {
|
|
324
338
|
const O = Math.min((z - m) / t, 1), B = c(O), Z = l + (o - l) * B;
|
|
@@ -326,16 +340,16 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
326
340
|
}
|
|
327
341
|
requestAnimationFrame(C);
|
|
328
342
|
}
|
|
329
|
-
function
|
|
330
|
-
const o =
|
|
343
|
+
function dt(l) {
|
|
344
|
+
const o = W.value.find((i, c) => c === l);
|
|
331
345
|
let a = M.value.find((i, c) => c === l).value;
|
|
332
|
-
if (
|
|
346
|
+
if (R.value.includes(l)) {
|
|
333
347
|
let c = function() {
|
|
334
348
|
M.value = M.value.map(
|
|
335
349
|
(C, z) => l === z ? { ...C, value: i } : C
|
|
336
350
|
);
|
|
337
351
|
}, m = function() {
|
|
338
|
-
te.value = !0,
|
|
352
|
+
te.value = !0, vt({
|
|
339
353
|
from: a,
|
|
340
354
|
to: i,
|
|
341
355
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -349,16 +363,16 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
349
363
|
}
|
|
350
364
|
});
|
|
351
365
|
};
|
|
352
|
-
|
|
366
|
+
R.value = R.value.filter((C) => C !== l);
|
|
353
367
|
const i = o.value;
|
|
354
368
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(G));
|
|
355
|
-
} else if (
|
|
369
|
+
} else if (R.value.length < W.value.length - 1) {
|
|
356
370
|
let i = function() {
|
|
357
|
-
|
|
371
|
+
R.value.push(l), M.value = M.value.map(
|
|
358
372
|
(m, C) => l === C ? { ...m, value: 0 } : m
|
|
359
373
|
);
|
|
360
374
|
}, c = function() {
|
|
361
|
-
te.value = !0,
|
|
375
|
+
te.value = !0, vt({
|
|
362
376
|
from: a,
|
|
363
377
|
to: 0,
|
|
364
378
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
@@ -374,20 +388,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
374
388
|
};
|
|
375
389
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
376
390
|
}
|
|
377
|
-
|
|
391
|
+
it("selectLegend", U.value.map((i) => ({
|
|
378
392
|
name: i.name,
|
|
379
393
|
color: i.color,
|
|
380
394
|
value: i.value
|
|
381
395
|
})));
|
|
382
396
|
}
|
|
383
|
-
const
|
|
397
|
+
const Jt = y(() => ne.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), U = y(() => {
|
|
384
398
|
if (T.value && !ke.value) {
|
|
385
|
-
const l =
|
|
386
|
-
...
|
|
399
|
+
const l = q.value.map((t, a) => ({
|
|
400
|
+
...W.value[a],
|
|
387
401
|
value: t,
|
|
388
|
-
color:
|
|
402
|
+
color: W.value[a].color,
|
|
389
403
|
ghost: !1
|
|
390
|
-
})), o =
|
|
404
|
+
})), o = Jt.value - q.value.reduce((t, a) => t + a, 0);
|
|
391
405
|
return o > 0 && l.push({
|
|
392
406
|
name: "__ghost__",
|
|
393
407
|
value: o,
|
|
@@ -404,20 +418,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
404
418
|
}), M.value.map((l, o) => ({
|
|
405
419
|
...l,
|
|
406
420
|
seriesIndex: o
|
|
407
|
-
})).filter((l, o) => !
|
|
408
|
-
}),
|
|
421
|
+
})).filter((l, o) => !R.value.includes(o));
|
|
422
|
+
}), ct = y(() => ne.value.map((l, o) => ({
|
|
409
423
|
name: l.name,
|
|
410
|
-
color:
|
|
424
|
+
color: St(l.color) || rt.value[o] || oe[o] || oe[o % oe.length],
|
|
411
425
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
412
426
|
shape: "circle",
|
|
413
427
|
patternIndex: o
|
|
414
428
|
})).map((l, o) => ({
|
|
415
429
|
...l,
|
|
416
|
-
proportion: l.value /
|
|
417
|
-
opacity:
|
|
418
|
-
segregate: () => !te.value &&
|
|
419
|
-
isSegregated:
|
|
420
|
-
}))),
|
|
430
|
+
proportion: l.value / ne.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
|
|
431
|
+
opacity: R.value.includes(o) ? 0.5 : 1,
|
|
432
|
+
segregate: () => !te.value && dt(o),
|
|
433
|
+
isSegregated: R.value.includes(o)
|
|
434
|
+
}))), Kt = y(() => ({
|
|
421
435
|
cy: "donut-div-legend",
|
|
422
436
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
423
437
|
color: e.value.style.chart.legend.color,
|
|
@@ -427,7 +441,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
427
441
|
})), _ = y(() => {
|
|
428
442
|
const l = Math.min(s.value.width / 3, s.value.height / 3);
|
|
429
443
|
return l < 12 ? 12 : l;
|
|
430
|
-
}), S = y(() =>
|
|
444
|
+
}), S = y(() => Pt({ series: U.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ee.value)), Qt = y(() => Math.abs(U.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Zt = y(() => Pt({
|
|
431
445
|
series: [
|
|
432
446
|
{
|
|
433
447
|
value: 1,
|
|
@@ -440,8 +454,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
440
454
|
}
|
|
441
455
|
]
|
|
442
456
|
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ee.value)), X = y(() => S.value.filter((l) => !l.ghost)), d = y(() => {
|
|
443
|
-
const l = Math.max(...
|
|
444
|
-
return
|
|
457
|
+
const l = Math.max(...U.value.map((t) => t.value)), o = U.value.map((t) => t.value / l);
|
|
458
|
+
return gl({
|
|
445
459
|
series: o,
|
|
446
460
|
center: {
|
|
447
461
|
x: s.value.width / 2,
|
|
@@ -454,14 +468,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
454
468
|
function re(l) {
|
|
455
469
|
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
456
470
|
}
|
|
457
|
-
function
|
|
471
|
+
function el(l) {
|
|
458
472
|
return l.middlePoint.y > s.value.height / 2 ? P({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : P({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
459
473
|
}
|
|
460
474
|
function D(l) {
|
|
461
475
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
462
476
|
}
|
|
463
|
-
function
|
|
464
|
-
const t = l.value /
|
|
477
|
+
function Oe(l, o) {
|
|
478
|
+
const t = l.value / tl(o);
|
|
465
479
|
return isNaN(t) ? 0 : V(
|
|
466
480
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
467
481
|
t * 100,
|
|
@@ -473,31 +487,31 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
473
487
|
{ datapoint: l }
|
|
474
488
|
);
|
|
475
489
|
}
|
|
476
|
-
function
|
|
490
|
+
function tl(l) {
|
|
477
491
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
478
492
|
}
|
|
479
|
-
const L = y(() =>
|
|
493
|
+
const L = y(() => U.value.map((l) => l.value).reduce((l, o) => l + o, 0)), ht = y(() => L.value / U.value.length), yt = y(() => (l) => te.value ? l.proportion * 100 : l.value / L.value * 100), Ne = p(null), pe = p(!1);
|
|
480
494
|
function ie({ datapoint: l, seriesIndex: o }) {
|
|
481
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }),
|
|
495
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Le.value = !1, Y.value = null;
|
|
482
496
|
}
|
|
483
497
|
function ve({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
484
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }),
|
|
498
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Ne.value = { datapoint: l, seriesIndex: t, config: e.value, series: W.value }, Le.value = a, Y.value = o;
|
|
485
499
|
let i = "";
|
|
486
500
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
487
|
-
if (pe.value = !1,
|
|
501
|
+
if (pe.value = !1, Tl(c))
|
|
488
502
|
try {
|
|
489
503
|
const m = c({
|
|
490
504
|
seriesIndex: t,
|
|
491
505
|
datapoint: l,
|
|
492
|
-
series:
|
|
506
|
+
series: W.value,
|
|
493
507
|
config: e.value
|
|
494
508
|
});
|
|
495
|
-
typeof m == "string" && (
|
|
509
|
+
typeof m == "string" && (Ie.value = m, pe.value = !0);
|
|
496
510
|
} catch {
|
|
497
511
|
console.warn("Custom format cannot be applied."), pe.value = !1;
|
|
498
512
|
}
|
|
499
513
|
if (!pe.value) {
|
|
500
|
-
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${
|
|
514
|
+
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${Et.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${V(
|
|
501
515
|
e.value.style.chart.layout.labels.value.formatter,
|
|
502
516
|
l.value,
|
|
503
517
|
N({
|
|
@@ -528,25 +542,25 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
528
542
|
);
|
|
529
543
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
|
|
530
544
|
}
|
|
531
|
-
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`),
|
|
545
|
+
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), Ie.value = `<div>${i}</div>`;
|
|
532
546
|
}
|
|
533
547
|
}
|
|
534
548
|
function le(l) {
|
|
535
549
|
return e.value.useBlurOnHover && ![null, void 0].includes(Y.value) && Y.value !== l ? `url(#blur_${g.value})` : "";
|
|
536
550
|
}
|
|
537
551
|
const K = y(() => {
|
|
538
|
-
const l =
|
|
552
|
+
const l = U.value.map((t) => ({
|
|
539
553
|
name: t.name,
|
|
540
554
|
color: t.color
|
|
541
|
-
})), o =
|
|
555
|
+
})), o = U.value.map((t) => t.value);
|
|
542
556
|
return { head: l, body: o };
|
|
543
557
|
});
|
|
544
|
-
function
|
|
545
|
-
|
|
558
|
+
function ft(l = null) {
|
|
559
|
+
vl(() => {
|
|
546
560
|
const o = K.value.head.map((i, c) => [[
|
|
547
561
|
i.name
|
|
548
|
-
], [K.value.body[c]], [isNaN(K.value.body[c] / L.value) ? "-" : K.value.body[c] / L.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a =
|
|
549
|
-
l ? l(a) :
|
|
562
|
+
], [K.value.body[c]], [isNaN(K.value.body[c] / L.value) ? "-" : K.value.body[c] / L.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Cl(t);
|
|
563
|
+
l ? l(a) : Al({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
550
564
|
});
|
|
551
565
|
}
|
|
552
566
|
const _e = y(() => {
|
|
@@ -585,32 +599,32 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
585
599
|
config: t
|
|
586
600
|
};
|
|
587
601
|
}), de = p(!1);
|
|
588
|
-
function
|
|
589
|
-
de.value = l,
|
|
602
|
+
function pt(l) {
|
|
603
|
+
de.value = l, Ze.value += 1;
|
|
590
604
|
}
|
|
591
|
-
const
|
|
592
|
-
function
|
|
605
|
+
const gt = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
606
|
+
function ll(l) {
|
|
593
607
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
594
608
|
}
|
|
595
609
|
function Q(l, o) {
|
|
596
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
610
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), it("selectDatapoint", { datapoint: l, index: o });
|
|
597
611
|
}
|
|
598
|
-
function
|
|
612
|
+
function mt() {
|
|
599
613
|
f.value.showTable = !f.value.showTable;
|
|
600
614
|
}
|
|
601
|
-
function
|
|
615
|
+
function bt() {
|
|
602
616
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
603
617
|
}
|
|
604
|
-
function
|
|
618
|
+
function wt() {
|
|
605
619
|
f.value.showTooltip = !f.value.showTooltip;
|
|
606
620
|
}
|
|
607
621
|
const $e = p(!1);
|
|
608
|
-
function
|
|
622
|
+
function Ye() {
|
|
609
623
|
$e.value = !$e.value;
|
|
610
624
|
}
|
|
611
|
-
async function
|
|
612
|
-
if (!
|
|
613
|
-
const { width: o, height: t } =
|
|
625
|
+
async function al({ scale: l = 2 } = {}) {
|
|
626
|
+
if (!E.value) return;
|
|
627
|
+
const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await Xl({ domElement: E.value, base64: !0, img: !0, scale: l });
|
|
614
628
|
return {
|
|
615
629
|
imageUri: i,
|
|
616
630
|
base64: c,
|
|
@@ -620,56 +634,56 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
620
634
|
aspectRatio: a
|
|
621
635
|
};
|
|
622
636
|
}
|
|
623
|
-
function
|
|
637
|
+
function ol() {
|
|
624
638
|
if (!be.value) return;
|
|
625
639
|
const { x: l, y: o, width: t, height: a } = be.value.getBBox();
|
|
626
|
-
|
|
640
|
+
ue.value && ue.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
|
|
627
641
|
}
|
|
628
|
-
return
|
|
629
|
-
autoSize:
|
|
630
|
-
getData:
|
|
631
|
-
getImage:
|
|
632
|
-
generatePdf:
|
|
633
|
-
generateCsv:
|
|
642
|
+
return Mt({
|
|
643
|
+
autoSize: ol,
|
|
644
|
+
getData: jt,
|
|
645
|
+
getImage: al,
|
|
646
|
+
generatePdf: nt,
|
|
647
|
+
generateCsv: ft,
|
|
634
648
|
generateImage: ut,
|
|
635
|
-
toggleTable:
|
|
636
|
-
toggleLabels:
|
|
637
|
-
toggleTooltip:
|
|
638
|
-
toggleAnnotator:
|
|
639
|
-
toggleFullscreen:
|
|
640
|
-
}), (l, o) => (
|
|
649
|
+
toggleTable: mt,
|
|
650
|
+
toggleLabels: bt,
|
|
651
|
+
toggleTooltip: wt,
|
|
652
|
+
toggleAnnotator: Ye,
|
|
653
|
+
toggleFullscreen: pt
|
|
654
|
+
}), (l, o) => (u(), r("div", {
|
|
641
655
|
ref_key: "donutChart",
|
|
642
|
-
ref:
|
|
643
|
-
class:
|
|
656
|
+
ref: E,
|
|
657
|
+
class: De(`vue-ui-donut ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
644
658
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
645
659
|
id: `donut__${g.value}`,
|
|
646
|
-
onMouseenter:
|
|
647
|
-
onMouseleave:
|
|
660
|
+
onMouseenter: Wt,
|
|
661
|
+
onMouseleave: Ut
|
|
648
662
|
}, [
|
|
649
|
-
e.value.userOptions.buttons.annotator &&
|
|
663
|
+
e.value.userOptions.buttons.annotator && n(ue) ? (u(), ae(n(Xt), {
|
|
650
664
|
key: 0,
|
|
651
665
|
color: e.value.style.chart.color,
|
|
652
666
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
653
667
|
active: $e.value,
|
|
654
|
-
svgRef:
|
|
655
|
-
onClose:
|
|
668
|
+
svgRef: n(ue),
|
|
669
|
+
onClose: Ye
|
|
656
670
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
657
671
|
w(l.$slots, "userConfig", {}, void 0, !0),
|
|
658
|
-
|
|
672
|
+
Ht.value ? (u(), r("div", {
|
|
659
673
|
key: 1,
|
|
660
674
|
ref_key: "noTitle",
|
|
661
|
-
ref:
|
|
675
|
+
ref: He,
|
|
662
676
|
class: "vue-data-ui-no-title-space",
|
|
663
677
|
style: "height:36px; width: 100%;background:transparent"
|
|
664
678
|
}, null, 512)) : v("", !0),
|
|
665
|
-
e.value.style.chart.title.text ? (
|
|
679
|
+
e.value.style.chart.title.text ? (u(), r("div", {
|
|
666
680
|
key: 2,
|
|
667
681
|
ref_key: "chartTitle",
|
|
668
|
-
ref:
|
|
682
|
+
ref: qe,
|
|
669
683
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
670
684
|
}, [
|
|
671
|
-
(
|
|
672
|
-
key: `title_${
|
|
685
|
+
(u(), ae(zl, {
|
|
686
|
+
key: `title_${je.value}`,
|
|
673
687
|
config: {
|
|
674
688
|
title: {
|
|
675
689
|
cy: "donut-div-title",
|
|
@@ -682,14 +696,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
682
696
|
}
|
|
683
697
|
}, null, 8, ["config"]))
|
|
684
698
|
], 512)) : v("", !0),
|
|
685
|
-
e.value.userOptions.show && me.value && (
|
|
699
|
+
e.value.userOptions.show && me.value && (n(lt) || n(ze)) ? (u(), ae(n(Bt), {
|
|
686
700
|
ref_key: "details",
|
|
687
|
-
ref:
|
|
688
|
-
key: `user_option_${
|
|
701
|
+
ref: Gt,
|
|
702
|
+
key: `user_option_${Ze.value}`,
|
|
689
703
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
690
704
|
color: e.value.style.chart.color,
|
|
691
|
-
isPrinting:
|
|
692
|
-
isImaging:
|
|
705
|
+
isPrinting: n(ot),
|
|
706
|
+
isImaging: n(st),
|
|
693
707
|
uid: g.value,
|
|
694
708
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
695
709
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -699,7 +713,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
699
713
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
700
714
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
701
715
|
isFullscreen: de.value,
|
|
702
|
-
chartElement:
|
|
716
|
+
chartElement: E.value,
|
|
703
717
|
position: e.value.userOptions.position,
|
|
704
718
|
callbacks: e.value.userOptions.callbacks,
|
|
705
719
|
isTooltip: f.value.showTooltip,
|
|
@@ -707,18 +721,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
707
721
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
708
722
|
isAnnotation: $e.value,
|
|
709
723
|
printScale: e.value.userOptions.print.scale,
|
|
710
|
-
onToggleFullscreen:
|
|
711
|
-
onGeneratePdf:
|
|
712
|
-
onGenerateCsv:
|
|
713
|
-
onGenerateImage:
|
|
714
|
-
onToggleTable:
|
|
715
|
-
onToggleLabels:
|
|
716
|
-
onToggleTooltip:
|
|
717
|
-
onToggleAnnotator:
|
|
724
|
+
onToggleFullscreen: pt,
|
|
725
|
+
onGeneratePdf: n(nt),
|
|
726
|
+
onGenerateCsv: ft,
|
|
727
|
+
onGenerateImage: n(ut),
|
|
728
|
+
onToggleTable: mt,
|
|
729
|
+
onToggleLabels: bt,
|
|
730
|
+
onToggleTooltip: wt,
|
|
731
|
+
onToggleAnnotator: Ye,
|
|
718
732
|
style: $({
|
|
719
|
-
visibility:
|
|
733
|
+
visibility: n(lt) ? n(ze) ? "visible" : "hidden" : "visible"
|
|
720
734
|
})
|
|
721
|
-
},
|
|
735
|
+
}, _t({ _: 2 }, [
|
|
722
736
|
l.$slots.menuIcon ? {
|
|
723
737
|
name: "menuIcon",
|
|
724
738
|
fn: A(({ isOpen: t, color: a }) => [
|
|
@@ -783,21 +797,21 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
783
797
|
key: "8"
|
|
784
798
|
} : void 0
|
|
785
799
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
786
|
-
(
|
|
800
|
+
(u(), r("svg", {
|
|
787
801
|
ref_key: "svgRef",
|
|
788
|
-
ref:
|
|
789
|
-
xmlns:
|
|
790
|
-
class:
|
|
802
|
+
ref: ue,
|
|
803
|
+
xmlns: n(ml),
|
|
804
|
+
class: De({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value, "vue-data-ui-svg": !0 }),
|
|
791
805
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
792
|
-
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
806
|
+
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${at.value.css}`)
|
|
793
807
|
}, [
|
|
794
808
|
h("g", {
|
|
795
809
|
ref_key: "G",
|
|
796
810
|
ref: be,
|
|
797
811
|
class: "vue-data-ui-g"
|
|
798
812
|
}, [
|
|
799
|
-
|
|
800
|
-
l.$slots["chart-background"] ? (
|
|
813
|
+
Be(n(Yt)),
|
|
814
|
+
l.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
801
815
|
key: 0,
|
|
802
816
|
x: 0,
|
|
803
817
|
y: 0,
|
|
@@ -808,35 +822,35 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
808
822
|
}
|
|
809
823
|
}, [
|
|
810
824
|
w(l.$slots, "chart-background", {}, void 0, !0)
|
|
811
|
-
], 8,
|
|
812
|
-
e.value.type === "classic" && !isNaN(ee.value / _.value) ? (
|
|
813
|
-
e.value.style.chart.useGradient ? (
|
|
825
|
+
], 8, El)) : v("", !0),
|
|
826
|
+
e.value.type === "classic" && !isNaN(ee.value / _.value) ? (u(), r("defs", Gl, [
|
|
827
|
+
e.value.style.chart.useGradient ? (u(), r("radialGradient", {
|
|
814
828
|
key: 0,
|
|
815
829
|
id: `gradient_${g.value}`
|
|
816
830
|
}, [
|
|
817
831
|
h("stop", {
|
|
818
832
|
offset: "0%",
|
|
819
|
-
"stop-color":
|
|
833
|
+
"stop-color": n(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
820
834
|
"stop-opacity": "0"
|
|
821
|
-
}, null, 8,
|
|
835
|
+
}, null, 8, ql),
|
|
822
836
|
h("stop", {
|
|
823
837
|
offset: `${(1 - ee.value / _.value) * 100}%`,
|
|
824
|
-
"stop-color":
|
|
838
|
+
"stop-color": n(Ce)("#FFFFFF", 0),
|
|
825
839
|
"stop-opacity": "0"
|
|
826
|
-
}, null, 8,
|
|
840
|
+
}, null, 8, Wl),
|
|
827
841
|
h("stop", {
|
|
828
842
|
offset: `${(1 - ee.value / _.value / 2) * 100}%`,
|
|
829
|
-
"stop-color":
|
|
830
|
-
}, null, 8,
|
|
843
|
+
"stop-color": n(Ce)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
844
|
+
}, null, 8, Ul),
|
|
831
845
|
h("stop", {
|
|
832
846
|
offset: "100%",
|
|
833
|
-
"stop-color":
|
|
847
|
+
"stop-color": n(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
834
848
|
"stop-opacity": "0"
|
|
835
|
-
}, null, 8,
|
|
836
|
-
], 8,
|
|
849
|
+
}, null, 8, Hl)
|
|
850
|
+
], 8, Rl)) : v("", !0)
|
|
837
851
|
])) : v("", !0),
|
|
838
|
-
e.value.type === "polar" ? (
|
|
839
|
-
(
|
|
852
|
+
e.value.type === "polar" ? (u(), r("defs", jl, [
|
|
853
|
+
(u(!0), r(b, null, F(d.value, (t, a) => (u(), r("radialGradient", {
|
|
840
854
|
id: `polar_gradient_${a}_${g.value}`,
|
|
841
855
|
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
842
856
|
cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
|
|
@@ -844,14 +858,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
844
858
|
}, [
|
|
845
859
|
h("stop", {
|
|
846
860
|
offset: "0%",
|
|
847
|
-
"stop-color":
|
|
861
|
+
"stop-color": n(bl)(S.value[a].color, 0.05),
|
|
848
862
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
849
|
-
}, null, 8,
|
|
863
|
+
}, null, 8, Kl),
|
|
850
864
|
h("stop", {
|
|
851
865
|
offset: "100%",
|
|
852
866
|
"stop-color": S.value[a].color
|
|
853
|
-
}, null, 8,
|
|
854
|
-
], 8,
|
|
867
|
+
}, null, 8, Ql)
|
|
868
|
+
], 8, Jl))), 256))
|
|
855
869
|
])) : v("", !0),
|
|
856
870
|
h("defs", null, [
|
|
857
871
|
h("filter", {
|
|
@@ -865,12 +879,12 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
865
879
|
in: "SourceGraphic",
|
|
866
880
|
stdDeviation: 2,
|
|
867
881
|
id: `blur_std_${g.value}`
|
|
868
|
-
}, null, 8,
|
|
882
|
+
}, null, 8, ea),
|
|
869
883
|
o[5] || (o[5] = h("feColorMatrix", {
|
|
870
884
|
type: "saturate",
|
|
871
885
|
values: "0"
|
|
872
886
|
}, null, -1))
|
|
873
|
-
], 8,
|
|
887
|
+
], 8, Zl),
|
|
874
888
|
h("filter", {
|
|
875
889
|
id: `shadow_${g.value}`,
|
|
876
890
|
"color-interpolation-filters": "sRGB"
|
|
@@ -881,8 +895,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
881
895
|
stdDeviation: "10",
|
|
882
896
|
"flood-opacity": "0.5",
|
|
883
897
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
884
|
-
}, null, 8,
|
|
885
|
-
], 8,
|
|
898
|
+
}, null, 8, la)
|
|
899
|
+
], 8, ta),
|
|
886
900
|
h("filter", {
|
|
887
901
|
id: `drop_shadow_${g.value}`,
|
|
888
902
|
"color-interpolation-filters": "sRGB",
|
|
@@ -897,25 +911,25 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
897
911
|
stdDeviation: "3",
|
|
898
912
|
"flood-opacity": "1",
|
|
899
913
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
900
|
-
}, null, 8,
|
|
901
|
-
], 8,
|
|
914
|
+
}, null, 8, oa)
|
|
915
|
+
], 8, aa)
|
|
902
916
|
]),
|
|
903
|
-
e.value.type === "classic" ? (
|
|
904
|
-
D(t) && f.value.dataLabels.show ? (
|
|
917
|
+
e.value.type === "classic" ? (u(!0), r(b, { key: 3 }, F(S.value.filter((t) => !t.ghost), (t, a) => (u(), r("g", null, [
|
|
918
|
+
D(t) && f.value.dataLabels.show ? (u(), r("path", {
|
|
905
919
|
key: 0,
|
|
906
|
-
d:
|
|
920
|
+
d: n(wl)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, ee.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
907
921
|
stroke: t.color,
|
|
908
922
|
"stroke-width": "1",
|
|
909
923
|
"stroke-linecap": "round",
|
|
910
924
|
"stroke-linejoin": "round",
|
|
911
925
|
fill: "none",
|
|
912
926
|
filter: le(a)
|
|
913
|
-
}, null, 8,
|
|
927
|
+
}, null, 8, sa)) : v("", !0)
|
|
914
928
|
]))), 256)) : v("", !0),
|
|
915
|
-
e.value.type === "polar" ? (
|
|
916
|
-
D(t) && f.value.dataLabels.show ? (
|
|
929
|
+
e.value.type === "polar" ? (u(!0), r(b, { key: 4 }, F(S.value.filter((t) => !t.ghost), (t, a) => (u(), r("g", null, [
|
|
930
|
+
D(t) && f.value.dataLabels.show ? (u(), r("path", {
|
|
917
931
|
key: 0,
|
|
918
|
-
d: `M ${
|
|
932
|
+
d: `M ${n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${d.value[a].middlePoint.x},${d.value[a].middlePoint.y}`,
|
|
919
933
|
stroke: t.color,
|
|
920
934
|
"stroke-width": "1",
|
|
921
935
|
"stroke-linecap": "round",
|
|
@@ -925,9 +939,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
925
939
|
style: $({
|
|
926
940
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
927
941
|
})
|
|
928
|
-
}, null, 12,
|
|
942
|
+
}, null, 12, na)) : v("", !0)
|
|
929
943
|
]))), 256)) : v("", !0),
|
|
930
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (
|
|
944
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (u(), r("circle", {
|
|
931
945
|
key: 5,
|
|
932
946
|
cx: s.value.width / 2,
|
|
933
947
|
cy: s.value.height / 2,
|
|
@@ -935,50 +949,50 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
935
949
|
fill: e.value.style.chart.backgroundColor,
|
|
936
950
|
filter: `url(#shadow_${g.value})`
|
|
937
951
|
}, null, 8, ua)) : v("", !0),
|
|
938
|
-
l.$slots.pattern ? (
|
|
939
|
-
(
|
|
952
|
+
l.$slots.pattern ? (u(), r("g", ra, [
|
|
953
|
+
(u(!0), r(b, null, F(Re.dataset, (t, a) => (u(), r("defs", {
|
|
940
954
|
key: `pattern-${t.patternIndex}`
|
|
941
955
|
}, [
|
|
942
|
-
w(l.$slots, "pattern",
|
|
956
|
+
w(l.$slots, "pattern", $t({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
|
|
943
957
|
]))), 128))
|
|
944
958
|
])) : v("", !0),
|
|
945
|
-
L.value && e.value.type === "classic" ? (
|
|
946
|
-
(
|
|
959
|
+
L.value && e.value.type === "classic" ? (u(), r(b, { key: 7 }, [
|
|
960
|
+
(u(!0), r(b, null, F(X.value, (t, a) => (u(), r("path", {
|
|
947
961
|
stroke: e.value.style.chart.backgroundColor,
|
|
948
962
|
d: t.arcSlice,
|
|
949
963
|
fill: "#FFFFFF"
|
|
950
|
-
}, null, 8,
|
|
951
|
-
(
|
|
964
|
+
}, null, 8, ia))), 256)),
|
|
965
|
+
(u(!0), r(b, null, F(X.value, (t, a) => (u(), r("path", {
|
|
952
966
|
class: "vue-ui-donut-arc-path",
|
|
953
967
|
d: t.arcSlice,
|
|
954
968
|
fill: t.color,
|
|
955
969
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
956
970
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
957
971
|
filter: le(a)
|
|
958
|
-
}, null, 8,
|
|
959
|
-
l.$slots.pattern ? (
|
|
960
|
-
(
|
|
972
|
+
}, null, 8, va))), 256)),
|
|
973
|
+
l.$slots.pattern ? (u(), r("g", da, [
|
|
974
|
+
(u(!0), r(b, null, F(X.value, (t, a) => (u(), r("path", {
|
|
961
975
|
class: "vue-ui-donut-arc-path",
|
|
962
976
|
d: t.arcSlice,
|
|
963
977
|
fill: `url(#${t.pattern})`,
|
|
964
978
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
965
979
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
966
980
|
filter: le(a)
|
|
967
|
-
}, null, 8,
|
|
981
|
+
}, null, 8, ca))), 256))
|
|
968
982
|
])) : v("", !0)
|
|
969
983
|
], 64)) : v("", !0),
|
|
970
|
-
L.value && e.value.type === "polar" ? (
|
|
971
|
-
S.value.length > 1 ? (
|
|
972
|
-
(
|
|
984
|
+
L.value && e.value.type === "polar" ? (u(), r(b, { key: 8 }, [
|
|
985
|
+
S.value.length > 1 ? (u(), r("g", ha, [
|
|
986
|
+
(u(!0), r(b, null, F(X.value, (t, a) => (u(), r("path", {
|
|
973
987
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
974
988
|
d: d.value[a].path,
|
|
975
989
|
fill: "#FFFFFF",
|
|
976
990
|
style: $({
|
|
977
991
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
978
992
|
})
|
|
979
|
-
}, null, 12,
|
|
980
|
-
e.value.style.chart.layout.donut.useShadow ? (
|
|
981
|
-
(
|
|
993
|
+
}, null, 12, ya))), 256)),
|
|
994
|
+
e.value.style.chart.layout.donut.useShadow ? (u(), r("g", fa, [
|
|
995
|
+
(u(!0), r(b, null, F(X.value, (t, a) => (u(), r("path", {
|
|
982
996
|
class: "vue-ui-donut-arc-path",
|
|
983
997
|
d: d.value[a].path,
|
|
984
998
|
fill: "transparent",
|
|
@@ -988,10 +1002,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
988
1002
|
style: $({
|
|
989
1003
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
990
1004
|
})
|
|
991
|
-
}, null, 12,
|
|
1005
|
+
}, null, 12, pa))), 256))
|
|
992
1006
|
])) : v("", !0),
|
|
993
|
-
l.$slots.pattern ? (
|
|
994
|
-
(
|
|
1007
|
+
l.$slots.pattern ? (u(), r("g", ga, [
|
|
1008
|
+
(u(!0), r(b, null, F(X.value, (t, a) => (u(), r("path", {
|
|
995
1009
|
class: "vue-ui-donut-arc-path",
|
|
996
1010
|
d: d.value[a].path,
|
|
997
1011
|
fill: `url(#${t.pattern})`,
|
|
@@ -1002,9 +1016,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1002
1016
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1003
1017
|
transformOrigin: "center"
|
|
1004
1018
|
})
|
|
1005
|
-
}, null, 12,
|
|
1019
|
+
}, null, 12, ma))), 256))
|
|
1006
1020
|
])) : v("", !0),
|
|
1007
|
-
(
|
|
1021
|
+
(u(!0), r(b, null, F(X.value, (t, a) => (u(), r("path", {
|
|
1008
1022
|
class: "vue-ui-donut-arc-path",
|
|
1009
1023
|
d: d.value[a].path,
|
|
1010
1024
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${g.value})` : t.color,
|
|
@@ -1014,9 +1028,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1014
1028
|
style: $({
|
|
1015
1029
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1016
1030
|
})
|
|
1017
|
-
}, null, 12,
|
|
1018
|
-
])) : (
|
|
1019
|
-
l.$slots.pattern ? (
|
|
1031
|
+
}, null, 12, ba))), 256))
|
|
1032
|
+
])) : (u(), r("g", wa, [
|
|
1033
|
+
l.$slots.pattern ? (u(), r("circle", {
|
|
1020
1034
|
key: 0,
|
|
1021
1035
|
cx: s.value.width / 2,
|
|
1022
1036
|
cy: s.value.height / 2,
|
|
@@ -1024,7 +1038,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1024
1038
|
fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
|
|
1025
1039
|
stroke: e.value.style.chart.backgroundColor,
|
|
1026
1040
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1027
|
-
}, null, 8,
|
|
1041
|
+
}, null, 8, ka)) : v("", !0),
|
|
1028
1042
|
h("circle", {
|
|
1029
1043
|
cx: s.value.width / 2,
|
|
1030
1044
|
cy: s.value.height / 2,
|
|
@@ -1032,17 +1046,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1032
1046
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
|
|
1033
1047
|
stroke: e.value.style.chart.backgroundColor,
|
|
1034
1048
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1035
|
-
}, null, 8,
|
|
1049
|
+
}, null, 8, xa)
|
|
1036
1050
|
]))
|
|
1037
|
-
], 64)) : (
|
|
1038
|
-
e.value.type === "classic" && !
|
|
1039
|
-
(
|
|
1051
|
+
], 64)) : (u(), r(b, { key: 9 }, [
|
|
1052
|
+
e.value.type === "classic" && !Qt.value ? (u(), r("g", _a, [
|
|
1053
|
+
(u(!0), r(b, null, F(Zt.value, (t, a) => (u(), r("path", {
|
|
1040
1054
|
class: "vue-ui-donut-arc-path",
|
|
1041
1055
|
d: t.arcSlice,
|
|
1042
1056
|
fill: t.color,
|
|
1043
1057
|
stroke: e.value.style.chart.backgroundColor,
|
|
1044
1058
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1045
|
-
}, null, 8,
|
|
1059
|
+
}, null, 8, $a))), 256))
|
|
1046
1060
|
])) : v("", !0),
|
|
1047
1061
|
h("circle", {
|
|
1048
1062
|
cx: s.value.width / 2,
|
|
@@ -1050,9 +1064,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1050
1064
|
r: _.value <= 0 ? 10 : _.value,
|
|
1051
1065
|
fill: "transparent",
|
|
1052
1066
|
stroke: e.value.style.chart.backgroundColor
|
|
1053
|
-
}, null, 8,
|
|
1067
|
+
}, null, 8, Ca)
|
|
1054
1068
|
], 64)),
|
|
1055
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (
|
|
1069
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (u(), r("circle", {
|
|
1056
1070
|
key: 10,
|
|
1057
1071
|
cx: s.value.width / 2,
|
|
1058
1072
|
cy: s.value.height / 2,
|
|
@@ -1061,7 +1075,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1061
1075
|
_.value <= 0 ? 10 : _.value
|
|
1062
1076
|
),
|
|
1063
1077
|
fill: `url(#gradient_${g.value})`
|
|
1064
|
-
}, null, 8,
|
|
1078
|
+
}, null, 8, Aa)) : v("", !0),
|
|
1065
1079
|
h("circle", {
|
|
1066
1080
|
ref_key: "circle_hollow",
|
|
1067
1081
|
ref: Te,
|
|
@@ -1070,10 +1084,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1070
1084
|
cx: s.value.width / 2,
|
|
1071
1085
|
cy: s.value.height / 2,
|
|
1072
1086
|
r: Math.max(0.1, ee.value * 1.7)
|
|
1073
|
-
}, null, 8,
|
|
1074
|
-
L.value ? (
|
|
1075
|
-
S.value.length > 1 || e.value.type === "classic" ? (
|
|
1076
|
-
(
|
|
1087
|
+
}, null, 8, Ta),
|
|
1088
|
+
L.value ? (u(), r(b, { key: 11 }, [
|
|
1089
|
+
S.value.length > 1 || e.value.type === "classic" ? (u(), r("g", Sa, [
|
|
1090
|
+
(u(!0), r(b, null, F(S.value.filter((t) => !t.ghost), (t, a) => (u(), r("path", {
|
|
1077
1091
|
d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
|
|
1078
1092
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1079
1093
|
fill: Y.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
@@ -1085,8 +1099,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1085
1099
|
}),
|
|
1086
1100
|
onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1087
1101
|
onClick: (i) => Q(t, a)
|
|
1088
|
-
}, null, 40,
|
|
1089
|
-
])) : (
|
|
1102
|
+
}, null, 40, Pa))), 256))
|
|
1103
|
+
])) : (u(), r("g", Fa, [
|
|
1090
1104
|
h("circle", {
|
|
1091
1105
|
cx: s.value.width / 2,
|
|
1092
1106
|
cy: s.value.height / 2,
|
|
@@ -1100,16 +1114,16 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1100
1114
|
})),
|
|
1101
1115
|
onMouseleave: o[1] || (o[1] = (t) => ie({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
|
|
1102
1116
|
onClick: o[2] || (o[2] = (t) => Q(S.value[0], l.i))
|
|
1103
|
-
}, null, 40,
|
|
1117
|
+
}, null, 40, La)
|
|
1104
1118
|
]))
|
|
1105
1119
|
], 64)) : v("", !0),
|
|
1106
|
-
e.value.type === "classic" ? (
|
|
1120
|
+
e.value.type === "classic" ? (u(), r("g", {
|
|
1107
1121
|
key: 12,
|
|
1108
1122
|
ref_key: "G_hollow",
|
|
1109
1123
|
ref: Ae,
|
|
1110
1124
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1111
1125
|
}, [
|
|
1112
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1126
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (u(), r("text", {
|
|
1113
1127
|
key: 0,
|
|
1114
1128
|
"text-anchor": "middle",
|
|
1115
1129
|
x: s.value.width / 2,
|
|
@@ -1117,8 +1131,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1117
1131
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1118
1132
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1119
1133
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1120
|
-
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
1121
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1134
|
+
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13, Ia)) : v("", !0),
|
|
1135
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (u(), r("text", {
|
|
1122
1136
|
key: 1,
|
|
1123
1137
|
"text-anchor": "middle",
|
|
1124
1138
|
x: s.value.width / 2,
|
|
@@ -1126,16 +1140,16 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1126
1140
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1127
1141
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1128
1142
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1129
|
-
}, I(
|
|
1143
|
+
}, I(n(V)(
|
|
1130
1144
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1131
1145
|
L.value,
|
|
1132
|
-
|
|
1146
|
+
n(N)({
|
|
1133
1147
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1134
1148
|
v: L.value,
|
|
1135
1149
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1136
1150
|
})
|
|
1137
|
-
)), 13,
|
|
1138
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1151
|
+
)), 13, Ma)) : v("", !0),
|
|
1152
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (u(), r("text", {
|
|
1139
1153
|
key: 2,
|
|
1140
1154
|
"text-anchor": "middle",
|
|
1141
1155
|
x: s.value.width / 2,
|
|
@@ -1143,8 +1157,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1143
1157
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1144
1158
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1145
1159
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1146
|
-
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
1147
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1160
|
+
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13, za)) : v("", !0),
|
|
1161
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (u(), r("text", {
|
|
1148
1162
|
key: 3,
|
|
1149
1163
|
"text-anchor": "middle",
|
|
1150
1164
|
x: s.value.width / 2,
|
|
@@ -1152,48 +1166,48 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1152
1166
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1153
1167
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1154
1168
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1155
|
-
}, I(te.value || T.value ? "--" :
|
|
1169
|
+
}, I(te.value || T.value ? "--" : n(V)(
|
|
1156
1170
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1157
|
-
|
|
1158
|
-
|
|
1171
|
+
ht.value,
|
|
1172
|
+
n(N)({
|
|
1159
1173
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1160
|
-
v:
|
|
1174
|
+
v: ht.value,
|
|
1161
1175
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1162
1176
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1163
1177
|
})
|
|
1164
|
-
)), 13,
|
|
1178
|
+
)), 13, Oa)) : v("", !0)
|
|
1165
1179
|
], 512)) : v("", !0),
|
|
1166
|
-
(
|
|
1180
|
+
(u(!0), r(b, null, F(X.value.filter((t) => !t.ghost), (t, a) => (u(), r("g", {
|
|
1167
1181
|
filter: le(a),
|
|
1168
|
-
class:
|
|
1182
|
+
class: De({ animated: e.value.useCssAnimation }),
|
|
1169
1183
|
key: t.seriesIndex
|
|
1170
1184
|
}, [
|
|
1171
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
1172
|
-
(
|
|
1173
|
-
x:
|
|
1174
|
-
y:
|
|
1185
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), r("g", Ya, [
|
|
1186
|
+
(u(), r("foreignObject", {
|
|
1187
|
+
x: n(x)(t, !0).anchor === "end" ? n(x)(t).x - 120 : n(x)(t, !0).anchor === "middle" ? n(x)(t).x - 60 : n(x)(t).x,
|
|
1188
|
+
y: n(fe)(t) - (gt.value ? 20 : 0),
|
|
1175
1189
|
width: "120",
|
|
1176
1190
|
height: "60",
|
|
1177
1191
|
style: { overflow: "visible" }
|
|
1178
1192
|
}, [
|
|
1179
1193
|
h("div", null, [
|
|
1180
|
-
w(l.$slots, "dataLabel",
|
|
1194
|
+
w(l.$slots, "dataLabel", $t({ ref_for: !0 }, {
|
|
1181
1195
|
datapoint: t,
|
|
1182
1196
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a,
|
|
1183
|
-
isSafari:
|
|
1197
|
+
isSafari: gt.value,
|
|
1184
1198
|
isVisible: D(t) && f.value.dataLabels.show,
|
|
1185
|
-
textAlign:
|
|
1186
|
-
flexAlign:
|
|
1187
|
-
percentage:
|
|
1199
|
+
textAlign: n(x)(t, !0, 16, !0).anchor,
|
|
1200
|
+
flexAlign: n(x)(t, !0, 16).anchor,
|
|
1201
|
+
percentage: Oe(t, X.value)
|
|
1188
1202
|
}), void 0, !0)
|
|
1189
1203
|
])
|
|
1190
|
-
], 8,
|
|
1191
|
-
])) : (
|
|
1192
|
-
e.value.type === "classic" ? (
|
|
1193
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1204
|
+
], 8, Xa))
|
|
1205
|
+
])) : (u(), r("g", Da, [
|
|
1206
|
+
e.value.type === "classic" ? (u(), r(b, { key: 0 }, [
|
|
1207
|
+
D(t) && f.value.dataLabels.show ? (u(), r("circle", {
|
|
1194
1208
|
key: 0,
|
|
1195
|
-
cx:
|
|
1196
|
-
cy:
|
|
1209
|
+
cx: n(x)(t).x,
|
|
1210
|
+
cy: n(fe)(t) - 3.5,
|
|
1197
1211
|
fill: t.color,
|
|
1198
1212
|
stroke: e.value.style.chart.backgroundColor,
|
|
1199
1213
|
"stroke-width": 1,
|
|
@@ -1207,13 +1221,13 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1207
1221
|
show: !0
|
|
1208
1222
|
}),
|
|
1209
1223
|
onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1210
|
-
}, null, 40,
|
|
1224
|
+
}, null, 40, Ba)) : v("", !0)
|
|
1211
1225
|
], 64)) : v("", !0),
|
|
1212
|
-
e.value.type === "polar" ? (
|
|
1213
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1226
|
+
e.value.type === "polar" ? (u(), r(b, { key: 1 }, [
|
|
1227
|
+
D(t) && f.value.dataLabels.show ? (u(), r("circle", {
|
|
1214
1228
|
key: 0,
|
|
1215
|
-
cx:
|
|
1216
|
-
cy:
|
|
1229
|
+
cx: n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1230
|
+
cy: n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
1217
1231
|
fill: t.color,
|
|
1218
1232
|
stroke: e.value.style.chart.backgroundColor,
|
|
1219
1233
|
"stroke-width": 1,
|
|
@@ -1230,14 +1244,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1230
1244
|
style: $({
|
|
1231
1245
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1232
1246
|
})
|
|
1233
|
-
}, null, 44,
|
|
1247
|
+
}, null, 44, Va)) : v("", !0)
|
|
1234
1248
|
], 64)) : v("", !0),
|
|
1235
|
-
e.value.type === "classic" ? (
|
|
1236
|
-
|
|
1249
|
+
e.value.type === "classic" ? (u(), r(b, { key: 2 }, [
|
|
1250
|
+
Ct(h("text", {
|
|
1237
1251
|
class: "vue-data-ui-datalabel-value",
|
|
1238
|
-
"text-anchor":
|
|
1239
|
-
x:
|
|
1240
|
-
y:
|
|
1252
|
+
"text-anchor": n(x)(t, !0, 12).anchor,
|
|
1253
|
+
x: n(x)(t, !0, 12).x,
|
|
1254
|
+
y: n(fe)(t),
|
|
1241
1255
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1242
1256
|
"font-size": we.value + "px",
|
|
1243
1257
|
style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
@@ -1249,47 +1263,47 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1249
1263
|
show: !0
|
|
1250
1264
|
}),
|
|
1251
1265
|
onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1252
|
-
}, I(
|
|
1266
|
+
}, I(Oe(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${n(V)(
|
|
1253
1267
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1254
1268
|
t.value,
|
|
1255
|
-
|
|
1269
|
+
n(N)({
|
|
1256
1270
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1257
1271
|
v: t.value,
|
|
1258
1272
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1259
1273
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1260
1274
|
}),
|
|
1261
1275
|
{ datapoint: t }
|
|
1262
|
-
)})` : ""), 45,
|
|
1263
|
-
[
|
|
1276
|
+
)})` : ""), 45, Ea), [
|
|
1277
|
+
[At, D(t) && f.value.dataLabels.show]
|
|
1264
1278
|
]),
|
|
1265
|
-
|
|
1279
|
+
Ct(h("text", {
|
|
1266
1280
|
class: "vue-data-ui-datalabel-name",
|
|
1267
|
-
"text-anchor":
|
|
1268
|
-
x:
|
|
1269
|
-
y:
|
|
1281
|
+
"text-anchor": n(x)(t).anchor,
|
|
1282
|
+
x: n(x)(t, !0, 12).x,
|
|
1283
|
+
y: n(fe)(t) + J.value * 1.2,
|
|
1270
1284
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1271
1285
|
"font-size": J.value + "px",
|
|
1272
1286
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1273
1287
|
onClick: (i) => Q(t, a),
|
|
1274
|
-
innerHTML:
|
|
1288
|
+
innerHTML: n(Ft)({
|
|
1275
1289
|
content: t.name,
|
|
1276
1290
|
fontSize: J.value,
|
|
1277
1291
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1278
|
-
x:
|
|
1279
|
-
y:
|
|
1292
|
+
x: n(x)(t, !0, 12).x,
|
|
1293
|
+
y: n(fe)(t) + J.value
|
|
1280
1294
|
})
|
|
1281
|
-
}, null, 12,
|
|
1282
|
-
[
|
|
1295
|
+
}, null, 12, Ga), [
|
|
1296
|
+
[At, D(t) && f.value.dataLabels.show]
|
|
1283
1297
|
]),
|
|
1284
|
-
o[6] || (o[6] =
|
|
1298
|
+
o[6] || (o[6] = Ve(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> '))
|
|
1285
1299
|
], 64)) : v("", !0),
|
|
1286
|
-
e.value.type === "polar" ? (
|
|
1287
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1300
|
+
e.value.type === "polar" ? (u(), r(b, { key: 3 }, [
|
|
1301
|
+
D(t) && f.value.dataLabels.show ? (u(), r("text", {
|
|
1288
1302
|
key: 0,
|
|
1289
1303
|
class: "vue-data-ui-datalabel-value",
|
|
1290
1304
|
"text-anchor": re(d.value[a].middlePoint),
|
|
1291
|
-
x:
|
|
1292
|
-
y:
|
|
1305
|
+
x: n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1306
|
+
y: n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
1293
1307
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1294
1308
|
"font-size": we.value,
|
|
1295
1309
|
style: $({
|
|
@@ -1304,23 +1318,23 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1304
1318
|
show: !0
|
|
1305
1319
|
}),
|
|
1306
1320
|
onMouseleave: (i) => ie({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1307
|
-
}, I(
|
|
1321
|
+
}, I(Oe(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${n(V)(
|
|
1308
1322
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1309
1323
|
t.value,
|
|
1310
|
-
|
|
1324
|
+
n(N)({
|
|
1311
1325
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1312
1326
|
v: t.value,
|
|
1313
1327
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1314
1328
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1315
1329
|
}),
|
|
1316
1330
|
{ datapoint: t }
|
|
1317
|
-
)})` : ""), 45,
|
|
1318
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1331
|
+
)})` : ""), 45, Ra)) : v("", !0),
|
|
1332
|
+
D(t) && f.value.dataLabels.show ? (u(), r("text", {
|
|
1319
1333
|
key: 1,
|
|
1320
1334
|
class: "vue-data-ui-datalabel-name",
|
|
1321
1335
|
"text-anchor": re(d.value[a].middlePoint),
|
|
1322
|
-
x:
|
|
1323
|
-
y:
|
|
1336
|
+
x: n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1337
|
+
y: n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + J.value * 1.2,
|
|
1324
1338
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1325
1339
|
"font-size": J.value,
|
|
1326
1340
|
style: $({
|
|
@@ -1328,36 +1342,36 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1328
1342
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1329
1343
|
}),
|
|
1330
1344
|
onClick: (i) => Q(t, a),
|
|
1331
|
-
innerHTML:
|
|
1345
|
+
innerHTML: n(Ft)({
|
|
1332
1346
|
content: t.name,
|
|
1333
1347
|
fontSize: we.value,
|
|
1334
1348
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1335
|
-
x:
|
|
1336
|
-
y:
|
|
1349
|
+
x: n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1350
|
+
y: n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + J.value * 1.2
|
|
1337
1351
|
})
|
|
1338
|
-
}, null, 12,
|
|
1339
|
-
o[7] || (o[7] =
|
|
1352
|
+
}, null, 12, qa)) : v("", !0),
|
|
1353
|
+
o[7] || (o[7] = Ve(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> '))
|
|
1340
1354
|
], 64)) : v("", !0)
|
|
1341
1355
|
])),
|
|
1342
|
-
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (
|
|
1343
|
-
D(t) && e.value.type === "classic" ? (
|
|
1356
|
+
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (u(), r("g", Wa, [
|
|
1357
|
+
D(t) && e.value.type === "classic" ? (u(), r("foreignObject", {
|
|
1344
1358
|
key: 0,
|
|
1345
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1346
|
-
y:
|
|
1359
|
+
x: e.value.style.chart.comments.offsetX + (n(x)(t, !0).anchor === "end" ? n(x)(t).x - e.value.style.chart.comments.width : n(x)(t, !0).anchor === "middle" ? n(x)(t).x - e.value.style.chart.comments.width / 2 : n(x)(t).x),
|
|
1360
|
+
y: n(fe)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1347
1361
|
width: e.value.style.chart.comments.width,
|
|
1348
1362
|
height: "200",
|
|
1349
1363
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1350
1364
|
}, [
|
|
1351
1365
|
h("div", null, [
|
|
1352
1366
|
w(l.$slots, "plot-comment", {
|
|
1353
|
-
plot: { ...t, textAlign:
|
|
1367
|
+
plot: { ...t, textAlign: n(x)(t, !0, 16, !0).anchor, flexAlign: n(x)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1354
1368
|
}, void 0, !0)
|
|
1355
1369
|
])
|
|
1356
|
-
], 8,
|
|
1357
|
-
D(t) && e.value.type === "polar" ? (
|
|
1370
|
+
], 8, Ua)) : v("", !0),
|
|
1371
|
+
D(t) && e.value.type === "polar" ? (u(), r("foreignObject", {
|
|
1358
1372
|
key: 1,
|
|
1359
|
-
x: e.value.style.chart.comments.offsetX + (re(d.value[a].middlePoint) === "end" ?
|
|
1360
|
-
y:
|
|
1373
|
+
x: e.value.style.chart.comments.offsetX + (re(d.value[a].middlePoint) === "end" ? n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : re(d.value[a].middlePoint) === "middle" ? n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : n(P)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
|
|
1374
|
+
y: el(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1361
1375
|
width: e.value.style.chart.comments.width,
|
|
1362
1376
|
height: "200",
|
|
1363
1377
|
style: $({
|
|
@@ -1371,33 +1385,33 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1371
1385
|
plot: { ...t, textAlign: re(d.value[a].middlePoint), flexAlign: re(d.value[a].middlePoint), isFirstLoad: T.value }
|
|
1372
1386
|
}, void 0, !0)
|
|
1373
1387
|
])
|
|
1374
|
-
], 12,
|
|
1388
|
+
], 12, Ha)) : v("", !0)
|
|
1375
1389
|
])) : v("", !0)
|
|
1376
|
-
], 10,
|
|
1390
|
+
], 10, Na))), 128)),
|
|
1377
1391
|
w(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1378
1392
|
], 512)
|
|
1379
|
-
], 14,
|
|
1380
|
-
l.$slots.watermark ? (
|
|
1381
|
-
w(l.$slots, "watermark", he(ye({ isPrinting:
|
|
1393
|
+
], 14, Vl)),
|
|
1394
|
+
l.$slots.watermark ? (u(), r("div", ja, [
|
|
1395
|
+
w(l.$slots, "watermark", he(ye({ isPrinting: n(ot) || n(st) })), void 0, !0)
|
|
1382
1396
|
])) : v("", !0),
|
|
1383
1397
|
h("div", {
|
|
1384
1398
|
ref_key: "chartLegend",
|
|
1385
|
-
ref:
|
|
1399
|
+
ref: We
|
|
1386
1400
|
}, [
|
|
1387
|
-
e.value.style.chart.legend.show ? (
|
|
1388
|
-
key: `legend_${
|
|
1389
|
-
legendSet:
|
|
1390
|
-
config:
|
|
1391
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) =>
|
|
1392
|
-
},
|
|
1401
|
+
e.value.style.chart.legend.show ? (u(), ae(Ml, {
|
|
1402
|
+
key: `legend_${Ke.value}`,
|
|
1403
|
+
legendSet: ct.value,
|
|
1404
|
+
config: Kt.value,
|
|
1405
|
+
onClickMarker: o[3] || (o[3] = ({ i: t }) => dt(t))
|
|
1406
|
+
}, _t({
|
|
1393
1407
|
item: A(({ legend: t, index: a }) => [
|
|
1394
1408
|
h("div", {
|
|
1395
|
-
style: $(`opacity:${
|
|
1409
|
+
style: $(`opacity:${R.value.includes(a) ? 0.5 : 1}`),
|
|
1396
1410
|
onClick: (i) => t.segregate()
|
|
1397
|
-
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ?
|
|
1411
|
+
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? n(V)(
|
|
1398
1412
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1399
1413
|
t.value,
|
|
1400
|
-
|
|
1414
|
+
n(N)({
|
|
1401
1415
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1402
1416
|
v: t.value,
|
|
1403
1417
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1407,22 +1421,22 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1407
1421
|
datapoint: t,
|
|
1408
1422
|
index: a
|
|
1409
1423
|
}
|
|
1410
|
-
) : "") + " " + I(e.value.style.chart.legend.showPercentage ?
|
|
1424
|
+
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? R.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${ll(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / L.value) ? "-" : n(V)(
|
|
1411
1425
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
v:
|
|
1426
|
+
yt.value(t),
|
|
1427
|
+
n(N)({
|
|
1428
|
+
v: yt.value(t),
|
|
1415
1429
|
s: "%",
|
|
1416
1430
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1417
1431
|
})
|
|
1418
|
-
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1432
|
+
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ja)
|
|
1419
1433
|
]),
|
|
1420
1434
|
_: 2
|
|
1421
1435
|
}, [
|
|
1422
1436
|
l.$slots.pattern ? {
|
|
1423
1437
|
name: "legend-pattern",
|
|
1424
1438
|
fn: A(({ legend: t, index: a }) => [
|
|
1425
|
-
|
|
1439
|
+
Be(Ol, {
|
|
1426
1440
|
shape: t.shape,
|
|
1427
1441
|
radius: 30,
|
|
1428
1442
|
stroke: "none",
|
|
@@ -1433,18 +1447,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1433
1447
|
key: "0"
|
|
1434
1448
|
} : void 0
|
|
1435
1449
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1436
|
-
w(l.$slots, "legend", { legend:
|
|
1450
|
+
w(l.$slots, "legend", { legend: ct.value }, void 0, !0)
|
|
1437
1451
|
], 512),
|
|
1438
|
-
l.$slots.source ? (
|
|
1452
|
+
l.$slots.source ? (u(), r("div", {
|
|
1439
1453
|
key: 5,
|
|
1440
1454
|
ref_key: "source",
|
|
1441
|
-
ref:
|
|
1455
|
+
ref: Ue,
|
|
1442
1456
|
dir: "auto"
|
|
1443
1457
|
}, [
|
|
1444
1458
|
w(l.$slots, "source", {}, void 0, !0)
|
|
1445
1459
|
], 512)) : v("", !0),
|
|
1446
|
-
|
|
1447
|
-
show: f.value.showTooltip &&
|
|
1460
|
+
Be(n(Dt), {
|
|
1461
|
+
show: f.value.showTooltip && Le.value,
|
|
1448
1462
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1449
1463
|
color: e.value.style.chart.tooltip.color,
|
|
1450
1464
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1454,20 +1468,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1454
1468
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1455
1469
|
position: e.value.style.chart.tooltip.position,
|
|
1456
1470
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1457
|
-
parent:
|
|
1458
|
-
content:
|
|
1471
|
+
parent: E.value,
|
|
1472
|
+
content: Ie.value,
|
|
1459
1473
|
isCustom: pe.value,
|
|
1460
1474
|
isFullscreen: de.value
|
|
1461
1475
|
}, {
|
|
1462
1476
|
"tooltip-before": A(() => [
|
|
1463
|
-
w(l.$slots, "tooltip-before", he(ye({ ...
|
|
1477
|
+
w(l.$slots, "tooltip-before", he(ye({ ...Ne.value })), void 0, !0)
|
|
1464
1478
|
]),
|
|
1465
1479
|
"tooltip-after": A(() => [
|
|
1466
|
-
w(l.$slots, "tooltip-after", he(ye({ ...
|
|
1480
|
+
w(l.$slots, "tooltip-after", he(ye({ ...Ne.value })), void 0, !0)
|
|
1467
1481
|
]),
|
|
1468
1482
|
_: 3
|
|
1469
1483
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1470
|
-
me.value ? (
|
|
1484
|
+
me.value ? (u(), ae(n(Ot), {
|
|
1471
1485
|
key: 6,
|
|
1472
1486
|
hideDetails: "",
|
|
1473
1487
|
config: {
|
|
@@ -1484,8 +1498,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1484
1498
|
}
|
|
1485
1499
|
}, {
|
|
1486
1500
|
content: A(() => [
|
|
1487
|
-
(
|
|
1488
|
-
key: `table_${
|
|
1501
|
+
(u(), ae(n(Nt), {
|
|
1502
|
+
key: `table_${Je.value}`,
|
|
1489
1503
|
colNames: _e.value.colNames,
|
|
1490
1504
|
head: _e.value.head,
|
|
1491
1505
|
body: _e.value.body,
|
|
@@ -1497,21 +1511,21 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1497
1511
|
h("div", {
|
|
1498
1512
|
innerHTML: t,
|
|
1499
1513
|
style: { display: "flex", "align-items": "center" }
|
|
1500
|
-
}, null, 8,
|
|
1514
|
+
}, null, 8, Ka)
|
|
1501
1515
|
]),
|
|
1502
1516
|
td: A(({ td: t }) => [
|
|
1503
|
-
|
|
1517
|
+
Ve(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : n(V)(
|
|
1504
1518
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1505
1519
|
t,
|
|
1506
|
-
|
|
1520
|
+
n(N)({
|
|
1507
1521
|
v: t,
|
|
1508
1522
|
s: "%",
|
|
1509
1523
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1510
1524
|
})
|
|
1511
|
-
) :
|
|
1525
|
+
) : n(V)(
|
|
1512
1526
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1513
1527
|
t,
|
|
1514
|
-
|
|
1528
|
+
n(N)({
|
|
1515
1529
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1516
1530
|
v: t,
|
|
1517
1531
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1524,10 +1538,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1524
1538
|
]),
|
|
1525
1539
|
_: 1
|
|
1526
1540
|
}, 8, ["config"])) : v("", !0),
|
|
1527
|
-
|
|
1528
|
-
], 46,
|
|
1541
|
+
n(ke) ? (u(), ae(Yl, { key: 7 })) : v("", !0)
|
|
1542
|
+
], 46, Bl));
|
|
1529
1543
|
}
|
|
1530
|
-
},
|
|
1544
|
+
}, ho = /* @__PURE__ */ Dl(Qa, [["__scopeId", "data-v-d018e003"]]);
|
|
1531
1545
|
export {
|
|
1532
|
-
|
|
1546
|
+
ho as default
|
|
1533
1547
|
};
|