vue-data-ui 2.4.41 → 2.4.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-6z0ZQva_.js → Arrow-DE71uBJZ.js} +1 -1
- package/dist/{Arrow-Cht76m69.cjs → Arrow-DTscDttD.cjs} +1 -1
- package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-C8XxmpRq.js} +1 -1
- package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
- package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DEdQvqB1.cjs} +1 -1
- package/dist/{DataTable-B5DiCrf_.js → DataTable-D_w08xos.js} +2 -2
- package/dist/{Legend-DzxQIjDO.js → Legend-BWDoQii_.js} +1 -1
- package/dist/{Legend-BXG_XPom.cjs → Legend-C4rlR-Ge.cjs} +1 -1
- package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CH6MCx6T.js} +1 -1
- package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
- package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-BWTR3U2d.js} +3 -3
- package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
- package/dist/{Shape-CvL90fNe.cjs → Shape-BLS-KzBD.cjs} +1 -1
- package/dist/{Shape-C3ywBhkW.js → Shape-xrlfL_v4.js} +1 -1
- package/dist/Slicer-8gKX0l4Q.cjs +1 -0
- package/dist/Slicer-DIYseEL1.js +423 -0
- package/dist/{Title-D9gPXVTT.cjs → Title-B-xkTfi8.cjs} +1 -1
- package/dist/{Title-BB0O0yol.js → Title-Cnl9ySNH.js} +1 -1
- package/dist/Tooltip-Brbj6DqX.cjs +1 -0
- package/dist/{Tooltip-GvLaModr.js → Tooltip-DEAOBZ8h.js} +33 -25
- package/dist/index-B68kzBN9.cjs +9 -0
- package/dist/{index-B6Q1Fyk0.js → index-DnukYspq.js} +45 -41
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-DQpuJSz3.js → useNestedProp-CVOQGx-X.js} +1 -1
- package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
- package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-C9yUesCc.cjs} +1 -1
- package/dist/{usePrinter-D8dIU7aG.js → usePrinter-DVIALk5e.js} +1 -1
- package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-BmmjmNbb.js} +60 -60
- package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +3 -3
- package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
- package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
- package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
- package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-f9NTID9e.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
- package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-C82vEb7R.js} +1 -1
- package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
- package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
- package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
- package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
- package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
- package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
- package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
- package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
- package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
- package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
- package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
- package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DtNvb8lM.js} +2 -2
- package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-C028OlzU.js} +99 -98
- package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
- package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
- package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
- package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-QRimZUXT.js} +46 -46
- package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
- package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
- package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-CBymVSdd.js} +19 -19
- package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
- package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
- package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
- package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
- package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
- package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
- package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
- package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
- package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
- package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
- package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
- package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-CZi84tUl.js} +26 -25
- package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
- package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
- package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
- package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-CIRGvycb.js} +49 -48
- package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
- package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
- package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
- package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
- package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-CXXAYowO.js} +38 -37
- package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
- package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-DOqMciYJ.js} +2 -2
- package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-BEv568py.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-CR3iWQV_.js} +19 -19
- package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-B--CFaNX.js} +49 -48
- package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
- package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-C-RD4h73.js} +26 -25
- package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
- package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
- package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
- package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
- package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
- package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
- package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
- package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
- package/dist/{vue-ui-stackbar-BZbOagnf.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
- package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
- package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
- package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-CS-NSZjj.js} +1 -1
- package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
- package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
- package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
- package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
- package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
- package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
- package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
- package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
- package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
- package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
- package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DYdcFM17.js} +79 -78
- package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
- package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
- package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
- package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-B3346TfB.js} +195 -185
- package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
- package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
- package/package.json +1 -1
- package/dist/Slicer-B2aHb4bj.cjs +0 -1
- package/dist/Slicer-D9ASV60L.js +0 -400
- package/dist/Tooltip-ypQtmi99.cjs +0 -1
- package/dist/index-B5Ugkauv.cjs +0 -9
- package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
- package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
- package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
- package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
- package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
- package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
- package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
- package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { S as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { L as
|
|
10
|
-
import
|
|
11
|
-
import { D as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import { P as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { computed as x, ref as d, onMounted as Je, watch as qe, nextTick as ne, openBlock as s, createElementBlock as n, normalizeClass as me, normalizeStyle as U, createBlock as Y, createCommentVNode as v, renderSlot as k, createVNode as ue, unref as _, createSlots as Ct, withCtx as z, normalizeProps as D, guardReactiveProps as E, Fragment as h, renderList as m, createElementVNode as H, toDisplayString as S, createTextVNode as _t } from "vue";
|
|
2
|
+
import { u as Lt, c as Ze, t as St, a as $t, p as ce, C as ve, b as Mt, o as Tt, e as Ke, g as Nt, d as It, a7 as he, a3 as Qe, D as je, X as Pt, l as Ot, G as et, f as B, x as tt, i as at, y as At, q as Rt, r as Vt } from "./index-DnukYspq.js";
|
|
3
|
+
import { u as lt } from "./useNestedProp-CVOQGx-X.js";
|
|
4
|
+
import { t as Ft, u as Dt } from "./useResponsive-CoxXLe23.js";
|
|
5
|
+
import { u as Et, U as Ht } from "./usePrinter-DVIALk5e.js";
|
|
6
|
+
import { S as Bt } from "./Slicer-DIYseEL1.js";
|
|
7
|
+
import { _ as Wt } from "./Tooltip-DEAOBZ8h.js";
|
|
8
|
+
import { _ as Xt } from "./Title-Cnl9ySNH.js";
|
|
9
|
+
import { L as Gt } from "./Legend-BWDoQii_.js";
|
|
10
|
+
import Ut from "./vue-ui-accordion-f9NTID9e.js";
|
|
11
|
+
import { D as Yt } from "./DataTable-D_w08xos.js";
|
|
12
|
+
import Jt from "./vue-ui-skeleton-CXdyOF4T.js";
|
|
13
|
+
import { _ as qt } from "./PackageVersion-CH6MCx6T.js";
|
|
14
|
+
import { P as Zt } from "./PenAndPaper-BWTR3U2d.js";
|
|
15
|
+
import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Qt = ["id"], jt = ["xmlns", "viewBox"], ea = { key: 0 }, ta = ["id"], aa = ["stop-color"], la = ["stop-color"], oa = ["stop-color"], ra = ["x1", "x2", "y1", "y2", "stroke"], sa = ["x1", "x2", "y1", "y2", "stroke"], ia = ["x1", "x2", "y1", "y2", "stroke"], na = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ca = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], da = ["x", "y", "font-size", "fill", "font-weight"], ya = ["transform", "font-size", "fill", "font-weight"], ga = ["x", "y", "font-size", "fill", "font-weight"], ba = { key: 0 }, fa = ["x", "y", "font-size", "font-weight", "fill"], ma = ["x", "y", "font-size", "fill", "font-weight"], pa = { key: 0 }, xa = ["x", "y", "font-size", "font-weight", "fill"], ka = ["x1", "x2", "y1", "y2", "stroke"], wa = ["x", "y", "font-size", "font-weight", "fill"], za = ["x1", "x2", "y1", "y2", "stroke"], Ca = ["font-size", "font-weight", "fill", "text-anchor", "transform"], _a = ["text-anchor", "font-size", "font-weight", "fill", "transform"], La = ["font-size", "font-weight", "fill", "x", "y"], Sa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], $a = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ma = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, Ta = ["onClick"], Na = ["innerHTML"], Ia = {
|
|
20
20
|
__name: "vue-ui-stackbar",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,51 +33,51 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectDatapoint", "selectLegend"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
36
|
+
setup(de, { expose: ot, emit: pe }) {
|
|
37
|
+
const y = de, { vue_ui_stackbar: rt } = Lt(), W = x({
|
|
38
38
|
get() {
|
|
39
|
-
return !!
|
|
39
|
+
return !!y.dataset && y.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(a) {
|
|
42
42
|
return a;
|
|
43
43
|
}
|
|
44
|
-
}), X =
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
}), X = d(null), ye = d(Ze()), ee = d(!1), xe = d(null), ge = d(""), L = d([]), ke = d(0), we = d(null), ze = d(null), Ce = d(null), _e = d(null), Le = d(0), te = d(!1), J = d(null), q = d(!1), st = d(0), it = d(0), nt = d(0), G = d(null);
|
|
45
|
+
Je(() => {
|
|
46
|
+
be();
|
|
47
47
|
});
|
|
48
|
-
const e =
|
|
49
|
-
get: () =>
|
|
48
|
+
const e = x({
|
|
49
|
+
get: () => Se(),
|
|
50
50
|
set: (a) => a
|
|
51
51
|
});
|
|
52
|
-
function
|
|
53
|
-
const a =
|
|
54
|
-
userConfig:
|
|
55
|
-
defaultConfig:
|
|
52
|
+
function Se() {
|
|
53
|
+
const a = lt({
|
|
54
|
+
userConfig: y.config,
|
|
55
|
+
defaultConfig: rt
|
|
56
56
|
});
|
|
57
|
-
let
|
|
58
|
-
return a.theme ?
|
|
59
|
-
...
|
|
60
|
-
userConfig:
|
|
57
|
+
let l = {};
|
|
58
|
+
return a.theme ? l = {
|
|
59
|
+
...lt({
|
|
60
|
+
userConfig: St.vue_ui_stackbar[a.theme] || y.config,
|
|
61
61
|
defaultConfig: a
|
|
62
62
|
}),
|
|
63
|
-
customPalette:
|
|
64
|
-
} :
|
|
63
|
+
customPalette: $t[a.theme] || ce
|
|
64
|
+
} : l = a, y.config && ve(y.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = y.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, y.config && ve(y.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = y.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, y.config && ve(y.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = y.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, y.config && ve(y.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = y.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
e.value =
|
|
68
|
-
}, { deep: !0 }),
|
|
69
|
-
|
|
66
|
+
qe(() => y.config, (a) => {
|
|
67
|
+
e.value = Se(), be(), st.value += 1, it.value += 1, nt.value += 1;
|
|
68
|
+
}, { deep: !0 }), qe(() => y.dataset, (a) => {
|
|
69
|
+
Oe();
|
|
70
70
|
}, { deep: !0 });
|
|
71
|
-
const
|
|
71
|
+
const C = d({
|
|
72
72
|
dataLabels: {
|
|
73
73
|
show: e.value.style.chart.bars.dataLabels.show
|
|
74
74
|
},
|
|
75
75
|
showTable: e.value.table.show,
|
|
76
76
|
showTooltip: e.value.style.chart.tooltip.show
|
|
77
|
-
}), { isPrinting:
|
|
78
|
-
elementId: `stackbar_${
|
|
77
|
+
}), { isPrinting: $e, isImaging: Me, generatePdf: Te, generateImage: Ne } = Et({
|
|
78
|
+
elementId: `stackbar_${ye.value}`,
|
|
79
79
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
80
|
-
}),
|
|
80
|
+
}), ae = d({
|
|
81
81
|
width: e.value.style.chart.width,
|
|
82
82
|
height: e.value.style.chart.height,
|
|
83
83
|
paddingRatio: {
|
|
@@ -86,148 +86,156 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
86
86
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
87
87
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
}), ut = x(() => Mt(e.value.customPalette)), Ie = d(null), Pe = d(null);
|
|
90
|
+
Je(() => {
|
|
91
|
+
be();
|
|
92
92
|
});
|
|
93
|
-
function
|
|
94
|
-
if (
|
|
93
|
+
function be() {
|
|
94
|
+
if (Tt(y.dataset) ? Ke({
|
|
95
95
|
componentName: "VueUiStackbar",
|
|
96
96
|
type: "dataset"
|
|
97
|
-
}) :
|
|
98
|
-
|
|
97
|
+
}) : y.dataset.forEach((a, l) => {
|
|
98
|
+
Nt({
|
|
99
99
|
datasetObject: a,
|
|
100
100
|
requiredAttributes: ["name", "series"]
|
|
101
101
|
}).forEach((t) => {
|
|
102
|
-
W.value = !1,
|
|
102
|
+
W.value = !1, Ke({
|
|
103
103
|
componentName: "VueUiStackbar",
|
|
104
104
|
type: "datasetSerieAttribute",
|
|
105
105
|
property: t,
|
|
106
|
-
index:
|
|
106
|
+
index: l
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
}), setTimeout(() => {
|
|
110
|
-
|
|
110
|
+
q.value = !0;
|
|
111
111
|
}, 10), e.value.responsive) {
|
|
112
|
-
const a =
|
|
113
|
-
|
|
114
|
-
const { width:
|
|
112
|
+
const a = Ft(() => {
|
|
113
|
+
q.value = !1;
|
|
114
|
+
const { width: l, height: t } = Dt({
|
|
115
115
|
chart: X.value,
|
|
116
|
-
title: e.value.style.chart.title.text ?
|
|
117
|
-
legend: e.value.style.chart.legend.show ?
|
|
118
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
119
|
-
source:
|
|
116
|
+
title: e.value.style.chart.title.text ? we.value : null,
|
|
117
|
+
legend: e.value.style.chart.legend.show ? ze.value : null,
|
|
118
|
+
slicer: e.value.style.chart.zoom.show && O.value > 1 ? Ce.value : null,
|
|
119
|
+
source: _e.value
|
|
120
120
|
});
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
ae.value.width = l, ae.value.height = t, clearTimeout(Pe.value), Pe.value = setTimeout(() => {
|
|
122
|
+
q.value = !0;
|
|
123
123
|
}, 10);
|
|
124
124
|
});
|
|
125
|
-
|
|
125
|
+
Ie.value = new ResizeObserver(a), Ie.value.observe(X.value.parentNode);
|
|
126
126
|
}
|
|
127
|
+
Ae();
|
|
127
128
|
}
|
|
128
|
-
const r =
|
|
129
|
-
const { height: a, width:
|
|
129
|
+
const r = x(() => {
|
|
130
|
+
const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, o = e.value.style.chart.padding.top, i = l - l * t, u = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, A = l - w - l * t, R = a - o - e.value.style.chart.padding.bottom;
|
|
130
131
|
return {
|
|
131
132
|
chartHeight: a,
|
|
132
|
-
chartWidth:
|
|
133
|
-
top:
|
|
133
|
+
chartWidth: l,
|
|
134
|
+
top: o,
|
|
134
135
|
right: i,
|
|
135
136
|
bottom: u,
|
|
136
137
|
left: w,
|
|
137
|
-
width:
|
|
138
|
-
height:
|
|
138
|
+
width: A,
|
|
139
|
+
height: R < 0 ? 0 : R
|
|
139
140
|
};
|
|
140
|
-
}), P =
|
|
141
|
-
const t =
|
|
141
|
+
}), P = x(() => y.dataset.map((a, l) => {
|
|
142
|
+
const t = It(a.color) || ut.value[l] || ce[l] || ce[l % ce.length];
|
|
142
143
|
return {
|
|
143
144
|
...a,
|
|
144
145
|
// In distributed mode, all values are converted to positive
|
|
145
|
-
series: JSON.parse(JSON.stringify(a.series)).map((
|
|
146
|
+
series: JSON.parse(JSON.stringify(a.series)).map((o) => e.value.style.chart.bars.distributed ? Math.abs(o) : o),
|
|
146
147
|
// Store signs to manage display of neg values in distributed mode
|
|
147
|
-
signedSeries: a.series.map((
|
|
148
|
-
absoluteIndex:
|
|
149
|
-
id:
|
|
148
|
+
signedSeries: a.series.map((o) => o >= 0 ? 1 : -1),
|
|
149
|
+
absoluteIndex: l,
|
|
150
|
+
id: Ze(),
|
|
150
151
|
color: t
|
|
151
152
|
};
|
|
152
|
-
})),
|
|
153
|
+
})), O = x(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = d({
|
|
153
154
|
start: 0,
|
|
154
|
-
end: Math.max(...
|
|
155
|
+
end: Math.max(...y.dataset.map((a) => a.series.length))
|
|
155
156
|
});
|
|
156
|
-
function
|
|
157
|
-
|
|
157
|
+
function Oe() {
|
|
158
|
+
Ae();
|
|
159
|
+
}
|
|
160
|
+
async function Ae() {
|
|
161
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && G.value ? (e.value.style.chart.zoom.startIndex !== null && (await ne(), await ne(), G.value && G.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ne(), await ne(), G.value && G.value.setEndValue(ct(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
|
|
158
162
|
start: 0,
|
|
159
|
-
end: Math.max(...
|
|
160
|
-
},
|
|
163
|
+
end: Math.max(...y.dataset.map((a) => a.series.length))
|
|
164
|
+
}, Le.value += 1);
|
|
165
|
+
}
|
|
166
|
+
function ct(a) {
|
|
167
|
+
const l = Math.max(...y.dataset.map((t) => t.series.length));
|
|
168
|
+
return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
161
169
|
}
|
|
162
|
-
const
|
|
170
|
+
const g = x(() => {
|
|
163
171
|
let a;
|
|
164
172
|
return e.value.orientation === "vertical" ? a = r.value.width / (c.value.end - c.value.start) : a = r.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
165
|
-
}),
|
|
173
|
+
}), Z = x(() => he(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), vt = x(() => he(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
|
|
166
174
|
...a,
|
|
167
|
-
series: a.series.map((
|
|
168
|
-
}))).slice(c.value.start, c.value.end)),
|
|
169
|
-
const a = P.value.filter((
|
|
175
|
+
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
176
|
+
}))).slice(c.value.start, c.value.end)), le = x(() => {
|
|
177
|
+
const a = P.value.filter((l) => !L.value.includes(l.id));
|
|
170
178
|
return {
|
|
171
|
-
positive:
|
|
172
|
-
...
|
|
173
|
-
series:
|
|
179
|
+
positive: he(a.map((l) => ({
|
|
180
|
+
...l,
|
|
181
|
+
series: l.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
|
|
174
182
|
}))),
|
|
175
|
-
negative:
|
|
176
|
-
...
|
|
177
|
-
series:
|
|
183
|
+
negative: he(a.map((l) => ({
|
|
184
|
+
...l,
|
|
185
|
+
series: l.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
|
|
178
186
|
})))
|
|
179
187
|
};
|
|
180
|
-
}), N =
|
|
181
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...
|
|
182
|
-
return
|
|
183
|
-
zero: r.value.bottom - r.value.height * (Math.abs(
|
|
184
|
-
y: r.value.bottom - r.value.height * ((i + Math.abs(
|
|
188
|
+
}), N = x(() => {
|
|
189
|
+
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...le.value.positive), l = Math.min(...le.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, o = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Qe(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : je(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
190
|
+
return o.ticks.map((i) => ({
|
|
191
|
+
zero: r.value.bottom - r.value.height * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
|
|
192
|
+
y: r.value.bottom - r.value.height * ((i + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
|
|
185
193
|
x: r.value.left - 8,
|
|
186
|
-
horizontal_zero: r.value.left + r.value.width * (Math.abs(
|
|
187
|
-
horizontal_x: r.value.left + r.value.width * ((i + Math.abs(
|
|
194
|
+
horizontal_zero: r.value.left + r.value.width * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
|
|
195
|
+
horizontal_x: r.value.left + r.value.width * ((i + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
|
|
188
196
|
horizontal_y: r.value.bottom - 8,
|
|
189
197
|
value: i
|
|
190
198
|
}));
|
|
191
|
-
}),
|
|
199
|
+
}), K = x(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), p = x(() => {
|
|
192
200
|
if (!W.value) return [];
|
|
193
|
-
let a = Array(
|
|
194
|
-
const i = Math.max(...
|
|
195
|
-
return P.value.filter((
|
|
196
|
-
const
|
|
197
|
-
const M = e.value.style.chart.bars.distributed ? (
|
|
198
|
-
let
|
|
199
|
-
return
|
|
200
|
-
}),
|
|
201
|
-
const M = e.value.style.chart.bars.distributed ? (
|
|
202
|
-
let
|
|
203
|
-
return
|
|
204
|
-
}),
|
|
205
|
-
const M = e.value.style.chart.bars.distributed ? (
|
|
206
|
-
return
|
|
207
|
-
}),
|
|
208
|
-
const M = e.value.style.chart.bars.distributed ? (
|
|
209
|
-
return
|
|
210
|
-
}),
|
|
201
|
+
let a = Array(O.value).fill(0), l = Array(O.value).fill(0), t = Array(O.value).fill(0), o = Array(O.value).fill(0);
|
|
202
|
+
const i = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, A = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Qe(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : je(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: R, max: Q } = A, V = Q + (R >= 0 ? 0 : Math.abs(R)) || 1, $ = r.value.height, ie = r.value.width, Ue = N.value[0] ? N.value[0].zero : r.value.bottom, Ye = N.value[0] ? N.value[0].horizontal_zero : r.value.left;
|
|
203
|
+
return P.value.filter((j) => !L.value.includes(j.id)).map((j) => {
|
|
204
|
+
const I = j.series.slice(c.value.start, c.value.end), bt = j.signedSeries.slice(c.value.start, c.value.end), ft = I.map((b, f) => r.value.left + g.value * f + g.value * e.value.style.chart.bars.gapRatio / 4), mt = I.map((b, f) => r.value.top + g.value * f + g.value * e.value.style.chart.bars.gapRatio / 4), pt = I.map((b, f) => {
|
|
205
|
+
const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
|
|
206
|
+
let F, T;
|
|
207
|
+
return b > 0 ? (T = $ * M, F = Ue - T - a[f], a[f] += T) : (T = $ * M, F = Ue + t[f], t[f] += Math.abs(T)), F;
|
|
208
|
+
}), xt = I.map((b, f) => {
|
|
209
|
+
const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
|
|
210
|
+
let F, T;
|
|
211
|
+
return b > 0 ? (T = ie * M, F = Ye + l[f], l[f] += T) : (T = ie * M, F = Ye - Math.abs(T) - o[f], o[f] += Math.abs(T)), F;
|
|
212
|
+
}), kt = I.map((b, f) => {
|
|
213
|
+
const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
|
|
214
|
+
return b > 0 ? $ * M : $ * Math.abs(M);
|
|
215
|
+
}), wt = I.map((b, f) => {
|
|
216
|
+
const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
|
|
217
|
+
return b > 0 ? ie * M : ie * Math.abs(M);
|
|
218
|
+
}), zt = I.map((b) => Math.abs(b)).reduce((b, f) => b + f, 0);
|
|
211
219
|
return {
|
|
212
|
-
...
|
|
213
|
-
proportions:
|
|
214
|
-
series:
|
|
215
|
-
signedSeries:
|
|
216
|
-
x:
|
|
217
|
-
y:
|
|
218
|
-
height:
|
|
219
|
-
horizontal_width:
|
|
220
|
-
horizontal_y:
|
|
221
|
-
horizontal_x:
|
|
220
|
+
...j,
|
|
221
|
+
proportions: I.map((b, f) => e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / zt),
|
|
222
|
+
series: I,
|
|
223
|
+
signedSeries: bt,
|
|
224
|
+
x: ft,
|
|
225
|
+
y: pt,
|
|
226
|
+
height: kt,
|
|
227
|
+
horizontal_width: wt,
|
|
228
|
+
horizontal_y: mt,
|
|
229
|
+
horizontal_x: xt
|
|
222
230
|
};
|
|
223
231
|
});
|
|
224
|
-
}),
|
|
232
|
+
}), Re = x(() => vt.value.map((a, l) => ({
|
|
225
233
|
value: a,
|
|
226
234
|
sign: a >= 0 ? 1 : -1
|
|
227
235
|
})));
|
|
228
|
-
function
|
|
236
|
+
function oe(a, l, t, o, i) {
|
|
229
237
|
const u = i === -1 && a >= 0 ? -a : a;
|
|
230
|
-
return
|
|
238
|
+
return at(
|
|
231
239
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
232
240
|
u,
|
|
233
241
|
B({
|
|
@@ -236,11 +244,11 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
236
244
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
237
245
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
238
246
|
}),
|
|
239
|
-
{ datapoint:
|
|
247
|
+
{ datapoint: l, seriesIndex: t, datapointIndex: o }
|
|
240
248
|
);
|
|
241
249
|
}
|
|
242
|
-
function
|
|
243
|
-
return
|
|
250
|
+
function Ve(a, l, t, o) {
|
|
251
|
+
return at(
|
|
244
252
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
245
253
|
a,
|
|
246
254
|
B({
|
|
@@ -248,38 +256,38 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
248
256
|
s: "%",
|
|
249
257
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
250
258
|
}),
|
|
251
|
-
{ datapoint:
|
|
259
|
+
{ datapoint: l, seriesIndex: t, datapointIndex: o }
|
|
252
260
|
);
|
|
253
261
|
}
|
|
254
|
-
function
|
|
255
|
-
const
|
|
262
|
+
function Fe(a) {
|
|
263
|
+
const l = JSON.parse(JSON.stringify(p.value)).map((t) => ({
|
|
256
264
|
name: t.name,
|
|
257
265
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
258
266
|
proportion: t.proportions[a] || null,
|
|
259
267
|
color: t.color,
|
|
260
268
|
id: t.id
|
|
261
269
|
}));
|
|
262
|
-
|
|
270
|
+
pe("selectDatapoint", { datapoint: l, period: K.value[a] });
|
|
263
271
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
266
|
-
const
|
|
272
|
+
function De(a) {
|
|
273
|
+
J.value = a, ee.value = !0;
|
|
274
|
+
const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(p.value)).map((i) => ({
|
|
267
275
|
name: i.name,
|
|
268
276
|
value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
|
|
269
277
|
proportion: i.proportions[a] || null,
|
|
270
278
|
color: i.color,
|
|
271
279
|
id: i.id
|
|
272
|
-
})),
|
|
273
|
-
if (
|
|
280
|
+
})), o = t.map((i) => Math.abs(i.value)).reduce((i, u) => i + u, 0);
|
|
281
|
+
if (tt(l) && At(() => l({
|
|
274
282
|
seriesIndex: a,
|
|
275
283
|
datapoint: t,
|
|
276
|
-
series:
|
|
284
|
+
series: p.value,
|
|
277
285
|
config: e.value
|
|
278
286
|
})))
|
|
279
|
-
|
|
287
|
+
ge.value = l({
|
|
280
288
|
seriesIndex: a,
|
|
281
289
|
datapoint: t,
|
|
282
|
-
series:
|
|
290
|
+
series: p.value,
|
|
283
291
|
config: e.value
|
|
284
292
|
});
|
|
285
293
|
else {
|
|
@@ -287,74 +295,74 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
287
295
|
showValue: i,
|
|
288
296
|
showPercentage: u,
|
|
289
297
|
borderColor: w,
|
|
290
|
-
roundingValue:
|
|
291
|
-
roundingPercentage:
|
|
298
|
+
roundingValue: A,
|
|
299
|
+
roundingPercentage: R
|
|
292
300
|
} = e.value.style.chart.tooltip;
|
|
293
|
-
let
|
|
294
|
-
|
|
295
|
-
const
|
|
301
|
+
let Q = "";
|
|
302
|
+
K.value[a] && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${K.value[a]}</div>`);
|
|
303
|
+
const V = [
|
|
296
304
|
i && u ? "(" : "",
|
|
297
305
|
i && u ? ")" : ""
|
|
298
306
|
];
|
|
299
307
|
t.reverse().forEach(($) => {
|
|
300
|
-
|
|
308
|
+
Q += `
|
|
301
309
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
302
310
|
<svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
|
|
303
311
|
${$.name}${i || u ? ":" : ""} ${i ? B({
|
|
304
312
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
305
313
|
v: $.value,
|
|
306
314
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
307
|
-
r:
|
|
308
|
-
}) : ""} ${
|
|
309
|
-
v: isNaN($.value /
|
|
315
|
+
r: A
|
|
316
|
+
}) : ""} ${V[0]}${u ? B({
|
|
317
|
+
v: isNaN($.value / o) ? 0 : Math.abs($.value) / o * 100,
|
|
310
318
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
311
319
|
s: "%",
|
|
312
|
-
r:
|
|
313
|
-
}) : ""}${
|
|
320
|
+
r: R
|
|
321
|
+
}) : ""}${V[1]}
|
|
314
322
|
</div>
|
|
315
323
|
`;
|
|
316
|
-
}),
|
|
324
|
+
}), ge.value = `<div>${Q}</div>`;
|
|
317
325
|
}
|
|
318
326
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
327
|
+
function ht(a) {
|
|
328
|
+
te.value = a, ke.value += 1;
|
|
321
329
|
}
|
|
322
|
-
function
|
|
323
|
-
|
|
330
|
+
function Ee() {
|
|
331
|
+
C.value.showTable = !C.value.showTable;
|
|
324
332
|
}
|
|
325
|
-
function
|
|
326
|
-
|
|
333
|
+
function He() {
|
|
334
|
+
C.value.dataLabels.show = !C.value.dataLabels.show;
|
|
327
335
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
336
|
+
function Be() {
|
|
337
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
330
338
|
}
|
|
331
|
-
function
|
|
332
|
-
return
|
|
339
|
+
function dt() {
|
|
340
|
+
return p.value;
|
|
333
341
|
}
|
|
334
|
-
const
|
|
335
|
-
if (
|
|
336
|
-
const a =
|
|
342
|
+
const We = x(() => {
|
|
343
|
+
if (p.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
344
|
+
const a = p.value.map(({ name: t, color: o }) => ({
|
|
337
345
|
label: t,
|
|
338
|
-
color:
|
|
339
|
-
})),
|
|
346
|
+
color: o
|
|
347
|
+
})), l = [];
|
|
340
348
|
for (let t = c.value.start; t < c.value.end; t += 1) {
|
|
341
|
-
const
|
|
349
|
+
const o = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
|
|
342
350
|
P.value.forEach((i) => {
|
|
343
|
-
|
|
344
|
-
}),
|
|
351
|
+
o.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
352
|
+
}), l.push(o);
|
|
345
353
|
}
|
|
346
|
-
return { head: a, body:
|
|
354
|
+
return { head: a, body: l };
|
|
347
355
|
});
|
|
348
|
-
function
|
|
349
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]],
|
|
350
|
-
|
|
356
|
+
function Xe() {
|
|
357
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...We.value.head.map((u) => u.label)], t = We.value.body, o = a.concat([l]).concat(t), i = Rt(o);
|
|
358
|
+
Vt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
351
359
|
}
|
|
352
|
-
const
|
|
353
|
-
const a = [""].concat(
|
|
354
|
-
let
|
|
355
|
-
for (let i = 0; i <
|
|
356
|
-
const u =
|
|
357
|
-
|
|
360
|
+
const re = x(() => {
|
|
361
|
+
const a = [""].concat(p.value.map((i) => i.name)).concat(' <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>');
|
|
362
|
+
let l = [];
|
|
363
|
+
for (let i = 0; i < O.value; i += 1) {
|
|
364
|
+
const u = p.value.map((w) => w.series[i] ?? 0).reduce((w, A) => w + A, 0);
|
|
365
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(p.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
358
366
|
}
|
|
359
367
|
const t = {
|
|
360
368
|
th: {
|
|
@@ -368,68 +376,68 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
368
376
|
outline: e.value.table.td.outline
|
|
369
377
|
},
|
|
370
378
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
371
|
-
},
|
|
372
|
-
return { head: a, body:
|
|
379
|
+
}, o = [e.value.table.columnNames.period].concat(p.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
|
|
380
|
+
return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames: o };
|
|
373
381
|
});
|
|
374
|
-
function
|
|
375
|
-
if (
|
|
376
|
-
L.value = L.value.filter((t) => t !==
|
|
382
|
+
function yt(a, l) {
|
|
383
|
+
if (pe("selectLegend", p.value.find((t) => t.absoluteIndex === a)), L.value.includes(l.id))
|
|
384
|
+
L.value = L.value.filter((t) => t !== l.id);
|
|
377
385
|
else {
|
|
378
386
|
if (L.value.length === P.value.length - 1) return;
|
|
379
|
-
L.value.push(
|
|
387
|
+
L.value.push(l.id);
|
|
380
388
|
}
|
|
381
389
|
}
|
|
382
|
-
const
|
|
390
|
+
const Ge = x(() => P.value.map((a, l) => ({
|
|
383
391
|
...a,
|
|
384
392
|
shape: "square"
|
|
385
393
|
})).map((a) => ({
|
|
386
394
|
...a,
|
|
387
395
|
opacity: L.value.includes(a.id) ? 0.5 : 1,
|
|
388
|
-
segregate: () =>
|
|
396
|
+
segregate: () => yt(a.absoluteIndex, a),
|
|
389
397
|
isSegregated: L.value.includes(a.id)
|
|
390
|
-
}))),
|
|
398
|
+
}))), gt = x(() => ({
|
|
391
399
|
cy: "stackbar-legend",
|
|
392
400
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
393
401
|
color: e.value.style.chart.legend.color,
|
|
394
402
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
395
403
|
paddingBottom: 12,
|
|
396
404
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
397
|
-
})),
|
|
398
|
-
function
|
|
399
|
-
|
|
405
|
+
})), se = d(!1);
|
|
406
|
+
function fe() {
|
|
407
|
+
se.value = !se.value;
|
|
400
408
|
}
|
|
401
|
-
return
|
|
402
|
-
getData:
|
|
403
|
-
generatePdf:
|
|
404
|
-
generateCsv:
|
|
405
|
-
generateImage:
|
|
406
|
-
toggleTable:
|
|
407
|
-
toggleLabels:
|
|
408
|
-
toggleTooltip:
|
|
409
|
-
toggleAnnotator:
|
|
410
|
-
}), (a,
|
|
411
|
-
id: `stackbar_${
|
|
409
|
+
return ot({
|
|
410
|
+
getData: dt,
|
|
411
|
+
generatePdf: Te,
|
|
412
|
+
generateCsv: Xe,
|
|
413
|
+
generateImage: Ne,
|
|
414
|
+
toggleTable: Ee,
|
|
415
|
+
toggleLabels: He,
|
|
416
|
+
toggleTooltip: Be,
|
|
417
|
+
toggleAnnotator: fe
|
|
418
|
+
}), (a, l) => (s(), n("div", {
|
|
419
|
+
id: `stackbar_${ye.value}`,
|
|
412
420
|
ref_key: "stackbarChart",
|
|
413
421
|
ref: X,
|
|
414
|
-
class:
|
|
422
|
+
class: me({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": te.value }),
|
|
415
423
|
style: U(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
416
424
|
}, [
|
|
417
|
-
e.value.userOptions.buttons.annotator ? (s(), Y(
|
|
425
|
+
e.value.userOptions.buttons.annotator ? (s(), Y(Zt, {
|
|
418
426
|
key: 0,
|
|
419
427
|
parent: X.value,
|
|
420
428
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
421
429
|
color: e.value.style.chart.color,
|
|
422
|
-
active:
|
|
423
|
-
onClose:
|
|
430
|
+
active: se.value,
|
|
431
|
+
onClose: fe
|
|
424
432
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
425
433
|
k(a.$slots, "userConfig", {}, void 0, !0),
|
|
426
434
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
427
435
|
key: 1,
|
|
428
436
|
ref_key: "chartTitle",
|
|
429
|
-
ref:
|
|
437
|
+
ref: we,
|
|
430
438
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
431
439
|
}, [
|
|
432
|
-
|
|
440
|
+
ue(Xt, {
|
|
433
441
|
config: {
|
|
434
442
|
title: {
|
|
435
443
|
cy: "stackbar-title",
|
|
@@ -442,14 +450,14 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
442
450
|
}
|
|
443
451
|
}, null, 8, ["config"])
|
|
444
452
|
], 512)) : v("", !0),
|
|
445
|
-
e.value.userOptions.show && W.value ? (s(), Y(
|
|
453
|
+
e.value.userOptions.show && W.value ? (s(), Y(Ht, {
|
|
446
454
|
ref: "details",
|
|
447
|
-
key: `user_option_${
|
|
455
|
+
key: `user_option_${ke.value}`,
|
|
448
456
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
449
457
|
color: e.value.style.chart.color,
|
|
450
|
-
isPrinting:
|
|
451
|
-
isImaging:
|
|
452
|
-
uid:
|
|
458
|
+
isPrinting: _($e),
|
|
459
|
+
isImaging: _(Me),
|
|
460
|
+
uid: ye.value,
|
|
453
461
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
454
462
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
455
463
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -457,88 +465,88 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
457
465
|
hasTable: e.value.userOptions.buttons.table,
|
|
458
466
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
459
467
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
460
|
-
isFullscreen:
|
|
468
|
+
isFullscreen: te.value,
|
|
461
469
|
chartElement: X.value,
|
|
462
470
|
position: e.value.userOptions.position,
|
|
463
|
-
isTooltip:
|
|
471
|
+
isTooltip: C.value.showTooltip,
|
|
464
472
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
465
473
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
466
|
-
isAnnotation:
|
|
467
|
-
onToggleFullscreen:
|
|
468
|
-
onGeneratePdf:
|
|
469
|
-
onGenerateCsv:
|
|
470
|
-
onGenerateImage:
|
|
471
|
-
onToggleTable:
|
|
472
|
-
onToggleLabels:
|
|
473
|
-
onToggleTooltip:
|
|
474
|
-
onToggleAnnotator:
|
|
475
|
-
},
|
|
474
|
+
isAnnotation: se.value,
|
|
475
|
+
onToggleFullscreen: ht,
|
|
476
|
+
onGeneratePdf: _(Te),
|
|
477
|
+
onGenerateCsv: Xe,
|
|
478
|
+
onGenerateImage: _(Ne),
|
|
479
|
+
onToggleTable: Ee,
|
|
480
|
+
onToggleLabels: He,
|
|
481
|
+
onToggleTooltip: Be,
|
|
482
|
+
onToggleAnnotator: fe
|
|
483
|
+
}, Ct({ _: 2 }, [
|
|
476
484
|
a.$slots.optionTooltip ? {
|
|
477
485
|
name: "optionTooltip",
|
|
478
|
-
fn:
|
|
486
|
+
fn: z(() => [
|
|
479
487
|
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
480
488
|
]),
|
|
481
489
|
key: "0"
|
|
482
490
|
} : void 0,
|
|
483
491
|
a.$slots.optionPdf ? {
|
|
484
492
|
name: "optionPdf",
|
|
485
|
-
fn:
|
|
493
|
+
fn: z(() => [
|
|
486
494
|
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
487
495
|
]),
|
|
488
496
|
key: "1"
|
|
489
497
|
} : void 0,
|
|
490
498
|
a.$slots.optionCsv ? {
|
|
491
499
|
name: "optionCsv",
|
|
492
|
-
fn:
|
|
500
|
+
fn: z(() => [
|
|
493
501
|
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
494
502
|
]),
|
|
495
503
|
key: "2"
|
|
496
504
|
} : void 0,
|
|
497
505
|
a.$slots.optionImg ? {
|
|
498
506
|
name: "optionImg",
|
|
499
|
-
fn:
|
|
507
|
+
fn: z(() => [
|
|
500
508
|
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
501
509
|
]),
|
|
502
510
|
key: "3"
|
|
503
511
|
} : void 0,
|
|
504
512
|
a.$slots.optionTable ? {
|
|
505
513
|
name: "optionTable",
|
|
506
|
-
fn:
|
|
514
|
+
fn: z(() => [
|
|
507
515
|
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
508
516
|
]),
|
|
509
517
|
key: "4"
|
|
510
518
|
} : void 0,
|
|
511
519
|
a.$slots.optionLabels ? {
|
|
512
520
|
name: "optionLabels",
|
|
513
|
-
fn:
|
|
521
|
+
fn: z(() => [
|
|
514
522
|
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
515
523
|
]),
|
|
516
524
|
key: "5"
|
|
517
525
|
} : void 0,
|
|
518
526
|
a.$slots.optionFullscreen ? {
|
|
519
527
|
name: "optionFullscreen",
|
|
520
|
-
fn:
|
|
521
|
-
k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen:
|
|
528
|
+
fn: z(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
529
|
+
k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
522
530
|
]),
|
|
523
531
|
key: "6"
|
|
524
532
|
} : void 0,
|
|
525
533
|
a.$slots.optionAnnotator ? {
|
|
526
534
|
name: "optionAnnotator",
|
|
527
|
-
fn:
|
|
528
|
-
k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator:
|
|
535
|
+
fn: z(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
536
|
+
k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
529
537
|
]),
|
|
530
538
|
key: "7"
|
|
531
539
|
} : void 0
|
|
532
540
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
533
541
|
W.value ? (s(), n("svg", {
|
|
534
542
|
key: 3,
|
|
535
|
-
xmlns:
|
|
543
|
+
xmlns: _(Pt),
|
|
536
544
|
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
537
545
|
style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
538
546
|
}, [
|
|
539
|
-
|
|
540
|
-
e.value.style.chart.bars.gradient.show ? (s(), n("defs",
|
|
541
|
-
(s(!0), n(h, null,
|
|
547
|
+
ue(qt),
|
|
548
|
+
e.value.style.chart.bars.gradient.show ? (s(), n("defs", ea, [
|
|
549
|
+
(s(!0), n(h, null, m(p.value, (t, o) => (s(), n("linearGradient", {
|
|
542
550
|
id: `gradient_${t.id}`,
|
|
543
551
|
x1: "0%",
|
|
544
552
|
y1: "0%",
|
|
@@ -548,18 +556,18 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
548
556
|
H("stop", {
|
|
549
557
|
offset: "0%",
|
|
550
558
|
"stop-color": t.color
|
|
551
|
-
}, null, 8,
|
|
559
|
+
}, null, 8, aa),
|
|
552
560
|
H("stop", {
|
|
553
561
|
offset: "61.8%",
|
|
554
|
-
"stop-color":
|
|
555
|
-
}, null, 8,
|
|
562
|
+
"stop-color": _(Ot)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
563
|
+
}, null, 8, la),
|
|
556
564
|
H("stop", {
|
|
557
565
|
offset: "100%",
|
|
558
566
|
"stop-color": t.color
|
|
559
|
-
}, null, 8,
|
|
560
|
-
], 8,
|
|
567
|
+
}, null, 8, oa)
|
|
568
|
+
], 8, ta))), 256))
|
|
561
569
|
])) : v("", !0),
|
|
562
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 1 },
|
|
570
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 1 }, m(N.value, (t, o) => (s(), n("line", {
|
|
563
571
|
x1: r.value.left,
|
|
564
572
|
x2: r.value.right,
|
|
565
573
|
y1: t.y,
|
|
@@ -567,26 +575,26 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
567
575
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
568
576
|
"stroke-width": 1,
|
|
569
577
|
"stroke-linecap": "round"
|
|
570
|
-
}, null, 8,
|
|
571
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 2 },
|
|
578
|
+
}, null, 8, ra))), 256)) : v("", !0),
|
|
579
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 2 }, m(c.value.end - c.value.start + 1, (t, o) => (s(), n("line", {
|
|
572
580
|
x1: r.value.left,
|
|
573
581
|
x2: r.value.right,
|
|
574
|
-
y1: r.value.top +
|
|
575
|
-
y2: r.value.top +
|
|
582
|
+
y1: r.value.top + g.value * o,
|
|
583
|
+
y2: r.value.top + g.value * o,
|
|
576
584
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
577
585
|
"stroke-width": 1,
|
|
578
586
|
"stroke-linecap": "round"
|
|
579
|
-
}, null, 8,
|
|
580
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 3 },
|
|
581
|
-
x1: r.value.left +
|
|
582
|
-
x2: r.value.left +
|
|
587
|
+
}, null, 8, sa))), 256)) : v("", !0),
|
|
588
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 3 }, m(c.value.end - c.value.start + 1, (t, o) => (s(), n("line", {
|
|
589
|
+
x1: r.value.left + g.value * o,
|
|
590
|
+
x2: r.value.left + g.value * o,
|
|
583
591
|
y1: r.value.top,
|
|
584
592
|
y2: r.value.bottom,
|
|
585
593
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
586
594
|
"stroke-width": 1,
|
|
587
595
|
"stroke-linecap": "round"
|
|
588
|
-
}, null, 8,
|
|
589
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 4 },
|
|
596
|
+
}, null, 8, ia))), 256)) : v("", !0),
|
|
597
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 4 }, m(N.value, (t, o) => (s(), n("line", {
|
|
590
598
|
x1: t.horizontal_x,
|
|
591
599
|
x2: t.horizontal_x,
|
|
592
600
|
y1: r.value.top,
|
|
@@ -594,33 +602,33 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
594
602
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
595
603
|
"stroke-width": 1,
|
|
596
604
|
"stroke-linecap": "round"
|
|
597
|
-
}, null, 8,
|
|
598
|
-
(s(!0), n(h, null,
|
|
599
|
-
e.value.orientation === "vertical" ? (s(!0), n(h, { key: 0 },
|
|
605
|
+
}, null, 8, na))), 256)) : v("", !0),
|
|
606
|
+
(s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
|
|
607
|
+
e.value.orientation === "vertical" ? (s(!0), n(h, { key: 0 }, m(t.x, (i, u) => (s(), n("rect", {
|
|
600
608
|
x: i,
|
|
601
609
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
602
610
|
height: t.height[u] < 0 ? 1e-4 : t.height[u],
|
|
603
611
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
604
|
-
width:
|
|
612
|
+
width: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
605
613
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
606
614
|
stroke: e.value.style.chart.backgroundColor,
|
|
607
615
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
608
616
|
"stroke-linecap": "round",
|
|
609
617
|
"stroke-linejoin": "round",
|
|
610
|
-
class:
|
|
611
|
-
}, null, 10,
|
|
618
|
+
class: me({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": q.value })
|
|
619
|
+
}, null, 10, ua))), 256)) : (s(!0), n(h, { key: 1 }, m(t.horizontal_x, (i, u) => (s(), n("rect", {
|
|
612
620
|
x: i,
|
|
613
621
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
614
622
|
width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
|
|
615
623
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
616
|
-
height:
|
|
624
|
+
height: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
617
625
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
618
626
|
stroke: e.value.style.chart.backgroundColor,
|
|
619
627
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
620
628
|
"stroke-linecap": "round",
|
|
621
629
|
"stroke-linejoin": "round",
|
|
622
|
-
class:
|
|
623
|
-
}, null, 10,
|
|
630
|
+
class: me({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": q.value })
|
|
631
|
+
}, null, 10, ca))), 256))
|
|
624
632
|
]))), 256)),
|
|
625
633
|
e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
|
|
626
634
|
key: 5,
|
|
@@ -632,7 +640,7 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
632
640
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
633
641
|
"stroke-linecap": "round",
|
|
634
642
|
"stroke-linejoin": "round"
|
|
635
|
-
}, null, 8,
|
|
643
|
+
}, null, 8, va)) : v("", !0),
|
|
636
644
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
|
|
637
645
|
key: 6,
|
|
638
646
|
x1: r.value.left,
|
|
@@ -643,7 +651,7 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
643
651
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
644
652
|
"stroke-linecap": "round",
|
|
645
653
|
"stroke-linejoin": "round"
|
|
646
|
-
}, null, 8,
|
|
654
|
+
}, null, 8, ha)) : v("", !0),
|
|
647
655
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
|
|
648
656
|
key: 7,
|
|
649
657
|
x: r.value.left + r.value.width / 2,
|
|
@@ -652,7 +660,7 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
652
660
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
653
661
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
654
662
|
"text-anchor": "middle"
|
|
655
|
-
}, S(e.value.style.chart.grid.x.axisName.text), 9,
|
|
663
|
+
}, S(e.value.style.chart.grid.x.axisName.text), 9, da)) : v("", !0),
|
|
656
664
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
|
|
657
665
|
key: 8,
|
|
658
666
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
@@ -660,76 +668,76 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
660
668
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
661
669
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
662
670
|
"text-anchor": "middle"
|
|
663
|
-
}, S(e.value.style.chart.grid.y.axisName.text), 9,
|
|
664
|
-
|
|
665
|
-
(s(!0), n(h, null,
|
|
666
|
-
(s(!0), n(h, null,
|
|
667
|
-
x: i +
|
|
671
|
+
}, S(e.value.style.chart.grid.y.axisName.text), 9, ya)) : v("", !0),
|
|
672
|
+
C.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(h, { key: 9 }, [
|
|
673
|
+
(s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
|
|
674
|
+
(s(!0), n(h, null, m(t.x, (i, u) => (s(), n("text", {
|
|
675
|
+
x: i + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
668
676
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
669
677
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
670
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
678
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? _(et)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
671
679
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
672
680
|
"text-anchor": "middle"
|
|
673
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
681
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ve(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, ga))), 256))
|
|
674
682
|
]))), 256)),
|
|
675
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
676
|
-
(s(!0), n(h, null,
|
|
677
|
-
x: r.value.left +
|
|
683
|
+
e.value.style.chart.bars.totalValues.show && p.value.length > 1 ? (s(), n("g", ba, [
|
|
684
|
+
(s(!0), n(h, null, m(Re.value, (t, o) => (s(), n("text", {
|
|
685
|
+
x: r.value.left + g.value * o + g.value / 2,
|
|
678
686
|
y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
679
687
|
"text-anchor": "middle",
|
|
680
688
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
681
689
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
682
690
|
fill: e.value.style.chart.bars.totalValues.color
|
|
683
|
-
}, S(
|
|
691
|
+
}, S(oe(t.value, t, o, t.sign)), 9, fa))), 256))
|
|
684
692
|
])) : v("", !0)
|
|
685
693
|
], 64)) : v("", !0),
|
|
686
|
-
|
|
687
|
-
(s(!0), n(h, null,
|
|
688
|
-
(s(!0), n(h, null,
|
|
694
|
+
C.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(h, { key: 10 }, [
|
|
695
|
+
(s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
|
|
696
|
+
(s(!0), n(h, null, m(t.horizontal_x, (i, u) => (s(), n("text", {
|
|
689
697
|
x: i + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
690
|
-
y: t.horizontal_y[u] +
|
|
698
|
+
y: t.horizontal_y[u] + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
691
699
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
692
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
700
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? _(et)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
693
701
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
694
702
|
"text-anchor": "middle"
|
|
695
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
703
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ve(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, ma))), 256))
|
|
696
704
|
]))), 256)),
|
|
697
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
698
|
-
(s(!0), n(h, null,
|
|
705
|
+
e.value.style.chart.bars.totalValues.show && p.value.length > 1 ? (s(), n("g", pa, [
|
|
706
|
+
(s(!0), n(h, null, m(Re.value, (t, o) => (s(), n("text", {
|
|
699
707
|
x: r.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
700
|
-
y: r.value.top +
|
|
708
|
+
y: r.value.top + g.value * o + g.value / 2,
|
|
701
709
|
"text-anchor": "start",
|
|
702
710
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
703
711
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
704
712
|
fill: e.value.style.chart.bars.totalValues.color
|
|
705
|
-
}, S(
|
|
713
|
+
}, S(oe(t.value, t, o, t.sign)), 9, xa))), 256))
|
|
706
714
|
])) : v("", !0)
|
|
707
715
|
], 64)) : v("", !0),
|
|
708
716
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(h, { key: 11 }, [
|
|
709
|
-
(s(!0), n(h, null,
|
|
717
|
+
(s(!0), n(h, null, m(N.value, (t, o) => (s(), n("line", {
|
|
710
718
|
x1: r.value.left,
|
|
711
719
|
x2: r.value.left - 6,
|
|
712
720
|
y1: t.y,
|
|
713
721
|
y2: t.y,
|
|
714
722
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
715
723
|
"stroke-width": 1
|
|
716
|
-
}, null, 8,
|
|
717
|
-
(s(!0), n(h, null,
|
|
724
|
+
}, null, 8, ka))), 256)),
|
|
725
|
+
(s(!0), n(h, null, m(N.value, (t, o) => (s(), n("text", {
|
|
718
726
|
x: t.x,
|
|
719
727
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
720
728
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
721
729
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
722
730
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
723
731
|
"text-anchor": "end"
|
|
724
|
-
}, S(
|
|
732
|
+
}, S(_(B)({
|
|
725
733
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
726
734
|
v: t.value,
|
|
727
735
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
728
736
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
729
|
-
})), 9,
|
|
737
|
+
})), 9, wa))), 256))
|
|
730
738
|
], 64)) : v("", !0),
|
|
731
739
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(h, { key: 12 }, [
|
|
732
|
-
(s(!0), n(h, null,
|
|
740
|
+
(s(!0), n(h, null, m(N.value, (t, o) => (s(), n("line", {
|
|
733
741
|
x1: t.horizontal_x,
|
|
734
742
|
x2: t.horizontal_x,
|
|
735
743
|
y1: r.value.bottom,
|
|
@@ -737,67 +745,67 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
737
745
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
738
746
|
"stroke-width": 1,
|
|
739
747
|
"stroke-linecap": "round"
|
|
740
|
-
}, null, 8,
|
|
741
|
-
(s(!0), n(h, null,
|
|
748
|
+
}, null, 8, za))), 256)),
|
|
749
|
+
(s(!0), n(h, null, m(N.value, (t, o) => (s(), n("text", {
|
|
742
750
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
743
751
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
744
752
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
745
753
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
746
754
|
transform: `translate(${t.horizontal_x}, ${r.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
747
|
-
}, S(
|
|
755
|
+
}, S(_(B)({
|
|
748
756
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
749
757
|
v: t.value,
|
|
750
758
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
751
759
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
752
|
-
})), 9,
|
|
760
|
+
})), 9, Ca))), 256))
|
|
753
761
|
], 64)) : v("", !0),
|
|
754
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 13 },
|
|
762
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 13 }, m(K.value, (t, o) => (s(), n("text", {
|
|
755
763
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
756
764
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
757
765
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
758
766
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
759
|
-
transform: `translate(${r.value.left +
|
|
760
|
-
}, S(t), 9,
|
|
761
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 14 },
|
|
767
|
+
transform: `translate(${r.value.left + g.value * o + g.value / 2}, ${r.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
768
|
+
}, S(t), 9, _a))), 256)) : v("", !0),
|
|
769
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 14 }, m(K.value, (t, o) => (s(), n("text", {
|
|
762
770
|
"text-anchor": "end",
|
|
763
771
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
764
772
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
765
773
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
766
774
|
x: r.value.left - 8,
|
|
767
|
-
y: r.value.top +
|
|
768
|
-
}, S(t), 9,
|
|
769
|
-
|
|
770
|
-
x: r.value.left +
|
|
775
|
+
y: r.value.top + g.value * o + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
|
|
776
|
+
}, S(t), 9, La))), 256)) : v("", !0),
|
|
777
|
+
C.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 15 }, m(c.value.end - c.value.start, (t, o) => (s(), n("rect", {
|
|
778
|
+
x: r.value.left + o * g.value,
|
|
771
779
|
y: r.value.top,
|
|
772
|
-
width:
|
|
780
|
+
width: g.value,
|
|
773
781
|
height: r.value.height < 0 ? 0 : r.value.height,
|
|
774
|
-
onClick: (i) =>
|
|
775
|
-
onMouseenter: (i) =>
|
|
776
|
-
onMouseleave:
|
|
777
|
-
|
|
782
|
+
onClick: (i) => Fe(o),
|
|
783
|
+
onMouseenter: (i) => De(o),
|
|
784
|
+
onMouseleave: l[0] || (l[0] = (i) => {
|
|
785
|
+
J.value = null, ee.value = !1;
|
|
778
786
|
}),
|
|
779
|
-
fill:
|
|
787
|
+
fill: o === J.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
780
788
|
style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
781
|
-
}, null, 44,
|
|
782
|
-
|
|
789
|
+
}, null, 44, Sa))), 256)) : v("", !0),
|
|
790
|
+
C.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 16 }, m(c.value.end - c.value.start, (t, o) => (s(), n("rect", {
|
|
783
791
|
x: r.value.left,
|
|
784
|
-
y: r.value.top +
|
|
792
|
+
y: r.value.top + o * g.value,
|
|
785
793
|
width: r.value.width < 0 ? 0 : r.value.width,
|
|
786
|
-
height:
|
|
787
|
-
onClick: (i) =>
|
|
788
|
-
onMouseenter: (i) =>
|
|
789
|
-
onMouseleave:
|
|
790
|
-
|
|
794
|
+
height: g.value,
|
|
795
|
+
onClick: (i) => Fe(o),
|
|
796
|
+
onMouseenter: (i) => De(o),
|
|
797
|
+
onMouseleave: l[1] || (l[1] = (i) => {
|
|
798
|
+
J.value = null, ee.value = !1;
|
|
791
799
|
}),
|
|
792
|
-
fill:
|
|
800
|
+
fill: o === J.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
793
801
|
style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
794
|
-
}, null, 44,
|
|
802
|
+
}, null, 44, $a))), 256)) : v("", !0),
|
|
795
803
|
k(a.$slots, "svg", D(E({ ...r.value })), void 0, !0)
|
|
796
|
-
], 12,
|
|
797
|
-
a.$slots.watermark ? (s(), n("div",
|
|
798
|
-
k(a.$slots, "watermark", D(E({ isPrinting:
|
|
804
|
+
], 12, jt)) : v("", !0),
|
|
805
|
+
a.$slots.watermark ? (s(), n("div", Ma, [
|
|
806
|
+
k(a.$slots, "watermark", D(E({ isPrinting: _($e) || _(Me) })), void 0, !0)
|
|
799
807
|
])) : v("", !0),
|
|
800
|
-
W.value ? v("", !0) : (s(), Y(
|
|
808
|
+
W.value ? v("", !0) : (s(), Y(Jt, {
|
|
801
809
|
key: 5,
|
|
802
810
|
config: {
|
|
803
811
|
type: "bar",
|
|
@@ -814,12 +822,14 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
814
822
|
}, null, 8, ["config"])),
|
|
815
823
|
H("div", {
|
|
816
824
|
ref_key: "chartSlicer",
|
|
817
|
-
ref:
|
|
825
|
+
ref: Ce,
|
|
818
826
|
style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
819
827
|
"data-html2canvas-ignore": ""
|
|
820
828
|
}, [
|
|
821
|
-
e.value.style.chart.zoom.show &&
|
|
822
|
-
|
|
829
|
+
e.value.style.chart.zoom.show && O.value > 1 ? (s(), Y(Bt, {
|
|
830
|
+
ref_key: "slicerComponent",
|
|
831
|
+
ref: G,
|
|
832
|
+
key: `slicer_${Le.value}`,
|
|
823
833
|
background: e.value.style.chart.zoom.color,
|
|
824
834
|
borderColor: e.value.style.chart.backgroundColor,
|
|
825
835
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -829,24 +839,26 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
829
839
|
textColor: e.value.style.chart.color,
|
|
830
840
|
inputColor: e.value.style.chart.zoom.color,
|
|
831
841
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
832
|
-
max: Math.max(...
|
|
842
|
+
max: Math.max(...de.dataset.map((t) => t.series.length)),
|
|
833
843
|
min: 0,
|
|
834
844
|
valueStart: c.value.start,
|
|
835
845
|
valueEnd: c.value.end,
|
|
836
846
|
start: c.value.start,
|
|
837
|
-
"onUpdate:start":
|
|
847
|
+
"onUpdate:start": l[2] || (l[2] = (t) => c.value.start = t),
|
|
838
848
|
end: c.value.end,
|
|
839
|
-
"onUpdate:end":
|
|
840
|
-
|
|
849
|
+
"onUpdate:end": l[3] || (l[3] = (t) => c.value.end = t),
|
|
850
|
+
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
851
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...de.dataset.map((t) => t.series.length)),
|
|
852
|
+
onReset: Oe
|
|
841
853
|
}, {
|
|
842
|
-
"reset-action":
|
|
854
|
+
"reset-action": z(({ reset: t }) => [
|
|
843
855
|
k(a.$slots, "reset-action", D(E({ reset: t })), void 0, !0)
|
|
844
856
|
]),
|
|
845
857
|
_: 3
|
|
846
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
|
|
858
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : v("", !0)
|
|
847
859
|
], 4),
|
|
848
|
-
|
|
849
|
-
show:
|
|
860
|
+
ue(Wt, {
|
|
861
|
+
show: C.value.showTooltip && ee.value,
|
|
850
862
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
851
863
|
color: e.value.style.chart.tooltip.color,
|
|
852
864
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -857,52 +869,53 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
857
869
|
position: e.value.style.chart.tooltip.position,
|
|
858
870
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
859
871
|
parent: X.value,
|
|
860
|
-
content:
|
|
861
|
-
|
|
872
|
+
content: ge.value,
|
|
873
|
+
isFullscreen: te.value,
|
|
874
|
+
isCustom: _(tt)(e.value.style.chart.tooltip.customFormat)
|
|
862
875
|
}, {
|
|
863
|
-
"tooltip-before":
|
|
864
|
-
k(a.$slots, "tooltip-before", D(E({ ...
|
|
876
|
+
"tooltip-before": z(() => [
|
|
877
|
+
k(a.$slots, "tooltip-before", D(E({ ...xe.value })), void 0, !0)
|
|
865
878
|
]),
|
|
866
|
-
"tooltip-after":
|
|
867
|
-
k(a.$slots, "tooltip-after", D(E({ ...
|
|
879
|
+
"tooltip-after": z(() => [
|
|
880
|
+
k(a.$slots, "tooltip-after", D(E({ ...xe.value })), void 0, !0)
|
|
868
881
|
]),
|
|
869
882
|
_: 3
|
|
870
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
883
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
871
884
|
H("div", {
|
|
872
885
|
ref_key: "chartLegend",
|
|
873
|
-
ref:
|
|
886
|
+
ref: ze
|
|
874
887
|
}, [
|
|
875
|
-
e.value.style.chart.legend.show && W.value ? (s(), Y(
|
|
888
|
+
e.value.style.chart.legend.show && W.value ? (s(), Y(Gt, {
|
|
876
889
|
key: 0,
|
|
877
|
-
legendSet:
|
|
878
|
-
config:
|
|
879
|
-
onClickMarker:
|
|
890
|
+
legendSet: Ge.value,
|
|
891
|
+
config: gt.value,
|
|
892
|
+
onClickMarker: l[4] || (l[4] = ({ legend: t }) => t.segregate())
|
|
880
893
|
}, {
|
|
881
|
-
item:
|
|
894
|
+
item: z(({ legend: t }) => [
|
|
882
895
|
H("div", {
|
|
883
|
-
onClick: (
|
|
896
|
+
onClick: (o) => t.segregate(),
|
|
884
897
|
style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
885
|
-
}, S(t.name), 13,
|
|
898
|
+
}, S(t.name), 13, Ta)
|
|
886
899
|
]),
|
|
887
900
|
_: 1
|
|
888
901
|
}, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
|
|
889
902
|
key: 1,
|
|
890
|
-
legend:
|
|
903
|
+
legend: Ge.value
|
|
891
904
|
}, void 0, !0)
|
|
892
905
|
], 512),
|
|
893
906
|
a.$slots.source ? (s(), n("div", {
|
|
894
907
|
key: 6,
|
|
895
908
|
ref_key: "source",
|
|
896
|
-
ref:
|
|
909
|
+
ref: _e,
|
|
897
910
|
dir: "auto"
|
|
898
911
|
}, [
|
|
899
912
|
k(a.$slots, "source", {}, void 0, !0)
|
|
900
913
|
], 512)) : v("", !0),
|
|
901
|
-
c.value.end - c.value.start < 200 ? (s(), Y(
|
|
914
|
+
c.value.end - c.value.start < 200 ? (s(), Y(Ut, {
|
|
902
915
|
key: 7,
|
|
903
916
|
hideDetails: "",
|
|
904
917
|
config: {
|
|
905
|
-
open:
|
|
918
|
+
open: C.value.showTable,
|
|
906
919
|
maxHeight: 1e4,
|
|
907
920
|
body: {
|
|
908
921
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -914,20 +927,20 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
914
927
|
}
|
|
915
928
|
}
|
|
916
929
|
}, {
|
|
917
|
-
content:
|
|
918
|
-
|
|
919
|
-
colNames:
|
|
920
|
-
head:
|
|
921
|
-
body:
|
|
922
|
-
config:
|
|
930
|
+
content: z(() => [
|
|
931
|
+
ue(Yt, {
|
|
932
|
+
colNames: re.value.colNames,
|
|
933
|
+
head: re.value.head,
|
|
934
|
+
body: re.value.body,
|
|
935
|
+
config: re.value.config,
|
|
923
936
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
924
|
-
onClose:
|
|
937
|
+
onClose: l[5] || (l[5] = (t) => C.value.showTable = !1)
|
|
925
938
|
}, {
|
|
926
|
-
th:
|
|
927
|
-
H("div", { innerHTML: t }, null, 8,
|
|
939
|
+
th: z(({ th: t }) => [
|
|
940
|
+
H("div", { innerHTML: t }, null, 8, Na)
|
|
928
941
|
]),
|
|
929
|
-
td:
|
|
930
|
-
|
|
942
|
+
td: z(({ td: t }) => [
|
|
943
|
+
_t(S(isNaN(Number(t)) ? t : _(B)({
|
|
931
944
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
932
945
|
v: t,
|
|
933
946
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -939,9 +952,9 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
|
|
|
939
952
|
]),
|
|
940
953
|
_: 1
|
|
941
954
|
}, 8, ["config"])) : v("", !0)
|
|
942
|
-
], 14,
|
|
955
|
+
], 14, Qt));
|
|
943
956
|
}
|
|
944
|
-
},
|
|
957
|
+
}, Ja = /* @__PURE__ */ Kt(Ia, [["__scopeId", "data-v-965785b9"]]);
|
|
945
958
|
export {
|
|
946
|
-
|
|
959
|
+
Ja as default
|
|
947
960
|
};
|