vue-data-ui 3.0.22 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
- package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
- package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
- package/dist/DataTable-DJjA2_wf.js +140 -0
- package/dist/Legend-2-dC7DVb.js +72 -0
- package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
- package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
- package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
- package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
- package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
- package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
- package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
- package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
- package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
- package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
- package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
- package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
- package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
- package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
- package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
- package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
- package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
- package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
- package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
- package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
- package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
- package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
- package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
- package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
- package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
- package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
- package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
- package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
- package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
- package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
- package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
- package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
- package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
- package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
- package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
- package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
- package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
- package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
- package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
- package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
- package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
- package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
- package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
- package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
- package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
- package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
- package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
- package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
- package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
- package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
- package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
- package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
- package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
- package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
- package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
- package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
- package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
- package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
- package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
- package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
- package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
- package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
- package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
- package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
- package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
- package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
- package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
- package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-Y5T9UxMO.js +0 -133
- package/dist/Legend-DkU3at-b.js +0 -72
- package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
- package/dist/vue-ui-chord-0wf798ls.js +0 -1049
- package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
- package/dist/vue-ui-flow-K7UBguES.js +0 -852
- package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
- package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
- package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
- package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
- package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
- package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
- package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
- package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
- package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
- package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
- package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import { S as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { defineAsyncComponent as H, useSlots as Ca, computed as p, ref as g, onMounted as Tt, toRefs as _a, watch as ze, shallowRef as Mt, onBeforeUnmount as At, watchEffect as It, nextTick as Nt, createElementBlock as o, openBlock as r, unref as h, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as ve, createSlots as We, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as m, mergeProps as Ce, toDisplayString as T, Teleport as Sa, resolveDynamicComponent as $a, createTextVNode as Rt } from "vue";
|
|
2
|
+
import { u as Ta, c as Ot, t as Ma, a as Aa, p as _e, b as Ia, C as se, d as Na, o as Pt, f as Vt, g as Ra, e as Oa, ao as Se, ac as Dt, D as Et, X as Pa, l as Va, a9 as $e, F as Ft, k as Te, i as ee, I as Da, a0 as Ea, y as Ut, v as Fa, w as Ua, z as Ha } from "./index-CDQbCd41.js";
|
|
3
|
+
import { t as Ye, u as Ba } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Wa } from "./usePrinter-Bnl1YeUU.js";
|
|
5
|
+
import { u as Ya, B as Xa } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ht } from "./useNestedProp-BPEHGiYX.js";
|
|
7
|
+
import { u as Ga } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as Ja } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as qa } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Za } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import Ka from "./img-JOqdlnUs.js";
|
|
12
|
+
import Qa from "./Title-Dq2_Z9kR.js";
|
|
13
|
+
import { _ as ja } from "./Shape-Dj2Hl33H.js";
|
|
14
|
+
import el from "./Legend-2-dC7DVb.js";
|
|
15
|
+
import { S as tl } from "./Slicer-D99HytqX.js";
|
|
16
|
+
import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "width", "height"], nl = { key: 1 }, il = ["id"], ul = ["stop-color"], cl = ["stop-color"], vl = ["stop-color"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = { key: 0 }, fl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ml = { key: 0 }, pl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], xl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], kl = { key: 0 }, wl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "font-size", "fill", "font-weight"], _l = ["transform", "font-size", "fill", "font-weight"], Sl = ["x", "y", "font-size", "fill", "font-weight"], $l = ["x", "y", "font-size", "font-weight", "fill"], Tl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x1", "x2", "y1", "y2", "stroke"], Il = ["x", "y", "font-size", "font-weight", "fill"], Nl = ["x1", "x2", "y1", "y2", "stroke"], Rl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ol = { key: 0 }, Pl = { key: 1 }, Vl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Dl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], El = { key: 0 }, Fl = { key: 1 }, Ul = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Hl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Bl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Wl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Yl = {
|
|
18
18
|
key: 3,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Xl = ["id"], Gl = ["onClick"], Jl = ["innerHTML"], ql = {
|
|
21
21
|
__name: "vue-ui-stackbar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,25 +34,25 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
37
|
+
setup(Me, { expose: Bt, emit: Wt }) {
|
|
38
|
+
const Yt = H(() => import("./Tooltip-Y219DXZO.js")), Xt = H(() => import("./BaseIcon-DHtro8us.js")), Gt = H(() => import("./vue-ui-accordion-Bf_LHFFX.js")), Jt = H(() => import("./DataTable-DJjA2_wf.js")), qt = H(() => import("./PenAndPaper-B7QEDgx4.js")), Zt = H(() => import("./UserOptions-BuGfCdAY.js")), Kt = H(() => import("./PackageVersion-DU12WH3O.js")), Qt = H(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_stackbar: jt } = Ta(), ea = Ca(), f = Me, Ae = Wt, he = p({
|
|
39
39
|
get() {
|
|
40
40
|
return !!f.dataset && f.dataset.length;
|
|
41
41
|
},
|
|
42
42
|
set(a) {
|
|
43
43
|
return a;
|
|
44
44
|
}
|
|
45
|
-
}),
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
}), O = g(null), M = g(Ot()), Ie = g(!1), Ne = g(null), Re = g(""), S = g([]), Xe = g(0), Ge = g(null), Je = g(null), qe = g(null), Ze = g(null), Ke = g(0), re = g(!1), de = g(null), X = g(!1), Qe = g(0), ta = g(0), aa = g(0), je = g(null), et = g(!1), oe = g(null), Oe = g(null), Pe = g(null), G = g(null), J = g(null), la = g(null), tt = g(null);
|
|
46
|
+
Tt(() => {
|
|
47
|
+
et.value = !0, Fe();
|
|
48
48
|
});
|
|
49
|
-
const e = g(
|
|
50
|
-
...
|
|
49
|
+
const e = g(De()), { loading: ne, FINAL_DATASET: ye, manualLoading: ge } = Ya({
|
|
50
|
+
..._a(f),
|
|
51
51
|
FINAL_CONFIG: e,
|
|
52
|
-
prepareConfig:
|
|
52
|
+
prepareConfig: De,
|
|
53
53
|
callback: () => {
|
|
54
54
|
Promise.resolve().then(async () => {
|
|
55
|
-
await
|
|
55
|
+
await Ue();
|
|
56
56
|
});
|
|
57
57
|
},
|
|
58
58
|
skeletonDataset: [
|
|
@@ -67,7 +67,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
67
67
|
color: "#CACACA"
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
|
-
skeletonConfig:
|
|
70
|
+
skeletonConfig: Ma({
|
|
71
71
|
defaultConfig: e.value,
|
|
72
72
|
userConfig: {
|
|
73
73
|
userOptions: { show: !1 },
|
|
@@ -116,26 +116,26 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
119
|
-
}), { userOptionsVisible:
|
|
120
|
-
function
|
|
121
|
-
const a =
|
|
119
|
+
}), { userOptionsVisible: Ve, setUserOptionsVisibility: at, keepUserOptionState: lt } = Ja({ config: e.value }), { svgRef: st } = qa({ config: e.value.style.chart.title });
|
|
120
|
+
function De() {
|
|
121
|
+
const a = Ht({
|
|
122
122
|
userConfig: f.config,
|
|
123
|
-
defaultConfig:
|
|
123
|
+
defaultConfig: jt
|
|
124
124
|
});
|
|
125
125
|
let l = {};
|
|
126
126
|
return a.theme ? l = {
|
|
127
|
-
...
|
|
128
|
-
userConfig:
|
|
127
|
+
...Ht({
|
|
128
|
+
userConfig: Ia.vue_ui_stackbar[a.theme] || f.config,
|
|
129
129
|
defaultConfig: a
|
|
130
130
|
}),
|
|
131
|
-
customPalette:
|
|
131
|
+
customPalette: Aa[a.theme] || _e
|
|
132
132
|
} : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}, { deep: !0 }),
|
|
138
|
-
Array.isArray(a) && a.length > 0 && (
|
|
134
|
+
const rt = p(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), ot = p(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
135
|
+
ze(() => f.config, (a) => {
|
|
136
|
+
ne.value || (e.value = De()), Ve.value = !e.value.userOptions.showOnChartHover, Fe(), Qe.value += 1, ta.value += 1, aa.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
137
|
+
}, { deep: !0 }), ze(() => f.dataset, (a) => {
|
|
138
|
+
Array.isArray(a) && a.length > 0 && (ge.value = !1), dt();
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const z = g({
|
|
141
141
|
dataLabels: {
|
|
@@ -144,7 +144,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
144
144
|
showTable: e.value.table.show,
|
|
145
145
|
showTooltip: e.value.style.chart.tooltip.show
|
|
146
146
|
});
|
|
147
|
-
|
|
147
|
+
ze(e, () => {
|
|
148
148
|
z.value = {
|
|
149
149
|
dataLabels: {
|
|
150
150
|
show: e.value.style.chart.bars.dataLabels.show
|
|
@@ -153,11 +153,11 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
153
153
|
showTooltip: e.value.style.chart.tooltip.show
|
|
154
154
|
};
|
|
155
155
|
}, { immediate: !0 });
|
|
156
|
-
const { isPrinting:
|
|
157
|
-
elementId: `stackbar_${
|
|
156
|
+
const { isPrinting: nt, isImaging: it, generatePdf: ut, generateImage: ct } = Wa({
|
|
157
|
+
elementId: `stackbar_${M.value}`,
|
|
158
158
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
159
159
|
options: e.value.userOptions.print
|
|
160
|
-
}),
|
|
160
|
+
}), te = g({
|
|
161
161
|
width: e.value.style.chart.width,
|
|
162
162
|
height: e.value.style.chart.height,
|
|
163
163
|
paddingRatio: {
|
|
@@ -166,113 +166,113 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
166
166
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
167
167
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
}), sa = p(() => Na(e.value.customPalette)), E = Mt(null), ae = Mt(null), vt = g(null);
|
|
170
|
+
Tt(() => {
|
|
171
|
+
Fe();
|
|
172
172
|
});
|
|
173
|
-
const
|
|
174
|
-
function
|
|
175
|
-
if (
|
|
173
|
+
const Ee = p(() => !!e.value.debug);
|
|
174
|
+
function Fe() {
|
|
175
|
+
if (Pt(f.dataset) ? (Vt({
|
|
176
176
|
componentName: "VueUiStackbar",
|
|
177
177
|
type: "dataset",
|
|
178
|
-
debug:
|
|
179
|
-
}),
|
|
180
|
-
|
|
178
|
+
debug: Ee.value
|
|
179
|
+
}), ge.value = !0) : f.dataset.forEach((a, l) => {
|
|
180
|
+
Ra({
|
|
181
181
|
datasetObject: a,
|
|
182
182
|
requiredAttributes: ["name", "series"]
|
|
183
183
|
}).forEach((t) => {
|
|
184
|
-
|
|
184
|
+
he.value = !1, Vt({
|
|
185
185
|
componentName: "VueUiStackbar",
|
|
186
186
|
type: "datasetSerieAttribute",
|
|
187
187
|
property: t,
|
|
188
188
|
index: l,
|
|
189
|
-
debug:
|
|
190
|
-
}),
|
|
189
|
+
debug: Ee.value
|
|
190
|
+
}), ge.value = !0;
|
|
191
191
|
});
|
|
192
|
-
}),
|
|
193
|
-
|
|
192
|
+
}), Pt(f.dataset) || (ge.value = e.value.loading), setTimeout(() => {
|
|
193
|
+
X.value = !0;
|
|
194
194
|
}, 10), e.value.responsive) {
|
|
195
|
-
const a =
|
|
196
|
-
|
|
197
|
-
const { width: l, height: t } =
|
|
198
|
-
chart:
|
|
199
|
-
title: e.value.style.chart.title.text ?
|
|
200
|
-
legend: e.value.style.chart.legend.show ?
|
|
201
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
202
|
-
source:
|
|
195
|
+
const a = Ye(() => {
|
|
196
|
+
X.value = !1;
|
|
197
|
+
const { width: l, height: t } = Ba({
|
|
198
|
+
chart: O.value,
|
|
199
|
+
title: e.value.style.chart.title.text ? Ge.value : null,
|
|
200
|
+
legend: e.value.style.chart.legend.show ? Je.value : null,
|
|
201
|
+
slicer: e.value.style.chart.zoom.show && U.value > 1 ? qe.value : null,
|
|
202
|
+
source: Ze.value
|
|
203
203
|
});
|
|
204
204
|
requestAnimationFrame(() => {
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
te.value.width = l, te.value.height = t - 12, clearTimeout(vt.value), vt.value = setTimeout(() => {
|
|
206
|
+
X.value = !0;
|
|
207
207
|
}, 10);
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
|
-
E.value && (
|
|
210
|
+
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect()), E.value = new ResizeObserver(a), ae.value = O.value.parentNode, E.value.observe(ae.value);
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
Ue();
|
|
213
213
|
}
|
|
214
|
-
|
|
215
|
-
E.value && (
|
|
214
|
+
At(() => {
|
|
215
|
+
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect());
|
|
216
216
|
});
|
|
217
|
-
function
|
|
217
|
+
function ra() {
|
|
218
218
|
let a = 0;
|
|
219
|
-
e.value.orientation === "vertical" &&
|
|
219
|
+
e.value.orientation === "vertical" && G.value && (a = Array.from(G.value.querySelectorAll("text")).reduce((s, c) => {
|
|
220
220
|
const u = c.getComputedTextLength();
|
|
221
221
|
return u > s ? u : s;
|
|
222
|
-
}, 0)), e.value.orientation === "horizontal" &&
|
|
222
|
+
}, 0)), e.value.orientation === "horizontal" && J.value && (a = Array.from(J.value.querySelectorAll("text")).reduce((s, c) => {
|
|
223
223
|
const u = c.getComputedTextLength();
|
|
224
224
|
return u > s ? u : s;
|
|
225
225
|
}, 0));
|
|
226
|
-
const l =
|
|
226
|
+
const l = Pe.value ? Pe.value.getBoundingClientRect().width : 0;
|
|
227
227
|
return a + l + (l ? 24 : 0);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const be = g(0), fe = g(0), oa = Ye((a) => {
|
|
230
|
+
be.value = a;
|
|
231
231
|
}, 100);
|
|
232
|
-
|
|
233
|
-
const l = e.value.orientation === "vertical" ?
|
|
232
|
+
It((a) => {
|
|
233
|
+
const l = e.value.orientation === "vertical" ? J.value : G.value;
|
|
234
234
|
if (!l) return;
|
|
235
235
|
const t = new ResizeObserver((s) => {
|
|
236
|
-
|
|
236
|
+
oa(s[0].contentRect.height);
|
|
237
237
|
});
|
|
238
238
|
t.observe(l), a(() => t.disconnect());
|
|
239
239
|
});
|
|
240
|
-
const
|
|
241
|
-
|
|
240
|
+
const na = Ye((a) => {
|
|
241
|
+
fe.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
242
242
|
}, 100);
|
|
243
|
-
|
|
243
|
+
It((a) => {
|
|
244
244
|
if (e.value.orientation === "vertical") return;
|
|
245
|
-
const l =
|
|
245
|
+
const l = tt.value;
|
|
246
246
|
if (!l) return;
|
|
247
247
|
const t = new ResizeObserver((s) => {
|
|
248
|
-
|
|
248
|
+
na(s[0].contentRect.width);
|
|
249
249
|
});
|
|
250
250
|
t.observe(l), a(() => t.disconnect());
|
|
251
|
-
}),
|
|
252
|
-
|
|
251
|
+
}), At(() => {
|
|
252
|
+
be.value = 0, fe.value = 0;
|
|
253
253
|
});
|
|
254
|
-
const
|
|
254
|
+
const ht = p(() => {
|
|
255
255
|
let a = 0;
|
|
256
|
-
|
|
256
|
+
Oe.value && (a = Oe.value.getBBox().height);
|
|
257
257
|
let l = 0;
|
|
258
|
-
return e.value.orientation === "vertical" &&
|
|
259
|
-
}), n =
|
|
260
|
-
const { height: a, width: l } =
|
|
258
|
+
return e.value.orientation === "vertical" && J.value && (l = be.value), e.value.orientation === "horizontal" && G.value && (l = be.value), a + l;
|
|
259
|
+
}), n = p(() => {
|
|
260
|
+
const { height: a, width: l } = te.value, { right: t } = te.value.paddingRatio;
|
|
261
261
|
let s = e.value.style.chart.bars.totalValues.show && f.dataset && f.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
|
|
262
|
-
e.value.style.chart.grid.y.axisLabels.show && (c =
|
|
263
|
-
const u = e.value.style.chart.padding.top + s,
|
|
262
|
+
e.value.style.chart.grid.y.axisLabels.show && (c = ra());
|
|
263
|
+
const u = e.value.style.chart.padding.top + s, _ = l - l * t - fe.value, q = a - e.value.style.chart.padding.bottom - ht.value - s, Z = e.value.style.chart.padding.left + c, K = l - Z - l * t - fe.value, P = a - u - e.value.style.chart.padding.bottom - ht.value - s;
|
|
264
264
|
return {
|
|
265
265
|
chartHeight: a,
|
|
266
266
|
chartWidth: l,
|
|
267
267
|
top: u,
|
|
268
|
-
right:
|
|
269
|
-
bottom:
|
|
270
|
-
left:
|
|
271
|
-
width: Math.max(0,
|
|
272
|
-
height: Math.max(0,
|
|
268
|
+
right: _,
|
|
269
|
+
bottom: q,
|
|
270
|
+
left: Z,
|
|
271
|
+
width: Math.max(0, K),
|
|
272
|
+
height: Math.max(0, P)
|
|
273
273
|
};
|
|
274
|
-
}),
|
|
275
|
-
const t =
|
|
274
|
+
}), F = p(() => ye.value.map((a, l) => {
|
|
275
|
+
const t = Oa(a.color) || sa.value[l] || _e[l] || _e[l % _e.length];
|
|
276
276
|
return {
|
|
277
277
|
...a,
|
|
278
278
|
// In distributed mode, all values are converted to positive
|
|
@@ -280,45 +280,45 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
280
280
|
// Store signs to manage display of neg values in distributed mode
|
|
281
281
|
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
282
282
|
absoluteIndex: l,
|
|
283
|
-
id:
|
|
283
|
+
id: Ot(),
|
|
284
284
|
color: t
|
|
285
285
|
};
|
|
286
|
-
})),
|
|
286
|
+
})), U = p(() => Math.max(...F.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), v = g({
|
|
287
287
|
start: 0,
|
|
288
|
-
end: Math.max(...
|
|
288
|
+
end: Math.max(...ye.value.map((a) => a.series.length))
|
|
289
289
|
});
|
|
290
|
-
function
|
|
291
|
-
|
|
290
|
+
function dt() {
|
|
291
|
+
Ue();
|
|
292
292
|
}
|
|
293
|
-
async function
|
|
294
|
-
await
|
|
295
|
-
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t =
|
|
296
|
-
|
|
293
|
+
async function Ue() {
|
|
294
|
+
await Nt(), await Nt();
|
|
295
|
+
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = je.value, s = Math.max(...ye.value.map((c) => c.series.length));
|
|
296
|
+
v.value = { start: 0, end: s }, (a != null || l != null) && t ? (a != null ? t.setStartValue(a) : (v.value.start = 0, t.setStartValue(0)), l != null ? t.setEndValue(ia(l + 1)) : (v.value.end = s, t.setEndValue(s))) : (v.value = { start: 0, end: s }, Ke.value += 1);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
const l = Math.max(...
|
|
298
|
+
function ia(a) {
|
|
299
|
+
const l = Math.max(...ye.value.map((t) => t.series.length));
|
|
300
300
|
return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
301
301
|
}
|
|
302
|
-
const y =
|
|
302
|
+
const y = p(() => {
|
|
303
303
|
let a;
|
|
304
|
-
return e.value.orientation === "vertical" ? a = n.value.width / (
|
|
305
|
-
}),
|
|
304
|
+
return e.value.orientation === "vertical" ? a = n.value.width / (v.value.end - v.value.start) : a = n.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
|
|
305
|
+
}), ie = p(() => Se(F.value.filter((a) => !S.value.includes(a.id))).slice(v.value.start, v.value.end)), ua = p(() => Se(F.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
306
306
|
...a,
|
|
307
307
|
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
308
|
-
}))).slice(
|
|
309
|
-
const a =
|
|
308
|
+
}))).slice(v.value.start, v.value.end)), me = p(() => {
|
|
309
|
+
const a = F.value.filter((l) => !S.value.includes(l.id));
|
|
310
310
|
return {
|
|
311
|
-
positive:
|
|
311
|
+
positive: Se(a.map((l) => ({
|
|
312
312
|
...l,
|
|
313
|
-
series: l.series.slice(
|
|
313
|
+
series: l.series.slice(v.value.start, v.value.end).map((t) => t >= 0 ? t : 0)
|
|
314
314
|
}))),
|
|
315
|
-
negative:
|
|
315
|
+
negative: Se(a.map((l) => ({
|
|
316
316
|
...l,
|
|
317
|
-
series: l.series.slice(
|
|
317
|
+
series: l.series.slice(v.value.start, v.value.end).map((t) => t < 0 ? t : 0)
|
|
318
318
|
})))
|
|
319
319
|
};
|
|
320
|
-
}), R =
|
|
321
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...
|
|
320
|
+
}), R = p(() => {
|
|
321
|
+
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.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(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Dt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Et(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
322
322
|
return s.ticks.map((c) => ({
|
|
323
323
|
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
324
324
|
y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
@@ -328,55 +328,55 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
328
328
|
horizontal_y: n.value.bottom - 8,
|
|
329
329
|
value: c
|
|
330
330
|
}));
|
|
331
|
-
}), $ =
|
|
331
|
+
}), $ = p(() => Ga({
|
|
332
332
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
333
|
-
maxDatapoints:
|
|
333
|
+
maxDatapoints: U.value,
|
|
334
334
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
335
|
-
start:
|
|
336
|
-
end:
|
|
337
|
-
})), w =
|
|
338
|
-
if (!
|
|
339
|
-
let a = Array(
|
|
340
|
-
const c = Math.max(...
|
|
341
|
-
return
|
|
342
|
-
const
|
|
343
|
-
const
|
|
344
|
-
let
|
|
345
|
-
return
|
|
346
|
-
}),
|
|
347
|
-
const
|
|
348
|
-
let
|
|
349
|
-
return
|
|
350
|
-
}),
|
|
351
|
-
const
|
|
352
|
-
return
|
|
353
|
-
}),
|
|
354
|
-
const
|
|
355
|
-
return
|
|
356
|
-
}),
|
|
335
|
+
start: v.value.start,
|
|
336
|
+
end: v.value.end
|
|
337
|
+
})), w = p(() => {
|
|
338
|
+
if (!he.value && !ne.value) return [];
|
|
339
|
+
let a = Array(U.value).fill(0), l = Array(U.value).fill(0), t = Array(U.value).fill(0), s = Array(U.value).fill(0);
|
|
340
|
+
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Dt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Et(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, St = R.value[0] ? R.value[0].zero : n.value.bottom, $t = R.value[0] ? R.value[0].horizontal_zero : n.value.left;
|
|
341
|
+
return F.value.filter((ce) => !S.value.includes(ce.id)).map((ce) => {
|
|
342
|
+
const V = ce.series.slice(v.value.start, v.value.end), fa = ce.signedSeries.slice(v.value.start, v.value.end), ma = V.map((x, k) => n.value.left + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), pa = V.map((x, k) => n.value.top + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), xa = V.map((x, k) => {
|
|
343
|
+
const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
344
|
+
let Q, N;
|
|
345
|
+
return x > 0 ? (N = A * I, Q = St - N - a[k], a[k] += N) : (N = A * I, Q = St + t[k], t[k] += Math.abs(N)), Q;
|
|
346
|
+
}), ka = V.map((x, k) => {
|
|
347
|
+
const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
348
|
+
let Q, N;
|
|
349
|
+
return x > 0 ? (N = Le * I, Q = $t + l[k], l[k] += N) : (N = Le * I, Q = $t - Math.abs(N) - s[k], s[k] += Math.abs(N)), Q;
|
|
350
|
+
}), wa = V.map((x, k) => {
|
|
351
|
+
const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
352
|
+
return x > 0 ? A * I : A * Math.abs(I);
|
|
353
|
+
}), La = V.map((x, k) => {
|
|
354
|
+
const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
355
|
+
return x > 0 ? Le * I : Le * Math.abs(I);
|
|
356
|
+
}), za = V.map((x) => Math.abs(x)).reduce((x, k) => x + k, 0);
|
|
357
357
|
return {
|
|
358
|
-
...
|
|
359
|
-
proportions:
|
|
360
|
-
series:
|
|
361
|
-
signedSeries:
|
|
362
|
-
x:
|
|
363
|
-
y:
|
|
364
|
-
height:
|
|
365
|
-
horizontal_width:
|
|
366
|
-
horizontal_y:
|
|
367
|
-
horizontal_x:
|
|
358
|
+
...ce,
|
|
359
|
+
proportions: V.map((x, k) => e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / za),
|
|
360
|
+
series: V,
|
|
361
|
+
signedSeries: fa,
|
|
362
|
+
x: ma,
|
|
363
|
+
y: xa,
|
|
364
|
+
height: wa,
|
|
365
|
+
horizontal_width: La,
|
|
366
|
+
horizontal_y: pa,
|
|
367
|
+
horizontal_x: ka
|
|
368
368
|
};
|
|
369
369
|
});
|
|
370
|
-
}),
|
|
370
|
+
}), yt = p(() => ua.value.map((a, l) => ({
|
|
371
371
|
value: a,
|
|
372
372
|
sign: a >= 0 ? 1 : -1
|
|
373
373
|
})));
|
|
374
|
-
function
|
|
374
|
+
function pe(a, l, t, s, c) {
|
|
375
375
|
const u = c === -1 && a >= 0 ? -a : a;
|
|
376
|
-
return
|
|
376
|
+
return Te(
|
|
377
377
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
378
378
|
u,
|
|
379
|
-
|
|
379
|
+
ee({
|
|
380
380
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
381
381
|
v: u,
|
|
382
382
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -385,11 +385,11 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
385
385
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return
|
|
388
|
+
function gt(a, l, t, s) {
|
|
389
|
+
return Te(
|
|
390
390
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
391
391
|
a,
|
|
392
|
-
|
|
392
|
+
ee({
|
|
393
393
|
v: isNaN(a) ? 0 : a,
|
|
394
394
|
s: "%",
|
|
395
395
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
@@ -397,7 +397,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
397
397
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function bt(a) {
|
|
401
401
|
const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
|
|
402
402
|
name: t.name,
|
|
403
403
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -405,9 +405,9 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
405
405
|
color: t.color,
|
|
406
406
|
id: t.id
|
|
407
407
|
}));
|
|
408
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a +
|
|
408
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + v.value.start }), Ae("selectDatapoint", { datapoint: l, period: $.value[a] });
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function ft(a) {
|
|
411
411
|
return JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
412
412
|
name: l.name,
|
|
413
413
|
absoluteIndex: l.absoluteIndex,
|
|
@@ -417,30 +417,30 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
417
417
|
id: l.id
|
|
418
418
|
}));
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function mt(a) {
|
|
421
421
|
if (e.value.events.datapointLeave) {
|
|
422
|
-
const l =
|
|
423
|
-
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a +
|
|
422
|
+
const l = ft(a);
|
|
423
|
+
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + v.value.start });
|
|
424
424
|
}
|
|
425
|
-
|
|
425
|
+
Ie.value = null, de.value = null;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
|
|
429
|
-
const l = e.value.style.chart.tooltip.customFormat, t =
|
|
430
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a +
|
|
427
|
+
function pt(a) {
|
|
428
|
+
de.value = a, Ie.value = !0;
|
|
429
|
+
const l = e.value.style.chart.tooltip.customFormat, t = ft(a);
|
|
430
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + v.value.start }), Ne.value = {
|
|
431
431
|
datapoint: t,
|
|
432
432
|
seriesIndex: a,
|
|
433
433
|
config: e.value,
|
|
434
434
|
series: w.value
|
|
435
435
|
};
|
|
436
436
|
const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
437
|
-
if (
|
|
437
|
+
if (Ut(l) && Ha(() => l({
|
|
438
438
|
seriesIndex: a,
|
|
439
439
|
datapoint: t,
|
|
440
440
|
series: w.value,
|
|
441
441
|
config: e.value
|
|
442
442
|
})))
|
|
443
|
-
|
|
443
|
+
Re.value = l({
|
|
444
444
|
seriesIndex: a,
|
|
445
445
|
datapoint: t,
|
|
446
446
|
series: w.value,
|
|
@@ -450,65 +450,65 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
450
450
|
const {
|
|
451
451
|
showValue: c,
|
|
452
452
|
showPercentage: u,
|
|
453
|
-
borderColor:
|
|
454
|
-
roundingValue:
|
|
455
|
-
roundingPercentage:
|
|
453
|
+
borderColor: _,
|
|
454
|
+
roundingValue: q,
|
|
455
|
+
roundingPercentage: Z
|
|
456
456
|
} = e.value.style.chart.tooltip;
|
|
457
|
-
let
|
|
458
|
-
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (
|
|
459
|
-
const
|
|
457
|
+
let K = "";
|
|
458
|
+
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
459
|
+
const P = [
|
|
460
460
|
c && u ? "(" : "",
|
|
461
461
|
c && u ? ")" : ""
|
|
462
462
|
];
|
|
463
|
-
t.reverse().forEach((
|
|
464
|
-
|
|
463
|
+
t.reverse().forEach((A) => {
|
|
464
|
+
K += `
|
|
465
465
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
466
|
-
<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_${
|
|
467
|
-
${
|
|
466
|
+
<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_${A.id})` : A.color}"/>${ea.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${M.value}_${A.absoluteIndex})"/>` : ""}</svg>
|
|
467
|
+
${A.name}${c || u ? ":" : ""} ${c ? ee({
|
|
468
468
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
469
|
-
v:
|
|
469
|
+
v: A.value,
|
|
470
470
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
471
|
-
r:
|
|
472
|
-
}) : ""} ${
|
|
473
|
-
v: isNaN(
|
|
471
|
+
r: q
|
|
472
|
+
}) : ""} ${P[0]}${u ? ee({
|
|
473
|
+
v: isNaN(A.value / s) ? 0 : Math.abs(A.value) / s * 100,
|
|
474
474
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
475
475
|
s: "%",
|
|
476
|
-
r:
|
|
477
|
-
}) : ""}${
|
|
476
|
+
r: Z
|
|
477
|
+
}) : ""}${P[1]}
|
|
478
478
|
</div>
|
|
479
479
|
`;
|
|
480
|
-
}),
|
|
480
|
+
}), Re.value = `<div>${K}</div>`;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
timeLabelsEls: e.value.orientation === "vertical" ?
|
|
483
|
+
const ca = p(() => te.value.width), va = p(() => te.value.height);
|
|
484
|
+
Za({
|
|
485
|
+
timeLabelsEls: e.value.orientation === "vertical" ? J : G,
|
|
486
486
|
timeLabels: $,
|
|
487
|
-
slicer:
|
|
487
|
+
slicer: v,
|
|
488
488
|
configRef: e,
|
|
489
489
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
490
490
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
491
491
|
isAutoSize: !1,
|
|
492
|
-
width:
|
|
493
|
-
height:
|
|
492
|
+
width: ca,
|
|
493
|
+
height: va,
|
|
494
494
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
495
495
|
});
|
|
496
|
-
function
|
|
497
|
-
|
|
496
|
+
function xt(a) {
|
|
497
|
+
re.value = a, Xe.value += 1;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function kt() {
|
|
500
500
|
z.value.showTable = !z.value.showTable;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function wt() {
|
|
503
503
|
z.value.dataLabels.show = !z.value.dataLabels.show;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Lt() {
|
|
506
506
|
z.value.showTooltip = !z.value.showTooltip;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function ha() {
|
|
509
509
|
return w.value;
|
|
510
510
|
}
|
|
511
|
-
const
|
|
511
|
+
const zt = p(() => {
|
|
512
512
|
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
513
513
|
const a = w.value.map(({ name: t, color: s }) => ({
|
|
514
514
|
label: t,
|
|
@@ -516,21 +516,21 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
516
516
|
})), l = [];
|
|
517
517
|
return $.value.forEach((t) => {
|
|
518
518
|
const s = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
519
|
-
|
|
519
|
+
F.value.forEach((c) => {
|
|
520
520
|
s.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
521
521
|
}), l.push(s);
|
|
522
522
|
}), { head: a, body: l };
|
|
523
523
|
});
|
|
524
|
-
function
|
|
525
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
526
|
-
a ? a(u) :
|
|
524
|
+
function He(a = null) {
|
|
525
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...zt.value.head.map((_) => _.label)], s = zt.value.body, c = l.concat([t]).concat(s), u = Fa(c);
|
|
526
|
+
a ? a(u) : Ua({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
527
527
|
}
|
|
528
|
-
const
|
|
528
|
+
const xe = p(() => {
|
|
529
529
|
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>');
|
|
530
530
|
let l = [];
|
|
531
|
-
for (let c = 0; c <
|
|
532
|
-
const u = w.value.map((
|
|
533
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(
|
|
531
|
+
for (let c = 0; c < U.value; c += 1) {
|
|
532
|
+
const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, q) => _ + q, 0);
|
|
533
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
534
534
|
}
|
|
535
535
|
const t = {
|
|
536
536
|
th: {
|
|
@@ -545,36 +545,36 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
545
545
|
},
|
|
546
546
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
547
547
|
}, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
548
|
-
return { head: a, body: l.slice(0,
|
|
548
|
+
return { head: a, body: l.slice(0, v.value.end - v.value.start), config: t, colNames: s };
|
|
549
549
|
});
|
|
550
|
-
function
|
|
551
|
-
if (
|
|
550
|
+
function da(a, l) {
|
|
551
|
+
if (Ae("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
|
|
552
552
|
S.value = S.value.filter((t) => t !== l.id);
|
|
553
553
|
else {
|
|
554
|
-
if (S.value.length ===
|
|
554
|
+
if (S.value.length === F.value.length - 1) return;
|
|
555
555
|
S.value.push(l.id);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const
|
|
558
|
+
const Ct = p(() => F.value.map((a, l) => ({
|
|
559
559
|
...a,
|
|
560
560
|
shape: "square"
|
|
561
561
|
})).map((a) => ({
|
|
562
562
|
...a,
|
|
563
563
|
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
564
|
-
segregate: () =>
|
|
564
|
+
segregate: () => da(a.absoluteIndex, a),
|
|
565
565
|
isSegregated: S.value.includes(a.id)
|
|
566
|
-
}))),
|
|
566
|
+
}))), ya = p(() => ({
|
|
567
567
|
cy: "stackbar-legend",
|
|
568
568
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
569
569
|
color: e.value.style.chart.legend.color,
|
|
570
570
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
571
571
|
paddingBottom: 12,
|
|
572
572
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
573
|
-
})),
|
|
574
|
-
function
|
|
575
|
-
|
|
573
|
+
})), ke = g(!1);
|
|
574
|
+
function Be() {
|
|
575
|
+
ke.value = !ke.value;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function we(a, l) {
|
|
578
578
|
const t = JSON.parse(JSON.stringify(w.value)).map((s) => ({
|
|
579
579
|
name: s.name,
|
|
580
580
|
value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
|
|
@@ -582,19 +582,19 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
582
582
|
color: s.color,
|
|
583
583
|
id: s.id
|
|
584
584
|
}));
|
|
585
|
-
|
|
585
|
+
Ae("selectTimeLabel", {
|
|
586
586
|
datapoint: t,
|
|
587
587
|
absoluteIndex: a.absoluteIndex,
|
|
588
588
|
label: a.text
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
|
-
const
|
|
592
|
-
function
|
|
593
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
591
|
+
const ga = p(() => Math.max(...w.value.flatMap((a) => a.series)));
|
|
592
|
+
function _t(a, l) {
|
|
593
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ot.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : ot.value ? (rt.value && Ee.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 > ga.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : rt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
594
594
|
}
|
|
595
|
-
async function
|
|
596
|
-
if (!
|
|
597
|
-
const { width: l, height: t } =
|
|
595
|
+
async function ba({ scale: a = 2 } = {}) {
|
|
596
|
+
if (!O.value) return;
|
|
597
|
+
const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Ka({ domElement: O.value, base64: !0, img: !0, scale: a });
|
|
598
598
|
return {
|
|
599
599
|
imageUri: c,
|
|
600
600
|
base64: u,
|
|
@@ -604,43 +604,75 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
604
604
|
aspectRatio: s
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
607
|
+
const ue = p(() => {
|
|
608
|
+
const a = e.value.table.useDialog && !e.value.table.show, l = z.value.showTable;
|
|
609
|
+
return {
|
|
610
|
+
component: a ? Qt : Gt,
|
|
611
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
612
|
+
props: a ? {
|
|
613
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
614
|
+
color: e.value.table.th.color,
|
|
615
|
+
headerColor: e.value.table.th.color,
|
|
616
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
617
|
+
isFullscreen: re.value,
|
|
618
|
+
fullscreenParent: O.value,
|
|
619
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
620
|
+
} : {
|
|
621
|
+
hideDetails: !0,
|
|
622
|
+
config: {
|
|
623
|
+
open: l,
|
|
624
|
+
maxHeight: 1e4,
|
|
625
|
+
body: {
|
|
626
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
627
|
+
color: e.value.style.chart.color
|
|
628
|
+
},
|
|
629
|
+
head: {
|
|
630
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
631
|
+
color: e.value.style.chart.color
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
});
|
|
637
|
+
return ze(() => z.value.showTable, (a) => {
|
|
638
|
+
e.value.table.show || (a && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
|
|
639
|
+
}), Bt({
|
|
640
|
+
getData: ha,
|
|
641
|
+
getImage: ba,
|
|
642
|
+
generatePdf: ut,
|
|
643
|
+
generateCsv: He,
|
|
644
|
+
generateImage: ct,
|
|
645
|
+
toggleTable: kt,
|
|
646
|
+
toggleLabels: wt,
|
|
647
|
+
toggleTooltip: Lt,
|
|
648
|
+
toggleAnnotator: Be,
|
|
649
|
+
toggleFullscreen: xt
|
|
618
650
|
}), (a, l) => (r(), o("div", {
|
|
619
|
-
id: `stackbar_${
|
|
651
|
+
id: `stackbar_${M.value}`,
|
|
620
652
|
ref_key: "stackbarChart",
|
|
621
|
-
ref:
|
|
622
|
-
class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen":
|
|
623
|
-
style:
|
|
624
|
-
onMouseenter: l[
|
|
625
|
-
onMouseleave: l[
|
|
653
|
+
ref: O,
|
|
654
|
+
class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": re.value }),
|
|
655
|
+
style: j(`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%" : ""}`),
|
|
656
|
+
onMouseenter: l[6] || (l[6] = () => h(at)(!0)),
|
|
657
|
+
onMouseleave: l[7] || (l[7] = () => h(at)(!1))
|
|
626
658
|
}, [
|
|
627
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
659
|
+
e.value.userOptions.buttons.annotator ? (r(), B(h(qt), {
|
|
628
660
|
key: 0,
|
|
629
|
-
svgRef:
|
|
661
|
+
svgRef: h(st),
|
|
630
662
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
631
663
|
color: e.value.style.chart.color,
|
|
632
|
-
active:
|
|
633
|
-
onClose:
|
|
664
|
+
active: ke.value,
|
|
665
|
+
onClose: Be
|
|
634
666
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
635
667
|
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
636
668
|
e.value.style.chart.title.text ? (r(), o("div", {
|
|
637
669
|
key: 1,
|
|
638
670
|
ref_key: "chartTitle",
|
|
639
|
-
ref:
|
|
671
|
+
ref: Ge,
|
|
640
672
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
641
673
|
}, [
|
|
642
|
-
(r(),
|
|
643
|
-
key: `title_${
|
|
674
|
+
(r(), B(Qa, {
|
|
675
|
+
key: `title_${Qe.value}`,
|
|
644
676
|
config: {
|
|
645
677
|
title: {
|
|
646
678
|
cy: "stackbar-title",
|
|
@@ -653,17 +685,17 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
653
685
|
}
|
|
654
686
|
}, null, 8, ["config"]))
|
|
655
687
|
], 512)) : d("", !0),
|
|
656
|
-
|
|
657
|
-
id: `legend-top-${
|
|
658
|
-
}, null, 8,
|
|
659
|
-
e.value.userOptions.show &&
|
|
688
|
+
D("div", {
|
|
689
|
+
id: `legend-top-${M.value}`
|
|
690
|
+
}, null, 8, sl),
|
|
691
|
+
e.value.userOptions.show && he.value && (h(lt) || h(Ve)) ? (r(), B(h(Zt), {
|
|
660
692
|
ref: "details",
|
|
661
|
-
key: `user_option_${
|
|
693
|
+
key: `user_option_${Xe.value}`,
|
|
662
694
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
663
695
|
color: e.value.style.chart.color,
|
|
664
|
-
isPrinting:
|
|
665
|
-
isImaging:
|
|
666
|
-
uid:
|
|
696
|
+
isPrinting: h(nt),
|
|
697
|
+
isImaging: h(it),
|
|
698
|
+
uid: M.value,
|
|
667
699
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
668
700
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
669
701
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -671,100 +703,100 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
671
703
|
hasTable: e.value.userOptions.buttons.table,
|
|
672
704
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
673
705
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
674
|
-
isFullscreen:
|
|
675
|
-
chartElement:
|
|
706
|
+
isFullscreen: re.value,
|
|
707
|
+
chartElement: O.value,
|
|
676
708
|
position: e.value.userOptions.position,
|
|
677
709
|
isTooltip: z.value.showTooltip,
|
|
678
710
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
679
711
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
680
|
-
isAnnotation:
|
|
712
|
+
isAnnotation: ke.value,
|
|
681
713
|
callbacks: e.value.userOptions.callbacks,
|
|
682
714
|
printScale: e.value.userOptions.print.scale,
|
|
683
|
-
onToggleFullscreen:
|
|
684
|
-
onGeneratePdf:
|
|
685
|
-
onGenerateCsv:
|
|
686
|
-
onGenerateImage:
|
|
687
|
-
onToggleTable:
|
|
688
|
-
onToggleLabels:
|
|
689
|
-
onToggleTooltip:
|
|
690
|
-
onToggleAnnotator:
|
|
691
|
-
style:
|
|
692
|
-
visibility:
|
|
715
|
+
onToggleFullscreen: xt,
|
|
716
|
+
onGeneratePdf: h(ut),
|
|
717
|
+
onGenerateCsv: He,
|
|
718
|
+
onGenerateImage: h(ct),
|
|
719
|
+
onToggleTable: kt,
|
|
720
|
+
onToggleLabels: wt,
|
|
721
|
+
onToggleTooltip: Lt,
|
|
722
|
+
onToggleAnnotator: Be,
|
|
723
|
+
style: j({
|
|
724
|
+
visibility: h(lt) ? h(Ve) ? "visible" : "hidden" : "visible"
|
|
693
725
|
})
|
|
694
|
-
},
|
|
726
|
+
}, We({ _: 2 }, [
|
|
695
727
|
a.$slots.menuIcon ? {
|
|
696
728
|
name: "menuIcon",
|
|
697
|
-
fn:
|
|
698
|
-
L(a.$slots, "menuIcon",
|
|
729
|
+
fn: C(({ isOpen: t, color: s }) => [
|
|
730
|
+
L(a.$slots, "menuIcon", W(Y({ isOpen: t, color: s })), void 0, !0)
|
|
699
731
|
]),
|
|
700
732
|
key: "0"
|
|
701
733
|
} : void 0,
|
|
702
734
|
a.$slots.optionTooltip ? {
|
|
703
735
|
name: "optionTooltip",
|
|
704
|
-
fn:
|
|
736
|
+
fn: C(() => [
|
|
705
737
|
L(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
706
738
|
]),
|
|
707
739
|
key: "1"
|
|
708
740
|
} : void 0,
|
|
709
741
|
a.$slots.optionPdf ? {
|
|
710
742
|
name: "optionPdf",
|
|
711
|
-
fn:
|
|
743
|
+
fn: C(() => [
|
|
712
744
|
L(a.$slots, "optionPdf", {}, void 0, !0)
|
|
713
745
|
]),
|
|
714
746
|
key: "2"
|
|
715
747
|
} : void 0,
|
|
716
748
|
a.$slots.optionCsv ? {
|
|
717
749
|
name: "optionCsv",
|
|
718
|
-
fn:
|
|
750
|
+
fn: C(() => [
|
|
719
751
|
L(a.$slots, "optionCsv", {}, void 0, !0)
|
|
720
752
|
]),
|
|
721
753
|
key: "3"
|
|
722
754
|
} : void 0,
|
|
723
755
|
a.$slots.optionImg ? {
|
|
724
756
|
name: "optionImg",
|
|
725
|
-
fn:
|
|
757
|
+
fn: C(() => [
|
|
726
758
|
L(a.$slots, "optionImg", {}, void 0, !0)
|
|
727
759
|
]),
|
|
728
760
|
key: "4"
|
|
729
761
|
} : void 0,
|
|
730
762
|
a.$slots.optionTable ? {
|
|
731
763
|
name: "optionTable",
|
|
732
|
-
fn:
|
|
764
|
+
fn: C(() => [
|
|
733
765
|
L(a.$slots, "optionTable", {}, void 0, !0)
|
|
734
766
|
]),
|
|
735
767
|
key: "5"
|
|
736
768
|
} : void 0,
|
|
737
769
|
a.$slots.optionLabels ? {
|
|
738
770
|
name: "optionLabels",
|
|
739
|
-
fn:
|
|
771
|
+
fn: C(() => [
|
|
740
772
|
L(a.$slots, "optionLabels", {}, void 0, !0)
|
|
741
773
|
]),
|
|
742
774
|
key: "6"
|
|
743
775
|
} : void 0,
|
|
744
776
|
a.$slots.optionFullscreen ? {
|
|
745
777
|
name: "optionFullscreen",
|
|
746
|
-
fn:
|
|
747
|
-
L(a.$slots, "optionFullscreen",
|
|
778
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
779
|
+
L(a.$slots, "optionFullscreen", W(Y({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
748
780
|
]),
|
|
749
781
|
key: "7"
|
|
750
782
|
} : void 0,
|
|
751
783
|
a.$slots.optionAnnotator ? {
|
|
752
784
|
name: "optionAnnotator",
|
|
753
|
-
fn:
|
|
754
|
-
L(a.$slots, "optionAnnotator",
|
|
785
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
786
|
+
L(a.$slots, "optionAnnotator", W(Y({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
755
787
|
]),
|
|
756
788
|
key: "8"
|
|
757
789
|
} : void 0
|
|
758
790
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
759
791
|
(r(), o("svg", {
|
|
760
792
|
ref_key: "svgRef",
|
|
761
|
-
ref:
|
|
762
|
-
xmlns:
|
|
793
|
+
ref: st,
|
|
794
|
+
xmlns: h(Pa),
|
|
763
795
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
764
|
-
class: le({ "vue-data-ui-loading":
|
|
765
|
-
style:
|
|
796
|
+
class: le({ "vue-data-ui-loading": h(ne) }),
|
|
797
|
+
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
766
798
|
}, [
|
|
767
|
-
|
|
799
|
+
ve(h(Kt)),
|
|
768
800
|
a.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
769
801
|
key: 0,
|
|
770
802
|
x: n.value.left,
|
|
@@ -776,8 +808,8 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
776
808
|
}
|
|
777
809
|
}, [
|
|
778
810
|
L(a.$slots, "chart-background", {}, void 0, !0)
|
|
779
|
-
], 8,
|
|
780
|
-
e.value.style.chart.bars.gradient.show ? (r(), o("defs",
|
|
811
|
+
], 8, ol)) : d("", !0),
|
|
812
|
+
e.value.style.chart.bars.gradient.show ? (r(), o("defs", nl, [
|
|
781
813
|
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("linearGradient", {
|
|
782
814
|
id: `gradient_${t.id}`,
|
|
783
815
|
x1: "0%",
|
|
@@ -785,19 +817,19 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
785
817
|
x2: "0%",
|
|
786
818
|
y2: "100%"
|
|
787
819
|
}, [
|
|
788
|
-
|
|
820
|
+
D("stop", {
|
|
789
821
|
offset: "0%",
|
|
790
822
|
"stop-color": t.color
|
|
791
|
-
}, null, 8,
|
|
792
|
-
|
|
823
|
+
}, null, 8, ul),
|
|
824
|
+
D("stop", {
|
|
793
825
|
offset: "61.8%",
|
|
794
|
-
"stop-color":
|
|
795
|
-
}, null, 8,
|
|
796
|
-
|
|
826
|
+
"stop-color": h(Va)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
827
|
+
}, null, 8, cl),
|
|
828
|
+
D("stop", {
|
|
797
829
|
offset: "100%",
|
|
798
830
|
"stop-color": t.color
|
|
799
|
-
}, null, 8,
|
|
800
|
-
], 8,
|
|
831
|
+
}, null, 8, vl)
|
|
832
|
+
], 8, il))), 256))
|
|
801
833
|
])) : d("", !0),
|
|
802
834
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(R.value, (t, s) => (r(), o("line", {
|
|
803
835
|
x1: n.value.left,
|
|
@@ -808,8 +840,8 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
808
840
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
809
841
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
810
842
|
"stroke-linecap": "round"
|
|
811
|
-
}, null, 8,
|
|
812
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, m(
|
|
843
|
+
}, null, 8, hl))), 256)) : d("", !0),
|
|
844
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, m(v.value.end - v.value.start + 1, (t, s) => (r(), o("line", {
|
|
813
845
|
x1: n.value.left,
|
|
814
846
|
x2: n.value.right,
|
|
815
847
|
y1: n.value.top + y.value * s,
|
|
@@ -818,8 +850,8 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
818
850
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
819
851
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
820
852
|
"stroke-linecap": "round"
|
|
821
|
-
}, null, 8,
|
|
822
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, m(
|
|
853
|
+
}, null, 8, dl))), 256)) : d("", !0),
|
|
854
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, m(v.value.end - v.value.start + 1, (t, s) => (r(), o("line", {
|
|
823
855
|
x1: n.value.left + y.value * s,
|
|
824
856
|
x2: n.value.left + y.value * s,
|
|
825
857
|
y1: n.value.top,
|
|
@@ -828,7 +860,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
828
860
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
829
861
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
830
862
|
"stroke-linecap": "round"
|
|
831
|
-
}, null, 8,
|
|
863
|
+
}, null, 8, yl))), 256)) : d("", !0),
|
|
832
864
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(R.value, (t, s) => (r(), o("line", {
|
|
833
865
|
x1: t.horizontal_x,
|
|
834
866
|
x2: t.horizontal_x,
|
|
@@ -838,10 +870,10 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
838
870
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
839
871
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
840
872
|
"stroke-linecap": "round"
|
|
841
|
-
}, null, 8,
|
|
873
|
+
}, null, 8, gl))), 256)) : d("", !0),
|
|
842
874
|
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
843
|
-
a.$slots.pattern ? (r(), o("defs",
|
|
844
|
-
L(a.$slots, "pattern",
|
|
875
|
+
a.$slots.pattern ? (r(), o("defs", bl, [
|
|
876
|
+
L(a.$slots, "pattern", Ce({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${M.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
845
877
|
])) : d("", !0),
|
|
846
878
|
e.value.orientation === "vertical" ? (r(), o(b, { key: 1 }, [
|
|
847
879
|
(r(!0), o(b, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
@@ -855,28 +887,28 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
855
887
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
856
888
|
"stroke-linecap": "round",
|
|
857
889
|
"stroke-linejoin": "round",
|
|
858
|
-
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
859
|
-
}, null, 10,
|
|
860
|
-
a.$slots.pattern ? (r(), o("g",
|
|
890
|
+
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
891
|
+
}, null, 10, fl))), 256)),
|
|
892
|
+
a.$slots.pattern ? (r(), o("g", ml, [
|
|
861
893
|
(r(!0), o(b, null, m(t.x, (c, u) => (r(), o("rect", {
|
|
862
894
|
x: c,
|
|
863
895
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
864
896
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
865
897
|
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,
|
|
866
898
|
width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
867
|
-
fill: `url(#pattern_${
|
|
899
|
+
fill: `url(#pattern_${M.value}_${t.absoluteIndex})`,
|
|
868
900
|
stroke: e.value.style.chart.backgroundColor,
|
|
869
901
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
870
902
|
"stroke-linecap": "round",
|
|
871
903
|
"stroke-linejoin": "round",
|
|
872
|
-
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
873
|
-
}, null, 10,
|
|
904
|
+
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
905
|
+
}, null, 10, pl))), 256))
|
|
874
906
|
])) : d("", !0)
|
|
875
907
|
], 64)) : (r(), o(b, { key: 2 }, [
|
|
876
908
|
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
877
|
-
x:
|
|
909
|
+
x: h($e)(c, n.value.left),
|
|
878
910
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
879
|
-
width:
|
|
911
|
+
width: h($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
880
912
|
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,
|
|
881
913
|
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
882
914
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
@@ -884,22 +916,22 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
884
916
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
885
917
|
"stroke-linecap": "round",
|
|
886
918
|
"stroke-linejoin": "round",
|
|
887
|
-
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
888
|
-
}, null, 10,
|
|
889
|
-
a.$slots.pattern ? (r(), o("g",
|
|
919
|
+
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
920
|
+
}, null, 10, xl))), 256)),
|
|
921
|
+
a.$slots.pattern ? (r(), o("g", kl, [
|
|
890
922
|
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
891
|
-
x:
|
|
923
|
+
x: h($e)(c, n.value.left),
|
|
892
924
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
893
|
-
width:
|
|
925
|
+
width: h($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
894
926
|
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,
|
|
895
927
|
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
896
|
-
fill: `url(#pattern_${
|
|
928
|
+
fill: `url(#pattern_${M.value}_${t.absoluteIndex})`,
|
|
897
929
|
stroke: e.value.style.chart.backgroundColor,
|
|
898
930
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
899
931
|
"stroke-linecap": "round",
|
|
900
932
|
"stroke-linejoin": "round",
|
|
901
|
-
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
902
|
-
}, null, 10,
|
|
933
|
+
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
934
|
+
}, null, 10, wl))), 256))
|
|
903
935
|
])) : d("", !0)
|
|
904
936
|
], 64))
|
|
905
937
|
]))), 256)),
|
|
@@ -913,7 +945,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
913
945
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
914
946
|
"stroke-linecap": "round",
|
|
915
947
|
"stroke-linejoin": "round"
|
|
916
|
-
}, null, 8,
|
|
948
|
+
}, null, 8, Ll)) : d("", !0),
|
|
917
949
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
|
|
918
950
|
key: 7,
|
|
919
951
|
x1: n.value.left,
|
|
@@ -924,48 +956,48 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
924
956
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
925
957
|
"stroke-linecap": "round",
|
|
926
958
|
"stroke-linejoin": "round"
|
|
927
|
-
}, null, 8,
|
|
959
|
+
}, null, 8, zl)) : d("", !0),
|
|
928
960
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
|
|
929
961
|
key: 8,
|
|
930
962
|
ref_key: "xAxisLabel",
|
|
931
|
-
ref:
|
|
963
|
+
ref: Oe,
|
|
932
964
|
x: n.value.left + n.value.width / 2,
|
|
933
965
|
y: n.value.chartHeight - 3,
|
|
934
966
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
935
967
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
936
968
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
937
969
|
"text-anchor": "middle"
|
|
938
|
-
},
|
|
970
|
+
}, T(e.value.style.chart.grid.x.axisName.text), 9, Cl)) : d("", !0),
|
|
939
971
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
|
|
940
972
|
key: 9,
|
|
941
973
|
ref_key: "yAxisLabel",
|
|
942
|
-
ref:
|
|
974
|
+
ref: Pe,
|
|
943
975
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
944
976
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
945
977
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
946
978
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
947
979
|
"text-anchor": "middle"
|
|
948
|
-
},
|
|
980
|
+
}, T(e.value.style.chart.grid.y.axisName.text), 9, _l)) : d("", !0),
|
|
949
981
|
z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(b, { key: 10 }, [
|
|
950
982
|
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
951
983
|
(r(!0), o(b, null, m(t.x, (c, u) => (r(), o(b, null, [
|
|
952
|
-
|
|
984
|
+
_t(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
953
985
|
key: 0,
|
|
954
986
|
x: c + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
955
987
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
956
988
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
957
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
989
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? h(Ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
958
990
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
959
991
|
"text-anchor": "middle"
|
|
960
|
-
},
|
|
992
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? gt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Sl)) : d("", !0)
|
|
961
993
|
], 64))), 256))
|
|
962
994
|
]))), 256)),
|
|
963
995
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
964
996
|
key: 0,
|
|
965
997
|
ref_key: "sumTop",
|
|
966
|
-
ref:
|
|
998
|
+
ref: la
|
|
967
999
|
}, [
|
|
968
|
-
(r(!0), o(b, null, m(
|
|
1000
|
+
(r(!0), o(b, null, m(yt.value, (t, s) => (r(), o(b, null, [
|
|
969
1001
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
970
1002
|
key: 0,
|
|
971
1003
|
x: n.value.left + y.value * s + y.value / 2,
|
|
@@ -974,30 +1006,30 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
974
1006
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
975
1007
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
976
1008
|
fill: e.value.style.chart.bars.totalValues.color
|
|
977
|
-
},
|
|
1009
|
+
}, T(pe(t.value, t, s, t.sign)), 9, $l)) : d("", !0)
|
|
978
1010
|
], 64))), 256))
|
|
979
1011
|
], 512)) : d("", !0)
|
|
980
1012
|
], 64)) : d("", !0),
|
|
981
1013
|
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(b, { key: 11 }, [
|
|
982
1014
|
(r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
|
|
983
1015
|
(r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o(b, null, [
|
|
984
|
-
|
|
1016
|
+
_t(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
985
1017
|
key: 0,
|
|
986
1018
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
987
1019
|
y: t.horizontal_y[u] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
988
1020
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
989
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
1021
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? h(Ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
990
1022
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
991
1023
|
"text-anchor": "middle"
|
|
992
|
-
},
|
|
1024
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? gt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Tl)) : d("", !0)
|
|
993
1025
|
], 64))), 256))
|
|
994
1026
|
]))), 256)),
|
|
995
1027
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
996
1028
|
key: 0,
|
|
997
1029
|
ref_key: "sumRight",
|
|
998
|
-
ref:
|
|
1030
|
+
ref: tt
|
|
999
1031
|
}, [
|
|
1000
|
-
(r(!0), o(b, null, m(
|
|
1032
|
+
(r(!0), o(b, null, m(yt.value, (t, s) => (r(), o(b, null, [
|
|
1001
1033
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
1002
1034
|
key: 0,
|
|
1003
1035
|
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
@@ -1006,14 +1038,14 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1006
1038
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1007
1039
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1008
1040
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1009
|
-
},
|
|
1041
|
+
}, T(pe(t.value, t, s, t.sign)), 9, Ml)) : d("", !0)
|
|
1010
1042
|
], 64))), 256))
|
|
1011
1043
|
], 512)) : d("", !0)
|
|
1012
1044
|
], 64)) : d("", !0),
|
|
1013
1045
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1014
1046
|
key: 12,
|
|
1015
1047
|
ref_key: "scaleLabels",
|
|
1016
|
-
ref:
|
|
1048
|
+
ref: G
|
|
1017
1049
|
}, [
|
|
1018
1050
|
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("line", {
|
|
1019
1051
|
x1: n.value.left,
|
|
@@ -1022,7 +1054,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1022
1054
|
y2: t.y,
|
|
1023
1055
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1024
1056
|
"stroke-width": 1
|
|
1025
|
-
}, null, 8,
|
|
1057
|
+
}, null, 8, Al))), 256)),
|
|
1026
1058
|
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
|
|
1027
1059
|
x: t.x,
|
|
1028
1060
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -1030,22 +1062,22 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1030
1062
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1031
1063
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1032
1064
|
"text-anchor": "end"
|
|
1033
|
-
},
|
|
1065
|
+
}, T(h(Te)(
|
|
1034
1066
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1035
1067
|
t.value,
|
|
1036
|
-
|
|
1068
|
+
h(ee)({
|
|
1037
1069
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1038
1070
|
v: t.value,
|
|
1039
1071
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1040
1072
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1041
1073
|
}),
|
|
1042
1074
|
{ datapoint: t }
|
|
1043
|
-
)), 9,
|
|
1075
|
+
)), 9, Il))), 256))
|
|
1044
1076
|
], 512)) : d("", !0),
|
|
1045
1077
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1046
1078
|
key: 13,
|
|
1047
1079
|
ref_key: "scaleLabels",
|
|
1048
|
-
ref:
|
|
1080
|
+
ref: G
|
|
1049
1081
|
}, [
|
|
1050
1082
|
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("line", {
|
|
1051
1083
|
x1: t.horizontal_x,
|
|
@@ -1055,7 +1087,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1055
1087
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1056
1088
|
"stroke-width": 1,
|
|
1057
1089
|
"stroke-linecap": "round"
|
|
1058
|
-
}, null, 8,
|
|
1090
|
+
}, null, 8, Nl))), 256)),
|
|
1059
1091
|
(r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
|
|
1060
1092
|
class: "vue-data-ui-time-label",
|
|
1061
1093
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1063,26 +1095,26 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1063
1095
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1064
1096
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1065
1097
|
transform: `translate(${t.horizontal_x}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
1066
|
-
},
|
|
1098
|
+
}, T(h(Te)(
|
|
1067
1099
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1068
1100
|
t.value,
|
|
1069
|
-
|
|
1101
|
+
h(ee)({
|
|
1070
1102
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1071
1103
|
v: t.value,
|
|
1072
1104
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1073
1105
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1074
1106
|
}),
|
|
1075
1107
|
{ datapoint: t }
|
|
1076
|
-
)), 9,
|
|
1108
|
+
)), 9, Rl))), 256))
|
|
1077
1109
|
], 512)) : d("", !0),
|
|
1078
1110
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1079
1111
|
key: 14,
|
|
1080
1112
|
ref_key: "timeLabelsEls",
|
|
1081
|
-
ref:
|
|
1113
|
+
ref: J
|
|
1082
1114
|
}, [
|
|
1083
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1115
|
+
a.$slots["time-label"] ? (r(), o("g", Ol, [
|
|
1084
1116
|
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1085
|
-
L(a.$slots, "time-label",
|
|
1117
|
+
L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
|
|
1086
1118
|
x: n.value.left + y.value * s + y.value / 2,
|
|
1087
1119
|
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1088
1120
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1094,7 +1126,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1094
1126
|
show: !0
|
|
1095
1127
|
}), void 0, !0)
|
|
1096
1128
|
]))), 256))
|
|
1097
|
-
])) : (r(), o("g",
|
|
1129
|
+
])) : (r(), o("g", Pl, [
|
|
1098
1130
|
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1099
1131
|
String(t.text).includes(`
|
|
1100
1132
|
`) ? (r(), o("text", {
|
|
@@ -1110,15 +1142,15 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1110
1142
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1111
1143
|
`,
|
|
1112
1144
|
style: { cursor: "pointer" },
|
|
1113
|
-
innerHTML:
|
|
1145
|
+
innerHTML: h(Da)({
|
|
1114
1146
|
content: String(t.text),
|
|
1115
1147
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1116
1148
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1117
1149
|
x: 0,
|
|
1118
1150
|
y: 0
|
|
1119
1151
|
}),
|
|
1120
|
-
onClick: () =>
|
|
1121
|
-
}, null, 8,
|
|
1152
|
+
onClick: () => we(t, s)
|
|
1153
|
+
}, null, 8, Dl)) : (r(), o("text", {
|
|
1122
1154
|
class: "vue-data-ui-time-label",
|
|
1123
1155
|
key: s,
|
|
1124
1156
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1127,19 +1159,19 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1127
1159
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1128
1160
|
transform: `translate(${n.value.left + y.value * s + y.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1129
1161
|
style: { cursor: "pointer" },
|
|
1130
|
-
onClick: () =>
|
|
1131
|
-
},
|
|
1162
|
+
onClick: () => we(t, s)
|
|
1163
|
+
}, T(t.text), 9, Vl))
|
|
1132
1164
|
]))), 256))
|
|
1133
1165
|
]))
|
|
1134
1166
|
], 512)) : d("", !0),
|
|
1135
1167
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1136
1168
|
key: 15,
|
|
1137
1169
|
ref_key: "timeLabelsEls",
|
|
1138
|
-
ref:
|
|
1170
|
+
ref: J
|
|
1139
1171
|
}, [
|
|
1140
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1172
|
+
a.$slots["time-label"] ? (r(), o("g", El, [
|
|
1141
1173
|
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1142
|
-
L(a.$slots, "time-label",
|
|
1174
|
+
L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
|
|
1143
1175
|
x: n.value.left - 8,
|
|
1144
1176
|
y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1145
1177
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1151,7 +1183,7 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1151
1183
|
show: !0
|
|
1152
1184
|
}), void 0, !0)
|
|
1153
1185
|
]))), 256))
|
|
1154
|
-
])) : (r(), o("g",
|
|
1186
|
+
])) : (r(), o("g", Fl, [
|
|
1155
1187
|
(r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
|
|
1156
1188
|
String(t.text).includes(`
|
|
1157
1189
|
`) ? (r(), o("text", {
|
|
@@ -1163,15 +1195,15 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1163
1195
|
x: n.value.left - 8,
|
|
1164
1196
|
y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1165
1197
|
style: { cursor: "pointer" },
|
|
1166
|
-
onClick: () =>
|
|
1167
|
-
innerHTML:
|
|
1198
|
+
onClick: () => we(t, s),
|
|
1199
|
+
innerHTML: h(Ea)({
|
|
1168
1200
|
content: String(t.text),
|
|
1169
1201
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1170
1202
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1171
1203
|
x: n.value.left - 8,
|
|
1172
1204
|
y: 0
|
|
1173
1205
|
})
|
|
1174
|
-
}, null, 8,
|
|
1206
|
+
}, null, 8, Hl)) : (r(), o("text", {
|
|
1175
1207
|
key: 0,
|
|
1176
1208
|
"text-anchor": "end",
|
|
1177
1209
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1182,79 +1214,79 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1182
1214
|
style: {
|
|
1183
1215
|
cursor: "pointer"
|
|
1184
1216
|
},
|
|
1185
|
-
onClick: () =>
|
|
1186
|
-
},
|
|
1217
|
+
onClick: () => we(t, s)
|
|
1218
|
+
}, T(t.text), 9, Ul))
|
|
1187
1219
|
]))), 256))
|
|
1188
1220
|
]))
|
|
1189
1221
|
], 512)) : d("", !0),
|
|
1190
|
-
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, m(
|
|
1222
|
+
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, m(v.value.end - v.value.start, (t, s) => (r(), o("rect", {
|
|
1191
1223
|
x: n.value.left + s * y.value,
|
|
1192
1224
|
y: n.value.top,
|
|
1193
1225
|
width: y.value,
|
|
1194
1226
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1195
|
-
onClick: () =>
|
|
1196
|
-
onMouseenter: () =>
|
|
1197
|
-
onMouseleave: () =>
|
|
1198
|
-
fill: s ===
|
|
1199
|
-
style:
|
|
1200
|
-
}, null, 44,
|
|
1201
|
-
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, m(
|
|
1227
|
+
onClick: () => bt(s),
|
|
1228
|
+
onMouseenter: () => pt(s),
|
|
1229
|
+
onMouseleave: () => mt(s),
|
|
1230
|
+
fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1231
|
+
style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1232
|
+
}, null, 44, Bl))), 256)) : d("", !0),
|
|
1233
|
+
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, m(v.value.end - v.value.start, (t, s) => (r(), o("rect", {
|
|
1202
1234
|
x: n.value.left,
|
|
1203
1235
|
y: n.value.top + s * y.value,
|
|
1204
1236
|
width: n.value.width < 0 ? 0 : n.value.width,
|
|
1205
1237
|
height: y.value,
|
|
1206
|
-
onClick: () =>
|
|
1207
|
-
onMouseenter: () =>
|
|
1208
|
-
onMouseleave: () =>
|
|
1209
|
-
fill: s ===
|
|
1210
|
-
style:
|
|
1211
|
-
}, null, 44,
|
|
1212
|
-
L(a.$slots, "svg",
|
|
1213
|
-
], 14,
|
|
1214
|
-
a.$slots.watermark ? (r(), o("div",
|
|
1215
|
-
L(a.$slots, "watermark",
|
|
1238
|
+
onClick: () => bt(s),
|
|
1239
|
+
onMouseenter: () => pt(s),
|
|
1240
|
+
onMouseleave: () => mt(s),
|
|
1241
|
+
fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1242
|
+
style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1243
|
+
}, null, 44, Wl))), 256)) : d("", !0),
|
|
1244
|
+
L(a.$slots, "svg", W(Y({ ...n.value })), void 0, !0)
|
|
1245
|
+
], 14, rl)),
|
|
1246
|
+
a.$slots.watermark ? (r(), o("div", Yl, [
|
|
1247
|
+
L(a.$slots, "watermark", W(Y({ isPrinting: h(nt) || h(it) })), void 0, !0)
|
|
1216
1248
|
])) : d("", !0),
|
|
1217
|
-
|
|
1249
|
+
D("div", {
|
|
1218
1250
|
ref_key: "chartSlicer",
|
|
1219
|
-
ref:
|
|
1220
|
-
style:
|
|
1251
|
+
ref: qe,
|
|
1252
|
+
style: j(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1221
1253
|
"data-dom-to-png-ignore": ""
|
|
1222
1254
|
}, [
|
|
1223
|
-
e.value.style.chart.zoom.show &&
|
|
1255
|
+
e.value.style.chart.zoom.show && U.value > 1 ? (r(), B(tl, {
|
|
1224
1256
|
ref_key: "slicerComponent",
|
|
1225
|
-
ref:
|
|
1226
|
-
key: `slicer_${
|
|
1257
|
+
ref: je,
|
|
1258
|
+
key: `slicer_${Ke.value}`,
|
|
1227
1259
|
background: e.value.style.chart.zoom.color,
|
|
1228
1260
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1229
1261
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
1230
1262
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
1231
|
-
labelLeft: e.value.style.chart.grid.x.timeLabels.values[
|
|
1232
|
-
labelRight: e.value.style.chart.grid.x.timeLabels.values[
|
|
1263
|
+
labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? $.value[0].text : "",
|
|
1264
|
+
labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? $.value.at(-1).text : "",
|
|
1233
1265
|
textColor: e.value.style.chart.color,
|
|
1234
1266
|
inputColor: e.value.style.chart.zoom.color,
|
|
1235
1267
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1236
|
-
max: Math.max(...
|
|
1268
|
+
max: Math.max(...Me.dataset.map((t) => t.series.length)),
|
|
1237
1269
|
min: 0,
|
|
1238
|
-
valueStart:
|
|
1239
|
-
valueEnd:
|
|
1240
|
-
start:
|
|
1241
|
-
"onUpdate:start": l[0] || (l[0] = (t) =>
|
|
1242
|
-
end:
|
|
1243
|
-
"onUpdate:end": l[1] || (l[1] = (t) =>
|
|
1270
|
+
valueStart: v.value.start,
|
|
1271
|
+
valueEnd: v.value.end,
|
|
1272
|
+
start: v.value.start,
|
|
1273
|
+
"onUpdate:start": l[0] || (l[0] = (t) => v.value.start = t),
|
|
1274
|
+
end: v.value.end,
|
|
1275
|
+
"onUpdate:end": l[1] || (l[1] = (t) => v.value.end = t),
|
|
1244
1276
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1245
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...
|
|
1277
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Me.dataset.map((t) => t.series.length)),
|
|
1246
1278
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1247
1279
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1248
|
-
onReset:
|
|
1280
|
+
onReset: dt
|
|
1249
1281
|
}, {
|
|
1250
|
-
"reset-action":
|
|
1251
|
-
L(a.$slots, "reset-action",
|
|
1282
|
+
"reset-action": C(({ reset: t }) => [
|
|
1283
|
+
L(a.$slots, "reset-action", W(Y({ reset: t })), void 0, !0)
|
|
1252
1284
|
]),
|
|
1253
1285
|
_: 3
|
|
1254
1286
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0)
|
|
1255
1287
|
], 4),
|
|
1256
|
-
|
|
1257
|
-
show: z.value.showTooltip &&
|
|
1288
|
+
ve(h(Yt), {
|
|
1289
|
+
show: z.value.showTooltip && Ie.value,
|
|
1258
1290
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1259
1291
|
color: e.value.style.chart.tooltip.color,
|
|
1260
1292
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1264,104 +1296,94 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1264
1296
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1265
1297
|
position: e.value.style.chart.tooltip.position,
|
|
1266
1298
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1267
|
-
parent:
|
|
1268
|
-
content:
|
|
1269
|
-
isFullscreen:
|
|
1270
|
-
isCustom:
|
|
1299
|
+
parent: O.value,
|
|
1300
|
+
content: Re.value,
|
|
1301
|
+
isFullscreen: re.value,
|
|
1302
|
+
isCustom: h(Ut)(e.value.style.chart.tooltip.customFormat),
|
|
1271
1303
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1272
1304
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1273
1305
|
}, {
|
|
1274
|
-
"tooltip-before":
|
|
1275
|
-
L(a.$slots, "tooltip-before",
|
|
1306
|
+
"tooltip-before": C(() => [
|
|
1307
|
+
L(a.$slots, "tooltip-before", W(Y({ ...Ne.value })), void 0, !0)
|
|
1276
1308
|
]),
|
|
1277
|
-
"tooltip-after":
|
|
1278
|
-
L(a.$slots, "tooltip-after",
|
|
1309
|
+
"tooltip-after": C(() => [
|
|
1310
|
+
L(a.$slots, "tooltip-after", W(Y({ ...Ne.value })), void 0, !0)
|
|
1279
1311
|
]),
|
|
1280
1312
|
_: 3
|
|
1281
1313
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1282
|
-
|
|
1283
|
-
id: `legend-bottom-${
|
|
1284
|
-
}, null, 8,
|
|
1285
|
-
|
|
1314
|
+
D("div", {
|
|
1315
|
+
id: `legend-bottom-${M.value}`
|
|
1316
|
+
}, null, 8, Xl),
|
|
1317
|
+
et.value ? (r(), B(Sa, {
|
|
1286
1318
|
key: 4,
|
|
1287
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1319
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
|
|
1288
1320
|
}, [
|
|
1289
|
-
|
|
1321
|
+
D("div", {
|
|
1290
1322
|
ref_key: "chartLegend",
|
|
1291
|
-
ref:
|
|
1323
|
+
ref: Je
|
|
1292
1324
|
}, [
|
|
1293
|
-
e.value.style.chart.legend.show ? (r(),
|
|
1325
|
+
e.value.style.chart.legend.show ? (r(), B(el, {
|
|
1294
1326
|
key: 0,
|
|
1295
|
-
legendSet:
|
|
1296
|
-
config:
|
|
1327
|
+
legendSet: Ct.value,
|
|
1328
|
+
config: ya.value,
|
|
1297
1329
|
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1298
|
-
},
|
|
1299
|
-
item:
|
|
1300
|
-
|
|
1330
|
+
}, We({
|
|
1331
|
+
item: C(({ legend: t }) => [
|
|
1332
|
+
h(ne) ? d("", !0) : (r(), o("div", {
|
|
1301
1333
|
key: 0,
|
|
1302
1334
|
onClick: (s) => t.segregate(),
|
|
1303
|
-
style:
|
|
1304
|
-
},
|
|
1335
|
+
style: j(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1336
|
+
}, T(t.name), 13, Gl))
|
|
1305
1337
|
]),
|
|
1306
1338
|
_: 2
|
|
1307
1339
|
}, [
|
|
1308
1340
|
a.$slots.pattern ? {
|
|
1309
1341
|
name: "legend-pattern",
|
|
1310
|
-
fn:
|
|
1311
|
-
|
|
1342
|
+
fn: C(({ legend: t, index: s }) => [
|
|
1343
|
+
ve(ja, {
|
|
1312
1344
|
shape: t.shape,
|
|
1313
1345
|
radius: 30,
|
|
1314
1346
|
stroke: "none",
|
|
1315
1347
|
plot: { x: 30, y: 30 },
|
|
1316
|
-
fill: `url(#pattern_${
|
|
1348
|
+
fill: `url(#pattern_${M.value}_${s})`
|
|
1317
1349
|
}, null, 8, ["shape", "fill"])
|
|
1318
1350
|
]),
|
|
1319
1351
|
key: "0"
|
|
1320
1352
|
} : void 0
|
|
1321
1353
|
]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
|
|
1322
1354
|
key: 1,
|
|
1323
|
-
legend:
|
|
1355
|
+
legend: Ct.value
|
|
1324
1356
|
}, void 0, !0)
|
|
1325
1357
|
], 512)
|
|
1326
1358
|
], 8, ["to"])) : d("", !0),
|
|
1327
1359
|
a.$slots.source ? (r(), o("div", {
|
|
1328
1360
|
key: 5,
|
|
1329
1361
|
ref_key: "source",
|
|
1330
|
-
ref:
|
|
1362
|
+
ref: Ze,
|
|
1331
1363
|
dir: "auto"
|
|
1332
1364
|
}, [
|
|
1333
1365
|
L(a.$slots, "source", {}, void 0, !0)
|
|
1334
1366
|
], 512)) : d("", !0),
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
}
|
|
1350
|
-
}, {
|
|
1351
|
-
content: _(() => [
|
|
1352
|
-
xe(v(Wt), {
|
|
1353
|
-
colNames: be.value.colNames,
|
|
1354
|
-
head: be.value.head,
|
|
1355
|
-
body: be.value.body,
|
|
1356
|
-
config: be.value.config,
|
|
1357
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1358
|
-
onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
|
|
1367
|
+
he.value ? (r(), B($a(ue.value.component), Ce({ key: 6 }, ue.value.props, {
|
|
1368
|
+
ref_key: "tableUnit",
|
|
1369
|
+
ref: oe,
|
|
1370
|
+
onClose: l[5] || (l[5] = (t) => z.value.showTable = !1)
|
|
1371
|
+
}), We({
|
|
1372
|
+
content: C(() => [
|
|
1373
|
+
ve(h(Jt), {
|
|
1374
|
+
colNames: xe.value.colNames,
|
|
1375
|
+
head: xe.value.head,
|
|
1376
|
+
body: xe.value.body,
|
|
1377
|
+
config: xe.value.config,
|
|
1378
|
+
title: e.value.table.useDialog ? "" : ue.value.title,
|
|
1379
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1380
|
+
onClose: l[4] || (l[4] = (t) => z.value.showTable = !1)
|
|
1359
1381
|
}, {
|
|
1360
|
-
th:
|
|
1361
|
-
|
|
1382
|
+
th: C(({ th: t }) => [
|
|
1383
|
+
D("div", { innerHTML: t }, null, 8, Jl)
|
|
1362
1384
|
]),
|
|
1363
|
-
td:
|
|
1364
|
-
|
|
1385
|
+
td: C(({ td: t }) => [
|
|
1386
|
+
Rt(T(isNaN(Number(t)) ? t : h(ee)({
|
|
1365
1387
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1366
1388
|
v: t,
|
|
1367
1389
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1369,14 +1391,38 @@ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1369
1391
|
})), 1)
|
|
1370
1392
|
]),
|
|
1371
1393
|
_: 1
|
|
1372
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
1394
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
1373
1395
|
]),
|
|
1374
|
-
_:
|
|
1375
|
-
},
|
|
1376
|
-
|
|
1377
|
-
|
|
1396
|
+
_: 2
|
|
1397
|
+
}, [
|
|
1398
|
+
e.value.table.useDialog ? {
|
|
1399
|
+
name: "title",
|
|
1400
|
+
fn: C(() => [
|
|
1401
|
+
Rt(T(ue.value.title), 1)
|
|
1402
|
+
]),
|
|
1403
|
+
key: "0"
|
|
1404
|
+
} : void 0,
|
|
1405
|
+
e.value.table.useDialog ? {
|
|
1406
|
+
name: "actions",
|
|
1407
|
+
fn: C(() => [
|
|
1408
|
+
D("button", {
|
|
1409
|
+
tabindex: "0",
|
|
1410
|
+
class: "vue-ui-user-options-button",
|
|
1411
|
+
onClick: l[3] || (l[3] = (t) => He(e.value.userOptions.callbacks.csv))
|
|
1412
|
+
}, [
|
|
1413
|
+
ve(h(Xt), {
|
|
1414
|
+
name: "excel",
|
|
1415
|
+
stroke: ue.value.props.color
|
|
1416
|
+
}, null, 8, ["stroke"])
|
|
1417
|
+
])
|
|
1418
|
+
]),
|
|
1419
|
+
key: "1"
|
|
1420
|
+
} : void 0
|
|
1421
|
+
]), 1040)) : d("", !0),
|
|
1422
|
+
h(ne) ? (r(), B(Xa, { key: 7 })) : d("", !0)
|
|
1423
|
+
], 46, ll));
|
|
1378
1424
|
}
|
|
1379
|
-
},
|
|
1425
|
+
}, hs = /* @__PURE__ */ al(ql, [["__scopeId", "data-v-6fd66359"]]);
|
|
1380
1426
|
export {
|
|
1381
|
-
|
|
1427
|
+
hs as default
|
|
1382
1428
|
};
|