vue-data-ui 3.0.0-next.34 → 3.0.0-next.36
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-7o1zcGGd.js → Arrow-CSwNSv2c.js} +1 -1
- package/dist/{BaseDraggableDialog-fZ1Z5U4d.js → BaseDraggableDialog-DGOONbgy.js} +2 -2
- package/dist/{BaseIcon-Cq9SmUOT.js → BaseIcon-CKP5mFx_.js} +1 -1
- package/dist/{ColorPicker-BNmC5tPY.js → ColorPicker-DCLStg36.js} +2 -2
- package/dist/{DataTable-DonNp9Tn.js → DataTable-DMXRqxO9.js} +2 -2
- package/dist/{Legend-De_LcU2x.js → Legend-D6apcxV3.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DCCmvppN.js → NonSvgPenAndPaper-CjLa6lCT.js} +3 -3
- package/dist/{PackageVersion-F_KOshQ5.js → PackageVersion-DOtis8zH.js} +1 -1
- package/dist/{PenAndPaper-BzsPyqiU.js → PenAndPaper-XC3SNbgm.js} +3 -3
- package/dist/{Shape-CJI8rA0G.js → Shape-Dib8cPqa.js} +1 -1
- package/dist/{Slicer-BCCGJwNV.js → Slicer-BBfWOoWo.js} +2 -2
- package/dist/{SparkTooltip-ZSo6Sdhj.js → SparkTooltip-Bt0DuWbI.js} +1 -1
- package/dist/{Title-CbfJu3Bz.js → Title-lox3SQPC.js} +1 -1
- package/dist/{Tooltip-BuuVsO8D.js → Tooltip-DzK1HoFb.js} +1 -1
- package/dist/{UserOptions-32osgWD2.js → UserOptions-Dy6QIYd1.js} +2 -2
- package/dist/{dom-to-png-B4iPnzPd.js → dom-to-png-DE11zvjY.js} +1 -1
- package/dist/{img-Domj-5hZ.js → img-Bv894v6P.js} +1 -1
- package/dist/{index-BeBasrrG.js → index-enA2Fisu.js} +42 -1
- package/dist/{pdf-KclgkN6e.js → pdf-L3nnkB10.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +43 -2
- package/dist/types/vue-data-ui.d.ts +43 -2
- package/dist/{useNestedProp-BI69cynt.js → useNestedProp-Crm1jYNw.js} +1 -1
- package/dist/{usePrinter-DpTBVYGM.js → usePrinter-Bh6HKGit.js} +2 -2
- package/dist/{vue-data-ui-DfOSI-cw.js → vue-data-ui-DtKKT9mu.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BFUcEqAl.js → vue-ui-3d-bar-DNmDddQ7.js} +6 -6
- package/dist/{vue-ui-accordion-BBZQktvS.js → vue-ui-accordion-CwPBtAl7.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C1fCszkG.js → vue-ui-age-pyramid-DEs8Im_T.js} +6 -6
- package/dist/{vue-ui-annotator-BThZoiBl.js → vue-ui-annotator-CYxLPnzs.js} +2 -2
- package/dist/{vue-ui-bullet-D0-jL6aT.js → vue-ui-bullet-cjmFokeG.js} +7 -7
- package/dist/{vue-ui-candlestick-BKY_1NxQ.js → vue-ui-candlestick-uq3rtBpr.js} +170 -165
- package/dist/{vue-ui-carousel-table-RqYXqUym.js → vue-ui-carousel-table-DedRyMvM.js} +4 -4
- package/dist/{vue-ui-chestnut-QLx875w4.js → vue-ui-chestnut-Dn9dHx8K.js} +5 -5
- package/dist/{vue-ui-chord-rUYoYkRO.js → vue-ui-chord-Bj-2Jo5l.js} +8 -8
- package/dist/{vue-ui-circle-pack-DX5resGr.js → vue-ui-circle-pack-ZvoREQHu.js} +6 -6
- package/dist/{vue-ui-cursor-Day-0aL1.js → vue-ui-cursor-NAIw30mO.js} +2 -2
- package/dist/{vue-ui-dashboard-G0W4wq1U.js → vue-ui-dashboard-W22IluaL.js} +62 -62
- package/dist/{vue-ui-digits-DFREi_Ky.js → vue-ui-digits-BvEwf4JI.js} +2 -2
- package/dist/{vue-ui-donut-BdxnEUCr.js → vue-ui-donut-Bta-E_EJ.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DYeMgZMU.js → vue-ui-donut-evolution-BLNSoCwi.js} +176 -176
- package/dist/{vue-ui-dumbbell-ajhNYekO.js → vue-ui-dumbbell-BQu3zOec.js} +7 -7
- package/dist/{vue-ui-flow-BOq3_apj.js → vue-ui-flow-CsT8FX_C.js} +7 -7
- package/dist/{vue-ui-funnel-1Tc-WWAK.js → vue-ui-funnel-L18wphWh.js} +6 -6
- package/dist/{vue-ui-galaxy-DRdIquCv.js → vue-ui-galaxy-fdHsQUbR.js} +5 -5
- package/dist/{vue-ui-gauge-B0a3J_d1.js → vue-ui-gauge-BBaQNbeF.js} +6 -6
- package/dist/{vue-ui-gizmo-5G0uR26C.js → vue-ui-gizmo-Cb74L98r.js} +3 -3
- package/dist/{vue-ui-heatmap-BGYSmKC-.js → vue-ui-heatmap-Bs45BL94.js} +7 -7
- package/dist/{vue-ui-history-plot-kHo6293P.js → vue-ui-history-plot-D5xwgxuT.js} +7 -7
- package/dist/{vue-ui-kpi-6zONwNMN.js → vue-ui-kpi-d2S8__3L.js} +3 -3
- package/dist/{vue-ui-mini-loader-XyVfmLch.js → vue-ui-mini-loader-ByNP8i6H.js} +2 -2
- package/dist/{vue-ui-molecule-BoQKd6NP.js → vue-ui-molecule-DFECHTJM.js} +5 -5
- package/dist/{vue-ui-mood-radar-DncLIzjX.js → vue-ui-mood-radar-C2f-hGt7.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DXMadqNK.js → vue-ui-nested-donuts-BkZp7YQ7.js} +9 -9
- package/dist/{vue-ui-onion-CbtXXJHJ.js → vue-ui-onion-sEyGIxJh.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-D-zLAqYN.js → vue-ui-parallel-coordinate-plot-JC5eiVHp.js} +8 -8
- package/dist/{vue-ui-quadrant-DqN9de-E.js → vue-ui-quadrant-sSBNovN6.js} +8 -8
- package/dist/{vue-ui-quick-chart-fAHV8BFQ.js → vue-ui-quick-chart-eVp8EGMt.js} +6 -6
- package/dist/{vue-ui-radar-Dcr4Y35J.js → vue-ui-radar-BHhOC9kA.js} +7 -7
- package/dist/{vue-ui-rating-Y_X6wrM8.js → vue-ui-rating-B8kgr0tD.js} +2 -2
- package/dist/{vue-ui-relation-circle-CsjfP4w3.js → vue-ui-relation-circle-NVBHf3Ro.js} +6 -6
- package/dist/{vue-ui-ridgeline-COQZjWXD.js → vue-ui-ridgeline-ASDvur5L.js} +11 -9
- package/dist/{vue-ui-rings-IWHU4YHR.js → vue-ui-rings-C97YkY1L.js} +8 -8
- package/dist/{vue-ui-scatter-zG4nPspJ.js → vue-ui-scatter-C3GYlFs2.js} +8 -8
- package/dist/{vue-ui-skeleton-BLCAe0aL.js → vue-ui-skeleton-BGtcT66j.js} +3 -3
- package/dist/{vue-ui-smiley-CgMyaK6w.js → vue-ui-smiley-DIIPhk76.js} +2 -2
- package/dist/{vue-ui-spark-trend-Dn2iTtuB.js → vue-ui-spark-trend-B0oiB1HI.js} +3 -3
- package/dist/{vue-ui-sparkbar-BA_s34xX.js → vue-ui-sparkbar-HEQwPqci.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CGoeUY4p.js → vue-ui-sparkgauge-CYq7uvkr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BuSn8iJi.js → vue-ui-sparkhistogram-CC0jgIM2.js} +4 -4
- package/dist/{vue-ui-sparkline-CYJUhGaJ.js → vue-ui-sparkline-DkFn707d.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BDQWVxNP.js → vue-ui-sparkstackbar-BQH_7kqj.js} +3 -3
- package/dist/{vue-ui-stackbar-B92-pzwh.js → vue-ui-stackbar-C1ZiF9u8.js} +406 -400
- package/dist/{vue-ui-strip-plot-BLTjzATL.js → vue-ui-strip-plot-DsVjqkFe.js} +7 -7
- package/dist/{vue-ui-table-Ba7Z_7OX.js → vue-ui-table-TVnVtJAG.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C29u3mfg.js → vue-ui-table-heatmap-IuC4qjxQ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BLR9glHo.js → vue-ui-table-sparkline-Di7rcfCp.js} +4 -4
- package/dist/{vue-ui-thermometer-BAm6l97t.js → vue-ui-thermometer-DoUtzm8y.js} +6 -6
- package/dist/{vue-ui-timer-CqbbNnBk.js → vue-ui-timer-C6NN9Dp9.js} +5 -5
- package/dist/{vue-ui-tiremarks-BnZr2Vrp.js → vue-ui-tiremarks-D-dyCz2j.js} +6 -6
- package/dist/{vue-ui-treemap-J8OANLCg.js → vue-ui-treemap-91xJeG0F.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DdR3STYF.js → vue-ui-vertical-bar-BiUb_W7m.js} +9 -9
- package/dist/vue-ui-waffle-C6WcwTB7.js +910 -0
- package/dist/{vue-ui-wheel-D5yea4oH.js → vue-ui-wheel-ByOKs5in.js} +6 -6
- package/dist/{vue-ui-word-cloud-OugLGxgB.js → vue-ui-word-cloud-Dr4mZAqV.js} +6 -6
- package/dist/{vue-ui-world-BSptBo4h.js → vue-ui-world-DRsAnAD3.js} +6 -6
- package/dist/{vue-ui-xy-DnYo2K58.js → vue-ui-xy-Cyp2iGkS.js} +12 -11
- package/dist/{vue-ui-xy-canvas-Cmn0RWbG.js → vue-ui-xy-canvas-DoIboNfE.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-waffle-w5VJA7gR.js +0 -865
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as ae, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as He, u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
import { u as
|
|
14
|
-
import
|
|
15
|
-
import { u as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { defineAsyncComponent as ae, useSlots as pa, computed as x, ref as b, onMounted as Ct, toRefs as xa, watch as De, shallowRef as _t, onBeforeUnmount as St, watchEffect as $t, nextTick as Tt, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Z, normalizeClass as le, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as Q, createVNode as ke, createSlots as Mt, withCtx as C, normalizeProps as H, guardReactiveProps as U, Fragment as g, renderList as m, mergeProps as Fe, toDisplayString as M, createTextVNode as ka } from "vue";
|
|
2
|
+
import { u as wa, c as At, A as La, t as za, p as we, a as Ca, C as se, b as _a, o as Nt, e as It, g as Sa, d as $a, an as Le, ac as Rt, D as Ot, X as Ta, l as Ma, aa as ze, F as Pt, i as Ce, f as j, I as Aa, a0 as Na, x as Vt, q as Ia, r as Ra, y as Oa } from "./index-enA2Fisu.js";
|
|
3
|
+
import { u as Et } from "./useNestedProp-Crm1jYNw.js";
|
|
4
|
+
import { t as He, u as Pa } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as Va } from "./usePrinter-Bh6HKGit.js";
|
|
6
|
+
import { u as Ea } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Da } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { u as Fa } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
+
import Ha from "./Legend-D6apcxV3.js";
|
|
10
|
+
import { S as Ua } from "./Slicer-BBfWOoWo.js";
|
|
11
|
+
import Ba from "./Title-lox3SQPC.js";
|
|
12
|
+
import { _ as Wa } from "./Shape-Dib8cPqa.js";
|
|
13
|
+
import { u as Ya } from "./useTimeLabels-DkzmKfZn.js";
|
|
14
|
+
import Xa from "./img-Bv894v6P.js";
|
|
15
|
+
import { u as Ga, B as Ja } from "./BaseScanner-DIK2NTdp.js";
|
|
16
|
+
import { _ as qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"], ja = { key: 1 }, el = ["id"], tl = ["stop-color"], al = ["stop-color"], ll = ["stop-color"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = { key: 0 }, ul = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], cl = { key: 0 }, hl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], vl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], dl = { key: 0 }, yl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["transform", "font-size", "fill", "font-weight"], pl = ["x", "y", "font-size", "fill", "font-weight"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x", "y", "font-size", "fill", "font-weight"], wl = ["x", "y", "font-size", "font-weight", "fill"], Ll = ["x1", "x2", "y1", "y2", "stroke"], zl = ["x", "y", "font-size", "font-weight", "fill"], Cl = ["x1", "x2", "y1", "y2", "stroke"], _l = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Sl = { key: 0 }, $l = { key: 1 }, Tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ml = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Al = { key: 0 }, Nl = { key: 1 }, Il = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Rl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Ol = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Pl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Vl = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, El = ["onClick"], Dl = ["innerHTML"], Fl = {
|
|
21
21
|
__name: "vue-ui-stackbar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,20 +34,20 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
|
-
setup(_e, { expose:
|
|
38
|
-
const
|
|
37
|
+
setup(_e, { expose: Dt, emit: Ft }) {
|
|
38
|
+
const Ht = ae(() => import("./vue-ui-accordion-CwPBtAl7.js")), Ut = ae(() => import("./DataTable-DMXRqxO9.js")), Bt = ae(() => import("./PackageVersion-DOtis8zH.js")), Wt = ae(() => import("./PenAndPaper-XC3SNbgm.js")), Yt = ae(() => import("./Tooltip-DzK1HoFb.js")), Xt = ae(() => import("./UserOptions-Dy6QIYd1.js")), { vue_ui_stackbar: Gt } = wa(), Jt = pa(), f = _e, Se = Ft, ie = x({
|
|
39
39
|
get() {
|
|
40
40
|
return !!f.dataset && f.dataset.length;
|
|
41
41
|
},
|
|
42
42
|
set(a) {
|
|
43
43
|
return a;
|
|
44
44
|
}
|
|
45
|
-
}), P = b(null), V = b(
|
|
46
|
-
|
|
45
|
+
}), P = b(null), V = b(At()), $e = b(!1), Te = b(null), Me = b(""), S = b([]), Ue = b(0), Be = b(null), We = b(null), Ye = b(null), Xe = b(null), Ge = b(0), ne = b(!1), ue = b(null), B = b(!1), Je = b(0), qt = b(0), Zt = b(0), qe = b(null), Ae = b(null), Ne = b(null), W = b(null), Y = b(null), Kt = b(null), Ze = b(null);
|
|
46
|
+
Ct(() => {
|
|
47
47
|
Pe();
|
|
48
48
|
});
|
|
49
|
-
const e = b(Re()), { loading:
|
|
50
|
-
...
|
|
49
|
+
const e = b(Re()), { loading: ce, FINAL_DATASET: he, manualLoading: ve } = Ga({
|
|
50
|
+
...xa(f),
|
|
51
51
|
FINAL_CONFIG: e,
|
|
52
52
|
prepareConfig: Re,
|
|
53
53
|
callback: () => {
|
|
@@ -67,7 +67,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
67
67
|
color: "#CACACA"
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
|
-
skeletonConfig:
|
|
70
|
+
skeletonConfig: La({
|
|
71
71
|
defaultConfig: e.value,
|
|
72
72
|
userConfig: {
|
|
73
73
|
userOptions: { show: !1 },
|
|
@@ -116,26 +116,26 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
119
|
-
}), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } =
|
|
119
|
+
}), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ea({ config: e.value }), { svgRef: je } = Da({ config: e.value.style.chart.title });
|
|
120
120
|
function Re() {
|
|
121
|
-
const a =
|
|
121
|
+
const a = Et({
|
|
122
122
|
userConfig: f.config,
|
|
123
|
-
defaultConfig:
|
|
123
|
+
defaultConfig: Gt
|
|
124
124
|
});
|
|
125
|
-
let
|
|
126
|
-
return a.theme ?
|
|
127
|
-
...
|
|
128
|
-
userConfig:
|
|
125
|
+
let l = {};
|
|
126
|
+
return a.theme ? l = {
|
|
127
|
+
...Et({
|
|
128
|
+
userConfig: Ca.vue_ui_stackbar[a.theme] || f.config,
|
|
129
129
|
defaultConfig: a
|
|
130
130
|
}),
|
|
131
|
-
customPalette:
|
|
132
|
-
} :
|
|
131
|
+
customPalette: za[a.theme] || we
|
|
132
|
+
} : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
133
133
|
}
|
|
134
134
|
const et = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}, { deep: !0 }),
|
|
138
|
-
Array.isArray(a) && a.length > 0 && (
|
|
135
|
+
De(() => f.config, (a) => {
|
|
136
|
+
ce.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, qt.value += 1, Zt.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
137
|
+
}, { deep: !0 }), De(() => f.dataset, (a) => {
|
|
138
|
+
Array.isArray(a) && a.length > 0 && (ve.value = !1), nt();
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const z = b({
|
|
141
141
|
dataLabels: {
|
|
@@ -144,7 +144,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
144
144
|
showTable: e.value.table.show,
|
|
145
145
|
showTooltip: e.value.style.chart.tooltip.show
|
|
146
146
|
});
|
|
147
|
-
|
|
147
|
+
De(e, () => {
|
|
148
148
|
z.value = {
|
|
149
149
|
dataLabels: {
|
|
150
150
|
show: e.value.style.chart.bars.dataLabels.show
|
|
@@ -153,7 +153,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
153
153
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
154
|
};
|
|
155
155
|
}, { immediate: !0 });
|
|
156
|
-
const { isPrinting: at, isImaging: lt, generatePdf: st, generateImage: rt } =
|
|
156
|
+
const { isPrinting: at, isImaging: lt, generatePdf: st, generateImage: rt } = Va({
|
|
157
157
|
elementId: `stackbar_${V.value}`,
|
|
158
158
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
159
159
|
options: e.value.userOptions.print
|
|
@@ -166,43 +166,43 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
166
166
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
167
167
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
170
|
-
|
|
169
|
+
}), Qt = x(() => _a(e.value.customPalette)), E = _t(null), te = _t(null), ot = b(null);
|
|
170
|
+
Ct(() => {
|
|
171
171
|
Pe();
|
|
172
172
|
});
|
|
173
173
|
const Oe = x(() => !!e.value.debug);
|
|
174
174
|
function Pe() {
|
|
175
|
-
if (
|
|
175
|
+
if (Nt(f.dataset) ? (It({
|
|
176
176
|
componentName: "VueUiStackbar",
|
|
177
177
|
type: "dataset",
|
|
178
178
|
debug: Oe.value
|
|
179
|
-
}),
|
|
180
|
-
|
|
179
|
+
}), ve.value = !0) : f.dataset.forEach((a, l) => {
|
|
180
|
+
Sa({
|
|
181
181
|
datasetObject: a,
|
|
182
182
|
requiredAttributes: ["name", "series"]
|
|
183
183
|
}).forEach((t) => {
|
|
184
|
-
|
|
184
|
+
ie.value = !1, It({
|
|
185
185
|
componentName: "VueUiStackbar",
|
|
186
186
|
type: "datasetSerieAttribute",
|
|
187
187
|
property: t,
|
|
188
|
-
index:
|
|
188
|
+
index: l,
|
|
189
189
|
debug: Oe.value
|
|
190
|
-
}),
|
|
190
|
+
}), ve.value = !0;
|
|
191
191
|
});
|
|
192
|
-
}),
|
|
192
|
+
}), Nt(f.dataset) || (ve.value = e.value.loading), setTimeout(() => {
|
|
193
193
|
B.value = !0;
|
|
194
194
|
}, 10), e.value.responsive) {
|
|
195
195
|
const a = He(() => {
|
|
196
196
|
B.value = !1;
|
|
197
|
-
const { width:
|
|
197
|
+
const { width: l, height: t } = Pa({
|
|
198
198
|
chart: P.value,
|
|
199
199
|
title: e.value.style.chart.title.text ? Be.value : null,
|
|
200
200
|
legend: e.value.style.chart.legend.show ? We.value : null,
|
|
201
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
201
|
+
slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ye.value : null,
|
|
202
202
|
source: Xe.value
|
|
203
203
|
});
|
|
204
204
|
requestAnimationFrame(() => {
|
|
205
|
-
ee.value.width =
|
|
205
|
+
ee.value.width = l, ee.value.height = t - 12, clearTimeout(ot.value), ot.value = setTimeout(() => {
|
|
206
206
|
B.value = !0;
|
|
207
207
|
}, 10);
|
|
208
208
|
});
|
|
@@ -211,169 +211,169 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
211
211
|
}
|
|
212
212
|
Ve();
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
St(() => {
|
|
215
215
|
E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect());
|
|
216
216
|
});
|
|
217
|
-
function
|
|
217
|
+
function jt() {
|
|
218
218
|
let a = 0;
|
|
219
|
-
e.value.orientation === "vertical" && W.value && (a = Array.from(W.value.querySelectorAll("text")).reduce((
|
|
219
|
+
e.value.orientation === "vertical" && W.value && (a = Array.from(W.value.querySelectorAll("text")).reduce((s, c) => {
|
|
220
220
|
const u = c.getComputedTextLength();
|
|
221
|
-
return u >
|
|
222
|
-
}, 0)), e.value.orientation === "horizontal" && Y.value && (a = Array.from(Y.value.querySelectorAll("text")).reduce((
|
|
221
|
+
return u > s ? u : s;
|
|
222
|
+
}, 0)), e.value.orientation === "horizontal" && Y.value && (a = Array.from(Y.value.querySelectorAll("text")).reduce((s, c) => {
|
|
223
223
|
const u = c.getComputedTextLength();
|
|
224
|
-
return u >
|
|
224
|
+
return u > s ? u : s;
|
|
225
225
|
}, 0));
|
|
226
|
-
const
|
|
227
|
-
return a +
|
|
226
|
+
const l = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
|
|
227
|
+
return a + l + (l ? 24 : 0);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const de = b(0), ye = b(0), ea = He((a) => {
|
|
230
|
+
de.value = a;
|
|
231
231
|
}, 100);
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
if (!
|
|
235
|
-
const t = new ResizeObserver((
|
|
236
|
-
|
|
232
|
+
$t((a) => {
|
|
233
|
+
const l = e.value.orientation === "vertical" ? Y.value : W.value;
|
|
234
|
+
if (!l) return;
|
|
235
|
+
const t = new ResizeObserver((s) => {
|
|
236
|
+
ea(s[0].contentRect.height);
|
|
237
237
|
});
|
|
238
|
-
t.observe(
|
|
238
|
+
t.observe(l), a(() => t.disconnect());
|
|
239
239
|
});
|
|
240
|
-
const
|
|
241
|
-
|
|
240
|
+
const ta = He((a) => {
|
|
241
|
+
ye.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
242
242
|
}, 100);
|
|
243
|
-
|
|
243
|
+
$t((a) => {
|
|
244
244
|
if (e.value.orientation === "vertical") return;
|
|
245
|
-
const
|
|
246
|
-
if (!
|
|
247
|
-
const t = new ResizeObserver((
|
|
248
|
-
|
|
245
|
+
const l = Ze.value;
|
|
246
|
+
if (!l) return;
|
|
247
|
+
const t = new ResizeObserver((s) => {
|
|
248
|
+
ta(s[0].contentRect.width);
|
|
249
249
|
});
|
|
250
|
-
t.observe(
|
|
251
|
-
}),
|
|
252
|
-
|
|
250
|
+
t.observe(l), a(() => t.disconnect());
|
|
251
|
+
}), St(() => {
|
|
252
|
+
de.value = 0, ye.value = 0;
|
|
253
253
|
});
|
|
254
254
|
const it = x(() => {
|
|
255
255
|
let a = 0;
|
|
256
256
|
Ae.value && (a = Ae.value.getBBox().height);
|
|
257
|
-
let
|
|
258
|
-
return e.value.orientation === "vertical" && Y.value && (
|
|
257
|
+
let l = 0;
|
|
258
|
+
return e.value.orientation === "vertical" && Y.value && (l = de.value), e.value.orientation === "horizontal" && W.value && (l = de.value), a + l;
|
|
259
259
|
}), n = x(() => {
|
|
260
|
-
const { height: a, width:
|
|
261
|
-
let
|
|
262
|
-
e.value.style.chart.grid.y.axisLabels.show && (c =
|
|
263
|
-
const u = e.value.style.chart.padding.top +
|
|
260
|
+
const { height: a, width: l } = ee.value, { right: t } = ee.value.paddingRatio;
|
|
261
|
+
let s = e.value.style.chart.bars.totalValues.show && f.dataset && f.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
|
|
262
|
+
e.value.style.chart.grid.y.axisLabels.show && (c = jt());
|
|
263
|
+
const u = e.value.style.chart.padding.top + s, _ = l - l * t - ye.value, X = a - e.value.style.chart.padding.bottom - it.value - s, G = e.value.style.chart.padding.left + c, J = l - G - l * t - ye.value, R = a - u - e.value.style.chart.padding.bottom - it.value - s;
|
|
264
264
|
return {
|
|
265
265
|
chartHeight: a,
|
|
266
|
-
chartWidth:
|
|
266
|
+
chartWidth: l,
|
|
267
267
|
top: u,
|
|
268
|
-
right:
|
|
268
|
+
right: _,
|
|
269
269
|
bottom: X,
|
|
270
270
|
left: G,
|
|
271
271
|
width: Math.max(0, J),
|
|
272
272
|
height: Math.max(0, R)
|
|
273
273
|
};
|
|
274
|
-
}),
|
|
275
|
-
const t =
|
|
274
|
+
}), D = x(() => he.value.map((a, l) => {
|
|
275
|
+
const t = $a(a.color) || Qt.value[l] || we[l] || we[l % we.length];
|
|
276
276
|
return {
|
|
277
277
|
...a,
|
|
278
278
|
// In distributed mode, all values are converted to positive
|
|
279
|
-
series: JSON.parse(JSON.stringify(a.series)).map((
|
|
279
|
+
series: JSON.parse(JSON.stringify(a.series)).map((s) => e.value.style.chart.bars.distributed ? Math.abs(s) : s),
|
|
280
280
|
// Store signs to manage display of neg values in distributed mode
|
|
281
|
-
signedSeries: a.series.map((
|
|
282
|
-
absoluteIndex:
|
|
283
|
-
id:
|
|
281
|
+
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
282
|
+
absoluteIndex: l,
|
|
283
|
+
id: At(),
|
|
284
284
|
color: t
|
|
285
285
|
};
|
|
286
|
-
})),
|
|
286
|
+
})), F = x(() => Math.max(...D.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = b({
|
|
287
287
|
start: 0,
|
|
288
|
-
end: Math.max(...
|
|
288
|
+
end: Math.max(...he.value.map((a) => a.series.length))
|
|
289
289
|
});
|
|
290
290
|
function nt() {
|
|
291
291
|
Ve();
|
|
292
292
|
}
|
|
293
293
|
async function Ve() {
|
|
294
|
-
await
|
|
295
|
-
const { startIndex: a, endIndex:
|
|
296
|
-
(a != null ||
|
|
294
|
+
await Tt(), await Tt();
|
|
295
|
+
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = qe.value, s = Math.max(...he.value.map((c) => c.series.length));
|
|
296
|
+
(a != null || l != null) && t ? (a != null && t.setStartValue(a), l != null && t.setEndValue(aa(l + 1))) : (h.value = { start: 0, end: s }, Ge.value += 1);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
const
|
|
300
|
-
return a >
|
|
298
|
+
function aa(a) {
|
|
299
|
+
const l = Math.max(...he.value.map((t) => t.series.length));
|
|
300
|
+
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;
|
|
301
301
|
}
|
|
302
302
|
const d = x(() => {
|
|
303
303
|
let a;
|
|
304
304
|
return e.value.orientation === "vertical" ? a = n.value.width / (h.value.end - h.value.start) : a = n.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
305
|
-
}),
|
|
305
|
+
}), re = x(() => Le(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), la = x(() => Le(D.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
306
306
|
...a,
|
|
307
|
-
series: a.series.map((
|
|
308
|
-
}))).slice(h.value.start, h.value.end)),
|
|
309
|
-
const a =
|
|
307
|
+
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
308
|
+
}))).slice(h.value.start, h.value.end)), ge = x(() => {
|
|
309
|
+
const a = D.value.filter((l) => !S.value.includes(l.id));
|
|
310
310
|
return {
|
|
311
|
-
positive:
|
|
312
|
-
...
|
|
313
|
-
series:
|
|
311
|
+
positive: Le(a.map((l) => ({
|
|
312
|
+
...l,
|
|
313
|
+
series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
314
314
|
}))),
|
|
315
|
-
negative:
|
|
316
|
-
...
|
|
317
|
-
series:
|
|
315
|
+
negative: Le(a.map((l) => ({
|
|
316
|
+
...l,
|
|
317
|
+
series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
318
318
|
})))
|
|
319
319
|
};
|
|
320
320
|
}), I = x(() => {
|
|
321
|
-
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(...
|
|
322
|
-
return
|
|
323
|
-
zero: n.value.bottom - n.value.height * (Math.abs(
|
|
324
|
-
y: n.value.bottom - n.value.height * ((c + Math.abs(
|
|
321
|
+
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(...ge.value.positive), l = Math.min(...ge.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, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Rt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ot(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
322
|
+
return s.ticks.map((c) => ({
|
|
323
|
+
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
324
|
+
y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
325
325
|
x: n.value.left - 8,
|
|
326
|
-
horizontal_zero: n.value.left + n.value.width * (Math.abs(
|
|
327
|
-
horizontal_x: n.value.left + n.value.width * ((c + Math.abs(
|
|
326
|
+
horizontal_zero: n.value.left + n.value.width * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
327
|
+
horizontal_x: n.value.left + n.value.width * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
328
328
|
horizontal_y: n.value.bottom - 8,
|
|
329
329
|
value: c
|
|
330
330
|
}));
|
|
331
|
-
}), $ = x(() =>
|
|
331
|
+
}), $ = x(() => Ya({
|
|
332
332
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
333
|
-
maxDatapoints:
|
|
333
|
+
maxDatapoints: F.value,
|
|
334
334
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
335
335
|
start: h.value.start,
|
|
336
336
|
end: h.value.end
|
|
337
337
|
})), w = x(() => {
|
|
338
|
-
if (!
|
|
339
|
-
let a = Array(
|
|
340
|
-
const c = Math.max(...
|
|
341
|
-
return
|
|
342
|
-
const O =
|
|
343
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
338
|
+
if (!ie.value && !ce.value) return [];
|
|
339
|
+
let a = Array(F.value).fill(0), l = Array(F.value).fill(0), t = Array(F.value).fill(0), s = Array(F.value).fill(0);
|
|
340
|
+
const c = Math.max(...ge.value.positive) || 0, u = Math.min(...ge.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, X = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Rt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Ot(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: G, max: J } = X, R = J + (G >= 0 ? 0 : Math.abs(G)) || 1, T = n.value.height, xe = n.value.width, Lt = I.value[0] ? I.value[0].zero : n.value.bottom, zt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
|
|
341
|
+
return D.value.filter((oe) => !S.value.includes(oe.id)).map((oe) => {
|
|
342
|
+
const O = oe.series.slice(h.value.start, h.value.end), ha = oe.signedSeries.slice(h.value.start, h.value.end), va = O.map((p, k) => n.value.left + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), da = O.map((p, k) => n.value.top + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), ya = O.map((p, k) => {
|
|
343
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[k] : (p || 0) / R;
|
|
344
344
|
let q, N;
|
|
345
|
-
return p > 0 ? (N = T * A, q =
|
|
346
|
-
}),
|
|
347
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
345
|
+
return p > 0 ? (N = T * A, q = Lt - N - a[k], a[k] += N) : (N = T * A, q = Lt + t[k], t[k] += Math.abs(N)), q;
|
|
346
|
+
}), ga = O.map((p, k) => {
|
|
347
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[k] : (p || 0) / R;
|
|
348
348
|
let q, N;
|
|
349
|
-
return p > 0 ? (N =
|
|
350
|
-
}),
|
|
351
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
349
|
+
return p > 0 ? (N = xe * A, q = zt + l[k], l[k] += N) : (N = xe * A, q = zt - Math.abs(N) - s[k], s[k] += Math.abs(N)), q;
|
|
350
|
+
}), ba = O.map((p, k) => {
|
|
351
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[k] : (p || 0) / R;
|
|
352
352
|
return p > 0 ? T * A : T * Math.abs(A);
|
|
353
|
-
}),
|
|
354
|
-
const A = e.value.style.chart.bars.distributed ? (p || 0) /
|
|
355
|
-
return p > 0 ?
|
|
356
|
-
}),
|
|
353
|
+
}), fa = O.map((p, k) => {
|
|
354
|
+
const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[k] : (p || 0) / R;
|
|
355
|
+
return p > 0 ? xe * A : xe * Math.abs(A);
|
|
356
|
+
}), ma = O.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
|
|
357
357
|
return {
|
|
358
|
-
...
|
|
359
|
-
proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) /
|
|
358
|
+
...oe,
|
|
359
|
+
proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / re.value[k] : (p || 0) / ma),
|
|
360
360
|
series: O,
|
|
361
|
-
signedSeries:
|
|
362
|
-
x:
|
|
363
|
-
y:
|
|
364
|
-
height:
|
|
365
|
-
horizontal_width:
|
|
366
|
-
horizontal_y:
|
|
367
|
-
horizontal_x:
|
|
361
|
+
signedSeries: ha,
|
|
362
|
+
x: va,
|
|
363
|
+
y: ya,
|
|
364
|
+
height: ba,
|
|
365
|
+
horizontal_width: fa,
|
|
366
|
+
horizontal_y: da,
|
|
367
|
+
horizontal_x: ga
|
|
368
368
|
};
|
|
369
369
|
});
|
|
370
|
-
}), ut = x(() =>
|
|
370
|
+
}), ut = x(() => la.value.map((a, l) => ({
|
|
371
371
|
value: a,
|
|
372
372
|
sign: a >= 0 ? 1 : -1
|
|
373
373
|
})));
|
|
374
|
-
function
|
|
374
|
+
function be(a, l, t, s, c) {
|
|
375
375
|
const u = c === -1 && a >= 0 ? -a : a;
|
|
376
|
-
return
|
|
376
|
+
return Ce(
|
|
377
377
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
378
378
|
u,
|
|
379
379
|
j({
|
|
@@ -382,11 +382,11 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
382
382
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
383
383
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
384
384
|
}),
|
|
385
|
-
{ datapoint:
|
|
385
|
+
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
function ct(a,
|
|
389
|
-
return
|
|
388
|
+
function ct(a, l, t, s) {
|
|
389
|
+
return Ce(
|
|
390
390
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
391
391
|
a,
|
|
392
392
|
j({
|
|
@@ -394,43 +394,53 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
394
394
|
s: "%",
|
|
395
395
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
396
396
|
}),
|
|
397
|
-
{ datapoint:
|
|
397
|
+
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
400
|
function ht(a) {
|
|
401
|
-
const
|
|
401
|
+
const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
|
|
402
402
|
name: t.name,
|
|
403
403
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
404
404
|
proportion: t.proportions[a] || null,
|
|
405
405
|
color: t.color,
|
|
406
406
|
id: t.id
|
|
407
407
|
}));
|
|
408
|
-
|
|
408
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), Se("selectDatapoint", { datapoint: l, period: $.value[a] });
|
|
409
409
|
}
|
|
410
410
|
function vt(a) {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
id: c.id
|
|
411
|
+
return JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
412
|
+
name: l.name,
|
|
413
|
+
absoluteIndex: l.absoluteIndex,
|
|
414
|
+
value: l.series[a] === 0 ? 0 : (l.signedSeries[a] === -1 && l.series[a] >= 0 ? -l.series[a] : l.series[a]) || null,
|
|
415
|
+
proportion: l.proportions[a] || null,
|
|
416
|
+
color: l.color,
|
|
417
|
+
id: l.id
|
|
419
418
|
}));
|
|
420
|
-
|
|
419
|
+
}
|
|
420
|
+
function dt(a) {
|
|
421
|
+
if (e.value.events.datapointLeave) {
|
|
422
|
+
const l = vt(a);
|
|
423
|
+
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
|
|
424
|
+
}
|
|
425
|
+
$e.value = null, ue.value = null;
|
|
426
|
+
}
|
|
427
|
+
function yt(a) {
|
|
428
|
+
ue.value = a, $e.value = !0;
|
|
429
|
+
const l = e.value.style.chart.tooltip.customFormat, t = vt(a);
|
|
430
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Te.value = {
|
|
421
431
|
datapoint: t,
|
|
422
432
|
seriesIndex: a,
|
|
423
433
|
config: e.value,
|
|
424
434
|
series: w.value
|
|
425
435
|
};
|
|
426
|
-
const
|
|
427
|
-
if (
|
|
436
|
+
const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
437
|
+
if (Vt(l) && Oa(() => l({
|
|
428
438
|
seriesIndex: a,
|
|
429
439
|
datapoint: t,
|
|
430
440
|
series: w.value,
|
|
431
441
|
config: e.value
|
|
432
442
|
})))
|
|
433
|
-
Me.value =
|
|
443
|
+
Me.value = l({
|
|
434
444
|
seriesIndex: a,
|
|
435
445
|
datapoint: t,
|
|
436
446
|
series: w.value,
|
|
@@ -440,12 +450,12 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
440
450
|
const {
|
|
441
451
|
showValue: c,
|
|
442
452
|
showPercentage: u,
|
|
443
|
-
borderColor:
|
|
453
|
+
borderColor: _,
|
|
444
454
|
roundingValue: X,
|
|
445
455
|
roundingPercentage: G
|
|
446
456
|
} = e.value.style.chart.tooltip;
|
|
447
457
|
let J = "";
|
|
448
|
-
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (J += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
458
|
+
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (J += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
449
459
|
const R = [
|
|
450
460
|
c && u ? "(" : "",
|
|
451
461
|
c && u ? ")" : ""
|
|
@@ -453,14 +463,14 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
453
463
|
t.reverse().forEach((T) => {
|
|
454
464
|
J += `
|
|
455
465
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
456
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${T.id})` : T.color}"/>${
|
|
466
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${T.id})` : T.color}"/>${Jt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${T.absoluteIndex})"/>` : ""}</svg>
|
|
457
467
|
${T.name}${c || u ? ":" : ""} ${c ? j({
|
|
458
468
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
459
469
|
v: T.value,
|
|
460
470
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
461
471
|
r: X
|
|
462
472
|
}) : ""} ${R[0]}${u ? j({
|
|
463
|
-
v: isNaN(T.value /
|
|
473
|
+
v: isNaN(T.value / s) ? 0 : Math.abs(T.value) / s * 100,
|
|
464
474
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
465
475
|
s: "%",
|
|
466
476
|
r: G
|
|
@@ -470,8 +480,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
470
480
|
}), Me.value = `<div>${J}</div>`;
|
|
471
481
|
}
|
|
472
482
|
}
|
|
473
|
-
const
|
|
474
|
-
|
|
483
|
+
const sa = x(() => ee.value.width), ra = x(() => ee.value.height);
|
|
484
|
+
Fa({
|
|
475
485
|
timeLabelsEls: e.value.orientation === "vertical" ? Y : W,
|
|
476
486
|
timeLabels: $,
|
|
477
487
|
slicer: h,
|
|
@@ -479,47 +489,47 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
479
489
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
480
490
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate"],
|
|
481
491
|
isAutoSize: !1,
|
|
482
|
-
width:
|
|
483
|
-
height:
|
|
492
|
+
width: sa,
|
|
493
|
+
height: ra
|
|
484
494
|
});
|
|
485
|
-
function
|
|
486
|
-
|
|
495
|
+
function gt(a) {
|
|
496
|
+
ne.value = a, Ue.value += 1;
|
|
487
497
|
}
|
|
488
|
-
function
|
|
498
|
+
function bt() {
|
|
489
499
|
z.value.showTable = !z.value.showTable;
|
|
490
500
|
}
|
|
491
|
-
function
|
|
501
|
+
function ft() {
|
|
492
502
|
z.value.dataLabels.show = !z.value.dataLabels.show;
|
|
493
503
|
}
|
|
494
|
-
function
|
|
504
|
+
function mt() {
|
|
495
505
|
z.value.showTooltip = !z.value.showTooltip;
|
|
496
506
|
}
|
|
497
|
-
function
|
|
507
|
+
function oa() {
|
|
498
508
|
return w.value;
|
|
499
509
|
}
|
|
500
|
-
const
|
|
510
|
+
const pt = x(() => {
|
|
501
511
|
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
502
|
-
const a = w.value.map(({ name: t, color:
|
|
512
|
+
const a = w.value.map(({ name: t, color: s }) => ({
|
|
503
513
|
label: t,
|
|
504
|
-
color:
|
|
505
|
-
})),
|
|
514
|
+
color: s
|
|
515
|
+
})), l = [];
|
|
506
516
|
return $.value.forEach((t) => {
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
}),
|
|
511
|
-
}), { head: a, body:
|
|
517
|
+
const s = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
518
|
+
D.value.forEach((c) => {
|
|
519
|
+
s.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
520
|
+
}), l.push(s);
|
|
521
|
+
}), { head: a, body: l };
|
|
512
522
|
});
|
|
513
|
-
function
|
|
514
|
-
const
|
|
515
|
-
a ? a(u) :
|
|
523
|
+
function xt(a = null) {
|
|
524
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...pt.value.head.map((_) => _.label)], s = pt.value.body, c = l.concat([t]).concat(s), u = Ia(c);
|
|
525
|
+
a ? a(u) : Ra({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
516
526
|
}
|
|
517
|
-
const
|
|
527
|
+
const fe = x(() => {
|
|
518
528
|
const a = [""].concat(w.value.map((c) => c.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>');
|
|
519
|
-
let
|
|
520
|
-
for (let c = 0; c <
|
|
521
|
-
const u = w.value.map((
|
|
522
|
-
|
|
529
|
+
let l = [];
|
|
530
|
+
for (let c = 0; c < F.value; c += 1) {
|
|
531
|
+
const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, X) => _ + X, 0);
|
|
532
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
523
533
|
}
|
|
524
534
|
const t = {
|
|
525
535
|
th: {
|
|
@@ -533,92 +543,92 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
533
543
|
outline: e.value.table.td.outline
|
|
534
544
|
},
|
|
535
545
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
536
|
-
},
|
|
537
|
-
return { head: a, body:
|
|
546
|
+
}, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
547
|
+
return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
|
|
538
548
|
});
|
|
539
|
-
function
|
|
540
|
-
if (
|
|
541
|
-
|
|
549
|
+
function ia(a, l) {
|
|
550
|
+
if (Se("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
|
|
551
|
+
S.value = S.value.filter((t) => t !== l.id);
|
|
542
552
|
else {
|
|
543
|
-
if (
|
|
544
|
-
|
|
553
|
+
if (S.value.length === D.value.length - 1) return;
|
|
554
|
+
S.value.push(l.id);
|
|
545
555
|
}
|
|
546
556
|
}
|
|
547
|
-
const
|
|
557
|
+
const kt = x(() => D.value.map((a, l) => ({
|
|
548
558
|
...a,
|
|
549
559
|
shape: "square"
|
|
550
560
|
})).map((a) => ({
|
|
551
561
|
...a,
|
|
552
|
-
opacity:
|
|
553
|
-
segregate: () =>
|
|
554
|
-
isSegregated:
|
|
555
|
-
}))),
|
|
562
|
+
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
563
|
+
segregate: () => ia(a.absoluteIndex, a),
|
|
564
|
+
isSegregated: S.value.includes(a.id)
|
|
565
|
+
}))), na = x(() => ({
|
|
556
566
|
cy: "stackbar-legend",
|
|
557
567
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
558
568
|
color: e.value.style.chart.legend.color,
|
|
559
569
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
560
570
|
paddingBottom: 12,
|
|
561
571
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
562
|
-
})),
|
|
572
|
+
})), me = b(!1);
|
|
563
573
|
function Ee() {
|
|
564
|
-
|
|
574
|
+
me.value = !me.value;
|
|
565
575
|
}
|
|
566
|
-
function
|
|
567
|
-
const t = JSON.parse(JSON.stringify(w.value)).map((
|
|
568
|
-
name:
|
|
569
|
-
value:
|
|
570
|
-
proportion:
|
|
571
|
-
color:
|
|
572
|
-
id:
|
|
576
|
+
function pe(a, l) {
|
|
577
|
+
const t = JSON.parse(JSON.stringify(w.value)).map((s) => ({
|
|
578
|
+
name: s.name,
|
|
579
|
+
value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
|
|
580
|
+
proportion: s.proportions[l] || null,
|
|
581
|
+
color: s.color,
|
|
582
|
+
id: s.id
|
|
573
583
|
}));
|
|
574
|
-
|
|
584
|
+
Se("selectTimeLabel", {
|
|
575
585
|
datapoint: t,
|
|
576
586
|
absoluteIndex: a.absoluteIndex,
|
|
577
587
|
label: a.text
|
|
578
588
|
});
|
|
579
589
|
}
|
|
580
|
-
const
|
|
581
|
-
function
|
|
582
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ?
|
|
590
|
+
const ua = x(() => Math.max(...w.value.flatMap((a) => a.series)));
|
|
591
|
+
function wt(a, l) {
|
|
592
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : tt.value ? (et.value && Oe.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > ua.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : et.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
583
593
|
}
|
|
584
|
-
async function
|
|
594
|
+
async function ca({ scale: a = 2 } = {}) {
|
|
585
595
|
if (!P.value) return;
|
|
586
|
-
const { width:
|
|
596
|
+
const { width: l, height: t } = P.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Xa({ domElement: P.value, base64: !0, img: !0, scale: a });
|
|
587
597
|
return {
|
|
588
598
|
imageUri: c,
|
|
589
599
|
base64: u,
|
|
590
600
|
title: e.value.style.chart.title.text,
|
|
591
|
-
width:
|
|
601
|
+
width: l,
|
|
592
602
|
height: t,
|
|
593
|
-
aspectRatio:
|
|
603
|
+
aspectRatio: s
|
|
594
604
|
};
|
|
595
605
|
}
|
|
596
|
-
return
|
|
597
|
-
getData:
|
|
598
|
-
getImage:
|
|
606
|
+
return Dt({
|
|
607
|
+
getData: oa,
|
|
608
|
+
getImage: ca,
|
|
599
609
|
generatePdf: st,
|
|
600
|
-
generateCsv:
|
|
610
|
+
generateCsv: xt,
|
|
601
611
|
generateImage: rt,
|
|
602
|
-
toggleTable:
|
|
603
|
-
toggleLabels:
|
|
604
|
-
toggleTooltip:
|
|
612
|
+
toggleTable: bt,
|
|
613
|
+
toggleLabels: ft,
|
|
614
|
+
toggleTooltip: mt,
|
|
605
615
|
toggleAnnotator: Ee,
|
|
606
|
-
toggleFullscreen:
|
|
607
|
-
}), (a,
|
|
616
|
+
toggleFullscreen: gt
|
|
617
|
+
}), (a, l) => (r(), o("div", {
|
|
608
618
|
id: `stackbar_${V.value}`,
|
|
609
619
|
ref_key: "stackbarChart",
|
|
610
620
|
ref: P,
|
|
611
|
-
class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen":
|
|
621
|
+
class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
612
622
|
style: Z(`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%" : ""}`),
|
|
613
|
-
onMouseenter:
|
|
614
|
-
onMouseleave:
|
|
623
|
+
onMouseenter: l[4] || (l[4] = () => v(Ke)(!0)),
|
|
624
|
+
onMouseleave: l[5] || (l[5] = () => v(Ke)(!1))
|
|
615
625
|
}, [
|
|
616
|
-
e.value.userOptions.buttons.annotator ? (r(), K(v(
|
|
626
|
+
e.value.userOptions.buttons.annotator ? (r(), K(v(Wt), {
|
|
617
627
|
key: 0,
|
|
618
628
|
svgRef: v(je),
|
|
619
629
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
620
630
|
color: e.value.style.chart.color,
|
|
621
|
-
active:
|
|
631
|
+
active: me.value,
|
|
622
632
|
onClose: Ee
|
|
623
633
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
624
634
|
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
@@ -628,7 +638,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
628
638
|
ref: Be,
|
|
629
639
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
630
640
|
}, [
|
|
631
|
-
(r(), K(
|
|
641
|
+
(r(), K(Ba, {
|
|
632
642
|
key: `title_${Je.value}`,
|
|
633
643
|
config: {
|
|
634
644
|
title: {
|
|
@@ -642,7 +652,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
642
652
|
}
|
|
643
653
|
}, null, 8, ["config"]))
|
|
644
654
|
], 512)) : y("", !0),
|
|
645
|
-
e.value.userOptions.show &&
|
|
655
|
+
e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (r(), K(v(Xt), {
|
|
646
656
|
ref: "details",
|
|
647
657
|
key: `user_option_${Ue.value}`,
|
|
648
658
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -657,31 +667,31 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
657
667
|
hasTable: e.value.userOptions.buttons.table,
|
|
658
668
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
659
669
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
660
|
-
isFullscreen:
|
|
670
|
+
isFullscreen: ne.value,
|
|
661
671
|
chartElement: P.value,
|
|
662
672
|
position: e.value.userOptions.position,
|
|
663
673
|
isTooltip: z.value.showTooltip,
|
|
664
674
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
665
675
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
666
|
-
isAnnotation:
|
|
676
|
+
isAnnotation: me.value,
|
|
667
677
|
callbacks: e.value.userOptions.callbacks,
|
|
668
678
|
printScale: e.value.userOptions.print.scale,
|
|
669
|
-
onToggleFullscreen:
|
|
679
|
+
onToggleFullscreen: gt,
|
|
670
680
|
onGeneratePdf: v(st),
|
|
671
|
-
onGenerateCsv:
|
|
681
|
+
onGenerateCsv: xt,
|
|
672
682
|
onGenerateImage: v(rt),
|
|
673
|
-
onToggleTable:
|
|
674
|
-
onToggleLabels:
|
|
675
|
-
onToggleTooltip:
|
|
683
|
+
onToggleTable: bt,
|
|
684
|
+
onToggleLabels: ft,
|
|
685
|
+
onToggleTooltip: mt,
|
|
676
686
|
onToggleAnnotator: Ee,
|
|
677
687
|
style: Z({
|
|
678
688
|
visibility: v(Qe) ? v(Ie) ? "visible" : "hidden" : "visible"
|
|
679
689
|
})
|
|
680
|
-
},
|
|
690
|
+
}, Mt({ _: 2 }, [
|
|
681
691
|
a.$slots.menuIcon ? {
|
|
682
692
|
name: "menuIcon",
|
|
683
|
-
fn: C(({ isOpen: t, color:
|
|
684
|
-
L(a.$slots, "menuIcon", H(U({ isOpen: t, color:
|
|
693
|
+
fn: C(({ isOpen: t, color: s }) => [
|
|
694
|
+
L(a.$slots, "menuIcon", H(U({ isOpen: t, color: s })), void 0, !0)
|
|
685
695
|
]),
|
|
686
696
|
key: "0"
|
|
687
697
|
} : void 0,
|
|
@@ -729,15 +739,15 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
729
739
|
} : void 0,
|
|
730
740
|
a.$slots.optionFullscreen ? {
|
|
731
741
|
name: "optionFullscreen",
|
|
732
|
-
fn: C(({ toggleFullscreen: t, isFullscreen:
|
|
733
|
-
L(a.$slots, "optionFullscreen", H(U({ toggleFullscreen: t, isFullscreen:
|
|
742
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
743
|
+
L(a.$slots, "optionFullscreen", H(U({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
734
744
|
]),
|
|
735
745
|
key: "7"
|
|
736
746
|
} : void 0,
|
|
737
747
|
a.$slots.optionAnnotator ? {
|
|
738
748
|
name: "optionAnnotator",
|
|
739
|
-
fn: C(({ toggleAnnotator: t, isAnnotator:
|
|
740
|
-
L(a.$slots, "optionAnnotator", H(U({ toggleAnnotator: t, isAnnotator:
|
|
749
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
750
|
+
L(a.$slots, "optionAnnotator", H(U({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
741
751
|
]),
|
|
742
752
|
key: "8"
|
|
743
753
|
} : void 0
|
|
@@ -745,12 +755,12 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
745
755
|
(r(), o("svg", {
|
|
746
756
|
ref_key: "svgRef",
|
|
747
757
|
ref: je,
|
|
748
|
-
xmlns: v(
|
|
758
|
+
xmlns: v(Ta),
|
|
749
759
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
750
|
-
class: le({ "vue-data-ui-loading": v(
|
|
760
|
+
class: le({ "vue-data-ui-loading": v(ce) }),
|
|
751
761
|
style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
752
762
|
}, [
|
|
753
|
-
|
|
763
|
+
ke(v(Bt)),
|
|
754
764
|
a.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
755
765
|
key: 0,
|
|
756
766
|
x: n.value.left,
|
|
@@ -762,9 +772,9 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
762
772
|
}
|
|
763
773
|
}, [
|
|
764
774
|
L(a.$slots, "chart-background", {}, void 0, !0)
|
|
765
|
-
], 8,
|
|
766
|
-
e.value.style.chart.bars.gradient.show ? (r(), o("defs",
|
|
767
|
-
(r(!0), o(g, null, m(w.value, (t,
|
|
775
|
+
], 8, Qa)) : y("", !0),
|
|
776
|
+
e.value.style.chart.bars.gradient.show ? (r(), o("defs", ja, [
|
|
777
|
+
(r(!0), o(g, null, m(w.value, (t, s) => (r(), o("linearGradient", {
|
|
768
778
|
id: `gradient_${t.id}`,
|
|
769
779
|
x1: "0%",
|
|
770
780
|
y1: "0%",
|
|
@@ -774,18 +784,18 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
774
784
|
Q("stop", {
|
|
775
785
|
offset: "0%",
|
|
776
786
|
"stop-color": t.color
|
|
777
|
-
}, null, 8,
|
|
787
|
+
}, null, 8, tl),
|
|
778
788
|
Q("stop", {
|
|
779
789
|
offset: "61.8%",
|
|
780
|
-
"stop-color": v(
|
|
781
|
-
}, null, 8,
|
|
790
|
+
"stop-color": v(Ma)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
791
|
+
}, null, 8, al),
|
|
782
792
|
Q("stop", {
|
|
783
793
|
offset: "100%",
|
|
784
794
|
"stop-color": t.color
|
|
785
|
-
}, null, 8,
|
|
786
|
-
], 8,
|
|
795
|
+
}, null, 8, ll)
|
|
796
|
+
], 8, el))), 256))
|
|
787
797
|
])) : y("", !0),
|
|
788
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 2 }, m(I.value, (t,
|
|
798
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 2 }, m(I.value, (t, s) => (r(), o("line", {
|
|
789
799
|
x1: n.value.left,
|
|
790
800
|
x2: n.value.right,
|
|
791
801
|
y1: t.y,
|
|
@@ -794,28 +804,28 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
794
804
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
795
805
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
796
806
|
"stroke-linecap": "round"
|
|
797
|
-
}, null, 8,
|
|
798
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t,
|
|
807
|
+
}, null, 8, sl))), 256)) : y("", !0),
|
|
808
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
799
809
|
x1: n.value.left,
|
|
800
810
|
x2: n.value.right,
|
|
801
|
-
y1: n.value.top + d.value *
|
|
802
|
-
y2: n.value.top + d.value *
|
|
811
|
+
y1: n.value.top + d.value * s,
|
|
812
|
+
y2: n.value.top + d.value * s,
|
|
803
813
|
stroke: e.value.style.chart.grid.x.linesColor,
|
|
804
814
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
805
815
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
806
816
|
"stroke-linecap": "round"
|
|
807
|
-
}, null, 8,
|
|
808
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t,
|
|
809
|
-
x1: n.value.left + d.value *
|
|
810
|
-
x2: n.value.left + d.value *
|
|
817
|
+
}, null, 8, rl))), 256)) : y("", !0),
|
|
818
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
819
|
+
x1: n.value.left + d.value * s,
|
|
820
|
+
x2: n.value.left + d.value * s,
|
|
811
821
|
y1: n.value.top,
|
|
812
822
|
y2: n.value.bottom,
|
|
813
823
|
stroke: e.value.style.chart.grid.y.linesColor,
|
|
814
824
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
815
825
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
816
826
|
"stroke-linecap": "round"
|
|
817
|
-
}, null, 8,
|
|
818
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 5 }, m(I.value, (t,
|
|
827
|
+
}, null, 8, ol))), 256)) : y("", !0),
|
|
828
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 5 }, m(I.value, (t, s) => (r(), o("line", {
|
|
819
829
|
x1: t.horizontal_x,
|
|
820
830
|
x2: t.horizontal_x,
|
|
821
831
|
y1: n.value.top,
|
|
@@ -824,10 +834,10 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
824
834
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
825
835
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
826
836
|
"stroke-linecap": "round"
|
|
827
|
-
}, null, 8,
|
|
828
|
-
(r(!0), o(g, null, m(w.value, (t,
|
|
829
|
-
a.$slots.pattern ? (r(), o("defs",
|
|
830
|
-
L(a.$slots, "pattern",
|
|
837
|
+
}, null, 8, il))), 256)) : y("", !0),
|
|
838
|
+
(r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
839
|
+
a.$slots.pattern ? (r(), o("defs", nl, [
|
|
840
|
+
L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
831
841
|
])) : y("", !0),
|
|
832
842
|
e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
|
|
833
843
|
(r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
@@ -842,8 +852,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
842
852
|
"stroke-linecap": "round",
|
|
843
853
|
"stroke-linejoin": "round",
|
|
844
854
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
845
|
-
}, null, 10,
|
|
846
|
-
a.$slots.pattern ? (r(), o("g",
|
|
855
|
+
}, null, 10, ul))), 256)),
|
|
856
|
+
a.$slots.pattern ? (r(), o("g", cl, [
|
|
847
857
|
(r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
848
858
|
x: c,
|
|
849
859
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
@@ -856,13 +866,13 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
856
866
|
"stroke-linecap": "round",
|
|
857
867
|
"stroke-linejoin": "round",
|
|
858
868
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
859
|
-
}, null, 10,
|
|
869
|
+
}, null, 10, hl))), 256))
|
|
860
870
|
])) : y("", !0)
|
|
861
871
|
], 64)) : (r(), o(g, { key: 2 }, [
|
|
862
872
|
(r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
863
|
-
x: v(
|
|
873
|
+
x: v(ze)(c, n.value.left),
|
|
864
874
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
865
|
-
width: v(
|
|
875
|
+
width: v(ze)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
866
876
|
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,
|
|
867
877
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
868
878
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
@@ -871,12 +881,12 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
871
881
|
"stroke-linecap": "round",
|
|
872
882
|
"stroke-linejoin": "round",
|
|
873
883
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
874
|
-
}, null, 10,
|
|
875
|
-
a.$slots.pattern ? (r(), o("g",
|
|
884
|
+
}, null, 10, vl))), 256)),
|
|
885
|
+
a.$slots.pattern ? (r(), o("g", dl, [
|
|
876
886
|
(r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
877
|
-
x: v(
|
|
887
|
+
x: v(ze)(c, n.value.left),
|
|
878
888
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
879
|
-
width: v(
|
|
889
|
+
width: v(ze)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
880
890
|
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,
|
|
881
891
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
882
892
|
fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
|
|
@@ -885,7 +895,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
885
895
|
"stroke-linecap": "round",
|
|
886
896
|
"stroke-linejoin": "round",
|
|
887
897
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
|
|
888
|
-
}, null, 10,
|
|
898
|
+
}, null, 10, yl))), 256))
|
|
889
899
|
])) : y("", !0)
|
|
890
900
|
], 64))
|
|
891
901
|
]))), 256)),
|
|
@@ -899,7 +909,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
899
909
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
900
910
|
"stroke-linecap": "round",
|
|
901
911
|
"stroke-linejoin": "round"
|
|
902
|
-
}, null, 8,
|
|
912
|
+
}, null, 8, gl)) : y("", !0),
|
|
903
913
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
|
|
904
914
|
key: 7,
|
|
905
915
|
x1: n.value.left,
|
|
@@ -910,7 +920,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
910
920
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
911
921
|
"stroke-linecap": "round",
|
|
912
922
|
"stroke-linejoin": "round"
|
|
913
|
-
}, null, 8,
|
|
923
|
+
}, null, 8, bl)) : y("", !0),
|
|
914
924
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
|
|
915
925
|
key: 8,
|
|
916
926
|
ref_key: "xAxisLabel",
|
|
@@ -921,7 +931,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
921
931
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
922
932
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
923
933
|
"text-anchor": "middle"
|
|
924
|
-
}, M(e.value.style.chart.grid.x.axisName.text), 9,
|
|
934
|
+
}, M(e.value.style.chart.grid.x.axisName.text), 9, fl)) : y("", !0),
|
|
925
935
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
|
|
926
936
|
key: 9,
|
|
927
937
|
ref_key: "yAxisLabel",
|
|
@@ -931,51 +941,51 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
931
941
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
932
942
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
933
943
|
"text-anchor": "middle"
|
|
934
|
-
}, M(e.value.style.chart.grid.y.axisName.text), 9,
|
|
944
|
+
}, M(e.value.style.chart.grid.y.axisName.text), 9, ml)) : y("", !0),
|
|
935
945
|
z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
|
|
936
|
-
(r(!0), o(g, null, m(w.value, (t,
|
|
946
|
+
(r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
937
947
|
(r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
|
|
938
|
-
|
|
948
|
+
wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
939
949
|
key: 0,
|
|
940
950
|
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
941
951
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
942
952
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
943
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
953
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
944
954
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
945
955
|
"text-anchor": "middle"
|
|
946
|
-
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t,
|
|
956
|
+
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : be(t.series[u], t, s, u, t.signedSeries[u])), 9, pl)) : y("", !0)
|
|
947
957
|
], 64))), 256))
|
|
948
958
|
]))), 256)),
|
|
949
959
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
950
960
|
key: 0,
|
|
951
961
|
ref_key: "sumTop",
|
|
952
|
-
ref:
|
|
962
|
+
ref: Kt
|
|
953
963
|
}, [
|
|
954
|
-
(r(!0), o(g, null, m(ut.value, (t,
|
|
964
|
+
(r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
|
|
955
965
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
956
966
|
key: 0,
|
|
957
|
-
x: n.value.left + d.value *
|
|
967
|
+
x: n.value.left + d.value * s + d.value / 2,
|
|
958
968
|
y: e.value.style.chart.bars.totalValues.fontSize,
|
|
959
969
|
"text-anchor": "middle",
|
|
960
970
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
961
971
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
962
972
|
fill: e.value.style.chart.bars.totalValues.color
|
|
963
|
-
}, M(
|
|
973
|
+
}, M(be(t.value, t, s, t.sign)), 9, xl)) : y("", !0)
|
|
964
974
|
], 64))), 256))
|
|
965
975
|
], 512)) : y("", !0)
|
|
966
976
|
], 64)) : y("", !0),
|
|
967
977
|
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
|
|
968
|
-
(r(!0), o(g, null, m(w.value, (t,
|
|
978
|
+
(r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
969
979
|
(r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
|
|
970
|
-
|
|
980
|
+
wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
971
981
|
key: 0,
|
|
972
982
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
973
983
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
974
984
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
975
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
985
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
976
986
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
977
987
|
"text-anchor": "middle"
|
|
978
|
-
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t,
|
|
988
|
+
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : be(t.series[u], t, s, u, t.signedSeries[u])), 9, kl)) : y("", !0)
|
|
979
989
|
], 64))), 256))
|
|
980
990
|
]))), 256)),
|
|
981
991
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
@@ -983,16 +993,16 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
983
993
|
ref_key: "sumRight",
|
|
984
994
|
ref: Ze
|
|
985
995
|
}, [
|
|
986
|
-
(r(!0), o(g, null, m(ut.value, (t,
|
|
996
|
+
(r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
|
|
987
997
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
988
998
|
key: 0,
|
|
989
999
|
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
990
|
-
y: n.value.top + d.value *
|
|
1000
|
+
y: n.value.top + d.value * s + d.value / 2,
|
|
991
1001
|
"text-anchor": "start",
|
|
992
1002
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
993
1003
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
994
1004
|
fill: e.value.style.chart.bars.totalValues.color
|
|
995
|
-
}, M(
|
|
1005
|
+
}, M(be(t.value, t, s, t.sign)), 9, wl)) : y("", !0)
|
|
996
1006
|
], 64))), 256))
|
|
997
1007
|
], 512)) : y("", !0)
|
|
998
1008
|
], 64)) : y("", !0),
|
|
@@ -1001,22 +1011,22 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1001
1011
|
ref_key: "scaleLabels",
|
|
1002
1012
|
ref: W
|
|
1003
1013
|
}, [
|
|
1004
|
-
(r(!0), o(g, null, m(I.value, (t,
|
|
1014
|
+
(r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
|
|
1005
1015
|
x1: n.value.left,
|
|
1006
1016
|
x2: n.value.left - 6,
|
|
1007
1017
|
y1: t.y,
|
|
1008
1018
|
y2: t.y,
|
|
1009
1019
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1010
1020
|
"stroke-width": 1
|
|
1011
|
-
}, null, 8,
|
|
1012
|
-
(r(!0), o(g, null, m(I.value, (t,
|
|
1021
|
+
}, null, 8, Ll))), 256)),
|
|
1022
|
+
(r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
|
|
1013
1023
|
x: t.x,
|
|
1014
1024
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1015
1025
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1016
1026
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1017
1027
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1018
1028
|
"text-anchor": "end"
|
|
1019
|
-
}, M(v(
|
|
1029
|
+
}, M(v(Ce)(
|
|
1020
1030
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1021
1031
|
t.value,
|
|
1022
1032
|
v(j)({
|
|
@@ -1026,14 +1036,14 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1026
1036
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1027
1037
|
}),
|
|
1028
1038
|
{ datapoint: t }
|
|
1029
|
-
)), 9,
|
|
1039
|
+
)), 9, zl))), 256))
|
|
1030
1040
|
], 512)) : y("", !0),
|
|
1031
1041
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1032
1042
|
key: 13,
|
|
1033
1043
|
ref_key: "scaleLabels",
|
|
1034
1044
|
ref: W
|
|
1035
1045
|
}, [
|
|
1036
|
-
(r(!0), o(g, null, m(I.value, (t,
|
|
1046
|
+
(r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
|
|
1037
1047
|
x1: t.horizontal_x,
|
|
1038
1048
|
x2: t.horizontal_x,
|
|
1039
1049
|
y1: n.value.bottom,
|
|
@@ -1041,15 +1051,15 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1041
1051
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1042
1052
|
"stroke-width": 1,
|
|
1043
1053
|
"stroke-linecap": "round"
|
|
1044
|
-
}, null, 8,
|
|
1045
|
-
(r(!0), o(g, null, m(I.value, (t,
|
|
1054
|
+
}, null, 8, Cl))), 256)),
|
|
1055
|
+
(r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
|
|
1046
1056
|
class: "vue-data-ui-time-label",
|
|
1047
1057
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1048
1058
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1049
1059
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1050
1060
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1051
1061
|
transform: `translate(${t.horizontal_x}, ${n.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})`
|
|
1052
|
-
}, M(v(
|
|
1062
|
+
}, M(v(Ce)(
|
|
1053
1063
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1054
1064
|
t.value,
|
|
1055
1065
|
v(j)({
|
|
@@ -1059,62 +1069,62 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1059
1069
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1060
1070
|
}),
|
|
1061
1071
|
{ datapoint: t }
|
|
1062
|
-
)), 9,
|
|
1072
|
+
)), 9, _l))), 256))
|
|
1063
1073
|
], 512)) : y("", !0),
|
|
1064
1074
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1065
1075
|
key: 14,
|
|
1066
1076
|
ref_key: "timeLabelsEls",
|
|
1067
1077
|
ref: Y
|
|
1068
1078
|
}, [
|
|
1069
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1070
|
-
(r(!0), o(g, null, m($.value, (t,
|
|
1071
|
-
L(a.$slots, "time-label",
|
|
1072
|
-
x: n.value.left + d.value *
|
|
1079
|
+
a.$slots["time-label"] ? (r(), o("g", Sl, [
|
|
1080
|
+
(r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1081
|
+
L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
|
|
1082
|
+
x: n.value.left + d.value * s + d.value / 2,
|
|
1073
1083
|
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1074
1084
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1075
1085
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1076
|
-
transform: `translate(${n.value.left + d.value *
|
|
1086
|
+
transform: `translate(${n.value.left + d.value * s + d.value / 2}, ${n.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})`,
|
|
1077
1087
|
absoluteIndex: t.absoluteIndex,
|
|
1078
1088
|
content: t.text,
|
|
1079
1089
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1080
1090
|
show: !0
|
|
1081
1091
|
}), void 0, !0)
|
|
1082
1092
|
]))), 256))
|
|
1083
|
-
])) : (r(), o("g",
|
|
1084
|
-
(r(!0), o(g, null, m($.value, (t,
|
|
1093
|
+
])) : (r(), o("g", $l, [
|
|
1094
|
+
(r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1085
1095
|
String(t.text).includes(`
|
|
1086
1096
|
`) ? (r(), o("text", {
|
|
1087
|
-
key:
|
|
1097
|
+
key: s + "-multi",
|
|
1088
1098
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1089
1099
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1090
1100
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1091
1101
|
transform: `
|
|
1092
1102
|
translate(
|
|
1093
|
-
${n.value.left + d.value *
|
|
1103
|
+
${n.value.left + d.value * s + d.value / 2},
|
|
1094
1104
|
${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
1095
1105
|
),
|
|
1096
1106
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1097
1107
|
`,
|
|
1098
1108
|
style: { cursor: "pointer" },
|
|
1099
|
-
innerHTML: v(
|
|
1109
|
+
innerHTML: v(Aa)({
|
|
1100
1110
|
content: String(t.text),
|
|
1101
1111
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1102
1112
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1103
1113
|
x: 0,
|
|
1104
1114
|
y: 0
|
|
1105
1115
|
}),
|
|
1106
|
-
onClick: () =>
|
|
1107
|
-
}, null, 8,
|
|
1116
|
+
onClick: () => pe(t, s)
|
|
1117
|
+
}, null, 8, Ml)) : (r(), o("text", {
|
|
1108
1118
|
class: "vue-data-ui-time-label",
|
|
1109
|
-
key:
|
|
1119
|
+
key: s,
|
|
1110
1120
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1111
1121
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1112
1122
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
1113
1123
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1114
|
-
transform: `translate(${n.value.left + d.value *
|
|
1124
|
+
transform: `translate(${n.value.left + d.value * s + d.value / 2}, ${n.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})`,
|
|
1115
1125
|
style: { cursor: "pointer" },
|
|
1116
|
-
onClick: () =>
|
|
1117
|
-
}, M(t.text), 9,
|
|
1126
|
+
onClick: () => pe(t, s)
|
|
1127
|
+
}, M(t.text), 9, Tl))
|
|
1118
1128
|
]))), 256))
|
|
1119
1129
|
]))
|
|
1120
1130
|
], 512)) : y("", !0),
|
|
@@ -1123,11 +1133,11 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1123
1133
|
ref_key: "timeLabelsEls",
|
|
1124
1134
|
ref: Y
|
|
1125
1135
|
}, [
|
|
1126
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1127
|
-
(r(!0), o(g, null, m($.value, (t,
|
|
1128
|
-
L(a.$slots, "time-label",
|
|
1136
|
+
a.$slots["time-label"] ? (r(), o("g", Al, [
|
|
1137
|
+
(r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1138
|
+
L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
|
|
1129
1139
|
x: n.value.left - 8,
|
|
1130
|
-
y: n.value.top + d.value *
|
|
1140
|
+
y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1131
1141
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1132
1142
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1133
1143
|
transform: null,
|
|
@@ -1137,8 +1147,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1137
1147
|
show: !0
|
|
1138
1148
|
}), void 0, !0)
|
|
1139
1149
|
]))), 256))
|
|
1140
|
-
])) : (r(), o("g",
|
|
1141
|
-
(r(!0), o(g, null, m($.value, (t,
|
|
1150
|
+
])) : (r(), o("g", Nl, [
|
|
1151
|
+
(r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1142
1152
|
String(t.text).includes(`
|
|
1143
1153
|
`) ? (r(), o("text", {
|
|
1144
1154
|
key: 1,
|
|
@@ -1147,61 +1157,57 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1147
1157
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1148
1158
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1149
1159
|
x: n.value.left - 8,
|
|
1150
|
-
y: n.value.top + d.value *
|
|
1160
|
+
y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1151
1161
|
style: { cursor: "pointer" },
|
|
1152
|
-
onClick: () =>
|
|
1153
|
-
innerHTML: v(
|
|
1162
|
+
onClick: () => pe(t, s),
|
|
1163
|
+
innerHTML: v(Na)({
|
|
1154
1164
|
content: String(t.text),
|
|
1155
1165
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1156
1166
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1157
1167
|
x: n.value.left - 8,
|
|
1158
1168
|
y: 0
|
|
1159
1169
|
})
|
|
1160
|
-
}, null, 8,
|
|
1170
|
+
}, null, 8, Rl)) : (r(), o("text", {
|
|
1161
1171
|
key: 0,
|
|
1162
1172
|
"text-anchor": "end",
|
|
1163
1173
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1164
1174
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1165
1175
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1166
1176
|
x: n.value.left - 8,
|
|
1167
|
-
y: n.value.top + d.value *
|
|
1177
|
+
y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1168
1178
|
style: {
|
|
1169
1179
|
cursor: "pointer"
|
|
1170
1180
|
},
|
|
1171
|
-
onClick: () =>
|
|
1172
|
-
}, M(t.text), 9,
|
|
1181
|
+
onClick: () => pe(t, s)
|
|
1182
|
+
}, M(t.text), 9, Il))
|
|
1173
1183
|
]))), 256))
|
|
1174
1184
|
]))
|
|
1175
1185
|
], 512)) : y("", !0),
|
|
1176
|
-
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t,
|
|
1177
|
-
x: n.value.left +
|
|
1186
|
+
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1187
|
+
x: n.value.left + s * d.value,
|
|
1178
1188
|
y: n.value.top,
|
|
1179
1189
|
width: d.value,
|
|
1180
1190
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1181
|
-
onClick: (
|
|
1182
|
-
onMouseenter: (
|
|
1183
|
-
onMouseleave:
|
|
1184
|
-
|
|
1185
|
-
}),
|
|
1186
|
-
fill: l === re.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1191
|
+
onClick: () => ht(s),
|
|
1192
|
+
onMouseenter: () => yt(s),
|
|
1193
|
+
onMouseleave: () => dt(s),
|
|
1194
|
+
fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1187
1195
|
style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1188
|
-
}, null, 44,
|
|
1189
|
-
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t,
|
|
1196
|
+
}, null, 44, Ol))), 256)) : y("", !0),
|
|
1197
|
+
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1190
1198
|
x: n.value.left,
|
|
1191
|
-
y: n.value.top +
|
|
1199
|
+
y: n.value.top + s * d.value,
|
|
1192
1200
|
width: n.value.width < 0 ? 0 : n.value.width,
|
|
1193
1201
|
height: d.value,
|
|
1194
|
-
onClick: (
|
|
1195
|
-
onMouseenter: (
|
|
1196
|
-
onMouseleave:
|
|
1197
|
-
|
|
1198
|
-
}),
|
|
1199
|
-
fill: l === re.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1202
|
+
onClick: () => ht(s),
|
|
1203
|
+
onMouseenter: () => yt(s),
|
|
1204
|
+
onMouseleave: () => dt(s),
|
|
1205
|
+
fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1200
1206
|
style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1201
|
-
}, null, 44,
|
|
1207
|
+
}, null, 44, Pl))), 256)) : y("", !0),
|
|
1202
1208
|
L(a.$slots, "svg", H(U({ ...n.value })), void 0, !0)
|
|
1203
|
-
], 14,
|
|
1204
|
-
a.$slots.watermark ? (r(), o("div",
|
|
1209
|
+
], 14, Ka)),
|
|
1210
|
+
a.$slots.watermark ? (r(), o("div", Vl, [
|
|
1205
1211
|
L(a.$slots, "watermark", H(U({ isPrinting: v(at) || v(lt) })), void 0, !0)
|
|
1206
1212
|
])) : y("", !0),
|
|
1207
1213
|
Q("div", {
|
|
@@ -1210,7 +1216,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1210
1216
|
style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1211
1217
|
"data-dom-to-png-ignore": ""
|
|
1212
1218
|
}, [
|
|
1213
|
-
e.value.style.chart.zoom.show &&
|
|
1219
|
+
e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ua, {
|
|
1214
1220
|
ref_key: "slicerComponent",
|
|
1215
1221
|
ref: qe,
|
|
1216
1222
|
key: `slicer_${Ge.value}`,
|
|
@@ -1228,9 +1234,9 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1228
1234
|
valueStart: h.value.start,
|
|
1229
1235
|
valueEnd: h.value.end,
|
|
1230
1236
|
start: h.value.start,
|
|
1231
|
-
"onUpdate:start":
|
|
1237
|
+
"onUpdate:start": l[0] || (l[0] = (t) => h.value.start = t),
|
|
1232
1238
|
end: h.value.end,
|
|
1233
|
-
"onUpdate:end":
|
|
1239
|
+
"onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
|
|
1234
1240
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1235
1241
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(..._e.dataset.map((t) => t.series.length)),
|
|
1236
1242
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
@@ -1243,8 +1249,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1243
1249
|
_: 3
|
|
1244
1250
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
|
|
1245
1251
|
], 4),
|
|
1246
|
-
|
|
1247
|
-
show: z.value.showTooltip &&
|
|
1252
|
+
ke(v(Yt), {
|
|
1253
|
+
show: z.value.showTooltip && $e.value,
|
|
1248
1254
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1249
1255
|
color: e.value.style.chart.tooltip.color,
|
|
1250
1256
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1256,8 +1262,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1256
1262
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1257
1263
|
parent: P.value,
|
|
1258
1264
|
content: Me.value,
|
|
1259
|
-
isFullscreen:
|
|
1260
|
-
isCustom: v(
|
|
1265
|
+
isFullscreen: ne.value,
|
|
1266
|
+
isCustom: v(Vt)(e.value.style.chart.tooltip.customFormat),
|
|
1261
1267
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1262
1268
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1263
1269
|
}, {
|
|
@@ -1273,36 +1279,36 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1273
1279
|
ref_key: "chartLegend",
|
|
1274
1280
|
ref: We
|
|
1275
1281
|
}, [
|
|
1276
|
-
e.value.style.chart.legend.show &&
|
|
1282
|
+
e.value.style.chart.legend.show && ie.value ? (r(), K(Ha, {
|
|
1277
1283
|
key: 0,
|
|
1278
|
-
legendSet:
|
|
1279
|
-
config:
|
|
1280
|
-
onClickMarker:
|
|
1281
|
-
},
|
|
1284
|
+
legendSet: kt.value,
|
|
1285
|
+
config: na.value,
|
|
1286
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1287
|
+
}, Mt({
|
|
1282
1288
|
item: C(({ legend: t }) => [
|
|
1283
1289
|
Q("div", {
|
|
1284
|
-
onClick: (
|
|
1285
|
-
style: Z(`opacity:${
|
|
1286
|
-
}, M(t.name), 13,
|
|
1290
|
+
onClick: (s) => t.segregate(),
|
|
1291
|
+
style: Z(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1292
|
+
}, M(t.name), 13, El)
|
|
1287
1293
|
]),
|
|
1288
1294
|
_: 2
|
|
1289
1295
|
}, [
|
|
1290
1296
|
a.$slots.pattern ? {
|
|
1291
1297
|
name: "legend-pattern",
|
|
1292
|
-
fn: C(({ legend: t, index:
|
|
1293
|
-
|
|
1298
|
+
fn: C(({ legend: t, index: s }) => [
|
|
1299
|
+
ke(Wa, {
|
|
1294
1300
|
shape: t.shape,
|
|
1295
1301
|
radius: 30,
|
|
1296
1302
|
stroke: "none",
|
|
1297
1303
|
plot: { x: 30, y: 30 },
|
|
1298
|
-
fill: `url(#pattern_${V.value}_${
|
|
1304
|
+
fill: `url(#pattern_${V.value}_${s})`
|
|
1299
1305
|
}, null, 8, ["shape", "fill"])
|
|
1300
1306
|
]),
|
|
1301
1307
|
key: "0"
|
|
1302
1308
|
} : void 0
|
|
1303
1309
|
]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
|
|
1304
1310
|
key: 1,
|
|
1305
|
-
legend:
|
|
1311
|
+
legend: kt.value
|
|
1306
1312
|
}, void 0, !0)
|
|
1307
1313
|
], 512),
|
|
1308
1314
|
a.$slots.source ? (r(), o("div", {
|
|
@@ -1313,7 +1319,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1313
1319
|
}, [
|
|
1314
1320
|
L(a.$slots, "source", {}, void 0, !0)
|
|
1315
1321
|
], 512)) : y("", !0),
|
|
1316
|
-
h.value.end - h.value.start < 200 ? (r(), K(v(
|
|
1322
|
+
h.value.end - h.value.start < 200 ? (r(), K(v(Ht), {
|
|
1317
1323
|
key: 5,
|
|
1318
1324
|
hideDetails: "",
|
|
1319
1325
|
config: {
|
|
@@ -1330,19 +1336,19 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1330
1336
|
}
|
|
1331
1337
|
}, {
|
|
1332
1338
|
content: C(() => [
|
|
1333
|
-
|
|
1334
|
-
colNames:
|
|
1335
|
-
head:
|
|
1336
|
-
body:
|
|
1337
|
-
config:
|
|
1339
|
+
ke(v(Ut), {
|
|
1340
|
+
colNames: fe.value.colNames,
|
|
1341
|
+
head: fe.value.head,
|
|
1342
|
+
body: fe.value.body,
|
|
1343
|
+
config: fe.value.config,
|
|
1338
1344
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1339
|
-
onClose:
|
|
1345
|
+
onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
|
|
1340
1346
|
}, {
|
|
1341
1347
|
th: C(({ th: t }) => [
|
|
1342
|
-
Q("div", { innerHTML: t }, null, 8,
|
|
1348
|
+
Q("div", { innerHTML: t }, null, 8, Dl)
|
|
1343
1349
|
]),
|
|
1344
1350
|
td: C(({ td: t }) => [
|
|
1345
|
-
|
|
1351
|
+
ka(M(isNaN(Number(t)) ? t : v(j)({
|
|
1346
1352
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1347
1353
|
v: t,
|
|
1348
1354
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1354,10 +1360,10 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
|
|
|
1354
1360
|
]),
|
|
1355
1361
|
_: 1
|
|
1356
1362
|
}, 8, ["config"])) : y("", !0),
|
|
1357
|
-
v(
|
|
1358
|
-
], 46,
|
|
1363
|
+
v(ce) ? (r(), K(Ja, { key: 6 })) : y("", !0)
|
|
1364
|
+
], 46, Za));
|
|
1359
1365
|
}
|
|
1360
|
-
},
|
|
1366
|
+
}, ls = /* @__PURE__ */ qa(Fl, [["__scopeId", "data-v-e430a869"]]);
|
|
1361
1367
|
export {
|
|
1362
|
-
|
|
1368
|
+
ls as default
|
|
1363
1369
|
};
|