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