vue-data-ui 3.0.2 → 3.0.4
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-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
- package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
- package/package.json +1 -1
- package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as He, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import { S as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { defineAsyncComponent as ae, useSlots as xa, computed as x, ref as g, onMounted as Ct, toRefs as ka, watch as De, shallowRef as St, onBeforeUnmount as $t, watchEffect as Tt, nextTick as Mt, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Q, normalizeClass as le, createBlock as H, createCommentVNode as d, renderSlot as L, createElementVNode as U, createVNode as xe, createSlots as At, withCtx as _, normalizeProps as B, guardReactiveProps as W, Fragment as b, renderList as m, mergeProps as Fe, toDisplayString as A, Teleport as wa, createTextVNode as La } from "vue";
|
|
2
|
+
import { u as za, c as Nt, t as _a, a as Ca, p as ke, b as Sa, C as se, d as $a, o as It, f as Rt, g as Ta, e as Ma, an as we, ac as Ot, D as Pt, X as Aa, l as Na, a9 as Le, F as Vt, k as ze, i as j, I as Ia, a0 as Ra, y as Et, v as Oa, w as Pa, z as Va } from "./index-q-LPw2IT.js";
|
|
3
|
+
import { t as He, u as Ea } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Da } from "./usePrinter-DX7efa1s.js";
|
|
5
|
+
import { u as Fa, B as Ha } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as Dt } from "./useNestedProp-04aFeUYu.js";
|
|
7
|
+
import { u as Ua } from "./useTimeLabels-DkzmKfZn.js";
|
|
8
|
+
import { u as Ba } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Wa } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Ya } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import Xa from "./img-Ctts6JQb.js";
|
|
12
|
+
import Ga from "./Title-B55R8CAZ.js";
|
|
13
|
+
import { _ as Ja } from "./Shape-DHIaJs9G.js";
|
|
14
|
+
import qa from "./Legend-DcDSkq99.js";
|
|
15
|
+
import { S as Za } from "./Slicer-BarTZZDU.js";
|
|
16
|
+
import { _ as Ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height"], al = { key: 1 }, ll = ["id"], sl = ["stop-color"], rl = ["stop-color"], ol = ["stop-color"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], hl = { key: 0 }, vl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], dl = { key: 0 }, yl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], gl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], bl = { key: 0 }, fl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xl = ["x", "y", "font-size", "fill", "font-weight"], kl = ["transform", "font-size", "fill", "font-weight"], wl = ["x", "y", "font-size", "fill", "font-weight"], Ll = ["x", "y", "font-size", "font-weight", "fill"], zl = ["x", "y", "font-size", "fill", "font-weight"], _l = ["x", "y", "font-size", "font-weight", "fill"], Cl = ["x1", "x2", "y1", "y2", "stroke"], Sl = ["x", "y", "font-size", "font-weight", "fill"], $l = ["x1", "x2", "y1", "y2", "stroke"], Tl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ml = { key: 0 }, Al = { key: 1 }, Nl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Il = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Rl = { key: 0 }, Ol = { key: 1 }, Pl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Vl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], El = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Dl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Fl = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Hl = ["id"], Ul = ["onClick"], Bl = ["innerHTML"], Wl = {
|
|
21
21
|
__name: "vue-ui-stackbar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,20 +34,20 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
37
|
+
setup(_e, { expose: Ft, emit: Ht }) {
|
|
38
|
+
const Ut = ae(() => import("./Tooltip-BMOddG-M.js")), Bt = ae(() => import("./vue-ui-accordion-D46i_gkB.js")), Wt = ae(() => import("./DataTable-rj9-mAwF.js")), Yt = ae(() => import("./PenAndPaper-BJ0hcgsa.js")), Xt = ae(() => import("./UserOptions-DVzyjG-W.js")), Gt = ae(() => import("./PackageVersion-5ZjKSIei.js")), { vue_ui_stackbar: Jt } = za(), qt = xa(), f = _e, Ce = Ht, Se = 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
|
-
}),
|
|
45
|
+
}), V = g(null), T = g(Nt()), $e = g(!1), Te = g(null), Me = g(""), S = g([]), Ue = g(0), Be = g(null), We = g(null), Ye = g(null), Xe = g(null), Ge = g(0), ne = g(!1), ue = g(null), Y = g(!1), Je = g(0), Zt = g(0), Kt = g(0), qe = g(null), Ze = g(!1), Ae = g(null), Ne = g(null), X = g(null), G = g(null), Qt = g(null), Ke = g(null);
|
|
46
46
|
Ct(() => {
|
|
47
|
-
Pe();
|
|
47
|
+
Ze.value = !0, Pe();
|
|
48
48
|
});
|
|
49
|
-
const e =
|
|
50
|
-
...
|
|
49
|
+
const e = g(Re()), { loading: re, FINAL_DATASET: ce, manualLoading: he } = Fa({
|
|
50
|
+
...ka(f),
|
|
51
51
|
FINAL_CONFIG: e,
|
|
52
52
|
prepareConfig: Re,
|
|
53
53
|
callback: () => {
|
|
@@ -67,7 +67,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
67
67
|
color: "#CACACA"
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
|
-
skeletonConfig:
|
|
70
|
+
skeletonConfig: _a({
|
|
71
71
|
defaultConfig: e.value,
|
|
72
72
|
userConfig: {
|
|
73
73
|
userOptions: { show: !1 },
|
|
@@ -116,28 +116,28 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
119
|
-
}), { userOptionsVisible: Ie, setUserOptionsVisibility:
|
|
119
|
+
}), { userOptionsVisible: Ie, setUserOptionsVisibility: Qe, keepUserOptionState: je } = Ba({ config: e.value }), { svgRef: et } = Wa({ config: e.value.style.chart.title });
|
|
120
120
|
function Re() {
|
|
121
|
-
const a =
|
|
121
|
+
const a = Dt({
|
|
122
122
|
userConfig: f.config,
|
|
123
|
-
defaultConfig:
|
|
123
|
+
defaultConfig: Jt
|
|
124
124
|
});
|
|
125
125
|
let l = {};
|
|
126
126
|
return a.theme ? l = {
|
|
127
|
-
...
|
|
128
|
-
userConfig:
|
|
127
|
+
...Dt({
|
|
128
|
+
userConfig: Sa.vue_ui_stackbar[a.theme] || f.config,
|
|
129
129
|
defaultConfig: a
|
|
130
130
|
}),
|
|
131
|
-
customPalette:
|
|
131
|
+
customPalette: Ca[a.theme] || ke
|
|
132
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
|
-
const
|
|
134
|
+
const tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), at = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
135
135
|
De(() => f.config, (a) => {
|
|
136
|
-
re.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1,
|
|
136
|
+
re.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, Zt.value += 1, Kt.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
137
|
}, { deep: !0 }), De(() => f.dataset, (a) => {
|
|
138
|
-
Array.isArray(a) && a.length > 0 && (he.value = !1),
|
|
138
|
+
Array.isArray(a) && a.length > 0 && (he.value = !1), ut();
|
|
139
139
|
}, { deep: !0 });
|
|
140
|
-
const z =
|
|
140
|
+
const z = g({
|
|
141
141
|
dataLabels: {
|
|
142
142
|
show: e.value.style.chart.bars.dataLabels.show
|
|
143
143
|
},
|
|
@@ -153,11 +153,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
153
153
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
154
|
};
|
|
155
155
|
}, { immediate: !0 });
|
|
156
|
-
const { isPrinting:
|
|
157
|
-
elementId: `stackbar_${
|
|
156
|
+
const { isPrinting: lt, isImaging: st, generatePdf: rt, generateImage: ot } = Da({
|
|
157
|
+
elementId: `stackbar_${T.value}`,
|
|
158
158
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
159
159
|
options: e.value.userOptions.print
|
|
160
|
-
}),
|
|
160
|
+
}), ee = g({
|
|
161
161
|
width: e.value.style.chart.width,
|
|
162
162
|
height: e.value.style.chart.height,
|
|
163
163
|
paddingRatio: {
|
|
@@ -166,22 +166,22 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["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
|
-
}),
|
|
169
|
+
}), jt = x(() => $a(e.value.customPalette)), E = St(null), te = St(null), it = g(null);
|
|
170
170
|
Ct(() => {
|
|
171
171
|
Pe();
|
|
172
172
|
});
|
|
173
173
|
const Oe = x(() => !!e.value.debug);
|
|
174
174
|
function Pe() {
|
|
175
|
-
if (
|
|
175
|
+
if (It(f.dataset) ? (Rt({
|
|
176
176
|
componentName: "VueUiStackbar",
|
|
177
177
|
type: "dataset",
|
|
178
178
|
debug: Oe.value
|
|
179
179
|
}), he.value = !0) : f.dataset.forEach((a, l) => {
|
|
180
|
-
|
|
180
|
+
Ta({
|
|
181
181
|
datasetObject: a,
|
|
182
182
|
requiredAttributes: ["name", "series"]
|
|
183
183
|
}).forEach((t) => {
|
|
184
|
-
Se.value = !1,
|
|
184
|
+
Se.value = !1, Rt({
|
|
185
185
|
componentName: "VueUiStackbar",
|
|
186
186
|
type: "datasetSerieAttribute",
|
|
187
187
|
property: t,
|
|
@@ -189,90 +189,90 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
189
189
|
debug: Oe.value
|
|
190
190
|
}), he.value = !0;
|
|
191
191
|
});
|
|
192
|
-
}),
|
|
193
|
-
|
|
192
|
+
}), It(f.dataset) || (he.value = e.value.loading), setTimeout(() => {
|
|
193
|
+
Y.value = !0;
|
|
194
194
|
}, 10), e.value.responsive) {
|
|
195
195
|
const a = He(() => {
|
|
196
|
-
|
|
197
|
-
const { width: l, height: t } =
|
|
198
|
-
chart:
|
|
196
|
+
Y.value = !1;
|
|
197
|
+
const { width: l, height: t } = Ea({
|
|
198
|
+
chart: V.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
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
|
-
|
|
206
|
-
|
|
205
|
+
ee.value.width = l, ee.value.height = t - 12, clearTimeout(it.value), it.value = setTimeout(() => {
|
|
206
|
+
Y.value = !0;
|
|
207
207
|
}, 10);
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
|
-
E.value && (
|
|
210
|
+
E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect()), E.value = new ResizeObserver(a), te.value = V.value.parentNode, E.value.observe(te.value);
|
|
211
211
|
}
|
|
212
212
|
Ve();
|
|
213
213
|
}
|
|
214
|
-
|
|
215
|
-
E.value && (
|
|
214
|
+
$t(() => {
|
|
215
|
+
E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect());
|
|
216
216
|
});
|
|
217
|
-
function
|
|
217
|
+
function ea() {
|
|
218
218
|
let a = 0;
|
|
219
|
-
e.value.orientation === "vertical" &&
|
|
219
|
+
e.value.orientation === "vertical" && X.value && (a = Array.from(X.value.querySelectorAll("text")).reduce((s, c) => {
|
|
220
220
|
const u = c.getComputedTextLength();
|
|
221
221
|
return u > s ? u : s;
|
|
222
|
-
}, 0)), e.value.orientation === "horizontal" &&
|
|
222
|
+
}, 0)), e.value.orientation === "horizontal" && G.value && (a = Array.from(G.value.querySelectorAll("text")).reduce((s, c) => {
|
|
223
223
|
const u = c.getComputedTextLength();
|
|
224
224
|
return u > s ? u : s;
|
|
225
225
|
}, 0));
|
|
226
226
|
const l = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
|
|
227
227
|
return a + l + (l ? 24 : 0);
|
|
228
228
|
}
|
|
229
|
-
const ve =
|
|
229
|
+
const ve = g(0), de = g(0), ta = He((a) => {
|
|
230
230
|
ve.value = a;
|
|
231
231
|
}, 100);
|
|
232
|
-
|
|
233
|
-
const l = e.value.orientation === "vertical" ?
|
|
232
|
+
Tt((a) => {
|
|
233
|
+
const l = e.value.orientation === "vertical" ? G.value : X.value;
|
|
234
234
|
if (!l) return;
|
|
235
235
|
const t = new ResizeObserver((s) => {
|
|
236
|
-
|
|
236
|
+
ta(s[0].contentRect.height);
|
|
237
237
|
});
|
|
238
238
|
t.observe(l), a(() => t.disconnect());
|
|
239
239
|
});
|
|
240
|
-
const
|
|
240
|
+
const aa = He((a) => {
|
|
241
241
|
de.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
242
242
|
}, 100);
|
|
243
|
-
|
|
243
|
+
Tt((a) => {
|
|
244
244
|
if (e.value.orientation === "vertical") return;
|
|
245
|
-
const l =
|
|
245
|
+
const l = Ke.value;
|
|
246
246
|
if (!l) return;
|
|
247
247
|
const t = new ResizeObserver((s) => {
|
|
248
|
-
|
|
248
|
+
aa(s[0].contentRect.width);
|
|
249
249
|
});
|
|
250
250
|
t.observe(l), a(() => t.disconnect());
|
|
251
|
-
}),
|
|
251
|
+
}), $t(() => {
|
|
252
252
|
ve.value = 0, de.value = 0;
|
|
253
253
|
});
|
|
254
|
-
const
|
|
254
|
+
const nt = x(() => {
|
|
255
255
|
let a = 0;
|
|
256
256
|
Ae.value && (a = Ae.value.getBBox().height);
|
|
257
257
|
let l = 0;
|
|
258
|
-
return e.value.orientation === "vertical" &&
|
|
258
|
+
return e.value.orientation === "vertical" && G.value && (l = ve.value), e.value.orientation === "horizontal" && X.value && (l = ve.value), a + l;
|
|
259
259
|
}), n = x(() => {
|
|
260
|
-
const { height: a, width: l } =
|
|
260
|
+
const { height: a, width: l } = ee.value, { right: t } = ee.value.paddingRatio;
|
|
261
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 =
|
|
263
|
-
const u = e.value.style.chart.padding.top + s,
|
|
262
|
+
e.value.style.chart.grid.y.axisLabels.show && (c = ea());
|
|
263
|
+
const u = e.value.style.chart.padding.top + s, C = l - l * t - de.value, J = a - e.value.style.chart.padding.bottom - nt.value - s, q = e.value.style.chart.padding.left + c, Z = l - q - l * t - de.value, O = a - u - e.value.style.chart.padding.bottom - nt.value - s;
|
|
264
264
|
return {
|
|
265
265
|
chartHeight: a,
|
|
266
266
|
chartWidth: l,
|
|
267
267
|
top: u,
|
|
268
|
-
right:
|
|
269
|
-
bottom:
|
|
270
|
-
left:
|
|
271
|
-
width: Math.max(0,
|
|
272
|
-
height: Math.max(0,
|
|
268
|
+
right: C,
|
|
269
|
+
bottom: J,
|
|
270
|
+
left: q,
|
|
271
|
+
width: Math.max(0, Z),
|
|
272
|
+
height: Math.max(0, O)
|
|
273
273
|
};
|
|
274
274
|
}), D = x(() => ce.value.map((a, l) => {
|
|
275
|
-
const t =
|
|
275
|
+
const t = Ma(a.color) || jt.value[l] || ke[l] || ke[l % ke.length];
|
|
276
276
|
return {
|
|
277
277
|
...a,
|
|
278
278
|
// In distributed mode, all values are converted to positive
|
|
@@ -280,29 +280,29 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
280
280
|
// Store signs to manage display of neg values in distributed mode
|
|
281
281
|
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
282
282
|
absoluteIndex: l,
|
|
283
|
-
id:
|
|
283
|
+
id: Nt(),
|
|
284
284
|
color: t
|
|
285
285
|
};
|
|
286
|
-
})), F = x(() => Math.max(...D.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h =
|
|
286
|
+
})), F = x(() => Math.max(...D.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = g({
|
|
287
287
|
start: 0,
|
|
288
288
|
end: Math.max(...ce.value.map((a) => a.series.length))
|
|
289
289
|
});
|
|
290
|
-
function
|
|
290
|
+
function ut() {
|
|
291
291
|
Ve();
|
|
292
292
|
}
|
|
293
293
|
async function Ve() {
|
|
294
|
-
await
|
|
294
|
+
await Mt(), await Mt();
|
|
295
295
|
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = qe.value, s = Math.max(...ce.value.map((c) => c.series.length));
|
|
296
|
-
(a != null || l != null) && t ? (a != null && t.setStartValue(a), l != null && t.setEndValue(
|
|
296
|
+
(a != null || l != null) && t ? (a != null && t.setStartValue(a), l != null && t.setEndValue(la(l + 1))) : (h.value = { start: 0, end: s }, Ge.value += 1);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function la(a) {
|
|
299
299
|
const l = Math.max(...ce.value.map((t) => t.series.length));
|
|
300
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
|
-
const
|
|
302
|
+
const y = 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
|
-
}), oe = x(() => we(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)),
|
|
305
|
+
}), oe = x(() => we(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), sa = x(() => we(D.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
306
306
|
...a,
|
|
307
307
|
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
308
308
|
}))).slice(h.value.start, h.value.end)), ye = x(() => {
|
|
@@ -317,8 +317,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
317
317
|
series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
318
318
|
})))
|
|
319
319
|
};
|
|
320
|
-
}),
|
|
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(...ye.value.positive), l = Math.min(...ye.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) ?
|
|
320
|
+
}), R = 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(...ye.value.positive), l = Math.min(...ye.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) ? Ot(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Pt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
322
322
|
return s.ticks.map((c) => ({
|
|
323
323
|
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
324
324
|
y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
@@ -328,7 +328,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
328
328
|
horizontal_y: n.value.bottom - 8,
|
|
329
329
|
value: c
|
|
330
330
|
}));
|
|
331
|
-
}), $ = x(() =>
|
|
331
|
+
}), $ = x(() => Ua({
|
|
332
332
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
333
333
|
maxDatapoints: F.value,
|
|
334
334
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
@@ -337,37 +337,37 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
337
337
|
})), w = x(() => {
|
|
338
338
|
if (!Se.value && !re.value) return [];
|
|
339
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(...ye.value.positive) || 0, u = Math.min(...ye.value.negative),
|
|
340
|
+
const c = Math.max(...ye.value.positive) || 0, u = Math.min(...ye.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, J = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ot(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, 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) : Pt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, 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: q, max: Z } = J, O = Z + (q >= 0 ? 0 : Math.abs(q)) || 1, M = n.value.height, pe = n.value.width, zt = R.value[0] ? R.value[0].zero : n.value.bottom, _t = R.value[0] ? R.value[0].horizontal_zero : n.value.left;
|
|
341
341
|
return D.value.filter((ie) => !S.value.includes(ie.id)).map((ie) => {
|
|
342
|
-
const
|
|
343
|
-
const
|
|
344
|
-
let
|
|
345
|
-
return p > 0 ? (
|
|
346
|
-
}),
|
|
347
|
-
const
|
|
348
|
-
let
|
|
349
|
-
return p > 0 ? (
|
|
350
|
-
}),
|
|
351
|
-
const
|
|
352
|
-
return p > 0 ?
|
|
353
|
-
}),
|
|
354
|
-
const
|
|
355
|
-
return p > 0 ? pe *
|
|
356
|
-
}),
|
|
342
|
+
const P = ie.series.slice(h.value.start, h.value.end), va = ie.signedSeries.slice(h.value.start, h.value.end), da = P.map((p, k) => n.value.left + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), ya = P.map((p, k) => n.value.top + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), ga = P.map((p, k) => {
|
|
343
|
+
const N = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / O;
|
|
344
|
+
let K, I;
|
|
345
|
+
return p > 0 ? (I = M * N, K = zt - I - a[k], a[k] += I) : (I = M * N, K = zt + t[k], t[k] += Math.abs(I)), K;
|
|
346
|
+
}), ba = P.map((p, k) => {
|
|
347
|
+
const N = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / O;
|
|
348
|
+
let K, I;
|
|
349
|
+
return p > 0 ? (I = pe * N, K = _t + l[k], l[k] += I) : (I = pe * N, K = _t - Math.abs(I) - s[k], s[k] += Math.abs(I)), K;
|
|
350
|
+
}), fa = P.map((p, k) => {
|
|
351
|
+
const N = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / O;
|
|
352
|
+
return p > 0 ? M * N : M * Math.abs(N);
|
|
353
|
+
}), ma = P.map((p, k) => {
|
|
354
|
+
const N = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / O;
|
|
355
|
+
return p > 0 ? pe * N : pe * Math.abs(N);
|
|
356
|
+
}), pa = P.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
|
|
357
357
|
return {
|
|
358
358
|
...ie,
|
|
359
|
-
proportions:
|
|
360
|
-
series:
|
|
361
|
-
signedSeries:
|
|
362
|
-
x:
|
|
363
|
-
y:
|
|
364
|
-
height:
|
|
365
|
-
horizontal_width:
|
|
366
|
-
horizontal_y:
|
|
367
|
-
horizontal_x:
|
|
359
|
+
proportions: P.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / pa),
|
|
360
|
+
series: P,
|
|
361
|
+
signedSeries: va,
|
|
362
|
+
x: da,
|
|
363
|
+
y: ga,
|
|
364
|
+
height: fa,
|
|
365
|
+
horizontal_width: ma,
|
|
366
|
+
horizontal_y: ya,
|
|
367
|
+
horizontal_x: ba
|
|
368
368
|
};
|
|
369
369
|
});
|
|
370
|
-
}),
|
|
370
|
+
}), ct = x(() => sa.value.map((a, l) => ({
|
|
371
371
|
value: a,
|
|
372
372
|
sign: a >= 0 ? 1 : -1
|
|
373
373
|
})));
|
|
@@ -376,7 +376,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
376
376
|
return ze(
|
|
377
377
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
378
378
|
u,
|
|
379
|
-
|
|
379
|
+
j({
|
|
380
380
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
381
381
|
v: u,
|
|
382
382
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -385,11 +385,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
385
385
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function ht(a, l, t, s) {
|
|
389
389
|
return ze(
|
|
390
390
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
391
391
|
a,
|
|
392
|
-
|
|
392
|
+
j({
|
|
393
393
|
v: isNaN(a) ? 0 : a,
|
|
394
394
|
s: "%",
|
|
395
395
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
@@ -397,7 +397,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
397
397
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function vt(a) {
|
|
401
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,
|
|
@@ -405,9 +405,9 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
405
405
|
color: t.color,
|
|
406
406
|
id: t.id
|
|
407
407
|
}));
|
|
408
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }),
|
|
408
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), Ce("selectDatapoint", { datapoint: l, period: $.value[a] });
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function dt(a) {
|
|
411
411
|
return JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
412
412
|
name: l.name,
|
|
413
413
|
absoluteIndex: l.absoluteIndex,
|
|
@@ -417,16 +417,16 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
417
417
|
id: l.id
|
|
418
418
|
}));
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function yt(a) {
|
|
421
421
|
if (e.value.events.datapointLeave) {
|
|
422
|
-
const l =
|
|
422
|
+
const l = dt(a);
|
|
423
423
|
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
|
|
424
424
|
}
|
|
425
425
|
$e.value = null, ue.value = null;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function gt(a) {
|
|
428
428
|
ue.value = a, $e.value = !0;
|
|
429
|
-
const l = e.value.style.chart.tooltip.customFormat, t =
|
|
429
|
+
const l = e.value.style.chart.tooltip.customFormat, t = dt(a);
|
|
430
430
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Te.value = {
|
|
431
431
|
datapoint: t,
|
|
432
432
|
seriesIndex: a,
|
|
@@ -434,7 +434,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
434
434
|
series: w.value
|
|
435
435
|
};
|
|
436
436
|
const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
437
|
-
if (
|
|
437
|
+
if (Et(l) && Va(() => l({
|
|
438
438
|
seriesIndex: a,
|
|
439
439
|
datapoint: t,
|
|
440
440
|
series: w.value,
|
|
@@ -450,65 +450,65 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
450
450
|
const {
|
|
451
451
|
showValue: c,
|
|
452
452
|
showPercentage: u,
|
|
453
|
-
borderColor:
|
|
454
|
-
roundingValue:
|
|
455
|
-
roundingPercentage:
|
|
453
|
+
borderColor: C,
|
|
454
|
+
roundingValue: J,
|
|
455
|
+
roundingPercentage: q
|
|
456
456
|
} = e.value.style.chart.tooltip;
|
|
457
|
-
let
|
|
458
|
-
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (
|
|
459
|
-
const
|
|
457
|
+
let Z = "";
|
|
458
|
+
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Z += `<div style="width:100%;text-align:center;border-bottom:1px solid ${C};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
459
|
+
const O = [
|
|
460
460
|
c && u ? "(" : "",
|
|
461
461
|
c && u ? ")" : ""
|
|
462
462
|
];
|
|
463
|
-
t.reverse().forEach((
|
|
464
|
-
|
|
463
|
+
t.reverse().forEach((M) => {
|
|
464
|
+
Z += `
|
|
465
465
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
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_${
|
|
467
|
-
${
|
|
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_${M.id})` : M.color}"/>${qt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${T.value}_${M.absoluteIndex})"/>` : ""}</svg>
|
|
467
|
+
${M.name}${c || u ? ":" : ""} ${c ? j({
|
|
468
468
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
469
|
-
v:
|
|
469
|
+
v: M.value,
|
|
470
470
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
471
|
-
r:
|
|
472
|
-
}) : ""} ${
|
|
473
|
-
v: isNaN(
|
|
471
|
+
r: J
|
|
472
|
+
}) : ""} ${O[0]}${u ? j({
|
|
473
|
+
v: isNaN(M.value / s) ? 0 : Math.abs(M.value) / s * 100,
|
|
474
474
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
475
475
|
s: "%",
|
|
476
|
-
r:
|
|
477
|
-
}) : ""}${
|
|
476
|
+
r: q
|
|
477
|
+
}) : ""}${O[1]}
|
|
478
478
|
</div>
|
|
479
479
|
`;
|
|
480
|
-
}), Me.value = `<div>${
|
|
480
|
+
}), Me.value = `<div>${Z}</div>`;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
timeLabelsEls: e.value.orientation === "vertical" ?
|
|
483
|
+
const ra = x(() => ee.value.width), oa = x(() => ee.value.height);
|
|
484
|
+
Ya({
|
|
485
|
+
timeLabelsEls: e.value.orientation === "vertical" ? G : X,
|
|
486
486
|
timeLabels: $,
|
|
487
487
|
slicer: h,
|
|
488
488
|
configRef: e,
|
|
489
489
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
490
490
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
491
491
|
isAutoSize: !1,
|
|
492
|
-
width:
|
|
493
|
-
height:
|
|
492
|
+
width: ra,
|
|
493
|
+
height: oa,
|
|
494
494
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
495
495
|
});
|
|
496
|
-
function
|
|
496
|
+
function bt(a) {
|
|
497
497
|
ne.value = a, Ue.value += 1;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function ft() {
|
|
500
500
|
z.value.showTable = !z.value.showTable;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function mt() {
|
|
503
503
|
z.value.dataLabels.show = !z.value.dataLabels.show;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function pt() {
|
|
506
506
|
z.value.showTooltip = !z.value.showTooltip;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function ia() {
|
|
509
509
|
return w.value;
|
|
510
510
|
}
|
|
511
|
-
const
|
|
511
|
+
const xt = x(() => {
|
|
512
512
|
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
513
513
|
const a = w.value.map(({ name: t, color: s }) => ({
|
|
514
514
|
label: t,
|
|
@@ -521,16 +521,16 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
521
521
|
}), l.push(s);
|
|
522
522
|
}), { head: a, body: l };
|
|
523
523
|
});
|
|
524
|
-
function
|
|
525
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
526
|
-
a ? a(u) :
|
|
524
|
+
function kt(a = null) {
|
|
525
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...xt.value.head.map((C) => C.label)], s = xt.value.body, c = l.concat([t]).concat(s), u = Oa(c);
|
|
526
|
+
a ? a(u) : Pa({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
527
527
|
}
|
|
528
528
|
const be = x(() => {
|
|
529
529
|
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>');
|
|
530
530
|
let l = [];
|
|
531
531
|
for (let c = 0; c < F.value; c += 1) {
|
|
532
|
-
const u = w.value.map((
|
|
533
|
-
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((
|
|
532
|
+
const u = w.value.map((C) => C.series[c] ?? 0).reduce((C, J) => C + J, 0);
|
|
533
|
+
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((C) => (C.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
534
534
|
}
|
|
535
535
|
const t = {
|
|
536
536
|
th: {
|
|
@@ -547,30 +547,30 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
547
547
|
}, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
548
548
|
return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
|
|
549
549
|
});
|
|
550
|
-
function
|
|
551
|
-
if (
|
|
550
|
+
function na(a, l) {
|
|
551
|
+
if (Ce("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
|
|
552
552
|
S.value = S.value.filter((t) => t !== l.id);
|
|
553
553
|
else {
|
|
554
554
|
if (S.value.length === D.value.length - 1) return;
|
|
555
555
|
S.value.push(l.id);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const
|
|
558
|
+
const wt = x(() => D.value.map((a, l) => ({
|
|
559
559
|
...a,
|
|
560
560
|
shape: "square"
|
|
561
561
|
})).map((a) => ({
|
|
562
562
|
...a,
|
|
563
563
|
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
564
|
-
segregate: () =>
|
|
564
|
+
segregate: () => na(a.absoluteIndex, a),
|
|
565
565
|
isSegregated: S.value.includes(a.id)
|
|
566
|
-
}))),
|
|
566
|
+
}))), ua = x(() => ({
|
|
567
567
|
cy: "stackbar-legend",
|
|
568
568
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
569
569
|
color: e.value.style.chart.legend.color,
|
|
570
570
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
571
571
|
paddingBottom: 12,
|
|
572
572
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
573
|
-
})), fe =
|
|
573
|
+
})), fe = g(!1);
|
|
574
574
|
function Ee() {
|
|
575
575
|
fe.value = !fe.value;
|
|
576
576
|
}
|
|
@@ -582,19 +582,19 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
582
582
|
color: s.color,
|
|
583
583
|
id: s.id
|
|
584
584
|
}));
|
|
585
|
-
|
|
585
|
+
Ce("selectTimeLabel", {
|
|
586
586
|
datapoint: t,
|
|
587
587
|
absoluteIndex: a.absoluteIndex,
|
|
588
588
|
label: a.text
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
|
-
const
|
|
592
|
-
function
|
|
593
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
591
|
+
const ca = x(() => Math.max(...w.value.flatMap((a) => a.series)));
|
|
592
|
+
function Lt(a, l) {
|
|
593
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? at.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : at.value ? (tt.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 > ca.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : tt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
594
594
|
}
|
|
595
|
-
async function
|
|
596
|
-
if (!
|
|
597
|
-
const { width: l, height: t } =
|
|
595
|
+
async function ha({ scale: a = 2 } = {}) {
|
|
596
|
+
if (!V.value) return;
|
|
597
|
+
const { width: l, height: t } = V.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Xa({ domElement: V.value, base64: !0, img: !0, scale: a });
|
|
598
598
|
return {
|
|
599
599
|
imageUri: c,
|
|
600
600
|
base64: u,
|
|
@@ -604,34 +604,34 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
604
604
|
aspectRatio: s
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
|
-
return
|
|
608
|
-
getData:
|
|
609
|
-
getImage:
|
|
610
|
-
generatePdf:
|
|
611
|
-
generateCsv:
|
|
612
|
-
generateImage:
|
|
613
|
-
toggleTable:
|
|
614
|
-
toggleLabels:
|
|
615
|
-
toggleTooltip:
|
|
607
|
+
return Ft({
|
|
608
|
+
getData: ia,
|
|
609
|
+
getImage: ha,
|
|
610
|
+
generatePdf: rt,
|
|
611
|
+
generateCsv: kt,
|
|
612
|
+
generateImage: ot,
|
|
613
|
+
toggleTable: ft,
|
|
614
|
+
toggleLabels: mt,
|
|
615
|
+
toggleTooltip: pt,
|
|
616
616
|
toggleAnnotator: Ee,
|
|
617
|
-
toggleFullscreen:
|
|
617
|
+
toggleFullscreen: bt
|
|
618
618
|
}), (a, l) => (r(), o("div", {
|
|
619
|
-
id: `stackbar_${
|
|
619
|
+
id: `stackbar_${T.value}`,
|
|
620
620
|
ref_key: "stackbarChart",
|
|
621
|
-
ref:
|
|
622
|
-
class:
|
|
623
|
-
style:
|
|
624
|
-
onMouseenter: l[4] || (l[4] = () => v(
|
|
625
|
-
onMouseleave: l[5] || (l[5] = () => v(
|
|
621
|
+
ref: V,
|
|
622
|
+
class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
623
|
+
style: Q(`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%" : ""}`),
|
|
624
|
+
onMouseenter: l[4] || (l[4] = () => v(Qe)(!0)),
|
|
625
|
+
onMouseleave: l[5] || (l[5] = () => v(Qe)(!1))
|
|
626
626
|
}, [
|
|
627
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
627
|
+
e.value.userOptions.buttons.annotator ? (r(), H(v(Yt), {
|
|
628
628
|
key: 0,
|
|
629
|
-
svgRef: v(
|
|
629
|
+
svgRef: v(et),
|
|
630
630
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
631
631
|
color: e.value.style.chart.color,
|
|
632
632
|
active: fe.value,
|
|
633
633
|
onClose: Ee
|
|
634
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
634
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
635
635
|
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
636
636
|
e.value.style.chart.title.text ? (r(), o("div", {
|
|
637
637
|
key: 1,
|
|
@@ -639,7 +639,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
639
639
|
ref: Be,
|
|
640
640
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
641
641
|
}, [
|
|
642
|
-
(r(),
|
|
642
|
+
(r(), H(Ga, {
|
|
643
643
|
key: `title_${Je.value}`,
|
|
644
644
|
config: {
|
|
645
645
|
title: {
|
|
@@ -652,15 +652,18 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
}, null, 8, ["config"]))
|
|
655
|
-
], 512)) :
|
|
656
|
-
|
|
655
|
+
], 512)) : d("", !0),
|
|
656
|
+
U("div", {
|
|
657
|
+
id: `legend-top-${T.value}`
|
|
658
|
+
}, null, 8, ja),
|
|
659
|
+
e.value.userOptions.show && Se.value && (v(je) || v(Ie)) ? (r(), H(v(Xt), {
|
|
657
660
|
ref: "details",
|
|
658
661
|
key: `user_option_${Ue.value}`,
|
|
659
662
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
660
663
|
color: e.value.style.chart.color,
|
|
661
|
-
isPrinting: v(
|
|
662
|
-
isImaging: v(
|
|
663
|
-
uid:
|
|
664
|
+
isPrinting: v(lt),
|
|
665
|
+
isImaging: v(st),
|
|
666
|
+
uid: T.value,
|
|
664
667
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
665
668
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
666
669
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -669,7 +672,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
669
672
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
670
673
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
671
674
|
isFullscreen: ne.value,
|
|
672
|
-
chartElement:
|
|
675
|
+
chartElement: V.value,
|
|
673
676
|
position: e.value.userOptions.position,
|
|
674
677
|
isTooltip: z.value.showTooltip,
|
|
675
678
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -677,91 +680,91 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
677
680
|
isAnnotation: fe.value,
|
|
678
681
|
callbacks: e.value.userOptions.callbacks,
|
|
679
682
|
printScale: e.value.userOptions.print.scale,
|
|
680
|
-
onToggleFullscreen:
|
|
681
|
-
onGeneratePdf: v(
|
|
682
|
-
onGenerateCsv:
|
|
683
|
-
onGenerateImage: v(
|
|
684
|
-
onToggleTable:
|
|
685
|
-
onToggleLabels:
|
|
686
|
-
onToggleTooltip:
|
|
683
|
+
onToggleFullscreen: bt,
|
|
684
|
+
onGeneratePdf: v(rt),
|
|
685
|
+
onGenerateCsv: kt,
|
|
686
|
+
onGenerateImage: v(ot),
|
|
687
|
+
onToggleTable: ft,
|
|
688
|
+
onToggleLabels: mt,
|
|
689
|
+
onToggleTooltip: pt,
|
|
687
690
|
onToggleAnnotator: Ee,
|
|
688
|
-
style:
|
|
689
|
-
visibility: v(
|
|
691
|
+
style: Q({
|
|
692
|
+
visibility: v(je) ? v(Ie) ? "visible" : "hidden" : "visible"
|
|
690
693
|
})
|
|
691
|
-
},
|
|
694
|
+
}, At({ _: 2 }, [
|
|
692
695
|
a.$slots.menuIcon ? {
|
|
693
696
|
name: "menuIcon",
|
|
694
|
-
fn:
|
|
695
|
-
L(a.$slots, "menuIcon",
|
|
697
|
+
fn: _(({ isOpen: t, color: s }) => [
|
|
698
|
+
L(a.$slots, "menuIcon", B(W({ isOpen: t, color: s })), void 0, !0)
|
|
696
699
|
]),
|
|
697
700
|
key: "0"
|
|
698
701
|
} : void 0,
|
|
699
702
|
a.$slots.optionTooltip ? {
|
|
700
703
|
name: "optionTooltip",
|
|
701
|
-
fn:
|
|
704
|
+
fn: _(() => [
|
|
702
705
|
L(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
703
706
|
]),
|
|
704
707
|
key: "1"
|
|
705
708
|
} : void 0,
|
|
706
709
|
a.$slots.optionPdf ? {
|
|
707
710
|
name: "optionPdf",
|
|
708
|
-
fn:
|
|
711
|
+
fn: _(() => [
|
|
709
712
|
L(a.$slots, "optionPdf", {}, void 0, !0)
|
|
710
713
|
]),
|
|
711
714
|
key: "2"
|
|
712
715
|
} : void 0,
|
|
713
716
|
a.$slots.optionCsv ? {
|
|
714
717
|
name: "optionCsv",
|
|
715
|
-
fn:
|
|
718
|
+
fn: _(() => [
|
|
716
719
|
L(a.$slots, "optionCsv", {}, void 0, !0)
|
|
717
720
|
]),
|
|
718
721
|
key: "3"
|
|
719
722
|
} : void 0,
|
|
720
723
|
a.$slots.optionImg ? {
|
|
721
724
|
name: "optionImg",
|
|
722
|
-
fn:
|
|
725
|
+
fn: _(() => [
|
|
723
726
|
L(a.$slots, "optionImg", {}, void 0, !0)
|
|
724
727
|
]),
|
|
725
728
|
key: "4"
|
|
726
729
|
} : void 0,
|
|
727
730
|
a.$slots.optionTable ? {
|
|
728
731
|
name: "optionTable",
|
|
729
|
-
fn:
|
|
732
|
+
fn: _(() => [
|
|
730
733
|
L(a.$slots, "optionTable", {}, void 0, !0)
|
|
731
734
|
]),
|
|
732
735
|
key: "5"
|
|
733
736
|
} : void 0,
|
|
734
737
|
a.$slots.optionLabels ? {
|
|
735
738
|
name: "optionLabels",
|
|
736
|
-
fn:
|
|
739
|
+
fn: _(() => [
|
|
737
740
|
L(a.$slots, "optionLabels", {}, void 0, !0)
|
|
738
741
|
]),
|
|
739
742
|
key: "6"
|
|
740
743
|
} : void 0,
|
|
741
744
|
a.$slots.optionFullscreen ? {
|
|
742
745
|
name: "optionFullscreen",
|
|
743
|
-
fn:
|
|
744
|
-
L(a.$slots, "optionFullscreen",
|
|
746
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
747
|
+
L(a.$slots, "optionFullscreen", B(W({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
745
748
|
]),
|
|
746
749
|
key: "7"
|
|
747
750
|
} : void 0,
|
|
748
751
|
a.$slots.optionAnnotator ? {
|
|
749
752
|
name: "optionAnnotator",
|
|
750
|
-
fn:
|
|
751
|
-
L(a.$slots, "optionAnnotator",
|
|
753
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
754
|
+
L(a.$slots, "optionAnnotator", B(W({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
752
755
|
]),
|
|
753
756
|
key: "8"
|
|
754
757
|
} : void 0
|
|
755
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
758
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
756
759
|
(r(), o("svg", {
|
|
757
760
|
ref_key: "svgRef",
|
|
758
|
-
ref:
|
|
759
|
-
xmlns: v(
|
|
761
|
+
ref: et,
|
|
762
|
+
xmlns: v(Aa),
|
|
760
763
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
761
|
-
class:
|
|
762
|
-
style:
|
|
764
|
+
class: le({ "vue-data-ui-loading": v(re) }),
|
|
765
|
+
style: Q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
763
766
|
}, [
|
|
764
|
-
xe(v(
|
|
767
|
+
xe(v(Gt)),
|
|
765
768
|
a.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
766
769
|
key: 0,
|
|
767
770
|
x: n.value.left,
|
|
@@ -773,30 +776,30 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
773
776
|
}
|
|
774
777
|
}, [
|
|
775
778
|
L(a.$slots, "chart-background", {}, void 0, !0)
|
|
776
|
-
], 8,
|
|
777
|
-
e.value.style.chart.bars.gradient.show ? (r(), o("defs",
|
|
778
|
-
(r(!0), o(
|
|
779
|
+
], 8, tl)) : d("", !0),
|
|
780
|
+
e.value.style.chart.bars.gradient.show ? (r(), o("defs", al, [
|
|
781
|
+
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("linearGradient", {
|
|
779
782
|
id: `gradient_${t.id}`,
|
|
780
783
|
x1: "0%",
|
|
781
784
|
y1: "0%",
|
|
782
785
|
x2: "0%",
|
|
783
786
|
y2: "100%"
|
|
784
787
|
}, [
|
|
785
|
-
|
|
788
|
+
U("stop", {
|
|
786
789
|
offset: "0%",
|
|
787
790
|
"stop-color": t.color
|
|
788
|
-
}, null, 8,
|
|
789
|
-
|
|
791
|
+
}, null, 8, sl),
|
|
792
|
+
U("stop", {
|
|
790
793
|
offset: "61.8%",
|
|
791
|
-
"stop-color": v(
|
|
792
|
-
}, null, 8,
|
|
793
|
-
|
|
794
|
+
"stop-color": v(Na)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
795
|
+
}, null, 8, rl),
|
|
796
|
+
U("stop", {
|
|
794
797
|
offset: "100%",
|
|
795
798
|
"stop-color": t.color
|
|
796
|
-
}, null, 8,
|
|
797
|
-
], 8,
|
|
798
|
-
])) :
|
|
799
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(
|
|
799
|
+
}, null, 8, ol)
|
|
800
|
+
], 8, ll))), 256))
|
|
801
|
+
])) : d("", !0),
|
|
802
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(R.value, (t, s) => (r(), o("line", {
|
|
800
803
|
x1: n.value.left,
|
|
801
804
|
x2: n.value.right,
|
|
802
805
|
y1: t.y,
|
|
@@ -805,28 +808,28 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
805
808
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
806
809
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
807
810
|
"stroke-linecap": "round"
|
|
808
|
-
}, null, 8,
|
|
809
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(
|
|
811
|
+
}, null, 8, il))), 256)) : d("", !0),
|
|
812
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
810
813
|
x1: n.value.left,
|
|
811
814
|
x2: n.value.right,
|
|
812
|
-
y1: n.value.top +
|
|
813
|
-
y2: n.value.top +
|
|
815
|
+
y1: n.value.top + y.value * s,
|
|
816
|
+
y2: n.value.top + y.value * s,
|
|
814
817
|
stroke: e.value.style.chart.grid.x.linesColor,
|
|
815
818
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
816
819
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
817
820
|
"stroke-linecap": "round"
|
|
818
|
-
}, null, 8,
|
|
819
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(
|
|
820
|
-
x1: n.value.left +
|
|
821
|
-
x2: n.value.left +
|
|
821
|
+
}, null, 8, nl))), 256)) : d("", !0),
|
|
822
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
823
|
+
x1: n.value.left + y.value * s,
|
|
824
|
+
x2: n.value.left + y.value * s,
|
|
822
825
|
y1: n.value.top,
|
|
823
826
|
y2: n.value.bottom,
|
|
824
827
|
stroke: e.value.style.chart.grid.y.linesColor,
|
|
825
828
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
826
829
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
827
830
|
"stroke-linecap": "round"
|
|
828
|
-
}, null, 8,
|
|
829
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(
|
|
831
|
+
}, null, 8, ul))), 256)) : d("", !0),
|
|
832
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(R.value, (t, s) => (r(), o("line", {
|
|
830
833
|
x1: t.horizontal_x,
|
|
831
834
|
x2: t.horizontal_x,
|
|
832
835
|
y1: n.value.top,
|
|
@@ -835,69 +838,69 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
835
838
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
836
839
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
837
840
|
"stroke-linecap": "round"
|
|
838
|
-
}, null, 8,
|
|
839
|
-
(r(!0), o(
|
|
840
|
-
a.$slots.pattern ? (r(), o("defs",
|
|
841
|
-
L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${
|
|
842
|
-
])) :
|
|
843
|
-
e.value.orientation === "vertical" ? (r(), o(
|
|
844
|
-
(r(!0), o(
|
|
841
|
+
}, null, 8, cl))), 256)) : d("", !0),
|
|
842
|
+
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
843
|
+
a.$slots.pattern ? (r(), o("defs", hl, [
|
|
844
|
+
L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${T.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
845
|
+
])) : d("", !0),
|
|
846
|
+
e.value.orientation === "vertical" ? (r(), o(b, { key: 1 }, [
|
|
847
|
+
(r(!0), o(b, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
845
848
|
x: c,
|
|
846
849
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
847
850
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
848
851
|
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,
|
|
849
|
-
width:
|
|
852
|
+
width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
850
853
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
851
854
|
stroke: e.value.style.chart.backgroundColor,
|
|
852
855
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
853
856
|
"stroke-linecap": "round",
|
|
854
857
|
"stroke-linejoin": "round",
|
|
855
|
-
class:
|
|
856
|
-
}, null, 10,
|
|
857
|
-
a.$slots.pattern ? (r(), o("g",
|
|
858
|
-
(r(!0), o(
|
|
858
|
+
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
859
|
+
}, null, 10, vl))), 256)),
|
|
860
|
+
a.$slots.pattern ? (r(), o("g", dl, [
|
|
861
|
+
(r(!0), o(b, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
859
862
|
x: c,
|
|
860
863
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
861
864
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
862
865
|
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,
|
|
863
|
-
width:
|
|
864
|
-
fill: `url(#pattern_${
|
|
866
|
+
width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
867
|
+
fill: `url(#pattern_${T.value}_${t.absoluteIndex})`,
|
|
865
868
|
stroke: e.value.style.chart.backgroundColor,
|
|
866
869
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
867
870
|
"stroke-linecap": "round",
|
|
868
871
|
"stroke-linejoin": "round",
|
|
869
|
-
class:
|
|
870
|
-
}, null, 10,
|
|
871
|
-
])) :
|
|
872
|
-
], 64)) : (r(), o(
|
|
873
|
-
(r(!0), o(
|
|
872
|
+
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
873
|
+
}, null, 10, yl))), 256))
|
|
874
|
+
])) : d("", !0)
|
|
875
|
+
], 64)) : (r(), o(b, { key: 2 }, [
|
|
876
|
+
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
874
877
|
x: v(Le)(c, n.value.left),
|
|
875
878
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
876
879
|
width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
877
880
|
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,
|
|
878
|
-
height:
|
|
881
|
+
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
879
882
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
880
883
|
stroke: e.value.style.chart.backgroundColor,
|
|
881
884
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
882
885
|
"stroke-linecap": "round",
|
|
883
886
|
"stroke-linejoin": "round",
|
|
884
|
-
class:
|
|
885
|
-
}, null, 10,
|
|
886
|
-
a.$slots.pattern ? (r(), o("g",
|
|
887
|
-
(r(!0), o(
|
|
887
|
+
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
888
|
+
}, null, 10, gl))), 256)),
|
|
889
|
+
a.$slots.pattern ? (r(), o("g", bl, [
|
|
890
|
+
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
888
891
|
x: v(Le)(c, n.value.left),
|
|
889
892
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
890
893
|
width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
891
894
|
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,
|
|
892
|
-
height:
|
|
893
|
-
fill: `url(#pattern_${
|
|
895
|
+
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
896
|
+
fill: `url(#pattern_${T.value}_${t.absoluteIndex})`,
|
|
894
897
|
stroke: e.value.style.chart.backgroundColor,
|
|
895
898
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
896
899
|
"stroke-linecap": "round",
|
|
897
900
|
"stroke-linejoin": "round",
|
|
898
|
-
class:
|
|
899
|
-
}, null, 10,
|
|
900
|
-
])) :
|
|
901
|
+
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
902
|
+
}, null, 10, fl))), 256))
|
|
903
|
+
])) : d("", !0)
|
|
901
904
|
], 64))
|
|
902
905
|
]))), 256)),
|
|
903
906
|
e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
|
|
@@ -910,7 +913,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
910
913
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
911
914
|
"stroke-linecap": "round",
|
|
912
915
|
"stroke-linejoin": "round"
|
|
913
|
-
}, null, 8,
|
|
916
|
+
}, null, 8, ml)) : d("", !0),
|
|
914
917
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
|
|
915
918
|
key: 7,
|
|
916
919
|
x1: n.value.left,
|
|
@@ -921,7 +924,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
921
924
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
922
925
|
"stroke-linecap": "round",
|
|
923
926
|
"stroke-linejoin": "round"
|
|
924
|
-
}, null, 8,
|
|
927
|
+
}, null, 8, pl)) : d("", !0),
|
|
925
928
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
|
|
926
929
|
key: 8,
|
|
927
930
|
ref_key: "xAxisLabel",
|
|
@@ -932,7 +935,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
932
935
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
933
936
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
934
937
|
"text-anchor": "middle"
|
|
935
|
-
},
|
|
938
|
+
}, A(e.value.style.chart.grid.x.axisName.text), 9, xl)) : d("", !0),
|
|
936
939
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
|
|
937
940
|
key: 9,
|
|
938
941
|
ref_key: "yAxisLabel",
|
|
@@ -942,109 +945,109 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
942
945
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
943
946
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
944
947
|
"text-anchor": "middle"
|
|
945
|
-
},
|
|
946
|
-
z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(
|
|
947
|
-
(r(!0), o(
|
|
948
|
-
(r(!0), o(
|
|
949
|
-
|
|
948
|
+
}, A(e.value.style.chart.grid.y.axisName.text), 9, kl)) : d("", !0),
|
|
949
|
+
z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(b, { key: 10 }, [
|
|
950
|
+
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
951
|
+
(r(!0), o(b, null, m(t.x, (c, u) => (r(), o(b, null, [
|
|
952
|
+
Lt(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
950
953
|
key: 0,
|
|
951
|
-
x: c +
|
|
954
|
+
x: c + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
952
955
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
953
956
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
954
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
957
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Vt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
955
958
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
956
959
|
"text-anchor": "middle"
|
|
957
|
-
},
|
|
960
|
+
}, A(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ht(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, wl)) : d("", !0)
|
|
958
961
|
], 64))), 256))
|
|
959
962
|
]))), 256)),
|
|
960
963
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
961
964
|
key: 0,
|
|
962
965
|
ref_key: "sumTop",
|
|
963
|
-
ref:
|
|
966
|
+
ref: Qt
|
|
964
967
|
}, [
|
|
965
|
-
(r(!0), o(
|
|
968
|
+
(r(!0), o(b, null, m(ct.value, (t, s) => (r(), o(b, null, [
|
|
966
969
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
967
970
|
key: 0,
|
|
968
|
-
x: n.value.left +
|
|
971
|
+
x: n.value.left + y.value * s + y.value / 2,
|
|
969
972
|
y: e.value.style.chart.bars.totalValues.fontSize,
|
|
970
973
|
"text-anchor": "middle",
|
|
971
974
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
972
975
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
973
976
|
fill: e.value.style.chart.bars.totalValues.color
|
|
974
|
-
},
|
|
977
|
+
}, A(ge(t.value, t, s, t.sign)), 9, Ll)) : d("", !0)
|
|
975
978
|
], 64))), 256))
|
|
976
|
-
], 512)) :
|
|
977
|
-
], 64)) :
|
|
978
|
-
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(
|
|
979
|
-
(r(!0), o(
|
|
980
|
-
(r(!0), o(
|
|
981
|
-
|
|
979
|
+
], 512)) : d("", !0)
|
|
980
|
+
], 64)) : d("", !0),
|
|
981
|
+
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(b, { key: 11 }, [
|
|
982
|
+
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
983
|
+
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o(b, null, [
|
|
984
|
+
Lt(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
982
985
|
key: 0,
|
|
983
986
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
984
|
-
y: t.horizontal_y[u] +
|
|
987
|
+
y: t.horizontal_y[u] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
985
988
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
986
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
989
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Vt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
987
990
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
988
991
|
"text-anchor": "middle"
|
|
989
|
-
},
|
|
992
|
+
}, A(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ht(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, zl)) : d("", !0)
|
|
990
993
|
], 64))), 256))
|
|
991
994
|
]))), 256)),
|
|
992
995
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
993
996
|
key: 0,
|
|
994
997
|
ref_key: "sumRight",
|
|
995
|
-
ref:
|
|
998
|
+
ref: Ke
|
|
996
999
|
}, [
|
|
997
|
-
(r(!0), o(
|
|
1000
|
+
(r(!0), o(b, null, m(ct.value, (t, s) => (r(), o(b, null, [
|
|
998
1001
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
999
1002
|
key: 0,
|
|
1000
1003
|
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
1001
|
-
y: n.value.top +
|
|
1004
|
+
y: n.value.top + y.value * s + y.value / 2,
|
|
1002
1005
|
"text-anchor": "start",
|
|
1003
1006
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1004
1007
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1005
1008
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1006
|
-
},
|
|
1009
|
+
}, A(ge(t.value, t, s, t.sign)), 9, _l)) : d("", !0)
|
|
1007
1010
|
], 64))), 256))
|
|
1008
|
-
], 512)) :
|
|
1009
|
-
], 64)) :
|
|
1011
|
+
], 512)) : d("", !0)
|
|
1012
|
+
], 64)) : d("", !0),
|
|
1010
1013
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1011
1014
|
key: 12,
|
|
1012
1015
|
ref_key: "scaleLabels",
|
|
1013
|
-
ref:
|
|
1016
|
+
ref: X
|
|
1014
1017
|
}, [
|
|
1015
|
-
(r(!0), o(
|
|
1018
|
+
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("line", {
|
|
1016
1019
|
x1: n.value.left,
|
|
1017
1020
|
x2: n.value.left - 6,
|
|
1018
1021
|
y1: t.y,
|
|
1019
1022
|
y2: t.y,
|
|
1020
1023
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1021
1024
|
"stroke-width": 1
|
|
1022
|
-
}, null, 8,
|
|
1023
|
-
(r(!0), o(
|
|
1025
|
+
}, null, 8, Cl))), 256)),
|
|
1026
|
+
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
|
|
1024
1027
|
x: t.x,
|
|
1025
1028
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1026
1029
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1027
1030
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1028
1031
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1029
1032
|
"text-anchor": "end"
|
|
1030
|
-
},
|
|
1033
|
+
}, A(v(ze)(
|
|
1031
1034
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1032
1035
|
t.value,
|
|
1033
|
-
v(
|
|
1036
|
+
v(j)({
|
|
1034
1037
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1035
1038
|
v: t.value,
|
|
1036
1039
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1037
1040
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1038
1041
|
}),
|
|
1039
1042
|
{ datapoint: t }
|
|
1040
|
-
)), 9,
|
|
1041
|
-
], 512)) :
|
|
1043
|
+
)), 9, Sl))), 256))
|
|
1044
|
+
], 512)) : d("", !0),
|
|
1042
1045
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1043
1046
|
key: 13,
|
|
1044
1047
|
ref_key: "scaleLabels",
|
|
1045
|
-
ref:
|
|
1048
|
+
ref: X
|
|
1046
1049
|
}, [
|
|
1047
|
-
(r(!0), o(
|
|
1050
|
+
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("line", {
|
|
1048
1051
|
x1: t.horizontal_x,
|
|
1049
1052
|
x2: t.horizontal_x,
|
|
1050
1053
|
y1: n.value.bottom,
|
|
@@ -1052,47 +1055,47 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1052
1055
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1053
1056
|
"stroke-width": 1,
|
|
1054
1057
|
"stroke-linecap": "round"
|
|
1055
|
-
}, null, 8,
|
|
1056
|
-
(r(!0), o(
|
|
1058
|
+
}, null, 8, $l))), 256)),
|
|
1059
|
+
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
|
|
1057
1060
|
class: "vue-data-ui-time-label",
|
|
1058
1061
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1059
1062
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1060
1063
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1061
1064
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1062
1065
|
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})`
|
|
1063
|
-
},
|
|
1066
|
+
}, A(v(ze)(
|
|
1064
1067
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1065
1068
|
t.value,
|
|
1066
|
-
v(
|
|
1069
|
+
v(j)({
|
|
1067
1070
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1068
1071
|
v: t.value,
|
|
1069
1072
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1070
1073
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1071
1074
|
}),
|
|
1072
1075
|
{ datapoint: t }
|
|
1073
|
-
)), 9,
|
|
1074
|
-
], 512)) :
|
|
1076
|
+
)), 9, Tl))), 256))
|
|
1077
|
+
], 512)) : d("", !0),
|
|
1075
1078
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1076
1079
|
key: 14,
|
|
1077
1080
|
ref_key: "timeLabelsEls",
|
|
1078
|
-
ref:
|
|
1081
|
+
ref: G
|
|
1079
1082
|
}, [
|
|
1080
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1081
|
-
(r(!0), o(
|
|
1083
|
+
a.$slots["time-label"] ? (r(), o("g", Ml, [
|
|
1084
|
+
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1082
1085
|
L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
|
|
1083
|
-
x: n.value.left +
|
|
1086
|
+
x: n.value.left + y.value * s + y.value / 2,
|
|
1084
1087
|
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1085
1088
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1086
1089
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1087
|
-
transform: `translate(${n.value.left +
|
|
1090
|
+
transform: `translate(${n.value.left + y.value * s + y.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})`,
|
|
1088
1091
|
absoluteIndex: t.absoluteIndex,
|
|
1089
1092
|
content: t.text,
|
|
1090
1093
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1091
1094
|
show: !0
|
|
1092
1095
|
}), void 0, !0)
|
|
1093
1096
|
]))), 256))
|
|
1094
|
-
])) : (r(), o("g",
|
|
1095
|
-
(r(!0), o(
|
|
1097
|
+
])) : (r(), o("g", Al, [
|
|
1098
|
+
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1096
1099
|
String(t.text).includes(`
|
|
1097
1100
|
`) ? (r(), o("text", {
|
|
1098
1101
|
key: s + "-multi",
|
|
@@ -1101,13 +1104,13 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1101
1104
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1102
1105
|
transform: `
|
|
1103
1106
|
translate(
|
|
1104
|
-
${n.value.left +
|
|
1107
|
+
${n.value.left + y.value * s + y.value / 2},
|
|
1105
1108
|
${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
1106
1109
|
),
|
|
1107
1110
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1108
1111
|
`,
|
|
1109
1112
|
style: { cursor: "pointer" },
|
|
1110
|
-
innerHTML: v(
|
|
1113
|
+
innerHTML: v(Ia)({
|
|
1111
1114
|
content: String(t.text),
|
|
1112
1115
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1113
1116
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -1115,30 +1118,30 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1115
1118
|
y: 0
|
|
1116
1119
|
}),
|
|
1117
1120
|
onClick: () => me(t, s)
|
|
1118
|
-
}, null, 8,
|
|
1121
|
+
}, null, 8, Il)) : (r(), o("text", {
|
|
1119
1122
|
class: "vue-data-ui-time-label",
|
|
1120
1123
|
key: s,
|
|
1121
1124
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1122
1125
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1123
1126
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
1124
1127
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1125
|
-
transform: `translate(${n.value.left +
|
|
1128
|
+
transform: `translate(${n.value.left + y.value * s + y.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})`,
|
|
1126
1129
|
style: { cursor: "pointer" },
|
|
1127
1130
|
onClick: () => me(t, s)
|
|
1128
|
-
},
|
|
1131
|
+
}, A(t.text), 9, Nl))
|
|
1129
1132
|
]))), 256))
|
|
1130
1133
|
]))
|
|
1131
|
-
], 512)) :
|
|
1134
|
+
], 512)) : d("", !0),
|
|
1132
1135
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1133
1136
|
key: 15,
|
|
1134
1137
|
ref_key: "timeLabelsEls",
|
|
1135
|
-
ref:
|
|
1138
|
+
ref: G
|
|
1136
1139
|
}, [
|
|
1137
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1138
|
-
(r(!0), o(
|
|
1140
|
+
a.$slots["time-label"] ? (r(), o("g", Rl, [
|
|
1141
|
+
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1139
1142
|
L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
|
|
1140
1143
|
x: n.value.left - 8,
|
|
1141
|
-
y: n.value.top +
|
|
1144
|
+
y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1142
1145
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1143
1146
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1144
1147
|
transform: null,
|
|
@@ -1148,8 +1151,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1148
1151
|
show: !0
|
|
1149
1152
|
}), void 0, !0)
|
|
1150
1153
|
]))), 256))
|
|
1151
|
-
])) : (r(), o("g",
|
|
1152
|
-
(r(!0), o(
|
|
1154
|
+
])) : (r(), o("g", Ol, [
|
|
1155
|
+
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1153
1156
|
String(t.text).includes(`
|
|
1154
1157
|
`) ? (r(), o("text", {
|
|
1155
1158
|
key: 1,
|
|
@@ -1158,66 +1161,66 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1158
1161
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1159
1162
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1160
1163
|
x: n.value.left - 8,
|
|
1161
|
-
y: n.value.top +
|
|
1164
|
+
y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1162
1165
|
style: { cursor: "pointer" },
|
|
1163
1166
|
onClick: () => me(t, s),
|
|
1164
|
-
innerHTML: v(
|
|
1167
|
+
innerHTML: v(Ra)({
|
|
1165
1168
|
content: String(t.text),
|
|
1166
1169
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1167
1170
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1168
1171
|
x: n.value.left - 8,
|
|
1169
1172
|
y: 0
|
|
1170
1173
|
})
|
|
1171
|
-
}, null, 8,
|
|
1174
|
+
}, null, 8, Vl)) : (r(), o("text", {
|
|
1172
1175
|
key: 0,
|
|
1173
1176
|
"text-anchor": "end",
|
|
1174
1177
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1175
1178
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1176
1179
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1177
1180
|
x: n.value.left - 8,
|
|
1178
|
-
y: n.value.top +
|
|
1181
|
+
y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1179
1182
|
style: {
|
|
1180
1183
|
cursor: "pointer"
|
|
1181
1184
|
},
|
|
1182
1185
|
onClick: () => me(t, s)
|
|
1183
|
-
},
|
|
1186
|
+
}, A(t.text), 9, Pl))
|
|
1184
1187
|
]))), 256))
|
|
1185
1188
|
]))
|
|
1186
|
-
], 512)) :
|
|
1187
|
-
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(
|
|
1188
|
-
x: n.value.left + s *
|
|
1189
|
+
], 512)) : d("", !0),
|
|
1190
|
+
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1191
|
+
x: n.value.left + s * y.value,
|
|
1189
1192
|
y: n.value.top,
|
|
1190
|
-
width:
|
|
1193
|
+
width: y.value,
|
|
1191
1194
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1192
|
-
onClick: () =>
|
|
1193
|
-
onMouseenter: () =>
|
|
1194
|
-
onMouseleave: () =>
|
|
1195
|
+
onClick: () => vt(s),
|
|
1196
|
+
onMouseenter: () => gt(s),
|
|
1197
|
+
onMouseleave: () => yt(s),
|
|
1195
1198
|
fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1196
|
-
style:
|
|
1197
|
-
}, null, 44,
|
|
1198
|
-
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(
|
|
1199
|
+
style: Q({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1200
|
+
}, null, 44, El))), 256)) : d("", !0),
|
|
1201
|
+
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1199
1202
|
x: n.value.left,
|
|
1200
|
-
y: n.value.top + s *
|
|
1203
|
+
y: n.value.top + s * y.value,
|
|
1201
1204
|
width: n.value.width < 0 ? 0 : n.value.width,
|
|
1202
|
-
height:
|
|
1203
|
-
onClick: () =>
|
|
1204
|
-
onMouseenter: () =>
|
|
1205
|
-
onMouseleave: () =>
|
|
1205
|
+
height: y.value,
|
|
1206
|
+
onClick: () => vt(s),
|
|
1207
|
+
onMouseenter: () => gt(s),
|
|
1208
|
+
onMouseleave: () => yt(s),
|
|
1206
1209
|
fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1207
|
-
style:
|
|
1208
|
-
}, null, 44,
|
|
1209
|
-
L(a.$slots, "svg",
|
|
1210
|
-
], 14,
|
|
1211
|
-
a.$slots.watermark ? (r(), o("div",
|
|
1212
|
-
L(a.$slots, "watermark",
|
|
1213
|
-
])) :
|
|
1214
|
-
|
|
1210
|
+
style: Q({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1211
|
+
}, null, 44, Dl))), 256)) : d("", !0),
|
|
1212
|
+
L(a.$slots, "svg", B(W({ ...n.value })), void 0, !0)
|
|
1213
|
+
], 14, el)),
|
|
1214
|
+
a.$slots.watermark ? (r(), o("div", Fl, [
|
|
1215
|
+
L(a.$slots, "watermark", B(W({ isPrinting: v(lt) || v(st) })), void 0, !0)
|
|
1216
|
+
])) : d("", !0),
|
|
1217
|
+
U("div", {
|
|
1215
1218
|
ref_key: "chartSlicer",
|
|
1216
1219
|
ref: Ye,
|
|
1217
|
-
style:
|
|
1220
|
+
style: Q(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1218
1221
|
"data-dom-to-png-ignore": ""
|
|
1219
1222
|
}, [
|
|
1220
|
-
e.value.style.chart.zoom.show && F.value > 1 ? (r(),
|
|
1223
|
+
e.value.style.chart.zoom.show && F.value > 1 ? (r(), H(Za, {
|
|
1221
1224
|
ref_key: "slicerComponent",
|
|
1222
1225
|
ref: qe,
|
|
1223
1226
|
key: `slicer_${Ge.value}`,
|
|
@@ -1230,7 +1233,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1230
1233
|
textColor: e.value.style.chart.color,
|
|
1231
1234
|
inputColor: e.value.style.chart.zoom.color,
|
|
1232
1235
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1233
|
-
max: Math.max(...
|
|
1236
|
+
max: Math.max(..._e.dataset.map((t) => t.series.length)),
|
|
1234
1237
|
min: 0,
|
|
1235
1238
|
valueStart: h.value.start,
|
|
1236
1239
|
valueEnd: h.value.end,
|
|
@@ -1239,18 +1242,18 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1239
1242
|
end: h.value.end,
|
|
1240
1243
|
"onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
|
|
1241
1244
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1242
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...
|
|
1245
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(..._e.dataset.map((t) => t.series.length)),
|
|
1243
1246
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1244
1247
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1245
|
-
onReset:
|
|
1248
|
+
onReset: ut
|
|
1246
1249
|
}, {
|
|
1247
|
-
"reset-action":
|
|
1248
|
-
L(a.$slots, "reset-action",
|
|
1250
|
+
"reset-action": _(({ reset: t }) => [
|
|
1251
|
+
L(a.$slots, "reset-action", B(W({ reset: t })), void 0, !0)
|
|
1249
1252
|
]),
|
|
1250
1253
|
_: 3
|
|
1251
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) :
|
|
1254
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0)
|
|
1252
1255
|
], 4),
|
|
1253
|
-
xe(v(
|
|
1256
|
+
xe(v(Ut), {
|
|
1254
1257
|
show: z.value.showTooltip && $e.value,
|
|
1255
1258
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1256
1259
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1261,68 +1264,76 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1261
1264
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1262
1265
|
position: e.value.style.chart.tooltip.position,
|
|
1263
1266
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1264
|
-
parent:
|
|
1267
|
+
parent: V.value,
|
|
1265
1268
|
content: Me.value,
|
|
1266
1269
|
isFullscreen: ne.value,
|
|
1267
|
-
isCustom: v(
|
|
1270
|
+
isCustom: v(Et)(e.value.style.chart.tooltip.customFormat),
|
|
1268
1271
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1269
1272
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1270
1273
|
}, {
|
|
1271
|
-
"tooltip-before":
|
|
1272
|
-
L(a.$slots, "tooltip-before",
|
|
1274
|
+
"tooltip-before": _(() => [
|
|
1275
|
+
L(a.$slots, "tooltip-before", B(W({ ...Te.value })), void 0, !0)
|
|
1273
1276
|
]),
|
|
1274
|
-
"tooltip-after":
|
|
1275
|
-
L(a.$slots, "tooltip-after",
|
|
1277
|
+
"tooltip-after": _(() => [
|
|
1278
|
+
L(a.$slots, "tooltip-after", B(W({ ...Te.value })), void 0, !0)
|
|
1276
1279
|
]),
|
|
1277
1280
|
_: 3
|
|
1278
1281
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
+
U("div", {
|
|
1283
|
+
id: `legend-bottom-${T.value}`
|
|
1284
|
+
}, null, 8, Hl),
|
|
1285
|
+
Ze.value ? (r(), H(wa, {
|
|
1286
|
+
key: 4,
|
|
1287
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
|
|
1282
1288
|
}, [
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
config: na.value,
|
|
1287
|
-
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1288
|
-
}, Mt({
|
|
1289
|
-
item: C(({ legend: t }) => [
|
|
1290
|
-
v(re) ? y("", !0) : (r(), o("div", {
|
|
1291
|
-
key: 0,
|
|
1292
|
-
onClick: (s) => t.segregate(),
|
|
1293
|
-
style: Z(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1294
|
-
}, M(t.name), 13, El))
|
|
1295
|
-
]),
|
|
1296
|
-
_: 2
|
|
1289
|
+
U("div", {
|
|
1290
|
+
ref_key: "chartLegend",
|
|
1291
|
+
ref: We
|
|
1297
1292
|
}, [
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1293
|
+
e.value.style.chart.legend.show ? (r(), H(qa, {
|
|
1294
|
+
key: 0,
|
|
1295
|
+
legendSet: wt.value,
|
|
1296
|
+
config: ua.value,
|
|
1297
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1298
|
+
}, At({
|
|
1299
|
+
item: _(({ legend: t }) => [
|
|
1300
|
+
v(re) ? d("", !0) : (r(), o("div", {
|
|
1301
|
+
key: 0,
|
|
1302
|
+
onClick: (s) => t.segregate(),
|
|
1303
|
+
style: Q(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1304
|
+
}, A(t.name), 13, Ul))
|
|
1308
1305
|
]),
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1306
|
+
_: 2
|
|
1307
|
+
}, [
|
|
1308
|
+
a.$slots.pattern ? {
|
|
1309
|
+
name: "legend-pattern",
|
|
1310
|
+
fn: _(({ legend: t, index: s }) => [
|
|
1311
|
+
xe(Ja, {
|
|
1312
|
+
shape: t.shape,
|
|
1313
|
+
radius: 30,
|
|
1314
|
+
stroke: "none",
|
|
1315
|
+
plot: { x: 30, y: 30 },
|
|
1316
|
+
fill: `url(#pattern_${T.value}_${s})`
|
|
1317
|
+
}, null, 8, ["shape", "fill"])
|
|
1318
|
+
]),
|
|
1319
|
+
key: "0"
|
|
1320
|
+
} : void 0
|
|
1321
|
+
]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
|
|
1322
|
+
key: 1,
|
|
1323
|
+
legend: wt.value
|
|
1324
|
+
}, void 0, !0)
|
|
1325
|
+
], 512)
|
|
1326
|
+
], 8, ["to"])) : d("", !0),
|
|
1316
1327
|
a.$slots.source ? (r(), o("div", {
|
|
1317
|
-
key:
|
|
1328
|
+
key: 5,
|
|
1318
1329
|
ref_key: "source",
|
|
1319
1330
|
ref: Xe,
|
|
1320
1331
|
dir: "auto"
|
|
1321
1332
|
}, [
|
|
1322
1333
|
L(a.$slots, "source", {}, void 0, !0)
|
|
1323
|
-
], 512)) :
|
|
1324
|
-
h.value.end - h.value.start < 200 ? (r(),
|
|
1325
|
-
key:
|
|
1334
|
+
], 512)) : d("", !0),
|
|
1335
|
+
h.value.end - h.value.start < 200 ? (r(), H(v(Bt), {
|
|
1336
|
+
key: 6,
|
|
1326
1337
|
hideDetails: "",
|
|
1327
1338
|
config: {
|
|
1328
1339
|
open: z.value.showTable,
|
|
@@ -1337,8 +1348,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1337
1348
|
}
|
|
1338
1349
|
}
|
|
1339
1350
|
}, {
|
|
1340
|
-
content:
|
|
1341
|
-
xe(v(
|
|
1351
|
+
content: _(() => [
|
|
1352
|
+
xe(v(Wt), {
|
|
1342
1353
|
colNames: be.value.colNames,
|
|
1343
1354
|
head: be.value.head,
|
|
1344
1355
|
body: be.value.body,
|
|
@@ -1346,11 +1357,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1346
1357
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1347
1358
|
onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
|
|
1348
1359
|
}, {
|
|
1349
|
-
th:
|
|
1350
|
-
|
|
1360
|
+
th: _(({ th: t }) => [
|
|
1361
|
+
U("div", { innerHTML: t }, null, 8, Bl)
|
|
1351
1362
|
]),
|
|
1352
|
-
td:
|
|
1353
|
-
|
|
1363
|
+
td: _(({ td: t }) => [
|
|
1364
|
+
La(A(isNaN(Number(t)) ? t : v(j)({
|
|
1354
1365
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1355
1366
|
v: t,
|
|
1356
1367
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1361,11 +1372,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
|
|
|
1361
1372
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
1362
1373
|
]),
|
|
1363
1374
|
_: 1
|
|
1364
|
-
}, 8, ["config"])) :
|
|
1365
|
-
v(re) ? (r(),
|
|
1366
|
-
], 46,
|
|
1375
|
+
}, 8, ["config"])) : d("", !0),
|
|
1376
|
+
v(re) ? (r(), H(Ha, { key: 7 })) : d("", !0)
|
|
1377
|
+
], 46, Qa));
|
|
1367
1378
|
}
|
|
1368
|
-
},
|
|
1379
|
+
}, is = /* @__PURE__ */ Ka(Wl, [["__scopeId", "data-v-2399f36e"]]);
|
|
1369
1380
|
export {
|
|
1370
|
-
|
|
1381
|
+
is as default
|
|
1371
1382
|
};
|