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