vue-data-ui 2.17.7 → 2.17.9
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-me__N_0y.js → Arrow-BtfCY5gt.js} +1 -1
- package/dist/{BaseDraggableDialog-B3vDETZF.js → BaseDraggableDialog-DK2afbp7.js} +2 -2
- package/dist/{BaseIcon-ChZPZX-A.js → BaseIcon-CF2uYLsg.js} +1 -1
- package/dist/{ColorPicker-BTHKcTCn.js → ColorPicker-CQwO6O0H.js} +2 -2
- package/dist/{DataTable-U4EH3cP4.js → DataTable-ZaeZyzyi.js} +2 -2
- package/dist/{Legend-BQfiyC_w.js → Legend-n-jNc8hc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B58ag5uE.js → NonSvgPenAndPaper-DHa-0cgG.js} +3 -3
- package/dist/{PackageVersion-NDKFRBq5.js → PackageVersion-UowjP5VV.js} +1 -1
- package/dist/{PenAndPaper-CwoLkSrd.js → PenAndPaper-D-V91om_.js} +3 -3
- package/dist/{Shape-CeJI3w0R.js → Shape-COmQwu1h.js} +1 -1
- package/dist/{Slicer-DKLVa_w9.js → Slicer-BRNq9nmV.js} +2 -2
- package/dist/{SparkTooltip-1viQ12s2.js → SparkTooltip-Cq0uEh34.js} +1 -1
- package/dist/{Title-tOz-gEGM.js → Title-BiQduNOC.js} +1 -1
- package/dist/{Tooltip-Dw_vV0R_.js → Tooltip-BtcoOg7N.js} +1 -1
- package/dist/{UserOptions-Bepf6s0a.js → UserOptions-CH1eWh8-.js} +2 -2
- package/dist/{dom-to-png-C4e097oF.js → dom-to-png-lcMBIjSq.js} +1 -1
- package/dist/{img-Bb0wcHve.js → img-D6ti0cqW.js} +1 -1
- package/dist/{index-R4FwM_IZ.js → index-Dv0soSuJ.js} +8 -3
- package/dist/{pdf-Bap-QOia.js → pdf-DixtGuc2.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -0
- package/dist/types/vue-data-ui.d.ts +5 -0
- package/dist/{useNestedProp-BK4CixKz.js → useNestedProp-9yFImdT2.js} +1 -1
- package/dist/{usePrinter-3YhL7e8Q.js → usePrinter-DY64Kp3q.js} +2 -2
- package/dist/{vue-data-ui-CY0rRZ7Z.js → vue-data-ui-CM_ZATJk.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Dep0ysOa.js → vue-ui-3d-bar-CaaItbDc.js} +6 -6
- package/dist/{vue-ui-accordion-CvmwQkdH.js → vue-ui-accordion-BkT_q5p5.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BCPyK18i.js → vue-ui-age-pyramid-DdJu5WK9.js} +6 -6
- package/dist/{vue-ui-annotator-JTkkUkwf.js → vue-ui-annotator-DUmT0GYd.js} +2 -2
- package/dist/{vue-ui-bullet-JkggghcX.js → vue-ui-bullet-CJ6OEjv8.js} +7 -7
- package/dist/{vue-ui-candlestick-BGV4q10G.js → vue-ui-candlestick-DdinSuU5.js} +7 -7
- package/dist/{vue-ui-carousel-table-B_ie5YYq.js → vue-ui-carousel-table-BNRZCTS8.js} +4 -4
- package/dist/{vue-ui-chestnut-CLxKZsOD.js → vue-ui-chestnut-dnxQ6UPV.js} +5 -5
- package/dist/{vue-ui-chord-Co3kJVCi.js → vue-ui-chord-Drl5anFE.js} +8 -8
- package/dist/{vue-ui-circle-pack-PL75C9jO.js → vue-ui-circle-pack-DCmNOdKp.js} +6 -6
- package/dist/{vue-ui-cursor-DC7O-8eZ.js → vue-ui-cursor-DKv9oB3v.js} +2 -2
- package/dist/{vue-ui-dashboard-C3nn1lMD.js → vue-ui-dashboard-BZ-M9Yme.js} +62 -62
- package/dist/{vue-ui-digits-D5UgycEC.js → vue-ui-digits-CbUmrEHB.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BNo8EYG7.js → vue-ui-donut-evolution-DrFvNObb.js} +8 -8
- package/dist/{vue-ui-donut-eHNz1cS2.js → vue-ui-donut-pIqtpIED.js} +180 -179
- package/dist/{vue-ui-dumbbell-D2RD8nwP.js → vue-ui-dumbbell-CLSmiH-N.js} +7 -7
- package/dist/{vue-ui-flow-nlmivNyk.js → vue-ui-flow-Dg4hlNmC.js} +7 -7
- package/dist/{vue-ui-funnel-eWVO6Rh-.js → vue-ui-funnel-BB-wv_Eb.js} +6 -6
- package/dist/{vue-ui-galaxy-Ch2uWCU5.js → vue-ui-galaxy-iQqpqXx3.js} +5 -5
- package/dist/{vue-ui-gauge-Ccknj5io.js → vue-ui-gauge-BWVgzdlW.js} +6 -6
- package/dist/{vue-ui-gizmo-CYbxx735.js → vue-ui-gizmo-B2IFV8hw.js} +3 -3
- package/dist/{vue-ui-heatmap-zSgV_xBw.js → vue-ui-heatmap-DXhGcT2z.js} +7 -7
- package/dist/{vue-ui-history-plot-DwOOZx8Y.js → vue-ui-history-plot-B1TzA1qK.js} +7 -7
- package/dist/{vue-ui-kpi-vZcmV3FL.js → vue-ui-kpi-DNlnwSgl.js} +3 -3
- package/dist/{vue-ui-mini-loader-DqrVkeKh.js → vue-ui-mini-loader-B9n2olxI.js} +2 -2
- package/dist/{vue-ui-molecule-DuMBa5Er.js → vue-ui-molecule-04VOLuZF.js} +5 -5
- package/dist/{vue-ui-mood-radar-DeFiyKZo.js → vue-ui-mood-radar-DmUVxolx.js} +7 -7
- package/dist/{vue-ui-nested-donuts-ChqfdGIA.js → vue-ui-nested-donuts-BJEZY_NE.js} +269 -269
- package/dist/{vue-ui-onion-f1aoOv6z.js → vue-ui-onion-DabxP3_Z.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-Ca-UNZey.js → vue-ui-parallel-coordinate-plot-DkSpGGJx.js} +8 -8
- package/dist/{vue-ui-quadrant-DUCj9oO3.js → vue-ui-quadrant-Dj547XAk.js} +8 -8
- package/dist/{vue-ui-quick-chart-R2nTOiT6.js → vue-ui-quick-chart-DW2adLRL.js} +6 -6
- package/dist/{vue-ui-radar-CVcnsuAK.js → vue-ui-radar-C6ggXr8y.js} +7 -7
- package/dist/{vue-ui-rating-D2wYPFBm.js → vue-ui-rating-COLcK1an.js} +2 -2
- package/dist/{vue-ui-relation-circle-D9TquCd5.js → vue-ui-relation-circle-B0rySjIX.js} +6 -6
- package/dist/{vue-ui-ridgeline-Cg1Zo2a_.js → vue-ui-ridgeline-BgoqoPtM.js} +8 -8
- package/dist/{vue-ui-rings-DUjrPHK_.js → vue-ui-rings-zu_YvMFP.js} +8 -8
- package/dist/{vue-ui-scatter-BWB6HCP0.js → vue-ui-scatter-CjW__QNt.js} +8 -8
- package/dist/{vue-ui-skeleton-WSSONwJZ.js → vue-ui-skeleton-Qi2Epuis.js} +3 -3
- package/dist/{vue-ui-smiley-WLYZ-Ah-.js → vue-ui-smiley-smM23ynJ.js} +2 -2
- package/dist/{vue-ui-spark-trend-E6k5O2Rw.js → vue-ui-spark-trend-Cv4G6d8v.js} +3 -3
- package/dist/{vue-ui-sparkbar-CNzH63eE.js → vue-ui-sparkbar-DXpIZ08M.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Bhh1DXey.js → vue-ui-sparkgauge-Co1_3phQ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DyLwFyLp.js → vue-ui-sparkhistogram-CnrpMq7q.js} +4 -4
- package/dist/{vue-ui-sparkline-uS8cCax1.js → vue-ui-sparkline-DBIyX7De.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-C6dYAH8m.js → vue-ui-sparkstackbar-DG9m4jjc.js} +3 -3
- package/dist/{vue-ui-stackbar-Dddp2o8G.js → vue-ui-stackbar-DFnVZcfG.js} +9 -9
- package/dist/{vue-ui-strip-plot-B6yC9kff.js → vue-ui-strip-plot-B71AVn21.js} +7 -7
- package/dist/{vue-ui-table-Cnih0nfc.js → vue-ui-table-a3jegw_8.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BS8p2f9Z.js → vue-ui-table-heatmap-KwzL9P1X.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CKq52QYD.js → vue-ui-table-sparkline-GDUe5MSH.js} +4 -4
- package/dist/{vue-ui-thermometer-DsLI46GU.js → vue-ui-thermometer-ChQNhMs6.js} +6 -6
- package/dist/{vue-ui-timer-BJlG0PSO.js → vue-ui-timer-BogRB1RB.js} +5 -5
- package/dist/{vue-ui-tiremarks-DdG9sprc.js → vue-ui-tiremarks-UP4Rb3zD.js} +6 -6
- package/dist/{vue-ui-treemap-Bv_8qc1b.js → vue-ui-treemap-_QbE2zz7.js} +8 -8
- package/dist/{vue-ui-vertical-bar-BFHAmyWq.js → vue-ui-vertical-bar-DLWqyygn.js} +9 -9
- package/dist/{vue-ui-waffle-DlU66HMb.js → vue-ui-waffle-NRo2zrSX.js} +8 -8
- package/dist/{vue-ui-wheel-hbOXnmiy.js → vue-ui-wheel-BjsTcotR.js} +6 -6
- package/dist/{vue-ui-word-cloud-LPiLJ5Oe.js → vue-ui-word-cloud-DZt001R2.js} +6 -6
- package/dist/{vue-ui-world-C5XgS-5e.js → vue-ui-world-B0b8jR5D.js} +6 -6
- package/dist/{vue-ui-xy-BEZVemUJ.js → vue-ui-xy-BVqPU615.js} +17 -17
- package/dist/{vue-ui-xy-canvas-DxVCBwMh.js → vue-ui-xy-canvas-BQqN3x1L.js} +8 -8
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as te, useSlots as Bt, computed as f, shallowRef as W, ref as w, onMounted as
|
|
2
|
-
import { u as Wt, o as Ut, e as Te, g as jt, c as Ht, b as qt, v as Jt, d as vt, p as ae, m as dt, $ as Kt, f as z, X as Qt, s as ge, w as Zt, j as el, N as L, i as V, k as he, n as x, t as tl, a as ll, C as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as ht } from "./useNestedProp-
|
|
5
|
-
import { u as rl } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as te, useSlots as Bt, computed as f, shallowRef as W, ref as w, onMounted as ut, onBeforeUnmount as Et, watch as nt, createElementBlock as n, openBlock as s, normalizeStyle as k, normalizeClass as Ce, createBlock as le, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Pe, unref as r, createSlots as rt, withCtx as P, normalizeProps as ne, guardReactiveProps as re, Fragment as p, renderList as M, mergeProps as it, toDisplayString as I, createTextVNode as Gt, nextTick as Rt } from "vue";
|
|
2
|
+
import { u as Wt, o as Ut, e as Te, g as jt, c as Ht, b as qt, v as Jt, d as vt, p as ae, m as dt, $ as Kt, f as z, X as Qt, s as ge, w as Zt, j as el, N as L, i as V, k as he, n as x, t as tl, a as ll, C as Ae, q as al, r as ol, x as sl, T as ct } from "./index-Dv0soSuJ.js";
|
|
3
|
+
import { t as ul, u as nl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ht } from "./useNestedProp-9yFImdT2.js";
|
|
5
|
+
import { u as rl } from "./usePrinter-DY64Kp3q.js";
|
|
6
6
|
import { u as il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as vl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import dl from "./Legend-
|
|
9
|
-
import cl from "./Title-
|
|
10
|
-
import { _ as hl } from "./Shape-
|
|
11
|
-
import yl from "./img-
|
|
8
|
+
import dl from "./Legend-n-jNc8hc.js";
|
|
9
|
+
import cl from "./Title-BiQduNOC.js";
|
|
10
|
+
import { _ as hl } from "./Shape-COmQwu1h.js";
|
|
11
|
+
import yl from "./img-D6ti0cqW.js";
|
|
12
12
|
import { _ as fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { key: 1 }, wl = ["id"], kl = ["stop-color"], xl = ["offset", "stop-color"], _l = ["offset", "stop-color"], $l = ["stop-color"], Cl = { key: 2 }, Pl = ["id", "cx", "cy"], Tl = ["stop-color", "stop-opacity"],
|
|
13
|
+
const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { key: 1 }, wl = ["id"], kl = ["stop-color"], xl = ["offset", "stop-color"], _l = ["offset", "stop-color"], $l = ["stop-color"], Cl = { key: 2 }, Pl = ["id", "cx", "cy"], Tl = ["stop-color", "stop-opacity"], Al = ["stop-color"], Il = ["id"], Ml = ["id"], Sl = ["id"], Ll = ["flood-color"], Fl = ["id"], zl = ["flood-color"], Ol = ["d", "stroke", "filter"], Nl = ["d", "stroke", "filter"], Yl = ["cx", "cy", "r", "fill", "filter"], Xl = { key: 6 }, Vl = ["stroke", "d"], Dl = ["d", "fill", "stroke", "stroke-width", "filter"], Bl = { key: 0 }, El = ["d", "fill", "stroke", "stroke-width", "filter"], Gl = { key: 0 }, Rl = ["stroke", "d"], Wl = { key: 0 }, Ul = ["d", "stroke", "stroke-width", "filter"], jl = { key: 1 }, Hl = ["d", "fill", "stroke", "stroke-width", "filter"], ql = ["d", "fill", "stroke", "stroke-width", "filter"], Jl = { key: 1 }, Kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ql = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Zl = { key: 0 }, ea = ["d", "fill", "stroke", "stroke-width"], ta = ["cx", "cy", "r", "stroke"], la = ["cx", "cy", "r", "fill"], aa = { key: 0 }, oa = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], sa = { key: 1 }, ua = ["cx", "cy", "r"], na = ["x", "y", "fill", "font-size"], ra = ["x", "y", "fill", "font-size"], ia = ["x", "y", "fill", "font-size"], va = ["x", "y", "fill", "font-size"], da = ["filter"], ca = { key: 0 }, ha = ["x", "y"], ya = { key: 1 }, fa = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], pa = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], ga = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ma = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ba = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], wa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ka = { key: 2 }, xa = ["x", "y", "width"], _a = ["x", "y", "width"], $a = {
|
|
14
14
|
key: 5,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
16
|
}, Ca = ["onClick"], Pa = ["innerHTML"], Ta = {
|
|
@@ -30,16 +30,16 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend", "selectDatapoint"],
|
|
33
|
-
setup(
|
|
34
|
-
const pt = te(() => import("./vue-ui-accordion-
|
|
33
|
+
setup(Ie, { expose: yt, emit: ft }) {
|
|
34
|
+
const pt = te(() => import("./vue-ui-accordion-BkT_q5p5.js")), gt = te(() => import("./DataTable-ZaeZyzyi.js")), mt = te(() => import("./PackageVersion-UowjP5VV.js")), bt = te(() => import("./PenAndPaper-D-V91om_.js")), wt = te(() => import("./vue-ui-skeleton-Qi2Epuis.js")), kt = te(() => import("./Tooltip-BtcoOg7N.js")), xt = te(() => import("./UserOptions-CH1eWh8-.js")), { vue_ui_donut: _t } = Wt(), $t = Bt(), g = Ie, ie = f({
|
|
35
35
|
get() {
|
|
36
36
|
return !!g.dataset && g.dataset.length;
|
|
37
37
|
},
|
|
38
38
|
set(l) {
|
|
39
39
|
return l;
|
|
40
40
|
}
|
|
41
|
-
}), U = W(null),
|
|
42
|
-
|
|
41
|
+
}), U = W(null), Me = W(null), Se = W(null), j = W(null), oe = W(null), Le = W(null), Fe = W(null), ze = w(0), Oe = w(0), Ne = w(0);
|
|
42
|
+
ut(() => {
|
|
43
43
|
Ye();
|
|
44
44
|
}), Et(() => {
|
|
45
45
|
j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect());
|
|
@@ -68,17 +68,17 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
68
68
|
index: o
|
|
69
69
|
});
|
|
70
70
|
})), e.value.responsive) {
|
|
71
|
-
const l =
|
|
72
|
-
const { width: o, height: t } =
|
|
71
|
+
const l = ul(() => {
|
|
72
|
+
const { width: o, height: t } = nl({
|
|
73
73
|
chart: U.value,
|
|
74
|
-
title: e.value.style.chart.title.text ?
|
|
74
|
+
title: e.value.style.chart.title.text ? Me.value : null,
|
|
75
75
|
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
76
76
|
source: Le.value,
|
|
77
77
|
noTitle: Fe.value,
|
|
78
78
|
padding: Ee.value
|
|
79
79
|
});
|
|
80
80
|
requestAnimationFrame(() => {
|
|
81
|
-
|
|
81
|
+
u.value.width = o, u.value.height = t;
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(l), oe.value = U.value.parentNode, j.value.observe(oe.value);
|
|
@@ -97,7 +97,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
97
97
|
defaultConfig: l
|
|
98
98
|
}),
|
|
99
99
|
customPalette: tl[l.theme] || ae
|
|
100
|
-
} : o = l, g.config &&
|
|
100
|
+
} : o = l, g.config && Ae(g.config, "events.datapointEnter") ? o.events.datapointEnter = g.config.events.datapointEnter : o.events.datapointEnter = null, g.config && Ae(g.config, "events.datapointLeave") ? o.events.datapointLeave = g.config.events.datapointLeave : o.events.datapointLeave = null, g.config && Ae(g.config, "events.datapointClick") ? o.events.datapointClick = g.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
101
101
|
}
|
|
102
102
|
const e = f({
|
|
103
103
|
get: () => Ve(),
|
|
@@ -120,7 +120,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
ut(async () => {
|
|
124
124
|
const l = g.dataset.map((o) => o.values.reduce((t, a) => t + a, 0));
|
|
125
125
|
e.value.startAnimation.show && await Pt(
|
|
126
126
|
l,
|
|
@@ -132,11 +132,11 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
132
132
|
function Tt() {
|
|
133
133
|
De(!0);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function At() {
|
|
136
136
|
De(!1);
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
e.value = Ve(), we.value = !e.value.userOptions.showOnChartHover, Ye(), ze.value += 1, Oe.value += 1, Ne.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show,
|
|
138
|
+
nt(() => g.config, (l) => {
|
|
139
|
+
e.value = Ve(), we.value = !e.value.userOptions.showOnChartHover, Ye(), ze.value += 1, Oe.value += 1, Ne.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show, u.value.height = e.value.style.chart.height, u.value.width = e.value.style.chart.width;
|
|
140
140
|
}, { deep: !0 });
|
|
141
141
|
const Ee = f(() => {
|
|
142
142
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
@@ -151,17 +151,17 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
151
151
|
elementId: `donut__${m.value}`,
|
|
152
152
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
153
153
|
options: e.value.userOptions.print
|
|
154
|
-
}),
|
|
154
|
+
}), It = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), je = f(() => qt(e.value.customPalette)), y = w({
|
|
155
155
|
dataLabels: {
|
|
156
156
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
157
157
|
},
|
|
158
158
|
showTable: e.value.table.show,
|
|
159
159
|
showTooltip: e.value.style.chart.tooltip.show
|
|
160
|
-
}),
|
|
160
|
+
}), u = w({
|
|
161
161
|
height: e.value.style.chart.height,
|
|
162
162
|
width: e.value.style.chart.width
|
|
163
163
|
}), Q = f(() => {
|
|
164
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(
|
|
164
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(u.value.width, u.value.height) * l, t = o > _.value ? _.value : o;
|
|
165
165
|
return Math.max(t, 3);
|
|
166
166
|
}), He = ft, E = f(() => g.dataset.map((l, o) => ({
|
|
167
167
|
name: l.name,
|
|
@@ -174,8 +174,8 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
174
174
|
ghost: !1,
|
|
175
175
|
pattern: `pattern_${m.value}_${o}`
|
|
176
176
|
}))), F = W(E.value);
|
|
177
|
-
|
|
178
|
-
function
|
|
177
|
+
nt(() => E.value, (l) => F.value = l);
|
|
178
|
+
function Mt() {
|
|
179
179
|
return E.value.map((l) => ({
|
|
180
180
|
name: l.name,
|
|
181
181
|
color: l.color,
|
|
@@ -290,9 +290,9 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
290
290
|
paddingBottom: 12,
|
|
291
291
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
292
292
|
})), _ = f(() => {
|
|
293
|
-
const l = Math.min(
|
|
293
|
+
const l = Math.min(u.value.width / 3, u.value.height / 3);
|
|
294
294
|
return l < 55 ? 55 : l;
|
|
295
|
-
}),
|
|
295
|
+
}), A = f(() => dt({ series: G.value }, u.value.width / 2, u.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, Q.value)), Ft = f(() => Math.abs(G.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), zt = f(() => dt({
|
|
296
296
|
series: [
|
|
297
297
|
{
|
|
298
298
|
value: 1,
|
|
@@ -304,23 +304,23 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
304
304
|
absoluteValues: [1]
|
|
305
305
|
}
|
|
306
306
|
]
|
|
307
|
-
},
|
|
307
|
+
}, u.value.width / 2, u.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, Q.value)), N = f(() => A.value.filter((l) => !l.ghost)), d = f(() => {
|
|
308
308
|
const l = Math.max(...G.value.map((t) => t.value)), o = G.value.map((t) => t.value / l);
|
|
309
309
|
return Kt({
|
|
310
310
|
series: o,
|
|
311
311
|
center: {
|
|
312
|
-
x:
|
|
313
|
-
y:
|
|
312
|
+
x: u.value.width / 2,
|
|
313
|
+
y: u.value.height / 2
|
|
314
314
|
},
|
|
315
|
-
maxRadius: Math.min(
|
|
315
|
+
maxRadius: Math.min(u.value.width, u.value.height) / 3,
|
|
316
316
|
hasGhost: T.value
|
|
317
317
|
});
|
|
318
318
|
});
|
|
319
319
|
function se(l) {
|
|
320
|
-
return l.x >
|
|
320
|
+
return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
|
|
321
321
|
}
|
|
322
322
|
function Ot(l) {
|
|
323
|
-
return l.middlePoint.y >
|
|
323
|
+
return l.middlePoint.y > u.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y - 100;
|
|
324
324
|
}
|
|
325
325
|
function Y(l) {
|
|
326
326
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
@@ -449,9 +449,9 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
449
449
|
body: o,
|
|
450
450
|
config: t
|
|
451
451
|
};
|
|
452
|
-
}),
|
|
452
|
+
}), ue = w(!1);
|
|
453
453
|
function tt(l) {
|
|
454
|
-
|
|
454
|
+
ue.value = l, Xe.value += 1;
|
|
455
455
|
}
|
|
456
456
|
const lt = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
457
457
|
function Yt(l) {
|
|
@@ -493,7 +493,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
493
493
|
}
|
|
494
494
|
return yt({
|
|
495
495
|
autoSize: Vt,
|
|
496
|
-
getData:
|
|
496
|
+
getData: Mt,
|
|
497
497
|
getImage: Xt,
|
|
498
498
|
generatePdf: We,
|
|
499
499
|
generateCsv: et,
|
|
@@ -503,14 +503,14 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
503
503
|
toggleTooltip: st,
|
|
504
504
|
toggleAnnotator: _e,
|
|
505
505
|
toggleFullscreen: tt
|
|
506
|
-
}), (l, o) => (s(),
|
|
506
|
+
}), (l, o) => (s(), n("div", {
|
|
507
507
|
ref_key: "donutChart",
|
|
508
508
|
ref: U,
|
|
509
|
-
class: Ce(`vue-ui-donut ${
|
|
509
|
+
class: Ce(`vue-ui-donut ${ue.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
510
510
|
style: k(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
511
511
|
id: `donut__${m.value}`,
|
|
512
512
|
onMouseenter: Tt,
|
|
513
|
-
onMouseleave:
|
|
513
|
+
onMouseleave: At
|
|
514
514
|
}, [
|
|
515
515
|
e.value.userOptions.buttons.annotator && r(ve) ? (s(), le(r(bt), {
|
|
516
516
|
key: 0,
|
|
@@ -521,17 +521,17 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
521
521
|
onClose: _e
|
|
522
522
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
523
523
|
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
524
|
-
|
|
524
|
+
It.value ? (s(), n("div", {
|
|
525
525
|
key: 1,
|
|
526
526
|
ref_key: "noTitle",
|
|
527
527
|
ref: Fe,
|
|
528
528
|
class: "vue-data-ui-no-title-space",
|
|
529
529
|
style: "height:36px; width: 100%;background:transparent"
|
|
530
530
|
}, null, 512)) : v("", !0),
|
|
531
|
-
e.value.style.chart.title.text ? (s(),
|
|
531
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
532
532
|
key: 2,
|
|
533
533
|
ref_key: "chartTitle",
|
|
534
|
-
ref:
|
|
534
|
+
ref: Me,
|
|
535
535
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
536
536
|
}, [
|
|
537
537
|
(s(), le(cl, {
|
|
@@ -564,7 +564,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
564
564
|
hasTable: e.value.userOptions.buttons.table,
|
|
565
565
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
566
566
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
567
|
-
isFullscreen:
|
|
567
|
+
isFullscreen: ue.value,
|
|
568
568
|
chartElement: U.value,
|
|
569
569
|
position: e.value.userOptions.position,
|
|
570
570
|
callbacks: e.value.userOptions.callbacks,
|
|
@@ -588,7 +588,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
588
588
|
l.$slots.menuIcon ? {
|
|
589
589
|
name: "menuIcon",
|
|
590
590
|
fn: P(({ isOpen: t, color: a }) => [
|
|
591
|
-
b(l.$slots, "menuIcon",
|
|
591
|
+
b(l.$slots, "menuIcon", ne(re({ isOpen: t, color: a })), void 0, !0)
|
|
592
592
|
]),
|
|
593
593
|
key: "0"
|
|
594
594
|
} : void 0,
|
|
@@ -637,25 +637,25 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
637
637
|
l.$slots.optionFullscreen ? {
|
|
638
638
|
name: "optionFullscreen",
|
|
639
639
|
fn: P(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
640
|
-
b(l.$slots, "optionFullscreen",
|
|
640
|
+
b(l.$slots, "optionFullscreen", ne(re({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
641
641
|
]),
|
|
642
642
|
key: "7"
|
|
643
643
|
} : void 0,
|
|
644
644
|
l.$slots.optionAnnotator ? {
|
|
645
645
|
name: "optionAnnotator",
|
|
646
646
|
fn: P(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
647
|
-
b(l.$slots, "optionAnnotator",
|
|
647
|
+
b(l.$slots, "optionAnnotator", ne(re({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
648
648
|
]),
|
|
649
649
|
key: "8"
|
|
650
650
|
} : void 0
|
|
651
651
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
652
|
-
ie.value ? (s(),
|
|
652
|
+
ie.value ? (s(), n("svg", {
|
|
653
653
|
key: 4,
|
|
654
654
|
ref_key: "svgRef",
|
|
655
655
|
ref: ve,
|
|
656
656
|
xmlns: r(Qt),
|
|
657
|
-
class: Ce({ "vue-data-ui-fullscreen--on":
|
|
658
|
-
viewBox: `0 0 ${
|
|
657
|
+
class: Ce({ "vue-data-ui-fullscreen--on": ue.value, "vue-data-ui-fulscreen--off": !ue.value, "vue-data-ui-svg": !0 }),
|
|
658
|
+
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
659
659
|
style: k(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ee.value.css}`)
|
|
660
660
|
}, [
|
|
661
661
|
h("g", {
|
|
@@ -664,20 +664,20 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
664
664
|
class: "vue-data-ui-g"
|
|
665
665
|
}, [
|
|
666
666
|
Pe(r(mt)),
|
|
667
|
-
l.$slots["chart-background"] ? (s(),
|
|
667
|
+
l.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
668
668
|
key: 0,
|
|
669
669
|
x: 0,
|
|
670
670
|
y: 0,
|
|
671
|
-
width:
|
|
672
|
-
height:
|
|
671
|
+
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
672
|
+
height: u.value.height <= 0 ? 10 : u.value.height,
|
|
673
673
|
style: {
|
|
674
674
|
pointerEvents: "none"
|
|
675
675
|
}
|
|
676
676
|
}, [
|
|
677
677
|
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
678
678
|
], 8, ml)) : v("", !0),
|
|
679
|
-
e.value.type === "classic" && !isNaN(Q.value / _.value) ? (s(),
|
|
680
|
-
e.value.style.chart.useGradient ? (s(),
|
|
679
|
+
e.value.type === "classic" && !isNaN(Q.value / _.value) ? (s(), n("defs", bl, [
|
|
680
|
+
e.value.style.chart.useGradient ? (s(), n("radialGradient", {
|
|
681
681
|
key: 0,
|
|
682
682
|
id: `gradient_${m.value}`
|
|
683
683
|
}, [
|
|
@@ -702,22 +702,22 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
702
702
|
}, null, 8, $l)
|
|
703
703
|
], 8, wl)) : v("", !0)
|
|
704
704
|
])) : v("", !0),
|
|
705
|
-
e.value.type === "polar" ? (s(),
|
|
706
|
-
(s(!0),
|
|
705
|
+
e.value.type === "polar" ? (s(), n("defs", Cl, [
|
|
706
|
+
(s(!0), n(p, null, M(d.value, (t, a) => (s(), n("radialGradient", {
|
|
707
707
|
id: `polar_gradient_${a}_${m.value}`,
|
|
708
|
-
cx: (isNaN(t.middlePoint.x /
|
|
709
|
-
cy: (isNaN(t.middlePoint.y /
|
|
708
|
+
cx: (isNaN(t.middlePoint.x / u.value.width * 100) ? 0 : t.middlePoint.x / u.value.width * 100) + "%",
|
|
709
|
+
cy: (isNaN(t.middlePoint.y / u.value.height * 100) ? 0 : t.middlePoint.y / u.value.height * 100) + "%",
|
|
710
710
|
r: "62%"
|
|
711
711
|
}, [
|
|
712
712
|
h("stop", {
|
|
713
713
|
offset: "0%",
|
|
714
|
-
"stop-color": r(Zt)(
|
|
714
|
+
"stop-color": r(Zt)(A.value[a].color, 0.05),
|
|
715
715
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
716
716
|
}, null, 8, Tl),
|
|
717
717
|
h("stop", {
|
|
718
718
|
offset: "100%",
|
|
719
|
-
"stop-color":
|
|
720
|
-
}, null, 8,
|
|
719
|
+
"stop-color": A.value[a].color
|
|
720
|
+
}, null, 8, Al)
|
|
721
721
|
], 8, Pl))), 256))
|
|
722
722
|
])) : v("", !0),
|
|
723
723
|
h("defs", null, [
|
|
@@ -732,12 +732,12 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
732
732
|
in: "SourceGraphic",
|
|
733
733
|
stdDeviation: 2,
|
|
734
734
|
id: `blur_std_${m.value}`
|
|
735
|
-
}, null, 8,
|
|
735
|
+
}, null, 8, Ml),
|
|
736
736
|
o[5] || (o[5] = h("feColorMatrix", {
|
|
737
737
|
type: "saturate",
|
|
738
738
|
values: "0"
|
|
739
739
|
}, null, -1))
|
|
740
|
-
], 8,
|
|
740
|
+
], 8, Il),
|
|
741
741
|
h("filter", {
|
|
742
742
|
id: `shadow_${m.value}`,
|
|
743
743
|
"color-interpolation-filters": "sRGB"
|
|
@@ -767,10 +767,10 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
767
767
|
}, null, 8, zl)
|
|
768
768
|
], 8, Fl)
|
|
769
769
|
]),
|
|
770
|
-
e.value.type === "classic" ? (s(!0),
|
|
771
|
-
Y(t) && y.value.dataLabels.show ? (s(),
|
|
770
|
+
e.value.type === "classic" ? (s(!0), n(p, { key: 3 }, M(A.value.filter((t) => !t.ghost), (t, a) => (s(), n("g", null, [
|
|
771
|
+
Y(t) && y.value.dataLabels.show ? (s(), n("path", {
|
|
772
772
|
key: 0,
|
|
773
|
-
d: r(el)(t, { x:
|
|
773
|
+
d: r(el)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, Q.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
774
774
|
stroke: t.color,
|
|
775
775
|
"stroke-width": "1",
|
|
776
776
|
"stroke-linecap": "round",
|
|
@@ -779,10 +779,10 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
779
779
|
filter: ee(a)
|
|
780
780
|
}, null, 8, Ol)) : v("", !0)
|
|
781
781
|
]))), 256)) : v("", !0),
|
|
782
|
-
e.value.type === "polar" ? (s(!0),
|
|
783
|
-
Y(t) && y.value.dataLabels.show ? (s(),
|
|
782
|
+
e.value.type === "polar" ? (s(!0), n(p, { key: 4 }, M(A.value.filter((t) => !t.ghost), (t, a) => (s(), n("g", null, [
|
|
783
|
+
Y(t) && y.value.dataLabels.show ? (s(), n("path", {
|
|
784
784
|
key: 0,
|
|
785
|
-
d: `M ${r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX:
|
|
785
|
+
d: `M ${r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x},${r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y} ${d.value[a].middlePoint.x},${d.value[a].middlePoint.y}`,
|
|
786
786
|
stroke: t.color,
|
|
787
787
|
"stroke-width": "1",
|
|
788
788
|
"stroke-linecap": "round",
|
|
@@ -794,62 +794,62 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
794
794
|
})
|
|
795
795
|
}, null, 12, Nl)) : v("", !0)
|
|
796
796
|
]))), 256)) : v("", !0),
|
|
797
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (s(),
|
|
797
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (s(), n("circle", {
|
|
798
798
|
key: 5,
|
|
799
|
-
cx:
|
|
800
|
-
cy:
|
|
799
|
+
cx: u.value.width / 2,
|
|
800
|
+
cy: u.value.height / 2,
|
|
801
801
|
r: _.value <= 0 ? 10 : _.value,
|
|
802
802
|
fill: e.value.style.chart.backgroundColor,
|
|
803
803
|
filter: `url(#shadow_${m.value})`
|
|
804
804
|
}, null, 8, Yl)) : v("", !0),
|
|
805
|
-
l.$slots.pattern ? (s(),
|
|
806
|
-
(s(!0),
|
|
805
|
+
l.$slots.pattern ? (s(), n("g", Xl, [
|
|
806
|
+
(s(!0), n(p, null, M(Ie.dataset, (t, a) => (s(), n("defs", {
|
|
807
807
|
key: `pattern-${t.patternIndex}`
|
|
808
808
|
}, [
|
|
809
809
|
b(l.$slots, "pattern", it({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${m.value}_${a}` }), void 0, !0)
|
|
810
810
|
]))), 128))
|
|
811
811
|
])) : v("", !0),
|
|
812
|
-
S.value && e.value.type === "classic" ? (s(),
|
|
813
|
-
(s(!0),
|
|
812
|
+
S.value && e.value.type === "classic" ? (s(), n(p, { key: 7 }, [
|
|
813
|
+
(s(!0), n(p, null, M(N.value, (t, a) => (s(), n("path", {
|
|
814
814
|
stroke: e.value.style.chart.backgroundColor,
|
|
815
815
|
d: t.arcSlice,
|
|
816
816
|
fill: "#FFFFFF"
|
|
817
817
|
}, null, 8, Vl))), 256)),
|
|
818
|
-
(s(!0),
|
|
818
|
+
(s(!0), n(p, null, M(N.value, (t, a) => (s(), n("path", {
|
|
819
819
|
class: "vue-ui-donut-arc-path",
|
|
820
820
|
d: t.arcSlice,
|
|
821
821
|
fill: t.color,
|
|
822
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
822
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
823
823
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
824
824
|
filter: ee(a)
|
|
825
825
|
}, null, 8, Dl))), 256)),
|
|
826
|
-
l.$slots.pattern ? (s(),
|
|
827
|
-
(s(!0),
|
|
826
|
+
l.$slots.pattern ? (s(), n("g", Bl, [
|
|
827
|
+
(s(!0), n(p, null, M(N.value, (t, a) => (s(), n("path", {
|
|
828
828
|
class: "vue-ui-donut-arc-path",
|
|
829
829
|
d: t.arcSlice,
|
|
830
830
|
fill: `url(#${t.pattern})`,
|
|
831
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
831
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
832
832
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
833
833
|
filter: ee(a)
|
|
834
834
|
}, null, 8, El))), 256))
|
|
835
835
|
])) : v("", !0)
|
|
836
836
|
], 64)) : v("", !0),
|
|
837
|
-
S.value && e.value.type === "polar" ? (s(),
|
|
838
|
-
|
|
839
|
-
(s(!0),
|
|
840
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
837
|
+
S.value && e.value.type === "polar" ? (s(), n(p, { key: 8 }, [
|
|
838
|
+
A.value.length > 1 ? (s(), n("g", Gl, [
|
|
839
|
+
(s(!0), n(p, null, M(N.value, (t, a) => (s(), n("path", {
|
|
840
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
841
841
|
d: d.value[a].path,
|
|
842
842
|
fill: "#FFFFFF",
|
|
843
843
|
style: k({
|
|
844
844
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
845
845
|
})
|
|
846
846
|
}, null, 12, Rl))), 256)),
|
|
847
|
-
e.value.style.chart.layout.donut.useShadow ? (s(),
|
|
848
|
-
(s(!0),
|
|
847
|
+
e.value.style.chart.layout.donut.useShadow ? (s(), n("g", Wl, [
|
|
848
|
+
(s(!0), n(p, null, M(N.value, (t, a) => (s(), n("path", {
|
|
849
849
|
class: "vue-ui-donut-arc-path",
|
|
850
850
|
d: d.value[a].path,
|
|
851
851
|
fill: "transparent",
|
|
852
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
852
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
853
853
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
854
854
|
filter: `url(#drop_shadow_${m.value})`,
|
|
855
855
|
style: k({
|
|
@@ -857,12 +857,12 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
857
857
|
})
|
|
858
858
|
}, null, 12, Ul))), 256))
|
|
859
859
|
])) : v("", !0),
|
|
860
|
-
l.$slots.pattern ? (s(),
|
|
861
|
-
(s(!0),
|
|
860
|
+
l.$slots.pattern ? (s(), n("g", jl, [
|
|
861
|
+
(s(!0), n(p, null, M(N.value, (t, a) => (s(), n("path", {
|
|
862
862
|
class: "vue-ui-donut-arc-path",
|
|
863
863
|
d: d.value[a].path,
|
|
864
864
|
fill: `url(#${t.pattern})`,
|
|
865
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
865
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
866
866
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
867
867
|
filter: ee(a),
|
|
868
868
|
style: k({
|
|
@@ -870,39 +870,39 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
870
870
|
})
|
|
871
871
|
}, null, 12, Hl))), 256))
|
|
872
872
|
])) : v("", !0),
|
|
873
|
-
(s(!0),
|
|
873
|
+
(s(!0), n(p, null, M(N.value, (t, a) => (s(), n("path", {
|
|
874
874
|
class: "vue-ui-donut-arc-path",
|
|
875
875
|
d: d.value[a].path,
|
|
876
876
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${m.value})` : t.color,
|
|
877
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
877
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
878
878
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
879
879
|
filter: ee(a),
|
|
880
880
|
style: k({
|
|
881
881
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
882
882
|
})
|
|
883
883
|
}, null, 12, ql))), 256))
|
|
884
|
-
])) : (s(),
|
|
885
|
-
l.$slots.pattern ? (s(),
|
|
884
|
+
])) : (s(), n("g", Jl, [
|
|
885
|
+
l.$slots.pattern ? (s(), n("circle", {
|
|
886
886
|
key: 0,
|
|
887
|
-
cx:
|
|
888
|
-
cy:
|
|
887
|
+
cx: u.value.width / 2,
|
|
888
|
+
cy: u.value.height / 2,
|
|
889
889
|
r: _.value,
|
|
890
|
-
fill: `url(#pattern_${m.value}_${
|
|
890
|
+
fill: `url(#pattern_${m.value}_${A.value[0].patternIndex})`,
|
|
891
891
|
stroke: e.value.style.chart.backgroundColor,
|
|
892
892
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
893
893
|
}, null, 8, Kl)) : v("", !0),
|
|
894
894
|
h("circle", {
|
|
895
|
-
cx:
|
|
896
|
-
cy:
|
|
895
|
+
cx: u.value.width / 2,
|
|
896
|
+
cy: u.value.height / 2,
|
|
897
897
|
r: _.value,
|
|
898
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${m.value})` :
|
|
898
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${m.value})` : A.value[0].color,
|
|
899
899
|
stroke: e.value.style.chart.backgroundColor,
|
|
900
900
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
901
901
|
}, null, 8, Ql)
|
|
902
902
|
]))
|
|
903
|
-
], 64)) : (s(),
|
|
904
|
-
e.value.type === "classic" && !Ft.value ? (s(),
|
|
905
|
-
(s(!0),
|
|
903
|
+
], 64)) : (s(), n(p, { key: 9 }, [
|
|
904
|
+
e.value.type === "classic" && !Ft.value ? (s(), n("g", Zl, [
|
|
905
|
+
(s(!0), n(p, null, M(zt.value, (t, a) => (s(), n("path", {
|
|
906
906
|
class: "vue-ui-donut-arc-path",
|
|
907
907
|
d: t.arcSlice,
|
|
908
908
|
fill: t.color,
|
|
@@ -911,27 +911,28 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
911
911
|
}, null, 8, ea))), 256))
|
|
912
912
|
])) : v("", !0),
|
|
913
913
|
h("circle", {
|
|
914
|
-
cx:
|
|
915
|
-
cy:
|
|
914
|
+
cx: u.value.width / 2,
|
|
915
|
+
cy: u.value.height / 2,
|
|
916
916
|
r: _.value <= 0 ? 10 : _.value,
|
|
917
917
|
fill: "transparent",
|
|
918
918
|
stroke: e.value.style.chart.backgroundColor
|
|
919
919
|
}, null, 8, ta)
|
|
920
920
|
], 64)),
|
|
921
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (s(),
|
|
921
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (s(), n("circle", {
|
|
922
922
|
key: 10,
|
|
923
|
-
cx:
|
|
924
|
-
cy:
|
|
923
|
+
cx: u.value.width / 2,
|
|
924
|
+
cy: u.value.height / 2,
|
|
925
925
|
r: (
|
|
926
926
|
/* This might require adjustments */
|
|
927
927
|
_.value <= 0 ? 10 : _.value
|
|
928
928
|
),
|
|
929
929
|
fill: `url(#gradient_${m.value})`
|
|
930
930
|
}, null, 8, la)) : v("", !0),
|
|
931
|
-
S.value ? (s(),
|
|
932
|
-
|
|
933
|
-
(s(!0),
|
|
931
|
+
S.value ? (s(), n(p, { key: 11 }, [
|
|
932
|
+
A.value.length > 1 || e.value.type === "classic" ? (s(), n("g", aa, [
|
|
933
|
+
(s(!0), n(p, null, M(A.value.filter((t) => !t.ghost), (t, a) => (s(), n("path", {
|
|
934
934
|
d: e.value.type === "classic" ? t.arcSlice : d.value[a].path,
|
|
935
|
+
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
935
936
|
fill: O.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
936
937
|
onMouseenter: (i) => q({
|
|
937
938
|
datapoint: t,
|
|
@@ -942,42 +943,42 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
942
943
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
943
944
|
onClick: (i) => K(t, a)
|
|
944
945
|
}, null, 40, oa))), 256))
|
|
945
|
-
])) : (s(),
|
|
946
|
+
])) : (s(), n("g", sa, [
|
|
946
947
|
h("circle", {
|
|
947
|
-
cx:
|
|
948
|
-
cy:
|
|
948
|
+
cx: u.value.width / 2,
|
|
949
|
+
cy: u.value.height / 2,
|
|
949
950
|
r: _.value,
|
|
950
951
|
fill: "transparent",
|
|
951
952
|
onMouseenter: o[0] || (o[0] = (t) => q({
|
|
952
|
-
datapoint:
|
|
953
|
+
datapoint: A.value[0],
|
|
953
954
|
relativeIndex: 0,
|
|
954
|
-
seriesIndex:
|
|
955
|
+
seriesIndex: A.value[0].seriesIndex,
|
|
955
956
|
show: !0
|
|
956
957
|
})),
|
|
957
|
-
onMouseleave: o[1] || (o[1] = (t) => H({ datapoint:
|
|
958
|
-
onClick: o[2] || (o[2] = (t) => K(
|
|
959
|
-
}, null, 40,
|
|
958
|
+
onMouseleave: o[1] || (o[1] = (t) => H({ datapoint: A.value[0], seriesIndex: A.value[0].seriesIndex })),
|
|
959
|
+
onClick: o[2] || (o[2] = (t) => K(A.value[0], l.i))
|
|
960
|
+
}, null, 40, ua)
|
|
960
961
|
]))
|
|
961
962
|
], 64)) : v("", !0),
|
|
962
|
-
e.value.type === "classic" ? (s(),
|
|
963
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (s(),
|
|
963
|
+
e.value.type === "classic" ? (s(), n(p, { key: 12 }, [
|
|
964
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
964
965
|
key: 0,
|
|
965
966
|
"text-anchor": "middle",
|
|
966
|
-
x:
|
|
967
|
-
y:
|
|
967
|
+
x: u.value.width / 2,
|
|
968
|
+
y: u.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,
|
|
968
969
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
969
970
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
970
971
|
style: k(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
971
|
-
},
|
|
972
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (s(),
|
|
972
|
+
}, I(e.value.style.chart.layout.labels.hollow.total.text), 13, na)) : v("", !0),
|
|
973
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (s(), n("text", {
|
|
973
974
|
key: 1,
|
|
974
975
|
"text-anchor": "middle",
|
|
975
|
-
x:
|
|
976
|
-
y:
|
|
976
|
+
x: u.value.width / 2,
|
|
977
|
+
y: u.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,
|
|
977
978
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
978
979
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
979
980
|
style: k(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
980
|
-
},
|
|
981
|
+
}, I(r(V)(
|
|
981
982
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
982
983
|
S.value,
|
|
983
984
|
r(z)({
|
|
@@ -986,24 +987,24 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
986
987
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
987
988
|
})
|
|
988
989
|
)), 13, ra)) : v("", !0),
|
|
989
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (s(),
|
|
990
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
|
|
990
991
|
key: 2,
|
|
991
992
|
"text-anchor": "middle",
|
|
992
|
-
x:
|
|
993
|
-
y:
|
|
993
|
+
x: u.value.width / 2,
|
|
994
|
+
y: u.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,
|
|
994
995
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
995
996
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
996
997
|
style: k(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
997
|
-
},
|
|
998
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (s(),
|
|
998
|
+
}, I(e.value.style.chart.layout.labels.hollow.average.text), 13, ia)) : v("", !0),
|
|
999
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (s(), n("text", {
|
|
999
1000
|
key: 3,
|
|
1000
1001
|
"text-anchor": "middle",
|
|
1001
|
-
x:
|
|
1002
|
-
y:
|
|
1002
|
+
x: u.value.width / 2,
|
|
1003
|
+
y: u.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,
|
|
1003
1004
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1004
1005
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1005
1006
|
style: k(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1006
|
-
},
|
|
1007
|
+
}, I(Z.value || T.value ? "--" : r(V)(
|
|
1007
1008
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1008
1009
|
Qe.value,
|
|
1009
1010
|
r(z)({
|
|
@@ -1014,12 +1015,12 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1014
1015
|
})
|
|
1015
1016
|
)), 13, va)) : v("", !0)
|
|
1016
1017
|
], 64)) : v("", !0),
|
|
1017
|
-
(s(!0),
|
|
1018
|
+
(s(!0), n(p, null, M(N.value.filter((t) => !t.ghost), (t, a) => (s(), n("g", {
|
|
1018
1019
|
filter: ee(a),
|
|
1019
1020
|
class: Ce({ animated: e.value.useCssAnimation })
|
|
1020
1021
|
}, [
|
|
1021
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(),
|
|
1022
|
-
(s(),
|
|
1022
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), n("g", ca, [
|
|
1023
|
+
(s(), n("foreignObject", {
|
|
1023
1024
|
x: r(x)(t, !0).anchor === "end" ? r(x)(t).x - 120 : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - 60 : r(x)(t).x,
|
|
1024
1025
|
y: r(he)(t) - (lt.value ? 20 : 0),
|
|
1025
1026
|
width: "120",
|
|
@@ -1038,9 +1039,9 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1038
1039
|
}), void 0, !0)
|
|
1039
1040
|
])
|
|
1040
1041
|
], 8, ha))
|
|
1041
|
-
])) : (s(),
|
|
1042
|
-
e.value.type === "classic" ? (s(),
|
|
1043
|
-
Y(t) && y.value.dataLabels.show ? (s(),
|
|
1042
|
+
])) : (s(), n("g", ya, [
|
|
1043
|
+
e.value.type === "classic" ? (s(), n(p, { key: 0 }, [
|
|
1044
|
+
Y(t) && y.value.dataLabels.show ? (s(), n("circle", {
|
|
1044
1045
|
key: 0,
|
|
1045
1046
|
cx: r(x)(t).x,
|
|
1046
1047
|
cy: r(he)(t) - 3.5,
|
|
@@ -1059,11 +1060,11 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1059
1060
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1060
1061
|
}, null, 40, fa)) : v("", !0)
|
|
1061
1062
|
], 64)) : v("", !0),
|
|
1062
|
-
e.value.type === "polar" ? (s(),
|
|
1063
|
-
Y(t) && y.value.dataLabels.show ? (s(),
|
|
1063
|
+
e.value.type === "polar" ? (s(), n(p, { key: 1 }, [
|
|
1064
|
+
Y(t) && y.value.dataLabels.show ? (s(), n("circle", {
|
|
1064
1065
|
key: 0,
|
|
1065
|
-
cx: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX:
|
|
1066
|
-
cy: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX:
|
|
1066
|
+
cx: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
1067
|
+
cy: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
1067
1068
|
fill: t.color,
|
|
1068
1069
|
stroke: e.value.style.chart.backgroundColor,
|
|
1069
1070
|
"stroke-width": 1,
|
|
@@ -1082,8 +1083,8 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1082
1083
|
})
|
|
1083
1084
|
}, null, 44, pa)) : v("", !0)
|
|
1084
1085
|
], 64)) : v("", !0),
|
|
1085
|
-
e.value.type === "classic" ? (s(),
|
|
1086
|
-
Y(t) && y.value.dataLabels.show ? (s(),
|
|
1086
|
+
e.value.type === "classic" ? (s(), n(p, { key: 2 }, [
|
|
1087
|
+
Y(t) && y.value.dataLabels.show ? (s(), n("text", {
|
|
1087
1088
|
key: 0,
|
|
1088
1089
|
"text-anchor": r(x)(t, !0, 12).anchor,
|
|
1089
1090
|
x: r(x)(t, !0, 12).x,
|
|
@@ -1099,7 +1100,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1099
1100
|
show: !0
|
|
1100
1101
|
}),
|
|
1101
1102
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1102
|
-
},
|
|
1103
|
+
}, I(ke(t, N.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${r(V)(
|
|
1103
1104
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1104
1105
|
t.value,
|
|
1105
1106
|
r(z)({
|
|
@@ -1110,7 +1111,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1110
1111
|
}),
|
|
1111
1112
|
{ datapoint: t }
|
|
1112
1113
|
)})` : ""), 45, ga)) : v("", !0),
|
|
1113
|
-
Y(t) && y.value.dataLabels.show ? (s(),
|
|
1114
|
+
Y(t) && y.value.dataLabels.show ? (s(), n("text", {
|
|
1114
1115
|
key: 1,
|
|
1115
1116
|
"text-anchor": r(x)(t).anchor,
|
|
1116
1117
|
x: r(x)(t, !0, 12).x,
|
|
@@ -1126,14 +1127,14 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1126
1127
|
show: !0
|
|
1127
1128
|
}),
|
|
1128
1129
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1129
|
-
},
|
|
1130
|
+
}, I(t.name), 45, ma)) : v("", !0)
|
|
1130
1131
|
], 64)) : v("", !0),
|
|
1131
|
-
e.value.type === "polar" ? (s(),
|
|
1132
|
-
Y(t) && y.value.dataLabels.show ? (s(),
|
|
1132
|
+
e.value.type === "polar" ? (s(), n(p, { key: 3 }, [
|
|
1133
|
+
Y(t) && y.value.dataLabels.show ? (s(), n("text", {
|
|
1133
1134
|
key: 0,
|
|
1134
1135
|
"text-anchor": se(d.value[a].middlePoint),
|
|
1135
|
-
x: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX:
|
|
1136
|
-
y: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX:
|
|
1136
|
+
x: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
1137
|
+
y: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
1137
1138
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1138
1139
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1139
1140
|
style: k({
|
|
@@ -1148,7 +1149,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1148
1149
|
show: !0
|
|
1149
1150
|
}),
|
|
1150
1151
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1151
|
-
},
|
|
1152
|
+
}, I(ke(t, N.value)) + " " + I(e.value.style.chart.layout.labels.value.show ? `(${r(V)(
|
|
1152
1153
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1153
1154
|
t.value,
|
|
1154
1155
|
r(z)({
|
|
@@ -1159,11 +1160,11 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1159
1160
|
}),
|
|
1160
1161
|
{ datapoint: t }
|
|
1161
1162
|
)})` : ""), 45, ba)) : v("", !0),
|
|
1162
|
-
Y(t) && y.value.dataLabels.show ? (s(),
|
|
1163
|
+
Y(t) && y.value.dataLabels.show ? (s(), n("text", {
|
|
1163
1164
|
key: 1,
|
|
1164
1165
|
"text-anchor": se(d.value[a].middlePoint),
|
|
1165
|
-
x: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX:
|
|
1166
|
-
y: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX:
|
|
1166
|
+
x: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
1167
|
+
y: r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
1167
1168
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1168
1169
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
1169
1170
|
style: k({
|
|
@@ -1178,11 +1179,11 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1178
1179
|
show: !0
|
|
1179
1180
|
}),
|
|
1180
1181
|
onMouseleave: (i) => H({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1181
|
-
},
|
|
1182
|
+
}, I(t.name), 45, wa)) : v("", !0)
|
|
1182
1183
|
], 64)) : v("", !0)
|
|
1183
1184
|
])),
|
|
1184
|
-
y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (s(),
|
|
1185
|
-
Y(t) && e.value.type === "classic" ? (s(),
|
|
1185
|
+
y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (s(), n("g", ka, [
|
|
1186
|
+
Y(t) && e.value.type === "classic" ? (s(), n("foreignObject", {
|
|
1186
1187
|
key: 0,
|
|
1187
1188
|
x: e.value.style.chart.comments.offsetX + (r(x)(t, !0).anchor === "end" ? r(x)(t).x - e.value.style.chart.comments.width : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - e.value.style.chart.comments.width / 2 : r(x)(t).x),
|
|
1188
1189
|
y: r(he)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
@@ -1196,9 +1197,9 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1196
1197
|
}, void 0, !0)
|
|
1197
1198
|
])
|
|
1198
1199
|
], 8, xa)) : v("", !0),
|
|
1199
|
-
Y(t) && e.value.type === "polar" ? (s(),
|
|
1200
|
+
Y(t) && e.value.type === "polar" ? (s(), n("foreignObject", {
|
|
1200
1201
|
key: 1,
|
|
1201
|
-
x: e.value.style.chart.comments.offsetX + (se(d.value[a].middlePoint) === "end" ? r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX:
|
|
1202
|
+
x: e.value.style.chart.comments.offsetX + (se(d.value[a].middlePoint) === "end" ? r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : se(d.value[a].middlePoint) === "middle" ? r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(L)({ initX: d.value[a].middlePoint.x, initY: d.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
|
|
1202
1203
|
y: Ot(d.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1203
1204
|
width: e.value.style.chart.comments.width,
|
|
1204
1205
|
height: "200",
|
|
@@ -1216,11 +1217,11 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1216
1217
|
], 12, _a)) : v("", !0)
|
|
1217
1218
|
])) : v("", !0)
|
|
1218
1219
|
], 10, da))), 256)),
|
|
1219
|
-
b(l.$slots, "svg", { svg:
|
|
1220
|
+
b(l.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
1220
1221
|
], 512)
|
|
1221
1222
|
], 14, gl)) : v("", !0),
|
|
1222
|
-
l.$slots.watermark ? (s(),
|
|
1223
|
-
b(l.$slots, "watermark",
|
|
1223
|
+
l.$slots.watermark ? (s(), n("div", $a, [
|
|
1224
|
+
b(l.$slots, "watermark", ne(re({ isPrinting: r(Ge) || r(Re) })), void 0, !0)
|
|
1224
1225
|
])) : v("", !0),
|
|
1225
1226
|
ie.value ? v("", !0) : (s(), le(r(wt), {
|
|
1226
1227
|
key: 6,
|
|
@@ -1249,7 +1250,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1249
1250
|
h("div", {
|
|
1250
1251
|
style: k(`opacity:${D.value.includes(a) ? 0.5 : 1}`),
|
|
1251
1252
|
onClick: (i) => t.segregate()
|
|
1252
|
-
},
|
|
1253
|
+
}, I(t.name) + I(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + I(e.value.style.chart.legend.showValue ? r(V)(
|
|
1253
1254
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1254
1255
|
t.value,
|
|
1255
1256
|
r(z)({
|
|
@@ -1262,7 +1263,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1262
1263
|
datapoint: t,
|
|
1263
1264
|
index: a
|
|
1264
1265
|
}
|
|
1265
|
-
) : "") + " " +
|
|
1266
|
+
) : "") + " " + I(e.value.style.chart.legend.showPercentage ? D.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${Yt(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / S.value) ? "-" : r(V)(
|
|
1266
1267
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1267
1268
|
Ze.value(t),
|
|
1268
1269
|
r(z)({
|
|
@@ -1290,7 +1291,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1290
1291
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1291
1292
|
b(l.$slots, "legend", { legend: Ke.value }, void 0, !0)
|
|
1292
1293
|
], 512),
|
|
1293
|
-
l.$slots.source ? (s(),
|
|
1294
|
+
l.$slots.source ? (s(), n("div", {
|
|
1294
1295
|
key: 7,
|
|
1295
1296
|
ref_key: "source",
|
|
1296
1297
|
ref: Le,
|
|
@@ -1312,13 +1313,13 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1312
1313
|
parent: U.value,
|
|
1313
1314
|
content: be.value,
|
|
1314
1315
|
isCustom: de.value,
|
|
1315
|
-
isFullscreen:
|
|
1316
|
+
isFullscreen: ue.value
|
|
1316
1317
|
}, {
|
|
1317
1318
|
"tooltip-before": P(() => [
|
|
1318
|
-
b(l.$slots, "tooltip-before",
|
|
1319
|
+
b(l.$slots, "tooltip-before", ne(re({ ...xe.value })), void 0, !0)
|
|
1319
1320
|
]),
|
|
1320
1321
|
"tooltip-after": P(() => [
|
|
1321
|
-
b(l.$slots, "tooltip-after",
|
|
1322
|
+
b(l.$slots, "tooltip-after", ne(re({ ...xe.value })), void 0, !0)
|
|
1322
1323
|
]),
|
|
1323
1324
|
_: 3
|
|
1324
1325
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
@@ -1355,7 +1356,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1355
1356
|
}, null, 8, Pa)
|
|
1356
1357
|
]),
|
|
1357
1358
|
td: P(({ td: t }) => [
|
|
1358
|
-
Gt(
|
|
1359
|
+
Gt(I(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(V)(
|
|
1359
1360
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1360
1361
|
t,
|
|
1361
1362
|
r(z)({
|
|
@@ -1381,7 +1382,7 @@ const pl = ["id"], gl = ["xmlns", "viewBox"], ml = ["width", "height"], bl = { k
|
|
|
1381
1382
|
}, 8, ["config"])) : v("", !0)
|
|
1382
1383
|
], 46, pl));
|
|
1383
1384
|
}
|
|
1384
|
-
}, Da = /* @__PURE__ */ fl(Ta, [["__scopeId", "data-v-
|
|
1385
|
+
}, Da = /* @__PURE__ */ fl(Ta, [["__scopeId", "data-v-f9d406d9"]]);
|
|
1385
1386
|
export {
|
|
1386
1387
|
Da as default
|
|
1387
1388
|
};
|