vue-data-ui 2.3.32 → 2.3.33
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-f_7ZlBit.js → Arrow-CUxfM_Pi.js} +1 -1
- package/dist/{Arrow-C46rqWDg.cjs → Arrow-U-GXPs_S.cjs} +1 -1
- package/dist/{BaseIcon-CejyHIZM.js → BaseIcon-Cq04T7KZ.js} +1 -1
- package/dist/{BaseIcon-ChS1Bl3C.cjs → BaseIcon-DsmnhCxw.cjs} +1 -1
- package/dist/{DataTable-Rb6wEqzD.js → DataTable-COtc9-N3.js} +2 -2
- package/dist/{DataTable-BShm3pg0.cjs → DataTable-i6_WDL4K.cjs} +1 -1
- package/dist/{Legend-DUjHDr5A.cjs → Legend-B_gotRVB.cjs} +1 -1
- package/dist/{Legend-O1l-qwSU.js → Legend-Bj_2LeEE.js} +1 -1
- package/dist/{Shape-jOLEEcCT.js → Shape-J2c5E_YE.js} +1 -1
- package/dist/{Shape-DrbNfL39.cjs → Shape-e7Tqal5k.cjs} +1 -1
- package/dist/{Slicer-DMZ03tYD.cjs → Slicer-CDFjbPHy.cjs} +1 -1
- package/dist/{Slicer-BtErYU-m.js → Slicer-CL9wj6Ug.js} +1 -1
- package/dist/{Title-C6kjiyFi.cjs → Title-D5JSyW9g.cjs} +1 -1
- package/dist/{Title-B9DAMnKW.js → Title-n2bQMWGU.js} +1 -1
- package/dist/{Tooltip-B7LZQUXr.js → Tooltip-B2-UhSCE.js} +1 -1
- package/dist/{Tooltip-Dc_Vk9k7.cjs → Tooltip-Bd80EmMe.cjs} +1 -1
- package/dist/{index-D5gus_lg.cjs → index-C9r5MSxp.cjs} +1 -1
- package/dist/{index-DyzpYx72.js → index-D4ZfmZSg.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DGjp6yqE.js → useNestedProp-DWL7GF6p.js} +1 -1
- package/dist/{useNestedProp-dfy-beYA.cjs → useNestedProp-DlpyayQg.cjs} +1 -1
- package/dist/{usePrinter-_HAcfIJq.js → usePrinter-2BdamNLl.js} +1 -1
- package/dist/{usePrinter-D9HscgWK.cjs → usePrinter-CgeascwN.cjs} +1 -1
- package/dist/{vue-data-ui-w642Au96.cjs → vue-data-ui-C60pgqBZ.cjs} +1 -1
- package/dist/{vue-data-ui-BYwT-L-y.js → vue-data-ui-D98veSqI.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-uIw4YyRe.cjs → vue-ui-3d-bar-CPC6HEVe.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-_idrDcTt.js → vue-ui-3d-bar-ChlIQYo8.js} +7 -7
- package/dist/{vue-ui-accordion-QESF0r0U.cjs → vue-ui-accordion-B_pg4OcN.cjs} +1 -1
- package/dist/{vue-ui-accordion-CQLN2WYC.js → vue-ui-accordion-W99d82RY.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bj_3AooT.js → vue-ui-age-pyramid-CApF0nDH.js} +8 -8
- package/dist/{vue-ui-age-pyramid-BqIkETbo.cjs → vue-ui-age-pyramid-jU-pS_FX.cjs} +1 -1
- package/dist/{vue-ui-annotator-CLCPtXoo.cjs → vue-ui-annotator-4-SHlO9R.cjs} +1 -1
- package/dist/{vue-ui-annotator-D0iuqAb9.js → vue-ui-annotator-DBlQGFBE.js} +1 -1
- package/dist/{vue-ui-candlestick-D8AnaGwt.js → vue-ui-candlestick-BJfFRmNj.js} +9 -9
- package/dist/{vue-ui-candlestick-BBnC2umf.cjs → vue-ui-candlestick-rPD-ZQra.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DJtlOVqJ.cjs → vue-ui-carousel-table-CulRP90Z.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CV4YRYfq.js → vue-ui-carousel-table-DO-9-fol.js} +4 -4
- package/dist/{vue-ui-chestnut-CRkC7aeK.cjs → vue-ui-chestnut-CPL4jyF7.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DxRF0eGJ.js → vue-ui-chestnut-CRdOMFxs.js} +6 -6
- package/dist/{vue-ui-cursor-DxDaK5kl.cjs → vue-ui-cursor-Bj3h6sDD.cjs} +1 -1
- package/dist/{vue-ui-cursor-7KMholmU.js → vue-ui-cursor-D12DG4Kf.js} +2 -2
- package/dist/{vue-ui-dashboard-BMEkgCKF.js → vue-ui-dashboard-DUK0wNgQ.js} +2 -2
- package/dist/{vue-ui-dashboard-CjmpoQWU.cjs → vue-ui-dashboard-IOYL5mEF.cjs} +1 -1
- package/dist/{vue-ui-digits-slk9W4ek.js → vue-ui-digits-BC_4rx73.js} +2 -2
- package/dist/{vue-ui-digits-KxGiWJBe.cjs → vue-ui-digits-BzhcctF7.cjs} +1 -1
- package/dist/{vue-ui-donut-CtkZaRur.cjs → vue-ui-donut-BomizJUs.cjs} +1 -1
- package/dist/{vue-ui-donut-CB3SfpSC.js → vue-ui-donut-D74abrbu.js} +9 -9
- package/dist/{vue-ui-donut-evolution-CptrmAtk.cjs → vue-ui-donut-evolution-BJ4Ok-Yp.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-292a6FEA.js → vue-ui-donut-evolution-BUa4csgt.js} +9 -9
- package/dist/{vue-ui-dumbbell-BQrhfMqP.js → vue-ui-dumbbell-CUYETxFP.js} +8 -8
- package/dist/{vue-ui-dumbbell-Dx_-QB5p.cjs → vue-ui-dumbbell-DwWTHgZG.cjs} +1 -1
- package/dist/{vue-ui-flow-C12EMKoJ.cjs → vue-ui-flow-CCLdNeJ-.cjs} +1 -1
- package/dist/{vue-ui-flow-CcCeNf_k.js → vue-ui-flow-D27Aqy5V.js} +7 -7
- package/dist/{vue-ui-galaxy-BAIRiq85.js → vue-ui-galaxy-BTiLZwc-.js} +9 -9
- package/dist/{vue-ui-galaxy-CLVcP5Qh.cjs → vue-ui-galaxy-D5J1WxYR.cjs} +1 -1
- package/dist/{vue-ui-gauge-uFn_PRBN.js → vue-ui-gauge-Bhpq7HDO.js} +5 -5
- package/dist/{vue-ui-gauge-eMLSa5k6.cjs → vue-ui-gauge-TX5Mp_Mp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-C5hlmv34.cjs → vue-ui-gizmo-AigQjkN4.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CkmuI8hn.js → vue-ui-gizmo-Dw4ItxKs.js} +2 -2
- package/dist/{vue-ui-heatmap-mnnjTuAS.cjs → vue-ui-heatmap-DdSBSZCN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-C3oS64to.js → vue-ui-heatmap-TBi8dmtO.js} +8 -8
- package/dist/{vue-ui-kpi-CpFr6mya.cjs → vue-ui-kpi-DsKGWQHr.cjs} +1 -1
- package/dist/{vue-ui-kpi-CMn14HGk.js → vue-ui-kpi-IYD-xkcq.js} +2 -2
- package/dist/{vue-ui-mini-loader-DAE2b1aK.cjs → vue-ui-mini-loader-M-frsLpu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CxhRP0o3.js → vue-ui-mini-loader-_gmuDh2Q.js} +2 -2
- package/dist/{vue-ui-molecule-BMtrEZXu.cjs → vue-ui-molecule-CAi5aoBp.cjs} +1 -1
- package/dist/{vue-ui-molecule-Chxy44E1.js → vue-ui-molecule-PDKF_CLU.js} +9 -9
- package/dist/{vue-ui-mood-radar-B0944MVq.js → vue-ui-mood-radar-CbR_Qbbh.js} +9 -9
- package/dist/{vue-ui-mood-radar-D70upaRv.cjs → vue-ui-mood-radar-D4QwpYsd.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-C8U02J9G.cjs → vue-ui-nested-donuts-DGTR7aLK.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Ct26fYcZ.js → vue-ui-nested-donuts-Doe9ng0y.js} +9 -9
- package/dist/{vue-ui-onion-BuAA53Z4.js → vue-ui-onion-BuigCMf3.js} +9 -9
- package/dist/{vue-ui-onion-D7jdX-jE.cjs → vue-ui-onion-DHknupJ5.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DTXr6rYS.cjs → vue-ui-parallel-coordinate-plot-CWkSo4cL.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DR7GBD64.js → vue-ui-parallel-coordinate-plot-Re0LZuAY.js} +10 -10
- package/dist/{vue-ui-quadrant-D6XUNhwO.js → vue-ui-quadrant-DpPJj0z7.js} +10 -10
- package/dist/{vue-ui-quadrant-DjY4UFmX.cjs → vue-ui-quadrant-EI_IElYh.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CHWpjYVZ.js → vue-ui-quick-chart-BDhl2kNP.js} +6 -6
- package/dist/{vue-ui-quick-chart-a7twDc_t.cjs → vue-ui-quick-chart-BsjrnDad.cjs} +1 -1
- package/dist/{vue-ui-radar-BPH8c93c.cjs → vue-ui-radar-CBSzPrBN.cjs} +1 -1
- package/dist/{vue-ui-radar-w8--R-ur.js → vue-ui-radar-dnfC3Ts9.js} +10 -10
- package/dist/{vue-ui-rating-Dfk9Umrh.cjs → vue-ui-rating-Du9DDruY.cjs} +1 -1
- package/dist/{vue-ui-rating-DyAunqH4.js → vue-ui-rating-v0CG2kgK.js} +2 -2
- package/dist/{vue-ui-relation-circle-COsMXD8M.cjs → vue-ui-relation-circle-BWOVSaOS.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BCCHpnpL.js → vue-ui-relation-circle-QrWQ4Qai.js} +5 -5
- package/dist/{vue-ui-rings-COm1RO2W.js → vue-ui-rings-CU1fcuiz.js} +9 -9
- package/dist/{vue-ui-rings-DrrT1cJn.cjs → vue-ui-rings-VIofJZ94.cjs} +1 -1
- package/dist/{vue-ui-scatter-BwlMCoqN.cjs → vue-ui-scatter-B76IQkXa.cjs} +1 -1
- package/dist/{vue-ui-scatter-ZjouDP_2.js → vue-ui-scatter-B9YxRg1S.js} +10 -10
- package/dist/{vue-ui-screenshot-D0E4gBJg.js → vue-ui-screenshot-BYVANzt7.js} +1 -1
- package/dist/{vue-ui-screenshot-DCAQ7EZR.cjs → vue-ui-screenshot-idw5giko.cjs} +1 -1
- package/dist/{vue-ui-skeleton-HxNUOQim.js → vue-ui-skeleton-Dil3xmv9.js} +2 -2
- package/dist/{vue-ui-skeleton-lzhZVBa5.cjs → vue-ui-skeleton-ldYPv9PF.cjs} +1 -1
- package/dist/{vue-ui-smiley-BNglGFZl.cjs → vue-ui-smiley-CEz1wWuk.cjs} +1 -1
- package/dist/{vue-ui-smiley-xoGBumeP.js → vue-ui-smiley-DwxiNgdv.js} +2 -2
- package/dist/{vue-ui-spark-trend-BP91Hhbk.js → vue-ui-spark-trend-BG9DZeZe.js} +4 -4
- package/dist/{vue-ui-spark-trend-9z2-nnDf.cjs → vue-ui-spark-trend-DN25w-rB.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BV7lv1Mc.js → vue-ui-sparkbar-Cs4n_GY1.js} +3 -3
- package/dist/{vue-ui-sparkbar-CBwEk4Sp.cjs → vue-ui-sparkbar-DaVxC8Nf.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DAcXHJe3.js → vue-ui-sparkgauge-D_I53hj4.js} +3 -3
- package/dist/{vue-ui-sparkgauge-mf9TWCfM.cjs → vue-ui-sparkgauge-W8c5LNBs.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cw8kAsVJ.js → vue-ui-sparkhistogram-CGRVea-3.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BLG-wdNd.cjs → vue-ui-sparkhistogram-j1RxtN2d.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BIxUq0a0.cjs → vue-ui-sparkline-C77GWtzb.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DtMX5BBW.js → vue-ui-sparkline-ChuyFXnO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Boz0na6c.js → vue-ui-sparkstackbar-DOThH5PJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CcNK8jkC.cjs → vue-ui-sparkstackbar-DeGSbEIo.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Yj49aOwn.js → vue-ui-stackbar-BYEBWNws.js} +209 -209
- package/dist/vue-ui-stackbar-BakzF6CM.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CTVAbRx1.js → vue-ui-strip-plot-CK0dO53m.js} +9 -9
- package/dist/{vue-ui-strip-plot-BUpDy3ST.cjs → vue-ui-strip-plot-Dx6P2lA2.cjs} +1 -1
- package/dist/{vue-ui-table-Bn0Sh_ll.cjs → vue-ui-table-DIPNLMvf.cjs} +1 -1
- package/dist/{vue-ui-table-JW8Ddbcv.js → vue-ui-table-DkMrvnDz.js} +1 -1
- package/dist/{vue-ui-table-heatmap-D_hgGOnV.js → vue-ui-table-heatmap-B4q7WfSh.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CBt2T6Fi.cjs → vue-ui-table-heatmap-BVEhEE0q.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CE15fs3Z.cjs → vue-ui-table-sparkline-CU0SCv36.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-lTi-b4a9.js → vue-ui-table-sparkline-Cl4a56D9.js} +5 -5
- package/dist/{vue-ui-thermometer-CnOa_c88.cjs → vue-ui-thermometer-DiOXG9FE.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DDaejskt.js → vue-ui-thermometer-pcKB72qU.js} +5 -5
- package/dist/{vue-ui-timer-BTkcHF3d.js → vue-ui-timer-BFcCXVhI.js} +4 -4
- package/dist/{vue-ui-timer-DFN5EbaX.cjs → vue-ui-timer-DnEhYkYY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CHMhRw0X.cjs → vue-ui-tiremarks-ChIQAk_l.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CaCbMety.js → vue-ui-tiremarks-Cx5AJacV.js} +5 -5
- package/dist/{vue-ui-treemap-CRGZXH3Z.js → vue-ui-treemap-BeAjlsgd.js} +9 -9
- package/dist/{vue-ui-treemap-BKRQnqlg.cjs → vue-ui-treemap-CUkSlJWq.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-OiHb4ABm.js → vue-ui-vertical-bar-C6CBhGbv.js} +9 -9
- package/dist/{vue-ui-vertical-bar-DppxsDym.cjs → vue-ui-vertical-bar-lJGZ-IJS.cjs} +1 -1
- package/dist/{vue-ui-waffle-CIoGXtZP.cjs → vue-ui-waffle-C29vX0FU.cjs} +1 -1
- package/dist/{vue-ui-waffle-ChcZm0_Q.js → vue-ui-waffle-DM2bqLaZ.js} +9 -9
- package/dist/{vue-ui-wheel-DRgqt22e.js → vue-ui-wheel-Br23_h13.js} +5 -5
- package/dist/{vue-ui-wheel-BVDHANbp.cjs → vue-ui-wheel-D-KizYjp.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BbAFa1J5.cjs → vue-ui-word-cloud-CNrw2pGa.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B2OjEeWK.js → vue-ui-word-cloud-DkqrXhGq.js} +7 -7
- package/dist/{vue-ui-xy-Cf3D_9Em.js → vue-ui-xy-Bl-Jb6uH.js} +12 -12
- package/dist/{vue-ui-xy-6Qnf5k-u.cjs → vue-ui-xy-CJkw_ARZ.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-ihJeRvA1.js → vue-ui-xy-canvas-BIYJhOix.js} +10 -10
- package/dist/{vue-ui-xy-canvas-ZvG2lyjk.cjs → vue-ui-xy-canvas-CXK6EGbI.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-stackbar-DFK6zb17.cjs +0 -6
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { computed as h, ref as v, onMounted 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
|
-
const
|
|
1
|
+
import { computed as h, ref as v, onMounted as Ne, openBlock as i, createElementBlock as n, normalizeClass as ze, normalizeStyle as G, renderSlot as b, createVNode as ie, createCommentVNode as d, createBlock as Y, unref as w, createSlots as tt, withCtx as f, normalizeProps as I, guardReactiveProps as V, Fragment as m, renderList as $, createElementVNode as P, toDisplayString as z, createTextVNode as at } from "vue";
|
|
2
|
+
import { u as lt, c as Me, o as ot, e as Oe, g as st, t as rt, a as it, p as Q, b as ut, d as nt, _ as j, A as Pe, X as ct, l as vt, D as dt, f as D, v as ht, w as Fe, i as Re, x as gt, q as yt, r as bt } from "./index-D4ZfmZSg.js";
|
|
3
|
+
import { u as Ie } from "./useNestedProp-DWL7GF6p.js";
|
|
4
|
+
import { t as ft, u as mt } from "./useResponsive-NZB-WLRF.js";
|
|
5
|
+
import { u as pt, U as xt } from "./usePrinter-2BdamNLl.js";
|
|
6
|
+
import { S as kt } from "./Slicer-CL9wj6Ug.js";
|
|
7
|
+
import { _ as wt } from "./Tooltip-B2-UhSCE.js";
|
|
8
|
+
import { _ as Ct } from "./Title-n2bQMWGU.js";
|
|
9
|
+
import { L as Lt } from "./Legend-Bj_2LeEE.js";
|
|
10
|
+
import St from "./vue-ui-accordion-W99d82RY.js";
|
|
11
|
+
import { D as $t } from "./DataTable-COtc9-N3.js";
|
|
12
|
+
import _t from "./vue-ui-skeleton-Dil3xmv9.js";
|
|
13
|
+
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Nt = ["id"], zt = ["xmlns", "viewBox"], Mt = { key: 0 }, Ot = ["id"], Pt = ["stop-color"], Ft = ["stop-color"], Rt = ["stop-color"], It = ["x1", "x2", "y1", "y2", "stroke"], Vt = ["x1", "x2", "y1", "y2", "stroke"], Dt = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["x", "y", "font-size", "fill", "font-weight"], Bt = ["transform", "font-size", "fill", "font-weight"], Ut = ["x", "y", "font-size", "fill", "font-weight"], Wt = { key: 0 }, Gt = ["x", "y", "font-size", "font-weight", "fill"], Yt = ["x1", "x2", "y1", "y2", "stroke"], Xt = ["x", "y", "font-size", "font-weight", "fill"], Jt = ["text-anchor", "font-size", "font-weight", "fill", "transform"], qt = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Zt = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Kt = ["onClick"], Qt = ["innerHTML"], jt = {
|
|
18
18
|
__name: "vue-ui-stackbar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,25 +31,25 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint", "selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const _ =
|
|
34
|
+
setup(ue, { expose: Ve, emit: ne }) {
|
|
35
|
+
const _ = ue, { vue_ui_stackbar: De } = lt(), F = h({
|
|
36
36
|
get() {
|
|
37
37
|
return !!_.dataset && _.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(a) {
|
|
40
40
|
return a;
|
|
41
41
|
}
|
|
42
|
-
}), A = v(null), ee = v(
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
}), A = v(null), ee = v(Me()), te = v(!1), ce = v(null), ae = v(""), p = v([]), ve = v(0), de = v(null), he = v(null), ge = v(null), ye = v(0), le = v(!1), oe = v(null), X = v(!1);
|
|
43
|
+
Ne(() => {
|
|
44
|
+
ot(_.dataset) ? Oe({
|
|
45
45
|
componentName: "VueUiStackbar",
|
|
46
46
|
type: "dataset"
|
|
47
47
|
}) : _.dataset.forEach((a, l) => {
|
|
48
|
-
|
|
48
|
+
st({
|
|
49
49
|
datasetObject: a,
|
|
50
50
|
requiredAttributes: ["name", "series"]
|
|
51
51
|
}).forEach((t) => {
|
|
52
|
-
|
|
52
|
+
F.value = !1, Oe({
|
|
53
53
|
componentName: "VueUiStackbar",
|
|
54
54
|
type: "datasetSerieAttribute",
|
|
55
55
|
property: t,
|
|
@@ -57,20 +57,20 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
}), setTimeout(() => {
|
|
60
|
-
|
|
60
|
+
X.value = !0;
|
|
61
61
|
}, 10);
|
|
62
62
|
});
|
|
63
63
|
const e = h(() => {
|
|
64
|
-
const a =
|
|
64
|
+
const a = Ie({
|
|
65
65
|
userConfig: _.config,
|
|
66
66
|
defaultConfig: De
|
|
67
67
|
});
|
|
68
68
|
return a.theme ? {
|
|
69
|
-
...
|
|
70
|
-
userConfig:
|
|
69
|
+
...Ie({
|
|
70
|
+
userConfig: rt.vue_ui_stackbar[a.theme] || _.config,
|
|
71
71
|
defaultConfig: a
|
|
72
72
|
}),
|
|
73
|
-
customPalette:
|
|
73
|
+
customPalette: it[a.theme] || Q
|
|
74
74
|
} : a;
|
|
75
75
|
}), C = v({
|
|
76
76
|
dataLabels: {
|
|
@@ -78,10 +78,10 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
78
78
|
},
|
|
79
79
|
showTable: e.value.table.show,
|
|
80
80
|
showTooltip: e.value.style.chart.tooltip.show
|
|
81
|
-
}), { isPrinting:
|
|
81
|
+
}), { isPrinting: be, isImaging: fe, generatePdf: me, generateImage: pe } = pt({
|
|
82
82
|
elementId: `stackbar_${ee.value}`,
|
|
83
83
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
84
|
-
}),
|
|
84
|
+
}), J = v({
|
|
85
85
|
width: e.value.style.chart.width,
|
|
86
86
|
height: e.value.style.chart.height,
|
|
87
87
|
paddingRatio: {
|
|
@@ -90,38 +90,38 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
90
90
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
91
91
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
92
92
|
}
|
|
93
|
-
}), Ae = h(() =>
|
|
94
|
-
|
|
93
|
+
}), Ae = h(() => ut(e.value.customPalette)), xe = v(null), ke = v(null);
|
|
94
|
+
Ne(() => {
|
|
95
95
|
if (e.value.responsive) {
|
|
96
|
-
const a =
|
|
97
|
-
|
|
98
|
-
const { width: l, height: t } =
|
|
96
|
+
const a = ft(() => {
|
|
97
|
+
X.value = !1;
|
|
98
|
+
const { width: l, height: t } = mt({
|
|
99
99
|
chart: A.value,
|
|
100
|
-
title: e.value.style.chart.title.text ?
|
|
101
|
-
legend: e.value.style.chart.legend.show ?
|
|
102
|
-
slicer: e.value.style.chart.zoom.show && E.value > 1 ?
|
|
100
|
+
title: e.value.style.chart.title.text ? de.value : null,
|
|
101
|
+
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
102
|
+
slicer: e.value.style.chart.zoom.show && E.value > 1 ? ge.value : null
|
|
103
103
|
});
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
J.value.width = l, J.value.height = t, clearTimeout(ke.value), ke.value = setTimeout(() => {
|
|
105
|
+
X.value = !0;
|
|
106
106
|
}, 10);
|
|
107
107
|
});
|
|
108
|
-
|
|
108
|
+
xe.value = new ResizeObserver(a), xe.value.observe(A.value.parentNode);
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
const r = h(() => {
|
|
112
|
-
const { height: a, width: l } =
|
|
112
|
+
const { height: a, width: l } = J.value, { right: t } = J.value.paddingRatio, o = e.value.style.chart.padding.top, s = l - l * t, c = a - e.value.style.chart.padding.bottom, x = e.value.style.chart.padding.left, M = l - x - l * t, O = a - o - e.value.style.chart.padding.bottom;
|
|
113
113
|
return {
|
|
114
114
|
chartHeight: a,
|
|
115
115
|
chartWidth: l,
|
|
116
116
|
top: o,
|
|
117
117
|
right: s,
|
|
118
118
|
bottom: c,
|
|
119
|
-
left:
|
|
119
|
+
left: x,
|
|
120
120
|
width: M,
|
|
121
121
|
height: O < 0 ? 0 : O
|
|
122
122
|
};
|
|
123
|
-
}),
|
|
124
|
-
const t =
|
|
123
|
+
}), T = h(() => _.dataset.map((a, l) => {
|
|
124
|
+
const t = nt(a.color) || Ae.value[l] || Q[l] || Q[l % Q.length];
|
|
125
125
|
return {
|
|
126
126
|
...a,
|
|
127
127
|
// In distributed mode, all values are converted to positive
|
|
@@ -129,10 +129,10 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
129
129
|
// Store signs to manage display of neg values in distributed mode
|
|
130
130
|
signedSeries: a.series.map((o) => o >= 0 ? 1 : -1),
|
|
131
131
|
absoluteIndex: l,
|
|
132
|
-
id:
|
|
132
|
+
id: Me(),
|
|
133
133
|
color: t
|
|
134
134
|
};
|
|
135
|
-
})), E = h(() => Math.max(...
|
|
135
|
+
})), E = h(() => Math.max(...T.value.filter((a) => !p.value.includes(a.id)).map((a) => a.series.length))), u = v({
|
|
136
136
|
start: 0,
|
|
137
137
|
end: Math.max(..._.dataset.map((a) => a.series.length))
|
|
138
138
|
});
|
|
@@ -140,64 +140,64 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
140
140
|
u.value = {
|
|
141
141
|
start: 0,
|
|
142
142
|
end: Math.max(..._.dataset.map((a) => a.series.length))
|
|
143
|
-
},
|
|
143
|
+
}, ye.value += 1;
|
|
144
144
|
}
|
|
145
145
|
const L = h(() => {
|
|
146
146
|
const a = r.value.width / (u.value.end - u.value.start);
|
|
147
147
|
return a <= 0 ? 0 : a;
|
|
148
|
-
}),
|
|
149
|
-
|
|
148
|
+
}), se = h(() => j(T.value.filter((a) => !p.value.includes(a.id))).slice(u.value.start, u.value.end)), He = h(() => j(T.value.filter((a) => !p.value.includes(a.id)).map((a) => ({
|
|
149
|
+
...a,
|
|
150
|
+
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
151
|
+
}))).slice(u.value.start, u.value.end)), q = h(() => {
|
|
152
|
+
const a = T.value.filter((l) => !p.value.includes(l.id));
|
|
150
153
|
return {
|
|
151
|
-
positive:
|
|
154
|
+
positive: j(a.map((l) => ({
|
|
152
155
|
...l,
|
|
153
156
|
series: l.series.slice(u.value.start, u.value.end).map((t) => t >= 0 ? t : 0)
|
|
154
157
|
}))),
|
|
155
|
-
negative:
|
|
158
|
+
negative: j(a.map((l) => ({
|
|
156
159
|
...l,
|
|
157
160
|
series: l.series.slice(u.value.start, u.value.end).map((t) => t < 0 ? t : 0)
|
|
158
161
|
})))
|
|
159
162
|
};
|
|
160
|
-
}),
|
|
161
|
-
const a = Math.max(...
|
|
163
|
+
}), H = h(() => {
|
|
164
|
+
const a = Math.max(...q.value.positive), l = Math.min(...q.value.negative), t = [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, o = Pe(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
162
165
|
return o.ticks.map((s) => ({
|
|
163
166
|
zero: r.value.bottom - r.value.height * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
|
|
164
167
|
y: r.value.bottom - r.value.height * ((s + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
|
|
165
168
|
x: r.value.left - 8,
|
|
166
169
|
value: s
|
|
167
170
|
}));
|
|
168
|
-
}),
|
|
169
|
-
if (!
|
|
171
|
+
}), Z = h(() => e.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)), g = h(() => {
|
|
172
|
+
if (!F.value) return [];
|
|
170
173
|
let a = Array(E.value).fill(0), l = Array(E.value).fill(0);
|
|
171
|
-
const t = Math.max(...
|
|
172
|
-
return
|
|
173
|
-
const
|
|
174
|
-
const
|
|
175
|
-
let
|
|
176
|
-
return y > 0 ? (
|
|
177
|
-
}),
|
|
178
|
-
const
|
|
179
|
-
return y > 0 ?
|
|
180
|
-
}),
|
|
174
|
+
const t = Math.max(...q.value.positive) || 0, o = Math.min(...q.value.negative), s = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, c = Pe(s > 0 ? 0 : s, t < 0 ? 0 : t, e.value.style.chart.grid.scale.ticks), { min: x, max: M } = c, O = M + (x >= 0 ? 0 : Math.abs(x)) || 1, N = r.value.height, B = H.value[0] ? H.value[0].zero : r.value.bottom;
|
|
175
|
+
return T.value.filter((S) => !p.value.includes(S.id)).map((S) => {
|
|
176
|
+
const R = S.series.slice(u.value.start, u.value.end), Ze = S.signedSeries.slice(u.value.start, u.value.end), Ke = R.map((y, k) => r.value.left + L.value * k + L.value * e.value.style.chart.bars.gapRatio / 4), Qe = R.map((y, k) => {
|
|
177
|
+
const U = e.value.style.chart.bars.distributed ? (y || 0) / se.value[k] : (y || 0) / O;
|
|
178
|
+
let re, W;
|
|
179
|
+
return y > 0 ? (W = N * U, re = B - W - a[k], a[k] += W) : (W = N * U, re = B + l[k], l[k] += Math.abs(W)), re;
|
|
180
|
+
}), je = R.map((y, k) => {
|
|
181
|
+
const U = e.value.style.chart.bars.distributed ? (y || 0) / se.value[k] : (y || 0) / O;
|
|
182
|
+
return y > 0 ? N * U : N * Math.abs(U);
|
|
183
|
+
}), et = R.map((y) => Math.abs(y)).reduce((y, k) => y + k, 0);
|
|
181
184
|
return {
|
|
182
185
|
...S,
|
|
183
|
-
proportions:
|
|
184
|
-
series:
|
|
185
|
-
signedSeries:
|
|
186
|
-
x:
|
|
187
|
-
y:
|
|
188
|
-
height:
|
|
186
|
+
proportions: R.map((y, k) => e.value.style.chart.bars.distributed ? (y || 0) / se.value[k] : (y || 0) / et),
|
|
187
|
+
series: R,
|
|
188
|
+
signedSeries: Ze,
|
|
189
|
+
x: Ke,
|
|
190
|
+
y: Qe,
|
|
191
|
+
height: je
|
|
189
192
|
};
|
|
190
193
|
});
|
|
191
|
-
}),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
function Ce(a, l, t, o, s) {
|
|
199
|
-
const c = e.value.style.chart.bars.distributed ? s === 1 ? a : -a : a;
|
|
200
|
-
return Fe(
|
|
194
|
+
}), Be = h(() => He.value.map((a, l) => ({
|
|
195
|
+
value: a,
|
|
196
|
+
sign: a >= 0 ? 1 : -1
|
|
197
|
+
})));
|
|
198
|
+
function we(a, l, t, o, s) {
|
|
199
|
+
const c = s === -1 && a >= 0 ? -a : a;
|
|
200
|
+
return Re(
|
|
201
201
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
202
202
|
c,
|
|
203
203
|
D({
|
|
@@ -209,8 +209,8 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
209
209
|
{ datapoint: l, seriesIndex: t, datapointIndex: o }
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
return
|
|
212
|
+
function Ue(a, l, t, o) {
|
|
213
|
+
return Re(
|
|
214
214
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
215
215
|
a,
|
|
216
216
|
D({
|
|
@@ -221,7 +221,7 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
221
221
|
{ datapoint: l, seriesIndex: t, datapointIndex: o }
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function We(a) {
|
|
225
225
|
const l = JSON.parse(JSON.stringify(g.value)).map((t) => ({
|
|
226
226
|
name: t.name,
|
|
227
227
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -229,18 +229,18 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
229
229
|
color: t.color,
|
|
230
230
|
id: t.id
|
|
231
231
|
}));
|
|
232
|
-
|
|
232
|
+
ne("selectDatapoint", { datapoint: l, period: Z.value[a] });
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Ge(a) {
|
|
235
235
|
oe.value = a, te.value = !0;
|
|
236
236
|
const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(g.value)).map((s) => ({
|
|
237
237
|
name: s.name,
|
|
238
|
-
value: s.series[a] === 0 ? 0 : s.series[a] || null,
|
|
238
|
+
value: s.series[a] === 0 ? 0 : (s.signedSeries[a] === -1 && s.series[a] >= 0 ? -s.series[a] : s.series[a]) || null,
|
|
239
239
|
proportion: s.proportions[a] || null,
|
|
240
240
|
color: s.color,
|
|
241
241
|
id: s.id
|
|
242
242
|
})), o = t.map((s) => Math.abs(s.value)).reduce((s, c) => s + c, 0);
|
|
243
|
-
if (
|
|
243
|
+
if (Fe(l) && gt(() => l({
|
|
244
244
|
seriesIndex: a,
|
|
245
245
|
datapoint: t,
|
|
246
246
|
series: g.value,
|
|
@@ -256,18 +256,18 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
256
256
|
const {
|
|
257
257
|
showValue: s,
|
|
258
258
|
showPercentage: c,
|
|
259
|
-
borderColor:
|
|
259
|
+
borderColor: x,
|
|
260
260
|
roundingValue: M,
|
|
261
261
|
roundingPercentage: O
|
|
262
262
|
} = e.value.style.chart.tooltip;
|
|
263
|
-
let
|
|
264
|
-
|
|
265
|
-
const
|
|
263
|
+
let N = "";
|
|
264
|
+
Z.value[a] && (N += `<div style="width:100%;text-align:center;border-bottom:1px solid ${x};padding-bottom:6px;margin-bottom:3px;">${Z.value[a]}</div>`);
|
|
265
|
+
const B = [
|
|
266
266
|
s && c ? "(" : "",
|
|
267
267
|
s && c ? ")" : ""
|
|
268
268
|
];
|
|
269
269
|
t.reverse().forEach((S) => {
|
|
270
|
-
|
|
270
|
+
N += `
|
|
271
271
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
272
272
|
<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_${S.id})` : S.color}"/></svg>
|
|
273
273
|
${S.name}${s || c ? ":" : ""} ${s ? D({
|
|
@@ -275,33 +275,33 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
275
275
|
v: S.value,
|
|
276
276
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
277
277
|
r: M
|
|
278
|
-
}) : ""} ${
|
|
278
|
+
}) : ""} ${B[0]}${c ? D({
|
|
279
279
|
v: isNaN(S.value / o) ? 0 : Math.abs(S.value) / o * 100,
|
|
280
280
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
281
281
|
s: "%",
|
|
282
282
|
r: O
|
|
283
|
-
}) : ""}${
|
|
283
|
+
}) : ""}${B[1]}
|
|
284
284
|
</div>
|
|
285
285
|
`;
|
|
286
|
-
}), ae.value = `<div>${
|
|
286
|
+
}), ae.value = `<div>${N}</div>`;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
le.value = a,
|
|
289
|
+
function Ye(a) {
|
|
290
|
+
le.value = a, ve.value += 1;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Ce() {
|
|
293
293
|
C.value.showTable = !C.value.showTable;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Le() {
|
|
296
296
|
C.value.dataLabels.show = !C.value.dataLabels.show;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Se() {
|
|
299
299
|
C.value.showTooltip = !C.value.showTooltip;
|
|
300
300
|
}
|
|
301
301
|
function Xe() {
|
|
302
302
|
return g.value;
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const $e = h(() => {
|
|
305
305
|
if (g.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
306
306
|
const a = g.value.map(({ name: t, color: o }) => ({
|
|
307
307
|
label: t,
|
|
@@ -309,22 +309,22 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
309
309
|
})), l = [];
|
|
310
310
|
for (let t = u.value.start; t < u.value.end; t += 1) {
|
|
311
311
|
const o = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
|
|
312
|
-
|
|
312
|
+
T.value.forEach((s) => {
|
|
313
313
|
o.push(Number((s.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
314
314
|
}), l.push(o);
|
|
315
315
|
}
|
|
316
316
|
return { head: a, body: l };
|
|
317
317
|
});
|
|
318
|
-
function
|
|
319
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["",
|
|
320
|
-
|
|
318
|
+
function _e() {
|
|
319
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...$e.value.head.map((c) => c.label)], t = $e.value.body, o = a.concat([l]).concat(t), s = yt(o);
|
|
320
|
+
bt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
321
321
|
}
|
|
322
|
-
const
|
|
322
|
+
const K = h(() => {
|
|
323
323
|
const a = [""].concat(g.value.map((s) => s.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>');
|
|
324
324
|
let l = [];
|
|
325
325
|
for (let s = 0; s < E.value; s += 1) {
|
|
326
|
-
const c = g.value.map((
|
|
327
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[s] ?? s + 1].concat(g.value.map((
|
|
326
|
+
const c = g.value.map((x) => x.series[s] ?? 0).reduce((x, M) => x + M, 0);
|
|
327
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[s] ?? s + 1].concat(g.value.map((x) => (x.series[s] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((c ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
328
328
|
}
|
|
329
329
|
const t = {
|
|
330
330
|
th: {
|
|
@@ -341,23 +341,23 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
341
341
|
}, o = [e.value.table.columnNames.period].concat(g.value.map((s) => s.name)).concat(e.value.table.columnNames.total);
|
|
342
342
|
return { head: a, body: l.slice(0, u.value.end - u.value.start), config: t, colNames: o };
|
|
343
343
|
});
|
|
344
|
-
function
|
|
345
|
-
if (
|
|
346
|
-
|
|
344
|
+
function Je(a, l) {
|
|
345
|
+
if (ne("selectLegend", g.value.find((t) => t.absoluteIndex === a)), p.value.includes(l.id))
|
|
346
|
+
p.value = p.value.filter((t) => t !== l.id);
|
|
347
347
|
else {
|
|
348
|
-
if (
|
|
349
|
-
|
|
348
|
+
if (p.value.length === T.value.length - 1) return;
|
|
349
|
+
p.value.push(l.id);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
const
|
|
352
|
+
const Te = h(() => T.value.map((a, l) => ({
|
|
353
353
|
...a,
|
|
354
354
|
shape: "square"
|
|
355
355
|
})).map((a) => ({
|
|
356
356
|
...a,
|
|
357
|
-
opacity:
|
|
358
|
-
segregate: () =>
|
|
359
|
-
isSegregated:
|
|
360
|
-
}))),
|
|
357
|
+
opacity: p.value.includes(a.id) ? 0.5 : 1,
|
|
358
|
+
segregate: () => Je(a.absoluteIndex, a),
|
|
359
|
+
isSegregated: p.value.includes(a.id)
|
|
360
|
+
}))), qe = h(() => ({
|
|
361
361
|
cy: "stackbar-legend",
|
|
362
362
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
363
363
|
color: e.value.style.chart.legend.color,
|
|
@@ -367,27 +367,27 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
367
367
|
}));
|
|
368
368
|
return Ve({
|
|
369
369
|
getData: Xe,
|
|
370
|
-
generatePdf:
|
|
371
|
-
generateCsv:
|
|
372
|
-
generateImage:
|
|
373
|
-
toggleTable:
|
|
374
|
-
toggleLabels:
|
|
375
|
-
toggleTooltip:
|
|
370
|
+
generatePdf: me,
|
|
371
|
+
generateCsv: _e,
|
|
372
|
+
generateImage: pe,
|
|
373
|
+
toggleTable: Ce,
|
|
374
|
+
toggleLabels: Le,
|
|
375
|
+
toggleTooltip: Se
|
|
376
376
|
}), (a, l) => (i(), n("div", {
|
|
377
377
|
id: `stackbar_${ee.value}`,
|
|
378
378
|
ref_key: "stackbarChart",
|
|
379
379
|
ref: A,
|
|
380
|
-
class:
|
|
381
|
-
style:
|
|
380
|
+
class: ze({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": le.value }),
|
|
381
|
+
style: G(`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%" : ""}`)
|
|
382
382
|
}, [
|
|
383
383
|
b(a.$slots, "userConfig", {}, void 0, !0),
|
|
384
384
|
e.value.style.chart.title.text ? (i(), n("div", {
|
|
385
385
|
key: 0,
|
|
386
386
|
ref_key: "chartTitle",
|
|
387
|
-
ref:
|
|
388
|
-
style:
|
|
387
|
+
ref: de,
|
|
388
|
+
style: G(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
389
389
|
}, [
|
|
390
|
-
|
|
390
|
+
ie(Ct, {
|
|
391
391
|
config: {
|
|
392
392
|
title: {
|
|
393
393
|
cy: "stackbar-title",
|
|
@@ -400,13 +400,13 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
400
400
|
}
|
|
401
401
|
}, null, 8, ["config"])
|
|
402
402
|
], 4)) : d("", !0),
|
|
403
|
-
e.value.userOptions.show &&
|
|
403
|
+
e.value.userOptions.show && F.value ? (i(), Y(xt, {
|
|
404
404
|
ref: "details",
|
|
405
|
-
key: `user_option_${
|
|
405
|
+
key: `user_option_${ve.value}`,
|
|
406
406
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
407
407
|
color: e.value.style.chart.color,
|
|
408
|
-
isPrinting:
|
|
409
|
-
isImaging:
|
|
408
|
+
isPrinting: w(be),
|
|
409
|
+
isImaging: w(fe),
|
|
410
410
|
uid: ee.value,
|
|
411
411
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
412
412
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -419,14 +419,14 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
419
419
|
chartElement: A.value,
|
|
420
420
|
isTooltip: C.value.showTooltip,
|
|
421
421
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
422
|
-
onToggleFullscreen:
|
|
423
|
-
onGeneratePdf:
|
|
424
|
-
onGenerateCsv:
|
|
425
|
-
onGenerateImage:
|
|
426
|
-
onToggleTable:
|
|
427
|
-
onToggleLabels:
|
|
428
|
-
onToggleTooltip:
|
|
429
|
-
},
|
|
422
|
+
onToggleFullscreen: Ye,
|
|
423
|
+
onGeneratePdf: w(me),
|
|
424
|
+
onGenerateCsv: _e,
|
|
425
|
+
onGenerateImage: w(pe),
|
|
426
|
+
onToggleTable: Ce,
|
|
427
|
+
onToggleLabels: Le,
|
|
428
|
+
onToggleTooltip: Se
|
|
429
|
+
}, tt({ _: 2 }, [
|
|
430
430
|
a.$slots.optionTooltip ? {
|
|
431
431
|
name: "optionTooltip",
|
|
432
432
|
fn: f(() => [
|
|
@@ -472,18 +472,18 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
472
472
|
a.$slots.optionFullscreen ? {
|
|
473
473
|
name: "optionFullscreen",
|
|
474
474
|
fn: f(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
475
|
-
b(a.$slots, "optionFullscreen",
|
|
475
|
+
b(a.$slots, "optionFullscreen", I(V({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
476
476
|
]),
|
|
477
477
|
key: "6"
|
|
478
478
|
} : void 0
|
|
479
479
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
480
|
-
|
|
480
|
+
F.value ? (i(), n("svg", {
|
|
481
481
|
key: 2,
|
|
482
|
-
xmlns:
|
|
482
|
+
xmlns: w(ct),
|
|
483
483
|
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
484
|
-
style:
|
|
484
|
+
style: G(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
485
485
|
}, [
|
|
486
|
-
e.value.style.chart.bars.gradient.show ? (i(), n("defs",
|
|
486
|
+
e.value.style.chart.bars.gradient.show ? (i(), n("defs", Mt, [
|
|
487
487
|
(i(!0), n(m, null, $(g.value, (t, o) => (i(), n("linearGradient", {
|
|
488
488
|
id: `gradient_${t.id}`,
|
|
489
489
|
x1: "0%",
|
|
@@ -494,25 +494,25 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
494
494
|
P("stop", {
|
|
495
495
|
offset: "0%",
|
|
496
496
|
"stop-color": t.color
|
|
497
|
-
}, null, 8,
|
|
497
|
+
}, null, 8, Pt),
|
|
498
498
|
P("stop", {
|
|
499
499
|
offset: "61.8%",
|
|
500
|
-
"stop-color":
|
|
501
|
-
}, null, 8,
|
|
500
|
+
"stop-color": w(vt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
501
|
+
}, null, 8, Ft),
|
|
502
502
|
P("stop", {
|
|
503
503
|
offset: "100%",
|
|
504
504
|
"stop-color": t.color
|
|
505
|
-
}, null, 8,
|
|
506
|
-
], 8,
|
|
505
|
+
}, null, 8, Rt)
|
|
506
|
+
], 8, Ot))), 256))
|
|
507
507
|
])) : d("", !0),
|
|
508
|
-
e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), n(m, { key: 1 }, $(
|
|
508
|
+
e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), n(m, { key: 1 }, $(H.value, (t, o) => (i(), n("line", {
|
|
509
509
|
x1: r.value.left,
|
|
510
510
|
x2: r.value.right,
|
|
511
511
|
y1: t.y,
|
|
512
512
|
y2: t.y,
|
|
513
513
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
514
514
|
"stroke-width": 1
|
|
515
|
-
}, null, 8,
|
|
515
|
+
}, null, 8, It))), 256)) : d("", !0),
|
|
516
516
|
e.value.style.chart.grid.y.showVerticalLines ? (i(!0), n(m, { key: 2 }, $(u.value.end - u.value.start + 1, (t, o) => (i(), n("line", {
|
|
517
517
|
x1: r.value.left + L.value * o,
|
|
518
518
|
x2: r.value.left + L.value * o,
|
|
@@ -520,7 +520,7 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
520
520
|
y2: r.value.bottom,
|
|
521
521
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
522
522
|
"stroke-width": 1
|
|
523
|
-
}, null, 8,
|
|
523
|
+
}, null, 8, Vt))), 256)) : d("", !0),
|
|
524
524
|
(i(!0), n(m, null, $(g.value, (t, o) => (i(), n("g", null, [
|
|
525
525
|
(i(!0), n(m, null, $(t.x, (s, c) => (i(), n("rect", {
|
|
526
526
|
x: s,
|
|
@@ -533,8 +533,8 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
533
533
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
534
534
|
"stroke-linecap": "round",
|
|
535
535
|
"stroke-linejoin": "round",
|
|
536
|
-
class:
|
|
537
|
-
}, null, 10,
|
|
536
|
+
class: ze({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
537
|
+
}, null, 10, Dt))), 256))
|
|
538
538
|
]))), 256)),
|
|
539
539
|
e.value.style.chart.grid.x.showAxis ? (i(), n("line", {
|
|
540
540
|
key: 3,
|
|
@@ -546,7 +546,7 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
546
546
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
547
547
|
"stroke-linecap": "round",
|
|
548
548
|
"stroke-linejoin": "round"
|
|
549
|
-
}, null, 8,
|
|
549
|
+
}, null, 8, At)) : d("", !0),
|
|
550
550
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (i(), n("line", {
|
|
551
551
|
key: 4,
|
|
552
552
|
x1: r.value.left,
|
|
@@ -557,7 +557,7 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
557
557
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
558
558
|
"stroke-linecap": "round",
|
|
559
559
|
"stroke-linejoin": "round"
|
|
560
|
-
}, null, 8,
|
|
560
|
+
}, null, 8, Et)) : d("", !0),
|
|
561
561
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (i(), n("text", {
|
|
562
562
|
key: 5,
|
|
563
563
|
x: r.value.left + r.value.width / 2,
|
|
@@ -566,7 +566,7 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
566
566
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
567
567
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
568
568
|
"text-anchor": "middle"
|
|
569
|
-
},
|
|
569
|
+
}, z(e.value.style.chart.grid.x.axisName.text), 9, Ht)) : d("", !0),
|
|
570
570
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (i(), n("text", {
|
|
571
571
|
key: 6,
|
|
572
572
|
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)`,
|
|
@@ -574,77 +574,77 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
574
574
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
575
575
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
576
576
|
"text-anchor": "middle"
|
|
577
|
-
},
|
|
577
|
+
}, z(e.value.style.chart.grid.y.axisName.text), 9, Bt)) : d("", !0),
|
|
578
578
|
C.value.dataLabels.show ? (i(), n(m, { key: 7 }, [
|
|
579
579
|
(i(!0), n(m, null, $(g.value, (t, o) => (i(), n("g", null, [
|
|
580
580
|
(i(!0), n(m, null, $(t.x, (s, c) => (i(), n("text", {
|
|
581
581
|
x: s + L.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
582
582
|
y: t.y[c] + t.height[c] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
583
583
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
584
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
584
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? w(dt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
585
585
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
586
586
|
"text-anchor": "middle"
|
|
587
|
-
},
|
|
587
|
+
}, z(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ue(t.proportions[c] * 100, t, o, c) : we(t.series[c], t, o, c, t.signedSeries[c])), 9, Ut))), 256))
|
|
588
588
|
]))), 256)),
|
|
589
|
-
e.value.style.chart.bars.totalValues.show && g.value.length > 1 ? (i(), n("g",
|
|
590
|
-
(i(!0), n(m, null, $(
|
|
589
|
+
e.value.style.chart.bars.totalValues.show && g.value.length > 1 ? (i(), n("g", Wt, [
|
|
590
|
+
(i(!0), n(m, null, $(Be.value, (t, o) => (i(), n("text", {
|
|
591
591
|
x: r.value.left + L.value * o + L.value / 2,
|
|
592
592
|
y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
593
593
|
"text-anchor": "middle",
|
|
594
594
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
595
595
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
596
596
|
fill: e.value.style.chart.bars.totalValues.color
|
|
597
|
-
},
|
|
597
|
+
}, z(we(t.value, t, o, t.sign)), 9, Gt))), 256))
|
|
598
598
|
])) : d("", !0)
|
|
599
599
|
], 64)) : d("", !0),
|
|
600
600
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed ? (i(), n(m, { key: 8 }, [
|
|
601
|
-
(i(!0), n(m, null, $(
|
|
601
|
+
(i(!0), n(m, null, $(H.value, (t, o) => (i(), n("line", {
|
|
602
602
|
x1: r.value.left,
|
|
603
603
|
x2: r.value.left - 6,
|
|
604
604
|
y1: t.y,
|
|
605
605
|
y2: t.y,
|
|
606
606
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
607
607
|
"stroke-width": 1
|
|
608
|
-
}, null, 8,
|
|
609
|
-
(i(!0), n(m, null, $(
|
|
608
|
+
}, null, 8, Yt))), 256)),
|
|
609
|
+
(i(!0), n(m, null, $(H.value, (t, o) => (i(), n("text", {
|
|
610
610
|
x: t.x,
|
|
611
611
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
612
612
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
613
613
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
614
614
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
615
615
|
"text-anchor": "end"
|
|
616
|
-
},
|
|
616
|
+
}, z(w(D)({
|
|
617
617
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
618
618
|
v: t.value,
|
|
619
619
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
620
620
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
621
621
|
})), 9, Xt))), 256))
|
|
622
622
|
], 64)) : d("", !0),
|
|
623
|
-
e.value.style.chart.grid.x.timeLabels.show ? (i(!0), n(m, { key: 9 }, $(
|
|
623
|
+
e.value.style.chart.grid.x.timeLabels.show ? (i(!0), n(m, { key: 9 }, $(Z.value, (t, o) => (i(), n("text", {
|
|
624
624
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
625
625
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
626
626
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
627
627
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
628
628
|
transform: `translate(${r.value.left + L.value * o + L.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})`
|
|
629
|
-
},
|
|
629
|
+
}, z(t), 9, Jt))), 256)) : d("", !0),
|
|
630
630
|
C.value.showTooltip ? (i(!0), n(m, { key: 10 }, $(u.value.end - u.value.start, (t, o) => (i(), n("rect", {
|
|
631
631
|
x: r.value.left + o * L.value,
|
|
632
632
|
y: r.value.top,
|
|
633
633
|
width: L.value,
|
|
634
634
|
height: r.value.height < 0 ? 0 : r.value.height,
|
|
635
|
-
onClick: (s) =>
|
|
636
|
-
onMouseenter: (s) =>
|
|
635
|
+
onClick: (s) => We(o),
|
|
636
|
+
onMouseenter: (s) => Ge(o),
|
|
637
637
|
onMouseleave: l[0] || (l[0] = (s) => {
|
|
638
638
|
oe.value = null, te.value = !1;
|
|
639
639
|
}),
|
|
640
|
-
fill: o === oe.value ? e.value.style.chart.highlighter.color +
|
|
641
|
-
}, null, 40,
|
|
642
|
-
b(a.$slots, "svg",
|
|
643
|
-
], 12,
|
|
644
|
-
a.$slots.watermark ? (i(), n("div",
|
|
645
|
-
b(a.$slots, "watermark",
|
|
640
|
+
fill: o === oe.value ? e.value.style.chart.highlighter.color + w(ht)[e.value.style.chart.highlighter.opacity] : "transparent"
|
|
641
|
+
}, null, 40, qt))), 256)) : d("", !0),
|
|
642
|
+
b(a.$slots, "svg", I(V({ ...r.value })), void 0, !0)
|
|
643
|
+
], 12, zt)) : d("", !0),
|
|
644
|
+
a.$slots.watermark ? (i(), n("div", Zt, [
|
|
645
|
+
b(a.$slots, "watermark", I(V({ isPrinting: w(be) || w(fe) })), void 0, !0)
|
|
646
646
|
])) : d("", !0),
|
|
647
|
-
|
|
647
|
+
F.value ? d("", !0) : (i(), Y(_t, {
|
|
648
648
|
key: 4,
|
|
649
649
|
config: {
|
|
650
650
|
type: "bar",
|
|
@@ -661,12 +661,12 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
661
661
|
}, null, 8, ["config"])),
|
|
662
662
|
P("div", {
|
|
663
663
|
ref_key: "chartSlicer",
|
|
664
|
-
ref:
|
|
665
|
-
style:
|
|
664
|
+
ref: ge,
|
|
665
|
+
style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
666
666
|
"data-html2canvas-ignore": ""
|
|
667
667
|
}, [
|
|
668
|
-
e.value.style.chart.zoom.show && E.value > 1 ? (i(), Y(
|
|
669
|
-
key: `slicer_${
|
|
668
|
+
e.value.style.chart.zoom.show && E.value > 1 ? (i(), Y(kt, {
|
|
669
|
+
key: `slicer_${ye.value}`,
|
|
670
670
|
background: e.value.style.chart.zoom.color,
|
|
671
671
|
borderColor: e.value.style.chart.backgroundColor,
|
|
672
672
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -676,7 +676,7 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
676
676
|
textColor: e.value.style.chart.color,
|
|
677
677
|
inputColor: e.value.style.chart.zoom.color,
|
|
678
678
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
679
|
-
max: Math.max(...
|
|
679
|
+
max: Math.max(...ue.dataset.map((t) => t.series.length)),
|
|
680
680
|
min: 0,
|
|
681
681
|
valueStart: u.value.start,
|
|
682
682
|
valueEnd: u.value.end,
|
|
@@ -687,12 +687,12 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
687
687
|
onReset: Ee
|
|
688
688
|
}, {
|
|
689
689
|
"reset-action": f(({ reset: t }) => [
|
|
690
|
-
b(a.$slots, "reset-action",
|
|
690
|
+
b(a.$slots, "reset-action", I(V({ reset: t })), void 0, !0)
|
|
691
691
|
]),
|
|
692
692
|
_: 3
|
|
693
693
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : d("", !0)
|
|
694
694
|
], 4),
|
|
695
|
-
|
|
695
|
+
ie(wt, {
|
|
696
696
|
show: C.value.showTooltip && te.value,
|
|
697
697
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
698
698
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -705,39 +705,39 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
705
705
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
706
706
|
parent: A.value,
|
|
707
707
|
content: ae.value,
|
|
708
|
-
isCustom:
|
|
708
|
+
isCustom: w(Fe)(e.value.style.chart.tooltip.customFormat)
|
|
709
709
|
}, {
|
|
710
710
|
"tooltip-before": f(() => [
|
|
711
|
-
b(a.$slots, "tooltip-before",
|
|
711
|
+
b(a.$slots, "tooltip-before", I(V({ ...ce.value })), void 0, !0)
|
|
712
712
|
]),
|
|
713
713
|
"tooltip-after": f(() => [
|
|
714
|
-
b(a.$slots, "tooltip-after",
|
|
714
|
+
b(a.$slots, "tooltip-after", I(V({ ...ce.value })), void 0, !0)
|
|
715
715
|
]),
|
|
716
716
|
_: 3
|
|
717
717
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
718
718
|
P("div", {
|
|
719
719
|
ref_key: "chartLegend",
|
|
720
|
-
ref:
|
|
720
|
+
ref: he
|
|
721
721
|
}, [
|
|
722
|
-
e.value.style.chart.legend.show &&
|
|
722
|
+
e.value.style.chart.legend.show && F.value ? (i(), Y(Lt, {
|
|
723
723
|
key: 0,
|
|
724
|
-
legendSet:
|
|
725
|
-
config:
|
|
724
|
+
legendSet: Te.value,
|
|
725
|
+
config: qe.value,
|
|
726
726
|
onClickMarker: l[3] || (l[3] = ({ legend: t }) => t.segregate())
|
|
727
727
|
}, {
|
|
728
728
|
item: f(({ legend: t }) => [
|
|
729
729
|
P("div", {
|
|
730
730
|
onClick: (o) => t.segregate(),
|
|
731
|
-
style:
|
|
732
|
-
},
|
|
731
|
+
style: G(`opacity:${p.value.includes(t.id) ? 0.5 : 1}`)
|
|
732
|
+
}, z(t.name), 13, Kt)
|
|
733
733
|
]),
|
|
734
734
|
_: 1
|
|
735
735
|
}, 8, ["legendSet", "config"])) : b(a.$slots, "legend", {
|
|
736
736
|
key: 1,
|
|
737
|
-
legend:
|
|
737
|
+
legend: Te.value
|
|
738
738
|
}, void 0, !0)
|
|
739
739
|
], 512),
|
|
740
|
-
u.value.end - u.value.start < 200 ? (i(), Y(
|
|
740
|
+
u.value.end - u.value.start < 200 ? (i(), Y(St, {
|
|
741
741
|
key: 5,
|
|
742
742
|
hideDetails: "",
|
|
743
743
|
config: {
|
|
@@ -754,19 +754,19 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
754
754
|
}
|
|
755
755
|
}, {
|
|
756
756
|
content: f(() => [
|
|
757
|
-
|
|
758
|
-
colNames:
|
|
759
|
-
head:
|
|
760
|
-
body:
|
|
761
|
-
config:
|
|
757
|
+
ie($t, {
|
|
758
|
+
colNames: K.value.colNames,
|
|
759
|
+
head: K.value.head,
|
|
760
|
+
body: K.value.body,
|
|
761
|
+
config: K.value.config,
|
|
762
762
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
763
763
|
onClose: l[4] || (l[4] = (t) => C.value.showTable = !1)
|
|
764
764
|
}, {
|
|
765
765
|
th: f(({ th: t }) => [
|
|
766
|
-
P("div", { innerHTML: t }, null, 8,
|
|
766
|
+
P("div", { innerHTML: t }, null, 8, Qt)
|
|
767
767
|
]),
|
|
768
768
|
td: f(({ td: t }) => [
|
|
769
|
-
|
|
769
|
+
at(z(isNaN(Number(t)) ? t : w(D)({
|
|
770
770
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
771
771
|
v: t,
|
|
772
772
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -778,9 +778,9 @@ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot =
|
|
|
778
778
|
]),
|
|
779
779
|
_: 1
|
|
780
780
|
}, 8, ["config"])) : d("", !0)
|
|
781
|
-
], 14,
|
|
781
|
+
], 14, Nt));
|
|
782
782
|
}
|
|
783
|
-
},
|
|
783
|
+
}, ha = /* @__PURE__ */ Tt(jt, [["__scopeId", "data-v-b55a4b06"]]);
|
|
784
784
|
export {
|
|
785
|
-
|
|
785
|
+
ha as default
|
|
786
786
|
};
|