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