vue-data-ui 3.26.4 → 3.27.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/dist/{Arrow-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.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-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.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-geo.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-hill.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.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/{dom-to-png-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
- package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +212 -60
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
- package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
- package/dist/vue-ui-funnel-eVH871L3.js +0 -749
- package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
- package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
- package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
- package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
- package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
- package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
- package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
- package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
- package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
- package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
- package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
- package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
- package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
- package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { $ as e,
|
|
2
|
-
import { t as y } from "./useConfig-
|
|
1
|
+
import { $ as e, Bt as t, Ht as n, It as r, Jt as i, S as a, X as o, Y as s, Yt as c, b as l, en as u, f as d, h as f, i as p, j as m, nn as h, p as g, st as _, t as v } from "./lib-D4wK6ljP.js";
|
|
2
|
+
import { t as y } from "./useConfig-D_6ZrPMD.js";
|
|
3
3
|
import { t as b } from "./vue_ui_donut-BDGqG07h.js";
|
|
4
|
-
import { _ as x, a as S, c as C, d as w, g as T, i as E, l as D, n as O, o as k, p as A, r as j, s as ee, t as te, u as M, v as N } from "./render-common-
|
|
4
|
+
import { _ as x, a as S, c as C, d as w, g as T, i as E, l as D, n as O, o as k, p as A, r as j, s as ee, t as te, u as M, v as N } from "./render-common-BtfjXdkJ.js";
|
|
5
5
|
//#region src/svg/vue-ui-donut/create.js
|
|
6
6
|
var { vue_ui_donut: ne } = y();
|
|
7
7
|
function re({ config: e = {} } = {}) {
|
|
8
|
-
let
|
|
9
|
-
userConfig:
|
|
8
|
+
let t = e ?? {}, r = h({
|
|
9
|
+
userConfig: t,
|
|
10
10
|
defaultConfig: ne
|
|
11
11
|
}), i = r.theme;
|
|
12
12
|
if (!i) return {
|
|
13
13
|
...r,
|
|
14
|
-
customPalette: r.customPalette?.length ? r.customPalette :
|
|
14
|
+
customPalette: r.customPalette?.length ? r.customPalette : n
|
|
15
15
|
};
|
|
16
|
-
let
|
|
16
|
+
let a = h({
|
|
17
17
|
userConfig: b[i] || {},
|
|
18
18
|
defaultConfig: r
|
|
19
|
-
}),
|
|
20
|
-
userConfig:
|
|
21
|
-
defaultConfig:
|
|
19
|
+
}), o = h({
|
|
20
|
+
userConfig: t,
|
|
21
|
+
defaultConfig: a
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
|
-
...
|
|
25
|
-
customPalette:
|
|
24
|
+
...o,
|
|
25
|
+
customPalette: o.customPalette?.length ? o.customPalette : u[i] || n
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
function P(e, t = 0) {
|
|
@@ -39,26 +39,26 @@ function ae(e, t) {
|
|
|
39
39
|
return String(e?.name ?? e?.label ?? `Serie ${t + 1}`);
|
|
40
40
|
}
|
|
41
41
|
function oe(e = [], t) {
|
|
42
|
-
let
|
|
42
|
+
let r = Array.isArray(t.customPalette) ? t.customPalette : n;
|
|
43
43
|
return (Array.isArray(e) ? e : []).map((e, t) => ({
|
|
44
44
|
source: e,
|
|
45
45
|
sourceIndex: t,
|
|
46
46
|
value: ie(e)
|
|
47
47
|
})).filter((e) => Number.isFinite(e.value)).sort((e, t) => e.source?.ghost && !t.source?.ghost ? 1 : t.source?.ghost && !e.source?.ghost ? -1 : t.value - e.value).map((e, t) => {
|
|
48
|
-
let
|
|
48
|
+
let n = e.source, i = e.value, o = (n?.color ? a(n.color) : "") || r[t % r.length];
|
|
49
49
|
return {
|
|
50
|
-
...
|
|
51
|
-
id:
|
|
52
|
-
name: ae(
|
|
53
|
-
value:
|
|
54
|
-
absoluteValue: Math.abs(
|
|
55
|
-
absoluteValues: Array.isArray(
|
|
50
|
+
...n,
|
|
51
|
+
id: n?.id ?? `donut_serie_${t}`,
|
|
52
|
+
name: ae(n, t),
|
|
53
|
+
value: i,
|
|
54
|
+
absoluteValue: Math.abs(i),
|
|
55
|
+
absoluteValues: Array.isArray(n?.values) ? n.values : [i],
|
|
56
56
|
color: o,
|
|
57
57
|
index: t,
|
|
58
58
|
sourceIndex: e.sourceIndex,
|
|
59
|
-
patternIndex:
|
|
60
|
-
seriesIndex:
|
|
61
|
-
ghost: !!
|
|
59
|
+
patternIndex: n?.patternIndex ?? t,
|
|
60
|
+
seriesIndex: n?.seriesIndex ?? t,
|
|
61
|
+
ghost: !!n?.ghost
|
|
62
62
|
};
|
|
63
63
|
}).filter((e) => Number.isFinite(e.absoluteValue));
|
|
64
64
|
}
|
|
@@ -210,8 +210,8 @@ function me(e, t) {
|
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
function he(e, t) {
|
|
213
|
-
let
|
|
214
|
-
return
|
|
213
|
+
let n = x(S(e.config, "layout.donut.rotation", 105.25), 105.25);
|
|
214
|
+
return r({ series: t }, e.center.x, e.center.y, e.radius, e.radius, 1.99999, 2, 1, 360, n, V(e.config) ? e.radius : e.thickness).map((e, n) => ({
|
|
215
215
|
...e,
|
|
216
216
|
index: n,
|
|
217
217
|
color: k(e.color, t[n]?.color),
|
|
@@ -223,7 +223,7 @@ function he(e, t) {
|
|
|
223
223
|
}
|
|
224
224
|
function ge(e, t) {
|
|
225
225
|
let n = Math.max(1, ...t.map((e) => Math.abs(x(e.value, 0)))), r = t.map((e) => Math.abs(x(e.value, 0)) / n);
|
|
226
|
-
return
|
|
226
|
+
return m({
|
|
227
227
|
series: r,
|
|
228
228
|
center: e.center,
|
|
229
229
|
maxRadius: Math.min(e.drawingArea.width, e.drawingArea.height) / 3,
|
|
@@ -271,43 +271,43 @@ function ve(e) {
|
|
|
271
271
|
})), M("g", { "data-layer": "title" }, d.join(""));
|
|
272
272
|
}
|
|
273
273
|
function ye(e, t) {
|
|
274
|
-
let { config: n } = e,
|
|
274
|
+
let { config: n } = e, r = [], a = !!S(n, "useGradient", !1), o = !!S(n, "layout.donut.useShadow", !1);
|
|
275
275
|
if (a) {
|
|
276
276
|
let a = E(n, "type", "classic"), o = x(S(n, "gradientIntensity", 30), 30);
|
|
277
277
|
if (a === "classic" && Number.isFinite(e.thickness / e.radius)) {
|
|
278
278
|
let t = V(n) ? 1 : e.thickness / e.radius;
|
|
279
|
-
|
|
279
|
+
r.push(M("radialGradient", { id: H(e) }, [
|
|
280
280
|
w("stop", {
|
|
281
281
|
offset: "0%",
|
|
282
|
-
"stop-color":
|
|
282
|
+
"stop-color": i(L(n), 0),
|
|
283
283
|
"stop-opacity": 0
|
|
284
284
|
}),
|
|
285
285
|
w("stop", {
|
|
286
286
|
offset: `${(1 - t) * 100}%`,
|
|
287
|
-
"stop-color":
|
|
287
|
+
"stop-color": i("#FFFFFF", 0),
|
|
288
288
|
"stop-opacity": 0
|
|
289
289
|
}),
|
|
290
290
|
w("stop", {
|
|
291
291
|
offset: `${(1 - t / 2) * 100}%`,
|
|
292
|
-
"stop-color":
|
|
292
|
+
"stop-color": i("#FFFFFF", o)
|
|
293
293
|
}),
|
|
294
294
|
w("stop", {
|
|
295
295
|
offset: "100%",
|
|
296
|
-
"stop-color":
|
|
296
|
+
"stop-color": i(L(n), 0),
|
|
297
297
|
"stop-opacity": 0
|
|
298
298
|
})
|
|
299
299
|
].join("")));
|
|
300
300
|
}
|
|
301
301
|
a === "polar" && t.forEach((t, n) => {
|
|
302
|
-
let
|
|
303
|
-
|
|
302
|
+
let i = e.polarAreas?.[n];
|
|
303
|
+
i?.middlePoint && r.push(M("radialGradient", {
|
|
304
304
|
id: U(e, n),
|
|
305
|
-
cx: `${
|
|
306
|
-
cy: `${
|
|
305
|
+
cx: `${l(i.middlePoint.x / e.width * 100)}%`,
|
|
306
|
+
cy: `${l(i.middlePoint.y / e.height * 100)}%`,
|
|
307
307
|
r: "62%"
|
|
308
308
|
}, [w("stop", {
|
|
309
309
|
offset: "0%",
|
|
310
|
-
"stop-color":
|
|
310
|
+
"stop-color": c(t.color, .05),
|
|
311
311
|
"stop-opacity": o / 100
|
|
312
312
|
}), w("stop", {
|
|
313
313
|
offset: "100%",
|
|
@@ -316,8 +316,8 @@ function ye(e, t) {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
if (o) {
|
|
319
|
-
let t = k(S(n, "layout.donut.shadowColor", "#000000"), "#000000"),
|
|
320
|
-
|
|
319
|
+
let t = k(S(n, "layout.donut.shadowColor", "#000000"), "#000000"), i = x(S(n, "layout.donut.shadowOpacity", .2), .2), a = x(S(n, "layout.donut.shadowBlur", 6), 6), o = x(S(n, "layout.donut.shadowOffsetY", 3), 3);
|
|
320
|
+
r.push(M("filter", {
|
|
321
321
|
id: W(e),
|
|
322
322
|
x: "-50%",
|
|
323
323
|
y: "-50%",
|
|
@@ -328,10 +328,10 @@ function ye(e, t) {
|
|
|
328
328
|
dy: o,
|
|
329
329
|
stdDeviation: a,
|
|
330
330
|
"flood-color": t,
|
|
331
|
-
"flood-opacity":
|
|
331
|
+
"flood-opacity": i
|
|
332
332
|
})].join("")));
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return r.length ? M("defs", { "data-layer": "definitions" }, r.join("")) : "";
|
|
335
335
|
}
|
|
336
336
|
function be(e, t) {
|
|
337
337
|
return t.color;
|
|
@@ -394,7 +394,7 @@ function q(t, n, r = "layout.labels.value.rounding") {
|
|
|
394
394
|
s: o.suffix ?? "",
|
|
395
395
|
r: x(S(i, r, s.rounding ?? 0), s.rounding ?? 0)
|
|
396
396
|
});
|
|
397
|
-
return
|
|
397
|
+
return p(s.formatter, n.value, c, { datapoint: n });
|
|
398
398
|
}
|
|
399
399
|
function J(t, n) {
|
|
400
400
|
let { config: r } = t, i = S(r, "layout.labels.percentage", {}), a = x(n.proportion, 0) * 100, o = e({
|
|
@@ -402,7 +402,7 @@ function J(t, n) {
|
|
|
402
402
|
s: "%",
|
|
403
403
|
r: x(i.rounding, 0)
|
|
404
404
|
});
|
|
405
|
-
return
|
|
405
|
+
return p(i.formatter, a, o, { datapoint: n });
|
|
406
406
|
}
|
|
407
407
|
function Y(e, t) {
|
|
408
408
|
let n = S(e.config, "layout.labels", {}), r = !!n.name?.show, i = !!(n.value?.show ?? !0), a = !!(n.percentage?.show ?? !0);
|
|
@@ -434,23 +434,23 @@ function Q(e) {
|
|
|
434
434
|
return !!S(e.config, "layout.curvedMarkers", S(e.config, "layout.donut.curvedMarkers", !1));
|
|
435
435
|
}
|
|
436
436
|
function Ee(e, t) {
|
|
437
|
-
let n = S(e.config, "layout.labels.dataLabels", {}), r = {}, i = e.center.x, a = e.center.y, o = x(n.smallArcClusterFontSize ?? n.fontSize, 10), s = o / 3,
|
|
437
|
+
let n = S(e.config, "layout.labels.dataLabels", {}), r = {}, i = e.center.x, a = e.center.y, o = x(n.smallArcClusterFontSize ?? n.fontSize, 10), s = o / 3, c = o * 1.5, u = e.drawingArea.top + 16, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), m = i + (e.radius + 6), h = Q(e);
|
|
438
438
|
function _(e) {
|
|
439
439
|
return {
|
|
440
|
-
x:
|
|
441
|
-
y:
|
|
440
|
+
x: l(e.center?.endX ?? e.endX),
|
|
441
|
+
y: l(e.center?.endY ?? e.endY)
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
function v({ midX: e, midY: t, bandX: n, bandY: r }) {
|
|
445
|
-
if (!
|
|
446
|
-
let o = n < i ? -1 : 1, s = n - e, c = r - t, l = Math.sqrt(s * s + c * c) || 1, u = e - i, d = t - a, f = Math.sqrt(u * u + d * d) || 1, p = u / f, m = d / f,
|
|
445
|
+
if (!h) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
|
|
446
|
+
let o = n < i ? -1 : 1, s = n - e, c = r - t, l = Math.sqrt(s * s + c * c) || 1, u = e - i, d = t - a, f = Math.sqrt(u * u + d * d) || 1, p = u / f, m = d / f, g = f + 9;
|
|
447
447
|
function _({ x: e, y: t }) {
|
|
448
448
|
let n = e - i, r = t - a, o = Math.sqrt(n * n + r * r) || 1;
|
|
449
|
-
if (o >=
|
|
449
|
+
if (o >= g) return {
|
|
450
450
|
x: e,
|
|
451
451
|
y: t
|
|
452
452
|
};
|
|
453
|
-
let s =
|
|
453
|
+
let s = g / o;
|
|
454
454
|
return {
|
|
455
455
|
x: i + n * s,
|
|
456
456
|
y: a + r * s
|
|
@@ -472,7 +472,7 @@ function Ee(e, t) {
|
|
|
472
472
|
let b = _({
|
|
473
473
|
x: e + p * v,
|
|
474
474
|
y: t + m * v
|
|
475
|
-
}), x = i + o * Math.max(Math.abs(n - i),
|
|
475
|
+
}), x = i + o * Math.max(Math.abs(n - i), g), S = _({
|
|
476
476
|
x: n - o * Math.min(y, Math.abs(x - n) * .75),
|
|
477
477
|
y: r
|
|
478
478
|
});
|
|
@@ -480,7 +480,7 @@ function Ee(e, t) {
|
|
|
480
480
|
}
|
|
481
481
|
function y(e) {
|
|
482
482
|
let t = String(e ?? "").split(/\n/g);
|
|
483
|
-
return
|
|
483
|
+
return c + Math.max(0, t.length - 1) * o * 1.2;
|
|
484
484
|
}
|
|
485
485
|
function b({ arc: e, index: t }) {
|
|
486
486
|
let n = _(e);
|
|
@@ -489,8 +489,8 @@ function Ee(e, t) {
|
|
|
489
489
|
index: t,
|
|
490
490
|
midX: n.x,
|
|
491
491
|
midY: n.y,
|
|
492
|
-
inlineMarkerX:
|
|
493
|
-
inlineMarkerY:
|
|
492
|
+
inlineMarkerX: d(e).x,
|
|
493
|
+
inlineMarkerY: g(e) - 3.5,
|
|
494
494
|
labelHeight: y(e.name)
|
|
495
495
|
};
|
|
496
496
|
}
|
|
@@ -550,13 +550,13 @@ function Ee(e, t) {
|
|
|
550
550
|
candidateList: D.TL,
|
|
551
551
|
side: "left",
|
|
552
552
|
bandMarkerX: p,
|
|
553
|
-
startY:
|
|
553
|
+
startY: u,
|
|
554
554
|
direction: "down"
|
|
555
555
|
}), E({
|
|
556
556
|
candidateList: D.TR,
|
|
557
557
|
side: "right",
|
|
558
|
-
bandMarkerX:
|
|
559
|
-
startY:
|
|
558
|
+
bandMarkerX: m,
|
|
559
|
+
startY: u,
|
|
560
560
|
direction: "down"
|
|
561
561
|
}), D.BL.length > 1 && E({
|
|
562
562
|
candidateList: D.BL,
|
|
@@ -567,32 +567,32 @@ function Ee(e, t) {
|
|
|
567
567
|
}), D.BR.length > 1 && E({
|
|
568
568
|
candidateList: D.BR,
|
|
569
569
|
side: "right",
|
|
570
|
-
bandMarkerX:
|
|
570
|
+
bandMarkerX: m,
|
|
571
571
|
startY: f,
|
|
572
572
|
direction: "up"
|
|
573
573
|
}), r;
|
|
574
574
|
}
|
|
575
575
|
function De({ state: e, arc: t, arcIndex: n, smallArcLayout: r, fontSize: i }) {
|
|
576
|
-
let a = S(e.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = r?.labelX ??
|
|
576
|
+
let a = S(e.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = r?.labelX ?? d(t, !0, 12).x, l = r?.labelY ?? g(t), u = r?.textAnchor ?? d(t, !0, 12).anchor, { name: f } = Y(e, t), p = we(e, t), m = String(f).split(/\n/g), h = f ? m.map((t, n) => M("tspan", {
|
|
577
577
|
class: "vue-data-ui-datalabel-name",
|
|
578
578
|
x: n === 0 ? void 0 : c,
|
|
579
579
|
dy: n === 0 ? void 0 : i * 1.2,
|
|
580
580
|
fill: k(s.color, j(e.config)),
|
|
581
581
|
"font-size": i,
|
|
582
582
|
"font-weight": s.bold ? "700" : "400"
|
|
583
|
-
},
|
|
583
|
+
}, _(t + (n === m.length - 1 ? " " : "")))).join("") : "", v = p ? M("tspan", {
|
|
584
584
|
class: "vue-data-ui-datalabel-value",
|
|
585
585
|
fill: k(o.color, j(e.config)),
|
|
586
586
|
"font-size": i,
|
|
587
587
|
"font-weight": o.bold ? "700" : "400"
|
|
588
|
-
}, p
|
|
588
|
+
}, _(p)) : "";
|
|
589
589
|
return M("text", {
|
|
590
590
|
"data-cy": `donut-label-inline-${n}`,
|
|
591
591
|
class: "vue-data-ui-datalabel-inline",
|
|
592
592
|
x: c,
|
|
593
|
-
y:
|
|
594
|
-
"text-anchor":
|
|
595
|
-
}, `${
|
|
593
|
+
y: l,
|
|
594
|
+
"text-anchor": u
|
|
595
|
+
}, `${h}${v}`);
|
|
596
596
|
}
|
|
597
597
|
function Oe(e, t) {
|
|
598
598
|
let n = S(e.config, "layout.labels", {}), r = n.dataLabels ?? {};
|
|
@@ -618,19 +618,19 @@ function Oe(e, t) {
|
|
|
618
618
|
arc: t,
|
|
619
619
|
arcIndex: n,
|
|
620
620
|
smallArcLayout: {
|
|
621
|
-
labelX:
|
|
622
|
-
labelY:
|
|
623
|
-
textAnchor:
|
|
621
|
+
labelX: d(t, !1, a + i / 2).x,
|
|
622
|
+
labelY: g(t, a, a),
|
|
623
|
+
textAnchor: d(t).anchor
|
|
624
624
|
},
|
|
625
625
|
fontSize: i
|
|
626
626
|
}));
|
|
627
627
|
}), s.length ? M("g", { "data-layer": "data-labels" }, s.join("")) : "";
|
|
628
628
|
}
|
|
629
|
-
function ke(e,
|
|
630
|
-
return
|
|
631
|
-
initX:
|
|
632
|
-
initY:
|
|
633
|
-
offset:
|
|
629
|
+
function ke(e, n, r = 42) {
|
|
630
|
+
return t({
|
|
631
|
+
initX: n.middlePoint.x,
|
|
632
|
+
initY: n.middlePoint.y,
|
|
633
|
+
offset: r,
|
|
634
634
|
centerX: e.center.x,
|
|
635
635
|
centerY: e.center.y
|
|
636
636
|
});
|
|
@@ -644,14 +644,14 @@ function je(e, t, n, r) {
|
|
|
644
644
|
fill: k(a.color, j(e.config)),
|
|
645
645
|
"font-size": s,
|
|
646
646
|
"font-weight": a.bold ? "700" : "400"
|
|
647
|
-
},
|
|
647
|
+
}, _(String(X(e, t).replace(/\n/g, " / ")))), u = o.show ? String(t.name ?? "").split(/\n/g).map((t, r) => M("tspan", {
|
|
648
648
|
class: "vue-data-ui-datalabel-name",
|
|
649
649
|
x: r === 0 ? void 0 : n,
|
|
650
650
|
dy: r === 0 ? void 0 : c * 1.2,
|
|
651
651
|
fill: k(o.color, j(e.config)),
|
|
652
652
|
"font-size": c,
|
|
653
653
|
"font-weight": o.bold ? "700" : "400"
|
|
654
|
-
},
|
|
654
|
+
}, _(t))).join("") : "";
|
|
655
655
|
return r === "end" ? `${u}${l}` : `${l}${u}`;
|
|
656
656
|
}
|
|
657
657
|
function Me(e, t, n) {
|
|
@@ -661,15 +661,15 @@ function Me(e, t, n) {
|
|
|
661
661
|
return t.forEach((t, r) => {
|
|
662
662
|
let i = n[r];
|
|
663
663
|
if (!i || !Z(e, t)) return;
|
|
664
|
-
let a = ke(e, i, 42),
|
|
664
|
+
let a = ke(e, i, 42), p = Ae(e, a);
|
|
665
665
|
if (l) {
|
|
666
666
|
f.push(M("text", {
|
|
667
667
|
"data-cy": "polar-label-inline",
|
|
668
668
|
class: "vue-data-ui-datalabel-inline",
|
|
669
669
|
x: a.x,
|
|
670
670
|
y: a.y,
|
|
671
|
-
"text-anchor":
|
|
672
|
-
}, je(e, t, a.x,
|
|
671
|
+
"text-anchor": p
|
|
672
|
+
}, je(e, t, a.x, p)));
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
675
675
|
f.push(M("text", {
|
|
@@ -679,14 +679,14 @@ function Me(e, t, n) {
|
|
|
679
679
|
y: a.y,
|
|
680
680
|
"font-size": u,
|
|
681
681
|
"font-weight": o.bold ? "700" : "400",
|
|
682
|
-
"text-anchor":
|
|
682
|
+
"text-anchor": p,
|
|
683
683
|
fill: valueFill
|
|
684
684
|
}, te({
|
|
685
685
|
content: X(e, t),
|
|
686
686
|
x: a.x,
|
|
687
687
|
fontSize: u,
|
|
688
688
|
fill: valueFill,
|
|
689
|
-
textAnchor:
|
|
689
|
+
textAnchor: p
|
|
690
690
|
}))), c.show && f.push(M("text", {
|
|
691
691
|
"data-cy": "polar-label-name",
|
|
692
692
|
class: "vue-data-ui-datalabel-name",
|
|
@@ -694,10 +694,10 @@ function Me(e, t, n) {
|
|
|
694
694
|
y: a.y + d * 1.2,
|
|
695
695
|
"font-size": d,
|
|
696
696
|
"font-weight": c.bold ? "700" : "400",
|
|
697
|
-
"text-anchor":
|
|
697
|
+
"text-anchor": p,
|
|
698
698
|
fill: k(c.color, j(e.config))
|
|
699
699
|
}, s({
|
|
700
|
-
content:
|
|
700
|
+
content: _(String(t.name ?? "")),
|
|
701
701
|
fontSize: d,
|
|
702
702
|
fill: k(c.color, j(e.config)),
|
|
703
703
|
x: a.x
|
|
@@ -707,7 +707,7 @@ function Me(e, t, n) {
|
|
|
707
707
|
function Ne(e, t, n = null) {
|
|
708
708
|
if (n?.connectorPath) return n.connectorPath;
|
|
709
709
|
let r = S(e.config, "layout.labels.dataLabels", {}), i = x(r.offset, 16), a = x(r.markerFlatLength, 12), o = Q(e);
|
|
710
|
-
return
|
|
710
|
+
return f(t, !1, i, i, !1, !1, 0, a, o);
|
|
711
711
|
}
|
|
712
712
|
function Pe(e, t) {
|
|
713
713
|
let n = S(e.config, "layout.labels.dataLabels", {});
|
|
@@ -726,8 +726,8 @@ function Pe(e, t) {
|
|
|
726
726
|
fill: "none"
|
|
727
727
|
})), i.push(w("circle", {
|
|
728
728
|
"data-cy": `donut-label-marker-${a}`,
|
|
729
|
-
cx: o?.markerX ??
|
|
730
|
-
cy: o?.markerY ??
|
|
729
|
+
cx: o?.markerX ?? d(t).x,
|
|
730
|
+
cy: o?.markerY ?? g(t) - 3.5,
|
|
731
731
|
r: x(n.markerRadius, 3),
|
|
732
732
|
fill: t.color,
|
|
733
733
|
stroke: L(e.config),
|
|
@@ -735,38 +735,38 @@ function Pe(e, t) {
|
|
|
735
735
|
})));
|
|
736
736
|
}), i.length ? M("g", { "data-layer": "label-markers" }, i.join("")) : "";
|
|
737
737
|
}
|
|
738
|
-
function Fe(e,
|
|
739
|
-
let
|
|
740
|
-
if (!E(e.config, "dataLabels.show",
|
|
741
|
-
let
|
|
742
|
-
return
|
|
743
|
-
let
|
|
744
|
-
if (!
|
|
745
|
-
let
|
|
746
|
-
initX:
|
|
747
|
-
initY:
|
|
738
|
+
function Fe(e, n, r) {
|
|
739
|
+
let i = S(e.config, "layout.labels.dataLabels", {});
|
|
740
|
+
if (!E(e.config, "dataLabels.show", i.show ?? !0) || !i.show) return "";
|
|
741
|
+
let a = [];
|
|
742
|
+
return n.forEach((n, o) => {
|
|
743
|
+
let s = r[o];
|
|
744
|
+
if (!s?.middlePoint || !Z(e, n)) return;
|
|
745
|
+
let c = t({
|
|
746
|
+
initX: s.middlePoint.x,
|
|
747
|
+
initY: s.middlePoint.y,
|
|
748
748
|
offset: 24,
|
|
749
749
|
centerX: e.center.x,
|
|
750
750
|
centerY: e.center.y
|
|
751
751
|
});
|
|
752
|
-
|
|
753
|
-
"data-cy": `polar-marker-${
|
|
754
|
-
d: `M ${
|
|
755
|
-
stroke:
|
|
756
|
-
"stroke-width": x(
|
|
752
|
+
a.push(w("path", {
|
|
753
|
+
"data-cy": `polar-marker-${o}`,
|
|
754
|
+
d: `M ${c.x},${c.y} ${s.middlePoint.x},${s.middlePoint.y}`,
|
|
755
|
+
stroke: n.color,
|
|
756
|
+
"stroke-width": x(i.markerStrokeWidth, 1),
|
|
757
757
|
"stroke-linecap": "round",
|
|
758
758
|
"stroke-linejoin": "round",
|
|
759
759
|
fill: "none"
|
|
760
|
-
})),
|
|
761
|
-
"data-cy": `polar-label-marker-${
|
|
762
|
-
cx:
|
|
763
|
-
cy:
|
|
764
|
-
r: x(
|
|
765
|
-
fill:
|
|
760
|
+
})), a.push(w("circle", {
|
|
761
|
+
"data-cy": `polar-label-marker-${o}`,
|
|
762
|
+
cx: c.x,
|
|
763
|
+
cy: c.y,
|
|
764
|
+
r: x(i.markerRadius, 3),
|
|
765
|
+
fill: n.color,
|
|
766
766
|
stroke: L(e.config),
|
|
767
767
|
"stroke-width": 1
|
|
768
768
|
}));
|
|
769
|
-
}),
|
|
769
|
+
}), a.length ? M("g", { "data-layer": "polar-label-markers" }, a.join("")) : "";
|
|
770
770
|
}
|
|
771
771
|
function $(e, t) {
|
|
772
772
|
return e == null || e === "" ? "" : N(e, {
|
|
@@ -778,7 +778,7 @@ function Ie(t, n, r) {
|
|
|
778
778
|
if (E(t.config, "type", "classic") !== "classic" || V(t.config) || !n) return "";
|
|
779
779
|
let i = S(t.config, "layout.labels.hollow", {}), a = i.total ?? {}, o = i.average ?? {}, s = [];
|
|
780
780
|
if (a.show) {
|
|
781
|
-
let r = x(a.fontSize, 14), i = !!o.show, c = t.center.y - (i ? r : 0) + x(a.offsetY, 0), l = a.value ?? {}, u = x(l.fontSize, r),
|
|
781
|
+
let r = x(a.fontSize, 14), i = !!o.show, c = t.center.y - (i ? r : 0) + x(a.offsetY, 0), l = a.value ?? {}, u = x(l.fontSize, r), d = p(l.formatter, n, e({
|
|
782
782
|
p: l.prefix ?? "",
|
|
783
783
|
v: n,
|
|
784
784
|
s: l.suffix ?? "",
|
|
@@ -791,7 +791,7 @@ function Ie(t, n, r) {
|
|
|
791
791
|
fill: k(a.color, j(t.config)),
|
|
792
792
|
"font-size": r,
|
|
793
793
|
"font-weight": a.bold ? "700" : "400"
|
|
794
|
-
})), s.push($(
|
|
794
|
+
})), s.push($(d, {
|
|
795
795
|
"data-cy": "hollow-total-value",
|
|
796
796
|
x: t.center.x,
|
|
797
797
|
y: t.center.y + r - (i ? r : 0) + x(l.offsetY, 0),
|
|
@@ -801,7 +801,7 @@ function Ie(t, n, r) {
|
|
|
801
801
|
}));
|
|
802
802
|
}
|
|
803
803
|
if (o.show) {
|
|
804
|
-
let i = x(o.fontSize, 14), c = !!a.show, l = n / Math.max(1, r.length), u = o.value ?? {},
|
|
804
|
+
let i = x(o.fontSize, 14), c = !!a.show, l = n / Math.max(1, r.length), u = o.value ?? {}, d = x(u.fontSize, i), f = p(u.formatter, l, e({
|
|
805
805
|
p: u.prefix ?? "",
|
|
806
806
|
v: l,
|
|
807
807
|
s: u.suffix ?? "",
|
|
@@ -814,12 +814,12 @@ function Ie(t, n, r) {
|
|
|
814
814
|
fill: k(o.color, j(t.config)),
|
|
815
815
|
"font-size": i,
|
|
816
816
|
"font-weight": o.bold ? "700" : "400"
|
|
817
|
-
})), s.push($(
|
|
817
|
+
})), s.push($(f, {
|
|
818
818
|
"data-cy": "hollow-average-value",
|
|
819
819
|
x: t.center.x,
|
|
820
820
|
y: t.center.y + (c ? i : 0) + i + x(u.offsetY, 0),
|
|
821
821
|
fill: k(u.color, k(o.color, j(t.config))),
|
|
822
|
-
"font-size":
|
|
822
|
+
"font-size": d,
|
|
823
823
|
"font-weight": u.bold ? "700" : "400"
|
|
824
824
|
}));
|
|
825
825
|
}
|
|
@@ -831,7 +831,7 @@ function Ie(t, n, r) {
|
|
|
831
831
|
function Le(t, n) {
|
|
832
832
|
let { config: r, center: i } = t, a = S(r, "layout.donut.labels.total", S(r, "layout.labels.total", {}));
|
|
833
833
|
if (!a.show || !Number.isFinite(n) || n <= 0) return "";
|
|
834
|
-
let o = S(r, "layout.labels.dataLabels", {}), s = x(a.fontSize, 20), c = k(a.color, j(r)), l =
|
|
834
|
+
let o = S(r, "layout.labels.dataLabels", {}), s = x(a.fontSize, 20), c = k(a.color, j(r)), l = p(a.formatter, n, e({
|
|
835
835
|
p: o.prefix ?? "",
|
|
836
836
|
v: n,
|
|
837
837
|
s: o.suffix ?? "",
|
|
@@ -858,7 +858,7 @@ function ze(t, n) {
|
|
|
858
858
|
s: a.suffix ?? "",
|
|
859
859
|
r: x(r.roundingValue, o.rounding ?? 0)
|
|
860
860
|
});
|
|
861
|
-
return
|
|
861
|
+
return p(o.formatter, n.value, s, {
|
|
862
862
|
datapoint: n,
|
|
863
863
|
serie: n
|
|
864
864
|
});
|
|
@@ -869,7 +869,7 @@ function Be(t, n) {
|
|
|
869
869
|
s: "%",
|
|
870
870
|
r: x(r.roundingPercentage, i.rounding ?? 0)
|
|
871
871
|
});
|
|
872
|
-
return
|
|
872
|
+
return p(i.formatter, a, o, {
|
|
873
873
|
datapoint: n,
|
|
874
874
|
serie: n
|
|
875
875
|
});
|
|
@@ -930,8 +930,8 @@ function We(e, t) {
|
|
|
930
930
|
}) ?? "" : n ?? "";
|
|
931
931
|
}
|
|
932
932
|
function Ge(e, t, n) {
|
|
933
|
-
let r = `${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${
|
|
934
|
-
return M("title", {},
|
|
933
|
+
let r = `${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${l(n)}.`;
|
|
934
|
+
return M("title", {}, _(r));
|
|
935
935
|
}
|
|
936
936
|
async function Ke(e) {
|
|
937
937
|
let t = e.config, n = x(e.width, S(t, "width", 512)), r = x(e.height, S(t, "height", 512)), i = R(e), a = z(i), o = me({
|
|
@@ -941,7 +941,7 @@ async function Ke(e) {
|
|
|
941
941
|
}, i), s = he(o, i), c = ge(o, i), l = E(t, "type", "classic"), u = a > 0 && s.some((e) => x(e.proportion, 0) > 0);
|
|
942
942
|
return `
|
|
943
943
|
<svg
|
|
944
|
-
xmlns="${
|
|
944
|
+
xmlns="${v}"
|
|
945
945
|
width="100%"
|
|
946
946
|
viewBox="0 0 ${n} ${r}"
|
|
947
947
|
role="img"
|