vue-data-ui 2.16.3 → 2.16.5
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 +6 -11
- package/dist/{Arrow-PZlKU_qt.js → Arrow-D9B36pfx.js} +1 -1
- package/dist/{BaseDraggableDialog-D9X4ToHS.js → BaseDraggableDialog-DloHiD4h.js} +2 -2
- package/dist/{BaseIcon-7mxb2L4b.js → BaseIcon-DJab5OQD.js} +1 -1
- package/dist/{ColorPicker-BcBCUtD5.js → ColorPicker-Br0rMnNb.js} +2 -2
- package/dist/{DataTable-BJxZbzUJ.js → DataTable-B6MXw9cG.js} +2 -2
- package/dist/{Legend-DsrfKIWW.js → Legend-DoxQwq_u.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BYOuBVma.js → NonSvgPenAndPaper-DhbyLXKW.js} +3 -3
- package/dist/{PackageVersion-BHdwLNYh.js → PackageVersion-DCreTQN4.js} +1 -1
- package/dist/{PenAndPaper-5qbKUZba.js → PenAndPaper-BS60tkQN.js} +3 -3
- package/dist/{Shape-eTLLdapH.js → Shape-CrstrfQ9.js} +1 -1
- package/dist/{Slicer-Cx5l6qlm.js → Slicer-Bd0AkciG.js} +2 -2
- package/dist/{SparkTooltip-CJT266WK.js → SparkTooltip-B4j_rvhG.js} +1 -1
- package/dist/{Title-Ce2tGJxo.js → Title-BQLtfM0P.js} +1 -1
- package/dist/{Tooltip-DLbBFcp8.js → Tooltip-5JmGL7sR.js} +1 -1
- package/dist/{UserOptions-pCTGlSEB.js → UserOptions-DMGkAAIO.js} +3 -3
- package/dist/{dom-to-png-DINDDnHB.js → dom-to-png-g3Q8kjna.js} +1 -1
- package/dist/{img-BpsNgbdF.js → img-CTC5DLKL.js} +1 -1
- package/dist/{index-DY26lYgO.js → index-CZNLCg7T.js} +1 -1
- package/dist/{pdf-Bs-E3Ytt.js → pdf-DJVOD0cz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +7 -4
- package/dist/types/vue-data-ui.d.ts +7 -4
- package/dist/{useNestedProp-eQUR3lYD.js → useNestedProp-BcPDA6Xr.js} +1 -1
- package/dist/{usePrinter-BFt-ckek.js → usePrinter-ButWuZVm.js} +2 -2
- package/dist/{vue-data-ui-oY6CDv3q.js → vue-data-ui-BB8Upnjm.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C39mZF-6.js → vue-ui-3d-bar-o8P0DCbz.js} +5 -5
- package/dist/{vue-ui-accordion-rKdLqM-k.js → vue-ui-accordion-CO4hmfuX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DJNUh43Z.js → vue-ui-age-pyramid-C9T5bAEl.js} +5 -5
- package/dist/{vue-ui-annotator-DLGzeVKH.js → vue-ui-annotator-CyOygaxE.js} +2 -2
- package/dist/{vue-ui-bullet-B9QqItlC.js → vue-ui-bullet-CPT1jdcz.js} +6 -6
- package/dist/{vue-ui-candlestick-BnkkBqx9.js → vue-ui-candlestick-BfZTMGE0.js} +6 -6
- package/dist/{vue-ui-carousel-table-Bm0txBwY.js → vue-ui-carousel-table-Bam9qqkj.js} +4 -4
- package/dist/{vue-ui-chestnut-D6kFV2nj.js → vue-ui-chestnut-BAIMBFaQ.js} +4 -4
- package/dist/{vue-ui-chord-TpwfcRf-.js → vue-ui-chord-92E1yKdu.js} +7 -7
- package/dist/{vue-ui-circle-pack-CHdJUl9a.js → vue-ui-circle-pack-DxXPqA7Z.js} +5 -5
- package/dist/{vue-ui-cursor-DqkmHeAq.js → vue-ui-cursor-Bvy_o8wb.js} +2 -2
- package/dist/{vue-ui-dashboard-C_oRkxWW.js → vue-ui-dashboard--QRCkp7q.js} +62 -62
- package/dist/{vue-ui-digits-hulVWUQB.js → vue-ui-digits-Dl8RHLvt.js} +2 -2
- package/dist/{vue-ui-donut-BK9AIVk9.js → vue-ui-donut-BxSTOFDt.js} +7 -7
- package/dist/{vue-ui-donut-evolution-TnSDCyEF.js → vue-ui-donut-evolution-DNzTtWnJ.js} +7 -7
- package/dist/{vue-ui-dumbbell-D1QcBixO.js → vue-ui-dumbbell-D01p3t3P.js} +6 -6
- package/dist/{vue-ui-flow-Bm89MdRF.js → vue-ui-flow-BMvaRn7E.js} +6 -6
- package/dist/{vue-ui-funnel-CCs52cyK.js → vue-ui-funnel-Bd_3wouw.js} +5 -5
- package/dist/{vue-ui-galaxy-DEkiJKTV.js → vue-ui-galaxy-D4HJH1qq.js} +4 -4
- package/dist/{vue-ui-gauge-B6Q50fht.js → vue-ui-gauge-CgIlk2pu.js} +5 -5
- package/dist/{vue-ui-gizmo-yN-7B14A.js → vue-ui-gizmo-C1-QYvsn.js} +3 -3
- package/dist/{vue-ui-heatmap-BLY8ILUS.js → vue-ui-heatmap-tUn_BlSp.js} +6 -6
- package/dist/{vue-ui-history-plot-THtEQk6l.js → vue-ui-history-plot-TfVRzyIK.js} +6 -6
- package/dist/{vue-ui-kpi-COGMq-3q.js → vue-ui-kpi-BuL8MAMD.js} +3 -3
- package/dist/{vue-ui-mini-loader-ZUufOMpu.js → vue-ui-mini-loader-DIeG36P8.js} +2 -2
- package/dist/{vue-ui-molecule-Db4hY19N.js → vue-ui-molecule-8RJNzWIw.js} +4 -4
- package/dist/{vue-ui-mood-radar-BKd8_c_5.js → vue-ui-mood-radar-DftzG_Bi.js} +6 -6
- package/dist/{vue-ui-nested-donuts-iHg0erN3.js → vue-ui-nested-donuts-B9JC_0xK.js} +6 -6
- package/dist/{vue-ui-onion-XjLbGZ79.js → vue-ui-onion-DTjaH-Bu.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-2kZI5701.js → vue-ui-parallel-coordinate-plot-DwqfVqFB.js} +7 -7
- package/dist/{vue-ui-quadrant-ClS0wSel.js → vue-ui-quadrant-Cv3VWA6d.js} +7 -7
- package/dist/{vue-ui-quick-chart-DRMsq4Fi.js → vue-ui-quick-chart-imc0KrbF.js} +5 -5
- package/dist/{vue-ui-radar-u-Lj2WN1.js → vue-ui-radar-kNySclk1.js} +6 -6
- package/dist/{vue-ui-rating-Brt7e07f.js → vue-ui-rating-DBhEbgwD.js} +2 -2
- package/dist/{vue-ui-relation-circle-r6jmhAQ7.js → vue-ui-relation-circle-BJQhS0aG.js} +5 -5
- package/dist/{vue-ui-ridgeline-CId7_736.js → vue-ui-ridgeline-Bhd1Uwm8.js} +7 -7
- package/dist/{vue-ui-rings-D9y6rehH.js → vue-ui-rings-C_IT2mi0.js} +7 -7
- package/dist/{vue-ui-scatter-Bc4CcAqw.js → vue-ui-scatter-i8XZreWa.js} +7 -7
- package/dist/{vue-ui-skeleton-SD-iCl3N.js → vue-ui-skeleton-D9B8DY_k.js} +3 -3
- package/dist/{vue-ui-smiley-D9qhKjHd.js → vue-ui-smiley-gmdnUWcW.js} +2 -2
- package/dist/{vue-ui-spark-trend-CeFKRNLK.js → vue-ui-spark-trend-DOF3vl8_.js} +3 -3
- package/dist/{vue-ui-sparkbar-BZZ-tbQC.js → vue-ui-sparkbar-BVOVq3dA.js} +3 -3
- package/dist/{vue-ui-sparkgauge-QoVkFES4.js → vue-ui-sparkgauge-DVO2Z0Rg.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BIo-tLMo.js → vue-ui-sparkhistogram-CbV86a2i.js} +4 -4
- package/dist/{vue-ui-sparkline-B1h6ZUex.js → vue-ui-sparkline-jDNAVZu-.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CytgXA36.js → vue-ui-sparkstackbar-auT8CUXm.js} +3 -3
- package/dist/{vue-ui-stackbar-YZnkjV6f.js → vue-ui-stackbar-DmO02We2.js} +275 -274
- package/dist/{vue-ui-strip-plot-BlTHTUMk.js → vue-ui-strip-plot-B25s87lj.js} +6 -6
- package/dist/{vue-ui-table-JQJez8Q-.js → vue-ui-table-B4xbQdK_.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BcZZI3x3.js → vue-ui-table-heatmap-DI57VcvH.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DQxudh2r.js → vue-ui-table-sparkline-DRgsZztN.js} +4 -4
- package/dist/{vue-ui-thermometer-CIbgeMVN.js → vue-ui-thermometer-DkeT5DV_.js} +5 -5
- package/dist/{vue-ui-timer-Ct_4deuZ.js → vue-ui-timer-uon_DLeH.js} +5 -5
- package/dist/{vue-ui-tiremarks-DfbbaIM7.js → vue-ui-tiremarks-BV0qXRF2.js} +5 -5
- package/dist/{vue-ui-treemap-UDy0IYEJ.js → vue-ui-treemap-DzJsjtz7.js} +7 -7
- package/dist/{vue-ui-vertical-bar-CN0Xepks.js → vue-ui-vertical-bar-CkLS_DGb.js} +8 -8
- package/dist/{vue-ui-waffle-DXxR_eqf.js → vue-ui-waffle-B2XiLGQx.js} +7 -7
- package/dist/{vue-ui-wheel-DzT_sOEH.js → vue-ui-wheel-BR1DDpKU.js} +5 -5
- package/dist/{vue-ui-word-cloud-gqrusOAn.js → vue-ui-word-cloud-BvOT6hu2.js} +5 -5
- package/dist/{vue-ui-world-s0_YPX1N.js → vue-ui-world-BeP91MNX.js} +5 -5
- package/dist/{vue-ui-xy-TKuYnq-S.js → vue-ui-xy-BaR-ZDba.js} +332 -332
- package/dist/{vue-ui-xy-canvas-WDh-cIAl.js → vue-ui-xy-canvas-B4ZmECCK.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
|
|
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 qt, computed as w, ref as p, onMounted as nt, watch as ut, shallowRef as ct, onBeforeUnmount as Zt, 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 z, createElementVNode as J, createVNode as ie, createSlots as ht, withCtx as _, normalizeProps as F, guardReactiveProps as U, Fragment as v, renderList as f, mergeProps as Me, toDisplayString as T, createTextVNode as Kt } from "vue";
|
|
2
|
+
import { u as Qt, c as vt, t as jt, p as me, a as ea, C as ee, b as ta, o as aa, e as dt, g as la, d as ra, al as pe, ai as yt, D as gt, X as sa, l as oa, a7 as xe, F as bt, i as ke, f as q, I as ia, am as na, x as ft, q as ua, r as ca, y as ha } from "./index-CZNLCg7T.js";
|
|
3
|
+
import { u as mt } from "./useNestedProp-BcPDA6Xr.js";
|
|
4
|
+
import { t as va, u as da } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as ya } from "./usePrinter-ButWuZVm.js";
|
|
6
|
+
import { u as ga } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ba } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import fa from "./Legend-DoxQwq_u.js";
|
|
9
|
+
import { S as ma } from "./Slicer-Bd0AkciG.js";
|
|
10
|
+
import pa from "./Title-BQLtfM0P.js";
|
|
11
|
+
import { _ as xa } from "./Shape-CrstrfQ9.js";
|
|
12
|
+
import { u as ka } from "./useTimeLabels-Mrr0jrpL.js";
|
|
13
|
+
import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"], _a = { key: 1 }, Sa = ["id"], $a = ["stop-color"], Ma = ["stop-color"], Ta = ["stop-color"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = { key: 0 }, Ra = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Aa = { key: 0 }, Da = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ua = { key: 0 }, Ea = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ya = ["transform", "font-size", "fill", "font-weight"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = { key: 0 }, Ja = ["x", "y", "font-size", "font-weight", "fill"], qa = ["x", "y", "font-size", "fill", "font-weight"], Za = { key: 0 }, Ka = ["x", "y", "font-size", "font-weight", "fill"], Qa = ["x1", "x2", "y1", "y2", "stroke"], ja = ["x", "y", "font-size", "font-weight", "fill"], el = ["x1", "x2", "y1", "y2", "stroke"], tl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], al = { key: 0 }, ll = { key: 1 }, rl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], sl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ol = { key: 0 }, il = { key: 1 }, nl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], ul = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], cl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], hl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], vl = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, dl = ["onClick"], yl = ["innerHTML"], gl = {
|
|
18
18
|
__name: "vue-ui-stackbar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,41 +31,41 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
34
|
-
setup(we, { expose:
|
|
35
|
-
const
|
|
34
|
+
setup(we, { expose: pt, emit: xt }) {
|
|
35
|
+
const kt = X(() => import("./vue-ui-accordion-CO4hmfuX.js")), wt = X(() => import("./DataTable-B6MXw9cG.js")), zt = X(() => import("./PackageVersion-DCreTQN4.js")), Lt = X(() => import("./PenAndPaper-BS60tkQN.js")), Ct = X(() => import("./vue-ui-skeleton-D9B8DY_k.js")), _t = X(() => import("./Tooltip-5JmGL7sR.js")), St = X(() => import("./UserOptions-DMGkAAIO.js")), { vue_ui_stackbar: $t } = Qt(), Mt = qt(), b = we, ze = xt, Z = w({
|
|
36
36
|
get() {
|
|
37
37
|
return !!b.dataset && b.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(a) {
|
|
40
40
|
return a;
|
|
41
41
|
}
|
|
42
|
-
}), te = p(null),
|
|
43
|
-
|
|
42
|
+
}), te = p(null), V = p(vt()), ne = p(!1), Le = p(null), Ce = p(""), S = p([]), Te = p(0), Ne = p(null), Ie = p(null), Pe = p(null), Oe = p(null), Ve = p(0), ue = p(!1), ae = p(null), E = p(!1), Tt = p(0), Nt = p(0), It = p(0), K = p(null);
|
|
43
|
+
nt(() => {
|
|
44
44
|
Se();
|
|
45
45
|
});
|
|
46
|
-
const e =
|
|
47
|
-
get: () =>
|
|
46
|
+
const e = w({
|
|
47
|
+
get: () => Fe(),
|
|
48
48
|
set: (a) => a
|
|
49
|
-
}), { userOptionsVisible: _e, setUserOptionsVisibility:
|
|
50
|
-
function
|
|
51
|
-
const a =
|
|
49
|
+
}), { userOptionsVisible: _e, setUserOptionsVisibility: Re, keepUserOptionState: Ae } = ga({ config: e.value }), { svgRef: De } = ba({ config: e.value.style.chart.title });
|
|
50
|
+
function Fe() {
|
|
51
|
+
const a = mt({
|
|
52
52
|
userConfig: b.config,
|
|
53
|
-
defaultConfig:
|
|
53
|
+
defaultConfig: $t
|
|
54
54
|
});
|
|
55
55
|
let r = {};
|
|
56
56
|
return a.theme ? r = {
|
|
57
|
-
...
|
|
58
|
-
userConfig:
|
|
57
|
+
...mt({
|
|
58
|
+
userConfig: ea.vue_ui_stackbar[a.theme] || b.config,
|
|
59
59
|
defaultConfig: a
|
|
60
60
|
}),
|
|
61
|
-
customPalette:
|
|
61
|
+
customPalette: jt[a.theme] || me
|
|
62
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
|
-
const
|
|
65
|
-
|
|
66
|
-
e.value =
|
|
67
|
-
}, { deep: !0 }),
|
|
68
|
-
|
|
64
|
+
const Ue = w(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), Ee = w(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
65
|
+
ut(() => b.config, (a) => {
|
|
66
|
+
e.value = Fe(), _e.value = !e.value.userOptions.showOnChartHover, Se(), Tt.value += 1, Nt.value += 1, It.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 }), ut(() => b.dataset, (a) => {
|
|
68
|
+
Ge();
|
|
69
69
|
}, { deep: !0 });
|
|
70
70
|
const L = p({
|
|
71
71
|
dataLabels: {
|
|
@@ -73,8 +73,8 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
73
73
|
},
|
|
74
74
|
showTable: e.value.table.show,
|
|
75
75
|
showTooltip: e.value.style.chart.tooltip.show
|
|
76
|
-
}), { isPrinting:
|
|
77
|
-
elementId: `stackbar_${
|
|
76
|
+
}), { isPrinting: He, isImaging: Be, generatePdf: We, generateImage: Ye } = ya({
|
|
77
|
+
elementId: `stackbar_${V.value}`,
|
|
78
78
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
79
79
|
options: e.value.userOptions.print
|
|
80
80
|
}), ce = p({
|
|
@@ -86,20 +86,20 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
86
86
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
87
87
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
90
|
-
|
|
89
|
+
}), Pt = w(() => ta(e.value.customPalette)), R = ct(null), Q = ct(null), Xe = p(null);
|
|
90
|
+
nt(() => {
|
|
91
91
|
Se();
|
|
92
92
|
});
|
|
93
93
|
function Se() {
|
|
94
|
-
if (
|
|
94
|
+
if (aa(b.dataset) ? dt({
|
|
95
95
|
componentName: "VueUiStackbar",
|
|
96
96
|
type: "dataset"
|
|
97
97
|
}) : b.dataset.forEach((a, r) => {
|
|
98
|
-
|
|
98
|
+
la({
|
|
99
99
|
datasetObject: a,
|
|
100
100
|
requiredAttributes: ["name", "series"]
|
|
101
101
|
}).forEach((t) => {
|
|
102
|
-
Z.value = !1,
|
|
102
|
+
Z.value = !1, dt({
|
|
103
103
|
componentName: "VueUiStackbar",
|
|
104
104
|
type: "datasetSerieAttribute",
|
|
105
105
|
property: t,
|
|
@@ -107,32 +107,32 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
}), setTimeout(() => {
|
|
110
|
-
|
|
110
|
+
E.value = !0;
|
|
111
111
|
}, 10), e.value.responsive) {
|
|
112
|
-
const a =
|
|
113
|
-
|
|
114
|
-
const { width: r, height: t } =
|
|
112
|
+
const a = va(() => {
|
|
113
|
+
E.value = !1;
|
|
114
|
+
const { width: r, height: t } = da({
|
|
115
115
|
chart: te.value,
|
|
116
116
|
title: e.value.style.chart.title.text ? Ne.value : null,
|
|
117
117
|
legend: e.value.style.chart.legend.show ? Ie.value : null,
|
|
118
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
119
|
-
source:
|
|
118
|
+
slicer: e.value.style.chart.zoom.show && D.value > 1 ? Pe.value : null,
|
|
119
|
+
source: Oe.value
|
|
120
120
|
});
|
|
121
121
|
requestAnimationFrame(() => {
|
|
122
|
-
ce.value.width = r, ce.value.height = t, clearTimeout(
|
|
123
|
-
|
|
122
|
+
ce.value.width = r, ce.value.height = t, clearTimeout(Xe.value), Xe.value = setTimeout(() => {
|
|
123
|
+
E.value = !0;
|
|
124
124
|
}, 10);
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
R.value && (Q.value && R.value.unobserve(Q.value), R.value.disconnect()), R.value = new ResizeObserver(a), Q.value = te.value.parentNode, R.value.observe(Q.value);
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
Je();
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
Zt(() => {
|
|
132
|
+
R.value && (Q.value && R.value.unobserve(Q.value), R.value.disconnect());
|
|
133
133
|
});
|
|
134
|
-
const o =
|
|
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,
|
|
134
|
+
const o = w(() => {
|
|
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, H = r - C - r * t, B = a - l - e.value.style.chart.padding.bottom;
|
|
136
136
|
return {
|
|
137
137
|
chartHeight: a,
|
|
138
138
|
chartWidth: r,
|
|
@@ -140,11 +140,11 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
140
140
|
right: c,
|
|
141
141
|
bottom: u,
|
|
142
142
|
left: C,
|
|
143
|
-
width:
|
|
143
|
+
width: H,
|
|
144
144
|
height: B < 0 ? 0 : B
|
|
145
145
|
};
|
|
146
|
-
}), A =
|
|
147
|
-
const t =
|
|
146
|
+
}), A = w(() => b.dataset.map((a, r) => {
|
|
147
|
+
const t = ra(a.color) || Pt.value[r] || me[r] || me[r % me.length];
|
|
148
148
|
return {
|
|
149
149
|
...a,
|
|
150
150
|
// In distributed mode, all values are converted to positive
|
|
@@ -152,33 +152,33 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
152
152
|
// Store signs to manage display of neg values in distributed mode
|
|
153
153
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
154
154
|
absoluteIndex: r,
|
|
155
|
-
id:
|
|
155
|
+
id: vt(),
|
|
156
156
|
color: t
|
|
157
157
|
};
|
|
158
|
-
})),
|
|
158
|
+
})), D = w(() => Math.max(...A.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
|
|
159
159
|
start: 0,
|
|
160
160
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
161
161
|
});
|
|
162
|
-
function
|
|
163
|
-
|
|
162
|
+
function Ge() {
|
|
163
|
+
Je();
|
|
164
164
|
}
|
|
165
|
-
async function
|
|
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(
|
|
165
|
+
async function Je() {
|
|
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(Ot(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
|
|
167
167
|
start: 0,
|
|
168
168
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
169
|
-
},
|
|
169
|
+
}, Ve.value += 1);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Ot(a) {
|
|
172
172
|
const r = Math.max(...b.dataset.map((t) => t.series.length));
|
|
173
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;
|
|
174
174
|
}
|
|
175
|
-
const d =
|
|
175
|
+
const d = w(() => {
|
|
176
176
|
let 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 =
|
|
178
|
+
}), le = w(() => pe(A.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Vt = w(() => pe(A.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
179
179
|
...a,
|
|
180
180
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
181
|
-
}))).slice(h.value.start, h.value.end)), he =
|
|
181
|
+
}))).slice(h.value.start, h.value.end)), he = w(() => {
|
|
182
182
|
const a = A.value.filter((r) => !S.value.includes(r.id));
|
|
183
183
|
return {
|
|
184
184
|
positive: pe(a.map((r) => ({
|
|
@@ -190,8 +190,8 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
190
190
|
series: r.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
191
191
|
})))
|
|
192
192
|
};
|
|
193
|
-
}),
|
|
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) ?
|
|
193
|
+
}), P = w(() => {
|
|
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) ? yt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : gt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
195
195
|
return l.ticks.map((c) => ({
|
|
196
196
|
zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
197
197
|
y: o.value.bottom - o.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
@@ -201,46 +201,46 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
201
201
|
horizontal_y: o.value.bottom - 8,
|
|
202
202
|
value: c
|
|
203
203
|
}));
|
|
204
|
-
}), $ =
|
|
204
|
+
}), $ = w(() => ka({
|
|
205
205
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
206
|
-
maxDatapoints:
|
|
206
|
+
maxDatapoints: D.value,
|
|
207
207
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
208
208
|
start: h.value.start,
|
|
209
209
|
end: h.value.end
|
|
210
|
-
})),
|
|
210
|
+
})), k = w(() => {
|
|
211
211
|
if (!Z.value) return [];
|
|
212
|
-
let a = Array(
|
|
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,
|
|
212
|
+
let a = Array(D.value).fill(0), r = Array(D.value).fill(0), t = Array(D.value).fill(0), l = Array(D.value).fill(0);
|
|
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, H = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? yt(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) : gt(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 } = H, W = re + (B >= 0 ? 0 : Math.abs(B)) || 1, M = o.value.height, be = o.value.width, ot = P.value[0] ? P.value[0].zero : o.value.bottom, it = P.value[0] ? P.value[0].horizontal_zero : o.value.left;
|
|
214
214
|
return A.value.filter((se) => !S.value.includes(se.id)).map((se) => {
|
|
215
|
-
const
|
|
215
|
+
const O = se.series.slice(h.value.start, h.value.end), Et = se.signedSeries.slice(h.value.start, h.value.end), Ht = O.map((m, x) => o.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Bt = O.map((m, x) => o.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Wt = O.map((m, x) => {
|
|
216
216
|
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
217
217
|
let Y, I;
|
|
218
|
-
return m > 0 ? (I =
|
|
219
|
-
}),
|
|
218
|
+
return m > 0 ? (I = M * N, Y = ot - I - a[x], a[x] += I) : (I = M * N, Y = ot + t[x], t[x] += Math.abs(I)), Y;
|
|
219
|
+
}), Yt = O.map((m, x) => {
|
|
220
220
|
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
221
221
|
let Y, I;
|
|
222
|
-
return m > 0 ? (I = be * N, Y =
|
|
223
|
-
}),
|
|
222
|
+
return m > 0 ? (I = be * N, Y = it + r[x], r[x] += I) : (I = be * N, Y = it - Math.abs(I) - l[x], l[x] += Math.abs(I)), Y;
|
|
223
|
+
}), Xt = O.map((m, x) => {
|
|
224
224
|
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
225
|
-
return m > 0 ?
|
|
226
|
-
}),
|
|
225
|
+
return m > 0 ? M * N : M * Math.abs(N);
|
|
226
|
+
}), Gt = O.map((m, x) => {
|
|
227
227
|
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
|
|
228
228
|
return m > 0 ? be * N : be * Math.abs(N);
|
|
229
|
-
}),
|
|
229
|
+
}), Jt = O.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
|
|
230
230
|
return {
|
|
231
231
|
...se,
|
|
232
|
-
proportions:
|
|
233
|
-
series:
|
|
232
|
+
proportions: O.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Jt),
|
|
233
|
+
series: O,
|
|
234
234
|
signedSeries: Et,
|
|
235
235
|
x: Ht,
|
|
236
|
-
y:
|
|
237
|
-
height:
|
|
238
|
-
horizontal_width:
|
|
239
|
-
horizontal_y:
|
|
240
|
-
horizontal_x:
|
|
236
|
+
y: Wt,
|
|
237
|
+
height: Xt,
|
|
238
|
+
horizontal_width: Gt,
|
|
239
|
+
horizontal_y: Bt,
|
|
240
|
+
horizontal_x: Yt
|
|
241
241
|
};
|
|
242
242
|
});
|
|
243
|
-
}),
|
|
243
|
+
}), qe = w(() => Vt.value.map((a, r) => ({
|
|
244
244
|
value: a,
|
|
245
245
|
sign: a >= 0 ? 1 : -1
|
|
246
246
|
})));
|
|
@@ -258,7 +258,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
258
258
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
259
259
|
);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Ze(a, r, t, l) {
|
|
262
262
|
return ke(
|
|
263
263
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
264
264
|
a,
|
|
@@ -270,8 +270,8 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
270
270
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const r = JSON.parse(JSON.stringify(
|
|
273
|
+
function Ke(a) {
|
|
274
|
+
const r = JSON.parse(JSON.stringify(k.value)).map((t) => ({
|
|
275
275
|
name: t.name,
|
|
276
276
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
277
277
|
proportion: t.proportions[a] || null,
|
|
@@ -280,9 +280,9 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
280
280
|
}));
|
|
281
281
|
ze("selectDatapoint", { datapoint: r, period: $.value[a] });
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Qe(a) {
|
|
284
284
|
ae.value = a, ne.value = !0;
|
|
285
|
-
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(
|
|
285
|
+
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(k.value)).map((c) => ({
|
|
286
286
|
name: c.name,
|
|
287
287
|
absoluteIndex: c.absoluteIndex,
|
|
288
288
|
value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
|
|
@@ -294,19 +294,19 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
294
294
|
datapoint: t,
|
|
295
295
|
seriesIndex: a,
|
|
296
296
|
config: e.value,
|
|
297
|
-
series:
|
|
297
|
+
series: k.value
|
|
298
298
|
};
|
|
299
299
|
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
300
|
-
if (
|
|
300
|
+
if (ft(r) && ha(() => r({
|
|
301
301
|
seriesIndex: a,
|
|
302
302
|
datapoint: t,
|
|
303
|
-
series:
|
|
303
|
+
series: k.value,
|
|
304
304
|
config: e.value
|
|
305
305
|
})))
|
|
306
306
|
Ce.value = r({
|
|
307
307
|
seriesIndex: a,
|
|
308
308
|
datapoint: t,
|
|
309
|
-
series:
|
|
309
|
+
series: k.value,
|
|
310
310
|
config: e.value
|
|
311
311
|
});
|
|
312
312
|
else {
|
|
@@ -314,7 +314,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
314
314
|
showValue: c,
|
|
315
315
|
showPercentage: u,
|
|
316
316
|
borderColor: C,
|
|
317
|
-
roundingValue:
|
|
317
|
+
roundingValue: H,
|
|
318
318
|
roundingPercentage: B
|
|
319
319
|
} = e.value.style.chart.tooltip;
|
|
320
320
|
let re = "";
|
|
@@ -323,17 +323,17 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
323
323
|
c && u ? "(" : "",
|
|
324
324
|
c && u ? ")" : ""
|
|
325
325
|
];
|
|
326
|
-
t.reverse().forEach((
|
|
326
|
+
t.reverse().forEach((M) => {
|
|
327
327
|
re += `
|
|
328
328
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
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_${
|
|
330
|
-
${
|
|
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_${M.id})` : M.color}"/>${Mt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${M.absoluteIndex})"/>` : ""}</svg>
|
|
330
|
+
${M.name}${c || u ? ":" : ""} ${c ? q({
|
|
331
331
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
332
|
-
v:
|
|
332
|
+
v: M.value,
|
|
333
333
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
334
|
-
r:
|
|
334
|
+
r: H
|
|
335
335
|
}) : ""} ${W[0]}${u ? q({
|
|
336
|
-
v: isNaN(
|
|
336
|
+
v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
|
|
337
337
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
338
338
|
s: "%",
|
|
339
339
|
r: B
|
|
@@ -343,24 +343,24 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
343
343
|
}), Ce.value = `<div>${re}</div>`;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
ue.value = a,
|
|
346
|
+
function Rt(a) {
|
|
347
|
+
ue.value = a, Te.value += 1;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function je() {
|
|
350
350
|
L.value.showTable = !L.value.showTable;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function et() {
|
|
353
353
|
L.value.dataLabels.show = !L.value.dataLabels.show;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function tt() {
|
|
356
356
|
L.value.showTooltip = !L.value.showTooltip;
|
|
357
357
|
}
|
|
358
358
|
function At() {
|
|
359
|
-
return
|
|
359
|
+
return k.value;
|
|
360
360
|
}
|
|
361
|
-
const
|
|
362
|
-
if (
|
|
363
|
-
const a =
|
|
361
|
+
const at = w(() => {
|
|
362
|
+
if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
363
|
+
const a = k.value.map(({ name: t, color: l }) => ({
|
|
364
364
|
label: t,
|
|
365
365
|
color: l
|
|
366
366
|
})), r = [];
|
|
@@ -371,16 +371,16 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
371
371
|
}), r.push(l);
|
|
372
372
|
}), { head: a, body: r };
|
|
373
373
|
});
|
|
374
|
-
function
|
|
375
|
-
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
376
|
-
a ? a(u) :
|
|
374
|
+
function lt(a = null) {
|
|
375
|
+
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...at.value.head.map((C) => C.label)], l = at.value.body, c = r.concat([t]).concat(l), u = ua(c);
|
|
376
|
+
a ? a(u) : ca({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
377
377
|
}
|
|
378
|
-
const de =
|
|
379
|
-
const a = [""].concat(
|
|
378
|
+
const de = w(() => {
|
|
379
|
+
const a = [""].concat(k.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>');
|
|
380
380
|
let r = [];
|
|
381
|
-
for (let c = 0; c <
|
|
382
|
-
const u =
|
|
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(
|
|
381
|
+
for (let c = 0; c < D.value; c += 1) {
|
|
382
|
+
const u = k.value.map((C) => C.series[c] ?? 0).reduce((C, H) => C + H, 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(k.value.map((C) => (C.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
384
384
|
}
|
|
385
385
|
const t = {
|
|
386
386
|
th: {
|
|
@@ -394,26 +394,26 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
394
394
|
outline: e.value.table.td.outline
|
|
395
395
|
},
|
|
396
396
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
397
|
-
}, l = [e.value.table.columnNames.period].concat(
|
|
397
|
+
}, l = [e.value.table.columnNames.period].concat(k.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
398
398
|
return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
|
|
399
399
|
});
|
|
400
|
-
function
|
|
401
|
-
if (ze("selectLegend",
|
|
400
|
+
function Dt(a, r) {
|
|
401
|
+
if (ze("selectLegend", k.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
|
|
402
402
|
S.value = S.value.filter((t) => t !== r.id);
|
|
403
403
|
else {
|
|
404
404
|
if (S.value.length === A.value.length - 1) return;
|
|
405
405
|
S.value.push(r.id);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
const
|
|
408
|
+
const rt = w(() => A.value.map((a, r) => ({
|
|
409
409
|
...a,
|
|
410
410
|
shape: "square"
|
|
411
411
|
})).map((a) => ({
|
|
412
412
|
...a,
|
|
413
413
|
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
414
|
-
segregate: () =>
|
|
414
|
+
segregate: () => Dt(a.absoluteIndex, a),
|
|
415
415
|
isSegregated: S.value.includes(a.id)
|
|
416
|
-
}))),
|
|
416
|
+
}))), Ft = w(() => ({
|
|
417
417
|
cy: "stackbar-legend",
|
|
418
418
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
419
419
|
color: e.value.style.chart.legend.color,
|
|
@@ -425,7 +425,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
425
425
|
ye.value = !ye.value;
|
|
426
426
|
}
|
|
427
427
|
function ge(a, r) {
|
|
428
|
-
const t = JSON.parse(JSON.stringify(
|
|
428
|
+
const t = JSON.parse(JSON.stringify(k.value)).map((l) => ({
|
|
429
429
|
name: l.name,
|
|
430
430
|
value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
|
|
431
431
|
proportion: l.proportions[r] || null,
|
|
@@ -438,43 +438,44 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
438
438
|
label: a.text
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
const Ut = w(() => Math.max(...k.value.flatMap((a) => a.series)));
|
|
442
|
+
function st(a, r) {
|
|
443
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ee.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : Ee.value ? (Ue.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > Ut.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : Ue.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
443
444
|
}
|
|
444
|
-
return
|
|
445
|
+
return pt({
|
|
445
446
|
getData: At,
|
|
446
|
-
generatePdf:
|
|
447
|
-
generateCsv:
|
|
448
|
-
generateImage:
|
|
449
|
-
toggleTable:
|
|
450
|
-
toggleLabels:
|
|
451
|
-
toggleTooltip:
|
|
447
|
+
generatePdf: We,
|
|
448
|
+
generateCsv: lt,
|
|
449
|
+
generateImage: Ye,
|
|
450
|
+
toggleTable: je,
|
|
451
|
+
toggleLabels: et,
|
|
452
|
+
toggleTooltip: tt,
|
|
452
453
|
toggleAnnotator: $e
|
|
453
454
|
}), (a, r) => (s(), n("div", {
|
|
454
|
-
id: `stackbar_${
|
|
455
|
+
id: `stackbar_${V.value}`,
|
|
455
456
|
ref_key: "stackbarChart",
|
|
456
457
|
ref: te,
|
|
457
458
|
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
|
|
458
459
|
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%" : ""}`),
|
|
459
|
-
onMouseenter: r[6] || (r[6] = () => y(
|
|
460
|
-
onMouseleave: r[7] || (r[7] = () => y(
|
|
460
|
+
onMouseenter: r[6] || (r[6] = () => y(Re)(!0)),
|
|
461
|
+
onMouseleave: r[7] || (r[7] = () => y(Re)(!1))
|
|
461
462
|
}, [
|
|
462
|
-
e.value.userOptions.buttons.annotator ? (s(), j(y(
|
|
463
|
+
e.value.userOptions.buttons.annotator ? (s(), j(y(Lt), {
|
|
463
464
|
key: 0,
|
|
464
|
-
svgRef: y(
|
|
465
|
+
svgRef: y(De),
|
|
465
466
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
466
467
|
color: e.value.style.chart.color,
|
|
467
468
|
active: ye.value,
|
|
468
469
|
onClose: $e
|
|
469
470
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
470
|
-
|
|
471
|
+
z(a.$slots, "userConfig", {}, void 0, !0),
|
|
471
472
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
472
473
|
key: 1,
|
|
473
474
|
ref_key: "chartTitle",
|
|
474
475
|
ref: Ne,
|
|
475
476
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
476
477
|
}, [
|
|
477
|
-
ie(
|
|
478
|
+
ie(pa, {
|
|
478
479
|
config: {
|
|
479
480
|
title: {
|
|
480
481
|
cy: "stackbar-title",
|
|
@@ -487,14 +488,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
487
488
|
}
|
|
488
489
|
}, null, 8, ["config"])
|
|
489
490
|
], 512)) : g("", !0),
|
|
490
|
-
e.value.userOptions.show && Z.value && (y(Ae) || y(_e)) ? (s(), j(y(
|
|
491
|
+
e.value.userOptions.show && Z.value && (y(Ae) || y(_e)) ? (s(), j(y(St), {
|
|
491
492
|
ref: "details",
|
|
492
|
-
key: `user_option_${
|
|
493
|
+
key: `user_option_${Te.value}`,
|
|
493
494
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
494
495
|
color: e.value.style.chart.color,
|
|
495
|
-
isPrinting: y(
|
|
496
|
-
isImaging: y(
|
|
497
|
-
uid:
|
|
496
|
+
isPrinting: y(He),
|
|
497
|
+
isImaging: y(Be),
|
|
498
|
+
uid: V.value,
|
|
498
499
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
499
500
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
500
501
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -510,78 +511,78 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
510
511
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
511
512
|
isAnnotation: ye.value,
|
|
512
513
|
callbacks: e.value.userOptions.callbacks,
|
|
513
|
-
onToggleFullscreen:
|
|
514
|
-
onGeneratePdf: y(
|
|
515
|
-
onGenerateCsv:
|
|
516
|
-
onGenerateImage: y(
|
|
517
|
-
onToggleTable:
|
|
518
|
-
onToggleLabels:
|
|
519
|
-
onToggleTooltip:
|
|
514
|
+
onToggleFullscreen: Rt,
|
|
515
|
+
onGeneratePdf: y(We),
|
|
516
|
+
onGenerateCsv: lt,
|
|
517
|
+
onGenerateImage: y(Ye),
|
|
518
|
+
onToggleTable: je,
|
|
519
|
+
onToggleLabels: et,
|
|
520
|
+
onToggleTooltip: tt,
|
|
520
521
|
onToggleAnnotator: $e,
|
|
521
522
|
style: G({
|
|
522
523
|
visibility: y(Ae) ? y(_e) ? "visible" : "hidden" : "visible"
|
|
523
524
|
})
|
|
524
|
-
},
|
|
525
|
+
}, ht({ _: 2 }, [
|
|
525
526
|
a.$slots.menuIcon ? {
|
|
526
527
|
name: "menuIcon",
|
|
527
528
|
fn: _(({ isOpen: t, color: l }) => [
|
|
528
|
-
|
|
529
|
+
z(a.$slots, "menuIcon", F(U({ isOpen: t, color: l })), void 0, !0)
|
|
529
530
|
]),
|
|
530
531
|
key: "0"
|
|
531
532
|
} : void 0,
|
|
532
533
|
a.$slots.optionTooltip ? {
|
|
533
534
|
name: "optionTooltip",
|
|
534
535
|
fn: _(() => [
|
|
535
|
-
|
|
536
|
+
z(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
536
537
|
]),
|
|
537
538
|
key: "1"
|
|
538
539
|
} : void 0,
|
|
539
540
|
a.$slots.optionPdf ? {
|
|
540
541
|
name: "optionPdf",
|
|
541
542
|
fn: _(() => [
|
|
542
|
-
|
|
543
|
+
z(a.$slots, "optionPdf", {}, void 0, !0)
|
|
543
544
|
]),
|
|
544
545
|
key: "2"
|
|
545
546
|
} : void 0,
|
|
546
547
|
a.$slots.optionCsv ? {
|
|
547
548
|
name: "optionCsv",
|
|
548
549
|
fn: _(() => [
|
|
549
|
-
|
|
550
|
+
z(a.$slots, "optionCsv", {}, void 0, !0)
|
|
550
551
|
]),
|
|
551
552
|
key: "3"
|
|
552
553
|
} : void 0,
|
|
553
554
|
a.$slots.optionImg ? {
|
|
554
555
|
name: "optionImg",
|
|
555
556
|
fn: _(() => [
|
|
556
|
-
|
|
557
|
+
z(a.$slots, "optionImg", {}, void 0, !0)
|
|
557
558
|
]),
|
|
558
559
|
key: "4"
|
|
559
560
|
} : void 0,
|
|
560
561
|
a.$slots.optionTable ? {
|
|
561
562
|
name: "optionTable",
|
|
562
563
|
fn: _(() => [
|
|
563
|
-
|
|
564
|
+
z(a.$slots, "optionTable", {}, void 0, !0)
|
|
564
565
|
]),
|
|
565
566
|
key: "5"
|
|
566
567
|
} : void 0,
|
|
567
568
|
a.$slots.optionLabels ? {
|
|
568
569
|
name: "optionLabels",
|
|
569
570
|
fn: _(() => [
|
|
570
|
-
|
|
571
|
+
z(a.$slots, "optionLabels", {}, void 0, !0)
|
|
571
572
|
]),
|
|
572
573
|
key: "6"
|
|
573
574
|
} : void 0,
|
|
574
575
|
a.$slots.optionFullscreen ? {
|
|
575
576
|
name: "optionFullscreen",
|
|
576
577
|
fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
577
|
-
|
|
578
|
+
z(a.$slots, "optionFullscreen", F(U({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
578
579
|
]),
|
|
579
580
|
key: "7"
|
|
580
581
|
} : void 0,
|
|
581
582
|
a.$slots.optionAnnotator ? {
|
|
582
583
|
name: "optionAnnotator",
|
|
583
584
|
fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
584
|
-
|
|
585
|
+
z(a.$slots, "optionAnnotator", F(U({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
585
586
|
]),
|
|
586
587
|
key: "8"
|
|
587
588
|
} : void 0
|
|
@@ -589,12 +590,12 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
589
590
|
Z.value ? (s(), n("svg", {
|
|
590
591
|
key: 3,
|
|
591
592
|
ref_key: "svgRef",
|
|
592
|
-
ref:
|
|
593
|
-
xmlns: y(
|
|
593
|
+
ref: De,
|
|
594
|
+
xmlns: y(sa),
|
|
594
595
|
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
595
596
|
style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
596
597
|
}, [
|
|
597
|
-
ie(y(
|
|
598
|
+
ie(y(zt)),
|
|
598
599
|
a.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
599
600
|
key: 0,
|
|
600
601
|
x: o.value.left,
|
|
@@ -605,10 +606,10 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
605
606
|
pointerEvents: "none"
|
|
606
607
|
}
|
|
607
608
|
}, [
|
|
608
|
-
|
|
609
|
-
], 8,
|
|
610
|
-
e.value.style.chart.bars.gradient.show ? (s(), n("defs",
|
|
611
|
-
(s(!0), n(v, null, f(
|
|
609
|
+
z(a.$slots, "chart-background", {}, void 0, !0)
|
|
610
|
+
], 8, Ca)) : g("", !0),
|
|
611
|
+
e.value.style.chart.bars.gradient.show ? (s(), n("defs", _a, [
|
|
612
|
+
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("linearGradient", {
|
|
612
613
|
id: `gradient_${t.id}`,
|
|
613
614
|
x1: "0%",
|
|
614
615
|
y1: "0%",
|
|
@@ -618,18 +619,18 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
618
619
|
J("stop", {
|
|
619
620
|
offset: "0%",
|
|
620
621
|
"stop-color": t.color
|
|
621
|
-
}, null, 8,
|
|
622
|
+
}, null, 8, $a),
|
|
622
623
|
J("stop", {
|
|
623
624
|
offset: "61.8%",
|
|
624
|
-
"stop-color": y(
|
|
625
|
-
}, null, 8,
|
|
625
|
+
"stop-color": y(oa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
626
|
+
}, null, 8, Ma),
|
|
626
627
|
J("stop", {
|
|
627
628
|
offset: "100%",
|
|
628
629
|
"stop-color": t.color
|
|
629
630
|
}, null, 8, Ta)
|
|
630
|
-
], 8,
|
|
631
|
+
], 8, Sa))), 256))
|
|
631
632
|
])) : g("", !0),
|
|
632
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 2 }, f(
|
|
633
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 2 }, f(P.value, (t, l) => (s(), n("line", {
|
|
633
634
|
x1: o.value.left,
|
|
634
635
|
x2: o.value.right,
|
|
635
636
|
y1: t.y,
|
|
@@ -638,7 +639,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
638
639
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
639
640
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
640
641
|
"stroke-linecap": "round"
|
|
641
|
-
}, null, 8,
|
|
642
|
+
}, null, 8, Na))), 256)) : g("", !0),
|
|
642
643
|
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
644
|
x1: o.value.left,
|
|
644
645
|
x2: o.value.right,
|
|
@@ -648,7 +649,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
648
649
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
649
650
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
650
651
|
"stroke-linecap": "round"
|
|
651
|
-
}, null, 8,
|
|
652
|
+
}, null, 8, Ia))), 256)) : g("", !0),
|
|
652
653
|
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
654
|
x1: o.value.left + d.value * l,
|
|
654
655
|
x2: o.value.left + d.value * l,
|
|
@@ -658,8 +659,8 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
658
659
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
659
660
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
660
661
|
"stroke-linecap": "round"
|
|
661
|
-
}, null, 8,
|
|
662
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 5 }, f(
|
|
662
|
+
}, null, 8, Pa))), 256)) : g("", !0),
|
|
663
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 5 }, f(P.value, (t, l) => (s(), n("line", {
|
|
663
664
|
x1: t.horizontal_x,
|
|
664
665
|
x2: t.horizontal_x,
|
|
665
666
|
y1: o.value.top,
|
|
@@ -669,9 +670,9 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
669
670
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
670
671
|
"stroke-linecap": "round"
|
|
671
672
|
}, null, 8, Oa))), 256)) : g("", !0),
|
|
672
|
-
(s(!0), n(v, null, f(
|
|
673
|
-
a.$slots.pattern ? (s(), n("defs",
|
|
674
|
-
|
|
673
|
+
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
674
|
+
a.$slots.pattern ? (s(), n("defs", Va, [
|
|
675
|
+
z(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
675
676
|
])) : g("", !0),
|
|
676
677
|
e.value.orientation === "vertical" ? (s(), n(v, { key: 1 }, [
|
|
677
678
|
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
|
|
@@ -685,22 +686,22 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
685
686
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
686
687
|
"stroke-linecap": "round",
|
|
687
688
|
"stroke-linejoin": "round",
|
|
688
|
-
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
689
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
|
|
689
690
|
}, null, 10, Ra))), 256)),
|
|
690
|
-
a.$slots.pattern ? (s(), n("g",
|
|
691
|
+
a.$slots.pattern ? (s(), n("g", Aa, [
|
|
691
692
|
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
|
|
692
693
|
x: c,
|
|
693
694
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
694
695
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
695
696
|
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,
|
|
696
697
|
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
697
|
-
fill: `url(#pattern_${
|
|
698
|
+
fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
|
|
698
699
|
stroke: e.value.style.chart.backgroundColor,
|
|
699
700
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
700
701
|
"stroke-linecap": "round",
|
|
701
702
|
"stroke-linejoin": "round",
|
|
702
|
-
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
703
|
-
}, null, 10,
|
|
703
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
|
|
704
|
+
}, null, 10, Da))), 256))
|
|
704
705
|
])) : g("", !0)
|
|
705
706
|
], 64)) : (s(), n(v, { key: 2 }, [
|
|
706
707
|
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
|
|
@@ -714,21 +715,21 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
714
715
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
715
716
|
"stroke-linecap": "round",
|
|
716
717
|
"stroke-linejoin": "round",
|
|
717
|
-
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
718
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
|
|
718
719
|
}, null, 10, Fa))), 256)),
|
|
719
|
-
a.$slots.pattern ? (s(), n("g",
|
|
720
|
+
a.$slots.pattern ? (s(), n("g", Ua, [
|
|
720
721
|
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
|
|
721
722
|
x: y(xe)(c, o.value.left),
|
|
722
723
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
723
724
|
width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
724
725
|
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,
|
|
725
726
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
726
|
-
fill: `url(#pattern_${
|
|
727
|
+
fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
|
|
727
728
|
stroke: e.value.style.chart.backgroundColor,
|
|
728
729
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
729
730
|
"stroke-linecap": "round",
|
|
730
731
|
"stroke-linejoin": "round",
|
|
731
|
-
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
732
|
+
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
|
|
732
733
|
}, null, 10, Ea))), 256))
|
|
733
734
|
])) : g("", !0)
|
|
734
735
|
], 64))
|
|
@@ -754,7 +755,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
754
755
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
755
756
|
"stroke-linecap": "round",
|
|
756
757
|
"stroke-linejoin": "round"
|
|
757
|
-
}, null, 8,
|
|
758
|
+
}, null, 8, Ba)) : g("", !0),
|
|
758
759
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
|
|
759
760
|
key: 8,
|
|
760
761
|
x: o.value.left + o.value.width / 2,
|
|
@@ -763,7 +764,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
763
764
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
764
765
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
765
766
|
"text-anchor": "middle"
|
|
766
|
-
},
|
|
767
|
+
}, T(e.value.style.chart.grid.x.axisName.text), 9, Wa)) : g("", !0),
|
|
767
768
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
|
|
768
769
|
key: 9,
|
|
769
770
|
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)`,
|
|
@@ -771,23 +772,23 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
771
772
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
772
773
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
773
774
|
"text-anchor": "middle"
|
|
774
|
-
},
|
|
775
|
+
}, T(e.value.style.chart.grid.y.axisName.text), 9, Ya)) : g("", !0),
|
|
775
776
|
L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
|
|
776
|
-
(s(!0), n(v, null, f(
|
|
777
|
+
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
777
778
|
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
|
|
778
|
-
|
|
779
|
+
st(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
779
780
|
key: 0,
|
|
780
781
|
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
781
782
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
782
783
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
783
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(
|
|
784
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
784
785
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
785
786
|
"text-anchor": "middle"
|
|
786
|
-
},
|
|
787
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ze(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Xa)) : g("", !0)
|
|
787
788
|
], 64))), 256))
|
|
788
789
|
]))), 256)),
|
|
789
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
790
|
-
(s(!0), n(v, null, f(
|
|
790
|
+
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Ga, [
|
|
791
|
+
(s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
|
|
791
792
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
792
793
|
key: 0,
|
|
793
794
|
x: o.value.left + d.value * l + d.value / 2,
|
|
@@ -796,26 +797,26 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
796
797
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
797
798
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
798
799
|
fill: e.value.style.chart.bars.totalValues.color
|
|
799
|
-
},
|
|
800
|
+
}, T(ve(t.value, t, l, t.sign)), 9, Ja)) : g("", !0)
|
|
800
801
|
], 64))), 256))
|
|
801
802
|
])) : g("", !0)
|
|
802
803
|
], 64)) : g("", !0),
|
|
803
804
|
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
|
|
804
|
-
(s(!0), n(v, null, f(
|
|
805
|
+
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
805
806
|
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
|
|
806
|
-
|
|
807
|
+
st(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
807
808
|
key: 0,
|
|
808
809
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
809
810
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
810
811
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
811
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(
|
|
812
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
812
813
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
813
814
|
"text-anchor": "middle"
|
|
814
|
-
},
|
|
815
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ze(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, qa)) : g("", !0)
|
|
815
816
|
], 64))), 256))
|
|
816
817
|
]))), 256)),
|
|
817
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
818
|
-
(s(!0), n(v, null, f(
|
|
818
|
+
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Za, [
|
|
819
|
+
(s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
|
|
819
820
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
820
821
|
key: 0,
|
|
821
822
|
x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
@@ -824,27 +825,27 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
824
825
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
825
826
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
826
827
|
fill: e.value.style.chart.bars.totalValues.color
|
|
827
|
-
},
|
|
828
|
+
}, T(ve(t.value, t, l, t.sign)), 9, Ka)) : g("", !0)
|
|
828
829
|
], 64))), 256))
|
|
829
830
|
])) : g("", !0)
|
|
830
831
|
], 64)) : g("", !0),
|
|
831
832
|
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(
|
|
833
|
+
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
|
|
833
834
|
x1: o.value.left,
|
|
834
835
|
x2: o.value.left - 6,
|
|
835
836
|
y1: t.y,
|
|
836
837
|
y2: t.y,
|
|
837
838
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
838
839
|
"stroke-width": 1
|
|
839
|
-
}, null, 8,
|
|
840
|
-
(s(!0), n(v, null, f(
|
|
840
|
+
}, null, 8, Qa))), 256)),
|
|
841
|
+
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
|
|
841
842
|
x: t.x,
|
|
842
843
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
843
844
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
844
845
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
845
846
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
846
847
|
"text-anchor": "end"
|
|
847
|
-
},
|
|
848
|
+
}, T(y(ke)(
|
|
848
849
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
849
850
|
t.value,
|
|
850
851
|
y(q)({
|
|
@@ -854,10 +855,10 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
854
855
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
855
856
|
}),
|
|
856
857
|
{ datapoint: t }
|
|
857
|
-
)), 9,
|
|
858
|
+
)), 9, ja))), 256))
|
|
858
859
|
], 64)) : g("", !0),
|
|
859
860
|
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(
|
|
861
|
+
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
|
|
861
862
|
x1: t.horizontal_x,
|
|
862
863
|
x2: t.horizontal_x,
|
|
863
864
|
y1: o.value.bottom,
|
|
@@ -865,14 +866,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
865
866
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
866
867
|
"stroke-width": 1,
|
|
867
868
|
"stroke-linecap": "round"
|
|
868
|
-
}, null, 8,
|
|
869
|
-
(s(!0), n(v, null, f(
|
|
869
|
+
}, null, 8, el))), 256)),
|
|
870
|
+
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
|
|
870
871
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
871
872
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
872
873
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
873
874
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
874
875
|
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
|
-
},
|
|
876
|
+
}, T(y(ke)(
|
|
876
877
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
877
878
|
t.value,
|
|
878
879
|
y(q)({
|
|
@@ -882,12 +883,12 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
882
883
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
883
884
|
}),
|
|
884
885
|
{ datapoint: t }
|
|
885
|
-
)), 9,
|
|
886
|
+
)), 9, tl))), 256))
|
|
886
887
|
], 64)) : g("", !0),
|
|
887
888
|
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",
|
|
889
|
+
a.$slots["time-label"] ? (s(), n("g", al, [
|
|
889
890
|
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
890
|
-
|
|
891
|
+
z(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
891
892
|
x: o.value.left + d.value * l + d.value / 2,
|
|
892
893
|
y: o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
893
894
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -899,7 +900,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
899
900
|
show: !0
|
|
900
901
|
}), void 0, !0)
|
|
901
902
|
]))), 256))
|
|
902
|
-
])) : (s(), n("g",
|
|
903
|
+
])) : (s(), n("g", ll, [
|
|
903
904
|
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
904
905
|
String(t.text).includes(`
|
|
905
906
|
`) ? (s(), n("text", {
|
|
@@ -915,7 +916,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
915
916
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
916
917
|
`,
|
|
917
918
|
style: { cursor: "pointer" },
|
|
918
|
-
innerHTML: y(
|
|
919
|
+
innerHTML: y(ia)({
|
|
919
920
|
content: String(t.text),
|
|
920
921
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
921
922
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -923,7 +924,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
923
924
|
y: 0
|
|
924
925
|
}),
|
|
925
926
|
onClick: () => ge(t, l)
|
|
926
|
-
}, null, 8,
|
|
927
|
+
}, null, 8, sl)) : (s(), n("text", {
|
|
927
928
|
key: l,
|
|
928
929
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
929
930
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -932,14 +933,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
932
933
|
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})`,
|
|
933
934
|
style: { cursor: "pointer" },
|
|
934
935
|
onClick: () => ge(t, l)
|
|
935
|
-
},
|
|
936
|
+
}, T(t.text), 9, rl))
|
|
936
937
|
]))), 256))
|
|
937
938
|
]))
|
|
938
939
|
], 64)) : g("", !0),
|
|
939
940
|
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",
|
|
941
|
+
a.$slots["time-label"] ? (s(), n("g", ol, [
|
|
941
942
|
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
942
|
-
|
|
943
|
+
z(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
943
944
|
x: o.value.left - 8,
|
|
944
945
|
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
945
946
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -951,7 +952,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
951
952
|
show: !0
|
|
952
953
|
}), void 0, !0)
|
|
953
954
|
]))), 256))
|
|
954
|
-
])) : (s(), n("g",
|
|
955
|
+
])) : (s(), n("g", il, [
|
|
955
956
|
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
956
957
|
String(t.text).includes(`
|
|
957
958
|
`) ? (s(), n("text", {
|
|
@@ -964,14 +965,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
964
965
|
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
965
966
|
style: { cursor: "pointer" },
|
|
966
967
|
onClick: () => ge(t, l),
|
|
967
|
-
innerHTML: y(
|
|
968
|
+
innerHTML: y(na)({
|
|
968
969
|
content: String(t.text),
|
|
969
970
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
970
971
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
971
972
|
x: o.value.left - 8,
|
|
972
973
|
y: 0
|
|
973
974
|
})
|
|
974
|
-
}, null, 8,
|
|
975
|
+
}, null, 8, ul)) : (s(), n("text", {
|
|
975
976
|
key: 0,
|
|
976
977
|
"text-anchor": "end",
|
|
977
978
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -983,7 +984,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
983
984
|
cursor: "pointer"
|
|
984
985
|
},
|
|
985
986
|
onClick: () => ge(t, l)
|
|
986
|
-
},
|
|
987
|
+
}, T(t.text), 9, nl))
|
|
987
988
|
]))), 256))
|
|
988
989
|
]))
|
|
989
990
|
], 64)) : g("", !0),
|
|
@@ -992,33 +993,33 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
992
993
|
y: o.value.top,
|
|
993
994
|
width: d.value,
|
|
994
995
|
height: o.value.height < 0 ? 0 : o.value.height,
|
|
995
|
-
onClick: (c) =>
|
|
996
|
-
onMouseenter: (c) =>
|
|
996
|
+
onClick: (c) => Ke(l),
|
|
997
|
+
onMouseenter: (c) => Qe(l),
|
|
997
998
|
onMouseleave: r[0] || (r[0] = (c) => {
|
|
998
999
|
ae.value = null, ne.value = !1;
|
|
999
1000
|
}),
|
|
1000
1001
|
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1001
1002
|
style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1002
|
-
}, null, 44,
|
|
1003
|
+
}, null, 44, cl))), 256)) : g("", !0),
|
|
1003
1004
|
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
1005
|
x: o.value.left,
|
|
1005
1006
|
y: o.value.top + l * d.value,
|
|
1006
1007
|
width: o.value.width < 0 ? 0 : o.value.width,
|
|
1007
1008
|
height: d.value,
|
|
1008
|
-
onClick: (c) =>
|
|
1009
|
-
onMouseenter: (c) =>
|
|
1009
|
+
onClick: (c) => Ke(l),
|
|
1010
|
+
onMouseenter: (c) => Qe(l),
|
|
1010
1011
|
onMouseleave: r[1] || (r[1] = (c) => {
|
|
1011
1012
|
ae.value = null, ne.value = !1;
|
|
1012
1013
|
}),
|
|
1013
1014
|
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1014
1015
|
style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1015
|
-
}, null, 44,
|
|
1016
|
-
|
|
1017
|
-
], 12,
|
|
1018
|
-
a.$slots.watermark ? (s(), n("div",
|
|
1019
|
-
|
|
1016
|
+
}, null, 44, hl))), 256)) : g("", !0),
|
|
1017
|
+
z(a.$slots, "svg", F(U({ ...o.value })), void 0, !0)
|
|
1018
|
+
], 12, La)) : g("", !0),
|
|
1019
|
+
a.$slots.watermark ? (s(), n("div", vl, [
|
|
1020
|
+
z(a.$slots, "watermark", F(U({ isPrinting: y(He) || y(Be) })), void 0, !0)
|
|
1020
1021
|
])) : g("", !0),
|
|
1021
|
-
Z.value ? g("", !0) : (s(), j(y(
|
|
1022
|
+
Z.value ? g("", !0) : (s(), j(y(Ct), {
|
|
1022
1023
|
key: 5,
|
|
1023
1024
|
config: {
|
|
1024
1025
|
type: "bar",
|
|
@@ -1035,14 +1036,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
1035
1036
|
}, null, 8, ["config"])),
|
|
1036
1037
|
J("div", {
|
|
1037
1038
|
ref_key: "chartSlicer",
|
|
1038
|
-
ref:
|
|
1039
|
+
ref: Pe,
|
|
1039
1040
|
style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1040
1041
|
"data-dom-to-png-ignore": ""
|
|
1041
1042
|
}, [
|
|
1042
|
-
e.value.style.chart.zoom.show &&
|
|
1043
|
+
e.value.style.chart.zoom.show && D.value > 1 ? (s(), j(ma, {
|
|
1043
1044
|
ref_key: "slicerComponent",
|
|
1044
1045
|
ref: K,
|
|
1045
|
-
key: `slicer_${
|
|
1046
|
+
key: `slicer_${Ve.value}`,
|
|
1046
1047
|
background: e.value.style.chart.zoom.color,
|
|
1047
1048
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1048
1049
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -1064,15 +1065,15 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
1064
1065
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...we.dataset.map((t) => t.series.length)),
|
|
1065
1066
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1066
1067
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1067
|
-
onReset:
|
|
1068
|
+
onReset: Ge
|
|
1068
1069
|
}, {
|
|
1069
1070
|
"reset-action": _(({ reset: t }) => [
|
|
1070
|
-
|
|
1071
|
+
z(a.$slots, "reset-action", F(U({ reset: t })), void 0, !0)
|
|
1071
1072
|
]),
|
|
1072
1073
|
_: 3
|
|
1073
1074
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
|
|
1074
1075
|
], 4),
|
|
1075
|
-
ie(y(
|
|
1076
|
+
ie(y(_t), {
|
|
1076
1077
|
show: L.value.showTooltip && ne.value,
|
|
1077
1078
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1078
1079
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1086,13 +1087,13 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
1086
1087
|
parent: te.value,
|
|
1087
1088
|
content: Ce.value,
|
|
1088
1089
|
isFullscreen: ue.value,
|
|
1089
|
-
isCustom: y(
|
|
1090
|
+
isCustom: y(ft)(e.value.style.chart.tooltip.customFormat)
|
|
1090
1091
|
}, {
|
|
1091
1092
|
"tooltip-before": _(() => [
|
|
1092
|
-
|
|
1093
|
+
z(a.$slots, "tooltip-before", F(U({ ...Le.value })), void 0, !0)
|
|
1093
1094
|
]),
|
|
1094
1095
|
"tooltip-after": _(() => [
|
|
1095
|
-
|
|
1096
|
+
z(a.$slots, "tooltip-after", F(U({ ...Le.value })), void 0, !0)
|
|
1096
1097
|
]),
|
|
1097
1098
|
_: 3
|
|
1098
1099
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1100,47 +1101,47 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
1100
1101
|
ref_key: "chartLegend",
|
|
1101
1102
|
ref: Ie
|
|
1102
1103
|
}, [
|
|
1103
|
-
e.value.style.chart.legend.show && Z.value ? (s(), j(
|
|
1104
|
+
e.value.style.chart.legend.show && Z.value ? (s(), j(fa, {
|
|
1104
1105
|
key: 0,
|
|
1105
|
-
legendSet:
|
|
1106
|
-
config:
|
|
1106
|
+
legendSet: rt.value,
|
|
1107
|
+
config: Ft.value,
|
|
1107
1108
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1108
|
-
},
|
|
1109
|
+
}, ht({
|
|
1109
1110
|
item: _(({ legend: t }) => [
|
|
1110
1111
|
J("div", {
|
|
1111
1112
|
onClick: (l) => t.segregate(),
|
|
1112
1113
|
style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1113
|
-
},
|
|
1114
|
+
}, T(t.name), 13, dl)
|
|
1114
1115
|
]),
|
|
1115
1116
|
_: 2
|
|
1116
1117
|
}, [
|
|
1117
1118
|
a.$slots.pattern ? {
|
|
1118
1119
|
name: "legend-pattern",
|
|
1119
1120
|
fn: _(({ legend: t, index: l }) => [
|
|
1120
|
-
ie(
|
|
1121
|
+
ie(xa, {
|
|
1121
1122
|
shape: t.shape,
|
|
1122
1123
|
radius: 30,
|
|
1123
1124
|
stroke: "none",
|
|
1124
1125
|
plot: { x: 30, y: 30 },
|
|
1125
|
-
fill: `url(#pattern_${
|
|
1126
|
+
fill: `url(#pattern_${V.value}_${l})`
|
|
1126
1127
|
}, null, 8, ["shape", "fill"])
|
|
1127
1128
|
]),
|
|
1128
1129
|
key: "0"
|
|
1129
1130
|
} : void 0
|
|
1130
|
-
]), 1032, ["legendSet", "config"])) :
|
|
1131
|
+
]), 1032, ["legendSet", "config"])) : z(a.$slots, "legend", {
|
|
1131
1132
|
key: 1,
|
|
1132
|
-
legend:
|
|
1133
|
+
legend: rt.value
|
|
1133
1134
|
}, void 0, !0)
|
|
1134
1135
|
], 512),
|
|
1135
1136
|
a.$slots.source ? (s(), n("div", {
|
|
1136
1137
|
key: 6,
|
|
1137
1138
|
ref_key: "source",
|
|
1138
|
-
ref:
|
|
1139
|
+
ref: Oe,
|
|
1139
1140
|
dir: "auto"
|
|
1140
1141
|
}, [
|
|
1141
|
-
|
|
1142
|
+
z(a.$slots, "source", {}, void 0, !0)
|
|
1142
1143
|
], 512)) : g("", !0),
|
|
1143
|
-
h.value.end - h.value.start < 200 ? (s(), j(y(
|
|
1144
|
+
h.value.end - h.value.start < 200 ? (s(), j(y(kt), {
|
|
1144
1145
|
key: 7,
|
|
1145
1146
|
hideDetails: "",
|
|
1146
1147
|
config: {
|
|
@@ -1157,7 +1158,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
1157
1158
|
}
|
|
1158
1159
|
}, {
|
|
1159
1160
|
content: _(() => [
|
|
1160
|
-
ie(y(
|
|
1161
|
+
ie(y(wt), {
|
|
1161
1162
|
colNames: de.value.colNames,
|
|
1162
1163
|
head: de.value.head,
|
|
1163
1164
|
body: de.value.body,
|
|
@@ -1166,10 +1167,10 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
1166
1167
|
onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
|
|
1167
1168
|
}, {
|
|
1168
1169
|
th: _(({ th: t }) => [
|
|
1169
|
-
J("div", { innerHTML: t }, null, 8,
|
|
1170
|
+
J("div", { innerHTML: t }, null, 8, yl)
|
|
1170
1171
|
]),
|
|
1171
1172
|
td: _(({ td: t }) => [
|
|
1172
|
-
|
|
1173
|
+
Kt(T(isNaN(Number(t)) ? t : y(q)({
|
|
1173
1174
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1174
1175
|
v: t,
|
|
1175
1176
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1181,9 +1182,9 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
|
|
|
1181
1182
|
]),
|
|
1182
1183
|
_: 1
|
|
1183
1184
|
}, 8, ["config"])) : g("", !0)
|
|
1184
|
-
], 46,
|
|
1185
|
+
], 46, za));
|
|
1185
1186
|
}
|
|
1186
|
-
},
|
|
1187
|
+
}, Ml = /* @__PURE__ */ wa(gl, [["__scopeId", "data-v-03f7efdc"]]);
|
|
1187
1188
|
export {
|
|
1188
|
-
|
|
1189
|
+
Ml as default
|
|
1189
1190
|
};
|