vue-data-ui 2.15.0 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DKw6950J.js → Arrow-BWXCPv6v.js} +1 -1
- package/dist/{BaseDraggableDialog-BO8fFfAb.js → BaseDraggableDialog-BVDVgkJA.js} +2 -2
- package/dist/{BaseIcon-JM7bAYf6.js → BaseIcon-Bp7UPYnW.js} +1 -1
- package/dist/{ColorPicker-CtdrdDuN.js → ColorPicker-B5OAwv96.js} +2 -2
- package/dist/{DataTable-CD2q7tjj.js → DataTable-93xWsJ6c.js} +2 -2
- package/dist/{Legend-R-8Q66YR.js → Legend-hctdyKA6.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DXUlGXql.js → NonSvgPenAndPaper-CseO56IR.js} +3 -3
- package/dist/{PackageVersion-gLNy4C0t.js → PackageVersion-yIH1jHJc.js} +1 -1
- package/dist/{PenAndPaper-lvQKUG-x.js → PenAndPaper-D6C8iSCb.js} +3 -3
- package/dist/{Shape-CY4386Ox.js → Shape-KmPcM_8X.js} +1 -1
- package/dist/{Slicer-DcqyQpMv.js → Slicer-5-W1e_S-.js} +2 -2
- package/dist/{SparkTooltip-DQbXpDUg.js → SparkTooltip-B9dKuZbW.js} +1 -1
- package/dist/{Title-DX1Pj6u8.js → Title-D7i6kdEt.js} +1 -1
- package/dist/{Tooltip-jN48xe9l.js → Tooltip-CgE5JMdg.js} +1 -1
- package/dist/{UserOptions-DYC8tFSC.js → UserOptions-DjQRjUl1.js} +2 -2
- package/dist/{dom-to-png-DgmC_4tW.js → dom-to-png-DyD8S_Jr.js} +1 -1
- package/dist/{img-B90c22Kx.js → img-BUo2ttV5.js} +1 -1
- package/dist/{index-qLjCmB1J.js → index-0xl6yeT_.js} +5 -3
- package/dist/{pdf-FFi0pe-v.js → pdf-DXd78sXk.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-Cv2n6auT.js → useNestedProp-BpsGhH52.js} +1 -1
- package/dist/{usePrinter-Dh3NHc5Q.js → usePrinter-G7F4lL2Z.js} +2 -2
- package/dist/{vue-data-ui-8wiBgcV4.js → vue-data-ui-1c3WZYGe.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DdUMyN0e.js → vue-ui-3d-bar-BM1HD1_j.js} +5 -5
- package/dist/{vue-ui-accordion-C9TQ7MO4.js → vue-ui-accordion-gr1Dczju.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Dhy5XNw5.js → vue-ui-age-pyramid-cFxPrty5.js} +5 -5
- package/dist/{vue-ui-annotator-DV1apulf.js → vue-ui-annotator-CoN1JEMD.js} +2 -2
- package/dist/{vue-ui-bullet-BdI1gdbT.js → vue-ui-bullet-ClcGk_b0.js} +6 -6
- package/dist/{vue-ui-candlestick-D38UytRA.js → vue-ui-candlestick-DO-1KYTl.js} +6 -6
- package/dist/{vue-ui-carousel-table-upPKN2Ap.js → vue-ui-carousel-table-9Ku_ebjG.js} +4 -4
- package/dist/{vue-ui-chestnut-D2Jw2GKp.js → vue-ui-chestnut-3Gjab_Sk.js} +4 -4
- package/dist/{vue-ui-chord-D-N7F12j.js → vue-ui-chord-DeOUOOCR.js} +7 -7
- package/dist/{vue-ui-circle-pack-CHDE9pKa.js → vue-ui-circle-pack-BfdGvoPl.js} +5 -5
- package/dist/{vue-ui-cursor-BshRfAz-.js → vue-ui-cursor-BAlIn5n7.js} +2 -2
- package/dist/{vue-ui-dashboard-DcxMfQbm.js → vue-ui-dashboard-DYn5g5A0.js} +62 -62
- package/dist/{vue-ui-digits-CJrt5BJ1.js → vue-ui-digits-COnU0Bjx.js} +2 -2
- package/dist/{vue-ui-donut-CnL_oyDf.js → vue-ui-donut-CVMUWBHY.js} +450 -428
- package/dist/{vue-ui-donut-evolution-Ds3gml6r.js → vue-ui-donut-evolution-DdODzbv7.js} +7 -7
- package/dist/{vue-ui-dumbbell-9LSenoFZ.js → vue-ui-dumbbell-zue1EgiF.js} +6 -6
- package/dist/{vue-ui-flow-C22v5GN2.js → vue-ui-flow-CT_KSVPw.js} +6 -6
- package/dist/{vue-ui-funnel-B1nlsC-X.js → vue-ui-funnel-B6y2syp1.js} +5 -5
- package/dist/{vue-ui-galaxy-B6BpVGEN.js → vue-ui-galaxy-6hf2O-OT.js} +4 -4
- package/dist/{vue-ui-gauge-CxIA82Oi.js → vue-ui-gauge-D5sdINkF.js} +5 -5
- package/dist/{vue-ui-gizmo-DoKv0gEe.js → vue-ui-gizmo-l8GqobB9.js} +3 -3
- package/dist/{vue-ui-heatmap-DHZfILtm.js → vue-ui-heatmap-oMWjyEU1.js} +6 -6
- package/dist/{vue-ui-history-plot-CA3K02gG.js → vue-ui-history-plot-CPDfop4z.js} +6 -6
- package/dist/{vue-ui-kpi-Cl4-a765.js → vue-ui-kpi-DdT8c2qN.js} +3 -3
- package/dist/{vue-ui-mini-loader-otB8K5br.js → vue-ui-mini-loader-sUauCnke.js} +2 -2
- package/dist/{vue-ui-molecule-Cpzuuc_E.js → vue-ui-molecule-CGiz21KJ.js} +4 -4
- package/dist/{vue-ui-mood-radar-C9gjpo76.js → vue-ui-mood-radar-DuBZs64f.js} +6 -6
- package/dist/{vue-ui-nested-donuts-DIMdD7XN.js → vue-ui-nested-donuts-CjwnVuni.js} +343 -319
- package/dist/{vue-ui-onion-DZuOWHN2.js → vue-ui-onion-Dtb6f9Pj.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-DFaCAOJ4.js → vue-ui-parallel-coordinate-plot-eUARPFQz.js} +7 -7
- package/dist/{vue-ui-quadrant-B69rCR3d.js → vue-ui-quadrant-BENOLZTh.js} +7 -7
- package/dist/{vue-ui-quick-chart-D3ViBIuY.js → vue-ui-quick-chart-BbiNJN8H.js} +5 -5
- package/dist/{vue-ui-radar-CL29WxOp.js → vue-ui-radar-Ca928f5C.js} +6 -6
- package/dist/{vue-ui-rating-CSUNb7yY.js → vue-ui-rating-Chk3Bc6U.js} +2 -2
- package/dist/{vue-ui-relation-circle-MKe1JnkD.js → vue-ui-relation-circle-GliccPBT.js} +5 -5
- package/dist/{vue-ui-ridgeline-WutbT4di.js → vue-ui-ridgeline-j8bwod-1.js} +7 -7
- package/dist/{vue-ui-rings-DrZTS5Im.js → vue-ui-rings-AHi_l7MY.js} +7 -7
- package/dist/{vue-ui-scatter-BlLXM8Bx.js → vue-ui-scatter-cC3vGu_O.js} +7 -7
- package/dist/{vue-ui-skeleton-Cj6SRkhT.js → vue-ui-skeleton-1aUzcGMM.js} +3 -3
- package/dist/{vue-ui-smiley-DUydiLLl.js → vue-ui-smiley-A-HBdymI.js} +2 -2
- package/dist/{vue-ui-spark-trend-CvmlasIX.js → vue-ui-spark-trend-Ctx6IJHJ.js} +3 -3
- package/dist/{vue-ui-sparkbar-Dz6SDThS.js → vue-ui-sparkbar-T2LuTMDI.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D2JyRos2.js → vue-ui-sparkgauge-FEVecElc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BdI9frTN.js → vue-ui-sparkhistogram-Bu8hx-SD.js} +4 -4
- package/dist/{vue-ui-sparkline-BAISGFMq.js → vue-ui-sparkline-B0dlaC56.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Da7IAbHx.js → vue-ui-sparkstackbar-CvYbH--B.js} +3 -3
- package/dist/{vue-ui-stackbar-eMnoUkhf.js → vue-ui-stackbar-CPsdBNF8.js} +8 -8
- package/dist/{vue-ui-strip-plot-DYUHvHpY.js → vue-ui-strip-plot-Dl7Zg_Ou.js} +6 -6
- package/dist/{vue-ui-table-CB6cwGXN.js → vue-ui-table-1A4jcDSx.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CPk8caYe.js → vue-ui-table-heatmap-KzYY-CQt.js} +5 -5
- package/dist/{vue-ui-table-sparkline-NBtUQVOW.js → vue-ui-table-sparkline-D9_N4McK.js} +4 -4
- package/dist/{vue-ui-thermometer-1QS5hzkW.js → vue-ui-thermometer-CJUIRDs5.js} +5 -5
- package/dist/{vue-ui-timer-C0n7n4ne.js → vue-ui-timer-DjPOb80m.js} +5 -5
- package/dist/{vue-ui-tiremarks-DfBTlpK1.js → vue-ui-tiremarks-mTtcrs7r.js} +5 -5
- package/dist/{vue-ui-treemap-BTvd5pVa.js → vue-ui-treemap-D8oyCUmA.js} +7 -7
- package/dist/{vue-ui-vertical-bar-COH9EX2H.js → vue-ui-vertical-bar-CsNUVJfk.js} +8 -8
- package/dist/{vue-ui-waffle-BdDGN-F-.js → vue-ui-waffle-CEvNLzHh.js} +7 -7
- package/dist/{vue-ui-wheel-Cd8GfuiY.js → vue-ui-wheel-Dw_Z669Z.js} +5 -5
- package/dist/{vue-ui-word-cloud-BquWmmCH.js → vue-ui-word-cloud-BsK5IGnI.js} +5 -5
- package/dist/{vue-ui-world-BX4K7BvL.js → vue-ui-world-_xucFe9e.js} +5 -5
- package/dist/{vue-ui-xy-jhm3Dnsm.js → vue-ui-xy-BE4LWW9m.js} +16 -16
- package/dist/{vue-ui-xy-canvas-BwJTSCIj.js → vue-ui-xy-canvas-3Fbzqt4p.js} +7 -7
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
1
|
+
import { defineAsyncComponent as Q, useSlots as Xt, computed as y, shallowRef as E, ref as x, onMounted as tt, onBeforeUnmount as It, watch as lt, createElementBlock as n, openBlock as o, normalizeStyle as b, normalizeClass as _e, createBlock as Z, createCommentVNode as i, renderSlot as m, createElementVNode as f, createVNode as xe, unref as r, createSlots as at, withCtx as C, normalizeProps as oe, guardReactiveProps as ue, Fragment as p, renderList as A, mergeProps as ot, toDisplayString as P, createTextVNode as ut, nextTick as Dt } from "vue";
|
|
2
|
+
import { u as Vt, o as Bt, e as st, g as Gt, c as Wt, b as Rt, v as Et, d as nt, p as ee, m as rt, $ as Ut, f as M, X as jt, s as fe, w as Ht, j as qt, N as L, i as D, k as ve, n as w, t as Jt, a as Kt, q as Qt, r as Zt, x as el, T as it } from "./index-0xl6yeT_.js";
|
|
3
|
+
import { t as tl, u as ll } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as vt } from "./useNestedProp-BpsGhH52.js";
|
|
5
|
+
import { u as al } from "./usePrinter-G7F4lL2Z.js";
|
|
6
|
+
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import sl from "./Legend-hctdyKA6.js";
|
|
9
|
+
import nl from "./Title-D7i6kdEt.js";
|
|
10
|
+
import { _ as rl } from "./Shape-KmPcM_8X.js";
|
|
11
|
+
import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { key: 1 }, yl = ["id"], fl = ["stop-color"], pl = ["offset", "stop-color"], gl = ["offset", "stop-color"], ml = ["stop-color"], bl = { key: 2 }, wl = ["id", "cx", "cy"], kl = ["stop-color", "stop-opacity"], _l = ["stop-color"], xl = ["id"], $l = ["id"], Cl = ["id"], Tl = ["flood-color"], Pl = ["id"], Al = ["flood-color"], Fl = ["d", "stroke", "filter"], Sl = ["d", "stroke", "filter"], Ll = ["cx", "cy", "r", "fill", "filter"], zl = { key: 6 }, Ol = ["stroke", "d"], Nl = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = { key: 0 }, Yl = ["d", "fill", "stroke", "stroke-width", "filter"], Xl = { key: 0 }, Il = ["stroke", "d"], Dl = { key: 0 }, Vl = ["d", "stroke", "stroke-width", "filter"], Bl = { key: 1 }, Gl = ["d", "fill", "stroke", "stroke-width", "filter"], Wl = ["d", "fill", "stroke", "stroke-width", "filter"], Rl = { key: 1 }, El = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ul = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], jl = { key: 0 }, Hl = ["d", "fill", "stroke", "stroke-width"], ql = ["cx", "cy", "r", "stroke"], Jl = ["cx", "cy", "r", "fill"], Kl = { key: 0 }, Ql = ["d", "fill", "onMouseenter", "onClick"], Zl = { key: 1 }, ea = ["cx", "cy", "r"], ta = ["x", "y", "fill", "font-size"], la = ["x", "y", "fill", "font-size"], aa = ["x", "y", "fill", "font-size"], oa = ["x", "y", "fill", "font-size"], ua = ["filter"], sa = { key: 0 }, na = ["x", "y"], ra = { key: 1 }, ia = ["cx", "cy", "fill", "stroke", "filter", "onClick"], va = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ca = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], da = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ha = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ya = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], fa = { key: 2 }, pa = ["x", "y", "width"], ga = ["x", "y", "width"], ma = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, ba = ["onClick"], wa = {
|
|
16
16
|
key: 0,
|
|
17
17
|
style: { "font-variant-numeric": "tabular-nums" }
|
|
18
|
-
},
|
|
18
|
+
}, ka = { key: 1 }, _a = ["innerHTML"], xa = {
|
|
19
19
|
__name: "vue-ui-donut",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,39 +32,39 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
35
|
+
setup($e, { expose: ct, emit: dt }) {
|
|
36
|
+
const ht = Q(() => import("./vue-ui-accordion-gr1Dczju.js")), yt = Q(() => import("./DataTable-93xWsJ6c.js")), ft = Q(() => import("./PackageVersion-yIH1jHJc.js")), pt = Q(() => import("./PenAndPaper-D6C8iSCb.js")), gt = Q(() => import("./vue-ui-skeleton-1aUzcGMM.js")), mt = Q(() => import("./Tooltip-CgE5JMdg.js")), bt = Q(() => import("./UserOptions-DjQRjUl1.js")), { vue_ui_donut: wt } = Vt(), kt = Xt(), z = $e, se = y({
|
|
37
37
|
get() {
|
|
38
38
|
return !!z.dataset && z.dataset.length;
|
|
39
39
|
},
|
|
40
40
|
set(l) {
|
|
41
41
|
return l;
|
|
42
42
|
}
|
|
43
|
-
}), ne =
|
|
43
|
+
}), ne = E(null), Ce = E(null), Te = E(null), U = E(null), te = E(null), Pe = E(null), Ae = E(null), Fe = x(0), Se = x(0), Le = x(0);
|
|
44
44
|
tt(() => {
|
|
45
45
|
ze();
|
|
46
|
-
}),
|
|
47
|
-
|
|
46
|
+
}), It(() => {
|
|
47
|
+
U.value && (te.value && U.value.unobserve(te.value), U.value.disconnect());
|
|
48
48
|
});
|
|
49
49
|
function ze() {
|
|
50
|
-
if (
|
|
50
|
+
if (Bt(z.dataset) ? st({
|
|
51
51
|
componentName: "VueUiDonut",
|
|
52
52
|
type: "dataset"
|
|
53
|
-
}) : z.dataset.forEach((l,
|
|
54
|
-
|
|
53
|
+
}) : z.dataset.forEach((l, u) => {
|
|
54
|
+
Gt({
|
|
55
55
|
datasetObject: l,
|
|
56
56
|
requiredAttributes: ["name", "values"]
|
|
57
57
|
}).forEach((t) => {
|
|
58
|
-
|
|
58
|
+
se.value = !1, st({
|
|
59
59
|
componentName: "VueUiDonut",
|
|
60
60
|
type: "datasetSerieAttribute",
|
|
61
61
|
property: t,
|
|
62
|
-
index:
|
|
62
|
+
index: u
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
}), e.value.responsive) {
|
|
66
|
-
const l =
|
|
67
|
-
const { width:
|
|
66
|
+
const l = tl(() => {
|
|
67
|
+
const { width: u, height: t } = ll({
|
|
68
68
|
chart: ne.value,
|
|
69
69
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
70
70
|
legend: e.value.style.chart.legend.show ? Te.value : null,
|
|
@@ -73,242 +73,254 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
73
73
|
padding: Xe.value
|
|
74
74
|
});
|
|
75
75
|
requestAnimationFrame(() => {
|
|
76
|
-
|
|
76
|
+
s.value.width = u, s.value.height = t;
|
|
77
77
|
});
|
|
78
78
|
});
|
|
79
|
-
|
|
79
|
+
U.value && (te.value && U.value.unobserve(te.value), U.value.disconnect()), U.value = new ResizeObserver(l), te.value = ne.value.parentNode, U.value.observe(te.value);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const g = x(Wt()), _t = x(null), ce = x(!1), pe = x(""), O = x(null), Oe = x(0);
|
|
83
83
|
function Ne() {
|
|
84
|
-
const l =
|
|
84
|
+
const l = vt({
|
|
85
85
|
userConfig: z.config,
|
|
86
|
-
defaultConfig:
|
|
86
|
+
defaultConfig: wt
|
|
87
87
|
});
|
|
88
88
|
return l.theme ? {
|
|
89
|
-
...
|
|
90
|
-
userConfig:
|
|
89
|
+
...vt({
|
|
90
|
+
userConfig: Kt.vue_ui_donut[l.theme] || z.config,
|
|
91
91
|
defaultConfig: l
|
|
92
92
|
}),
|
|
93
|
-
customPalette:
|
|
93
|
+
customPalette: Jt[l.theme] || ee
|
|
94
94
|
} : l;
|
|
95
95
|
}
|
|
96
|
-
const e =
|
|
96
|
+
const e = y({
|
|
97
97
|
get: () => Ne(),
|
|
98
98
|
set: (l) => l
|
|
99
|
-
}), T =
|
|
100
|
-
function
|
|
99
|
+
}), T = x(!0), B = E([]);
|
|
100
|
+
function xt(l, u = 1e3, t = 50) {
|
|
101
101
|
return new Promise((a) => {
|
|
102
102
|
const v = l.length;
|
|
103
103
|
B.value = Array(v).fill(0);
|
|
104
104
|
let d = 0;
|
|
105
|
-
l.forEach((
|
|
105
|
+
l.forEach((_, $) => {
|
|
106
106
|
setTimeout(() => {
|
|
107
107
|
const R = performance.now();
|
|
108
108
|
function I(ie) {
|
|
109
|
-
const ye = Math.min((ie - R) /
|
|
110
|
-
B.value[
|
|
109
|
+
const ye = Math.min((ie - R) / u, 1), Yt = it(ye);
|
|
110
|
+
B.value[$] = _ * Yt, B.value = [...B.value], ye < 1 ? requestAnimationFrame(I) : (B.value[$] = _, B.value = [...B.value], d += 1, d === v && a());
|
|
111
111
|
}
|
|
112
112
|
requestAnimationFrame(I);
|
|
113
|
-
},
|
|
113
|
+
}, $ * t);
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
tt(async () => {
|
|
118
|
-
const l = z.dataset.map((
|
|
119
|
-
e.value.startAnimation.show && await
|
|
118
|
+
const l = z.dataset.map((u) => u.values.reduce((t, a) => t + a, 0));
|
|
119
|
+
e.value.startAnimation.show && await xt(
|
|
120
120
|
l,
|
|
121
121
|
e.value.startAnimation.durationMs,
|
|
122
122
|
e.value.startAnimation.staggerMs
|
|
123
123
|
), T.value = !1;
|
|
124
124
|
});
|
|
125
|
-
const { userOptionsVisible: ge, setUserOptionsVisibility: Me, keepUserOptionState: Ye } =
|
|
125
|
+
const { userOptionsVisible: ge, setUserOptionsVisibility: Me, keepUserOptionState: Ye } = ol({ config: e.value }), { svgRef: me } = ul({ config: e.value.style.chart.title });
|
|
126
126
|
function $t() {
|
|
127
127
|
Me(!0);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ct() {
|
|
130
130
|
Me(!1);
|
|
131
131
|
}
|
|
132
132
|
lt(() => z.config, (l) => {
|
|
133
|
-
e.value = Ne(), ge.value = !e.value.userOptions.showOnChartHover, ze(), Fe.value += 1, Se.value += 1, Le.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show,
|
|
133
|
+
e.value = Ne(), ge.value = !e.value.userOptions.showOnChartHover, ze(), Fe.value += 1, Se.value += 1, Le.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
|
|
134
134
|
}, { deep: !0 });
|
|
135
|
-
const Xe =
|
|
136
|
-
const { top: l, right:
|
|
135
|
+
const Xe = y(() => {
|
|
136
|
+
const { top: l, right: u, bottom: t, left: a } = e.value.style.chart.padding;
|
|
137
137
|
return {
|
|
138
|
-
css: `padding:${l}px ${
|
|
138
|
+
css: `padding:${l}px ${u}px ${t}px ${a}px`,
|
|
139
139
|
top: l,
|
|
140
|
-
right:
|
|
140
|
+
right: u,
|
|
141
141
|
bottom: t,
|
|
142
142
|
left: a
|
|
143
143
|
};
|
|
144
|
-
}), { isPrinting: Ie, isImaging: De, generatePdf: Ve, generateImage: Be } =
|
|
145
|
-
elementId: `donut__${
|
|
144
|
+
}), { isPrinting: Ie, isImaging: De, generatePdf: Ve, generateImage: Be } = al({
|
|
145
|
+
elementId: `donut__${g.value}`,
|
|
146
146
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
147
147
|
options: e.value.userOptions.print
|
|
148
|
-
}),
|
|
148
|
+
}), Tt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = y(() => Rt(e.value.customPalette)), h = x({
|
|
149
149
|
dataLabels: {
|
|
150
150
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
151
151
|
},
|
|
152
152
|
showTable: e.value.table.show,
|
|
153
153
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
|
-
}),
|
|
154
|
+
}), s = x({
|
|
155
155
|
height: e.value.style.chart.height,
|
|
156
156
|
width: e.value.style.chart.width
|
|
157
|
-
}),
|
|
158
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512,
|
|
157
|
+
}), q = y(() => {
|
|
158
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, u = Math.min(s.value.width, s.value.height) * l, t = u > k.value ? k.value : u;
|
|
159
159
|
return Math.max(t, 3);
|
|
160
|
-
}),
|
|
160
|
+
}), We = dt, G = y(() => z.dataset.map((l, u) => ({
|
|
161
161
|
name: l.name,
|
|
162
|
-
color: nt(l.color) || Ge.value[
|
|
163
|
-
value: l.values.reduce((t, a) => t + a, 0),
|
|
162
|
+
color: nt(l.color) || Ge.value[u] || ee[u] || ee[u % ee.length],
|
|
163
|
+
value: Et(l.values.reduce((t, a) => t + a, 0)),
|
|
164
164
|
absoluteValues: l.values,
|
|
165
165
|
comment: l.comment || "",
|
|
166
|
-
patternIndex:
|
|
167
|
-
seriesIndex:
|
|
166
|
+
patternIndex: u,
|
|
167
|
+
seriesIndex: u,
|
|
168
168
|
ghost: !1,
|
|
169
|
-
pattern: `pattern_${
|
|
170
|
-
}))), N =
|
|
169
|
+
pattern: `pattern_${g.value}_${u}`
|
|
170
|
+
}))), N = E(G.value);
|
|
171
171
|
lt(() => G.value, (l) => N.value = l);
|
|
172
|
-
function
|
|
172
|
+
function Pt() {
|
|
173
173
|
return G.value.map((l) => ({
|
|
174
174
|
name: l.name,
|
|
175
175
|
color: l.color,
|
|
176
176
|
value: l.value
|
|
177
177
|
}));
|
|
178
178
|
}
|
|
179
|
-
const V =
|
|
180
|
-
function
|
|
181
|
-
const
|
|
182
|
-
function
|
|
183
|
-
const I = Math.min((R -
|
|
184
|
-
a(ye, I), I < 1 ? requestAnimationFrame(
|
|
179
|
+
const V = x([]), J = x(!1);
|
|
180
|
+
function Re({ from: l, to: u, duration: t, onUpdate: a, onDone: v, easing: d = it }) {
|
|
181
|
+
const _ = performance.now();
|
|
182
|
+
function $(R) {
|
|
183
|
+
const I = Math.min((R - _) / t, 1), ie = d(I), ye = l + (u - l) * ie;
|
|
184
|
+
a(ye, I), I < 1 ? requestAnimationFrame($) : (a(u, 1), v && v());
|
|
185
185
|
}
|
|
186
|
-
requestAnimationFrame(
|
|
186
|
+
requestAnimationFrame($);
|
|
187
187
|
}
|
|
188
188
|
function Ee(l) {
|
|
189
|
-
const
|
|
189
|
+
const u = G.value.find((v, d) => d === l);
|
|
190
190
|
let a = N.value.find((v, d) => d === l).value;
|
|
191
191
|
if (V.value.includes(l)) {
|
|
192
192
|
let d = function() {
|
|
193
193
|
N.value = N.value.map(
|
|
194
|
-
(
|
|
194
|
+
($, R) => l === R ? { ...$, value: v } : $
|
|
195
195
|
);
|
|
196
|
-
},
|
|
197
|
-
|
|
196
|
+
}, _ = function() {
|
|
197
|
+
J.value = !0, Re({
|
|
198
198
|
from: a,
|
|
199
199
|
to: v,
|
|
200
200
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
201
|
-
onUpdate: (
|
|
201
|
+
onUpdate: ($, R) => {
|
|
202
202
|
N.value = N.value.map(
|
|
203
|
-
(I, ie) => l === ie ? { ...I, value:
|
|
203
|
+
(I, ie) => l === ie ? { ...I, value: $ } : I
|
|
204
204
|
);
|
|
205
205
|
},
|
|
206
206
|
onDone: () => {
|
|
207
|
-
d(),
|
|
207
|
+
d(), J.value = !1;
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
|
-
V.value = V.value.filter((
|
|
212
|
-
const v =
|
|
213
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ?
|
|
211
|
+
V.value = V.value.filter(($) => $ !== l);
|
|
212
|
+
const v = u.value;
|
|
213
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? _() : d();
|
|
214
214
|
} else if (V.value.length < G.value.length - 1) {
|
|
215
215
|
let v = function() {
|
|
216
216
|
V.value.push(l), N.value = N.value.map(
|
|
217
|
-
(
|
|
217
|
+
(_, $) => l === $ ? { ..._, value: 0 } : _
|
|
218
218
|
);
|
|
219
219
|
}, d = function() {
|
|
220
|
-
|
|
220
|
+
J.value = !0, Re({
|
|
221
221
|
from: a,
|
|
222
222
|
to: 0,
|
|
223
223
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
224
|
-
onUpdate: (
|
|
224
|
+
onUpdate: (_, $) => {
|
|
225
225
|
N.value = N.value.map(
|
|
226
|
-
(R, I) => l === I ? { ...R, value:
|
|
226
|
+
(R, I) => l === I ? { ...R, value: _ } : R
|
|
227
227
|
);
|
|
228
228
|
},
|
|
229
229
|
onDone: () => {
|
|
230
|
-
v(),
|
|
230
|
+
v(), J.value = !1;
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
};
|
|
234
234
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? d() : v();
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
We("selectLegend", W.value.map((v) => ({
|
|
237
237
|
name: v.name,
|
|
238
238
|
color: v.color,
|
|
239
239
|
value: v.value
|
|
240
240
|
})));
|
|
241
241
|
}
|
|
242
|
-
const
|
|
242
|
+
const At = y(() => z.dataset.reduce((l, u) => l + u.values.reduce((t, a) => t + a, 0), 0)), W = y(() => {
|
|
243
243
|
if (T.value) {
|
|
244
244
|
const l = B.value.map((t, a) => ({
|
|
245
245
|
...G.value[a],
|
|
246
246
|
value: t,
|
|
247
247
|
color: G.value[a].color,
|
|
248
248
|
ghost: !1
|
|
249
|
-
})),
|
|
250
|
-
return
|
|
249
|
+
})), u = At.value - B.value.reduce((t, a) => t + a, 0);
|
|
250
|
+
return u > 0 && l.push({
|
|
251
251
|
name: "__ghost__",
|
|
252
|
-
value:
|
|
252
|
+
value: u,
|
|
253
253
|
color: "transparent",
|
|
254
254
|
ghost: !0
|
|
255
255
|
}), l;
|
|
256
256
|
} else
|
|
257
|
-
return N.value.forEach((l,
|
|
257
|
+
return N.value.forEach((l, u) => {
|
|
258
258
|
if ([null, void 0].includes(l.values))
|
|
259
259
|
return {
|
|
260
260
|
...l,
|
|
261
261
|
values: []
|
|
262
262
|
};
|
|
263
|
-
}), N.value.map((l,
|
|
263
|
+
}), N.value.map((l, u) => ({
|
|
264
264
|
...l,
|
|
265
|
-
seriesIndex:
|
|
266
|
-
})).filter((l,
|
|
267
|
-
}), Ue =
|
|
265
|
+
seriesIndex: u
|
|
266
|
+
})).filter((l, u) => !V.value.includes(u));
|
|
267
|
+
}), Ue = y(() => z.dataset.map((l, u) => ({
|
|
268
268
|
name: l.name,
|
|
269
|
-
color: nt(l.color) || Ge.value[
|
|
269
|
+
color: nt(l.color) || Ge.value[u] || ee[u] || ee[u % ee.length],
|
|
270
270
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
271
271
|
shape: "circle",
|
|
272
|
-
patternIndex:
|
|
273
|
-
})).map((l,
|
|
272
|
+
patternIndex: u
|
|
273
|
+
})).map((l, u) => ({
|
|
274
274
|
...l,
|
|
275
275
|
proportion: l.value / z.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
|
|
276
|
-
opacity: V.value.includes(
|
|
277
|
-
segregate: () => !
|
|
278
|
-
isSegregated: V.value.includes(
|
|
279
|
-
}))),
|
|
276
|
+
opacity: V.value.includes(u) ? 0.5 : 1,
|
|
277
|
+
segregate: () => !J.value && Ee(u),
|
|
278
|
+
isSegregated: V.value.includes(u)
|
|
279
|
+
}))), Ft = y(() => ({
|
|
280
280
|
cy: "donut-div-legend",
|
|
281
281
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
282
282
|
color: e.value.style.chart.legend.color,
|
|
283
283
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
284
284
|
paddingBottom: 12,
|
|
285
285
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
286
|
-
})),
|
|
287
|
-
const l = Math.min(
|
|
286
|
+
})), k = y(() => {
|
|
287
|
+
const l = Math.min(s.value.width / 3, s.value.height / 3);
|
|
288
288
|
return l < 55 ? 55 : l;
|
|
289
|
-
}),
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
289
|
+
}), F = y(() => rt({ series: W.value }, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, q.value)), St = y(() => Math.abs(W.value.map((l) => l.value).reduce((l, u) => l + u, 0)) > 0), Lt = y(() => rt({
|
|
290
|
+
series: [
|
|
291
|
+
{
|
|
292
|
+
value: 1,
|
|
293
|
+
color: e.value.style.chart.layout.donut.emptyFill,
|
|
294
|
+
name: "_",
|
|
295
|
+
seriesIndex: 0,
|
|
296
|
+
patternIndex: -1,
|
|
297
|
+
ghost: !1,
|
|
298
|
+
absoluteValues: [1]
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
}, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, q.value)), Y = y(() => F.value.filter((l) => !l.ghost)), c = y(() => {
|
|
302
|
+
const l = Math.max(...W.value.map((t) => t.value)), u = W.value.map((t) => t.value / l);
|
|
303
|
+
return Ut({
|
|
304
|
+
series: u,
|
|
293
305
|
center: {
|
|
294
|
-
x:
|
|
295
|
-
y:
|
|
306
|
+
x: s.value.width / 2,
|
|
307
|
+
y: s.value.height / 2
|
|
296
308
|
},
|
|
297
|
-
maxRadius: Math.min(
|
|
309
|
+
maxRadius: Math.min(s.value.width, s.value.height) / 3,
|
|
298
310
|
hasGhost: T.value
|
|
299
311
|
});
|
|
300
312
|
});
|
|
301
313
|
function le(l) {
|
|
302
|
-
return l.x >
|
|
314
|
+
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
303
315
|
}
|
|
304
|
-
function
|
|
305
|
-
return l.middlePoint.y >
|
|
316
|
+
function zt(l) {
|
|
317
|
+
return l.middlePoint.y > s.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
306
318
|
}
|
|
307
319
|
function X(l) {
|
|
308
320
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
309
321
|
}
|
|
310
|
-
function be(l,
|
|
311
|
-
const t = l.value /
|
|
322
|
+
function be(l, u) {
|
|
323
|
+
const t = l.value / Ot(u);
|
|
312
324
|
return isNaN(t) ? 0 : D(
|
|
313
325
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
314
326
|
t * 100,
|
|
@@ -320,28 +332,28 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
320
332
|
{ datapoint: l }
|
|
321
333
|
);
|
|
322
334
|
}
|
|
323
|
-
function
|
|
324
|
-
return [...l].map((
|
|
335
|
+
function Ot(l) {
|
|
336
|
+
return [...l].map((u) => u.value).reduce((u, t) => u + t, 0);
|
|
325
337
|
}
|
|
326
|
-
const
|
|
327
|
-
function qe({ datapoint: l, relativeIndex:
|
|
328
|
-
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, O.value =
|
|
338
|
+
const S = y(() => W.value.map((l) => l.value).reduce((l, u) => l + u, 0)), je = y(() => S.value / W.value.length), He = y(() => (l) => J.value ? l.proportion * 100 : l.value / S.value * 100), we = x(null), re = x(!1);
|
|
339
|
+
function qe({ datapoint: l, relativeIndex: u, seriesIndex: t, show: a = !1 }) {
|
|
340
|
+
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, O.value = u;
|
|
329
341
|
let v = "";
|
|
330
342
|
const d = e.value.style.chart.tooltip.customFormat;
|
|
331
|
-
if (re.value = !1,
|
|
343
|
+
if (re.value = !1, el(d))
|
|
332
344
|
try {
|
|
333
|
-
const
|
|
345
|
+
const _ = d({
|
|
334
346
|
seriesIndex: t,
|
|
335
347
|
datapoint: l,
|
|
336
348
|
series: G.value,
|
|
337
349
|
config: e.value
|
|
338
350
|
});
|
|
339
|
-
typeof
|
|
351
|
+
typeof _ == "string" && (pe.value = _, re.value = !0);
|
|
340
352
|
} catch {
|
|
341
353
|
console.warn("Custom format cannot be applied."), re.value = !1;
|
|
342
354
|
}
|
|
343
355
|
if (!re.value) {
|
|
344
|
-
if (v += `<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>`, v += `<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}"/>${
|
|
356
|
+
if (v += `<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>`, v += `<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}"/>${kt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${D(
|
|
345
357
|
e.value.style.chart.layout.labels.value.formatter,
|
|
346
358
|
l.value,
|
|
347
359
|
M({
|
|
@@ -352,11 +364,11 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
352
364
|
}),
|
|
353
365
|
{
|
|
354
366
|
datapoint: l,
|
|
355
|
-
relativeIndex:
|
|
367
|
+
relativeIndex: u,
|
|
356
368
|
seriesIndex: t
|
|
357
369
|
}
|
|
358
370
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
359
|
-
const
|
|
371
|
+
const _ = D(
|
|
360
372
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
361
373
|
l.proportion * 100,
|
|
362
374
|
M({
|
|
@@ -366,45 +378,45 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
366
378
|
}),
|
|
367
379
|
{
|
|
368
380
|
datapoint: l,
|
|
369
|
-
relativeIndex:
|
|
381
|
+
relativeIndex: u,
|
|
370
382
|
seriesIndex: t
|
|
371
383
|
}
|
|
372
384
|
);
|
|
373
|
-
e.value.style.chart.tooltip.showValue ? v += `<span>(${
|
|
385
|
+
e.value.style.chart.tooltip.showValue ? v += `<span>(${_})</span></div>` : v += `<b>${_}</b></div>`;
|
|
374
386
|
}
|
|
375
387
|
e.value.style.chart.comments.showInTooltip && l.comment && (v += `<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>`), pe.value = `<div>${v}</div>`;
|
|
376
388
|
}
|
|
377
389
|
}
|
|
378
|
-
function
|
|
379
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l ? `url(#blur_${
|
|
390
|
+
function K(l) {
|
|
391
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l ? `url(#blur_${g.value})` : "";
|
|
380
392
|
}
|
|
381
|
-
const j =
|
|
382
|
-
const l =
|
|
393
|
+
const j = y(() => {
|
|
394
|
+
const l = W.value.map((t) => ({
|
|
383
395
|
name: t.name,
|
|
384
396
|
color: t.color
|
|
385
|
-
})),
|
|
386
|
-
return { head: l, body:
|
|
397
|
+
})), u = W.value.map((t) => t.value);
|
|
398
|
+
return { head: l, body: u };
|
|
387
399
|
});
|
|
388
400
|
function Je(l = null) {
|
|
389
|
-
|
|
390
|
-
const
|
|
401
|
+
Dt(() => {
|
|
402
|
+
const u = j.value.head.map((v, d) => [[
|
|
391
403
|
v.name
|
|
392
|
-
], [j.value.body[d]], [isNaN(j.value.body[d] /
|
|
393
|
-
l ? l(a) :
|
|
404
|
+
], [j.value.body[d]], [isNaN(j.value.body[d] / S.value) ? "-" : j.value.body[d] / S.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(u), a = Qt(t);
|
|
405
|
+
l ? l(a) : Zt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
394
406
|
});
|
|
395
407
|
}
|
|
396
|
-
const de =
|
|
408
|
+
const de = y(() => {
|
|
397
409
|
const l = [
|
|
398
410
|
' <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>',
|
|
399
|
-
M({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
411
|
+
M({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
400
412
|
"100%"
|
|
401
|
-
],
|
|
413
|
+
], u = j.value.head.map((v, d) => [
|
|
402
414
|
{
|
|
403
415
|
color: v.color,
|
|
404
416
|
name: v.name
|
|
405
417
|
},
|
|
406
418
|
j.value.body[d],
|
|
407
|
-
isNaN(j.value.body[d] /
|
|
419
|
+
isNaN(j.value.body[d] / S.value) ? "-" : (j.value.body[d] / S.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
408
420
|
]), t = {
|
|
409
421
|
th: {
|
|
410
422
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -425,19 +437,19 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
425
437
|
e.value.table.columnNames.percentage
|
|
426
438
|
],
|
|
427
439
|
head: l,
|
|
428
|
-
body:
|
|
440
|
+
body: u,
|
|
429
441
|
config: t
|
|
430
442
|
};
|
|
431
|
-
}), ae =
|
|
432
|
-
function
|
|
443
|
+
}), ae = x(!1);
|
|
444
|
+
function Nt(l) {
|
|
433
445
|
ae.value = l, Oe.value += 1;
|
|
434
446
|
}
|
|
435
|
-
const Ke =
|
|
436
|
-
function
|
|
437
|
-
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((
|
|
447
|
+
const Ke = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
448
|
+
function Mt(l) {
|
|
449
|
+
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((u) => "-").join("");
|
|
438
450
|
}
|
|
439
|
-
function H(l,
|
|
440
|
-
|
|
451
|
+
function H(l, u) {
|
|
452
|
+
We("selectDatapoint", { datapoint: l, index: u });
|
|
441
453
|
}
|
|
442
454
|
function Qe() {
|
|
443
455
|
h.value.showTable = !h.value.showTable;
|
|
@@ -448,12 +460,12 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
448
460
|
function et() {
|
|
449
461
|
h.value.showTooltip = !h.value.showTooltip;
|
|
450
462
|
}
|
|
451
|
-
const he =
|
|
463
|
+
const he = x(!1);
|
|
452
464
|
function ke() {
|
|
453
465
|
he.value = !he.value;
|
|
454
466
|
}
|
|
455
|
-
return
|
|
456
|
-
getData:
|
|
467
|
+
return ct({
|
|
468
|
+
getData: Pt,
|
|
457
469
|
generatePdf: Ve,
|
|
458
470
|
generateCsv: Je,
|
|
459
471
|
generateImage: Be,
|
|
@@ -461,38 +473,38 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
461
473
|
toggleLabels: Ze,
|
|
462
474
|
toggleTooltip: et,
|
|
463
475
|
toggleAnnotator: ke
|
|
464
|
-
}), (l,
|
|
476
|
+
}), (l, u) => (o(), n("div", {
|
|
465
477
|
ref_key: "donutChart",
|
|
466
478
|
ref: ne,
|
|
467
479
|
class: _e(`vue-ui-donut ${ae.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
468
480
|
style: b(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
469
|
-
id: `donut__${
|
|
481
|
+
id: `donut__${g.value}`,
|
|
470
482
|
onMouseenter: $t,
|
|
471
|
-
onMouseleave:
|
|
483
|
+
onMouseleave: Ct
|
|
472
484
|
}, [
|
|
473
|
-
e.value.userOptions.buttons.annotator &&
|
|
485
|
+
e.value.userOptions.buttons.annotator && r(me) ? (o(), Z(r(pt), {
|
|
474
486
|
key: 0,
|
|
475
487
|
color: e.value.style.chart.color,
|
|
476
488
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
477
489
|
active: he.value,
|
|
478
|
-
svgRef:
|
|
490
|
+
svgRef: r(me),
|
|
479
491
|
onClose: ke
|
|
480
492
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
|
|
481
|
-
|
|
482
|
-
|
|
493
|
+
m(l.$slots, "userConfig", {}, void 0, !0),
|
|
494
|
+
Tt.value ? (o(), n("div", {
|
|
483
495
|
key: 1,
|
|
484
496
|
ref_key: "noTitle",
|
|
485
497
|
ref: Ae,
|
|
486
498
|
class: "vue-data-ui-no-title-space",
|
|
487
499
|
style: "height:36px; width: 100%;background:transparent"
|
|
488
500
|
}, null, 512)) : i("", !0),
|
|
489
|
-
e.value.style.chart.title.text ? (o(),
|
|
501
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
490
502
|
key: 2,
|
|
491
503
|
ref_key: "chartTitle",
|
|
492
504
|
ref: Ce,
|
|
493
505
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
494
506
|
}, [
|
|
495
|
-
(o(),
|
|
507
|
+
(o(), Z(nl, {
|
|
496
508
|
key: `title_${Fe.value}`,
|
|
497
509
|
config: {
|
|
498
510
|
title: {
|
|
@@ -506,15 +518,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
506
518
|
}
|
|
507
519
|
}, null, 8, ["config"]))
|
|
508
520
|
], 512)) : i("", !0),
|
|
509
|
-
e.value.userOptions.show &&
|
|
521
|
+
e.value.userOptions.show && se.value && (r(Ye) || r(ge)) ? (o(), Z(r(bt), {
|
|
510
522
|
ref_key: "details",
|
|
511
|
-
ref:
|
|
523
|
+
ref: _t,
|
|
512
524
|
key: `user_option_${Oe.value}`,
|
|
513
525
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
514
526
|
color: e.value.style.chart.color,
|
|
515
|
-
isPrinting:
|
|
516
|
-
isImaging:
|
|
517
|
-
uid:
|
|
527
|
+
isPrinting: r(Ie),
|
|
528
|
+
isImaging: r(De),
|
|
529
|
+
uid: g.value,
|
|
518
530
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
519
531
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
520
532
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -530,151 +542,151 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
530
542
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
531
543
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
532
544
|
isAnnotation: he.value,
|
|
533
|
-
onToggleFullscreen:
|
|
534
|
-
onGeneratePdf:
|
|
545
|
+
onToggleFullscreen: Nt,
|
|
546
|
+
onGeneratePdf: r(Ve),
|
|
535
547
|
onGenerateCsv: Je,
|
|
536
|
-
onGenerateImage:
|
|
548
|
+
onGenerateImage: r(Be),
|
|
537
549
|
onToggleTable: Qe,
|
|
538
550
|
onToggleLabels: Ze,
|
|
539
551
|
onToggleTooltip: et,
|
|
540
552
|
onToggleAnnotator: ke,
|
|
541
553
|
style: b({
|
|
542
|
-
visibility:
|
|
554
|
+
visibility: r(Ye) ? r(ge) ? "visible" : "hidden" : "visible"
|
|
543
555
|
})
|
|
544
556
|
}, at({ _: 2 }, [
|
|
545
557
|
l.$slots.menuIcon ? {
|
|
546
558
|
name: "menuIcon",
|
|
547
559
|
fn: C(({ isOpen: t, color: a }) => [
|
|
548
|
-
|
|
560
|
+
m(l.$slots, "menuIcon", oe(ue({ isOpen: t, color: a })), void 0, !0)
|
|
549
561
|
]),
|
|
550
562
|
key: "0"
|
|
551
563
|
} : void 0,
|
|
552
564
|
l.$slots.optionTooltip ? {
|
|
553
565
|
name: "optionTooltip",
|
|
554
566
|
fn: C(() => [
|
|
555
|
-
|
|
567
|
+
m(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
556
568
|
]),
|
|
557
569
|
key: "1"
|
|
558
570
|
} : void 0,
|
|
559
571
|
l.$slots.optionPdf ? {
|
|
560
572
|
name: "optionPdf",
|
|
561
573
|
fn: C(() => [
|
|
562
|
-
|
|
574
|
+
m(l.$slots, "optionPdf", {}, void 0, !0)
|
|
563
575
|
]),
|
|
564
576
|
key: "2"
|
|
565
577
|
} : void 0,
|
|
566
578
|
l.$slots.optionCsv ? {
|
|
567
579
|
name: "optionCsv",
|
|
568
580
|
fn: C(() => [
|
|
569
|
-
|
|
581
|
+
m(l.$slots, "optionCsv", {}, void 0, !0)
|
|
570
582
|
]),
|
|
571
583
|
key: "3"
|
|
572
584
|
} : void 0,
|
|
573
585
|
l.$slots.optionImg ? {
|
|
574
586
|
name: "optionImg",
|
|
575
587
|
fn: C(() => [
|
|
576
|
-
|
|
588
|
+
m(l.$slots, "optionImg", {}, void 0, !0)
|
|
577
589
|
]),
|
|
578
590
|
key: "4"
|
|
579
591
|
} : void 0,
|
|
580
592
|
l.$slots.optionTable ? {
|
|
581
593
|
name: "optionTable",
|
|
582
594
|
fn: C(() => [
|
|
583
|
-
|
|
595
|
+
m(l.$slots, "optionTable", {}, void 0, !0)
|
|
584
596
|
]),
|
|
585
597
|
key: "5"
|
|
586
598
|
} : void 0,
|
|
587
599
|
l.$slots.optionLabels ? {
|
|
588
600
|
name: "optionLabels",
|
|
589
601
|
fn: C(() => [
|
|
590
|
-
|
|
602
|
+
m(l.$slots, "optionLabels", {}, void 0, !0)
|
|
591
603
|
]),
|
|
592
604
|
key: "6"
|
|
593
605
|
} : void 0,
|
|
594
606
|
l.$slots.optionFullscreen ? {
|
|
595
607
|
name: "optionFullscreen",
|
|
596
608
|
fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
597
|
-
|
|
609
|
+
m(l.$slots, "optionFullscreen", oe(ue({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
598
610
|
]),
|
|
599
611
|
key: "7"
|
|
600
612
|
} : void 0,
|
|
601
613
|
l.$slots.optionAnnotator ? {
|
|
602
614
|
name: "optionAnnotator",
|
|
603
615
|
fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
604
|
-
|
|
616
|
+
m(l.$slots, "optionAnnotator", oe(ue({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
605
617
|
]),
|
|
606
618
|
key: "8"
|
|
607
619
|
} : void 0
|
|
608
620
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
609
|
-
|
|
621
|
+
se.value ? (o(), n("svg", {
|
|
610
622
|
key: 4,
|
|
611
623
|
ref_key: "svgRef",
|
|
612
624
|
ref: me,
|
|
613
|
-
xmlns:
|
|
625
|
+
xmlns: r(jt),
|
|
614
626
|
class: _e({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
|
|
615
|
-
viewBox: `0 0 ${
|
|
627
|
+
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
616
628
|
style: b(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Xe.value.css}`)
|
|
617
629
|
}, [
|
|
618
|
-
|
|
619
|
-
l.$slots["chart-background"] ? (o(),
|
|
630
|
+
xe(r(ft)),
|
|
631
|
+
l.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
620
632
|
key: 0,
|
|
621
633
|
x: 0,
|
|
622
634
|
y: 0,
|
|
623
|
-
width:
|
|
624
|
-
height:
|
|
635
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
636
|
+
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
625
637
|
style: {
|
|
626
638
|
pointerEvents: "none"
|
|
627
639
|
}
|
|
628
640
|
}, [
|
|
629
|
-
|
|
630
|
-
], 8,
|
|
631
|
-
e.value.type === "classic" && !isNaN(
|
|
632
|
-
e.value.style.chart.useGradient ? (o(),
|
|
641
|
+
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
642
|
+
], 8, dl)) : i("", !0),
|
|
643
|
+
e.value.type === "classic" && !isNaN(q.value / k.value) ? (o(), n("defs", hl, [
|
|
644
|
+
e.value.style.chart.useGradient ? (o(), n("radialGradient", {
|
|
633
645
|
key: 0,
|
|
634
|
-
id: `gradient_${
|
|
646
|
+
id: `gradient_${g.value}`
|
|
635
647
|
}, [
|
|
636
648
|
f("stop", {
|
|
637
649
|
offset: "0%",
|
|
638
|
-
"stop-color":
|
|
650
|
+
"stop-color": r(fe)(e.value.style.chart.backgroundColor, 0),
|
|
639
651
|
"stop-opacity": "0"
|
|
640
|
-
}, null, 8,
|
|
652
|
+
}, null, 8, fl),
|
|
641
653
|
f("stop", {
|
|
642
|
-
offset: `${(1 -
|
|
643
|
-
"stop-color":
|
|
654
|
+
offset: `${(1 - q.value / k.value) * 100}%`,
|
|
655
|
+
"stop-color": r(fe)("#FFFFFF", 0),
|
|
644
656
|
"stop-opacity": "0"
|
|
645
|
-
}, null, 8,
|
|
657
|
+
}, null, 8, pl),
|
|
646
658
|
f("stop", {
|
|
647
|
-
offset: `${(1 -
|
|
648
|
-
"stop-color":
|
|
649
|
-
}, null, 8,
|
|
659
|
+
offset: `${(1 - q.value / k.value / 2) * 100}%`,
|
|
660
|
+
"stop-color": r(fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
661
|
+
}, null, 8, gl),
|
|
650
662
|
f("stop", {
|
|
651
663
|
offset: "100%",
|
|
652
|
-
"stop-color":
|
|
664
|
+
"stop-color": r(fe)(e.value.style.chart.backgroundColor, 0),
|
|
653
665
|
"stop-opacity": "0"
|
|
654
|
-
}, null, 8,
|
|
655
|
-
], 8,
|
|
666
|
+
}, null, 8, ml)
|
|
667
|
+
], 8, yl)) : i("", !0)
|
|
656
668
|
])) : i("", !0),
|
|
657
|
-
e.value.type === "polar" ? (o(),
|
|
658
|
-
(o(!0),
|
|
659
|
-
id: `polar_gradient_${a}_${
|
|
660
|
-
cx: (isNaN(t.middlePoint.x /
|
|
661
|
-
cy: (isNaN(t.middlePoint.y /
|
|
669
|
+
e.value.type === "polar" ? (o(), n("defs", bl, [
|
|
670
|
+
(o(!0), n(p, null, A(c.value, (t, a) => (o(), n("radialGradient", {
|
|
671
|
+
id: `polar_gradient_${a}_${g.value}`,
|
|
672
|
+
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
673
|
+
cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
|
|
662
674
|
r: "62%"
|
|
663
675
|
}, [
|
|
664
676
|
f("stop", {
|
|
665
677
|
offset: "0%",
|
|
666
|
-
"stop-color":
|
|
678
|
+
"stop-color": r(Ht)(F.value[a].color, 0.05),
|
|
667
679
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
668
|
-
}, null, 8,
|
|
680
|
+
}, null, 8, kl),
|
|
669
681
|
f("stop", {
|
|
670
682
|
offset: "100%",
|
|
671
|
-
"stop-color":
|
|
672
|
-
}, null, 8,
|
|
673
|
-
], 8,
|
|
683
|
+
"stop-color": F.value[a].color
|
|
684
|
+
}, null, 8, _l)
|
|
685
|
+
], 8, wl))), 256))
|
|
674
686
|
])) : i("", !0),
|
|
675
687
|
f("defs", null, [
|
|
676
688
|
f("filter", {
|
|
677
|
-
id: `blur_${
|
|
689
|
+
id: `blur_${g.value}`,
|
|
678
690
|
x: "-50%",
|
|
679
691
|
y: "-50%",
|
|
680
692
|
width: "200%",
|
|
@@ -683,15 +695,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
683
695
|
f("feGaussianBlur", {
|
|
684
696
|
in: "SourceGraphic",
|
|
685
697
|
stdDeviation: 2,
|
|
686
|
-
id: `blur_std_${
|
|
687
|
-
}, null, 8,
|
|
688
|
-
|
|
698
|
+
id: `blur_std_${g.value}`
|
|
699
|
+
}, null, 8, $l),
|
|
700
|
+
u[6] || (u[6] = f("feColorMatrix", {
|
|
689
701
|
type: "saturate",
|
|
690
702
|
values: "0"
|
|
691
703
|
}, null, -1))
|
|
692
|
-
], 8,
|
|
704
|
+
], 8, xl),
|
|
693
705
|
f("filter", {
|
|
694
|
-
id: `shadow_${
|
|
706
|
+
id: `shadow_${g.value}`,
|
|
695
707
|
"color-interpolation-filters": "sRGB"
|
|
696
708
|
}, [
|
|
697
709
|
f("feDropShadow", {
|
|
@@ -700,10 +712,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
700
712
|
stdDeviation: "10",
|
|
701
713
|
"flood-opacity": "0.5",
|
|
702
714
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
703
|
-
}, null, 8,
|
|
704
|
-
], 8,
|
|
715
|
+
}, null, 8, Tl)
|
|
716
|
+
], 8, Cl),
|
|
705
717
|
f("filter", {
|
|
706
|
-
id: `drop_shadow_${
|
|
718
|
+
id: `drop_shadow_${g.value}`,
|
|
707
719
|
"color-interpolation-filters": "sRGB",
|
|
708
720
|
x: "-50%",
|
|
709
721
|
y: "-50%",
|
|
@@ -716,163 +728,173 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
716
728
|
stdDeviation: "3",
|
|
717
729
|
"flood-opacity": "1",
|
|
718
730
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
719
|
-
}, null, 8,
|
|
720
|
-
], 8,
|
|
731
|
+
}, null, 8, Al)
|
|
732
|
+
], 8, Pl)
|
|
721
733
|
]),
|
|
722
|
-
e.value.type === "classic" ? (o(!0),
|
|
723
|
-
X(t) && h.value.dataLabels.show ? (o(),
|
|
734
|
+
e.value.type === "classic" ? (o(!0), n(p, { key: 3 }, A(F.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
|
|
735
|
+
X(t) && h.value.dataLabels.show ? (o(), n("path", {
|
|
724
736
|
key: 0,
|
|
725
|
-
d:
|
|
737
|
+
d: r(qt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, q.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
726
738
|
stroke: t.color,
|
|
727
739
|
"stroke-width": "1",
|
|
728
740
|
"stroke-linecap": "round",
|
|
729
741
|
"stroke-linejoin": "round",
|
|
730
742
|
fill: "none",
|
|
731
|
-
filter:
|
|
732
|
-
}, null, 8,
|
|
743
|
+
filter: K(a)
|
|
744
|
+
}, null, 8, Fl)) : i("", !0)
|
|
733
745
|
]))), 256)) : i("", !0),
|
|
734
|
-
e.value.type === "polar" ? (o(!0),
|
|
735
|
-
X(t) && h.value.dataLabels.show ? (o(),
|
|
746
|
+
e.value.type === "polar" ? (o(!0), n(p, { key: 4 }, A(F.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
|
|
747
|
+
X(t) && h.value.dataLabels.show ? (o(), n("path", {
|
|
736
748
|
key: 0,
|
|
737
|
-
d: `M ${
|
|
749
|
+
d: `M ${r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${c.value[a].middlePoint.x},${c.value[a].middlePoint.y}`,
|
|
738
750
|
stroke: t.color,
|
|
739
751
|
"stroke-width": "1",
|
|
740
752
|
"stroke-linecap": "round",
|
|
741
753
|
"stroke-linejoin": "round",
|
|
742
754
|
fill: "none",
|
|
743
|
-
filter:
|
|
755
|
+
filter: K(a),
|
|
744
756
|
style: b({
|
|
745
757
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
746
758
|
})
|
|
747
|
-
}, null, 12,
|
|
759
|
+
}, null, 12, Sl)) : i("", !0)
|
|
748
760
|
]))), 256)) : i("", !0),
|
|
749
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(),
|
|
761
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), n("circle", {
|
|
750
762
|
key: 5,
|
|
751
|
-
cx:
|
|
752
|
-
cy:
|
|
753
|
-
r:
|
|
763
|
+
cx: s.value.width / 2,
|
|
764
|
+
cy: s.value.height / 2,
|
|
765
|
+
r: k.value <= 0 ? 10 : k.value,
|
|
754
766
|
fill: e.value.style.chart.backgroundColor,
|
|
755
|
-
filter: `url(#shadow_${
|
|
756
|
-
}, null, 8,
|
|
757
|
-
l.$slots.pattern ? (o(),
|
|
758
|
-
(o(!0),
|
|
767
|
+
filter: `url(#shadow_${g.value})`
|
|
768
|
+
}, null, 8, Ll)) : i("", !0),
|
|
769
|
+
l.$slots.pattern ? (o(), n("g", zl, [
|
|
770
|
+
(o(!0), n(p, null, A($e.dataset, (t, a) => (o(), n("defs", {
|
|
759
771
|
key: `pattern-${t.patternIndex}`
|
|
760
772
|
}, [
|
|
761
|
-
|
|
773
|
+
m(l.$slots, "pattern", ot({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${g.value}_${a}` }), void 0, !0)
|
|
762
774
|
]))), 128))
|
|
763
775
|
])) : i("", !0),
|
|
764
|
-
|
|
765
|
-
(o(!0),
|
|
776
|
+
S.value && e.value.type === "classic" ? (o(), n(p, { key: 7 }, [
|
|
777
|
+
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
766
778
|
stroke: e.value.style.chart.backgroundColor,
|
|
767
779
|
d: t.arcSlice,
|
|
768
780
|
fill: "#FFFFFF"
|
|
769
|
-
}, null, 8,
|
|
770
|
-
(o(!0),
|
|
781
|
+
}, null, 8, Ol))), 256)),
|
|
782
|
+
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
771
783
|
class: "vue-ui-donut-arc-path",
|
|
772
784
|
d: t.arcSlice,
|
|
773
785
|
fill: t.color,
|
|
774
786
|
stroke: e.value.style.chart.backgroundColor,
|
|
775
787
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
776
|
-
filter:
|
|
777
|
-
}, null, 8,
|
|
778
|
-
l.$slots.pattern ? (o(),
|
|
779
|
-
(o(!0),
|
|
788
|
+
filter: K(a)
|
|
789
|
+
}, null, 8, Nl))), 256)),
|
|
790
|
+
l.$slots.pattern ? (o(), n("g", Ml, [
|
|
791
|
+
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
780
792
|
class: "vue-ui-donut-arc-path",
|
|
781
793
|
d: t.arcSlice,
|
|
782
794
|
fill: `url(#${t.pattern})`,
|
|
783
795
|
stroke: e.value.style.chart.backgroundColor,
|
|
784
796
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
785
|
-
filter:
|
|
786
|
-
}, null, 8,
|
|
797
|
+
filter: K(a)
|
|
798
|
+
}, null, 8, Yl))), 256))
|
|
787
799
|
])) : i("", !0)
|
|
788
800
|
], 64)) : i("", !0),
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
(o(!0),
|
|
801
|
+
S.value && e.value.type === "polar" ? (o(), n(p, { key: 8 }, [
|
|
802
|
+
F.value.length > 1 ? (o(), n("g", Xl, [
|
|
803
|
+
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
792
804
|
stroke: e.value.style.chart.backgroundColor,
|
|
793
805
|
d: c.value[a].path,
|
|
794
806
|
fill: "#FFFFFF",
|
|
795
807
|
style: b({
|
|
796
808
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
797
809
|
})
|
|
798
|
-
}, null, 12,
|
|
799
|
-
e.value.style.chart.layout.donut.useShadow ? (o(),
|
|
800
|
-
(o(!0),
|
|
810
|
+
}, null, 12, Il))), 256)),
|
|
811
|
+
e.value.style.chart.layout.donut.useShadow ? (o(), n("g", Dl, [
|
|
812
|
+
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
801
813
|
class: "vue-ui-donut-arc-path",
|
|
802
814
|
d: c.value[a].path,
|
|
803
815
|
fill: "transparent",
|
|
804
816
|
stroke: e.value.style.chart.backgroundColor,
|
|
805
817
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
806
|
-
filter: `url(#drop_shadow_${
|
|
818
|
+
filter: `url(#drop_shadow_${g.value})`,
|
|
807
819
|
style: b({
|
|
808
820
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
809
821
|
})
|
|
810
|
-
}, null, 12,
|
|
822
|
+
}, null, 12, Vl))), 256))
|
|
811
823
|
])) : i("", !0),
|
|
812
|
-
l.$slots.pattern ? (o(),
|
|
813
|
-
(o(!0),
|
|
824
|
+
l.$slots.pattern ? (o(), n("g", Bl, [
|
|
825
|
+
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
814
826
|
class: "vue-ui-donut-arc-path",
|
|
815
827
|
d: c.value[a].path,
|
|
816
828
|
fill: `url(#${t.pattern})`,
|
|
817
829
|
stroke: e.value.style.chart.backgroundColor,
|
|
818
830
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
819
|
-
filter:
|
|
831
|
+
filter: K(a),
|
|
820
832
|
style: b({
|
|
821
833
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
822
834
|
})
|
|
823
|
-
}, null, 12,
|
|
835
|
+
}, null, 12, Gl))), 256))
|
|
824
836
|
])) : i("", !0),
|
|
825
|
-
(o(!0),
|
|
837
|
+
(o(!0), n(p, null, A(Y.value, (t, a) => (o(), n("path", {
|
|
826
838
|
class: "vue-ui-donut-arc-path",
|
|
827
839
|
d: c.value[a].path,
|
|
828
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
840
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${g.value})` : t.color,
|
|
829
841
|
stroke: e.value.style.chart.backgroundColor,
|
|
830
842
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
831
|
-
filter:
|
|
843
|
+
filter: K(a),
|
|
832
844
|
style: b({
|
|
833
845
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
834
846
|
})
|
|
835
|
-
}, null, 12,
|
|
836
|
-
])) : (o(),
|
|
837
|
-
l.$slots.pattern ? (o(),
|
|
847
|
+
}, null, 12, Wl))), 256))
|
|
848
|
+
])) : (o(), n("g", Rl, [
|
|
849
|
+
l.$slots.pattern ? (o(), n("circle", {
|
|
838
850
|
key: 0,
|
|
839
|
-
cx:
|
|
840
|
-
cy:
|
|
841
|
-
r:
|
|
842
|
-
fill: `url(#pattern_${
|
|
851
|
+
cx: s.value.width / 2,
|
|
852
|
+
cy: s.value.height / 2,
|
|
853
|
+
r: k.value,
|
|
854
|
+
fill: `url(#pattern_${g.value}_${F.value[0].patternIndex})`,
|
|
843
855
|
stroke: e.value.style.chart.backgroundColor,
|
|
844
856
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
845
|
-
}, null, 8,
|
|
857
|
+
}, null, 8, El)) : i("", !0),
|
|
846
858
|
f("circle", {
|
|
847
|
-
cx:
|
|
848
|
-
cy:
|
|
849
|
-
r:
|
|
850
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
859
|
+
cx: s.value.width / 2,
|
|
860
|
+
cy: s.value.height / 2,
|
|
861
|
+
r: k.value,
|
|
862
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${g.value})` : F.value[0].color,
|
|
851
863
|
stroke: e.value.style.chart.backgroundColor,
|
|
852
864
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
853
|
-
}, null, 8,
|
|
865
|
+
}, null, 8, Ul)
|
|
854
866
|
]))
|
|
855
|
-
], 64)) : (o(),
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
867
|
+
], 64)) : (o(), n(p, { key: 9 }, [
|
|
868
|
+
e.value.type === "classic" && !St.value ? (o(), n("g", jl, [
|
|
869
|
+
(o(!0), n(p, null, A(Lt.value, (t, a) => (o(), n("path", {
|
|
870
|
+
class: "vue-ui-donut-arc-path",
|
|
871
|
+
d: t.arcSlice,
|
|
872
|
+
fill: t.color,
|
|
873
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
874
|
+
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
875
|
+
}, null, 8, Hl))), 256))
|
|
876
|
+
])) : i("", !0),
|
|
877
|
+
f("circle", {
|
|
878
|
+
cx: s.value.width / 2,
|
|
879
|
+
cy: s.value.height / 2,
|
|
880
|
+
r: k.value <= 0 ? 10 : k.value,
|
|
881
|
+
fill: "transparent",
|
|
882
|
+
stroke: e.value.style.chart.backgroundColor
|
|
883
|
+
}, null, 8, ql)
|
|
884
|
+
], 64)),
|
|
885
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), n("circle", {
|
|
864
886
|
key: 10,
|
|
865
|
-
cx:
|
|
866
|
-
cy:
|
|
887
|
+
cx: s.value.width / 2,
|
|
888
|
+
cy: s.value.height / 2,
|
|
867
889
|
r: (
|
|
868
890
|
/* This might require adjustments */
|
|
869
|
-
|
|
891
|
+
k.value <= 0 ? 10 : k.value
|
|
870
892
|
),
|
|
871
|
-
fill: `url(#gradient_${
|
|
872
|
-
}, null, 8,
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
(o(!0),
|
|
893
|
+
fill: `url(#gradient_${g.value})`
|
|
894
|
+
}, null, 8, Jl)) : i("", !0),
|
|
895
|
+
S.value ? (o(), n(p, { key: 11 }, [
|
|
896
|
+
F.value.length > 1 || e.value.type === "classic" ? (o(), n("g", Kl, [
|
|
897
|
+
(o(!0), n(p, null, A(F.value.filter((t) => !t.ghost), (t, a) => (o(), n("path", {
|
|
876
898
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
877
899
|
fill: O.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
878
900
|
onMouseenter: (v) => qe({
|
|
@@ -881,177 +903,177 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
881
903
|
seriesIndex: t.seriesIndex,
|
|
882
904
|
show: !0
|
|
883
905
|
}),
|
|
884
|
-
onMouseleave:
|
|
906
|
+
onMouseleave: u[0] || (u[0] = (v) => {
|
|
885
907
|
ce.value = !1, O.value = null;
|
|
886
908
|
}),
|
|
887
909
|
onClick: (v) => H(t, a)
|
|
888
|
-
}, null, 40,
|
|
889
|
-
])) : (o(),
|
|
910
|
+
}, null, 40, Ql))), 256))
|
|
911
|
+
])) : (o(), n("g", Zl, [
|
|
890
912
|
f("circle", {
|
|
891
|
-
cx:
|
|
892
|
-
cy:
|
|
893
|
-
r:
|
|
913
|
+
cx: s.value.width / 2,
|
|
914
|
+
cy: s.value.height / 2,
|
|
915
|
+
r: k.value,
|
|
894
916
|
fill: "transparent",
|
|
895
|
-
onMouseenter:
|
|
896
|
-
datapoint:
|
|
917
|
+
onMouseenter: u[1] || (u[1] = (t) => qe({
|
|
918
|
+
datapoint: F.value[0],
|
|
897
919
|
relativeIndex: 0,
|
|
898
|
-
seriesIndex:
|
|
920
|
+
seriesIndex: F.value[0].seriesIndex,
|
|
899
921
|
show: !0
|
|
900
922
|
})),
|
|
901
|
-
onMouseleave:
|
|
923
|
+
onMouseleave: u[2] || (u[2] = (t) => {
|
|
902
924
|
ce.value = !1, O.value = null;
|
|
903
925
|
}),
|
|
904
|
-
onClick:
|
|
905
|
-
}, null, 40,
|
|
926
|
+
onClick: u[3] || (u[3] = (t) => H(F.value[0], l.i))
|
|
927
|
+
}, null, 40, ea)
|
|
906
928
|
]))
|
|
907
929
|
], 64)) : i("", !0),
|
|
908
|
-
e.value.type === "classic" ? (o(),
|
|
909
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (o(),
|
|
930
|
+
e.value.type === "classic" ? (o(), n(p, { key: 12 }, [
|
|
931
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
|
|
910
932
|
key: 0,
|
|
911
933
|
"text-anchor": "middle",
|
|
912
|
-
x:
|
|
913
|
-
y:
|
|
934
|
+
x: s.value.width / 2,
|
|
935
|
+
y: s.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
914
936
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
915
937
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
916
938
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
917
|
-
}, P(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
918
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (o(),
|
|
939
|
+
}, P(e.value.style.chart.layout.labels.hollow.total.text), 13, ta)) : i("", !0),
|
|
940
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
|
|
919
941
|
key: 1,
|
|
920
942
|
"text-anchor": "middle",
|
|
921
|
-
x:
|
|
922
|
-
y:
|
|
943
|
+
x: s.value.width / 2,
|
|
944
|
+
y: s.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
923
945
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
924
946
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
925
947
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
926
|
-
}, P(
|
|
948
|
+
}, P(r(D)(
|
|
927
949
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
928
|
-
|
|
929
|
-
|
|
950
|
+
S.value,
|
|
951
|
+
r(M)({
|
|
930
952
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
931
|
-
v:
|
|
953
|
+
v: S.value,
|
|
932
954
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
933
955
|
})
|
|
934
|
-
)), 13,
|
|
935
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (o(),
|
|
956
|
+
)), 13, la)) : i("", !0),
|
|
957
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
|
|
936
958
|
key: 2,
|
|
937
959
|
"text-anchor": "middle",
|
|
938
|
-
x:
|
|
939
|
-
y:
|
|
960
|
+
x: s.value.width / 2,
|
|
961
|
+
y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
940
962
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
941
963
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
942
964
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
943
|
-
}, P(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
944
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (o(),
|
|
965
|
+
}, P(e.value.style.chart.layout.labels.hollow.average.text), 13, aa)) : i("", !0),
|
|
966
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
|
|
945
967
|
key: 3,
|
|
946
968
|
"text-anchor": "middle",
|
|
947
|
-
x:
|
|
948
|
-
y:
|
|
969
|
+
x: s.value.width / 2,
|
|
970
|
+
y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
949
971
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
950
972
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
951
973
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
952
|
-
}, P(
|
|
974
|
+
}, P(J.value || T.value ? "--" : r(D)(
|
|
953
975
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
954
976
|
je.value,
|
|
955
|
-
|
|
977
|
+
r(M)({
|
|
956
978
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
957
979
|
v: je.value,
|
|
958
980
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
959
981
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
960
982
|
})
|
|
961
|
-
)), 13,
|
|
983
|
+
)), 13, oa)) : i("", !0)
|
|
962
984
|
], 64)) : i("", !0),
|
|
963
|
-
(o(!0),
|
|
964
|
-
filter:
|
|
985
|
+
(o(!0), n(p, null, A(Y.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", {
|
|
986
|
+
filter: K(a),
|
|
965
987
|
class: _e({ animated: e.value.useCssAnimation })
|
|
966
988
|
}, [
|
|
967
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(),
|
|
968
|
-
(o(),
|
|
969
|
-
x:
|
|
970
|
-
y:
|
|
989
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", sa, [
|
|
990
|
+
(o(), n("foreignObject", {
|
|
991
|
+
x: r(w)(t, !0).anchor === "end" ? r(w)(t).x - 120 : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - 60 : r(w)(t).x,
|
|
992
|
+
y: r(ve)(t) - (Ke.value ? 20 : 0),
|
|
971
993
|
width: "120",
|
|
972
994
|
height: "60",
|
|
973
995
|
style: { overflow: "visible" }
|
|
974
996
|
}, [
|
|
975
997
|
f("div", null, [
|
|
976
|
-
|
|
998
|
+
m(l.$slots, "dataLabel", ot({ ref_for: !0 }, {
|
|
977
999
|
datapoint: t,
|
|
978
1000
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a,
|
|
979
1001
|
isSafari: Ke.value,
|
|
980
1002
|
isVisible: X(t) && h.value.dataLabels.show,
|
|
981
|
-
textAlign:
|
|
982
|
-
flexAlign:
|
|
1003
|
+
textAlign: r(w)(t, !0, 16, !0).anchor,
|
|
1004
|
+
flexAlign: r(w)(t, !0, 16).anchor,
|
|
983
1005
|
percentage: be(t, Y.value)
|
|
984
1006
|
}), void 0, !0)
|
|
985
1007
|
])
|
|
986
|
-
], 8,
|
|
987
|
-
])) : (o(),
|
|
988
|
-
e.value.type === "classic" ? (o(),
|
|
989
|
-
X(t) && h.value.dataLabels.show ? (o(),
|
|
1008
|
+
], 8, na))
|
|
1009
|
+
])) : (o(), n("g", ra, [
|
|
1010
|
+
e.value.type === "classic" ? (o(), n(p, { key: 0 }, [
|
|
1011
|
+
X(t) && h.value.dataLabels.show ? (o(), n("circle", {
|
|
990
1012
|
key: 0,
|
|
991
|
-
cx:
|
|
992
|
-
cy:
|
|
1013
|
+
cx: r(w)(t).x,
|
|
1014
|
+
cy: r(ve)(t) - 3.5,
|
|
993
1015
|
fill: t.color,
|
|
994
1016
|
stroke: e.value.style.chart.backgroundColor,
|
|
995
1017
|
"stroke-width": 1,
|
|
996
1018
|
r: 3,
|
|
997
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${
|
|
1019
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${g.value})`,
|
|
998
1020
|
onClick: (v) => H(t, a)
|
|
999
|
-
}, null, 8,
|
|
1021
|
+
}, null, 8, ia)) : i("", !0)
|
|
1000
1022
|
], 64)) : i("", !0),
|
|
1001
|
-
e.value.type === "polar" ? (o(),
|
|
1002
|
-
X(t) && h.value.dataLabels.show ? (o(),
|
|
1023
|
+
e.value.type === "polar" ? (o(), n(p, { key: 1 }, [
|
|
1024
|
+
X(t) && h.value.dataLabels.show ? (o(), n("circle", {
|
|
1003
1025
|
key: 0,
|
|
1004
|
-
cx:
|
|
1005
|
-
cy:
|
|
1026
|
+
cx: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1027
|
+
cy: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
1006
1028
|
fill: t.color,
|
|
1007
1029
|
stroke: e.value.style.chart.backgroundColor,
|
|
1008
1030
|
"stroke-width": 1,
|
|
1009
1031
|
r: 3,
|
|
1010
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${
|
|
1032
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${g.value})`,
|
|
1011
1033
|
onClick: (v) => H(t, a),
|
|
1012
1034
|
style: b({
|
|
1013
1035
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1014
1036
|
})
|
|
1015
|
-
}, null, 12,
|
|
1037
|
+
}, null, 12, va)) : i("", !0)
|
|
1016
1038
|
], 64)) : i("", !0),
|
|
1017
|
-
e.value.type === "classic" ? (o(),
|
|
1018
|
-
X(t) && h.value.dataLabels.show ? (o(),
|
|
1039
|
+
e.value.type === "classic" ? (o(), n(p, { key: 2 }, [
|
|
1040
|
+
X(t) && h.value.dataLabels.show ? (o(), n("text", {
|
|
1019
1041
|
key: 0,
|
|
1020
|
-
"text-anchor":
|
|
1021
|
-
x:
|
|
1022
|
-
y:
|
|
1042
|
+
"text-anchor": r(w)(t, !0, 12).anchor,
|
|
1043
|
+
x: r(w)(t, !0, 12).x,
|
|
1044
|
+
y: r(ve)(t),
|
|
1023
1045
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1024
1046
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1025
1047
|
style: b(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1026
1048
|
onClick: (v) => H(t, a)
|
|
1027
|
-
}, P(be(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${
|
|
1049
|
+
}, P(be(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(D)(
|
|
1028
1050
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1029
1051
|
t.value,
|
|
1030
|
-
|
|
1052
|
+
r(M)({
|
|
1031
1053
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1032
1054
|
v: t.value,
|
|
1033
1055
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1034
1056
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1035
1057
|
}),
|
|
1036
1058
|
{ datapoint: t }
|
|
1037
|
-
)})` : ""), 13,
|
|
1038
|
-
X(t) && h.value.dataLabels.show ? (o(),
|
|
1059
|
+
)})` : ""), 13, ca)) : i("", !0),
|
|
1060
|
+
X(t) && h.value.dataLabels.show ? (o(), n("text", {
|
|
1039
1061
|
key: 1,
|
|
1040
|
-
"text-anchor":
|
|
1041
|
-
x:
|
|
1042
|
-
y:
|
|
1062
|
+
"text-anchor": r(w)(t).anchor,
|
|
1063
|
+
x: r(w)(t, !0, 12).x,
|
|
1064
|
+
y: r(ve)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1043
1065
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1044
1066
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1045
1067
|
style: b(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1046
1068
|
onClick: (v) => H(t, a)
|
|
1047
|
-
}, P(t.name), 13,
|
|
1069
|
+
}, P(t.name), 13, da)) : i("", !0)
|
|
1048
1070
|
], 64)) : i("", !0),
|
|
1049
|
-
e.value.type === "polar" ? (o(),
|
|
1050
|
-
X(t) && h.value.dataLabels.show ? (o(),
|
|
1071
|
+
e.value.type === "polar" ? (o(), n(p, { key: 3 }, [
|
|
1072
|
+
X(t) && h.value.dataLabels.show ? (o(), n("text", {
|
|
1051
1073
|
key: 0,
|
|
1052
1074
|
"text-anchor": le(c.value[a].middlePoint),
|
|
1053
|
-
x:
|
|
1054
|
-
y:
|
|
1075
|
+
x: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1076
|
+
y: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
1055
1077
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1056
1078
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1057
1079
|
style: b({
|
|
@@ -1059,22 +1081,22 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1059
1081
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1060
1082
|
}),
|
|
1061
1083
|
onClick: (v) => H(t, a)
|
|
1062
|
-
}, P(be(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${
|
|
1084
|
+
}, P(be(t, Y.value)) + " " + P(e.value.style.chart.layout.labels.value.show ? `(${r(D)(
|
|
1063
1085
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1064
1086
|
t.value,
|
|
1065
|
-
|
|
1087
|
+
r(M)({
|
|
1066
1088
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1067
1089
|
v: t.value,
|
|
1068
1090
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1069
1091
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1070
1092
|
}),
|
|
1071
1093
|
{ datapoint: t }
|
|
1072
|
-
)})` : ""), 13,
|
|
1073
|
-
X(t) && h.value.dataLabels.show ? (o(),
|
|
1094
|
+
)})` : ""), 13, ha)) : i("", !0),
|
|
1095
|
+
X(t) && h.value.dataLabels.show ? (o(), n("text", {
|
|
1074
1096
|
key: 1,
|
|
1075
1097
|
"text-anchor": le(c.value[a].middlePoint),
|
|
1076
|
-
x:
|
|
1077
|
-
y:
|
|
1098
|
+
x: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1099
|
+
y: r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1078
1100
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1079
1101
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1080
1102
|
style: b({
|
|
@@ -1082,28 +1104,28 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1082
1104
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1083
1105
|
}),
|
|
1084
1106
|
onClick: (v) => H(t, a)
|
|
1085
|
-
}, P(t.name), 13,
|
|
1107
|
+
}, P(t.name), 13, ya)) : i("", !0)
|
|
1086
1108
|
], 64)) : i("", !0)
|
|
1087
1109
|
])),
|
|
1088
|
-
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(),
|
|
1089
|
-
X(t) && e.value.type === "classic" ? (o(),
|
|
1110
|
+
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", fa, [
|
|
1111
|
+
X(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
|
|
1090
1112
|
key: 0,
|
|
1091
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1092
|
-
y:
|
|
1113
|
+
x: e.value.style.chart.comments.offsetX + (r(w)(t, !0).anchor === "end" ? r(w)(t).x - e.value.style.chart.comments.width : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - e.value.style.chart.comments.width / 2 : r(w)(t).x),
|
|
1114
|
+
y: r(ve)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1093
1115
|
width: e.value.style.chart.comments.width,
|
|
1094
1116
|
height: "200",
|
|
1095
1117
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1096
1118
|
}, [
|
|
1097
1119
|
f("div", null, [
|
|
1098
|
-
|
|
1099
|
-
plot: { ...t, textAlign:
|
|
1120
|
+
m(l.$slots, "plot-comment", {
|
|
1121
|
+
plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1100
1122
|
}, void 0, !0)
|
|
1101
1123
|
])
|
|
1102
|
-
], 8,
|
|
1103
|
-
X(t) && e.value.type === "polar" ? (o(),
|
|
1124
|
+
], 8, pa)) : i("", !0),
|
|
1125
|
+
X(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
|
|
1104
1126
|
key: 1,
|
|
1105
|
-
x: e.value.style.chart.comments.offsetX + (le(c.value[a].middlePoint) === "end" ?
|
|
1106
|
-
y:
|
|
1127
|
+
x: e.value.style.chart.comments.offsetX + (le(c.value[a].middlePoint) === "end" ? r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : le(c.value[a].middlePoint) === "middle" ? r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
|
|
1128
|
+
y: zt(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1107
1129
|
width: e.value.style.chart.comments.width,
|
|
1108
1130
|
height: "200",
|
|
1109
1131
|
style: b({
|
|
@@ -1113,19 +1135,19 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1113
1135
|
})
|
|
1114
1136
|
}, [
|
|
1115
1137
|
f("div", null, [
|
|
1116
|
-
|
|
1138
|
+
m(l.$slots, "plot-comment", {
|
|
1117
1139
|
plot: { ...t, textAlign: le(c.value[a].middlePoint), flexAlign: le(c.value[a].middlePoint), isFirstLoad: T.value }
|
|
1118
1140
|
}, void 0, !0)
|
|
1119
1141
|
])
|
|
1120
|
-
], 12,
|
|
1142
|
+
], 12, ga)) : i("", !0)
|
|
1121
1143
|
])) : i("", !0)
|
|
1122
|
-
], 10,
|
|
1123
|
-
|
|
1124
|
-
], 14,
|
|
1125
|
-
l.$slots.watermark ? (o(),
|
|
1126
|
-
|
|
1144
|
+
], 10, ua))), 256)),
|
|
1145
|
+
m(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1146
|
+
], 14, cl)) : i("", !0),
|
|
1147
|
+
l.$slots.watermark ? (o(), n("div", ma, [
|
|
1148
|
+
m(l.$slots, "watermark", oe(ue({ isPrinting: r(Ie) || r(De) })), void 0, !0)
|
|
1127
1149
|
])) : i("", !0),
|
|
1128
|
-
|
|
1150
|
+
se.value ? i("", !0) : (o(), Z(r(gt), {
|
|
1129
1151
|
key: 6,
|
|
1130
1152
|
config: {
|
|
1131
1153
|
type: "donut",
|
|
@@ -1133,7 +1155,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1133
1155
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1134
1156
|
donut: {
|
|
1135
1157
|
color: "#CCCCCC",
|
|
1136
|
-
strokeWidth:
|
|
1158
|
+
strokeWidth: q.value * 0.8
|
|
1137
1159
|
}
|
|
1138
1160
|
}
|
|
1139
1161
|
}
|
|
@@ -1142,21 +1164,21 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1142
1164
|
ref_key: "chartLegend",
|
|
1143
1165
|
ref: Te
|
|
1144
1166
|
}, [
|
|
1145
|
-
e.value.style.chart.legend.show ? (o(),
|
|
1167
|
+
e.value.style.chart.legend.show ? (o(), Z(sl, {
|
|
1146
1168
|
key: `legend_${Le.value}`,
|
|
1147
1169
|
legendSet: Ue.value,
|
|
1148
|
-
config:
|
|
1149
|
-
onClickMarker:
|
|
1170
|
+
config: Ft.value,
|
|
1171
|
+
onClickMarker: u[4] || (u[4] = ({ i: t }) => Ee(t))
|
|
1150
1172
|
}, at({
|
|
1151
1173
|
item: C(({ legend: t, index: a }) => [
|
|
1152
1174
|
f("div", {
|
|
1153
1175
|
style: b(`opacity:${V.value.includes(a) ? 0.5 : 1}`),
|
|
1154
1176
|
onClick: (v) => t.segregate()
|
|
1155
1177
|
}, [
|
|
1156
|
-
|
|
1178
|
+
ut(P(t.name) + ": " + P(r(D)(
|
|
1157
1179
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1158
1180
|
t.value,
|
|
1159
|
-
|
|
1181
|
+
r(M)({
|
|
1160
1182
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1161
1183
|
v: t.value,
|
|
1162
1184
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1167,44 +1189,44 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1167
1189
|
index: a
|
|
1168
1190
|
}
|
|
1169
1191
|
)) + " ", 1),
|
|
1170
|
-
V.value.includes(a) ? (o(),
|
|
1192
|
+
V.value.includes(a) ? (o(), n("span", ka, " ( " + P(Mt(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", wa, " (" + P(isNaN(t.value / S.value) ? "-" : r(D)(
|
|
1171
1193
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1172
1194
|
He.value(t),
|
|
1173
|
-
|
|
1195
|
+
r(M)({
|
|
1174
1196
|
v: He.value(t),
|
|
1175
1197
|
s: "%",
|
|
1176
1198
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1177
1199
|
})
|
|
1178
1200
|
)) + ") ", 1))
|
|
1179
|
-
], 12,
|
|
1201
|
+
], 12, ba)
|
|
1180
1202
|
]),
|
|
1181
1203
|
_: 2
|
|
1182
1204
|
}, [
|
|
1183
1205
|
l.$slots.pattern ? {
|
|
1184
1206
|
name: "legend-pattern",
|
|
1185
1207
|
fn: C(({ legend: t, index: a }) => [
|
|
1186
|
-
|
|
1208
|
+
xe(rl, {
|
|
1187
1209
|
shape: t.shape,
|
|
1188
1210
|
radius: 30,
|
|
1189
1211
|
stroke: "none",
|
|
1190
1212
|
plot: { x: 30, y: 30 },
|
|
1191
|
-
fill: `url(#pattern_${
|
|
1213
|
+
fill: `url(#pattern_${g.value}_${a})`
|
|
1192
1214
|
}, null, 8, ["shape", "fill"])
|
|
1193
1215
|
]),
|
|
1194
1216
|
key: "0"
|
|
1195
1217
|
} : void 0
|
|
1196
1218
|
]), 1032, ["legendSet", "config"])) : i("", !0),
|
|
1197
|
-
|
|
1219
|
+
m(l.$slots, "legend", { legend: Ue.value }, void 0, !0)
|
|
1198
1220
|
], 512),
|
|
1199
|
-
l.$slots.source ? (o(),
|
|
1221
|
+
l.$slots.source ? (o(), n("div", {
|
|
1200
1222
|
key: 7,
|
|
1201
1223
|
ref_key: "source",
|
|
1202
1224
|
ref: Pe,
|
|
1203
1225
|
dir: "auto"
|
|
1204
1226
|
}, [
|
|
1205
|
-
|
|
1227
|
+
m(l.$slots, "source", {}, void 0, !0)
|
|
1206
1228
|
], 512)) : i("", !0),
|
|
1207
|
-
|
|
1229
|
+
xe(r(mt), {
|
|
1208
1230
|
show: h.value.showTooltip && ce.value,
|
|
1209
1231
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1210
1232
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1221,14 +1243,14 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1221
1243
|
isFullscreen: ae.value
|
|
1222
1244
|
}, {
|
|
1223
1245
|
"tooltip-before": C(() => [
|
|
1224
|
-
|
|
1246
|
+
m(l.$slots, "tooltip-before", oe(ue({ ...we.value })), void 0, !0)
|
|
1225
1247
|
]),
|
|
1226
1248
|
"tooltip-after": C(() => [
|
|
1227
|
-
|
|
1249
|
+
m(l.$slots, "tooltip-after", oe(ue({ ...we.value })), void 0, !0)
|
|
1228
1250
|
]),
|
|
1229
1251
|
_: 3
|
|
1230
1252
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1231
|
-
|
|
1253
|
+
se.value ? (o(), Z(r(ht), {
|
|
1232
1254
|
key: 8,
|
|
1233
1255
|
hideDetails: "",
|
|
1234
1256
|
config: {
|
|
@@ -1245,34 +1267,34 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1245
1267
|
}
|
|
1246
1268
|
}, {
|
|
1247
1269
|
content: C(() => [
|
|
1248
|
-
(o(),
|
|
1270
|
+
(o(), Z(r(yt), {
|
|
1249
1271
|
key: `table_${Se.value}`,
|
|
1250
1272
|
colNames: de.value.colNames,
|
|
1251
1273
|
head: de.value.head,
|
|
1252
1274
|
body: de.value.body,
|
|
1253
1275
|
config: de.value.config,
|
|
1254
1276
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1255
|
-
onClose:
|
|
1277
|
+
onClose: u[5] || (u[5] = (t) => h.value.showTable = !1)
|
|
1256
1278
|
}, {
|
|
1257
1279
|
th: C(({ th: t }) => [
|
|
1258
1280
|
f("div", {
|
|
1259
1281
|
innerHTML: t,
|
|
1260
1282
|
style: { display: "flex", "align-items": "center" }
|
|
1261
|
-
}, null, 8,
|
|
1283
|
+
}, null, 8, _a)
|
|
1262
1284
|
]),
|
|
1263
1285
|
td: C(({ td: t }) => [
|
|
1264
|
-
|
|
1286
|
+
ut(P(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(D)(
|
|
1265
1287
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1266
1288
|
t,
|
|
1267
|
-
|
|
1289
|
+
r(M)({
|
|
1268
1290
|
v: t,
|
|
1269
1291
|
s: "%",
|
|
1270
1292
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1271
1293
|
})
|
|
1272
|
-
) :
|
|
1294
|
+
) : r(D)(
|
|
1273
1295
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1274
1296
|
t,
|
|
1275
|
-
|
|
1297
|
+
r(M)({
|
|
1276
1298
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1277
1299
|
v: t,
|
|
1278
1300
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1285,9 +1307,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1285
1307
|
]),
|
|
1286
1308
|
_: 1
|
|
1287
1309
|
}, 8, ["config"])) : i("", !0)
|
|
1288
|
-
], 46,
|
|
1310
|
+
], 46, vl));
|
|
1289
1311
|
}
|
|
1290
|
-
},
|
|
1312
|
+
}, Ma = /* @__PURE__ */ il(xa, [["__scopeId", "data-v-f2338bb9"]]);
|
|
1291
1313
|
export {
|
|
1292
|
-
|
|
1314
|
+
Ma as default
|
|
1293
1315
|
};
|