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