vue-data-ui 3.0.0-next.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as dl, o as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Fl } from "./
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as Il } from "./
|
|
8
|
-
import Ml from "./
|
|
9
|
-
import zl from "./
|
|
10
|
-
import { _ as Ol } from "./Shape-
|
|
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 bt, onBeforeUnmount as wt, toRefs as il, watch as ge, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as Xe, createBlock as ae, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as De, unref as u, createSlots as kt, withCtx as A, normalizeProps as oe, guardReactiveProps as se, Fragment as w, renderList as L, mergeProps as xt, toDisplayString as I, withDirectives as _t, createTextVNode as Be, vShow as $t, nextTick as vl } from "vue";
|
|
2
|
+
import { u as dl, o as Ct, f as Ve, g as cl, c as hl, t as yl, d as fl, h as pl, e as At, p as ne, m as Tt, $ as gl, i as N, X as ml, s as Ce, x as bl, n as wl, N as P, k as V, q as fe, r as x, a0 as St, a1 as kl, a as xl, b as _l, C as Ee, v as $l, w as Cl, y as Al, T as Pt } from "./index-BtNwOUja.js";
|
|
3
|
+
import { t as Tl, u as Sl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Pl } from "./usePrinter-DUNjpQNe.js";
|
|
5
|
+
import { u as Fl, B as Ll } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as Ft } from "./useNestedProp-f2H3m6Yj.js";
|
|
7
|
+
import { u as Il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Ml } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import zl from "./img-DrR839Ot.js";
|
|
10
|
+
import { _ as Ol } from "./Shape-BRzOzubn.js";
|
|
11
|
+
import Nl from "./Title-BGu6gEd2.js";
|
|
12
|
+
import Yl from "./Legend-BUk0WvWJ.js";
|
|
13
|
+
import { _ as Xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Dl = ["id"], Bl = ["xmlns", "viewBox"], Vl = ["width", "height"], El = { key: 1 }, Rl = ["id"], Gl = ["stop-color"], ql = ["offset", "stop-color"], Ul = ["offset", "stop-color"], Wl = ["stop-color"], Hl = { key: 2 }, jl = ["id", "cx", "cy"], Jl = ["stop-color", "stop-opacity"], Kl = ["stop-color"], Ql = ["id"], Zl = ["id"], ea = ["id"], ta = ["flood-color"], la = ["id"], aa = ["flood-color"], oa = ["d", "stroke", "filter"], sa = ["d", "stroke", "filter"], na = ["cx", "cy", "r", "fill", "filter"], ua = { key: 6 }, ra = ["stroke", "d"], ia = ["d", "fill", "stroke", "stroke-width", "filter"], va = { key: 0 }, da = ["d", "fill", "stroke", "stroke-width", "filter"], ca = { key: 0 }, ha = ["stroke", "d"], ya = { key: 0 }, fa = ["d", "stroke", "stroke-width", "filter"], pa = { key: 1 }, ga = ["d", "fill", "stroke", "stroke-width", "filter"], ma = ["d", "fill", "stroke", "stroke-width", "filter"], ba = { key: 1 }, wa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ka = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], xa = { key: 0 }, _a = ["d", "fill", "stroke", "stroke-width"], $a = ["cx", "cy", "r", "stroke"], Ca = ["cx", "cy", "r", "fill"], Aa = ["cx", "cy", "r"], Ta = { key: 0 }, Sa = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Pa = { key: 1 }, Fa = ["cx", "cy", "r"], La = ["x", "y", "fill", "font-size"], Ia = ["x", "y", "fill", "font-size"], Ma = ["x", "y", "fill", "font-size"], za = ["x", "y", "fill", "font-size"], Oa = ["filter"], Na = { key: 0 }, Ya = ["x", "y"], Xa = { key: 1 }, Da = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ba = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Va = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ea = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], Ra = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], qa = { key: 2 }, Ua = ["x", "y", "width"], Wa = ["x", "y", "width"], Ha = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, ja = ["onClick"], Ja = {
|
|
18
|
+
key: 6,
|
|
19
|
+
class: "vue-ui-donut-hollow"
|
|
20
|
+
}, Ka = ["innerHTML"], Qa = {
|
|
18
21
|
__name: "vue-ui-donut",
|
|
19
22
|
props: {
|
|
20
23
|
config: {
|
|
@@ -31,26 +34,26 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
31
34
|
}
|
|
32
35
|
},
|
|
33
36
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(Re, { expose:
|
|
35
|
-
const
|
|
37
|
+
setup(Re, { expose: Lt, emit: It }) {
|
|
38
|
+
const Mt = ye(() => import("./vue-ui-accordion-BKUrAowe.js")), zt = ye(() => import("./DataTable-BSSXpM7w.js")), Ot = ye(() => import("./PackageVersion-CJ6Vd7V5.js")), Nt = ye(() => import("./PenAndPaper-D3zudcNI.js")), Yt = ye(() => import("./Tooltip-Bh2zYSoM.js")), Xt = ye(() => import("./UserOptions-Ck8fz9f4.js")), { vue_ui_donut: Dt } = dl(), Bt = rl(), k = Re, 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
|
-
}), E = H(null), be = p(null),
|
|
45
|
+
}), E = H(null), be = p(null), Vt = p(null), Et = p(null), Ge = H(null), qe = H(null), j = H(null), ue = H(null), Ue = H(null), We = H(null), He = p(0), je = p(0), Je = p(0), we = y({
|
|
43
46
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
44
47
|
set: (l) => l
|
|
45
48
|
}), J = y({
|
|
46
49
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
47
50
|
set: (l) => l
|
|
48
51
|
});
|
|
49
|
-
let
|
|
50
|
-
const
|
|
51
|
-
!e.value.autoSize ||
|
|
52
|
-
|
|
53
|
-
const l = e.value, o = be.value, t =
|
|
52
|
+
let Ae = !1;
|
|
53
|
+
const R = () => {
|
|
54
|
+
!e.value.autoSize || Ae || (Ae = !0, requestAnimationFrame(() => {
|
|
55
|
+
Ae = !1;
|
|
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,106 +69,103 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { 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 &&
|
|
72
|
+
z.map((B) => o.querySelectorAll(B.selector).length).reduce((B, Z) => B + Z, 0) !== 0 && z.forEach(({ selector: B, baseSize: Z, minSize: Ye, sizeRef: sl }) => {
|
|
70
73
|
o.querySelectorAll(B).forEach((nl) => {
|
|
71
74
|
const ul = kl({
|
|
72
75
|
el: nl,
|
|
73
76
|
bounds: C,
|
|
74
77
|
currentFontSize: Z,
|
|
75
|
-
minFontSize:
|
|
78
|
+
minFontSize: Ye,
|
|
76
79
|
attempts: 200,
|
|
77
80
|
padding: 1
|
|
78
81
|
});
|
|
79
82
|
sl.value = ul;
|
|
80
83
|
});
|
|
81
|
-
})
|
|
82
|
-
el: Ae.value,
|
|
83
|
-
container: Te.value
|
|
84
|
-
}));
|
|
84
|
+
});
|
|
85
85
|
}));
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
bt(async () => {
|
|
88
|
+
Ke(), requestAnimationFrame(R);
|
|
89
89
|
});
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
E.value && (
|
|
90
|
+
let Te;
|
|
91
|
+
bt(() => {
|
|
92
|
+
E.value && (Te = new ResizeObserver((l) => {
|
|
93
93
|
for (const o of l) {
|
|
94
94
|
const { width: t, height: a } = o.contentRect;
|
|
95
95
|
if (t > 0 && a > 0) {
|
|
96
|
-
|
|
96
|
+
R();
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
101
|
-
}),
|
|
102
|
-
|
|
103
|
-
}),
|
|
104
|
-
j.value && (
|
|
100
|
+
}), Te.observe(E.value.parentElement));
|
|
101
|
+
}), wt(() => {
|
|
102
|
+
Te?.disconnect();
|
|
103
|
+
}), wt(() => {
|
|
104
|
+
j.value && (ue.value && j.value.unobserve(ue.value), j.value.disconnect());
|
|
105
105
|
});
|
|
106
|
-
const
|
|
107
|
-
function
|
|
108
|
-
if (
|
|
106
|
+
const Se = y(() => !!e.value.debug);
|
|
107
|
+
function Ke() {
|
|
108
|
+
if (Ct(k.dataset) ? (Ve({
|
|
109
109
|
componentName: "VueUiDonut",
|
|
110
110
|
type: "dataset",
|
|
111
|
-
debug:
|
|
111
|
+
debug: Se.value
|
|
112
112
|
}), me.value = !1, xe.value = !0) : (k.dataset.forEach((l, o) => {
|
|
113
113
|
cl({
|
|
114
114
|
datasetObject: l,
|
|
115
115
|
requiredAttributes: ["name", "values"]
|
|
116
116
|
}).forEach((t) => {
|
|
117
|
-
|
|
117
|
+
Ve({
|
|
118
118
|
componentName: "VueUiDonut",
|
|
119
119
|
type: "datasetSerieAttribute",
|
|
120
120
|
property: t,
|
|
121
121
|
index: o,
|
|
122
|
-
debug:
|
|
122
|
+
debug: Se.value
|
|
123
123
|
}), me.value = !1, xe.value = !0;
|
|
124
124
|
});
|
|
125
125
|
}), k.dataset.forEach((l, o) => {
|
|
126
|
-
(!l.name || l.name === "") &&
|
|
126
|
+
(!l.name || l.name === "") && Ve({
|
|
127
127
|
componentName: "VueUiDonut",
|
|
128
128
|
type: "datasetAttributeEmpty",
|
|
129
129
|
property: "name",
|
|
130
130
|
index: o,
|
|
131
|
-
debug:
|
|
131
|
+
debug: Se.value
|
|
132
132
|
});
|
|
133
|
-
})),
|
|
134
|
-
const l =
|
|
135
|
-
const { width: o, height: t } =
|
|
133
|
+
})), Ct(k.dataset) || (xe.value = e.value.loading), e.value.responsive) {
|
|
134
|
+
const l = Tl(() => {
|
|
135
|
+
const { width: o, height: t } = Sl({
|
|
136
136
|
chart: E.value,
|
|
137
|
-
title: e.value.style.chart.title.text ?
|
|
138
|
-
legend: e.value.style.chart.legend.show ?
|
|
137
|
+
title: e.value.style.chart.title.text ? Ge.value : null,
|
|
138
|
+
legend: e.value.style.chart.legend.show ? qe.value : null,
|
|
139
139
|
source: Ue.value,
|
|
140
|
-
noTitle:
|
|
141
|
-
padding: e.value.autoSize ? void 0 :
|
|
140
|
+
noTitle: We.value,
|
|
141
|
+
padding: e.value.autoSize ? void 0 : lt.value
|
|
142
142
|
});
|
|
143
143
|
requestAnimationFrame(() => {
|
|
144
|
-
s.value.width = o, s.value.height = t,
|
|
144
|
+
s.value.width = o, s.value.height = t, R();
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
|
-
j.value && (
|
|
147
|
+
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);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
const g = p(hl()),
|
|
151
|
-
function
|
|
152
|
-
const l =
|
|
150
|
+
const g = p(hl()), Rt = p(null), Pe = p(!1), Fe = p(""), Y = p(null), Qe = p(0);
|
|
151
|
+
function Le() {
|
|
152
|
+
const l = Ft({
|
|
153
153
|
userConfig: k.config,
|
|
154
|
-
defaultConfig:
|
|
154
|
+
defaultConfig: Dt
|
|
155
155
|
});
|
|
156
156
|
let o = {};
|
|
157
157
|
return l.theme ? o = {
|
|
158
|
-
...
|
|
159
|
-
userConfig:
|
|
158
|
+
...Ft({
|
|
159
|
+
userConfig: _l.vue_ui_donut[l.theme] || k.config,
|
|
160
160
|
defaultConfig: l
|
|
161
161
|
}),
|
|
162
|
-
customPalette:
|
|
163
|
-
} : o = l, k.config &&
|
|
162
|
+
customPalette: xl[l.theme] || ne
|
|
163
|
+
} : o = l, k.config && Ee(k.config, "events.datapointEnter") ? o.events.datapointEnter = k.config.events.datapointEnter : o.events.datapointEnter = null, k.config && Ee(k.config, "events.datapointLeave") ? o.events.datapointLeave = k.config.events.datapointLeave : o.events.datapointLeave = null, k.config && Ee(k.config, "events.datapointClick") ? o.events.datapointClick = k.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
164
164
|
}
|
|
165
|
-
const e = p(
|
|
165
|
+
const e = p(Le()), { loading: ke, FINAL_DATASET: re, manualLoading: xe, skeletonDataset: Gt } = Fl({
|
|
166
166
|
...il(k),
|
|
167
167
|
FINAL_CONFIG: e,
|
|
168
|
-
prepareConfig:
|
|
168
|
+
prepareConfig: Le,
|
|
169
169
|
skeletonDataset: [
|
|
170
170
|
{
|
|
171
171
|
name: "",
|
|
@@ -220,33 +220,33 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
})
|
|
223
|
-
}), T = p(!0),
|
|
223
|
+
}), T = p(!0), U = H([]);
|
|
224
224
|
function qt(l, o = 1e3, t = 50) {
|
|
225
225
|
return new Promise((a) => {
|
|
226
226
|
const i = l.length;
|
|
227
|
-
|
|
227
|
+
U.value = Array(i).fill(0);
|
|
228
228
|
let c = 0;
|
|
229
229
|
l.forEach((m, C) => {
|
|
230
230
|
setTimeout(() => {
|
|
231
231
|
const z = performance.now();
|
|
232
232
|
function O(B) {
|
|
233
|
-
const Z = Math.min((B - z) / o, 1),
|
|
234
|
-
|
|
233
|
+
const Z = Math.min((B - z) / o, 1), Ye = Pt(Z);
|
|
234
|
+
U.value[C] = m * Ye, 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));
|
|
235
235
|
}
|
|
236
236
|
requestAnimationFrame(O);
|
|
237
237
|
}, C * t);
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
const
|
|
241
|
+
const Ze = p(!1);
|
|
242
242
|
ge(
|
|
243
243
|
() => ke.value,
|
|
244
244
|
async (l) => {
|
|
245
|
-
if (l ||
|
|
246
|
-
const o =
|
|
245
|
+
if (l || Ze.value) return;
|
|
246
|
+
const o = re.value === Gt, t = e.value.startAnimation?.show;
|
|
247
247
|
if (!o && t) {
|
|
248
|
-
|
|
249
|
-
const a =
|
|
248
|
+
Ze.value = !0;
|
|
249
|
+
const a = re.value.map(
|
|
250
250
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
251
251
|
);
|
|
252
252
|
await qt(
|
|
@@ -259,17 +259,17 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
259
259
|
},
|
|
260
260
|
{ immediate: !0 }
|
|
261
261
|
);
|
|
262
|
-
const { userOptionsVisible:
|
|
263
|
-
function Wt() {
|
|
264
|
-
tt(!0);
|
|
265
|
-
}
|
|
262
|
+
const { userOptionsVisible: Ie, setUserOptionsVisibility: et, keepUserOptionState: tt } = Il({ config: e.value }), { svgRef: ie } = Ml({ config: e.value.style.chart.title });
|
|
266
263
|
function Ut() {
|
|
267
|
-
|
|
264
|
+
et(!0);
|
|
265
|
+
}
|
|
266
|
+
function Wt() {
|
|
267
|
+
et(!1);
|
|
268
268
|
}
|
|
269
269
|
ge(() => k.config, (l) => {
|
|
270
|
-
ke.value || (e.value =
|
|
270
|
+
ke.value || (e.value = Le()), Ie.value = !e.value.userOptions.showOnChartHover, Ke(), He.value += 1, je.value += 1, Je.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;
|
|
271
271
|
}, { deep: !0 });
|
|
272
|
-
const
|
|
272
|
+
const lt = y(() => {
|
|
273
273
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
274
274
|
return {
|
|
275
275
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -278,11 +278,11 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
278
278
|
bottom: t,
|
|
279
279
|
left: a
|
|
280
280
|
};
|
|
281
|
-
}), { isPrinting:
|
|
281
|
+
}), { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: nt } = Pl({
|
|
282
282
|
elementId: `donut__${g.value}`,
|
|
283
283
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
284
284
|
options: e.value.userOptions.print
|
|
285
|
-
}), Ht = y(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
285
|
+
}), Ht = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ut = y(() => fl(e.value.customPalette)), f = p({
|
|
286
286
|
dataLabels: {
|
|
287
287
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
288
288
|
},
|
|
@@ -306,9 +306,9 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
306
306
|
return _.value;
|
|
307
307
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * l, t = o > _.value ? _.value : o;
|
|
308
308
|
return Math.max(t, 12 * (1 + l));
|
|
309
|
-
}),
|
|
309
|
+
}), rt = It, G = y(() => re.value.map((l, o) => ({
|
|
310
310
|
name: l.name,
|
|
311
|
-
color:
|
|
311
|
+
color: At(l.color) || ut.value[o] || ne[o] || ne[o % ne.length],
|
|
312
312
|
value: pl(l.values.reduce((t, a) => t + a, 0)),
|
|
313
313
|
absoluteValues: l.values,
|
|
314
314
|
comment: l.comment || "",
|
|
@@ -320,19 +320,19 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
320
320
|
ge(() => k.dataset, (l) => {
|
|
321
321
|
Array.isArray(l) && l.length > 0 && (xe.value = !1);
|
|
322
322
|
}, { immediate: !0 });
|
|
323
|
-
const M = H(
|
|
324
|
-
ge(() =>
|
|
325
|
-
M.value = l, requestAnimationFrame(
|
|
323
|
+
const M = H(G.value);
|
|
324
|
+
ge(() => G.value, (l) => {
|
|
325
|
+
M.value = l, requestAnimationFrame(R);
|
|
326
326
|
});
|
|
327
327
|
function jt() {
|
|
328
|
-
return
|
|
328
|
+
return G.value.map((l) => ({
|
|
329
329
|
name: l.name,
|
|
330
330
|
color: l.color,
|
|
331
331
|
value: l.value
|
|
332
332
|
}));
|
|
333
333
|
}
|
|
334
|
-
const
|
|
335
|
-
function
|
|
334
|
+
const q = p([]), te = p(!1);
|
|
335
|
+
function it({ from: l, to: o, duration: t, onUpdate: a, onDone: i, easing: c = Pt }) {
|
|
336
336
|
const m = performance.now();
|
|
337
337
|
function C(z) {
|
|
338
338
|
const O = Math.min((z - m) / t, 1), B = c(O), Z = l + (o - l) * B;
|
|
@@ -340,68 +340,68 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
340
340
|
}
|
|
341
341
|
requestAnimationFrame(C);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
const o =
|
|
343
|
+
function vt(l) {
|
|
344
|
+
const o = G.value.find((i, c) => c === l);
|
|
345
345
|
let a = M.value.find((i, c) => c === l).value;
|
|
346
|
-
if (
|
|
346
|
+
if (q.value.includes(l)) {
|
|
347
347
|
let c = function() {
|
|
348
348
|
M.value = M.value.map(
|
|
349
349
|
(C, z) => l === z ? { ...C, value: i } : C
|
|
350
350
|
);
|
|
351
351
|
}, m = function() {
|
|
352
|
-
te.value = !0,
|
|
352
|
+
te.value = !0, it({
|
|
353
353
|
from: a,
|
|
354
354
|
to: i,
|
|
355
355
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
356
356
|
onUpdate: (C, z) => {
|
|
357
357
|
M.value = M.value.map(
|
|
358
358
|
(O, B) => l === B ? { ...O, value: C } : O
|
|
359
|
-
), requestAnimationFrame(
|
|
359
|
+
), requestAnimationFrame(R);
|
|
360
360
|
},
|
|
361
361
|
onDone: () => {
|
|
362
362
|
c(), te.value = !1;
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
q.value = q.value.filter((C) => C !== l);
|
|
367
367
|
const i = o.value;
|
|
368
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(
|
|
369
|
-
} else if (
|
|
368
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(R));
|
|
369
|
+
} else if (q.value.length < G.value.length - 1) {
|
|
370
370
|
let i = function() {
|
|
371
|
-
|
|
371
|
+
q.value.push(l), M.value = M.value.map(
|
|
372
372
|
(m, C) => l === C ? { ...m, value: 0 } : m
|
|
373
373
|
);
|
|
374
374
|
}, c = function() {
|
|
375
|
-
te.value = !0,
|
|
375
|
+
te.value = !0, it({
|
|
376
376
|
from: a,
|
|
377
377
|
to: 0,
|
|
378
378
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
379
379
|
onUpdate: (m, C) => {
|
|
380
380
|
M.value = M.value.map(
|
|
381
381
|
(z, O) => l === O ? { ...z, value: m } : z
|
|
382
|
-
), requestAnimationFrame(
|
|
382
|
+
), requestAnimationFrame(R);
|
|
383
383
|
},
|
|
384
384
|
onDone: () => {
|
|
385
|
-
i(), requestAnimationFrame(
|
|
385
|
+
i(), requestAnimationFrame(R), te.value = !1;
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
};
|
|
389
389
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
rt("selectLegend", W.value.map((i) => ({
|
|
392
392
|
name: i.name,
|
|
393
393
|
color: i.color,
|
|
394
394
|
value: i.value
|
|
395
395
|
})));
|
|
396
396
|
}
|
|
397
|
-
const Jt = y(() =>
|
|
397
|
+
const Jt = y(() => re.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), W = y(() => {
|
|
398
398
|
if (T.value && !ke.value) {
|
|
399
|
-
const l =
|
|
400
|
-
...
|
|
399
|
+
const l = U.value.map((t, a) => ({
|
|
400
|
+
...G.value[a],
|
|
401
401
|
value: t,
|
|
402
|
-
color:
|
|
402
|
+
color: G.value[a].color,
|
|
403
403
|
ghost: !1
|
|
404
|
-
})), o = Jt.value -
|
|
404
|
+
})), o = Jt.value - U.value.reduce((t, a) => t + a, 0);
|
|
405
405
|
return o > 0 && l.push({
|
|
406
406
|
name: "__ghost__",
|
|
407
407
|
value: o,
|
|
@@ -418,19 +418,19 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
418
418
|
}), M.value.map((l, o) => ({
|
|
419
419
|
...l,
|
|
420
420
|
seriesIndex: o
|
|
421
|
-
})).filter((l, o) => !
|
|
422
|
-
}),
|
|
421
|
+
})).filter((l, o) => !q.value.includes(o));
|
|
422
|
+
}), dt = y(() => re.value.map((l, o) => ({
|
|
423
423
|
name: l.name,
|
|
424
|
-
color:
|
|
424
|
+
color: At(l.color) || ut.value[o] || ne[o] || ne[o % ne.length],
|
|
425
425
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
426
426
|
shape: "circle",
|
|
427
427
|
patternIndex: o
|
|
428
428
|
})).map((l, o) => ({
|
|
429
429
|
...l,
|
|
430
|
-
proportion: l.value /
|
|
431
|
-
opacity:
|
|
432
|
-
segregate: () => !te.value &&
|
|
433
|
-
isSegregated:
|
|
430
|
+
proportion: l.value / re.value.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
|
|
431
|
+
opacity: q.value.includes(o) ? 0.5 : 1,
|
|
432
|
+
segregate: () => !te.value && vt(o),
|
|
433
|
+
isSegregated: q.value.includes(o)
|
|
434
434
|
}))), Kt = y(() => ({
|
|
435
435
|
cy: "donut-div-legend",
|
|
436
436
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -439,9 +439,9 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
439
439
|
paddingBottom: 12,
|
|
440
440
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
441
441
|
})), _ = y(() => {
|
|
442
|
-
const l = Math.min(s.value.width
|
|
443
|
-
return
|
|
444
|
-
}), S = y(() =>
|
|
442
|
+
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);
|
|
443
|
+
return Math.max(12, t);
|
|
444
|
+
}), S = y(() => Tt({ 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(() => Tt({
|
|
445
445
|
series: [
|
|
446
446
|
{
|
|
447
447
|
value: 1,
|
|
@@ -454,7 +454,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
454
454
|
}
|
|
455
455
|
]
|
|
456
456
|
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ee.value)), X = y(() => S.value.filter((l) => !l.ghost)), d = y(() => {
|
|
457
|
-
const l = Math.max(...
|
|
457
|
+
const l = Math.max(...W.value.map((t) => t.value)), o = W.value.map((t) => t.value / l);
|
|
458
458
|
return gl({
|
|
459
459
|
series: o,
|
|
460
460
|
center: {
|
|
@@ -465,7 +465,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
465
465
|
hasGhost: T.value
|
|
466
466
|
});
|
|
467
467
|
});
|
|
468
|
-
function
|
|
468
|
+
function ve(l) {
|
|
469
469
|
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
470
470
|
}
|
|
471
471
|
function el(l) {
|
|
@@ -474,7 +474,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
474
474
|
function D(l) {
|
|
475
475
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function Me(l, o) {
|
|
478
478
|
const t = l.value / tl(o);
|
|
479
479
|
return isNaN(t) ? 0 : V(
|
|
480
480
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
@@ -490,28 +490,28 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
490
490
|
function tl(l) {
|
|
491
491
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
492
492
|
}
|
|
493
|
-
const
|
|
494
|
-
function
|
|
495
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }),
|
|
493
|
+
const F = y(() => W.value.map((l) => l.value).reduce((l, o) => l + o, 0)), ze = y(() => F.value / W.value.length), ct = y(() => (l) => te.value ? l.proportion * 100 : l.value / F.value * 100), Oe = p(null), pe = p(!1);
|
|
494
|
+
function de({ datapoint: l, seriesIndex: o }) {
|
|
495
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Pe.value = !1, Y.value = null;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }),
|
|
497
|
+
function ce({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
498
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Oe.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, Pe.value = a, Y.value = o;
|
|
499
499
|
let i = "";
|
|
500
500
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
501
|
-
if (pe.value = !1,
|
|
501
|
+
if (pe.value = !1, Al(c))
|
|
502
502
|
try {
|
|
503
503
|
const m = c({
|
|
504
504
|
seriesIndex: t,
|
|
505
505
|
datapoint: l,
|
|
506
|
-
series:
|
|
506
|
+
series: G.value,
|
|
507
507
|
config: e.value
|
|
508
508
|
});
|
|
509
|
-
typeof m == "string" && (
|
|
509
|
+
typeof m == "string" && (Fe.value = m, pe.value = !0);
|
|
510
510
|
} catch {
|
|
511
511
|
console.warn("Custom format cannot be applied."), pe.value = !1;
|
|
512
512
|
}
|
|
513
513
|
if (!pe.value) {
|
|
514
|
-
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${
|
|
514
|
+
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${Bt.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(
|
|
515
515
|
e.value.style.chart.layout.labels.value.formatter,
|
|
516
516
|
l.value,
|
|
517
517
|
N({
|
|
@@ -542,31 +542,31 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
542
542
|
);
|
|
543
543
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
|
|
544
544
|
}
|
|
545
|
-
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`),
|
|
545
|
+
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), Fe.value = `<div>${i}</div>`;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
function le(l) {
|
|
549
549
|
return e.value.useBlurOnHover && ![null, void 0].includes(Y.value) && Y.value !== l ? `url(#blur_${g.value})` : "";
|
|
550
550
|
}
|
|
551
551
|
const K = y(() => {
|
|
552
|
-
const l =
|
|
552
|
+
const l = W.value.map((t) => ({
|
|
553
553
|
name: t.name,
|
|
554
554
|
color: t.color
|
|
555
|
-
})), o =
|
|
555
|
+
})), o = W.value.map((t) => t.value);
|
|
556
556
|
return { head: l, body: o };
|
|
557
557
|
});
|
|
558
|
-
function
|
|
558
|
+
function ht(l = null) {
|
|
559
559
|
vl(() => {
|
|
560
560
|
const o = K.value.head.map((i, c) => [[
|
|
561
561
|
i.name
|
|
562
|
-
], [K.value.body[c]], [isNaN(K.value.body[c] /
|
|
563
|
-
l ? l(a) :
|
|
562
|
+
], [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 = $l(t);
|
|
563
|
+
l ? l(a) : Cl({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
const _e = y(() => {
|
|
567
567
|
const l = [
|
|
568
568
|
' <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>',
|
|
569
|
-
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
569
|
+
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 }),
|
|
570
570
|
"100%"
|
|
571
571
|
], o = K.value.head.map((i, c) => [
|
|
572
572
|
{
|
|
@@ -574,7 +574,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
574
574
|
name: i.name || "-"
|
|
575
575
|
},
|
|
576
576
|
K.value.body[c],
|
|
577
|
-
isNaN(K.value.body[c] /
|
|
577
|
+
isNaN(K.value.body[c] / F.value) ? "-" : (K.value.body[c] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
578
578
|
]), t = {
|
|
579
579
|
th: {
|
|
580
580
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -598,33 +598,33 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
598
598
|
body: o,
|
|
599
599
|
config: t
|
|
600
600
|
};
|
|
601
|
-
}),
|
|
602
|
-
function
|
|
603
|
-
|
|
601
|
+
}), he = p(!1);
|
|
602
|
+
function yt(l) {
|
|
603
|
+
he.value = l, Qe.value += 1;
|
|
604
604
|
}
|
|
605
|
-
const
|
|
605
|
+
const ft = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
606
606
|
function ll(l) {
|
|
607
607
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
608
608
|
}
|
|
609
609
|
function Q(l, o) {
|
|
610
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
610
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), rt("selectDatapoint", { datapoint: l, index: o });
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function pt() {
|
|
613
613
|
f.value.showTable = !f.value.showTable;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function gt() {
|
|
616
616
|
f.value.dataLabels.show = !f.value.dataLabels.show;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function mt() {
|
|
619
619
|
f.value.showTooltip = !f.value.showTooltip;
|
|
620
620
|
}
|
|
621
621
|
const $e = p(!1);
|
|
622
|
-
function
|
|
622
|
+
function Ne() {
|
|
623
623
|
$e.value = !$e.value;
|
|
624
624
|
}
|
|
625
625
|
async function al({ scale: l = 2 } = {}) {
|
|
626
626
|
if (!E.value) return;
|
|
627
|
-
const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await
|
|
627
|
+
const { width: o, height: t } = E.value.getBoundingClientRect(), a = o / t, { imageUri: i, base64: c } = await zl({ domElement: E.value, base64: !0, img: !0, scale: l });
|
|
628
628
|
return {
|
|
629
629
|
imageUri: i,
|
|
630
630
|
base64: c,
|
|
@@ -637,53 +637,53 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
637
637
|
function ol() {
|
|
638
638
|
if (!be.value) return;
|
|
639
639
|
const { x: l, y: o, width: t, height: a } = be.value.getBBox();
|
|
640
|
-
|
|
640
|
+
ie.value && ie.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
|
|
641
641
|
}
|
|
642
|
-
return
|
|
642
|
+
return Lt({
|
|
643
643
|
autoSize: ol,
|
|
644
644
|
getData: jt,
|
|
645
645
|
getImage: al,
|
|
646
|
-
generatePdf:
|
|
647
|
-
generateCsv:
|
|
648
|
-
generateImage:
|
|
649
|
-
toggleTable:
|
|
650
|
-
toggleLabels:
|
|
651
|
-
toggleTooltip:
|
|
652
|
-
toggleAnnotator:
|
|
653
|
-
toggleFullscreen:
|
|
654
|
-
}), (l, o) => (
|
|
646
|
+
generatePdf: st,
|
|
647
|
+
generateCsv: ht,
|
|
648
|
+
generateImage: nt,
|
|
649
|
+
toggleTable: pt,
|
|
650
|
+
toggleLabels: gt,
|
|
651
|
+
toggleTooltip: mt,
|
|
652
|
+
toggleAnnotator: Ne,
|
|
653
|
+
toggleFullscreen: yt
|
|
654
|
+
}), (l, o) => (n(), r("div", {
|
|
655
655
|
ref_key: "donutChart",
|
|
656
656
|
ref: E,
|
|
657
|
-
class:
|
|
657
|
+
class: Xe(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
658
658
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
659
659
|
id: `donut__${g.value}`,
|
|
660
|
-
onMouseenter:
|
|
661
|
-
onMouseleave:
|
|
660
|
+
onMouseenter: Ut,
|
|
661
|
+
onMouseleave: Wt
|
|
662
662
|
}, [
|
|
663
|
-
e.value.userOptions.buttons.annotator &&
|
|
663
|
+
e.value.userOptions.buttons.annotator && u(ie) ? (n(), ae(u(Nt), {
|
|
664
664
|
key: 0,
|
|
665
665
|
color: e.value.style.chart.color,
|
|
666
666
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
667
667
|
active: $e.value,
|
|
668
|
-
svgRef:
|
|
669
|
-
onClose:
|
|
668
|
+
svgRef: u(ie),
|
|
669
|
+
onClose: Ne
|
|
670
670
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
671
|
-
|
|
672
|
-
Ht.value ? (
|
|
671
|
+
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
672
|
+
Ht.value ? (n(), r("div", {
|
|
673
673
|
key: 1,
|
|
674
674
|
ref_key: "noTitle",
|
|
675
|
-
ref:
|
|
675
|
+
ref: We,
|
|
676
676
|
class: "vue-data-ui-no-title-space",
|
|
677
677
|
style: "height:36px; width: 100%;background:transparent"
|
|
678
678
|
}, null, 512)) : v("", !0),
|
|
679
|
-
e.value.style.chart.title.text ? (
|
|
679
|
+
e.value.style.chart.title.text ? (n(), r("div", {
|
|
680
680
|
key: 2,
|
|
681
681
|
ref_key: "chartTitle",
|
|
682
|
-
ref:
|
|
682
|
+
ref: Ge,
|
|
683
683
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
684
684
|
}, [
|
|
685
|
-
(
|
|
686
|
-
key: `title_${
|
|
685
|
+
(n(), ae(Nl, {
|
|
686
|
+
key: `title_${He.value}`,
|
|
687
687
|
config: {
|
|
688
688
|
title: {
|
|
689
689
|
cy: "donut-div-title",
|
|
@@ -696,14 +696,14 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
696
696
|
}
|
|
697
697
|
}, null, 8, ["config"]))
|
|
698
698
|
], 512)) : v("", !0),
|
|
699
|
-
e.value.userOptions.show && me.value && (
|
|
699
|
+
e.value.userOptions.show && me.value && (u(tt) || u(Ie)) ? (n(), ae(u(Xt), {
|
|
700
700
|
ref_key: "details",
|
|
701
|
-
ref:
|
|
702
|
-
key: `user_option_${
|
|
701
|
+
ref: Rt,
|
|
702
|
+
key: `user_option_${Qe.value}`,
|
|
703
703
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
704
704
|
color: e.value.style.chart.color,
|
|
705
|
-
isPrinting:
|
|
706
|
-
isImaging:
|
|
705
|
+
isPrinting: u(at),
|
|
706
|
+
isImaging: u(ot),
|
|
707
707
|
uid: g.value,
|
|
708
708
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
709
709
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -712,7 +712,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
712
712
|
hasTable: e.value.userOptions.buttons.table,
|
|
713
713
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
714
714
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
715
|
-
isFullscreen:
|
|
715
|
+
isFullscreen: he.value,
|
|
716
716
|
chartElement: E.value,
|
|
717
717
|
position: e.value.userOptions.position,
|
|
718
718
|
callbacks: e.value.userOptions.callbacks,
|
|
@@ -721,97 +721,97 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
721
721
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
722
722
|
isAnnotation: $e.value,
|
|
723
723
|
printScale: e.value.userOptions.print.scale,
|
|
724
|
-
onToggleFullscreen:
|
|
725
|
-
onGeneratePdf:
|
|
726
|
-
onGenerateCsv:
|
|
727
|
-
onGenerateImage:
|
|
728
|
-
onToggleTable:
|
|
729
|
-
onToggleLabels:
|
|
730
|
-
onToggleTooltip:
|
|
731
|
-
onToggleAnnotator:
|
|
724
|
+
onToggleFullscreen: yt,
|
|
725
|
+
onGeneratePdf: u(st),
|
|
726
|
+
onGenerateCsv: ht,
|
|
727
|
+
onGenerateImage: u(nt),
|
|
728
|
+
onToggleTable: pt,
|
|
729
|
+
onToggleLabels: gt,
|
|
730
|
+
onToggleTooltip: mt,
|
|
731
|
+
onToggleAnnotator: Ne,
|
|
732
732
|
style: $({
|
|
733
|
-
visibility:
|
|
733
|
+
visibility: u(tt) ? u(Ie) ? "visible" : "hidden" : "visible"
|
|
734
734
|
})
|
|
735
|
-
},
|
|
735
|
+
}, kt({ _: 2 }, [
|
|
736
736
|
l.$slots.menuIcon ? {
|
|
737
737
|
name: "menuIcon",
|
|
738
738
|
fn: A(({ isOpen: t, color: a }) => [
|
|
739
|
-
|
|
739
|
+
b(l.$slots, "menuIcon", oe(se({ isOpen: t, color: a })), void 0, !0)
|
|
740
740
|
]),
|
|
741
741
|
key: "0"
|
|
742
742
|
} : void 0,
|
|
743
743
|
l.$slots.optionTooltip ? {
|
|
744
744
|
name: "optionTooltip",
|
|
745
745
|
fn: A(() => [
|
|
746
|
-
|
|
746
|
+
b(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
747
747
|
]),
|
|
748
748
|
key: "1"
|
|
749
749
|
} : void 0,
|
|
750
750
|
l.$slots.optionPdf ? {
|
|
751
751
|
name: "optionPdf",
|
|
752
752
|
fn: A(() => [
|
|
753
|
-
|
|
753
|
+
b(l.$slots, "optionPdf", {}, void 0, !0)
|
|
754
754
|
]),
|
|
755
755
|
key: "2"
|
|
756
756
|
} : void 0,
|
|
757
757
|
l.$slots.optionCsv ? {
|
|
758
758
|
name: "optionCsv",
|
|
759
759
|
fn: A(() => [
|
|
760
|
-
|
|
760
|
+
b(l.$slots, "optionCsv", {}, void 0, !0)
|
|
761
761
|
]),
|
|
762
762
|
key: "3"
|
|
763
763
|
} : void 0,
|
|
764
764
|
l.$slots.optionImg ? {
|
|
765
765
|
name: "optionImg",
|
|
766
766
|
fn: A(() => [
|
|
767
|
-
|
|
767
|
+
b(l.$slots, "optionImg", {}, void 0, !0)
|
|
768
768
|
]),
|
|
769
769
|
key: "4"
|
|
770
770
|
} : void 0,
|
|
771
771
|
l.$slots.optionTable ? {
|
|
772
772
|
name: "optionTable",
|
|
773
773
|
fn: A(() => [
|
|
774
|
-
|
|
774
|
+
b(l.$slots, "optionTable", {}, void 0, !0)
|
|
775
775
|
]),
|
|
776
776
|
key: "5"
|
|
777
777
|
} : void 0,
|
|
778
778
|
l.$slots.optionLabels ? {
|
|
779
779
|
name: "optionLabels",
|
|
780
780
|
fn: A(() => [
|
|
781
|
-
|
|
781
|
+
b(l.$slots, "optionLabels", {}, void 0, !0)
|
|
782
782
|
]),
|
|
783
783
|
key: "6"
|
|
784
784
|
} : void 0,
|
|
785
785
|
l.$slots.optionFullscreen ? {
|
|
786
786
|
name: "optionFullscreen",
|
|
787
787
|
fn: A(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
788
|
-
|
|
788
|
+
b(l.$slots, "optionFullscreen", oe(se({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
789
789
|
]),
|
|
790
790
|
key: "7"
|
|
791
791
|
} : void 0,
|
|
792
792
|
l.$slots.optionAnnotator ? {
|
|
793
793
|
name: "optionAnnotator",
|
|
794
794
|
fn: A(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
795
|
-
|
|
795
|
+
b(l.$slots, "optionAnnotator", oe(se({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
796
796
|
]),
|
|
797
797
|
key: "8"
|
|
798
798
|
} : void 0
|
|
799
799
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
800
|
-
(
|
|
800
|
+
(n(), r("svg", {
|
|
801
801
|
ref_key: "svgRef",
|
|
802
|
-
ref:
|
|
803
|
-
xmlns:
|
|
804
|
-
class:
|
|
802
|
+
ref: ie,
|
|
803
|
+
xmlns: u(ml),
|
|
804
|
+
class: Xe({ "vue-data-ui-fullscreen--on": he.value, "vue-data-ui-fulscreen--off": !he.value, "vue-data-ui-svg": !0 }),
|
|
805
805
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
806
|
-
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
806
|
+
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${lt.value.css}`)
|
|
807
807
|
}, [
|
|
808
808
|
h("g", {
|
|
809
809
|
ref_key: "G",
|
|
810
810
|
ref: be,
|
|
811
811
|
class: "vue-data-ui-g"
|
|
812
812
|
}, [
|
|
813
|
-
|
|
814
|
-
l.$slots["chart-background"] ? (
|
|
813
|
+
De(u(Ot)),
|
|
814
|
+
l.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
815
815
|
key: 0,
|
|
816
816
|
x: 0,
|
|
817
817
|
y: 0,
|
|
@@ -821,36 +821,36 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
821
821
|
pointerEvents: "none"
|
|
822
822
|
}
|
|
823
823
|
}, [
|
|
824
|
-
|
|
825
|
-
], 8,
|
|
826
|
-
e.value.type === "classic" && !isNaN(ee.value / _.value) ? (
|
|
827
|
-
e.value.style.chart.useGradient ? (
|
|
824
|
+
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
825
|
+
], 8, Vl)) : v("", !0),
|
|
826
|
+
e.value.type === "classic" && !isNaN(ee.value / _.value) ? (n(), r("defs", El, [
|
|
827
|
+
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
828
828
|
key: 0,
|
|
829
829
|
id: `gradient_${g.value}`
|
|
830
830
|
}, [
|
|
831
831
|
h("stop", {
|
|
832
832
|
offset: "0%",
|
|
833
|
-
"stop-color":
|
|
833
|
+
"stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
834
834
|
"stop-opacity": "0"
|
|
835
|
-
}, null, 8,
|
|
835
|
+
}, null, 8, Gl),
|
|
836
836
|
h("stop", {
|
|
837
837
|
offset: `${(1 - ee.value / _.value) * 100}%`,
|
|
838
|
-
"stop-color":
|
|
838
|
+
"stop-color": u(Ce)("#FFFFFF", 0),
|
|
839
839
|
"stop-opacity": "0"
|
|
840
|
-
}, null, 8,
|
|
840
|
+
}, null, 8, ql),
|
|
841
841
|
h("stop", {
|
|
842
842
|
offset: `${(1 - ee.value / _.value / 2) * 100}%`,
|
|
843
|
-
"stop-color":
|
|
843
|
+
"stop-color": u(Ce)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
844
844
|
}, null, 8, Ul),
|
|
845
845
|
h("stop", {
|
|
846
846
|
offset: "100%",
|
|
847
|
-
"stop-color":
|
|
847
|
+
"stop-color": u(Ce)(e.value.style.chart.backgroundColor, 0),
|
|
848
848
|
"stop-opacity": "0"
|
|
849
|
-
}, null, 8,
|
|
849
|
+
}, null, 8, Wl)
|
|
850
850
|
], 8, Rl)) : v("", !0)
|
|
851
851
|
])) : v("", !0),
|
|
852
|
-
e.value.type === "polar" ? (
|
|
853
|
-
(
|
|
852
|
+
e.value.type === "polar" ? (n(), r("defs", Hl, [
|
|
853
|
+
(n(!0), r(w, null, L(d.value, (t, a) => (n(), r("radialGradient", {
|
|
854
854
|
id: `polar_gradient_${a}_${g.value}`,
|
|
855
855
|
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
856
856
|
cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
|
|
@@ -858,14 +858,14 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
858
858
|
}, [
|
|
859
859
|
h("stop", {
|
|
860
860
|
offset: "0%",
|
|
861
|
-
"stop-color":
|
|
861
|
+
"stop-color": u(bl)(S.value[a].color, 0.05),
|
|
862
862
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
863
|
-
}, null, 8,
|
|
863
|
+
}, null, 8, Jl),
|
|
864
864
|
h("stop", {
|
|
865
865
|
offset: "100%",
|
|
866
866
|
"stop-color": S.value[a].color
|
|
867
|
-
}, null, 8,
|
|
868
|
-
], 8,
|
|
867
|
+
}, null, 8, Kl)
|
|
868
|
+
], 8, jl))), 256))
|
|
869
869
|
])) : v("", !0),
|
|
870
870
|
h("defs", null, [
|
|
871
871
|
h("filter", {
|
|
@@ -879,12 +879,12 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
879
879
|
in: "SourceGraphic",
|
|
880
880
|
stdDeviation: 2,
|
|
881
881
|
id: `blur_std_${g.value}`
|
|
882
|
-
}, null, 8,
|
|
882
|
+
}, null, 8, Zl),
|
|
883
883
|
o[5] || (o[5] = h("feColorMatrix", {
|
|
884
884
|
type: "saturate",
|
|
885
885
|
values: "0"
|
|
886
886
|
}, null, -1))
|
|
887
|
-
], 8,
|
|
887
|
+
], 8, Ql),
|
|
888
888
|
h("filter", {
|
|
889
889
|
id: `shadow_${g.value}`,
|
|
890
890
|
"color-interpolation-filters": "sRGB"
|
|
@@ -895,8 +895,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
895
895
|
stdDeviation: "10",
|
|
896
896
|
"flood-opacity": "0.5",
|
|
897
897
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
898
|
-
}, null, 8,
|
|
899
|
-
], 8,
|
|
898
|
+
}, null, 8, ta)
|
|
899
|
+
], 8, ea),
|
|
900
900
|
h("filter", {
|
|
901
901
|
id: `drop_shadow_${g.value}`,
|
|
902
902
|
"color-interpolation-filters": "sRGB",
|
|
@@ -911,25 +911,25 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
911
911
|
stdDeviation: "3",
|
|
912
912
|
"flood-opacity": "1",
|
|
913
913
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
914
|
-
}, null, 8,
|
|
915
|
-
], 8,
|
|
914
|
+
}, null, 8, aa)
|
|
915
|
+
], 8, la)
|
|
916
916
|
]),
|
|
917
|
-
e.value.type === "classic" ? (
|
|
918
|
-
D(t) && f.value.dataLabels.show ? (
|
|
917
|
+
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
918
|
+
D(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
919
919
|
key: 0,
|
|
920
|
-
d:
|
|
920
|
+
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),
|
|
921
921
|
stroke: t.color,
|
|
922
922
|
"stroke-width": "1",
|
|
923
923
|
"stroke-linecap": "round",
|
|
924
924
|
"stroke-linejoin": "round",
|
|
925
925
|
fill: "none",
|
|
926
926
|
filter: le(a)
|
|
927
|
-
}, null, 8,
|
|
927
|
+
}, null, 8, oa)) : v("", !0)
|
|
928
928
|
]))), 256)) : v("", !0),
|
|
929
|
-
e.value.type === "polar" ? (
|
|
930
|
-
D(t) && f.value.dataLabels.show ? (
|
|
929
|
+
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", null, [
|
|
930
|
+
D(t) && f.value.dataLabels.show ? (n(), r("path", {
|
|
931
931
|
key: 0,
|
|
932
|
-
d: `M ${
|
|
932
|
+
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}`,
|
|
933
933
|
stroke: t.color,
|
|
934
934
|
"stroke-width": "1",
|
|
935
935
|
"stroke-linecap": "round",
|
|
@@ -939,60 +939,60 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
939
939
|
style: $({
|
|
940
940
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
941
941
|
})
|
|
942
|
-
}, null, 12,
|
|
942
|
+
}, null, 12, sa)) : v("", !0)
|
|
943
943
|
]))), 256)) : v("", !0),
|
|
944
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (
|
|
944
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
|
|
945
945
|
key: 5,
|
|
946
946
|
cx: s.value.width / 2,
|
|
947
947
|
cy: s.value.height / 2,
|
|
948
948
|
r: _.value <= 0 ? 10 : _.value,
|
|
949
949
|
fill: e.value.style.chart.backgroundColor,
|
|
950
950
|
filter: `url(#shadow_${g.value})`
|
|
951
|
-
}, null, 8,
|
|
952
|
-
l.$slots.pattern ? (
|
|
953
|
-
(
|
|
951
|
+
}, null, 8, na)) : v("", !0),
|
|
952
|
+
l.$slots.pattern ? (n(), r("g", ua, [
|
|
953
|
+
(n(!0), r(w, null, L(Re.dataset, (t, a) => (n(), r("defs", {
|
|
954
954
|
key: `pattern-${t.patternIndex}`
|
|
955
955
|
}, [
|
|
956
|
-
|
|
956
|
+
b(l.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
|
|
957
957
|
]))), 128))
|
|
958
958
|
])) : v("", !0),
|
|
959
|
-
|
|
960
|
-
(
|
|
959
|
+
F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
|
|
960
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
961
961
|
stroke: e.value.style.chart.backgroundColor,
|
|
962
962
|
d: t.arcSlice,
|
|
963
963
|
fill: "#FFFFFF"
|
|
964
|
-
}, null, 8,
|
|
965
|
-
(
|
|
964
|
+
}, null, 8, ra))), 256)),
|
|
965
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
966
966
|
class: "vue-ui-donut-arc-path",
|
|
967
967
|
d: t.arcSlice,
|
|
968
968
|
fill: t.color,
|
|
969
969
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
970
970
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
971
971
|
filter: le(a)
|
|
972
|
-
}, null, 8,
|
|
973
|
-
l.$slots.pattern ? (
|
|
974
|
-
(
|
|
972
|
+
}, null, 8, ia))), 256)),
|
|
973
|
+
l.$slots.pattern ? (n(), r("g", va, [
|
|
974
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
975
975
|
class: "vue-ui-donut-arc-path",
|
|
976
976
|
d: t.arcSlice,
|
|
977
977
|
fill: `url(#${t.pattern})`,
|
|
978
978
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
979
979
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
980
980
|
filter: le(a)
|
|
981
|
-
}, null, 8,
|
|
981
|
+
}, null, 8, da))), 256))
|
|
982
982
|
])) : v("", !0)
|
|
983
983
|
], 64)) : v("", !0),
|
|
984
|
-
|
|
985
|
-
S.value.length > 1 ? (
|
|
986
|
-
(
|
|
984
|
+
F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
|
|
985
|
+
S.value.length > 1 ? (n(), r("g", ca, [
|
|
986
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
987
987
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
988
988
|
d: d.value[a].path,
|
|
989
989
|
fill: "#FFFFFF",
|
|
990
990
|
style: $({
|
|
991
991
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
992
992
|
})
|
|
993
|
-
}, null, 12,
|
|
994
|
-
e.value.style.chart.layout.donut.useShadow ? (
|
|
995
|
-
(
|
|
993
|
+
}, null, 12, ha))), 256)),
|
|
994
|
+
e.value.style.chart.layout.donut.useShadow ? (n(), r("g", ya, [
|
|
995
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
996
996
|
class: "vue-ui-donut-arc-path",
|
|
997
997
|
d: d.value[a].path,
|
|
998
998
|
fill: "transparent",
|
|
@@ -1002,10 +1002,10 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1002
1002
|
style: $({
|
|
1003
1003
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1004
1004
|
})
|
|
1005
|
-
}, null, 12,
|
|
1005
|
+
}, null, 12, fa))), 256))
|
|
1006
1006
|
])) : v("", !0),
|
|
1007
|
-
l.$slots.pattern ? (
|
|
1008
|
-
(
|
|
1007
|
+
l.$slots.pattern ? (n(), r("g", pa, [
|
|
1008
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1009
1009
|
class: "vue-ui-donut-arc-path",
|
|
1010
1010
|
d: d.value[a].path,
|
|
1011
1011
|
fill: `url(#${t.pattern})`,
|
|
@@ -1016,9 +1016,9 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1016
1016
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1017
1017
|
transformOrigin: "center"
|
|
1018
1018
|
})
|
|
1019
|
-
}, null, 12,
|
|
1019
|
+
}, null, 12, ga))), 256))
|
|
1020
1020
|
])) : v("", !0),
|
|
1021
|
-
(
|
|
1021
|
+
(n(!0), r(w, null, L(X.value, (t, a) => (n(), r("path", {
|
|
1022
1022
|
class: "vue-ui-donut-arc-path",
|
|
1023
1023
|
d: d.value[a].path,
|
|
1024
1024
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${g.value})` : t.color,
|
|
@@ -1028,9 +1028,9 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1028
1028
|
style: $({
|
|
1029
1029
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1030
1030
|
})
|
|
1031
|
-
}, null, 12,
|
|
1032
|
-
])) : (
|
|
1033
|
-
l.$slots.pattern ? (
|
|
1031
|
+
}, null, 12, ma))), 256))
|
|
1032
|
+
])) : (n(), r("g", ba, [
|
|
1033
|
+
l.$slots.pattern ? (n(), r("circle", {
|
|
1034
1034
|
key: 0,
|
|
1035
1035
|
cx: s.value.width / 2,
|
|
1036
1036
|
cy: s.value.height / 2,
|
|
@@ -1038,7 +1038,7 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1038
1038
|
fill: `url(#pattern_${g.value}_${S.value[0].patternIndex})`,
|
|
1039
1039
|
stroke: e.value.style.chart.backgroundColor,
|
|
1040
1040
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1041
|
-
}, null, 8,
|
|
1041
|
+
}, null, 8, wa)) : v("", !0),
|
|
1042
1042
|
h("circle", {
|
|
1043
1043
|
cx: s.value.width / 2,
|
|
1044
1044
|
cy: s.value.height / 2,
|
|
@@ -1046,17 +1046,17 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1046
1046
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : S.value[0].color,
|
|
1047
1047
|
stroke: e.value.style.chart.backgroundColor,
|
|
1048
1048
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1049
|
-
}, null, 8,
|
|
1049
|
+
}, null, 8, ka)
|
|
1050
1050
|
]))
|
|
1051
|
-
], 64)) : (
|
|
1052
|
-
e.value.type === "classic" && !Qt.value ? (
|
|
1053
|
-
(
|
|
1051
|
+
], 64)) : (n(), r(w, { key: 9 }, [
|
|
1052
|
+
e.value.type === "classic" && !Qt.value ? (n(), r("g", xa, [
|
|
1053
|
+
(n(!0), r(w, null, L(Zt.value, (t, a) => (n(), r("path", {
|
|
1054
1054
|
class: "vue-ui-donut-arc-path",
|
|
1055
1055
|
d: t.arcSlice,
|
|
1056
1056
|
fill: t.color,
|
|
1057
1057
|
stroke: e.value.style.chart.backgroundColor,
|
|
1058
1058
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1059
|
-
}, null, 8,
|
|
1059
|
+
}, null, 8, _a))), 256))
|
|
1060
1060
|
])) : v("", !0),
|
|
1061
1061
|
h("circle", {
|
|
1062
1062
|
cx: s.value.width / 2,
|
|
@@ -1064,9 +1064,9 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1064
1064
|
r: _.value <= 0 ? 10 : _.value,
|
|
1065
1065
|
fill: "transparent",
|
|
1066
1066
|
stroke: e.value.style.chart.backgroundColor
|
|
1067
|
-
}, null, 8,
|
|
1067
|
+
}, null, 8, $a)
|
|
1068
1068
|
], 64)),
|
|
1069
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (
|
|
1069
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
|
|
1070
1070
|
key: 10,
|
|
1071
1071
|
cx: s.value.width / 2,
|
|
1072
1072
|
cy: s.value.height / 2,
|
|
@@ -1075,55 +1075,55 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1075
1075
|
_.value <= 0 ? 10 : _.value
|
|
1076
1076
|
),
|
|
1077
1077
|
fill: `url(#gradient_${g.value})`
|
|
1078
|
-
}, null, 8,
|
|
1078
|
+
}, null, 8, Ca)) : v("", !0),
|
|
1079
1079
|
h("circle", {
|
|
1080
1080
|
ref_key: "circle_hollow",
|
|
1081
|
-
ref:
|
|
1081
|
+
ref: Et,
|
|
1082
1082
|
style: { pointerEvents: "none" },
|
|
1083
1083
|
fill: "none",
|
|
1084
1084
|
cx: s.value.width / 2,
|
|
1085
1085
|
cy: s.value.height / 2,
|
|
1086
1086
|
r: Math.max(0.1, ee.value * 1.7)
|
|
1087
|
-
}, null, 8,
|
|
1088
|
-
|
|
1089
|
-
S.value.length > 1 || e.value.type === "classic" ? (
|
|
1090
|
-
(
|
|
1087
|
+
}, null, 8, Aa),
|
|
1088
|
+
F.value ? (n(), r(w, { key: 11 }, [
|
|
1089
|
+
S.value.length > 1 || e.value.type === "classic" ? (n(), r("g", Ta, [
|
|
1090
|
+
(n(!0), r(w, null, L(S.value.filter((t) => !t.ghost), (t, a) => (n(), r("path", {
|
|
1091
1091
|
d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
|
|
1092
1092
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1093
1093
|
fill: Y.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1094
|
-
onMouseenter: (i) =>
|
|
1094
|
+
onMouseenter: (i) => ce({
|
|
1095
1095
|
datapoint: t,
|
|
1096
1096
|
relativeIndex: a,
|
|
1097
1097
|
seriesIndex: t.seriesIndex,
|
|
1098
1098
|
show: !0
|
|
1099
1099
|
}),
|
|
1100
|
-
onMouseleave: (i) =>
|
|
1100
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1101
1101
|
onClick: (i) => Q(t, a)
|
|
1102
|
-
}, null, 40,
|
|
1103
|
-
])) : (
|
|
1102
|
+
}, null, 40, Sa))), 256))
|
|
1103
|
+
])) : (n(), r("g", Pa, [
|
|
1104
1104
|
h("circle", {
|
|
1105
1105
|
cx: s.value.width / 2,
|
|
1106
1106
|
cy: s.value.height / 2,
|
|
1107
1107
|
r: _.value,
|
|
1108
1108
|
fill: "transparent",
|
|
1109
|
-
onMouseenter: o[0] || (o[0] = (t) =>
|
|
1109
|
+
onMouseenter: o[0] || (o[0] = (t) => ce({
|
|
1110
1110
|
datapoint: S.value[0],
|
|
1111
1111
|
relativeIndex: 0,
|
|
1112
1112
|
seriesIndex: S.value[0].seriesIndex,
|
|
1113
1113
|
show: !0
|
|
1114
1114
|
})),
|
|
1115
|
-
onMouseleave: o[1] || (o[1] = (t) =>
|
|
1115
|
+
onMouseleave: o[1] || (o[1] = (t) => de({ datapoint: S.value[0], seriesIndex: S.value[0].seriesIndex })),
|
|
1116
1116
|
onClick: o[2] || (o[2] = (t) => Q(S.value[0], l.i))
|
|
1117
|
-
}, null, 40,
|
|
1117
|
+
}, null, 40, Fa)
|
|
1118
1118
|
]))
|
|
1119
1119
|
], 64)) : v("", !0),
|
|
1120
|
-
e.value.type === "classic" ? (
|
|
1120
|
+
e.value.type === "classic" ? (n(), r("g", {
|
|
1121
1121
|
key: 12,
|
|
1122
1122
|
ref_key: "G_hollow",
|
|
1123
|
-
ref:
|
|
1123
|
+
ref: Vt,
|
|
1124
1124
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1125
1125
|
}, [
|
|
1126
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1126
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1127
1127
|
key: 0,
|
|
1128
1128
|
"text-anchor": "middle",
|
|
1129
1129
|
x: s.value.width / 2,
|
|
@@ -1131,8 +1131,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1131
1131
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1132
1132
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1133
1133
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1134
|
-
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
1135
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1134
|
+
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13, La)) : v("", !0),
|
|
1135
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1136
1136
|
key: 1,
|
|
1137
1137
|
"text-anchor": "middle",
|
|
1138
1138
|
x: s.value.width / 2,
|
|
@@ -1140,16 +1140,16 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1140
1140
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1141
1141
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1142
1142
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1143
|
-
}, I(
|
|
1143
|
+
}, I(u(V)(
|
|
1144
1144
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1145
|
-
|
|
1146
|
-
|
|
1145
|
+
F.value,
|
|
1146
|
+
u(N)({
|
|
1147
1147
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1148
|
-
v:
|
|
1148
|
+
v: F.value,
|
|
1149
1149
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1150
1150
|
})
|
|
1151
|
-
)), 13,
|
|
1152
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1151
|
+
)), 13, Ia)) : v("", !0),
|
|
1152
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1153
1153
|
key: 2,
|
|
1154
1154
|
"text-anchor": "middle",
|
|
1155
1155
|
x: s.value.width / 2,
|
|
@@ -1157,8 +1157,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1157
1157
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1158
1158
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1159
1159
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1160
|
-
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
1161
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1160
|
+
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13, Ma)) : v("", !0),
|
|
1161
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1162
1162
|
key: 3,
|
|
1163
1163
|
"text-anchor": "middle",
|
|
1164
1164
|
x: s.value.width / 2,
|
|
@@ -1166,144 +1166,144 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1166
1166
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1167
1167
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1168
1168
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1169
|
-
}, I(te.value || T.value ? "--" :
|
|
1169
|
+
}, I(te.value || T.value ? "--" : u(V)(
|
|
1170
1170
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1171
|
-
|
|
1172
|
-
|
|
1171
|
+
ze.value,
|
|
1172
|
+
u(N)({
|
|
1173
1173
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1174
|
-
v:
|
|
1174
|
+
v: ze.value,
|
|
1175
1175
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1176
1176
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1177
1177
|
})
|
|
1178
|
-
)), 13,
|
|
1178
|
+
)), 13, za)) : v("", !0)
|
|
1179
1179
|
], 512)) : v("", !0),
|
|
1180
|
-
(
|
|
1180
|
+
(n(!0), r(w, null, L(X.value.filter((t) => !t.ghost), (t, a) => (n(), r("g", {
|
|
1181
1181
|
filter: le(a),
|
|
1182
|
-
class:
|
|
1182
|
+
class: Xe({ animated: e.value.useCssAnimation }),
|
|
1183
1183
|
key: t.seriesIndex
|
|
1184
1184
|
}, [
|
|
1185
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
1186
|
-
(
|
|
1187
|
-
x:
|
|
1188
|
-
y:
|
|
1185
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", Na, [
|
|
1186
|
+
(n(), r("foreignObject", {
|
|
1187
|
+
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,
|
|
1188
|
+
y: u(fe)(t) - (ft.value ? 20 : 0),
|
|
1189
1189
|
width: "120",
|
|
1190
1190
|
height: "60",
|
|
1191
1191
|
style: { overflow: "visible" }
|
|
1192
1192
|
}, [
|
|
1193
1193
|
h("div", null, [
|
|
1194
|
-
|
|
1194
|
+
b(l.$slots, "dataLabel", xt({ ref_for: !0 }, {
|
|
1195
1195
|
datapoint: t,
|
|
1196
1196
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a,
|
|
1197
|
-
isSafari:
|
|
1197
|
+
isSafari: ft.value,
|
|
1198
1198
|
isVisible: D(t) && f.value.dataLabels.show,
|
|
1199
|
-
textAlign:
|
|
1200
|
-
flexAlign:
|
|
1201
|
-
percentage:
|
|
1199
|
+
textAlign: u(x)(t, !0, 16, !0).anchor,
|
|
1200
|
+
flexAlign: u(x)(t, !0, 16).anchor,
|
|
1201
|
+
percentage: Me(t, X.value)
|
|
1202
1202
|
}), void 0, !0)
|
|
1203
1203
|
])
|
|
1204
|
-
], 8,
|
|
1205
|
-
])) : (
|
|
1206
|
-
e.value.type === "classic" ? (
|
|
1207
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1204
|
+
], 8, Ya))
|
|
1205
|
+
])) : (n(), r("g", Xa, [
|
|
1206
|
+
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1207
|
+
D(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
1208
1208
|
key: 0,
|
|
1209
|
-
cx:
|
|
1210
|
-
cy:
|
|
1209
|
+
cx: u(x)(t).x,
|
|
1210
|
+
cy: u(fe)(t) - 3.5,
|
|
1211
1211
|
fill: t.color,
|
|
1212
1212
|
stroke: e.value.style.chart.backgroundColor,
|
|
1213
1213
|
"stroke-width": 1,
|
|
1214
1214
|
r: 3,
|
|
1215
1215
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${g.value})`,
|
|
1216
1216
|
onClick: (i) => Q(t, a),
|
|
1217
|
-
onMouseenter: (i) =>
|
|
1217
|
+
onMouseenter: (i) => ce({
|
|
1218
1218
|
datapoint: t,
|
|
1219
1219
|
relativeIndex: a,
|
|
1220
1220
|
seriesIndex: t.seriesIndex,
|
|
1221
1221
|
show: !0
|
|
1222
1222
|
}),
|
|
1223
|
-
onMouseleave: (i) =>
|
|
1224
|
-
}, null, 40,
|
|
1223
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1224
|
+
}, null, 40, Da)) : v("", !0)
|
|
1225
1225
|
], 64)) : v("", !0),
|
|
1226
|
-
e.value.type === "polar" ? (
|
|
1227
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1226
|
+
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1227
|
+
D(t) && f.value.dataLabels.show ? (n(), r("circle", {
|
|
1228
1228
|
key: 0,
|
|
1229
|
-
cx:
|
|
1230
|
-
cy:
|
|
1229
|
+
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,
|
|
1230
|
+
cy: 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,
|
|
1231
1231
|
fill: t.color,
|
|
1232
1232
|
stroke: e.value.style.chart.backgroundColor,
|
|
1233
1233
|
"stroke-width": 1,
|
|
1234
1234
|
r: 3,
|
|
1235
1235
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(Y.value) || Y.value === a ? "" : `url(#blur_${g.value})`,
|
|
1236
1236
|
onClick: (i) => Q(t, a),
|
|
1237
|
-
onMouseenter: (i) =>
|
|
1237
|
+
onMouseenter: (i) => ce({
|
|
1238
1238
|
datapoint: t,
|
|
1239
1239
|
relativeIndex: a,
|
|
1240
1240
|
seriesIndex: t.seriesIndex,
|
|
1241
1241
|
show: !0
|
|
1242
1242
|
}),
|
|
1243
|
-
onMouseleave: (i) =>
|
|
1243
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1244
1244
|
style: $({
|
|
1245
1245
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1246
1246
|
})
|
|
1247
|
-
}, null, 44,
|
|
1247
|
+
}, null, 44, Ba)) : v("", !0)
|
|
1248
1248
|
], 64)) : v("", !0),
|
|
1249
|
-
e.value.type === "classic" ? (
|
|
1250
|
-
|
|
1249
|
+
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1250
|
+
_t(h("text", {
|
|
1251
1251
|
class: "vue-data-ui-datalabel-value",
|
|
1252
|
-
"text-anchor":
|
|
1253
|
-
x:
|
|
1254
|
-
y:
|
|
1252
|
+
"text-anchor": u(x)(t, !0, 12).anchor,
|
|
1253
|
+
x: u(x)(t, !0, 12).x,
|
|
1254
|
+
y: u(fe)(t),
|
|
1255
1255
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1256
1256
|
"font-size": we.value + "px",
|
|
1257
1257
|
style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1258
1258
|
onClick: (i) => Q(t, a),
|
|
1259
|
-
onMouseenter: (i) =>
|
|
1259
|
+
onMouseenter: (i) => ce({
|
|
1260
1260
|
datapoint: t,
|
|
1261
1261
|
relativeIndex: a,
|
|
1262
1262
|
seriesIndex: t.seriesIndex,
|
|
1263
1263
|
show: !0
|
|
1264
1264
|
}),
|
|
1265
|
-
onMouseleave: (i) =>
|
|
1266
|
-
}, I(
|
|
1265
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1266
|
+
}, I(Me(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
|
|
1267
1267
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1268
1268
|
t.value,
|
|
1269
|
-
|
|
1269
|
+
u(N)({
|
|
1270
1270
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1271
1271
|
v: t.value,
|
|
1272
1272
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1273
1273
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1274
1274
|
}),
|
|
1275
1275
|
{ datapoint: t }
|
|
1276
|
-
)})` : ""), 45,
|
|
1277
|
-
[
|
|
1276
|
+
)})` : ""), 45, Va), [
|
|
1277
|
+
[$t, D(t) && f.value.dataLabels.show]
|
|
1278
1278
|
]),
|
|
1279
|
-
|
|
1279
|
+
_t(h("text", {
|
|
1280
1280
|
class: "vue-data-ui-datalabel-name",
|
|
1281
|
-
"text-anchor":
|
|
1282
|
-
x:
|
|
1283
|
-
y:
|
|
1281
|
+
"text-anchor": u(x)(t).anchor,
|
|
1282
|
+
x: u(x)(t, !0, 12).x,
|
|
1283
|
+
y: u(fe)(t) + J.value * 1.2,
|
|
1284
1284
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1285
1285
|
"font-size": J.value + "px",
|
|
1286
1286
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1287
1287
|
onClick: (i) => Q(t, a),
|
|
1288
|
-
innerHTML:
|
|
1288
|
+
innerHTML: u(St)({
|
|
1289
1289
|
content: t.name,
|
|
1290
1290
|
fontSize: J.value,
|
|
1291
1291
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1292
|
-
x:
|
|
1293
|
-
y:
|
|
1292
|
+
x: u(x)(t, !0, 12).x,
|
|
1293
|
+
y: u(fe)(t) + J.value
|
|
1294
1294
|
})
|
|
1295
|
-
}, null, 12,
|
|
1296
|
-
[
|
|
1295
|
+
}, null, 12, Ea), [
|
|
1296
|
+
[$t, D(t) && f.value.dataLabels.show]
|
|
1297
1297
|
]),
|
|
1298
|
-
o[6] || (o[6] =
|
|
1298
|
+
o[6] || (o[6] = Be(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1299
1299
|
], 64)) : v("", !0),
|
|
1300
|
-
e.value.type === "polar" ? (
|
|
1301
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1300
|
+
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1301
|
+
D(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
1302
1302
|
key: 0,
|
|
1303
1303
|
class: "vue-data-ui-datalabel-value",
|
|
1304
|
-
"text-anchor":
|
|
1305
|
-
x:
|
|
1306
|
-
y:
|
|
1304
|
+
"text-anchor": ve(d.value[a].middlePoint),
|
|
1305
|
+
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,
|
|
1306
|
+
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,
|
|
1307
1307
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1308
1308
|
"font-size": we.value,
|
|
1309
1309
|
style: $({
|
|
@@ -1311,17 +1311,17 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1311
1311
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1312
1312
|
}),
|
|
1313
1313
|
onClick: (i) => Q(t, a),
|
|
1314
|
-
onMouseenter: (i) =>
|
|
1314
|
+
onMouseenter: (i) => ce({
|
|
1315
1315
|
datapoint: t,
|
|
1316
1316
|
relativeIndex: a,
|
|
1317
1317
|
seriesIndex: t.seriesIndex,
|
|
1318
1318
|
show: !0
|
|
1319
1319
|
}),
|
|
1320
|
-
onMouseleave: (i) =>
|
|
1321
|
-
}, I(
|
|
1320
|
+
onMouseleave: (i) => de({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1321
|
+
}, I(Me(t, X.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${u(V)(
|
|
1322
1322
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1323
1323
|
t.value,
|
|
1324
|
-
|
|
1324
|
+
u(N)({
|
|
1325
1325
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1326
1326
|
v: t.value,
|
|
1327
1327
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1329,12 +1329,12 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1329
1329
|
}),
|
|
1330
1330
|
{ datapoint: t }
|
|
1331
1331
|
)})` : ""), 45, Ra)) : v("", !0),
|
|
1332
|
-
D(t) && f.value.dataLabels.show ? (
|
|
1332
|
+
D(t) && f.value.dataLabels.show ? (n(), r("text", {
|
|
1333
1333
|
key: 1,
|
|
1334
1334
|
class: "vue-data-ui-datalabel-name",
|
|
1335
|
-
"text-anchor":
|
|
1336
|
-
x:
|
|
1337
|
-
y:
|
|
1335
|
+
"text-anchor": ve(d.value[a].middlePoint),
|
|
1336
|
+
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,
|
|
1337
|
+
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,
|
|
1338
1338
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1339
1339
|
"font-size": J.value,
|
|
1340
1340
|
style: $({
|
|
@@ -1342,35 +1342,35 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1342
1342
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1343
1343
|
}),
|
|
1344
1344
|
onClick: (i) => Q(t, a),
|
|
1345
|
-
innerHTML:
|
|
1345
|
+
innerHTML: u(St)({
|
|
1346
1346
|
content: t.name,
|
|
1347
1347
|
fontSize: we.value,
|
|
1348
1348
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1349
|
-
x:
|
|
1350
|
-
y:
|
|
1349
|
+
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,
|
|
1350
|
+
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
|
|
1351
1351
|
})
|
|
1352
|
-
}, null, 12,
|
|
1353
|
-
o[7] || (o[7] =
|
|
1352
|
+
}, null, 12, Ga)) : v("", !0),
|
|
1353
|
+
o[7] || (o[7] = Be(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1354
1354
|
], 64)) : v("", !0)
|
|
1355
1355
|
])),
|
|
1356
|
-
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (
|
|
1357
|
-
D(t) && e.value.type === "classic" ? (
|
|
1356
|
+
f.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (n(), r("g", qa, [
|
|
1357
|
+
D(t) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1358
1358
|
key: 0,
|
|
1359
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1360
|
-
y:
|
|
1359
|
+
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),
|
|
1360
|
+
y: u(fe)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1361
1361
|
width: e.value.style.chart.comments.width,
|
|
1362
1362
|
height: "200",
|
|
1363
1363
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1364
1364
|
}, [
|
|
1365
1365
|
h("div", null, [
|
|
1366
|
-
|
|
1367
|
-
plot: { ...t, textAlign:
|
|
1366
|
+
b(l.$slots, "plot-comment", {
|
|
1367
|
+
plot: { ...t, textAlign: u(x)(t, !0, 16, !0).anchor, flexAlign: u(x)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1368
1368
|
}, void 0, !0)
|
|
1369
1369
|
])
|
|
1370
1370
|
], 8, Ua)) : v("", !0),
|
|
1371
|
-
D(t) && e.value.type === "polar" ? (
|
|
1371
|
+
D(t) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1372
1372
|
key: 1,
|
|
1373
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1373
|
+
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),
|
|
1374
1374
|
y: el(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1375
1375
|
width: e.value.style.chart.comments.width,
|
|
1376
1376
|
height: "200",
|
|
@@ -1381,37 +1381,37 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1381
1381
|
})
|
|
1382
1382
|
}, [
|
|
1383
1383
|
h("div", null, [
|
|
1384
|
-
|
|
1385
|
-
plot: { ...t, textAlign:
|
|
1384
|
+
b(l.$slots, "plot-comment", {
|
|
1385
|
+
plot: { ...t, textAlign: ve(d.value[a].middlePoint), flexAlign: ve(d.value[a].middlePoint), isFirstLoad: T.value }
|
|
1386
1386
|
}, void 0, !0)
|
|
1387
1387
|
])
|
|
1388
|
-
], 12,
|
|
1388
|
+
], 12, Wa)) : v("", !0)
|
|
1389
1389
|
])) : v("", !0)
|
|
1390
|
-
], 10,
|
|
1391
|
-
|
|
1390
|
+
], 10, Oa))), 128)),
|
|
1391
|
+
b(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1392
1392
|
], 512)
|
|
1393
|
-
], 14,
|
|
1394
|
-
l.$slots.watermark ? (
|
|
1395
|
-
|
|
1393
|
+
], 14, Bl)),
|
|
1394
|
+
l.$slots.watermark ? (n(), r("div", Ha, [
|
|
1395
|
+
b(l.$slots, "watermark", oe(se({ isPrinting: u(at) || u(ot) })), void 0, !0)
|
|
1396
1396
|
])) : v("", !0),
|
|
1397
1397
|
h("div", {
|
|
1398
1398
|
ref_key: "chartLegend",
|
|
1399
|
-
ref:
|
|
1399
|
+
ref: qe
|
|
1400
1400
|
}, [
|
|
1401
|
-
e.value.style.chart.legend.show ? (
|
|
1402
|
-
key: `legend_${
|
|
1403
|
-
legendSet:
|
|
1401
|
+
e.value.style.chart.legend.show ? (n(), ae(Yl, {
|
|
1402
|
+
key: `legend_${Je.value}`,
|
|
1403
|
+
legendSet: dt.value,
|
|
1404
1404
|
config: Kt.value,
|
|
1405
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) =>
|
|
1406
|
-
},
|
|
1405
|
+
onClickMarker: o[3] || (o[3] = ({ i: t }) => vt(t))
|
|
1406
|
+
}, kt({
|
|
1407
1407
|
item: A(({ legend: t, index: a }) => [
|
|
1408
1408
|
h("div", {
|
|
1409
|
-
style: $(`opacity:${
|
|
1409
|
+
style: $(`opacity:${q.value.includes(a) ? 0.5 : 1}`),
|
|
1410
1410
|
onClick: (i) => t.segregate()
|
|
1411
|
-
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ?
|
|
1411
|
+
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? u(V)(
|
|
1412
1412
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1413
1413
|
t.value,
|
|
1414
|
-
|
|
1414
|
+
u(N)({
|
|
1415
1415
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1416
1416
|
v: t.value,
|
|
1417
1417
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1421,22 +1421,22 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1421
1421
|
datapoint: t,
|
|
1422
1422
|
index: a
|
|
1423
1423
|
}
|
|
1424
|
-
) : "") + " " + I(e.value.style.chart.legend.showPercentage ?
|
|
1424
|
+
) : "") + " " + 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)(
|
|
1425
1425
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
v:
|
|
1426
|
+
ct.value(t),
|
|
1427
|
+
u(N)({
|
|
1428
|
+
v: ct.value(t),
|
|
1429
1429
|
s: "%",
|
|
1430
1430
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1431
1431
|
})
|
|
1432
|
-
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13,
|
|
1432
|
+
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ja)
|
|
1433
1433
|
]),
|
|
1434
1434
|
_: 2
|
|
1435
1435
|
}, [
|
|
1436
1436
|
l.$slots.pattern ? {
|
|
1437
1437
|
name: "legend-pattern",
|
|
1438
1438
|
fn: A(({ legend: t, index: a }) => [
|
|
1439
|
-
|
|
1439
|
+
De(Ol, {
|
|
1440
1440
|
shape: t.shape,
|
|
1441
1441
|
radius: 30,
|
|
1442
1442
|
stroke: "none",
|
|
@@ -1447,18 +1447,25 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1447
1447
|
key: "0"
|
|
1448
1448
|
} : void 0
|
|
1449
1449
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1450
|
-
|
|
1450
|
+
b(l.$slots, "legend", { legend: dt.value }, void 0, !0)
|
|
1451
1451
|
], 512),
|
|
1452
|
-
l.$slots.source ? (
|
|
1452
|
+
l.$slots.source ? (n(), r("div", {
|
|
1453
1453
|
key: 5,
|
|
1454
1454
|
ref_key: "source",
|
|
1455
1455
|
ref: Ue,
|
|
1456
1456
|
dir: "auto"
|
|
1457
1457
|
}, [
|
|
1458
|
-
|
|
1458
|
+
b(l.$slots, "source", {}, void 0, !0)
|
|
1459
1459
|
], 512)) : v("", !0),
|
|
1460
|
-
|
|
1461
|
-
|
|
1460
|
+
l.$slots.hollow ? (n(), r("div", Ja, [
|
|
1461
|
+
b(l.$slots, "hollow", oe(se({
|
|
1462
|
+
total: F.value,
|
|
1463
|
+
average: ze.value,
|
|
1464
|
+
dataset: G.value
|
|
1465
|
+
})), void 0, !0)
|
|
1466
|
+
])) : v("", !0),
|
|
1467
|
+
De(u(Yt), {
|
|
1468
|
+
show: f.value.showTooltip && Pe.value,
|
|
1462
1469
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1463
1470
|
color: e.value.style.chart.tooltip.color,
|
|
1464
1471
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1469,20 +1476,22 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1469
1476
|
position: e.value.style.chart.tooltip.position,
|
|
1470
1477
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1471
1478
|
parent: E.value,
|
|
1472
|
-
content:
|
|
1479
|
+
content: Fe.value,
|
|
1473
1480
|
isCustom: pe.value,
|
|
1474
|
-
isFullscreen:
|
|
1481
|
+
isFullscreen: he.value,
|
|
1482
|
+
smooth: e.value.style.chart.tooltip.smooth,
|
|
1483
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1475
1484
|
}, {
|
|
1476
1485
|
"tooltip-before": A(() => [
|
|
1477
|
-
|
|
1486
|
+
b(l.$slots, "tooltip-before", oe(se({ ...Oe.value })), void 0, !0)
|
|
1478
1487
|
]),
|
|
1479
1488
|
"tooltip-after": A(() => [
|
|
1480
|
-
|
|
1489
|
+
b(l.$slots, "tooltip-after", oe(se({ ...Oe.value })), void 0, !0)
|
|
1481
1490
|
]),
|
|
1482
1491
|
_: 3
|
|
1483
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1484
|
-
me.value ? (
|
|
1485
|
-
key:
|
|
1492
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
|
|
1493
|
+
me.value ? (n(), ae(u(Mt), {
|
|
1494
|
+
key: 7,
|
|
1486
1495
|
hideDetails: "",
|
|
1487
1496
|
config: {
|
|
1488
1497
|
open: f.value.showTable,
|
|
@@ -1498,8 +1507,8 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1498
1507
|
}
|
|
1499
1508
|
}, {
|
|
1500
1509
|
content: A(() => [
|
|
1501
|
-
(
|
|
1502
|
-
key: `table_${
|
|
1510
|
+
(n(), ae(u(zt), {
|
|
1511
|
+
key: `table_${je.value}`,
|
|
1503
1512
|
colNames: _e.value.colNames,
|
|
1504
1513
|
head: _e.value.head,
|
|
1505
1514
|
body: _e.value.body,
|
|
@@ -1514,18 +1523,18 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1514
1523
|
}, null, 8, Ka)
|
|
1515
1524
|
]),
|
|
1516
1525
|
td: A(({ td: t }) => [
|
|
1517
|
-
|
|
1526
|
+
Be(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(V)(
|
|
1518
1527
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1519
1528
|
t,
|
|
1520
|
-
|
|
1529
|
+
u(N)({
|
|
1521
1530
|
v: t,
|
|
1522
1531
|
s: "%",
|
|
1523
1532
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1524
1533
|
})
|
|
1525
|
-
) :
|
|
1534
|
+
) : u(V)(
|
|
1526
1535
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1527
1536
|
t,
|
|
1528
|
-
|
|
1537
|
+
u(N)({
|
|
1529
1538
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1530
1539
|
v: t,
|
|
1531
1540
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1538,10 +1547,10 @@ const Bl = ["id"], Vl = ["xmlns", "viewBox"], El = ["width", "height"], Gl = { k
|
|
|
1538
1547
|
]),
|
|
1539
1548
|
_: 1
|
|
1540
1549
|
}, 8, ["config"])) : v("", !0),
|
|
1541
|
-
|
|
1542
|
-
], 46,
|
|
1550
|
+
u(ke) ? (n(), ae(Ll, { key: 8 })) : v("", !0)
|
|
1551
|
+
], 46, Dl));
|
|
1543
1552
|
}
|
|
1544
|
-
}, ho = /* @__PURE__ */
|
|
1553
|
+
}, ho = /* @__PURE__ */ Xl(Qa, [["__scopeId", "data-v-a3b0c393"]]);
|
|
1545
1554
|
export {
|
|
1546
1555
|
ho as default
|
|
1547
1556
|
};
|