vue-data-ui 2.16.1 → 2.16.2
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-CdYLGu-R.js → Arrow-BpStYUGJ.js} +1 -1
- package/dist/{BaseDraggableDialog-D6BUj4Or.js → BaseDraggableDialog-CM_ub9oR.js} +2 -2
- package/dist/{BaseIcon-2AuS2xrH.js → BaseIcon-ChYI-pDw.js} +1 -1
- package/dist/{ColorPicker-D6HKO2k4.js → ColorPicker-B91Jzf70.js} +2 -2
- package/dist/{DataTable-BTMcFTt-.js → DataTable-CjniJr_p.js} +2 -2
- package/dist/{Legend-DPfiRB9k.js → Legend-CjEhE5tg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-V9DQ1K2C.js → NonSvgPenAndPaper-Y8Y6KO1_.js} +3 -3
- package/dist/{PackageVersion-BcMsNWmF.js → PackageVersion-O8v3MCyb.js} +1 -1
- package/dist/{PenAndPaper-BzwWPvY0.js → PenAndPaper-Dolgj6K1.js} +3 -3
- package/dist/{Shape-DaS8m57N.js → Shape-CF-SzYWd.js} +1 -1
- package/dist/{Slicer-B1l-hAKo.js → Slicer-7UFoB2Pk.js} +2 -2
- package/dist/{SparkTooltip-o2T1w8GL.js → SparkTooltip-LMuNP74j.js} +1 -1
- package/dist/{Title-SU7CQYnf.js → Title-hN8UEfjj.js} +1 -1
- package/dist/{Tooltip-C6OCDrst.js → Tooltip-b8Cop9WD.js} +1 -1
- package/dist/{UserOptions-hse40wiU.js → UserOptions-B5jU6leO.js} +2 -2
- package/dist/{dom-to-png-BGKe--PB.js → dom-to-png-CpD0Lfbd.js} +1 -1
- package/dist/{img-BdgsV5lD.js → img-Doodp2oq.js} +1 -1
- package/dist/{index-BmToae5Y.js → index-Bx_avyMs.js} +9 -1
- package/dist/{pdf-B2VzlFHc.js → pdf-COW1oQRZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +8 -0
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-C9H_cfK6.js → useNestedProp-DsLqa9JE.js} +1 -1
- package/dist/{usePrinter-7HFTqRRy.js → usePrinter-BEk4BlKC.js} +2 -2
- package/dist/{vue-data-ui-G-77mNtU.js → vue-data-ui-acdqibhg.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DnbBLiP9.js → vue-ui-3d-bar-DXS6jY86.js} +5 -5
- package/dist/{vue-ui-accordion-YrTS7w6l.js → vue-ui-accordion-Bl3dCfLj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CK4TcV8J.js → vue-ui-age-pyramid-C2IFRsHg.js} +5 -5
- package/dist/{vue-ui-annotator-CCK7MvTD.js → vue-ui-annotator-v6bzl8q3.js} +2 -2
- package/dist/{vue-ui-bullet-Bi8hZ11Y.js → vue-ui-bullet-DS1sXCAJ.js} +6 -6
- package/dist/{vue-ui-candlestick-BhO1Pr7W.js → vue-ui-candlestick-BuImOpmm.js} +6 -6
- package/dist/{vue-ui-carousel-table-Boexi2oc.js → vue-ui-carousel-table-BYrZg-w-.js} +4 -4
- package/dist/{vue-ui-chestnut-gcgyIPmy.js → vue-ui-chestnut-CX0AxysX.js} +4 -4
- package/dist/{vue-ui-chord-DwzC0tif.js → vue-ui-chord-D3Ig5mlr.js} +7 -7
- package/dist/{vue-ui-circle-pack-BY2AVXMM.js → vue-ui-circle-pack-CvMxlkM1.js} +5 -5
- package/dist/{vue-ui-cursor-DlZbg99Y.js → vue-ui-cursor-DCe5ftL6.js} +2 -2
- package/dist/{vue-ui-dashboard-Bibjr7zW.js → vue-ui-dashboard-DjTfmpkl.js} +62 -62
- package/dist/{vue-ui-digits-BD392pWk.js → vue-ui-digits-BgyMpVfM.js} +2 -2
- package/dist/{vue-ui-donut-CaaEPEkQ.js → vue-ui-donut-BYULgaFr.js} +7 -7
- package/dist/{vue-ui-donut-evolution-lCKnq0_k.js → vue-ui-donut-evolution-Gs5lqg_c.js} +7 -7
- package/dist/{vue-ui-dumbbell-DktVMHIA.js → vue-ui-dumbbell-DJ63prGq.js} +6 -6
- package/dist/{vue-ui-flow-B9Dd1Xhc.js → vue-ui-flow-DomJTEa7.js} +6 -6
- package/dist/{vue-ui-funnel-BfDfdcdt.js → vue-ui-funnel-BD4KJRLk.js} +5 -5
- package/dist/{vue-ui-galaxy-CMYtUIFe.js → vue-ui-galaxy-B1ed7khr.js} +4 -4
- package/dist/{vue-ui-gauge-CnZNTknJ.js → vue-ui-gauge-eAUAVWfu.js} +5 -5
- package/dist/{vue-ui-gizmo-VCWCehBt.js → vue-ui-gizmo-nbU__4zy.js} +3 -3
- package/dist/{vue-ui-heatmap-BCyT2BB1.js → vue-ui-heatmap-B1_OLrfF.js} +6 -6
- package/dist/{vue-ui-history-plot-Bm45XY6j.js → vue-ui-history-plot-ItJUkgZj.js} +6 -6
- package/dist/{vue-ui-kpi-Dg5ttUw2.js → vue-ui-kpi-BUNEAj1l.js} +3 -3
- package/dist/{vue-ui-mini-loader-KFABEiiX.js → vue-ui-mini-loader-FzVgIco8.js} +2 -2
- package/dist/{vue-ui-molecule-DwEUPMNI.js → vue-ui-molecule-C5QDqHFJ.js} +4 -4
- package/dist/{vue-ui-mood-radar-DMo26lm_.js → vue-ui-mood-radar-4TYRJb63.js} +6 -6
- package/dist/{vue-ui-nested-donuts-BzHXK2q5.js → vue-ui-nested-donuts-BiAk2hkq.js} +6 -6
- package/dist/{vue-ui-onion-CZD8T-TN.js → vue-ui-onion-B0NnVR9Z.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-Bq8WG416.js → vue-ui-parallel-coordinate-plot-BDqMALvX.js} +7 -7
- package/dist/{vue-ui-quadrant-DnZAnr2B.js → vue-ui-quadrant-nZ7lBwEx.js} +7 -7
- package/dist/{vue-ui-quick-chart-CD65jyUF.js → vue-ui-quick-chart-DIeeIhwx.js} +5 -5
- package/dist/{vue-ui-radar-CnoKetuv.js → vue-ui-radar-C2qCzI5Z.js} +6 -6
- package/dist/{vue-ui-rating-DSo-wq4O.js → vue-ui-rating-bSawIC9F.js} +2 -2
- package/dist/{vue-ui-relation-circle-CsL0FhOw.js → vue-ui-relation-circle-BnOs9mSi.js} +5 -5
- package/dist/{vue-ui-ridgeline-B1rbGt-g.js → vue-ui-ridgeline-9i3PdyEh.js} +7 -7
- package/dist/{vue-ui-rings-DkOXu1zS.js → vue-ui-rings-D4LsmMl9.js} +7 -7
- package/dist/{vue-ui-scatter-Dh589Gh9.js → vue-ui-scatter-PWUqzmTI.js} +7 -7
- package/dist/{vue-ui-skeleton-B2qHPqH4.js → vue-ui-skeleton-DlBP_Guf.js} +3 -3
- package/dist/{vue-ui-smiley-C1eeioL_.js → vue-ui-smiley-BZEP6Dne.js} +2 -2
- package/dist/{vue-ui-spark-trend-DqlLI8KJ.js → vue-ui-spark-trend-D2B93PIQ.js} +3 -3
- package/dist/{vue-ui-sparkbar-DS69Q2mJ.js → vue-ui-sparkbar-THflmQlk.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ujpopbjP.js → vue-ui-sparkgauge-JvELKu4i.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-D7eWFS-3.js → vue-ui-sparkhistogram-BI0Wm1yO.js} +4 -4
- package/dist/{vue-ui-sparkline-wNjAef_t.js → vue-ui-sparkline-BPMeJFYG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CEVRpIee.js → vue-ui-sparkstackbar-jf-x6VJ7.js} +3 -3
- package/dist/{vue-ui-stackbar-rYzOf9u2.js → vue-ui-stackbar-CveY_p-5.js} +418 -413
- package/dist/{vue-ui-strip-plot-BA-xiJo3.js → vue-ui-strip-plot-JfgG5Gwp.js} +6 -6
- package/dist/{vue-ui-table-DZmHeR2H.js → vue-ui-table-CTgL7oTH.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ZTs8XMvz.js → vue-ui-table-heatmap-BRxgMftV.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BFC-Uvtb.js → vue-ui-table-sparkline-D2Clt2Sc.js} +4 -4
- package/dist/{vue-ui-thermometer-BHZKlINI.js → vue-ui-thermometer-bYKGfBYY.js} +5 -5
- package/dist/{vue-ui-timer-EN9iwGUt.js → vue-ui-timer-CmGfDuGf.js} +5 -5
- package/dist/{vue-ui-tiremarks-DWKu1WEv.js → vue-ui-tiremarks-sGGB_k6s.js} +5 -5
- package/dist/{vue-ui-treemap-CKAc2_-5.js → vue-ui-treemap-8EvR435y.js} +7 -7
- package/dist/{vue-ui-vertical-bar-BgCKuRXv.js → vue-ui-vertical-bar-BRJrXh5B.js} +8 -8
- package/dist/{vue-ui-waffle-B5QBZfDo.js → vue-ui-waffle-ogdiRG5y.js} +7 -7
- package/dist/{vue-ui-wheel-CE6sQIyF.js → vue-ui-wheel-DnLD95bo.js} +5 -5
- package/dist/{vue-ui-word-cloud-DwJdaPQ6.js → vue-ui-word-cloud-CTQnqO2x.js} +5 -5
- package/dist/{vue-ui-world-U9zVcxU9.js → vue-ui-world-Y8TK2yge.js} +5 -5
- package/dist/{vue-ui-xy-CsZMQl6x.js → vue-ui-xy-B0XST9Kk.js} +16 -16
- package/dist/{vue-ui-xy-canvas-u0mizRSW.js → vue-ui-xy-canvas-Cu6ekPLO.js} +7 -7
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as X, useSlots as
|
|
2
|
-
import { u 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 Jt, computed as z, ref as p, onMounted as ot, watch as it, shallowRef as nt, onBeforeUnmount as qt, nextTick as fe, createElementBlock as n, openBlock as s, unref as y, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as g, renderSlot as k, createElementVNode as J, createVNode as ie, createSlots as ut, withCtx as _, normalizeProps as D, guardReactiveProps as E, Fragment as v, renderList as f, mergeProps as Te, toDisplayString as M, createTextVNode as Zt } from "vue";
|
|
2
|
+
import { u as Kt, c as ct, t as Qt, p as me, a as jt, C as ee, b as ea, o as ta, e as ht, g as aa, d as la, al as pe, ai as vt, D as dt, X as ra, l as sa, a7 as xe, F as yt, i as ke, f as q, I as oa, am as ia, x as gt, q as na, r as ua, y as ca } from "./index-Bx_avyMs.js";
|
|
3
|
+
import { u as bt } from "./useNestedProp-DsLqa9JE.js";
|
|
4
|
+
import { t as ha, u as va } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as da } from "./usePrinter-BEk4BlKC.js";
|
|
6
|
+
import { u as ya } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ga } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ba from "./Legend-CjEhE5tg.js";
|
|
9
|
+
import { S as fa } from "./Slicer-7UFoB2Pk.js";
|
|
10
|
+
import ma from "./Title-hN8UEfjj.js";
|
|
11
|
+
import { _ as pa } from "./Shape-CF-SzYWd.js";
|
|
12
|
+
import { u as xa } from "./useTimeLabels-Mrr0jrpL.js";
|
|
13
|
+
import { _ as ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"], Ca = { key: 1 }, _a = ["id"], Sa = ["stop-color"], $a = ["stop-color"], Ta = ["stop-color"], Ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pa = { key: 0 }, Ra = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Va = { key: 0 }, Aa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Da = { key: 0 }, Ea = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x", "y", "font-size", "fill", "font-weight"], Wa = ["transform", "font-size", "fill", "font-weight"], Ya = ["x", "y", "font-size", "fill", "font-weight"], Xa = { key: 0 }, Ga = ["x", "y", "font-size", "font-weight", "fill"], Ja = ["x", "y", "font-size", "fill", "font-weight"], qa = { key: 0 }, Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x1", "x2", "y1", "y2", "stroke"], Qa = ["x", "y", "font-size", "font-weight", "fill"], ja = ["x1", "x2", "y1", "y2", "stroke"], el = ["font-size", "font-weight", "fill", "text-anchor", "transform"], tl = { key: 0 }, al = { key: 1 }, ll = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], rl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], sl = { key: 0 }, ol = { key: 1 }, il = ["font-size", "font-weight", "fill", "x", "y", "onClick"], nl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], ul = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], cl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], hl = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, vl = ["onClick"], dl = ["innerHTML"], yl = {
|
|
18
18
|
__name: "vue-ui-stackbar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -32,51 +32,52 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
34
34
|
setup(we, { expose: ft, emit: mt }) {
|
|
35
|
-
const pt = X(() => import("./vue-ui-accordion-
|
|
35
|
+
const pt = X(() => import("./vue-ui-accordion-Bl3dCfLj.js")), xt = X(() => import("./DataTable-CjniJr_p.js")), kt = X(() => import("./PackageVersion-O8v3MCyb.js")), wt = X(() => import("./PenAndPaper-Dolgj6K1.js")), zt = X(() => import("./vue-ui-skeleton-DlBP_Guf.js")), Lt = X(() => import("./Tooltip-b8Cop9WD.js")), Ct = X(() => import("./UserOptions-B5jU6leO.js")), { vue_ui_stackbar: _t } = Kt(), St = Jt(), b = we, ze = mt, Z = z({
|
|
36
36
|
get() {
|
|
37
|
-
return !!
|
|
37
|
+
return !!b.dataset && b.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(a) {
|
|
40
40
|
return a;
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
43
|
-
|
|
42
|
+
}), te = p(null), R = p(ct()), ne = p(!1), Le = p(null), Ce = p(""), S = p([]), Me = p(0), Ne = p(null), Ie = p(null), Oe = p(null), Pe = p(null), Re = p(0), ue = p(!1), ae = p(null), H = p(!1), $t = p(0), Tt = p(0), Mt = p(0), K = p(null);
|
|
43
|
+
ot(() => {
|
|
44
44
|
Se();
|
|
45
45
|
});
|
|
46
46
|
const e = z({
|
|
47
|
-
get: () =>
|
|
47
|
+
get: () => De(),
|
|
48
48
|
set: (a) => a
|
|
49
|
-
}), { userOptionsVisible:
|
|
50
|
-
function
|
|
49
|
+
}), { userOptionsVisible: _e, setUserOptionsVisibility: Ve, keepUserOptionState: Ae } = ya({ config: e.value }), { svgRef: Fe } = ga({ config: e.value.style.chart.title });
|
|
50
|
+
function De() {
|
|
51
51
|
const a = bt({
|
|
52
|
-
userConfig:
|
|
53
|
-
defaultConfig:
|
|
52
|
+
userConfig: b.config,
|
|
53
|
+
defaultConfig: _t
|
|
54
54
|
});
|
|
55
55
|
let r = {};
|
|
56
56
|
return a.theme ? r = {
|
|
57
57
|
...bt({
|
|
58
|
-
userConfig:
|
|
58
|
+
userConfig: jt.vue_ui_stackbar[a.theme] || b.config,
|
|
59
59
|
defaultConfig: a
|
|
60
60
|
}),
|
|
61
|
-
customPalette:
|
|
62
|
-
} : r = a,
|
|
61
|
+
customPalette: Qt[a.theme] || me
|
|
62
|
+
} : r = a, b.config && ee(b.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = b.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, b.config && ee(b.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = b.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, b.config && ee(b.config, "style.chart.zoom.startIndex") ? r.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : r.style.chart.zoom.startIndex = null, b.config && ee(b.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, b.config && ee(b.config, "style.chart.bars.dataLabels.hideUnderValue") ? r.style.chart.bars.dataLabels.hideUnderValue = b.config.style.chart.bars.dataLabels.hideUnderValue : r.style.chart.bars.dataLabels.hideUnderValue = null, b.config && ee(b.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? r.style.chart.bars.dataLabels.hideUnderPercentage = b.config.style.chart.bars.dataLabels.hideUnderPercentage : r.style.chart.bars.dataLabels.hideUnderPercentage = null, r;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
const Nt = z(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), It = z(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
65
|
+
it(() => b.config, (a) => {
|
|
66
|
+
e.value = De(), _e.value = !e.value.userOptions.showOnChartHover, Se(), $t.value += 1, Tt.value += 1, Mt.value += 1, L.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
67
|
+
}, { deep: !0 }), it(() => b.dataset, (a) => {
|
|
68
|
+
Ye();
|
|
68
69
|
}, { deep: !0 });
|
|
69
|
-
const
|
|
70
|
+
const L = p({
|
|
70
71
|
dataLabels: {
|
|
71
72
|
show: e.value.style.chart.bars.dataLabels.show
|
|
72
73
|
},
|
|
73
74
|
showTable: e.value.table.show,
|
|
74
75
|
showTooltip: e.value.style.chart.tooltip.show
|
|
75
|
-
}), { isPrinting:
|
|
76
|
-
elementId: `stackbar_${
|
|
76
|
+
}), { isPrinting: Ee, isImaging: He, generatePdf: Ue, generateImage: Be } = da({
|
|
77
|
+
elementId: `stackbar_${R.value}`,
|
|
77
78
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
78
79
|
options: e.value.userOptions.print
|
|
79
|
-
}),
|
|
80
|
+
}), ce = p({
|
|
80
81
|
width: e.value.style.chart.width,
|
|
81
82
|
height: e.value.style.chart.height,
|
|
82
83
|
paddingRatio: {
|
|
@@ -85,20 +86,20 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
85
86
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
86
87
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
87
88
|
}
|
|
88
|
-
}),
|
|
89
|
-
|
|
89
|
+
}), Ot = z(() => ea(e.value.customPalette)), V = nt(null), Q = nt(null), We = p(null);
|
|
90
|
+
ot(() => {
|
|
90
91
|
Se();
|
|
91
92
|
});
|
|
92
93
|
function Se() {
|
|
93
|
-
if (
|
|
94
|
+
if (ta(b.dataset) ? ht({
|
|
94
95
|
componentName: "VueUiStackbar",
|
|
95
96
|
type: "dataset"
|
|
96
|
-
}) :
|
|
97
|
-
|
|
97
|
+
}) : b.dataset.forEach((a, r) => {
|
|
98
|
+
aa({
|
|
98
99
|
datasetObject: a,
|
|
99
100
|
requiredAttributes: ["name", "series"]
|
|
100
101
|
}).forEach((t) => {
|
|
101
|
-
Z.value = !1,
|
|
102
|
+
Z.value = !1, ht({
|
|
102
103
|
componentName: "VueUiStackbar",
|
|
103
104
|
type: "datasetSerieAttribute",
|
|
104
105
|
property: t,
|
|
@@ -108,42 +109,42 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
108
109
|
}), setTimeout(() => {
|
|
109
110
|
H.value = !0;
|
|
110
111
|
}, 10), e.value.responsive) {
|
|
111
|
-
const a =
|
|
112
|
+
const a = ha(() => {
|
|
112
113
|
H.value = !1;
|
|
113
|
-
const { width: r, height: t } =
|
|
114
|
-
chart:
|
|
114
|
+
const { width: r, height: t } = va({
|
|
115
|
+
chart: te.value,
|
|
115
116
|
title: e.value.style.chart.title.text ? Ne.value : null,
|
|
116
117
|
legend: e.value.style.chart.legend.show ? Ie.value : null,
|
|
117
118
|
slicer: e.value.style.chart.zoom.show && F.value > 1 ? Oe.value : null,
|
|
118
|
-
source:
|
|
119
|
+
source: Pe.value
|
|
119
120
|
});
|
|
120
121
|
requestAnimationFrame(() => {
|
|
121
|
-
|
|
122
|
+
ce.value.width = r, ce.value.height = t, clearTimeout(We.value), We.value = setTimeout(() => {
|
|
122
123
|
H.value = !0;
|
|
123
124
|
}, 10);
|
|
124
125
|
});
|
|
125
126
|
});
|
|
126
|
-
|
|
127
|
+
V.value && (Q.value && V.value.unobserve(Q.value), V.value.disconnect()), V.value = new ResizeObserver(a), Q.value = te.value.parentNode, V.value.observe(Q.value);
|
|
127
128
|
}
|
|
128
129
|
Xe();
|
|
129
130
|
}
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
qt(() => {
|
|
132
|
+
V.value && (Q.value && V.value.unobserve(Q.value), V.value.disconnect());
|
|
132
133
|
});
|
|
133
|
-
const
|
|
134
|
-
const { height: a, width: r } =
|
|
134
|
+
const o = z(() => {
|
|
135
|
+
const { height: a, width: r } = ce.value, { right: t } = ce.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, C = e.value.style.chart.padding.left, U = r - C - r * t, B = a - l - e.value.style.chart.padding.bottom;
|
|
135
136
|
return {
|
|
136
137
|
chartHeight: a,
|
|
137
138
|
chartWidth: r,
|
|
138
139
|
top: l,
|
|
139
140
|
right: c,
|
|
140
141
|
bottom: u,
|
|
141
|
-
left:
|
|
142
|
-
width:
|
|
143
|
-
height:
|
|
142
|
+
left: C,
|
|
143
|
+
width: U,
|
|
144
|
+
height: B < 0 ? 0 : B
|
|
144
145
|
};
|
|
145
|
-
}),
|
|
146
|
-
const t =
|
|
146
|
+
}), A = z(() => b.dataset.map((a, r) => {
|
|
147
|
+
const t = la(a.color) || Ot.value[r] || me[r] || me[r % me.length];
|
|
147
148
|
return {
|
|
148
149
|
...a,
|
|
149
150
|
// In distributed mode, all values are converted to positive
|
|
@@ -154,92 +155,92 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
154
155
|
id: ct(),
|
|
155
156
|
color: t
|
|
156
157
|
};
|
|
157
|
-
})), F = z(() => Math.max(...
|
|
158
|
+
})), F = z(() => Math.max(...A.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
|
|
158
159
|
start: 0,
|
|
159
|
-
end: Math.max(...
|
|
160
|
+
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
160
161
|
});
|
|
161
|
-
function
|
|
162
|
+
function Ye() {
|
|
162
163
|
Xe();
|
|
163
164
|
}
|
|
164
165
|
async function Xe() {
|
|
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
|
|
166
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && K.value ? (e.value.style.chart.zoom.startIndex !== null && (await fe(), await fe(), K.value && K.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await fe(), await fe(), K.value && K.value.setEndValue(Pt(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
|
|
166
167
|
start: 0,
|
|
167
|
-
end: Math.max(...
|
|
168
|
-
},
|
|
168
|
+
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
169
|
+
}, Re.value += 1);
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
-
const r = Math.max(...
|
|
171
|
+
function Pt(a) {
|
|
172
|
+
const r = Math.max(...b.dataset.map((t) => t.series.length));
|
|
172
173
|
return a > r ? r : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
173
174
|
}
|
|
174
175
|
const d = z(() => {
|
|
175
176
|
let a;
|
|
176
|
-
return e.value.orientation === "vertical" ? a =
|
|
177
|
-
}),
|
|
177
|
+
return e.value.orientation === "vertical" ? a = o.value.width / (h.value.end - h.value.start) : a = o.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
178
|
+
}), le = z(() => pe(A.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Rt = z(() => pe(A.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
178
179
|
...a,
|
|
179
180
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
180
|
-
}))).slice(
|
|
181
|
-
const a =
|
|
181
|
+
}))).slice(h.value.start, h.value.end)), he = z(() => {
|
|
182
|
+
const a = A.value.filter((r) => !S.value.includes(r.id));
|
|
182
183
|
return {
|
|
183
184
|
positive: pe(a.map((r) => ({
|
|
184
185
|
...r,
|
|
185
|
-
series: r.series.slice(
|
|
186
|
+
series: r.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
186
187
|
}))),
|
|
187
188
|
negative: pe(a.map((r) => ({
|
|
188
189
|
...r,
|
|
189
|
-
series: r.series.slice(
|
|
190
|
+
series: r.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
190
191
|
})))
|
|
191
192
|
};
|
|
192
193
|
}), O = z(() => {
|
|
193
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...
|
|
194
|
+
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(...he.value.positive), r = Math.min(...he.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) : dt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
194
195
|
return l.ticks.map((c) => ({
|
|
195
|
-
zero:
|
|
196
|
-
y:
|
|
197
|
-
x:
|
|
198
|
-
horizontal_zero:
|
|
199
|
-
horizontal_x:
|
|
200
|
-
horizontal_y:
|
|
196
|
+
zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
197
|
+
y: o.value.bottom - o.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
198
|
+
x: o.value.left - 8,
|
|
199
|
+
horizontal_zero: o.value.left + o.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
200
|
+
horizontal_x: o.value.left + o.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
201
|
+
horizontal_y: o.value.bottom - 8,
|
|
201
202
|
value: c
|
|
202
203
|
}));
|
|
203
|
-
}), $ = z(() =>
|
|
204
|
+
}), $ = z(() => xa({
|
|
204
205
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
205
206
|
maxDatapoints: F.value,
|
|
206
207
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
207
|
-
start:
|
|
208
|
-
end:
|
|
208
|
+
start: h.value.start,
|
|
209
|
+
end: h.value.end
|
|
209
210
|
})), w = z(() => {
|
|
210
211
|
if (!Z.value) return [];
|
|
211
212
|
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(...
|
|
213
|
-
return
|
|
214
|
-
const
|
|
215
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) /
|
|
216
|
-
let
|
|
217
|
-
return m > 0 ? (I =
|
|
218
|
-
}),
|
|
219
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) /
|
|
220
|
-
let
|
|
221
|
-
return m > 0 ? (I =
|
|
222
|
-
}),
|
|
223
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) /
|
|
224
|
-
return m > 0 ?
|
|
225
|
-
}),
|
|
226
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) /
|
|
227
|
-
return m > 0 ?
|
|
228
|
-
}),
|
|
213
|
+
const c = Math.max(...he.value.positive) || 0, u = Math.min(...he.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, U = !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 : C > 0 ? 0 : C, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : dt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: B, max: re } = U, W = re + (B >= 0 ? 0 : Math.abs(B)) || 1, T = o.value.height, be = o.value.width, rt = O.value[0] ? O.value[0].zero : o.value.bottom, st = O.value[0] ? O.value[0].horizontal_zero : o.value.left;
|
|
214
|
+
return A.value.filter((se) => !S.value.includes(se.id)).map((se) => {
|
|
215
|
+
const P = se.series.slice(h.value.start, h.value.end), Et = se.signedSeries.slice(h.value.start, h.value.end), Ht = P.map((m, x) => o.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Ut = P.map((m, x) => o.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Bt = P.map((m, x) => {
|
|
216
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
217
|
+
let Y, I;
|
|
218
|
+
return m > 0 ? (I = T * N, Y = rt - I - a[x], a[x] += I) : (I = T * N, Y = rt + t[x], t[x] += Math.abs(I)), Y;
|
|
219
|
+
}), Wt = P.map((m, x) => {
|
|
220
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
221
|
+
let Y, I;
|
|
222
|
+
return m > 0 ? (I = be * N, Y = st + r[x], r[x] += I) : (I = be * N, Y = st - Math.abs(I) - l[x], l[x] += Math.abs(I)), Y;
|
|
223
|
+
}), Yt = P.map((m, x) => {
|
|
224
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
225
|
+
return m > 0 ? T * N : T * Math.abs(N);
|
|
226
|
+
}), Xt = P.map((m, x) => {
|
|
227
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
228
|
+
return m > 0 ? be * N : be * Math.abs(N);
|
|
229
|
+
}), Gt = P.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
|
|
229
230
|
return {
|
|
230
|
-
...
|
|
231
|
-
proportions:
|
|
232
|
-
series:
|
|
233
|
-
signedSeries:
|
|
234
|
-
x:
|
|
235
|
-
y:
|
|
236
|
-
height:
|
|
237
|
-
horizontal_width:
|
|
238
|
-
horizontal_y:
|
|
239
|
-
horizontal_x:
|
|
231
|
+
...se,
|
|
232
|
+
proportions: P.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Gt),
|
|
233
|
+
series: P,
|
|
234
|
+
signedSeries: Et,
|
|
235
|
+
x: Ht,
|
|
236
|
+
y: Bt,
|
|
237
|
+
height: Yt,
|
|
238
|
+
horizontal_width: Xt,
|
|
239
|
+
horizontal_y: Ut,
|
|
240
|
+
horizontal_x: Wt
|
|
240
241
|
};
|
|
241
242
|
});
|
|
242
|
-
}), Ge = z(() =>
|
|
243
|
+
}), Ge = z(() => Rt.value.map((a, r) => ({
|
|
243
244
|
value: a,
|
|
244
245
|
sign: a >= 0 ? 1 : -1
|
|
245
246
|
})));
|
|
@@ -280,7 +281,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
280
281
|
ze("selectDatapoint", { datapoint: r, period: $.value[a] });
|
|
281
282
|
}
|
|
282
283
|
function Ze(a) {
|
|
283
|
-
|
|
284
|
+
ae.value = a, ne.value = !0;
|
|
284
285
|
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
|
|
285
286
|
name: c.name,
|
|
286
287
|
absoluteIndex: c.absoluteIndex,
|
|
@@ -289,20 +290,20 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
289
290
|
color: c.color,
|
|
290
291
|
id: c.id
|
|
291
292
|
}));
|
|
292
|
-
|
|
293
|
+
Le.value = {
|
|
293
294
|
datapoint: t,
|
|
294
295
|
seriesIndex: a,
|
|
295
296
|
config: e.value,
|
|
296
297
|
series: w.value
|
|
297
298
|
};
|
|
298
299
|
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
299
|
-
if (gt(r) &&
|
|
300
|
+
if (gt(r) && ca(() => r({
|
|
300
301
|
seriesIndex: a,
|
|
301
302
|
datapoint: t,
|
|
302
303
|
series: w.value,
|
|
303
304
|
config: e.value
|
|
304
305
|
})))
|
|
305
|
-
|
|
306
|
+
Ce.value = r({
|
|
306
307
|
seriesIndex: a,
|
|
307
308
|
datapoint: t,
|
|
308
309
|
series: w.value,
|
|
@@ -312,49 +313,49 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
312
313
|
const {
|
|
313
314
|
showValue: c,
|
|
314
315
|
showPercentage: u,
|
|
315
|
-
borderColor:
|
|
316
|
-
roundingValue:
|
|
317
|
-
roundingPercentage:
|
|
316
|
+
borderColor: C,
|
|
317
|
+
roundingValue: U,
|
|
318
|
+
roundingPercentage: B
|
|
318
319
|
} = e.value.style.chart.tooltip;
|
|
319
|
-
let
|
|
320
|
-
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (
|
|
321
|
-
const
|
|
320
|
+
let re = "";
|
|
321
|
+
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (re += `<div style="width:100%;text-align:center;border-bottom:1px solid ${C};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
322
|
+
const W = [
|
|
322
323
|
c && u ? "(" : "",
|
|
323
324
|
c && u ? ")" : ""
|
|
324
325
|
];
|
|
325
|
-
t.reverse().forEach((
|
|
326
|
-
|
|
326
|
+
t.reverse().forEach((T) => {
|
|
327
|
+
re += `
|
|
327
328
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
328
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${
|
|
329
|
-
${
|
|
329
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${T.id})` : T.color}"/>${St.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${R.value}_${T.absoluteIndex})"/>` : ""}</svg>
|
|
330
|
+
${T.name}${c || u ? ":" : ""} ${c ? q({
|
|
330
331
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
331
|
-
v:
|
|
332
|
+
v: T.value,
|
|
332
333
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
333
|
-
r:
|
|
334
|
-
}) : ""} ${
|
|
335
|
-
v: isNaN(
|
|
334
|
+
r: U
|
|
335
|
+
}) : ""} ${W[0]}${u ? q({
|
|
336
|
+
v: isNaN(T.value / l) ? 0 : Math.abs(T.value) / l * 100,
|
|
336
337
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
337
338
|
s: "%",
|
|
338
|
-
r:
|
|
339
|
-
}) : ""}${
|
|
339
|
+
r: B
|
|
340
|
+
}) : ""}${W[1]}
|
|
340
341
|
</div>
|
|
341
342
|
`;
|
|
342
|
-
}),
|
|
343
|
+
}), Ce.value = `<div>${re}</div>`;
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
-
|
|
346
|
+
function Vt(a) {
|
|
347
|
+
ue.value = a, Me.value += 1;
|
|
347
348
|
}
|
|
348
349
|
function Ke() {
|
|
349
|
-
|
|
350
|
+
L.value.showTable = !L.value.showTable;
|
|
350
351
|
}
|
|
351
352
|
function Qe() {
|
|
352
|
-
|
|
353
|
+
L.value.dataLabels.show = !L.value.dataLabels.show;
|
|
353
354
|
}
|
|
354
355
|
function je() {
|
|
355
|
-
|
|
356
|
+
L.value.showTooltip = !L.value.showTooltip;
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function At() {
|
|
358
359
|
return w.value;
|
|
359
360
|
}
|
|
360
361
|
const et = z(() => {
|
|
@@ -365,21 +366,21 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
365
366
|
})), r = [];
|
|
366
367
|
return $.value.forEach((t) => {
|
|
367
368
|
const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
368
|
-
|
|
369
|
+
A.value.forEach((c) => {
|
|
369
370
|
l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
370
371
|
}), r.push(l);
|
|
371
372
|
}), { head: a, body: r };
|
|
372
373
|
});
|
|
373
374
|
function tt(a = null) {
|
|
374
|
-
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...et.value.head.map((
|
|
375
|
-
a ? a(u) :
|
|
375
|
+
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...et.value.head.map((C) => C.label)], l = et.value.body, c = r.concat([t]).concat(l), u = na(c);
|
|
376
|
+
a ? a(u) : ua({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
376
377
|
}
|
|
377
|
-
const
|
|
378
|
+
const de = z(() => {
|
|
378
379
|
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
380
|
let r = [];
|
|
380
381
|
for (let c = 0; c < F.value; c += 1) {
|
|
381
|
-
const u = w.value.map((
|
|
382
|
-
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(
|
|
382
|
+
const u = w.value.map((C) => C.series[c] ?? 0).reduce((C, U) => C + U, 0);
|
|
383
|
+
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((C) => (C.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
383
384
|
}
|
|
384
385
|
const t = {
|
|
385
386
|
th: {
|
|
@@ -394,36 +395,36 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
394
395
|
},
|
|
395
396
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
396
397
|
}, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
397
|
-
return { head: a, body: r.slice(0,
|
|
398
|
+
return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
|
|
398
399
|
});
|
|
399
|
-
function
|
|
400
|
+
function Ft(a, r) {
|
|
400
401
|
if (ze("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
|
|
401
402
|
S.value = S.value.filter((t) => t !== r.id);
|
|
402
403
|
else {
|
|
403
|
-
if (S.value.length ===
|
|
404
|
+
if (S.value.length === A.value.length - 1) return;
|
|
404
405
|
S.value.push(r.id);
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
|
-
const at = z(() =>
|
|
408
|
+
const at = z(() => A.value.map((a, r) => ({
|
|
408
409
|
...a,
|
|
409
410
|
shape: "square"
|
|
410
411
|
})).map((a) => ({
|
|
411
412
|
...a,
|
|
412
413
|
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
413
|
-
segregate: () =>
|
|
414
|
+
segregate: () => Ft(a.absoluteIndex, a),
|
|
414
415
|
isSegregated: S.value.includes(a.id)
|
|
415
|
-
}))),
|
|
416
|
+
}))), Dt = z(() => ({
|
|
416
417
|
cy: "stackbar-legend",
|
|
417
418
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
418
419
|
color: e.value.style.chart.legend.color,
|
|
419
420
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
420
421
|
paddingBottom: 12,
|
|
421
422
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
422
|
-
})),
|
|
423
|
+
})), ye = p(!1);
|
|
423
424
|
function $e() {
|
|
424
|
-
|
|
425
|
+
ye.value = !ye.value;
|
|
425
426
|
}
|
|
426
|
-
function
|
|
427
|
+
function ge(a, r) {
|
|
427
428
|
const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
428
429
|
name: l.name,
|
|
429
430
|
value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
|
|
@@ -438,42 +439,42 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
438
439
|
});
|
|
439
440
|
}
|
|
440
441
|
function lt(a, r) {
|
|
441
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
442
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? It.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : Nt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
442
443
|
}
|
|
443
444
|
return ft({
|
|
444
|
-
getData:
|
|
445
|
-
generatePdf:
|
|
445
|
+
getData: At,
|
|
446
|
+
generatePdf: Ue,
|
|
446
447
|
generateCsv: tt,
|
|
447
|
-
generateImage:
|
|
448
|
+
generateImage: Be,
|
|
448
449
|
toggleTable: Ke,
|
|
449
450
|
toggleLabels: Qe,
|
|
450
451
|
toggleTooltip: je,
|
|
451
452
|
toggleAnnotator: $e
|
|
452
|
-
}), (a, r) => (
|
|
453
|
-
id: `stackbar_${
|
|
453
|
+
}), (a, r) => (s(), n("div", {
|
|
454
|
+
id: `stackbar_${R.value}`,
|
|
454
455
|
ref_key: "stackbarChart",
|
|
455
|
-
ref:
|
|
456
|
-
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen":
|
|
456
|
+
ref: te,
|
|
457
|
+
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
|
|
457
458
|
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] = () => y(
|
|
459
|
-
onMouseleave: r[7] || (r[7] = () => y(
|
|
459
|
+
onMouseenter: r[6] || (r[6] = () => y(Ve)(!0)),
|
|
460
|
+
onMouseleave: r[7] || (r[7] = () => y(Ve)(!1))
|
|
460
461
|
}, [
|
|
461
|
-
e.value.userOptions.buttons.annotator ? (
|
|
462
|
+
e.value.userOptions.buttons.annotator ? (s(), j(y(wt), {
|
|
462
463
|
key: 0,
|
|
463
464
|
svgRef: y(Fe),
|
|
464
465
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
465
466
|
color: e.value.style.chart.color,
|
|
466
|
-
active:
|
|
467
|
+
active: ye.value,
|
|
467
468
|
onClose: $e
|
|
468
469
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
469
470
|
k(a.$slots, "userConfig", {}, void 0, !0),
|
|
470
|
-
e.value.style.chart.title.text ? (
|
|
471
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
471
472
|
key: 1,
|
|
472
473
|
ref_key: "chartTitle",
|
|
473
474
|
ref: Ne,
|
|
474
475
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
475
476
|
}, [
|
|
476
|
-
|
|
477
|
+
ie(ma, {
|
|
477
478
|
config: {
|
|
478
479
|
title: {
|
|
479
480
|
cy: "stackbar-title",
|
|
@@ -486,14 +487,14 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
486
487
|
}
|
|
487
488
|
}, null, 8, ["config"])
|
|
488
489
|
], 512)) : g("", !0),
|
|
489
|
-
e.value.userOptions.show && Z.value && (y(
|
|
490
|
+
e.value.userOptions.show && Z.value && (y(Ae) || y(_e)) ? (s(), j(y(Ct), {
|
|
490
491
|
ref: "details",
|
|
491
|
-
key: `user_option_${
|
|
492
|
+
key: `user_option_${Me.value}`,
|
|
492
493
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
493
494
|
color: e.value.style.chart.color,
|
|
494
|
-
isPrinting: y(
|
|
495
|
+
isPrinting: y(Ee),
|
|
495
496
|
isImaging: y(He),
|
|
496
|
-
uid:
|
|
497
|
+
uid: R.value,
|
|
497
498
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
498
499
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
499
500
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -501,113 +502,113 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
501
502
|
hasTable: e.value.userOptions.buttons.table,
|
|
502
503
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
503
504
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
504
|
-
isFullscreen:
|
|
505
|
-
chartElement:
|
|
505
|
+
isFullscreen: ue.value,
|
|
506
|
+
chartElement: te.value,
|
|
506
507
|
position: e.value.userOptions.position,
|
|
507
|
-
isTooltip:
|
|
508
|
+
isTooltip: L.value.showTooltip,
|
|
508
509
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
509
510
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
510
|
-
isAnnotation:
|
|
511
|
+
isAnnotation: ye.value,
|
|
511
512
|
callbacks: e.value.userOptions.callbacks,
|
|
512
|
-
onToggleFullscreen:
|
|
513
|
-
onGeneratePdf: y(
|
|
513
|
+
onToggleFullscreen: Vt,
|
|
514
|
+
onGeneratePdf: y(Ue),
|
|
514
515
|
onGenerateCsv: tt,
|
|
515
|
-
onGenerateImage: y(
|
|
516
|
+
onGenerateImage: y(Be),
|
|
516
517
|
onToggleTable: Ke,
|
|
517
518
|
onToggleLabels: Qe,
|
|
518
519
|
onToggleTooltip: je,
|
|
519
520
|
onToggleAnnotator: $e,
|
|
520
521
|
style: G({
|
|
521
|
-
visibility: y(
|
|
522
|
+
visibility: y(Ae) ? y(_e) ? "visible" : "hidden" : "visible"
|
|
522
523
|
})
|
|
523
524
|
}, ut({ _: 2 }, [
|
|
524
525
|
a.$slots.menuIcon ? {
|
|
525
526
|
name: "menuIcon",
|
|
526
|
-
fn:
|
|
527
|
-
k(a.$slots, "menuIcon", E(
|
|
527
|
+
fn: _(({ isOpen: t, color: l }) => [
|
|
528
|
+
k(a.$slots, "menuIcon", D(E({ isOpen: t, color: l })), void 0, !0)
|
|
528
529
|
]),
|
|
529
530
|
key: "0"
|
|
530
531
|
} : void 0,
|
|
531
532
|
a.$slots.optionTooltip ? {
|
|
532
533
|
name: "optionTooltip",
|
|
533
|
-
fn:
|
|
534
|
+
fn: _(() => [
|
|
534
535
|
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
535
536
|
]),
|
|
536
537
|
key: "1"
|
|
537
538
|
} : void 0,
|
|
538
539
|
a.$slots.optionPdf ? {
|
|
539
540
|
name: "optionPdf",
|
|
540
|
-
fn:
|
|
541
|
+
fn: _(() => [
|
|
541
542
|
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
542
543
|
]),
|
|
543
544
|
key: "2"
|
|
544
545
|
} : void 0,
|
|
545
546
|
a.$slots.optionCsv ? {
|
|
546
547
|
name: "optionCsv",
|
|
547
|
-
fn:
|
|
548
|
+
fn: _(() => [
|
|
548
549
|
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
549
550
|
]),
|
|
550
551
|
key: "3"
|
|
551
552
|
} : void 0,
|
|
552
553
|
a.$slots.optionImg ? {
|
|
553
554
|
name: "optionImg",
|
|
554
|
-
fn:
|
|
555
|
+
fn: _(() => [
|
|
555
556
|
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
556
557
|
]),
|
|
557
558
|
key: "4"
|
|
558
559
|
} : void 0,
|
|
559
560
|
a.$slots.optionTable ? {
|
|
560
561
|
name: "optionTable",
|
|
561
|
-
fn:
|
|
562
|
+
fn: _(() => [
|
|
562
563
|
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
563
564
|
]),
|
|
564
565
|
key: "5"
|
|
565
566
|
} : void 0,
|
|
566
567
|
a.$slots.optionLabels ? {
|
|
567
568
|
name: "optionLabels",
|
|
568
|
-
fn:
|
|
569
|
+
fn: _(() => [
|
|
569
570
|
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
570
571
|
]),
|
|
571
572
|
key: "6"
|
|
572
573
|
} : void 0,
|
|
573
574
|
a.$slots.optionFullscreen ? {
|
|
574
575
|
name: "optionFullscreen",
|
|
575
|
-
fn:
|
|
576
|
-
k(a.$slots, "optionFullscreen", E(
|
|
576
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
577
|
+
k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
577
578
|
]),
|
|
578
579
|
key: "7"
|
|
579
580
|
} : void 0,
|
|
580
581
|
a.$slots.optionAnnotator ? {
|
|
581
582
|
name: "optionAnnotator",
|
|
582
|
-
fn:
|
|
583
|
-
k(a.$slots, "optionAnnotator", E(
|
|
583
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
584
|
+
k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
584
585
|
]),
|
|
585
586
|
key: "8"
|
|
586
587
|
} : void 0
|
|
587
588
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
588
|
-
Z.value ? (
|
|
589
|
+
Z.value ? (s(), n("svg", {
|
|
589
590
|
key: 3,
|
|
590
591
|
ref_key: "svgRef",
|
|
591
592
|
ref: Fe,
|
|
592
|
-
xmlns: y(
|
|
593
|
-
viewBox: `0 0 ${
|
|
593
|
+
xmlns: y(ra),
|
|
594
|
+
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
594
595
|
style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
595
596
|
}, [
|
|
596
|
-
|
|
597
|
-
a.$slots["chart-background"] ? (
|
|
597
|
+
ie(y(kt)),
|
|
598
|
+
a.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
598
599
|
key: 0,
|
|
599
|
-
x:
|
|
600
|
-
y:
|
|
601
|
-
width:
|
|
602
|
-
height:
|
|
600
|
+
x: o.value.left,
|
|
601
|
+
y: o.value.top,
|
|
602
|
+
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
603
|
+
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
603
604
|
style: {
|
|
604
605
|
pointerEvents: "none"
|
|
605
606
|
}
|
|
606
607
|
}, [
|
|
607
608
|
k(a.$slots, "chart-background", {}, void 0, !0)
|
|
608
|
-
], 8,
|
|
609
|
-
e.value.style.chart.bars.gradient.show ? (
|
|
610
|
-
(
|
|
609
|
+
], 8, La)) : g("", !0),
|
|
610
|
+
e.value.style.chart.bars.gradient.show ? (s(), n("defs", Ca, [
|
|
611
|
+
(s(!0), n(v, null, f(w.value, (t, l) => (s(), n("linearGradient", {
|
|
611
612
|
id: `gradient_${t.id}`,
|
|
612
613
|
x1: "0%",
|
|
613
614
|
y1: "0%",
|
|
@@ -617,59 +618,63 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
617
618
|
J("stop", {
|
|
618
619
|
offset: "0%",
|
|
619
620
|
"stop-color": t.color
|
|
620
|
-
}, null, 8,
|
|
621
|
+
}, null, 8, Sa),
|
|
621
622
|
J("stop", {
|
|
622
623
|
offset: "61.8%",
|
|
623
|
-
"stop-color": y(
|
|
624
|
-
}, null, 8,
|
|
624
|
+
"stop-color": y(sa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
625
|
+
}, null, 8, $a),
|
|
625
626
|
J("stop", {
|
|
626
627
|
offset: "100%",
|
|
627
628
|
"stop-color": t.color
|
|
628
|
-
}, null, 8,
|
|
629
|
-
], 8,
|
|
629
|
+
}, null, 8, Ta)
|
|
630
|
+
], 8, _a))), 256))
|
|
630
631
|
])) : g("", !0),
|
|
631
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (
|
|
632
|
-
x1:
|
|
633
|
-
x2:
|
|
632
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 2 }, f(O.value, (t, l) => (s(), n("line", {
|
|
633
|
+
x1: o.value.left,
|
|
634
|
+
x2: o.value.right,
|
|
634
635
|
y1: t.y,
|
|
635
636
|
y2: t.y,
|
|
636
|
-
stroke: e.value.style.chart.grid.x.
|
|
637
|
-
"stroke-width":
|
|
638
|
-
"stroke-
|
|
639
|
-
}, null, 8, $a))), 256)) : g("", !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
|
-
stroke: e.value.style.chart.grid.y.axisColor,
|
|
646
|
-
"stroke-width": 1,
|
|
637
|
+
stroke: e.value.style.chart.grid.x.linesColor,
|
|
638
|
+
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
639
|
+
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
647
640
|
"stroke-linecap": "round"
|
|
648
641
|
}, null, 8, Ma))), 256)) : g("", !0),
|
|
649
|
-
e.value.style.chart.grid.
|
|
650
|
-
x1:
|
|
651
|
-
x2:
|
|
652
|
-
y1:
|
|
653
|
-
y2:
|
|
654
|
-
stroke: e.value.style.chart.grid.
|
|
655
|
-
"stroke-width":
|
|
642
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 3 }, f(h.value.end - h.value.start + 1, (t, l) => (s(), n("line", {
|
|
643
|
+
x1: o.value.left,
|
|
644
|
+
x2: o.value.right,
|
|
645
|
+
y1: o.value.top + d.value * l,
|
|
646
|
+
y2: o.value.top + d.value * l,
|
|
647
|
+
stroke: e.value.style.chart.grid.x.linesColor,
|
|
648
|
+
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
649
|
+
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
650
|
+
"stroke-linecap": "round"
|
|
651
|
+
}, null, 8, Na))), 256)) : g("", !0),
|
|
652
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 4 }, f(h.value.end - h.value.start + 1, (t, l) => (s(), n("line", {
|
|
653
|
+
x1: o.value.left + d.value * l,
|
|
654
|
+
x2: o.value.left + d.value * l,
|
|
655
|
+
y1: o.value.top,
|
|
656
|
+
y2: o.value.bottom,
|
|
657
|
+
stroke: e.value.style.chart.grid.y.linesColor,
|
|
658
|
+
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
659
|
+
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
656
660
|
"stroke-linecap": "round"
|
|
657
|
-
}, null, 8,
|
|
658
|
-
e.value.style.chart.grid.
|
|
661
|
+
}, null, 8, Ia))), 256)) : g("", !0),
|
|
662
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 5 }, f(O.value, (t, l) => (s(), n("line", {
|
|
659
663
|
x1: t.horizontal_x,
|
|
660
664
|
x2: t.horizontal_x,
|
|
661
|
-
y1:
|
|
662
|
-
y2:
|
|
663
|
-
stroke: e.value.style.chart.grid.
|
|
664
|
-
"stroke-width":
|
|
665
|
+
y1: o.value.top,
|
|
666
|
+
y2: o.value.bottom,
|
|
667
|
+
stroke: e.value.style.chart.grid.y.linesColor,
|
|
668
|
+
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
669
|
+
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
665
670
|
"stroke-linecap": "round"
|
|
666
|
-
}, null, 8,
|
|
667
|
-
(
|
|
668
|
-
a.$slots.pattern ? (
|
|
669
|
-
k(a.$slots, "pattern",
|
|
671
|
+
}, null, 8, Oa))), 256)) : g("", !0),
|
|
672
|
+
(s(!0), n(v, null, f(w.value, (t, l) => (s(), n("g", null, [
|
|
673
|
+
a.$slots.pattern ? (s(), n("defs", Pa, [
|
|
674
|
+
k(a.$slots, "pattern", Te({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${R.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
670
675
|
])) : g("", !0),
|
|
671
|
-
e.value.orientation === "vertical" ? (
|
|
672
|
-
(
|
|
676
|
+
e.value.orientation === "vertical" ? (s(), n(v, { key: 1 }, [
|
|
677
|
+
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
|
|
673
678
|
x: c,
|
|
674
679
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
675
680
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
@@ -681,25 +686,25 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
681
686
|
"stroke-linecap": "round",
|
|
682
687
|
"stroke-linejoin": "round",
|
|
683
688
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
684
|
-
}, null, 10,
|
|
685
|
-
a.$slots.pattern ? (
|
|
686
|
-
(
|
|
689
|
+
}, null, 10, Ra))), 256)),
|
|
690
|
+
a.$slots.pattern ? (s(), n("g", Va, [
|
|
691
|
+
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
|
|
687
692
|
x: c,
|
|
688
693
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
689
694
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
690
695
|
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
696
|
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
692
|
-
fill: `url(#pattern_${
|
|
697
|
+
fill: `url(#pattern_${R.value}_${t.absoluteIndex})`,
|
|
693
698
|
stroke: e.value.style.chart.backgroundColor,
|
|
694
699
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
695
700
|
"stroke-linecap": "round",
|
|
696
701
|
"stroke-linejoin": "round",
|
|
697
702
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
698
|
-
}, null, 10,
|
|
703
|
+
}, null, 10, Aa))), 256))
|
|
699
704
|
])) : g("", !0)
|
|
700
|
-
], 64)) : (
|
|
701
|
-
(
|
|
702
|
-
x: y(xe)(c,
|
|
705
|
+
], 64)) : (s(), n(v, { key: 2 }, [
|
|
706
|
+
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
|
|
707
|
+
x: y(xe)(c, o.value.left),
|
|
703
708
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
704
709
|
width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
705
710
|
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,
|
|
@@ -710,67 +715,67 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
710
715
|
"stroke-linecap": "round",
|
|
711
716
|
"stroke-linejoin": "round",
|
|
712
717
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
713
|
-
}, null, 10,
|
|
714
|
-
a.$slots.pattern ? (
|
|
715
|
-
(
|
|
716
|
-
x: y(xe)(c,
|
|
718
|
+
}, null, 10, Fa))), 256)),
|
|
719
|
+
a.$slots.pattern ? (s(), n("g", Da, [
|
|
720
|
+
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
|
|
721
|
+
x: y(xe)(c, o.value.left),
|
|
717
722
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
718
723
|
width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
719
724
|
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
725
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
721
|
-
fill: `url(#pattern_${
|
|
726
|
+
fill: `url(#pattern_${R.value}_${t.absoluteIndex})`,
|
|
722
727
|
stroke: e.value.style.chart.backgroundColor,
|
|
723
728
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
724
729
|
"stroke-linecap": "round",
|
|
725
730
|
"stroke-linejoin": "round",
|
|
726
731
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
727
|
-
}, null, 10,
|
|
732
|
+
}, null, 10, Ea))), 256))
|
|
728
733
|
])) : g("", !0)
|
|
729
734
|
], 64))
|
|
730
735
|
]))), 256)),
|
|
731
|
-
e.value.style.chart.grid.x.showAxis ? (
|
|
736
|
+
e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
|
|
732
737
|
key: 6,
|
|
733
|
-
x1:
|
|
734
|
-
x2:
|
|
735
|
-
y1:
|
|
736
|
-
y2:
|
|
738
|
+
x1: o.value.left,
|
|
739
|
+
x2: o.value.right,
|
|
740
|
+
y1: o.value.bottom,
|
|
741
|
+
y2: o.value.bottom,
|
|
737
742
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
738
743
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
739
744
|
"stroke-linecap": "round",
|
|
740
745
|
"stroke-linejoin": "round"
|
|
741
|
-
}, null, 8,
|
|
742
|
-
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (
|
|
746
|
+
}, null, 8, Ha)) : g("", !0),
|
|
747
|
+
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
|
|
743
748
|
key: 7,
|
|
744
|
-
x1:
|
|
745
|
-
x2:
|
|
746
|
-
y1:
|
|
747
|
-
y2:
|
|
749
|
+
x1: o.value.left,
|
|
750
|
+
x2: o.value.left,
|
|
751
|
+
y1: o.value.top,
|
|
752
|
+
y2: o.value.bottom,
|
|
748
753
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
749
754
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
750
755
|
"stroke-linecap": "round",
|
|
751
756
|
"stroke-linejoin": "round"
|
|
752
|
-
}, null, 8,
|
|
753
|
-
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (
|
|
757
|
+
}, null, 8, Ua)) : g("", !0),
|
|
758
|
+
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
|
|
754
759
|
key: 8,
|
|
755
|
-
x:
|
|
756
|
-
y:
|
|
760
|
+
x: o.value.left + o.value.width / 2,
|
|
761
|
+
y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
757
762
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
758
763
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
759
764
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
760
765
|
"text-anchor": "middle"
|
|
761
|
-
},
|
|
762
|
-
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (
|
|
766
|
+
}, M(e.value.style.chart.grid.x.axisName.text), 9, Ba)) : g("", !0),
|
|
767
|
+
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
|
|
763
768
|
key: 9,
|
|
764
|
-
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${
|
|
769
|
+
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
|
|
765
770
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
766
771
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
767
772
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
768
773
|
"text-anchor": "middle"
|
|
769
|
-
},
|
|
770
|
-
|
|
771
|
-
(
|
|
772
|
-
(
|
|
773
|
-
lt(t.series[u], t.proportions[u]) ? (
|
|
774
|
+
}, M(e.value.style.chart.grid.y.axisName.text), 9, Wa)) : g("", !0),
|
|
775
|
+
L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
|
|
776
|
+
(s(!0), n(v, null, f(w.value, (t, l) => (s(), n("g", null, [
|
|
777
|
+
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
|
|
778
|
+
lt(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
774
779
|
key: 0,
|
|
775
780
|
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
776
781
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -778,27 +783,27 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
778
783
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(yt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
779
784
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
780
785
|
"text-anchor": "middle"
|
|
781
|
-
},
|
|
786
|
+
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Je(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Ya)) : g("", !0)
|
|
782
787
|
], 64))), 256))
|
|
783
788
|
]))), 256)),
|
|
784
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (
|
|
785
|
-
(
|
|
786
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
789
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), n("g", Xa, [
|
|
790
|
+
(s(!0), n(v, null, f(Ge.value, (t, l) => (s(), n(v, null, [
|
|
791
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
787
792
|
key: 0,
|
|
788
|
-
x:
|
|
789
|
-
y:
|
|
793
|
+
x: o.value.left + d.value * l + d.value / 2,
|
|
794
|
+
y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
790
795
|
"text-anchor": "middle",
|
|
791
796
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
792
797
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
793
798
|
fill: e.value.style.chart.bars.totalValues.color
|
|
794
|
-
},
|
|
799
|
+
}, M(ve(t.value, t, l, t.sign)), 9, Ga)) : g("", !0)
|
|
795
800
|
], 64))), 256))
|
|
796
801
|
])) : g("", !0)
|
|
797
802
|
], 64)) : g("", !0),
|
|
798
|
-
|
|
799
|
-
(
|
|
800
|
-
(
|
|
801
|
-
lt(t.series[u], t.proportions[u]) ? (
|
|
803
|
+
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
|
|
804
|
+
(s(!0), n(v, null, f(w.value, (t, l) => (s(), n("g", null, [
|
|
805
|
+
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
|
|
806
|
+
lt(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
802
807
|
key: 0,
|
|
803
808
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
804
809
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -806,40 +811,40 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
806
811
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(yt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
807
812
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
808
813
|
"text-anchor": "middle"
|
|
809
|
-
},
|
|
814
|
+
}, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Je(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Ja)) : g("", !0)
|
|
810
815
|
], 64))), 256))
|
|
811
816
|
]))), 256)),
|
|
812
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (
|
|
813
|
-
(
|
|
814
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
817
|
+
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), n("g", qa, [
|
|
818
|
+
(s(!0), n(v, null, f(Ge.value, (t, l) => (s(), n(v, null, [
|
|
819
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
815
820
|
key: 0,
|
|
816
|
-
x:
|
|
817
|
-
y:
|
|
821
|
+
x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
822
|
+
y: o.value.top + d.value * l + d.value / 2,
|
|
818
823
|
"text-anchor": "start",
|
|
819
824
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
820
825
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
821
826
|
fill: e.value.style.chart.bars.totalValues.color
|
|
822
|
-
},
|
|
827
|
+
}, M(ve(t.value, t, l, t.sign)), 9, Za)) : g("", !0)
|
|
823
828
|
], 64))), 256))
|
|
824
829
|
])) : g("", !0)
|
|
825
830
|
], 64)) : g("", !0),
|
|
826
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (
|
|
827
|
-
(
|
|
828
|
-
x1:
|
|
829
|
-
x2:
|
|
831
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(v, { key: 12 }, [
|
|
832
|
+
(s(!0), n(v, null, f(O.value, (t, l) => (s(), n("line", {
|
|
833
|
+
x1: o.value.left,
|
|
834
|
+
x2: o.value.left - 6,
|
|
830
835
|
y1: t.y,
|
|
831
836
|
y2: t.y,
|
|
832
837
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
833
838
|
"stroke-width": 1
|
|
834
|
-
}, null, 8,
|
|
835
|
-
(
|
|
839
|
+
}, null, 8, Ka))), 256)),
|
|
840
|
+
(s(!0), n(v, null, f(O.value, (t, l) => (s(), n("text", {
|
|
836
841
|
x: t.x,
|
|
837
842
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
838
843
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
839
844
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
840
845
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
841
846
|
"text-anchor": "end"
|
|
842
|
-
},
|
|
847
|
+
}, M(y(ke)(
|
|
843
848
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
844
849
|
t.value,
|
|
845
850
|
y(q)({
|
|
@@ -849,25 +854,25 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
849
854
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
850
855
|
}),
|
|
851
856
|
{ datapoint: t }
|
|
852
|
-
)), 9,
|
|
857
|
+
)), 9, Qa))), 256))
|
|
853
858
|
], 64)) : g("", !0),
|
|
854
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (
|
|
855
|
-
(
|
|
859
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(v, { key: 13 }, [
|
|
860
|
+
(s(!0), n(v, null, f(O.value, (t, l) => (s(), n("line", {
|
|
856
861
|
x1: t.horizontal_x,
|
|
857
862
|
x2: t.horizontal_x,
|
|
858
|
-
y1:
|
|
859
|
-
y2:
|
|
863
|
+
y1: o.value.bottom,
|
|
864
|
+
y2: o.value.bottom + 6,
|
|
860
865
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
861
866
|
"stroke-width": 1,
|
|
862
867
|
"stroke-linecap": "round"
|
|
863
|
-
}, null, 8,
|
|
864
|
-
(
|
|
868
|
+
}, null, 8, ja))), 256)),
|
|
869
|
+
(s(!0), n(v, null, f(O.value, (t, l) => (s(), n("text", {
|
|
865
870
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
866
871
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
867
872
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
868
873
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
869
|
-
transform: `translate(${t.horizontal_x}, ${
|
|
870
|
-
},
|
|
874
|
+
transform: `translate(${t.horizontal_x}, ${o.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})`
|
|
875
|
+
}, M(y(ke)(
|
|
871
876
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
872
877
|
t.value,
|
|
873
878
|
y(q)({
|
|
@@ -877,66 +882,66 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
877
882
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
878
883
|
}),
|
|
879
884
|
{ datapoint: t }
|
|
880
|
-
)), 9,
|
|
885
|
+
)), 9, el))), 256))
|
|
881
886
|
], 64)) : g("", !0),
|
|
882
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (
|
|
883
|
-
a.$slots["time-label"] ? (
|
|
884
|
-
(
|
|
885
|
-
k(a.$slots, "time-label",
|
|
886
|
-
x:
|
|
887
|
-
y:
|
|
887
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 14 }, [
|
|
888
|
+
a.$slots["time-label"] ? (s(), n("g", tl, [
|
|
889
|
+
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
890
|
+
k(a.$slots, "time-label", Te({ ref_for: !0 }, {
|
|
891
|
+
x: o.value.left + d.value * l + d.value / 2,
|
|
892
|
+
y: o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
888
893
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
889
894
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
890
|
-
transform: `translate(${
|
|
895
|
+
transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.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})`,
|
|
891
896
|
absoluteIndex: t.absoluteIndex,
|
|
892
897
|
content: t.text,
|
|
893
898
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
894
899
|
show: !0
|
|
895
900
|
}), void 0, !0)
|
|
896
901
|
]))), 256))
|
|
897
|
-
])) : (
|
|
898
|
-
(
|
|
902
|
+
])) : (s(), n("g", al, [
|
|
903
|
+
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
899
904
|
String(t.text).includes(`
|
|
900
|
-
`) ? (
|
|
905
|
+
`) ? (s(), n("text", {
|
|
901
906
|
key: l + "-multi",
|
|
902
907
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
903
908
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
904
909
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
905
910
|
transform: `
|
|
906
911
|
translate(
|
|
907
|
-
${
|
|
908
|
-
${
|
|
912
|
+
${o.value.left + d.value * l + d.value / 2},
|
|
913
|
+
${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
909
914
|
),
|
|
910
915
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
911
916
|
`,
|
|
912
917
|
style: { cursor: "pointer" },
|
|
913
|
-
innerHTML: y(
|
|
918
|
+
innerHTML: y(oa)({
|
|
914
919
|
content: String(t.text),
|
|
915
920
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
916
921
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
917
922
|
x: 0,
|
|
918
923
|
y: 0
|
|
919
924
|
}),
|
|
920
|
-
onClick: () =>
|
|
921
|
-
}, null, 8,
|
|
925
|
+
onClick: () => ge(t, l)
|
|
926
|
+
}, null, 8, rl)) : (s(), n("text", {
|
|
922
927
|
key: l,
|
|
923
928
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
924
929
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
925
930
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
926
931
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
927
|
-
transform: `translate(${
|
|
932
|
+
transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.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})`,
|
|
928
933
|
style: { cursor: "pointer" },
|
|
929
|
-
onClick: () =>
|
|
930
|
-
},
|
|
934
|
+
onClick: () => ge(t, l)
|
|
935
|
+
}, M(t.text), 9, ll))
|
|
931
936
|
]))), 256))
|
|
932
937
|
]))
|
|
933
938
|
], 64)) : g("", !0),
|
|
934
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (
|
|
935
|
-
a.$slots["time-label"] ? (
|
|
936
|
-
(
|
|
937
|
-
k(a.$slots, "time-label",
|
|
938
|
-
x:
|
|
939
|
-
y:
|
|
939
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 15 }, [
|
|
940
|
+
a.$slots["time-label"] ? (s(), n("g", sl, [
|
|
941
|
+
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
942
|
+
k(a.$slots, "time-label", Te({ ref_for: !0 }, {
|
|
943
|
+
x: o.value.left - 8,
|
|
944
|
+
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
940
945
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
941
946
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
942
947
|
transform: null,
|
|
@@ -946,74 +951,74 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
946
951
|
show: !0
|
|
947
952
|
}), void 0, !0)
|
|
948
953
|
]))), 256))
|
|
949
|
-
])) : (
|
|
950
|
-
(
|
|
954
|
+
])) : (s(), n("g", ol, [
|
|
955
|
+
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
951
956
|
String(t.text).includes(`
|
|
952
|
-
`) ? (
|
|
957
|
+
`) ? (s(), n("text", {
|
|
953
958
|
key: 1,
|
|
954
959
|
"text-anchor": "end",
|
|
955
960
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
956
961
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
957
962
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
958
|
-
x:
|
|
959
|
-
y:
|
|
963
|
+
x: o.value.left - 8,
|
|
964
|
+
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
960
965
|
style: { cursor: "pointer" },
|
|
961
|
-
onClick: () =>
|
|
962
|
-
innerHTML: y(
|
|
966
|
+
onClick: () => ge(t, l),
|
|
967
|
+
innerHTML: y(ia)({
|
|
963
968
|
content: String(t.text),
|
|
964
969
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
965
970
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
966
|
-
x:
|
|
971
|
+
x: o.value.left - 8,
|
|
967
972
|
y: 0
|
|
968
973
|
})
|
|
969
|
-
}, null, 8,
|
|
974
|
+
}, null, 8, nl)) : (s(), n("text", {
|
|
970
975
|
key: 0,
|
|
971
976
|
"text-anchor": "end",
|
|
972
977
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
973
978
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
974
979
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
975
|
-
x:
|
|
976
|
-
y:
|
|
980
|
+
x: o.value.left - 8,
|
|
981
|
+
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
977
982
|
style: {
|
|
978
983
|
cursor: "pointer"
|
|
979
984
|
},
|
|
980
|
-
onClick: () =>
|
|
981
|
-
},
|
|
985
|
+
onClick: () => ge(t, l)
|
|
986
|
+
}, M(t.text), 9, il))
|
|
982
987
|
]))), 256))
|
|
983
988
|
]))
|
|
984
989
|
], 64)) : g("", !0),
|
|
985
|
-
|
|
986
|
-
x:
|
|
987
|
-
y:
|
|
990
|
+
L.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 16 }, f(h.value.end - h.value.start, (t, l) => (s(), n("rect", {
|
|
991
|
+
x: o.value.left + l * d.value,
|
|
992
|
+
y: o.value.top,
|
|
988
993
|
width: d.value,
|
|
989
|
-
height:
|
|
994
|
+
height: o.value.height < 0 ? 0 : o.value.height,
|
|
990
995
|
onClick: (c) => qe(l),
|
|
991
996
|
onMouseenter: (c) => Ze(l),
|
|
992
997
|
onMouseleave: r[0] || (r[0] = (c) => {
|
|
993
|
-
|
|
998
|
+
ae.value = null, ne.value = !1;
|
|
994
999
|
}),
|
|
995
|
-
fill: l ===
|
|
1000
|
+
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
996
1001
|
style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
997
|
-
}, null, 44,
|
|
998
|
-
|
|
999
|
-
x:
|
|
1000
|
-
y:
|
|
1001
|
-
width:
|
|
1002
|
+
}, null, 44, ul))), 256)) : g("", !0),
|
|
1003
|
+
L.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 17 }, f(h.value.end - h.value.start, (t, l) => (s(), n("rect", {
|
|
1004
|
+
x: o.value.left,
|
|
1005
|
+
y: o.value.top + l * d.value,
|
|
1006
|
+
width: o.value.width < 0 ? 0 : o.value.width,
|
|
1002
1007
|
height: d.value,
|
|
1003
1008
|
onClick: (c) => qe(l),
|
|
1004
1009
|
onMouseenter: (c) => Ze(l),
|
|
1005
1010
|
onMouseleave: r[1] || (r[1] = (c) => {
|
|
1006
|
-
|
|
1011
|
+
ae.value = null, ne.value = !1;
|
|
1007
1012
|
}),
|
|
1008
|
-
fill: l ===
|
|
1013
|
+
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1009
1014
|
style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1010
|
-
}, null, 44,
|
|
1011
|
-
k(a.$slots, "svg", E(
|
|
1012
|
-
], 12,
|
|
1013
|
-
a.$slots.watermark ? (
|
|
1014
|
-
k(a.$slots, "watermark", E(
|
|
1015
|
+
}, null, 44, cl))), 256)) : g("", !0),
|
|
1016
|
+
k(a.$slots, "svg", D(E({ ...o.value })), void 0, !0)
|
|
1017
|
+
], 12, za)) : g("", !0),
|
|
1018
|
+
a.$slots.watermark ? (s(), n("div", hl, [
|
|
1019
|
+
k(a.$slots, "watermark", D(E({ isPrinting: y(Ee) || y(He) })), void 0, !0)
|
|
1015
1020
|
])) : g("", !0),
|
|
1016
|
-
Z.value ? g("", !0) : (
|
|
1021
|
+
Z.value ? g("", !0) : (s(), j(y(zt), {
|
|
1017
1022
|
key: 5,
|
|
1018
1023
|
config: {
|
|
1019
1024
|
type: "bar",
|
|
@@ -1034,41 +1039,41 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1034
1039
|
style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1035
1040
|
"data-dom-to-png-ignore": ""
|
|
1036
1041
|
}, [
|
|
1037
|
-
e.value.style.chart.zoom.show && F.value > 1 ? (
|
|
1042
|
+
e.value.style.chart.zoom.show && F.value > 1 ? (s(), j(fa, {
|
|
1038
1043
|
ref_key: "slicerComponent",
|
|
1039
1044
|
ref: K,
|
|
1040
|
-
key: `slicer_${
|
|
1045
|
+
key: `slicer_${Re.value}`,
|
|
1041
1046
|
background: e.value.style.chart.zoom.color,
|
|
1042
1047
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1043
1048
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
1044
1049
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
1045
|
-
labelLeft: e.value.style.chart.grid.x.timeLabels.values[
|
|
1046
|
-
labelRight: e.value.style.chart.grid.x.timeLabels.values[
|
|
1050
|
+
labelLeft: e.value.style.chart.grid.x.timeLabels.values[h.value.start] ? $.value[0].text : "",
|
|
1051
|
+
labelRight: e.value.style.chart.grid.x.timeLabels.values[h.value.end - 1] ? $.value.at(-1).text : "",
|
|
1047
1052
|
textColor: e.value.style.chart.color,
|
|
1048
1053
|
inputColor: e.value.style.chart.zoom.color,
|
|
1049
1054
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1050
1055
|
max: Math.max(...we.dataset.map((t) => t.series.length)),
|
|
1051
1056
|
min: 0,
|
|
1052
|
-
valueStart:
|
|
1053
|
-
valueEnd:
|
|
1054
|
-
start:
|
|
1055
|
-
"onUpdate:start": r[2] || (r[2] = (t) =>
|
|
1056
|
-
end:
|
|
1057
|
-
"onUpdate:end": r[3] || (r[3] = (t) =>
|
|
1057
|
+
valueStart: h.value.start,
|
|
1058
|
+
valueEnd: h.value.end,
|
|
1059
|
+
start: h.value.start,
|
|
1060
|
+
"onUpdate:start": r[2] || (r[2] = (t) => h.value.start = t),
|
|
1061
|
+
end: h.value.end,
|
|
1062
|
+
"onUpdate:end": r[3] || (r[3] = (t) => h.value.end = t),
|
|
1058
1063
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1059
1064
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...we.dataset.map((t) => t.series.length)),
|
|
1060
1065
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1061
1066
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1062
|
-
onReset:
|
|
1067
|
+
onReset: Ye
|
|
1063
1068
|
}, {
|
|
1064
|
-
"reset-action":
|
|
1065
|
-
k(a.$slots, "reset-action", E(
|
|
1069
|
+
"reset-action": _(({ reset: t }) => [
|
|
1070
|
+
k(a.$slots, "reset-action", D(E({ reset: t })), void 0, !0)
|
|
1066
1071
|
]),
|
|
1067
1072
|
_: 3
|
|
1068
1073
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
|
|
1069
1074
|
], 4),
|
|
1070
|
-
|
|
1071
|
-
show:
|
|
1075
|
+
ie(y(Lt), {
|
|
1076
|
+
show: L.value.showTooltip && ne.value,
|
|
1072
1077
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1073
1078
|
color: e.value.style.chart.tooltip.color,
|
|
1074
1079
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1078,16 +1083,16 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1078
1083
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1079
1084
|
position: e.value.style.chart.tooltip.position,
|
|
1080
1085
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1081
|
-
parent:
|
|
1082
|
-
content:
|
|
1083
|
-
isFullscreen:
|
|
1086
|
+
parent: te.value,
|
|
1087
|
+
content: Ce.value,
|
|
1088
|
+
isFullscreen: ue.value,
|
|
1084
1089
|
isCustom: y(gt)(e.value.style.chart.tooltip.customFormat)
|
|
1085
1090
|
}, {
|
|
1086
|
-
"tooltip-before":
|
|
1087
|
-
k(a.$slots, "tooltip-before", E(
|
|
1091
|
+
"tooltip-before": _(() => [
|
|
1092
|
+
k(a.$slots, "tooltip-before", D(E({ ...Le.value })), void 0, !0)
|
|
1088
1093
|
]),
|
|
1089
|
-
"tooltip-after":
|
|
1090
|
-
k(a.$slots, "tooltip-after", E(
|
|
1094
|
+
"tooltip-after": _(() => [
|
|
1095
|
+
k(a.$slots, "tooltip-after", D(E({ ...Le.value })), void 0, !0)
|
|
1091
1096
|
]),
|
|
1092
1097
|
_: 3
|
|
1093
1098
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1095,29 +1100,29 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1095
1100
|
ref_key: "chartLegend",
|
|
1096
1101
|
ref: Ie
|
|
1097
1102
|
}, [
|
|
1098
|
-
e.value.style.chart.legend.show && Z.value ? (
|
|
1103
|
+
e.value.style.chart.legend.show && Z.value ? (s(), j(ba, {
|
|
1099
1104
|
key: 0,
|
|
1100
1105
|
legendSet: at.value,
|
|
1101
|
-
config:
|
|
1106
|
+
config: Dt.value,
|
|
1102
1107
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1103
1108
|
}, ut({
|
|
1104
|
-
item:
|
|
1109
|
+
item: _(({ legend: t }) => [
|
|
1105
1110
|
J("div", {
|
|
1106
1111
|
onClick: (l) => t.segregate(),
|
|
1107
1112
|
style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1108
|
-
},
|
|
1113
|
+
}, M(t.name), 13, vl)
|
|
1109
1114
|
]),
|
|
1110
1115
|
_: 2
|
|
1111
1116
|
}, [
|
|
1112
1117
|
a.$slots.pattern ? {
|
|
1113
1118
|
name: "legend-pattern",
|
|
1114
|
-
fn:
|
|
1115
|
-
|
|
1119
|
+
fn: _(({ legend: t, index: l }) => [
|
|
1120
|
+
ie(pa, {
|
|
1116
1121
|
shape: t.shape,
|
|
1117
1122
|
radius: 30,
|
|
1118
1123
|
stroke: "none",
|
|
1119
1124
|
plot: { x: 30, y: 30 },
|
|
1120
|
-
fill: `url(#pattern_${
|
|
1125
|
+
fill: `url(#pattern_${R.value}_${l})`
|
|
1121
1126
|
}, null, 8, ["shape", "fill"])
|
|
1122
1127
|
]),
|
|
1123
1128
|
key: "0"
|
|
@@ -1127,19 +1132,19 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1127
1132
|
legend: at.value
|
|
1128
1133
|
}, void 0, !0)
|
|
1129
1134
|
], 512),
|
|
1130
|
-
a.$slots.source ? (
|
|
1135
|
+
a.$slots.source ? (s(), n("div", {
|
|
1131
1136
|
key: 6,
|
|
1132
1137
|
ref_key: "source",
|
|
1133
|
-
ref:
|
|
1138
|
+
ref: Pe,
|
|
1134
1139
|
dir: "auto"
|
|
1135
1140
|
}, [
|
|
1136
1141
|
k(a.$slots, "source", {}, void 0, !0)
|
|
1137
1142
|
], 512)) : g("", !0),
|
|
1138
|
-
|
|
1143
|
+
h.value.end - h.value.start < 200 ? (s(), j(y(pt), {
|
|
1139
1144
|
key: 7,
|
|
1140
1145
|
hideDetails: "",
|
|
1141
1146
|
config: {
|
|
1142
|
-
open:
|
|
1147
|
+
open: L.value.showTable,
|
|
1143
1148
|
maxHeight: 1e4,
|
|
1144
1149
|
body: {
|
|
1145
1150
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1151,20 +1156,20 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1151
1156
|
}
|
|
1152
1157
|
}
|
|
1153
1158
|
}, {
|
|
1154
|
-
content:
|
|
1155
|
-
|
|
1156
|
-
colNames:
|
|
1157
|
-
head:
|
|
1158
|
-
body:
|
|
1159
|
-
config:
|
|
1159
|
+
content: _(() => [
|
|
1160
|
+
ie(y(xt), {
|
|
1161
|
+
colNames: de.value.colNames,
|
|
1162
|
+
head: de.value.head,
|
|
1163
|
+
body: de.value.body,
|
|
1164
|
+
config: de.value.config,
|
|
1160
1165
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1161
|
-
onClose: r[5] || (r[5] = (t) =>
|
|
1166
|
+
onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
|
|
1162
1167
|
}, {
|
|
1163
|
-
th:
|
|
1164
|
-
J("div", { innerHTML: t }, null, 8,
|
|
1168
|
+
th: _(({ th: t }) => [
|
|
1169
|
+
J("div", { innerHTML: t }, null, 8, dl)
|
|
1165
1170
|
]),
|
|
1166
|
-
td:
|
|
1167
|
-
|
|
1171
|
+
td: _(({ td: t }) => [
|
|
1172
|
+
Zt(M(isNaN(Number(t)) ? t : y(q)({
|
|
1168
1173
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1169
1174
|
v: t,
|
|
1170
1175
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1176,9 +1181,9 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1176
1181
|
]),
|
|
1177
1182
|
_: 1
|
|
1178
1183
|
}, 8, ["config"])) : g("", !0)
|
|
1179
|
-
], 46,
|
|
1184
|
+
], 46, wa));
|
|
1180
1185
|
}
|
|
1181
|
-
},
|
|
1186
|
+
}, $l = /* @__PURE__ */ ka(yl, [["__scopeId", "data-v-c7f93a61"]]);
|
|
1182
1187
|
export {
|
|
1183
|
-
|
|
1188
|
+
$l as default
|
|
1184
1189
|
};
|