vue-data-ui 3.22.14 → 3.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
- package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/HillActions-BD9j_sOU.js +187 -0
- package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
- package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
- package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
- package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
- package/dist/Slicer-CIk57nL4.js +1163 -0
- package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
- package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
- package/dist/Title-BE3qg9xl.js +87 -0
- package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.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 +2 -0
- 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-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/composables.js +1 -1
- package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/exposedLib-C0DPCgFj.js +28 -0
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
- package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
- package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
- 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 +496 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
- package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
- package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
- package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
- package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
- package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
- package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
- package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
- package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
- package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
- package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
- package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
- package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
- package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
- package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
- package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
- package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
- package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
- package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
- package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
- package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
- package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
- package/dist/vue-ui-gauge-ByE_txav.js +953 -0
- package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
- package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
- package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
- package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
- package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
- package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
- package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
- package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
- package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
- package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
- package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
- package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
- package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
- package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
- package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
- package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
- package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
- package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
- package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
- package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
- package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
- package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
- package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
- package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
- package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
- package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
- package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
- package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
- package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
- package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
- package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
- package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
- package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +4 -4
- package/dist/Slicer-JdCzBeYM.js +0 -1149
- package/dist/Title-Thf71-8D.js +0 -87
- package/dist/exposedLib-CfZhN94x.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
- package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
- package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
- package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
- package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
- package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
- package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
- package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
- package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
- package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
- package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
- package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
- package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
- package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
- package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
- package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
- package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
- package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
- package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
- package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
- package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
- package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
- package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
- package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
- package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
- package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
- package/dist/vue-ui-table-DEhy61ln.js +0 -1339
- package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
- package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
- package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
- package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
- package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as y } from "./useConfig-
|
|
1
|
+
import { Bt as e, Jt as t, K as n, Kt as r, Mt as i, Pt as a, S as o, Vt as s, X as c, b as l, f as u, h as d, i as f, j as p, kt as m, nt as h, p as g, q as _, t as v } from "./lib-Bttd6u5E.js";
|
|
2
|
+
import { t as y } from "./useConfig-D3scuR88.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-oDYGTc5P.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 n = e ?? {}, i = t({
|
|
9
|
+
userConfig: n,
|
|
10
10
|
defaultConfig: ne
|
|
11
|
-
}),
|
|
12
|
-
if (!
|
|
13
|
-
...
|
|
14
|
-
customPalette:
|
|
11
|
+
}), o = i.theme;
|
|
12
|
+
if (!o) return {
|
|
13
|
+
...i,
|
|
14
|
+
customPalette: i.customPalette?.length ? i.customPalette : a
|
|
15
15
|
};
|
|
16
|
-
let
|
|
17
|
-
userConfig:
|
|
18
|
-
defaultConfig:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
let s = t({
|
|
17
|
+
userConfig: b[o] || {},
|
|
18
|
+
defaultConfig: i
|
|
19
|
+
}), c = t({
|
|
20
|
+
userConfig: n,
|
|
21
|
+
defaultConfig: s
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
|
-
...
|
|
25
|
-
customPalette:
|
|
24
|
+
...c,
|
|
25
|
+
customPalette: c.customPalette?.length ? c.customPalette : r[o] || a
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
function P(e, t = 0) {
|
|
@@ -45,7 +45,7 @@ function oe(e = [], t) {
|
|
|
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 r = e.source, i = e.value, a = (r?.color ?
|
|
48
|
+
let r = e.source, i = e.value, a = (r?.color ? o(r.color) : "") || n[t % n.length];
|
|
49
49
|
return {
|
|
50
50
|
...r,
|
|
51
51
|
id: r?.id ?? `donut_serie_${t}`,
|
|
@@ -117,7 +117,7 @@ function le({ dataset: e = [], config: t = {}, width: n = 512, height: r = 512,
|
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region src/svg/vue-ui-donut/render.js
|
|
120
|
-
var ue =
|
|
120
|
+
var ue = _();
|
|
121
121
|
function I() {
|
|
122
122
|
return ue;
|
|
123
123
|
}
|
|
@@ -211,7 +211,7 @@ function me(e, t) {
|
|
|
211
211
|
}
|
|
212
212
|
function he(e, t) {
|
|
213
213
|
let n = x(S(e.config, "layout.donut.rotation", 105.25), 105.25);
|
|
214
|
-
return
|
|
214
|
+
return m({ 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),
|
|
@@ -221,12 +221,12 @@ function he(e, t) {
|
|
|
221
221
|
seriesIndex: e.seriesIndex ?? t[n]?.seriesIndex ?? n
|
|
222
222
|
}));
|
|
223
223
|
}
|
|
224
|
-
function ge(
|
|
225
|
-
let
|
|
226
|
-
return
|
|
227
|
-
series:
|
|
228
|
-
center:
|
|
229
|
-
maxRadius: Math.min(
|
|
224
|
+
function ge(e, t) {
|
|
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 p({
|
|
227
|
+
series: r,
|
|
228
|
+
center: e.center,
|
|
229
|
+
maxRadius: Math.min(e.drawingArea.width, e.drawingArea.height) / 3,
|
|
230
230
|
hasGhost: !1
|
|
231
231
|
});
|
|
232
232
|
}
|
|
@@ -270,55 +270,55 @@ function ve(e) {
|
|
|
270
270
|
fill: k(i.color || r.color, j(t))
|
|
271
271
|
})), M("g", { "data-layer": "title" }, d.join(""));
|
|
272
272
|
}
|
|
273
|
-
function ye(
|
|
274
|
-
let { config: r } =
|
|
273
|
+
function ye(t, n) {
|
|
274
|
+
let { config: r } = t, i = [], a = !!S(r, "useGradient", !1), o = !!S(r, "layout.donut.useShadow", !1);
|
|
275
275
|
if (a) {
|
|
276
276
|
let a = E(r, "type", "classic"), o = x(S(r, "gradientIntensity", 30), 30);
|
|
277
|
-
if (a === "classic" && Number.isFinite(
|
|
278
|
-
let
|
|
279
|
-
i.push(M("radialGradient", { id: H(
|
|
277
|
+
if (a === "classic" && Number.isFinite(t.thickness / t.radius)) {
|
|
278
|
+
let n = V(r) ? 1 : t.thickness / t.radius;
|
|
279
|
+
i.push(M("radialGradient", { id: H(t) }, [
|
|
280
280
|
w("stop", {
|
|
281
281
|
offset: "0%",
|
|
282
|
-
"stop-color":
|
|
282
|
+
"stop-color": e(L(r), 0),
|
|
283
283
|
"stop-opacity": 0
|
|
284
284
|
}),
|
|
285
285
|
w("stop", {
|
|
286
|
-
offset: `${(1 -
|
|
287
|
-
"stop-color":
|
|
286
|
+
offset: `${(1 - n) * 100}%`,
|
|
287
|
+
"stop-color": e("#FFFFFF", 0),
|
|
288
288
|
"stop-opacity": 0
|
|
289
289
|
}),
|
|
290
290
|
w("stop", {
|
|
291
|
-
offset: `${(1 -
|
|
292
|
-
"stop-color":
|
|
291
|
+
offset: `${(1 - n / 2) * 100}%`,
|
|
292
|
+
"stop-color": e("#FFFFFF", o)
|
|
293
293
|
}),
|
|
294
294
|
w("stop", {
|
|
295
295
|
offset: "100%",
|
|
296
|
-
"stop-color":
|
|
296
|
+
"stop-color": e(L(r), 0),
|
|
297
297
|
"stop-opacity": 0
|
|
298
298
|
})
|
|
299
299
|
].join("")));
|
|
300
300
|
}
|
|
301
|
-
a === "polar" && n.forEach((
|
|
302
|
-
let
|
|
303
|
-
|
|
304
|
-
id: U(
|
|
305
|
-
cx: `${
|
|
306
|
-
cy: `${
|
|
301
|
+
a === "polar" && n.forEach((e, n) => {
|
|
302
|
+
let r = t.polarAreas?.[n];
|
|
303
|
+
r?.middlePoint && i.push(M("radialGradient", {
|
|
304
|
+
id: U(t, n),
|
|
305
|
+
cx: `${l(r.middlePoint.x / t.width * 100)}%`,
|
|
306
|
+
cy: `${l(r.middlePoint.y / t.height * 100)}%`,
|
|
307
307
|
r: "62%"
|
|
308
308
|
}, [w("stop", {
|
|
309
309
|
offset: "0%",
|
|
310
|
-
"stop-color":
|
|
310
|
+
"stop-color": s(e.color, .05),
|
|
311
311
|
"stop-opacity": o / 100
|
|
312
312
|
}), w("stop", {
|
|
313
313
|
offset: "100%",
|
|
314
|
-
"stop-color":
|
|
314
|
+
"stop-color": e.color
|
|
315
315
|
})].join("")));
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
if (o) {
|
|
319
|
-
let
|
|
319
|
+
let e = k(S(r, "layout.donut.shadowColor", "#000000"), "#000000"), n = x(S(r, "layout.donut.shadowOpacity", .2), .2), a = x(S(r, "layout.donut.shadowBlur", 6), 6), o = x(S(r, "layout.donut.shadowOffsetY", 3), 3);
|
|
320
320
|
i.push(M("filter", {
|
|
321
|
-
id: W(
|
|
321
|
+
id: W(t),
|
|
322
322
|
x: "-50%",
|
|
323
323
|
y: "-50%",
|
|
324
324
|
width: "200%",
|
|
@@ -327,7 +327,7 @@ function ye(e, n) {
|
|
|
327
327
|
dx: 0,
|
|
328
328
|
dy: o,
|
|
329
329
|
stdDeviation: a,
|
|
330
|
-
"flood-color":
|
|
330
|
+
"flood-color": e,
|
|
331
331
|
"flood-opacity": n
|
|
332
332
|
})].join("")));
|
|
333
333
|
}
|
|
@@ -388,21 +388,21 @@ function Ce(e, t, n) {
|
|
|
388
388
|
}), M("g", { "data-layer": "polar-slices" }, a.join(""));
|
|
389
389
|
}
|
|
390
390
|
function q(e, t, n = "layout.labels.value.rounding") {
|
|
391
|
-
let { config: r } = e, i = S(r, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {},
|
|
391
|
+
let { config: r } = e, i = S(r, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = c({
|
|
392
392
|
p: a.prefix ?? "",
|
|
393
393
|
v: t.value,
|
|
394
394
|
s: a.suffix ?? "",
|
|
395
395
|
r: x(S(r, n, o.rounding ?? 0), o.rounding ?? 0)
|
|
396
396
|
});
|
|
397
|
-
return
|
|
397
|
+
return f(o.formatter, t.value, s, { datapoint: t });
|
|
398
398
|
}
|
|
399
399
|
function J(e, t) {
|
|
400
|
-
let { config: n } = e, r = S(n, "layout.labels.percentage", {}), i = x(t.proportion, 0) * 100, a =
|
|
400
|
+
let { config: n } = e, r = S(n, "layout.labels.percentage", {}), i = x(t.proportion, 0) * 100, a = c({
|
|
401
401
|
v: i,
|
|
402
402
|
s: "%",
|
|
403
403
|
r: x(r.rounding, 0)
|
|
404
404
|
});
|
|
405
|
-
return
|
|
405
|
+
return f(r.formatter, i, a, { datapoint: t });
|
|
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,11 +434,11 @@ 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,
|
|
438
|
-
function
|
|
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, d = e.drawingArea.top + 16, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), m = i + (e.radius + 6), h = Q(e);
|
|
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 }) {
|
|
@@ -480,17 +480,17 @@ 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
|
-
let n =
|
|
486
|
+
let n = _(e);
|
|
487
487
|
return {
|
|
488
488
|
arc: e,
|
|
489
489
|
index: t,
|
|
490
490
|
midX: n.x,
|
|
491
491
|
midY: n.y,
|
|
492
|
-
inlineMarkerX:
|
|
493
|
-
inlineMarkerY:
|
|
492
|
+
inlineMarkerX: u(e).x,
|
|
493
|
+
inlineMarkerY: g(e) - 3.5,
|
|
494
494
|
labelHeight: y(e.name)
|
|
495
495
|
};
|
|
496
496
|
}
|
|
@@ -573,25 +573,25 @@ function Ee(e, t) {
|
|
|
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 ?? {},
|
|
576
|
+
let a = S(e.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = r?.labelX ?? u(t, !0, 12).x, l = r?.labelY ?? g(t), d = r?.textAnchor ?? u(t, !0, 12).anchor, { name: f } = Y(e, t), p = we(e, t), m = String(f).split(/\n/g), _ = f ? m.map((t, n) => M("tspan", {
|
|
577
577
|
class: "vue-data-ui-datalabel-name",
|
|
578
|
-
x: n === 0 ? void 0 :
|
|
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
|
-
}, h(t + (n ===
|
|
583
|
+
}, h(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
|
-
}, h(
|
|
588
|
+
}, h(p)) : "";
|
|
589
589
|
return M("text", {
|
|
590
590
|
"data-cy": `donut-label-inline-${n}`,
|
|
591
591
|
class: "vue-data-ui-datalabel-inline",
|
|
592
|
-
x:
|
|
593
|
-
y:
|
|
594
|
-
"text-anchor":
|
|
592
|
+
x: c,
|
|
593
|
+
y: l,
|
|
594
|
+
"text-anchor": d
|
|
595
595
|
}, `${_}${v}`);
|
|
596
596
|
}
|
|
597
597
|
function Oe(e, t) {
|
|
@@ -602,13 +602,13 @@ function Oe(e, t) {
|
|
|
602
602
|
let a = x(r.offset, 16), o = Ee(e, t), s = [];
|
|
603
603
|
return t.forEach((t, n) => {
|
|
604
604
|
if (!Z(e, t)) return;
|
|
605
|
-
let
|
|
606
|
-
if (X(e, t),
|
|
605
|
+
let c = o[n];
|
|
606
|
+
if (X(e, t), c) {
|
|
607
607
|
s.push(De({
|
|
608
608
|
state: e,
|
|
609
609
|
arc: t,
|
|
610
610
|
arcIndex: n,
|
|
611
|
-
smallArcLayout:
|
|
611
|
+
smallArcLayout: c,
|
|
612
612
|
fontSize: x(r.smallArcClusterFontSize, i)
|
|
613
613
|
}));
|
|
614
614
|
return;
|
|
@@ -618,16 +618,16 @@ function Oe(e, t) {
|
|
|
618
618
|
arc: t,
|
|
619
619
|
arcIndex: n,
|
|
620
620
|
smallArcLayout: {
|
|
621
|
-
labelX:
|
|
622
|
-
labelY:
|
|
623
|
-
textAnchor:
|
|
621
|
+
labelX: u(t, !1, a + i / 2).x,
|
|
622
|
+
labelY: g(t, a, a),
|
|
623
|
+
textAnchor: u(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
629
|
function ke(e, t, n = 42) {
|
|
630
|
-
return
|
|
630
|
+
return i({
|
|
631
631
|
initX: t.middlePoint.x,
|
|
632
632
|
initY: t.middlePoint.y,
|
|
633
633
|
offset: n,
|
|
@@ -706,8 +706,8 @@ function Me(e, t, r) {
|
|
|
706
706
|
}
|
|
707
707
|
function Ne(e, t, n = null) {
|
|
708
708
|
if (n?.connectorPath) return n.connectorPath;
|
|
709
|
-
let r = S(e.config, "layout.labels.dataLabels", {}), i = x(r.offset, 16);
|
|
710
|
-
return
|
|
709
|
+
let r = S(e.config, "layout.labels.dataLabels", {}), i = x(r.offset, 16), a = x(r.markerFlatLength, 12), o = Q(e);
|
|
710
|
+
return d(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 ?? u(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),
|
|
@@ -738,35 +738,35 @@ function Pe(e, t) {
|
|
|
738
738
|
function Fe(e, t, n) {
|
|
739
739
|
let r = S(e.config, "layout.labels.dataLabels", {});
|
|
740
740
|
if (!E(e.config, "dataLabels.show", r.show ?? !0) || !r.show) return "";
|
|
741
|
-
let
|
|
742
|
-
return t.forEach((t,
|
|
743
|
-
let
|
|
744
|
-
if (!
|
|
745
|
-
let
|
|
746
|
-
initX:
|
|
747
|
-
initY:
|
|
741
|
+
let a = [];
|
|
742
|
+
return t.forEach((t, o) => {
|
|
743
|
+
let s = n[o];
|
|
744
|
+
if (!s?.middlePoint || !Z(e, t)) return;
|
|
745
|
+
let c = i({
|
|
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 ${
|
|
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
755
|
stroke: t.color,
|
|
756
756
|
"stroke-width": x(r.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:
|
|
760
|
+
})), a.push(w("circle", {
|
|
761
|
+
"data-cy": `polar-label-marker-${o}`,
|
|
762
|
+
cx: c.x,
|
|
763
|
+
cy: c.y,
|
|
764
764
|
r: x(r.markerRadius, 3),
|
|
765
765
|
fill: t.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(e, t, n) {
|
|
|
778
778
|
if (E(e.config, "type", "classic") !== "classic" || V(e.config) || !t) return "";
|
|
779
779
|
let r = S(e.config, "layout.labels.hollow", {}), i = r.total ?? {}, a = r.average ?? {}, o = [];
|
|
780
780
|
if (i.show) {
|
|
781
|
-
let n = x(i.fontSize, 14), r = !!a.show,
|
|
781
|
+
let n = x(i.fontSize, 14), r = !!a.show, s = e.center.y - (r ? n : 0) + x(i.offsetY, 0), l = i.value ?? {}, u = x(l.fontSize, n), d = f(l.formatter, t, c({
|
|
782
782
|
p: l.prefix ?? "",
|
|
783
783
|
v: t,
|
|
784
784
|
s: l.suffix ?? "",
|
|
@@ -787,40 +787,40 @@ function Ie(e, t, n) {
|
|
|
787
787
|
o.push($(i.text ?? "", {
|
|
788
788
|
"data-cy": "hollow-total-name",
|
|
789
789
|
x: e.center.x,
|
|
790
|
-
y:
|
|
790
|
+
y: s,
|
|
791
791
|
fill: k(i.color, j(e.config)),
|
|
792
792
|
"font-size": n,
|
|
793
793
|
"font-weight": i.bold ? "700" : "400"
|
|
794
|
-
})), o.push($(
|
|
794
|
+
})), o.push($(d, {
|
|
795
795
|
"data-cy": "hollow-total-value",
|
|
796
796
|
x: e.center.x,
|
|
797
797
|
y: e.center.y + n - (r ? n : 0) + x(l.offsetY, 0),
|
|
798
798
|
fill: k(l.color, k(i.color, j(e.config))),
|
|
799
|
-
"font-size":
|
|
799
|
+
"font-size": u,
|
|
800
800
|
"font-weight": l.bold ? "700" : "400"
|
|
801
801
|
}));
|
|
802
802
|
}
|
|
803
803
|
if (a.show) {
|
|
804
|
-
let r = x(a.fontSize, 14),
|
|
805
|
-
p:
|
|
804
|
+
let r = x(a.fontSize, 14), s = !!i.show, l = t / Math.max(1, n.length), u = a.value ?? {}, d = x(u.fontSize, r), p = f(u.formatter, l, c({
|
|
805
|
+
p: u.prefix ?? "",
|
|
806
806
|
v: l,
|
|
807
|
-
s:
|
|
808
|
-
r: x(
|
|
807
|
+
s: u.suffix ?? "",
|
|
808
|
+
r: x(u.rounding, 0)
|
|
809
809
|
}), { average: l });
|
|
810
810
|
o.push($(a.text ?? "", {
|
|
811
811
|
"data-cy": "hollow-average-name",
|
|
812
812
|
x: e.center.x,
|
|
813
|
-
y: e.center.y + (
|
|
813
|
+
y: e.center.y + (s ? r : 0) + x(a.offsetY, 0),
|
|
814
814
|
fill: k(a.color, j(e.config)),
|
|
815
815
|
"font-size": r,
|
|
816
816
|
"font-weight": a.bold ? "700" : "400"
|
|
817
817
|
})), o.push($(p, {
|
|
818
818
|
"data-cy": "hollow-average-value",
|
|
819
819
|
x: e.center.x,
|
|
820
|
-
y: e.center.y + (
|
|
821
|
-
fill: k(
|
|
822
|
-
"font-size":
|
|
823
|
-
"font-weight":
|
|
820
|
+
y: e.center.y + (s ? r : 0) + r + x(u.offsetY, 0),
|
|
821
|
+
fill: k(u.color, k(a.color, j(e.config))),
|
|
822
|
+
"font-size": d,
|
|
823
|
+
"font-weight": u.bold ? "700" : "400"
|
|
824
824
|
}));
|
|
825
825
|
}
|
|
826
826
|
return o.filter(Boolean).length ? M("g", {
|
|
@@ -831,20 +831,20 @@ function Ie(e, t, n) {
|
|
|
831
831
|
function Le(e, t) {
|
|
832
832
|
let { config: n, center: r } = e, i = S(n, "layout.donut.labels.total", S(n, "layout.labels.total", {}));
|
|
833
833
|
if (!i.show || !Number.isFinite(t) || t <= 0) return "";
|
|
834
|
-
let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20),
|
|
835
|
-
return N(u(i.formatter, t, s({
|
|
834
|
+
let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20), s = k(i.color, j(n)), l = f(i.formatter, t, c({
|
|
836
835
|
p: a.prefix ?? "",
|
|
837
836
|
v: t,
|
|
838
837
|
s: a.suffix ?? "",
|
|
839
838
|
r: x(i.rounding, 0)
|
|
840
|
-
}), { total: t })
|
|
839
|
+
}), { total: t });
|
|
840
|
+
return N(l, {
|
|
841
841
|
"data-cy": "donut-total",
|
|
842
842
|
x: r.x,
|
|
843
843
|
y: r.y + o / 3,
|
|
844
844
|
"font-size": o,
|
|
845
845
|
"font-weight": i.bold ? "700" : "400",
|
|
846
846
|
"text-anchor": "middle",
|
|
847
|
-
fill:
|
|
847
|
+
fill: s
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
850
|
function Re(e, t) {
|
|
@@ -852,24 +852,24 @@ function Re(e, t) {
|
|
|
852
852
|
return n ? x(t.value, 0) / n * 100 : 0;
|
|
853
853
|
}
|
|
854
854
|
function ze(e, t) {
|
|
855
|
-
let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, a = r.value ?? {}, o =
|
|
855
|
+
let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, a = r.value ?? {}, o = c({
|
|
856
856
|
p: i.prefix ?? "",
|
|
857
857
|
v: t.value,
|
|
858
858
|
s: i.suffix ?? "",
|
|
859
859
|
r: x(n.roundingValue, a.rounding ?? 0)
|
|
860
860
|
});
|
|
861
|
-
return
|
|
861
|
+
return f(a.formatter, t.value, o, {
|
|
862
862
|
datapoint: t,
|
|
863
863
|
serie: t
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
866
|
function Be(e, t) {
|
|
867
|
-
let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}).percentage ?? {}, i = Re(e, t), a =
|
|
867
|
+
let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}).percentage ?? {}, i = Re(e, t), a = c({
|
|
868
868
|
v: i,
|
|
869
869
|
s: "%",
|
|
870
870
|
r: x(n.roundingPercentage, r.rounding ?? 0)
|
|
871
871
|
});
|
|
872
|
-
return
|
|
872
|
+
return f(r.formatter, i, a, {
|
|
873
873
|
datapoint: t,
|
|
874
874
|
serie: t
|
|
875
875
|
});
|
|
@@ -930,7 +930,8 @@ function We(e, t) {
|
|
|
930
930
|
}) ?? "" : n ?? "";
|
|
931
931
|
}
|
|
932
932
|
function Ge(e, t, n) {
|
|
933
|
-
|
|
933
|
+
let r = `${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${l(n)}.`;
|
|
934
|
+
return M("title", {}, h(r));
|
|
934
935
|
}
|
|
935
936
|
async function Ke(e) {
|
|
936
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({
|
|
@@ -940,7 +941,7 @@ async function Ke(e) {
|
|
|
940
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);
|
|
941
942
|
return `
|
|
942
943
|
<svg
|
|
943
|
-
xmlns="${
|
|
944
|
+
xmlns="${v}"
|
|
944
945
|
width="100%"
|
|
945
946
|
viewBox="0 0 ${n} ${r}"
|
|
946
947
|
role="img"
|