vue-data-ui 2.16.6 → 2.17.1
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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as vt } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as Z, useSlots as It, computed as y, shallowRef as E, ref as $, onMounted as lt, onBeforeUnmount as Xt, watch as at, createElementBlock as n, openBlock as u, normalizeStyle as b, normalizeClass as _e, createBlock as ee, createCommentVNode as i, renderSlot as m, createElementVNode as f, createVNode as $e, unref as r, createSlots as ot, withCtx as C, normalizeProps as ue, guardReactiveProps as se, Fragment as g, renderList as A, mergeProps as ut, toDisplayString as T, createTextVNode as Vt, nextTick as Dt } from "vue";
|
|
2
|
+
import { u as Bt, o as Gt, e as st, g as Rt, c as Wt, b as Et, v as Ut, d as nt, p as te, m as rt, $ as jt, f as M, X as Ht, s as fe, w as qt, j as Jt, N as L, i as V, k as ve, n as w, t as Kt, a as Qt, q as Zt, r as el, x as tl, T as it } from "./index-CobsZUkv.js";
|
|
3
|
+
import { t as ll, u as al } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as vt } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as ol } from "./usePrinter-DPh6U_Qk.js";
|
|
6
|
+
import { u as ul } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import nl from "./Legend-3LNqqLDg.js";
|
|
9
|
+
import rl from "./Title-DpERl1yr.js";
|
|
10
|
+
import { _ as il } from "./Shape-C75836Jl.js";
|
|
11
|
+
import vl from "./img-utitT2Gd.js";
|
|
12
|
+
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const dl = ["id"], hl = ["xmlns", "viewBox"], yl = ["width", "height"], fl = { key: 1 }, gl = ["id"], pl = ["stop-color"], ml = ["offset", "stop-color"], bl = ["offset", "stop-color"], wl = ["stop-color"], kl = { key: 2 }, _l = ["id", "cx", "cy"], $l = ["stop-color", "stop-opacity"], xl = ["stop-color"], Cl = ["id"], Pl = ["id"], Tl = ["id"], Al = ["flood-color"], Sl = ["id"], Fl = ["flood-color"], Ll = ["d", "stroke", "filter"], Ol = ["d", "stroke", "filter"], zl = ["cx", "cy", "r", "fill", "filter"], Nl = { key: 6 }, Ml = ["stroke", "d"], Yl = ["d", "fill", "stroke", "stroke-width", "filter"], Il = { key: 0 }, Xl = ["d", "fill", "stroke", "stroke-width", "filter"], Vl = { key: 0 }, Dl = ["stroke", "d"], Bl = { key: 0 }, Gl = ["d", "stroke", "stroke-width", "filter"], Rl = { key: 1 }, Wl = ["d", "fill", "stroke", "stroke-width", "filter"], El = ["d", "fill", "stroke", "stroke-width", "filter"], Ul = { key: 1 }, jl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ql = { key: 0 }, Jl = ["d", "fill", "stroke", "stroke-width"], Kl = ["cx", "cy", "r", "stroke"], Ql = ["cx", "cy", "r", "fill"], Zl = { key: 0 }, ea = ["d", "fill", "onMouseenter", "onClick"], ta = { key: 1 }, la = ["cx", "cy", "r"], aa = ["x", "y", "fill", "font-size"], oa = ["x", "y", "fill", "font-size"], ua = ["x", "y", "fill", "font-size"], sa = ["x", "y", "fill", "font-size"], na = ["filter"], ra = { key: 0 }, ia = ["x", "y"], va = { key: 1 }, ca = ["cx", "cy", "fill", "stroke", "filter", "onClick"], da = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ha = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ya = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], fa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], pa = { key: 2 }, ma = ["x", "y", "width"], ba = ["x", "y", "width"], wa = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
-
key: 0,
|
|
17
|
-
style: { "font-variant-numeric": "tabular-nums" }
|
|
18
|
-
}, ka = { key: 1 }, _a = ["innerHTML"], xa = {
|
|
16
|
+
}, ka = ["onClick"], _a = ["innerHTML"], $a = {
|
|
19
17
|
__name: "vue-ui-donut",
|
|
20
18
|
props: {
|
|
21
19
|
config: {
|
|
@@ -32,54 +30,54 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
32
30
|
}
|
|
33
31
|
},
|
|
34
32
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const ht =
|
|
33
|
+
setup(xe, { expose: ct, emit: dt }) {
|
|
34
|
+
const ht = Z(() => import("./vue-ui-accordion-UewqY6OI.js")), yt = Z(() => import("./DataTable-Dt-TIOyY.js")), ft = Z(() => import("./PackageVersion-C-4Ee8BQ.js")), gt = Z(() => import("./PenAndPaper-Cde-wJ3N.js")), pt = Z(() => import("./vue-ui-skeleton-8s4xts8z.js")), mt = Z(() => import("./Tooltip-DA0bYKFG.js")), bt = Z(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_donut: wt } = Bt(), kt = It(), O = xe, ne = y({
|
|
37
35
|
get() {
|
|
38
36
|
return !!O.dataset && O.dataset.length;
|
|
39
37
|
},
|
|
40
38
|
set(l) {
|
|
41
39
|
return l;
|
|
42
40
|
}
|
|
43
|
-
}),
|
|
44
|
-
|
|
41
|
+
}), U = E(null), Ce = E(null), Pe = E(null), j = E(null), le = E(null), Te = E(null), Ae = E(null), Se = $(0), Fe = $(0), Le = $(0);
|
|
42
|
+
lt(() => {
|
|
45
43
|
Oe();
|
|
46
|
-
}),
|
|
47
|
-
|
|
44
|
+
}), Xt(() => {
|
|
45
|
+
j.value && (le.value && j.value.unobserve(le.value), j.value.disconnect());
|
|
48
46
|
});
|
|
49
47
|
function Oe() {
|
|
50
|
-
if (
|
|
48
|
+
if (Gt(O.dataset) ? st({
|
|
51
49
|
componentName: "VueUiDonut",
|
|
52
50
|
type: "dataset"
|
|
53
|
-
}) : O.dataset.forEach((l,
|
|
54
|
-
|
|
51
|
+
}) : O.dataset.forEach((l, o) => {
|
|
52
|
+
Rt({
|
|
55
53
|
datasetObject: l,
|
|
56
54
|
requiredAttributes: ["name", "values"]
|
|
57
55
|
}).forEach((t) => {
|
|
58
|
-
|
|
56
|
+
ne.value = !1, st({
|
|
59
57
|
componentName: "VueUiDonut",
|
|
60
58
|
type: "datasetSerieAttribute",
|
|
61
59
|
property: t,
|
|
62
|
-
index:
|
|
60
|
+
index: o
|
|
63
61
|
});
|
|
64
62
|
});
|
|
65
63
|
}), e.value.responsive) {
|
|
66
|
-
const l =
|
|
67
|
-
const { width:
|
|
68
|
-
chart:
|
|
64
|
+
const l = ll(() => {
|
|
65
|
+
const { width: o, height: t } = al({
|
|
66
|
+
chart: U.value,
|
|
69
67
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
70
|
-
legend: e.value.style.chart.legend.show ?
|
|
71
|
-
source:
|
|
68
|
+
legend: e.value.style.chart.legend.show ? Pe.value : null,
|
|
69
|
+
source: Te.value,
|
|
72
70
|
noTitle: Ae.value,
|
|
73
|
-
padding:
|
|
71
|
+
padding: Ie.value
|
|
74
72
|
});
|
|
75
73
|
requestAnimationFrame(() => {
|
|
76
|
-
s.value.width =
|
|
74
|
+
s.value.width = o, s.value.height = t;
|
|
77
75
|
});
|
|
78
76
|
});
|
|
79
|
-
|
|
77
|
+
j.value && (le.value && j.value.unobserve(le.value), j.value.disconnect()), j.value = new ResizeObserver(l), le.value = U.value.parentNode, j.value.observe(le.value);
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
|
-
const
|
|
80
|
+
const p = $(Wt()), _t = $(null), ce = $(!1), ge = $(""), z = $(null), ze = $(0);
|
|
83
81
|
function Ne() {
|
|
84
82
|
const l = vt({
|
|
85
83
|
userConfig: O.config,
|
|
@@ -87,195 +85,195 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
87
85
|
});
|
|
88
86
|
return l.theme ? {
|
|
89
87
|
...vt({
|
|
90
|
-
userConfig:
|
|
88
|
+
userConfig: Qt.vue_ui_donut[l.theme] || O.config,
|
|
91
89
|
defaultConfig: l
|
|
92
90
|
}),
|
|
93
|
-
customPalette:
|
|
91
|
+
customPalette: Kt[l.theme] || te
|
|
94
92
|
} : l;
|
|
95
93
|
}
|
|
96
94
|
const e = y({
|
|
97
95
|
get: () => Ne(),
|
|
98
96
|
set: (l) => l
|
|
99
|
-
}),
|
|
100
|
-
function
|
|
97
|
+
}), P = $(!0), B = E([]);
|
|
98
|
+
function $t(l, o = 1e3, t = 50) {
|
|
101
99
|
return new Promise((a) => {
|
|
102
100
|
const v = l.length;
|
|
103
101
|
B.value = Array(v).fill(0);
|
|
104
102
|
let d = 0;
|
|
105
|
-
l.forEach((_,
|
|
103
|
+
l.forEach((_, x) => {
|
|
106
104
|
setTimeout(() => {
|
|
107
|
-
const
|
|
108
|
-
function
|
|
109
|
-
const ye = Math.min((ie -
|
|
110
|
-
B.value[
|
|
105
|
+
const W = performance.now();
|
|
106
|
+
function X(ie) {
|
|
107
|
+
const ye = Math.min((ie - W) / o, 1), Yt = it(ye);
|
|
108
|
+
B.value[x] = _ * Yt, B.value = [...B.value], ye < 1 ? requestAnimationFrame(X) : (B.value[x] = _, B.value = [...B.value], d += 1, d === v && a());
|
|
111
109
|
}
|
|
112
|
-
requestAnimationFrame(
|
|
113
|
-
},
|
|
110
|
+
requestAnimationFrame(X);
|
|
111
|
+
}, x * t);
|
|
114
112
|
});
|
|
115
113
|
});
|
|
116
114
|
}
|
|
117
|
-
|
|
118
|
-
const l = O.dataset.map((
|
|
119
|
-
e.value.startAnimation.show && await
|
|
115
|
+
lt(async () => {
|
|
116
|
+
const l = O.dataset.map((o) => o.values.reduce((t, a) => t + a, 0));
|
|
117
|
+
e.value.startAnimation.show && await $t(
|
|
120
118
|
l,
|
|
121
119
|
e.value.startAnimation.durationMs,
|
|
122
120
|
e.value.startAnimation.staggerMs
|
|
123
|
-
),
|
|
121
|
+
), P.value = !1;
|
|
124
122
|
});
|
|
125
|
-
const { userOptionsVisible:
|
|
126
|
-
function
|
|
123
|
+
const { userOptionsVisible: pe, setUserOptionsVisibility: Me, keepUserOptionState: Ye } = ul({ config: e.value }), { svgRef: me } = sl({ config: e.value.style.chart.title });
|
|
124
|
+
function xt() {
|
|
127
125
|
Me(!0);
|
|
128
126
|
}
|
|
129
127
|
function Ct() {
|
|
130
128
|
Me(!1);
|
|
131
129
|
}
|
|
132
|
-
|
|
133
|
-
e.value = Ne(),
|
|
130
|
+
at(() => O.config, (l) => {
|
|
131
|
+
e.value = Ne(), pe.value = !e.value.userOptions.showOnChartHover, Oe(), Se.value += 1, Fe.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
132
|
}, { deep: !0 });
|
|
135
|
-
const
|
|
136
|
-
const { top: l, right:
|
|
133
|
+
const Ie = y(() => {
|
|
134
|
+
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
137
135
|
return {
|
|
138
|
-
css: `padding:${l}px ${
|
|
136
|
+
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
139
137
|
top: l,
|
|
140
|
-
right:
|
|
138
|
+
right: o,
|
|
141
139
|
bottom: t,
|
|
142
140
|
left: a
|
|
143
141
|
};
|
|
144
|
-
}), { isPrinting:
|
|
145
|
-
elementId: `donut__${
|
|
142
|
+
}), { isPrinting: Xe, isImaging: Ve, generatePdf: De, generateImage: Be } = ol({
|
|
143
|
+
elementId: `donut__${p.value}`,
|
|
146
144
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
147
145
|
options: e.value.userOptions.print
|
|
148
|
-
}),
|
|
146
|
+
}), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = y(() => Et(e.value.customPalette)), h = $({
|
|
149
147
|
dataLabels: {
|
|
150
148
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
151
149
|
},
|
|
152
150
|
showTable: e.value.table.show,
|
|
153
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
|
-
}), s =
|
|
152
|
+
}), s = $({
|
|
155
153
|
height: e.value.style.chart.height,
|
|
156
154
|
width: e.value.style.chart.width
|
|
157
|
-
}),
|
|
158
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512,
|
|
155
|
+
}), J = y(() => {
|
|
156
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(s.value.width, s.value.height) * l, t = o > k.value ? k.value : o;
|
|
159
157
|
return Math.max(t, 3);
|
|
160
|
-
}),
|
|
158
|
+
}), Re = dt, G = y(() => O.dataset.map((l, o) => ({
|
|
161
159
|
name: l.name,
|
|
162
|
-
color: nt(l.color) || Ge.value[
|
|
163
|
-
value:
|
|
160
|
+
color: nt(l.color) || Ge.value[o] || te[o] || te[o % te.length],
|
|
161
|
+
value: Ut(l.values.reduce((t, a) => t + a, 0)),
|
|
164
162
|
absoluteValues: l.values,
|
|
165
163
|
comment: l.comment || "",
|
|
166
|
-
patternIndex:
|
|
167
|
-
seriesIndex:
|
|
164
|
+
patternIndex: o,
|
|
165
|
+
seriesIndex: o,
|
|
168
166
|
ghost: !1,
|
|
169
|
-
pattern: `pattern_${
|
|
167
|
+
pattern: `pattern_${p.value}_${o}`
|
|
170
168
|
}))), N = E(G.value);
|
|
171
|
-
|
|
172
|
-
function
|
|
169
|
+
at(() => G.value, (l) => N.value = l);
|
|
170
|
+
function Tt() {
|
|
173
171
|
return G.value.map((l) => ({
|
|
174
172
|
name: l.name,
|
|
175
173
|
color: l.color,
|
|
176
174
|
value: l.value
|
|
177
175
|
}));
|
|
178
176
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
177
|
+
const D = $([]), K = $(!1);
|
|
178
|
+
function We({ from: l, to: o, duration: t, onUpdate: a, onDone: v, easing: d = it }) {
|
|
181
179
|
const _ = performance.now();
|
|
182
|
-
function
|
|
183
|
-
const
|
|
184
|
-
a(ye,
|
|
180
|
+
function x(W) {
|
|
181
|
+
const X = Math.min((W - _) / t, 1), ie = d(X), ye = l + (o - l) * ie;
|
|
182
|
+
a(ye, X), X < 1 ? requestAnimationFrame(x) : (a(o, 1), v && v());
|
|
185
183
|
}
|
|
186
|
-
requestAnimationFrame(
|
|
184
|
+
requestAnimationFrame(x);
|
|
187
185
|
}
|
|
188
186
|
function Ee(l) {
|
|
189
|
-
const
|
|
187
|
+
const o = G.value.find((v, d) => d === l);
|
|
190
188
|
let a = N.value.find((v, d) => d === l).value;
|
|
191
|
-
if (
|
|
189
|
+
if (D.value.includes(l)) {
|
|
192
190
|
let d = function() {
|
|
193
191
|
N.value = N.value.map(
|
|
194
|
-
(
|
|
192
|
+
(x, W) => l === W ? { ...x, value: v } : x
|
|
195
193
|
);
|
|
196
194
|
}, _ = function() {
|
|
197
|
-
|
|
195
|
+
K.value = !0, We({
|
|
198
196
|
from: a,
|
|
199
197
|
to: v,
|
|
200
198
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
201
|
-
onUpdate: (
|
|
199
|
+
onUpdate: (x, W) => {
|
|
202
200
|
N.value = N.value.map(
|
|
203
|
-
(
|
|
201
|
+
(X, ie) => l === ie ? { ...X, value: x } : X
|
|
204
202
|
);
|
|
205
203
|
},
|
|
206
204
|
onDone: () => {
|
|
207
|
-
d(),
|
|
205
|
+
d(), K.value = !1;
|
|
208
206
|
}
|
|
209
207
|
});
|
|
210
208
|
};
|
|
211
|
-
|
|
212
|
-
const v =
|
|
209
|
+
D.value = D.value.filter((x) => x !== l);
|
|
210
|
+
const v = o.value;
|
|
213
211
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? _() : d();
|
|
214
|
-
} else if (
|
|
212
|
+
} else if (D.value.length < G.value.length - 1) {
|
|
215
213
|
let v = function() {
|
|
216
|
-
|
|
217
|
-
(_,
|
|
214
|
+
D.value.push(l), N.value = N.value.map(
|
|
215
|
+
(_, x) => l === x ? { ..._, value: 0 } : _
|
|
218
216
|
);
|
|
219
217
|
}, d = function() {
|
|
220
|
-
|
|
218
|
+
K.value = !0, We({
|
|
221
219
|
from: a,
|
|
222
220
|
to: 0,
|
|
223
221
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
224
|
-
onUpdate: (_,
|
|
222
|
+
onUpdate: (_, x) => {
|
|
225
223
|
N.value = N.value.map(
|
|
226
|
-
(
|
|
224
|
+
(W, X) => l === X ? { ...W, value: _ } : W
|
|
227
225
|
);
|
|
228
226
|
},
|
|
229
227
|
onDone: () => {
|
|
230
|
-
v(),
|
|
228
|
+
v(), K.value = !1;
|
|
231
229
|
}
|
|
232
230
|
});
|
|
233
231
|
};
|
|
234
232
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? d() : v();
|
|
235
233
|
}
|
|
236
|
-
|
|
234
|
+
Re("selectLegend", R.value.map((v) => ({
|
|
237
235
|
name: v.name,
|
|
238
236
|
color: v.color,
|
|
239
237
|
value: v.value
|
|
240
238
|
})));
|
|
241
239
|
}
|
|
242
|
-
const At = y(() => O.dataset.reduce((l,
|
|
243
|
-
if (
|
|
240
|
+
const At = y(() => O.dataset.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), R = y(() => {
|
|
241
|
+
if (P.value) {
|
|
244
242
|
const l = B.value.map((t, a) => ({
|
|
245
243
|
...G.value[a],
|
|
246
244
|
value: t,
|
|
247
245
|
color: G.value[a].color,
|
|
248
246
|
ghost: !1
|
|
249
|
-
})),
|
|
250
|
-
return
|
|
247
|
+
})), o = At.value - B.value.reduce((t, a) => t + a, 0);
|
|
248
|
+
return o > 0 && l.push({
|
|
251
249
|
name: "__ghost__",
|
|
252
|
-
value:
|
|
250
|
+
value: o,
|
|
253
251
|
color: "transparent",
|
|
254
252
|
ghost: !0
|
|
255
253
|
}), l;
|
|
256
254
|
} else
|
|
257
|
-
return N.value.forEach((l,
|
|
255
|
+
return N.value.forEach((l, o) => {
|
|
258
256
|
if ([null, void 0].includes(l.values))
|
|
259
257
|
return {
|
|
260
258
|
...l,
|
|
261
259
|
values: []
|
|
262
260
|
};
|
|
263
|
-
}), N.value.map((l,
|
|
261
|
+
}), N.value.map((l, o) => ({
|
|
264
262
|
...l,
|
|
265
|
-
seriesIndex:
|
|
266
|
-
})).filter((l,
|
|
267
|
-
}), Ue = y(() => O.dataset.map((l,
|
|
263
|
+
seriesIndex: o
|
|
264
|
+
})).filter((l, o) => !D.value.includes(o));
|
|
265
|
+
}), Ue = y(() => O.dataset.map((l, o) => ({
|
|
268
266
|
name: l.name,
|
|
269
|
-
color: nt(l.color) || Ge.value[
|
|
267
|
+
color: nt(l.color) || Ge.value[o] || te[o] || te[o % te.length],
|
|
270
268
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
271
269
|
shape: "circle",
|
|
272
|
-
patternIndex:
|
|
273
|
-
})).map((l,
|
|
270
|
+
patternIndex: o
|
|
271
|
+
})).map((l, o) => ({
|
|
274
272
|
...l,
|
|
275
273
|
proportion: l.value / O.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
|
|
276
|
-
opacity:
|
|
277
|
-
segregate: () => !
|
|
278
|
-
isSegregated:
|
|
274
|
+
opacity: D.value.includes(o) ? 0.5 : 1,
|
|
275
|
+
segregate: () => !K.value && Ee(o),
|
|
276
|
+
isSegregated: D.value.includes(o)
|
|
279
277
|
}))), St = y(() => ({
|
|
280
278
|
cy: "donut-div-legend",
|
|
281
279
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -286,7 +284,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
286
284
|
})), k = y(() => {
|
|
287
285
|
const l = Math.min(s.value.width / 3, s.value.height / 3);
|
|
288
286
|
return l < 55 ? 55 : l;
|
|
289
|
-
}), S = y(() => rt({ series:
|
|
287
|
+
}), S = y(() => rt({ series: R.value }, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, J.value)), Ft = y(() => Math.abs(R.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Lt = y(() => rt({
|
|
290
288
|
series: [
|
|
291
289
|
{
|
|
292
290
|
value: 1,
|
|
@@ -298,30 +296,30 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
298
296
|
absoluteValues: [1]
|
|
299
297
|
}
|
|
300
298
|
]
|
|
301
|
-
}, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25,
|
|
302
|
-
const l = Math.max(...
|
|
303
|
-
return
|
|
304
|
-
series:
|
|
299
|
+
}, s.value.width / 2, s.value.height / 2, k.value, k.value, 1.99999, 2, 1, 360, 105.25, J.value)), Y = y(() => S.value.filter((l) => !l.ghost)), c = y(() => {
|
|
300
|
+
const l = Math.max(...R.value.map((t) => t.value)), o = R.value.map((t) => t.value / l);
|
|
301
|
+
return jt({
|
|
302
|
+
series: o,
|
|
305
303
|
center: {
|
|
306
304
|
x: s.value.width / 2,
|
|
307
305
|
y: s.value.height / 2
|
|
308
306
|
},
|
|
309
307
|
maxRadius: Math.min(s.value.width, s.value.height) / 3,
|
|
310
|
-
hasGhost:
|
|
308
|
+
hasGhost: P.value
|
|
311
309
|
});
|
|
312
310
|
});
|
|
313
|
-
function
|
|
311
|
+
function ae(l) {
|
|
314
312
|
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
315
313
|
}
|
|
316
314
|
function Ot(l) {
|
|
317
315
|
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;
|
|
318
316
|
}
|
|
319
|
-
function
|
|
317
|
+
function I(l) {
|
|
320
318
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
321
319
|
}
|
|
322
|
-
function be(l,
|
|
323
|
-
const t = l.value / zt(
|
|
324
|
-
return isNaN(t) ? 0 :
|
|
320
|
+
function be(l, o) {
|
|
321
|
+
const t = l.value / zt(o);
|
|
322
|
+
return isNaN(t) ? 0 : V(
|
|
325
323
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
326
324
|
t * 100,
|
|
327
325
|
M({
|
|
@@ -333,14 +331,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
333
331
|
);
|
|
334
332
|
}
|
|
335
333
|
function zt(l) {
|
|
336
|
-
return [...l].map((
|
|
334
|
+
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
337
335
|
}
|
|
338
|
-
const F = y(() =>
|
|
339
|
-
function qe({ datapoint: l, relativeIndex:
|
|
340
|
-
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, z.value =
|
|
336
|
+
const F = y(() => R.value.map((l) => l.value).reduce((l, o) => l + o, 0)), je = y(() => F.value / R.value.length), He = y(() => (l) => K.value ? l.proportion * 100 : l.value / F.value * 100), we = $(null), re = $(!1);
|
|
337
|
+
function qe({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
338
|
+
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, ce.value = a, z.value = o;
|
|
341
339
|
let v = "";
|
|
342
340
|
const d = e.value.style.chart.tooltip.customFormat;
|
|
343
|
-
if (re.value = !1,
|
|
341
|
+
if (re.value = !1, tl(d))
|
|
344
342
|
try {
|
|
345
343
|
const _ = d({
|
|
346
344
|
seriesIndex: t,
|
|
@@ -348,12 +346,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
348
346
|
series: G.value,
|
|
349
347
|
config: e.value
|
|
350
348
|
});
|
|
351
|
-
typeof _ == "string" && (
|
|
349
|
+
typeof _ == "string" && (ge.value = _, re.value = !0);
|
|
352
350
|
} catch {
|
|
353
351
|
console.warn("Custom format cannot be applied."), re.value = !1;
|
|
354
352
|
}
|
|
355
353
|
if (!re.value) {
|
|
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_${
|
|
354
|
+
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_${p.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${V(
|
|
357
355
|
e.value.style.chart.layout.labels.value.formatter,
|
|
358
356
|
l.value,
|
|
359
357
|
M({
|
|
@@ -364,11 +362,11 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
364
362
|
}),
|
|
365
363
|
{
|
|
366
364
|
datapoint: l,
|
|
367
|
-
relativeIndex:
|
|
365
|
+
relativeIndex: o,
|
|
368
366
|
seriesIndex: t
|
|
369
367
|
}
|
|
370
368
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
371
|
-
const _ =
|
|
369
|
+
const _ = V(
|
|
372
370
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
373
371
|
l.proportion * 100,
|
|
374
372
|
M({
|
|
@@ -378,31 +376,31 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
378
376
|
}),
|
|
379
377
|
{
|
|
380
378
|
datapoint: l,
|
|
381
|
-
relativeIndex:
|
|
379
|
+
relativeIndex: o,
|
|
382
380
|
seriesIndex: t
|
|
383
381
|
}
|
|
384
382
|
);
|
|
385
383
|
e.value.style.chart.tooltip.showValue ? v += `<span>(${_})</span></div>` : v += `<b>${_}</b></div>`;
|
|
386
384
|
}
|
|
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>`),
|
|
385
|
+
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>`), ge.value = `<div>${v}</div>`;
|
|
388
386
|
}
|
|
389
387
|
}
|
|
390
|
-
function
|
|
391
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== l ? `url(#blur_${
|
|
388
|
+
function Q(l) {
|
|
389
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== l ? `url(#blur_${p.value})` : "";
|
|
392
390
|
}
|
|
393
|
-
const
|
|
394
|
-
const l =
|
|
391
|
+
const H = y(() => {
|
|
392
|
+
const l = R.value.map((t) => ({
|
|
395
393
|
name: t.name,
|
|
396
394
|
color: t.color
|
|
397
|
-
})),
|
|
398
|
-
return { head: l, body:
|
|
395
|
+
})), o = R.value.map((t) => t.value);
|
|
396
|
+
return { head: l, body: o };
|
|
399
397
|
});
|
|
400
398
|
function Je(l = null) {
|
|
401
399
|
Dt(() => {
|
|
402
|
-
const
|
|
400
|
+
const o = H.value.head.map((v, d) => [[
|
|
403
401
|
v.name
|
|
404
|
-
], [
|
|
405
|
-
l ? l(a) :
|
|
402
|
+
], [H.value.body[d]], [isNaN(H.value.body[d] / F.value) ? "-" : H.value.body[d] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Zt(t);
|
|
403
|
+
l ? l(a) : el({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
406
404
|
});
|
|
407
405
|
}
|
|
408
406
|
const de = y(() => {
|
|
@@ -410,13 +408,13 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
410
408
|
' <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>',
|
|
411
409
|
M({ 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 }),
|
|
412
410
|
"100%"
|
|
413
|
-
],
|
|
411
|
+
], o = H.value.head.map((v, d) => [
|
|
414
412
|
{
|
|
415
413
|
color: v.color,
|
|
416
414
|
name: v.name
|
|
417
415
|
},
|
|
418
|
-
|
|
419
|
-
isNaN(
|
|
416
|
+
H.value.body[d],
|
|
417
|
+
isNaN(H.value.body[d] / F.value) ? "-" : (H.value.body[d] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
420
418
|
]), t = {
|
|
421
419
|
th: {
|
|
422
420
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -437,52 +435,66 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
437
435
|
e.value.table.columnNames.percentage
|
|
438
436
|
],
|
|
439
437
|
head: l,
|
|
440
|
-
body:
|
|
438
|
+
body: o,
|
|
441
439
|
config: t
|
|
442
440
|
};
|
|
443
|
-
}),
|
|
444
|
-
function
|
|
445
|
-
|
|
441
|
+
}), oe = $(!1);
|
|
442
|
+
function Ke(l) {
|
|
443
|
+
oe.value = l, ze.value += 1;
|
|
446
444
|
}
|
|
447
|
-
const
|
|
448
|
-
function
|
|
449
|
-
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((
|
|
445
|
+
const Qe = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
446
|
+
function Nt(l) {
|
|
447
|
+
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
450
448
|
}
|
|
451
|
-
function
|
|
452
|
-
|
|
449
|
+
function q(l, o) {
|
|
450
|
+
Re("selectDatapoint", { datapoint: l, index: o });
|
|
453
451
|
}
|
|
454
|
-
function
|
|
452
|
+
function Ze() {
|
|
455
453
|
h.value.showTable = !h.value.showTable;
|
|
456
454
|
}
|
|
457
|
-
function
|
|
455
|
+
function et() {
|
|
458
456
|
h.value.dataLabels.show = !h.value.dataLabels.show;
|
|
459
457
|
}
|
|
460
|
-
function
|
|
458
|
+
function tt() {
|
|
461
459
|
h.value.showTooltip = !h.value.showTooltip;
|
|
462
460
|
}
|
|
463
|
-
const he =
|
|
461
|
+
const he = $(!1);
|
|
464
462
|
function ke() {
|
|
465
463
|
he.value = !he.value;
|
|
466
464
|
}
|
|
465
|
+
async function Mt({ scale: l = 2 } = {}) {
|
|
466
|
+
if (!U.value) return;
|
|
467
|
+
const { width: o, height: t } = U.value.getBoundingClientRect(), a = o / t, { imageUri: v, base64: d } = await vl({ domElement: U.value, base64: !0, img: !0, scale: l });
|
|
468
|
+
return {
|
|
469
|
+
imageUri: v,
|
|
470
|
+
base64: d,
|
|
471
|
+
title: e.value.style.chart.title.text,
|
|
472
|
+
width: o,
|
|
473
|
+
height: t,
|
|
474
|
+
aspectRatio: a
|
|
475
|
+
};
|
|
476
|
+
}
|
|
467
477
|
return ct({
|
|
468
|
-
getData:
|
|
469
|
-
|
|
478
|
+
getData: Tt,
|
|
479
|
+
getImage: Mt,
|
|
480
|
+
generatePdf: De,
|
|
470
481
|
generateCsv: Je,
|
|
471
482
|
generateImage: Be,
|
|
472
|
-
toggleTable:
|
|
473
|
-
toggleLabels:
|
|
474
|
-
toggleTooltip:
|
|
475
|
-
toggleAnnotator: ke
|
|
476
|
-
|
|
483
|
+
toggleTable: Ze,
|
|
484
|
+
toggleLabels: et,
|
|
485
|
+
toggleTooltip: tt,
|
|
486
|
+
toggleAnnotator: ke,
|
|
487
|
+
toggleFullscreen: Ke
|
|
488
|
+
}), (l, o) => (u(), n("div", {
|
|
477
489
|
ref_key: "donutChart",
|
|
478
|
-
ref:
|
|
479
|
-
class: _e(`vue-ui-donut ${
|
|
490
|
+
ref: U,
|
|
491
|
+
class: _e(`vue-ui-donut ${oe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
480
492
|
style: b(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
481
|
-
id: `donut__${
|
|
482
|
-
onMouseenter:
|
|
493
|
+
id: `donut__${p.value}`,
|
|
494
|
+
onMouseenter: xt,
|
|
483
495
|
onMouseleave: Ct
|
|
484
496
|
}, [
|
|
485
|
-
e.value.userOptions.buttons.annotator && r(me) ? (
|
|
497
|
+
e.value.userOptions.buttons.annotator && r(me) ? (u(), ee(r(gt), {
|
|
486
498
|
key: 0,
|
|
487
499
|
color: e.value.style.chart.color,
|
|
488
500
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -491,20 +503,20 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
491
503
|
onClose: ke
|
|
492
504
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
|
|
493
505
|
m(l.$slots, "userConfig", {}, void 0, !0),
|
|
494
|
-
|
|
506
|
+
Pt.value ? (u(), n("div", {
|
|
495
507
|
key: 1,
|
|
496
508
|
ref_key: "noTitle",
|
|
497
509
|
ref: Ae,
|
|
498
510
|
class: "vue-data-ui-no-title-space",
|
|
499
511
|
style: "height:36px; width: 100%;background:transparent"
|
|
500
512
|
}, null, 512)) : i("", !0),
|
|
501
|
-
e.value.style.chart.title.text ? (
|
|
513
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
502
514
|
key: 2,
|
|
503
515
|
ref_key: "chartTitle",
|
|
504
516
|
ref: Ce,
|
|
505
517
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
506
518
|
}, [
|
|
507
|
-
(
|
|
519
|
+
(u(), ee(rl, {
|
|
508
520
|
key: `title_${Se.value}`,
|
|
509
521
|
config: {
|
|
510
522
|
title: {
|
|
@@ -518,15 +530,15 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
518
530
|
}
|
|
519
531
|
}, null, 8, ["config"]))
|
|
520
532
|
], 512)) : i("", !0),
|
|
521
|
-
e.value.userOptions.show &&
|
|
533
|
+
e.value.userOptions.show && ne.value && (r(Ye) || r(pe)) ? (u(), ee(r(bt), {
|
|
522
534
|
ref_key: "details",
|
|
523
535
|
ref: _t,
|
|
524
536
|
key: `user_option_${ze.value}`,
|
|
525
537
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
526
538
|
color: e.value.style.chart.color,
|
|
527
|
-
isPrinting: r(
|
|
528
|
-
isImaging: r(
|
|
529
|
-
uid:
|
|
539
|
+
isPrinting: r(Xe),
|
|
540
|
+
isImaging: r(Ve),
|
|
541
|
+
uid: p.value,
|
|
530
542
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
531
543
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
532
544
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -534,8 +546,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
534
546
|
hasTable: e.value.userOptions.buttons.table,
|
|
535
547
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
536
548
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
537
|
-
isFullscreen:
|
|
538
|
-
chartElement:
|
|
549
|
+
isFullscreen: oe.value,
|
|
550
|
+
chartElement: U.value,
|
|
539
551
|
position: e.value.userOptions.position,
|
|
540
552
|
callbacks: e.value.userOptions.callbacks,
|
|
541
553
|
isTooltip: h.value.showTooltip,
|
|
@@ -543,22 +555,22 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
543
555
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
544
556
|
isAnnotation: he.value,
|
|
545
557
|
printScale: e.value.userOptions.print.scale,
|
|
546
|
-
onToggleFullscreen:
|
|
547
|
-
onGeneratePdf: r(
|
|
558
|
+
onToggleFullscreen: Ke,
|
|
559
|
+
onGeneratePdf: r(De),
|
|
548
560
|
onGenerateCsv: Je,
|
|
549
561
|
onGenerateImage: r(Be),
|
|
550
|
-
onToggleTable:
|
|
551
|
-
onToggleLabels:
|
|
552
|
-
onToggleTooltip:
|
|
562
|
+
onToggleTable: Ze,
|
|
563
|
+
onToggleLabels: et,
|
|
564
|
+
onToggleTooltip: tt,
|
|
553
565
|
onToggleAnnotator: ke,
|
|
554
566
|
style: b({
|
|
555
|
-
visibility: r(Ye) ? r(
|
|
567
|
+
visibility: r(Ye) ? r(pe) ? "visible" : "hidden" : "visible"
|
|
556
568
|
})
|
|
557
|
-
},
|
|
569
|
+
}, ot({ _: 2 }, [
|
|
558
570
|
l.$slots.menuIcon ? {
|
|
559
571
|
name: "menuIcon",
|
|
560
572
|
fn: C(({ isOpen: t, color: a }) => [
|
|
561
|
-
m(l.$slots, "menuIcon",
|
|
573
|
+
m(l.$slots, "menuIcon", ue(se({ isOpen: t, color: a })), void 0, !0)
|
|
562
574
|
]),
|
|
563
575
|
key: "0"
|
|
564
576
|
} : void 0,
|
|
@@ -607,29 +619,29 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
607
619
|
l.$slots.optionFullscreen ? {
|
|
608
620
|
name: "optionFullscreen",
|
|
609
621
|
fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
610
|
-
m(l.$slots, "optionFullscreen",
|
|
622
|
+
m(l.$slots, "optionFullscreen", ue(se({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
611
623
|
]),
|
|
612
624
|
key: "7"
|
|
613
625
|
} : void 0,
|
|
614
626
|
l.$slots.optionAnnotator ? {
|
|
615
627
|
name: "optionAnnotator",
|
|
616
628
|
fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
617
|
-
m(l.$slots, "optionAnnotator",
|
|
629
|
+
m(l.$slots, "optionAnnotator", ue(se({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
618
630
|
]),
|
|
619
631
|
key: "8"
|
|
620
632
|
} : void 0
|
|
621
633
|
]), 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"])) : i("", !0),
|
|
622
|
-
|
|
634
|
+
ne.value ? (u(), n("svg", {
|
|
623
635
|
key: 4,
|
|
624
636
|
ref_key: "svgRef",
|
|
625
637
|
ref: me,
|
|
626
|
-
xmlns: r(
|
|
627
|
-
class: _e({ "vue-data-ui-fullscreen--on":
|
|
638
|
+
xmlns: r(Ht),
|
|
639
|
+
class: _e({ "vue-data-ui-fullscreen--on": oe.value, "vue-data-ui-fulscreen--off": !oe.value }),
|
|
628
640
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
629
|
-
style: b(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
641
|
+
style: b(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ie.value.css}`)
|
|
630
642
|
}, [
|
|
631
|
-
|
|
632
|
-
l.$slots["chart-background"] ? (
|
|
643
|
+
$e(r(ft)),
|
|
644
|
+
l.$slots["chart-background"] ? (u(), n("foreignObject", {
|
|
633
645
|
key: 0,
|
|
634
646
|
x: 0,
|
|
635
647
|
y: 0,
|
|
@@ -640,54 +652,54 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
640
652
|
}
|
|
641
653
|
}, [
|
|
642
654
|
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
643
|
-
], 8,
|
|
644
|
-
e.value.type === "classic" && !isNaN(
|
|
645
|
-
e.value.style.chart.useGradient ? (
|
|
655
|
+
], 8, yl)) : i("", !0),
|
|
656
|
+
e.value.type === "classic" && !isNaN(J.value / k.value) ? (u(), n("defs", fl, [
|
|
657
|
+
e.value.style.chart.useGradient ? (u(), n("radialGradient", {
|
|
646
658
|
key: 0,
|
|
647
|
-
id: `gradient_${
|
|
659
|
+
id: `gradient_${p.value}`
|
|
648
660
|
}, [
|
|
649
661
|
f("stop", {
|
|
650
662
|
offset: "0%",
|
|
651
663
|
"stop-color": r(fe)(e.value.style.chart.backgroundColor, 0),
|
|
652
664
|
"stop-opacity": "0"
|
|
653
|
-
}, null, 8,
|
|
665
|
+
}, null, 8, pl),
|
|
654
666
|
f("stop", {
|
|
655
|
-
offset: `${(1 -
|
|
667
|
+
offset: `${(1 - J.value / k.value) * 100}%`,
|
|
656
668
|
"stop-color": r(fe)("#FFFFFF", 0),
|
|
657
669
|
"stop-opacity": "0"
|
|
658
|
-
}, null, 8,
|
|
670
|
+
}, null, 8, ml),
|
|
659
671
|
f("stop", {
|
|
660
|
-
offset: `${(1 -
|
|
672
|
+
offset: `${(1 - J.value / k.value / 2) * 100}%`,
|
|
661
673
|
"stop-color": r(fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
662
|
-
}, null, 8,
|
|
674
|
+
}, null, 8, bl),
|
|
663
675
|
f("stop", {
|
|
664
676
|
offset: "100%",
|
|
665
677
|
"stop-color": r(fe)(e.value.style.chart.backgroundColor, 0),
|
|
666
678
|
"stop-opacity": "0"
|
|
667
|
-
}, null, 8,
|
|
668
|
-
], 8,
|
|
679
|
+
}, null, 8, wl)
|
|
680
|
+
], 8, gl)) : i("", !0)
|
|
669
681
|
])) : i("", !0),
|
|
670
|
-
e.value.type === "polar" ? (
|
|
671
|
-
(
|
|
672
|
-
id: `polar_gradient_${a}_${
|
|
682
|
+
e.value.type === "polar" ? (u(), n("defs", kl, [
|
|
683
|
+
(u(!0), n(g, null, A(c.value, (t, a) => (u(), n("radialGradient", {
|
|
684
|
+
id: `polar_gradient_${a}_${p.value}`,
|
|
673
685
|
cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
|
|
674
686
|
cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
|
|
675
687
|
r: "62%"
|
|
676
688
|
}, [
|
|
677
689
|
f("stop", {
|
|
678
690
|
offset: "0%",
|
|
679
|
-
"stop-color": r(
|
|
691
|
+
"stop-color": r(qt)(S.value[a].color, 0.05),
|
|
680
692
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
681
|
-
}, null, 8,
|
|
693
|
+
}, null, 8, $l),
|
|
682
694
|
f("stop", {
|
|
683
695
|
offset: "100%",
|
|
684
696
|
"stop-color": S.value[a].color
|
|
685
|
-
}, null, 8,
|
|
686
|
-
], 8,
|
|
697
|
+
}, null, 8, xl)
|
|
698
|
+
], 8, _l))), 256))
|
|
687
699
|
])) : i("", !0),
|
|
688
700
|
f("defs", null, [
|
|
689
701
|
f("filter", {
|
|
690
|
-
id: `blur_${
|
|
702
|
+
id: `blur_${p.value}`,
|
|
691
703
|
x: "-50%",
|
|
692
704
|
y: "-50%",
|
|
693
705
|
width: "200%",
|
|
@@ -696,15 +708,15 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
696
708
|
f("feGaussianBlur", {
|
|
697
709
|
in: "SourceGraphic",
|
|
698
710
|
stdDeviation: 2,
|
|
699
|
-
id: `blur_std_${
|
|
700
|
-
}, null, 8,
|
|
701
|
-
|
|
711
|
+
id: `blur_std_${p.value}`
|
|
712
|
+
}, null, 8, Pl),
|
|
713
|
+
o[6] || (o[6] = f("feColorMatrix", {
|
|
702
714
|
type: "saturate",
|
|
703
715
|
values: "0"
|
|
704
716
|
}, null, -1))
|
|
705
|
-
], 8,
|
|
717
|
+
], 8, Cl),
|
|
706
718
|
f("filter", {
|
|
707
|
-
id: `shadow_${
|
|
719
|
+
id: `shadow_${p.value}`,
|
|
708
720
|
"color-interpolation-filters": "sRGB"
|
|
709
721
|
}, [
|
|
710
722
|
f("feDropShadow", {
|
|
@@ -713,10 +725,10 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
713
725
|
stdDeviation: "10",
|
|
714
726
|
"flood-opacity": "0.5",
|
|
715
727
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
716
|
-
}, null, 8,
|
|
717
|
-
], 8,
|
|
728
|
+
}, null, 8, Al)
|
|
729
|
+
], 8, Tl),
|
|
718
730
|
f("filter", {
|
|
719
|
-
id: `drop_shadow_${
|
|
731
|
+
id: `drop_shadow_${p.value}`,
|
|
720
732
|
"color-interpolation-filters": "sRGB",
|
|
721
733
|
x: "-50%",
|
|
722
734
|
y: "-50%",
|
|
@@ -729,23 +741,23 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
729
741
|
stdDeviation: "3",
|
|
730
742
|
"flood-opacity": "1",
|
|
731
743
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
732
|
-
}, null, 8,
|
|
733
|
-
], 8,
|
|
744
|
+
}, null, 8, Fl)
|
|
745
|
+
], 8, Sl)
|
|
734
746
|
]),
|
|
735
|
-
e.value.type === "classic" ? (
|
|
736
|
-
|
|
747
|
+
e.value.type === "classic" ? (u(!0), n(g, { key: 3 }, A(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", null, [
|
|
748
|
+
I(t) && h.value.dataLabels.show ? (u(), n("path", {
|
|
737
749
|
key: 0,
|
|
738
|
-
d: r(
|
|
750
|
+
d: r(Jt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, J.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
739
751
|
stroke: t.color,
|
|
740
752
|
"stroke-width": "1",
|
|
741
753
|
"stroke-linecap": "round",
|
|
742
754
|
"stroke-linejoin": "round",
|
|
743
755
|
fill: "none",
|
|
744
|
-
filter:
|
|
745
|
-
}, null, 8,
|
|
756
|
+
filter: Q(a)
|
|
757
|
+
}, null, 8, Ll)) : i("", !0)
|
|
746
758
|
]))), 256)) : i("", !0),
|
|
747
|
-
e.value.type === "polar" ? (
|
|
748
|
-
|
|
759
|
+
e.value.type === "polar" ? (u(!0), n(g, { key: 4 }, A(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", null, [
|
|
760
|
+
I(t) && h.value.dataLabels.show ? (u(), n("path", {
|
|
749
761
|
key: 0,
|
|
750
762
|
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}`,
|
|
751
763
|
stroke: t.color,
|
|
@@ -753,127 +765,127 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
753
765
|
"stroke-linecap": "round",
|
|
754
766
|
"stroke-linejoin": "round",
|
|
755
767
|
fill: "none",
|
|
756
|
-
filter:
|
|
768
|
+
filter: Q(a),
|
|
757
769
|
style: b({
|
|
758
|
-
transition:
|
|
770
|
+
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
759
771
|
})
|
|
760
|
-
}, null, 12,
|
|
772
|
+
}, null, 12, Ol)) : i("", !0)
|
|
761
773
|
]))), 256)) : i("", !0),
|
|
762
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (
|
|
774
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (u(), n("circle", {
|
|
763
775
|
key: 5,
|
|
764
776
|
cx: s.value.width / 2,
|
|
765
777
|
cy: s.value.height / 2,
|
|
766
778
|
r: k.value <= 0 ? 10 : k.value,
|
|
767
779
|
fill: e.value.style.chart.backgroundColor,
|
|
768
|
-
filter: `url(#shadow_${
|
|
769
|
-
}, null, 8,
|
|
770
|
-
l.$slots.pattern ? (
|
|
771
|
-
(
|
|
780
|
+
filter: `url(#shadow_${p.value})`
|
|
781
|
+
}, null, 8, zl)) : i("", !0),
|
|
782
|
+
l.$slots.pattern ? (u(), n("g", Nl, [
|
|
783
|
+
(u(!0), n(g, null, A(xe.dataset, (t, a) => (u(), n("defs", {
|
|
772
784
|
key: `pattern-${t.patternIndex}`
|
|
773
785
|
}, [
|
|
774
|
-
m(l.$slots, "pattern",
|
|
786
|
+
m(l.$slots, "pattern", ut({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${p.value}_${a}` }), void 0, !0)
|
|
775
787
|
]))), 128))
|
|
776
788
|
])) : i("", !0),
|
|
777
|
-
F.value && e.value.type === "classic" ? (
|
|
778
|
-
(
|
|
789
|
+
F.value && e.value.type === "classic" ? (u(), n(g, { key: 7 }, [
|
|
790
|
+
(u(!0), n(g, null, A(Y.value, (t, a) => (u(), n("path", {
|
|
779
791
|
stroke: e.value.style.chart.backgroundColor,
|
|
780
792
|
d: t.arcSlice,
|
|
781
793
|
fill: "#FFFFFF"
|
|
782
|
-
}, null, 8,
|
|
783
|
-
(
|
|
794
|
+
}, null, 8, Ml))), 256)),
|
|
795
|
+
(u(!0), n(g, null, A(Y.value, (t, a) => (u(), n("path", {
|
|
784
796
|
class: "vue-ui-donut-arc-path",
|
|
785
797
|
d: t.arcSlice,
|
|
786
798
|
fill: t.color,
|
|
787
799
|
stroke: e.value.style.chart.backgroundColor,
|
|
788
800
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
789
|
-
filter:
|
|
790
|
-
}, null, 8,
|
|
791
|
-
l.$slots.pattern ? (
|
|
792
|
-
(
|
|
801
|
+
filter: Q(a)
|
|
802
|
+
}, null, 8, Yl))), 256)),
|
|
803
|
+
l.$slots.pattern ? (u(), n("g", Il, [
|
|
804
|
+
(u(!0), n(g, null, A(Y.value, (t, a) => (u(), n("path", {
|
|
793
805
|
class: "vue-ui-donut-arc-path",
|
|
794
806
|
d: t.arcSlice,
|
|
795
807
|
fill: `url(#${t.pattern})`,
|
|
796
808
|
stroke: e.value.style.chart.backgroundColor,
|
|
797
809
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
798
|
-
filter:
|
|
799
|
-
}, null, 8,
|
|
810
|
+
filter: Q(a)
|
|
811
|
+
}, null, 8, Xl))), 256))
|
|
800
812
|
])) : i("", !0)
|
|
801
813
|
], 64)) : i("", !0),
|
|
802
|
-
F.value && e.value.type === "polar" ? (
|
|
803
|
-
S.value.length > 1 ? (
|
|
804
|
-
(
|
|
814
|
+
F.value && e.value.type === "polar" ? (u(), n(g, { key: 8 }, [
|
|
815
|
+
S.value.length > 1 ? (u(), n("g", Vl, [
|
|
816
|
+
(u(!0), n(g, null, A(Y.value, (t, a) => (u(), n("path", {
|
|
805
817
|
stroke: e.value.style.chart.backgroundColor,
|
|
806
818
|
d: c.value[a].path,
|
|
807
819
|
fill: "#FFFFFF",
|
|
808
820
|
style: b({
|
|
809
|
-
transition:
|
|
821
|
+
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
810
822
|
})
|
|
811
|
-
}, null, 12,
|
|
812
|
-
e.value.style.chart.layout.donut.useShadow ? (
|
|
813
|
-
(
|
|
823
|
+
}, null, 12, Dl))), 256)),
|
|
824
|
+
e.value.style.chart.layout.donut.useShadow ? (u(), n("g", Bl, [
|
|
825
|
+
(u(!0), n(g, null, A(Y.value, (t, a) => (u(), n("path", {
|
|
814
826
|
class: "vue-ui-donut-arc-path",
|
|
815
827
|
d: c.value[a].path,
|
|
816
828
|
fill: "transparent",
|
|
817
829
|
stroke: e.value.style.chart.backgroundColor,
|
|
818
830
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
819
|
-
filter: `url(#drop_shadow_${
|
|
831
|
+
filter: `url(#drop_shadow_${p.value})`,
|
|
820
832
|
style: b({
|
|
821
|
-
transition:
|
|
833
|
+
transition: P.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
|
-
l.$slots.pattern ? (
|
|
826
|
-
(
|
|
837
|
+
l.$slots.pattern ? (u(), n("g", Rl, [
|
|
838
|
+
(u(!0), n(g, null, A(Y.value, (t, a) => (u(), n("path", {
|
|
827
839
|
class: "vue-ui-donut-arc-path",
|
|
828
840
|
d: c.value[a].path,
|
|
829
841
|
fill: `url(#${t.pattern})`,
|
|
830
842
|
stroke: e.value.style.chart.backgroundColor,
|
|
831
843
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
832
|
-
filter:
|
|
844
|
+
filter: Q(a),
|
|
833
845
|
style: b({
|
|
834
|
-
transition:
|
|
846
|
+
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
835
847
|
})
|
|
836
|
-
}, null, 12,
|
|
848
|
+
}, null, 12, Wl))), 256))
|
|
837
849
|
])) : i("", !0),
|
|
838
|
-
(
|
|
850
|
+
(u(!0), n(g, null, A(Y.value, (t, a) => (u(), n("path", {
|
|
839
851
|
class: "vue-ui-donut-arc-path",
|
|
840
852
|
d: c.value[a].path,
|
|
841
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
853
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${p.value})` : t.color,
|
|
842
854
|
stroke: e.value.style.chart.backgroundColor,
|
|
843
855
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
844
|
-
filter:
|
|
856
|
+
filter: Q(a),
|
|
845
857
|
style: b({
|
|
846
|
-
transition:
|
|
858
|
+
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
847
859
|
})
|
|
848
|
-
}, null, 12,
|
|
849
|
-
])) : (
|
|
850
|
-
l.$slots.pattern ? (
|
|
860
|
+
}, null, 12, El))), 256))
|
|
861
|
+
])) : (u(), n("g", Ul, [
|
|
862
|
+
l.$slots.pattern ? (u(), n("circle", {
|
|
851
863
|
key: 0,
|
|
852
864
|
cx: s.value.width / 2,
|
|
853
865
|
cy: s.value.height / 2,
|
|
854
866
|
r: k.value,
|
|
855
|
-
fill: `url(#pattern_${
|
|
867
|
+
fill: `url(#pattern_${p.value}_${S.value[0].patternIndex})`,
|
|
856
868
|
stroke: e.value.style.chart.backgroundColor,
|
|
857
869
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
858
|
-
}, null, 8,
|
|
870
|
+
}, null, 8, jl)) : i("", !0),
|
|
859
871
|
f("circle", {
|
|
860
872
|
cx: s.value.width / 2,
|
|
861
873
|
cy: s.value.height / 2,
|
|
862
874
|
r: k.value,
|
|
863
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
875
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${p.value})` : S.value[0].color,
|
|
864
876
|
stroke: e.value.style.chart.backgroundColor,
|
|
865
877
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
866
|
-
}, null, 8,
|
|
878
|
+
}, null, 8, Hl)
|
|
867
879
|
]))
|
|
868
|
-
], 64)) : (
|
|
869
|
-
e.value.type === "classic" && !Ft.value ? (
|
|
870
|
-
(
|
|
880
|
+
], 64)) : (u(), n(g, { key: 9 }, [
|
|
881
|
+
e.value.type === "classic" && !Ft.value ? (u(), n("g", ql, [
|
|
882
|
+
(u(!0), n(g, null, A(Lt.value, (t, a) => (u(), n("path", {
|
|
871
883
|
class: "vue-ui-donut-arc-path",
|
|
872
884
|
d: t.arcSlice,
|
|
873
885
|
fill: t.color,
|
|
874
886
|
stroke: e.value.style.chart.backgroundColor,
|
|
875
887
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
876
|
-
}, null, 8,
|
|
888
|
+
}, null, 8, Jl))), 256))
|
|
877
889
|
])) : i("", !0),
|
|
878
890
|
f("circle", {
|
|
879
891
|
cx: s.value.width / 2,
|
|
@@ -881,9 +893,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
881
893
|
r: k.value <= 0 ? 10 : k.value,
|
|
882
894
|
fill: "transparent",
|
|
883
895
|
stroke: e.value.style.chart.backgroundColor
|
|
884
|
-
}, null, 8,
|
|
896
|
+
}, null, 8, Kl)
|
|
885
897
|
], 64)),
|
|
886
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (
|
|
898
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (u(), n("circle", {
|
|
887
899
|
key: 10,
|
|
888
900
|
cx: s.value.width / 2,
|
|
889
901
|
cy: s.value.height / 2,
|
|
@@ -891,11 +903,11 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
891
903
|
/* This might require adjustments */
|
|
892
904
|
k.value <= 0 ? 10 : k.value
|
|
893
905
|
),
|
|
894
|
-
fill: `url(#gradient_${
|
|
895
|
-
}, null, 8,
|
|
896
|
-
F.value ? (
|
|
897
|
-
S.value.length > 1 || e.value.type === "classic" ? (
|
|
898
|
-
(
|
|
906
|
+
fill: `url(#gradient_${p.value})`
|
|
907
|
+
}, null, 8, Ql)) : i("", !0),
|
|
908
|
+
F.value ? (u(), n(g, { key: 11 }, [
|
|
909
|
+
S.value.length > 1 || e.value.type === "classic" ? (u(), n("g", Zl, [
|
|
910
|
+
(u(!0), n(g, null, A(S.value.filter((t) => !t.ghost), (t, a) => (u(), n("path", {
|
|
899
911
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
900
912
|
fill: z.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
901
913
|
onMouseenter: (v) => qe({
|
|
@@ -904,32 +916,32 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
904
916
|
seriesIndex: t.seriesIndex,
|
|
905
917
|
show: !0
|
|
906
918
|
}),
|
|
907
|
-
onMouseleave:
|
|
919
|
+
onMouseleave: o[0] || (o[0] = (v) => {
|
|
908
920
|
ce.value = !1, z.value = null;
|
|
909
921
|
}),
|
|
910
|
-
onClick: (v) =>
|
|
911
|
-
}, null, 40,
|
|
912
|
-
])) : (
|
|
922
|
+
onClick: (v) => q(t, a)
|
|
923
|
+
}, null, 40, ea))), 256))
|
|
924
|
+
])) : (u(), n("g", ta, [
|
|
913
925
|
f("circle", {
|
|
914
926
|
cx: s.value.width / 2,
|
|
915
927
|
cy: s.value.height / 2,
|
|
916
928
|
r: k.value,
|
|
917
929
|
fill: "transparent",
|
|
918
|
-
onMouseenter:
|
|
930
|
+
onMouseenter: o[1] || (o[1] = (t) => qe({
|
|
919
931
|
datapoint: S.value[0],
|
|
920
932
|
relativeIndex: 0,
|
|
921
933
|
seriesIndex: S.value[0].seriesIndex,
|
|
922
934
|
show: !0
|
|
923
935
|
})),
|
|
924
|
-
onMouseleave:
|
|
936
|
+
onMouseleave: o[2] || (o[2] = (t) => {
|
|
925
937
|
ce.value = !1, z.value = null;
|
|
926
938
|
}),
|
|
927
|
-
onClick:
|
|
928
|
-
}, null, 40,
|
|
939
|
+
onClick: o[3] || (o[3] = (t) => q(S.value[0], l.i))
|
|
940
|
+
}, null, 40, la)
|
|
929
941
|
]))
|
|
930
942
|
], 64)) : i("", !0),
|
|
931
|
-
e.value.type === "classic" ? (
|
|
932
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
943
|
+
e.value.type === "classic" ? (u(), n(g, { key: 12 }, [
|
|
944
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (u(), n("text", {
|
|
933
945
|
key: 0,
|
|
934
946
|
"text-anchor": "middle",
|
|
935
947
|
x: s.value.width / 2,
|
|
@@ -937,8 +949,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
937
949
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
938
950
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
939
951
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
940
|
-
},
|
|
941
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
952
|
+
}, T(e.value.style.chart.layout.labels.hollow.total.text), 13, aa)) : i("", !0),
|
|
953
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (u(), n("text", {
|
|
942
954
|
key: 1,
|
|
943
955
|
"text-anchor": "middle",
|
|
944
956
|
x: s.value.width / 2,
|
|
@@ -946,7 +958,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
946
958
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
947
959
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
948
960
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
949
|
-
},
|
|
961
|
+
}, T(r(V)(
|
|
950
962
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
951
963
|
F.value,
|
|
952
964
|
r(M)({
|
|
@@ -954,8 +966,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
954
966
|
v: F.value,
|
|
955
967
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
956
968
|
})
|
|
957
|
-
)), 13,
|
|
958
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
969
|
+
)), 13, oa)) : i("", !0),
|
|
970
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (u(), n("text", {
|
|
959
971
|
key: 2,
|
|
960
972
|
"text-anchor": "middle",
|
|
961
973
|
x: s.value.width / 2,
|
|
@@ -963,8 +975,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
963
975
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
964
976
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
965
977
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
966
|
-
},
|
|
967
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
978
|
+
}, T(e.value.style.chart.layout.labels.hollow.average.text), 13, ua)) : i("", !0),
|
|
979
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (u(), n("text", {
|
|
968
980
|
key: 3,
|
|
969
981
|
"text-anchor": "middle",
|
|
970
982
|
x: s.value.width / 2,
|
|
@@ -972,7 +984,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
972
984
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
973
985
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
974
986
|
style: b(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
975
|
-
},
|
|
987
|
+
}, T(K.value || P.value ? "--" : r(V)(
|
|
976
988
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
977
989
|
je.value,
|
|
978
990
|
r(M)({
|
|
@@ -981,35 +993,35 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
981
993
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
982
994
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
983
995
|
})
|
|
984
|
-
)), 13,
|
|
996
|
+
)), 13, sa)) : i("", !0)
|
|
985
997
|
], 64)) : i("", !0),
|
|
986
|
-
(
|
|
987
|
-
filter:
|
|
998
|
+
(u(!0), n(g, null, A(Y.value.filter((t) => !t.ghost), (t, a) => (u(), n("g", {
|
|
999
|
+
filter: Q(a),
|
|
988
1000
|
class: _e({ animated: e.value.useCssAnimation })
|
|
989
1001
|
}, [
|
|
990
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
991
|
-
(
|
|
1002
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), n("g", ra, [
|
|
1003
|
+
(u(), n("foreignObject", {
|
|
992
1004
|
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,
|
|
993
|
-
y: r(ve)(t) - (
|
|
1005
|
+
y: r(ve)(t) - (Qe.value ? 20 : 0),
|
|
994
1006
|
width: "120",
|
|
995
1007
|
height: "60",
|
|
996
1008
|
style: { overflow: "visible" }
|
|
997
1009
|
}, [
|
|
998
1010
|
f("div", null, [
|
|
999
|
-
m(l.$slots, "dataLabel",
|
|
1011
|
+
m(l.$slots, "dataLabel", ut({ ref_for: !0 }, {
|
|
1000
1012
|
datapoint: t,
|
|
1001
1013
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a,
|
|
1002
|
-
isSafari:
|
|
1003
|
-
isVisible:
|
|
1014
|
+
isSafari: Qe.value,
|
|
1015
|
+
isVisible: I(t) && h.value.dataLabels.show,
|
|
1004
1016
|
textAlign: r(w)(t, !0, 16, !0).anchor,
|
|
1005
1017
|
flexAlign: r(w)(t, !0, 16).anchor,
|
|
1006
1018
|
percentage: be(t, Y.value)
|
|
1007
1019
|
}), void 0, !0)
|
|
1008
1020
|
])
|
|
1009
|
-
], 8,
|
|
1010
|
-
])) : (
|
|
1011
|
-
e.value.type === "classic" ? (
|
|
1012
|
-
|
|
1021
|
+
], 8, ia))
|
|
1022
|
+
])) : (u(), n("g", va, [
|
|
1023
|
+
e.value.type === "classic" ? (u(), n(g, { key: 0 }, [
|
|
1024
|
+
I(t) && h.value.dataLabels.show ? (u(), n("circle", {
|
|
1013
1025
|
key: 0,
|
|
1014
1026
|
cx: r(w)(t).x,
|
|
1015
1027
|
cy: r(ve)(t) - 3.5,
|
|
@@ -1017,12 +1029,12 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1017
1029
|
stroke: e.value.style.chart.backgroundColor,
|
|
1018
1030
|
"stroke-width": 1,
|
|
1019
1031
|
r: 3,
|
|
1020
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${
|
|
1021
|
-
onClick: (v) =>
|
|
1022
|
-
}, null, 8,
|
|
1032
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${p.value})`,
|
|
1033
|
+
onClick: (v) => q(t, a)
|
|
1034
|
+
}, null, 8, ca)) : i("", !0)
|
|
1023
1035
|
], 64)) : i("", !0),
|
|
1024
|
-
e.value.type === "polar" ? (
|
|
1025
|
-
|
|
1036
|
+
e.value.type === "polar" ? (u(), n(g, { key: 1 }, [
|
|
1037
|
+
I(t) && h.value.dataLabels.show ? (u(), n("circle", {
|
|
1026
1038
|
key: 0,
|
|
1027
1039
|
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,
|
|
1028
1040
|
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,
|
|
@@ -1030,15 +1042,15 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1030
1042
|
stroke: e.value.style.chart.backgroundColor,
|
|
1031
1043
|
"stroke-width": 1,
|
|
1032
1044
|
r: 3,
|
|
1033
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${
|
|
1034
|
-
onClick: (v) =>
|
|
1045
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${p.value})`,
|
|
1046
|
+
onClick: (v) => q(t, a),
|
|
1035
1047
|
style: b({
|
|
1036
|
-
transition:
|
|
1048
|
+
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1037
1049
|
})
|
|
1038
|
-
}, null, 12,
|
|
1050
|
+
}, null, 12, da)) : i("", !0)
|
|
1039
1051
|
], 64)) : i("", !0),
|
|
1040
|
-
e.value.type === "classic" ? (
|
|
1041
|
-
|
|
1052
|
+
e.value.type === "classic" ? (u(), n(g, { key: 2 }, [
|
|
1053
|
+
I(t) && h.value.dataLabels.show ? (u(), n("text", {
|
|
1042
1054
|
key: 0,
|
|
1043
1055
|
"text-anchor": r(w)(t, !0, 12).anchor,
|
|
1044
1056
|
x: r(w)(t, !0, 12).x,
|
|
@@ -1046,8 +1058,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1046
1058
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1047
1059
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1048
1060
|
style: b(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1049
|
-
onClick: (v) =>
|
|
1050
|
-
},
|
|
1061
|
+
onClick: (v) => q(t, a)
|
|
1062
|
+
}, T(be(t, Y.value)) + " " + T(e.value.style.chart.layout.labels.value.show ? `(${r(V)(
|
|
1051
1063
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1052
1064
|
t.value,
|
|
1053
1065
|
r(M)({
|
|
@@ -1057,8 +1069,8 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1057
1069
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1058
1070
|
}),
|
|
1059
1071
|
{ datapoint: t }
|
|
1060
|
-
)})` : ""), 13,
|
|
1061
|
-
|
|
1072
|
+
)})` : ""), 13, ha)) : i("", !0),
|
|
1073
|
+
I(t) && h.value.dataLabels.show ? (u(), n("text", {
|
|
1062
1074
|
key: 1,
|
|
1063
1075
|
"text-anchor": r(w)(t).anchor,
|
|
1064
1076
|
x: r(w)(t, !0, 12).x,
|
|
@@ -1066,23 +1078,23 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1066
1078
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1067
1079
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1068
1080
|
style: b(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1069
|
-
onClick: (v) =>
|
|
1070
|
-
},
|
|
1081
|
+
onClick: (v) => q(t, a)
|
|
1082
|
+
}, T(t.name), 13, ya)) : i("", !0)
|
|
1071
1083
|
], 64)) : i("", !0),
|
|
1072
|
-
e.value.type === "polar" ? (
|
|
1073
|
-
|
|
1084
|
+
e.value.type === "polar" ? (u(), n(g, { key: 3 }, [
|
|
1085
|
+
I(t) && h.value.dataLabels.show ? (u(), n("text", {
|
|
1074
1086
|
key: 0,
|
|
1075
|
-
"text-anchor":
|
|
1087
|
+
"text-anchor": ae(c.value[a].middlePoint),
|
|
1076
1088
|
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,
|
|
1077
1089
|
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,
|
|
1078
1090
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1079
1091
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1080
1092
|
style: b({
|
|
1081
|
-
transition:
|
|
1093
|
+
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1082
1094
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1083
1095
|
}),
|
|
1084
|
-
onClick: (v) =>
|
|
1085
|
-
},
|
|
1096
|
+
onClick: (v) => q(t, a)
|
|
1097
|
+
}, T(be(t, Y.value)) + " " + T(e.value.style.chart.layout.labels.value.show ? `(${r(V)(
|
|
1086
1098
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1087
1099
|
t.value,
|
|
1088
1100
|
r(M)({
|
|
@@ -1092,24 +1104,24 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1092
1104
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1093
1105
|
}),
|
|
1094
1106
|
{ datapoint: t }
|
|
1095
|
-
)})` : ""), 13,
|
|
1096
|
-
|
|
1107
|
+
)})` : ""), 13, fa)) : i("", !0),
|
|
1108
|
+
I(t) && h.value.dataLabels.show ? (u(), n("text", {
|
|
1097
1109
|
key: 1,
|
|
1098
|
-
"text-anchor":
|
|
1110
|
+
"text-anchor": ae(c.value[a].middlePoint),
|
|
1099
1111
|
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,
|
|
1100
1112
|
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,
|
|
1101
1113
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1102
1114
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1103
1115
|
style: b({
|
|
1104
|
-
transition:
|
|
1116
|
+
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1105
1117
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1106
1118
|
}),
|
|
1107
|
-
onClick: (v) =>
|
|
1108
|
-
},
|
|
1119
|
+
onClick: (v) => q(t, a)
|
|
1120
|
+
}, T(t.name), 13, ga)) : i("", !0)
|
|
1109
1121
|
], 64)) : i("", !0)
|
|
1110
1122
|
])),
|
|
1111
|
-
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (
|
|
1112
|
-
|
|
1123
|
+
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (u(), n("g", pa, [
|
|
1124
|
+
I(t) && e.value.type === "classic" ? (u(), n("foreignObject", {
|
|
1113
1125
|
key: 0,
|
|
1114
1126
|
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),
|
|
1115
1127
|
y: r(ve)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
@@ -1119,36 +1131,36 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1119
1131
|
}, [
|
|
1120
1132
|
f("div", null, [
|
|
1121
1133
|
m(l.$slots, "plot-comment", {
|
|
1122
|
-
plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor, isFirstLoad:
|
|
1134
|
+
plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor, isFirstLoad: P.value }
|
|
1123
1135
|
}, void 0, !0)
|
|
1124
1136
|
])
|
|
1125
|
-
], 8,
|
|
1126
|
-
|
|
1137
|
+
], 8, ma)) : i("", !0),
|
|
1138
|
+
I(t) && e.value.type === "polar" ? (u(), n("foreignObject", {
|
|
1127
1139
|
key: 1,
|
|
1128
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1140
|
+
x: e.value.style.chart.comments.offsetX + (ae(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 : ae(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),
|
|
1129
1141
|
y: Ot(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1130
1142
|
width: e.value.style.chart.comments.width,
|
|
1131
1143
|
height: "200",
|
|
1132
1144
|
style: b({
|
|
1133
|
-
transition:
|
|
1145
|
+
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1134
1146
|
overflow: "visible",
|
|
1135
1147
|
pointerEvents: "none"
|
|
1136
1148
|
})
|
|
1137
1149
|
}, [
|
|
1138
1150
|
f("div", null, [
|
|
1139
1151
|
m(l.$slots, "plot-comment", {
|
|
1140
|
-
plot: { ...t, textAlign:
|
|
1152
|
+
plot: { ...t, textAlign: ae(c.value[a].middlePoint), flexAlign: ae(c.value[a].middlePoint), isFirstLoad: P.value }
|
|
1141
1153
|
}, void 0, !0)
|
|
1142
1154
|
])
|
|
1143
|
-
], 12,
|
|
1155
|
+
], 12, ba)) : i("", !0)
|
|
1144
1156
|
])) : i("", !0)
|
|
1145
|
-
], 10,
|
|
1157
|
+
], 10, na))), 256)),
|
|
1146
1158
|
m(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1147
|
-
], 14,
|
|
1148
|
-
l.$slots.watermark ? (
|
|
1149
|
-
m(l.$slots, "watermark",
|
|
1159
|
+
], 14, hl)) : i("", !0),
|
|
1160
|
+
l.$slots.watermark ? (u(), n("div", wa, [
|
|
1161
|
+
m(l.$slots, "watermark", ue(se({ isPrinting: r(Xe) || r(Ve) })), void 0, !0)
|
|
1150
1162
|
])) : i("", !0),
|
|
1151
|
-
|
|
1163
|
+
ne.value ? i("", !0) : (u(), ee(r(pt), {
|
|
1152
1164
|
key: 6,
|
|
1153
1165
|
config: {
|
|
1154
1166
|
type: "donut",
|
|
@@ -1156,62 +1168,59 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1156
1168
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1157
1169
|
donut: {
|
|
1158
1170
|
color: "#CCCCCC",
|
|
1159
|
-
strokeWidth:
|
|
1171
|
+
strokeWidth: J.value * 0.8
|
|
1160
1172
|
}
|
|
1161
1173
|
}
|
|
1162
1174
|
}
|
|
1163
1175
|
}, null, 8, ["config"])),
|
|
1164
1176
|
f("div", {
|
|
1165
1177
|
ref_key: "chartLegend",
|
|
1166
|
-
ref:
|
|
1178
|
+
ref: Pe
|
|
1167
1179
|
}, [
|
|
1168
|
-
e.value.style.chart.legend.show ? (
|
|
1180
|
+
e.value.style.chart.legend.show ? (u(), ee(nl, {
|
|
1169
1181
|
key: `legend_${Le.value}`,
|
|
1170
1182
|
legendSet: Ue.value,
|
|
1171
1183
|
config: St.value,
|
|
1172
|
-
onClickMarker:
|
|
1173
|
-
},
|
|
1184
|
+
onClickMarker: o[4] || (o[4] = ({ i: t }) => Ee(t))
|
|
1185
|
+
}, ot({
|
|
1174
1186
|
item: C(({ legend: t, index: a }) => [
|
|
1175
1187
|
f("div", {
|
|
1176
|
-
style: b(`opacity:${
|
|
1188
|
+
style: b(`opacity:${D.value.includes(a) ? 0.5 : 1}`),
|
|
1177
1189
|
onClick: (v) => t.segregate()
|
|
1178
|
-
},
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
He.value(t),
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
})
|
|
1201
|
-
)) + ") ", 1))
|
|
1202
|
-
], 12, ba)
|
|
1190
|
+
}, T(t.name) + T(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + T(e.value.style.chart.legend.showValue ? r(V)(
|
|
1191
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
1192
|
+
t.value,
|
|
1193
|
+
r(M)({
|
|
1194
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1195
|
+
v: t.value,
|
|
1196
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1197
|
+
r: e.value.style.chart.legend.roundingValue
|
|
1198
|
+
}),
|
|
1199
|
+
{
|
|
1200
|
+
datapoint: t,
|
|
1201
|
+
index: a
|
|
1202
|
+
}
|
|
1203
|
+
) : "") + " " + T(e.value.style.chart.legend.showPercentage ? D.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${Nt(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / F.value) ? "-" : r(V)(
|
|
1204
|
+
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1205
|
+
He.value(t),
|
|
1206
|
+
r(M)({
|
|
1207
|
+
v: He.value(t),
|
|
1208
|
+
s: "%",
|
|
1209
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
1210
|
+
})
|
|
1211
|
+
)}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ka)
|
|
1203
1212
|
]),
|
|
1204
1213
|
_: 2
|
|
1205
1214
|
}, [
|
|
1206
1215
|
l.$slots.pattern ? {
|
|
1207
1216
|
name: "legend-pattern",
|
|
1208
1217
|
fn: C(({ legend: t, index: a }) => [
|
|
1209
|
-
|
|
1218
|
+
$e(il, {
|
|
1210
1219
|
shape: t.shape,
|
|
1211
1220
|
radius: 30,
|
|
1212
1221
|
stroke: "none",
|
|
1213
1222
|
plot: { x: 30, y: 30 },
|
|
1214
|
-
fill: `url(#pattern_${
|
|
1223
|
+
fill: `url(#pattern_${p.value}_${a})`
|
|
1215
1224
|
}, null, 8, ["shape", "fill"])
|
|
1216
1225
|
]),
|
|
1217
1226
|
key: "0"
|
|
@@ -1219,15 +1228,15 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1219
1228
|
]), 1032, ["legendSet", "config"])) : i("", !0),
|
|
1220
1229
|
m(l.$slots, "legend", { legend: Ue.value }, void 0, !0)
|
|
1221
1230
|
], 512),
|
|
1222
|
-
l.$slots.source ? (
|
|
1231
|
+
l.$slots.source ? (u(), n("div", {
|
|
1223
1232
|
key: 7,
|
|
1224
1233
|
ref_key: "source",
|
|
1225
|
-
ref:
|
|
1234
|
+
ref: Te,
|
|
1226
1235
|
dir: "auto"
|
|
1227
1236
|
}, [
|
|
1228
1237
|
m(l.$slots, "source", {}, void 0, !0)
|
|
1229
1238
|
], 512)) : i("", !0),
|
|
1230
|
-
|
|
1239
|
+
$e(r(mt), {
|
|
1231
1240
|
show: h.value.showTooltip && ce.value,
|
|
1232
1241
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1233
1242
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1238,20 +1247,20 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1238
1247
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1239
1248
|
position: e.value.style.chart.tooltip.position,
|
|
1240
1249
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1241
|
-
parent:
|
|
1242
|
-
content:
|
|
1250
|
+
parent: U.value,
|
|
1251
|
+
content: ge.value,
|
|
1243
1252
|
isCustom: re.value,
|
|
1244
|
-
isFullscreen:
|
|
1253
|
+
isFullscreen: oe.value
|
|
1245
1254
|
}, {
|
|
1246
1255
|
"tooltip-before": C(() => [
|
|
1247
|
-
m(l.$slots, "tooltip-before",
|
|
1256
|
+
m(l.$slots, "tooltip-before", ue(se({ ...we.value })), void 0, !0)
|
|
1248
1257
|
]),
|
|
1249
1258
|
"tooltip-after": C(() => [
|
|
1250
|
-
m(l.$slots, "tooltip-after",
|
|
1259
|
+
m(l.$slots, "tooltip-after", ue(se({ ...we.value })), void 0, !0)
|
|
1251
1260
|
]),
|
|
1252
1261
|
_: 3
|
|
1253
1262
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1254
|
-
|
|
1263
|
+
ne.value ? (u(), ee(r(ht), {
|
|
1255
1264
|
key: 8,
|
|
1256
1265
|
hideDetails: "",
|
|
1257
1266
|
config: {
|
|
@@ -1268,14 +1277,14 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1268
1277
|
}
|
|
1269
1278
|
}, {
|
|
1270
1279
|
content: C(() => [
|
|
1271
|
-
(
|
|
1280
|
+
(u(), ee(r(yt), {
|
|
1272
1281
|
key: `table_${Fe.value}`,
|
|
1273
1282
|
colNames: de.value.colNames,
|
|
1274
1283
|
head: de.value.head,
|
|
1275
1284
|
body: de.value.body,
|
|
1276
1285
|
config: de.value.config,
|
|
1277
1286
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1278
|
-
onClose:
|
|
1287
|
+
onClose: o[5] || (o[5] = (t) => h.value.showTable = !1)
|
|
1279
1288
|
}, {
|
|
1280
1289
|
th: C(({ th: t }) => [
|
|
1281
1290
|
f("div", {
|
|
@@ -1284,7 +1293,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1284
1293
|
}, null, 8, _a)
|
|
1285
1294
|
]),
|
|
1286
1295
|
td: C(({ td: t }) => [
|
|
1287
|
-
|
|
1296
|
+
Vt(T(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(V)(
|
|
1288
1297
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1289
1298
|
t,
|
|
1290
1299
|
r(M)({
|
|
@@ -1292,7 +1301,7 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1292
1301
|
s: "%",
|
|
1293
1302
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1294
1303
|
})
|
|
1295
|
-
) : r(
|
|
1304
|
+
) : r(V)(
|
|
1296
1305
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1297
1306
|
t,
|
|
1298
1307
|
r(M)({
|
|
@@ -1308,9 +1317,9 @@ const vl = ["id"], cl = ["xmlns", "viewBox"], dl = ["width", "height"], hl = { k
|
|
|
1308
1317
|
]),
|
|
1309
1318
|
_: 1
|
|
1310
1319
|
}, 8, ["config"])) : i("", !0)
|
|
1311
|
-
], 46,
|
|
1320
|
+
], 46, dl));
|
|
1312
1321
|
}
|
|
1313
|
-
},
|
|
1322
|
+
}, Ya = /* @__PURE__ */ cl($a, [["__scopeId", "data-v-ac4cbcc5"]]);
|
|
1314
1323
|
export {
|
|
1315
|
-
|
|
1324
|
+
Ya as default
|
|
1316
1325
|
};
|