vue-data-ui 2.14.2 → 2.14.3-beta.0
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/README.md +17 -0
- package/dist/{Arrow-DNJvKMao.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-DzCoab4C.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-DLJ9I-cg.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-DdpwkHh8.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-B6mk6VRe.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-xtSGHclp.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-D8swCIay.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-BbJkNcCM.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CtqhCOnQ.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-DBYSSUsg.js → index-BzH6XFI9.js} +409 -394
- package/dist/{pdf-Cq3bf6D0.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-xF9W73YL.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-D6VPixUt.js} +111 -111
- package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-CWm-A-co.js} +46 -46
- package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
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
|
|
2
|
-
import { u as qt, c as ut, t as Zt, p as
|
|
3
|
-
import { u as bt } from "./useNestedProp-
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
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 be, createElementBlock as n, openBlock as o, unref as g, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as y, renderSlot as k, createElementVNode as J, createVNode as se, createSlots as nt, withCtx as _, normalizeProps as E, guardReactiveProps as D, Fragment as h, renderList as b, mergeProps as $e, toDisplayString as T, createTextVNode as Jt } from "vue";
|
|
2
|
+
import { u as qt, c as ut, t as Zt, p as fe, a as Kt, C as me, b as Qt, o as jt, e as ct, g as ea, d as ta, al as pe, ai as vt, D as ht, X as aa, l as la, a7 as xe, G as dt, f as q, I as ra, am as oa, x as yt, q as sa, r as ia, i as gt, y as na } from "./index-BzH6XFI9.js";
|
|
3
|
+
import { u as bt } from "./useNestedProp-CKM2gCr5.js";
|
|
4
|
+
import { t as ua, u as ca } from "./useResponsive-JZ9xq-JV.js";
|
|
5
|
+
import { u as va } from "./usePrinter-C653sJjz.js";
|
|
6
|
+
import { u as ha } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as da } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ya from "./Legend-Cpx0xSce.js";
|
|
9
|
+
import { S as ga } from "./Slicer-DjwiDPEk.js";
|
|
10
|
+
import ba from "./Title-B71Dk29x.js";
|
|
11
|
+
import { _ as fa } from "./Shape-D65xhJAN.js";
|
|
12
|
+
import { u as ma } from "./useTimeLabels-Mrr0jrpL.js";
|
|
13
|
+
import { _ as pa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"], za = { key: 1 }, Ca = ["id"], La = ["stop-color"], _a = ["stop-color"], Sa = ["stop-color"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x1", "x2", "y1", "y2", "stroke"], Ta = ["x1", "x2", "y1", "y2", "stroke"], Na = ["x1", "x2", "y1", "y2", "stroke"], Ia = { key: 0 }, Oa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ra = { key: 0 }, Pa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Aa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Va = { key: 0 }, Fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ha = ["x", "y", "font-size", "fill", "font-weight"], Ba = ["transform", "font-size", "fill", "font-weight"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ya = { key: 0 }, Ua = ["x", "y", "font-size", "font-weight", "fill"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = { key: 0 }, Ja = ["x", "y", "font-size", "font-weight", "fill"], qa = ["x1", "x2", "y1", "y2", "stroke"], Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x1", "x2", "y1", "y2", "stroke"], Qa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], ja = { key: 0 }, el = { key: 1 }, tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], al = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ll = { key: 0 }, rl = { key: 1 }, ol = ["font-size", "font-weight", "fill", "x", "y", "onClick"], sl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], il = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], nl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ul = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, cl = ["onClick"], vl = ["innerHTML"], hl = {
|
|
18
18
|
__name: "vue-ui-stackbar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,26 +31,26 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
34
|
-
setup(
|
|
35
|
-
const pt = X(() => import("./vue-ui-accordion-
|
|
34
|
+
setup(ke, { expose: ft, emit: mt }) {
|
|
35
|
+
const pt = X(() => import("./vue-ui-accordion-Cjq4hqGi.js")), xt = X(() => import("./DataTable-D8n1mvaG.js")), kt = X(() => import("./PackageVersion-Bwu7jdjH.js")), wt = X(() => import("./PenAndPaper-BzQcbTCN.js")), zt = X(() => import("./vue-ui-skeleton-qa5B2MES.js")), Ct = X(() => import("./Tooltip-BuP-Tir7.js")), Lt = X(() => import("./UserOptions-fd2DeGS7.js")), { vue_ui_stackbar: _t } = qt(), St = Xt(), f = ke, we = mt, Z = z({
|
|
36
36
|
get() {
|
|
37
37
|
return !!f.dataset && f.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(a) {
|
|
40
40
|
return a;
|
|
41
41
|
}
|
|
42
|
-
}), ee = p(null), P = p(ut()), ie = p(!1),
|
|
42
|
+
}), ee = p(null), P = p(ut()), ie = p(!1), ze = p(null), Ce = p(""), S = p([]), Me = p(0), Te = p(null), Ne = p(null), Ie = p(null), Oe = p(null), Re = p(0), ne = p(!1), te = p(null), H = p(!1), $t = p(0), Mt = p(0), Tt = p(0), K = p(null);
|
|
43
43
|
ot(() => {
|
|
44
44
|
_e();
|
|
45
45
|
});
|
|
46
46
|
const e = z({
|
|
47
|
-
get: () =>
|
|
47
|
+
get: () => Fe(),
|
|
48
48
|
set: (a) => a
|
|
49
|
-
}), { userOptionsVisible:
|
|
50
|
-
function
|
|
49
|
+
}), { userOptionsVisible: Le, setUserOptionsVisibility: Pe, keepUserOptionState: Ae } = ha({ config: e.value }), { svgRef: Ve } = da({ config: e.value.style.chart.title });
|
|
50
|
+
function Fe() {
|
|
51
51
|
const a = bt({
|
|
52
52
|
userConfig: f.config,
|
|
53
|
-
defaultConfig:
|
|
53
|
+
defaultConfig: _t
|
|
54
54
|
});
|
|
55
55
|
let r = {};
|
|
56
56
|
return a.theme ? r = {
|
|
@@ -58,13 +58,13 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
58
58
|
userConfig: Kt.vue_ui_stackbar[a.theme] || f.config,
|
|
59
59
|
defaultConfig: a
|
|
60
60
|
}),
|
|
61
|
-
customPalette: Zt[a.theme] ||
|
|
62
|
-
} : r = a, f.config &&
|
|
61
|
+
customPalette: Zt[a.theme] || fe
|
|
62
|
+
} : r = a, f.config && me(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 && me(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 && me(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 && me(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
63
|
}
|
|
64
64
|
st(() => f.config, (a) => {
|
|
65
|
-
e.value =
|
|
65
|
+
e.value = Fe(), Le.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
66
|
}, { deep: !0 }), st(() => f.dataset, (a) => {
|
|
67
|
-
|
|
67
|
+
Ye();
|
|
68
68
|
}, { deep: !0 });
|
|
69
69
|
const C = p({
|
|
70
70
|
dataLabels: {
|
|
@@ -72,7 +72,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
72
72
|
},
|
|
73
73
|
showTable: e.value.table.show,
|
|
74
74
|
showTooltip: e.value.style.chart.tooltip.show
|
|
75
|
-
}), { isPrinting: Ee, isImaging:
|
|
75
|
+
}), { isPrinting: Ee, isImaging: De, generatePdf: He, generateImage: Be } = va({
|
|
76
76
|
elementId: `stackbar_${P.value}`,
|
|
77
77
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
78
78
|
options: e.value.userOptions.print
|
|
@@ -108,14 +108,14 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
108
108
|
}), setTimeout(() => {
|
|
109
109
|
H.value = !0;
|
|
110
110
|
}, 10), e.value.responsive) {
|
|
111
|
-
const a =
|
|
111
|
+
const a = ua(() => {
|
|
112
112
|
H.value = !1;
|
|
113
|
-
const { width: r, height: t } =
|
|
113
|
+
const { width: r, height: t } = ca({
|
|
114
114
|
chart: ee.value,
|
|
115
|
-
title: e.value.style.chart.title.text ?
|
|
116
|
-
legend: e.value.style.chart.legend.show ?
|
|
117
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
118
|
-
source:
|
|
115
|
+
title: e.value.style.chart.title.text ? Te.value : null,
|
|
116
|
+
legend: e.value.style.chart.legend.show ? Ne.value : null,
|
|
117
|
+
slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ie.value : null,
|
|
118
|
+
source: Oe.value
|
|
119
119
|
});
|
|
120
120
|
requestAnimationFrame(() => {
|
|
121
121
|
ue.value.width = r, ue.value.height = t, clearTimeout(We.value), We.value = setTimeout(() => {
|
|
@@ -130,20 +130,20 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
130
130
|
Gt(() => {
|
|
131
131
|
A.value && (Q.value && A.value.unobserve(Q.value), A.value.disconnect());
|
|
132
132
|
});
|
|
133
|
-
const
|
|
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,
|
|
133
|
+
const s = 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, L = e.value.style.chart.padding.left, B = r - L - r * t, W = a - l - e.value.style.chart.padding.bottom;
|
|
135
135
|
return {
|
|
136
136
|
chartHeight: a,
|
|
137
137
|
chartWidth: r,
|
|
138
138
|
top: l,
|
|
139
139
|
right: c,
|
|
140
140
|
bottom: u,
|
|
141
|
-
left:
|
|
142
|
-
width:
|
|
143
|
-
height:
|
|
141
|
+
left: L,
|
|
142
|
+
width: B,
|
|
143
|
+
height: W < 0 ? 0 : W
|
|
144
144
|
};
|
|
145
145
|
}), V = z(() => f.dataset.map((a, r) => {
|
|
146
|
-
const t = ta(a.color) || Nt.value[r] ||
|
|
146
|
+
const t = ta(a.color) || Nt.value[r] || fe[r] || fe[r % fe.length];
|
|
147
147
|
return {
|
|
148
148
|
...a,
|
|
149
149
|
// In distributed mode, all values are converted to positive
|
|
@@ -154,37 +154,37 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
154
154
|
id: ut(),
|
|
155
155
|
color: t
|
|
156
156
|
};
|
|
157
|
-
})),
|
|
157
|
+
})), F = z(() => Math.max(...V.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), v = p({
|
|
158
158
|
start: 0,
|
|
159
159
|
end: Math.max(...f.dataset.map((a) => a.series.length))
|
|
160
160
|
});
|
|
161
|
-
function
|
|
161
|
+
function Ye() {
|
|
162
162
|
Ue();
|
|
163
163
|
}
|
|
164
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
|
|
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 be(), await be(), K.value && K.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await be(), await be(), K.value && K.value.setEndValue(It(e.value.style.chart.zoom.endIndex + 1)))) : (v.value = {
|
|
166
166
|
start: 0,
|
|
167
167
|
end: Math.max(...f.dataset.map((a) => a.series.length))
|
|
168
|
-
},
|
|
168
|
+
}, Re.value += 1);
|
|
169
169
|
}
|
|
170
170
|
function It(a) {
|
|
171
171
|
const r = Math.max(...f.dataset.map((t) => t.series.length));
|
|
172
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
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const d = z(() => {
|
|
175
175
|
let a;
|
|
176
|
-
return e.value.orientation === "vertical" ? a =
|
|
177
|
-
}), ae = z(() =>
|
|
176
|
+
return e.value.orientation === "vertical" ? a = s.value.width / (v.value.end - v.value.start) : a = s.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
|
|
177
|
+
}), ae = z(() => pe(V.value.filter((a) => !S.value.includes(a.id))).slice(v.value.start, v.value.end)), Ot = z(() => pe(V.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
178
178
|
...a,
|
|
179
179
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
180
180
|
}))).slice(v.value.start, v.value.end)), ce = z(() => {
|
|
181
181
|
const a = V.value.filter((r) => !S.value.includes(r.id));
|
|
182
182
|
return {
|
|
183
|
-
positive:
|
|
183
|
+
positive: pe(a.map((r) => ({
|
|
184
184
|
...r,
|
|
185
185
|
series: r.series.slice(v.value.start, v.value.end).map((t) => t >= 0 ? t : 0)
|
|
186
186
|
}))),
|
|
187
|
-
negative:
|
|
187
|
+
negative: pe(a.map((r) => ({
|
|
188
188
|
...r,
|
|
189
189
|
series: r.series.slice(v.value.start, v.value.end).map((t) => t < 0 ? t : 0)
|
|
190
190
|
})))
|
|
@@ -192,54 +192,54 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
192
192
|
}), O = z(() => {
|
|
193
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
194
|
return l.ticks.map((c) => ({
|
|
195
|
-
zero:
|
|
196
|
-
y:
|
|
197
|
-
x:
|
|
198
|
-
horizontal_zero:
|
|
199
|
-
horizontal_x:
|
|
200
|
-
horizontal_y:
|
|
195
|
+
zero: s.value.bottom - s.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
196
|
+
y: s.value.bottom - s.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
197
|
+
x: s.value.left - 8,
|
|
198
|
+
horizontal_zero: s.value.left + s.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
199
|
+
horizontal_x: s.value.left + s.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
200
|
+
horizontal_y: s.value.bottom - 8,
|
|
201
201
|
value: c
|
|
202
202
|
}));
|
|
203
|
-
}), $ = z(() =>
|
|
203
|
+
}), $ = z(() => ma({
|
|
204
204
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
205
|
-
maxDatapoints:
|
|
205
|
+
maxDatapoints: F.value,
|
|
206
206
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
207
207
|
start: v.value.start,
|
|
208
208
|
end: v.value.end
|
|
209
209
|
})), w = z(() => {
|
|
210
210
|
if (!Z.value) return [];
|
|
211
|
-
let a = Array(
|
|
212
|
-
const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.value.negative),
|
|
211
|
+
let a = Array(F.value).fill(0), r = Array(F.value).fill(0), t = Array(F.value).fill(0), l = Array(F.value).fill(0);
|
|
212
|
+
const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.value.negative), L = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, B = !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 : L > 0 ? 0 : L, 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 : L > 0 ? 0 : L, 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: W, max: le } = B, Y = le + (W >= 0 ? 0 : Math.abs(W)) || 1, M = s.value.height, ge = s.value.width, lt = O.value[0] ? O.value[0].zero : s.value.bottom, rt = O.value[0] ? O.value[0].horizontal_zero : s.value.left;
|
|
213
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),
|
|
215
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) /
|
|
216
|
-
let
|
|
217
|
-
return m > 0 ? (I = M * N,
|
|
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;
|
|
214
|
+
const R = re.series.slice(v.value.start, v.value.end), Ft = re.signedSeries.slice(v.value.start, v.value.end), Et = R.map((m, x) => s.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Dt = R.map((m, x) => s.value.top + d.value * x + d.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) / Y;
|
|
216
|
+
let U, I;
|
|
217
|
+
return m > 0 ? (I = M * N, U = lt - I - a[x], a[x] += I) : (I = M * N, U = lt + t[x], t[x] += Math.abs(I)), U;
|
|
222
218
|
}), Bt = R.map((m, x) => {
|
|
223
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) /
|
|
219
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
|
|
220
|
+
let U, I;
|
|
221
|
+
return m > 0 ? (I = ge * N, U = rt + r[x], r[x] += I) : (I = ge * N, U = rt - Math.abs(I) - l[x], l[x] += Math.abs(I)), U;
|
|
222
|
+
}), Wt = R.map((m, x) => {
|
|
223
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
|
|
224
224
|
return m > 0 ? M * N : M * Math.abs(N);
|
|
225
|
-
}),
|
|
226
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) /
|
|
227
|
-
return m > 0 ?
|
|
228
|
-
}),
|
|
225
|
+
}), Yt = R.map((m, x) => {
|
|
226
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
|
|
227
|
+
return m > 0 ? ge * N : ge * Math.abs(N);
|
|
228
|
+
}), Ut = R.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
|
|
229
229
|
return {
|
|
230
230
|
...re,
|
|
231
|
-
proportions: R.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) /
|
|
231
|
+
proportions: R.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Ut),
|
|
232
232
|
series: R,
|
|
233
|
-
signedSeries:
|
|
234
|
-
x:
|
|
233
|
+
signedSeries: Ft,
|
|
234
|
+
x: Et,
|
|
235
235
|
y: Ht,
|
|
236
|
-
height:
|
|
237
|
-
horizontal_width:
|
|
236
|
+
height: Wt,
|
|
237
|
+
horizontal_width: Yt,
|
|
238
238
|
horizontal_y: Dt,
|
|
239
|
-
horizontal_x:
|
|
239
|
+
horizontal_x: Bt
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
|
-
}),
|
|
242
|
+
}), Xe = z(() => Ot.value.map((a, r) => ({
|
|
243
243
|
value: a,
|
|
244
244
|
sign: a >= 0 ? 1 : -1
|
|
245
245
|
})));
|
|
@@ -257,7 +257,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
257
257
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ge(a, r, t, l) {
|
|
261
261
|
return gt(
|
|
262
262
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
263
263
|
a,
|
|
@@ -269,7 +269,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
269
269
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Je(a) {
|
|
273
273
|
const r = JSON.parse(JSON.stringify(w.value)).map((t) => ({
|
|
274
274
|
name: t.name,
|
|
275
275
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -277,9 +277,9 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
277
277
|
color: t.color,
|
|
278
278
|
id: t.id
|
|
279
279
|
}));
|
|
280
|
-
|
|
280
|
+
we("selectDatapoint", { datapoint: r, period: $.value[a] });
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function qe(a) {
|
|
283
283
|
te.value = a, ie.value = !0;
|
|
284
284
|
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
|
|
285
285
|
name: c.name,
|
|
@@ -289,20 +289,20 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
289
289
|
color: c.color,
|
|
290
290
|
id: c.id
|
|
291
291
|
}));
|
|
292
|
-
|
|
292
|
+
ze.value = {
|
|
293
293
|
datapoint: t,
|
|
294
294
|
seriesIndex: a,
|
|
295
295
|
config: e.value,
|
|
296
296
|
series: w.value
|
|
297
297
|
};
|
|
298
298
|
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
299
|
-
if (yt(r) &&
|
|
299
|
+
if (yt(r) && na(() => r({
|
|
300
300
|
seriesIndex: a,
|
|
301
301
|
datapoint: t,
|
|
302
302
|
series: w.value,
|
|
303
303
|
config: e.value
|
|
304
304
|
})))
|
|
305
|
-
|
|
305
|
+
Ce.value = r({
|
|
306
306
|
seriesIndex: a,
|
|
307
307
|
datapoint: t,
|
|
308
308
|
series: w.value,
|
|
@@ -312,13 +312,13 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
312
312
|
const {
|
|
313
313
|
showValue: c,
|
|
314
314
|
showPercentage: u,
|
|
315
|
-
borderColor:
|
|
316
|
-
roundingValue:
|
|
317
|
-
roundingPercentage:
|
|
315
|
+
borderColor: L,
|
|
316
|
+
roundingValue: B,
|
|
317
|
+
roundingPercentage: W
|
|
318
318
|
} = e.value.style.chart.tooltip;
|
|
319
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 ${
|
|
321
|
-
const
|
|
320
|
+
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (le += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
321
|
+
const Y = [
|
|
322
322
|
c && u ? "(" : "",
|
|
323
323
|
c && u ? ")" : ""
|
|
324
324
|
];
|
|
@@ -330,34 +330,34 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
330
330
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
331
331
|
v: M.value,
|
|
332
332
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
333
|
-
r:
|
|
334
|
-
}) : ""} ${
|
|
333
|
+
r: B
|
|
334
|
+
}) : ""} ${Y[0]}${u ? q({
|
|
335
335
|
v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
|
|
336
336
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
337
337
|
s: "%",
|
|
338
|
-
r:
|
|
339
|
-
}) : ""}${
|
|
338
|
+
r: W
|
|
339
|
+
}) : ""}${Y[1]}
|
|
340
340
|
</div>
|
|
341
341
|
`;
|
|
342
|
-
}),
|
|
342
|
+
}), Ce.value = `<div>${le}</div>`;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
function Rt(a) {
|
|
346
|
-
ne.value = a,
|
|
346
|
+
ne.value = a, Me.value += 1;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Ze() {
|
|
349
349
|
C.value.showTable = !C.value.showTable;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Ke() {
|
|
352
352
|
C.value.dataLabels.show = !C.value.dataLabels.show;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Qe() {
|
|
355
355
|
C.value.showTooltip = !C.value.showTooltip;
|
|
356
356
|
}
|
|
357
357
|
function Pt() {
|
|
358
358
|
return w.value;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const je = z(() => {
|
|
361
361
|
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
362
362
|
const a = w.value.map(({ name: t, color: l }) => ({
|
|
363
363
|
label: t,
|
|
@@ -370,16 +370,16 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
370
370
|
}), r.push(l);
|
|
371
371
|
}), { head: a, body: r };
|
|
372
372
|
});
|
|
373
|
-
function
|
|
374
|
-
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
375
|
-
a ? a(u) :
|
|
373
|
+
function et(a = null) {
|
|
374
|
+
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...je.value.head.map((L) => L.label)], l = je.value.body, c = r.concat([t]).concat(l), u = sa(c);
|
|
375
|
+
a ? a(u) : ia({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
376
376
|
}
|
|
377
377
|
const he = z(() => {
|
|
378
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
379
|
let r = [];
|
|
380
|
-
for (let c = 0; c <
|
|
381
|
-
const u = w.value.map((
|
|
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((
|
|
380
|
+
for (let c = 0; c < F.value; c += 1) {
|
|
381
|
+
const u = w.value.map((L) => L.series[c] ?? 0).reduce((L, B) => L + B, 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((L) => (L.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
383
383
|
}
|
|
384
384
|
const t = {
|
|
385
385
|
th: {
|
|
@@ -397,14 +397,14 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
397
397
|
return { head: a, body: r.slice(0, v.value.end - v.value.start), config: t, colNames: l };
|
|
398
398
|
});
|
|
399
399
|
function At(a, r) {
|
|
400
|
-
if (
|
|
400
|
+
if (we("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
|
|
401
401
|
S.value = S.value.filter((t) => t !== r.id);
|
|
402
402
|
else {
|
|
403
403
|
if (S.value.length === V.value.length - 1) return;
|
|
404
404
|
S.value.push(r.id);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
const
|
|
407
|
+
const tt = z(() => V.value.map((a, r) => ({
|
|
408
408
|
...a,
|
|
409
409
|
shape: "square"
|
|
410
410
|
})).map((a) => ({
|
|
@@ -420,10 +420,10 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
420
420
|
paddingBottom: 12,
|
|
421
421
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
422
422
|
})), de = p(!1);
|
|
423
|
-
function
|
|
423
|
+
function Se() {
|
|
424
424
|
de.value = !de.value;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function ye(a, r) {
|
|
427
427
|
const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
428
428
|
name: l.name,
|
|
429
429
|
value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
|
|
@@ -431,7 +431,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
431
431
|
color: l.color,
|
|
432
432
|
id: l.id
|
|
433
433
|
}));
|
|
434
|
-
|
|
434
|
+
we("selectTimeLabel", {
|
|
435
435
|
datapoint: t,
|
|
436
436
|
absoluteIndex: a.absoluteIndex,
|
|
437
437
|
label: a.text
|
|
@@ -442,38 +442,38 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
442
442
|
}
|
|
443
443
|
return ft({
|
|
444
444
|
getData: Pt,
|
|
445
|
-
generatePdf:
|
|
446
|
-
generateCsv:
|
|
447
|
-
generateImage:
|
|
448
|
-
toggleTable:
|
|
449
|
-
toggleLabels:
|
|
450
|
-
toggleTooltip:
|
|
451
|
-
toggleAnnotator:
|
|
452
|
-
}), (a, r) => (o(),
|
|
445
|
+
generatePdf: He,
|
|
446
|
+
generateCsv: et,
|
|
447
|
+
generateImage: Be,
|
|
448
|
+
toggleTable: Ze,
|
|
449
|
+
toggleLabels: Ke,
|
|
450
|
+
toggleTooltip: Qe,
|
|
451
|
+
toggleAnnotator: Se
|
|
452
|
+
}), (a, r) => (o(), n("div", {
|
|
453
453
|
id: `stackbar_${P.value}`,
|
|
454
454
|
ref_key: "stackbarChart",
|
|
455
455
|
ref: ee,
|
|
456
456
|
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
457
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(
|
|
459
|
-
onMouseleave: r[7] || (r[7] = () => g(
|
|
458
|
+
onMouseenter: r[6] || (r[6] = () => g(Pe)(!0)),
|
|
459
|
+
onMouseleave: r[7] || (r[7] = () => g(Pe)(!1))
|
|
460
460
|
}, [
|
|
461
461
|
e.value.userOptions.buttons.annotator ? (o(), j(g(wt), {
|
|
462
462
|
key: 0,
|
|
463
|
-
svgRef: g(
|
|
463
|
+
svgRef: g(Ve),
|
|
464
464
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
465
465
|
color: e.value.style.chart.color,
|
|
466
466
|
active: de.value,
|
|
467
|
-
onClose:
|
|
468
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
467
|
+
onClose: Se
|
|
468
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
469
469
|
k(a.$slots, "userConfig", {}, void 0, !0),
|
|
470
|
-
e.value.style.chart.title.text ? (o(),
|
|
470
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
471
471
|
key: 1,
|
|
472
472
|
ref_key: "chartTitle",
|
|
473
|
-
ref:
|
|
473
|
+
ref: Te,
|
|
474
474
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
475
475
|
}, [
|
|
476
|
-
se(
|
|
476
|
+
se(ba, {
|
|
477
477
|
config: {
|
|
478
478
|
title: {
|
|
479
479
|
cy: "stackbar-title",
|
|
@@ -485,14 +485,14 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
}, null, 8, ["config"])
|
|
488
|
-
], 512)) :
|
|
489
|
-
e.value.userOptions.show && Z.value && (g(
|
|
488
|
+
], 512)) : y("", !0),
|
|
489
|
+
e.value.userOptions.show && Z.value && (g(Ae) || g(Le)) ? (o(), j(g(Lt), {
|
|
490
490
|
ref: "details",
|
|
491
|
-
key: `user_option_${
|
|
491
|
+
key: `user_option_${Me.value}`,
|
|
492
492
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
493
493
|
color: e.value.style.chart.color,
|
|
494
494
|
isPrinting: g(Ee),
|
|
495
|
-
isImaging: g(
|
|
495
|
+
isImaging: g(De),
|
|
496
496
|
uid: P.value,
|
|
497
497
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
498
498
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -510,104 +510,104 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
510
510
|
isAnnotation: de.value,
|
|
511
511
|
callbacks: e.value.userOptions.callbacks,
|
|
512
512
|
onToggleFullscreen: Rt,
|
|
513
|
-
onGeneratePdf: g(
|
|
514
|
-
onGenerateCsv:
|
|
515
|
-
onGenerateImage: g(
|
|
516
|
-
onToggleTable:
|
|
517
|
-
onToggleLabels:
|
|
518
|
-
onToggleTooltip:
|
|
519
|
-
onToggleAnnotator:
|
|
513
|
+
onGeneratePdf: g(He),
|
|
514
|
+
onGenerateCsv: et,
|
|
515
|
+
onGenerateImage: g(Be),
|
|
516
|
+
onToggleTable: Ze,
|
|
517
|
+
onToggleLabels: Ke,
|
|
518
|
+
onToggleTooltip: Qe,
|
|
519
|
+
onToggleAnnotator: Se,
|
|
520
520
|
style: G({
|
|
521
|
-
visibility: g(
|
|
521
|
+
visibility: g(Ae) ? g(Le) ? "visible" : "hidden" : "visible"
|
|
522
522
|
})
|
|
523
523
|
}, nt({ _: 2 }, [
|
|
524
524
|
a.$slots.menuIcon ? {
|
|
525
525
|
name: "menuIcon",
|
|
526
|
-
fn:
|
|
527
|
-
k(a.$slots, "menuIcon",
|
|
526
|
+
fn: _(({ isOpen: t, color: l }) => [
|
|
527
|
+
k(a.$slots, "menuIcon", E(D({ isOpen: t, color: l })), void 0, !0)
|
|
528
528
|
]),
|
|
529
529
|
key: "0"
|
|
530
530
|
} : void 0,
|
|
531
531
|
a.$slots.optionTooltip ? {
|
|
532
532
|
name: "optionTooltip",
|
|
533
|
-
fn:
|
|
533
|
+
fn: _(() => [
|
|
534
534
|
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
535
535
|
]),
|
|
536
536
|
key: "1"
|
|
537
537
|
} : void 0,
|
|
538
538
|
a.$slots.optionPdf ? {
|
|
539
539
|
name: "optionPdf",
|
|
540
|
-
fn:
|
|
540
|
+
fn: _(() => [
|
|
541
541
|
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
542
542
|
]),
|
|
543
543
|
key: "2"
|
|
544
544
|
} : void 0,
|
|
545
545
|
a.$slots.optionCsv ? {
|
|
546
546
|
name: "optionCsv",
|
|
547
|
-
fn:
|
|
547
|
+
fn: _(() => [
|
|
548
548
|
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
549
549
|
]),
|
|
550
550
|
key: "3"
|
|
551
551
|
} : void 0,
|
|
552
552
|
a.$slots.optionImg ? {
|
|
553
553
|
name: "optionImg",
|
|
554
|
-
fn:
|
|
554
|
+
fn: _(() => [
|
|
555
555
|
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
556
556
|
]),
|
|
557
557
|
key: "4"
|
|
558
558
|
} : void 0,
|
|
559
559
|
a.$slots.optionTable ? {
|
|
560
560
|
name: "optionTable",
|
|
561
|
-
fn:
|
|
561
|
+
fn: _(() => [
|
|
562
562
|
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
563
563
|
]),
|
|
564
564
|
key: "5"
|
|
565
565
|
} : void 0,
|
|
566
566
|
a.$slots.optionLabels ? {
|
|
567
567
|
name: "optionLabels",
|
|
568
|
-
fn:
|
|
568
|
+
fn: _(() => [
|
|
569
569
|
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
570
570
|
]),
|
|
571
571
|
key: "6"
|
|
572
572
|
} : void 0,
|
|
573
573
|
a.$slots.optionFullscreen ? {
|
|
574
574
|
name: "optionFullscreen",
|
|
575
|
-
fn:
|
|
576
|
-
k(a.$slots, "optionFullscreen",
|
|
575
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
576
|
+
k(a.$slots, "optionFullscreen", E(D({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
577
577
|
]),
|
|
578
578
|
key: "7"
|
|
579
579
|
} : void 0,
|
|
580
580
|
a.$slots.optionAnnotator ? {
|
|
581
581
|
name: "optionAnnotator",
|
|
582
|
-
fn:
|
|
583
|
-
k(a.$slots, "optionAnnotator",
|
|
582
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
583
|
+
k(a.$slots, "optionAnnotator", E(D({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
584
584
|
]),
|
|
585
585
|
key: "8"
|
|
586
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"])) :
|
|
588
|
-
Z.value ? (o(),
|
|
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"])) : y("", !0),
|
|
588
|
+
Z.value ? (o(), n("svg", {
|
|
589
589
|
key: 3,
|
|
590
590
|
ref_key: "svgRef",
|
|
591
|
-
ref:
|
|
591
|
+
ref: Ve,
|
|
592
592
|
xmlns: g(aa),
|
|
593
|
-
viewBox: `0 0 ${
|
|
593
|
+
viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.chartHeight <= 0 ? 10 : s.value.chartHeight}`,
|
|
594
594
|
style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
595
595
|
}, [
|
|
596
596
|
se(g(kt)),
|
|
597
|
-
a.$slots["chart-background"] ? (o(),
|
|
597
|
+
a.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
598
598
|
key: 0,
|
|
599
|
-
x:
|
|
600
|
-
y:
|
|
601
|
-
width:
|
|
602
|
-
height:
|
|
599
|
+
x: s.value.left,
|
|
600
|
+
y: s.value.top,
|
|
601
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
602
|
+
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
603
603
|
style: {
|
|
604
604
|
pointerEvents: "none"
|
|
605
605
|
}
|
|
606
606
|
}, [
|
|
607
607
|
k(a.$slots, "chart-background", {}, void 0, !0)
|
|
608
|
-
], 8,
|
|
609
|
-
e.value.style.chart.bars.gradient.show ? (o(),
|
|
610
|
-
(o(!0),
|
|
608
|
+
], 8, wa)) : y("", !0),
|
|
609
|
+
e.value.style.chart.bars.gradient.show ? (o(), n("defs", za, [
|
|
610
|
+
(o(!0), n(h, null, b(w.value, (t, l) => (o(), n("linearGradient", {
|
|
611
611
|
id: `gradient_${t.id}`,
|
|
612
612
|
x1: "0%",
|
|
613
613
|
y1: "0%",
|
|
@@ -617,222 +617,222 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
617
617
|
J("stop", {
|
|
618
618
|
offset: "0%",
|
|
619
619
|
"stop-color": t.color
|
|
620
|
-
}, null, 8,
|
|
620
|
+
}, null, 8, La),
|
|
621
621
|
J("stop", {
|
|
622
622
|
offset: "61.8%",
|
|
623
623
|
"stop-color": g(la)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
624
|
-
}, null, 8,
|
|
624
|
+
}, null, 8, _a),
|
|
625
625
|
J("stop", {
|
|
626
626
|
offset: "100%",
|
|
627
627
|
"stop-color": t.color
|
|
628
|
-
}, null, 8,
|
|
629
|
-
], 8,
|
|
630
|
-
])) :
|
|
631
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0),
|
|
632
|
-
x1:
|
|
633
|
-
x2:
|
|
628
|
+
}, null, 8, Sa)
|
|
629
|
+
], 8, Ca))), 256))
|
|
630
|
+
])) : y("", !0),
|
|
631
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 2 }, b(O.value, (t, l) => (o(), n("line", {
|
|
632
|
+
x1: s.value.left,
|
|
633
|
+
x2: s.value.right,
|
|
634
634
|
y1: t.y,
|
|
635
635
|
y2: t.y,
|
|
636
636
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
637
637
|
"stroke-width": 1,
|
|
638
638
|
"stroke-linecap": "round"
|
|
639
|
-
}, null, 8,
|
|
640
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0),
|
|
641
|
-
x1:
|
|
642
|
-
x2:
|
|
643
|
-
y1:
|
|
644
|
-
y2:
|
|
639
|
+
}, null, 8, $a))), 256)) : y("", !0),
|
|
640
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 3 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), n("line", {
|
|
641
|
+
x1: s.value.left,
|
|
642
|
+
x2: s.value.right,
|
|
643
|
+
y1: s.value.top + d.value * l,
|
|
644
|
+
y2: s.value.top + d.value * l,
|
|
645
645
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
646
646
|
"stroke-width": 1,
|
|
647
647
|
"stroke-linecap": "round"
|
|
648
|
-
}, null, 8,
|
|
649
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0),
|
|
650
|
-
x1:
|
|
651
|
-
x2:
|
|
652
|
-
y1:
|
|
653
|
-
y2:
|
|
648
|
+
}, null, 8, Ma))), 256)) : y("", !0),
|
|
649
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 4 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), n("line", {
|
|
650
|
+
x1: s.value.left + d.value * l,
|
|
651
|
+
x2: s.value.left + d.value * l,
|
|
652
|
+
y1: s.value.top,
|
|
653
|
+
y2: s.value.bottom,
|
|
654
654
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
655
655
|
"stroke-width": 1,
|
|
656
656
|
"stroke-linecap": "round"
|
|
657
|
-
}, null, 8,
|
|
658
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0),
|
|
657
|
+
}, null, 8, Ta))), 256)) : y("", !0),
|
|
658
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 5 }, b(O.value, (t, l) => (o(), n("line", {
|
|
659
659
|
x1: t.horizontal_x,
|
|
660
660
|
x2: t.horizontal_x,
|
|
661
|
-
y1:
|
|
662
|
-
y2:
|
|
661
|
+
y1: s.value.top,
|
|
662
|
+
y2: s.value.bottom,
|
|
663
663
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
664
664
|
"stroke-width": 1,
|
|
665
665
|
"stroke-linecap": "round"
|
|
666
|
-
}, null, 8,
|
|
667
|
-
(o(!0),
|
|
668
|
-
a.$slots.pattern ? (o(),
|
|
669
|
-
k(a.$slots, "pattern",
|
|
670
|
-
])) :
|
|
671
|
-
e.value.orientation === "vertical" ? (o(),
|
|
672
|
-
(o(!0),
|
|
666
|
+
}, null, 8, Na))), 256)) : y("", !0),
|
|
667
|
+
(o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
|
|
668
|
+
a.$slots.pattern ? (o(), n("defs", Ia, [
|
|
669
|
+
k(a.$slots, "pattern", $e({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${P.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
670
|
+
])) : y("", !0),
|
|
671
|
+
e.value.orientation === "vertical" ? (o(), n(h, { key: 1 }, [
|
|
672
|
+
(o(!0), n(h, null, b(t.x, (c, u) => (o(), n("rect", {
|
|
673
673
|
x: c,
|
|
674
674
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
675
675
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
676
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:
|
|
677
|
+
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
678
678
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
679
679
|
stroke: e.value.style.chart.backgroundColor,
|
|
680
680
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
681
681
|
"stroke-linecap": "round",
|
|
682
682
|
"stroke-linejoin": "round",
|
|
683
683
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
684
|
-
}, null, 10,
|
|
685
|
-
a.$slots.pattern ? (o(),
|
|
686
|
-
(o(!0),
|
|
684
|
+
}, null, 10, Oa))), 256)),
|
|
685
|
+
a.$slots.pattern ? (o(), n("g", Ra, [
|
|
686
|
+
(o(!0), n(h, null, b(t.x, (c, u) => (o(), n("rect", {
|
|
687
687
|
x: c,
|
|
688
688
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
689
689
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
690
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:
|
|
691
|
+
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
692
692
|
fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
|
|
693
693
|
stroke: e.value.style.chart.backgroundColor,
|
|
694
694
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
695
695
|
"stroke-linecap": "round",
|
|
696
696
|
"stroke-linejoin": "round",
|
|
697
697
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
698
|
-
}, null, 10,
|
|
699
|
-
])) :
|
|
700
|
-
], 64)) : (o(),
|
|
701
|
-
(o(!0),
|
|
702
|
-
x: g(
|
|
698
|
+
}, null, 10, Pa))), 256))
|
|
699
|
+
])) : y("", !0)
|
|
700
|
+
], 64)) : (o(), n(h, { key: 2 }, [
|
|
701
|
+
(o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n("rect", {
|
|
702
|
+
x: g(xe)(c, s.value.left),
|
|
703
703
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
704
|
-
width: g(
|
|
704
|
+
width: g(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
705
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:
|
|
706
|
+
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
707
707
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
708
708
|
stroke: e.value.style.chart.backgroundColor,
|
|
709
709
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
710
710
|
"stroke-linecap": "round",
|
|
711
711
|
"stroke-linejoin": "round",
|
|
712
712
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
713
|
-
}, null, 10,
|
|
714
|
-
a.$slots.pattern ? (o(),
|
|
715
|
-
(o(!0),
|
|
716
|
-
x: g(
|
|
713
|
+
}, null, 10, Aa))), 256)),
|
|
714
|
+
a.$slots.pattern ? (o(), n("g", Va, [
|
|
715
|
+
(o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n("rect", {
|
|
716
|
+
x: g(xe)(c, s.value.left),
|
|
717
717
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
718
|
-
width: g(
|
|
718
|
+
width: g(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
719
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:
|
|
720
|
+
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
721
721
|
fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
|
|
722
722
|
stroke: e.value.style.chart.backgroundColor,
|
|
723
723
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
724
724
|
"stroke-linecap": "round",
|
|
725
725
|
"stroke-linejoin": "round",
|
|
726
726
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
727
|
-
}, null, 10,
|
|
728
|
-
])) :
|
|
727
|
+
}, null, 10, Fa))), 256))
|
|
728
|
+
])) : y("", !0)
|
|
729
729
|
], 64))
|
|
730
730
|
]))), 256)),
|
|
731
|
-
e.value.style.chart.grid.x.showAxis ? (o(),
|
|
731
|
+
e.value.style.chart.grid.x.showAxis ? (o(), n("line", {
|
|
732
732
|
key: 6,
|
|
733
|
-
x1:
|
|
734
|
-
x2:
|
|
735
|
-
y1:
|
|
736
|
-
y2:
|
|
733
|
+
x1: s.value.left,
|
|
734
|
+
x2: s.value.right,
|
|
735
|
+
y1: s.value.bottom,
|
|
736
|
+
y2: s.value.bottom,
|
|
737
737
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
738
738
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
739
739
|
"stroke-linecap": "round",
|
|
740
740
|
"stroke-linejoin": "round"
|
|
741
|
-
}, null, 8,
|
|
742
|
-
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(),
|
|
741
|
+
}, null, 8, Ea)) : y("", !0),
|
|
742
|
+
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), n("line", {
|
|
743
743
|
key: 7,
|
|
744
|
-
x1:
|
|
745
|
-
x2:
|
|
746
|
-
y1:
|
|
747
|
-
y2:
|
|
744
|
+
x1: s.value.left,
|
|
745
|
+
x2: s.value.left,
|
|
746
|
+
y1: s.value.top,
|
|
747
|
+
y2: s.value.bottom,
|
|
748
748
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
749
749
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
750
750
|
"stroke-linecap": "round",
|
|
751
751
|
"stroke-linejoin": "round"
|
|
752
|
-
}, null, 8,
|
|
753
|
-
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(),
|
|
752
|
+
}, null, 8, Da)) : y("", !0),
|
|
753
|
+
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), n("text", {
|
|
754
754
|
key: 8,
|
|
755
|
-
x:
|
|
756
|
-
y:
|
|
755
|
+
x: s.value.left + s.value.width / 2,
|
|
756
|
+
y: s.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
757
757
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
758
758
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
759
759
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
760
760
|
"text-anchor": "middle"
|
|
761
|
-
}, T(e.value.style.chart.grid.x.axisName.text), 9,
|
|
762
|
-
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(),
|
|
761
|
+
}, T(e.value.style.chart.grid.x.axisName.text), 9, Ha)) : y("", !0),
|
|
762
|
+
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), n("text", {
|
|
763
763
|
key: 9,
|
|
764
|
-
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${
|
|
764
|
+
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
765
765
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
766
766
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
767
767
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
768
768
|
"text-anchor": "middle"
|
|
769
|
-
}, T(e.value.style.chart.grid.y.axisName.text), 9,
|
|
770
|
-
C.value.dataLabels.show && e.value.orientation === "vertical" ? (o(),
|
|
771
|
-
(o(!0),
|
|
772
|
-
(o(!0),
|
|
773
|
-
at(t.series[u], t.proportions[u]) ? (o(),
|
|
769
|
+
}, T(e.value.style.chart.grid.y.axisName.text), 9, Ba)) : y("", !0),
|
|
770
|
+
C.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), n(h, { key: 10 }, [
|
|
771
|
+
(o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
|
|
772
|
+
(o(!0), n(h, null, b(t.x, (c, u) => (o(), n(h, null, [
|
|
773
|
+
at(t.series[u], t.proportions[u]) ? (o(), n("text", {
|
|
774
774
|
key: 0,
|
|
775
|
-
x: c +
|
|
775
|
+
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
776
776
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
777
777
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
778
778
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? g(dt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
779
779
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
780
780
|
"text-anchor": "middle"
|
|
781
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
781
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ge(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Wa)) : y("", !0)
|
|
782
782
|
], 64))), 256))
|
|
783
783
|
]))), 256)),
|
|
784
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(),
|
|
785
|
-
(o(!0),
|
|
786
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(),
|
|
784
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), n("g", Ya, [
|
|
785
|
+
(o(!0), n(h, null, b(Xe.value, (t, l) => (o(), n(h, null, [
|
|
786
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
|
|
787
787
|
key: 0,
|
|
788
|
-
x:
|
|
789
|
-
y:
|
|
788
|
+
x: s.value.left + d.value * l + d.value / 2,
|
|
789
|
+
y: s.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
790
790
|
"text-anchor": "middle",
|
|
791
791
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
792
792
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
793
793
|
fill: e.value.style.chart.bars.totalValues.color
|
|
794
|
-
}, T(ve(t.value, t, l, t.sign)), 9,
|
|
794
|
+
}, T(ve(t.value, t, l, t.sign)), 9, Ua)) : y("", !0)
|
|
795
795
|
], 64))), 256))
|
|
796
|
-
])) :
|
|
797
|
-
], 64)) :
|
|
798
|
-
C.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(),
|
|
799
|
-
(o(!0),
|
|
800
|
-
(o(!0),
|
|
801
|
-
at(t.series[u], t.proportions[u]) ? (o(),
|
|
796
|
+
])) : y("", !0)
|
|
797
|
+
], 64)) : y("", !0),
|
|
798
|
+
C.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), n(h, { key: 11 }, [
|
|
799
|
+
(o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
|
|
800
|
+
(o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n(h, null, [
|
|
801
|
+
at(t.series[u], t.proportions[u]) ? (o(), n("text", {
|
|
802
802
|
key: 0,
|
|
803
803
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
804
|
-
y: t.horizontal_y[u] +
|
|
804
|
+
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
805
805
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
806
806
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? g(dt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
807
807
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
808
808
|
"text-anchor": "middle"
|
|
809
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
809
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ge(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Xa)) : y("", !0)
|
|
810
810
|
], 64))), 256))
|
|
811
811
|
]))), 256)),
|
|
812
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(),
|
|
813
|
-
(o(!0),
|
|
814
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(),
|
|
812
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), n("g", Ga, [
|
|
813
|
+
(o(!0), n(h, null, b(Xe.value, (t, l) => (o(), n(h, null, [
|
|
814
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
|
|
815
815
|
key: 0,
|
|
816
|
-
x:
|
|
817
|
-
y:
|
|
816
|
+
x: s.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
817
|
+
y: s.value.top + d.value * l + d.value / 2,
|
|
818
818
|
"text-anchor": "start",
|
|
819
819
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
820
820
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
821
821
|
fill: e.value.style.chart.bars.totalValues.color
|
|
822
|
-
}, T(ve(t.value, t, l, t.sign)), 9,
|
|
822
|
+
}, T(ve(t.value, t, l, t.sign)), 9, Ja)) : y("", !0)
|
|
823
823
|
], 64))), 256))
|
|
824
|
-
])) :
|
|
825
|
-
], 64)) :
|
|
826
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(),
|
|
827
|
-
(o(!0),
|
|
828
|
-
x1:
|
|
829
|
-
x2:
|
|
824
|
+
])) : y("", !0)
|
|
825
|
+
], 64)) : y("", !0),
|
|
826
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), n(h, { key: 12 }, [
|
|
827
|
+
(o(!0), n(h, null, b(O.value, (t, l) => (o(), n("line", {
|
|
828
|
+
x1: s.value.left,
|
|
829
|
+
x2: s.value.left - 6,
|
|
830
830
|
y1: t.y,
|
|
831
831
|
y2: t.y,
|
|
832
832
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
833
833
|
"stroke-width": 1
|
|
834
|
-
}, null, 8,
|
|
835
|
-
(o(!0),
|
|
834
|
+
}, null, 8, qa))), 256)),
|
|
835
|
+
(o(!0), n(h, null, b(O.value, (t, l) => (o(), n("text", {
|
|
836
836
|
x: t.x,
|
|
837
837
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
838
838
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -844,66 +844,89 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
844
844
|
v: t.value,
|
|
845
845
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
846
846
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
847
|
-
})), 9,
|
|
848
|
-
], 64)) :
|
|
849
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(),
|
|
850
|
-
(o(!0),
|
|
847
|
+
})), 9, Za))), 256))
|
|
848
|
+
], 64)) : y("", !0),
|
|
849
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), n(h, { key: 13 }, [
|
|
850
|
+
(o(!0), n(h, null, b(O.value, (t, l) => (o(), n("line", {
|
|
851
851
|
x1: t.horizontal_x,
|
|
852
852
|
x2: t.horizontal_x,
|
|
853
|
-
y1:
|
|
854
|
-
y2:
|
|
853
|
+
y1: s.value.bottom,
|
|
854
|
+
y2: s.value.bottom + 6,
|
|
855
855
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
856
856
|
"stroke-width": 1,
|
|
857
857
|
"stroke-linecap": "round"
|
|
858
|
-
}, null, 8,
|
|
859
|
-
(o(!0),
|
|
858
|
+
}, null, 8, Ka))), 256)),
|
|
859
|
+
(o(!0), n(h, null, b(O.value, (t, l) => (o(), n("text", {
|
|
860
860
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
861
861
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
862
862
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
863
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}, ${
|
|
864
|
+
transform: `translate(${t.horizontal_x}, ${s.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
865
|
}, T(g(q)({
|
|
866
866
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
867
867
|
v: t.value,
|
|
868
868
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
869
869
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
870
|
-
})), 9,
|
|
871
|
-
], 64)) :
|
|
872
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(),
|
|
873
|
-
a.$slots["time-label"] ? (o(),
|
|
874
|
-
(o(!0),
|
|
875
|
-
k(a.$slots, "time-label",
|
|
876
|
-
x:
|
|
877
|
-
y:
|
|
870
|
+
})), 9, Qa))), 256))
|
|
871
|
+
], 64)) : y("", !0),
|
|
872
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), n(h, { key: 14 }, [
|
|
873
|
+
a.$slots["time-label"] ? (o(), n("g", ja, [
|
|
874
|
+
(o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
|
|
875
|
+
k(a.$slots, "time-label", $e({ ref_for: !0 }, {
|
|
876
|
+
x: s.value.left + d.value * l + d.value / 2,
|
|
877
|
+
y: s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
878
878
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
879
879
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
880
|
-
transform: `translate(${
|
|
880
|
+
transform: `translate(${s.value.left + d.value * l + d.value / 2}, ${s.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
881
|
absoluteIndex: t.absoluteIndex,
|
|
882
882
|
content: t.text,
|
|
883
883
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
884
884
|
show: !0
|
|
885
885
|
}), void 0, !0)
|
|
886
886
|
]))), 256))
|
|
887
|
-
])) : (o(),
|
|
888
|
-
(o(!0),
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
887
|
+
])) : (o(), n("g", el, [
|
|
888
|
+
(o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
|
|
889
|
+
t.text.includes(`
|
|
890
|
+
`) ? (o(), n("text", {
|
|
891
|
+
key: l + "-multi",
|
|
892
|
+
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
893
|
+
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
894
|
+
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
895
|
+
transform: `
|
|
896
|
+
translate(
|
|
897
|
+
${s.value.left + d.value * l + d.value / 2},
|
|
898
|
+
${s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
899
|
+
),
|
|
900
|
+
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
901
|
+
`,
|
|
902
|
+
style: { cursor: "pointer" },
|
|
903
|
+
innerHTML: g(ra)({
|
|
904
|
+
content: t.text,
|
|
905
|
+
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
906
|
+
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
907
|
+
x: 0,
|
|
908
|
+
y: 0
|
|
909
|
+
}),
|
|
910
|
+
onClick: () => ye(t, l)
|
|
911
|
+
}, null, 8, al)) : (o(), n("text", {
|
|
912
|
+
key: l,
|
|
913
|
+
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
914
|
+
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
915
|
+
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
916
|
+
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
917
|
+
transform: `translate(${s.value.left + d.value * l + d.value / 2}, ${s.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})`,
|
|
918
|
+
style: { cursor: "pointer" },
|
|
919
|
+
onClick: () => ye(t, l)
|
|
920
|
+
}, T(t.text), 9, tl))
|
|
921
|
+
]))), 256))
|
|
899
922
|
]))
|
|
900
|
-
], 64)) :
|
|
901
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(),
|
|
902
|
-
a.$slots["time-label"] ? (o(),
|
|
903
|
-
(o(!0),
|
|
904
|
-
k(a.$slots, "time-label",
|
|
905
|
-
x:
|
|
906
|
-
y:
|
|
923
|
+
], 64)) : y("", !0),
|
|
924
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), n(h, { key: 15 }, [
|
|
925
|
+
a.$slots["time-label"] ? (o(), n("g", ll, [
|
|
926
|
+
(o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
|
|
927
|
+
k(a.$slots, "time-label", $e({ ref_for: !0 }, {
|
|
928
|
+
x: s.value.left - 8,
|
|
929
|
+
y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
907
930
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
908
931
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
909
932
|
transform: null,
|
|
@@ -913,53 +936,74 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
913
936
|
show: !0
|
|
914
937
|
}), void 0, !0)
|
|
915
938
|
]))), 256))
|
|
916
|
-
])) : (o(),
|
|
917
|
-
(o(!0),
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
939
|
+
])) : (o(), n("g", rl, [
|
|
940
|
+
(o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
|
|
941
|
+
t.text.includes(`
|
|
942
|
+
`) ? (o(), n("text", {
|
|
943
|
+
key: 1,
|
|
944
|
+
"text-anchor": "end",
|
|
945
|
+
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
946
|
+
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
947
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
948
|
+
x: s.value.left - 8,
|
|
949
|
+
y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
950
|
+
style: { cursor: "pointer" },
|
|
951
|
+
onClick: () => ye(t, l),
|
|
952
|
+
innerHTML: g(oa)({
|
|
953
|
+
content: t.text,
|
|
954
|
+
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
955
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
956
|
+
x: s.value.left - 8,
|
|
957
|
+
y: 0
|
|
958
|
+
})
|
|
959
|
+
}, null, 8, sl)) : (o(), n("text", {
|
|
960
|
+
key: 0,
|
|
961
|
+
"text-anchor": "end",
|
|
962
|
+
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
963
|
+
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
964
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
965
|
+
x: s.value.left - 8,
|
|
966
|
+
y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
967
|
+
style: {
|
|
968
|
+
cursor: "pointer"
|
|
969
|
+
},
|
|
970
|
+
onClick: () => ye(t, l)
|
|
971
|
+
}, T(t.text), 9, ol))
|
|
972
|
+
]))), 256))
|
|
929
973
|
]))
|
|
930
|
-
], 64)) :
|
|
931
|
-
C.value.showTooltip && e.value.orientation === "vertical" ? (o(!0),
|
|
932
|
-
x:
|
|
933
|
-
y:
|
|
934
|
-
width:
|
|
935
|
-
height:
|
|
936
|
-
onClick: (c) =>
|
|
937
|
-
onMouseenter: (c) =>
|
|
974
|
+
], 64)) : y("", !0),
|
|
975
|
+
C.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 16 }, b(v.value.end - v.value.start, (t, l) => (o(), n("rect", {
|
|
976
|
+
x: s.value.left + l * d.value,
|
|
977
|
+
y: s.value.top,
|
|
978
|
+
width: d.value,
|
|
979
|
+
height: s.value.height < 0 ? 0 : s.value.height,
|
|
980
|
+
onClick: (c) => Je(l),
|
|
981
|
+
onMouseenter: (c) => qe(l),
|
|
938
982
|
onMouseleave: r[0] || (r[0] = (c) => {
|
|
939
983
|
te.value = null, ie.value = !1;
|
|
940
984
|
}),
|
|
941
985
|
fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
942
986
|
style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
943
|
-
}, null, 44,
|
|
944
|
-
C.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0),
|
|
945
|
-
x:
|
|
946
|
-
y:
|
|
947
|
-
width:
|
|
948
|
-
height:
|
|
949
|
-
onClick: (c) =>
|
|
950
|
-
onMouseenter: (c) =>
|
|
987
|
+
}, null, 44, il))), 256)) : y("", !0),
|
|
988
|
+
C.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 17 }, b(v.value.end - v.value.start, (t, l) => (o(), n("rect", {
|
|
989
|
+
x: s.value.left,
|
|
990
|
+
y: s.value.top + l * d.value,
|
|
991
|
+
width: s.value.width < 0 ? 0 : s.value.width,
|
|
992
|
+
height: d.value,
|
|
993
|
+
onClick: (c) => Je(l),
|
|
994
|
+
onMouseenter: (c) => qe(l),
|
|
951
995
|
onMouseleave: r[1] || (r[1] = (c) => {
|
|
952
996
|
te.value = null, ie.value = !1;
|
|
953
997
|
}),
|
|
954
998
|
fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
955
999
|
style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
956
|
-
}, null, 44,
|
|
957
|
-
k(a.$slots, "svg",
|
|
958
|
-
], 12,
|
|
959
|
-
a.$slots.watermark ? (o(),
|
|
960
|
-
k(a.$slots, "watermark",
|
|
961
|
-
])) :
|
|
962
|
-
Z.value ?
|
|
1000
|
+
}, null, 44, nl))), 256)) : y("", !0),
|
|
1001
|
+
k(a.$slots, "svg", E(D({ ...s.value })), void 0, !0)
|
|
1002
|
+
], 12, ka)) : y("", !0),
|
|
1003
|
+
a.$slots.watermark ? (o(), n("div", ul, [
|
|
1004
|
+
k(a.$slots, "watermark", E(D({ isPrinting: g(Ee) || g(De) })), void 0, !0)
|
|
1005
|
+
])) : y("", !0),
|
|
1006
|
+
Z.value ? y("", !0) : (o(), j(g(zt), {
|
|
963
1007
|
key: 5,
|
|
964
1008
|
config: {
|
|
965
1009
|
type: "bar",
|
|
@@ -976,14 +1020,14 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
976
1020
|
}, null, 8, ["config"])),
|
|
977
1021
|
J("div", {
|
|
978
1022
|
ref_key: "chartSlicer",
|
|
979
|
-
ref:
|
|
1023
|
+
ref: Ie,
|
|
980
1024
|
style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
981
1025
|
"data-dom-to-png-ignore": ""
|
|
982
1026
|
}, [
|
|
983
|
-
e.value.style.chart.zoom.show &&
|
|
1027
|
+
e.value.style.chart.zoom.show && F.value > 1 ? (o(), j(ga, {
|
|
984
1028
|
ref_key: "slicerComponent",
|
|
985
1029
|
ref: K,
|
|
986
|
-
key: `slicer_${
|
|
1030
|
+
key: `slicer_${Re.value}`,
|
|
987
1031
|
background: e.value.style.chart.zoom.color,
|
|
988
1032
|
borderColor: e.value.style.chart.backgroundColor,
|
|
989
1033
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -993,7 +1037,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
993
1037
|
textColor: e.value.style.chart.color,
|
|
994
1038
|
inputColor: e.value.style.chart.zoom.color,
|
|
995
1039
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
996
|
-
max: Math.max(...
|
|
1040
|
+
max: Math.max(...ke.dataset.map((t) => t.series.length)),
|
|
997
1041
|
min: 0,
|
|
998
1042
|
valueStart: v.value.start,
|
|
999
1043
|
valueEnd: v.value.end,
|
|
@@ -1002,16 +1046,16 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
1002
1046
|
end: v.value.end,
|
|
1003
1047
|
"onUpdate:end": r[3] || (r[3] = (t) => v.value.end = t),
|
|
1004
1048
|
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(...
|
|
1049
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...ke.dataset.map((t) => t.series.length)),
|
|
1006
1050
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1007
1051
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1008
|
-
onReset:
|
|
1052
|
+
onReset: Ye
|
|
1009
1053
|
}, {
|
|
1010
|
-
"reset-action":
|
|
1011
|
-
k(a.$slots, "reset-action",
|
|
1054
|
+
"reset-action": _(({ reset: t }) => [
|
|
1055
|
+
k(a.$slots, "reset-action", E(D({ reset: t })), void 0, !0)
|
|
1012
1056
|
]),
|
|
1013
1057
|
_: 3
|
|
1014
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) :
|
|
1058
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
|
|
1015
1059
|
], 4),
|
|
1016
1060
|
se(g(Ct), {
|
|
1017
1061
|
show: C.value.showTooltip && ie.value,
|
|
@@ -1025,40 +1069,40 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
1025
1069
|
position: e.value.style.chart.tooltip.position,
|
|
1026
1070
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1027
1071
|
parent: ee.value,
|
|
1028
|
-
content:
|
|
1072
|
+
content: Ce.value,
|
|
1029
1073
|
isFullscreen: ne.value,
|
|
1030
1074
|
isCustom: g(yt)(e.value.style.chart.tooltip.customFormat)
|
|
1031
1075
|
}, {
|
|
1032
|
-
"tooltip-before":
|
|
1033
|
-
k(a.$slots, "tooltip-before",
|
|
1076
|
+
"tooltip-before": _(() => [
|
|
1077
|
+
k(a.$slots, "tooltip-before", E(D({ ...ze.value })), void 0, !0)
|
|
1034
1078
|
]),
|
|
1035
|
-
"tooltip-after":
|
|
1036
|
-
k(a.$slots, "tooltip-after",
|
|
1079
|
+
"tooltip-after": _(() => [
|
|
1080
|
+
k(a.$slots, "tooltip-after", E(D({ ...ze.value })), void 0, !0)
|
|
1037
1081
|
]),
|
|
1038
1082
|
_: 3
|
|
1039
1083
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1040
1084
|
J("div", {
|
|
1041
1085
|
ref_key: "chartLegend",
|
|
1042
|
-
ref:
|
|
1086
|
+
ref: Ne
|
|
1043
1087
|
}, [
|
|
1044
|
-
e.value.style.chart.legend.show && Z.value ? (o(), j(
|
|
1088
|
+
e.value.style.chart.legend.show && Z.value ? (o(), j(ya, {
|
|
1045
1089
|
key: 0,
|
|
1046
|
-
legendSet:
|
|
1090
|
+
legendSet: tt.value,
|
|
1047
1091
|
config: Vt.value,
|
|
1048
1092
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1049
1093
|
}, nt({
|
|
1050
|
-
item:
|
|
1094
|
+
item: _(({ legend: t }) => [
|
|
1051
1095
|
J("div", {
|
|
1052
1096
|
onClick: (l) => t.segregate(),
|
|
1053
1097
|
style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1054
|
-
}, T(t.name), 13,
|
|
1098
|
+
}, T(t.name), 13, cl)
|
|
1055
1099
|
]),
|
|
1056
1100
|
_: 2
|
|
1057
1101
|
}, [
|
|
1058
1102
|
a.$slots.pattern ? {
|
|
1059
1103
|
name: "legend-pattern",
|
|
1060
|
-
fn:
|
|
1061
|
-
se(
|
|
1104
|
+
fn: _(({ legend: t, index: l }) => [
|
|
1105
|
+
se(fa, {
|
|
1062
1106
|
shape: t.shape,
|
|
1063
1107
|
radius: 30,
|
|
1064
1108
|
stroke: "none",
|
|
@@ -1070,17 +1114,17 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
1070
1114
|
} : void 0
|
|
1071
1115
|
]), 1032, ["legendSet", "config"])) : k(a.$slots, "legend", {
|
|
1072
1116
|
key: 1,
|
|
1073
|
-
legend:
|
|
1117
|
+
legend: tt.value
|
|
1074
1118
|
}, void 0, !0)
|
|
1075
1119
|
], 512),
|
|
1076
|
-
a.$slots.source ? (o(),
|
|
1120
|
+
a.$slots.source ? (o(), n("div", {
|
|
1077
1121
|
key: 6,
|
|
1078
1122
|
ref_key: "source",
|
|
1079
|
-
ref:
|
|
1123
|
+
ref: Oe,
|
|
1080
1124
|
dir: "auto"
|
|
1081
1125
|
}, [
|
|
1082
1126
|
k(a.$slots, "source", {}, void 0, !0)
|
|
1083
|
-
], 512)) :
|
|
1127
|
+
], 512)) : y("", !0),
|
|
1084
1128
|
v.value.end - v.value.start < 200 ? (o(), j(g(pt), {
|
|
1085
1129
|
key: 7,
|
|
1086
1130
|
hideDetails: "",
|
|
@@ -1097,7 +1141,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
1097
1141
|
}
|
|
1098
1142
|
}
|
|
1099
1143
|
}, {
|
|
1100
|
-
content:
|
|
1144
|
+
content: _(() => [
|
|
1101
1145
|
se(g(xt), {
|
|
1102
1146
|
colNames: he.value.colNames,
|
|
1103
1147
|
head: he.value.head,
|
|
@@ -1106,10 +1150,10 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
1106
1150
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1107
1151
|
onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
|
|
1108
1152
|
}, {
|
|
1109
|
-
th:
|
|
1110
|
-
J("div", { innerHTML: t }, null, 8,
|
|
1153
|
+
th: _(({ th: t }) => [
|
|
1154
|
+
J("div", { innerHTML: t }, null, 8, vl)
|
|
1111
1155
|
]),
|
|
1112
|
-
td:
|
|
1156
|
+
td: _(({ td: t }) => [
|
|
1113
1157
|
Jt(T(isNaN(Number(t)) ? t : g(q)({
|
|
1114
1158
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1115
1159
|
v: t,
|
|
@@ -1121,10 +1165,10 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
|
|
|
1121
1165
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
1122
1166
|
]),
|
|
1123
1167
|
_: 1
|
|
1124
|
-
}, 8, ["config"])) :
|
|
1125
|
-
], 46,
|
|
1168
|
+
}, 8, ["config"])) : y("", !0)
|
|
1169
|
+
], 46, xa));
|
|
1126
1170
|
}
|
|
1127
|
-
},
|
|
1171
|
+
}, _l = /* @__PURE__ */ pa(hl, [["__scopeId", "data-v-0e688c21"]]);
|
|
1128
1172
|
export {
|
|
1129
|
-
|
|
1173
|
+
_l as default
|
|
1130
1174
|
};
|