vue-data-ui 2.13.4 → 2.13.5-beta.1
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-Cv5RKI2K.js → Arrow-C3OUEgpB.js} +1 -1
- package/dist/{BaseDraggableDialog-CbNaTai1.js → BaseDraggableDialog-DnNYonqn.js} +2 -2
- package/dist/{BaseIcon-B90jg7Eo.js → BaseIcon-BXqxz5Sj.js} +1 -1
- package/dist/{ColorPicker-DrHXo6NB.js → ColorPicker-DoIZhU9b.js} +2 -2
- package/dist/{DataTable-DOdmEVBM.js → DataTable-Bj6Ydy9P.js} +2 -2
- package/dist/{Legend-D7As_VVi.js → Legend-t1_8zs04.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Qe1IsvyR.js → NonSvgPenAndPaper-BpsI9iLs.js} +3 -3
- package/dist/{PackageVersion-CJ0MHPau.js → PackageVersion-BEHb0q4B.js} +2 -2
- package/dist/{PenAndPaper-CsV9xVqP.js → PenAndPaper-X98t5VLX.js} +3 -3
- package/dist/{Shape-CMT3DgWJ.js → Shape-CFhc5s4r.js} +1 -1
- package/dist/{Slicer-kZ-UNW0I.js → Slicer-CUzPIV_Q.js} +161 -161
- package/dist/{SparkTooltip-DgaaFrSC.js → SparkTooltip-DPOcU4g7.js} +1 -1
- package/dist/{Title-Cuxd1Hw4.js → Title-DflHEZT5.js} +1 -1
- package/dist/{Tooltip-nm6v9SvD.js → Tooltip-C3ynHP3c.js} +1 -1
- package/dist/{UserOptions-B4olqrwb.js → UserOptions-C1T-b-S9.js} +2 -2
- package/dist/{dom-to-png-JxvpNdgk.js → dom-to-png-RHCXezBI.js} +1 -1
- package/dist/{img-BrSPXg54.js → img-D0AKqn5i.js} +1 -1
- package/dist/{index-DXfqC_CG.js → index-BEMxBoT7.js} +702 -683
- package/dist/{pdf-CRNRsa97.js → pdf-BMzqplSX.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/{useNestedProp-CUF1PWxQ.js → useNestedProp-B6UPnf4L.js} +1 -1
- package/dist/{usePrinter-DGQh_spY.js → usePrinter-DWaS917G.js} +2 -2
- package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
- package/dist/{vue-data-ui-tkhMq-bw.js → vue-data-ui-BfIuGUYs.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Dwdfdqch.js → vue-ui-3d-bar-D0q_qgNm.js} +5 -5
- package/dist/{vue-ui-accordion-D-tjbzQS.js → vue-ui-accordion-C7e5Xia0.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BZmYWVrS.js → vue-ui-age-pyramid-BsfkR8jg.js} +5 -5
- package/dist/{vue-ui-annotator-DBrXod-O.js → vue-ui-annotator-CW9fvw1T.js} +2 -2
- package/dist/{vue-ui-bullet-ur-PTrPw.js → vue-ui-bullet-DJHysSYg.js} +6 -6
- package/dist/{vue-ui-candlestick-72UivaQY.js → vue-ui-candlestick-CNMTAz8d.js} +96 -96
- package/dist/{vue-ui-carousel-table-CApme8lg.js → vue-ui-carousel-table-BWfzU6Qx.js} +4 -4
- package/dist/{vue-ui-chestnut-jcZZ8cOw.js → vue-ui-chestnut-cCfLknDI.js} +4 -4
- package/dist/{vue-ui-chord-A9jGFNM2.js → vue-ui-chord-DVg1z3y3.js} +7 -7
- package/dist/{vue-ui-circle-pack-DPnOBq40.js → vue-ui-circle-pack-0HQSE9cp.js} +5 -5
- package/dist/{vue-ui-cursor-Cby6-Vrh.js → vue-ui-cursor-ChpHp2H0.js} +2 -2
- package/dist/{vue-ui-dashboard-BGzORkrX.js → vue-ui-dashboard-F6_kHI3r.js} +62 -62
- package/dist/{vue-ui-digits-Dhxd38mc.js → vue-ui-digits-ShTxYTC8.js} +2 -2
- package/dist/{vue-ui-donut-DsFBb3Cl.js → vue-ui-donut-DP9WtSxW.js} +7 -7
- package/dist/{vue-ui-donut-evolution-B-Bo4b4Y.js → vue-ui-donut-evolution-YT5ZJW2Y.js} +320 -313
- package/dist/{vue-ui-dumbbell-EVSJdr9V.js → vue-ui-dumbbell-Bb4XqYRY.js} +6 -6
- package/dist/{vue-ui-flow-Cr1-ETyc.js → vue-ui-flow-C2SPlvhP.js} +6 -6
- package/dist/{vue-ui-funnel-BQ0LckzE.js → vue-ui-funnel-BhrXceny.js} +83 -83
- package/dist/{vue-ui-galaxy-_fwGK1PY.js → vue-ui-galaxy-C0PPYSd-.js} +4 -4
- package/dist/{vue-ui-gauge-BrnOoF9C.js → vue-ui-gauge-D6sNadFY.js} +5 -5
- package/dist/{vue-ui-gizmo-tgjSYkeV.js → vue-ui-gizmo-BC-o1DHn.js} +3 -3
- package/dist/{vue-ui-heatmap-CamaTaei.js → vue-ui-heatmap-B8x1W-nI.js} +6 -6
- package/dist/{vue-ui-history-plot-DSBQu-9Y.js → vue-ui-history-plot-BAyk-3CM.js} +103 -103
- package/dist/{vue-ui-kpi-OCtgONK3.js → vue-ui-kpi-DIE6vcpv.js} +3 -3
- package/dist/{vue-ui-mini-loader--xzmMUNI.js → vue-ui-mini-loader-Cj071PI3.js} +2 -2
- package/dist/{vue-ui-molecule-DnkENzdw.js → vue-ui-molecule-DQO5BDp6.js} +4 -4
- package/dist/{vue-ui-mood-radar-DKP1rjSd.js → vue-ui-mood-radar-BYPd51VJ.js} +6 -6
- package/dist/{vue-ui-nested-donuts-CHwTDQ9J.js → vue-ui-nested-donuts-DTT__aTf.js} +6 -6
- package/dist/{vue-ui-onion-BxaynRPn.js → vue-ui-onion-DoUZQqBZ.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-ohCDDK1Q.js → vue-ui-parallel-coordinate-plot-CjrOQscm.js} +175 -175
- package/dist/{vue-ui-quadrant-DXZsVWe3.js → vue-ui-quadrant-BXLvofYH.js} +7 -7
- package/dist/{vue-ui-quick-chart-C_ofgdSY.js → vue-ui-quick-chart-BWTN2358.js} +464 -457
- package/dist/{vue-ui-radar-CLa2PHHK.js → vue-ui-radar-Dv0eQPcW.js} +6 -6
- package/dist/{vue-ui-rating-GiRUw1Wv.js → vue-ui-rating-zyFM93Tp.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJ1M2Pnc.js → vue-ui-relation-circle-DIBkxk5e.js} +96 -96
- package/dist/{vue-ui-ridgeline-E_7xjHTY.js → vue-ui-ridgeline-B9z-ORep.js} +320 -311
- package/dist/{vue-ui-rings-BiOAND3T.js → vue-ui-rings-jtf8ll5F.js} +7 -7
- package/dist/{vue-ui-scatter-Bai9QSqI.js → vue-ui-scatter-CmvCQImE.js} +7 -7
- package/dist/{vue-ui-skeleton-B2N_3mr0.js → vue-ui-skeleton-7wen4XQb.js} +3 -3
- package/dist/{vue-ui-smiley-DAvm3IGu.js → vue-ui-smiley-DaGSvGIY.js} +2 -2
- package/dist/{vue-ui-spark-trend-D4EwvdX0.js → vue-ui-spark-trend-DRTxC8eE.js} +3 -3
- package/dist/{vue-ui-sparkbar-DM_2iDVI.js → vue-ui-sparkbar-gfE4GIbG.js} +3 -3
- package/dist/{vue-ui-sparkgauge-UW6sVQdV.js → vue-ui-sparkgauge-B4kyaulL.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CF0JPKYB.js → vue-ui-sparkhistogram-BPPiIjWx.js} +4 -4
- package/dist/{vue-ui-sparkline-Dg8j2KTF.js → vue-ui-sparkline-BSs_4MC7.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CqT_oEk7.js → vue-ui-sparkstackbar-DhJKC48a.js} +3 -3
- package/dist/vue-ui-stackbar-Bk7fp_vq.js +1130 -0
- package/dist/{vue-ui-strip-plot-BR66rY0G.js → vue-ui-strip-plot-CiVt2kbg.js} +73 -73
- package/dist/{vue-ui-table-Dk0eXTU9.js → vue-ui-table-fpLjUzPK.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Brldpa0g.js → vue-ui-table-heatmap-H_ryeweZ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxQrZBCR.js → vue-ui-table-sparkline-C1ma6_Ar.js} +4 -4
- package/dist/{vue-ui-thermometer-B_OrqIjE.js → vue-ui-thermometer-Ky-qjFCz.js} +5 -5
- package/dist/{vue-ui-timer-Cz0J-s5D.js → vue-ui-timer-BHYQNvLq.js} +8 -8
- package/dist/{vue-ui-tiremarks-B1B3h-Vi.js → vue-ui-tiremarks-ZvPq6eN_.js} +5 -5
- package/dist/{vue-ui-treemap-CMm6fSIO.js → vue-ui-treemap-NDD1qpZr.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DA2Xpx46.js → vue-ui-vertical-bar-HdSfwFxS.js} +8 -8
- package/dist/{vue-ui-waffle-U3NxGQ3l.js → vue-ui-waffle-CDwAOcMT.js} +7 -7
- package/dist/{vue-ui-wheel-WNOVLYp8.js → vue-ui-wheel-B6kqjg11.js} +5 -5
- package/dist/{vue-ui-word-cloud-_TBCcmAV.js → vue-ui-word-cloud-BTMR_Fap.js} +5 -5
- package/dist/{vue-ui-world-DREkLtrD.js → vue-ui-world-CJ85QHjo.js} +5 -5
- package/dist/{vue-ui-xy-CIiqKrxF.js → vue-ui-xy-BlRRpP-g.js} +680 -668
- package/dist/{vue-ui-xy-canvas-ClHv-Wlu.js → vue-ui-xy-canvas-C6my3Rhf.js} +398 -390
- package/package.json +1 -1
- package/dist/vue-ui-stackbar-By7DVfJV.js +0 -1132
|
@@ -0,0 +1,1130 @@
|
|
|
1
|
+
import { defineAsyncComponent as X, useSlots as Xt, computed as z, ref as p, onMounted as ot, watch as st, shallowRef as it, onBeforeUnmount as Gt, nextTick as ge, createElementBlock as s, openBlock as o, unref as g, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as d, renderSlot as k, createElementVNode as J, createVNode as se, createSlots as nt, withCtx as L, normalizeProps as F, guardReactiveProps as D, Fragment as h, renderList as b, mergeProps as Se, toDisplayString as T, createTextVNode as Jt } from "vue";
|
|
2
|
+
import { u as qt, c as ut, t as Zt, p as be, a as Kt, C as fe, b as Qt, o as jt, e as ct, g as ea, d as ta, ak as me, ah as vt, D as ht, X as aa, l as la, a6 as pe, G as dt, f as q, x as yt, q as ra, r as oa, i as gt, y as sa } from "./index-BEMxBoT7.js";
|
|
3
|
+
import { u as bt } from "./useNestedProp-B6UPnf4L.js";
|
|
4
|
+
import { t as ia, u as na } from "./useResponsive-JZ9xq-JV.js";
|
|
5
|
+
import { u as ua } from "./usePrinter-DWaS917G.js";
|
|
6
|
+
import { u as ca } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as va } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ha from "./Legend-t1_8zs04.js";
|
|
9
|
+
import { S as da } from "./Slicer-CUzPIV_Q.js";
|
|
10
|
+
import ya from "./Title-DflHEZT5.js";
|
|
11
|
+
import { _ as ga } from "./Shape-CFhc5s4r.js";
|
|
12
|
+
import { u as ba } from "./useTimeLabels-Mrr0jrpL.js";
|
|
13
|
+
import { _ as fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"], ka = { key: 1 }, wa = ["id"], za = ["stop-color"], Ca = ["stop-color"], _a = ["stop-color"], La = ["x1", "x2", "y1", "y2", "stroke"], Sa = ["x1", "x2", "y1", "y2", "stroke"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x1", "x2", "y1", "y2", "stroke"], Ta = { key: 0 }, Na = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ia = { key: 0 }, Oa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ra = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Pa = { key: 0 }, Aa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fa = ["x", "y", "font-size", "fill", "font-weight"], Da = ["transform", "font-size", "fill", "font-weight"], Ha = ["x", "y", "font-size", "fill", "font-weight"], Wa = { key: 0 }, Ba = ["x", "y", "font-size", "font-weight", "fill"], Ua = ["x", "y", "font-size", "fill", "font-weight"], Ya = { key: 0 }, Xa = ["x", "y", "font-size", "font-weight", "fill"], Ga = ["x1", "x2", "y1", "y2", "stroke"], Ja = ["x", "y", "font-size", "font-weight", "fill"], qa = ["x1", "x2", "y1", "y2", "stroke"], Za = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ka = { key: 0 }, Qa = { key: 1 }, ja = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], el = { key: 0 }, tl = { key: 1 }, al = ["font-size", "font-weight", "fill", "x", "y", "onClick"], ll = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], rl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ol = {
|
|
15
|
+
key: 4,
|
|
16
|
+
class: "vue-data-ui-watermark"
|
|
17
|
+
}, sl = ["onClick"], il = ["innerHTML"], nl = {
|
|
18
|
+
__name: "vue-ui-stackbar",
|
|
19
|
+
props: {
|
|
20
|
+
config: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default() {
|
|
23
|
+
return {};
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
dataset: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default() {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
34
|
+
setup(xe, { expose: ft, emit: mt }) {
|
|
35
|
+
const pt = X(() => import("./vue-ui-accordion-C7e5Xia0.js")), xt = X(() => import("./DataTable-Bj6Ydy9P.js")), kt = X(() => import("./PackageVersion-BEHb0q4B.js")), wt = X(() => import("./PenAndPaper-X98t5VLX.js")), zt = X(() => import("./vue-ui-skeleton-7wen4XQb.js")), Ct = X(() => import("./Tooltip-C3ynHP3c.js")), _t = X(() => import("./UserOptions-C1T-b-S9.js")), { vue_ui_stackbar: Lt } = qt(), St = Xt(), f = xe, ke = mt, Z = z({
|
|
36
|
+
get() {
|
|
37
|
+
return !!f.dataset && f.dataset.length;
|
|
38
|
+
},
|
|
39
|
+
set(a) {
|
|
40
|
+
return a;
|
|
41
|
+
}
|
|
42
|
+
}), ee = p(null), P = p(ut()), ie = p(!1), we = p(null), ze = p(""), S = p([]), $e = p(0), Me = p(null), Te = p(null), Ne = p(null), Ie = p(null), Oe = p(0), ne = p(!1), te = p(null), H = p(!1), $t = p(0), Mt = p(0), Tt = p(0), K = p(null);
|
|
43
|
+
ot(() => {
|
|
44
|
+
_e();
|
|
45
|
+
});
|
|
46
|
+
const e = z({
|
|
47
|
+
get: () => Ve(),
|
|
48
|
+
set: (a) => a
|
|
49
|
+
}), { userOptionsVisible: Ce, setUserOptionsVisibility: Re, keepUserOptionState: Pe } = ca({ config: e.value }), { svgRef: Ae } = va({ config: e.value.style.chart.title });
|
|
50
|
+
function Ve() {
|
|
51
|
+
const a = bt({
|
|
52
|
+
userConfig: f.config,
|
|
53
|
+
defaultConfig: Lt
|
|
54
|
+
});
|
|
55
|
+
let r = {};
|
|
56
|
+
return a.theme ? r = {
|
|
57
|
+
...bt({
|
|
58
|
+
userConfig: Kt.vue_ui_stackbar[a.theme] || f.config,
|
|
59
|
+
defaultConfig: a
|
|
60
|
+
}),
|
|
61
|
+
customPalette: Zt[a.theme] || be
|
|
62
|
+
} : r = a, f.config && fe(f.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, f.config && fe(f.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, f.config && fe(f.config, "style.chart.zoom.startIndex") ? r.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : r.style.chart.zoom.startIndex = null, f.config && fe(f.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, r;
|
|
63
|
+
}
|
|
64
|
+
st(() => f.config, (a) => {
|
|
65
|
+
e.value = Ve(), Ce.value = !e.value.userOptions.showOnChartHover, _e(), $t.value += 1, Mt.value += 1, Tt.value += 1, C.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
66
|
+
}, { deep: !0 }), st(() => f.dataset, (a) => {
|
|
67
|
+
Be();
|
|
68
|
+
}, { deep: !0 });
|
|
69
|
+
const C = p({
|
|
70
|
+
dataLabels: {
|
|
71
|
+
show: e.value.style.chart.bars.dataLabels.show
|
|
72
|
+
},
|
|
73
|
+
showTable: e.value.table.show,
|
|
74
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
75
|
+
}), { isPrinting: Ee, isImaging: Fe, generatePdf: De, generateImage: He } = ua({
|
|
76
|
+
elementId: `stackbar_${P.value}`,
|
|
77
|
+
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
78
|
+
options: e.value.userOptions.print
|
|
79
|
+
}), ue = p({
|
|
80
|
+
width: e.value.style.chart.width,
|
|
81
|
+
height: e.value.style.chart.height,
|
|
82
|
+
paddingRatio: {
|
|
83
|
+
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
84
|
+
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
85
|
+
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
86
|
+
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
87
|
+
}
|
|
88
|
+
}), Nt = z(() => Qt(e.value.customPalette)), A = it(null), Q = it(null), We = p(null);
|
|
89
|
+
ot(() => {
|
|
90
|
+
_e();
|
|
91
|
+
});
|
|
92
|
+
function _e() {
|
|
93
|
+
if (jt(f.dataset) ? ct({
|
|
94
|
+
componentName: "VueUiStackbar",
|
|
95
|
+
type: "dataset"
|
|
96
|
+
}) : f.dataset.forEach((a, r) => {
|
|
97
|
+
ea({
|
|
98
|
+
datasetObject: a,
|
|
99
|
+
requiredAttributes: ["name", "series"]
|
|
100
|
+
}).forEach((t) => {
|
|
101
|
+
Z.value = !1, ct({
|
|
102
|
+
componentName: "VueUiStackbar",
|
|
103
|
+
type: "datasetSerieAttribute",
|
|
104
|
+
property: t,
|
|
105
|
+
index: r
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
}), setTimeout(() => {
|
|
109
|
+
H.value = !0;
|
|
110
|
+
}, 10), e.value.responsive) {
|
|
111
|
+
const a = ia(() => {
|
|
112
|
+
H.value = !1;
|
|
113
|
+
const { width: r, height: t } = na({
|
|
114
|
+
chart: ee.value,
|
|
115
|
+
title: e.value.style.chart.title.text ? Me.value : null,
|
|
116
|
+
legend: e.value.style.chart.legend.show ? Te.value : null,
|
|
117
|
+
slicer: e.value.style.chart.zoom.show && E.value > 1 ? Ne.value : null,
|
|
118
|
+
source: Ie.value
|
|
119
|
+
});
|
|
120
|
+
requestAnimationFrame(() => {
|
|
121
|
+
ue.value.width = r, ue.value.height = t, clearTimeout(We.value), We.value = setTimeout(() => {
|
|
122
|
+
H.value = !0;
|
|
123
|
+
}, 10);
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
A.value && (Q.value && A.value.unobserve(Q.value), A.value.disconnect()), A.value = new ResizeObserver(a), Q.value = ee.value.parentNode, A.value.observe(Q.value);
|
|
127
|
+
}
|
|
128
|
+
Ue();
|
|
129
|
+
}
|
|
130
|
+
Gt(() => {
|
|
131
|
+
A.value && (Q.value && A.value.unobserve(Q.value), A.value.disconnect());
|
|
132
|
+
});
|
|
133
|
+
const n = z(() => {
|
|
134
|
+
const { height: a, width: r } = ue.value, { right: t } = ue.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left, W = r - _ - r * t, B = a - l - e.value.style.chart.padding.bottom;
|
|
135
|
+
return {
|
|
136
|
+
chartHeight: a,
|
|
137
|
+
chartWidth: r,
|
|
138
|
+
top: l,
|
|
139
|
+
right: c,
|
|
140
|
+
bottom: u,
|
|
141
|
+
left: _,
|
|
142
|
+
width: W,
|
|
143
|
+
height: B < 0 ? 0 : B
|
|
144
|
+
};
|
|
145
|
+
}), V = z(() => f.dataset.map((a, r) => {
|
|
146
|
+
const t = ta(a.color) || Nt.value[r] || be[r] || be[r % be.length];
|
|
147
|
+
return {
|
|
148
|
+
...a,
|
|
149
|
+
// In distributed mode, all values are converted to positive
|
|
150
|
+
series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
|
|
151
|
+
// Store signs to manage display of neg values in distributed mode
|
|
152
|
+
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
153
|
+
absoluteIndex: r,
|
|
154
|
+
id: ut(),
|
|
155
|
+
color: t
|
|
156
|
+
};
|
|
157
|
+
})), E = z(() => Math.max(...V.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), v = p({
|
|
158
|
+
start: 0,
|
|
159
|
+
end: Math.max(...f.dataset.map((a) => a.series.length))
|
|
160
|
+
});
|
|
161
|
+
function Be() {
|
|
162
|
+
Ue();
|
|
163
|
+
}
|
|
164
|
+
async function Ue() {
|
|
165
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && K.value ? (e.value.style.chart.zoom.startIndex !== null && (await ge(), await ge(), K.value && K.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ge(), await ge(), K.value && K.value.setEndValue(It(e.value.style.chart.zoom.endIndex + 1)))) : (v.value = {
|
|
166
|
+
start: 0,
|
|
167
|
+
end: Math.max(...f.dataset.map((a) => a.series.length))
|
|
168
|
+
}, Oe.value += 1);
|
|
169
|
+
}
|
|
170
|
+
function It(a) {
|
|
171
|
+
const r = Math.max(...f.dataset.map((t) => t.series.length));
|
|
172
|
+
return a > r ? r : 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;
|
|
173
|
+
}
|
|
174
|
+
const y = z(() => {
|
|
175
|
+
let a;
|
|
176
|
+
return e.value.orientation === "vertical" ? a = n.value.width / (v.value.end - v.value.start) : a = n.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
|
|
177
|
+
}), ae = z(() => me(V.value.filter((a) => !S.value.includes(a.id))).slice(v.value.start, v.value.end)), Ot = z(() => me(V.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
178
|
+
...a,
|
|
179
|
+
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
180
|
+
}))).slice(v.value.start, v.value.end)), ce = z(() => {
|
|
181
|
+
const a = V.value.filter((r) => !S.value.includes(r.id));
|
|
182
|
+
return {
|
|
183
|
+
positive: me(a.map((r) => ({
|
|
184
|
+
...r,
|
|
185
|
+
series: r.series.slice(v.value.start, v.value.end).map((t) => t >= 0 ? t : 0)
|
|
186
|
+
}))),
|
|
187
|
+
negative: me(a.map((r) => ({
|
|
188
|
+
...r,
|
|
189
|
+
series: r.series.slice(v.value.start, v.value.end).map((t) => t < 0 ? t : 0)
|
|
190
|
+
})))
|
|
191
|
+
};
|
|
192
|
+
}), O = z(() => {
|
|
193
|
+
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(...ce.value.positive), r = Math.min(...ce.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(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? vt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
194
|
+
return l.ticks.map((c) => ({
|
|
195
|
+
zero: n.value.bottom - n.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
196
|
+
y: n.value.bottom - n.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
197
|
+
x: n.value.left - 8,
|
|
198
|
+
horizontal_zero: n.value.left + n.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
199
|
+
horizontal_x: n.value.left + n.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
200
|
+
horizontal_y: n.value.bottom - 8,
|
|
201
|
+
value: c
|
|
202
|
+
}));
|
|
203
|
+
}), $ = z(() => ba({
|
|
204
|
+
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
205
|
+
maxDatapoints: E.value,
|
|
206
|
+
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
207
|
+
start: v.value.start,
|
|
208
|
+
end: v.value.end
|
|
209
|
+
})), w = z(() => {
|
|
210
|
+
if (!Z.value) return [];
|
|
211
|
+
let a = Array(E.value).fill(0), r = Array(E.value).fill(0), t = Array(E.value).fill(0), l = Array(E.value).fill(0);
|
|
212
|
+
const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, W = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? vt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: B, max: le } = W, U = le + (B >= 0 ? 0 : Math.abs(B)) || 1, M = n.value.height, ye = n.value.width, lt = O.value[0] ? O.value[0].zero : n.value.bottom, rt = O.value[0] ? O.value[0].horizontal_zero : n.value.left;
|
|
213
|
+
return V.value.filter((re) => !S.value.includes(re.id)).map((re) => {
|
|
214
|
+
const R = re.series.slice(v.value.start, v.value.end), Et = re.signedSeries.slice(v.value.start, v.value.end), Ft = R.map((m, x) => n.value.left + y.value * x + y.value * e.value.style.chart.bars.gapRatio / 4), Dt = R.map((m, x) => n.value.top + y.value * x + y.value * e.value.style.chart.bars.gapRatio / 4), Ht = R.map((m, x) => {
|
|
215
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / U;
|
|
216
|
+
let Y, I;
|
|
217
|
+
return m > 0 ? (I = M * N, Y = lt - I - a[x], a[x] += I) : (I = M * N, Y = lt + t[x], t[x] += Math.abs(I)), Y;
|
|
218
|
+
}), Wt = R.map((m, x) => {
|
|
219
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / U;
|
|
220
|
+
let Y, I;
|
|
221
|
+
return m > 0 ? (I = ye * N, Y = rt + r[x], r[x] += I) : (I = ye * N, Y = rt - Math.abs(I) - l[x], l[x] += Math.abs(I)), Y;
|
|
222
|
+
}), Bt = R.map((m, x) => {
|
|
223
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / U;
|
|
224
|
+
return m > 0 ? M * N : M * Math.abs(N);
|
|
225
|
+
}), Ut = R.map((m, x) => {
|
|
226
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / U;
|
|
227
|
+
return m > 0 ? ye * N : ye * Math.abs(N);
|
|
228
|
+
}), Yt = R.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
|
|
229
|
+
return {
|
|
230
|
+
...re,
|
|
231
|
+
proportions: R.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Yt),
|
|
232
|
+
series: R,
|
|
233
|
+
signedSeries: Et,
|
|
234
|
+
x: Ft,
|
|
235
|
+
y: Ht,
|
|
236
|
+
height: Bt,
|
|
237
|
+
horizontal_width: Ut,
|
|
238
|
+
horizontal_y: Dt,
|
|
239
|
+
horizontal_x: Wt
|
|
240
|
+
};
|
|
241
|
+
});
|
|
242
|
+
}), Ye = z(() => Ot.value.map((a, r) => ({
|
|
243
|
+
value: a,
|
|
244
|
+
sign: a >= 0 ? 1 : -1
|
|
245
|
+
})));
|
|
246
|
+
function ve(a, r, t, l, c) {
|
|
247
|
+
const u = c === -1 && a >= 0 ? -a : a;
|
|
248
|
+
return gt(
|
|
249
|
+
e.value.style.chart.bars.dataLabels.formatter,
|
|
250
|
+
u,
|
|
251
|
+
q({
|
|
252
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
253
|
+
v: u,
|
|
254
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
255
|
+
r: e.value.style.chart.bars.dataLabels.rounding
|
|
256
|
+
}),
|
|
257
|
+
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
function Xe(a, r, t, l) {
|
|
261
|
+
return gt(
|
|
262
|
+
e.value.style.chart.bars.dataLabels.formatter,
|
|
263
|
+
a,
|
|
264
|
+
q({
|
|
265
|
+
v: isNaN(a) ? 0 : a,
|
|
266
|
+
s: "%",
|
|
267
|
+
r: e.value.style.chart.bars.dataLabels.rounding
|
|
268
|
+
}),
|
|
269
|
+
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
function Ge(a) {
|
|
273
|
+
const r = JSON.parse(JSON.stringify(w.value)).map((t) => ({
|
|
274
|
+
name: t.name,
|
|
275
|
+
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
276
|
+
proportion: t.proportions[a] || null,
|
|
277
|
+
color: t.color,
|
|
278
|
+
id: t.id
|
|
279
|
+
}));
|
|
280
|
+
ke("selectDatapoint", { datapoint: r, period: $.value[a] });
|
|
281
|
+
}
|
|
282
|
+
function Je(a) {
|
|
283
|
+
te.value = a, ie.value = !0;
|
|
284
|
+
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
|
|
285
|
+
name: c.name,
|
|
286
|
+
absoluteIndex: c.absoluteIndex,
|
|
287
|
+
value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
|
|
288
|
+
proportion: c.proportions[a] || null,
|
|
289
|
+
color: c.color,
|
|
290
|
+
id: c.id
|
|
291
|
+
}));
|
|
292
|
+
we.value = {
|
|
293
|
+
datapoint: t,
|
|
294
|
+
seriesIndex: a,
|
|
295
|
+
config: e.value,
|
|
296
|
+
series: w.value
|
|
297
|
+
};
|
|
298
|
+
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
299
|
+
if (yt(r) && sa(() => r({
|
|
300
|
+
seriesIndex: a,
|
|
301
|
+
datapoint: t,
|
|
302
|
+
series: w.value,
|
|
303
|
+
config: e.value
|
|
304
|
+
})))
|
|
305
|
+
ze.value = r({
|
|
306
|
+
seriesIndex: a,
|
|
307
|
+
datapoint: t,
|
|
308
|
+
series: w.value,
|
|
309
|
+
config: e.value
|
|
310
|
+
});
|
|
311
|
+
else {
|
|
312
|
+
const {
|
|
313
|
+
showValue: c,
|
|
314
|
+
showPercentage: u,
|
|
315
|
+
borderColor: _,
|
|
316
|
+
roundingValue: W,
|
|
317
|
+
roundingPercentage: B
|
|
318
|
+
} = e.value.style.chart.tooltip;
|
|
319
|
+
let le = "";
|
|
320
|
+
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (le += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
321
|
+
const U = [
|
|
322
|
+
c && u ? "(" : "",
|
|
323
|
+
c && u ? ")" : ""
|
|
324
|
+
];
|
|
325
|
+
t.reverse().forEach((M) => {
|
|
326
|
+
le += `
|
|
327
|
+
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
328
|
+
<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}"/>${St.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${P.value}_${M.absoluteIndex})"/>` : ""}</svg>
|
|
329
|
+
${M.name}${c || u ? ":" : ""} ${c ? q({
|
|
330
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
331
|
+
v: M.value,
|
|
332
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
333
|
+
r: W
|
|
334
|
+
}) : ""} ${U[0]}${u ? q({
|
|
335
|
+
v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
|
|
336
|
+
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
337
|
+
s: "%",
|
|
338
|
+
r: B
|
|
339
|
+
}) : ""}${U[1]}
|
|
340
|
+
</div>
|
|
341
|
+
`;
|
|
342
|
+
}), ze.value = `<div>${le}</div>`;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function Rt(a) {
|
|
346
|
+
ne.value = a, $e.value += 1;
|
|
347
|
+
}
|
|
348
|
+
function qe() {
|
|
349
|
+
C.value.showTable = !C.value.showTable;
|
|
350
|
+
}
|
|
351
|
+
function Ze() {
|
|
352
|
+
C.value.dataLabels.show = !C.value.dataLabels.show;
|
|
353
|
+
}
|
|
354
|
+
function Ke() {
|
|
355
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
356
|
+
}
|
|
357
|
+
function Pt() {
|
|
358
|
+
return w.value;
|
|
359
|
+
}
|
|
360
|
+
const Qe = z(() => {
|
|
361
|
+
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
362
|
+
const a = w.value.map(({ name: t, color: l }) => ({
|
|
363
|
+
label: t,
|
|
364
|
+
color: l
|
|
365
|
+
})), r = [];
|
|
366
|
+
return $.value.forEach((t) => {
|
|
367
|
+
const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
368
|
+
V.value.forEach((c) => {
|
|
369
|
+
l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
370
|
+
}), r.push(l);
|
|
371
|
+
}), { head: a, body: r };
|
|
372
|
+
});
|
|
373
|
+
function je(a = null) {
|
|
374
|
+
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Qe.value.head.map((_) => _.label)], l = Qe.value.body, c = r.concat([t]).concat(l), u = ra(c);
|
|
375
|
+
a ? a(u) : oa({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
376
|
+
}
|
|
377
|
+
const he = z(() => {
|
|
378
|
+
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>');
|
|
379
|
+
let r = [];
|
|
380
|
+
for (let c = 0; c < E.value; c += 1) {
|
|
381
|
+
const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, W) => _ + W, 0);
|
|
382
|
+
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
383
|
+
}
|
|
384
|
+
const t = {
|
|
385
|
+
th: {
|
|
386
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
387
|
+
color: e.value.table.th.color,
|
|
388
|
+
outline: e.value.table.th.outline
|
|
389
|
+
},
|
|
390
|
+
td: {
|
|
391
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
392
|
+
color: e.value.table.td.color,
|
|
393
|
+
outline: e.value.table.td.outline
|
|
394
|
+
},
|
|
395
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
396
|
+
}, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
397
|
+
return { head: a, body: r.slice(0, v.value.end - v.value.start), config: t, colNames: l };
|
|
398
|
+
});
|
|
399
|
+
function At(a, r) {
|
|
400
|
+
if (ke("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
|
|
401
|
+
S.value = S.value.filter((t) => t !== r.id);
|
|
402
|
+
else {
|
|
403
|
+
if (S.value.length === V.value.length - 1) return;
|
|
404
|
+
S.value.push(r.id);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
const et = z(() => V.value.map((a, r) => ({
|
|
408
|
+
...a,
|
|
409
|
+
shape: "square"
|
|
410
|
+
})).map((a) => ({
|
|
411
|
+
...a,
|
|
412
|
+
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
413
|
+
segregate: () => At(a.absoluteIndex, a),
|
|
414
|
+
isSegregated: S.value.includes(a.id)
|
|
415
|
+
}))), Vt = z(() => ({
|
|
416
|
+
cy: "stackbar-legend",
|
|
417
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
418
|
+
color: e.value.style.chart.legend.color,
|
|
419
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
420
|
+
paddingBottom: 12,
|
|
421
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
422
|
+
})), de = p(!1);
|
|
423
|
+
function Le() {
|
|
424
|
+
de.value = !de.value;
|
|
425
|
+
}
|
|
426
|
+
function tt(a, r) {
|
|
427
|
+
const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
428
|
+
name: l.name,
|
|
429
|
+
value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
|
|
430
|
+
proportion: l.proportions[r] || null,
|
|
431
|
+
color: l.color,
|
|
432
|
+
id: l.id
|
|
433
|
+
}));
|
|
434
|
+
ke("selectTimeLabel", {
|
|
435
|
+
datapoint: t,
|
|
436
|
+
absoluteIndex: a.absoluteIndex,
|
|
437
|
+
label: a.text
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
function at(a, r) {
|
|
441
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
442
|
+
}
|
|
443
|
+
return ft({
|
|
444
|
+
getData: Pt,
|
|
445
|
+
generatePdf: De,
|
|
446
|
+
generateCsv: je,
|
|
447
|
+
generateImage: He,
|
|
448
|
+
toggleTable: qe,
|
|
449
|
+
toggleLabels: Ze,
|
|
450
|
+
toggleTooltip: Ke,
|
|
451
|
+
toggleAnnotator: Le
|
|
452
|
+
}), (a, r) => (o(), s("div", {
|
|
453
|
+
id: `stackbar_${P.value}`,
|
|
454
|
+
ref_key: "stackbarChart",
|
|
455
|
+
ref: ee,
|
|
456
|
+
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
457
|
+
style: G(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
458
|
+
onMouseenter: r[6] || (r[6] = () => g(Re)(!0)),
|
|
459
|
+
onMouseleave: r[7] || (r[7] = () => g(Re)(!1))
|
|
460
|
+
}, [
|
|
461
|
+
e.value.userOptions.buttons.annotator ? (o(), j(g(wt), {
|
|
462
|
+
key: 0,
|
|
463
|
+
svgRef: g(Ae),
|
|
464
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
465
|
+
color: e.value.style.chart.color,
|
|
466
|
+
active: de.value,
|
|
467
|
+
onClose: Le
|
|
468
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
469
|
+
k(a.$slots, "userConfig", {}, void 0, !0),
|
|
470
|
+
e.value.style.chart.title.text ? (o(), s("div", {
|
|
471
|
+
key: 1,
|
|
472
|
+
ref_key: "chartTitle",
|
|
473
|
+
ref: Me,
|
|
474
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
475
|
+
}, [
|
|
476
|
+
se(ya, {
|
|
477
|
+
config: {
|
|
478
|
+
title: {
|
|
479
|
+
cy: "stackbar-title",
|
|
480
|
+
...e.value.style.chart.title
|
|
481
|
+
},
|
|
482
|
+
subtitle: {
|
|
483
|
+
cy: "stackbar-subtitle",
|
|
484
|
+
...e.value.style.chart.title.subtitle
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}, null, 8, ["config"])
|
|
488
|
+
], 512)) : d("", !0),
|
|
489
|
+
e.value.userOptions.show && Z.value && (g(Pe) || g(Ce)) ? (o(), j(g(_t), {
|
|
490
|
+
ref: "details",
|
|
491
|
+
key: `user_option_${$e.value}`,
|
|
492
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
493
|
+
color: e.value.style.chart.color,
|
|
494
|
+
isPrinting: g(Ee),
|
|
495
|
+
isImaging: g(Fe),
|
|
496
|
+
uid: P.value,
|
|
497
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
498
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
499
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
500
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
501
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
502
|
+
hasLabel: e.value.userOptions.buttons.labels,
|
|
503
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
504
|
+
isFullscreen: ne.value,
|
|
505
|
+
chartElement: ee.value,
|
|
506
|
+
position: e.value.userOptions.position,
|
|
507
|
+
isTooltip: C.value.showTooltip,
|
|
508
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
509
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
510
|
+
isAnnotation: de.value,
|
|
511
|
+
callbacks: e.value.userOptions.callbacks,
|
|
512
|
+
onToggleFullscreen: Rt,
|
|
513
|
+
onGeneratePdf: g(De),
|
|
514
|
+
onGenerateCsv: je,
|
|
515
|
+
onGenerateImage: g(He),
|
|
516
|
+
onToggleTable: qe,
|
|
517
|
+
onToggleLabels: Ze,
|
|
518
|
+
onToggleTooltip: Ke,
|
|
519
|
+
onToggleAnnotator: Le,
|
|
520
|
+
style: G({
|
|
521
|
+
visibility: g(Pe) ? g(Ce) ? "visible" : "hidden" : "visible"
|
|
522
|
+
})
|
|
523
|
+
}, nt({ _: 2 }, [
|
|
524
|
+
a.$slots.menuIcon ? {
|
|
525
|
+
name: "menuIcon",
|
|
526
|
+
fn: L(({ isOpen: t, color: l }) => [
|
|
527
|
+
k(a.$slots, "menuIcon", F(D({ isOpen: t, color: l })), void 0, !0)
|
|
528
|
+
]),
|
|
529
|
+
key: "0"
|
|
530
|
+
} : void 0,
|
|
531
|
+
a.$slots.optionTooltip ? {
|
|
532
|
+
name: "optionTooltip",
|
|
533
|
+
fn: L(() => [
|
|
534
|
+
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
535
|
+
]),
|
|
536
|
+
key: "1"
|
|
537
|
+
} : void 0,
|
|
538
|
+
a.$slots.optionPdf ? {
|
|
539
|
+
name: "optionPdf",
|
|
540
|
+
fn: L(() => [
|
|
541
|
+
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
542
|
+
]),
|
|
543
|
+
key: "2"
|
|
544
|
+
} : void 0,
|
|
545
|
+
a.$slots.optionCsv ? {
|
|
546
|
+
name: "optionCsv",
|
|
547
|
+
fn: L(() => [
|
|
548
|
+
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
549
|
+
]),
|
|
550
|
+
key: "3"
|
|
551
|
+
} : void 0,
|
|
552
|
+
a.$slots.optionImg ? {
|
|
553
|
+
name: "optionImg",
|
|
554
|
+
fn: L(() => [
|
|
555
|
+
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
556
|
+
]),
|
|
557
|
+
key: "4"
|
|
558
|
+
} : void 0,
|
|
559
|
+
a.$slots.optionTable ? {
|
|
560
|
+
name: "optionTable",
|
|
561
|
+
fn: L(() => [
|
|
562
|
+
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
563
|
+
]),
|
|
564
|
+
key: "5"
|
|
565
|
+
} : void 0,
|
|
566
|
+
a.$slots.optionLabels ? {
|
|
567
|
+
name: "optionLabels",
|
|
568
|
+
fn: L(() => [
|
|
569
|
+
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
570
|
+
]),
|
|
571
|
+
key: "6"
|
|
572
|
+
} : void 0,
|
|
573
|
+
a.$slots.optionFullscreen ? {
|
|
574
|
+
name: "optionFullscreen",
|
|
575
|
+
fn: L(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
576
|
+
k(a.$slots, "optionFullscreen", F(D({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
577
|
+
]),
|
|
578
|
+
key: "7"
|
|
579
|
+
} : void 0,
|
|
580
|
+
a.$slots.optionAnnotator ? {
|
|
581
|
+
name: "optionAnnotator",
|
|
582
|
+
fn: L(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
583
|
+
k(a.$slots, "optionAnnotator", F(D({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
584
|
+
]),
|
|
585
|
+
key: "8"
|
|
586
|
+
} : void 0
|
|
587
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
588
|
+
Z.value ? (o(), s("svg", {
|
|
589
|
+
key: 3,
|
|
590
|
+
ref_key: "svgRef",
|
|
591
|
+
ref: Ae,
|
|
592
|
+
xmlns: g(aa),
|
|
593
|
+
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
594
|
+
style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
595
|
+
}, [
|
|
596
|
+
se(g(kt)),
|
|
597
|
+
a.$slots["chart-background"] ? (o(), s("foreignObject", {
|
|
598
|
+
key: 0,
|
|
599
|
+
x: n.value.left,
|
|
600
|
+
y: n.value.top,
|
|
601
|
+
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
602
|
+
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
603
|
+
style: {
|
|
604
|
+
pointerEvents: "none"
|
|
605
|
+
}
|
|
606
|
+
}, [
|
|
607
|
+
k(a.$slots, "chart-background", {}, void 0, !0)
|
|
608
|
+
], 8, xa)) : d("", !0),
|
|
609
|
+
e.value.style.chart.bars.gradient.show ? (o(), s("defs", ka, [
|
|
610
|
+
(o(!0), s(h, null, b(w.value, (t, l) => (o(), s("linearGradient", {
|
|
611
|
+
id: `gradient_${t.id}`,
|
|
612
|
+
x1: "0%",
|
|
613
|
+
y1: "0%",
|
|
614
|
+
x2: "0%",
|
|
615
|
+
y2: "100%"
|
|
616
|
+
}, [
|
|
617
|
+
J("stop", {
|
|
618
|
+
offset: "0%",
|
|
619
|
+
"stop-color": t.color
|
|
620
|
+
}, null, 8, za),
|
|
621
|
+
J("stop", {
|
|
622
|
+
offset: "61.8%",
|
|
623
|
+
"stop-color": g(la)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
624
|
+
}, null, 8, Ca),
|
|
625
|
+
J("stop", {
|
|
626
|
+
offset: "100%",
|
|
627
|
+
"stop-color": t.color
|
|
628
|
+
}, null, 8, _a)
|
|
629
|
+
], 8, wa))), 256))
|
|
630
|
+
])) : d("", !0),
|
|
631
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 2 }, b(O.value, (t, l) => (o(), s("line", {
|
|
632
|
+
x1: n.value.left,
|
|
633
|
+
x2: n.value.right,
|
|
634
|
+
y1: t.y,
|
|
635
|
+
y2: t.y,
|
|
636
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
637
|
+
"stroke-width": 1,
|
|
638
|
+
"stroke-linecap": "round"
|
|
639
|
+
}, null, 8, La))), 256)) : d("", !0),
|
|
640
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 3 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), s("line", {
|
|
641
|
+
x1: n.value.left,
|
|
642
|
+
x2: n.value.right,
|
|
643
|
+
y1: n.value.top + y.value * l,
|
|
644
|
+
y2: n.value.top + y.value * l,
|
|
645
|
+
stroke: e.value.style.chart.grid.y.axisColor,
|
|
646
|
+
"stroke-width": 1,
|
|
647
|
+
"stroke-linecap": "round"
|
|
648
|
+
}, null, 8, Sa))), 256)) : d("", !0),
|
|
649
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 4 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), s("line", {
|
|
650
|
+
x1: n.value.left + y.value * l,
|
|
651
|
+
x2: n.value.left + y.value * l,
|
|
652
|
+
y1: n.value.top,
|
|
653
|
+
y2: n.value.bottom,
|
|
654
|
+
stroke: e.value.style.chart.grid.y.axisColor,
|
|
655
|
+
"stroke-width": 1,
|
|
656
|
+
"stroke-linecap": "round"
|
|
657
|
+
}, null, 8, $a))), 256)) : d("", !0),
|
|
658
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 5 }, b(O.value, (t, l) => (o(), s("line", {
|
|
659
|
+
x1: t.horizontal_x,
|
|
660
|
+
x2: t.horizontal_x,
|
|
661
|
+
y1: n.value.top,
|
|
662
|
+
y2: n.value.bottom,
|
|
663
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
664
|
+
"stroke-width": 1,
|
|
665
|
+
"stroke-linecap": "round"
|
|
666
|
+
}, null, 8, Ma))), 256)) : d("", !0),
|
|
667
|
+
(o(!0), s(h, null, b(w.value, (t, l) => (o(), s("g", null, [
|
|
668
|
+
a.$slots.pattern ? (o(), s("defs", Ta, [
|
|
669
|
+
k(a.$slots, "pattern", Se({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${P.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
670
|
+
])) : d("", !0),
|
|
671
|
+
e.value.orientation === "vertical" ? (o(), s(h, { key: 1 }, [
|
|
672
|
+
(o(!0), s(h, null, b(t.x, (c, u) => (o(), s("rect", {
|
|
673
|
+
x: c,
|
|
674
|
+
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
675
|
+
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
676
|
+
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,
|
|
677
|
+
width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
678
|
+
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
679
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
680
|
+
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
681
|
+
"stroke-linecap": "round",
|
|
682
|
+
"stroke-linejoin": "round",
|
|
683
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
684
|
+
}, null, 10, Na))), 256)),
|
|
685
|
+
a.$slots.pattern ? (o(), s("g", Ia, [
|
|
686
|
+
(o(!0), s(h, null, b(t.x, (c, u) => (o(), s("rect", {
|
|
687
|
+
x: c,
|
|
688
|
+
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
689
|
+
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
690
|
+
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,
|
|
691
|
+
width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
692
|
+
fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
|
|
693
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
694
|
+
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
695
|
+
"stroke-linecap": "round",
|
|
696
|
+
"stroke-linejoin": "round",
|
|
697
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
698
|
+
}, null, 10, Oa))), 256))
|
|
699
|
+
])) : d("", !0)
|
|
700
|
+
], 64)) : (o(), s(h, { key: 2 }, [
|
|
701
|
+
(o(!0), s(h, null, b(t.horizontal_x, (c, u) => (o(), s("rect", {
|
|
702
|
+
x: g(pe)(c, n.value.left),
|
|
703
|
+
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
704
|
+
width: g(pe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
705
|
+
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,
|
|
706
|
+
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
707
|
+
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
708
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
709
|
+
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
710
|
+
"stroke-linecap": "round",
|
|
711
|
+
"stroke-linejoin": "round",
|
|
712
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
713
|
+
}, null, 10, Ra))), 256)),
|
|
714
|
+
a.$slots.pattern ? (o(), s("g", Pa, [
|
|
715
|
+
(o(!0), s(h, null, b(t.horizontal_x, (c, u) => (o(), s("rect", {
|
|
716
|
+
x: g(pe)(c, n.value.left),
|
|
717
|
+
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
718
|
+
width: g(pe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
719
|
+
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,
|
|
720
|
+
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
721
|
+
fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
|
|
722
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
723
|
+
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
724
|
+
"stroke-linecap": "round",
|
|
725
|
+
"stroke-linejoin": "round",
|
|
726
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
727
|
+
}, null, 10, Aa))), 256))
|
|
728
|
+
])) : d("", !0)
|
|
729
|
+
], 64))
|
|
730
|
+
]))), 256)),
|
|
731
|
+
e.value.style.chart.grid.x.showAxis ? (o(), s("line", {
|
|
732
|
+
key: 6,
|
|
733
|
+
x1: n.value.left,
|
|
734
|
+
x2: n.value.right,
|
|
735
|
+
y1: n.value.bottom,
|
|
736
|
+
y2: n.value.bottom,
|
|
737
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
738
|
+
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
739
|
+
"stroke-linecap": "round",
|
|
740
|
+
"stroke-linejoin": "round"
|
|
741
|
+
}, null, 8, Va)) : d("", !0),
|
|
742
|
+
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), s("line", {
|
|
743
|
+
key: 7,
|
|
744
|
+
x1: n.value.left,
|
|
745
|
+
x2: n.value.left,
|
|
746
|
+
y1: n.value.top,
|
|
747
|
+
y2: n.value.bottom,
|
|
748
|
+
stroke: e.value.style.chart.grid.y.axisColor,
|
|
749
|
+
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
750
|
+
"stroke-linecap": "round",
|
|
751
|
+
"stroke-linejoin": "round"
|
|
752
|
+
}, null, 8, Ea)) : d("", !0),
|
|
753
|
+
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), s("text", {
|
|
754
|
+
key: 8,
|
|
755
|
+
x: n.value.left + n.value.width / 2,
|
|
756
|
+
y: n.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
757
|
+
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
758
|
+
fill: e.value.style.chart.grid.x.axisName.color,
|
|
759
|
+
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
760
|
+
"text-anchor": "middle"
|
|
761
|
+
}, T(e.value.style.chart.grid.x.axisName.text), 9, Fa)) : d("", !0),
|
|
762
|
+
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), s("text", {
|
|
763
|
+
key: 9,
|
|
764
|
+
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
765
|
+
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
766
|
+
fill: e.value.style.chart.grid.y.axisName.color,
|
|
767
|
+
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
768
|
+
"text-anchor": "middle"
|
|
769
|
+
}, T(e.value.style.chart.grid.y.axisName.text), 9, Da)) : d("", !0),
|
|
770
|
+
C.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 10 }, [
|
|
771
|
+
(o(!0), s(h, null, b(w.value, (t, l) => (o(), s("g", null, [
|
|
772
|
+
(o(!0), s(h, null, b(t.x, (c, u) => (o(), s(h, null, [
|
|
773
|
+
at(t.series[u], t.proportions[u]) ? (o(), s("text", {
|
|
774
|
+
key: 0,
|
|
775
|
+
x: c + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
776
|
+
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
777
|
+
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
778
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? g(dt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
779
|
+
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
780
|
+
"text-anchor": "middle"
|
|
781
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Xe(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Ha)) : d("", !0)
|
|
782
|
+
], 64))), 256))
|
|
783
|
+
]))), 256)),
|
|
784
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), s("g", Wa, [
|
|
785
|
+
(o(!0), s(h, null, b(Ye.value, (t, l) => (o(), s(h, null, [
|
|
786
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
|
|
787
|
+
key: 0,
|
|
788
|
+
x: n.value.left + y.value * l + y.value / 2,
|
|
789
|
+
y: n.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
790
|
+
"text-anchor": "middle",
|
|
791
|
+
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
792
|
+
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
793
|
+
fill: e.value.style.chart.bars.totalValues.color
|
|
794
|
+
}, T(ve(t.value, t, l, t.sign)), 9, Ba)) : d("", !0)
|
|
795
|
+
], 64))), 256))
|
|
796
|
+
])) : d("", !0)
|
|
797
|
+
], 64)) : d("", !0),
|
|
798
|
+
C.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 11 }, [
|
|
799
|
+
(o(!0), s(h, null, b(w.value, (t, l) => (o(), s("g", null, [
|
|
800
|
+
(o(!0), s(h, null, b(t.horizontal_x, (c, u) => (o(), s(h, null, [
|
|
801
|
+
at(t.series[u], t.proportions[u]) ? (o(), s("text", {
|
|
802
|
+
key: 0,
|
|
803
|
+
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
804
|
+
y: t.horizontal_y[u] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
805
|
+
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
806
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? g(dt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
807
|
+
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
808
|
+
"text-anchor": "middle"
|
|
809
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Xe(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Ua)) : d("", !0)
|
|
810
|
+
], 64))), 256))
|
|
811
|
+
]))), 256)),
|
|
812
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), s("g", Ya, [
|
|
813
|
+
(o(!0), s(h, null, b(Ye.value, (t, l) => (o(), s(h, null, [
|
|
814
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
|
|
815
|
+
key: 0,
|
|
816
|
+
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
817
|
+
y: n.value.top + y.value * l + y.value / 2,
|
|
818
|
+
"text-anchor": "start",
|
|
819
|
+
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
820
|
+
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
821
|
+
fill: e.value.style.chart.bars.totalValues.color
|
|
822
|
+
}, T(ve(t.value, t, l, t.sign)), 9, Xa)) : d("", !0)
|
|
823
|
+
], 64))), 256))
|
|
824
|
+
])) : d("", !0)
|
|
825
|
+
], 64)) : d("", !0),
|
|
826
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), s(h, { key: 12 }, [
|
|
827
|
+
(o(!0), s(h, null, b(O.value, (t, l) => (o(), s("line", {
|
|
828
|
+
x1: n.value.left,
|
|
829
|
+
x2: n.value.left - 6,
|
|
830
|
+
y1: t.y,
|
|
831
|
+
y2: t.y,
|
|
832
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
833
|
+
"stroke-width": 1
|
|
834
|
+
}, null, 8, Ga))), 256)),
|
|
835
|
+
(o(!0), s(h, null, b(O.value, (t, l) => (o(), s("text", {
|
|
836
|
+
x: t.x,
|
|
837
|
+
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
838
|
+
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
839
|
+
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
840
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
841
|
+
"text-anchor": "end"
|
|
842
|
+
}, T(g(q)({
|
|
843
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
844
|
+
v: t.value,
|
|
845
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
846
|
+
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
847
|
+
})), 9, Ja))), 256))
|
|
848
|
+
], 64)) : d("", !0),
|
|
849
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), s(h, { key: 13 }, [
|
|
850
|
+
(o(!0), s(h, null, b(O.value, (t, l) => (o(), s("line", {
|
|
851
|
+
x1: t.horizontal_x,
|
|
852
|
+
x2: t.horizontal_x,
|
|
853
|
+
y1: n.value.bottom,
|
|
854
|
+
y2: n.value.bottom + 6,
|
|
855
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
856
|
+
"stroke-width": 1,
|
|
857
|
+
"stroke-linecap": "round"
|
|
858
|
+
}, null, 8, qa))), 256)),
|
|
859
|
+
(o(!0), s(h, null, b(O.value, (t, l) => (o(), s("text", {
|
|
860
|
+
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
861
|
+
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
862
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
863
|
+
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
864
|
+
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})`
|
|
865
|
+
}, T(g(q)({
|
|
866
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
867
|
+
v: t.value,
|
|
868
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
869
|
+
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
870
|
+
})), 9, Za))), 256))
|
|
871
|
+
], 64)) : d("", !0),
|
|
872
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 14 }, [
|
|
873
|
+
a.$slots["time-label"] ? (o(), s("g", Ka, [
|
|
874
|
+
(o(!0), s(h, null, b($.value, (t, l) => (o(), s("g", null, [
|
|
875
|
+
k(a.$slots, "time-label", Se({ ref_for: !0 }, {
|
|
876
|
+
x: n.value.left + y.value * l + y.value / 2,
|
|
877
|
+
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
878
|
+
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
879
|
+
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
880
|
+
transform: `translate(${n.value.left + y.value * l + 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})`,
|
|
881
|
+
absoluteIndex: t.absoluteIndex,
|
|
882
|
+
content: t.text,
|
|
883
|
+
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
884
|
+
show: !0
|
|
885
|
+
}), void 0, !0)
|
|
886
|
+
]))), 256))
|
|
887
|
+
])) : (o(), s("g", Qa, [
|
|
888
|
+
(o(!0), s(h, null, b($.value, (t, l) => (o(), s("text", {
|
|
889
|
+
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
890
|
+
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
891
|
+
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
892
|
+
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
893
|
+
transform: `translate(${n.value.left + y.value * l + 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})`,
|
|
894
|
+
style: {
|
|
895
|
+
cursor: "pointer"
|
|
896
|
+
},
|
|
897
|
+
onClick: () => tt(t, l)
|
|
898
|
+
}, T(t.text), 9, ja))), 256))
|
|
899
|
+
]))
|
|
900
|
+
], 64)) : d("", !0),
|
|
901
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 15 }, [
|
|
902
|
+
a.$slots["time-label"] ? (o(), s("g", el, [
|
|
903
|
+
(o(!0), s(h, null, b($.value, (t, l) => (o(), s("g", null, [
|
|
904
|
+
k(a.$slots, "time-label", Se({ ref_for: !0 }, {
|
|
905
|
+
x: n.value.left - 8,
|
|
906
|
+
y: n.value.top + y.value * l + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
907
|
+
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
908
|
+
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
909
|
+
transform: null,
|
|
910
|
+
absoluteIndex: t.absoluteIndex,
|
|
911
|
+
content: t.text,
|
|
912
|
+
textAnchor: "end",
|
|
913
|
+
show: !0
|
|
914
|
+
}), void 0, !0)
|
|
915
|
+
]))), 256))
|
|
916
|
+
])) : (o(), s("g", tl, [
|
|
917
|
+
(o(!0), s(h, null, b($.value, (t, l) => (o(), s("text", {
|
|
918
|
+
"text-anchor": "end",
|
|
919
|
+
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
920
|
+
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
921
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
922
|
+
x: n.value.left - 8,
|
|
923
|
+
y: n.value.top + y.value * l + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
924
|
+
style: {
|
|
925
|
+
cursor: "pointer"
|
|
926
|
+
},
|
|
927
|
+
onClick: () => tt(t, l)
|
|
928
|
+
}, T(t.text), 9, al))), 256))
|
|
929
|
+
]))
|
|
930
|
+
], 64)) : d("", !0),
|
|
931
|
+
C.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 16 }, b(v.value.end - v.value.start, (t, l) => (o(), s("rect", {
|
|
932
|
+
x: n.value.left + l * y.value,
|
|
933
|
+
y: n.value.top,
|
|
934
|
+
width: y.value,
|
|
935
|
+
height: n.value.height < 0 ? 0 : n.value.height,
|
|
936
|
+
onClick: (c) => Ge(l),
|
|
937
|
+
onMouseenter: (c) => Je(l),
|
|
938
|
+
onMouseleave: r[0] || (r[0] = (c) => {
|
|
939
|
+
te.value = null, ie.value = !1;
|
|
940
|
+
}),
|
|
941
|
+
fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
942
|
+
style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
943
|
+
}, null, 44, ll))), 256)) : d("", !0),
|
|
944
|
+
C.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 17 }, b(v.value.end - v.value.start, (t, l) => (o(), s("rect", {
|
|
945
|
+
x: n.value.left,
|
|
946
|
+
y: n.value.top + l * y.value,
|
|
947
|
+
width: n.value.width < 0 ? 0 : n.value.width,
|
|
948
|
+
height: y.value,
|
|
949
|
+
onClick: (c) => Ge(l),
|
|
950
|
+
onMouseenter: (c) => Je(l),
|
|
951
|
+
onMouseleave: r[1] || (r[1] = (c) => {
|
|
952
|
+
te.value = null, ie.value = !1;
|
|
953
|
+
}),
|
|
954
|
+
fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
955
|
+
style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
956
|
+
}, null, 44, rl))), 256)) : d("", !0),
|
|
957
|
+
k(a.$slots, "svg", F(D({ ...n.value })), void 0, !0)
|
|
958
|
+
], 12, pa)) : d("", !0),
|
|
959
|
+
a.$slots.watermark ? (o(), s("div", ol, [
|
|
960
|
+
k(a.$slots, "watermark", F(D({ isPrinting: g(Ee) || g(Fe) })), void 0, !0)
|
|
961
|
+
])) : d("", !0),
|
|
962
|
+
Z.value ? d("", !0) : (o(), j(g(zt), {
|
|
963
|
+
key: 5,
|
|
964
|
+
config: {
|
|
965
|
+
type: "bar",
|
|
966
|
+
style: {
|
|
967
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
968
|
+
bar: {
|
|
969
|
+
axis: {
|
|
970
|
+
color: "#CCCCCC"
|
|
971
|
+
},
|
|
972
|
+
color: "#CCCCCC"
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}, null, 8, ["config"])),
|
|
977
|
+
J("div", {
|
|
978
|
+
ref_key: "chartSlicer",
|
|
979
|
+
ref: Ne,
|
|
980
|
+
style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
981
|
+
"data-dom-to-png-ignore": ""
|
|
982
|
+
}, [
|
|
983
|
+
e.value.style.chart.zoom.show && E.value > 1 ? (o(), j(da, {
|
|
984
|
+
ref_key: "slicerComponent",
|
|
985
|
+
ref: K,
|
|
986
|
+
key: `slicer_${Oe.value}`,
|
|
987
|
+
background: e.value.style.chart.zoom.color,
|
|
988
|
+
borderColor: e.value.style.chart.backgroundColor,
|
|
989
|
+
fontSize: e.value.style.chart.zoom.fontSize,
|
|
990
|
+
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
991
|
+
labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? $.value[0].text : "",
|
|
992
|
+
labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? $.value.at(-1).text : "",
|
|
993
|
+
textColor: e.value.style.chart.color,
|
|
994
|
+
inputColor: e.value.style.chart.zoom.color,
|
|
995
|
+
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
996
|
+
max: Math.max(...xe.dataset.map((t) => t.series.length)),
|
|
997
|
+
min: 0,
|
|
998
|
+
valueStart: v.value.start,
|
|
999
|
+
valueEnd: v.value.end,
|
|
1000
|
+
start: v.value.start,
|
|
1001
|
+
"onUpdate:start": r[2] || (r[2] = (t) => v.value.start = t),
|
|
1002
|
+
end: v.value.end,
|
|
1003
|
+
"onUpdate:end": r[3] || (r[3] = (t) => v.value.end = t),
|
|
1004
|
+
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1005
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...xe.dataset.map((t) => t.series.length)),
|
|
1006
|
+
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1007
|
+
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1008
|
+
onReset: Be
|
|
1009
|
+
}, {
|
|
1010
|
+
"reset-action": L(({ reset: t }) => [
|
|
1011
|
+
k(a.$slots, "reset-action", F(D({ reset: t })), void 0, !0)
|
|
1012
|
+
]),
|
|
1013
|
+
_: 3
|
|
1014
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0)
|
|
1015
|
+
], 4),
|
|
1016
|
+
se(g(Ct), {
|
|
1017
|
+
show: C.value.showTooltip && ie.value,
|
|
1018
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1019
|
+
color: e.value.style.chart.tooltip.color,
|
|
1020
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
1021
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
1022
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
1023
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
1024
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1025
|
+
position: e.value.style.chart.tooltip.position,
|
|
1026
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1027
|
+
parent: ee.value,
|
|
1028
|
+
content: ze.value,
|
|
1029
|
+
isFullscreen: ne.value,
|
|
1030
|
+
isCustom: g(yt)(e.value.style.chart.tooltip.customFormat)
|
|
1031
|
+
}, {
|
|
1032
|
+
"tooltip-before": L(() => [
|
|
1033
|
+
k(a.$slots, "tooltip-before", F(D({ ...we.value })), void 0, !0)
|
|
1034
|
+
]),
|
|
1035
|
+
"tooltip-after": L(() => [
|
|
1036
|
+
k(a.$slots, "tooltip-after", F(D({ ...we.value })), void 0, !0)
|
|
1037
|
+
]),
|
|
1038
|
+
_: 3
|
|
1039
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1040
|
+
J("div", {
|
|
1041
|
+
ref_key: "chartLegend",
|
|
1042
|
+
ref: Te
|
|
1043
|
+
}, [
|
|
1044
|
+
e.value.style.chart.legend.show && Z.value ? (o(), j(ha, {
|
|
1045
|
+
key: 0,
|
|
1046
|
+
legendSet: et.value,
|
|
1047
|
+
config: Vt.value,
|
|
1048
|
+
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1049
|
+
}, nt({
|
|
1050
|
+
item: L(({ legend: t }) => [
|
|
1051
|
+
J("div", {
|
|
1052
|
+
onClick: (l) => t.segregate(),
|
|
1053
|
+
style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1054
|
+
}, T(t.name), 13, sl)
|
|
1055
|
+
]),
|
|
1056
|
+
_: 2
|
|
1057
|
+
}, [
|
|
1058
|
+
a.$slots.pattern ? {
|
|
1059
|
+
name: "legend-pattern",
|
|
1060
|
+
fn: L(({ legend: t, index: l }) => [
|
|
1061
|
+
se(ga, {
|
|
1062
|
+
shape: t.shape,
|
|
1063
|
+
radius: 30,
|
|
1064
|
+
stroke: "none",
|
|
1065
|
+
plot: { x: 30, y: 30 },
|
|
1066
|
+
fill: `url(#pattern_${P.value}_${l})`
|
|
1067
|
+
}, null, 8, ["shape", "fill"])
|
|
1068
|
+
]),
|
|
1069
|
+
key: "0"
|
|
1070
|
+
} : void 0
|
|
1071
|
+
]), 1032, ["legendSet", "config"])) : k(a.$slots, "legend", {
|
|
1072
|
+
key: 1,
|
|
1073
|
+
legend: et.value
|
|
1074
|
+
}, void 0, !0)
|
|
1075
|
+
], 512),
|
|
1076
|
+
a.$slots.source ? (o(), s("div", {
|
|
1077
|
+
key: 6,
|
|
1078
|
+
ref_key: "source",
|
|
1079
|
+
ref: Ie,
|
|
1080
|
+
dir: "auto"
|
|
1081
|
+
}, [
|
|
1082
|
+
k(a.$slots, "source", {}, void 0, !0)
|
|
1083
|
+
], 512)) : d("", !0),
|
|
1084
|
+
v.value.end - v.value.start < 200 ? (o(), j(g(pt), {
|
|
1085
|
+
key: 7,
|
|
1086
|
+
hideDetails: "",
|
|
1087
|
+
config: {
|
|
1088
|
+
open: C.value.showTable,
|
|
1089
|
+
maxHeight: 1e4,
|
|
1090
|
+
body: {
|
|
1091
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1092
|
+
color: e.value.style.chart.color
|
|
1093
|
+
},
|
|
1094
|
+
head: {
|
|
1095
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1096
|
+
color: e.value.style.chart.color
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}, {
|
|
1100
|
+
content: L(() => [
|
|
1101
|
+
se(g(xt), {
|
|
1102
|
+
colNames: he.value.colNames,
|
|
1103
|
+
head: he.value.head,
|
|
1104
|
+
body: he.value.body,
|
|
1105
|
+
config: he.value.config,
|
|
1106
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1107
|
+
onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
|
|
1108
|
+
}, {
|
|
1109
|
+
th: L(({ th: t }) => [
|
|
1110
|
+
J("div", { innerHTML: t }, null, 8, il)
|
|
1111
|
+
]),
|
|
1112
|
+
td: L(({ td: t }) => [
|
|
1113
|
+
Jt(T(isNaN(Number(t)) ? t : g(q)({
|
|
1114
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1115
|
+
v: t,
|
|
1116
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1117
|
+
r: e.value.table.td.roundingValue
|
|
1118
|
+
})), 1)
|
|
1119
|
+
]),
|
|
1120
|
+
_: 1
|
|
1121
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
1122
|
+
]),
|
|
1123
|
+
_: 1
|
|
1124
|
+
}, 8, ["config"])) : d("", !0)
|
|
1125
|
+
], 46, ma));
|
|
1126
|
+
}
|
|
1127
|
+
}, wl = /* @__PURE__ */ fa(nl, [["__scopeId", "data-v-7ee2b419"]]);
|
|
1128
|
+
export {
|
|
1129
|
+
wl as default
|
|
1130
|
+
};
|