vue-data-ui 3.4.9 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineAsyncComponent as ee, useSlots as
|
|
2
|
-
import { o as Lt, f as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as ee, useSlots as $l, computed as y, shallowRef as H, ref as g, onMounted as Tt, onBeforeUnmount as Pt, toRefs as Cl, watch as fe, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as We, createBlock as te, createCommentVNode as v, renderSlot as b, createElementVNode as h, createVNode as Te, unref as u, createSlots as qe, withCtx as C, normalizeProps as ue, guardReactiveProps as re, Fragment as w, renderList as I, mergeProps as He, toDisplayString as R, withDirectives as Ft, createTextVNode as Pe, vShow as It, Teleport as Al, resolveDynamicComponent as Sl, nextTick as Tl } from "vue";
|
|
2
|
+
import { o as Lt, f as je, g as Pl, c as Fl, t as Il, e as Ll, x as Ml, h as Mt, p as ie, a as G, d as N, T as zt, Z as zl, X as Ol, s as Fe, i as Dl, V as Nl, _ as P, W as ge, Y as x, $ as Ot, l as Yl, b as Xl, O as Qe, P as Bl, Q as Vl, G as El, a0 as Dt } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as Rl, u as Gl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ul, a as Nt } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
+
import { u as Wl } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
+
import { u as ql, B as Hl } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as jl } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Ql } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Zl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import Jl from "./img-BecE5qXd.js";
|
|
11
|
+
import { _ as Kl } from "./Shape-CNXKB8O0.js";
|
|
12
|
+
import ea from "./Title-l36lOBMx.js";
|
|
13
|
+
import { t as ta } from "./themes-AUNCOb2G.js";
|
|
14
|
+
import la from "./Legend-G6GMcdAc.js";
|
|
15
|
+
import { _ as aa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const oa = ["id"], sa = ["id"], na = ["xmlns", "viewBox"], ua = ["width", "height"], ra = { key: 1 }, ia = ["id"], va = ["stop-color"], da = ["offset", "stop-color"], ca = ["offset", "stop-color"], ha = ["stop-color"], ya = { key: 2 }, fa = ["id", "cx", "cy"], ga = ["stop-color", "stop-opacity"], pa = ["stop-color"], ma = ["id"], ba = ["id"], wa = ["id"], ka = ["flood-color"], xa = ["id"], _a = ["flood-color"], $a = ["d", "stroke", "filter"], Ca = ["d", "stroke", "filter"], Aa = ["cx", "cy", "r", "fill", "filter"], Sa = { key: 6 }, Ta = ["stroke", "d"], Pa = ["d", "fill", "stroke", "stroke-width", "filter"], Fa = { key: 0 }, Ia = ["d", "fill", "stroke", "stroke-width", "filter"], La = { key: 0 }, Ma = ["stroke", "d"], za = { key: 0 }, Oa = ["d", "stroke", "stroke-width", "filter"], Da = { key: 1 }, Na = ["d", "fill", "stroke", "stroke-width", "filter"], Ya = ["d", "fill", "stroke", "stroke-width", "filter"], Xa = { key: 1 }, Ba = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ea = { key: 0 }, Ra = ["d", "fill", "stroke", "stroke-width"], Ga = ["cx", "cy", "r", "stroke"], Ua = ["cx", "cy", "r", "fill"], Wa = ["cx", "cy", "r"], qa = { key: 0 }, Ha = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], ja = { key: 1 }, Qa = ["cx", "cy", "r"], Za = ["x", "y", "fill", "font-size"], Ja = ["x", "y", "fill", "font-size"], Ka = ["x", "y", "fill", "font-size"], eo = ["x", "y", "fill", "font-size"], to = ["filter"], lo = { key: 0 }, ao = ["x", "y"], oo = { key: 1 }, so = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], no = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], uo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], ro = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], io = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], vo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "innerHTML"], co = { key: 2 }, ho = ["x", "y", "width"], yo = ["x", "y", "width"], fo = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, go = ["id"], po = ["onClick"], mo = {
|
|
20
20
|
key: 7,
|
|
21
21
|
class: "vue-ui-donut-hollow"
|
|
22
|
-
},
|
|
22
|
+
}, bo = ["innerHTML"], wo = {
|
|
23
23
|
__name: "vue-ui-donut",
|
|
24
24
|
props: {
|
|
25
25
|
config: {
|
|
@@ -36,15 +36,15 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectLegend", "selectDatapoint"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
39
|
+
setup(Ze, { expose: Yt, emit: Xt }) {
|
|
40
|
+
const Bt = ee(() => import("./Tooltip-oWCO1HKy.js")), Vt = ee(() => import("./BaseIcon-BmMbm4d0.js")), Et = ee(() => import("./vue-ui-accordion-CZ0thhxa.js")), Rt = ee(() => import("./DataTable-BT7VF2ua.js")), Gt = ee(() => import("./PenAndPaper-DSvu9dwa.js")), Ut = ee(() => import("./UserOptions-CGnQt6Fd.js")), Wt = ee(() => import("./PackageVersion-Cyx_s25h.js")), qt = ee(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_donut: Ht } = Ul(), jt = $l(), k = Ze, we = y({
|
|
41
41
|
get() {
|
|
42
42
|
return !!k.dataset && k.dataset.length;
|
|
43
43
|
},
|
|
44
44
|
set(t) {
|
|
45
45
|
return t;
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), Y = H(null), ke = g(null), Qt = g(null), Zt = g(null), Je = H(null), Ke = H(null), j = H(null), ve = H(null), et = H(null), tt = H(null), lt = g(0), at = g(0), ot = g(0), st = g(!1), pe = g(null), Ie = g(null), xe = y({
|
|
48
48
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
49
49
|
set: (t) => t
|
|
50
50
|
}), Q = y({
|
|
@@ -52,12 +52,12 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
52
52
|
set: (t) => t
|
|
53
53
|
});
|
|
54
54
|
let Le = !1;
|
|
55
|
-
const
|
|
55
|
+
const U = () => {
|
|
56
56
|
!e.value.autoSize || Le || (Le = !0, requestAnimationFrame(() => {
|
|
57
57
|
Le = !1;
|
|
58
|
-
const t = e.value,
|
|
59
|
-
if (!t.autoSize || !
|
|
60
|
-
const [
|
|
58
|
+
const t = e.value, a = ke.value, l = le.value;
|
|
59
|
+
if (!t.autoSize || !a || !l) return;
|
|
60
|
+
const [o, i, c, m] = l.getAttribute("viewBox").split(" ").map(Number), A = { x: o, y: i, width: c, height: m }, O = [
|
|
61
61
|
{
|
|
62
62
|
selector: ".vue-data-ui-datalabel-value",
|
|
63
63
|
baseSize: t.style.chart.layout.labels.percentage.fontSize,
|
|
@@ -71,105 +71,105 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
71
71
|
sizeRef: Q
|
|
72
72
|
}
|
|
73
73
|
];
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
el:
|
|
74
|
+
O.map((E) => a.querySelectorAll(E.selector).length).reduce((E, K) => E + K, 0) !== 0 && O.forEach(({ selector: E, baseSize: K, minSize: Ue, sizeRef: kl }) => {
|
|
75
|
+
a.querySelectorAll(E).forEach((xl) => {
|
|
76
|
+
const _l = Yl({
|
|
77
|
+
el: xl,
|
|
78
78
|
bounds: A,
|
|
79
79
|
currentFontSize: K,
|
|
80
|
-
minFontSize:
|
|
80
|
+
minFontSize: Ue,
|
|
81
81
|
attempts: 200,
|
|
82
82
|
padding: 1
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
kl.value = _l;
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
87
|
}));
|
|
88
88
|
};
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
Tt(async () => {
|
|
90
|
+
st.value = !0, nt(), requestAnimationFrame(U);
|
|
91
91
|
});
|
|
92
|
-
let
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
for (const
|
|
96
|
-
const { width: l, height:
|
|
97
|
-
if (l > 0 &&
|
|
98
|
-
|
|
92
|
+
let Me;
|
|
93
|
+
Tt(() => {
|
|
94
|
+
Y.value && (Me = new ResizeObserver((t) => {
|
|
95
|
+
for (const a of t) {
|
|
96
|
+
const { width: l, height: o } = a.contentRect;
|
|
97
|
+
if (l > 0 && o > 0) {
|
|
98
|
+
U();
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
}),
|
|
103
|
-
}),
|
|
104
|
-
|
|
105
|
-
}),
|
|
102
|
+
}), Me.observe(Y.value.parentElement));
|
|
103
|
+
}), Pt(() => {
|
|
104
|
+
Me?.disconnect();
|
|
105
|
+
}), Pt(() => {
|
|
106
106
|
j.value && (ve.value && j.value.unobserve(ve.value), j.value.disconnect());
|
|
107
107
|
});
|
|
108
|
-
const
|
|
109
|
-
function
|
|
110
|
-
if (Lt(k.dataset) ? (
|
|
108
|
+
const ze = y(() => !!e.value.debug);
|
|
109
|
+
function nt() {
|
|
110
|
+
if (Lt(k.dataset) ? (je({
|
|
111
111
|
componentName: "VueUiDonut",
|
|
112
112
|
type: "dataset",
|
|
113
|
-
debug:
|
|
114
|
-
}), we.value = !1, $e.value = !0) : (k.dataset.forEach((t,
|
|
115
|
-
|
|
113
|
+
debug: ze.value
|
|
114
|
+
}), we.value = !1, $e.value = !0) : (k.dataset.forEach((t, a) => {
|
|
115
|
+
Pl({
|
|
116
116
|
datasetObject: t,
|
|
117
117
|
requiredAttributes: ["name", "values"]
|
|
118
118
|
}).forEach((l) => {
|
|
119
|
-
|
|
119
|
+
je({
|
|
120
120
|
componentName: "VueUiDonut",
|
|
121
121
|
type: "datasetSerieAttribute",
|
|
122
122
|
property: l,
|
|
123
|
-
index:
|
|
124
|
-
debug:
|
|
123
|
+
index: a,
|
|
124
|
+
debug: ze.value
|
|
125
125
|
}), we.value = !1, $e.value = !0;
|
|
126
126
|
});
|
|
127
|
-
}), k.dataset.forEach((t,
|
|
128
|
-
(!t.name || t.name === "") &&
|
|
127
|
+
}), k.dataset.forEach((t, a) => {
|
|
128
|
+
(!t.name || t.name === "") && je({
|
|
129
129
|
componentName: "VueUiDonut",
|
|
130
130
|
type: "datasetAttributeEmpty",
|
|
131
131
|
property: "name",
|
|
132
|
-
index:
|
|
133
|
-
debug:
|
|
132
|
+
index: a,
|
|
133
|
+
debug: ze.value
|
|
134
134
|
});
|
|
135
135
|
})), Lt(k.dataset) || ($e.value = e.value.loading), e.value.responsive) {
|
|
136
|
-
const t =
|
|
137
|
-
const { width:
|
|
138
|
-
chart:
|
|
139
|
-
title: e.value.style.chart.title.text ?
|
|
140
|
-
legend: e.value.style.chart.legend.show ?
|
|
141
|
-
source:
|
|
142
|
-
noTitle:
|
|
143
|
-
padding: e.value.autoSize ? void 0 :
|
|
136
|
+
const t = Rl(() => {
|
|
137
|
+
const { width: a, height: l } = Gl({
|
|
138
|
+
chart: Y.value,
|
|
139
|
+
title: e.value.style.chart.title.text ? Je.value : null,
|
|
140
|
+
legend: e.value.style.chart.legend.show ? Ke.value : null,
|
|
141
|
+
source: et.value,
|
|
142
|
+
noTitle: tt.value,
|
|
143
|
+
padding: e.value.autoSize ? void 0 : dt.value
|
|
144
144
|
});
|
|
145
145
|
requestAnimationFrame(() => {
|
|
146
|
-
s.value.width =
|
|
146
|
+
s.value.width = a, s.value.height = l, U();
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
j.value && (ve.value && j.value.unobserve(ve.value), j.value.disconnect()), j.value = new ResizeObserver(t), ve.value =
|
|
149
|
+
j.value && (ve.value && j.value.unobserve(ve.value), j.value.disconnect()), j.value = new ResizeObserver(t), ve.value = Y.value.parentNode, j.value.observe(ve.value);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
const f = g(
|
|
152
|
+
const f = g(Fl());
|
|
153
153
|
g(null);
|
|
154
|
-
const
|
|
155
|
-
function
|
|
156
|
-
const t =
|
|
154
|
+
const Oe = g(!1), De = g(""), X = g(null), ut = g(0);
|
|
155
|
+
function Ne() {
|
|
156
|
+
const t = Nt({
|
|
157
157
|
userConfig: k.config,
|
|
158
|
-
defaultConfig:
|
|
158
|
+
defaultConfig: Ht
|
|
159
159
|
});
|
|
160
|
-
let
|
|
161
|
-
return t.theme ?
|
|
162
|
-
...
|
|
163
|
-
userConfig:
|
|
160
|
+
let a = {};
|
|
161
|
+
return t.theme ? a = {
|
|
162
|
+
...Nt({
|
|
163
|
+
userConfig: ta.vue_ui_donut[t.theme] || k.config,
|
|
164
164
|
defaultConfig: t
|
|
165
165
|
}),
|
|
166
|
-
customPalette:
|
|
167
|
-
} :
|
|
166
|
+
customPalette: Xl[t.theme] || ie
|
|
167
|
+
} : a = t, k.config && Qe(k.config, "events.datapointEnter") ? a.events.datapointEnter = k.config.events.datapointEnter : a.events.datapointEnter = null, k.config && Qe(k.config, "events.datapointLeave") ? a.events.datapointLeave = k.config.events.datapointLeave : a.events.datapointLeave = null, k.config && Qe(k.config, "events.datapointClick") ? a.events.datapointClick = k.config.events.datapointClick : a.events.datapointClick = null, a;
|
|
168
168
|
}
|
|
169
|
-
const e = g(
|
|
170
|
-
...
|
|
169
|
+
const e = g(Ne()), { loading: _e, FINAL_DATASET: de, manualLoading: $e, skeletonDataset: Jt } = ql({
|
|
170
|
+
...Cl(k),
|
|
171
171
|
FINAL_CONFIG: e,
|
|
172
|
-
prepareConfig:
|
|
172
|
+
prepareConfig: Ne,
|
|
173
173
|
skeletonDataset: [
|
|
174
174
|
{
|
|
175
175
|
name: "",
|
|
@@ -187,7 +187,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
187
187
|
color: "#CACACA"
|
|
188
188
|
}
|
|
189
189
|
],
|
|
190
|
-
skeletonConfig:
|
|
190
|
+
skeletonConfig: Il({
|
|
191
191
|
defaultConfig: e.value,
|
|
192
192
|
userConfig: {
|
|
193
193
|
useCssAnimation: !1,
|
|
@@ -225,36 +225,36 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
225
225
|
}
|
|
226
226
|
})
|
|
227
227
|
}), S = g(!0), W = H([]);
|
|
228
|
-
function
|
|
229
|
-
return new Promise((
|
|
228
|
+
function Kt(t, a = 1e3, l = 50) {
|
|
229
|
+
return new Promise((o) => {
|
|
230
230
|
const i = t.length;
|
|
231
231
|
W.value = Array(i).fill(0);
|
|
232
232
|
let c = 0;
|
|
233
233
|
t.forEach((m, A) => {
|
|
234
234
|
setTimeout(() => {
|
|
235
|
-
const
|
|
236
|
-
function
|
|
237
|
-
const K = Math.min((
|
|
238
|
-
W.value[A] = m *
|
|
235
|
+
const O = performance.now();
|
|
236
|
+
function D(E) {
|
|
237
|
+
const K = Math.min((E - O) / a, 1), Ue = Dt(K);
|
|
238
|
+
W.value[A] = m * Ue, W.value = [...W.value], K < 1 ? (requestAnimationFrame(D), requestAnimationFrame(U)) : (W.value[A] = m, W.value = [...W.value], c += 1, c === i && o(), requestAnimationFrame(U));
|
|
239
239
|
}
|
|
240
|
-
requestAnimationFrame(
|
|
240
|
+
requestAnimationFrame(D);
|
|
241
241
|
}, A * l);
|
|
242
242
|
});
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const rt = g(!1);
|
|
246
246
|
fe(
|
|
247
247
|
() => _e.value,
|
|
248
248
|
async (t) => {
|
|
249
|
-
if (t ||
|
|
250
|
-
const
|
|
251
|
-
if (!
|
|
252
|
-
|
|
253
|
-
const
|
|
249
|
+
if (t || rt.value) return;
|
|
250
|
+
const a = de.value === Jt, l = e.value.startAnimation?.show;
|
|
251
|
+
if (!a && l) {
|
|
252
|
+
rt.value = !0;
|
|
253
|
+
const o = de.value.map(
|
|
254
254
|
(i) => i.values.reduce((c, m) => c + m, 0)
|
|
255
255
|
);
|
|
256
|
-
await
|
|
257
|
-
|
|
256
|
+
await Kt(
|
|
257
|
+
o,
|
|
258
258
|
e.value.startAnimation.durationMs,
|
|
259
259
|
e.value.startAnimation.staggerMs
|
|
260
260
|
);
|
|
@@ -263,30 +263,30 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
263
263
|
},
|
|
264
264
|
{ immediate: !0 }
|
|
265
265
|
);
|
|
266
|
-
const { userOptionsVisible:
|
|
267
|
-
function Kt() {
|
|
268
|
-
rt(!0);
|
|
269
|
-
}
|
|
266
|
+
const { userOptionsVisible: Ye, setUserOptionsVisibility: it, keepUserOptionState: vt } = Ql({ config: e.value }), { svgRef: le } = Zl({ config: e.value.style.chart.title });
|
|
270
267
|
function el() {
|
|
271
|
-
|
|
268
|
+
it(!0);
|
|
269
|
+
}
|
|
270
|
+
function tl() {
|
|
271
|
+
it(!1);
|
|
272
272
|
}
|
|
273
273
|
fe(() => k.config, (t) => {
|
|
274
|
-
_e.value || (e.value =
|
|
274
|
+
_e.value || (e.value = Ne()), Ye.value = !e.value.userOptions.showOnChartHover, nt(), lt.value += 1, at.value += 1, ot.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, s.value.height = e.value.style.chart.height, s.value.width = e.value.style.chart.width;
|
|
275
275
|
}, { deep: !0 });
|
|
276
|
-
const
|
|
277
|
-
const { top: t, right:
|
|
276
|
+
const dt = y(() => {
|
|
277
|
+
const { top: t, right: a, bottom: l, left: o } = e.value.style.chart.padding;
|
|
278
278
|
return {
|
|
279
|
-
css: `padding:${t}px ${
|
|
279
|
+
css: `padding:${t}px ${a}px ${l}px ${o}px`,
|
|
280
280
|
top: t,
|
|
281
|
-
right:
|
|
281
|
+
right: a,
|
|
282
282
|
bottom: l,
|
|
283
|
-
left:
|
|
283
|
+
left: o
|
|
284
284
|
};
|
|
285
|
-
}), { isPrinting:
|
|
285
|
+
}), { isPrinting: ct, isImaging: ht, generatePdf: yt, generateImage: ft } = Wl({
|
|
286
286
|
elementId: `donut__${f.value}`,
|
|
287
287
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
288
288
|
options: e.value.userOptions.print
|
|
289
|
-
}),
|
|
289
|
+
}), ll = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), gt = y(() => Ll(e.value.customPalette)), p = g({
|
|
290
290
|
dataLabels: {
|
|
291
291
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
292
292
|
},
|
|
@@ -308,147 +308,161 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
308
308
|
}), ae = y(() => {
|
|
309
309
|
if (e.value.pie)
|
|
310
310
|
return _.value;
|
|
311
|
-
const t = e.value.style.chart.layout.donut.strokeWidth / 512,
|
|
311
|
+
const t = e.value.style.chart.layout.donut.strokeWidth / 512, a = Math.min(s.value.width, s.value.height) * t, l = a > _.value ? _.value : a;
|
|
312
312
|
return Math.max(l, 12 * (1 + t));
|
|
313
|
-
}),
|
|
313
|
+
}), pt = Xt, L = y(() => de.value.map((t, a) => ({
|
|
314
314
|
name: t.name,
|
|
315
|
-
color:
|
|
316
|
-
value:
|
|
315
|
+
color: Mt(t.color) || gt.value[a] || ie[a] || ie[a % ie.length],
|
|
316
|
+
value: Ml(t.values.reduce((l, o) => l + o, 0)),
|
|
317
317
|
absoluteValues: t.values,
|
|
318
318
|
comment: t.comment || "",
|
|
319
|
-
patternIndex:
|
|
320
|
-
seriesIndex:
|
|
319
|
+
patternIndex: a,
|
|
320
|
+
seriesIndex: a,
|
|
321
321
|
ghost: !1,
|
|
322
|
-
pattern: `pattern_${f.value}_${
|
|
322
|
+
pattern: `pattern_${f.value}_${a}`
|
|
323
323
|
})));
|
|
324
324
|
fe(() => k.dataset, (t) => {
|
|
325
325
|
Array.isArray(t) && t.length > 0 && ($e.value = !1);
|
|
326
326
|
}, { immediate: !0 });
|
|
327
|
-
const
|
|
328
|
-
fe(() =>
|
|
329
|
-
|
|
327
|
+
const M = H(L.value);
|
|
328
|
+
fe(() => L.value, (t) => {
|
|
329
|
+
M.value = t, requestAnimationFrame(U);
|
|
330
330
|
});
|
|
331
|
-
function
|
|
332
|
-
return
|
|
331
|
+
function al() {
|
|
332
|
+
return L.value.map((t) => ({
|
|
333
333
|
name: t.name,
|
|
334
334
|
color: t.color,
|
|
335
335
|
value: t.value
|
|
336
336
|
}));
|
|
337
337
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
338
|
+
const z = g([]), oe = g(!1);
|
|
339
|
+
function mt({ from: t, to: a, duration: l, onUpdate: o, onDone: i, easing: c = Dt }) {
|
|
340
340
|
const m = performance.now();
|
|
341
|
-
function A(
|
|
342
|
-
const
|
|
343
|
-
|
|
341
|
+
function A(O) {
|
|
342
|
+
const D = Math.min((O - m) / l, 1), E = c(D), K = t + (a - t) * E;
|
|
343
|
+
o(K, D), D < 1 ? requestAnimationFrame(A) : (o(a, 1), i && i());
|
|
344
344
|
}
|
|
345
345
|
requestAnimationFrame(A);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
const
|
|
349
|
-
let
|
|
350
|
-
if (
|
|
347
|
+
function Ce(t) {
|
|
348
|
+
const a = L.value.find((i, c) => c === t);
|
|
349
|
+
let o = M.value.find((i, c) => c === t).value;
|
|
350
|
+
if (z.value.includes(t)) {
|
|
351
351
|
let c = function() {
|
|
352
|
-
|
|
353
|
-
(A,
|
|
352
|
+
M.value = M.value.map(
|
|
353
|
+
(A, O) => t === O ? { ...A, value: i } : A
|
|
354
354
|
);
|
|
355
355
|
}, m = function() {
|
|
356
|
-
oe.value = !0,
|
|
357
|
-
from:
|
|
356
|
+
oe.value = !0, mt({
|
|
357
|
+
from: o,
|
|
358
358
|
to: i,
|
|
359
359
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
360
|
-
onUpdate: (A,
|
|
361
|
-
|
|
362
|
-
(
|
|
363
|
-
), requestAnimationFrame(
|
|
360
|
+
onUpdate: (A, O) => {
|
|
361
|
+
M.value = M.value.map(
|
|
362
|
+
(D, E) => t === E ? { ...D, value: A } : D
|
|
363
|
+
), requestAnimationFrame(U);
|
|
364
364
|
},
|
|
365
365
|
onDone: () => {
|
|
366
366
|
c(), oe.value = !1;
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
369
|
};
|
|
370
|
-
|
|
371
|
-
const i =
|
|
372
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(
|
|
373
|
-
} else if (
|
|
370
|
+
z.value = z.value.filter((A) => A !== t);
|
|
371
|
+
const i = a.value;
|
|
372
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? m() : (c(), requestAnimationFrame(U));
|
|
373
|
+
} else if (z.value.length < L.value.length - 1) {
|
|
374
374
|
let i = function() {
|
|
375
|
-
|
|
375
|
+
z.value.push(t), M.value = M.value.map(
|
|
376
376
|
(m, A) => t === A ? { ...m, value: 0 } : m
|
|
377
377
|
);
|
|
378
378
|
}, c = function() {
|
|
379
|
-
oe.value = !0,
|
|
380
|
-
from:
|
|
379
|
+
oe.value = !0, mt({
|
|
380
|
+
from: o,
|
|
381
381
|
to: 0,
|
|
382
382
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
383
383
|
onUpdate: (m, A) => {
|
|
384
|
-
|
|
385
|
-
(
|
|
386
|
-
), requestAnimationFrame(
|
|
384
|
+
M.value = M.value.map(
|
|
385
|
+
(O, D) => t === D ? { ...O, value: m } : O
|
|
386
|
+
), requestAnimationFrame(U);
|
|
387
387
|
},
|
|
388
388
|
onDone: () => {
|
|
389
|
-
i(), requestAnimationFrame(
|
|
389
|
+
i(), requestAnimationFrame(U), oe.value = !1;
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
};
|
|
393
393
|
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : i();
|
|
394
394
|
}
|
|
395
|
-
|
|
395
|
+
pt("selectLegend", q.value.map((i) => ({
|
|
396
396
|
name: i.name,
|
|
397
397
|
color: i.color,
|
|
398
398
|
value: i.value
|
|
399
399
|
})));
|
|
400
400
|
}
|
|
401
|
-
|
|
401
|
+
function bt(t) {
|
|
402
|
+
if (!L.value.length)
|
|
403
|
+
return e.value.debug && console.warn("VueUiDonut - There are no series to show."), null;
|
|
404
|
+
const a = L.value.find((l) => l.name === t);
|
|
405
|
+
return a || (e.value.debug && console.warn(`VueUiDonut - Series name not found "${t}"`), null);
|
|
406
|
+
}
|
|
407
|
+
function ol(t) {
|
|
408
|
+
const a = bt(t);
|
|
409
|
+
a !== null && z.value.includes(a.seriesIndex) && Ce(a.seriesIndex);
|
|
410
|
+
}
|
|
411
|
+
function sl(t) {
|
|
412
|
+
const a = bt(t);
|
|
413
|
+
a !== null && (z.value.includes(a.seriesIndex) || Ce(a.seriesIndex));
|
|
414
|
+
}
|
|
415
|
+
const nl = y(() => de.value.reduce((t, a) => t + a.values.reduce((l, o) => l + o, 0), 0)), q = y(() => {
|
|
402
416
|
if (S.value && !_e.value) {
|
|
403
|
-
const t = W.value.map((l,
|
|
404
|
-
...
|
|
417
|
+
const t = W.value.map((l, o) => ({
|
|
418
|
+
...L.value[o],
|
|
405
419
|
value: l,
|
|
406
|
-
color:
|
|
420
|
+
color: L.value[o].color,
|
|
407
421
|
ghost: !1
|
|
408
|
-
})),
|
|
409
|
-
return
|
|
422
|
+
})), a = nl.value - W.value.reduce((l, o) => l + o, 0);
|
|
423
|
+
return a > 0 && t.push({
|
|
410
424
|
name: "__ghost__",
|
|
411
|
-
value:
|
|
425
|
+
value: a,
|
|
412
426
|
color: "transparent",
|
|
413
427
|
ghost: !0
|
|
414
428
|
}), t;
|
|
415
429
|
} else
|
|
416
|
-
return
|
|
430
|
+
return M.value.forEach((t, a) => {
|
|
417
431
|
if ([null, void 0].includes(t.values))
|
|
418
432
|
return {
|
|
419
433
|
...t,
|
|
420
434
|
values: []
|
|
421
435
|
};
|
|
422
|
-
}),
|
|
436
|
+
}), M.value.map((t, a) => ({
|
|
423
437
|
...t,
|
|
424
|
-
seriesIndex:
|
|
425
|
-
})).filter((t,
|
|
426
|
-
}),
|
|
427
|
-
const l = (t.values || []).reduce((i, c) => i + c, 0),
|
|
438
|
+
seriesIndex: a
|
|
439
|
+
})).filter((t, a) => !z.value.includes(a));
|
|
440
|
+
}), Xe = y(() => de.value.map((t, a) => {
|
|
441
|
+
const l = (t.values || []).reduce((i, c) => i + c, 0), o = l / de.value.map((i) => (i.values || []).reduce((c, m) => c + m, 0)).reduce((i, c) => i + c, 0);
|
|
428
442
|
return {
|
|
429
443
|
name: t.name,
|
|
430
|
-
color:
|
|
444
|
+
color: Mt(t.color) || gt.value[a] || ie[a] || ie[a % ie.length],
|
|
431
445
|
value: l,
|
|
432
446
|
shape: "circle",
|
|
433
|
-
patternIndex:
|
|
434
|
-
proportion:
|
|
447
|
+
patternIndex: a,
|
|
448
|
+
proportion: o
|
|
435
449
|
};
|
|
436
|
-
}).map((t,
|
|
450
|
+
}).map((t, a) => ({
|
|
437
451
|
...t,
|
|
438
|
-
opacity:
|
|
439
|
-
segregate: () => !oe.value &&
|
|
440
|
-
isSegregated:
|
|
441
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ?
|
|
452
|
+
opacity: z.value.includes(a) ? 0.5 : 1,
|
|
453
|
+
segregate: () => !oe.value && Ce(a),
|
|
454
|
+
isSegregated: z.value.includes(a),
|
|
455
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? G(e.value.style.chart.layout.labels.value.formatter, t.value, N({
|
|
442
456
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
443
457
|
v: t.value,
|
|
444
458
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
445
459
|
r: e.value.style.chart.legend.roundingValue
|
|
446
|
-
}), { datapoint: t, index:
|
|
447
|
-
v:
|
|
460
|
+
}), { datapoint: t, index: a }) : ""}${e.value.style.chart.legend.showPercentage ? z.value.includes(a) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${cl(t.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / F.value) ? "-" : G(e.value.style.chart.layout.labels.percentage.formatter, wt(t), N({
|
|
461
|
+
v: wt(t),
|
|
448
462
|
s: "%",
|
|
449
463
|
r: e.value.style.chart.legend.roundingPercentage
|
|
450
464
|
}))}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
451
|
-
}))),
|
|
465
|
+
}))), ul = y(() => ({
|
|
452
466
|
cy: "donut-div-legend",
|
|
453
467
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
454
468
|
color: e.value.style.chart.legend.color,
|
|
@@ -456,9 +470,9 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
456
470
|
paddingBottom: 12,
|
|
457
471
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
458
472
|
})), _ = y(() => {
|
|
459
|
-
const t = e.value.style.chart.layout.donut.radiusRatio,
|
|
473
|
+
const t = e.value.style.chart.layout.donut.radiusRatio, a = Math.max(0.1, Math.min(0.50001, t)), l = Math.min(s.value.width * a, s.value.height * a);
|
|
460
474
|
return Math.max(12, l);
|
|
461
|
-
}), T = y(() =>
|
|
475
|
+
}), T = y(() => zt({ series: q.value }, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ae.value)), rl = y(() => Math.abs(q.value.map((t) => t.value).reduce((t, a) => t + a, 0)) > 0), il = y(() => zt({
|
|
462
476
|
series: [
|
|
463
477
|
{
|
|
464
478
|
value: 1,
|
|
@@ -470,10 +484,10 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
470
484
|
absoluteValues: [1]
|
|
471
485
|
}
|
|
472
486
|
]
|
|
473
|
-
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ae.value)),
|
|
474
|
-
const t = Math.max(...q.value.map((l) => l.value)),
|
|
475
|
-
return
|
|
476
|
-
series:
|
|
487
|
+
}, s.value.width / 2, s.value.height / 2, _.value, _.value, 1.99999, 2, 1, 360, 105.25, ae.value)), B = y(() => T.value.filter((t) => !t.ghost)), d = y(() => {
|
|
488
|
+
const t = Math.max(...q.value.map((l) => l.value)), a = q.value.map((l) => l.value / t);
|
|
489
|
+
return zl({
|
|
490
|
+
series: a,
|
|
477
491
|
center: {
|
|
478
492
|
x: s.value.width / 2,
|
|
479
493
|
y: s.value.height / 2
|
|
@@ -485,18 +499,18 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
485
499
|
function ce(t) {
|
|
486
500
|
return t.x > s.value.width / 2 + 6 ? "start" : t.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
487
501
|
}
|
|
488
|
-
function
|
|
502
|
+
function vl(t) {
|
|
489
503
|
return t.middlePoint.y > s.value.height / 2 ? P({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : P({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
490
504
|
}
|
|
491
|
-
function
|
|
505
|
+
function V(t) {
|
|
492
506
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
493
507
|
}
|
|
494
|
-
function
|
|
495
|
-
const l = t.value /
|
|
496
|
-
return isNaN(l) ? 0 :
|
|
508
|
+
function Be(t, a) {
|
|
509
|
+
const l = t.value / dl(a);
|
|
510
|
+
return isNaN(l) ? 0 : G(
|
|
497
511
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
498
512
|
l * 100,
|
|
499
|
-
|
|
513
|
+
N({
|
|
500
514
|
v: l * 100,
|
|
501
515
|
s: "%",
|
|
502
516
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -504,38 +518,38 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
504
518
|
{ datapoint: t }
|
|
505
519
|
);
|
|
506
520
|
}
|
|
507
|
-
function
|
|
508
|
-
return [...t].map((
|
|
521
|
+
function dl(t) {
|
|
522
|
+
return [...t].map((a) => a.value).reduce((a, l) => a + l, 0);
|
|
509
523
|
}
|
|
510
|
-
const F = y(() => q.value.map((t) => t.value).reduce((t,
|
|
511
|
-
function
|
|
524
|
+
const F = y(() => q.value.map((t) => t.value).reduce((t, a) => t + a, 0)), Ve = y(() => F.value / q.value.length);
|
|
525
|
+
function wt(t) {
|
|
512
526
|
return oe.value ? t.proportion * 100 : t.value / F.value * 100;
|
|
513
527
|
}
|
|
514
|
-
const
|
|
515
|
-
function he({ datapoint: t, seriesIndex:
|
|
516
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
528
|
+
const Ee = g(null), me = g(!1);
|
|
529
|
+
function he({ datapoint: t, seriesIndex: a }) {
|
|
530
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), Oe.value = !1, X.value = null;
|
|
517
531
|
}
|
|
518
|
-
function ye({ datapoint: t, relativeIndex:
|
|
519
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }),
|
|
532
|
+
function ye({ datapoint: t, relativeIndex: a, seriesIndex: l, show: o = !1 }) {
|
|
533
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), Ee.value = { datapoint: t, seriesIndex: l, config: e.value, series: L.value }, Oe.value = o, X.value = a;
|
|
520
534
|
let i = "";
|
|
521
535
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
522
|
-
if (me.value = !1,
|
|
536
|
+
if (me.value = !1, El(c))
|
|
523
537
|
try {
|
|
524
538
|
const m = c({
|
|
525
539
|
seriesIndex: l,
|
|
526
540
|
datapoint: t,
|
|
527
|
-
series:
|
|
541
|
+
series: L.value,
|
|
528
542
|
config: e.value
|
|
529
543
|
});
|
|
530
|
-
typeof m == "string" && (
|
|
544
|
+
typeof m == "string" && (De.value = m, me.value = !0);
|
|
531
545
|
} catch {
|
|
532
546
|
console.warn("Custom format cannot be applied."), me.value = !1;
|
|
533
547
|
}
|
|
534
548
|
if (!me.value) {
|
|
535
|
-
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/>${
|
|
549
|
+
if (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/>${jt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${f.value}_${l})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${G(
|
|
536
550
|
e.value.style.chart.layout.labels.value.formatter,
|
|
537
551
|
t.value,
|
|
538
|
-
|
|
552
|
+
N({
|
|
539
553
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
540
554
|
v: t.value,
|
|
541
555
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -543,53 +557,53 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
543
557
|
}),
|
|
544
558
|
{
|
|
545
559
|
datapoint: t,
|
|
546
|
-
relativeIndex:
|
|
560
|
+
relativeIndex: a,
|
|
547
561
|
seriesIndex: l
|
|
548
562
|
}
|
|
549
563
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
550
|
-
const m =
|
|
564
|
+
const m = G(
|
|
551
565
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
552
566
|
t.proportion * 100,
|
|
553
|
-
|
|
567
|
+
N({
|
|
554
568
|
v: t.proportion * 100,
|
|
555
569
|
s: "%",
|
|
556
570
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
557
571
|
}),
|
|
558
572
|
{
|
|
559
573
|
datapoint: t,
|
|
560
|
-
relativeIndex:
|
|
574
|
+
relativeIndex: a,
|
|
561
575
|
seriesIndex: l
|
|
562
576
|
}
|
|
563
577
|
);
|
|
564
578
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${m})</span></div>` : i += `<b>${m}</b></div>`;
|
|
565
579
|
}
|
|
566
|
-
e.value.style.chart.comments.showInTooltip && t.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`),
|
|
580
|
+
e.value.style.chart.comments.showInTooltip && t.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), De.value = `<div>${i}</div>`;
|
|
567
581
|
}
|
|
568
582
|
}
|
|
569
583
|
function se(t) {
|
|
570
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
584
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(X.value) && X.value !== t ? `url(#blur_${f.value})` : "";
|
|
571
585
|
}
|
|
572
586
|
const Z = y(() => {
|
|
573
587
|
const t = q.value.map((l) => ({
|
|
574
588
|
name: l.name,
|
|
575
589
|
color: l.color
|
|
576
|
-
})),
|
|
577
|
-
return { head: t, body:
|
|
590
|
+
})), a = q.value.map((l) => l.value);
|
|
591
|
+
return { head: t, body: a };
|
|
578
592
|
});
|
|
579
|
-
function
|
|
580
|
-
|
|
581
|
-
const
|
|
593
|
+
function Re(t = null) {
|
|
594
|
+
Tl(() => {
|
|
595
|
+
const a = Z.value.head.map((i, c) => [[
|
|
582
596
|
i.name
|
|
583
|
-
], [Z.value.body[c]], [isNaN(Z.value.body[c] / F.value) ? "-" : Z.value.body[c] / F.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(
|
|
584
|
-
t ? t(
|
|
597
|
+
], [Z.value.body[c]], [isNaN(Z.value.body[c] / F.value) ? "-" : Z.value.body[c] / F.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Bl(l);
|
|
598
|
+
t ? t(o) : Vl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
585
599
|
});
|
|
586
600
|
}
|
|
587
|
-
const
|
|
601
|
+
const Ae = y(() => {
|
|
588
602
|
const t = [
|
|
589
603
|
' <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>',
|
|
590
|
-
|
|
604
|
+
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
591
605
|
"100%"
|
|
592
|
-
],
|
|
606
|
+
], a = Z.value.head.map((i, c) => [
|
|
593
607
|
{
|
|
594
608
|
color: i.color,
|
|
595
609
|
name: i.name || "-"
|
|
@@ -616,54 +630,54 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
616
630
|
e.value.table.columnNames.percentage
|
|
617
631
|
],
|
|
618
632
|
head: t,
|
|
619
|
-
body:
|
|
633
|
+
body: a,
|
|
620
634
|
config: l
|
|
621
635
|
};
|
|
622
636
|
}), ne = g(!1);
|
|
623
|
-
function
|
|
624
|
-
ne.value = t,
|
|
637
|
+
function kt(t) {
|
|
638
|
+
ne.value = t, ut.value += 1;
|
|
625
639
|
}
|
|
626
|
-
const
|
|
627
|
-
function
|
|
628
|
-
return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((
|
|
640
|
+
const xt = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
641
|
+
function cl(t) {
|
|
642
|
+
return t.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((a) => "-").join("");
|
|
629
643
|
}
|
|
630
|
-
function J(t,
|
|
631
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
644
|
+
function J(t, a) {
|
|
645
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex }), pt("selectDatapoint", { datapoint: t, index: a });
|
|
632
646
|
}
|
|
633
|
-
function
|
|
647
|
+
function _t() {
|
|
634
648
|
p.value.showTable = !p.value.showTable;
|
|
635
649
|
}
|
|
636
|
-
function
|
|
650
|
+
function $t() {
|
|
637
651
|
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
638
652
|
}
|
|
639
|
-
function
|
|
653
|
+
function Ct() {
|
|
640
654
|
p.value.showTooltip = !p.value.showTooltip;
|
|
641
655
|
}
|
|
642
|
-
const
|
|
643
|
-
function
|
|
644
|
-
|
|
656
|
+
const Se = g(!1);
|
|
657
|
+
function Ge() {
|
|
658
|
+
Se.value = !Se.value;
|
|
645
659
|
}
|
|
646
|
-
async function
|
|
647
|
-
if (!
|
|
648
|
-
const { width:
|
|
660
|
+
async function hl({ scale: t = 2 } = {}) {
|
|
661
|
+
if (!Y.value) return;
|
|
662
|
+
const { width: a, height: l } = Y.value.getBoundingClientRect(), o = a / l, { imageUri: i, base64: c } = await Jl({ domElement: Y.value, base64: !0, img: !0, scale: t });
|
|
649
663
|
return {
|
|
650
664
|
imageUri: i,
|
|
651
665
|
base64: c,
|
|
652
666
|
title: e.value.style.chart.title.text,
|
|
653
|
-
width:
|
|
667
|
+
width: a,
|
|
654
668
|
height: l,
|
|
655
|
-
aspectRatio:
|
|
669
|
+
aspectRatio: o
|
|
656
670
|
};
|
|
657
671
|
}
|
|
658
|
-
function
|
|
672
|
+
function yl() {
|
|
659
673
|
if (!ke.value) return;
|
|
660
|
-
const { x: t, y:
|
|
661
|
-
le.value && le.value.setAttribute("viewBox", `${t} ${
|
|
674
|
+
const { x: t, y: a, width: l, height: o } = ke.value.getBBox();
|
|
675
|
+
le.value && le.value.setAttribute("viewBox", `${t} ${a} ${l + Math.min(0, t)} ${o + Math.min(0, a)}`);
|
|
662
676
|
}
|
|
663
677
|
const be = y(() => {
|
|
664
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
678
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
665
679
|
return {
|
|
666
|
-
component: t ?
|
|
680
|
+
component: t ? qt : Et,
|
|
667
681
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
668
682
|
props: t ? {
|
|
669
683
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -671,12 +685,12 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
671
685
|
headerColor: e.value.table.th.color,
|
|
672
686
|
headerBg: e.value.table.th.backgroundColor,
|
|
673
687
|
isFullscreen: ne.value,
|
|
674
|
-
fullscreenParent:
|
|
688
|
+
fullscreenParent: Y.value,
|
|
675
689
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
676
690
|
} : {
|
|
677
691
|
hideDetails: !0,
|
|
678
692
|
config: {
|
|
679
|
-
open:
|
|
693
|
+
open: a,
|
|
680
694
|
maxHeight: 1e4,
|
|
681
695
|
body: {
|
|
682
696
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -693,72 +707,74 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
693
707
|
fe(() => p.value.showTable, (t) => {
|
|
694
708
|
e.value.table.show || (t && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
|
|
695
709
|
});
|
|
696
|
-
function
|
|
697
|
-
p.value.showTable = !1,
|
|
710
|
+
function At() {
|
|
711
|
+
p.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
|
|
698
712
|
}
|
|
699
|
-
const
|
|
713
|
+
const fl = y(() => Xe.value.map((t) => ({
|
|
700
714
|
...t,
|
|
701
715
|
name: t.display
|
|
702
|
-
}))),
|
|
716
|
+
}))), gl = y(() => e.value.style.chart.backgroundColor), pl = y(() => e.value.style.chart.legend), ml = y(() => e.value.style.chart.title), { exportSvg: bl, getSvg: wl } = jl({
|
|
703
717
|
svg: le,
|
|
704
|
-
title:
|
|
705
|
-
legend:
|
|
706
|
-
legendItems:
|
|
707
|
-
backgroundColor:
|
|
718
|
+
title: ml,
|
|
719
|
+
legend: pl,
|
|
720
|
+
legendItems: fl,
|
|
721
|
+
backgroundColor: gl
|
|
708
722
|
});
|
|
709
|
-
async function
|
|
723
|
+
async function St({ isCb: t }) {
|
|
710
724
|
if (t) {
|
|
711
|
-
const { blob:
|
|
712
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
725
|
+
const { blob: a, url: l, text: o, dataUrl: i } = await wl();
|
|
726
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: i });
|
|
713
727
|
} else
|
|
714
|
-
|
|
728
|
+
bl();
|
|
715
729
|
}
|
|
716
|
-
return
|
|
717
|
-
autoSize:
|
|
718
|
-
getData:
|
|
719
|
-
getImage:
|
|
720
|
-
generatePdf:
|
|
721
|
-
generateCsv:
|
|
722
|
-
generateImage:
|
|
723
|
-
generateSvg:
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
+
return Yt({
|
|
731
|
+
autoSize: yl,
|
|
732
|
+
getData: al,
|
|
733
|
+
getImage: hl,
|
|
734
|
+
generatePdf: yt,
|
|
735
|
+
generateCsv: Re,
|
|
736
|
+
generateImage: ft,
|
|
737
|
+
generateSvg: St,
|
|
738
|
+
hideSeries: sl,
|
|
739
|
+
showSeries: ol,
|
|
740
|
+
toggleTable: _t,
|
|
741
|
+
toggleLabels: $t,
|
|
742
|
+
toggleTooltip: Ct,
|
|
743
|
+
toggleAnnotator: Ge,
|
|
744
|
+
toggleFullscreen: kt
|
|
745
|
+
}), (t, a) => (n(), r("div", {
|
|
730
746
|
ref_key: "donutChart",
|
|
731
|
-
ref:
|
|
732
|
-
class:
|
|
747
|
+
ref: Y,
|
|
748
|
+
class: We(`vue-data-ui-component vue-ui-donut ${ne.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
733
749
|
style: $(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
734
750
|
id: `donut__${f.value}`,
|
|
735
|
-
onMouseenter:
|
|
736
|
-
onMouseleave:
|
|
751
|
+
onMouseenter: el,
|
|
752
|
+
onMouseleave: tl
|
|
737
753
|
}, [
|
|
738
|
-
e.value.userOptions.buttons.annotator && u(le) ? (n(), te(u(
|
|
754
|
+
e.value.userOptions.buttons.annotator && u(le) ? (n(), te(u(Gt), {
|
|
739
755
|
key: 0,
|
|
740
756
|
color: e.value.style.chart.color,
|
|
741
757
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
742
|
-
active:
|
|
758
|
+
active: Se.value,
|
|
743
759
|
svgRef: u(le),
|
|
744
|
-
onClose:
|
|
760
|
+
onClose: Ge
|
|
745
761
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
746
762
|
b(t.$slots, "userConfig", {}, void 0, !0),
|
|
747
|
-
|
|
763
|
+
ll.value ? (n(), r("div", {
|
|
748
764
|
key: 1,
|
|
749
765
|
ref_key: "noTitle",
|
|
750
|
-
ref:
|
|
766
|
+
ref: tt,
|
|
751
767
|
class: "vue-data-ui-no-title-space",
|
|
752
768
|
style: "height:36px; width: 100%;background:transparent"
|
|
753
769
|
}, null, 512)) : v("", !0),
|
|
754
770
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
755
771
|
key: 2,
|
|
756
772
|
ref_key: "chartTitle",
|
|
757
|
-
ref:
|
|
773
|
+
ref: Je,
|
|
758
774
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
759
775
|
}, [
|
|
760
|
-
(n(), te(
|
|
761
|
-
key: `title_${
|
|
776
|
+
(n(), te(ea, {
|
|
777
|
+
key: `title_${lt.value}`,
|
|
762
778
|
config: {
|
|
763
779
|
title: {
|
|
764
780
|
cy: "donut-div-title",
|
|
@@ -773,15 +789,15 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
773
789
|
], 512)) : v("", !0),
|
|
774
790
|
h("div", {
|
|
775
791
|
id: `legend-top-${f.value}`
|
|
776
|
-
}, null, 8,
|
|
777
|
-
e.value.userOptions.show && we.value && (u(
|
|
792
|
+
}, null, 8, sa),
|
|
793
|
+
e.value.userOptions.show && we.value && (u(vt) || u(Ye)) ? (n(), te(u(Ut), {
|
|
778
794
|
ref_key: "userOptionsRef",
|
|
779
|
-
ref:
|
|
780
|
-
key: `user_option_${
|
|
795
|
+
ref: Ie,
|
|
796
|
+
key: `user_option_${ut.value}`,
|
|
781
797
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
782
798
|
color: e.value.style.chart.color,
|
|
783
|
-
isPrinting: u(
|
|
784
|
-
isImaging: u(
|
|
799
|
+
isPrinting: u(ct),
|
|
800
|
+
isImaging: u(ht),
|
|
785
801
|
uid: f.value,
|
|
786
802
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
787
803
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -792,30 +808,30 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
792
808
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
793
809
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
794
810
|
isFullscreen: ne.value,
|
|
795
|
-
chartElement:
|
|
811
|
+
chartElement: Y.value,
|
|
796
812
|
position: e.value.userOptions.position,
|
|
797
813
|
callbacks: e.value.userOptions.callbacks,
|
|
798
814
|
isTooltip: p.value.showTooltip,
|
|
799
815
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
800
816
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
801
|
-
isAnnotation:
|
|
817
|
+
isAnnotation: Se.value,
|
|
802
818
|
printScale: e.value.userOptions.print.scale,
|
|
803
819
|
tableDialog: e.value.table.useDialog,
|
|
804
|
-
onToggleFullscreen:
|
|
805
|
-
onGeneratePdf: u(
|
|
806
|
-
onGenerateCsv:
|
|
807
|
-
onGenerateImage: u(
|
|
808
|
-
onGenerateSvg:
|
|
809
|
-
onToggleTable:
|
|
810
|
-
onToggleLabels:
|
|
811
|
-
onToggleTooltip:
|
|
812
|
-
onToggleAnnotator:
|
|
813
|
-
style: $({ visibility: u(
|
|
814
|
-
},
|
|
820
|
+
onToggleFullscreen: kt,
|
|
821
|
+
onGeneratePdf: u(yt),
|
|
822
|
+
onGenerateCsv: Re,
|
|
823
|
+
onGenerateImage: u(ft),
|
|
824
|
+
onGenerateSvg: St,
|
|
825
|
+
onToggleTable: _t,
|
|
826
|
+
onToggleLabels: $t,
|
|
827
|
+
onToggleTooltip: Ct,
|
|
828
|
+
onToggleAnnotator: Ge,
|
|
829
|
+
style: $({ visibility: u(vt) ? u(Ye) ? "visible" : "hidden" : "visible" })
|
|
830
|
+
}, qe({ _: 2 }, [
|
|
815
831
|
t.$slots.menuIcon ? {
|
|
816
832
|
name: "menuIcon",
|
|
817
|
-
fn: C(({ isOpen: l, color:
|
|
818
|
-
b(t.$slots, "menuIcon", ue(re({ isOpen: l, color:
|
|
833
|
+
fn: C(({ isOpen: l, color: o }) => [
|
|
834
|
+
b(t.$slots, "menuIcon", ue(re({ isOpen: l, color: o })), void 0, !0)
|
|
819
835
|
]),
|
|
820
836
|
key: "0"
|
|
821
837
|
} : void 0,
|
|
@@ -870,15 +886,15 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
870
886
|
} : void 0,
|
|
871
887
|
t.$slots.optionFullscreen ? {
|
|
872
888
|
name: "optionFullscreen",
|
|
873
|
-
fn: C(({ toggleFullscreen: l, isFullscreen:
|
|
874
|
-
b(t.$slots, "optionFullscreen", ue(re({ toggleFullscreen: l, isFullscreen:
|
|
889
|
+
fn: C(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
890
|
+
b(t.$slots, "optionFullscreen", ue(re({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
875
891
|
]),
|
|
876
892
|
key: "8"
|
|
877
893
|
} : void 0,
|
|
878
894
|
t.$slots.optionAnnotator ? {
|
|
879
895
|
name: "optionAnnotator",
|
|
880
|
-
fn: C(({ toggleAnnotator: l, isAnnotator:
|
|
881
|
-
b(t.$slots, "optionAnnotator", ue(re({ toggleAnnotator: l, isAnnotator:
|
|
896
|
+
fn: C(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
897
|
+
b(t.$slots, "optionAnnotator", ue(re({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
882
898
|
]),
|
|
883
899
|
key: "9"
|
|
884
900
|
} : void 0
|
|
@@ -886,17 +902,17 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
886
902
|
(n(), r("svg", {
|
|
887
903
|
ref_key: "svgRef",
|
|
888
904
|
ref: le,
|
|
889
|
-
xmlns: u(
|
|
890
|
-
class:
|
|
905
|
+
xmlns: u(Ol),
|
|
906
|
+
class: We({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value, "vue-data-ui-svg": !0 }),
|
|
891
907
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
892
|
-
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
908
|
+
style: $(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${dt.value.css}`)
|
|
893
909
|
}, [
|
|
894
910
|
h("g", {
|
|
895
911
|
ref_key: "G",
|
|
896
912
|
ref: ke,
|
|
897
913
|
class: "vue-data-ui-g"
|
|
898
914
|
}, [
|
|
899
|
-
|
|
915
|
+
Te(u(Wt)),
|
|
900
916
|
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
901
917
|
key: 0,
|
|
902
918
|
x: 0,
|
|
@@ -908,50 +924,50 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
908
924
|
}
|
|
909
925
|
}, [
|
|
910
926
|
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
911
|
-
], 8,
|
|
912
|
-
e.value.type === "classic" && !isNaN(ae.value / _.value) ? (n(), r("defs",
|
|
927
|
+
], 8, ua)) : v("", !0),
|
|
928
|
+
e.value.type === "classic" && !isNaN(ae.value / _.value) ? (n(), r("defs", ra, [
|
|
913
929
|
e.value.style.chart.useGradient ? (n(), r("radialGradient", {
|
|
914
930
|
key: 0,
|
|
915
931
|
id: `gradient_${f.value}`
|
|
916
932
|
}, [
|
|
917
933
|
h("stop", {
|
|
918
934
|
offset: "0%",
|
|
919
|
-
"stop-color": u(
|
|
935
|
+
"stop-color": u(Fe)(e.value.style.chart.backgroundColor, 0),
|
|
920
936
|
"stop-opacity": "0"
|
|
921
|
-
}, null, 8,
|
|
937
|
+
}, null, 8, va),
|
|
922
938
|
h("stop", {
|
|
923
939
|
offset: `${(1 - ae.value / _.value) * 100}%`,
|
|
924
|
-
"stop-color": u(
|
|
940
|
+
"stop-color": u(Fe)("#FFFFFF", 0),
|
|
925
941
|
"stop-opacity": "0"
|
|
926
|
-
}, null, 8,
|
|
942
|
+
}, null, 8, da),
|
|
927
943
|
h("stop", {
|
|
928
944
|
offset: `${(1 - ae.value / _.value / 2) * 100}%`,
|
|
929
|
-
"stop-color": u(
|
|
930
|
-
}, null, 8,
|
|
945
|
+
"stop-color": u(Fe)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
946
|
+
}, null, 8, ca),
|
|
931
947
|
h("stop", {
|
|
932
948
|
offset: "100%",
|
|
933
|
-
"stop-color": u(
|
|
949
|
+
"stop-color": u(Fe)(e.value.style.chart.backgroundColor, 0),
|
|
934
950
|
"stop-opacity": "0"
|
|
935
|
-
}, null, 8,
|
|
936
|
-
], 8,
|
|
951
|
+
}, null, 8, ha)
|
|
952
|
+
], 8, ia)) : v("", !0)
|
|
937
953
|
])) : v("", !0),
|
|
938
|
-
e.value.type === "polar" ? (n(), r("defs",
|
|
939
|
-
(n(!0), r(w, null,
|
|
940
|
-
id: `polar_gradient_${
|
|
954
|
+
e.value.type === "polar" ? (n(), r("defs", ya, [
|
|
955
|
+
(n(!0), r(w, null, I(d.value, (l, o) => (n(), r("radialGradient", {
|
|
956
|
+
id: `polar_gradient_${o}_${f.value}`,
|
|
941
957
|
cx: (isNaN(l.middlePoint.x / s.value.width * 100) ? 0 : l.middlePoint.x / s.value.width * 100) + "%",
|
|
942
958
|
cy: (isNaN(l.middlePoint.y / s.value.height * 100) ? 0 : l.middlePoint.y / s.value.height * 100) + "%",
|
|
943
959
|
r: "62%"
|
|
944
960
|
}, [
|
|
945
961
|
h("stop", {
|
|
946
962
|
offset: "0%",
|
|
947
|
-
"stop-color": u(
|
|
963
|
+
"stop-color": u(Dl)(T.value[o].color, 0.05),
|
|
948
964
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
949
|
-
}, null, 8,
|
|
965
|
+
}, null, 8, ga),
|
|
950
966
|
h("stop", {
|
|
951
967
|
offset: "100%",
|
|
952
|
-
"stop-color": T.value[
|
|
953
|
-
}, null, 8,
|
|
954
|
-
], 8,
|
|
968
|
+
"stop-color": T.value[o].color
|
|
969
|
+
}, null, 8, pa)
|
|
970
|
+
], 8, fa))), 256))
|
|
955
971
|
])) : v("", !0),
|
|
956
972
|
h("defs", null, [
|
|
957
973
|
h("filter", {
|
|
@@ -965,12 +981,12 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
965
981
|
in: "SourceGraphic",
|
|
966
982
|
stdDeviation: 2,
|
|
967
983
|
id: `blur_std_${f.value}`
|
|
968
|
-
}, null, 8,
|
|
969
|
-
|
|
984
|
+
}, null, 8, ba),
|
|
985
|
+
a[5] || (a[5] = h("feColorMatrix", {
|
|
970
986
|
type: "saturate",
|
|
971
987
|
values: "0"
|
|
972
988
|
}, null, -1))
|
|
973
|
-
], 8,
|
|
989
|
+
], 8, ma),
|
|
974
990
|
h("filter", {
|
|
975
991
|
id: `shadow_${f.value}`,
|
|
976
992
|
"color-interpolation-filters": "sRGB"
|
|
@@ -981,8 +997,8 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
981
997
|
stdDeviation: "10",
|
|
982
998
|
"flood-opacity": "0.5",
|
|
983
999
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
984
|
-
}, null, 8,
|
|
985
|
-
], 8,
|
|
1000
|
+
}, null, 8, ka)
|
|
1001
|
+
], 8, wa),
|
|
986
1002
|
h("filter", {
|
|
987
1003
|
id: `drop_shadow_${f.value}`,
|
|
988
1004
|
"color-interpolation-filters": "sRGB",
|
|
@@ -997,35 +1013,35 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
997
1013
|
stdDeviation: "3",
|
|
998
1014
|
"flood-opacity": "1",
|
|
999
1015
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1000
|
-
}, null, 8,
|
|
1001
|
-
], 8,
|
|
1016
|
+
}, null, 8, _a)
|
|
1017
|
+
], 8, xa)
|
|
1002
1018
|
]),
|
|
1003
|
-
e.value.type === "classic" ? (n(!0), r(w, { key: 3 },
|
|
1004
|
-
|
|
1019
|
+
e.value.type === "classic" ? (n(!0), r(w, { key: 3 }, I(T.value.filter((l) => !l.ghost), (l, o) => (n(), r("g", null, [
|
|
1020
|
+
V(l) && p.value.dataLabels.show ? (n(), r("path", {
|
|
1005
1021
|
key: 0,
|
|
1006
|
-
d: u(
|
|
1022
|
+
d: u(Nl)(l, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, ae.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
1007
1023
|
stroke: l.color,
|
|
1008
1024
|
"stroke-width": "1",
|
|
1009
1025
|
"stroke-linecap": "round",
|
|
1010
1026
|
"stroke-linejoin": "round",
|
|
1011
1027
|
fill: "none",
|
|
1012
|
-
filter: se(
|
|
1013
|
-
}, null, 8,
|
|
1028
|
+
filter: se(o)
|
|
1029
|
+
}, null, 8, $a)) : v("", !0)
|
|
1014
1030
|
]))), 256)) : v("", !0),
|
|
1015
|
-
e.value.type === "polar" ? (n(!0), r(w, { key: 4 },
|
|
1016
|
-
|
|
1031
|
+
e.value.type === "polar" ? (n(!0), r(w, { key: 4 }, I(T.value.filter((l) => !l.ghost), (l, o) => (n(), r("g", null, [
|
|
1032
|
+
V(l) && p.value.dataLabels.show ? (n(), r("path", {
|
|
1017
1033
|
key: 0,
|
|
1018
|
-
d: `M ${u(P)({ initX: d.value[
|
|
1034
|
+
d: `M ${u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x},${u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y} ${d.value[o].middlePoint.x},${d.value[o].middlePoint.y}`,
|
|
1019
1035
|
stroke: l.color,
|
|
1020
1036
|
"stroke-width": "1",
|
|
1021
1037
|
"stroke-linecap": "round",
|
|
1022
1038
|
"stroke-linejoin": "round",
|
|
1023
1039
|
fill: "none",
|
|
1024
|
-
filter: se(
|
|
1040
|
+
filter: se(o),
|
|
1025
1041
|
style: $({
|
|
1026
1042
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1027
1043
|
})
|
|
1028
|
-
}, null, 12,
|
|
1044
|
+
}, null, 12, Ca)) : v("", !0)
|
|
1029
1045
|
]))), 256)) : v("", !0),
|
|
1030
1046
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (n(), r("circle", {
|
|
1031
1047
|
key: 5,
|
|
@@ -1034,53 +1050,53 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1034
1050
|
r: _.value <= 0 ? 10 : _.value,
|
|
1035
1051
|
fill: e.value.style.chart.backgroundColor,
|
|
1036
1052
|
filter: `url(#shadow_${f.value})`
|
|
1037
|
-
}, null, 8,
|
|
1038
|
-
t.$slots.pattern ? (n(), r("g",
|
|
1039
|
-
(n(!0), r(w, null,
|
|
1053
|
+
}, null, 8, Aa)) : v("", !0),
|
|
1054
|
+
t.$slots.pattern ? (n(), r("g", Sa, [
|
|
1055
|
+
(n(!0), r(w, null, I(Ze.dataset, (l, o) => (n(), r("defs", {
|
|
1040
1056
|
key: `pattern-${l.patternIndex}`
|
|
1041
1057
|
}, [
|
|
1042
|
-
b(t.$slots, "pattern",
|
|
1058
|
+
b(t.$slots, "pattern", He({ ref_for: !0 }, { seriesIndex: o, patternId: `pattern_${f.value}_${o}` }), void 0, !0)
|
|
1043
1059
|
]))), 128))
|
|
1044
1060
|
])) : v("", !0),
|
|
1045
1061
|
F.value && e.value.type === "classic" ? (n(), r(w, { key: 7 }, [
|
|
1046
|
-
(n(!0), r(w, null,
|
|
1062
|
+
(n(!0), r(w, null, I(B.value, (l, o) => (n(), r("path", {
|
|
1047
1063
|
stroke: e.value.style.chart.backgroundColor,
|
|
1048
1064
|
d: l.arcSlice,
|
|
1049
1065
|
fill: "#FFFFFF"
|
|
1050
|
-
}, null, 8,
|
|
1051
|
-
(n(!0), r(w, null,
|
|
1066
|
+
}, null, 8, Ta))), 256)),
|
|
1067
|
+
(n(!0), r(w, null, I(B.value, (l, o) => (n(), r("path", {
|
|
1052
1068
|
class: "vue-ui-donut-arc-path",
|
|
1053
1069
|
d: l.arcSlice,
|
|
1054
1070
|
fill: l.color,
|
|
1055
1071
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1056
1072
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1057
|
-
filter: se(
|
|
1058
|
-
}, null, 8,
|
|
1059
|
-
t.$slots.pattern ? (n(), r("g",
|
|
1060
|
-
(n(!0), r(w, null,
|
|
1073
|
+
filter: se(o)
|
|
1074
|
+
}, null, 8, Pa))), 256)),
|
|
1075
|
+
t.$slots.pattern ? (n(), r("g", Fa, [
|
|
1076
|
+
(n(!0), r(w, null, I(B.value, (l, o) => (n(), r("path", {
|
|
1061
1077
|
class: "vue-ui-donut-arc-path",
|
|
1062
1078
|
d: l.arcSlice,
|
|
1063
1079
|
fill: `url(#${l.pattern})`,
|
|
1064
1080
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1065
1081
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1066
|
-
filter: se(
|
|
1067
|
-
}, null, 8,
|
|
1082
|
+
filter: se(o)
|
|
1083
|
+
}, null, 8, Ia))), 256))
|
|
1068
1084
|
])) : v("", !0)
|
|
1069
1085
|
], 64)) : v("", !0),
|
|
1070
1086
|
F.value && e.value.type === "polar" ? (n(), r(w, { key: 8 }, [
|
|
1071
|
-
T.value.length > 1 ? (n(), r("g",
|
|
1072
|
-
(n(!0), r(w, null,
|
|
1087
|
+
T.value.length > 1 ? (n(), r("g", La, [
|
|
1088
|
+
(n(!0), r(w, null, I(B.value, (l, o) => (n(), r("path", {
|
|
1073
1089
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1074
|
-
d: d.value[
|
|
1090
|
+
d: d.value[o].path,
|
|
1075
1091
|
fill: "#FFFFFF",
|
|
1076
1092
|
style: $({
|
|
1077
1093
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1078
1094
|
})
|
|
1079
|
-
}, null, 12,
|
|
1080
|
-
e.value.style.chart.layout.donut.useShadow ? (n(), r("g",
|
|
1081
|
-
(n(!0), r(w, null,
|
|
1095
|
+
}, null, 12, Ma))), 256)),
|
|
1096
|
+
e.value.style.chart.layout.donut.useShadow ? (n(), r("g", za, [
|
|
1097
|
+
(n(!0), r(w, null, I(B.value, (l, o) => (n(), r("path", {
|
|
1082
1098
|
class: "vue-ui-donut-arc-path",
|
|
1083
|
-
d: d.value[
|
|
1099
|
+
d: d.value[o].path,
|
|
1084
1100
|
fill: "transparent",
|
|
1085
1101
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1086
1102
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
@@ -1088,34 +1104,34 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1088
1104
|
style: $({
|
|
1089
1105
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1090
1106
|
})
|
|
1091
|
-
}, null, 12,
|
|
1107
|
+
}, null, 12, Oa))), 256))
|
|
1092
1108
|
])) : v("", !0),
|
|
1093
|
-
t.$slots.pattern ? (n(), r("g",
|
|
1094
|
-
(n(!0), r(w, null,
|
|
1109
|
+
t.$slots.pattern ? (n(), r("g", Da, [
|
|
1110
|
+
(n(!0), r(w, null, I(B.value, (l, o) => (n(), r("path", {
|
|
1095
1111
|
class: "vue-ui-donut-arc-path",
|
|
1096
|
-
d: d.value[
|
|
1112
|
+
d: d.value[o].path,
|
|
1097
1113
|
fill: `url(#${l.pattern})`,
|
|
1098
1114
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1099
1115
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1100
|
-
filter: se(
|
|
1116
|
+
filter: se(o),
|
|
1101
1117
|
style: $({
|
|
1102
1118
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1103
1119
|
transformOrigin: "center"
|
|
1104
1120
|
})
|
|
1105
|
-
}, null, 12,
|
|
1121
|
+
}, null, 12, Na))), 256))
|
|
1106
1122
|
])) : v("", !0),
|
|
1107
|
-
(n(!0), r(w, null,
|
|
1123
|
+
(n(!0), r(w, null, I(B.value, (l, o) => (n(), r("path", {
|
|
1108
1124
|
class: "vue-ui-donut-arc-path",
|
|
1109
|
-
d: d.value[
|
|
1110
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${
|
|
1125
|
+
d: d.value[o].path,
|
|
1126
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${o}_${f.value})` : l.color,
|
|
1111
1127
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1112
1128
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1113
|
-
filter: se(
|
|
1129
|
+
filter: se(o),
|
|
1114
1130
|
style: $({
|
|
1115
1131
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1116
1132
|
})
|
|
1117
|
-
}, null, 12,
|
|
1118
|
-
])) : (n(), r("g",
|
|
1133
|
+
}, null, 12, Ya))), 256))
|
|
1134
|
+
])) : (n(), r("g", Xa, [
|
|
1119
1135
|
t.$slots.pattern ? (n(), r("circle", {
|
|
1120
1136
|
key: 0,
|
|
1121
1137
|
cx: s.value.width / 2,
|
|
@@ -1124,7 +1140,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1124
1140
|
fill: `url(#pattern_${f.value}_${T.value[0].patternIndex})`,
|
|
1125
1141
|
stroke: e.value.style.chart.backgroundColor,
|
|
1126
1142
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1127
|
-
}, null, 8,
|
|
1143
|
+
}, null, 8, Ba)) : v("", !0),
|
|
1128
1144
|
h("circle", {
|
|
1129
1145
|
cx: s.value.width / 2,
|
|
1130
1146
|
cy: s.value.height / 2,
|
|
@@ -1132,17 +1148,17 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1132
1148
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${f.value})` : T.value[0].color,
|
|
1133
1149
|
stroke: e.value.style.chart.backgroundColor,
|
|
1134
1150
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1135
|
-
}, null, 8,
|
|
1151
|
+
}, null, 8, Va)
|
|
1136
1152
|
]))
|
|
1137
1153
|
], 64)) : (n(), r(w, { key: 9 }, [
|
|
1138
|
-
e.value.type === "classic" && !
|
|
1139
|
-
(n(!0), r(w, null,
|
|
1154
|
+
e.value.type === "classic" && !rl.value ? (n(), r("g", Ea, [
|
|
1155
|
+
(n(!0), r(w, null, I(il.value, (l, o) => (n(), r("path", {
|
|
1140
1156
|
class: "vue-ui-donut-arc-path",
|
|
1141
1157
|
d: l.arcSlice,
|
|
1142
1158
|
fill: l.color,
|
|
1143
1159
|
stroke: e.value.style.chart.backgroundColor,
|
|
1144
1160
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1145
|
-
}, null, 8,
|
|
1161
|
+
}, null, 8, Ra))), 256))
|
|
1146
1162
|
])) : v("", !0),
|
|
1147
1163
|
h("circle", {
|
|
1148
1164
|
cx: s.value.width / 2,
|
|
@@ -1150,7 +1166,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1150
1166
|
r: _.value <= 0 ? 10 : _.value,
|
|
1151
1167
|
fill: "transparent",
|
|
1152
1168
|
stroke: e.value.style.chart.backgroundColor
|
|
1153
|
-
}, null, 8,
|
|
1169
|
+
}, null, 8, Ga)
|
|
1154
1170
|
], 64)),
|
|
1155
1171
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (n(), r("circle", {
|
|
1156
1172
|
key: 10,
|
|
@@ -1161,52 +1177,52 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1161
1177
|
_.value <= 0 ? 10 : _.value
|
|
1162
1178
|
),
|
|
1163
1179
|
fill: `url(#gradient_${f.value})`
|
|
1164
|
-
}, null, 8,
|
|
1180
|
+
}, null, 8, Ua)) : v("", !0),
|
|
1165
1181
|
h("circle", {
|
|
1166
1182
|
ref_key: "circle_hollow",
|
|
1167
|
-
ref:
|
|
1183
|
+
ref: Zt,
|
|
1168
1184
|
style: { pointerEvents: "none" },
|
|
1169
1185
|
fill: "none",
|
|
1170
1186
|
cx: s.value.width / 2,
|
|
1171
1187
|
cy: s.value.height / 2,
|
|
1172
1188
|
r: Math.max(0.1, ae.value * 1.7)
|
|
1173
|
-
}, null, 8,
|
|
1189
|
+
}, null, 8, Wa),
|
|
1174
1190
|
F.value ? (n(), r(w, { key: 11 }, [
|
|
1175
|
-
T.value.length > 1 || e.value.type === "classic" ? (n(), r("g",
|
|
1176
|
-
(n(!0), r(w, null,
|
|
1177
|
-
d: e.value.type === "classic" ? l.arcSlice : d.value[
|
|
1191
|
+
T.value.length > 1 || e.value.type === "classic" ? (n(), r("g", qa, [
|
|
1192
|
+
(n(!0), r(w, null, I(T.value.filter((l) => !l.ghost), (l, o) => (n(), r("path", {
|
|
1193
|
+
d: e.value.type === "classic" ? l.arcSlice : d.value[o].path,
|
|
1178
1194
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1179
|
-
fill:
|
|
1195
|
+
fill: X.value === o ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1180
1196
|
onMouseenter: (i) => ye({
|
|
1181
1197
|
datapoint: l,
|
|
1182
|
-
relativeIndex:
|
|
1198
|
+
relativeIndex: o,
|
|
1183
1199
|
seriesIndex: l.seriesIndex,
|
|
1184
1200
|
show: !0
|
|
1185
1201
|
}),
|
|
1186
1202
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1187
|
-
onClick: (i) => J(l,
|
|
1188
|
-
}, null, 40,
|
|
1189
|
-
])) : (n(), r("g",
|
|
1203
|
+
onClick: (i) => J(l, o)
|
|
1204
|
+
}, null, 40, Ha))), 256))
|
|
1205
|
+
])) : (n(), r("g", ja, [
|
|
1190
1206
|
h("circle", {
|
|
1191
1207
|
cx: s.value.width / 2,
|
|
1192
1208
|
cy: s.value.height / 2,
|
|
1193
1209
|
r: _.value,
|
|
1194
1210
|
fill: "transparent",
|
|
1195
|
-
onMouseenter:
|
|
1211
|
+
onMouseenter: a[0] || (a[0] = (l) => ye({
|
|
1196
1212
|
datapoint: T.value[0],
|
|
1197
1213
|
relativeIndex: 0,
|
|
1198
1214
|
seriesIndex: T.value[0].seriesIndex,
|
|
1199
1215
|
show: !0
|
|
1200
1216
|
})),
|
|
1201
|
-
onMouseleave:
|
|
1202
|
-
onClick:
|
|
1203
|
-
}, null, 40,
|
|
1217
|
+
onMouseleave: a[1] || (a[1] = (l) => he({ datapoint: T.value[0], seriesIndex: T.value[0].seriesIndex })),
|
|
1218
|
+
onClick: a[2] || (a[2] = (l) => J(T.value[0], t.i))
|
|
1219
|
+
}, null, 40, Qa)
|
|
1204
1220
|
]))
|
|
1205
1221
|
], 64)) : v("", !0),
|
|
1206
1222
|
e.value.type === "classic" ? (n(), r("g", {
|
|
1207
1223
|
key: 12,
|
|
1208
1224
|
ref_key: "G_hollow",
|
|
1209
|
-
ref:
|
|
1225
|
+
ref: Qt,
|
|
1210
1226
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1211
1227
|
}, [
|
|
1212
1228
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
@@ -1217,7 +1233,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1217
1233
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1218
1234
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1219
1235
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1220
|
-
},
|
|
1236
|
+
}, R(e.value.style.chart.layout.labels.hollow.total.text), 13, Za)) : v("", !0),
|
|
1221
1237
|
e.value.style.chart.layout.labels.hollow.total.show ? (n(), r("text", {
|
|
1222
1238
|
key: 1,
|
|
1223
1239
|
"text-anchor": "middle",
|
|
@@ -1226,15 +1242,15 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1226
1242
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1227
1243
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1228
1244
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1229
|
-
},
|
|
1245
|
+
}, R(u(G)(
|
|
1230
1246
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1231
1247
|
F.value,
|
|
1232
|
-
u(
|
|
1248
|
+
u(N)({
|
|
1233
1249
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1234
1250
|
v: F.value,
|
|
1235
1251
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1236
1252
|
})
|
|
1237
|
-
)), 13,
|
|
1253
|
+
)), 13, Ja)) : v("", !0),
|
|
1238
1254
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1239
1255
|
key: 2,
|
|
1240
1256
|
"text-anchor": "middle",
|
|
@@ -1243,7 +1259,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1243
1259
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1244
1260
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1245
1261
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1246
|
-
},
|
|
1262
|
+
}, R(e.value.style.chart.layout.labels.hollow.average.text), 13, Ka)) : v("", !0),
|
|
1247
1263
|
e.value.style.chart.layout.labels.hollow.average.show ? (n(), r("text", {
|
|
1248
1264
|
key: 3,
|
|
1249
1265
|
"text-anchor": "middle",
|
|
@@ -1252,45 +1268,45 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1252
1268
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1253
1269
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1254
1270
|
style: $(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1255
|
-
},
|
|
1271
|
+
}, R(oe.value || S.value ? "--" : u(G)(
|
|
1256
1272
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1257
|
-
|
|
1258
|
-
u(
|
|
1273
|
+
Ve.value,
|
|
1274
|
+
u(N)({
|
|
1259
1275
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1260
|
-
v:
|
|
1276
|
+
v: Ve.value,
|
|
1261
1277
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1262
1278
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1263
1279
|
})
|
|
1264
|
-
)), 13,
|
|
1280
|
+
)), 13, eo)) : v("", !0)
|
|
1265
1281
|
], 512)) : v("", !0),
|
|
1266
|
-
(n(!0), r(w, null,
|
|
1267
|
-
filter: se(
|
|
1268
|
-
class:
|
|
1282
|
+
(n(!0), r(w, null, I(B.value.filter((l) => !l.ghost), (l, o) => (n(), r("g", {
|
|
1283
|
+
filter: se(o),
|
|
1284
|
+
class: We({ animated: e.value.useCssAnimation }),
|
|
1269
1285
|
key: l.seriesIndex
|
|
1270
1286
|
}, [
|
|
1271
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g",
|
|
1287
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (n(), r("g", lo, [
|
|
1272
1288
|
(n(), r("foreignObject", {
|
|
1273
1289
|
x: u(x)(l, !0).anchor === "end" ? u(x)(l).x - 120 : u(x)(l, !0).anchor === "middle" ? u(x)(l).x - 60 : u(x)(l).x,
|
|
1274
|
-
y: u(ge)(l) - (
|
|
1290
|
+
y: u(ge)(l) - (xt.value ? 20 : 0),
|
|
1275
1291
|
width: "120",
|
|
1276
1292
|
height: "60",
|
|
1277
1293
|
style: { overflow: "visible" }
|
|
1278
1294
|
}, [
|
|
1279
1295
|
h("div", null, [
|
|
1280
|
-
b(t.$slots, "dataLabel",
|
|
1296
|
+
b(t.$slots, "dataLabel", He({ ref_for: !0 }, {
|
|
1281
1297
|
datapoint: l,
|
|
1282
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1283
|
-
isSafari:
|
|
1284
|
-
isVisible:
|
|
1298
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o,
|
|
1299
|
+
isSafari: xt.value,
|
|
1300
|
+
isVisible: V(l) && p.value.dataLabels.show,
|
|
1285
1301
|
textAlign: u(x)(l, !0, 16, !0).anchor,
|
|
1286
1302
|
flexAlign: u(x)(l, !0, 16).anchor,
|
|
1287
|
-
percentage:
|
|
1303
|
+
percentage: Be(l, B.value)
|
|
1288
1304
|
}), void 0, !0)
|
|
1289
1305
|
])
|
|
1290
|
-
], 8,
|
|
1291
|
-
])) : (n(), r("g",
|
|
1306
|
+
], 8, ao))
|
|
1307
|
+
])) : (n(), r("g", oo, [
|
|
1292
1308
|
e.value.type === "classic" ? (n(), r(w, { key: 0 }, [
|
|
1293
|
-
|
|
1309
|
+
V(l) && p.value.dataLabels.show ? (n(), r("circle", {
|
|
1294
1310
|
key: 0,
|
|
1295
1311
|
cx: u(x)(l).x,
|
|
1296
1312
|
cy: u(ge)(l) - 3.5,
|
|
@@ -1298,31 +1314,31 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1298
1314
|
stroke: e.value.style.chart.backgroundColor,
|
|
1299
1315
|
"stroke-width": 1,
|
|
1300
1316
|
r: 3,
|
|
1301
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1302
|
-
onClick: (i) => J(l,
|
|
1317
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o ? "" : `url(#blur_${f.value})`,
|
|
1318
|
+
onClick: (i) => J(l, o),
|
|
1303
1319
|
onMouseenter: (i) => ye({
|
|
1304
1320
|
datapoint: l,
|
|
1305
|
-
relativeIndex:
|
|
1321
|
+
relativeIndex: o,
|
|
1306
1322
|
seriesIndex: l.seriesIndex,
|
|
1307
1323
|
show: !0
|
|
1308
1324
|
}),
|
|
1309
1325
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1310
|
-
}, null, 40,
|
|
1326
|
+
}, null, 40, so)) : v("", !0)
|
|
1311
1327
|
], 64)) : v("", !0),
|
|
1312
1328
|
e.value.type === "polar" ? (n(), r(w, { key: 1 }, [
|
|
1313
|
-
|
|
1329
|
+
V(l) && p.value.dataLabels.show ? (n(), r("circle", {
|
|
1314
1330
|
key: 0,
|
|
1315
|
-
cx: u(P)({ initX: d.value[
|
|
1316
|
-
cy: u(P)({ initX: d.value[
|
|
1331
|
+
cx: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1332
|
+
cy: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
1317
1333
|
fill: l.color,
|
|
1318
1334
|
stroke: e.value.style.chart.backgroundColor,
|
|
1319
1335
|
"stroke-width": 1,
|
|
1320
1336
|
r: 3,
|
|
1321
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1322
|
-
onClick: (i) => J(l,
|
|
1337
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(X.value) || X.value === o ? "" : `url(#blur_${f.value})`,
|
|
1338
|
+
onClick: (i) => J(l, o),
|
|
1323
1339
|
onMouseenter: (i) => ye({
|
|
1324
1340
|
datapoint: l,
|
|
1325
|
-
relativeIndex:
|
|
1341
|
+
relativeIndex: o,
|
|
1326
1342
|
seriesIndex: l.seriesIndex,
|
|
1327
1343
|
show: !0
|
|
1328
1344
|
}),
|
|
@@ -1330,10 +1346,10 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1330
1346
|
style: $({
|
|
1331
1347
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1332
1348
|
})
|
|
1333
|
-
}, null, 44,
|
|
1349
|
+
}, null, 44, no)) : v("", !0)
|
|
1334
1350
|
], 64)) : v("", !0),
|
|
1335
1351
|
e.value.type === "classic" ? (n(), r(w, { key: 2 }, [
|
|
1336
|
-
|
|
1352
|
+
Ft(h("text", {
|
|
1337
1353
|
class: "vue-data-ui-datalabel-value",
|
|
1338
1354
|
"text-anchor": u(x)(l, !0, 12).anchor,
|
|
1339
1355
|
x: u(x)(l, !0, 12).x,
|
|
@@ -1341,28 +1357,28 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1341
1357
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1342
1358
|
"font-size": xe.value + "px",
|
|
1343
1359
|
style: $(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1344
|
-
onClick: (i) => J(l,
|
|
1360
|
+
onClick: (i) => J(l, o),
|
|
1345
1361
|
onMouseenter: (i) => ye({
|
|
1346
1362
|
datapoint: l,
|
|
1347
|
-
relativeIndex:
|
|
1363
|
+
relativeIndex: o,
|
|
1348
1364
|
seriesIndex: l.seriesIndex,
|
|
1349
1365
|
show: !0
|
|
1350
1366
|
}),
|
|
1351
1367
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1352
|
-
},
|
|
1368
|
+
}, R(Be(l, B.value)) + " " + R(e.value.style.chart.layout.labels.value.show ? `(${u(G)(
|
|
1353
1369
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1354
1370
|
l.value,
|
|
1355
|
-
u(
|
|
1371
|
+
u(N)({
|
|
1356
1372
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1357
1373
|
v: l.value,
|
|
1358
1374
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1359
1375
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1360
1376
|
}),
|
|
1361
1377
|
{ datapoint: l }
|
|
1362
|
-
)})` : ""), 45,
|
|
1363
|
-
[
|
|
1378
|
+
)})` : ""), 45, uo), [
|
|
1379
|
+
[It, V(l) && p.value.dataLabels.show]
|
|
1364
1380
|
]),
|
|
1365
|
-
|
|
1381
|
+
Ft(h("text", {
|
|
1366
1382
|
class: "vue-data-ui-datalabel-name",
|
|
1367
1383
|
"text-anchor": u(x)(l).anchor,
|
|
1368
1384
|
x: u(x)(l, !0, 12).x,
|
|
@@ -1370,77 +1386,77 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1370
1386
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1371
1387
|
"font-size": Q.value + "px",
|
|
1372
1388
|
style: $(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1373
|
-
onClick: (i) => J(l,
|
|
1374
|
-
innerHTML: u(
|
|
1389
|
+
onClick: (i) => J(l, o),
|
|
1390
|
+
innerHTML: u(Ot)({
|
|
1375
1391
|
content: l.name,
|
|
1376
1392
|
fontSize: Q.value,
|
|
1377
1393
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1378
1394
|
x: u(x)(l, !0, 12).x,
|
|
1379
1395
|
y: u(ge)(l) + Q.value
|
|
1380
1396
|
})
|
|
1381
|
-
}, null, 12,
|
|
1382
|
-
[
|
|
1397
|
+
}, null, 12, ro), [
|
|
1398
|
+
[It, V(l) && p.value.dataLabels.show]
|
|
1383
1399
|
]),
|
|
1384
|
-
|
|
1400
|
+
a[6] || (a[6] = Pe(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1385
1401
|
], 64)) : v("", !0),
|
|
1386
1402
|
e.value.type === "polar" ? (n(), r(w, { key: 3 }, [
|
|
1387
|
-
|
|
1403
|
+
V(l) && p.value.dataLabels.show ? (n(), r("text", {
|
|
1388
1404
|
key: 0,
|
|
1389
1405
|
class: "vue-data-ui-datalabel-value",
|
|
1390
|
-
"text-anchor": ce(d.value[
|
|
1391
|
-
x: u(P)({ initX: d.value[
|
|
1392
|
-
y: u(P)({ initX: d.value[
|
|
1406
|
+
"text-anchor": ce(d.value[o].middlePoint),
|
|
1407
|
+
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1408
|
+
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
1393
1409
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1394
1410
|
"font-size": xe.value,
|
|
1395
1411
|
style: $({
|
|
1396
1412
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1397
1413
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1398
1414
|
}),
|
|
1399
|
-
onClick: (i) => J(l,
|
|
1415
|
+
onClick: (i) => J(l, o),
|
|
1400
1416
|
onMouseenter: (i) => ye({
|
|
1401
1417
|
datapoint: l,
|
|
1402
|
-
relativeIndex:
|
|
1418
|
+
relativeIndex: o,
|
|
1403
1419
|
seriesIndex: l.seriesIndex,
|
|
1404
1420
|
show: !0
|
|
1405
1421
|
}),
|
|
1406
1422
|
onMouseleave: (i) => he({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1407
|
-
},
|
|
1423
|
+
}, R(Be(l, B.value)) + " " + R(e.value.style.chart.layout.labels.value.show ? `(${u(G)(
|
|
1408
1424
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1409
1425
|
l.value,
|
|
1410
|
-
u(
|
|
1426
|
+
u(N)({
|
|
1411
1427
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1412
1428
|
v: l.value,
|
|
1413
1429
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1414
1430
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1415
1431
|
}),
|
|
1416
1432
|
{ datapoint: l }
|
|
1417
|
-
)})` : ""), 45,
|
|
1418
|
-
|
|
1433
|
+
)})` : ""), 45, io)) : v("", !0),
|
|
1434
|
+
V(l) && p.value.dataLabels.show ? (n(), r("text", {
|
|
1419
1435
|
key: 1,
|
|
1420
1436
|
class: "vue-data-ui-datalabel-name",
|
|
1421
|
-
"text-anchor": ce(d.value[
|
|
1422
|
-
x: u(P)({ initX: d.value[
|
|
1423
|
-
y: u(P)({ initX: d.value[
|
|
1437
|
+
"text-anchor": ce(d.value[o].middlePoint),
|
|
1438
|
+
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1439
|
+
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + Q.value * 1.2,
|
|
1424
1440
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1425
1441
|
"font-size": Q.value,
|
|
1426
1442
|
style: $({
|
|
1427
1443
|
transition: S.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1428
1444
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1429
1445
|
}),
|
|
1430
|
-
onClick: (i) => J(l,
|
|
1431
|
-
innerHTML: u(
|
|
1446
|
+
onClick: (i) => J(l, o),
|
|
1447
|
+
innerHTML: u(Ot)({
|
|
1432
1448
|
content: l.name,
|
|
1433
1449
|
fontSize: xe.value,
|
|
1434
1450
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1435
|
-
x: u(P)({ initX: d.value[
|
|
1436
|
-
y: u(P)({ initX: d.value[
|
|
1451
|
+
x: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
1452
|
+
y: u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + Q.value * 1.2
|
|
1437
1453
|
})
|
|
1438
|
-
}, null, 12,
|
|
1439
|
-
|
|
1454
|
+
}, null, 12, vo)) : v("", !0),
|
|
1455
|
+
a[7] || (a[7] = Pe(' @mouseenter="useTooltip({ datapoint: arc, relativeIndex: i, seriesIndex: arc.seriesIndex, show: true })" @mouseleave="handleDatapointLeave({ datapoint: arc, seriesIndex: arc.seriesIndex })" /> ', -1))
|
|
1440
1456
|
], 64)) : v("", !0)
|
|
1441
1457
|
])),
|
|
1442
|
-
p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (n(), r("g",
|
|
1443
|
-
|
|
1458
|
+
p.value.dataLabels.show && e.value.style.chart.comments.show && l.comment ? (n(), r("g", co, [
|
|
1459
|
+
V(l) && e.value.type === "classic" ? (n(), r("foreignObject", {
|
|
1444
1460
|
key: 0,
|
|
1445
1461
|
x: e.value.style.chart.comments.offsetX + (u(x)(l, !0).anchor === "end" ? u(x)(l).x - e.value.style.chart.comments.width : u(x)(l, !0).anchor === "middle" ? u(x)(l).x - e.value.style.chart.comments.width / 2 : u(x)(l).x),
|
|
1446
1462
|
y: u(ge)(l) + 24 + e.value.style.chart.comments.offsetY,
|
|
@@ -1453,11 +1469,11 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1453
1469
|
plot: { ...l, textAlign: u(x)(l, !0, 16, !0).anchor, flexAlign: u(x)(l, !0, 16).anchor, isFirstLoad: S.value }
|
|
1454
1470
|
}, void 0, !0)
|
|
1455
1471
|
])
|
|
1456
|
-
], 8,
|
|
1457
|
-
|
|
1472
|
+
], 8, ho)) : v("", !0),
|
|
1473
|
+
V(l) && e.value.type === "polar" ? (n(), r("foreignObject", {
|
|
1458
1474
|
key: 1,
|
|
1459
|
-
x: e.value.style.chart.comments.offsetX + (ce(d.value[
|
|
1460
|
-
y:
|
|
1475
|
+
x: e.value.style.chart.comments.offsetX + (ce(d.value[o].middlePoint) === "end" ? u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : ce(d.value[o].middlePoint) === "middle" ? u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(P)({ initX: d.value[o].middlePoint.x, initY: d.value[o].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
|
|
1476
|
+
y: vl(d.value[o]) + e.value.style.chart.comments.offsetY,
|
|
1461
1477
|
width: e.value.style.chart.comments.width,
|
|
1462
1478
|
height: "200",
|
|
1463
1479
|
style: $({
|
|
@@ -1468,77 +1484,77 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1468
1484
|
}, [
|
|
1469
1485
|
h("div", null, [
|
|
1470
1486
|
b(t.$slots, "plot-comment", {
|
|
1471
|
-
plot: { ...l, textAlign: ce(d.value[
|
|
1487
|
+
plot: { ...l, textAlign: ce(d.value[o].middlePoint), flexAlign: ce(d.value[o].middlePoint), isFirstLoad: S.value }
|
|
1472
1488
|
}, void 0, !0)
|
|
1473
1489
|
])
|
|
1474
|
-
], 12,
|
|
1490
|
+
], 12, yo)) : v("", !0)
|
|
1475
1491
|
])) : v("", !0)
|
|
1476
|
-
], 10,
|
|
1492
|
+
], 10, to))), 128)),
|
|
1477
1493
|
b(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1478
1494
|
], 512)
|
|
1479
|
-
], 14,
|
|
1480
|
-
t.$slots.watermark ? (n(), r("div",
|
|
1481
|
-
b(t.$slots, "watermark", ue(re({ isPrinting: u(
|
|
1495
|
+
], 14, na)),
|
|
1496
|
+
t.$slots.watermark ? (n(), r("div", fo, [
|
|
1497
|
+
b(t.$slots, "watermark", ue(re({ isPrinting: u(ct) || u(ht) })), void 0, !0)
|
|
1482
1498
|
])) : v("", !0),
|
|
1483
1499
|
h("div", {
|
|
1484
1500
|
id: `legend-bottom-${f.value}`
|
|
1485
|
-
}, null, 8,
|
|
1486
|
-
|
|
1501
|
+
}, null, 8, go),
|
|
1502
|
+
st.value ? (n(), te(Al, {
|
|
1487
1503
|
key: 5,
|
|
1488
1504
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1489
1505
|
}, [
|
|
1490
1506
|
h("div", {
|
|
1491
1507
|
ref_key: "chartLegend",
|
|
1492
|
-
ref:
|
|
1508
|
+
ref: Ke
|
|
1493
1509
|
}, [
|
|
1494
|
-
e.value.style.chart.legend.show ? (n(), te(
|
|
1495
|
-
key: `legend_${
|
|
1496
|
-
legendSet:
|
|
1497
|
-
config:
|
|
1498
|
-
onClickMarker:
|
|
1499
|
-
},
|
|
1500
|
-
item: C(({ legend: l, index:
|
|
1510
|
+
e.value.style.chart.legend.show ? (n(), te(la, {
|
|
1511
|
+
key: `legend_${ot.value}`,
|
|
1512
|
+
legendSet: Xe.value,
|
|
1513
|
+
config: ul.value,
|
|
1514
|
+
onClickMarker: a[3] || (a[3] = ({ i: l }) => Ce(l))
|
|
1515
|
+
}, qe({
|
|
1516
|
+
item: C(({ legend: l, index: o }) => [
|
|
1501
1517
|
h("div", {
|
|
1502
|
-
style: $(`opacity:${
|
|
1518
|
+
style: $(`opacity:${z.value.includes(o) ? 0.5 : 1}`),
|
|
1503
1519
|
onClick: (i) => l.segregate()
|
|
1504
|
-
},
|
|
1520
|
+
}, R(l.display), 13, po)
|
|
1505
1521
|
]),
|
|
1506
1522
|
_: 2
|
|
1507
1523
|
}, [
|
|
1508
1524
|
t.$slots.pattern ? {
|
|
1509
1525
|
name: "legend-pattern",
|
|
1510
|
-
fn: C(({ legend: l, index:
|
|
1511
|
-
|
|
1526
|
+
fn: C(({ legend: l, index: o }) => [
|
|
1527
|
+
Te(Kl, {
|
|
1512
1528
|
shape: l.shape,
|
|
1513
1529
|
radius: 30,
|
|
1514
1530
|
stroke: "none",
|
|
1515
1531
|
plot: { x: 30, y: 30 },
|
|
1516
|
-
fill: `url(#pattern_${f.value}_${
|
|
1532
|
+
fill: `url(#pattern_${f.value}_${o})`
|
|
1517
1533
|
}, null, 8, ["shape", "fill"])
|
|
1518
1534
|
]),
|
|
1519
1535
|
key: "0"
|
|
1520
1536
|
} : void 0
|
|
1521
1537
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1522
|
-
b(t.$slots, "legend", { legend:
|
|
1538
|
+
b(t.$slots, "legend", { legend: Xe.value }, void 0, !0)
|
|
1523
1539
|
], 512)
|
|
1524
1540
|
], 8, ["to"])) : v("", !0),
|
|
1525
1541
|
t.$slots.source ? (n(), r("div", {
|
|
1526
1542
|
key: 6,
|
|
1527
1543
|
ref_key: "source",
|
|
1528
|
-
ref:
|
|
1544
|
+
ref: et,
|
|
1529
1545
|
dir: "auto"
|
|
1530
1546
|
}, [
|
|
1531
1547
|
b(t.$slots, "source", {}, void 0, !0)
|
|
1532
1548
|
], 512)) : v("", !0),
|
|
1533
|
-
t.$slots.hollow ? (n(), r("div",
|
|
1549
|
+
t.$slots.hollow ? (n(), r("div", mo, [
|
|
1534
1550
|
b(t.$slots, "hollow", ue(re({
|
|
1535
1551
|
total: F.value,
|
|
1536
|
-
average:
|
|
1537
|
-
dataset:
|
|
1552
|
+
average: Ve.value,
|
|
1553
|
+
dataset: L.value
|
|
1538
1554
|
})), void 0, !0)
|
|
1539
1555
|
])) : v("", !0),
|
|
1540
|
-
|
|
1541
|
-
show: p.value.showTooltip &&
|
|
1556
|
+
Te(u(Bt), {
|
|
1557
|
+
show: p.value.showTooltip && Oe.value,
|
|
1542
1558
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1543
1559
|
color: e.value.style.chart.tooltip.color,
|
|
1544
1560
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1548,8 +1564,8 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1548
1564
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1549
1565
|
position: e.value.style.chart.tooltip.position,
|
|
1550
1566
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1551
|
-
parent:
|
|
1552
|
-
content:
|
|
1567
|
+
parent: Y.value,
|
|
1568
|
+
content: De.value,
|
|
1553
1569
|
isCustom: me.value,
|
|
1554
1570
|
isFullscreen: ne.value,
|
|
1555
1571
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1558,48 +1574,48 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1558
1574
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
|
|
1559
1575
|
}, {
|
|
1560
1576
|
"tooltip-before": C(() => [
|
|
1561
|
-
b(t.$slots, "tooltip-before", ue(re({ ...
|
|
1577
|
+
b(t.$slots, "tooltip-before", ue(re({ ...Ee.value })), void 0, !0)
|
|
1562
1578
|
]),
|
|
1563
1579
|
"tooltip-after": C(() => [
|
|
1564
|
-
b(t.$slots, "tooltip-after", ue(re({ ...
|
|
1580
|
+
b(t.$slots, "tooltip-after", ue(re({ ...Ee.value })), void 0, !0)
|
|
1565
1581
|
]),
|
|
1566
1582
|
_: 3
|
|
1567
1583
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1568
|
-
we.value && e.value.userOptions.buttons.table ? (n(), te(
|
|
1584
|
+
we.value && e.value.userOptions.buttons.table ? (n(), te(Sl(be.value.component), He({ key: 8 }, be.value.props, {
|
|
1569
1585
|
ref_key: "tableUnit",
|
|
1570
1586
|
ref: pe,
|
|
1571
|
-
onClose:
|
|
1572
|
-
}),
|
|
1587
|
+
onClose: At
|
|
1588
|
+
}), qe({
|
|
1573
1589
|
content: C(() => [
|
|
1574
|
-
(n(), te(u(
|
|
1575
|
-
key: `table_${
|
|
1576
|
-
colNames:
|
|
1577
|
-
head:
|
|
1578
|
-
body:
|
|
1579
|
-
config:
|
|
1590
|
+
(n(), te(u(Rt), {
|
|
1591
|
+
key: `table_${at.value}`,
|
|
1592
|
+
colNames: Ae.value.colNames,
|
|
1593
|
+
head: Ae.value.head,
|
|
1594
|
+
body: Ae.value.body,
|
|
1595
|
+
config: Ae.value.config,
|
|
1580
1596
|
title: e.value.table.useDialog ? "" : be.value.title,
|
|
1581
1597
|
withCloseButton: !e.value.table.useDialog,
|
|
1582
|
-
onClose:
|
|
1598
|
+
onClose: At
|
|
1583
1599
|
}, {
|
|
1584
1600
|
th: C(({ th: l }) => [
|
|
1585
1601
|
h("div", {
|
|
1586
1602
|
innerHTML: l,
|
|
1587
1603
|
style: { display: "flex", "align-items": "center" }
|
|
1588
|
-
}, null, 8,
|
|
1604
|
+
}, null, 8, bo)
|
|
1589
1605
|
]),
|
|
1590
1606
|
td: C(({ td: l }) => [
|
|
1591
|
-
|
|
1607
|
+
Pe(R(l.name ? l.name : isNaN(Number(l)) ? l.includes("%") ? l : u(G)(
|
|
1592
1608
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1593
1609
|
l,
|
|
1594
|
-
u(
|
|
1610
|
+
u(N)({
|
|
1595
1611
|
v: l,
|
|
1596
1612
|
s: "%",
|
|
1597
1613
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1598
1614
|
})
|
|
1599
|
-
) : u(
|
|
1615
|
+
) : u(G)(
|
|
1600
1616
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1601
1617
|
l,
|
|
1602
|
-
u(
|
|
1618
|
+
u(N)({
|
|
1603
1619
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1604
1620
|
v: l,
|
|
1605
1621
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1615,7 +1631,7 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1615
1631
|
e.value.table.useDialog ? {
|
|
1616
1632
|
name: "title",
|
|
1617
1633
|
fn: C(() => [
|
|
1618
|
-
|
|
1634
|
+
Pe(R(be.value.title), 1)
|
|
1619
1635
|
]),
|
|
1620
1636
|
key: "0"
|
|
1621
1637
|
} : void 0,
|
|
@@ -1625,9 +1641,9 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1625
1641
|
h("button", {
|
|
1626
1642
|
tabindex: "0",
|
|
1627
1643
|
class: "vue-ui-user-options-button",
|
|
1628
|
-
onClick:
|
|
1644
|
+
onClick: a[4] || (a[4] = (l) => Re(e.value.userOptions.callbacks.csv))
|
|
1629
1645
|
}, [
|
|
1630
|
-
|
|
1646
|
+
Te(u(Vt), {
|
|
1631
1647
|
name: "excel",
|
|
1632
1648
|
stroke: be.value.props.color
|
|
1633
1649
|
}, null, 8, ["stroke"])
|
|
@@ -1636,10 +1652,10 @@ const ta = ["id"], la = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
1636
1652
|
key: "1"
|
|
1637
1653
|
} : void 0
|
|
1638
1654
|
]), 1040)) : v("", !0),
|
|
1639
|
-
u(_e) ? (n(), te(
|
|
1640
|
-
], 46,
|
|
1655
|
+
u(_e) ? (n(), te(Hl, { key: 9 })) : v("", !0)
|
|
1656
|
+
], 46, oa));
|
|
1641
1657
|
}
|
|
1642
|
-
},
|
|
1658
|
+
}, Do = /* @__PURE__ */ aa(wo, [["__scopeId", "data-v-0abe812f"]]);
|
|
1643
1659
|
export {
|
|
1644
|
-
|
|
1660
|
+
Do as default
|
|
1645
1661
|
};
|