vue-data-ui 2.12.6 → 2.12.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import { _ as sa } from "./PackageVersion-BjrblLPQ.js";
|
|
14
|
-
import { _ as ia } from "./PenAndPaper-BkP3J-Ft.js";
|
|
15
|
-
import { u as na } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
|
-
import { _ as ua } from "./Shape-C69a0f29.js";
|
|
17
|
-
import { u as ca } from "./useChartAccessibility-BWojgys7.js";
|
|
18
|
-
import { _ as ha } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"], ga = { key: 1 }, ba = ["id"], fa = ["stop-color"], ma = ["stop-color"], pa = ["stop-color"], xa = ["x1", "x2", "y1", "y2", "stroke"], ka = ["x1", "x2", "y1", "y2", "stroke"], wa = ["x1", "x2", "y1", "y2", "stroke"], _a = ["x1", "x2", "y1", "y2", "stroke"], za = { key: 0 }, Ca = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], La = { key: 0 }, $a = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Sa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ma = { key: 0 }, Ta = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = ["x", "y", "font-size", "fill", "font-weight"], Ra = ["transform", "font-size", "fill", "font-weight"], Pa = ["x", "y", "font-size", "fill", "font-weight"], Aa = { key: 0 }, Va = ["x", "y", "font-size", "font-weight", "fill"], Fa = ["x", "y", "font-size", "fill", "font-weight"], Da = { key: 0 }, Ea = ["x", "y", "font-size", "font-weight", "fill"], Ha = ["x1", "x2", "y1", "y2", "stroke"], Wa = ["x", "y", "font-size", "font-weight", "fill"], Ba = ["x1", "x2", "y1", "y2", "stroke"], Ua = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ya = { key: 0 }, Xa = { key: 1 }, Ga = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ja = { key: 0 }, qa = { key: 1 }, Za = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ka = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Qa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ja = {
|
|
1
|
+
import { defineAsyncComponent as E, useSlots as Xt, computed as w, ref as m, onMounted as rt, watch as ot, shallowRef as st, onBeforeUnmount as Gt, nextTick as ye, createElementBlock as s, openBlock as o, unref as d, normalizeStyle as X, normalizeClass as re, createBlock as Q, createCommentVNode as h, renderSlot as x, createElementVNode as G, createVNode as oe, createSlots as it, withCtx as C, normalizeProps as F, guardReactiveProps as D, Fragment as v, renderList as g, mergeProps as Le, toDisplayString as $, createTextVNode as Jt } from "vue";
|
|
2
|
+
import { u as qt, c as nt, t as Zt, p as ge, a as Kt, C as be, b as Qt, o as jt, e as ut, g as ea, d as ta, ak as fe, ah as ct, D as vt, X as aa, l as la, a6 as me, G as ht, f as J, x as dt, q as ra, r as oa, i as yt, y as sa } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { u as gt } from "./useNestedProp-tRqS0ZAM.js";
|
|
4
|
+
import { t as ia, u as na } from "./useResponsive-JZ9xq-JV.js";
|
|
5
|
+
import { u as ua } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as ca } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as va } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ha from "./Legend-DFunFf8i.js";
|
|
9
|
+
import { S as da } from "./Slicer-ncY8krrM.js";
|
|
10
|
+
import ya from "./Title-B5qqUI3M.js";
|
|
11
|
+
import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"], pa = { key: 1 }, xa = ["id"], ka = ["stop-color"], wa = ["stop-color"], za = ["stop-color"], Ca = ["x1", "x2", "y1", "y2", "stroke"], _a = ["x1", "x2", "y1", "y2", "stroke"], La = ["x1", "x2", "y1", "y2", "stroke"], Sa = ["x1", "x2", "y1", "y2", "stroke"], $a = { key: 0 }, Ma = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ta = { key: 0 }, Na = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ia = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Oa = { key: 0 }, Ra = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Va = ["x", "y", "font-size", "fill", "font-weight"], Ea = ["transform", "font-size", "fill", "font-weight"], Fa = ["x", "y", "font-size", "fill", "font-weight"], Da = { key: 0 }, Ha = ["x", "y", "font-size", "font-weight", "fill"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ba = { key: 0 }, Ua = ["x", "y", "font-size", "font-weight", "fill"], Ya = ["x1", "x2", "y1", "y2", "stroke"], Xa = ["x", "y", "font-size", "font-weight", "fill"], Ga = ["x1", "x2", "y1", "y2", "stroke"], Ja = ["font-size", "font-weight", "fill", "text-anchor", "transform"], qa = { key: 0 }, Za = { key: 1 }, Ka = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Qa = { key: 0 }, ja = { key: 1 }, el = ["font-size", "font-weight", "fill", "x", "y", "onClick"], tl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], al = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ll = {
|
|
20
13
|
key: 4,
|
|
21
14
|
class: "vue-data-ui-watermark"
|
|
22
|
-
},
|
|
15
|
+
}, rl = ["onClick"], ol = ["innerHTML"], sl = {
|
|
23
16
|
__name: "vue-ui-stackbar",
|
|
24
17
|
props: {
|
|
25
18
|
config: {
|
|
@@ -36,52 +29,52 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
36
29
|
}
|
|
37
30
|
},
|
|
38
31
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
39
|
-
setup(
|
|
40
|
-
const { vue_ui_stackbar:
|
|
32
|
+
setup(pe, { expose: bt, emit: ft }) {
|
|
33
|
+
const mt = E(() => import("./vue-ui-accordion-CmCs2yR2.js")), pt = E(() => import("./DataTable-Cv9CIz-a.js")), xt = E(() => import("./PackageVersion-CLY-udAA.js")), kt = E(() => import("./PenAndPaper-B9na2mbr.js")), wt = E(() => import("./Shape-D3w9qas1.js")), zt = E(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Ct = E(() => import("./Tooltip-C9rxJ-Ru.js")), _t = E(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_stackbar: Lt } = qt(), St = Xt(), b = pe, xe = ft, q = w({
|
|
41
34
|
get() {
|
|
42
|
-
return !!
|
|
35
|
+
return !!b.dataset && b.dataset.length;
|
|
43
36
|
},
|
|
44
37
|
set(a) {
|
|
45
38
|
return a;
|
|
46
39
|
}
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
}), j = m(null), O = m(nt()), se = m(!1), ke = m(null), we = m(""), L = m([]), Se = m(0), $e = m(null), Me = m(null), Te = m(null), Ne = m(null), Ie = m(0), ie = m(!1), ee = m(null), H = m(!1), $t = m(0), Mt = m(0), Tt = m(0), Z = m(null);
|
|
41
|
+
rt(() => {
|
|
42
|
+
Ce();
|
|
50
43
|
});
|
|
51
44
|
const e = w({
|
|
52
|
-
get: () =>
|
|
45
|
+
get: () => Ae(),
|
|
53
46
|
set: (a) => a
|
|
54
|
-
}), { userOptionsVisible:
|
|
55
|
-
function
|
|
56
|
-
const a =
|
|
57
|
-
userConfig:
|
|
58
|
-
defaultConfig:
|
|
47
|
+
}), { userOptionsVisible: ze, setUserOptionsVisibility: Oe, keepUserOptionState: Re } = ca({ config: e.value }), { svgRef: Pe } = va({ config: e.value.style.chart.title });
|
|
48
|
+
function Ae() {
|
|
49
|
+
const a = gt({
|
|
50
|
+
userConfig: b.config,
|
|
51
|
+
defaultConfig: Lt
|
|
59
52
|
});
|
|
60
53
|
let r = {};
|
|
61
54
|
return a.theme ? r = {
|
|
62
|
-
...
|
|
63
|
-
userConfig:
|
|
55
|
+
...gt({
|
|
56
|
+
userConfig: Kt.vue_ui_stackbar[a.theme] || b.config,
|
|
64
57
|
defaultConfig: a
|
|
65
58
|
}),
|
|
66
|
-
customPalette:
|
|
67
|
-
} : r = a,
|
|
59
|
+
customPalette: Zt[a.theme] || ge
|
|
60
|
+
} : r = a, b.config && be(b.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = b.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, b.config && be(b.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = b.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, b.config && be(b.config, "style.chart.zoom.startIndex") ? r.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : r.style.chart.zoom.startIndex = null, b.config && be(b.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, r;
|
|
68
61
|
}
|
|
69
|
-
|
|
70
|
-
e.value =
|
|
71
|
-
}, { deep: !0 }),
|
|
72
|
-
|
|
62
|
+
ot(() => b.config, (a) => {
|
|
63
|
+
e.value = Ae(), ze.value = !e.value.userOptions.showOnChartHover, Ce(), $t.value += 1, Mt.value += 1, Tt.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;
|
|
64
|
+
}, { deep: !0 }), ot(() => b.dataset, (a) => {
|
|
65
|
+
We();
|
|
73
66
|
}, { deep: !0 });
|
|
74
|
-
const
|
|
67
|
+
const z = m({
|
|
75
68
|
dataLabels: {
|
|
76
69
|
show: e.value.style.chart.bars.dataLabels.show
|
|
77
70
|
},
|
|
78
71
|
showTable: e.value.table.show,
|
|
79
72
|
showTooltip: e.value.style.chart.tooltip.show
|
|
80
|
-
}), { isPrinting:
|
|
73
|
+
}), { isPrinting: Ve, isImaging: Ee, generatePdf: Fe, generateImage: De } = ua({
|
|
81
74
|
elementId: `stackbar_${O.value}`,
|
|
82
75
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
83
76
|
options: e.value.userOptions.print
|
|
84
|
-
}),
|
|
77
|
+
}), ne = m({
|
|
85
78
|
width: e.value.style.chart.width,
|
|
86
79
|
height: e.value.style.chart.height,
|
|
87
80
|
paddingRatio: {
|
|
@@ -90,20 +83,20 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
90
83
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
91
84
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
92
85
|
}
|
|
93
|
-
}),
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
}), Nt = w(() => Qt(e.value.customPalette)), R = st(null), K = st(null), He = m(null);
|
|
87
|
+
rt(() => {
|
|
88
|
+
Ce();
|
|
96
89
|
});
|
|
97
|
-
function
|
|
98
|
-
if (
|
|
90
|
+
function Ce() {
|
|
91
|
+
if (jt(b.dataset) ? ut({
|
|
99
92
|
componentName: "VueUiStackbar",
|
|
100
93
|
type: "dataset"
|
|
101
|
-
}) :
|
|
102
|
-
|
|
94
|
+
}) : b.dataset.forEach((a, r) => {
|
|
95
|
+
ea({
|
|
103
96
|
datasetObject: a,
|
|
104
97
|
requiredAttributes: ["name", "series"]
|
|
105
98
|
}).forEach((t) => {
|
|
106
|
-
|
|
99
|
+
q.value = !1, ut({
|
|
107
100
|
componentName: "VueUiStackbar",
|
|
108
101
|
type: "datasetSerieAttribute",
|
|
109
102
|
property: t,
|
|
@@ -111,41 +104,44 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
111
104
|
});
|
|
112
105
|
});
|
|
113
106
|
}), setTimeout(() => {
|
|
114
|
-
|
|
107
|
+
H.value = !0;
|
|
115
108
|
}, 10), e.value.responsive) {
|
|
116
|
-
const a =
|
|
117
|
-
|
|
118
|
-
const { width: r, height: t } =
|
|
119
|
-
chart:
|
|
120
|
-
title: e.value.style.chart.title.text ?
|
|
121
|
-
legend: e.value.style.chart.legend.show ?
|
|
122
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
123
|
-
source:
|
|
109
|
+
const a = ia(() => {
|
|
110
|
+
H.value = !1;
|
|
111
|
+
const { width: r, height: t } = na({
|
|
112
|
+
chart: j.value,
|
|
113
|
+
title: e.value.style.chart.title.text ? $e.value : null,
|
|
114
|
+
legend: e.value.style.chart.legend.show ? Me.value : null,
|
|
115
|
+
slicer: e.value.style.chart.zoom.show && A.value > 1 ? Te.value : null,
|
|
116
|
+
source: Ne.value
|
|
124
117
|
});
|
|
125
118
|
requestAnimationFrame(() => {
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
ne.value.width = r, ne.value.height = t, clearTimeout(He.value), He.value = setTimeout(() => {
|
|
120
|
+
H.value = !0;
|
|
128
121
|
}, 10);
|
|
129
122
|
});
|
|
130
123
|
});
|
|
131
|
-
|
|
124
|
+
R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect()), R.value = new ResizeObserver(a), K.value = j.value.parentNode, R.value.observe(K.value);
|
|
132
125
|
}
|
|
133
|
-
|
|
126
|
+
Be();
|
|
134
127
|
}
|
|
128
|
+
Gt(() => {
|
|
129
|
+
R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect());
|
|
130
|
+
});
|
|
135
131
|
const i = w(() => {
|
|
136
|
-
const { height: a, width: r } =
|
|
132
|
+
const { height: a, width: r } = ne.value, { right: t } = ne.value.paddingRatio, l = e.value.style.chart.padding.top, u = r - r * t, n = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left, W = r - _ - r * t, B = a - l - e.value.style.chart.padding.bottom;
|
|
137
133
|
return {
|
|
138
134
|
chartHeight: a,
|
|
139
135
|
chartWidth: r,
|
|
140
136
|
top: l,
|
|
141
137
|
right: u,
|
|
142
138
|
bottom: n,
|
|
143
|
-
left:
|
|
144
|
-
width:
|
|
145
|
-
height:
|
|
139
|
+
left: _,
|
|
140
|
+
width: W,
|
|
141
|
+
height: B < 0 ? 0 : B
|
|
146
142
|
};
|
|
147
|
-
}),
|
|
148
|
-
const t =
|
|
143
|
+
}), P = w(() => b.dataset.map((a, r) => {
|
|
144
|
+
const t = ta(a.color) || Nt.value[r] || ge[r] || ge[r % ge.length];
|
|
149
145
|
return {
|
|
150
146
|
...a,
|
|
151
147
|
// In distributed mode, all values are converted to positive
|
|
@@ -153,46 +149,46 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
153
149
|
// Store signs to manage display of neg values in distributed mode
|
|
154
150
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
155
151
|
absoluteIndex: r,
|
|
156
|
-
id:
|
|
152
|
+
id: nt(),
|
|
157
153
|
color: t
|
|
158
154
|
};
|
|
159
|
-
})),
|
|
155
|
+
})), A = w(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = m({
|
|
160
156
|
start: 0,
|
|
161
|
-
end: Math.max(...
|
|
157
|
+
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
162
158
|
});
|
|
163
|
-
function
|
|
164
|
-
|
|
159
|
+
function We() {
|
|
160
|
+
Be();
|
|
165
161
|
}
|
|
166
|
-
async function
|
|
167
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) &&
|
|
162
|
+
async function Be() {
|
|
163
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && Z.value ? (e.value.style.chart.zoom.startIndex !== null && (await ye(), await ye(), Z.value && Z.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ye(), await ye(), Z.value && Z.value.setEndValue(It(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
|
|
168
164
|
start: 0,
|
|
169
|
-
end: Math.max(...
|
|
170
|
-
},
|
|
165
|
+
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
166
|
+
}, Ie.value += 1);
|
|
171
167
|
}
|
|
172
|
-
function
|
|
173
|
-
const r = Math.max(...
|
|
168
|
+
function It(a) {
|
|
169
|
+
const r = Math.max(...b.dataset.map((t) => t.series.length));
|
|
174
170
|
return a > r ? r : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
175
171
|
}
|
|
176
|
-
const
|
|
172
|
+
const y = w(() => {
|
|
177
173
|
let a;
|
|
178
174
|
return e.value.orientation === "vertical" ? a = i.value.width / (c.value.end - c.value.start) : a = i.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
179
|
-
}),
|
|
175
|
+
}), te = w(() => fe(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), Ot = w(() => fe(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
|
|
180
176
|
...a,
|
|
181
177
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
182
|
-
}))).slice(c.value.start, c.value.end)),
|
|
183
|
-
const a =
|
|
178
|
+
}))).slice(c.value.start, c.value.end)), ue = w(() => {
|
|
179
|
+
const a = P.value.filter((r) => !L.value.includes(r.id));
|
|
184
180
|
return {
|
|
185
|
-
positive:
|
|
181
|
+
positive: fe(a.map((r) => ({
|
|
186
182
|
...r,
|
|
187
183
|
series: r.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
|
|
188
184
|
}))),
|
|
189
|
-
negative:
|
|
185
|
+
negative: fe(a.map((r) => ({
|
|
190
186
|
...r,
|
|
191
187
|
series: r.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
|
|
192
188
|
})))
|
|
193
189
|
};
|
|
194
190
|
}), N = w(() => {
|
|
195
|
-
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(...
|
|
191
|
+
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(...ue.value.positive), r = Math.min(...ue.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ct(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : vt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
196
192
|
return l.ticks.map((u) => ({
|
|
197
193
|
zero: i.value.bottom - i.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
198
194
|
y: i.value.bottom - i.value.height * ((u + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
@@ -202,57 +198,57 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
202
198
|
horizontal_y: i.value.bottom - 8,
|
|
203
199
|
value: u
|
|
204
200
|
}));
|
|
205
|
-
}),
|
|
201
|
+
}), V = w(() => {
|
|
206
202
|
const a = [];
|
|
207
|
-
for (let r = 0; r <
|
|
203
|
+
for (let r = 0; r < A.value; r += 1)
|
|
208
204
|
a.push({
|
|
209
205
|
text: e.value.style.chart.grid.x.timeLabels.values[r] || String(r),
|
|
210
206
|
absoluteIndex: r
|
|
211
207
|
});
|
|
212
208
|
return a.slice(c.value.start, c.value.end);
|
|
213
209
|
}), k = w(() => {
|
|
214
|
-
if (!
|
|
215
|
-
let a = Array(
|
|
216
|
-
const u = Math.max(...
|
|
217
|
-
return
|
|
218
|
-
const I =
|
|
219
|
-
const M = e.value.style.chart.bars.distributed ? (
|
|
220
|
-
let
|
|
221
|
-
return
|
|
222
|
-
}),
|
|
223
|
-
const M = e.value.style.chart.bars.distributed ? (
|
|
224
|
-
let
|
|
225
|
-
return
|
|
226
|
-
}),
|
|
227
|
-
const M = e.value.style.chart.bars.distributed ? (
|
|
228
|
-
return
|
|
229
|
-
}),
|
|
230
|
-
const M = e.value.style.chart.bars.distributed ? (
|
|
231
|
-
return
|
|
232
|
-
}),
|
|
210
|
+
if (!q.value) return [];
|
|
211
|
+
let a = Array(A.value).fill(0), r = Array(A.value).fill(0), t = Array(A.value).fill(0), l = Array(A.value).fill(0);
|
|
212
|
+
const u = Math.max(...ue.value.positive) || 0, n = Math.min(...ue.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, W = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ct(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 : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks) : vt(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 : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks), { min: B, max: ae } = W, U = ae + (B >= 0 ? 0 : Math.abs(B)) || 1, S = i.value.height, de = i.value.width, at = N.value[0] ? N.value[0].zero : i.value.bottom, lt = N.value[0] ? N.value[0].horizontal_zero : i.value.left;
|
|
213
|
+
return P.value.filter((le) => !L.value.includes(le.id)).map((le) => {
|
|
214
|
+
const I = le.series.slice(c.value.start, c.value.end), Et = le.signedSeries.slice(c.value.start, c.value.end), Ft = I.map((f, p) => i.value.left + y.value * p + y.value * e.value.style.chart.bars.gapRatio / 4), Dt = I.map((f, p) => i.value.top + y.value * p + y.value * e.value.style.chart.bars.gapRatio / 4), Ht = I.map((f, p) => {
|
|
215
|
+
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / U;
|
|
216
|
+
let Y, T;
|
|
217
|
+
return f > 0 ? (T = S * M, Y = at - T - a[p], a[p] += T) : (T = S * M, Y = at + t[p], t[p] += Math.abs(T)), Y;
|
|
218
|
+
}), Wt = I.map((f, p) => {
|
|
219
|
+
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / U;
|
|
220
|
+
let Y, T;
|
|
221
|
+
return f > 0 ? (T = de * M, Y = lt + r[p], r[p] += T) : (T = de * M, Y = lt - Math.abs(T) - l[p], l[p] += Math.abs(T)), Y;
|
|
222
|
+
}), Bt = I.map((f, p) => {
|
|
223
|
+
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / U;
|
|
224
|
+
return f > 0 ? S * M : S * Math.abs(M);
|
|
225
|
+
}), Ut = I.map((f, p) => {
|
|
226
|
+
const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / U;
|
|
227
|
+
return f > 0 ? de * M : de * Math.abs(M);
|
|
228
|
+
}), Yt = I.map((f) => Math.abs(f)).reduce((f, p) => f + p, 0);
|
|
233
229
|
return {
|
|
234
|
-
...
|
|
235
|
-
proportions: I.map((
|
|
230
|
+
...le,
|
|
231
|
+
proportions: I.map((f, p) => e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / Yt),
|
|
236
232
|
series: I,
|
|
237
|
-
signedSeries:
|
|
238
|
-
x:
|
|
239
|
-
y:
|
|
240
|
-
height:
|
|
241
|
-
horizontal_width:
|
|
242
|
-
horizontal_y:
|
|
243
|
-
horizontal_x:
|
|
233
|
+
signedSeries: Et,
|
|
234
|
+
x: Ft,
|
|
235
|
+
y: Ht,
|
|
236
|
+
height: Bt,
|
|
237
|
+
horizontal_width: Ut,
|
|
238
|
+
horizontal_y: Dt,
|
|
239
|
+
horizontal_x: Wt
|
|
244
240
|
};
|
|
245
241
|
});
|
|
246
|
-
}),
|
|
242
|
+
}), Ue = w(() => Ot.value.map((a, r) => ({
|
|
247
243
|
value: a,
|
|
248
244
|
sign: a >= 0 ? 1 : -1
|
|
249
245
|
})));
|
|
250
|
-
function
|
|
246
|
+
function ce(a, r, t, l, u) {
|
|
251
247
|
const n = u === -1 && a >= 0 ? -a : a;
|
|
252
|
-
return
|
|
248
|
+
return yt(
|
|
253
249
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
254
250
|
n,
|
|
255
|
-
|
|
251
|
+
J({
|
|
256
252
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
257
253
|
v: n,
|
|
258
254
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -261,11 +257,11 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
261
257
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
262
258
|
);
|
|
263
259
|
}
|
|
264
|
-
function
|
|
265
|
-
return
|
|
260
|
+
function Ye(a, r, t, l) {
|
|
261
|
+
return yt(
|
|
266
262
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
267
263
|
a,
|
|
268
|
-
|
|
264
|
+
J({
|
|
269
265
|
v: isNaN(a) ? 0 : a,
|
|
270
266
|
s: "%",
|
|
271
267
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
@@ -273,7 +269,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
273
269
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
274
270
|
);
|
|
275
271
|
}
|
|
276
|
-
function
|
|
272
|
+
function Xe(a) {
|
|
277
273
|
const r = JSON.parse(JSON.stringify(k.value)).map((t) => ({
|
|
278
274
|
name: t.name,
|
|
279
275
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -281,10 +277,10 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
281
277
|
color: t.color,
|
|
282
278
|
id: t.id
|
|
283
279
|
}));
|
|
284
|
-
|
|
280
|
+
xe("selectDatapoint", { datapoint: r, period: V.value[a] });
|
|
285
281
|
}
|
|
286
|
-
function
|
|
287
|
-
|
|
282
|
+
function Ge(a) {
|
|
283
|
+
ee.value = a, se.value = !0;
|
|
288
284
|
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(k.value)).map((u) => ({
|
|
289
285
|
name: u.name,
|
|
290
286
|
absoluteIndex: u.absoluteIndex,
|
|
@@ -293,20 +289,20 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
293
289
|
color: u.color,
|
|
294
290
|
id: u.id
|
|
295
291
|
}));
|
|
296
|
-
|
|
292
|
+
ke.value = {
|
|
297
293
|
datapoint: t,
|
|
298
294
|
seriesIndex: a,
|
|
299
295
|
config: e.value,
|
|
300
296
|
series: k.value
|
|
301
297
|
};
|
|
302
298
|
const l = t.map((u) => Math.abs(u.value)).reduce((u, n) => u + n, 0);
|
|
303
|
-
if (
|
|
299
|
+
if (dt(r) && sa(() => r({
|
|
304
300
|
seriesIndex: a,
|
|
305
301
|
datapoint: t,
|
|
306
302
|
series: k.value,
|
|
307
303
|
config: e.value
|
|
308
304
|
})))
|
|
309
|
-
|
|
305
|
+
we.value = r({
|
|
310
306
|
seriesIndex: a,
|
|
311
307
|
datapoint: t,
|
|
312
308
|
series: k.value,
|
|
@@ -316,52 +312,52 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
316
312
|
const {
|
|
317
313
|
showValue: u,
|
|
318
314
|
showPercentage: n,
|
|
319
|
-
borderColor:
|
|
320
|
-
roundingValue:
|
|
321
|
-
roundingPercentage:
|
|
315
|
+
borderColor: _,
|
|
316
|
+
roundingValue: W,
|
|
317
|
+
roundingPercentage: B
|
|
322
318
|
} = e.value.style.chart.tooltip;
|
|
323
|
-
let
|
|
324
|
-
|
|
325
|
-
const
|
|
319
|
+
let ae = "";
|
|
320
|
+
V.value[a] && V.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (ae += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${V.value[a].text}</div>`);
|
|
321
|
+
const U = [
|
|
326
322
|
u && n ? "(" : "",
|
|
327
323
|
u && n ? ")" : ""
|
|
328
324
|
];
|
|
329
|
-
t.reverse().forEach((
|
|
330
|
-
|
|
325
|
+
t.reverse().forEach((S) => {
|
|
326
|
+
ae += `
|
|
331
327
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
332
|
-
<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_${
|
|
333
|
-
${
|
|
328
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${S.id})` : S.color}"/>${St.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${O.value}_${S.absoluteIndex})"/>` : ""}</svg>
|
|
329
|
+
${S.name}${u || n ? ":" : ""} ${u ? J({
|
|
334
330
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
335
|
-
v:
|
|
331
|
+
v: S.value,
|
|
336
332
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
337
|
-
r:
|
|
338
|
-
}) : ""} ${
|
|
339
|
-
v: isNaN(
|
|
333
|
+
r: W
|
|
334
|
+
}) : ""} ${U[0]}${n ? J({
|
|
335
|
+
v: isNaN(S.value / l) ? 0 : Math.abs(S.value) / l * 100,
|
|
340
336
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
341
337
|
s: "%",
|
|
342
|
-
r:
|
|
343
|
-
}) : ""}${
|
|
338
|
+
r: B
|
|
339
|
+
}) : ""}${U[1]}
|
|
344
340
|
</div>
|
|
345
341
|
`;
|
|
346
|
-
}),
|
|
342
|
+
}), we.value = `<div>${ae}</div>`;
|
|
347
343
|
}
|
|
348
344
|
}
|
|
349
|
-
function
|
|
350
|
-
|
|
345
|
+
function Rt(a) {
|
|
346
|
+
ie.value = a, Se.value += 1;
|
|
351
347
|
}
|
|
352
|
-
function
|
|
353
|
-
|
|
348
|
+
function Je() {
|
|
349
|
+
z.value.showTable = !z.value.showTable;
|
|
354
350
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
351
|
+
function qe() {
|
|
352
|
+
z.value.dataLabels.show = !z.value.dataLabels.show;
|
|
357
353
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
354
|
+
function Ze() {
|
|
355
|
+
z.value.showTooltip = !z.value.showTooltip;
|
|
360
356
|
}
|
|
361
|
-
function
|
|
357
|
+
function Pt() {
|
|
362
358
|
return k.value;
|
|
363
359
|
}
|
|
364
|
-
const
|
|
360
|
+
const Ke = w(() => {
|
|
365
361
|
if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
366
362
|
const a = k.value.map(({ name: t, color: l }) => ({
|
|
367
363
|
label: t,
|
|
@@ -369,22 +365,22 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
369
365
|
})), r = [];
|
|
370
366
|
for (let t = c.value.start; t < c.value.end; t += 1) {
|
|
371
367
|
const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
|
|
372
|
-
|
|
368
|
+
P.value.forEach((u) => {
|
|
373
369
|
l.push(Number((u.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
374
370
|
}), r.push(l);
|
|
375
371
|
}
|
|
376
372
|
return { head: a, body: r };
|
|
377
373
|
});
|
|
378
|
-
function
|
|
379
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...
|
|
380
|
-
|
|
374
|
+
function Qe() {
|
|
375
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Ke.value.head.map((n) => n.label)], t = Ke.value.body, l = a.concat([r]).concat(t), u = ra(l);
|
|
376
|
+
oa({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
381
377
|
}
|
|
382
|
-
const
|
|
378
|
+
const ve = w(() => {
|
|
383
379
|
const a = [""].concat(k.value.map((u) => u.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>');
|
|
384
380
|
let r = [];
|
|
385
|
-
for (let u = 0; u <
|
|
386
|
-
const n = k.value.map((
|
|
387
|
-
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[u] ?? u + 1].concat(k.value.map((
|
|
381
|
+
for (let u = 0; u < A.value; u += 1) {
|
|
382
|
+
const n = k.value.map((_) => _.series[u] ?? 0).reduce((_, W) => _ + W, 0);
|
|
383
|
+
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[u] ?? u + 1].concat(k.value.map((_) => (_.series[u] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
388
384
|
}
|
|
389
385
|
const t = {
|
|
390
386
|
th: {
|
|
@@ -401,34 +397,34 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
401
397
|
}, l = [e.value.table.columnNames.period].concat(k.value.map((u) => u.name)).concat(e.value.table.columnNames.total);
|
|
402
398
|
return { head: a, body: r.slice(0, c.value.end - c.value.start), config: t, colNames: l };
|
|
403
399
|
});
|
|
404
|
-
function
|
|
405
|
-
if (
|
|
400
|
+
function At(a, r) {
|
|
401
|
+
if (xe("selectLegend", k.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
|
|
406
402
|
L.value = L.value.filter((t) => t !== r.id);
|
|
407
403
|
else {
|
|
408
|
-
if (L.value.length ===
|
|
404
|
+
if (L.value.length === P.value.length - 1) return;
|
|
409
405
|
L.value.push(r.id);
|
|
410
406
|
}
|
|
411
407
|
}
|
|
412
|
-
const
|
|
408
|
+
const je = w(() => P.value.map((a, r) => ({
|
|
413
409
|
...a,
|
|
414
410
|
shape: "square"
|
|
415
411
|
})).map((a) => ({
|
|
416
412
|
...a,
|
|
417
413
|
opacity: L.value.includes(a.id) ? 0.5 : 1,
|
|
418
|
-
segregate: () =>
|
|
414
|
+
segregate: () => At(a.absoluteIndex, a),
|
|
419
415
|
isSegregated: L.value.includes(a.id)
|
|
420
|
-
}))),
|
|
416
|
+
}))), Vt = w(() => ({
|
|
421
417
|
cy: "stackbar-legend",
|
|
422
418
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
423
419
|
color: e.value.style.chart.legend.color,
|
|
424
420
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
425
421
|
paddingBottom: 12,
|
|
426
422
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
427
|
-
})),
|
|
428
|
-
function
|
|
429
|
-
|
|
423
|
+
})), he = m(!1);
|
|
424
|
+
function _e() {
|
|
425
|
+
he.value = !he.value;
|
|
430
426
|
}
|
|
431
|
-
function
|
|
427
|
+
function et(a, r) {
|
|
432
428
|
const t = JSON.parse(JSON.stringify(k.value)).map((l) => ({
|
|
433
429
|
name: l.name,
|
|
434
430
|
value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
|
|
@@ -436,49 +432,49 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
436
432
|
color: l.color,
|
|
437
433
|
id: l.id
|
|
438
434
|
}));
|
|
439
|
-
|
|
435
|
+
xe("selectTimeLabel", {
|
|
440
436
|
datapoint: t,
|
|
441
437
|
absoluteIndex: a.absoluteIndex,
|
|
442
438
|
label: a.text
|
|
443
439
|
});
|
|
444
440
|
}
|
|
445
|
-
function
|
|
441
|
+
function tt(a, r) {
|
|
446
442
|
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
447
443
|
}
|
|
448
|
-
return
|
|
449
|
-
getData:
|
|
450
|
-
generatePdf:
|
|
451
|
-
generateCsv:
|
|
452
|
-
generateImage:
|
|
453
|
-
toggleTable:
|
|
454
|
-
toggleLabels:
|
|
455
|
-
toggleTooltip:
|
|
456
|
-
toggleAnnotator:
|
|
444
|
+
return bt({
|
|
445
|
+
getData: Pt,
|
|
446
|
+
generatePdf: Fe,
|
|
447
|
+
generateCsv: Qe,
|
|
448
|
+
generateImage: De,
|
|
449
|
+
toggleTable: Je,
|
|
450
|
+
toggleLabels: qe,
|
|
451
|
+
toggleTooltip: Ze,
|
|
452
|
+
toggleAnnotator: _e
|
|
457
453
|
}), (a, r) => (o(), s("div", {
|
|
458
454
|
id: `stackbar_${O.value}`,
|
|
459
455
|
ref_key: "stackbarChart",
|
|
460
|
-
ref:
|
|
461
|
-
class:
|
|
462
|
-
style:
|
|
463
|
-
onMouseenter: r[6] || (r[6] = () =>
|
|
464
|
-
onMouseleave: r[7] || (r[7] = () =>
|
|
456
|
+
ref: j,
|
|
457
|
+
class: re({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ie.value }),
|
|
458
|
+
style: X(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
459
|
+
onMouseenter: r[6] || (r[6] = () => d(Oe)(!0)),
|
|
460
|
+
onMouseleave: r[7] || (r[7] = () => d(Oe)(!1))
|
|
465
461
|
}, [
|
|
466
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
462
|
+
e.value.userOptions.buttons.annotator ? (o(), Q(d(kt), {
|
|
467
463
|
key: 0,
|
|
468
|
-
svgRef:
|
|
464
|
+
svgRef: d(Pe),
|
|
469
465
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
470
466
|
color: e.value.style.chart.color,
|
|
471
|
-
active:
|
|
472
|
-
onClose:
|
|
473
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
467
|
+
active: he.value,
|
|
468
|
+
onClose: _e
|
|
469
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
474
470
|
x(a.$slots, "userConfig", {}, void 0, !0),
|
|
475
471
|
e.value.style.chart.title.text ? (o(), s("div", {
|
|
476
472
|
key: 1,
|
|
477
473
|
ref_key: "chartTitle",
|
|
478
|
-
ref:
|
|
474
|
+
ref: $e,
|
|
479
475
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
480
476
|
}, [
|
|
481
|
-
|
|
477
|
+
oe(ya, {
|
|
482
478
|
config: {
|
|
483
479
|
title: {
|
|
484
480
|
cy: "stackbar-title",
|
|
@@ -490,14 +486,14 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
490
486
|
}
|
|
491
487
|
}
|
|
492
488
|
}, null, 8, ["config"])
|
|
493
|
-
], 512)) :
|
|
494
|
-
e.value.userOptions.show &&
|
|
489
|
+
], 512)) : h("", !0),
|
|
490
|
+
e.value.userOptions.show && q.value && (d(Re) || d(ze)) ? (o(), Q(d(_t), {
|
|
495
491
|
ref: "details",
|
|
496
|
-
key: `user_option_${
|
|
492
|
+
key: `user_option_${Se.value}`,
|
|
497
493
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
498
494
|
color: e.value.style.chart.color,
|
|
499
|
-
isPrinting:
|
|
500
|
-
isImaging:
|
|
495
|
+
isPrinting: d(Ve),
|
|
496
|
+
isImaging: d(Ee),
|
|
501
497
|
uid: O.value,
|
|
502
498
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
503
499
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -506,98 +502,98 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
506
502
|
hasTable: e.value.userOptions.buttons.table,
|
|
507
503
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
508
504
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
509
|
-
isFullscreen:
|
|
510
|
-
chartElement:
|
|
505
|
+
isFullscreen: ie.value,
|
|
506
|
+
chartElement: j.value,
|
|
511
507
|
position: e.value.userOptions.position,
|
|
512
|
-
isTooltip:
|
|
508
|
+
isTooltip: z.value.showTooltip,
|
|
513
509
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
514
510
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
515
|
-
isAnnotation:
|
|
516
|
-
onToggleFullscreen:
|
|
517
|
-
onGeneratePdf:
|
|
518
|
-
onGenerateCsv:
|
|
519
|
-
onGenerateImage:
|
|
520
|
-
onToggleTable:
|
|
521
|
-
onToggleLabels:
|
|
522
|
-
onToggleTooltip:
|
|
523
|
-
onToggleAnnotator:
|
|
524
|
-
style:
|
|
525
|
-
visibility:
|
|
511
|
+
isAnnotation: he.value,
|
|
512
|
+
onToggleFullscreen: Rt,
|
|
513
|
+
onGeneratePdf: d(Fe),
|
|
514
|
+
onGenerateCsv: Qe,
|
|
515
|
+
onGenerateImage: d(De),
|
|
516
|
+
onToggleTable: Je,
|
|
517
|
+
onToggleLabels: qe,
|
|
518
|
+
onToggleTooltip: Ze,
|
|
519
|
+
onToggleAnnotator: _e,
|
|
520
|
+
style: X({
|
|
521
|
+
visibility: d(Re) ? d(ze) ? "visible" : "hidden" : "visible"
|
|
526
522
|
})
|
|
527
|
-
},
|
|
523
|
+
}, it({ _: 2 }, [
|
|
528
524
|
a.$slots.menuIcon ? {
|
|
529
525
|
name: "menuIcon",
|
|
530
|
-
fn:
|
|
531
|
-
x(a.$slots, "menuIcon",
|
|
526
|
+
fn: C(({ isOpen: t, color: l }) => [
|
|
527
|
+
x(a.$slots, "menuIcon", F(D({ isOpen: t, color: l })), void 0, !0)
|
|
532
528
|
]),
|
|
533
529
|
key: "0"
|
|
534
530
|
} : void 0,
|
|
535
531
|
a.$slots.optionTooltip ? {
|
|
536
532
|
name: "optionTooltip",
|
|
537
|
-
fn:
|
|
533
|
+
fn: C(() => [
|
|
538
534
|
x(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
539
535
|
]),
|
|
540
536
|
key: "1"
|
|
541
537
|
} : void 0,
|
|
542
538
|
a.$slots.optionPdf ? {
|
|
543
539
|
name: "optionPdf",
|
|
544
|
-
fn:
|
|
540
|
+
fn: C(() => [
|
|
545
541
|
x(a.$slots, "optionPdf", {}, void 0, !0)
|
|
546
542
|
]),
|
|
547
543
|
key: "2"
|
|
548
544
|
} : void 0,
|
|
549
545
|
a.$slots.optionCsv ? {
|
|
550
546
|
name: "optionCsv",
|
|
551
|
-
fn:
|
|
547
|
+
fn: C(() => [
|
|
552
548
|
x(a.$slots, "optionCsv", {}, void 0, !0)
|
|
553
549
|
]),
|
|
554
550
|
key: "3"
|
|
555
551
|
} : void 0,
|
|
556
552
|
a.$slots.optionImg ? {
|
|
557
553
|
name: "optionImg",
|
|
558
|
-
fn:
|
|
554
|
+
fn: C(() => [
|
|
559
555
|
x(a.$slots, "optionImg", {}, void 0, !0)
|
|
560
556
|
]),
|
|
561
557
|
key: "4"
|
|
562
558
|
} : void 0,
|
|
563
559
|
a.$slots.optionTable ? {
|
|
564
560
|
name: "optionTable",
|
|
565
|
-
fn:
|
|
561
|
+
fn: C(() => [
|
|
566
562
|
x(a.$slots, "optionTable", {}, void 0, !0)
|
|
567
563
|
]),
|
|
568
564
|
key: "5"
|
|
569
565
|
} : void 0,
|
|
570
566
|
a.$slots.optionLabels ? {
|
|
571
567
|
name: "optionLabels",
|
|
572
|
-
fn:
|
|
568
|
+
fn: C(() => [
|
|
573
569
|
x(a.$slots, "optionLabels", {}, void 0, !0)
|
|
574
570
|
]),
|
|
575
571
|
key: "6"
|
|
576
572
|
} : void 0,
|
|
577
573
|
a.$slots.optionFullscreen ? {
|
|
578
574
|
name: "optionFullscreen",
|
|
579
|
-
fn:
|
|
580
|
-
x(a.$slots, "optionFullscreen",
|
|
575
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
576
|
+
x(a.$slots, "optionFullscreen", F(D({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
581
577
|
]),
|
|
582
578
|
key: "7"
|
|
583
579
|
} : void 0,
|
|
584
580
|
a.$slots.optionAnnotator ? {
|
|
585
581
|
name: "optionAnnotator",
|
|
586
|
-
fn:
|
|
587
|
-
x(a.$slots, "optionAnnotator",
|
|
582
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
583
|
+
x(a.$slots, "optionAnnotator", F(D({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
588
584
|
]),
|
|
589
585
|
key: "8"
|
|
590
586
|
} : void 0
|
|
591
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
592
|
-
|
|
587
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
588
|
+
q.value ? (o(), s("svg", {
|
|
593
589
|
key: 3,
|
|
594
590
|
ref_key: "svgRef",
|
|
595
|
-
ref:
|
|
596
|
-
xmlns:
|
|
591
|
+
ref: Pe,
|
|
592
|
+
xmlns: d(aa),
|
|
597
593
|
viewBox: `0 0 ${i.value.chartWidth <= 0 ? 10 : i.value.chartWidth} ${i.value.chartHeight <= 0 ? 10 : i.value.chartHeight}`,
|
|
598
|
-
style:
|
|
594
|
+
style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
599
595
|
}, [
|
|
600
|
-
|
|
596
|
+
oe(d(xt)),
|
|
601
597
|
a.$slots["chart-background"] ? (o(), s("foreignObject", {
|
|
602
598
|
key: 0,
|
|
603
599
|
x: i.value.left,
|
|
@@ -609,30 +605,30 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
609
605
|
}
|
|
610
606
|
}, [
|
|
611
607
|
x(a.$slots, "chart-background", {}, void 0, !0)
|
|
612
|
-
], 8,
|
|
613
|
-
e.value.style.chart.bars.gradient.show ? (o(), s("defs",
|
|
614
|
-
(o(!0), s(
|
|
608
|
+
], 8, ma)) : h("", !0),
|
|
609
|
+
e.value.style.chart.bars.gradient.show ? (o(), s("defs", pa, [
|
|
610
|
+
(o(!0), s(v, null, g(k.value, (t, l) => (o(), s("linearGradient", {
|
|
615
611
|
id: `gradient_${t.id}`,
|
|
616
612
|
x1: "0%",
|
|
617
613
|
y1: "0%",
|
|
618
614
|
x2: "0%",
|
|
619
615
|
y2: "100%"
|
|
620
616
|
}, [
|
|
621
|
-
|
|
617
|
+
G("stop", {
|
|
622
618
|
offset: "0%",
|
|
623
619
|
"stop-color": t.color
|
|
624
|
-
}, null, 8,
|
|
625
|
-
|
|
620
|
+
}, null, 8, ka),
|
|
621
|
+
G("stop", {
|
|
626
622
|
offset: "61.8%",
|
|
627
|
-
"stop-color":
|
|
628
|
-
}, null, 8,
|
|
629
|
-
|
|
623
|
+
"stop-color": d(la)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
624
|
+
}, null, 8, wa),
|
|
625
|
+
G("stop", {
|
|
630
626
|
offset: "100%",
|
|
631
627
|
"stop-color": t.color
|
|
632
|
-
}, null, 8,
|
|
633
|
-
], 8,
|
|
634
|
-
])) :
|
|
635
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), s(
|
|
628
|
+
}, null, 8, za)
|
|
629
|
+
], 8, xa))), 256))
|
|
630
|
+
])) : h("", !0),
|
|
631
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), s(v, { key: 2 }, g(N.value, (t, l) => (o(), s("line", {
|
|
636
632
|
x1: i.value.left,
|
|
637
633
|
x2: i.value.right,
|
|
638
634
|
y1: t.y,
|
|
@@ -640,26 +636,26 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
640
636
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
641
637
|
"stroke-width": 1,
|
|
642
638
|
"stroke-linecap": "round"
|
|
643
|
-
}, null, 8,
|
|
644
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(
|
|
639
|
+
}, null, 8, Ca))), 256)) : h("", !0),
|
|
640
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(v, { key: 3 }, g(c.value.end - c.value.start + 1, (t, l) => (o(), s("line", {
|
|
645
641
|
x1: i.value.left,
|
|
646
642
|
x2: i.value.right,
|
|
647
|
-
y1: i.value.top +
|
|
648
|
-
y2: i.value.top +
|
|
643
|
+
y1: i.value.top + y.value * l,
|
|
644
|
+
y2: i.value.top + y.value * l,
|
|
649
645
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
650
646
|
"stroke-width": 1,
|
|
651
647
|
"stroke-linecap": "round"
|
|
652
|
-
}, null, 8,
|
|
653
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), s(
|
|
654
|
-
x1: i.value.left +
|
|
655
|
-
x2: i.value.left +
|
|
648
|
+
}, null, 8, _a))), 256)) : h("", !0),
|
|
649
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), s(v, { key: 4 }, g(c.value.end - c.value.start + 1, (t, l) => (o(), s("line", {
|
|
650
|
+
x1: i.value.left + y.value * l,
|
|
651
|
+
x2: i.value.left + y.value * l,
|
|
656
652
|
y1: i.value.top,
|
|
657
653
|
y2: i.value.bottom,
|
|
658
654
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
659
655
|
"stroke-width": 1,
|
|
660
656
|
"stroke-linecap": "round"
|
|
661
|
-
}, null, 8,
|
|
662
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(
|
|
657
|
+
}, null, 8, La))), 256)) : h("", !0),
|
|
658
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(v, { key: 5 }, g(N.value, (t, l) => (o(), s("line", {
|
|
663
659
|
x1: t.horizontal_x,
|
|
664
660
|
x2: t.horizontal_x,
|
|
665
661
|
y1: i.value.top,
|
|
@@ -667,69 +663,69 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
667
663
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
668
664
|
"stroke-width": 1,
|
|
669
665
|
"stroke-linecap": "round"
|
|
670
|
-
}, null, 8,
|
|
671
|
-
(o(!0), s(
|
|
672
|
-
a.$slots.pattern ? (o(), s("defs",
|
|
673
|
-
x(a.$slots, "pattern",
|
|
674
|
-
])) :
|
|
675
|
-
e.value.orientation === "vertical" ? (o(), s(
|
|
676
|
-
(o(!0), s(
|
|
666
|
+
}, null, 8, Sa))), 256)) : h("", !0),
|
|
667
|
+
(o(!0), s(v, null, g(k.value, (t, l) => (o(), s("g", null, [
|
|
668
|
+
a.$slots.pattern ? (o(), s("defs", $a, [
|
|
669
|
+
x(a.$slots, "pattern", Le({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${O.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
670
|
+
])) : h("", !0),
|
|
671
|
+
e.value.orientation === "vertical" ? (o(), s(v, { key: 1 }, [
|
|
672
|
+
(o(!0), s(v, null, g(t.x, (u, n) => (o(), s("rect", {
|
|
677
673
|
x: u,
|
|
678
674
|
y: t.y[n] < 0 ? 0 : t.y[n],
|
|
679
675
|
height: t.height[n] < 0 ? 1e-4 : t.height[n] || 0,
|
|
680
676
|
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
681
|
-
width:
|
|
677
|
+
width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
682
678
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
683
679
|
stroke: e.value.style.chart.backgroundColor,
|
|
684
680
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
685
681
|
"stroke-linecap": "round",
|
|
686
682
|
"stroke-linejoin": "round",
|
|
687
|
-
class:
|
|
688
|
-
}, null, 10,
|
|
689
|
-
a.$slots.pattern ? (o(), s("g",
|
|
690
|
-
(o(!0), s(
|
|
683
|
+
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
684
|
+
}, null, 10, Ma))), 256)),
|
|
685
|
+
a.$slots.pattern ? (o(), s("g", Ta, [
|
|
686
|
+
(o(!0), s(v, null, g(t.x, (u, n) => (o(), s("rect", {
|
|
691
687
|
x: u,
|
|
692
688
|
y: t.y[n] < 0 ? 0 : t.y[n],
|
|
693
689
|
height: t.height[n] < 0 ? 1e-4 : t.height[n] || 0,
|
|
694
690
|
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
695
|
-
width:
|
|
691
|
+
width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
696
692
|
fill: `url(#pattern_${O.value}_${t.absoluteIndex})`,
|
|
697
693
|
stroke: e.value.style.chart.backgroundColor,
|
|
698
694
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
699
695
|
"stroke-linecap": "round",
|
|
700
696
|
"stroke-linejoin": "round",
|
|
701
|
-
class:
|
|
702
|
-
}, null, 10,
|
|
703
|
-
])) :
|
|
704
|
-
], 64)) : (o(), s(
|
|
705
|
-
(o(!0), s(
|
|
706
|
-
x:
|
|
697
|
+
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
698
|
+
}, null, 10, Na))), 256))
|
|
699
|
+
])) : h("", !0)
|
|
700
|
+
], 64)) : (o(), s(v, { key: 2 }, [
|
|
701
|
+
(o(!0), s(v, null, g(t.horizontal_x, (u, n) => (o(), s("rect", {
|
|
702
|
+
x: d(me)(u, i.value.left),
|
|
707
703
|
y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
|
|
708
|
-
width:
|
|
704
|
+
width: d(me)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
|
|
709
705
|
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
710
|
-
height:
|
|
706
|
+
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
711
707
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
712
708
|
stroke: e.value.style.chart.backgroundColor,
|
|
713
709
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
714
710
|
"stroke-linecap": "round",
|
|
715
711
|
"stroke-linejoin": "round",
|
|
716
|
-
class:
|
|
717
|
-
}, null, 10,
|
|
718
|
-
a.$slots.pattern ? (o(), s("g",
|
|
719
|
-
(o(!0), s(
|
|
720
|
-
x:
|
|
712
|
+
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
713
|
+
}, null, 10, Ia))), 256)),
|
|
714
|
+
a.$slots.pattern ? (o(), s("g", Oa, [
|
|
715
|
+
(o(!0), s(v, null, g(t.horizontal_x, (u, n) => (o(), s("rect", {
|
|
716
|
+
x: d(me)(u, i.value.left),
|
|
721
717
|
y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
|
|
722
|
-
width:
|
|
718
|
+
width: d(me)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
|
|
723
719
|
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
724
|
-
height:
|
|
720
|
+
height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
725
721
|
fill: `url(#pattern_${O.value}_${t.absoluteIndex})`,
|
|
726
722
|
stroke: e.value.style.chart.backgroundColor,
|
|
727
723
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
728
724
|
"stroke-linecap": "round",
|
|
729
725
|
"stroke-linejoin": "round",
|
|
730
|
-
class:
|
|
731
|
-
}, null, 10,
|
|
732
|
-
])) :
|
|
726
|
+
class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
727
|
+
}, null, 10, Ra))), 256))
|
|
728
|
+
])) : h("", !0)
|
|
733
729
|
], 64))
|
|
734
730
|
]))), 256)),
|
|
735
731
|
e.value.style.chart.grid.x.showAxis ? (o(), s("line", {
|
|
@@ -742,7 +738,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
742
738
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
743
739
|
"stroke-linecap": "round",
|
|
744
740
|
"stroke-linejoin": "round"
|
|
745
|
-
}, null, 8,
|
|
741
|
+
}, null, 8, Pa)) : h("", !0),
|
|
746
742
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), s("line", {
|
|
747
743
|
key: 7,
|
|
748
744
|
x1: i.value.left,
|
|
@@ -753,7 +749,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
753
749
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
754
750
|
"stroke-linecap": "round",
|
|
755
751
|
"stroke-linejoin": "round"
|
|
756
|
-
}, null, 8,
|
|
752
|
+
}, null, 8, Aa)) : h("", !0),
|
|
757
753
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), s("text", {
|
|
758
754
|
key: 8,
|
|
759
755
|
x: i.value.left + i.value.width / 2,
|
|
@@ -762,7 +758,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
762
758
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
763
759
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
764
760
|
"text-anchor": "middle"
|
|
765
|
-
},
|
|
761
|
+
}, $(e.value.style.chart.grid.x.axisName.text), 9, Va)) : h("", !0),
|
|
766
762
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), s("text", {
|
|
767
763
|
key: 9,
|
|
768
764
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${i.value.top + i.value.height / 2}) rotate(-90)`,
|
|
@@ -770,88 +766,88 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
770
766
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
771
767
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
772
768
|
"text-anchor": "middle"
|
|
773
|
-
},
|
|
774
|
-
|
|
775
|
-
(o(!0), s(
|
|
776
|
-
(o(!0), s(
|
|
777
|
-
|
|
769
|
+
}, $(e.value.style.chart.grid.y.axisName.text), 9, Ea)) : h("", !0),
|
|
770
|
+
z.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), s(v, { key: 10 }, [
|
|
771
|
+
(o(!0), s(v, null, g(k.value, (t, l) => (o(), s("g", null, [
|
|
772
|
+
(o(!0), s(v, null, g(t.x, (u, n) => (o(), s(v, null, [
|
|
773
|
+
tt(t.series[n], t.proportions[n]) ? (o(), s("text", {
|
|
778
774
|
key: 0,
|
|
779
|
-
x: u +
|
|
775
|
+
x: u + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
780
776
|
y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
781
777
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
782
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
778
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? d(ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
783
779
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
784
780
|
"text-anchor": "middle"
|
|
785
|
-
},
|
|
781
|
+
}, $(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ye(t.proportions[n] * 100, t, l, n) : ce(t.series[n], t, l, n, t.signedSeries[n])), 9, Fa)) : h("", !0)
|
|
786
782
|
], 64))), 256))
|
|
787
783
|
]))), 256)),
|
|
788
|
-
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g",
|
|
789
|
-
(o(!0), s(
|
|
784
|
+
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Da, [
|
|
785
|
+
(o(!0), s(v, null, g(Ue.value, (t, l) => (o(), s(v, null, [
|
|
790
786
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
|
|
791
787
|
key: 0,
|
|
792
|
-
x: i.value.left +
|
|
788
|
+
x: i.value.left + y.value * l + y.value / 2,
|
|
793
789
|
y: i.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
794
790
|
"text-anchor": "middle",
|
|
795
791
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
796
792
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
797
793
|
fill: e.value.style.chart.bars.totalValues.color
|
|
798
|
-
},
|
|
794
|
+
}, $(ce(t.value, t, l, t.sign)), 9, Ha)) : h("", !0)
|
|
799
795
|
], 64))), 256))
|
|
800
|
-
])) :
|
|
801
|
-
], 64)) :
|
|
802
|
-
|
|
803
|
-
(o(!0), s(
|
|
804
|
-
(o(!0), s(
|
|
805
|
-
|
|
796
|
+
])) : h("", !0)
|
|
797
|
+
], 64)) : h("", !0),
|
|
798
|
+
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), s(v, { key: 11 }, [
|
|
799
|
+
(o(!0), s(v, null, g(k.value, (t, l) => (o(), s("g", null, [
|
|
800
|
+
(o(!0), s(v, null, g(t.horizontal_x, (u, n) => (o(), s(v, null, [
|
|
801
|
+
tt(t.series[n], t.proportions[n]) ? (o(), s("text", {
|
|
806
802
|
key: 0,
|
|
807
803
|
x: u + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
|
|
808
|
-
y: t.horizontal_y[n] +
|
|
804
|
+
y: t.horizontal_y[n] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
809
805
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
810
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
806
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? d(ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
811
807
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
812
808
|
"text-anchor": "middle"
|
|
813
|
-
},
|
|
809
|
+
}, $(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ye(t.proportions[n] * 100, t, l, n) : ce(t.series[n], t, l, n, t.signedSeries[n])), 9, Wa)) : h("", !0)
|
|
814
810
|
], 64))), 256))
|
|
815
811
|
]))), 256)),
|
|
816
|
-
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g",
|
|
817
|
-
(o(!0), s(
|
|
812
|
+
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Ba, [
|
|
813
|
+
(o(!0), s(v, null, g(Ue.value, (t, l) => (o(), s(v, null, [
|
|
818
814
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
|
|
819
815
|
key: 0,
|
|
820
816
|
x: i.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
821
|
-
y: i.value.top +
|
|
817
|
+
y: i.value.top + y.value * l + y.value / 2,
|
|
822
818
|
"text-anchor": "start",
|
|
823
819
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
824
820
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
825
821
|
fill: e.value.style.chart.bars.totalValues.color
|
|
826
|
-
},
|
|
822
|
+
}, $(ce(t.value, t, l, t.sign)), 9, Ua)) : h("", !0)
|
|
827
823
|
], 64))), 256))
|
|
828
|
-
])) :
|
|
829
|
-
], 64)) :
|
|
830
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), s(
|
|
831
|
-
(o(!0), s(
|
|
824
|
+
])) : h("", !0)
|
|
825
|
+
], 64)) : h("", !0),
|
|
826
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), s(v, { key: 12 }, [
|
|
827
|
+
(o(!0), s(v, null, g(N.value, (t, l) => (o(), s("line", {
|
|
832
828
|
x1: i.value.left,
|
|
833
829
|
x2: i.value.left - 6,
|
|
834
830
|
y1: t.y,
|
|
835
831
|
y2: t.y,
|
|
836
832
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
837
833
|
"stroke-width": 1
|
|
838
|
-
}, null, 8,
|
|
839
|
-
(o(!0), s(
|
|
834
|
+
}, null, 8, Ya))), 256)),
|
|
835
|
+
(o(!0), s(v, null, g(N.value, (t, l) => (o(), s("text", {
|
|
840
836
|
x: t.x,
|
|
841
837
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
842
838
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
843
839
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
844
840
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
845
841
|
"text-anchor": "end"
|
|
846
|
-
},
|
|
842
|
+
}, $(d(J)({
|
|
847
843
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
848
844
|
v: t.value,
|
|
849
845
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
850
846
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
851
|
-
})), 9,
|
|
852
|
-
], 64)) :
|
|
853
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), s(
|
|
854
|
-
(o(!0), s(
|
|
847
|
+
})), 9, Xa))), 256))
|
|
848
|
+
], 64)) : h("", !0),
|
|
849
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), s(v, { key: 13 }, [
|
|
850
|
+
(o(!0), s(v, null, g(N.value, (t, l) => (o(), s("line", {
|
|
855
851
|
x1: t.horizontal_x,
|
|
856
852
|
x2: t.horizontal_x,
|
|
857
853
|
y1: i.value.bottom,
|
|
@@ -859,55 +855,55 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
859
855
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
860
856
|
"stroke-width": 1,
|
|
861
857
|
"stroke-linecap": "round"
|
|
862
|
-
}, null, 8,
|
|
863
|
-
(o(!0), s(
|
|
858
|
+
}, null, 8, Ga))), 256)),
|
|
859
|
+
(o(!0), s(v, null, g(N.value, (t, l) => (o(), s("text", {
|
|
864
860
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
865
861
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
866
862
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
867
863
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
868
864
|
transform: `translate(${t.horizontal_x}, ${i.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})`
|
|
869
|
-
},
|
|
865
|
+
}, $(d(J)({
|
|
870
866
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
871
867
|
v: t.value,
|
|
872
868
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
873
869
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
874
|
-
})), 9,
|
|
875
|
-
], 64)) :
|
|
876
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), s(
|
|
877
|
-
a.$slots["time-label"] ? (o(), s("g",
|
|
878
|
-
(o(!0), s(
|
|
879
|
-
x(a.$slots, "time-label",
|
|
880
|
-
x: i.value.left +
|
|
870
|
+
})), 9, Ja))), 256))
|
|
871
|
+
], 64)) : h("", !0),
|
|
872
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), s(v, { key: 14 }, [
|
|
873
|
+
a.$slots["time-label"] ? (o(), s("g", qa, [
|
|
874
|
+
(o(!0), s(v, null, g(V.value, (t, l) => (o(), s("g", null, [
|
|
875
|
+
x(a.$slots, "time-label", Le({ ref_for: !0 }, {
|
|
876
|
+
x: i.value.left + y.value * l + y.value / 2,
|
|
881
877
|
y: i.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
882
878
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
883
879
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
884
|
-
transform: `translate(${i.value.left +
|
|
880
|
+
transform: `translate(${i.value.left + y.value * l + y.value / 2}, ${i.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})`,
|
|
885
881
|
absoluteIndex: t.absoluteIndex,
|
|
886
882
|
content: t.text,
|
|
887
883
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
888
884
|
show: !0
|
|
889
885
|
}), void 0, !0)
|
|
890
886
|
]))), 256))
|
|
891
|
-
])) : (o(), s("g",
|
|
892
|
-
(o(!0), s(
|
|
887
|
+
])) : (o(), s("g", Za, [
|
|
888
|
+
(o(!0), s(v, null, g(V.value, (t, l) => (o(), s("text", {
|
|
893
889
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
894
890
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
895
891
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
896
892
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
897
|
-
transform: `translate(${i.value.left +
|
|
893
|
+
transform: `translate(${i.value.left + y.value * l + y.value / 2}, ${i.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})`,
|
|
898
894
|
style: {
|
|
899
895
|
cursor: "pointer"
|
|
900
896
|
},
|
|
901
|
-
onClick: () =>
|
|
902
|
-
},
|
|
897
|
+
onClick: () => et(t, l)
|
|
898
|
+
}, $(t.text), 9, Ka))), 256))
|
|
903
899
|
]))
|
|
904
|
-
], 64)) :
|
|
905
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), s(
|
|
906
|
-
a.$slots["time-label"] ? (o(), s("g",
|
|
907
|
-
(o(!0), s(
|
|
908
|
-
x(a.$slots, "time-label",
|
|
900
|
+
], 64)) : h("", !0),
|
|
901
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), s(v, { key: 15 }, [
|
|
902
|
+
a.$slots["time-label"] ? (o(), s("g", Qa, [
|
|
903
|
+
(o(!0), s(v, null, g(V.value, (t, l) => (o(), s("g", null, [
|
|
904
|
+
x(a.$slots, "time-label", Le({ ref_for: !0 }, {
|
|
909
905
|
x: i.value.left - 8,
|
|
910
|
-
y: i.value.top +
|
|
906
|
+
y: i.value.top + y.value * l + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
911
907
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
912
908
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
913
909
|
transform: null,
|
|
@@ -917,53 +913,53 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
917
913
|
show: !0
|
|
918
914
|
}), void 0, !0)
|
|
919
915
|
]))), 256))
|
|
920
|
-
])) : (o(), s("g",
|
|
921
|
-
(o(!0), s(
|
|
916
|
+
])) : (o(), s("g", ja, [
|
|
917
|
+
(o(!0), s(v, null, g(V.value, (t, l) => (o(), s("text", {
|
|
922
918
|
"text-anchor": "end",
|
|
923
919
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
924
920
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
925
921
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
926
922
|
x: i.value.left - 8,
|
|
927
|
-
y: i.value.top +
|
|
923
|
+
y: i.value.top + y.value * l + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
928
924
|
style: {
|
|
929
925
|
cursor: "pointer"
|
|
930
926
|
},
|
|
931
|
-
onClick: () =>
|
|
932
|
-
},
|
|
927
|
+
onClick: () => et(t, l)
|
|
928
|
+
}, $(t.text), 9, el))), 256))
|
|
933
929
|
]))
|
|
934
|
-
], 64)) :
|
|
935
|
-
|
|
936
|
-
x: i.value.left + l *
|
|
930
|
+
], 64)) : h("", !0),
|
|
931
|
+
z.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), s(v, { key: 16 }, g(c.value.end - c.value.start, (t, l) => (o(), s("rect", {
|
|
932
|
+
x: i.value.left + l * y.value,
|
|
937
933
|
y: i.value.top,
|
|
938
|
-
width:
|
|
934
|
+
width: y.value,
|
|
939
935
|
height: i.value.height < 0 ? 0 : i.value.height,
|
|
940
|
-
onClick: (u) =>
|
|
941
|
-
onMouseenter: (u) =>
|
|
936
|
+
onClick: (u) => Xe(l),
|
|
937
|
+
onMouseenter: (u) => Ge(l),
|
|
942
938
|
onMouseleave: r[0] || (r[0] = (u) => {
|
|
943
|
-
|
|
939
|
+
ee.value = null, se.value = !1;
|
|
944
940
|
}),
|
|
945
|
-
fill: l ===
|
|
946
|
-
style:
|
|
947
|
-
}, null, 44,
|
|
948
|
-
|
|
941
|
+
fill: l === ee.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
942
|
+
style: X({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
943
|
+
}, null, 44, tl))), 256)) : h("", !0),
|
|
944
|
+
z.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), s(v, { key: 17 }, g(c.value.end - c.value.start, (t, l) => (o(), s("rect", {
|
|
949
945
|
x: i.value.left,
|
|
950
|
-
y: i.value.top + l *
|
|
946
|
+
y: i.value.top + l * y.value,
|
|
951
947
|
width: i.value.width < 0 ? 0 : i.value.width,
|
|
952
|
-
height:
|
|
953
|
-
onClick: (u) =>
|
|
954
|
-
onMouseenter: (u) =>
|
|
948
|
+
height: y.value,
|
|
949
|
+
onClick: (u) => Xe(l),
|
|
950
|
+
onMouseenter: (u) => Ge(l),
|
|
955
951
|
onMouseleave: r[1] || (r[1] = (u) => {
|
|
956
|
-
|
|
952
|
+
ee.value = null, se.value = !1;
|
|
957
953
|
}),
|
|
958
|
-
fill: l ===
|
|
959
|
-
style:
|
|
960
|
-
}, null, 44,
|
|
961
|
-
x(a.$slots, "svg",
|
|
962
|
-
], 12,
|
|
963
|
-
a.$slots.watermark ? (o(), s("div",
|
|
964
|
-
x(a.$slots, "watermark",
|
|
965
|
-
])) :
|
|
966
|
-
|
|
954
|
+
fill: l === ee.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
955
|
+
style: X({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
956
|
+
}, null, 44, al))), 256)) : h("", !0),
|
|
957
|
+
x(a.$slots, "svg", F(D({ ...i.value })), void 0, !0)
|
|
958
|
+
], 12, fa)) : h("", !0),
|
|
959
|
+
a.$slots.watermark ? (o(), s("div", ll, [
|
|
960
|
+
x(a.$slots, "watermark", F(D({ isPrinting: d(Ve) || d(Ee) })), void 0, !0)
|
|
961
|
+
])) : h("", !0),
|
|
962
|
+
q.value ? h("", !0) : (o(), Q(d(zt), {
|
|
967
963
|
key: 5,
|
|
968
964
|
config: {
|
|
969
965
|
type: "bar",
|
|
@@ -978,16 +974,16 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
978
974
|
}
|
|
979
975
|
}
|
|
980
976
|
}, null, 8, ["config"])),
|
|
981
|
-
|
|
977
|
+
G("div", {
|
|
982
978
|
ref_key: "chartSlicer",
|
|
983
|
-
ref:
|
|
984
|
-
style:
|
|
979
|
+
ref: Te,
|
|
980
|
+
style: X(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
985
981
|
"data-dom-to-png-ignore": ""
|
|
986
982
|
}, [
|
|
987
|
-
e.value.style.chart.zoom.show &&
|
|
983
|
+
e.value.style.chart.zoom.show && A.value > 1 ? (o(), Q(da, {
|
|
988
984
|
ref_key: "slicerComponent",
|
|
989
|
-
ref:
|
|
990
|
-
key: `slicer_${
|
|
985
|
+
ref: Z,
|
|
986
|
+
key: `slicer_${Ie.value}`,
|
|
991
987
|
background: e.value.style.chart.zoom.color,
|
|
992
988
|
borderColor: e.value.style.chart.backgroundColor,
|
|
993
989
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -997,7 +993,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
997
993
|
textColor: e.value.style.chart.color,
|
|
998
994
|
inputColor: e.value.style.chart.zoom.color,
|
|
999
995
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1000
|
-
max: Math.max(...
|
|
996
|
+
max: Math.max(...pe.dataset.map((t) => t.series.length)),
|
|
1001
997
|
min: 0,
|
|
1002
998
|
valueStart: c.value.start,
|
|
1003
999
|
valueEnd: c.value.end,
|
|
@@ -1006,19 +1002,19 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
1006
1002
|
end: c.value.end,
|
|
1007
1003
|
"onUpdate:end": r[3] || (r[3] = (t) => c.value.end = t),
|
|
1008
1004
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1009
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...
|
|
1005
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...pe.dataset.map((t) => t.series.length)),
|
|
1010
1006
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1011
1007
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1012
|
-
onReset:
|
|
1008
|
+
onReset: We
|
|
1013
1009
|
}, {
|
|
1014
|
-
"reset-action":
|
|
1015
|
-
x(a.$slots, "reset-action",
|
|
1010
|
+
"reset-action": C(({ reset: t }) => [
|
|
1011
|
+
x(a.$slots, "reset-action", F(D({ reset: t })), void 0, !0)
|
|
1016
1012
|
]),
|
|
1017
1013
|
_: 3
|
|
1018
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) :
|
|
1014
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : h("", !0)
|
|
1019
1015
|
], 4),
|
|
1020
|
-
|
|
1021
|
-
show:
|
|
1016
|
+
oe(d(Ct), {
|
|
1017
|
+
show: z.value.showTooltip && se.value,
|
|
1022
1018
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1023
1019
|
color: e.value.style.chart.tooltip.color,
|
|
1024
1020
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1028,41 +1024,41 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
1028
1024
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1029
1025
|
position: e.value.style.chart.tooltip.position,
|
|
1030
1026
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1031
|
-
parent:
|
|
1032
|
-
content:
|
|
1033
|
-
isFullscreen:
|
|
1034
|
-
isCustom:
|
|
1027
|
+
parent: j.value,
|
|
1028
|
+
content: we.value,
|
|
1029
|
+
isFullscreen: ie.value,
|
|
1030
|
+
isCustom: d(dt)(e.value.style.chart.tooltip.customFormat)
|
|
1035
1031
|
}, {
|
|
1036
|
-
"tooltip-before":
|
|
1037
|
-
x(a.$slots, "tooltip-before",
|
|
1032
|
+
"tooltip-before": C(() => [
|
|
1033
|
+
x(a.$slots, "tooltip-before", F(D({ ...ke.value })), void 0, !0)
|
|
1038
1034
|
]),
|
|
1039
|
-
"tooltip-after":
|
|
1040
|
-
x(a.$slots, "tooltip-after",
|
|
1035
|
+
"tooltip-after": C(() => [
|
|
1036
|
+
x(a.$slots, "tooltip-after", F(D({ ...ke.value })), void 0, !0)
|
|
1041
1037
|
]),
|
|
1042
1038
|
_: 3
|
|
1043
1039
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1044
|
-
|
|
1040
|
+
G("div", {
|
|
1045
1041
|
ref_key: "chartLegend",
|
|
1046
|
-
ref:
|
|
1042
|
+
ref: Me
|
|
1047
1043
|
}, [
|
|
1048
|
-
e.value.style.chart.legend.show &&
|
|
1044
|
+
e.value.style.chart.legend.show && q.value ? (o(), Q(ha, {
|
|
1049
1045
|
key: 0,
|
|
1050
|
-
legendSet:
|
|
1051
|
-
config:
|
|
1046
|
+
legendSet: je.value,
|
|
1047
|
+
config: Vt.value,
|
|
1052
1048
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1053
|
-
},
|
|
1054
|
-
item:
|
|
1055
|
-
|
|
1049
|
+
}, it({
|
|
1050
|
+
item: C(({ legend: t }) => [
|
|
1051
|
+
G("div", {
|
|
1056
1052
|
onClick: (l) => t.segregate(),
|
|
1057
|
-
style:
|
|
1058
|
-
},
|
|
1053
|
+
style: X(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
1054
|
+
}, $(t.name), 13, rl)
|
|
1059
1055
|
]),
|
|
1060
1056
|
_: 2
|
|
1061
1057
|
}, [
|
|
1062
1058
|
a.$slots.pattern ? {
|
|
1063
1059
|
name: "legend-pattern",
|
|
1064
|
-
fn:
|
|
1065
|
-
|
|
1060
|
+
fn: C(({ legend: t, index: l }) => [
|
|
1061
|
+
oe(d(wt), {
|
|
1066
1062
|
shape: t.shape,
|
|
1067
1063
|
radius: 30,
|
|
1068
1064
|
stroke: "none",
|
|
@@ -1074,22 +1070,22 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
1074
1070
|
} : void 0
|
|
1075
1071
|
]), 1032, ["legendSet", "config"])) : x(a.$slots, "legend", {
|
|
1076
1072
|
key: 1,
|
|
1077
|
-
legend:
|
|
1073
|
+
legend: je.value
|
|
1078
1074
|
}, void 0, !0)
|
|
1079
1075
|
], 512),
|
|
1080
1076
|
a.$slots.source ? (o(), s("div", {
|
|
1081
1077
|
key: 6,
|
|
1082
1078
|
ref_key: "source",
|
|
1083
|
-
ref:
|
|
1079
|
+
ref: Ne,
|
|
1084
1080
|
dir: "auto"
|
|
1085
1081
|
}, [
|
|
1086
1082
|
x(a.$slots, "source", {}, void 0, !0)
|
|
1087
|
-
], 512)) :
|
|
1088
|
-
c.value.end - c.value.start < 200 ? (o(),
|
|
1083
|
+
], 512)) : h("", !0),
|
|
1084
|
+
c.value.end - c.value.start < 200 ? (o(), Q(d(mt), {
|
|
1089
1085
|
key: 7,
|
|
1090
1086
|
hideDetails: "",
|
|
1091
1087
|
config: {
|
|
1092
|
-
open:
|
|
1088
|
+
open: z.value.showTable,
|
|
1093
1089
|
maxHeight: 1e4,
|
|
1094
1090
|
body: {
|
|
1095
1091
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1101,20 +1097,20 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
1101
1097
|
}
|
|
1102
1098
|
}
|
|
1103
1099
|
}, {
|
|
1104
|
-
content:
|
|
1105
|
-
|
|
1106
|
-
colNames:
|
|
1107
|
-
head:
|
|
1108
|
-
body:
|
|
1109
|
-
config:
|
|
1100
|
+
content: C(() => [
|
|
1101
|
+
oe(d(pt), {
|
|
1102
|
+
colNames: ve.value.colNames,
|
|
1103
|
+
head: ve.value.head,
|
|
1104
|
+
body: ve.value.body,
|
|
1105
|
+
config: ve.value.config,
|
|
1110
1106
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1111
|
-
onClose: r[5] || (r[5] = (t) =>
|
|
1107
|
+
onClose: r[5] || (r[5] = (t) => z.value.showTable = !1)
|
|
1112
1108
|
}, {
|
|
1113
|
-
th:
|
|
1114
|
-
|
|
1109
|
+
th: C(({ th: t }) => [
|
|
1110
|
+
G("div", { innerHTML: t }, null, 8, ol)
|
|
1115
1111
|
]),
|
|
1116
|
-
td:
|
|
1117
|
-
|
|
1112
|
+
td: C(({ td: t }) => [
|
|
1113
|
+
Jt($(isNaN(Number(t)) ? t : d(J)({
|
|
1118
1114
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1119
1115
|
v: t,
|
|
1120
1116
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1125,10 +1121,10 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
|
|
|
1125
1121
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
1126
1122
|
]),
|
|
1127
1123
|
_: 1
|
|
1128
|
-
}, 8, ["config"])) :
|
|
1129
|
-
], 46,
|
|
1124
|
+
}, 8, ["config"])) : h("", !0)
|
|
1125
|
+
], 46, ba));
|
|
1130
1126
|
}
|
|
1131
|
-
},
|
|
1127
|
+
}, ml = /* @__PURE__ */ ga(sl, [["__scopeId", "data-v-736b36a0"]]);
|
|
1132
1128
|
export {
|
|
1133
|
-
|
|
1129
|
+
ml as default
|
|
1134
1130
|
};
|