vue-data-ui 3.0.0-next.0 → 3.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { S as
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import { defineAsyncComponent as G, useSlots as Zt, computed as w, ref as p, onMounted as ct, watch as ht, shallowRef as vt, onBeforeUnmount as Kt, nextTick as be, createElementBlock as n, openBlock as s, unref as y, normalizeStyle as J, normalizeClass as oe, createBlock as q, createCommentVNode as g, renderSlot as z, createElementVNode as Z, createVNode as fe, createSlots as dt, withCtx as _, normalizeProps as F, guardReactiveProps as E, Fragment as v, renderList as f, mergeProps as Me, toDisplayString as T, createTextVNode as Qt } from "vue";
|
|
2
|
+
import { u as jt, c as yt, t as ea, p as me, a as ta, C as te, b as aa, o as la, e as gt, g as ra, d as sa, am as pe, ab as bt, D as ft, X as oa, l as ia, aa as xe, F as mt, i as ke, f as K, I as na, a0 as ua, x as pt, q as ca, r as ha, y as va } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { u as xt } from "./useNestedProp-DorElw91.js";
|
|
4
|
+
import { t as da, u as ya } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as ga } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ma from "./Legend-CYbP3Kfg.js";
|
|
9
|
+
import { S as pa } from "./Slicer-nrMi5hzj.js";
|
|
10
|
+
import xa from "./Title-pVYRzQXY.js";
|
|
11
|
+
import { _ as ka } from "./Shape-DBXkGxKt.js";
|
|
12
|
+
import { u as wa } from "./useTimeLabels-Mrr0jrpL.js";
|
|
13
|
+
import za from "./img-ku4zevVD.js";
|
|
14
|
+
import { _ as La } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"], $a = { key: 1 }, Ma = ["id"], Ta = ["stop-color"], Na = ["stop-color"], Ia = ["stop-color"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Aa = { key: 0 }, Ua = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Da = { key: 0 }, Fa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ea = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ha = { key: 0 }, Ba = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = ["transform", "font-size", "fill", "font-weight"], Ja = ["x", "y", "font-size", "fill", "font-weight"], qa = { key: 0 }, Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x", "y", "font-size", "fill", "font-weight"], Qa = { key: 0 }, ja = ["x", "y", "font-size", "font-weight", "fill"], el = ["x1", "x2", "y1", "y2", "stroke"], tl = ["x", "y", "font-size", "font-weight", "fill"], al = ["x1", "x2", "y1", "y2", "stroke"], ll = ["font-size", "font-weight", "fill", "text-anchor", "transform"], rl = { key: 0 }, sl = { key: 1 }, ol = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], il = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], nl = { key: 0 }, ul = { key: 1 }, cl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], hl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], vl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], dl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], yl = {
|
|
15
16
|
key: 4,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, gl = ["onClick"], bl = ["innerHTML"], fl = {
|
|
18
19
|
__name: "vue-ui-stackbar",
|
|
19
20
|
props: {
|
|
20
21
|
config: {
|
|
@@ -31,49 +32,50 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
34
|
-
setup(we, { expose:
|
|
35
|
-
const
|
|
35
|
+
setup(we, { expose: kt, emit: wt }) {
|
|
36
|
+
const zt = G(() => import("./vue-ui-accordion-DgZK-qDz.js")), Lt = G(() => import("./DataTable-CgL0Rz0x.js")), Ct = G(() => import("./PackageVersion-CAkNkiIG.js")), _t = G(() => import("./PenAndPaper-Cx1-5zdD.js")), St = G(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), $t = G(() => import("./Tooltip-NwATo4ZJ.js")), Mt = G(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_stackbar: Tt } = jt(), Nt = Zt(), b = we, ze = wt, Q = w({
|
|
36
37
|
get() {
|
|
37
|
-
return !!
|
|
38
|
+
return !!b.dataset && b.dataset.length;
|
|
38
39
|
},
|
|
39
40
|
set(a) {
|
|
40
41
|
return a;
|
|
41
42
|
}
|
|
42
|
-
}),
|
|
43
|
-
|
|
43
|
+
}), R = p(null), V = p(yt()), ie = p(!1), Le = p(null), Ce = p(""), S = p([]), Te = p(0), Ne = p(null), Ie = p(null), Pe = p(null), Oe = p(null), Re = p(0), ne = p(!1), ae = p(null), H = p(!1), Ve = p(0), It = p(0), Pt = p(0), j = p(null);
|
|
44
|
+
ct(() => {
|
|
44
45
|
Se();
|
|
45
46
|
});
|
|
46
|
-
const e =
|
|
47
|
-
get: () =>
|
|
47
|
+
const e = w({
|
|
48
|
+
get: () => Fe(),
|
|
48
49
|
set: (a) => a
|
|
49
|
-
}), { userOptionsVisible:
|
|
50
|
-
function
|
|
51
|
-
const a =
|
|
52
|
-
userConfig:
|
|
53
|
-
defaultConfig:
|
|
50
|
+
}), { userOptionsVisible: _e, setUserOptionsVisibility: Ae, keepUserOptionState: Ue } = ba({ config: e.value }), { svgRef: De } = fa({ config: e.value.style.chart.title });
|
|
51
|
+
function Fe() {
|
|
52
|
+
const a = xt({
|
|
53
|
+
userConfig: b.config,
|
|
54
|
+
defaultConfig: Tt
|
|
54
55
|
});
|
|
55
56
|
let r = {};
|
|
56
57
|
return a.theme ? r = {
|
|
57
|
-
...
|
|
58
|
-
userConfig:
|
|
58
|
+
...xt({
|
|
59
|
+
userConfig: ta.vue_ui_stackbar[a.theme] || b.config,
|
|
59
60
|
defaultConfig: a
|
|
60
61
|
}),
|
|
61
|
-
customPalette:
|
|
62
|
-
} : r = a,
|
|
62
|
+
customPalette: ea[a.theme] || me
|
|
63
|
+
} : r = a, b.config && te(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 && te(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 && te(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 && te(b.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, b.config && te(b.config, "style.chart.bars.dataLabels.hideUnderValue") ? r.style.chart.bars.dataLabels.hideUnderValue = b.config.style.chart.bars.dataLabels.hideUnderValue : r.style.chart.bars.dataLabels.hideUnderValue = null, b.config && te(b.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? r.style.chart.bars.dataLabels.hideUnderPercentage = b.config.style.chart.bars.dataLabels.hideUnderPercentage : r.style.chart.bars.dataLabels.hideUnderPercentage = null, r;
|
|
63
64
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
const Ee = w(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), He = w(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
66
|
+
ht(() => b.config, (a) => {
|
|
67
|
+
e.value = Fe(), _e.value = !e.value.userOptions.showOnChartHover, Se(), Ve.value += 1, It.value += 1, Pt.value += 1, L.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
68
|
+
}, { deep: !0 }), ht(() => b.dataset, (a) => {
|
|
69
|
+
Je();
|
|
68
70
|
}, { deep: !0 });
|
|
69
|
-
const
|
|
71
|
+
const L = p({
|
|
70
72
|
dataLabels: {
|
|
71
73
|
show: e.value.style.chart.bars.dataLabels.show
|
|
72
74
|
},
|
|
73
75
|
showTable: e.value.table.show,
|
|
74
76
|
showTooltip: e.value.style.chart.tooltip.show
|
|
75
|
-
}), { isPrinting:
|
|
76
|
-
elementId: `stackbar_${
|
|
77
|
+
}), { isPrinting: Be, isImaging: We, generatePdf: Ye, generateImage: Xe } = ga({
|
|
78
|
+
elementId: `stackbar_${V.value}`,
|
|
77
79
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
78
80
|
options: e.value.userOptions.print
|
|
79
81
|
}), ue = p({
|
|
@@ -85,20 +87,20 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
85
87
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
86
88
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
87
89
|
}
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
+
}), Ot = w(() => aa(e.value.customPalette)), A = vt(null), ee = vt(null), Ge = p(null);
|
|
91
|
+
ct(() => {
|
|
90
92
|
Se();
|
|
91
93
|
});
|
|
92
94
|
function Se() {
|
|
93
|
-
if (
|
|
95
|
+
if (la(b.dataset) ? gt({
|
|
94
96
|
componentName: "VueUiStackbar",
|
|
95
97
|
type: "dataset"
|
|
96
|
-
}) :
|
|
97
|
-
|
|
98
|
+
}) : b.dataset.forEach((a, r) => {
|
|
99
|
+
ra({
|
|
98
100
|
datasetObject: a,
|
|
99
101
|
requiredAttributes: ["name", "series"]
|
|
100
102
|
}).forEach((t) => {
|
|
101
|
-
|
|
103
|
+
Q.value = !1, gt({
|
|
102
104
|
componentName: "VueUiStackbar",
|
|
103
105
|
type: "datasetSerieAttribute",
|
|
104
106
|
property: t,
|
|
@@ -108,42 +110,42 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
108
110
|
}), setTimeout(() => {
|
|
109
111
|
H.value = !0;
|
|
110
112
|
}, 10), e.value.responsive) {
|
|
111
|
-
const a =
|
|
113
|
+
const a = da(() => {
|
|
112
114
|
H.value = !1;
|
|
113
|
-
const { width: r, height: t } =
|
|
114
|
-
chart:
|
|
115
|
+
const { width: r, height: t } = ya({
|
|
116
|
+
chart: R.value,
|
|
115
117
|
title: e.value.style.chart.title.text ? Ne.value : null,
|
|
116
118
|
legend: e.value.style.chart.legend.show ? Ie.value : null,
|
|
117
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
118
|
-
source:
|
|
119
|
+
slicer: e.value.style.chart.zoom.show && D.value > 1 ? Pe.value : null,
|
|
120
|
+
source: Oe.value
|
|
119
121
|
});
|
|
120
122
|
requestAnimationFrame(() => {
|
|
121
|
-
ue.value.width = r, ue.value.height = t, clearTimeout(
|
|
123
|
+
ue.value.width = r, ue.value.height = t, clearTimeout(Ge.value), Ge.value = setTimeout(() => {
|
|
122
124
|
H.value = !0;
|
|
123
125
|
}, 10);
|
|
124
126
|
});
|
|
125
127
|
});
|
|
126
|
-
A.value && (
|
|
128
|
+
A.value && (ee.value && A.value.unobserve(ee.value), A.value.disconnect()), A.value = new ResizeObserver(a), ee.value = R.value.parentNode, A.value.observe(ee.value);
|
|
127
129
|
}
|
|
128
|
-
|
|
130
|
+
qe();
|
|
129
131
|
}
|
|
130
|
-
|
|
131
|
-
A.value && (
|
|
132
|
+
Kt(() => {
|
|
133
|
+
A.value && (ee.value && A.value.unobserve(ee.value), A.value.disconnect());
|
|
132
134
|
});
|
|
133
|
-
const
|
|
134
|
-
const { height: a, width: r } = ue.value, { right: t } = ue.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom,
|
|
135
|
+
const o = w(() => {
|
|
136
|
+
const { height: a, width: r } = ue.value, { right: t } = ue.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, C = e.value.style.chart.padding.left, B = r - C - r * t, W = a - l - e.value.style.chart.padding.bottom;
|
|
135
137
|
return {
|
|
136
138
|
chartHeight: a,
|
|
137
139
|
chartWidth: r,
|
|
138
140
|
top: l,
|
|
139
141
|
right: c,
|
|
140
142
|
bottom: u,
|
|
141
|
-
left:
|
|
143
|
+
left: C,
|
|
142
144
|
width: B,
|
|
143
145
|
height: W < 0 ? 0 : W
|
|
144
146
|
};
|
|
145
|
-
}),
|
|
146
|
-
const t =
|
|
147
|
+
}), U = w(() => b.dataset.map((a, r) => {
|
|
148
|
+
const t = sa(a.color) || Ot.value[r] || me[r] || me[r % me.length];
|
|
147
149
|
return {
|
|
148
150
|
...a,
|
|
149
151
|
// In distributed mode, all values are converted to positive
|
|
@@ -151,104 +153,104 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
151
153
|
// Store signs to manage display of neg values in distributed mode
|
|
152
154
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
153
155
|
absoluteIndex: r,
|
|
154
|
-
id:
|
|
156
|
+
id: yt(),
|
|
155
157
|
color: t
|
|
156
158
|
};
|
|
157
|
-
})),
|
|
159
|
+
})), D = w(() => Math.max(...U.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
|
|
158
160
|
start: 0,
|
|
159
|
-
end: Math.max(...
|
|
161
|
+
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
160
162
|
});
|
|
161
|
-
function
|
|
162
|
-
|
|
163
|
+
function Je() {
|
|
164
|
+
qe();
|
|
163
165
|
}
|
|
164
|
-
async function
|
|
165
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) &&
|
|
166
|
+
async function qe() {
|
|
167
|
+
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && j.value ? (e.value.style.chart.zoom.startIndex !== null && (await be(), await be(), j.value && j.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await be(), await be(), j.value && j.value.setEndValue(Rt(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
|
|
166
168
|
start: 0,
|
|
167
|
-
end: Math.max(...
|
|
168
|
-
},
|
|
169
|
+
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
170
|
+
}, Re.value += 1);
|
|
169
171
|
}
|
|
170
|
-
function
|
|
171
|
-
const r = Math.max(...
|
|
172
|
+
function Rt(a) {
|
|
173
|
+
const r = Math.max(...b.dataset.map((t) => t.series.length));
|
|
172
174
|
return a > r ? r : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
173
175
|
}
|
|
174
|
-
const d =
|
|
176
|
+
const d = w(() => {
|
|
175
177
|
let a;
|
|
176
|
-
return e.value.orientation === "vertical" ? a =
|
|
177
|
-
}),
|
|
178
|
+
return e.value.orientation === "vertical" ? a = o.value.width / (h.value.end - h.value.start) : a = o.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
179
|
+
}), le = w(() => pe(U.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Vt = w(() => pe(U.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
|
|
178
180
|
...a,
|
|
179
181
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
180
|
-
}))).slice(
|
|
181
|
-
const a =
|
|
182
|
+
}))).slice(h.value.start, h.value.end)), ce = w(() => {
|
|
183
|
+
const a = U.value.filter((r) => !S.value.includes(r.id));
|
|
182
184
|
return {
|
|
183
185
|
positive: pe(a.map((r) => ({
|
|
184
186
|
...r,
|
|
185
|
-
series: r.series.slice(
|
|
187
|
+
series: r.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
186
188
|
}))),
|
|
187
189
|
negative: pe(a.map((r) => ({
|
|
188
190
|
...r,
|
|
189
|
-
series: r.series.slice(
|
|
191
|
+
series: r.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
190
192
|
})))
|
|
191
193
|
};
|
|
192
|
-
}),
|
|
193
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...ce.value.positive), r = Math.min(...ce.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
194
|
+
}), P = 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(...ce.value.positive), r = Math.min(...ce.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? bt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : ft(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
194
196
|
return l.ticks.map((c) => ({
|
|
195
|
-
zero:
|
|
196
|
-
y:
|
|
197
|
-
x:
|
|
198
|
-
horizontal_zero:
|
|
199
|
-
horizontal_x:
|
|
200
|
-
horizontal_y:
|
|
197
|
+
zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
198
|
+
y: o.value.bottom - o.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
199
|
+
x: o.value.left - 8,
|
|
200
|
+
horizontal_zero: o.value.left + o.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
201
|
+
horizontal_x: o.value.left + o.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
202
|
+
horizontal_y: o.value.bottom - 8,
|
|
201
203
|
value: c
|
|
202
204
|
}));
|
|
203
|
-
}), $ =
|
|
205
|
+
}), $ = w(() => wa({
|
|
204
206
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
205
|
-
maxDatapoints:
|
|
207
|
+
maxDatapoints: D.value,
|
|
206
208
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
207
|
-
start:
|
|
208
|
-
end:
|
|
209
|
-
})),
|
|
210
|
-
if (!
|
|
211
|
-
let a = Array(
|
|
212
|
-
const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.value.negative),
|
|
213
|
-
return
|
|
214
|
-
const
|
|
215
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) /
|
|
216
|
-
let
|
|
217
|
-
return m > 0 ? (I = M * N,
|
|
218
|
-
}),
|
|
219
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) /
|
|
220
|
-
let
|
|
221
|
-
return m > 0 ? (I = ge * N,
|
|
222
|
-
}),
|
|
223
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) /
|
|
209
|
+
start: h.value.start,
|
|
210
|
+
end: h.value.end
|
|
211
|
+
})), k = w(() => {
|
|
212
|
+
if (!Q.value) return [];
|
|
213
|
+
let a = Array(D.value).fill(0), r = Array(D.value).fill(0), t = Array(D.value).fill(0), l = Array(D.value).fill(0);
|
|
214
|
+
const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, B = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? bt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : ft(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: W, max: re } = B, Y = re + (W >= 0 ? 0 : Math.abs(W)) || 1, M = o.value.height, ge = o.value.width, nt = P.value[0] ? P.value[0].zero : o.value.bottom, ut = P.value[0] ? P.value[0].horizontal_zero : o.value.left;
|
|
215
|
+
return U.value.filter((se) => !S.value.includes(se.id)).map((se) => {
|
|
216
|
+
const O = se.series.slice(h.value.start, h.value.end), Ht = se.signedSeries.slice(h.value.start, h.value.end), Bt = O.map((m, x) => o.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Wt = O.map((m, x) => o.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Yt = O.map((m, x) => {
|
|
217
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
218
|
+
let X, I;
|
|
219
|
+
return m > 0 ? (I = M * N, X = nt - I - a[x], a[x] += I) : (I = M * N, X = nt + t[x], t[x] += Math.abs(I)), X;
|
|
220
|
+
}), Xt = O.map((m, x) => {
|
|
221
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
222
|
+
let X, I;
|
|
223
|
+
return m > 0 ? (I = ge * N, X = ut + r[x], r[x] += I) : (I = ge * N, X = ut - Math.abs(I) - l[x], l[x] += Math.abs(I)), X;
|
|
224
|
+
}), Gt = O.map((m, x) => {
|
|
225
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
224
226
|
return m > 0 ? M * N : M * Math.abs(N);
|
|
225
|
-
}),
|
|
226
|
-
const N = e.value.style.chart.bars.distributed ? (m || 0) /
|
|
227
|
+
}), Jt = O.map((m, x) => {
|
|
228
|
+
const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
|
|
227
229
|
return m > 0 ? ge * N : ge * Math.abs(N);
|
|
228
|
-
}),
|
|
230
|
+
}), qt = O.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
|
|
229
231
|
return {
|
|
230
|
-
...
|
|
231
|
-
proportions:
|
|
232
|
-
series:
|
|
233
|
-
signedSeries:
|
|
234
|
-
x:
|
|
235
|
-
y:
|
|
236
|
-
height:
|
|
237
|
-
horizontal_width:
|
|
238
|
-
horizontal_y:
|
|
239
|
-
horizontal_x:
|
|
232
|
+
...se,
|
|
233
|
+
proportions: O.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / qt),
|
|
234
|
+
series: O,
|
|
235
|
+
signedSeries: Ht,
|
|
236
|
+
x: Bt,
|
|
237
|
+
y: Yt,
|
|
238
|
+
height: Gt,
|
|
239
|
+
horizontal_width: Jt,
|
|
240
|
+
horizontal_y: Wt,
|
|
241
|
+
horizontal_x: Xt
|
|
240
242
|
};
|
|
241
243
|
});
|
|
242
|
-
}),
|
|
244
|
+
}), Ze = w(() => Vt.value.map((a, r) => ({
|
|
243
245
|
value: a,
|
|
244
246
|
sign: a >= 0 ? 1 : -1
|
|
245
247
|
})));
|
|
246
|
-
function
|
|
248
|
+
function he(a, r, t, l, c) {
|
|
247
249
|
const u = c === -1 && a >= 0 ? -a : a;
|
|
248
250
|
return ke(
|
|
249
251
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
250
252
|
u,
|
|
251
|
-
|
|
253
|
+
K({
|
|
252
254
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
253
255
|
v: u,
|
|
254
256
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -257,11 +259,11 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
257
259
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
258
260
|
);
|
|
259
261
|
}
|
|
260
|
-
function
|
|
262
|
+
function Ke(a, r, t, l) {
|
|
261
263
|
return ke(
|
|
262
264
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
263
265
|
a,
|
|
264
|
-
|
|
266
|
+
K({
|
|
265
267
|
v: isNaN(a) ? 0 : a,
|
|
266
268
|
s: "%",
|
|
267
269
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
@@ -269,8 +271,8 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
269
271
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
270
272
|
);
|
|
271
273
|
}
|
|
272
|
-
function
|
|
273
|
-
const r = JSON.parse(JSON.stringify(
|
|
274
|
+
function Qe(a) {
|
|
275
|
+
const r = JSON.parse(JSON.stringify(k.value)).map((t) => ({
|
|
274
276
|
name: t.name,
|
|
275
277
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
276
278
|
proportion: t.proportions[a] || null,
|
|
@@ -279,9 +281,9 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
279
281
|
}));
|
|
280
282
|
ze("selectDatapoint", { datapoint: r, period: $.value[a] });
|
|
281
283
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
-
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(
|
|
284
|
+
function je(a) {
|
|
285
|
+
ae.value = a, ie.value = !0;
|
|
286
|
+
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(k.value)).map((c) => ({
|
|
285
287
|
name: c.name,
|
|
286
288
|
absoluteIndex: c.absoluteIndex,
|
|
287
289
|
value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
|
|
@@ -289,49 +291,49 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
289
291
|
color: c.color,
|
|
290
292
|
id: c.id
|
|
291
293
|
}));
|
|
292
|
-
|
|
294
|
+
Le.value = {
|
|
293
295
|
datapoint: t,
|
|
294
296
|
seriesIndex: a,
|
|
295
297
|
config: e.value,
|
|
296
|
-
series:
|
|
298
|
+
series: k.value
|
|
297
299
|
};
|
|
298
300
|
const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
299
|
-
if (
|
|
301
|
+
if (pt(r) && va(() => r({
|
|
300
302
|
seriesIndex: a,
|
|
301
303
|
datapoint: t,
|
|
302
|
-
series:
|
|
304
|
+
series: k.value,
|
|
303
305
|
config: e.value
|
|
304
306
|
})))
|
|
305
|
-
|
|
307
|
+
Ce.value = r({
|
|
306
308
|
seriesIndex: a,
|
|
307
309
|
datapoint: t,
|
|
308
|
-
series:
|
|
310
|
+
series: k.value,
|
|
309
311
|
config: e.value
|
|
310
312
|
});
|
|
311
313
|
else {
|
|
312
314
|
const {
|
|
313
315
|
showValue: c,
|
|
314
316
|
showPercentage: u,
|
|
315
|
-
borderColor:
|
|
317
|
+
borderColor: C,
|
|
316
318
|
roundingValue: B,
|
|
317
319
|
roundingPercentage: W
|
|
318
320
|
} = e.value.style.chart.tooltip;
|
|
319
|
-
let
|
|
320
|
-
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (
|
|
321
|
+
let re = "";
|
|
322
|
+
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (re += `<div style="width:100%;text-align:center;border-bottom:1px solid ${C};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
321
323
|
const Y = [
|
|
322
324
|
c && u ? "(" : "",
|
|
323
325
|
c && u ? ")" : ""
|
|
324
326
|
];
|
|
325
327
|
t.reverse().forEach((M) => {
|
|
326
|
-
|
|
328
|
+
re += `
|
|
327
329
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
328
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${M.id})` : M.color}"/>${
|
|
329
|
-
${M.name}${c || u ? ":" : ""} ${c ?
|
|
330
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${M.id})` : M.color}"/>${Nt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${M.absoluteIndex})"/>` : ""}</svg>
|
|
331
|
+
${M.name}${c || u ? ":" : ""} ${c ? K({
|
|
330
332
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
331
333
|
v: M.value,
|
|
332
334
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
333
335
|
r: B
|
|
334
|
-
}) : ""} ${Y[0]}${u ?
|
|
336
|
+
}) : ""} ${Y[0]}${u ? K({
|
|
335
337
|
v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
|
|
336
338
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
337
339
|
s: "%",
|
|
@@ -339,47 +341,47 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
339
341
|
}) : ""}${Y[1]}
|
|
340
342
|
</div>
|
|
341
343
|
`;
|
|
342
|
-
}),
|
|
344
|
+
}), Ce.value = `<div>${re}</div>`;
|
|
343
345
|
}
|
|
344
346
|
}
|
|
345
|
-
function
|
|
347
|
+
function et(a) {
|
|
346
348
|
ne.value = a, Te.value += 1;
|
|
347
349
|
}
|
|
348
|
-
function
|
|
349
|
-
|
|
350
|
+
function tt() {
|
|
351
|
+
L.value.showTable = !L.value.showTable;
|
|
350
352
|
}
|
|
351
|
-
function
|
|
352
|
-
|
|
353
|
+
function at() {
|
|
354
|
+
L.value.dataLabels.show = !L.value.dataLabels.show;
|
|
353
355
|
}
|
|
354
|
-
function
|
|
355
|
-
|
|
356
|
+
function lt() {
|
|
357
|
+
L.value.showTooltip = !L.value.showTooltip;
|
|
356
358
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
359
|
+
function At() {
|
|
360
|
+
return k.value;
|
|
359
361
|
}
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
362
|
-
const a =
|
|
362
|
+
const rt = w(() => {
|
|
363
|
+
if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
364
|
+
const a = k.value.map(({ name: t, color: l }) => ({
|
|
363
365
|
label: t,
|
|
364
366
|
color: l
|
|
365
367
|
})), r = [];
|
|
366
368
|
return $.value.forEach((t) => {
|
|
367
369
|
const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
368
|
-
|
|
370
|
+
U.value.forEach((c) => {
|
|
369
371
|
l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
370
372
|
}), r.push(l);
|
|
371
373
|
}), { head: a, body: r };
|
|
372
374
|
});
|
|
373
|
-
function
|
|
374
|
-
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
375
|
-
a ? a(u) :
|
|
375
|
+
function st(a = null) {
|
|
376
|
+
const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...rt.value.head.map((C) => C.label)], l = rt.value.body, c = r.concat([t]).concat(l), u = ca(c);
|
|
377
|
+
a ? a(u) : ha({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
376
378
|
}
|
|
377
|
-
const
|
|
378
|
-
const a = [""].concat(
|
|
379
|
+
const ve = w(() => {
|
|
380
|
+
const a = [""].concat(k.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
379
381
|
let r = [];
|
|
380
|
-
for (let c = 0; c <
|
|
381
|
-
const u =
|
|
382
|
-
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(
|
|
382
|
+
for (let c = 0; c < D.value; c += 1) {
|
|
383
|
+
const u = k.value.map((C) => C.series[c] ?? 0).reduce((C, B) => C + B, 0);
|
|
384
|
+
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(k.value.map((C) => (C.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
383
385
|
}
|
|
384
386
|
const t = {
|
|
385
387
|
th: {
|
|
@@ -393,26 +395,26 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
393
395
|
outline: e.value.table.td.outline
|
|
394
396
|
},
|
|
395
397
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
396
|
-
}, l = [e.value.table.columnNames.period].concat(
|
|
397
|
-
return { head: a, body: r.slice(0,
|
|
398
|
+
}, l = [e.value.table.columnNames.period].concat(k.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
399
|
+
return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
|
|
398
400
|
});
|
|
399
|
-
function
|
|
400
|
-
if (ze("selectLegend",
|
|
401
|
+
function Ut(a, r) {
|
|
402
|
+
if (ze("selectLegend", k.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
|
|
401
403
|
S.value = S.value.filter((t) => t !== r.id);
|
|
402
404
|
else {
|
|
403
|
-
if (S.value.length ===
|
|
405
|
+
if (S.value.length === U.value.length - 1) return;
|
|
404
406
|
S.value.push(r.id);
|
|
405
407
|
}
|
|
406
408
|
}
|
|
407
|
-
const
|
|
409
|
+
const ot = w(() => U.value.map((a, r) => ({
|
|
408
410
|
...a,
|
|
409
411
|
shape: "square"
|
|
410
412
|
})).map((a) => ({
|
|
411
413
|
...a,
|
|
412
414
|
opacity: S.value.includes(a.id) ? 0.5 : 1,
|
|
413
|
-
segregate: () =>
|
|
415
|
+
segregate: () => Ut(a.absoluteIndex, a),
|
|
414
416
|
isSegregated: S.value.includes(a.id)
|
|
415
|
-
}))),
|
|
417
|
+
}))), Dt = w(() => ({
|
|
416
418
|
cy: "stackbar-legend",
|
|
417
419
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
418
420
|
color: e.value.style.chart.legend.color,
|
|
@@ -424,7 +426,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
424
426
|
de.value = !de.value;
|
|
425
427
|
}
|
|
426
428
|
function ye(a, r) {
|
|
427
|
-
const t = JSON.parse(JSON.stringify(
|
|
429
|
+
const t = JSON.parse(JSON.stringify(k.value)).map((l) => ({
|
|
428
430
|
name: l.name,
|
|
429
431
|
value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
|
|
430
432
|
proportion: l.proportions[r] || null,
|
|
@@ -437,43 +439,59 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
437
439
|
label: a.text
|
|
438
440
|
});
|
|
439
441
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
+
const Ft = w(() => Math.max(...k.value.flatMap((a) => a.series)));
|
|
443
|
+
function it(a, r) {
|
|
444
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? He.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : He.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 > Ft.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : Ee.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
445
|
+
}
|
|
446
|
+
async function Et({ scale: a = 2 } = {}) {
|
|
447
|
+
if (!R.value) return;
|
|
448
|
+
const { width: r, height: t } = R.value.getBoundingClientRect(), l = r / t, { imageUri: c, base64: u } = await za({ domElement: R.value, base64: !0, img: !0, scale: a });
|
|
449
|
+
return {
|
|
450
|
+
imageUri: c,
|
|
451
|
+
base64: u,
|
|
452
|
+
title: e.value.style.chart.title.text,
|
|
453
|
+
width: r,
|
|
454
|
+
height: t,
|
|
455
|
+
aspectRatio: l
|
|
456
|
+
};
|
|
442
457
|
}
|
|
443
|
-
return
|
|
444
|
-
getData:
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
458
|
+
return kt({
|
|
459
|
+
getData: At,
|
|
460
|
+
getImage: Et,
|
|
461
|
+
generatePdf: Ye,
|
|
462
|
+
generateCsv: st,
|
|
463
|
+
generateImage: Xe,
|
|
464
|
+
toggleTable: tt,
|
|
465
|
+
toggleLabels: at,
|
|
466
|
+
toggleTooltip: lt,
|
|
467
|
+
toggleAnnotator: $e,
|
|
468
|
+
toggleFullscreen: et
|
|
469
|
+
}), (a, r) => (s(), n("div", {
|
|
470
|
+
id: `stackbar_${V.value}`,
|
|
454
471
|
ref_key: "stackbarChart",
|
|
455
|
-
ref:
|
|
472
|
+
ref: R,
|
|
456
473
|
class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
457
|
-
style:
|
|
474
|
+
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%" : ""}`),
|
|
458
475
|
onMouseenter: r[6] || (r[6] = () => y(Ae)(!0)),
|
|
459
476
|
onMouseleave: r[7] || (r[7] = () => y(Ae)(!1))
|
|
460
477
|
}, [
|
|
461
|
-
e.value.userOptions.buttons.annotator ? (
|
|
478
|
+
e.value.userOptions.buttons.annotator ? (s(), q(y(_t), {
|
|
462
479
|
key: 0,
|
|
463
|
-
svgRef: y(
|
|
480
|
+
svgRef: y(De),
|
|
464
481
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
465
482
|
color: e.value.style.chart.color,
|
|
466
483
|
active: de.value,
|
|
467
484
|
onClose: $e
|
|
468
485
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
469
|
-
|
|
470
|
-
e.value.style.chart.title.text ? (
|
|
486
|
+
z(a.$slots, "userConfig", {}, void 0, !0),
|
|
487
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
471
488
|
key: 1,
|
|
472
489
|
ref_key: "chartTitle",
|
|
473
490
|
ref: Ne,
|
|
474
491
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
475
492
|
}, [
|
|
476
|
-
|
|
493
|
+
(s(), q(xa, {
|
|
494
|
+
key: `title_${Ve.value}`,
|
|
477
495
|
config: {
|
|
478
496
|
title: {
|
|
479
497
|
cy: "stackbar-title",
|
|
@@ -484,16 +502,16 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
484
502
|
...e.value.style.chart.title.subtitle
|
|
485
503
|
}
|
|
486
504
|
}
|
|
487
|
-
}, null, 8, ["config"])
|
|
505
|
+
}, null, 8, ["config"]))
|
|
488
506
|
], 512)) : g("", !0),
|
|
489
|
-
e.value.userOptions.show &&
|
|
507
|
+
e.value.userOptions.show && Q.value && (y(Ue) || y(_e)) ? (s(), q(y(Mt), {
|
|
490
508
|
ref: "details",
|
|
491
509
|
key: `user_option_${Te.value}`,
|
|
492
510
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
493
511
|
color: e.value.style.chart.color,
|
|
494
|
-
isPrinting: y(
|
|
495
|
-
isImaging: y(
|
|
496
|
-
uid:
|
|
512
|
+
isPrinting: y(Be),
|
|
513
|
+
isImaging: y(We),
|
|
514
|
+
uid: V.value,
|
|
497
515
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
498
516
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
499
517
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -502,174 +520,179 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
502
520
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
503
521
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
504
522
|
isFullscreen: ne.value,
|
|
505
|
-
chartElement:
|
|
523
|
+
chartElement: R.value,
|
|
506
524
|
position: e.value.userOptions.position,
|
|
507
|
-
isTooltip:
|
|
525
|
+
isTooltip: L.value.showTooltip,
|
|
508
526
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
509
527
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
510
528
|
isAnnotation: de.value,
|
|
511
529
|
callbacks: e.value.userOptions.callbacks,
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
530
|
+
printScale: e.value.userOptions.print.scale,
|
|
531
|
+
onToggleFullscreen: et,
|
|
532
|
+
onGeneratePdf: y(Ye),
|
|
533
|
+
onGenerateCsv: st,
|
|
534
|
+
onGenerateImage: y(Xe),
|
|
535
|
+
onToggleTable: tt,
|
|
536
|
+
onToggleLabels: at,
|
|
537
|
+
onToggleTooltip: lt,
|
|
519
538
|
onToggleAnnotator: $e,
|
|
520
|
-
style:
|
|
521
|
-
visibility: y(
|
|
539
|
+
style: J({
|
|
540
|
+
visibility: y(Ue) ? y(_e) ? "visible" : "hidden" : "visible"
|
|
522
541
|
})
|
|
523
|
-
},
|
|
542
|
+
}, dt({ _: 2 }, [
|
|
524
543
|
a.$slots.menuIcon ? {
|
|
525
544
|
name: "menuIcon",
|
|
526
|
-
fn:
|
|
527
|
-
|
|
545
|
+
fn: _(({ isOpen: t, color: l }) => [
|
|
546
|
+
z(a.$slots, "menuIcon", F(E({ isOpen: t, color: l })), void 0, !0)
|
|
528
547
|
]),
|
|
529
548
|
key: "0"
|
|
530
549
|
} : void 0,
|
|
531
550
|
a.$slots.optionTooltip ? {
|
|
532
551
|
name: "optionTooltip",
|
|
533
|
-
fn:
|
|
534
|
-
|
|
552
|
+
fn: _(() => [
|
|
553
|
+
z(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
535
554
|
]),
|
|
536
555
|
key: "1"
|
|
537
556
|
} : void 0,
|
|
538
557
|
a.$slots.optionPdf ? {
|
|
539
558
|
name: "optionPdf",
|
|
540
|
-
fn:
|
|
541
|
-
|
|
559
|
+
fn: _(() => [
|
|
560
|
+
z(a.$slots, "optionPdf", {}, void 0, !0)
|
|
542
561
|
]),
|
|
543
562
|
key: "2"
|
|
544
563
|
} : void 0,
|
|
545
564
|
a.$slots.optionCsv ? {
|
|
546
565
|
name: "optionCsv",
|
|
547
|
-
fn:
|
|
548
|
-
|
|
566
|
+
fn: _(() => [
|
|
567
|
+
z(a.$slots, "optionCsv", {}, void 0, !0)
|
|
549
568
|
]),
|
|
550
569
|
key: "3"
|
|
551
570
|
} : void 0,
|
|
552
571
|
a.$slots.optionImg ? {
|
|
553
572
|
name: "optionImg",
|
|
554
|
-
fn:
|
|
555
|
-
|
|
573
|
+
fn: _(() => [
|
|
574
|
+
z(a.$slots, "optionImg", {}, void 0, !0)
|
|
556
575
|
]),
|
|
557
576
|
key: "4"
|
|
558
577
|
} : void 0,
|
|
559
578
|
a.$slots.optionTable ? {
|
|
560
579
|
name: "optionTable",
|
|
561
|
-
fn:
|
|
562
|
-
|
|
580
|
+
fn: _(() => [
|
|
581
|
+
z(a.$slots, "optionTable", {}, void 0, !0)
|
|
563
582
|
]),
|
|
564
583
|
key: "5"
|
|
565
584
|
} : void 0,
|
|
566
585
|
a.$slots.optionLabels ? {
|
|
567
586
|
name: "optionLabels",
|
|
568
|
-
fn:
|
|
569
|
-
|
|
587
|
+
fn: _(() => [
|
|
588
|
+
z(a.$slots, "optionLabels", {}, void 0, !0)
|
|
570
589
|
]),
|
|
571
590
|
key: "6"
|
|
572
591
|
} : void 0,
|
|
573
592
|
a.$slots.optionFullscreen ? {
|
|
574
593
|
name: "optionFullscreen",
|
|
575
|
-
fn:
|
|
576
|
-
|
|
594
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
595
|
+
z(a.$slots, "optionFullscreen", F(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
577
596
|
]),
|
|
578
597
|
key: "7"
|
|
579
598
|
} : void 0,
|
|
580
599
|
a.$slots.optionAnnotator ? {
|
|
581
600
|
name: "optionAnnotator",
|
|
582
|
-
fn:
|
|
583
|
-
|
|
601
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
602
|
+
z(a.$slots, "optionAnnotator", F(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
584
603
|
]),
|
|
585
604
|
key: "8"
|
|
586
605
|
} : void 0
|
|
587
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
588
|
-
|
|
606
|
+
]), 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"])) : g("", !0),
|
|
607
|
+
Q.value ? (s(), n("svg", {
|
|
589
608
|
key: 3,
|
|
590
609
|
ref_key: "svgRef",
|
|
591
|
-
ref:
|
|
592
|
-
xmlns: y(
|
|
593
|
-
viewBox: `0 0 ${
|
|
594
|
-
style:
|
|
610
|
+
ref: De,
|
|
611
|
+
xmlns: y(oa),
|
|
612
|
+
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
613
|
+
style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
595
614
|
}, [
|
|
596
|
-
|
|
597
|
-
a.$slots["chart-background"] ? (
|
|
615
|
+
fe(y(Ct)),
|
|
616
|
+
a.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
598
617
|
key: 0,
|
|
599
|
-
x:
|
|
600
|
-
y:
|
|
601
|
-
width:
|
|
602
|
-
height:
|
|
618
|
+
x: o.value.left,
|
|
619
|
+
y: o.value.top,
|
|
620
|
+
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
621
|
+
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
603
622
|
style: {
|
|
604
623
|
pointerEvents: "none"
|
|
605
624
|
}
|
|
606
625
|
}, [
|
|
607
|
-
|
|
608
|
-
], 8,
|
|
609
|
-
e.value.style.chart.bars.gradient.show ? (
|
|
610
|
-
(
|
|
626
|
+
z(a.$slots, "chart-background", {}, void 0, !0)
|
|
627
|
+
], 8, Sa)) : g("", !0),
|
|
628
|
+
e.value.style.chart.bars.gradient.show ? (s(), n("defs", $a, [
|
|
629
|
+
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("linearGradient", {
|
|
611
630
|
id: `gradient_${t.id}`,
|
|
612
631
|
x1: "0%",
|
|
613
632
|
y1: "0%",
|
|
614
633
|
x2: "0%",
|
|
615
634
|
y2: "100%"
|
|
616
635
|
}, [
|
|
617
|
-
|
|
636
|
+
Z("stop", {
|
|
618
637
|
offset: "0%",
|
|
619
638
|
"stop-color": t.color
|
|
620
|
-
}, null, 8,
|
|
621
|
-
|
|
639
|
+
}, null, 8, Ta),
|
|
640
|
+
Z("stop", {
|
|
622
641
|
offset: "61.8%",
|
|
623
|
-
"stop-color": y(
|
|
624
|
-
}, null, 8,
|
|
625
|
-
|
|
642
|
+
"stop-color": y(ia)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
643
|
+
}, null, 8, Na),
|
|
644
|
+
Z("stop", {
|
|
626
645
|
offset: "100%",
|
|
627
646
|
"stop-color": t.color
|
|
628
|
-
}, null, 8,
|
|
629
|
-
], 8,
|
|
647
|
+
}, null, 8, Ia)
|
|
648
|
+
], 8, Ma))), 256))
|
|
630
649
|
])) : g("", !0),
|
|
631
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (
|
|
632
|
-
x1:
|
|
633
|
-
x2:
|
|
650
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 2 }, f(P.value, (t, l) => (s(), n("line", {
|
|
651
|
+
x1: o.value.left,
|
|
652
|
+
x2: o.value.right,
|
|
634
653
|
y1: t.y,
|
|
635
654
|
y2: t.y,
|
|
636
|
-
stroke: e.value.style.chart.grid.x.
|
|
637
|
-
"stroke-width":
|
|
655
|
+
stroke: e.value.style.chart.grid.x.linesColor,
|
|
656
|
+
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
657
|
+
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
638
658
|
"stroke-linecap": "round"
|
|
639
|
-
}, null, 8,
|
|
640
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (
|
|
641
|
-
x1:
|
|
642
|
-
x2:
|
|
643
|
-
y1:
|
|
644
|
-
y2:
|
|
645
|
-
stroke: e.value.style.chart.grid.
|
|
646
|
-
"stroke-width":
|
|
659
|
+
}, null, 8, Pa))), 256)) : g("", !0),
|
|
660
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 3 }, f(h.value.end - h.value.start + 1, (t, l) => (s(), n("line", {
|
|
661
|
+
x1: o.value.left,
|
|
662
|
+
x2: o.value.right,
|
|
663
|
+
y1: o.value.top + d.value * l,
|
|
664
|
+
y2: o.value.top + d.value * l,
|
|
665
|
+
stroke: e.value.style.chart.grid.x.linesColor,
|
|
666
|
+
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
667
|
+
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
647
668
|
"stroke-linecap": "round"
|
|
648
|
-
}, null, 8,
|
|
649
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (
|
|
650
|
-
x1:
|
|
651
|
-
x2:
|
|
652
|
-
y1:
|
|
653
|
-
y2:
|
|
654
|
-
stroke: e.value.style.chart.grid.y.
|
|
655
|
-
"stroke-width":
|
|
669
|
+
}, null, 8, Oa))), 256)) : g("", !0),
|
|
670
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 4 }, f(h.value.end - h.value.start + 1, (t, l) => (s(), n("line", {
|
|
671
|
+
x1: o.value.left + d.value * l,
|
|
672
|
+
x2: o.value.left + d.value * l,
|
|
673
|
+
y1: o.value.top,
|
|
674
|
+
y2: o.value.bottom,
|
|
675
|
+
stroke: e.value.style.chart.grid.y.linesColor,
|
|
676
|
+
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
677
|
+
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
656
678
|
"stroke-linecap": "round"
|
|
657
|
-
}, null, 8,
|
|
658
|
-
e.value.style.chart.grid.
|
|
679
|
+
}, null, 8, Ra))), 256)) : g("", !0),
|
|
680
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 5 }, f(P.value, (t, l) => (s(), n("line", {
|
|
659
681
|
x1: t.horizontal_x,
|
|
660
682
|
x2: t.horizontal_x,
|
|
661
|
-
y1:
|
|
662
|
-
y2:
|
|
663
|
-
stroke: e.value.style.chart.grid.
|
|
664
|
-
"stroke-width":
|
|
683
|
+
y1: o.value.top,
|
|
684
|
+
y2: o.value.bottom,
|
|
685
|
+
stroke: e.value.style.chart.grid.y.linesColor,
|
|
686
|
+
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
687
|
+
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
665
688
|
"stroke-linecap": "round"
|
|
666
|
-
}, null, 8,
|
|
667
|
-
(
|
|
668
|
-
a.$slots.pattern ? (
|
|
669
|
-
|
|
689
|
+
}, null, 8, Va))), 256)) : g("", !0),
|
|
690
|
+
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
691
|
+
a.$slots.pattern ? (s(), n("defs", Aa, [
|
|
692
|
+
z(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
670
693
|
])) : g("", !0),
|
|
671
|
-
e.value.orientation === "vertical" ? (
|
|
672
|
-
(
|
|
694
|
+
e.value.orientation === "vertical" ? (s(), n(v, { key: 1 }, [
|
|
695
|
+
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
|
|
673
696
|
x: c,
|
|
674
697
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
675
698
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
@@ -681,25 +704,25 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
681
704
|
"stroke-linecap": "round",
|
|
682
705
|
"stroke-linejoin": "round",
|
|
683
706
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
684
|
-
}, null, 10,
|
|
685
|
-
a.$slots.pattern ? (
|
|
686
|
-
(
|
|
707
|
+
}, null, 10, Ua))), 256)),
|
|
708
|
+
a.$slots.pattern ? (s(), n("g", Da, [
|
|
709
|
+
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
|
|
687
710
|
x: c,
|
|
688
711
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
689
712
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
690
713
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
691
714
|
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
692
|
-
fill: `url(#pattern_${
|
|
715
|
+
fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
|
|
693
716
|
stroke: e.value.style.chart.backgroundColor,
|
|
694
717
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
695
718
|
"stroke-linecap": "round",
|
|
696
719
|
"stroke-linejoin": "round",
|
|
697
720
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
698
|
-
}, null, 10,
|
|
721
|
+
}, null, 10, Fa))), 256))
|
|
699
722
|
])) : g("", !0)
|
|
700
|
-
], 64)) : (
|
|
701
|
-
(
|
|
702
|
-
x: y(xe)(c,
|
|
723
|
+
], 64)) : (s(), n(v, { key: 2 }, [
|
|
724
|
+
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
|
|
725
|
+
x: y(xe)(c, o.value.left),
|
|
703
726
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
704
727
|
width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
705
728
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
@@ -710,129 +733,129 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
710
733
|
"stroke-linecap": "round",
|
|
711
734
|
"stroke-linejoin": "round",
|
|
712
735
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
713
|
-
}, null, 10,
|
|
714
|
-
a.$slots.pattern ? (
|
|
715
|
-
(
|
|
716
|
-
x: y(xe)(c,
|
|
736
|
+
}, null, 10, Ea))), 256)),
|
|
737
|
+
a.$slots.pattern ? (s(), n("g", Ha, [
|
|
738
|
+
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
|
|
739
|
+
x: y(xe)(c, o.value.left),
|
|
717
740
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
718
741
|
width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
719
742
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
720
743
|
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
721
|
-
fill: `url(#pattern_${
|
|
744
|
+
fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
|
|
722
745
|
stroke: e.value.style.chart.backgroundColor,
|
|
723
746
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
724
747
|
"stroke-linecap": "round",
|
|
725
748
|
"stroke-linejoin": "round",
|
|
726
749
|
class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
|
|
727
|
-
}, null, 10,
|
|
750
|
+
}, null, 10, Ba))), 256))
|
|
728
751
|
])) : g("", !0)
|
|
729
752
|
], 64))
|
|
730
753
|
]))), 256)),
|
|
731
|
-
e.value.style.chart.grid.x.showAxis ? (
|
|
754
|
+
e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
|
|
732
755
|
key: 6,
|
|
733
|
-
x1:
|
|
734
|
-
x2:
|
|
735
|
-
y1:
|
|
736
|
-
y2:
|
|
756
|
+
x1: o.value.left,
|
|
757
|
+
x2: o.value.right,
|
|
758
|
+
y1: o.value.bottom,
|
|
759
|
+
y2: o.value.bottom,
|
|
737
760
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
738
761
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
739
762
|
"stroke-linecap": "round",
|
|
740
763
|
"stroke-linejoin": "round"
|
|
741
|
-
}, null, 8,
|
|
742
|
-
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (
|
|
764
|
+
}, null, 8, Wa)) : g("", !0),
|
|
765
|
+
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
|
|
743
766
|
key: 7,
|
|
744
|
-
x1:
|
|
745
|
-
x2:
|
|
746
|
-
y1:
|
|
747
|
-
y2:
|
|
767
|
+
x1: o.value.left,
|
|
768
|
+
x2: o.value.left,
|
|
769
|
+
y1: o.value.top,
|
|
770
|
+
y2: o.value.bottom,
|
|
748
771
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
749
772
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
750
773
|
"stroke-linecap": "round",
|
|
751
774
|
"stroke-linejoin": "round"
|
|
752
|
-
}, null, 8,
|
|
753
|
-
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (
|
|
775
|
+
}, null, 8, Ya)) : g("", !0),
|
|
776
|
+
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
|
|
754
777
|
key: 8,
|
|
755
|
-
x:
|
|
756
|
-
y:
|
|
778
|
+
x: o.value.left + o.value.width / 2,
|
|
779
|
+
y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
757
780
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
758
781
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
759
782
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
760
783
|
"text-anchor": "middle"
|
|
761
|
-
}, T(e.value.style.chart.grid.x.axisName.text), 9,
|
|
762
|
-
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (
|
|
784
|
+
}, T(e.value.style.chart.grid.x.axisName.text), 9, Xa)) : g("", !0),
|
|
785
|
+
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
|
|
763
786
|
key: 9,
|
|
764
|
-
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${
|
|
787
|
+
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
|
|
765
788
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
766
789
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
767
790
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
768
791
|
"text-anchor": "middle"
|
|
769
|
-
}, T(e.value.style.chart.grid.y.axisName.text), 9,
|
|
770
|
-
|
|
771
|
-
(
|
|
772
|
-
(
|
|
773
|
-
|
|
792
|
+
}, T(e.value.style.chart.grid.y.axisName.text), 9, Ga)) : g("", !0),
|
|
793
|
+
L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
|
|
794
|
+
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
795
|
+
(s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
|
|
796
|
+
it(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
774
797
|
key: 0,
|
|
775
798
|
x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
776
799
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
777
800
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
778
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(
|
|
801
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(mt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
779
802
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
780
803
|
"text-anchor": "middle"
|
|
781
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
804
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ke(t.proportions[u] * 100, t, l, u) : he(t.series[u], t, l, u, t.signedSeries[u])), 9, Ja)) : g("", !0)
|
|
782
805
|
], 64))), 256))
|
|
783
806
|
]))), 256)),
|
|
784
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
785
|
-
(
|
|
786
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
807
|
+
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", qa, [
|
|
808
|
+
(s(!0), n(v, null, f(Ze.value, (t, l) => (s(), n(v, null, [
|
|
809
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
787
810
|
key: 0,
|
|
788
|
-
x:
|
|
789
|
-
y:
|
|
811
|
+
x: o.value.left + d.value * l + d.value / 2,
|
|
812
|
+
y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
790
813
|
"text-anchor": "middle",
|
|
791
814
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
792
815
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
793
816
|
fill: e.value.style.chart.bars.totalValues.color
|
|
794
|
-
}, T(
|
|
817
|
+
}, T(he(t.value, t, l, t.sign)), 9, Za)) : g("", !0)
|
|
795
818
|
], 64))), 256))
|
|
796
819
|
])) : g("", !0)
|
|
797
820
|
], 64)) : g("", !0),
|
|
798
|
-
|
|
799
|
-
(
|
|
800
|
-
(
|
|
801
|
-
|
|
821
|
+
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
|
|
822
|
+
(s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
|
|
823
|
+
(s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
|
|
824
|
+
it(t.series[u], t.proportions[u]) ? (s(), n("text", {
|
|
802
825
|
key: 0,
|
|
803
826
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
804
827
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
805
828
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
806
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(
|
|
829
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(mt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
807
830
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
808
831
|
"text-anchor": "middle"
|
|
809
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
832
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ke(t.proportions[u] * 100, t, l, u) : he(t.series[u], t, l, u, t.signedSeries[u])), 9, Ka)) : g("", !0)
|
|
810
833
|
], 64))), 256))
|
|
811
834
|
]))), 256)),
|
|
812
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
813
|
-
(
|
|
814
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
835
|
+
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Qa, [
|
|
836
|
+
(s(!0), n(v, null, f(Ze.value, (t, l) => (s(), n(v, null, [
|
|
837
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
815
838
|
key: 0,
|
|
816
|
-
x:
|
|
817
|
-
y:
|
|
839
|
+
x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
840
|
+
y: o.value.top + d.value * l + d.value / 2,
|
|
818
841
|
"text-anchor": "start",
|
|
819
842
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
820
843
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
821
844
|
fill: e.value.style.chart.bars.totalValues.color
|
|
822
|
-
}, T(
|
|
845
|
+
}, T(he(t.value, t, l, t.sign)), 9, ja)) : g("", !0)
|
|
823
846
|
], 64))), 256))
|
|
824
847
|
])) : g("", !0)
|
|
825
848
|
], 64)) : g("", !0),
|
|
826
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (
|
|
827
|
-
(
|
|
828
|
-
x1:
|
|
829
|
-
x2:
|
|
849
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(v, { key: 12 }, [
|
|
850
|
+
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
|
|
851
|
+
x1: o.value.left,
|
|
852
|
+
x2: o.value.left - 6,
|
|
830
853
|
y1: t.y,
|
|
831
854
|
y2: t.y,
|
|
832
855
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
833
856
|
"stroke-width": 1
|
|
834
|
-
}, null, 8,
|
|
835
|
-
(
|
|
857
|
+
}, null, 8, el))), 256)),
|
|
858
|
+
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
|
|
836
859
|
x: t.x,
|
|
837
860
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
838
861
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -842,75 +865,75 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
842
865
|
}, T(y(ke)(
|
|
843
866
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
844
867
|
t.value,
|
|
845
|
-
y(
|
|
868
|
+
y(K)({
|
|
846
869
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
847
870
|
v: t.value,
|
|
848
871
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
849
872
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
850
873
|
}),
|
|
851
874
|
{ datapoint: t }
|
|
852
|
-
)), 9,
|
|
875
|
+
)), 9, tl))), 256))
|
|
853
876
|
], 64)) : g("", !0),
|
|
854
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (
|
|
855
|
-
(
|
|
877
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(v, { key: 13 }, [
|
|
878
|
+
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
|
|
856
879
|
x1: t.horizontal_x,
|
|
857
880
|
x2: t.horizontal_x,
|
|
858
|
-
y1:
|
|
859
|
-
y2:
|
|
881
|
+
y1: o.value.bottom,
|
|
882
|
+
y2: o.value.bottom + 6,
|
|
860
883
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
861
884
|
"stroke-width": 1,
|
|
862
885
|
"stroke-linecap": "round"
|
|
863
|
-
}, null, 8,
|
|
864
|
-
(
|
|
886
|
+
}, null, 8, al))), 256)),
|
|
887
|
+
(s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
|
|
865
888
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
866
889
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
867
890
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
868
891
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
869
|
-
transform: `translate(${t.horizontal_x}, ${
|
|
892
|
+
transform: `translate(${t.horizontal_x}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
870
893
|
}, T(y(ke)(
|
|
871
894
|
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
872
895
|
t.value,
|
|
873
|
-
y(
|
|
896
|
+
y(K)({
|
|
874
897
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
875
898
|
v: t.value,
|
|
876
899
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
877
900
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
878
901
|
}),
|
|
879
902
|
{ datapoint: t }
|
|
880
|
-
)), 9,
|
|
903
|
+
)), 9, ll))), 256))
|
|
881
904
|
], 64)) : g("", !0),
|
|
882
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (
|
|
883
|
-
a.$slots["time-label"] ? (
|
|
884
|
-
(
|
|
885
|
-
|
|
886
|
-
x:
|
|
887
|
-
y:
|
|
905
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 14 }, [
|
|
906
|
+
a.$slots["time-label"] ? (s(), n("g", rl, [
|
|
907
|
+
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
908
|
+
z(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
909
|
+
x: o.value.left + d.value * l + d.value / 2,
|
|
910
|
+
y: o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
888
911
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
889
912
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
890
|
-
transform: `translate(${
|
|
913
|
+
transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
891
914
|
absoluteIndex: t.absoluteIndex,
|
|
892
915
|
content: t.text,
|
|
893
916
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
894
917
|
show: !0
|
|
895
918
|
}), void 0, !0)
|
|
896
919
|
]))), 256))
|
|
897
|
-
])) : (
|
|
898
|
-
(
|
|
920
|
+
])) : (s(), n("g", sl, [
|
|
921
|
+
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
899
922
|
String(t.text).includes(`
|
|
900
|
-
`) ? (
|
|
923
|
+
`) ? (s(), n("text", {
|
|
901
924
|
key: l + "-multi",
|
|
902
925
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
903
926
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
904
927
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
905
928
|
transform: `
|
|
906
929
|
translate(
|
|
907
|
-
${
|
|
908
|
-
${
|
|
930
|
+
${o.value.left + d.value * l + d.value / 2},
|
|
931
|
+
${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
909
932
|
),
|
|
910
933
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
911
934
|
`,
|
|
912
935
|
style: { cursor: "pointer" },
|
|
913
|
-
innerHTML: y(
|
|
936
|
+
innerHTML: y(na)({
|
|
914
937
|
content: String(t.text),
|
|
915
938
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
916
939
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -918,25 +941,25 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
918
941
|
y: 0
|
|
919
942
|
}),
|
|
920
943
|
onClick: () => ye(t, l)
|
|
921
|
-
}, null, 8,
|
|
944
|
+
}, null, 8, il)) : (s(), n("text", {
|
|
922
945
|
key: l,
|
|
923
946
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
924
947
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
925
948
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
926
949
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
927
|
-
transform: `translate(${
|
|
950
|
+
transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
928
951
|
style: { cursor: "pointer" },
|
|
929
952
|
onClick: () => ye(t, l)
|
|
930
|
-
}, T(t.text), 9,
|
|
953
|
+
}, T(t.text), 9, ol))
|
|
931
954
|
]))), 256))
|
|
932
955
|
]))
|
|
933
956
|
], 64)) : g("", !0),
|
|
934
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (
|
|
935
|
-
a.$slots["time-label"] ? (
|
|
936
|
-
(
|
|
937
|
-
|
|
938
|
-
x:
|
|
939
|
-
y:
|
|
957
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 15 }, [
|
|
958
|
+
a.$slots["time-label"] ? (s(), n("g", nl, [
|
|
959
|
+
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
960
|
+
z(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
961
|
+
x: o.value.left - 8,
|
|
962
|
+
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
940
963
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
941
964
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
942
965
|
transform: null,
|
|
@@ -946,74 +969,74 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
946
969
|
show: !0
|
|
947
970
|
}), void 0, !0)
|
|
948
971
|
]))), 256))
|
|
949
|
-
])) : (
|
|
950
|
-
(
|
|
972
|
+
])) : (s(), n("g", ul, [
|
|
973
|
+
(s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
|
|
951
974
|
String(t.text).includes(`
|
|
952
|
-
`) ? (
|
|
975
|
+
`) ? (s(), n("text", {
|
|
953
976
|
key: 1,
|
|
954
977
|
"text-anchor": "end",
|
|
955
978
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
956
979
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
957
980
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
958
|
-
x:
|
|
959
|
-
y:
|
|
981
|
+
x: o.value.left - 8,
|
|
982
|
+
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
960
983
|
style: { cursor: "pointer" },
|
|
961
984
|
onClick: () => ye(t, l),
|
|
962
|
-
innerHTML: y(
|
|
985
|
+
innerHTML: y(ua)({
|
|
963
986
|
content: String(t.text),
|
|
964
987
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
965
988
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
966
|
-
x:
|
|
989
|
+
x: o.value.left - 8,
|
|
967
990
|
y: 0
|
|
968
991
|
})
|
|
969
|
-
}, null, 8,
|
|
992
|
+
}, null, 8, hl)) : (s(), n("text", {
|
|
970
993
|
key: 0,
|
|
971
994
|
"text-anchor": "end",
|
|
972
995
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
973
996
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
974
997
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
975
|
-
x:
|
|
976
|
-
y:
|
|
998
|
+
x: o.value.left - 8,
|
|
999
|
+
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
977
1000
|
style: {
|
|
978
1001
|
cursor: "pointer"
|
|
979
1002
|
},
|
|
980
1003
|
onClick: () => ye(t, l)
|
|
981
|
-
}, T(t.text), 9,
|
|
1004
|
+
}, T(t.text), 9, cl))
|
|
982
1005
|
]))), 256))
|
|
983
1006
|
]))
|
|
984
1007
|
], 64)) : g("", !0),
|
|
985
|
-
|
|
986
|
-
x:
|
|
987
|
-
y:
|
|
1008
|
+
L.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 16 }, f(h.value.end - h.value.start, (t, l) => (s(), n("rect", {
|
|
1009
|
+
x: o.value.left + l * d.value,
|
|
1010
|
+
y: o.value.top,
|
|
988
1011
|
width: d.value,
|
|
989
|
-
height:
|
|
990
|
-
onClick: (c) =>
|
|
991
|
-
onMouseenter: (c) =>
|
|
1012
|
+
height: o.value.height < 0 ? 0 : o.value.height,
|
|
1013
|
+
onClick: (c) => Qe(l),
|
|
1014
|
+
onMouseenter: (c) => je(l),
|
|
992
1015
|
onMouseleave: r[0] || (r[0] = (c) => {
|
|
993
|
-
|
|
1016
|
+
ae.value = null, ie.value = !1;
|
|
994
1017
|
}),
|
|
995
|
-
fill: l ===
|
|
996
|
-
style:
|
|
997
|
-
}, null, 44,
|
|
998
|
-
|
|
999
|
-
x:
|
|
1000
|
-
y:
|
|
1001
|
-
width:
|
|
1018
|
+
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1019
|
+
style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1020
|
+
}, null, 44, vl))), 256)) : g("", !0),
|
|
1021
|
+
L.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 17 }, f(h.value.end - h.value.start, (t, l) => (s(), n("rect", {
|
|
1022
|
+
x: o.value.left,
|
|
1023
|
+
y: o.value.top + l * d.value,
|
|
1024
|
+
width: o.value.width < 0 ? 0 : o.value.width,
|
|
1002
1025
|
height: d.value,
|
|
1003
|
-
onClick: (c) =>
|
|
1004
|
-
onMouseenter: (c) =>
|
|
1026
|
+
onClick: (c) => Qe(l),
|
|
1027
|
+
onMouseenter: (c) => je(l),
|
|
1005
1028
|
onMouseleave: r[1] || (r[1] = (c) => {
|
|
1006
|
-
|
|
1029
|
+
ae.value = null, ie.value = !1;
|
|
1007
1030
|
}),
|
|
1008
|
-
fill: l ===
|
|
1009
|
-
style:
|
|
1010
|
-
}, null, 44,
|
|
1011
|
-
|
|
1012
|
-
], 12,
|
|
1013
|
-
a.$slots.watermark ? (
|
|
1014
|
-
|
|
1031
|
+
fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1032
|
+
style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1033
|
+
}, null, 44, dl))), 256)) : g("", !0),
|
|
1034
|
+
z(a.$slots, "svg", F(E({ ...o.value })), void 0, !0)
|
|
1035
|
+
], 12, _a)) : g("", !0),
|
|
1036
|
+
a.$slots.watermark ? (s(), n("div", yl, [
|
|
1037
|
+
z(a.$slots, "watermark", F(E({ isPrinting: y(Be) || y(We) })), void 0, !0)
|
|
1015
1038
|
])) : g("", !0),
|
|
1016
|
-
|
|
1039
|
+
Q.value ? g("", !0) : (s(), q(y(St), {
|
|
1017
1040
|
key: 5,
|
|
1018
1041
|
config: {
|
|
1019
1042
|
type: "bar",
|
|
@@ -1028,47 +1051,47 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1028
1051
|
}
|
|
1029
1052
|
}
|
|
1030
1053
|
}, null, 8, ["config"])),
|
|
1031
|
-
|
|
1054
|
+
Z("div", {
|
|
1032
1055
|
ref_key: "chartSlicer",
|
|
1033
|
-
ref:
|
|
1034
|
-
style:
|
|
1056
|
+
ref: Pe,
|
|
1057
|
+
style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1035
1058
|
"data-dom-to-png-ignore": ""
|
|
1036
1059
|
}, [
|
|
1037
|
-
e.value.style.chart.zoom.show &&
|
|
1060
|
+
e.value.style.chart.zoom.show && D.value > 1 ? (s(), q(pa, {
|
|
1038
1061
|
ref_key: "slicerComponent",
|
|
1039
|
-
ref:
|
|
1040
|
-
key: `slicer_${
|
|
1062
|
+
ref: j,
|
|
1063
|
+
key: `slicer_${Re.value}`,
|
|
1041
1064
|
background: e.value.style.chart.zoom.color,
|
|
1042
1065
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1043
1066
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
1044
1067
|
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
1045
|
-
labelLeft: e.value.style.chart.grid.x.timeLabels.values[
|
|
1046
|
-
labelRight: e.value.style.chart.grid.x.timeLabels.values[
|
|
1068
|
+
labelLeft: e.value.style.chart.grid.x.timeLabels.values[h.value.start] ? $.value[0].text : "",
|
|
1069
|
+
labelRight: e.value.style.chart.grid.x.timeLabels.values[h.value.end - 1] ? $.value.at(-1).text : "",
|
|
1047
1070
|
textColor: e.value.style.chart.color,
|
|
1048
1071
|
inputColor: e.value.style.chart.zoom.color,
|
|
1049
1072
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1050
1073
|
max: Math.max(...we.dataset.map((t) => t.series.length)),
|
|
1051
1074
|
min: 0,
|
|
1052
|
-
valueStart:
|
|
1053
|
-
valueEnd:
|
|
1054
|
-
start:
|
|
1055
|
-
"onUpdate:start": r[2] || (r[2] = (t) =>
|
|
1056
|
-
end:
|
|
1057
|
-
"onUpdate:end": r[3] || (r[3] = (t) =>
|
|
1075
|
+
valueStart: h.value.start,
|
|
1076
|
+
valueEnd: h.value.end,
|
|
1077
|
+
start: h.value.start,
|
|
1078
|
+
"onUpdate:start": r[2] || (r[2] = (t) => h.value.start = t),
|
|
1079
|
+
end: h.value.end,
|
|
1080
|
+
"onUpdate:end": r[3] || (r[3] = (t) => h.value.end = t),
|
|
1058
1081
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1059
1082
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...we.dataset.map((t) => t.series.length)),
|
|
1060
1083
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1061
1084
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1062
|
-
onReset:
|
|
1085
|
+
onReset: Je
|
|
1063
1086
|
}, {
|
|
1064
|
-
"reset-action":
|
|
1065
|
-
|
|
1087
|
+
"reset-action": _(({ reset: t }) => [
|
|
1088
|
+
z(a.$slots, "reset-action", F(E({ reset: t })), void 0, !0)
|
|
1066
1089
|
]),
|
|
1067
1090
|
_: 3
|
|
1068
1091
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
|
|
1069
1092
|
], 4),
|
|
1070
|
-
|
|
1071
|
-
show:
|
|
1093
|
+
fe(y($t), {
|
|
1094
|
+
show: L.value.showTooltip && ie.value,
|
|
1072
1095
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1073
1096
|
color: e.value.style.chart.tooltip.color,
|
|
1074
1097
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1078,68 +1101,68 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1078
1101
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1079
1102
|
position: e.value.style.chart.tooltip.position,
|
|
1080
1103
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1081
|
-
parent:
|
|
1082
|
-
content:
|
|
1104
|
+
parent: R.value,
|
|
1105
|
+
content: Ce.value,
|
|
1083
1106
|
isFullscreen: ne.value,
|
|
1084
|
-
isCustom: y(
|
|
1107
|
+
isCustom: y(pt)(e.value.style.chart.tooltip.customFormat)
|
|
1085
1108
|
}, {
|
|
1086
|
-
"tooltip-before":
|
|
1087
|
-
|
|
1109
|
+
"tooltip-before": _(() => [
|
|
1110
|
+
z(a.$slots, "tooltip-before", F(E({ ...Le.value })), void 0, !0)
|
|
1088
1111
|
]),
|
|
1089
|
-
"tooltip-after":
|
|
1090
|
-
|
|
1112
|
+
"tooltip-after": _(() => [
|
|
1113
|
+
z(a.$slots, "tooltip-after", F(E({ ...Le.value })), void 0, !0)
|
|
1091
1114
|
]),
|
|
1092
1115
|
_: 3
|
|
1093
1116
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
1094
|
-
|
|
1117
|
+
Z("div", {
|
|
1095
1118
|
ref_key: "chartLegend",
|
|
1096
1119
|
ref: Ie
|
|
1097
1120
|
}, [
|
|
1098
|
-
e.value.style.chart.legend.show &&
|
|
1121
|
+
e.value.style.chart.legend.show && Q.value ? (s(), q(ma, {
|
|
1099
1122
|
key: 0,
|
|
1100
|
-
legendSet:
|
|
1101
|
-
config:
|
|
1123
|
+
legendSet: ot.value,
|
|
1124
|
+
config: Dt.value,
|
|
1102
1125
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
1103
|
-
},
|
|
1104
|
-
item:
|
|
1105
|
-
|
|
1126
|
+
}, dt({
|
|
1127
|
+
item: _(({ legend: t }) => [
|
|
1128
|
+
Z("div", {
|
|
1106
1129
|
onClick: (l) => t.segregate(),
|
|
1107
|
-
style:
|
|
1108
|
-
}, T(t.name), 13,
|
|
1130
|
+
style: J(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
|
|
1131
|
+
}, T(t.name), 13, gl)
|
|
1109
1132
|
]),
|
|
1110
1133
|
_: 2
|
|
1111
1134
|
}, [
|
|
1112
1135
|
a.$slots.pattern ? {
|
|
1113
1136
|
name: "legend-pattern",
|
|
1114
|
-
fn:
|
|
1115
|
-
|
|
1137
|
+
fn: _(({ legend: t, index: l }) => [
|
|
1138
|
+
fe(ka, {
|
|
1116
1139
|
shape: t.shape,
|
|
1117
1140
|
radius: 30,
|
|
1118
1141
|
stroke: "none",
|
|
1119
1142
|
plot: { x: 30, y: 30 },
|
|
1120
|
-
fill: `url(#pattern_${
|
|
1143
|
+
fill: `url(#pattern_${V.value}_${l})`
|
|
1121
1144
|
}, null, 8, ["shape", "fill"])
|
|
1122
1145
|
]),
|
|
1123
1146
|
key: "0"
|
|
1124
1147
|
} : void 0
|
|
1125
|
-
]), 1032, ["legendSet", "config"])) :
|
|
1148
|
+
]), 1032, ["legendSet", "config"])) : z(a.$slots, "legend", {
|
|
1126
1149
|
key: 1,
|
|
1127
|
-
legend:
|
|
1150
|
+
legend: ot.value
|
|
1128
1151
|
}, void 0, !0)
|
|
1129
1152
|
], 512),
|
|
1130
|
-
a.$slots.source ? (
|
|
1153
|
+
a.$slots.source ? (s(), n("div", {
|
|
1131
1154
|
key: 6,
|
|
1132
1155
|
ref_key: "source",
|
|
1133
|
-
ref:
|
|
1156
|
+
ref: Oe,
|
|
1134
1157
|
dir: "auto"
|
|
1135
1158
|
}, [
|
|
1136
|
-
|
|
1159
|
+
z(a.$slots, "source", {}, void 0, !0)
|
|
1137
1160
|
], 512)) : g("", !0),
|
|
1138
|
-
|
|
1161
|
+
h.value.end - h.value.start < 200 ? (s(), q(y(zt), {
|
|
1139
1162
|
key: 7,
|
|
1140
1163
|
hideDetails: "",
|
|
1141
1164
|
config: {
|
|
1142
|
-
open:
|
|
1165
|
+
open: L.value.showTable,
|
|
1143
1166
|
maxHeight: 1e4,
|
|
1144
1167
|
body: {
|
|
1145
1168
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1151,20 +1174,20 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1151
1174
|
}
|
|
1152
1175
|
}
|
|
1153
1176
|
}, {
|
|
1154
|
-
content:
|
|
1155
|
-
|
|
1156
|
-
colNames:
|
|
1157
|
-
head:
|
|
1158
|
-
body:
|
|
1159
|
-
config:
|
|
1177
|
+
content: _(() => [
|
|
1178
|
+
fe(y(Lt), {
|
|
1179
|
+
colNames: ve.value.colNames,
|
|
1180
|
+
head: ve.value.head,
|
|
1181
|
+
body: ve.value.body,
|
|
1182
|
+
config: ve.value.config,
|
|
1160
1183
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1161
|
-
onClose: r[5] || (r[5] = (t) =>
|
|
1184
|
+
onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
|
|
1162
1185
|
}, {
|
|
1163
|
-
th:
|
|
1164
|
-
|
|
1186
|
+
th: _(({ th: t }) => [
|
|
1187
|
+
Z("div", { innerHTML: t }, null, 8, bl)
|
|
1165
1188
|
]),
|
|
1166
|
-
td:
|
|
1167
|
-
|
|
1189
|
+
td: _(({ td: t }) => [
|
|
1190
|
+
Qt(T(isNaN(Number(t)) ? t : y(K)({
|
|
1168
1191
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1169
1192
|
v: t,
|
|
1170
1193
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1176,9 +1199,9 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
|
|
|
1176
1199
|
]),
|
|
1177
1200
|
_: 1
|
|
1178
1201
|
}, 8, ["config"])) : g("", !0)
|
|
1179
|
-
], 46,
|
|
1202
|
+
], 46, Ca));
|
|
1180
1203
|
}
|
|
1181
|
-
},
|
|
1204
|
+
}, Il = /* @__PURE__ */ La(fl, [["__scopeId", "data-v-95413bca"]]);
|
|
1182
1205
|
export {
|
|
1183
|
-
|
|
1206
|
+
Il as default
|
|
1184
1207
|
};
|