vue-data-ui 2.4.1 → 2.4.2
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 +44 -44
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +18 -16
- package/dist/types/vue-data-ui.d.ts +18 -16
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { D as
|
|
7
|
-
import
|
|
8
|
-
import { u as
|
|
9
|
-
import { _ as
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { computed as j, ref as S, watch as We, onMounted as Ge, openBlock as n, createElementBlock as i, normalizeClass as Ce, normalizeStyle as I, createBlock as V, createCommentVNode as y, unref as c, createSlots as Ve, withCtx as D, renderSlot as T, normalizeProps as Z, guardReactiveProps as q, createVNode as Ue, createElementVNode as u, Fragment as _, renderList as m, toDisplayString as P, createTextVNode as Ee, nextTick as He, pushScopeId as Ze, popScopeId as qe } from "vue";
|
|
2
|
+
import { u as Xe, c as Fe, t as Re, a as Ye, p as Q, b as Je, d as Ke, o as Qe, e as ee, g as ie, l as U, m as Me, f as z, X as et, s as g, h as te, i as le, j as Pe, k as O, n as oe, q as tt, r as lt } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { _ as ot } from "./Title-5VmBwT4i.js";
|
|
4
|
+
import { u as st, U as at } from "./usePrinter-BEeNAqS5.js";
|
|
5
|
+
import nt from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
6
|
+
import { D as rt } from "./DataTable-DTk7C4Pr.js";
|
|
7
|
+
import ut from "./vue-ui-accordion-DspS4q3f.js";
|
|
8
|
+
import { u as Se } from "./useNestedProp-Cox0K0Y5.js";
|
|
9
|
+
import { _ as it } from "./PackageVersion-CvCRsT5_.js";
|
|
10
|
+
import { P as dt } from "./PenAndPaper-Jb0pLt3G.js";
|
|
11
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const se = (E) => (Ze("data-v-987596fd"), E = E(), qe(), E), ht = ["id"], vt = {
|
|
13
|
+
key: 1,
|
|
13
14
|
style: "width:100%;background:transparent"
|
|
14
|
-
},
|
|
15
|
+
}, ft = ["xmlns", "viewBox"], pt = ["id"], yt = ["stop-color"], kt = ["stop-color"], gt = ["id"], $t = ["stop-color"], _t = ["stop-color"], mt = ["id"], xt = ["stop-color"], bt = ["stop-color"], wt = ["id"], Ct = ["stop-color"], Ft = ["stop-color"], Mt = ["stop-color"], Pt = { key: 0 }, St = ["id"], jt = ["stop-color"], Tt = ["stop-color"], zt = ["id"], Dt = ["stop-color"], Nt = ["stop-color"], Bt = ["id"], It = ["stop-color"], Ot = ["stop-color"], At = ["id"], Lt = /* @__PURE__ */ se(() => /* @__PURE__ */ u("stop", {
|
|
15
16
|
offset: "0%",
|
|
16
17
|
"stop-color": "#FFFFFF"
|
|
17
|
-
}, null, -1)),
|
|
18
|
+
}, null, -1)), Wt = /* @__PURE__ */ se(() => /* @__PURE__ */ u("stop", {
|
|
18
19
|
offset: "100%",
|
|
19
20
|
"stop-color": "#FFFFFF33"
|
|
20
|
-
}, null, -1)),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
],
|
|
21
|
+
}, null, -1)), Gt = [
|
|
22
|
+
Lt,
|
|
23
|
+
Wt
|
|
24
|
+
], Vt = ["x", "y", "font-size", "font-weight", "fill"], Ut = ["x", "y"], Et = ["d", "stroke"], Ht = ["d", "stroke"], Zt = { key: 3 }, qt = { key: 0 }, Xt = ["stroke-dasharray", "d", "stroke", "stroke-width"], Rt = ["stroke-dasharray", "d", "stroke", "stroke-width"], Yt = ["stroke-dasharray", "d", "stroke", "stroke-width"], Jt = ["stroke-dasharray", "d", "stroke", "stroke-width"], Kt = { key: 1 }, Qt = ["d", "stroke", "stroke-width", "fill"], el = ["d", "stroke", "stroke-width", "fill"], tl = ["d", "stroke", "stroke-width", "fill"], ll = { key: 2 }, ol = ["d", "fill", "onMouseenter", "onClick"], sl = ["d", "fill", "onMouseenter", "onClick"], al = ["d", "fill", "onMouseenter", "onClick"], nl = ["d", "onMouseenter", "onClick"], rl = ["d"], ul = ["d", "stroke"], il = ["onClick"], dl = ["stroke", "d"], cl = ["cx", "cy", "fill", "stroke"], hl = ["x", "y", "width", "height"], vl = { key: 1 }, fl = ["d", "stroke"], pl = ["d", "fill", "stroke"], yl = ["id"], kl = ["stop-color"], gl = /* @__PURE__ */ se(() => /* @__PURE__ */ u("stop", {
|
|
24
25
|
offset: "77%",
|
|
25
26
|
"stop-color": "#FFFFFF20"
|
|
26
|
-
}, null, -1)),
|
|
27
|
+
}, null, -1)), $l = ["stop-color"], _l = ["cx", "cy", "fill"], ml = ["cx", "cy", "fill"], xl = { key: 0 }, bl = ["text-anchor", "x", "y", "fill", "font-size"], wl = ["text-anchor", "x", "y", "fill", "font-size"], Cl = { key: 2 }, Fl = ["d", "fill", "stroke"], Ml = { key: 4 }, Pl = { key: 0 }, Sl = ["stroke-dasharray", "d", "stroke", "stroke-width"], jl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Tl = ["stroke-dasharray", "d", "stroke", "stroke-width"], zl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Dl = ["d", "stroke", "stroke-width", "fill"], Nl = ["d", "stroke", "stroke-width", "fill"], Bl = { key: 1 }, Il = ["onClick"], Ol = ["id"], Al = ["stop-color"], Ll = ["stop-color"], Wl = ["id"], Gl = ["stop-color"], Vl = ["stop-color"], Ul = ["stop-color"], El = ["stop-color"], Hl = ["stop-color"], Zl = ["onMouseenter", "onClick", "d", "fill"], ql = ["onMouseenter", "onClick", "d"], Xl = ["onMouseenter", "onClick", "d", "fill"], Rl = ["onClick"], Yl = ["stroke", "d"], Jl = ["cx", "cy", "fill", "stroke"], Kl = ["x", "y", "width", "height"], Ql = { key: 1 }, eo = ["d", "stroke"], to = ["d", "fill", "stroke"], lo = ["id"], oo = ["stop-color"], so = /* @__PURE__ */ se(() => /* @__PURE__ */ u("stop", {
|
|
27
28
|
offset: "77%",
|
|
28
29
|
"stop-color": "#FFFFFF20"
|
|
29
|
-
}, null, -1)),
|
|
30
|
-
key:
|
|
30
|
+
}, null, -1)), ao = ["stop-color"], no = ["cx", "cy", "fill"], ro = ["cx", "cy", "fill"], uo = { key: 0 }, io = ["text-anchor", "x", "y", "fill", "font-size"], co = ["text-anchor", "x", "y", "fill", "font-size"], ho = { key: 2 }, vo = ["d", "fill", "stroke"], fo = {
|
|
31
|
+
key: 4,
|
|
31
32
|
class: "vue-data-ui-watermark"
|
|
32
|
-
},
|
|
33
|
+
}, po = ["innerHTML"], yo = {
|
|
33
34
|
__name: "vue-ui-3d-bar",
|
|
34
35
|
props: {
|
|
35
36
|
config: {
|
|
@@ -46,33 +47,33 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
emits: ["selectDatapoint"],
|
|
49
|
-
setup(
|
|
50
|
-
const $ =
|
|
51
|
-
get: () =>
|
|
50
|
+
setup(E, { expose: je, emit: X }) {
|
|
51
|
+
const $ = E, { vue_ui_3d_bar: Te } = Xe(), R = j(() => !!$.dataset && Object.keys($.dataset).length), x = S(Fe()), ze = S(null), ae = S(null), A = S(!1), de = S(0), ce = S(0), t = j({
|
|
52
|
+
get: () => he(),
|
|
52
53
|
set: (a) => a
|
|
53
54
|
});
|
|
54
|
-
function
|
|
55
|
-
const a =
|
|
55
|
+
function he() {
|
|
56
|
+
const a = Se({
|
|
56
57
|
userConfig: $.config,
|
|
57
|
-
defaultConfig:
|
|
58
|
+
defaultConfig: Te
|
|
58
59
|
});
|
|
59
60
|
return a.theme ? {
|
|
60
|
-
...
|
|
61
|
-
userConfig:
|
|
61
|
+
...Se({
|
|
62
|
+
userConfig: Re.vue_ui_3d_bar[a.theme] || $.config,
|
|
62
63
|
defaultConfig: a
|
|
63
64
|
}),
|
|
64
|
-
customPalette:
|
|
65
|
+
customPalette: Ye[a.theme] || Q
|
|
65
66
|
} : a;
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
-
t.value =
|
|
68
|
+
We(() => $.config, (a) => {
|
|
69
|
+
t.value = he(), ke(), de.value += 1, ce.value += 1;
|
|
69
70
|
}, { deep: !0 });
|
|
70
|
-
const { isPrinting:
|
|
71
|
+
const { isPrinting: ve, isImaging: fe, generatePdf: pe, generateImage: ye } = st({
|
|
71
72
|
elementId: `3d_bar_${x.value}`,
|
|
72
73
|
fileName: t.value.style.chart.title.text || "vue-ui-3d-bar"
|
|
73
|
-
}),
|
|
74
|
+
}), De = j(() => Je(t.value.customPalette)), Y = S({
|
|
74
75
|
showTable: t.value.table.show
|
|
75
|
-
}), F =
|
|
76
|
+
}), F = j(() => $.dataset.series && $.dataset.series.length), o = j(() => ({
|
|
76
77
|
height: t.value.style.chart.box.dimensions.height,
|
|
77
78
|
width: t.value.style.chart.box.dimensions.width,
|
|
78
79
|
absoluteWidth: t.value.style.chart.box.dimensions.width * (F.value ? 2 : 1),
|
|
@@ -81,25 +82,25 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
81
82
|
left: t.value.style.chart.box.dimensions.left,
|
|
82
83
|
right: t.value.style.chart.box.dimensions.right,
|
|
83
84
|
perspective: t.value.style.chart.box.dimensions.perspective
|
|
84
|
-
})), C =
|
|
85
|
+
})), C = j(() => {
|
|
85
86
|
if (F.value) {
|
|
86
|
-
const a = $.dataset.series.map((l) => l.value || 0).reduce((l,
|
|
87
|
+
const a = $.dataset.series.map((l) => l.value || 0).reduce((l, r) => l + r, 0), s = $.dataset.series.map((l, r) => ({
|
|
87
88
|
...l,
|
|
88
|
-
id:
|
|
89
|
+
id: Fe(),
|
|
89
90
|
proportion: (l.value || 0) / a,
|
|
90
|
-
color:
|
|
91
|
+
color: Ke(l.color) || De.value[r] || Q[r] || Q[r % Q.length],
|
|
91
92
|
breakdown: l.breakdown ? l.breakdown.sort((d, k) => k.value - d.value) : null
|
|
92
|
-
})).sort((l,
|
|
93
|
+
})).sort((l, r) => r.value - l.value), e = [];
|
|
93
94
|
let h = 0;
|
|
94
95
|
for (let l = 0; l < s.length; l += 1)
|
|
95
96
|
e.push({
|
|
96
97
|
...s[l],
|
|
97
|
-
fill:
|
|
98
|
+
fill: Ne(h, s[l].proportion, s[l].breakdown, s[l].color)
|
|
98
99
|
}), h += s[l].proportion;
|
|
99
100
|
return e;
|
|
100
101
|
}
|
|
101
102
|
return null;
|
|
102
|
-
}),
|
|
103
|
+
}), N = j(() => ({
|
|
103
104
|
right: `M${o.value.width / 2},${o.value.top} ${o.value.width - o.value.right}, ${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
|
|
104
105
|
left: `M${o.value.width / 2},${o.value.top} ${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective} ${o.value.width / 2},${o.value.height - o.value.bottom}`,
|
|
105
106
|
side: `M${o.value.width / 2},${o.value.height - o.value.bottom} ${o.value.width / 2},${o.value.top + o.value.perspective * 2}`,
|
|
@@ -108,36 +109,36 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
108
109
|
tubeLeft: `M${o.value.left},${o.value.top + o.value.perspective} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
109
110
|
tubeRight: `M${o.value.width - o.value.right},${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
110
111
|
tubeBottom: `M${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} C ${o.value.width - o.value.right},${o.value.height} ${o.value.left},${o.value.height} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`
|
|
111
|
-
})),
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
})), W = S(t.value.style.chart.animation.use ? 0 : $.dataset.percentage);
|
|
113
|
+
Ge(() => {
|
|
114
|
+
ke();
|
|
114
115
|
let a = 0, s = t.value.style.chart.animation.speed, e = 5e-3 * t.value.style.chart.animation.acceleration;
|
|
115
116
|
function h() {
|
|
116
|
-
|
|
117
|
+
W.value += s + a, a += e, W.value < $.dataset.percentage ? requestAnimationFrame(h) : W.value = $.dataset.percentage;
|
|
117
118
|
}
|
|
118
|
-
t.value.style.chart.animation.use && (
|
|
119
|
+
t.value.style.chart.animation.use && (W.value = 0, h());
|
|
119
120
|
});
|
|
120
|
-
function
|
|
121
|
-
|
|
121
|
+
function ke() {
|
|
122
|
+
Qe($.dataset) ? ee({
|
|
122
123
|
componentName: "VueUi3dBar",
|
|
123
124
|
type: "dataset"
|
|
124
125
|
}) : $.dataset.series ? $.dataset.series.forEach((a, s) => {
|
|
125
|
-
|
|
126
|
+
ie({
|
|
126
127
|
datasetObject: a,
|
|
127
128
|
requiredAttributes: ["name", "value"]
|
|
128
129
|
}).forEach((e) => {
|
|
129
|
-
|
|
130
|
+
ee({
|
|
130
131
|
componentName: "VueUi3dBar",
|
|
131
132
|
type: "datasetSerieAttribute",
|
|
132
133
|
property: e,
|
|
133
134
|
index: s
|
|
134
135
|
});
|
|
135
136
|
}), a.breakdown && a.breakdown.forEach((e, h) => {
|
|
136
|
-
|
|
137
|
+
ie({
|
|
137
138
|
datasetObject: e,
|
|
138
139
|
requiredAttributes: ["name", "value"]
|
|
139
140
|
}).forEach((l) => {
|
|
140
|
-
|
|
141
|
+
ee({
|
|
141
142
|
componentName: "VueUi3dBar",
|
|
142
143
|
type: "datasetSerieAttribute",
|
|
143
144
|
property: l,
|
|
@@ -145,28 +146,28 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
145
146
|
});
|
|
146
147
|
});
|
|
147
148
|
});
|
|
148
|
-
}) :
|
|
149
|
+
}) : ie({
|
|
149
150
|
datasetObject: $.dataset,
|
|
150
151
|
requiredAttributes: ["percentage"]
|
|
151
152
|
}).forEach((a) => {
|
|
152
|
-
|
|
153
|
+
ee({
|
|
153
154
|
componentName: "VueUi3dBar",
|
|
154
155
|
type: "datasetAttribute",
|
|
155
156
|
property: a
|
|
156
157
|
});
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
-
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width:
|
|
161
|
-
let
|
|
162
|
-
return
|
|
163
|
-
...
|
|
164
|
-
value:
|
|
165
|
-
color:
|
|
166
|
-
})),
|
|
160
|
+
function Ne(a, s, e, h) {
|
|
161
|
+
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: r, height: d, bottom: k, right: w, left: f, perspective: p } = o.value, v = k + l * a, ue = d - v - p - l * s / 2, Oe = ue > o.value.height / 2 ? "top" : "bottom", me = 64, Ae = !!e;
|
|
162
|
+
let xe = null, be = null;
|
|
163
|
+
return Ae && (e = e.map((we, Le) => ({
|
|
164
|
+
...we,
|
|
165
|
+
value: we.value || 0,
|
|
166
|
+
color: U(h, Le / e.length)
|
|
167
|
+
})), xe = Me(
|
|
167
168
|
{ series: e },
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
r + o.value.absoluteWidth / 4 - 14,
|
|
170
|
+
Oe === "top" ? ue - me : ue + me,
|
|
170
171
|
28,
|
|
171
172
|
28,
|
|
172
173
|
1.99999,
|
|
@@ -175,9 +176,9 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
175
176
|
360,
|
|
176
177
|
105.25,
|
|
177
178
|
14
|
|
178
|
-
),
|
|
179
|
+
), be = Me(
|
|
179
180
|
{ series: e },
|
|
180
|
-
|
|
181
|
+
r - w + 20,
|
|
181
182
|
d - v - p - l * s / 2,
|
|
182
183
|
6,
|
|
183
184
|
6,
|
|
@@ -188,79 +189,79 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
188
189
|
105.25,
|
|
189
190
|
6
|
|
190
191
|
)), {
|
|
191
|
-
donut:
|
|
192
|
-
miniDonut:
|
|
192
|
+
donut: xe,
|
|
193
|
+
miniDonut: be,
|
|
193
194
|
sidePointer: {
|
|
194
|
-
x:
|
|
195
|
+
x: r - w,
|
|
195
196
|
y: d - v - p - l * s / 2,
|
|
196
197
|
topY: d - v - p - l * s,
|
|
197
198
|
height: l * s
|
|
198
199
|
},
|
|
199
|
-
apexBottom: { y: d - v, x:
|
|
200
|
-
apexTop: { y: d - v - l * s, x:
|
|
201
|
-
right: `M${
|
|
202
|
-
left: `M${
|
|
203
|
-
liningTop: `M${f},${d - v - p - l * s} ${
|
|
204
|
-
liningTopShade: `M${f},${d - v - p - l * s - 0.5} ${
|
|
205
|
-
top: `M${
|
|
206
|
-
tubeTop: `M${f},${d - v - l * s - p} C ${f},${d - v - l * s - p * 2.5} ${
|
|
207
|
-
bottomTubeTop: `M ${
|
|
200
|
+
apexBottom: { y: d - v, x: r / 2 },
|
|
201
|
+
apexTop: { y: d - v - l * s, x: r / 2 },
|
|
202
|
+
right: `M${r / 2},${d - v} ${r / 2},${d - v - l * s} ${r - w},${d - v - p - l * s} ${r - w},${d - v - p}Z`,
|
|
203
|
+
left: `M${r / 2},${d - v} ${r / 2},${d - v - l * s} ${f}, ${d - v - p - l * s} ${f},${d - v - p}Z`,
|
|
204
|
+
liningTop: `M${f},${d - v - p - l * s} ${r / 2},${d - v - l * s} ${r - w},${d - v - p - l * s}`,
|
|
205
|
+
liningTopShade: `M${f},${d - v - p - l * s - 0.5} ${r / 2},${d - v - l * s - 0.5} ${r - w},${d - v - p - l * s - 0.5}`,
|
|
206
|
+
top: `M${r / 2},${d - v - l * s} ${f},${d - v - p - l * s} ${r / 2},${d - v - p * 2 - l * s} ${r - w},${d - v - p - l * s} Z`,
|
|
207
|
+
tubeTop: `M${f},${d - v - l * s - p} C ${f},${d - v - l * s - p * 2.5} ${r - w},${d - v - l * s - p * 2.5} ${r - w},${d - v - l * s - p} C ${r - w},${d - v - l * s + p / 2} ${f},${d - v - l * s + p / 2} ${f},${d - v - l * s - p}`,
|
|
208
|
+
bottomTubeTop: `M ${r - w - 0.5},${d - v - p} C ${r - w - 0.5},${d - v + p / 2} ${f},${d - v + p / 2} ${f + 0.5},${d - v - p}`,
|
|
208
209
|
tubeBody: `M
|
|
209
210
|
${f},${d - v - l * s - p}
|
|
210
211
|
C ${f},${d - v - l * s + p / 2}
|
|
211
|
-
${
|
|
212
|
-
${
|
|
213
|
-
L${
|
|
212
|
+
${r - w},${d - v - l * s + p / 2}
|
|
213
|
+
${r - w},${d - v - l * s - p}
|
|
214
|
+
L${r - w},${d - v - p}
|
|
214
215
|
C
|
|
215
|
-
${
|
|
216
|
+
${r - w},${d - v + p / 2}
|
|
216
217
|
${f},${d - v + p / 2}
|
|
217
218
|
${f},${d - v - p}Z`
|
|
218
219
|
};
|
|
219
220
|
}
|
|
220
|
-
const
|
|
221
|
-
const a =
|
|
221
|
+
const H = j(() => {
|
|
222
|
+
const a = W.value / 100, s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: e, height: h, bottom: l, right: r, left: d, perspective: k } = o.value, f = l + s * 0;
|
|
222
223
|
return {
|
|
223
|
-
right: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${e -
|
|
224
|
+
right: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${e - r},${h - f - k - s * a} ${e - r},${h - f - k}Z`,
|
|
224
225
|
left: `M${e / 2},${h - f} ${e / 2},${h - f - s * a} ${d}, ${h - f - k - s * a} ${d},${h - f - k}Z`,
|
|
225
|
-
top: `M${e / 2},${h - f - s * a} ${d},${h - f - k - s * a} ${e / 2},${h - f - k * 2 - s * a} ${e -
|
|
226
|
-
tubeTop: `M${d},${h - f - s * a - k} C ${d},${h - f - s * a - k * 2.5} ${e -
|
|
226
|
+
top: `M${e / 2},${h - f - s * a} ${d},${h - f - k - s * a} ${e / 2},${h - f - k * 2 - s * a} ${e - r},${h - f - k - s * a} Z`,
|
|
227
|
+
tubeTop: `M${d},${h - f - s * a - k} C ${d},${h - f - s * a - k * 2.5} ${e - r},${h - f - s * a - k * 2.5} ${e - r},${h - f - s * a - k} C ${e - r},${h - f - s * a + k / 2} ${d},${h - f - s * a + k / 2} ${d},${h - f - s * a - k}`,
|
|
227
228
|
tubeBody: `M
|
|
228
229
|
${d},${h - f - s * a - k}
|
|
229
230
|
C ${d},${h - f - s * a + k / 2}
|
|
230
|
-
${e -
|
|
231
|
-
${e -
|
|
232
|
-
L${e -
|
|
231
|
+
${e - r},${h - f - s * a + k / 2}
|
|
232
|
+
${e - r},${h - f - s * a - k}
|
|
233
|
+
L${e - r},${h - k * 1.5}
|
|
233
234
|
C
|
|
234
|
-
${e -
|
|
235
|
+
${e - r},${h}
|
|
235
236
|
${d},${h}
|
|
236
237
|
${d},${h - f - k}Z`
|
|
237
238
|
};
|
|
238
|
-
}), b =
|
|
239
|
+
}), b = S(null);
|
|
239
240
|
function M(a, s = !1) {
|
|
240
|
-
|
|
241
|
+
X("selectDatapoint", a), s || (b.value = a.id), s && A.value && (A.value = !1), s && !A.value && (A.value = !0);
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
243
|
+
function L() {
|
|
244
|
+
A.value || (b.value = null);
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
-
const h = $.dataset.series.map((d) => d.value || 0).reduce((d, k) => d + k, 0), l = isNaN(a.value / h) ? 0 : a.value / h * 100,
|
|
247
|
-
return e ?
|
|
246
|
+
function G(a, s, e = !1) {
|
|
247
|
+
const h = $.dataset.series.map((d) => d.value || 0).reduce((d, k) => d + k, 0), l = isNaN(a.value / h) ? 0 : a.value / h * 100, r = isNaN(a.value / ge(s)) ? 0 : a.value / ge(s) * 100;
|
|
248
|
+
return e ? r : l.toFixed(0) + "%";
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
+
function ge(a) {
|
|
250
251
|
return [...a].map((s) => s.value).reduce((s, e) => s + e, 0);
|
|
251
252
|
}
|
|
252
|
-
const
|
|
253
|
-
function
|
|
254
|
-
|
|
253
|
+
const ne = S(!1);
|
|
254
|
+
function Be(a) {
|
|
255
|
+
ne.value = a;
|
|
255
256
|
}
|
|
256
|
-
function
|
|
257
|
+
function Ie() {
|
|
257
258
|
return F.value ? C.value : $.dataset.percentage;
|
|
258
259
|
}
|
|
259
|
-
const
|
|
260
|
+
const B = j(() => {
|
|
260
261
|
if (F.value) {
|
|
261
262
|
const a = C.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{ name: e.name, color: e.color }, ...e.breakdown.map((h, l) => ({
|
|
262
263
|
name: h.name,
|
|
263
|
-
color:
|
|
264
|
+
color: U(e.color, l / e.breakdown.length)
|
|
264
265
|
}))] : {
|
|
265
266
|
name: e.name,
|
|
266
267
|
color: e.color
|
|
@@ -269,33 +270,33 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
269
270
|
} else
|
|
270
271
|
return null;
|
|
271
272
|
});
|
|
272
|
-
function
|
|
273
|
+
function $e() {
|
|
273
274
|
if (!F.value) {
|
|
274
275
|
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
275
276
|
return;
|
|
276
277
|
}
|
|
277
|
-
|
|
278
|
-
const a = C.value.map((l) => l.value).reduce((l,
|
|
278
|
+
He(() => {
|
|
279
|
+
const a = C.value.map((l) => l.value).reduce((l, r) => l + r, 0), s = B.value.head.map((l, r) => [[
|
|
279
280
|
l.name
|
|
280
|
-
], [
|
|
281
|
-
|
|
281
|
+
], [B.value.body[r]], [isNaN(B.value.body[r] / a) ? "-" : B.value.body[r] / a * 100]]), e = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(s), h = tt(e);
|
|
282
|
+
lt({ csvContent: h, title: t.value.style.chart.title.text || "vue-ui-3d-bar" });
|
|
282
283
|
});
|
|
283
284
|
}
|
|
284
|
-
const
|
|
285
|
-
const a = C.value.map((
|
|
285
|
+
const J = j(() => {
|
|
286
|
+
const a = C.value.map((r) => r.value).reduce((r, d) => r + d, 0), s = [
|
|
286
287
|
' <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>',
|
|
287
|
-
|
|
288
|
+
z({ p: t.value.style.chart.legend.prefix, v: a, s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue }),
|
|
288
289
|
"100%"
|
|
289
|
-
], e =
|
|
290
|
-
const k =
|
|
290
|
+
], e = B.value.head.map((r, d) => {
|
|
291
|
+
const k = z({ p: t.value.style.chart.legend.prefix, v: B.value.body[d], s: t.value.style.chart.legend.suffix, r: t.value.table.td.roundingValue });
|
|
291
292
|
return [
|
|
292
293
|
{
|
|
293
|
-
color:
|
|
294
|
-
name:
|
|
294
|
+
color: r.color,
|
|
295
|
+
name: r.name
|
|
295
296
|
},
|
|
296
297
|
k,
|
|
297
|
-
isNaN(
|
|
298
|
-
v:
|
|
298
|
+
isNaN(B.value.body[d] / a) ? "-" : z({
|
|
299
|
+
v: B.value.body[d] / a * 100,
|
|
299
300
|
s: "%",
|
|
300
301
|
r: t.value.table.td.roundingPercentage
|
|
301
302
|
})
|
|
@@ -325,25 +326,38 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
325
326
|
config: h
|
|
326
327
|
};
|
|
327
328
|
});
|
|
328
|
-
function
|
|
329
|
-
|
|
329
|
+
function _e() {
|
|
330
|
+
Y.value.showTable = !Y.value.showTable;
|
|
330
331
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
332
|
+
const K = S(!1);
|
|
333
|
+
function re() {
|
|
334
|
+
K.value = !K.value;
|
|
335
|
+
}
|
|
336
|
+
return je({
|
|
337
|
+
generateCsv: $e,
|
|
338
|
+
generatePdf: pe,
|
|
339
|
+
generateImage: ye,
|
|
340
|
+
getData: Ie,
|
|
341
|
+
toggleTable: _e,
|
|
342
|
+
toggleAnnotator: re
|
|
343
|
+
}), (a, s) => (n(), i("div", {
|
|
338
344
|
ref_key: "bar3dChart",
|
|
339
|
-
ref:
|
|
340
|
-
class:
|
|
341
|
-
style:
|
|
345
|
+
ref: ae,
|
|
346
|
+
class: Ce("vue-ui-3d-bar"),
|
|
347
|
+
style: I(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
342
348
|
id: `3d_bar_${x.value}`
|
|
343
349
|
}, [
|
|
344
|
-
t.value.
|
|
345
|
-
|
|
346
|
-
|
|
350
|
+
t.value.userOptions.buttons.annotator ? (n(), V(dt, {
|
|
351
|
+
key: 0,
|
|
352
|
+
parent: ae.value,
|
|
353
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
354
|
+
color: t.value.style.chart.color,
|
|
355
|
+
active: K.value,
|
|
356
|
+
onClose: re
|
|
357
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
358
|
+
t.value.style.chart.title.text ? (n(), i("div", vt, [
|
|
359
|
+
(n(), V(ot, {
|
|
360
|
+
key: `title_${de.value}`,
|
|
347
361
|
config: {
|
|
348
362
|
title: {
|
|
349
363
|
cy: "3dBar-div-title",
|
|
@@ -356,14 +370,14 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
356
370
|
}
|
|
357
371
|
}, null, 8, ["config"]))
|
|
358
372
|
])) : y("", !0),
|
|
359
|
-
t.value.userOptions.show &&
|
|
360
|
-
key:
|
|
373
|
+
t.value.userOptions.show && R.value ? (n(), V(at, {
|
|
374
|
+
key: 2,
|
|
361
375
|
ref_key: "details",
|
|
362
|
-
ref:
|
|
376
|
+
ref: ze,
|
|
363
377
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
364
378
|
color: t.value.style.chart.color,
|
|
365
|
-
isPrinting: c(
|
|
366
|
-
isImaging: c(
|
|
379
|
+
isPrinting: c(ve),
|
|
380
|
+
isImaging: c(fe),
|
|
367
381
|
uid: x.value,
|
|
368
382
|
hasPdf: t.value.userOptions.buttons.pdf,
|
|
369
383
|
hasTable: !!F.value && t.value.userOptions.buttons.table,
|
|
@@ -371,58 +385,68 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
371
385
|
hasImg: t.value.userOptions.buttons.img,
|
|
372
386
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
373
387
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
374
|
-
chartElement:
|
|
388
|
+
chartElement: ae.value,
|
|
375
389
|
position: t.value.userOptions.position,
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
390
|
+
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
391
|
+
isAnnotation: K.value,
|
|
392
|
+
onToggleFullscreen: Be,
|
|
393
|
+
onGeneratePdf: c(pe),
|
|
394
|
+
onGenerateCsv: $e,
|
|
395
|
+
onGenerateImage: c(ye),
|
|
396
|
+
onToggleTable: _e,
|
|
397
|
+
onToggleAnnotator: re
|
|
398
|
+
}, Ve({ _: 2 }, [
|
|
382
399
|
a.$slots.optionPdf ? {
|
|
383
400
|
name: "optionPdf",
|
|
384
|
-
fn:
|
|
385
|
-
|
|
401
|
+
fn: D(() => [
|
|
402
|
+
T(a.$slots, "optionPdf", {}, void 0, !0)
|
|
386
403
|
]),
|
|
387
404
|
key: "0"
|
|
388
405
|
} : void 0,
|
|
389
406
|
a.$slots.optionCsv ? {
|
|
390
407
|
name: "optionCsv",
|
|
391
|
-
fn:
|
|
392
|
-
|
|
408
|
+
fn: D(() => [
|
|
409
|
+
T(a.$slots, "optionCsv", {}, void 0, !0)
|
|
393
410
|
]),
|
|
394
411
|
key: "1"
|
|
395
412
|
} : void 0,
|
|
396
413
|
a.$slots.optionImg ? {
|
|
397
414
|
name: "optionImg",
|
|
398
|
-
fn:
|
|
399
|
-
|
|
415
|
+
fn: D(() => [
|
|
416
|
+
T(a.$slots, "optionImg", {}, void 0, !0)
|
|
400
417
|
]),
|
|
401
418
|
key: "2"
|
|
402
419
|
} : void 0,
|
|
403
420
|
a.$slots.optionTable ? {
|
|
404
421
|
name: "optionTable",
|
|
405
|
-
fn:
|
|
406
|
-
|
|
422
|
+
fn: D(() => [
|
|
423
|
+
T(a.$slots, "optionTable", {}, void 0, !0)
|
|
407
424
|
]),
|
|
408
425
|
key: "3"
|
|
409
426
|
} : void 0,
|
|
410
427
|
a.$slots.optionFullscreen ? {
|
|
411
428
|
name: "optionFullscreen",
|
|
412
|
-
fn:
|
|
413
|
-
|
|
429
|
+
fn: D(({ toggleFullscreen: e, isFullscreen: h }) => [
|
|
430
|
+
T(a.$slots, "optionFullscreen", Z(q({ toggleFullscreen: e, isFullscreen: h })), void 0, !0)
|
|
414
431
|
]),
|
|
415
432
|
key: "4"
|
|
433
|
+
} : void 0,
|
|
434
|
+
a.$slots.optionAnnotator ? {
|
|
435
|
+
name: "optionAnnotator",
|
|
436
|
+
fn: D(({ toggleAnnotator: e, isAnnotator: h }) => [
|
|
437
|
+
T(a.$slots, "optionAnnotator", Z(q({ toggleAnnotator: e, isAnnotator: h })), void 0, !0)
|
|
438
|
+
]),
|
|
439
|
+
key: "5"
|
|
416
440
|
} : void 0
|
|
417
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
418
|
-
|
|
419
|
-
key:
|
|
420
|
-
xmlns: c(
|
|
421
|
-
class:
|
|
441
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
442
|
+
R.value ? (n(), i("svg", {
|
|
443
|
+
key: 3,
|
|
444
|
+
xmlns: c(et),
|
|
445
|
+
class: Ce({ "vue-data-ui-fullscreen--on": ne.value, "vue-data-ui-fulscreen--off": !ne.value }),
|
|
422
446
|
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
423
|
-
style:
|
|
447
|
+
style: I(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)
|
|
424
448
|
}, [
|
|
425
|
-
|
|
449
|
+
Ue(it),
|
|
426
450
|
u("defs", null, [
|
|
427
451
|
u("radialGradient", {
|
|
428
452
|
id: `gradient_top${x.value}`
|
|
@@ -430,36 +454,36 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
430
454
|
u("stop", {
|
|
431
455
|
offset: "0%",
|
|
432
456
|
"stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
|
|
433
|
-
}, null, 8,
|
|
457
|
+
}, null, 8, yt),
|
|
434
458
|
u("stop", {
|
|
435
459
|
offset: "100%",
|
|
436
460
|
"stop-color": t.value.style.chart.bar.color
|
|
437
|
-
}, null, 8,
|
|
438
|
-
], 8,
|
|
461
|
+
}, null, 8, kt)
|
|
462
|
+
], 8, pt),
|
|
439
463
|
u("radialGradient", {
|
|
440
464
|
id: `gradient_left${x.value}`
|
|
441
465
|
}, [
|
|
442
466
|
u("stop", {
|
|
443
467
|
offset: "0%",
|
|
444
468
|
"stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
|
|
445
|
-
}, null, 8,
|
|
469
|
+
}, null, 8, $t),
|
|
446
470
|
u("stop", {
|
|
447
471
|
offset: "100%",
|
|
448
472
|
"stop-color": c(g)(t.value.style.chart.bar.color, 20)
|
|
449
|
-
}, null, 8,
|
|
450
|
-
], 8,
|
|
473
|
+
}, null, 8, _t)
|
|
474
|
+
], 8, gt),
|
|
451
475
|
u("radialGradient", {
|
|
452
476
|
id: `gradient_right${x.value}`
|
|
453
477
|
}, [
|
|
454
478
|
u("stop", {
|
|
455
479
|
offset: "0%",
|
|
456
480
|
"stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
|
|
457
|
-
}, null, 8,
|
|
481
|
+
}, null, 8, xt),
|
|
458
482
|
u("stop", {
|
|
459
483
|
offset: "100%",
|
|
460
484
|
"stop-color": c(g)(t.value.style.chart.bar.color, 20)
|
|
461
|
-
}, null, 8,
|
|
462
|
-
], 8,
|
|
485
|
+
}, null, 8, bt)
|
|
486
|
+
], 8, mt),
|
|
463
487
|
u("linearGradient", {
|
|
464
488
|
id: `gradient_tube_body${x.value}`,
|
|
465
489
|
x1: "0%",
|
|
@@ -470,63 +494,63 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
470
494
|
u("stop", {
|
|
471
495
|
offset: "0%",
|
|
472
496
|
"stop-color": `${t.value.style.chart.bar.color}`
|
|
473
|
-
}, null, 8,
|
|
497
|
+
}, null, 8, Ct),
|
|
474
498
|
u("stop", {
|
|
475
499
|
offset: "75%",
|
|
476
500
|
"stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
|
|
477
|
-
}, null, 8,
|
|
501
|
+
}, null, 8, Ft),
|
|
478
502
|
u("stop", {
|
|
479
503
|
offset: "100%",
|
|
480
504
|
"stop-color": c(g)(t.value.style.chart.bar.color, 40)
|
|
481
|
-
}, null, 8,
|
|
482
|
-
], 8,
|
|
505
|
+
}, null, 8, Mt)
|
|
506
|
+
], 8, wt)
|
|
483
507
|
]),
|
|
484
|
-
F.value ? (
|
|
485
|
-
(
|
|
508
|
+
F.value ? (n(), i("defs", Pt, [
|
|
509
|
+
(n(!0), i(_, null, m(C.value, (e) => (n(), i("radialGradient", {
|
|
486
510
|
id: `grad_top_${e.id}`
|
|
487
511
|
}, [
|
|
488
512
|
u("stop", {
|
|
489
513
|
offset: "0%",
|
|
490
|
-
"stop-color": c(g)(c(
|
|
491
|
-
}, null, 8,
|
|
514
|
+
"stop-color": c(g)(c(U)(e.color, 0.5), 80)
|
|
515
|
+
}, null, 8, jt),
|
|
492
516
|
u("stop", {
|
|
493
517
|
offset: "100%",
|
|
494
518
|
"stop-color": e.color
|
|
495
|
-
}, null, 8,
|
|
496
|
-
], 8,
|
|
497
|
-
(
|
|
519
|
+
}, null, 8, Tt)
|
|
520
|
+
], 8, St))), 256)),
|
|
521
|
+
(n(!0), i(_, null, m(C.value, (e) => (n(), i("linearGradient", {
|
|
498
522
|
id: `grad_left_${e.id}`
|
|
499
523
|
}, [
|
|
500
524
|
u("stop", {
|
|
501
525
|
offset: "0%",
|
|
502
526
|
"stop-color": c(g)(e.color, 80)
|
|
503
|
-
}, null, 8,
|
|
527
|
+
}, null, 8, Dt),
|
|
504
528
|
u("stop", {
|
|
505
529
|
offset: "100%",
|
|
506
|
-
"stop-color": c(g)(c(
|
|
507
|
-
}, null, 8,
|
|
508
|
-
], 8,
|
|
509
|
-
(
|
|
530
|
+
"stop-color": c(g)(c(te)(e.color, 0.5), 100)
|
|
531
|
+
}, null, 8, Nt)
|
|
532
|
+
], 8, zt))), 256)),
|
|
533
|
+
(n(!0), i(_, null, m(C.value, (e) => (n(), i("linearGradient", {
|
|
510
534
|
id: `grad_right_${e.id}`
|
|
511
535
|
}, [
|
|
512
536
|
u("stop", {
|
|
513
537
|
offset: "2%",
|
|
514
|
-
"stop-color": c(g)(c(
|
|
515
|
-
}, null, 8,
|
|
538
|
+
"stop-color": c(g)(c(U)(e.color, 0.5), 100)
|
|
539
|
+
}, null, 8, It),
|
|
516
540
|
u("stop", {
|
|
517
541
|
offset: "100%",
|
|
518
542
|
"stop-color": c(g)(e.color, 80)
|
|
519
|
-
}, null, 8,
|
|
520
|
-
], 8,
|
|
543
|
+
}, null, 8, Ot)
|
|
544
|
+
], 8, Bt))), 256)),
|
|
521
545
|
u("linearGradient", {
|
|
522
546
|
x1: "0%",
|
|
523
547
|
y1: "0%",
|
|
524
548
|
x2: "0%",
|
|
525
549
|
y2: "100%",
|
|
526
550
|
id: `vertical_line_${x.value}`
|
|
527
|
-
},
|
|
551
|
+
}, Gt, 8, At)
|
|
528
552
|
])) : y("", !0),
|
|
529
|
-
t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (
|
|
553
|
+
t.value.style.chart.dataLabel.show && ![null, void 0].includes($.dataset.percentage) && [null, void 0].includes($.dataset.series) ? (n(), i("text", {
|
|
530
554
|
key: 1,
|
|
531
555
|
x: o.value.width / 2,
|
|
532
556
|
y: o.value.top - t.value.style.chart.dataLabel.fontSize / 2,
|
|
@@ -534,15 +558,15 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
534
558
|
"font-weight": t.value.style.chart.dataLabel.bold ? "bold" : "normal",
|
|
535
559
|
fill: t.value.style.chart.dataLabel.color,
|
|
536
560
|
"text-anchor": "middle"
|
|
537
|
-
}, P(c(
|
|
538
|
-
v:
|
|
561
|
+
}, P(c(z)({
|
|
562
|
+
v: W.value,
|
|
539
563
|
s: "%",
|
|
540
564
|
r: t.value.style.chart.dataLabel.rounding
|
|
541
|
-
})), 9,
|
|
542
|
-
|
|
565
|
+
})), 9, Vt)) : y("", !0),
|
|
566
|
+
A.value ? (n(), i("g", {
|
|
543
567
|
key: 2,
|
|
544
568
|
onClick: s[0] || (s[0] = (e) => {
|
|
545
|
-
|
|
569
|
+
A.value = !1, b.value = null;
|
|
546
570
|
}),
|
|
547
571
|
"data-html2canvas-ignore": "",
|
|
548
572
|
style: { cursor: "pointer" }
|
|
@@ -553,88 +577,88 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
553
577
|
height: 12,
|
|
554
578
|
width: 12,
|
|
555
579
|
fill: "transparent"
|
|
556
|
-
}, null, 8,
|
|
580
|
+
}, null, 8, Ut),
|
|
557
581
|
u("path", {
|
|
558
582
|
d: `M${o.value.width / 2 - 6},${o.value.top - 20} ${o.value.width / 2 + 6},${o.value.top - 9}`,
|
|
559
583
|
stroke: t.value.style.chart.color,
|
|
560
584
|
"stroke-linecap": "round",
|
|
561
585
|
"stroke-width": "1"
|
|
562
|
-
}, null, 8,
|
|
586
|
+
}, null, 8, Et),
|
|
563
587
|
u("path", {
|
|
564
588
|
d: `M${o.value.width / 2 + 6},${o.value.top - 20} ${o.value.width / 2 - 6},${o.value.top - 9}`,
|
|
565
589
|
stroke: t.value.style.chart.color,
|
|
566
590
|
"stroke-linecap": "round",
|
|
567
591
|
"stroke-width": "1"
|
|
568
|
-
}, null, 8,
|
|
592
|
+
}, null, 8, Ht)
|
|
569
593
|
])) : y("", !0),
|
|
570
|
-
!t.value.style.shape || t.value.style.shape === "bar" ? (
|
|
571
|
-
F.value ? y("", !0) : (
|
|
594
|
+
!t.value.style.shape || t.value.style.shape === "bar" ? (n(), i("g", Zt, [
|
|
595
|
+
F.value ? y("", !0) : (n(), i("g", qt, [
|
|
572
596
|
u("path", {
|
|
573
597
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
574
|
-
d:
|
|
598
|
+
d: N.value.right,
|
|
575
599
|
stroke: t.value.style.chart.box.stroke,
|
|
576
600
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
577
601
|
"stroke-linejoin": "round",
|
|
578
602
|
"stroke-linecap": "round",
|
|
579
603
|
fill: "none"
|
|
580
|
-
}, null, 8,
|
|
604
|
+
}, null, 8, Xt),
|
|
581
605
|
u("path", {
|
|
582
606
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
583
|
-
d:
|
|
607
|
+
d: N.value.left,
|
|
584
608
|
stroke: t.value.style.chart.box.stroke,
|
|
585
609
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
586
610
|
"stroke-linejoin": "round",
|
|
587
611
|
"stroke-linecap": "round",
|
|
588
612
|
fill: "none"
|
|
589
|
-
}, null, 8,
|
|
613
|
+
}, null, 8, Rt),
|
|
590
614
|
u("path", {
|
|
591
615
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
592
|
-
d:
|
|
616
|
+
d: N.value.side,
|
|
593
617
|
stroke: t.value.style.chart.box.stroke,
|
|
594
618
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
595
619
|
"stroke-linejoin": "round",
|
|
596
620
|
"stroke-linecap": "round",
|
|
597
621
|
fill: "none"
|
|
598
|
-
}, null, 8,
|
|
622
|
+
}, null, 8, Yt),
|
|
599
623
|
u("path", {
|
|
600
624
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
601
|
-
d:
|
|
625
|
+
d: N.value.topSides,
|
|
602
626
|
stroke: t.value.style.chart.box.stroke,
|
|
603
627
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
604
628
|
"stroke-linejoin": "round",
|
|
605
629
|
"stroke-linecap": "round",
|
|
606
630
|
fill: "none"
|
|
607
|
-
}, null, 8,
|
|
631
|
+
}, null, 8, Jt)
|
|
608
632
|
])),
|
|
609
|
-
F.value ? y("", !0) : (
|
|
633
|
+
F.value ? y("", !0) : (n(), i("g", Kt, [
|
|
610
634
|
u("path", {
|
|
611
|
-
d:
|
|
635
|
+
d: H.value.right,
|
|
612
636
|
stroke: t.value.style.chart.bar.stroke,
|
|
613
637
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
614
638
|
"stroke-linejoin": "round",
|
|
615
639
|
"stroke-linecap": "round",
|
|
616
640
|
fill: `url(#gradient_right${x.value})`
|
|
617
|
-
}, null, 8,
|
|
641
|
+
}, null, 8, Qt),
|
|
618
642
|
u("path", {
|
|
619
|
-
d:
|
|
643
|
+
d: H.value.left,
|
|
620
644
|
stroke: t.value.style.chart.bar.stroke,
|
|
621
645
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
622
646
|
"stroke-linejoin": "round",
|
|
623
647
|
"stroke-linecap": "round",
|
|
624
648
|
fill: `url(#gradient_left${x.value})`
|
|
625
|
-
}, null, 8,
|
|
649
|
+
}, null, 8, el),
|
|
626
650
|
u("path", {
|
|
627
|
-
d:
|
|
651
|
+
d: H.value.top,
|
|
628
652
|
stroke: t.value.style.chart.bar.stroke,
|
|
629
653
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
630
654
|
"stroke-linejoin": "round",
|
|
631
655
|
"stroke-linecap": "round",
|
|
632
656
|
fill: `url(#gradient_top${x.value})`
|
|
633
|
-
}, null, 8,
|
|
657
|
+
}, null, 8, tl)
|
|
634
658
|
])),
|
|
635
|
-
F.value ? (
|
|
636
|
-
(
|
|
637
|
-
style:
|
|
659
|
+
F.value ? (n(), i("g", ll, [
|
|
660
|
+
(n(!0), i(_, null, m(C.value, (e, h) => (n(), i("g", {
|
|
661
|
+
style: I(`opacity:${b.value ? b.value === e.id ? 1 : 0.3 : 1}`),
|
|
638
662
|
class: "vue-ui-3d-bar-stack"
|
|
639
663
|
}, [
|
|
640
664
|
u("path", {
|
|
@@ -642,22 +666,22 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
642
666
|
fill: `url(#grad_right_${e.id})`,
|
|
643
667
|
onMouseenter: (l) => M(e),
|
|
644
668
|
onClick: (l) => M(e, !0),
|
|
645
|
-
onMouseout:
|
|
646
|
-
}, null, 40,
|
|
669
|
+
onMouseout: L
|
|
670
|
+
}, null, 40, ol),
|
|
647
671
|
u("path", {
|
|
648
672
|
d: e.fill.left,
|
|
649
673
|
fill: `url(#grad_left_${e.id})`,
|
|
650
674
|
onMouseenter: (l) => M(e),
|
|
651
675
|
onClick: (l) => M(e, !0),
|
|
652
|
-
onMouseout:
|
|
653
|
-
}, null, 40,
|
|
676
|
+
onMouseout: L
|
|
677
|
+
}, null, 40, sl),
|
|
654
678
|
u("path", {
|
|
655
679
|
d: e.fill.top,
|
|
656
680
|
fill: `url(#grad_top_${e.id})`,
|
|
657
681
|
onMouseenter: (l) => M(e),
|
|
658
682
|
onClick: (l) => M(e, !0),
|
|
659
|
-
onMouseout:
|
|
660
|
-
}, null, 40,
|
|
683
|
+
onMouseout: L
|
|
684
|
+
}, null, 40, al),
|
|
661
685
|
u("path", {
|
|
662
686
|
d: e.fill.liningTop,
|
|
663
687
|
stroke: "#FFFFFF",
|
|
@@ -666,17 +690,17 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
666
690
|
fill: "none",
|
|
667
691
|
onMouseenter: (l) => M(e),
|
|
668
692
|
onClick: (l) => M(e, !0),
|
|
669
|
-
onMouseout:
|
|
670
|
-
}, null, 40,
|
|
693
|
+
onMouseout: L
|
|
694
|
+
}, null, 40, nl),
|
|
671
695
|
u("path", {
|
|
672
696
|
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
673
697
|
stroke: "#FFFFFF",
|
|
674
698
|
"stroke-width": "0.5",
|
|
675
699
|
"stroke-linecap": "round"
|
|
676
|
-
}, null, 8,
|
|
700
|
+
}, null, 8, rl)
|
|
677
701
|
], 4))), 256)),
|
|
678
|
-
(
|
|
679
|
-
h !== C.value.length - 1 ? (
|
|
702
|
+
(n(!0), i(_, null, m(C.value, (e, h) => (n(), i("g", null, [
|
|
703
|
+
h !== C.value.length - 1 ? (n(), i("path", {
|
|
680
704
|
key: 0,
|
|
681
705
|
d: e.fill.liningTopShade,
|
|
682
706
|
stroke: t.value.style.chart.bar.shadeColor,
|
|
@@ -684,11 +708,11 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
684
708
|
"stroke-linecap": "round",
|
|
685
709
|
fill: "none",
|
|
686
710
|
style: { "pointer-events": "none" }
|
|
687
|
-
}, null, 8,
|
|
711
|
+
}, null, 8, ul)) : y("", !0)
|
|
688
712
|
]))), 256)),
|
|
689
|
-
(
|
|
690
|
-
style:
|
|
691
|
-
onClick: (l) =>
|
|
713
|
+
(n(!0), i(_, null, m(C.value, (e, h) => (n(), i("g", {
|
|
714
|
+
style: I(`opacity:${b.value ? b.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
715
|
+
onClick: (l) => X("selectDatapoint", e)
|
|
692
716
|
}, [
|
|
693
717
|
u("path", {
|
|
694
718
|
stroke: t.value.style.chart.color,
|
|
@@ -696,29 +720,29 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
696
720
|
"stroke-width": "0.5",
|
|
697
721
|
"stroke-linecap": "round",
|
|
698
722
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
699
|
-
}, null, 8,
|
|
700
|
-
!e.fill.miniDonut || b.value ? (
|
|
723
|
+
}, null, 8, dl),
|
|
724
|
+
!e.fill.miniDonut || b.value ? (n(), i("circle", {
|
|
701
725
|
key: 0,
|
|
702
726
|
cx: e.fill.sidePointer.x + 20,
|
|
703
727
|
cy: e.fill.sidePointer.y,
|
|
704
728
|
r: 2,
|
|
705
729
|
fill: e.color,
|
|
706
730
|
stroke: t.value.style.chart.backgroundColor
|
|
707
|
-
}, null, 8,
|
|
708
|
-
(
|
|
731
|
+
}, null, 8, cl)) : y("", !0),
|
|
732
|
+
(n(), i("foreignObject", {
|
|
709
733
|
x: e.fill.sidePointer.x + 30,
|
|
710
734
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
711
735
|
width: o.value.absoluteWidth / 2 - 12,
|
|
712
736
|
height: t.value.style.chart.legend.fontSize * 2,
|
|
713
737
|
style: { overflow: "visible", position: "relative" }
|
|
714
738
|
}, [
|
|
715
|
-
t.value.style.chart.legend.showDefault ? (
|
|
739
|
+
t.value.style.chart.legend.showDefault ? (n(), i("div", {
|
|
716
740
|
key: 0,
|
|
717
|
-
style:
|
|
718
|
-
}, P(e.name) + ": " + P(c(
|
|
741
|
+
style: I(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
|
|
742
|
+
}, P(e.name) + ": " + P(c(z)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })) + " (" + P(c(le)(
|
|
719
743
|
t.value.style.chart.dataLabel.formatter,
|
|
720
744
|
e.value,
|
|
721
|
-
c(
|
|
745
|
+
c(z)({
|
|
722
746
|
p: t.value.style.chart.legend.prefix,
|
|
723
747
|
v: e.value,
|
|
724
748
|
s: t.value.style.chart.legend.suffix,
|
|
@@ -726,28 +750,28 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
726
750
|
}),
|
|
727
751
|
{ datapoint: e, seriesIndex: h }
|
|
728
752
|
)) + ") ", 5)) : y("", !0),
|
|
729
|
-
|
|
730
|
-
], 8,
|
|
731
|
-
e.fill.donut && b.value === e.id ? (
|
|
732
|
-
(
|
|
733
|
-
|
|
753
|
+
T(a.$slots, "legend", Z(q({ datapoint: e, config: t.value, dataset: C.value })), void 0, !0)
|
|
754
|
+
], 8, hl)),
|
|
755
|
+
e.fill.donut && b.value === e.id ? (n(), i("g", vl, [
|
|
756
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("g", null, [
|
|
757
|
+
G(l, e.fill.donut, !0) > 6 ? (n(), i("path", {
|
|
734
758
|
key: 0,
|
|
735
|
-
d: c(
|
|
759
|
+
d: c(Pe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
736
760
|
stroke: l.color,
|
|
737
761
|
class: "vue-ui-donut-arc-path",
|
|
738
762
|
"stroke-width": "0.5",
|
|
739
763
|
"stroke-linecap": "round",
|
|
740
764
|
"stroke-linejoin": "round",
|
|
741
765
|
fill: "none"
|
|
742
|
-
}, null, 8,
|
|
766
|
+
}, null, 8, fl)) : y("", !0)
|
|
743
767
|
]))), 256)),
|
|
744
|
-
(
|
|
768
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("path", {
|
|
745
769
|
class: "vue-ui-donut-arc-path",
|
|
746
770
|
d: l.arcSlice,
|
|
747
771
|
fill: `${l.color}`,
|
|
748
772
|
stroke: t.value.style.chart.backgroundColor,
|
|
749
773
|
"stroke-width": 1
|
|
750
|
-
}, null, 8,
|
|
774
|
+
}, null, 8, pl))), 256)),
|
|
751
775
|
u("defs", null, [
|
|
752
776
|
u("radialGradient", {
|
|
753
777
|
id: `hollow_gradient_${x.value}`
|
|
@@ -755,129 +779,129 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
755
779
|
u("stop", {
|
|
756
780
|
offset: "0%",
|
|
757
781
|
"stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
|
|
758
|
-
}, null, 8,
|
|
759
|
-
|
|
782
|
+
}, null, 8, kl),
|
|
783
|
+
gl,
|
|
760
784
|
u("stop", {
|
|
761
785
|
offset: "100%",
|
|
762
786
|
"stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
|
|
763
|
-
}, null, 8,
|
|
764
|
-
], 8,
|
|
787
|
+
}, null, 8, $l)
|
|
788
|
+
], 8, yl)
|
|
765
789
|
]),
|
|
766
|
-
(
|
|
790
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("circle", {
|
|
767
791
|
class: "vue-ui-donut-arc-path",
|
|
768
792
|
cx: l.cx,
|
|
769
793
|
cy: l.cy,
|
|
770
794
|
r: 28,
|
|
771
795
|
fill: `url(#hollow_gradient_${x.value})`
|
|
772
|
-
}, null, 8,
|
|
773
|
-
(
|
|
796
|
+
}, null, 8, _l))), 256)),
|
|
797
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("circle", {
|
|
774
798
|
class: "vue-ui-donut-arc-path",
|
|
775
799
|
cx: l.cx,
|
|
776
800
|
cy: l.cy,
|
|
777
801
|
r: 14,
|
|
778
802
|
fill: t.value.style.chart.backgroundColor
|
|
779
|
-
}, null, 8,
|
|
780
|
-
(
|
|
781
|
-
|
|
803
|
+
}, null, 8, ml))), 256)),
|
|
804
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("g", null, [
|
|
805
|
+
G(l, e.fill.donut, !0) > 6 ? (n(), i("g", xl, [
|
|
782
806
|
u("text", {
|
|
783
|
-
"text-anchor": c(
|
|
784
|
-
x: c(
|
|
785
|
-
y: c(
|
|
807
|
+
"text-anchor": c(O)(l, !0, 0).anchor,
|
|
808
|
+
x: c(O)(l, !0, 2).x,
|
|
809
|
+
y: c(oe)(l, 12, 12),
|
|
786
810
|
fill: t.value.style.chart.legend.color,
|
|
787
811
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
788
|
-
}, P(
|
|
812
|
+
}, P(G(l, e.fill.donut)) + " (" + P(c(le)(
|
|
789
813
|
t.value.style.chart.dataLabel.formatter,
|
|
790
814
|
l.value,
|
|
791
|
-
c(
|
|
815
|
+
c(z)({
|
|
792
816
|
p: t.value.style.chart.legend.prefix,
|
|
793
817
|
v: l.value,
|
|
794
818
|
s: t.value.style.chart.legend.suffix,
|
|
795
819
|
r: t.value.style.chart.legend.roundingValue
|
|
796
820
|
}),
|
|
797
|
-
{ datapoint: l, seriesIndex:
|
|
798
|
-
)) + ") ", 9,
|
|
821
|
+
{ datapoint: l, seriesIndex: r }
|
|
822
|
+
)) + ") ", 9, bl),
|
|
799
823
|
u("text", {
|
|
800
|
-
"text-anchor": c(
|
|
801
|
-
x: c(
|
|
802
|
-
y: c(
|
|
824
|
+
"text-anchor": c(O)(l).anchor,
|
|
825
|
+
x: c(O)(l, !0, 2).x,
|
|
826
|
+
y: c(oe)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
803
827
|
fill: t.value.style.chart.legend.color,
|
|
804
828
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
805
|
-
}, P(l.name), 9,
|
|
829
|
+
}, P(l.name), 9, wl)
|
|
806
830
|
])) : y("", !0)
|
|
807
831
|
]))), 256))
|
|
808
832
|
])) : y("", !0),
|
|
809
|
-
e.fill.miniDonut && !b.value ? (
|
|
810
|
-
(
|
|
833
|
+
e.fill.miniDonut && !b.value ? (n(), i("g", Cl, [
|
|
834
|
+
(n(!0), i(_, null, m(e.fill.miniDonut, (l, r) => (n(), i("path", {
|
|
811
835
|
class: "vue-ui-donut-arc-path",
|
|
812
836
|
d: l.arcSlice,
|
|
813
837
|
fill: `${l.color}`,
|
|
814
838
|
stroke: t.value.style.chart.backgroundColor,
|
|
815
839
|
"stroke-width": 0.5
|
|
816
|
-
}, null, 8,
|
|
840
|
+
}, null, 8, Fl))), 256))
|
|
817
841
|
])) : y("", !0)
|
|
818
|
-
], 12,
|
|
842
|
+
], 12, il))), 256))
|
|
819
843
|
])) : y("", !0)
|
|
820
844
|
])) : y("", !0),
|
|
821
|
-
t.value.style.shape === "tube" ? (
|
|
822
|
-
F.value ? y("", !0) : (
|
|
845
|
+
t.value.style.shape === "tube" ? (n(), i("g", Ml, [
|
|
846
|
+
F.value ? y("", !0) : (n(), i("g", Pl, [
|
|
823
847
|
u("path", {
|
|
824
848
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
825
|
-
d:
|
|
849
|
+
d: N.value.tubeTop,
|
|
826
850
|
stroke: t.value.style.chart.box.stroke,
|
|
827
851
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
828
852
|
"stroke-linejoin": "round",
|
|
829
853
|
"stroke-linecap": "round",
|
|
830
854
|
fill: "none"
|
|
831
|
-
}, null, 8,
|
|
855
|
+
}, null, 8, Sl),
|
|
832
856
|
u("path", {
|
|
833
857
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
834
|
-
d:
|
|
858
|
+
d: N.value.tubeLeft,
|
|
835
859
|
stroke: t.value.style.chart.box.stroke,
|
|
836
860
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
837
861
|
"stroke-linejoin": "round",
|
|
838
862
|
"stroke-linecap": "round",
|
|
839
863
|
fill: "none"
|
|
840
|
-
}, null, 8,
|
|
864
|
+
}, null, 8, jl),
|
|
841
865
|
u("path", {
|
|
842
866
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
843
|
-
d:
|
|
867
|
+
d: N.value.tubeRight,
|
|
844
868
|
stroke: t.value.style.chart.box.stroke,
|
|
845
869
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
846
870
|
"stroke-linejoin": "round",
|
|
847
871
|
"stroke-linecap": "round",
|
|
848
872
|
fill: "none"
|
|
849
|
-
}, null, 8,
|
|
873
|
+
}, null, 8, Tl),
|
|
850
874
|
u("path", {
|
|
851
875
|
"stroke-dasharray": t.value.style.chart.box.strokeDasharray,
|
|
852
|
-
d:
|
|
876
|
+
d: N.value.tubeBottom,
|
|
853
877
|
stroke: t.value.style.chart.box.stroke,
|
|
854
878
|
"stroke-width": t.value.style.chart.box.strokeWidth,
|
|
855
879
|
"stroke-linejoin": "round",
|
|
856
880
|
"stroke-linecap": "round",
|
|
857
881
|
fill: "none"
|
|
858
|
-
}, null, 8,
|
|
882
|
+
}, null, 8, zl),
|
|
859
883
|
u("path", {
|
|
860
|
-
d:
|
|
884
|
+
d: H.value.tubeTop,
|
|
861
885
|
stroke: t.value.style.chart.bar.stroke,
|
|
862
886
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
863
887
|
"stroke-linejoin": "round",
|
|
864
888
|
"stroke-linecap": "round",
|
|
865
889
|
fill: `url(#gradient_top${x.value})`
|
|
866
|
-
}, null, 8,
|
|
890
|
+
}, null, 8, Dl),
|
|
867
891
|
u("path", {
|
|
868
|
-
d:
|
|
892
|
+
d: H.value.tubeBody,
|
|
869
893
|
stroke: t.value.style.chart.bar.stroke,
|
|
870
894
|
"stroke-width": t.value.style.chart.bar.strokeWidth,
|
|
871
895
|
"stroke-linejoin": "round",
|
|
872
896
|
"stroke-linecap": "round",
|
|
873
897
|
fill: `url(#gradient_tube_body${x.value})`
|
|
874
|
-
}, null, 8,
|
|
898
|
+
}, null, 8, Nl)
|
|
875
899
|
])),
|
|
876
|
-
F.value ? (
|
|
877
|
-
(
|
|
878
|
-
style:
|
|
900
|
+
F.value ? (n(), i("g", Bl, [
|
|
901
|
+
(n(!0), i(_, null, m(C.value, (e, h) => (n(), i("g", {
|
|
902
|
+
style: I(`opacity:${b.value ? b.value === e.id ? 1 : 0.3 : 1}`),
|
|
879
903
|
class: "vue-ui-3d-bar-stack",
|
|
880
|
-
onClick: (l) =>
|
|
904
|
+
onClick: (l) => X("selectDatapoint", e)
|
|
881
905
|
}, [
|
|
882
906
|
u("defs", null, [
|
|
883
907
|
u("radialGradient", {
|
|
@@ -887,13 +911,13 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
887
911
|
}, [
|
|
888
912
|
u("stop", {
|
|
889
913
|
offset: "0%",
|
|
890
|
-
"stop-color": c(g)(c(
|
|
891
|
-
}, null, 8,
|
|
914
|
+
"stop-color": c(g)(c(U)(e.color, 0.5), 80)
|
|
915
|
+
}, null, 8, Al),
|
|
892
916
|
u("stop", {
|
|
893
917
|
offset: "100%",
|
|
894
|
-
"stop-color": c(g)(c(
|
|
895
|
-
}, null, 8,
|
|
896
|
-
], 8,
|
|
918
|
+
"stop-color": c(g)(c(te)(e.color, 0.1), 80)
|
|
919
|
+
}, null, 8, Ll)
|
|
920
|
+
], 8, Ol),
|
|
897
921
|
u("linearGradient", {
|
|
898
922
|
id: `gradient_tube_body_${e.id}`,
|
|
899
923
|
x1: "0%",
|
|
@@ -904,63 +928,63 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
904
928
|
u("stop", {
|
|
905
929
|
offset: "0%",
|
|
906
930
|
"stop-color": `${e.color}`
|
|
907
|
-
}, null, 8,
|
|
931
|
+
}, null, 8, Gl),
|
|
908
932
|
u("stop", {
|
|
909
933
|
offset: "10%",
|
|
910
|
-
"stop-color": c(g)(c(
|
|
911
|
-
}, null, 8,
|
|
934
|
+
"stop-color": c(g)(c(te)(e.color, 0.7), 100)
|
|
935
|
+
}, null, 8, Vl),
|
|
912
936
|
u("stop", {
|
|
913
937
|
offset: "25%",
|
|
914
|
-
"stop-color": c(g)(c(
|
|
915
|
-
}, null, 8,
|
|
938
|
+
"stop-color": c(g)(c(te)(e.color, 0.5), 100)
|
|
939
|
+
}, null, 8, Ul),
|
|
916
940
|
u("stop", {
|
|
917
941
|
offset: "75%",
|
|
918
942
|
"stop-color": c(g)(e.color, 80)
|
|
919
|
-
}, null, 8,
|
|
943
|
+
}, null, 8, El),
|
|
920
944
|
u("stop", {
|
|
921
945
|
offset: "100%",
|
|
922
|
-
"stop-color": c(g)(c(
|
|
923
|
-
}, null, 8,
|
|
924
|
-
], 8,
|
|
946
|
+
"stop-color": c(g)(c(U)(e.color, 0.7), 100)
|
|
947
|
+
}, null, 8, Hl)
|
|
948
|
+
], 8, Wl)
|
|
925
949
|
]),
|
|
926
950
|
u("path", {
|
|
927
951
|
onMouseenter: (l) => M(e),
|
|
928
952
|
onClick: (l) => M(e, !0),
|
|
929
|
-
onMouseout:
|
|
953
|
+
onMouseout: L,
|
|
930
954
|
d: e.fill.tubeBody,
|
|
931
955
|
stroke: "#FFFFFF",
|
|
932
956
|
"stroke-width": 0.5,
|
|
933
957
|
"stroke-linejoin": "round",
|
|
934
958
|
"stroke-linecap": "round",
|
|
935
959
|
fill: `url(#gradient_tube_body_${e.id})`
|
|
936
|
-
}, null, 40,
|
|
937
|
-
h > 0 ? (
|
|
960
|
+
}, null, 40, Zl),
|
|
961
|
+
h > 0 ? (n(), i("path", {
|
|
938
962
|
key: 0,
|
|
939
963
|
onMouseenter: (l) => M(e),
|
|
940
964
|
onClick: (l) => M(e, !0),
|
|
941
|
-
onMouseout:
|
|
965
|
+
onMouseout: L,
|
|
942
966
|
d: e.fill.bottomTubeTop,
|
|
943
967
|
stroke: "#000000",
|
|
944
968
|
"stroke-width": 0.5,
|
|
945
969
|
"stroke-linejoin": "round",
|
|
946
970
|
"stroke-linecap": "round",
|
|
947
971
|
fill: "none"
|
|
948
|
-
}, null, 40,
|
|
972
|
+
}, null, 40, ql)) : y("", !0),
|
|
949
973
|
u("path", {
|
|
950
974
|
onMouseenter: (l) => M(e),
|
|
951
975
|
onClick: (l) => M(e, !0),
|
|
952
|
-
onMouseout:
|
|
976
|
+
onMouseout: L,
|
|
953
977
|
d: e.fill.tubeTop,
|
|
954
978
|
stroke: "#FFFFFF",
|
|
955
979
|
"stroke-width": 0.5,
|
|
956
980
|
"stroke-linejoin": "round",
|
|
957
981
|
"stroke-linecap": "round",
|
|
958
982
|
fill: `url(#gradient_tube_top_${e.id})`
|
|
959
|
-
}, null, 40,
|
|
960
|
-
], 12,
|
|
961
|
-
(
|
|
962
|
-
style:
|
|
963
|
-
onClick: (l) =>
|
|
983
|
+
}, null, 40, Xl)
|
|
984
|
+
], 12, Il))), 256)),
|
|
985
|
+
(n(!0), i(_, null, m(C.value, (e, h) => (n(), i("g", {
|
|
986
|
+
style: I(`opacity:${b.value ? b.value === e.id ? 1 : 0 : e.proportion * 100 > t.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
987
|
+
onClick: (l) => X("selectDatapoint", e)
|
|
964
988
|
}, [
|
|
965
989
|
u("path", {
|
|
966
990
|
stroke: t.value.style.chart.color,
|
|
@@ -968,29 +992,29 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
968
992
|
"stroke-width": "0.5",
|
|
969
993
|
"stroke-linecap": "round",
|
|
970
994
|
d: `M${e.fill.sidePointer.x},${e.fill.sidePointer.y} ${e.fill.sidePointer.x + 20},${e.fill.sidePointer.y}`
|
|
971
|
-
}, null, 8,
|
|
972
|
-
!e.fill.miniDonut || b.value ? (
|
|
995
|
+
}, null, 8, Yl),
|
|
996
|
+
!e.fill.miniDonut || b.value ? (n(), i("circle", {
|
|
973
997
|
key: 0,
|
|
974
998
|
cx: e.fill.sidePointer.x + 20,
|
|
975
999
|
cy: e.fill.sidePointer.y,
|
|
976
1000
|
r: 2,
|
|
977
1001
|
fill: e.color,
|
|
978
1002
|
stroke: t.value.style.chart.backgroundColor
|
|
979
|
-
}, null, 8,
|
|
980
|
-
(
|
|
1003
|
+
}, null, 8, Jl)) : y("", !0),
|
|
1004
|
+
(n(), i("foreignObject", {
|
|
981
1005
|
x: e.fill.sidePointer.x + 30,
|
|
982
1006
|
y: e.fill.sidePointer.y - t.value.style.chart.legend.fontSize,
|
|
983
1007
|
width: o.value.absoluteWidth / 2 - 12,
|
|
984
1008
|
height: t.value.style.chart.legend.fontSize * 2,
|
|
985
1009
|
style: { overflow: "visible", position: "relative" }
|
|
986
1010
|
}, [
|
|
987
|
-
t.value.style.chart.legend.showDefault ? (
|
|
1011
|
+
t.value.style.chart.legend.showDefault ? (n(), i("div", {
|
|
988
1012
|
key: 0,
|
|
989
|
-
style:
|
|
990
|
-
}, P(e.name) + ": " + P(c(
|
|
1013
|
+
style: I(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${t.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${t.value.style.chart.legend.fontSize}px; color:${t.value.style.chart.legend.color}`)
|
|
1014
|
+
}, P(e.name) + ": " + P(c(z)({ v: e.proportion * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage })) + " (" + P(c(le)(
|
|
991
1015
|
t.value.style.chart.dataLabel.formatter,
|
|
992
1016
|
e.value,
|
|
993
|
-
c(
|
|
1017
|
+
c(z)({
|
|
994
1018
|
p: t.value.style.chart.legend.prefix,
|
|
995
1019
|
v: e.value,
|
|
996
1020
|
s: t.value.style.chart.legend.suffix,
|
|
@@ -998,28 +1022,28 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
998
1022
|
}),
|
|
999
1023
|
{ datapoint: e, seriesIndex: h }
|
|
1000
1024
|
)) + ") ", 5)) : y("", !0),
|
|
1001
|
-
|
|
1002
|
-
], 8,
|
|
1003
|
-
e.fill.donut && b.value === e.id ? (
|
|
1004
|
-
(
|
|
1005
|
-
|
|
1025
|
+
T(a.$slots, "legend", Z(q({ datapoint: e, config: t.value, dataset: C.value })), void 0, !0)
|
|
1026
|
+
], 8, Kl)),
|
|
1027
|
+
e.fill.donut && b.value === e.id ? (n(), i("g", Ql, [
|
|
1028
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("g", null, [
|
|
1029
|
+
G(l, e.fill.donut, !0) > 6 ? (n(), i("path", {
|
|
1006
1030
|
key: 0,
|
|
1007
|
-
d: c(
|
|
1031
|
+
d: c(Pe)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1008
1032
|
stroke: l.color,
|
|
1009
1033
|
class: "vue-ui-donut-arc-path",
|
|
1010
1034
|
"stroke-width": "0.5",
|
|
1011
1035
|
"stroke-linecap": "round",
|
|
1012
1036
|
"stroke-linejoin": "round",
|
|
1013
1037
|
fill: "none"
|
|
1014
|
-
}, null, 8,
|
|
1038
|
+
}, null, 8, eo)) : y("", !0)
|
|
1015
1039
|
]))), 256)),
|
|
1016
|
-
(
|
|
1040
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("path", {
|
|
1017
1041
|
class: "vue-ui-donut-arc-path",
|
|
1018
1042
|
d: l.arcSlice,
|
|
1019
1043
|
fill: `${l.color}`,
|
|
1020
1044
|
stroke: t.value.style.chart.backgroundColor,
|
|
1021
1045
|
"stroke-width": 1
|
|
1022
|
-
}, null, 8,
|
|
1046
|
+
}, null, 8, to))), 256)),
|
|
1023
1047
|
u("defs", null, [
|
|
1024
1048
|
u("radialGradient", {
|
|
1025
1049
|
id: `hollow_gradient_${x.value}`
|
|
@@ -1027,76 +1051,76 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
1027
1051
|
u("stop", {
|
|
1028
1052
|
offset: "0%",
|
|
1029
1053
|
"stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
|
|
1030
|
-
}, null, 8,
|
|
1031
|
-
|
|
1054
|
+
}, null, 8, oo),
|
|
1055
|
+
so,
|
|
1032
1056
|
u("stop", {
|
|
1033
1057
|
offset: "100%",
|
|
1034
1058
|
"stop-color": c(g)(t.value.style.chart.backgroundColor, 0)
|
|
1035
|
-
}, null, 8,
|
|
1036
|
-
], 8,
|
|
1059
|
+
}, null, 8, ao)
|
|
1060
|
+
], 8, lo)
|
|
1037
1061
|
]),
|
|
1038
|
-
(
|
|
1062
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("circle", {
|
|
1039
1063
|
class: "vue-ui-donut-arc-path",
|
|
1040
1064
|
cx: l.cx,
|
|
1041
1065
|
cy: l.cy,
|
|
1042
1066
|
r: 28,
|
|
1043
1067
|
fill: `url(#hollow_gradient_${x.value})`
|
|
1044
|
-
}, null, 8,
|
|
1045
|
-
(
|
|
1068
|
+
}, null, 8, no))), 256)),
|
|
1069
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("circle", {
|
|
1046
1070
|
class: "vue-ui-donut-arc-path",
|
|
1047
1071
|
cx: l.cx,
|
|
1048
1072
|
cy: l.cy,
|
|
1049
1073
|
r: 14,
|
|
1050
1074
|
fill: t.value.style.chart.backgroundColor
|
|
1051
|
-
}, null, 8,
|
|
1052
|
-
(
|
|
1053
|
-
|
|
1075
|
+
}, null, 8, ro))), 256)),
|
|
1076
|
+
(n(!0), i(_, null, m(e.fill.donut, (l, r) => (n(), i("g", null, [
|
|
1077
|
+
G(l, e.fill.donut, !0) > 6 ? (n(), i("g", uo, [
|
|
1054
1078
|
u("text", {
|
|
1055
|
-
"text-anchor": c(
|
|
1056
|
-
x: c(
|
|
1057
|
-
y: c(
|
|
1079
|
+
"text-anchor": c(O)(l, !0, 0).anchor,
|
|
1080
|
+
x: c(O)(l, !0, 2).x,
|
|
1081
|
+
y: c(oe)(l, 12, 12),
|
|
1058
1082
|
fill: t.value.style.chart.legend.color,
|
|
1059
1083
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1060
|
-
}, P(
|
|
1084
|
+
}, P(G(l, e.fill.donut)) + " (" + P(c(le)(
|
|
1061
1085
|
t.value.style.chart.dataLabel.formatter,
|
|
1062
1086
|
l.value,
|
|
1063
|
-
c(
|
|
1087
|
+
c(z)({
|
|
1064
1088
|
p: t.value.style.chart.legend.prefix,
|
|
1065
1089
|
v: l.value,
|
|
1066
1090
|
s: t.value.style.chart.legend.suffix,
|
|
1067
1091
|
r: t.value.style.chart.legend.roundingValue
|
|
1068
1092
|
}),
|
|
1069
|
-
{ datapoint: l, seriesIndex:
|
|
1070
|
-
)) + ") ", 9,
|
|
1093
|
+
{ datapoint: l, seriesIndex: r }
|
|
1094
|
+
)) + ") ", 9, io),
|
|
1071
1095
|
u("text", {
|
|
1072
|
-
"text-anchor": c(
|
|
1073
|
-
x: c(
|
|
1074
|
-
y: c(
|
|
1096
|
+
"text-anchor": c(O)(l).anchor,
|
|
1097
|
+
x: c(O)(l, !0, 2).x,
|
|
1098
|
+
y: c(oe)(l, 12, 12) + t.value.style.chart.legend.fontSize / 1.5,
|
|
1075
1099
|
fill: t.value.style.chart.legend.color,
|
|
1076
1100
|
"font-size": t.value.style.chart.legend.fontSize / 1.5
|
|
1077
|
-
}, P(l.name), 9,
|
|
1101
|
+
}, P(l.name), 9, co)
|
|
1078
1102
|
])) : y("", !0)
|
|
1079
1103
|
]))), 256))
|
|
1080
1104
|
])) : y("", !0),
|
|
1081
|
-
e.fill.miniDonut && !b.value ? (
|
|
1082
|
-
(
|
|
1105
|
+
e.fill.miniDonut && !b.value ? (n(), i("g", ho, [
|
|
1106
|
+
(n(!0), i(_, null, m(e.fill.miniDonut, (l, r) => (n(), i("path", {
|
|
1083
1107
|
class: "vue-ui-donut-arc-path",
|
|
1084
1108
|
d: l.arcSlice,
|
|
1085
1109
|
fill: `${l.color}`,
|
|
1086
1110
|
stroke: t.value.style.chart.backgroundColor,
|
|
1087
1111
|
"stroke-width": 0.5
|
|
1088
|
-
}, null, 8,
|
|
1112
|
+
}, null, 8, vo))), 256))
|
|
1089
1113
|
])) : y("", !0)
|
|
1090
|
-
], 12,
|
|
1114
|
+
], 12, Rl))), 256))
|
|
1091
1115
|
])) : y("", !0)
|
|
1092
1116
|
])) : y("", !0),
|
|
1093
|
-
|
|
1094
|
-
], 14,
|
|
1095
|
-
a.$slots.watermark ? (
|
|
1096
|
-
|
|
1117
|
+
T(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1118
|
+
], 14, ft)) : y("", !0),
|
|
1119
|
+
a.$slots.watermark ? (n(), i("div", fo, [
|
|
1120
|
+
T(a.$slots, "watermark", Z(q({ isPrinting: c(ve) || c(fe) })), void 0, !0)
|
|
1097
1121
|
])) : y("", !0),
|
|
1098
|
-
|
|
1099
|
-
key:
|
|
1122
|
+
R.value ? y("", !0) : (n(), V(nt, {
|
|
1123
|
+
key: 5,
|
|
1100
1124
|
config: {
|
|
1101
1125
|
type: "bar3d",
|
|
1102
1126
|
style: {
|
|
@@ -1107,11 +1131,11 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
1107
1131
|
}
|
|
1108
1132
|
}
|
|
1109
1133
|
}, null, 8, ["config"])),
|
|
1110
|
-
|
|
1111
|
-
key:
|
|
1134
|
+
R.value && F.value ? (n(), V(ut, {
|
|
1135
|
+
key: 6,
|
|
1112
1136
|
hideDetails: "",
|
|
1113
1137
|
config: {
|
|
1114
|
-
open:
|
|
1138
|
+
open: Y.value.showTable,
|
|
1115
1139
|
maxHeight: 1e4,
|
|
1116
1140
|
body: {
|
|
1117
1141
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
@@ -1123,33 +1147,33 @@ const oe = (U) => (Ee("data-v-8a60c7c5"), U = U(), He(), U), it = ["id"], dt = {
|
|
|
1123
1147
|
}
|
|
1124
1148
|
}
|
|
1125
1149
|
}, {
|
|
1126
|
-
content:
|
|
1127
|
-
(
|
|
1128
|
-
key: `table_${
|
|
1129
|
-
colNames:
|
|
1130
|
-
head:
|
|
1131
|
-
body:
|
|
1132
|
-
config:
|
|
1150
|
+
content: D(() => [
|
|
1151
|
+
(n(), V(rt, {
|
|
1152
|
+
key: `table_${ce.value}`,
|
|
1153
|
+
colNames: J.value.colNames,
|
|
1154
|
+
head: J.value.head,
|
|
1155
|
+
body: J.value.body,
|
|
1156
|
+
config: J.value.config,
|
|
1133
1157
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1134
|
-
onClose: s[1] || (s[1] = (e) =>
|
|
1158
|
+
onClose: s[1] || (s[1] = (e) => Y.value.showTable = !1)
|
|
1135
1159
|
}, {
|
|
1136
|
-
th:
|
|
1160
|
+
th: D(({ th: e }) => [
|
|
1137
1161
|
u("div", {
|
|
1138
1162
|
innerHTML: e,
|
|
1139
1163
|
style: { display: "flex", "align-items": "center" }
|
|
1140
|
-
}, null, 8,
|
|
1164
|
+
}, null, 8, po)
|
|
1141
1165
|
]),
|
|
1142
|
-
td:
|
|
1143
|
-
|
|
1166
|
+
td: D(({ td: e }) => [
|
|
1167
|
+
Ee(P(e.name || e), 1)
|
|
1144
1168
|
]),
|
|
1145
1169
|
_: 1
|
|
1146
1170
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1147
1171
|
]),
|
|
1148
1172
|
_: 1
|
|
1149
1173
|
}, 8, ["config"])) : y("", !0)
|
|
1150
|
-
], 12,
|
|
1174
|
+
], 12, ht));
|
|
1151
1175
|
}
|
|
1152
|
-
},
|
|
1176
|
+
}, Po = /* @__PURE__ */ ct(yo, [["__scopeId", "data-v-987596fd"]]);
|
|
1153
1177
|
export {
|
|
1154
|
-
|
|
1178
|
+
Po as default
|
|
1155
1179
|
};
|