vue-data-ui 3.0.0-next.4 → 3.0.0-next.41
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-COeGcYaf.js → Arrow-FZbM_OMm.js} +1 -1
- package/dist/{BaseDraggableDialog-B6a_nUd1.js → BaseDraggableDialog-rjsCDxdM.js} +2 -2
- package/dist/{BaseIcon-C_m_NEgt.js → BaseIcon-d5M_8gn6.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-_xpvmgl6.js → ColorPicker-Br0iohs5.js} +2 -2
- package/dist/{DataTable-kd4xY9pT.js → DataTable-CyFoVhAB.js} +2 -2
- package/dist/{Legend-Bow74t3d.js → Legend-BY-3lPeC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-cUcAGGV2.js → NonSvgPenAndPaper-DjILEBYN.js} +3 -3
- package/dist/{PackageVersion-3ZfzB951.js → PackageVersion-QefvdSlr.js} +1 -1
- package/dist/{PenAndPaper-BZddJqUG.js → PenAndPaper-CeTnED7E.js} +3 -3
- package/dist/{Shape-BsptIVCm.js → Shape-ClINMlel.js} +43 -37
- package/dist/Slicer-CTVgtwAo.js +588 -0
- package/dist/{SparkTooltip-BdD0e0jv.js → SparkTooltip-D7iBCVUT.js} +7 -7
- package/dist/{Title-FiH2Kirc.js → Title-C2MeWc6b.js} +1 -1
- package/dist/{Tooltip-BLtR7DBZ.js → Tooltip-CyC0lofV.js} +23 -19
- package/dist/{UserOptions-DOwmMJId.js → UserOptions-Q4MLYmK1.js} +2 -2
- package/dist/{dom-to-png-DnsK-Zal.js → dom-to-png-Bmhnn6-_.js} +1 -1
- package/dist/{img-CP2uNkKq.js → img-1ZBpWF3A.js} +1 -1
- package/dist/{index-BnnNoGGd.js → index-D-ozSgn5.js} +1555 -1268
- package/dist/{pdf-urw1sGoX.js → pdf-Dm9wepT-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +245 -12
- package/dist/types/vue-data-ui.d.ts +245 -12
- package/dist/{useNestedProp-B6Dz15k2.js → useNestedProp-xgFDyd-D.js} +1 -1
- package/dist/{usePrinter-Dd-RkmL8.js → usePrinter-CyhyubAW.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-Dql75T3d.js → vue-data-ui-BvqaMmwo.js} +64 -64
- package/dist/vue-data-ui.js +26 -25
- package/dist/{vue-ui-3d-bar-CUDEgTKp.js → vue-ui-3d-bar-wFrj_nHo.js} +6 -6
- package/dist/{vue-ui-accordion-qNR0BQCP.js → vue-ui-accordion-CzcfvDc6.js} +3 -3
- package/dist/vue-ui-age-pyramid-C06opmye.js +834 -0
- package/dist/{vue-ui-annotator-CeMOjHpf.js → vue-ui-annotator-rLnZGNrU.js} +2 -2
- package/dist/vue-ui-bullet-BrtBslm2.js +571 -0
- package/dist/vue-ui-candlestick-CTHK4Nkb.js +999 -0
- package/dist/{vue-ui-carousel-table-CAr64-2F.js → vue-ui-carousel-table-BEot5M0l.js} +4 -4
- package/dist/{vue-ui-chestnut-B0zNp1jY.js → vue-ui-chestnut-C4xlmyWV.js} +5 -5
- package/dist/{vue-ui-chord-C-_tz6Tb.js → vue-ui-chord-odv0oGun.js} +8 -8
- package/dist/{vue-ui-circle-pack-BSTkkKx-.js → vue-ui-circle-pack-Dv7OO-jl.js} +26 -26
- package/dist/{vue-ui-cursor-Dqd6RkcK.js → vue-ui-cursor-CHPi6ptC.js} +2 -2
- package/dist/{vue-ui-dashboard-CspqjC6x.js → vue-ui-dashboard-yZ6EoUYB.js} +62 -62
- package/dist/{vue-ui-digits-CazGAGyM.js → vue-ui-digits-C502piFU.js} +2 -2
- package/dist/{vue-ui-donut-BK35Gt-7.js → vue-ui-donut-XKTZp6vn.js} +408 -381
- package/dist/vue-ui-donut-evolution-BETQ3m-1.js +1075 -0
- package/dist/{vue-ui-dumbbell-CJal89Ud.js → vue-ui-dumbbell-B0koyYHY.js} +7 -7
- package/dist/vue-ui-flow-BOXbr-B4.js +841 -0
- package/dist/{vue-ui-funnel-Dm0LCakq.js → vue-ui-funnel-BuLuXMWN.js} +6 -6
- package/dist/{vue-ui-galaxy-C9poCSSD.js → vue-ui-galaxy-Duo4_PQ0.js} +60 -58
- package/dist/{vue-ui-gauge-CYXXfMRC.js → vue-ui-gauge-CzvkhWyr.js} +6 -6
- package/dist/{vue-ui-gizmo-B-8rhor5.js → vue-ui-gizmo-C_s3Mad5.js} +3 -3
- package/dist/vue-ui-heatmap-BfPyDKrE.js +1078 -0
- package/dist/{vue-ui-history-plot-C_Si7S5S.js → vue-ui-history-plot-11zollOK.js} +12 -10
- package/dist/{vue-ui-kpi-BYYBkt55.js → vue-ui-kpi-BAFYYyfo.js} +3 -3
- package/dist/{vue-ui-mini-loader-DmHE-wrb.js → vue-ui-mini-loader-DUDhlnIj.js} +2 -2
- package/dist/{vue-ui-molecule-I2ZUVtal.js → vue-ui-molecule-Dng9xRXp.js} +46 -44
- package/dist/{vue-ui-mood-radar-BYUr9rcv.js → vue-ui-mood-radar-CZITumE0.js} +7 -7
- package/dist/vue-ui-nested-donuts-BvLGT-wp.js +1286 -0
- package/dist/{vue-ui-onion-BpGz1RFC.js → vue-ui-onion-BVXel8xL.js} +46 -44
- package/dist/vue-ui-parallel-coordinate-plot-CCVeKuyk.js +915 -0
- package/dist/{vue-ui-quadrant-CByC4r8k.js → vue-ui-quadrant-CvH-NZdr.js} +59 -57
- package/dist/vue-ui-quick-chart-Cw9hhg7p.js +1761 -0
- package/dist/{vue-ui-radar-CBVb6GyN.js → vue-ui-radar-CgOon7mZ.js} +12 -10
- package/dist/{vue-ui-rating-Thf6P6AF.js → vue-ui-rating-B5c-kqdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-Blg3GkeU.js → vue-ui-relation-circle-qt6Rkmmg.js} +6 -6
- package/dist/{vue-ui-ridgeline-D6kxALQN.js → vue-ui-ridgeline-BbLx23HV.js} +12 -10
- package/dist/{vue-ui-rings-bBHc4cwe.js → vue-ui-rings-CRRnF21q.js} +13 -11
- package/dist/{vue-ui-scatter-DS6-kGZL.js → vue-ui-scatter-CmFDRXa2.js} +99 -97
- package/dist/{vue-ui-skeleton-gHkpLBcj.js → vue-ui-skeleton-CIU55VVP.js} +3 -3
- package/dist/{vue-ui-smiley-S7qJ-dRf.js → vue-ui-smiley-BBTuuurS.js} +2 -2
- package/dist/{vue-ui-spark-trend-Co-sKoQX.js → vue-ui-spark-trend-CfCb4r4K.js} +3 -3
- package/dist/{vue-ui-sparkbar-G1Jhr305.js → vue-ui-sparkbar-CY2g4HPf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Bzm5X8us.js → vue-ui-sparkgauge-0xVecWxL.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-IGnxrQK9.js → vue-ui-sparkhistogram-DXT4M8c6.js} +4 -4
- package/dist/vue-ui-sparkline-BgUGZ1AX.js +489 -0
- package/dist/{vue-ui-sparkstackbar-C_cbbRT_.js → vue-ui-sparkstackbar-ic4Q92W2.js} +55 -53
- package/dist/vue-ui-stackbar-C1K77Eph.js +1370 -0
- package/dist/{vue-ui-strip-plot-Cw1CDIL0.js → vue-ui-strip-plot-B-EluNpw.js} +30 -28
- package/dist/{vue-ui-table-C4A73F9D.js → vue-ui-table-D8yiQSAZ.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DDlDAXMI.js → vue-ui-table-heatmap-BV03Xipx.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CQDLqNvX.js → vue-ui-table-sparkline-BJDrPMNM.js} +4 -4
- package/dist/{vue-ui-thermometer-DgBtT1Ts.js → vue-ui-thermometer-BfTaCEvy.js} +6 -6
- package/dist/{vue-ui-timer-DwL2EUHc.js → vue-ui-timer-yaD9CnrU.js} +5 -5
- package/dist/{vue-ui-tiremarks-J9v9JAmf.js → vue-ui-tiremarks-DZmn0x0x.js} +19 -19
- package/dist/{vue-ui-treemap-BSPd3wFo.js → vue-ui-treemap-cLoY4lkA.js} +47 -45
- package/dist/vue-ui-vertical-bar-CptPUybG.js +1108 -0
- package/dist/vue-ui-waffle-C6_JY56k.js +910 -0
- package/dist/{vue-ui-wheel-B_r_vUFd.js → vue-ui-wheel-CZa3V2a8.js} +6 -6
- package/dist/{vue-ui-word-cloud-DqvRfwF3.js → vue-ui-word-cloud-Bwa3o0gV.js} +12 -10
- package/dist/{vue-ui-world-DguPtgux.js → vue-ui-world-Dk4VR0iE.js} +11 -9
- package/dist/vue-ui-xy-CLRcmnNU.js +3755 -0
- package/dist/{vue-ui-xy-canvas-Cv4Fs6Jw.js → vue-ui-xy-canvas-CVW7Wok4.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-i0BAmgHn.js +0 -577
- package/dist/vue-ui-age-pyramid-BFWU1VGZ.js +0 -746
- package/dist/vue-ui-bullet-CmNollxj.js +0 -513
- package/dist/vue-ui-candlestick-CkoAVYNh.js +0 -873
- package/dist/vue-ui-donut-evolution-SomhFGJh.js +0 -903
- package/dist/vue-ui-flow-BFsmk2iL.js +0 -765
- package/dist/vue-ui-heatmap-BQzObiF9.js +0 -877
- package/dist/vue-ui-nested-donuts-DEm7s2uC.js +0 -1177
- package/dist/vue-ui-parallel-coordinate-plot-SkVvzSSQ.js +0 -807
- package/dist/vue-ui-quick-chart-GEYFXShR.js +0 -1612
- package/dist/vue-ui-sparkline-ezu4qjgC.js +0 -459
- package/dist/vue-ui-stackbar-BD9gyxAb.js +0 -1207
- package/dist/vue-ui-vertical-bar-B5b5tXjT.js +0 -1029
- package/dist/vue-ui-waffle-Bh_gS8y2.js +0 -863
- package/dist/vue-ui-xy-MFNbJqgb.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, $ 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, a0 as Ft, a1 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-D-ozSgn5.js";
|
|
3
|
+
import { t as Sl, u as Pl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Fl } from "./usePrinter-CyhyubAW.js";
|
|
5
|
+
import { u as Ll, B as Il } from "./BaseScanner-DIK2NTdp.js";
|
|
6
|
+
import { u as It } from "./useNestedProp-xgFDyd-D.js";
|
|
7
|
+
import { u as Ml } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as zl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Ol from "./img-1ZBpWF3A.js";
|
|
10
|
+
import { _ as Nl } from "./Shape-ClINMlel.js";
|
|
11
|
+
import Yl from "./Title-C2MeWc6b.js";
|
|
12
|
+
import Xl from "./Legend-BY-3lPeC.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"], 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"], 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"], 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 = {
|
|
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-CzcfvDc6.js")), Nt = ye(() => import("./DataTable-CyFoVhAB.js")), Yt = ye(() => import("./PackageVersion-QefvdSlr.js")), Xt = ye(() => import("./PenAndPaper-CeTnED7E.js")), Dt = ye(() => import("./Tooltip-CyC0lofV.js")), Bt = ye(() => import("./UserOptions-Q4MLYmK1.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), We = H(null), Ue = 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:
|
|
109
|
-
});
|
|
125
|
+
debug: Fe.value
|
|
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 ? We.value : null,
|
|
141
|
+
legend: e.value.style.chart.legend.show ? Ue.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,17 +186,18 @@ 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,
|
|
193
|
+
table: { show: !1 },
|
|
176
194
|
startAnimation: {
|
|
177
195
|
show: !1
|
|
178
196
|
},
|
|
179
197
|
userOptions: { show: !1 },
|
|
180
198
|
style: {
|
|
181
199
|
chart: {
|
|
182
|
-
backgroundColor: "#
|
|
200
|
+
backgroundColor: "#99999930",
|
|
183
201
|
layout: {
|
|
184
202
|
labels: {
|
|
185
203
|
dataLabels: { show: !1 },
|
|
@@ -191,7 +209,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
191
209
|
}
|
|
192
210
|
},
|
|
193
211
|
legend: {
|
|
194
|
-
backgroundColor: "
|
|
212
|
+
backgroundColor: "transparent",
|
|
195
213
|
showValue: !1,
|
|
196
214
|
showPercentage: !1
|
|
197
215
|
},
|
|
@@ -205,36 +223,36 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
205
223
|
}
|
|
206
224
|
}
|
|
207
225
|
})
|
|
208
|
-
}), T = p(!0),
|
|
209
|
-
function
|
|
226
|
+
}), T = p(!0), W = H([]);
|
|
227
|
+
function qt(l, o = 1e3, t = 50) {
|
|
210
228
|
return new Promise((a) => {
|
|
211
229
|
const i = l.length;
|
|
212
|
-
|
|
230
|
+
W.value = Array(i).fill(0);
|
|
213
231
|
let c = 0;
|
|
214
232
|
l.forEach((m, C) => {
|
|
215
233
|
setTimeout(() => {
|
|
216
234
|
const z = performance.now();
|
|
217
235
|
function O(B) {
|
|
218
|
-
const Z = Math.min((B - z) / o, 1),
|
|
219
|
-
|
|
236
|
+
const Z = Math.min((B - z) / o, 1), De = Lt(Z);
|
|
237
|
+
W.value[C] = m * De, W.value = [...W.value], Z < 1 ? (requestAnimationFrame(O), requestAnimationFrame(R)) : (W.value[C] = m, W.value = [...W.value], c += 1, c === i && a(), requestAnimationFrame(R));
|
|
220
238
|
}
|
|
221
239
|
requestAnimationFrame(O);
|
|
222
240
|
}, C * t);
|
|
223
241
|
});
|
|
224
242
|
});
|
|
225
243
|
}
|
|
226
|
-
const
|
|
244
|
+
const tt = p(!1);
|
|
227
245
|
ge(
|
|
228
246
|
() => ke.value,
|
|
229
247
|
async (l) => {
|
|
230
|
-
if (l ||
|
|
231
|
-
const o =
|
|
248
|
+
if (l || tt.value) return;
|
|
249
|
+
const o = re.value === Gt, t = e.value.startAnimation?.show;
|
|
232
250
|
if (!o && t) {
|
|
233
|
-
|
|
234
|
-
const a =
|
|
251
|
+
tt.value = !0;
|
|
252
|
+
const a = re.value.map(
|
|
235
253
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
236
254
|
);
|
|
237
|
-
await
|
|
255
|
+
await qt(
|
|
238
256
|
a,
|
|
239
257
|
e.value.startAnimation.durationMs,
|
|
240
258
|
e.value.startAnimation.staggerMs
|
|
@@ -244,17 +262,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
244
262
|
},
|
|
245
263
|
{ immediate: !0 }
|
|
246
264
|
);
|
|
247
|
-
const { userOptionsVisible:
|
|
248
|
-
function
|
|
249
|
-
|
|
265
|
+
const { userOptionsVisible: ze, setUserOptionsVisibility: lt, keepUserOptionState: at } = Ml({ config: e.value }), { svgRef: ie } = zl({ config: e.value.style.chart.title });
|
|
266
|
+
function Wt() {
|
|
267
|
+
lt(!0);
|
|
250
268
|
}
|
|
251
|
-
function
|
|
252
|
-
|
|
269
|
+
function Ut() {
|
|
270
|
+
lt(!1);
|
|
253
271
|
}
|
|
254
272
|
ge(() => k.config, (l) => {
|
|
255
|
-
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;
|
|
256
274
|
}, { deep: !0 });
|
|
257
|
-
const
|
|
275
|
+
const ot = y(() => {
|
|
258
276
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
259
277
|
return {
|
|
260
278
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -263,11 +281,11 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
263
281
|
bottom: t,
|
|
264
282
|
left: a
|
|
265
283
|
};
|
|
266
|
-
}), { isPrinting:
|
|
284
|
+
}), { isPrinting: st, isImaging: nt, generatePdf: ut, generateImage: rt } = Fl({
|
|
267
285
|
elementId: `donut__${g.value}`,
|
|
268
286
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
269
287
|
options: e.value.userOptions.print
|
|
270
|
-
}),
|
|
288
|
+
}), Ht = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), it = y(() => fl(e.value.customPalette)), f = p({
|
|
271
289
|
dataLabels: {
|
|
272
290
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
273
291
|
},
|
|
@@ -291,10 +309,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
291
309
|
return _.value;
|
|
292
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;
|
|
293
311
|
return Math.max(t, 12 * (1 + l));
|
|
294
|
-
}),
|
|
312
|
+
}), vt = zt, G = y(() => re.value.map((l, o) => ({
|
|
295
313
|
name: l.name,
|
|
296
|
-
color:
|
|
297
|
-
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)),
|
|
298
316
|
absoluteValues: l.values,
|
|
299
317
|
comment: l.comment || "",
|
|
300
318
|
patternIndex: o,
|
|
@@ -305,19 +323,19 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
305
323
|
ge(() => k.dataset, (l) => {
|
|
306
324
|
Array.isArray(l) && l.length > 0 && (xe.value = !1);
|
|
307
325
|
}, { immediate: !0 });
|
|
308
|
-
const M =
|
|
309
|
-
ge(() =>
|
|
310
|
-
M.value = l, requestAnimationFrame(
|
|
326
|
+
const M = H(G.value);
|
|
327
|
+
ge(() => G.value, (l) => {
|
|
328
|
+
M.value = l, requestAnimationFrame(R);
|
|
311
329
|
});
|
|
312
|
-
function
|
|
313
|
-
return
|
|
330
|
+
function jt() {
|
|
331
|
+
return G.value.map((l) => ({
|
|
314
332
|
name: l.name,
|
|
315
333
|
color: l.color,
|
|
316
334
|
value: l.value
|
|
317
335
|
}));
|
|
318
336
|
}
|
|
319
|
-
const
|
|
320
|
-
function
|
|
337
|
+
const q = p([]), te = p(!1);
|
|
338
|
+
function dt({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = Lt }) {
|
|
321
339
|
const m = performance.now();
|
|
322
340
|
function C(z) {
|
|
323
341
|
const O = Math.min((z - m) / t, 1), B = c(O), Z = l + (o - l) * B;
|
|
@@ -325,68 +343,68 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
325
343
|
}
|
|
326
344
|
requestAnimationFrame(C);
|
|
327
345
|
}
|
|
328
|
-
function
|
|
329
|
-
const o =
|
|
346
|
+
function ct(l) {
|
|
347
|
+
const o = G.value.find((i, c) => c === l);
|
|
330
348
|
let a = M.value.find((i, c) => c === l).value;
|
|
331
|
-
if (
|
|
349
|
+
if (q.value.includes(l)) {
|
|
332
350
|
let c = function() {
|
|
333
351
|
M.value = M.value.map(
|
|
334
352
|
(C, z) => l === z ? { ...C, value: i } : C
|
|
335
353
|
);
|
|
336
354
|
}, m = function() {
|
|
337
|
-
te.value = !0,
|
|
355
|
+
te.value = !0, dt({
|
|
338
356
|
from: a,
|
|
339
357
|
to: i,
|
|
340
358
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
341
359
|
onUpdate: (C, z) => {
|
|
342
360
|
M.value = M.value.map(
|
|
343
361
|
(O, B) => l === B ? { ...O, value: C } : O
|
|
344
|
-
), requestAnimationFrame(
|
|
362
|
+
), requestAnimationFrame(R);
|
|
345
363
|
},
|
|
346
364
|
onDone: () => {
|
|
347
365
|
c(), te.value = !1;
|
|
348
366
|
}
|
|
349
367
|
});
|
|
350
368
|
};
|
|
351
|
-
|
|
369
|
+
q.value = q.value.filter((C) => C !== l);
|
|
352
370
|
const i = o.value;
|
|
353
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(
|
|
354
|
-
} 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) {
|
|
355
373
|
let i = function() {
|
|
356
|
-
|
|
374
|
+
q.value.push(l), M.value = M.value.map(
|
|
357
375
|
(m, C) => l === C ? { ...m, value: 0 } : m
|
|
358
376
|
);
|
|
359
377
|
}, c = function() {
|
|
360
|
-
te.value = !0,
|
|
378
|
+
te.value = !0, dt({
|
|
361
379
|
from: a,
|
|
362
380
|
to: 0,
|
|
363
381
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
364
382
|
onUpdate: (m, C) => {
|
|
365
383
|
M.value = M.value.map(
|
|
366
384
|
(z, O) => l === O ? { ...z, value: m } : z
|
|
367
|
-
), requestAnimationFrame(
|
|
385
|
+
), requestAnimationFrame(R);
|
|
368
386
|
},
|
|
369
387
|
onDone: () => {
|
|
370
|
-
i(), requestAnimationFrame(
|
|
388
|
+
i(), requestAnimationFrame(R), te.value = !1;
|
|
371
389
|
}
|
|
372
390
|
});
|
|
373
391
|
};
|
|
374
392
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
375
393
|
}
|
|
376
|
-
|
|
394
|
+
vt("selectLegend", U.value.map((i) => ({
|
|
377
395
|
name: i.name,
|
|
378
396
|
color: i.color,
|
|
379
397
|
value: i.value
|
|
380
398
|
})));
|
|
381
399
|
}
|
|
382
|
-
const
|
|
400
|
+
const Jt = y(() => re.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), U = y(() => {
|
|
383
401
|
if (T.value && !ke.value) {
|
|
384
|
-
const l =
|
|
385
|
-
...
|
|
402
|
+
const l = W.value.map((t, a) => ({
|
|
403
|
+
...G.value[a],
|
|
386
404
|
value: t,
|
|
387
|
-
color:
|
|
405
|
+
color: G.value[a].color,
|
|
388
406
|
ghost: !1
|
|
389
|
-
})), o =
|
|
407
|
+
})), o = Jt.value - W.value.reduce((t, a) => t + a, 0);
|
|
390
408
|
return o > 0 && l.push({
|
|
391
409
|
name: "__ghost__",
|
|
392
410
|
value: o,
|
|
@@ -403,20 +421,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
403
421
|
}), M.value.map((l, o) => ({
|
|
404
422
|
...l,
|
|
405
423
|
seriesIndex: o
|
|
406
|
-
})).filter((l, o) => !
|
|
407
|
-
}),
|
|
424
|
+
})).filter((l, o) => !q.value.includes(o));
|
|
425
|
+
}), ht = y(() => re.value.map((l, o) => ({
|
|
408
426
|
name: l.name,
|
|
409
|
-
color:
|
|
427
|
+
color: St(l.color) || it.value[o] || ne[o] || ne[o % ne.length],
|
|
410
428
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
411
429
|
shape: "circle",
|
|
412
430
|
patternIndex: o
|
|
413
431
|
})).map((l, o) => ({
|
|
414
432
|
...l,
|
|
415
|
-
proportion: l.value /
|
|
416
|
-
opacity:
|
|
417
|
-
segregate: () => !te.value &&
|
|
418
|
-
isSegregated:
|
|
419
|
-
}))),
|
|
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(() => ({
|
|
420
438
|
cy: "donut-div-legend",
|
|
421
439
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
422
440
|
color: e.value.style.chart.legend.color,
|
|
@@ -424,9 +442,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
424
442
|
paddingBottom: 12,
|
|
425
443
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
426
444
|
})), _ = y(() => {
|
|
427
|
-
const l = Math.min(s.value.width
|
|
428
|
-
return
|
|
429
|
-
}), 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: 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({
|
|
430
448
|
series: [
|
|
431
449
|
{
|
|
432
450
|
value: 1,
|
|
@@ -439,8 +457,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
439
457
|
}
|
|
440
458
|
]
|
|
441
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(() => {
|
|
442
|
-
const l = Math.max(...
|
|
443
|
-
return
|
|
460
|
+
const l = Math.max(...U.value.map((t) => t.value)), o = U.value.map((t) => t.value / l);
|
|
461
|
+
return gl({
|
|
444
462
|
series: o,
|
|
445
463
|
center: {
|
|
446
464
|
x: s.value.width / 2,
|
|
@@ -450,17 +468,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
450
468
|
hasGhost: T.value
|
|
451
469
|
});
|
|
452
470
|
});
|
|
453
|
-
function
|
|
471
|
+
function ve(l) {
|
|
454
472
|
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
455
473
|
}
|
|
456
|
-
function
|
|
474
|
+
function el(l) {
|
|
457
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;
|
|
458
476
|
}
|
|
459
477
|
function D(l) {
|
|
460
478
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
461
479
|
}
|
|
462
|
-
function
|
|
463
|
-
const t = l.value /
|
|
480
|
+
function Oe(l, o) {
|
|
481
|
+
const t = l.value / tl(o);
|
|
464
482
|
return isNaN(t) ? 0 : V(
|
|
465
483
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
466
484
|
t * 100,
|
|
@@ -472,31 +490,31 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
472
490
|
{ datapoint: l }
|
|
473
491
|
);
|
|
474
492
|
}
|
|
475
|
-
function
|
|
493
|
+
function tl(l) {
|
|
476
494
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
477
495
|
}
|
|
478
|
-
const
|
|
479
|
-
function
|
|
480
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }),
|
|
496
|
+
const F = y(() => U.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ne = y(() => F.value / U.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;
|
|
481
499
|
}
|
|
482
|
-
function
|
|
483
|
-
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;
|
|
484
502
|
let i = "";
|
|
485
503
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
486
|
-
if (pe.value = !1,
|
|
504
|
+
if (pe.value = !1, Tl(c))
|
|
487
505
|
try {
|
|
488
506
|
const m = c({
|
|
489
507
|
seriesIndex: t,
|
|
490
508
|
datapoint: l,
|
|
491
|
-
series:
|
|
509
|
+
series: G.value,
|
|
492
510
|
config: e.value
|
|
493
511
|
});
|
|
494
|
-
typeof m == "string" && (
|
|
512
|
+
typeof m == "string" && (Ie.value = m, pe.value = !0);
|
|
495
513
|
} catch {
|
|
496
514
|
console.warn("Custom format cannot be applied."), pe.value = !1;
|
|
497
515
|
}
|
|
498
516
|
if (!pe.value) {
|
|
499
|
-
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(
|
|
500
518
|
e.value.style.chart.layout.labels.value.formatter,
|
|
501
519
|
l.value,
|
|
502
520
|
N({
|
|
@@ -527,31 +545,31 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
527
545
|
);
|
|
528
546
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
|
|
529
547
|
}
|
|
530
|
-
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>`;
|
|
531
549
|
}
|
|
532
550
|
}
|
|
533
551
|
function le(l) {
|
|
534
552
|
return e.value.useBlurOnHover && ![null, void 0].includes(Y.value) && Y.value !== l ? `url(#blur_${g.value})` : "";
|
|
535
553
|
}
|
|
536
554
|
const K = y(() => {
|
|
537
|
-
const l =
|
|
555
|
+
const l = U.value.map((t) => ({
|
|
538
556
|
name: t.name,
|
|
539
557
|
color: t.color
|
|
540
|
-
})), o =
|
|
558
|
+
})), o = U.value.map((t) => t.value);
|
|
541
559
|
return { head: l, body: o };
|
|
542
560
|
});
|
|
543
|
-
function
|
|
544
|
-
|
|
561
|
+
function ft(l = null) {
|
|
562
|
+
vl(() => {
|
|
545
563
|
const o = K.value.head.map((i, c) => [[
|
|
546
564
|
i.name
|
|
547
|
-
], [K.value.body[c]], [isNaN(K.value.body[c] /
|
|
548
|
-
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" });
|
|
549
567
|
});
|
|
550
568
|
}
|
|
551
569
|
const _e = y(() => {
|
|
552
570
|
const l = [
|
|
553
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>',
|
|
554
|
-
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 }),
|
|
555
573
|
"100%"
|
|
556
574
|
], o = K.value.head.map((i, c) => [
|
|
557
575
|
{
|
|
@@ -559,7 +577,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
559
577
|
name: i.name || "-"
|
|
560
578
|
},
|
|
561
579
|
K.value.body[c],
|
|
562
|
-
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) + "%"
|
|
563
581
|
]), t = {
|
|
564
582
|
th: {
|
|
565
583
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -583,33 +601,33 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
583
601
|
body: o,
|
|
584
602
|
config: t
|
|
585
603
|
};
|
|
586
|
-
}),
|
|
587
|
-
function
|
|
588
|
-
|
|
604
|
+
}), he = p(!1);
|
|
605
|
+
function pt(l) {
|
|
606
|
+
he.value = l, et.value += 1;
|
|
589
607
|
}
|
|
590
|
-
const
|
|
591
|
-
function
|
|
608
|
+
const gt = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
609
|
+
function ll(l) {
|
|
592
610
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
593
611
|
}
|
|
594
612
|
function Q(l, o) {
|
|
595
|
-
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 });
|
|
596
614
|
}
|
|
597
|
-
function
|
|
615
|
+
function mt() {
|
|
598
616
|
f.value.showTable = !f.value.showTable;
|
|
599
617
|
}
|
|
600
|
-
function
|
|
618
|
+
function bt() {
|
|
601
619
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
602
620
|
}
|
|
603
|
-
function
|
|
621
|
+
function wt() {
|
|
604
622
|
f.value.showTooltip = !f.value.showTooltip;
|
|
605
623
|
}
|
|
606
624
|
const $e = p(!1);
|
|
607
|
-
function
|
|
625
|
+
function Xe() {
|
|
608
626
|
$e.value = !$e.value;
|
|
609
627
|
}
|
|
610
|
-
async function
|
|
611
|
-
if (!
|
|
612
|
-
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 });
|
|
613
631
|
return {
|
|
614
632
|
imageUri: i,
|
|
615
633
|
base64: c,
|
|
@@ -619,56 +637,56 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
619
637
|
aspectRatio: a
|
|
620
638
|
};
|
|
621
639
|
}
|
|
622
|
-
function
|
|
640
|
+
function ol() {
|
|
623
641
|
if (!be.value) return;
|
|
624
642
|
const { x: l, y: o, width: t, height: a } = be.value.getBBox();
|
|
625
|
-
|
|
643
|
+
ie.value && ie.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
|
|
626
644
|
}
|
|
627
|
-
return
|
|
628
|
-
autoSize:
|
|
629
|
-
getData:
|
|
630
|
-
getImage:
|
|
631
|
-
generatePdf:
|
|
632
|
-
generateCsv:
|
|
633
|
-
generateImage:
|
|
634
|
-
toggleTable:
|
|
635
|
-
toggleLabels:
|
|
636
|
-
toggleTooltip:
|
|
637
|
-
toggleAnnotator:
|
|
638
|
-
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
|
|
639
657
|
}), (l, o) => (n(), r("div", {
|
|
640
658
|
ref_key: "donutChart",
|
|
641
|
-
ref:
|
|
642
|
-
class:
|
|
659
|
+
ref: E,
|
|
660
|
+
class: Be(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
643
661
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
644
662
|
id: `donut__${g.value}`,
|
|
645
|
-
onMouseenter:
|
|
646
|
-
onMouseleave:
|
|
663
|
+
onMouseenter: Wt,
|
|
664
|
+
onMouseleave: Ut
|
|
647
665
|
}, [
|
|
648
|
-
e.value.userOptions.buttons.annotator && u(
|
|
666
|
+
e.value.userOptions.buttons.annotator && u(ie) ? (n(), ae(u(Xt), {
|
|
649
667
|
key: 0,
|
|
650
668
|
color: e.value.style.chart.color,
|
|
651
669
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
652
670
|
active: $e.value,
|
|
653
|
-
svgRef: u(
|
|
654
|
-
onClose:
|
|
671
|
+
svgRef: u(ie),
|
|
672
|
+
onClose: Xe
|
|
655
673
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
656
|
-
|
|
657
|
-
|
|
674
|
+
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
675
|
+
Ht.value ? (n(), r("div", {
|
|
658
676
|
key: 1,
|
|
659
677
|
ref_key: "noTitle",
|
|
660
|
-
ref:
|
|
678
|
+
ref: je,
|
|
661
679
|
class: "vue-data-ui-no-title-space",
|
|
662
680
|
style: "height:36px; width: 100%;background:transparent"
|
|
663
681
|
}, null, 512)) : v("", !0),
|
|
664
682
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
665
683
|
key: 2,
|
|
666
684
|
ref_key: "chartTitle",
|
|
667
|
-
ref:
|
|
685
|
+
ref: We,
|
|
668
686
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
669
687
|
}, [
|
|
670
|
-
(n(), ae(
|
|
671
|
-
key: `title_${
|
|
688
|
+
(n(), ae(Yl, {
|
|
689
|
+
key: `title_${Je.value}`,
|
|
672
690
|
config: {
|
|
673
691
|
title: {
|
|
674
692
|
cy: "donut-div-title",
|
|
@@ -681,14 +699,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
681
699
|
}
|
|
682
700
|
}, null, 8, ["config"]))
|
|
683
701
|
], 512)) : v("", !0),
|
|
684
|
-
e.value.userOptions.show && me.value && (u(
|
|
702
|
+
e.value.userOptions.show && me.value && (u(at) || u(ze)) ? (n(), ae(u(Bt), {
|
|
685
703
|
ref_key: "details",
|
|
686
|
-
ref:
|
|
687
|
-
key: `user_option_${
|
|
704
|
+
ref: Rt,
|
|
705
|
+
key: `user_option_${et.value}`,
|
|
688
706
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
689
707
|
color: e.value.style.chart.color,
|
|
690
|
-
isPrinting: u(
|
|
691
|
-
isImaging: u(
|
|
708
|
+
isPrinting: u(st),
|
|
709
|
+
isImaging: u(nt),
|
|
692
710
|
uid: g.value,
|
|
693
711
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
694
712
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -697,8 +715,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
697
715
|
hasTable: e.value.userOptions.buttons.table,
|
|
698
716
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
699
717
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
700
|
-
isFullscreen:
|
|
701
|
-
chartElement:
|
|
718
|
+
isFullscreen: he.value,
|
|
719
|
+
chartElement: E.value,
|
|
702
720
|
position: e.value.userOptions.position,
|
|
703
721
|
callbacks: e.value.userOptions.callbacks,
|
|
704
722
|
isTooltip: f.value.showTooltip,
|
|
@@ -706,96 +724,96 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
706
724
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
707
725
|
isAnnotation: $e.value,
|
|
708
726
|
printScale: e.value.userOptions.print.scale,
|
|
709
|
-
onToggleFullscreen:
|
|
710
|
-
onGeneratePdf: u(
|
|
711
|
-
onGenerateCsv:
|
|
712
|
-
onGenerateImage: u(
|
|
713
|
-
onToggleTable:
|
|
714
|
-
onToggleLabels:
|
|
715
|
-
onToggleTooltip:
|
|
716
|
-
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,
|
|
717
735
|
style: $({
|
|
718
|
-
visibility: u(
|
|
736
|
+
visibility: u(at) ? u(ze) ? "visible" : "hidden" : "visible"
|
|
719
737
|
})
|
|
720
|
-
},
|
|
738
|
+
}, _t({ _: 2 }, [
|
|
721
739
|
l.$slots.menuIcon ? {
|
|
722
740
|
name: "menuIcon",
|
|
723
741
|
fn: A(({ isOpen: t, color: a }) => [
|
|
724
|
-
|
|
742
|
+
b(l.$slots, "menuIcon", oe(se({ isOpen: t, color: a })), void 0, !0)
|
|
725
743
|
]),
|
|
726
744
|
key: "0"
|
|
727
745
|
} : void 0,
|
|
728
746
|
l.$slots.optionTooltip ? {
|
|
729
747
|
name: "optionTooltip",
|
|
730
748
|
fn: A(() => [
|
|
731
|
-
|
|
749
|
+
b(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
732
750
|
]),
|
|
733
751
|
key: "1"
|
|
734
752
|
} : void 0,
|
|
735
753
|
l.$slots.optionPdf ? {
|
|
736
754
|
name: "optionPdf",
|
|
737
755
|
fn: A(() => [
|
|
738
|
-
|
|
756
|
+
b(l.$slots, "optionPdf", {}, void 0, !0)
|
|
739
757
|
]),
|
|
740
758
|
key: "2"
|
|
741
759
|
} : void 0,
|
|
742
760
|
l.$slots.optionCsv ? {
|
|
743
761
|
name: "optionCsv",
|
|
744
762
|
fn: A(() => [
|
|
745
|
-
|
|
763
|
+
b(l.$slots, "optionCsv", {}, void 0, !0)
|
|
746
764
|
]),
|
|
747
765
|
key: "3"
|
|
748
766
|
} : void 0,
|
|
749
767
|
l.$slots.optionImg ? {
|
|
750
768
|
name: "optionImg",
|
|
751
769
|
fn: A(() => [
|
|
752
|
-
|
|
770
|
+
b(l.$slots, "optionImg", {}, void 0, !0)
|
|
753
771
|
]),
|
|
754
772
|
key: "4"
|
|
755
773
|
} : void 0,
|
|
756
774
|
l.$slots.optionTable ? {
|
|
757
775
|
name: "optionTable",
|
|
758
776
|
fn: A(() => [
|
|
759
|
-
|
|
777
|
+
b(l.$slots, "optionTable", {}, void 0, !0)
|
|
760
778
|
]),
|
|
761
779
|
key: "5"
|
|
762
780
|
} : void 0,
|
|
763
781
|
l.$slots.optionLabels ? {
|
|
764
782
|
name: "optionLabels",
|
|
765
783
|
fn: A(() => [
|
|
766
|
-
|
|
784
|
+
b(l.$slots, "optionLabels", {}, void 0, !0)
|
|
767
785
|
]),
|
|
768
786
|
key: "6"
|
|
769
787
|
} : void 0,
|
|
770
788
|
l.$slots.optionFullscreen ? {
|
|
771
789
|
name: "optionFullscreen",
|
|
772
790
|
fn: A(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
773
|
-
|
|
791
|
+
b(l.$slots, "optionFullscreen", oe(se({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
774
792
|
]),
|
|
775
793
|
key: "7"
|
|
776
794
|
} : void 0,
|
|
777
795
|
l.$slots.optionAnnotator ? {
|
|
778
796
|
name: "optionAnnotator",
|
|
779
797
|
fn: A(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
780
|
-
|
|
798
|
+
b(l.$slots, "optionAnnotator", oe(se({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
781
799
|
]),
|
|
782
800
|
key: "8"
|
|
783
801
|
} : void 0
|
|
784
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),
|
|
785
803
|
(n(), r("svg", {
|
|
786
804
|
ref_key: "svgRef",
|
|
787
|
-
ref:
|
|
788
|
-
xmlns: u(
|
|
789
|
-
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 }),
|
|
790
808
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
791
|
-
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}`)
|
|
792
810
|
}, [
|
|
793
811
|
h("g", {
|
|
794
812
|
ref_key: "G",
|
|
795
813
|
ref: be,
|
|
796
814
|
class: "vue-data-ui-g"
|
|
797
815
|
}, [
|
|
798
|
-
|
|
816
|
+
Ve(u(Yt)),
|
|
799
817
|
l.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
800
818
|
key: 0,
|
|
801
819
|
x: 0,
|
|
@@ -806,9 +824,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
806
824
|
pointerEvents: "none"
|
|
807
825
|
}
|
|
808
826
|
}, [
|
|
809
|
-
|
|
810
|
-
], 8,
|
|
811
|
-
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, [
|
|
812
830
|
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
813
831
|
key: 0,
|
|
814
832
|
id: `gradient_${g.value}`
|
|
@@ -817,25 +835,25 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
817
835
|
offset: "0%",
|
|
818
836
|
"stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
819
837
|
"stop-opacity": "0"
|
|
820
|
-
}, null, 8,
|
|
838
|
+
}, null, 8, ql),
|
|
821
839
|
h("stop", {
|
|
822
840
|
offset: `${(1 - ee.value / _.value) * 100}%`,
|
|
823
841
|
"stop-color": u(Ce)("#FFFFFF", 0),
|
|
824
842
|
"stop-opacity": "0"
|
|
825
|
-
}, null, 8,
|
|
843
|
+
}, null, 8, Wl),
|
|
826
844
|
h("stop", {
|
|
827
845
|
offset: `${(1 - ee.value / _.value / 2) * 100}%`,
|
|
828
846
|
"stop-color": u(Ce)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
829
|
-
}, null, 8,
|
|
847
|
+
}, null, 8, Ul),
|
|
830
848
|
h("stop", {
|
|
831
849
|
offset: "100%",
|
|
832
850
|
"stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
833
851
|
"stop-opacity": "0"
|
|
834
|
-
}, null, 8,
|
|
852
|
+
}, null, 8, Hl)
|
|
835
853
|
], 8, Gl)) : v("", !0)
|
|
836
854
|
])) : v("", !0),
|
|
837
|
-
e.value.type === "polar" ? (n(), r("defs",
|
|
838
|
-
(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", {
|
|
839
857
|
id: `polar_gradient_${a}_${g.value}`,
|
|
840
858
|
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
841
859
|
cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
|
|
@@ -843,14 +861,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
843
861
|
}, [
|
|
844
862
|
h("stop", {
|
|
845
863
|
offset: "0%",
|
|
846
|
-
"stop-color": u(
|
|
864
|
+
"stop-color": u(bl)(S.value[a].color, 0.05),
|
|
847
865
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
848
|
-
}, null, 8,
|
|
866
|
+
}, null, 8, Kl),
|
|
849
867
|
h("stop", {
|
|
850
868
|
offset: "100%",
|
|
851
869
|
"stop-color": S.value[a].color
|
|
852
|
-
}, null, 8,
|
|
853
|
-
], 8,
|
|
870
|
+
}, null, 8, Ql)
|
|
871
|
+
], 8, Jl))), 256))
|
|
854
872
|
])) : v("", !0),
|
|
855
873
|
h("defs", null, [
|
|
856
874
|
h("filter", {
|
|
@@ -864,12 +882,12 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
864
882
|
in: "SourceGraphic",
|
|
865
883
|
stdDeviation: 2,
|
|
866
884
|
id: `blur_std_${g.value}`
|
|
867
|
-
}, null, 8,
|
|
885
|
+
}, null, 8, ea),
|
|
868
886
|
o[5] || (o[5] = h("feColorMatrix", {
|
|
869
887
|
type: "saturate",
|
|
870
888
|
values: "0"
|
|
871
889
|
}, null, -1))
|
|
872
|
-
], 8,
|
|
890
|
+
], 8, Zl),
|
|
873
891
|
h("filter", {
|
|
874
892
|
id: `shadow_${g.value}`,
|
|
875
893
|
"color-interpolation-filters": "sRGB"
|
|
@@ -880,8 +898,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
880
898
|
stdDeviation: "10",
|
|
881
899
|
"flood-opacity": "0.5",
|
|
882
900
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
883
|
-
}, null, 8,
|
|
884
|
-
], 8,
|
|
901
|
+
}, null, 8, la)
|
|
902
|
+
], 8, ta),
|
|
885
903
|
h("filter", {
|
|
886
904
|
id: `drop_shadow_${g.value}`,
|
|
887
905
|
"color-interpolation-filters": "sRGB",
|
|
@@ -896,22 +914,22 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
896
914
|
stdDeviation: "3",
|
|
897
915
|
"flood-opacity": "1",
|
|
898
916
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
899
|
-
}, null, 8,
|
|
900
|
-
], 8,
|
|
917
|
+
}, null, 8, oa)
|
|
918
|
+
], 8, aa)
|
|
901
919
|
]),
|
|
902
|
-
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, [
|
|
903
921
|
D(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
904
922
|
key: 0,
|
|
905
|
-
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),
|
|
906
924
|
stroke: t.color,
|
|
907
925
|
"stroke-width": "1",
|
|
908
926
|
"stroke-linecap": "round",
|
|
909
927
|
"stroke-linejoin": "round",
|
|
910
928
|
fill: "none",
|
|
911
929
|
filter: le(a)
|
|
912
|
-
}, null, 8,
|
|
930
|
+
}, null, 8, sa)) : v("", !0)
|
|
913
931
|
]))), 256)) : v("", !0),
|
|
914
|
-
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, [
|
|
915
933
|
D(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
916
934
|
key: 0,
|
|
917
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}`,
|
|
@@ -924,7 +942,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
924
942
|
style: $({
|
|
925
943
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
926
944
|
})
|
|
927
|
-
}, null, 12,
|
|
945
|
+
}, null, 12, na)) : v("", !0)
|
|
928
946
|
]))), 256)) : v("", !0),
|
|
929
947
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
|
|
930
948
|
key: 5,
|
|
@@ -934,50 +952,50 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
934
952
|
fill: e.value.style.chart.backgroundColor,
|
|
935
953
|
filter: `url(#shadow_${g.value})`
|
|
936
954
|
}, null, 8, ua)) : v("", !0),
|
|
937
|
-
l.$slots.pattern ? (n(), r("g",
|
|
938
|
-
(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", {
|
|
939
957
|
key: `pattern-${t.patternIndex}`
|
|
940
958
|
}, [
|
|
941
|
-
|
|
959
|
+
b(l.$slots, "pattern", $t({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
|
|
942
960
|
]))), 128))
|
|
943
961
|
])) : v("", !0),
|
|
944
|
-
|
|
945
|
-
(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", {
|
|
946
964
|
stroke: e.value.style.chart.backgroundColor,
|
|
947
965
|
d: t.arcSlice,
|
|
948
966
|
fill: "#FFFFFF"
|
|
949
|
-
}, null, 8,
|
|
950
|
-
(n(!0), r(
|
|
967
|
+
}, null, 8, ia))), 256)),
|
|
968
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
951
969
|
class: "vue-ui-donut-arc-path",
|
|
952
970
|
d: t.arcSlice,
|
|
953
971
|
fill: t.color,
|
|
954
972
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
955
973
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
956
974
|
filter: le(a)
|
|
957
|
-
}, null, 8,
|
|
958
|
-
l.$slots.pattern ? (n(), r("g",
|
|
959
|
-
(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", {
|
|
960
978
|
class: "vue-ui-donut-arc-path",
|
|
961
979
|
d: t.arcSlice,
|
|
962
980
|
fill: `url(#${t.pattern})`,
|
|
963
981
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
964
982
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
965
983
|
filter: le(a)
|
|
966
|
-
}, null, 8,
|
|
984
|
+
}, null, 8, ca))), 256))
|
|
967
985
|
])) : v("", !0)
|
|
968
986
|
], 64)) : v("", !0),
|
|
969
|
-
|
|
970
|
-
S.value.length > 1 ? (n(), r("g",
|
|
971
|
-
(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", {
|
|
972
990
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
973
991
|
d: d.value[a].path,
|
|
974
992
|
fill: "#FFFFFF",
|
|
975
993
|
style: $({
|
|
976
994
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
977
995
|
})
|
|
978
|
-
}, null, 12,
|
|
979
|
-
e.value.style.chart.layout.donut.useShadow ? (n(), r("g",
|
|
980
|
-
(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", {
|
|
981
999
|
class: "vue-ui-donut-arc-path",
|
|
982
1000
|
d: d.value[a].path,
|
|
983
1001
|
fill: "transparent",
|
|
@@ -987,10 +1005,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
987
1005
|
style: $({
|
|
988
1006
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
989
1007
|
})
|
|
990
|
-
}, null, 12,
|
|
1008
|
+
}, null, 12, pa))), 256))
|
|
991
1009
|
])) : v("", !0),
|
|
992
|
-
l.$slots.pattern ? (n(), r("g",
|
|
993
|
-
(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", {
|
|
994
1012
|
class: "vue-ui-donut-arc-path",
|
|
995
1013
|
d: d.value[a].path,
|
|
996
1014
|
fill: `url(#${t.pattern})`,
|
|
@@ -1001,9 +1019,9 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1001
1019
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1002
1020
|
transformOrigin: "center"
|
|
1003
1021
|
})
|
|
1004
|
-
}, null, 12,
|
|
1022
|
+
}, null, 12, ma))), 256))
|
|
1005
1023
|
])) : v("", !0),
|
|
1006
|
-
(n(!0), r(
|
|
1024
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1007
1025
|
class: "vue-ui-donut-arc-path",
|
|
1008
1026
|
d: d.value[a].path,
|
|
1009
1027
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${g.value})` : t.color,
|
|
@@ -1013,8 +1031,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1013
1031
|
style: $({
|
|
1014
1032
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1015
1033
|
})
|
|
1016
|
-
}, null, 12,
|
|
1017
|
-
])) : (n(), r("g",
|
|
1034
|
+
}, null, 12, ba))), 256))
|
|
1035
|
+
])) : (n(), r("g", wa, [
|
|
1018
1036
|
l.$slots.pattern ? (n(), r("circle", {
|
|
1019
1037
|
key: 0,
|
|
1020
1038
|
cx: s.value.width / 2,
|
|
@@ -1023,7 +1041,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1023
1041
|
fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
|
|
1024
1042
|
stroke: e.value.style.chart.backgroundColor,
|
|
1025
1043
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1026
|
-
}, null, 8,
|
|
1044
|
+
}, null, 8, ka)) : v("", !0),
|
|
1027
1045
|
h("circle", {
|
|
1028
1046
|
cx: s.value.width / 2,
|
|
1029
1047
|
cy: s.value.height / 2,
|
|
@@ -1031,17 +1049,17 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1031
1049
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
|
|
1032
1050
|
stroke: e.value.style.chart.backgroundColor,
|
|
1033
1051
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1034
|
-
}, null, 8,
|
|
1052
|
+
}, null, 8, xa)
|
|
1035
1053
|
]))
|
|
1036
|
-
], 64)) : (n(), r(
|
|
1037
|
-
e.value.type === "classic" && !
|
|
1038
|
-
(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", {
|
|
1039
1057
|
class: "vue-ui-donut-arc-path",
|
|
1040
1058
|
d: t.arcSlice,
|
|
1041
1059
|
fill: t.color,
|
|
1042
1060
|
stroke: e.value.style.chart.backgroundColor,
|
|
1043
1061
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1044
|
-
}, null, 8,
|
|
1062
|
+
}, null, 8, $a))), 256))
|
|
1045
1063
|
])) : v("", !0),
|
|
1046
1064
|
h("circle", {
|
|
1047
1065
|
cx: s.value.width / 2,
|
|
@@ -1049,7 +1067,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1049
1067
|
r: _.value <= 0 ? 10 : _.value,
|
|
1050
1068
|
fill: "transparent",
|
|
1051
1069
|
stroke: e.value.style.chart.backgroundColor
|
|
1052
|
-
}, null, 8,
|
|
1070
|
+
}, null, 8, Ca)
|
|
1053
1071
|
], 64)),
|
|
1054
1072
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
|
|
1055
1073
|
key: 10,
|
|
@@ -1060,7 +1078,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1060
1078
|
_.value <= 0 ? 10 : _.value
|
|
1061
1079
|
),
|
|
1062
1080
|
fill: `url(#gradient_${g.value})`
|
|
1063
|
-
}, null, 8,
|
|
1081
|
+
}, null, 8, Aa)) : v("", !0),
|
|
1064
1082
|
h("circle", {
|
|
1065
1083
|
ref_key: "circle_hollow",
|
|
1066
1084
|
ref: Te,
|
|
@@ -1069,37 +1087,37 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1069
1087
|
cx: s.value.width / 2,
|
|
1070
1088
|
cy: s.value.height / 2,
|
|
1071
1089
|
r: Math.max(0.1, ee.value * 1.7)
|
|
1072
|
-
}, null, 8,
|
|
1073
|
-
|
|
1074
|
-
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g",
|
|
1075
|
-
(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", {
|
|
1076
1094
|
d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
|
|
1077
1095
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1078
1096
|
fill: Y.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1079
|
-
onMouseenter: (i) =>
|
|
1097
|
+
onMouseenter: (i) => ce({
|
|
1080
1098
|
datapoint: t,
|
|
1081
1099
|
relativeIndex: a,
|
|
1082
1100
|
seriesIndex: t.seriesIndex,
|
|
1083
1101
|
show: !0
|
|
1084
1102
|
}),
|
|
1085
|
-
onMouseleave: (i) =>
|
|
1103
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1086
1104
|
onClick: (i) => Q(t, a)
|
|
1087
|
-
}, null, 40,
|
|
1088
|
-
])) : (n(), r("g",
|
|
1105
|
+
}, null, 40, Pa))), 256))
|
|
1106
|
+
])) : (n(), r("g", Fa, [
|
|
1089
1107
|
h("circle", {
|
|
1090
1108
|
cx: s.value.width / 2,
|
|
1091
1109
|
cy: s.value.height / 2,
|
|
1092
1110
|
r: _.value,
|
|
1093
1111
|
fill: "transparent",
|
|
1094
|
-
onMouseenter: o[0] || (o[0] = (t) =>
|
|
1112
|
+
onMouseenter: o[0] || (o[0] = (t) => ce({
|
|
1095
1113
|
datapoint: S.value[0],
|
|
1096
1114
|
relativeIndex: 0,
|
|
1097
1115
|
seriesIndex: S.value[0].seriesIndex,
|
|
1098
1116
|
show: !0
|
|
1099
1117
|
})),
|
|
1100
|
-
onMouseleave: o[1] || (o[1] = (t) =>
|
|
1118
|
+
onMouseleave: o[1] || (o[1] = (t) => de({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
|
|
1101
1119
|
onClick: o[2] || (o[2] = (t) => Q(S.value[0], l.i))
|
|
1102
|
-
}, null, 40,
|
|
1120
|
+
}, null, 40, La)
|
|
1103
1121
|
]))
|
|
1104
1122
|
], 64)) : v("", !0),
|
|
1105
1123
|
e.value.type === "classic" ? (n(), r("g", {
|
|
@@ -1116,7 +1134,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1116
1134
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1117
1135
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1118
1136
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1119
|
-
}, 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),
|
|
1120
1138
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1121
1139
|
key: 1,
|
|
1122
1140
|
"text-anchor": "middle",
|
|
@@ -1127,13 +1145,13 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1127
1145
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1128
1146
|
}, I(u(V)(
|
|
1129
1147
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1130
|
-
|
|
1148
|
+
F.value,
|
|
1131
1149
|
u(N)({
|
|
1132
1150
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1133
|
-
v:
|
|
1151
|
+
v: F.value,
|
|
1134
1152
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1135
1153
|
})
|
|
1136
|
-
)), 13,
|
|
1154
|
+
)), 13, Ma)) : v("", !0),
|
|
1137
1155
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1138
1156
|
key: 2,
|
|
1139
1157
|
"text-anchor": "middle",
|
|
@@ -1142,7 +1160,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1142
1160
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1143
1161
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1144
1162
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1145
|
-
}, 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),
|
|
1146
1164
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1147
1165
|
key: 3,
|
|
1148
1166
|
"text-anchor": "middle",
|
|
@@ -1153,42 +1171,42 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1153
1171
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1154
1172
|
}, I(te.value || T.value ? "--" : u(V)(
|
|
1155
1173
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1156
|
-
|
|
1174
|
+
Ne.value,
|
|
1157
1175
|
u(N)({
|
|
1158
1176
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1159
|
-
v:
|
|
1177
|
+
v: Ne.value,
|
|
1160
1178
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1161
1179
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1162
1180
|
})
|
|
1163
|
-
)), 13,
|
|
1181
|
+
)), 13, Oa)) : v("", !0)
|
|
1164
1182
|
], 512)) : v("", !0),
|
|
1165
|
-
(n(!0), r(
|
|
1183
|
+
(n(!0), r(w, null, L(X.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", {
|
|
1166
1184
|
filter: le(a),
|
|
1167
|
-
class:
|
|
1185
|
+
class: Be({ animated: e.value.useCssAnimation }),
|
|
1168
1186
|
key: t.seriesIndex
|
|
1169
1187
|
}, [
|
|
1170
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g",
|
|
1188
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Ya, [
|
|
1171
1189
|
(n(), r("foreignObject", {
|
|
1172
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,
|
|
1173
|
-
y: u(fe)(t) - (
|
|
1191
|
+
y: u(fe)(t) - (gt.value ? 20 : 0),
|
|
1174
1192
|
width: "120",
|
|
1175
1193
|
height: "60",
|
|
1176
1194
|
style: { overflow: "visible" }
|
|
1177
1195
|
}, [
|
|
1178
1196
|
h("div", null, [
|
|
1179
|
-
|
|
1197
|
+
b(l.$slots, "dataLabel", $t({ ref_for: !0 }, {
|
|
1180
1198
|
datapoint: t,
|
|
1181
1199
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a,
|
|
1182
|
-
isSafari:
|
|
1200
|
+
isSafari: gt.value,
|
|
1183
1201
|
isVisible: D(t) && f.value.dataLabels.show,
|
|
1184
1202
|
textAlign: u(x)(t, !0, 16, !0).anchor,
|
|
1185
1203
|
flexAlign: u(x)(t, !0, 16).anchor,
|
|
1186
|
-
percentage:
|
|
1204
|
+
percentage: Oe(t, X.value)
|
|
1187
1205
|
}), void 0, !0)
|
|
1188
1206
|
])
|
|
1189
|
-
], 8,
|
|
1190
|
-
])) : (n(), r("g",
|
|
1191
|
-
e.value.type === "classic" ? (n(), r(
|
|
1207
|
+
], 8, Xa))
|
|
1208
|
+
])) : (n(), r("g", Da, [
|
|
1209
|
+
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1192
1210
|
D(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
1193
1211
|
key: 0,
|
|
1194
1212
|
cx: u(x)(t).x,
|
|
@@ -1199,16 +1217,16 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1199
1217
|
r: 3,
|
|
1200
1218
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${g.value})`,
|
|
1201
1219
|
onClick: (i) => Q(t, a),
|
|
1202
|
-
onMouseenter: (i) =>
|
|
1220
|
+
onMouseenter: (i) => ce({
|
|
1203
1221
|
datapoint: t,
|
|
1204
1222
|
relativeIndex: a,
|
|
1205
1223
|
seriesIndex: t.seriesIndex,
|
|
1206
1224
|
show: !0
|
|
1207
1225
|
}),
|
|
1208
|
-
onMouseleave: (i) =>
|
|
1209
|
-
}, null, 40,
|
|
1226
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1227
|
+
}, null, 40, Ba)) : v("", !0)
|
|
1210
1228
|
], 64)) : v("", !0),
|
|
1211
|
-
e.value.type === "polar" ? (n(), r(
|
|
1229
|
+
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1212
1230
|
D(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
1213
1231
|
key: 0,
|
|
1214
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,
|
|
@@ -1219,20 +1237,20 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1219
1237
|
r: 3,
|
|
1220
1238
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${g.value})`,
|
|
1221
1239
|
onClick: (i) => Q(t, a),
|
|
1222
|
-
onMouseenter: (i) =>
|
|
1240
|
+
onMouseenter: (i) => ce({
|
|
1223
1241
|
datapoint: t,
|
|
1224
1242
|
relativeIndex: a,
|
|
1225
1243
|
seriesIndex: t.seriesIndex,
|
|
1226
1244
|
show: !0
|
|
1227
1245
|
}),
|
|
1228
|
-
onMouseleave: (i) =>
|
|
1246
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1229
1247
|
style: $({
|
|
1230
1248
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1231
1249
|
})
|
|
1232
|
-
}, null, 44,
|
|
1250
|
+
}, null, 44, Va)) : v("", !0)
|
|
1233
1251
|
], 64)) : v("", !0),
|
|
1234
|
-
e.value.type === "classic" ? (n(), r(
|
|
1235
|
-
|
|
1252
|
+
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1253
|
+
Ct(h("text", {
|
|
1236
1254
|
class: "vue-data-ui-datalabel-value",
|
|
1237
1255
|
"text-anchor": u(x)(t, !0, 12).anchor,
|
|
1238
1256
|
x: u(x)(t, !0, 12).x,
|
|
@@ -1241,14 +1259,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1241
1259
|
"font-size": we.value + "px",
|
|
1242
1260
|
style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1243
1261
|
onClick: (i) => Q(t, a),
|
|
1244
|
-
onMouseenter: (i) =>
|
|
1262
|
+
onMouseenter: (i) => ce({
|
|
1245
1263
|
datapoint: t,
|
|
1246
1264
|
relativeIndex: a,
|
|
1247
1265
|
seriesIndex: t.seriesIndex,
|
|
1248
1266
|
show: !0
|
|
1249
1267
|
}),
|
|
1250
|
-
onMouseleave: (i) =>
|
|
1251
|
-
}, 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)(
|
|
1252
1270
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1253
1271
|
t.value,
|
|
1254
1272
|
u(N)({
|
|
@@ -1258,10 +1276,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1258
1276
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1259
1277
|
}),
|
|
1260
1278
|
{ datapoint: t }
|
|
1261
|
-
)})` : ""), 45,
|
|
1262
|
-
[
|
|
1279
|
+
)})` : ""), 45, Ea), [
|
|
1280
|
+
[At, D(t) && f.value.dataLabels.show]
|
|
1263
1281
|
]),
|
|
1264
|
-
|
|
1282
|
+
Ct(h("text", {
|
|
1265
1283
|
class: "vue-data-ui-datalabel-name",
|
|
1266
1284
|
"text-anchor": u(x)(t).anchor,
|
|
1267
1285
|
x: u(x)(t, !0, 12).x,
|
|
@@ -1270,23 +1288,23 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1270
1288
|
"font-size": J.value + "px",
|
|
1271
1289
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1272
1290
|
onClick: (i) => Q(t, a),
|
|
1273
|
-
innerHTML: u(
|
|
1291
|
+
innerHTML: u(Ft)({
|
|
1274
1292
|
content: t.name,
|
|
1275
1293
|
fontSize: J.value,
|
|
1276
1294
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1277
1295
|
x: u(x)(t, !0, 12).x,
|
|
1278
1296
|
y: u(fe)(t) + J.value
|
|
1279
1297
|
})
|
|
1280
|
-
}, null, 12,
|
|
1281
|
-
[
|
|
1298
|
+
}, null, 12, Ra), [
|
|
1299
|
+
[At, D(t) && f.value.dataLabels.show]
|
|
1282
1300
|
]),
|
|
1283
|
-
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 })" /> '))
|
|
1284
1302
|
], 64)) : v("", !0),
|
|
1285
|
-
e.value.type === "polar" ? (n(), r(
|
|
1303
|
+
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1286
1304
|
D(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
1287
1305
|
key: 0,
|
|
1288
1306
|
class: "vue-data-ui-datalabel-value",
|
|
1289
|
-
"text-anchor":
|
|
1307
|
+
"text-anchor": ve(d.value[a].middlePoint),
|
|
1290
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,
|
|
1291
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,
|
|
1292
1310
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
@@ -1296,14 +1314,14 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1296
1314
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1297
1315
|
}),
|
|
1298
1316
|
onClick: (i) => Q(t, a),
|
|
1299
|
-
onMouseenter: (i) =>
|
|
1317
|
+
onMouseenter: (i) => ce({
|
|
1300
1318
|
datapoint: t,
|
|
1301
1319
|
relativeIndex: a,
|
|
1302
1320
|
seriesIndex: t.seriesIndex,
|
|
1303
1321
|
show: !0
|
|
1304
1322
|
}),
|
|
1305
|
-
onMouseleave: (i) =>
|
|
1306
|
-
}, 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)(
|
|
1307
1325
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1308
1326
|
t.value,
|
|
1309
1327
|
u(N)({
|
|
@@ -1317,7 +1335,7 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1317
1335
|
D(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
1318
1336
|
key: 1,
|
|
1319
1337
|
class: "vue-data-ui-datalabel-name",
|
|
1320
|
-
"text-anchor":
|
|
1338
|
+
"text-anchor": ve(d.value[a].middlePoint),
|
|
1321
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,
|
|
1322
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,
|
|
1323
1341
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
@@ -1327,18 +1345,18 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1327
1345
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1328
1346
|
}),
|
|
1329
1347
|
onClick: (i) => Q(t, a),
|
|
1330
|
-
innerHTML: u(
|
|
1348
|
+
innerHTML: u(Ft)({
|
|
1331
1349
|
content: t.name,
|
|
1332
1350
|
fontSize: we.value,
|
|
1333
1351
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1334
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,
|
|
1335
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
|
|
1336
1354
|
})
|
|
1337
|
-
}, null, 12,
|
|
1338
|
-
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 })" /> '))
|
|
1339
1357
|
], 64)) : v("", !0)
|
|
1340
1358
|
])),
|
|
1341
|
-
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", Wa, [
|
|
1342
1360
|
D(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1343
1361
|
key: 0,
|
|
1344
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),
|
|
@@ -1348,15 +1366,15 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1348
1366
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1349
1367
|
}, [
|
|
1350
1368
|
h("div", null, [
|
|
1351
|
-
|
|
1369
|
+
b(l.$slots, "plot-comment", {
|
|
1352
1370
|
plot: { ...t, textAlign: u(x)(t, !0, 16, !0).anchor, flexAlign: u(x)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1353
1371
|
}, void 0, !0)
|
|
1354
1372
|
])
|
|
1355
|
-
], 8,
|
|
1373
|
+
], 8, Ua)) : v("", !0),
|
|
1356
1374
|
D(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1357
1375
|
key: 1,
|
|
1358
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1359
|
-
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,
|
|
1360
1378
|
width: e.value.style.chart.comments.width,
|
|
1361
1379
|
height: "200",
|
|
1362
1380
|
style: $({
|
|
@@ -1366,32 +1384,32 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1366
1384
|
})
|
|
1367
1385
|
}, [
|
|
1368
1386
|
h("div", null, [
|
|
1369
|
-
|
|
1370
|
-
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 }
|
|
1371
1389
|
}, void 0, !0)
|
|
1372
1390
|
])
|
|
1373
|
-
], 12,
|
|
1391
|
+
], 12, Ha)) : v("", !0)
|
|
1374
1392
|
])) : v("", !0)
|
|
1375
|
-
], 10,
|
|
1376
|
-
|
|
1393
|
+
], 10, Na))), 128)),
|
|
1394
|
+
b(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1377
1395
|
], 512)
|
|
1378
|
-
], 14,
|
|
1379
|
-
l.$slots.watermark ? (n(), r("div",
|
|
1380
|
-
|
|
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)
|
|
1381
1399
|
])) : v("", !0),
|
|
1382
1400
|
h("div", {
|
|
1383
1401
|
ref_key: "chartLegend",
|
|
1384
|
-
ref:
|
|
1402
|
+
ref: Ue
|
|
1385
1403
|
}, [
|
|
1386
|
-
e.value.style.chart.legend.show ? (n(), ae(
|
|
1387
|
-
key: `legend_${
|
|
1388
|
-
legendSet:
|
|
1389
|
-
config:
|
|
1390
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) =>
|
|
1391
|
-
},
|
|
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({
|
|
1392
1410
|
item: A(({ legend: t, index: a }) => [
|
|
1393
1411
|
h("div", {
|
|
1394
|
-
style: $(`opacity:${
|
|
1412
|
+
style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
|
|
1395
1413
|
onClick: (i) => t.segregate()
|
|
1396
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)(
|
|
1397
1415
|
e.value.style.chart.layout.labels.value.formatter,
|
|
@@ -1406,22 +1424,22 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1406
1424
|
datapoint: t,
|
|
1407
1425
|
index: a
|
|
1408
1426
|
}
|
|
1409
|
-
) : "") + " " + 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)(
|
|
1410
1428
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1411
|
-
|
|
1429
|
+
yt.value(t),
|
|
1412
1430
|
u(N)({
|
|
1413
|
-
v:
|
|
1431
|
+
v: yt.value(t),
|
|
1414
1432
|
s: "%",
|
|
1415
1433
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1416
1434
|
})
|
|
1417
|
-
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1435
|
+
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ja)
|
|
1418
1436
|
]),
|
|
1419
1437
|
_: 2
|
|
1420
1438
|
}, [
|
|
1421
1439
|
l.$slots.pattern ? {
|
|
1422
1440
|
name: "legend-pattern",
|
|
1423
1441
|
fn: A(({ legend: t, index: a }) => [
|
|
1424
|
-
|
|
1442
|
+
Ve(Nl, {
|
|
1425
1443
|
shape: t.shape,
|
|
1426
1444
|
radius: 30,
|
|
1427
1445
|
stroke: "none",
|
|
@@ -1432,18 +1450,25 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1432
1450
|
key: "0"
|
|
1433
1451
|
} : void 0
|
|
1434
1452
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1435
|
-
|
|
1453
|
+
b(l.$slots, "legend", { legend: ht.value }, void 0, !0)
|
|
1436
1454
|
], 512),
|
|
1437
1455
|
l.$slots.source ? (n(), r("div", {
|
|
1438
1456
|
key: 5,
|
|
1439
1457
|
ref_key: "source",
|
|
1440
|
-
ref:
|
|
1458
|
+
ref: He,
|
|
1441
1459
|
dir: "auto"
|
|
1442
1460
|
}, [
|
|
1443
|
-
|
|
1461
|
+
b(l.$slots, "source", {}, void 0, !0)
|
|
1444
1462
|
], 512)) : v("", !0),
|
|
1445
|
-
|
|
1446
|
-
|
|
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,
|
|
1447
1472
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1448
1473
|
color: e.value.style.chart.tooltip.color,
|
|
1449
1474
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1453,21 +1478,23 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1453
1478
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1454
1479
|
position: e.value.style.chart.tooltip.position,
|
|
1455
1480
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1456
|
-
parent:
|
|
1457
|
-
content:
|
|
1481
|
+
parent: E.value,
|
|
1482
|
+
content: Ie.value,
|
|
1458
1483
|
isCustom: pe.value,
|
|
1459
|
-
isFullscreen:
|
|
1484
|
+
isFullscreen: he.value,
|
|
1485
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
1486
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1460
1487
|
}, {
|
|
1461
1488
|
"tooltip-before": A(() => [
|
|
1462
|
-
|
|
1489
|
+
b(l.$slots, "tooltip-before", oe(se({ ...Ye.value })), void 0, !0)
|
|
1463
1490
|
]),
|
|
1464
1491
|
"tooltip-after": A(() => [
|
|
1465
|
-
|
|
1492
|
+
b(l.$slots, "tooltip-after", oe(se({ ...Ye.value })), void 0, !0)
|
|
1466
1493
|
]),
|
|
1467
1494
|
_: 3
|
|
1468
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1469
|
-
me.value ? (n(), ae(u(
|
|
1470
|
-
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,
|
|
1471
1498
|
hideDetails: "",
|
|
1472
1499
|
config: {
|
|
1473
1500
|
open: f.value.showTable,
|
|
@@ -1483,8 +1510,8 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1483
1510
|
}
|
|
1484
1511
|
}, {
|
|
1485
1512
|
content: A(() => [
|
|
1486
|
-
(n(), ae(u(
|
|
1487
|
-
key: `table_${
|
|
1513
|
+
(n(), ae(u(Nt), {
|
|
1514
|
+
key: `table_${Ke.value}`,
|
|
1488
1515
|
colNames: _e.value.colNames,
|
|
1489
1516
|
head: _e.value.head,
|
|
1490
1517
|
body: _e.value.body,
|
|
@@ -1496,10 +1523,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1496
1523
|
h("div", {
|
|
1497
1524
|
innerHTML: t,
|
|
1498
1525
|
style: { display: "flex", "align-items": "center" }
|
|
1499
|
-
}, null, 8,
|
|
1526
|
+
}, null, 8, Qa)
|
|
1500
1527
|
]),
|
|
1501
1528
|
td: A(({ td: t }) => [
|
|
1502
|
-
|
|
1529
|
+
Ee(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(V)(
|
|
1503
1530
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1504
1531
|
t,
|
|
1505
1532
|
u(N)({
|
|
@@ -1523,10 +1550,10 @@ const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { k
|
|
|
1523
1550
|
]),
|
|
1524
1551
|
_: 1
|
|
1525
1552
|
}, 8, ["config"])) : v("", !0),
|
|
1526
|
-
u(ke) ? (n(), ae(
|
|
1527
|
-
], 46,
|
|
1553
|
+
u(ke) ? (n(), ae(Il, { key: 8 })) : v("", !0)
|
|
1554
|
+
], 46, Bl));
|
|
1528
1555
|
}
|
|
1529
|
-
},
|
|
1556
|
+
}, yo = /* @__PURE__ */ Dl(Za, [["__scopeId", "data-v-3da81d6a"]]);
|
|
1530
1557
|
export {
|
|
1531
|
-
|
|
1558
|
+
yo as default
|
|
1532
1559
|
};
|