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,140 +1,141 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
1
|
+
import { defineAsyncComponent as he, ref as z, computed as U, watch as Ve, shallowRef as ft, onMounted as Tt, onBeforeUnmount as Pt, nextTick as Me, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as fe, createBlock as Fe, createCommentVNode as g, createVNode as ge, unref as f, createSlots as Rt, withCtx as G, renderSlot as M, normalizeProps as ie, guardReactiveProps as ue, toDisplayString as O, createElementVNode as _, Fragment as m, renderList as $, mergeProps as qe } from "vue";
|
|
2
|
+
import { u as Mt, c as Ft, t as Nt, p as q, a as Ut, C as gt, b as Bt, G as Dt, e as Vt, d as He, m as qt, D as mt, X as Ht, j as Wt, k as We, n as Le, i as X, f as D, I as jt, V as pt, v as Z, x as Ne, y as je } from "./index-BzfnuLnw.js";
|
|
3
|
+
import { t as Gt, u as Xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as yt } from "./useNestedProp-DorElw91.js";
|
|
5
|
+
import { u as Zt } from "./usePrinter-C9qkgv0r.js";
|
|
6
|
+
import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { S as Jt } from "./Slicer-nrMi5hzj.js";
|
|
8
|
+
import { u as Qt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
9
|
+
import Kt from "./img-ku4zevVD.js";
|
|
10
|
+
import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
11
|
const A = {
|
|
11
12
|
LINE: "LINE",
|
|
12
13
|
BAR: "BAR",
|
|
13
14
|
DONUT: "DONUT"
|
|
14
|
-
},
|
|
15
|
-
function
|
|
16
|
-
let
|
|
17
|
-
if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), ze(c) && (Y(c) && (c.length < C ?
|
|
18
|
-
if (!
|
|
15
|
+
}, ta = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
16
|
+
function aa({ dataset: c, barLineSwitch: C = 6 }) {
|
|
17
|
+
let y = null, T = null, H = 0;
|
|
18
|
+
if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), ze(c) && (Y(c) && (c.length < C ? y = A.BAR : y = A.LINE, T = c, H = c.length), Ue(c))) {
|
|
19
|
+
if (!oa(c))
|
|
19
20
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
21
|
+
const ye = Object.keys(c[0]), $e = Object.values(c[0]);
|
|
22
|
+
if (!ye.some((F) => na(F)))
|
|
22
23
|
return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
|
|
23
|
-
xt($e, (F) => typeof F == "number") && (
|
|
24
|
+
xt($e, (F) => typeof F == "number") && (y = A.DONUT, T = c), xt($e, (F) => Array.isArray(F) && Y(F)) && (kt(c) > C ? y = A.LINE : y = A.BAR, H = kt(c), T = c.map((F) => ({
|
|
24
25
|
...F,
|
|
25
|
-
data:
|
|
26
|
-
}))), c = c.map((F) =>
|
|
26
|
+
data: ia(F, (B) => Y(B))
|
|
27
|
+
}))), c = c.map((F) => bt(F)), T = T.map((F) => bt(F));
|
|
27
28
|
}
|
|
28
|
-
return ze(c) && [...new Set(c.flatMap((
|
|
29
|
+
return ze(c) && [...new Set(c.flatMap((ye) => Array.isArray(ye)))][0], {
|
|
29
30
|
dataset: c,
|
|
30
|
-
type:
|
|
31
|
-
usableDataset:
|
|
31
|
+
type: y,
|
|
32
|
+
usableDataset: T,
|
|
32
33
|
maxSeriesLength: H
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function St(c) {
|
|
36
37
|
return !c || ze(c) && !c.length;
|
|
37
38
|
}
|
|
38
39
|
function ze(c) {
|
|
39
40
|
return Array.isArray(c);
|
|
40
41
|
}
|
|
41
42
|
function Y(c) {
|
|
42
|
-
if (!ze(c) ||
|
|
43
|
-
const C = c.map((
|
|
44
|
-
return ![...new Set(C.flatMap((
|
|
43
|
+
if (!ze(c) || St(c)) return !1;
|
|
44
|
+
const C = c.map((y) => Number(y));
|
|
45
|
+
return ![...new Set(C.flatMap((y) => typeof y == "number" && !isNaN(y)))].includes(!1);
|
|
45
46
|
}
|
|
46
47
|
function Ue(c) {
|
|
47
|
-
return !ze(c) ||
|
|
48
|
+
return !ze(c) || St(c) || !![...new Set(c.flatMap((y) => typeof y == "object" && !Array.isArray(y)))].includes(!1) ? !1 : !c.map((y) => Object.keys(y).length > 0).includes(!1);
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
50
|
+
function la(c, C) {
|
|
51
|
+
const y = Object.keys(c).sort(), T = Object.keys(C).sort();
|
|
52
|
+
if (y.length !== T.length)
|
|
52
53
|
return !1;
|
|
53
|
-
for (let H = 0; H <
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
54
|
+
for (let H = 0; H < y.length; H += 1) {
|
|
55
|
+
const me = y[H], pe = T[H];
|
|
56
|
+
if (me !== pe || typeof c[me] != typeof C[pe])
|
|
56
57
|
return !1;
|
|
57
58
|
}
|
|
58
59
|
return !0;
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function oa(c) {
|
|
61
62
|
if (c.length <= 1) return !0;
|
|
62
63
|
for (let C = 0; C < c.length; C += 1)
|
|
63
|
-
for (let
|
|
64
|
-
if (!
|
|
64
|
+
for (let y = C + 1; y < c.length; y += 1)
|
|
65
|
+
if (!la(c[C], c[y]))
|
|
65
66
|
return !1;
|
|
66
67
|
return !0;
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
69
|
+
function na(c) {
|
|
70
|
+
return ta.includes(c.toUpperCase());
|
|
70
71
|
}
|
|
71
72
|
function xt(c, C) {
|
|
72
|
-
let
|
|
73
|
-
for (let
|
|
74
|
-
|
|
75
|
-
return
|
|
73
|
+
let y = [];
|
|
74
|
+
for (let T = 0; T < c.length; T += 1)
|
|
75
|
+
y.push(C(c[T]));
|
|
76
|
+
return y.includes(!0);
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((
|
|
78
|
+
function kt(c) {
|
|
79
|
+
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((y) => Y(y)).map((y) => y.length)));
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
return Object.values(c).filter((
|
|
81
|
+
function ia(c, C) {
|
|
82
|
+
return Object.values(c).filter((y) => C(y))[0];
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function bt(c) {
|
|
84
85
|
const C = {};
|
|
85
|
-
for (let
|
|
86
|
-
c.hasOwnProperty(
|
|
86
|
+
for (let y in c)
|
|
87
|
+
c.hasOwnProperty(y) && (C[y.toUpperCase()] = c[y]);
|
|
87
88
|
return C;
|
|
88
89
|
}
|
|
89
|
-
const
|
|
90
|
+
const ua = ["id"], ra = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], va = ["x", "y", "width", "height"], da = ["width", "height"], ca = ["id"], ha = ["id"], fa = ["id"], ga = ["flood-color"], ma = {
|
|
90
91
|
key: 0,
|
|
91
92
|
class: "donut-label-connectors"
|
|
92
|
-
},
|
|
93
|
+
}, pa = ["d", "stroke", "stroke-width", "filter"], ya = ["cx", "cy", "r", "fill", "filter"], xa = { class: "donut" }, ka = ["d", "fill", "stroke", "stroke-width", "filter"], ba = ["d", "onMouseenter", "onClick"], Sa = {
|
|
93
94
|
key: 1,
|
|
94
95
|
class: "donut-labels quick-animation"
|
|
95
|
-
},
|
|
96
|
+
}, wa = ["cx", "cy", "fill", "stroke", "filter"], Aa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], _a = ["text-anchor", "x", "y", "fill", "font-size", "filter"], La = {
|
|
96
97
|
key: 2,
|
|
97
98
|
class: "donut-hollow quick-animation"
|
|
98
|
-
},
|
|
99
|
+
}, za = ["x", "y", "font-size", "fill"], $a = ["x", "y", "font-size", "fill"], Ca = {
|
|
99
100
|
key: 0,
|
|
100
101
|
class: "line-grid"
|
|
101
|
-
},
|
|
102
|
+
}, Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = {
|
|
102
103
|
key: 1,
|
|
103
104
|
class: "line-axis"
|
|
104
|
-
},
|
|
105
|
+
}, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = {
|
|
105
106
|
key: 2,
|
|
106
107
|
class: "yLabels"
|
|
107
|
-
},
|
|
108
|
+
}, Ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fa = ["x", "y", "font-size", "fill"], Na = {
|
|
108
109
|
key: 3,
|
|
109
110
|
class: "periodLabels"
|
|
110
|
-
},
|
|
111
|
+
}, Ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = { key: 1 }, Da = ["font-size", "text-anchor", "fill", "transform"], Va = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], qa = { class: "plots" }, Ha = { class: "line-plot-series" }, Wa = ["d", "stroke", "stroke-width"], ja = ["d", "stroke", "stroke-width"], Ga = ["d", "stroke", "stroke-width"], Xa = ["d", "stroke", "stroke-width"], Za = ["cx", "cy", "fill", "stroke"], Ya = {
|
|
111
112
|
key: 4,
|
|
112
113
|
class: "dataLabels"
|
|
113
|
-
},
|
|
114
|
+
}, Ja = ["font-size", "fill", "x", "y"], Qa = { class: "tooltip-traps" }, Ka = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], el = {
|
|
114
115
|
key: 0,
|
|
115
116
|
class: "line-grid"
|
|
116
|
-
},
|
|
117
|
+
}, tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = {
|
|
117
118
|
key: 1,
|
|
118
119
|
class: "line-axis"
|
|
119
|
-
},
|
|
120
|
+
}, ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = {
|
|
120
121
|
key: 2,
|
|
121
122
|
class: "yLabels"
|
|
122
|
-
},
|
|
123
|
+
}, ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["x", "y", "font-size", "fill"], sl = {
|
|
123
124
|
key: 3,
|
|
124
125
|
class: "periodLabels"
|
|
125
|
-
},
|
|
126
|
+
}, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = ["font-size", "text-anchor", "transform", "fill"], cl = { class: "plots" }, hl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], fl = ["to"], gl = ["from", "to"], ml = {
|
|
126
127
|
key: 4,
|
|
127
128
|
class: "dataLabels"
|
|
128
|
-
},
|
|
129
|
+
}, pl = ["x", "y", "font-size", "fill"], yl = { class: "tooltip-traps" }, xl = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], kl = {
|
|
129
130
|
key: 6,
|
|
130
131
|
class: "axis-labels"
|
|
131
|
-
},
|
|
132
|
+
}, bl = { key: 0 }, Sl = ["font-size", "fill", "x", "y"], wl = { key: 1 }, Al = ["font-size", "fill", "x", "y"], _l = { key: 2 }, Ll = ["font-size", "fill", "transform"], zl = { key: 3 }, $l = ["font-size", "fill", "transform"], Cl = {
|
|
132
133
|
key: 6,
|
|
133
134
|
class: "vue-data-ui-watermark"
|
|
134
|
-
},
|
|
135
|
+
}, Il = ["onClick"], El = ["onClick"], Ol = ["onClick"], Tl = {
|
|
135
136
|
key: 1,
|
|
136
137
|
class: "vue-ui-quick-chart-not-processable"
|
|
137
|
-
},
|
|
138
|
+
}, Pl = {
|
|
138
139
|
__name: "vue-ui-quick-chart",
|
|
139
140
|
props: {
|
|
140
141
|
config: {
|
|
@@ -151,35 +152,35 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
154
|
emits: ["selectDatapoint", "selectLegend"],
|
|
154
|
-
setup(c, { expose: C, emit:
|
|
155
|
-
const
|
|
155
|
+
setup(c, { expose: C, emit: y }) {
|
|
156
|
+
const T = he(() => import("./BaseIcon-BmZ4MREl.js")), H = he(() => import("./PackageVersion-CAkNkiIG.js")), me = he(() => import("./PenAndPaper-Cx1-5zdD.js")), pe = he(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), ye = he(() => import("./Tooltip-NwATo4ZJ.js")), $e = he(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_quick_chart: F } = Mt(), B = c, J = z(null), Ge = z(null), Xe = z(null), Ze = z(null), Q = z(Ft()), te = z(!1), xe = z(null), ae = z(""), W = z(null), Ye = z(null), Je = z(null), w = z([]), Qe = z(0), Ce = z(0), e = U({
|
|
156
157
|
get: () => at(),
|
|
157
158
|
set: (o) => o
|
|
158
|
-
}), { svgRef: Ke } =
|
|
159
|
+
}), { svgRef: Ke } = Yt({ config: { text: e.value.title } }), wt = U(() => e.value.showUserOptionsOnChartHover), et = U(() => e.value.keepUserOptionsStateOnChartLeave), Ie = z(!e.value.showUserOptionsOnChartHover);
|
|
159
160
|
function tt(o = !1) {
|
|
160
|
-
|
|
161
|
+
wt.value && (Ie.value = o);
|
|
161
162
|
}
|
|
162
163
|
function at() {
|
|
163
|
-
const o =
|
|
164
|
+
const o = yt({
|
|
164
165
|
userConfig: B.config,
|
|
165
166
|
defaultConfig: F
|
|
166
167
|
});
|
|
167
168
|
let s = {};
|
|
168
169
|
return o.theme ? s = {
|
|
169
|
-
...
|
|
170
|
-
userConfig:
|
|
170
|
+
...yt({
|
|
171
|
+
userConfig: Ut.vue_ui_quick_chart[o.theme] || B.config,
|
|
171
172
|
defaultConfig: o
|
|
172
173
|
}),
|
|
173
|
-
customPalette:
|
|
174
|
-
} : s = o, B.config &&
|
|
174
|
+
customPalette: Nt[o.theme] || q
|
|
175
|
+
} : s = o, B.config && gt(B.config, "zoomStartIndex") ? s.zoomStartIndex = B.config.zoomStartIndex : s.zoomStartIndex = null, B.config && gt(B.config, "zoomEndIndex") ? s.zoomEndIndex = B.config.zoomEndIndex : s.zoomEndIndex = null, s;
|
|
175
176
|
}
|
|
176
177
|
Ve(() => B.config, (o) => {
|
|
177
178
|
e.value = at(), b.value.width = e.value.width, b.value.height = e.value.height, Ie.value = !e.value.showUserOptionsOnChartHover, nt(), Se.value.showTooltip = e.value.showTooltip;
|
|
178
179
|
}, { deep: !0 }), Ve(() => B.dataset, (o) => {
|
|
179
|
-
p.value = be.value,
|
|
180
|
+
p.value = be.value, x.value.start = 0, x.value.end = p.value.maxSeriesLength, Ce.value += 1;
|
|
180
181
|
}, { deep: !0 });
|
|
181
|
-
const ke = U(() =>
|
|
182
|
-
const o =
|
|
182
|
+
const ke = U(() => Bt(e.value.customPalette)), re = y, be = U(() => {
|
|
183
|
+
const o = aa({ dataset: Dt(B.dataset, [
|
|
183
184
|
"serie",
|
|
184
185
|
"series",
|
|
185
186
|
"data",
|
|
@@ -188,31 +189,31 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
188
189
|
"num"
|
|
189
190
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
190
191
|
return o || console.error("VueUiQuickChart : Dataset is not processable"), o;
|
|
191
|
-
}), p = z(be.value),
|
|
192
|
+
}), p = z(be.value), At = U(() => !!p.value), L = U(() => p.value ? p.value.type : null);
|
|
192
193
|
Ve(() => L.value, (o) => {
|
|
193
|
-
o ||
|
|
194
|
+
o || Vt({
|
|
194
195
|
componentName: "VueUiQuickChart",
|
|
195
196
|
type: "dataset"
|
|
196
197
|
});
|
|
197
198
|
}, { immediate: !0 });
|
|
198
|
-
const { isPrinting: Ee, isImaging:
|
|
199
|
-
elementId: `${L.value}_${
|
|
199
|
+
const { isPrinting: Ee, isImaging: Oe, generatePdf: lt, generateImage: ot } = Zt({
|
|
200
|
+
elementId: `${L.value}_${Q.value}`,
|
|
200
201
|
fileName: e.value.title || L.value,
|
|
201
202
|
options: e.value.userOptionsPrint
|
|
202
|
-
}),
|
|
203
|
+
}), _t = U(() => e.value.showUserOptions && !e.value.title), b = z({
|
|
203
204
|
width: e.value.width,
|
|
204
205
|
height: e.value.height
|
|
205
206
|
}), Se = z({
|
|
206
207
|
showTooltip: e.value.showTooltip
|
|
207
|
-
}),
|
|
208
|
+
}), K = ft(null), se = ft(null);
|
|
208
209
|
Tt(() => {
|
|
209
210
|
nt();
|
|
210
211
|
});
|
|
211
212
|
function nt() {
|
|
212
213
|
if (e.value.responsive) {
|
|
213
|
-
const o =
|
|
214
|
-
const { width: s, height: t } =
|
|
215
|
-
chart:
|
|
214
|
+
const o = Gt(() => {
|
|
215
|
+
const { width: s, height: t } = Xt({
|
|
216
|
+
chart: J.value,
|
|
216
217
|
title: e.value.title ? Ge.value : null,
|
|
217
218
|
legend: e.value.showLegend ? Xe.value : null,
|
|
218
219
|
slicer: [A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? Ze.value : null,
|
|
@@ -223,14 +224,14 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
223
224
|
b.value.width = s, b.value.height = t;
|
|
224
225
|
});
|
|
225
226
|
});
|
|
226
|
-
|
|
227
|
+
K.value && (se.value && K.value.unobserve(se.value), K.value.disconnect()), K.value = new ResizeObserver(o), se.value = J.value.parentNode, K.value.observe(se.value);
|
|
227
228
|
}
|
|
228
229
|
dt();
|
|
229
230
|
}
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
Pt(() => {
|
|
232
|
+
K.value && (se.value && K.value.unobserve(se.value), K.value.disconnect());
|
|
232
233
|
});
|
|
233
|
-
const
|
|
234
|
+
const Lt = U(() => {
|
|
234
235
|
switch (L.value) {
|
|
235
236
|
case A.LINE:
|
|
236
237
|
return `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`;
|
|
@@ -246,19 +247,19 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
246
247
|
return [...o].map((s) => s.value).reduce((s, t) => s + t, 0);
|
|
247
248
|
}
|
|
248
249
|
function we(o) {
|
|
249
|
-
return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${
|
|
250
|
+
return e.value.blurOnHover && ![null, void 0].includes(W.value) && W.value !== o ? `url(#blur_${Q.value})` : "";
|
|
250
251
|
}
|
|
251
252
|
function ut(o, s) {
|
|
252
253
|
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
|
|
253
254
|
}
|
|
254
|
-
const rt = z(null), st = z(null),
|
|
255
|
-
function
|
|
256
|
-
|
|
255
|
+
const rt = z(null), st = z(null), Te = z(!1);
|
|
256
|
+
function zt(o, s) {
|
|
257
|
+
Te.value = !0;
|
|
257
258
|
let t = o.value;
|
|
258
259
|
const u = be.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
|
|
259
260
|
if (w.value.includes(o.id)) {
|
|
260
261
|
let r = function() {
|
|
261
|
-
t > u ? (
|
|
262
|
+
t > u ? (Te.value = !1, cancelAnimationFrame(st.value), p.value = {
|
|
262
263
|
...p.value,
|
|
263
264
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
264
265
|
...h,
|
|
@@ -277,7 +278,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
277
278
|
w.value = w.value.filter((h) => h !== o.id), r();
|
|
278
279
|
} else if (s.length > 1) {
|
|
279
280
|
let r = function() {
|
|
280
|
-
t < u / 100 ? (
|
|
281
|
+
t < u / 100 ? (Te.value = !1, cancelAnimationFrame(rt.value), w.value.push(o.id), p.value = {
|
|
281
282
|
...p.value,
|
|
282
283
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
283
284
|
...h,
|
|
@@ -297,7 +298,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
const j = z(null);
|
|
300
|
-
function
|
|
301
|
+
function $t(o) {
|
|
301
302
|
j.value = o;
|
|
302
303
|
}
|
|
303
304
|
const vt = U(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = U(() => {
|
|
@@ -327,7 +328,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
327
328
|
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(i.toFixed(0))).length);
|
|
328
329
|
}
|
|
329
330
|
function r({ datapoint: n, seriesIndex: i }) {
|
|
330
|
-
|
|
331
|
+
xe.value = { datapoint: n, seriesIndex: i, config: e.value, dataset: o }, W.value = n.id;
|
|
331
332
|
const S = e.value.tooltipCustomFormat;
|
|
332
333
|
if (Ne(S) && je(() => S({
|
|
333
334
|
datapoint: n,
|
|
@@ -335,7 +336,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
335
336
|
series: o,
|
|
336
337
|
config: e.value
|
|
337
338
|
})))
|
|
338
|
-
|
|
339
|
+
ae.value = S({
|
|
339
340
|
datapoint: n,
|
|
340
341
|
seriesIndex: i,
|
|
341
342
|
series: o,
|
|
@@ -353,25 +354,25 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
353
354
|
r: e.value.dataLabelRoundingValue
|
|
354
355
|
}),
|
|
355
356
|
{ datapoint: n, seriesIndex: i }
|
|
356
|
-
)}</b>`, k += `<span>(${D({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`,
|
|
357
|
+
)}</b>`, k += `<span>(${D({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, ae.value = `<div>${k}</div>`;
|
|
357
358
|
}
|
|
358
|
-
|
|
359
|
+
te.value = !0;
|
|
359
360
|
}
|
|
360
361
|
function h() {
|
|
361
|
-
|
|
362
|
+
te.value = !1, W.value = null, j.value = null;
|
|
362
363
|
}
|
|
363
364
|
const P = {
|
|
364
365
|
centerX: b.value.width / 2,
|
|
365
366
|
centerY: b.value.height / 2
|
|
366
|
-
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, i) => n + i, 0),
|
|
367
|
+
}, V = o.filter((n) => !w.value.includes(n.id)).map((n) => n.value || 0).reduce((n, i) => n + i, 0), de = o.map((n, i) => ({
|
|
367
368
|
...n,
|
|
368
369
|
proportion: (n.value || 0) / V,
|
|
369
370
|
value: n.value || 0,
|
|
370
371
|
absoluteValue: be.value.dataset.find((S, k) => `donut_${k}` === n.id).VALUE
|
|
371
|
-
})),
|
|
372
|
+
})), le = b.value.width / 2, ce = b.value.height / 2, oe = b.value.height * e.value.donutRadiusRatio;
|
|
372
373
|
return {
|
|
373
|
-
dataset:
|
|
374
|
-
legend:
|
|
374
|
+
dataset: de.filter((n) => !w.value.includes(n.id)),
|
|
375
|
+
legend: de,
|
|
375
376
|
drawingArea: P,
|
|
376
377
|
displayArcPercentage: s,
|
|
377
378
|
isArcBigEnough: t,
|
|
@@ -379,15 +380,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
379
380
|
killTooltip: h,
|
|
380
381
|
getSpaces: u,
|
|
381
382
|
total: V,
|
|
382
|
-
cx:
|
|
383
|
-
cy:
|
|
384
|
-
radius:
|
|
385
|
-
chart:
|
|
383
|
+
cx: le,
|
|
384
|
+
cy: ce,
|
|
385
|
+
radius: oe,
|
|
386
|
+
chart: qt(
|
|
386
387
|
{ series: o.filter((n) => !w.value.includes(n.id)) },
|
|
387
|
-
ae,
|
|
388
|
-
de,
|
|
389
|
-
le,
|
|
390
388
|
le,
|
|
389
|
+
ce,
|
|
390
|
+
oe,
|
|
391
|
+
oe,
|
|
391
392
|
1.99999,
|
|
392
393
|
2,
|
|
393
394
|
1,
|
|
@@ -396,25 +397,25 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
396
397
|
b.value.height * vt.value
|
|
397
398
|
)
|
|
398
399
|
};
|
|
399
|
-
}),
|
|
400
|
+
}), x = z({
|
|
400
401
|
start: 0,
|
|
401
402
|
end: p.value.maxSeriesLength
|
|
402
403
|
});
|
|
403
|
-
function
|
|
404
|
+
function Ct() {
|
|
404
405
|
dt();
|
|
405
406
|
}
|
|
406
|
-
const
|
|
407
|
+
const ve = z(null);
|
|
407
408
|
async function dt() {
|
|
408
|
-
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) &&
|
|
409
|
+
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && ve.value ? (e.value.zoomStartIndex !== null && (await Me(), await Me(), ve.value && ve.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Me(), await Me(), ve.value && ve.value.setEndValue(It(e.value.zoomEndIndex + 1)))) : (x.value = {
|
|
409
410
|
start: 0,
|
|
410
411
|
end: p.value.maxSeriesLength
|
|
411
412
|
}, Ce.value += 1);
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
+
function It(o) {
|
|
414
415
|
const s = p.value.maxSeriesLength;
|
|
415
416
|
return o > s ? s : o < 0 || e.value.zoomStartIndex !== null && o < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : o;
|
|
416
417
|
}
|
|
417
|
-
const
|
|
418
|
+
const Et = U(() => {
|
|
418
419
|
if (!e.value.zoomMinimap.show || L.value === A.DONUT) return [];
|
|
419
420
|
let o = [];
|
|
420
421
|
Y(p.value.dataset) && (o = p.value.dataset), Ue(p.value.dataset) && (o = p.value.dataset.map((r, h) => ({
|
|
@@ -446,8 +447,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
446
447
|
let t = [];
|
|
447
448
|
Y(p.value.dataset) && (t = [
|
|
448
449
|
{
|
|
449
|
-
values: p.value.dataset.slice(
|
|
450
|
-
absoluteIndices: p.value.dataset.map((n, i) => i).slice(
|
|
450
|
+
values: p.value.dataset.slice(x.value.start, x.value.end),
|
|
451
|
+
absoluteIndices: p.value.dataset.map((n, i) => i).slice(x.value.start, x.value.end),
|
|
451
452
|
name: e.value.title,
|
|
452
453
|
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
453
454
|
id: "line_0"
|
|
@@ -460,18 +461,18 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
460
461
|
})).map((n, i) => ({
|
|
461
462
|
...n,
|
|
462
463
|
color: n.COLOR ? He(n.COLOR) : ke.value[i + e.value.paletteStartIndex] || q[i + e.value.paletteStartIndex] || q[(i + e.value.paletteStartIndex) % q.length],
|
|
463
|
-
values: n.values.slice(
|
|
464
|
-
absoluteIndices: n.values.map((S, k) => k).slice(
|
|
464
|
+
values: n.values.slice(x.value.start, x.value.end),
|
|
465
|
+
absoluteIndices: n.values.map((S, k) => k).slice(x.value.start, x.value.end)
|
|
465
466
|
})));
|
|
466
467
|
const u = {
|
|
467
468
|
max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
468
469
|
min: Math.min(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
469
470
|
maxSeries: Math.max(...t.map((n) => n.values.length))
|
|
470
|
-
}, r =
|
|
471
|
+
}, r = mt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, de = r.ticks.map((n) => ({
|
|
471
472
|
y: s.bottom - s.height * ((n + h) / (r.max + h)),
|
|
472
473
|
x: s.left - 8,
|
|
473
474
|
value: n
|
|
474
|
-
})),
|
|
475
|
+
})), le = t.map((n, i) => ({
|
|
475
476
|
...n,
|
|
476
477
|
coordinates: n.values.map((S, k) => ({
|
|
477
478
|
x: s.left + V * (k + 1) - V / 2,
|
|
@@ -487,14 +488,14 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
487
488
|
linePath: i.join(" ")
|
|
488
489
|
};
|
|
489
490
|
});
|
|
490
|
-
function
|
|
491
|
+
function ce(n) {
|
|
491
492
|
W.value = n, j.value = n;
|
|
492
493
|
const i = t.map((k) => ({
|
|
493
494
|
...k,
|
|
494
495
|
value: k.values[n],
|
|
495
496
|
absoluteIndex: k.absoluteIndices[n]
|
|
496
497
|
})).filter((k) => !w.value.includes(k.id));
|
|
497
|
-
|
|
498
|
+
xe.value = { datapoint: i, seriesIndex: n, config: e.value, dataset: t };
|
|
498
499
|
const S = e.value.tooltipCustomFormat;
|
|
499
500
|
if (Ne(S) && je(() => S({
|
|
500
501
|
datapoint: i,
|
|
@@ -502,7 +503,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
502
503
|
series: t,
|
|
503
504
|
config: e.value
|
|
504
505
|
})))
|
|
505
|
-
|
|
506
|
+
ae.value = S({
|
|
506
507
|
datapoint: i,
|
|
507
508
|
seriesIndex: n,
|
|
508
509
|
series: t,
|
|
@@ -510,7 +511,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
510
511
|
});
|
|
511
512
|
else {
|
|
512
513
|
let k = "";
|
|
513
|
-
|
|
514
|
+
ee.value[i[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${ee.value[i[0].absoluteIndex].text}</div>`), i.forEach((E, N) => {
|
|
514
515
|
k += `
|
|
515
516
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
516
517
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${E.color}"/></svg>
|
|
@@ -529,23 +530,23 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
529
530
|
</b>
|
|
530
531
|
</div>
|
|
531
532
|
`;
|
|
532
|
-
}),
|
|
533
|
+
}), ae.value = k;
|
|
533
534
|
}
|
|
534
|
-
|
|
535
|
+
te.value = !0;
|
|
535
536
|
}
|
|
536
|
-
function
|
|
537
|
-
W.value = null, j.value = null,
|
|
537
|
+
function oe() {
|
|
538
|
+
W.value = null, j.value = null, te.value = !1;
|
|
538
539
|
}
|
|
539
540
|
return {
|
|
540
541
|
absoluteZero: P,
|
|
541
|
-
dataset:
|
|
542
|
-
legend:
|
|
542
|
+
dataset: le.filter((n) => !w.value.includes(n.id)),
|
|
543
|
+
legend: le,
|
|
543
544
|
drawingArea: s,
|
|
544
545
|
extremes: u,
|
|
545
546
|
slotSize: V,
|
|
546
|
-
yLabels:
|
|
547
|
-
useTooltip:
|
|
548
|
-
killTooltip:
|
|
547
|
+
yLabels: de,
|
|
548
|
+
useTooltip: ce,
|
|
549
|
+
killTooltip: oe
|
|
549
550
|
};
|
|
550
551
|
}), d = U(() => {
|
|
551
552
|
if (L.value !== A.BAR) return null;
|
|
@@ -563,8 +564,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
563
564
|
let t = [];
|
|
564
565
|
Y(p.value.dataset) && (t = [
|
|
565
566
|
{
|
|
566
|
-
values: p.value.dataset.slice(
|
|
567
|
-
absoluteIndices: p.value.dataset.map((i, S) => S).slice(
|
|
567
|
+
values: p.value.dataset.slice(x.value.start, x.value.end),
|
|
568
|
+
absoluteIndices: p.value.dataset.map((i, S) => S).slice(x.value.start, x.value.end),
|
|
568
569
|
name: e.value.title,
|
|
569
570
|
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
570
571
|
id: "bar_0"
|
|
@@ -577,21 +578,21 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
577
578
|
})).map((i, S) => ({
|
|
578
579
|
...i,
|
|
579
580
|
color: i.COLOR ? He(i.COLOR) : ke.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
|
|
580
|
-
values: i.values.slice(
|
|
581
|
-
absoluteIndices: i.values.map((k, E) => E).slice(
|
|
581
|
+
values: i.values.slice(x.value.start, x.value.end),
|
|
582
|
+
absoluteIndices: i.values.map((k, E) => E).slice(x.value.start, x.value.end)
|
|
582
583
|
})));
|
|
583
584
|
const u = {
|
|
584
585
|
max: Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
585
586
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
586
587
|
maxSeries: Math.max(...t.filter((i) => !w.value.includes(i.id)).map((i) => i.values.length))
|
|
587
|
-
}, r =
|
|
588
|
+
}, r = mt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, P = s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, de = r.ticks.map((i) => ({
|
|
588
589
|
y: s.bottom - s.height * ((i + h) / (r.max + h)),
|
|
589
590
|
x: s.left - 8,
|
|
590
591
|
value: i
|
|
591
|
-
})),
|
|
592
|
+
})), le = t.map((i, S) => ({
|
|
592
593
|
...i,
|
|
593
594
|
coordinates: i.values.map((k, E) => {
|
|
594
|
-
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / Math.abs(u.min) * (s.height - P), De = h / (u.max + h) * s.height, _e = V / t.filter((
|
|
595
|
+
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / Math.abs(u.min) * (s.height - P), De = h / (u.max + h) * s.height, _e = V / t.filter((ne) => !w.value.includes(ne.id)).length - e.value.barGap / t.filter((ne) => !w.value.includes(ne.id)).length;
|
|
595
596
|
return {
|
|
596
597
|
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
597
598
|
y: k > 0 ? s.bottom - N : P,
|
|
@@ -600,10 +601,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
600
601
|
width: _e
|
|
601
602
|
};
|
|
602
603
|
})
|
|
603
|
-
})),
|
|
604
|
+
})), ce = t.filter((i) => !w.value.includes(i.id)).map((i, S) => ({
|
|
604
605
|
...i,
|
|
605
606
|
coordinates: i.values.map((k, E) => {
|
|
606
|
-
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / (u.max + h) * s.height, De = h / (u.max + h) * s.height, _e = V / t.filter((
|
|
607
|
+
const N = (k + h) / (u.max + h) * s.height, Ae = Math.abs(k) / (u.max + h) * s.height, De = h / (u.max + h) * s.height, _e = V / t.filter((ne) => !w.value.includes(ne.id)).length - e.value.barGap / t.filter((ne) => !w.value.includes(ne.id)).length;
|
|
607
608
|
return {
|
|
608
609
|
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
609
610
|
y: k > 0 ? s.bottom - N : P,
|
|
@@ -613,14 +614,14 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
613
614
|
};
|
|
614
615
|
})
|
|
615
616
|
}));
|
|
616
|
-
function
|
|
617
|
+
function oe(i) {
|
|
617
618
|
W.value = i, j.value = i;
|
|
618
619
|
const S = t.map((E) => ({
|
|
619
620
|
...E,
|
|
620
621
|
value: E.values[i],
|
|
621
622
|
absoluteIndex: E.absoluteIndices[i]
|
|
622
623
|
})).filter((E) => !w.value.includes(E.id));
|
|
623
|
-
|
|
624
|
+
xe.value = { datapoint: S, seriesIndex: i, config: e.value, dataset: t };
|
|
624
625
|
const k = e.value.tooltipCustomFormat;
|
|
625
626
|
if (Ne(k) && je(() => k({
|
|
626
627
|
datapoint: S,
|
|
@@ -628,7 +629,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
628
629
|
series: t,
|
|
629
630
|
config: e.value
|
|
630
631
|
})))
|
|
631
|
-
|
|
632
|
+
ae.value = k({
|
|
632
633
|
point: S,
|
|
633
634
|
seriesIndex: i,
|
|
634
635
|
series: t,
|
|
@@ -636,7 +637,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
636
637
|
});
|
|
637
638
|
else {
|
|
638
639
|
let E = "";
|
|
639
|
-
|
|
640
|
+
ee.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${ee.value[S[0].absoluteIndex].text}</div>`), S.forEach((N, Ae) => {
|
|
640
641
|
E += `
|
|
641
642
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
642
643
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${N.color}"/></svg>
|
|
@@ -655,57 +656,71 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
655
656
|
</b>
|
|
656
657
|
</div>
|
|
657
658
|
`;
|
|
658
|
-
}),
|
|
659
|
+
}), ae.value = E;
|
|
659
660
|
}
|
|
660
|
-
|
|
661
|
+
te.value = !0;
|
|
661
662
|
}
|
|
662
663
|
function n() {
|
|
663
|
-
|
|
664
|
+
te.value = !1, W.value = null, j.value = null;
|
|
664
665
|
}
|
|
665
666
|
return {
|
|
666
667
|
absoluteZero: P,
|
|
667
|
-
dataset:
|
|
668
|
-
legend:
|
|
668
|
+
dataset: ce.filter((i) => !w.value.includes(i.id)),
|
|
669
|
+
legend: le,
|
|
669
670
|
drawingArea: s,
|
|
670
671
|
extremes: u,
|
|
671
672
|
slotSize: V,
|
|
672
|
-
yLabels:
|
|
673
|
-
useTooltip:
|
|
673
|
+
yLabels: de,
|
|
674
|
+
useTooltip: oe,
|
|
674
675
|
killTooltip: n
|
|
675
676
|
};
|
|
676
|
-
}),
|
|
677
|
+
}), ee = U(() => Qt({
|
|
677
678
|
values: e.value.xyPeriods,
|
|
678
679
|
maxDatapoints: p.value.maxSeriesLength,
|
|
679
680
|
formatter: e.value.datetimeFormatter,
|
|
680
|
-
start:
|
|
681
|
-
end:
|
|
681
|
+
start: x.value.start,
|
|
682
|
+
end: x.value.end
|
|
682
683
|
})), Pe = z(!1);
|
|
683
|
-
function
|
|
684
|
+
function ct(o) {
|
|
684
685
|
Pe.value = o, Qe.value += 1;
|
|
685
686
|
}
|
|
686
|
-
function
|
|
687
|
+
function ht() {
|
|
687
688
|
Se.value.showTooltip = !Se.value.showTooltip;
|
|
688
689
|
}
|
|
689
690
|
const Re = z(!1);
|
|
690
691
|
function Be() {
|
|
691
692
|
Re.value = !Re.value;
|
|
692
693
|
}
|
|
694
|
+
async function Ot({ scale: o = 2 } = {}) {
|
|
695
|
+
if (!J.value) return;
|
|
696
|
+
const { width: s, height: t } = J.value.getBoundingClientRect(), u = s / t, { imageUri: r, base64: h } = await Kt({ domElement: J.value, base64: !0, img: !0, scale: o });
|
|
697
|
+
return {
|
|
698
|
+
imageUri: r,
|
|
699
|
+
base64: h,
|
|
700
|
+
title: e.value.title,
|
|
701
|
+
width: s,
|
|
702
|
+
height: t,
|
|
703
|
+
aspectRatio: u
|
|
704
|
+
};
|
|
705
|
+
}
|
|
693
706
|
return C({
|
|
707
|
+
getImage: Ot,
|
|
694
708
|
generatePdf: lt,
|
|
695
709
|
generateImage: ot,
|
|
696
|
-
toggleTooltip:
|
|
697
|
-
toggleAnnotator: Be
|
|
698
|
-
|
|
710
|
+
toggleTooltip: ht,
|
|
711
|
+
toggleAnnotator: Be,
|
|
712
|
+
toggleFullscreen: ct
|
|
713
|
+
}), (o, s) => At.value ? (a(), l("div", {
|
|
699
714
|
key: 0,
|
|
700
|
-
id: `${L.value}_${
|
|
715
|
+
id: `${L.value}_${Q.value}`,
|
|
701
716
|
ref_key: "quickChart",
|
|
702
|
-
ref:
|
|
703
|
-
class:
|
|
717
|
+
ref: J,
|
|
718
|
+
class: fe({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
|
|
704
719
|
style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
705
720
|
onMouseenter: s[5] || (s[5] = () => tt(!0)),
|
|
706
721
|
onMouseleave: s[6] || (s[6] = () => tt(!1))
|
|
707
722
|
}, [
|
|
708
|
-
e.value.userOptionsButtons.annotator ? (a(), Fe(f(
|
|
723
|
+
e.value.userOptionsButtons.annotator ? (a(), Fe(f(me), {
|
|
709
724
|
key: 0,
|
|
710
725
|
svgRef: f(Ke),
|
|
711
726
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -713,7 +728,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
713
728
|
active: Re.value,
|
|
714
729
|
onClose: Be
|
|
715
730
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
716
|
-
|
|
731
|
+
_t.value ? (a(), l("div", {
|
|
717
732
|
key: 1,
|
|
718
733
|
ref_key: "noTitle",
|
|
719
734
|
ref: Je,
|
|
@@ -726,8 +741,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
726
741
|
backgroundColor: e.value.backgroundColor,
|
|
727
742
|
color: e.value.color,
|
|
728
743
|
isPrinting: f(Ee),
|
|
729
|
-
isImaging: f(
|
|
730
|
-
uid:
|
|
744
|
+
isImaging: f(Oe),
|
|
745
|
+
uid: Q.value,
|
|
731
746
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
732
747
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
733
748
|
hasImg: e.value.userOptionsButtons.img,
|
|
@@ -736,24 +751,25 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
736
751
|
isTooltip: Se.value.showTooltip,
|
|
737
752
|
isFullscreen: Pe.value,
|
|
738
753
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
739
|
-
chartElement:
|
|
754
|
+
chartElement: J.value,
|
|
740
755
|
position: e.value.userOptionsPosition,
|
|
741
756
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
742
757
|
isAnnotation: Re.value,
|
|
743
758
|
callbacks: e.value.userOptionsCallbacks,
|
|
744
|
-
|
|
759
|
+
printScale: e.value.userOptionsPrint.scale,
|
|
760
|
+
onToggleFullscreen: ct,
|
|
745
761
|
onGeneratePdf: f(lt),
|
|
746
762
|
onGenerateImage: f(ot),
|
|
747
|
-
onToggleTooltip:
|
|
763
|
+
onToggleTooltip: ht,
|
|
748
764
|
onToggleAnnotator: Be,
|
|
749
765
|
style: R({
|
|
750
766
|
visibility: et.value ? Ie.value ? "visible" : "hidden" : "visible"
|
|
751
767
|
})
|
|
752
|
-
},
|
|
768
|
+
}, Rt({ _: 2 }, [
|
|
753
769
|
o.$slots.menuIcon ? {
|
|
754
770
|
name: "menuIcon",
|
|
755
771
|
fn: G(({ isOpen: t, color: u }) => [
|
|
756
|
-
M(o.$slots, "menuIcon",
|
|
772
|
+
M(o.$slots, "menuIcon", ie(ue({ isOpen: t, color: u })), void 0, !0)
|
|
757
773
|
]),
|
|
758
774
|
key: "0"
|
|
759
775
|
} : void 0,
|
|
@@ -781,34 +797,34 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
781
797
|
o.$slots.optionFullscreen ? {
|
|
782
798
|
name: "optionFullscreen",
|
|
783
799
|
fn: G(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
784
|
-
M(o.$slots, "optionFullscreen",
|
|
800
|
+
M(o.$slots, "optionFullscreen", ie(ue({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
785
801
|
]),
|
|
786
802
|
key: "4"
|
|
787
803
|
} : void 0,
|
|
788
804
|
o.$slots.optionAnnotator ? {
|
|
789
805
|
name: "optionAnnotator",
|
|
790
806
|
fn: G(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
791
|
-
M(o.$slots, "optionAnnotator",
|
|
807
|
+
M(o.$slots, "optionAnnotator", ie(ue({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
792
808
|
]),
|
|
793
809
|
key: "5"
|
|
794
810
|
} : void 0
|
|
795
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
811
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
796
812
|
e.value.title ? (a(), l("div", {
|
|
797
813
|
key: 3,
|
|
798
814
|
ref_key: "quickChartTitle",
|
|
799
815
|
ref: Ge,
|
|
800
816
|
class: "vue-ui-quick-chart-title",
|
|
801
817
|
style: R(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
802
|
-
},
|
|
818
|
+
}, O(e.value.title), 5)) : g("", !0),
|
|
803
819
|
L.value ? (a(), l("svg", {
|
|
804
820
|
key: 4,
|
|
805
821
|
ref_key: "svgRef",
|
|
806
822
|
ref: Ke,
|
|
807
|
-
xmlns: f(
|
|
808
|
-
viewBox:
|
|
823
|
+
xmlns: f(Ht),
|
|
824
|
+
viewBox: Lt.value,
|
|
809
825
|
style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
810
826
|
}, [
|
|
811
|
-
|
|
827
|
+
ge(f(H)),
|
|
812
828
|
o.$slots["chart-background"] && L.value === A.BAR ? (a(), l("foreignObject", {
|
|
813
829
|
key: 0,
|
|
814
830
|
x: d.value.drawingArea.left,
|
|
@@ -820,7 +836,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
820
836
|
}
|
|
821
837
|
}, [
|
|
822
838
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
823
|
-
], 8,
|
|
839
|
+
], 8, sa)) : g("", !0),
|
|
824
840
|
o.$slots["chart-background"] && L.value === A.LINE ? (a(), l("foreignObject", {
|
|
825
841
|
key: 1,
|
|
826
842
|
x: v.value.drawingArea.left,
|
|
@@ -832,7 +848,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
832
848
|
}
|
|
833
849
|
}, [
|
|
834
850
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
835
|
-
], 8,
|
|
851
|
+
], 8, va)) : g("", !0),
|
|
836
852
|
o.$slots["chart-background"] && L.value === A.DONUT ? (a(), l("foreignObject", {
|
|
837
853
|
key: 2,
|
|
838
854
|
x: 0,
|
|
@@ -844,10 +860,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
844
860
|
}
|
|
845
861
|
}, [
|
|
846
862
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
847
|
-
], 8,
|
|
863
|
+
], 8, da)) : g("", !0),
|
|
848
864
|
_("defs", null, [
|
|
849
865
|
_("filter", {
|
|
850
|
-
id: `blur_${
|
|
866
|
+
id: `blur_${Q.value}`,
|
|
851
867
|
x: "-50%",
|
|
852
868
|
y: "-50%",
|
|
853
869
|
width: "200%",
|
|
@@ -856,15 +872,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
856
872
|
_("feGaussianBlur", {
|
|
857
873
|
in: "SourceGraphic",
|
|
858
874
|
stdDeviation: 2,
|
|
859
|
-
id: `blur_std_${
|
|
860
|
-
}, null, 8,
|
|
875
|
+
id: `blur_std_${Q.value}`
|
|
876
|
+
}, null, 8, ha),
|
|
861
877
|
s[7] || (s[7] = _("feColorMatrix", {
|
|
862
878
|
type: "saturate",
|
|
863
879
|
values: "0"
|
|
864
880
|
}, null, -1))
|
|
865
|
-
], 8,
|
|
881
|
+
], 8, ca),
|
|
866
882
|
_("filter", {
|
|
867
|
-
id: `shadow_${
|
|
883
|
+
id: `shadow_${Q.value}`,
|
|
868
884
|
"color-interpolation-filters": "sRGB"
|
|
869
885
|
}, [
|
|
870
886
|
_("feDropShadow", {
|
|
@@ -873,22 +889,22 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
873
889
|
stdDeviation: "10",
|
|
874
890
|
"flood-opacity": "0.5",
|
|
875
891
|
"flood-color": e.value.donutShadowColor
|
|
876
|
-
}, null, 8,
|
|
877
|
-
], 8,
|
|
892
|
+
}, null, 8, ga)
|
|
893
|
+
], 8, fa)
|
|
878
894
|
]),
|
|
879
895
|
L.value === A.DONUT ? (a(), l(m, { key: 3 }, [
|
|
880
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
896
|
+
e.value.showDataLabels ? (a(), l("g", ma, [
|
|
881
897
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
882
898
|
I.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
883
899
|
key: 0,
|
|
884
|
-
d: f(
|
|
900
|
+
d: f(Wt)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * vt.value),
|
|
885
901
|
stroke: t.color,
|
|
886
902
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
887
903
|
"stroke-linecap": "round",
|
|
888
904
|
"stroke-linejoin": "round",
|
|
889
905
|
fill: "none",
|
|
890
906
|
filter: we(t.id)
|
|
891
|
-
}, null, 8,
|
|
907
|
+
}, null, 8, pa)) : g("", !0)
|
|
892
908
|
], 64))), 256))
|
|
893
909
|
])) : g("", !0),
|
|
894
910
|
_("circle", {
|
|
@@ -896,25 +912,25 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
896
912
|
cy: I.value.cy,
|
|
897
913
|
r: I.value.radius,
|
|
898
914
|
fill: e.value.backgroundColor,
|
|
899
|
-
filter: e.value.donutUseShadow ? `url(#shadow_${
|
|
900
|
-
}, null, 8,
|
|
901
|
-
_("g",
|
|
915
|
+
filter: e.value.donutUseShadow ? `url(#shadow_${Q.value})` : ""
|
|
916
|
+
}, null, 8, ya),
|
|
917
|
+
_("g", xa, [
|
|
902
918
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
903
919
|
d: t.arcSlice,
|
|
904
920
|
fill: t.color,
|
|
905
921
|
stroke: e.value.backgroundColor,
|
|
906
922
|
"stroke-width": e.value.donutStrokeWidth,
|
|
907
923
|
filter: we(t.id)
|
|
908
|
-
}, null, 8,
|
|
924
|
+
}, null, 8, ka))), 256)),
|
|
909
925
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
910
926
|
d: t.arcSlice,
|
|
911
927
|
fill: "transparent",
|
|
912
928
|
onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex: u }),
|
|
913
929
|
onMouseout: s[0] || (s[0] = (r) => I.value.killTooltip()),
|
|
914
|
-
onClick: (r) =>
|
|
915
|
-
}, null, 40,
|
|
930
|
+
onClick: (r) => re("selectDatapoint", t)
|
|
931
|
+
}, null, 40, ba))), 256))
|
|
916
932
|
]),
|
|
917
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
933
|
+
e.value.showDataLabels ? (a(), l("g", Sa, [
|
|
918
934
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
919
935
|
I.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
920
936
|
key: 0,
|
|
@@ -925,7 +941,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
925
941
|
"stroke-width": 1,
|
|
926
942
|
r: 3,
|
|
927
943
|
filter: we(t.id)
|
|
928
|
-
}, null, 8,
|
|
944
|
+
}, null, 8, wa)) : g("", !0),
|
|
929
945
|
I.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
930
946
|
key: 1,
|
|
931
947
|
"text-anchor": f(Le)(t, !0, 20).anchor,
|
|
@@ -934,7 +950,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
934
950
|
fill: e.value.color,
|
|
935
951
|
"font-size": e.value.dataLabelFontSize,
|
|
936
952
|
filter: we(t.id)
|
|
937
|
-
},
|
|
953
|
+
}, O(I.value.displayArcPercentage(t, I.value.chart)) + " (" + O(f(X)(
|
|
938
954
|
e.value.formatter,
|
|
939
955
|
t.value,
|
|
940
956
|
f(D)({
|
|
@@ -944,7 +960,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
944
960
|
r: e.value.dataLabelRoundingValue
|
|
945
961
|
}),
|
|
946
962
|
{ datapoint: t, seriesIndex: u }
|
|
947
|
-
)) + ") ", 9,
|
|
963
|
+
)) + ") ", 9, Aa)) : g("", !0),
|
|
948
964
|
I.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
949
965
|
key: 2,
|
|
950
966
|
"text-anchor": f(Le)(t).anchor,
|
|
@@ -953,33 +969,33 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
953
969
|
fill: e.value.color,
|
|
954
970
|
"font-size": e.value.dataLabelFontSize,
|
|
955
971
|
filter: we(t.id)
|
|
956
|
-
},
|
|
972
|
+
}, O(t.name), 9, _a)) : g("", !0)
|
|
957
973
|
], 64))), 256))
|
|
958
974
|
])) : g("", !0),
|
|
959
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
975
|
+
e.value.donutShowTotal ? (a(), l("g", La, [
|
|
960
976
|
_("text", {
|
|
961
977
|
"text-anchor": "middle",
|
|
962
978
|
x: I.value.drawingArea.centerX,
|
|
963
979
|
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
964
980
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
965
981
|
fill: e.value.color
|
|
966
|
-
},
|
|
982
|
+
}, O(e.value.donutTotalLabelText), 9, za),
|
|
967
983
|
_("text", {
|
|
968
984
|
"text-anchor": "middle",
|
|
969
985
|
x: I.value.drawingArea.centerX,
|
|
970
986
|
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
971
987
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
972
988
|
fill: e.value.color
|
|
973
|
-
},
|
|
989
|
+
}, O(f(D)({
|
|
974
990
|
p: e.value.valuePrefix,
|
|
975
991
|
v: I.value.total,
|
|
976
992
|
s: e.value.valueSuffix,
|
|
977
993
|
r: e.value.dataLabelRoundingValue
|
|
978
|
-
})), 9,
|
|
994
|
+
})), 9, $a)
|
|
979
995
|
])) : g("", !0)
|
|
980
996
|
], 64)) : g("", !0),
|
|
981
997
|
L.value === A.LINE ? (a(), l(m, { key: 4 }, [
|
|
982
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
998
|
+
e.value.xyShowGrid ? (a(), l("g", Ca, [
|
|
983
999
|
(a(!0), l(m, null, $(v.value.yLabels, (t) => (a(), l(m, null, [
|
|
984
1000
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
985
1001
|
key: 0,
|
|
@@ -990,7 +1006,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
990
1006
|
stroke: e.value.xyGridStroke,
|
|
991
1007
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
992
1008
|
"stroke-linecap": "round"
|
|
993
|
-
}, null, 8,
|
|
1009
|
+
}, null, 8, Ia)) : g("", !0)
|
|
994
1010
|
], 64))), 256)),
|
|
995
1011
|
(a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
996
1012
|
x1: v.value.drawingArea.left + v.value.slotSize * u,
|
|
@@ -1000,9 +1016,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1000
1016
|
stroke: e.value.xyGridStroke,
|
|
1001
1017
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1002
1018
|
"stroke-linecap": "round"
|
|
1003
|
-
}, null, 8,
|
|
1019
|
+
}, null, 8, Ea))), 256))
|
|
1004
1020
|
])) : g("", !0),
|
|
1005
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1021
|
+
e.value.xyShowAxis ? (a(), l("g", Oa, [
|
|
1006
1022
|
_("line", {
|
|
1007
1023
|
x1: v.value.drawingArea.left,
|
|
1008
1024
|
x2: v.value.drawingArea.left,
|
|
@@ -1011,7 +1027,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1011
1027
|
stroke: e.value.xyAxisStroke,
|
|
1012
1028
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1013
1029
|
"stroke-linecap": "round"
|
|
1014
|
-
}, null, 8,
|
|
1030
|
+
}, null, 8, Ta),
|
|
1015
1031
|
_("line", {
|
|
1016
1032
|
x1: v.value.drawingArea.left,
|
|
1017
1033
|
x2: v.value.drawingArea.right,
|
|
@@ -1020,9 +1036,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1020
1036
|
stroke: e.value.xyAxisStroke,
|
|
1021
1037
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1022
1038
|
"stroke-linecap": "round"
|
|
1023
|
-
}, null, 8,
|
|
1039
|
+
}, null, 8, Pa)
|
|
1024
1040
|
])) : g("", !0),
|
|
1025
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1041
|
+
e.value.xyShowScale ? (a(), l("g", Ra, [
|
|
1026
1042
|
(a(!0), l(m, null, $(v.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1027
1043
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1028
1044
|
key: 0,
|
|
@@ -1033,7 +1049,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1033
1049
|
stroke: e.value.xyAxisStroke,
|
|
1034
1050
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1035
1051
|
"stroke-linecap": "round"
|
|
1036
|
-
}, null, 8,
|
|
1052
|
+
}, null, 8, Ma)) : g("", !0),
|
|
1037
1053
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1038
1054
|
key: 1,
|
|
1039
1055
|
x: t.x,
|
|
@@ -1041,7 +1057,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1041
1057
|
"text-anchor": "end",
|
|
1042
1058
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1043
1059
|
fill: e.value.color
|
|
1044
|
-
},
|
|
1060
|
+
}, O(f(X)(
|
|
1045
1061
|
e.value.formatter,
|
|
1046
1062
|
t.value,
|
|
1047
1063
|
f(D)({
|
|
@@ -1051,12 +1067,12 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1051
1067
|
r: e.value.dataLabelRoundingValue
|
|
1052
1068
|
}),
|
|
1053
1069
|
{ datapoint: t, seriesIndex: u }
|
|
1054
|
-
)), 9,
|
|
1070
|
+
)), 9, Fa)) : g("", !0)
|
|
1055
1071
|
], 64))), 256))
|
|
1056
1072
|
])) : g("", !0),
|
|
1057
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1058
|
-
(a(!0), l(m, null, $(
|
|
1059
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((
|
|
1073
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Na, [
|
|
1074
|
+
(a(!0), l(m, null, $(ee.value.map((t) => t.text), (t, u) => (a(), l(m, null, [
|
|
1075
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((x.value.end - x.value.start) / e.value.xyPeriodsModulo) === 0 || x.value.end - x.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
|
|
1060
1076
|
key: 0,
|
|
1061
1077
|
x1: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
1062
1078
|
x2: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
@@ -1065,8 +1081,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1065
1081
|
stroke: e.value.xyAxisStroke,
|
|
1066
1082
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1067
1083
|
"stroke-linecap": "round"
|
|
1068
|
-
}, null, 8,
|
|
1069
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((
|
|
1084
|
+
}, null, 8, Ua)) : g("", !0),
|
|
1085
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((x.value.end - x.value.start) / e.value.xyPeriodsModulo) === 0 || x.value.end - x.value.start <= e.value.xyPeriodsModulo ? (a(), l("g", Ba, [
|
|
1070
1086
|
String(t).includes(`
|
|
1071
1087
|
`) ? (a(), l("text", {
|
|
1072
1088
|
key: 1,
|
|
@@ -1074,44 +1090,44 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1074
1090
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1075
1091
|
fill: e.value.color,
|
|
1076
1092
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1077
|
-
innerHTML: f(
|
|
1093
|
+
innerHTML: f(jt)({
|
|
1078
1094
|
content: String(t),
|
|
1079
1095
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1080
1096
|
fill: e.value.color,
|
|
1081
1097
|
x: 0,
|
|
1082
1098
|
y: 0
|
|
1083
1099
|
})
|
|
1084
|
-
}, null, 8,
|
|
1100
|
+
}, null, 8, Va)) : (a(), l("text", {
|
|
1085
1101
|
key: 0,
|
|
1086
1102
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1087
1103
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1088
1104
|
fill: e.value.color,
|
|
1089
1105
|
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1090
|
-
},
|
|
1106
|
+
}, O(t), 9, Da))
|
|
1091
1107
|
])) : g("", !0)
|
|
1092
1108
|
], 64))), 256))
|
|
1093
1109
|
])) : g("", !0),
|
|
1094
|
-
_("g",
|
|
1095
|
-
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l("g",
|
|
1110
|
+
_("g", qa, [
|
|
1111
|
+
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l("g", Ha, [
|
|
1096
1112
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
1097
1113
|
_("path", {
|
|
1098
|
-
d: `M ${f(
|
|
1114
|
+
d: `M ${f(pt)(t.coordinates)}`,
|
|
1099
1115
|
stroke: e.value.backgroundColor,
|
|
1100
1116
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1101
1117
|
"stroke-linecap": "round",
|
|
1102
1118
|
fill: "none",
|
|
1103
|
-
class:
|
|
1119
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1104
1120
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1105
|
-
}, null, 10,
|
|
1121
|
+
}, null, 10, Wa),
|
|
1106
1122
|
_("path", {
|
|
1107
|
-
d: `M ${f(
|
|
1123
|
+
d: `M ${f(pt)(t.coordinates)}`,
|
|
1108
1124
|
stroke: t.color,
|
|
1109
1125
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1110
1126
|
"stroke-linecap": "round",
|
|
1111
1127
|
fill: "none",
|
|
1112
|
-
class:
|
|
1128
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1113
1129
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1114
|
-
}, null, 10,
|
|
1130
|
+
}, null, 10, ja)
|
|
1115
1131
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
1116
1132
|
_("path", {
|
|
1117
1133
|
d: `M ${t.linePath}`,
|
|
@@ -1119,18 +1135,18 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1119
1135
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1120
1136
|
"stroke-linecap": "round",
|
|
1121
1137
|
fill: "none",
|
|
1122
|
-
class:
|
|
1138
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1123
1139
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1124
|
-
}, null, 10,
|
|
1140
|
+
}, null, 10, Ga),
|
|
1125
1141
|
_("path", {
|
|
1126
1142
|
d: `M ${t.linePath}`,
|
|
1127
1143
|
stroke: t.color,
|
|
1128
1144
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1129
1145
|
"stroke-linecap": "round",
|
|
1130
1146
|
fill: "none",
|
|
1131
|
-
class:
|
|
1147
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1132
1148
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1133
|
-
}, null, 10,
|
|
1149
|
+
}, null, 10, Xa)
|
|
1134
1150
|
], 64)),
|
|
1135
1151
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1136
1152
|
cx: r.x,
|
|
@@ -1141,10 +1157,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1141
1157
|
"stroke-width": "0.5",
|
|
1142
1158
|
class: "quick-animation",
|
|
1143
1159
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1144
|
-
}, null, 8,
|
|
1160
|
+
}, null, 8, Za))), 256))
|
|
1145
1161
|
]))), 256))
|
|
1146
1162
|
]),
|
|
1147
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1163
|
+
e.value.showDataLabels ? (a(), l("g", Ya, [
|
|
1148
1164
|
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1149
1165
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1150
1166
|
"text-anchor": "middle",
|
|
@@ -1154,7 +1170,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1154
1170
|
y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1155
1171
|
class: "quick-animation",
|
|
1156
1172
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1157
|
-
},
|
|
1173
|
+
}, O(f(X)(
|
|
1158
1174
|
e.value.formatter,
|
|
1159
1175
|
f(Z)(r.value),
|
|
1160
1176
|
f(D)({
|
|
@@ -1164,10 +1180,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1164
1180
|
r: e.value.dataLabelRoundingValue
|
|
1165
1181
|
}),
|
|
1166
1182
|
{ datapoint: r, seriesIndex: h }
|
|
1167
|
-
)), 9,
|
|
1183
|
+
)), 9, Ja))), 256))
|
|
1168
1184
|
], 64))), 256))
|
|
1169
1185
|
])) : g("", !0),
|
|
1170
|
-
_("g",
|
|
1186
|
+
_("g", Qa, [
|
|
1171
1187
|
(a(!0), l(m, null, $(v.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1172
1188
|
x: v.value.drawingArea.left + u * v.value.slotSize,
|
|
1173
1189
|
y: v.value.drawingArea.top,
|
|
@@ -1177,15 +1193,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1177
1193
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1178
1194
|
onMouseenter: (r) => v.value.useTooltip(u),
|
|
1179
1195
|
onMouseleave: s[1] || (s[1] = (r) => v.value.killTooltip()),
|
|
1180
|
-
onClick: (r) =>
|
|
1196
|
+
onClick: (r) => re("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1181
1197
|
...h,
|
|
1182
1198
|
value: h.values[u]
|
|
1183
1199
|
})))
|
|
1184
|
-
}, null, 44,
|
|
1200
|
+
}, null, 44, Ka))), 256))
|
|
1185
1201
|
])
|
|
1186
1202
|
], 64)) : g("", !0),
|
|
1187
1203
|
L.value === A.BAR ? (a(), l(m, { key: 5 }, [
|
|
1188
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1204
|
+
e.value.xyShowGrid ? (a(), l("g", el, [
|
|
1189
1205
|
(a(!0), l(m, null, $(d.value.yLabels, (t) => (a(), l(m, null, [
|
|
1190
1206
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1191
1207
|
key: 0,
|
|
@@ -1196,7 +1212,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1196
1212
|
stroke: e.value.xyGridStroke,
|
|
1197
1213
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1198
1214
|
"stroke-linecap": "round"
|
|
1199
|
-
}, null, 8,
|
|
1215
|
+
}, null, 8, tl)) : g("", !0)
|
|
1200
1216
|
], 64))), 256)),
|
|
1201
1217
|
(a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
1202
1218
|
x1: d.value.drawingArea.left + d.value.slotSize * u,
|
|
@@ -1206,9 +1222,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1206
1222
|
stroke: e.value.xyGridStroke,
|
|
1207
1223
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1208
1224
|
"stroke-linecap": "round"
|
|
1209
|
-
}, null, 8,
|
|
1225
|
+
}, null, 8, al))), 256))
|
|
1210
1226
|
])) : g("", !0),
|
|
1211
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1227
|
+
e.value.xyShowAxis ? (a(), l("g", ll, [
|
|
1212
1228
|
_("line", {
|
|
1213
1229
|
x1: d.value.drawingArea.left,
|
|
1214
1230
|
x2: d.value.drawingArea.left,
|
|
@@ -1217,7 +1233,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1217
1233
|
stroke: e.value.xyAxisStroke,
|
|
1218
1234
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1219
1235
|
"stroke-linecap": "round"
|
|
1220
|
-
}, null, 8,
|
|
1236
|
+
}, null, 8, ol),
|
|
1221
1237
|
_("line", {
|
|
1222
1238
|
x1: d.value.drawingArea.left,
|
|
1223
1239
|
x2: d.value.drawingArea.right,
|
|
@@ -1226,9 +1242,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1226
1242
|
stroke: e.value.xyAxisStroke,
|
|
1227
1243
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1228
1244
|
"stroke-linecap": "round"
|
|
1229
|
-
}, null, 8,
|
|
1245
|
+
}, null, 8, nl)
|
|
1230
1246
|
])) : g("", !0),
|
|
1231
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1247
|
+
e.value.xyShowScale ? (a(), l("g", il, [
|
|
1232
1248
|
(a(!0), l(m, null, $(d.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1233
1249
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1234
1250
|
key: 0,
|
|
@@ -1239,7 +1255,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1239
1255
|
stroke: e.value.xyAxisStroke,
|
|
1240
1256
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1241
1257
|
"stroke-linecap": "round"
|
|
1242
|
-
}, null, 8,
|
|
1258
|
+
}, null, 8, ul)) : g("", !0),
|
|
1243
1259
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
1244
1260
|
key: 1,
|
|
1245
1261
|
x: t.x,
|
|
@@ -1247,7 +1263,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1247
1263
|
"text-anchor": "end",
|
|
1248
1264
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1249
1265
|
fill: e.value.color
|
|
1250
|
-
},
|
|
1266
|
+
}, O(f(X)(
|
|
1251
1267
|
e.value.formatter,
|
|
1252
1268
|
t.value,
|
|
1253
1269
|
f(D)({
|
|
@@ -1257,11 +1273,11 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1257
1273
|
r: e.value.dataLabelRoundingValue
|
|
1258
1274
|
}),
|
|
1259
1275
|
{ datapoint: t, seriesIndex: u }
|
|
1260
|
-
)), 9,
|
|
1276
|
+
)), 9, rl)) : g("", !0)
|
|
1261
1277
|
], 64))), 256))
|
|
1262
1278
|
])) : g("", !0),
|
|
1263
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1264
|
-
(a(!0), l(m, null, $(e.value.xyPeriods.slice(
|
|
1279
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", sl, [
|
|
1280
|
+
(a(!0), l(m, null, $(e.value.xyPeriods.slice(x.value.start, x.value.end), (t, u) => (a(), l("line", {
|
|
1265
1281
|
x1: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
1266
1282
|
x2: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
1267
1283
|
y1: d.value.drawingArea.bottom,
|
|
@@ -1269,15 +1285,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1269
1285
|
stroke: e.value.xyAxisStroke,
|
|
1270
1286
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1271
1287
|
"stroke-linecap": "round"
|
|
1272
|
-
}, null, 8,
|
|
1273
|
-
(a(!0), l(m, null, $(
|
|
1288
|
+
}, null, 8, vl))), 256)),
|
|
1289
|
+
(a(!0), l(m, null, $(ee.value.map((t) => t.text), (t, u) => (a(), l("text", {
|
|
1274
1290
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1275
1291
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1276
1292
|
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1277
1293
|
fill: e.value.color
|
|
1278
|
-
},
|
|
1294
|
+
}, O(t), 9, dl))), 256))
|
|
1279
1295
|
])) : g("", !0),
|
|
1280
|
-
_("g",
|
|
1296
|
+
_("g", cl, [
|
|
1281
1297
|
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1282
1298
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1283
1299
|
x: r.x,
|
|
@@ -1288,26 +1304,26 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1288
1304
|
stroke: e.value.backgroundColor,
|
|
1289
1305
|
"stroke-width": e.value.barStrokeWidth,
|
|
1290
1306
|
"stroke-linecap": "round",
|
|
1291
|
-
class:
|
|
1307
|
+
class: fe({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
|
|
1292
1308
|
}, [
|
|
1293
|
-
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(
|
|
1309
|
+
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Oe) ? (a(), l("animate", {
|
|
1294
1310
|
key: 0,
|
|
1295
1311
|
attributeName: "height",
|
|
1296
1312
|
from: 0,
|
|
1297
1313
|
to: r.height,
|
|
1298
1314
|
dur: "0.5s"
|
|
1299
|
-
}, null, 8,
|
|
1300
|
-
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(
|
|
1315
|
+
}, null, 8, fl)) : g("", !0),
|
|
1316
|
+
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Oe) ? (a(), l("animate", {
|
|
1301
1317
|
key: 1,
|
|
1302
1318
|
attributeName: "y",
|
|
1303
1319
|
from: d.value.absoluteZero,
|
|
1304
1320
|
to: d.value.absoluteZero - r.height,
|
|
1305
1321
|
dur: "0.5s"
|
|
1306
|
-
}, null, 8,
|
|
1307
|
-
], 10,
|
|
1322
|
+
}, null, 8, gl)) : g("", !0)
|
|
1323
|
+
], 10, hl))), 256))
|
|
1308
1324
|
], 64))), 256))
|
|
1309
1325
|
]),
|
|
1310
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1326
|
+
e.value.showDataLabels ? (a(), l("g", ml, [
|
|
1311
1327
|
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1312
1328
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1313
1329
|
x: r.x + r.width / 2,
|
|
@@ -1316,7 +1332,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1316
1332
|
"font-size": e.value.dataLabelFontSize,
|
|
1317
1333
|
fill: t.color,
|
|
1318
1334
|
class: "quick-animation"
|
|
1319
|
-
},
|
|
1335
|
+
}, O(f(X)(
|
|
1320
1336
|
e.value.formatter,
|
|
1321
1337
|
f(Z)(r.value),
|
|
1322
1338
|
f(D)({
|
|
@@ -1326,10 +1342,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1326
1342
|
r: e.value.dataLabelRoundingValue
|
|
1327
1343
|
}),
|
|
1328
1344
|
{ datapoint: r, seriesIndex: h }
|
|
1329
|
-
)), 9,
|
|
1345
|
+
)), 9, pl))), 256))
|
|
1330
1346
|
], 64))), 256))
|
|
1331
1347
|
])) : g("", !0),
|
|
1332
|
-
_("g",
|
|
1348
|
+
_("g", yl, [
|
|
1333
1349
|
(a(!0), l(m, null, $(d.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1334
1350
|
x: d.value.drawingArea.left + u * d.value.slotSize,
|
|
1335
1351
|
y: d.value.drawingArea.top,
|
|
@@ -1339,51 +1355,51 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1339
1355
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1340
1356
|
onMouseenter: (r) => d.value.useTooltip(u),
|
|
1341
1357
|
onMouseleave: s[2] || (s[2] = (r) => d.value.killTooltip()),
|
|
1342
|
-
onClick: (r) =>
|
|
1358
|
+
onClick: (r) => re("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1343
1359
|
...h,
|
|
1344
1360
|
value: h.values[u]
|
|
1345
1361
|
})))
|
|
1346
|
-
}, null, 44,
|
|
1362
|
+
}, null, 44, xl))), 256))
|
|
1347
1363
|
])
|
|
1348
1364
|
], 64)) : g("", !0),
|
|
1349
|
-
[A.LINE, A.BAR].includes(L.value) ? (a(), l("g",
|
|
1350
|
-
e.value.xAxisLabel && L.value === A.LINE ? (a(), l("g",
|
|
1365
|
+
[A.LINE, A.BAR].includes(L.value) ? (a(), l("g", kl, [
|
|
1366
|
+
e.value.xAxisLabel && L.value === A.LINE ? (a(), l("g", bl, [
|
|
1351
1367
|
_("text", {
|
|
1352
1368
|
"font-size": e.value.axisLabelsFontSize,
|
|
1353
1369
|
fill: e.value.color,
|
|
1354
1370
|
"text-anchor": "middle",
|
|
1355
1371
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1356
1372
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1357
|
-
},
|
|
1373
|
+
}, O(e.value.xAxisLabel), 9, Sl)
|
|
1358
1374
|
])) : g("", !0),
|
|
1359
|
-
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g",
|
|
1375
|
+
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g", wl, [
|
|
1360
1376
|
_("text", {
|
|
1361
1377
|
"font-size": e.value.axisLabelsFontSize,
|
|
1362
1378
|
fill: e.value.color,
|
|
1363
1379
|
"text-anchor": "middle",
|
|
1364
1380
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1365
1381
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1366
|
-
},
|
|
1382
|
+
}, O(e.value.xAxisLabel), 9, Al)
|
|
1367
1383
|
])) : g("", !0),
|
|
1368
|
-
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g",
|
|
1384
|
+
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g", _l, [
|
|
1369
1385
|
_("text", {
|
|
1370
1386
|
"font-size": e.value.axisLabelsFontSize,
|
|
1371
1387
|
fill: e.value.color,
|
|
1372
1388
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1373
1389
|
"text-anchor": "middle"
|
|
1374
|
-
},
|
|
1390
|
+
}, O(e.value.yAxisLabel), 9, Ll)
|
|
1375
1391
|
])) : g("", !0),
|
|
1376
|
-
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g",
|
|
1392
|
+
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g", zl, [
|
|
1377
1393
|
_("text", {
|
|
1378
1394
|
"font-size": e.value.axisLabelsFontSize,
|
|
1379
1395
|
fill: e.value.color,
|
|
1380
1396
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1381
1397
|
"text-anchor": "middle"
|
|
1382
|
-
},
|
|
1398
|
+
}, O(e.value.yAxisLabel), 9, $l)
|
|
1383
1399
|
])) : g("", !0)
|
|
1384
1400
|
])) : g("", !0)
|
|
1385
|
-
], 12,
|
|
1386
|
-
L.value ? g("", !0) : (a(), Fe(f(
|
|
1401
|
+
], 12, ra)) : g("", !0),
|
|
1402
|
+
L.value ? g("", !0) : (a(), Fe(f(pe), {
|
|
1387
1403
|
key: 5,
|
|
1388
1404
|
config: {
|
|
1389
1405
|
type: "line",
|
|
@@ -1401,53 +1417,53 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1401
1417
|
}
|
|
1402
1418
|
}
|
|
1403
1419
|
}, null, 8, ["config"])),
|
|
1404
|
-
o.$slots.watermark ? (a(), l("div",
|
|
1405
|
-
M(o.$slots, "watermark",
|
|
1420
|
+
o.$slots.watermark ? (a(), l("div", Cl, [
|
|
1421
|
+
M(o.$slots, "watermark", ie(ue({ isPrinting: f(Ee) || f(Oe) })), void 0, !0)
|
|
1406
1422
|
])) : g("", !0),
|
|
1407
1423
|
[A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1408
1424
|
key: `slicer_${Ce.value}`,
|
|
1409
1425
|
ref_key: "quickChartSlicer",
|
|
1410
1426
|
ref: Ze
|
|
1411
1427
|
}, [
|
|
1412
|
-
(a(), Fe(
|
|
1428
|
+
(a(), Fe(Jt, {
|
|
1413
1429
|
ref_key: "slicerComponent",
|
|
1414
|
-
ref:
|
|
1430
|
+
ref: ve,
|
|
1415
1431
|
key: `slicer_${Ce.value}`,
|
|
1416
1432
|
background: e.value.zoomColor,
|
|
1417
1433
|
borderColor: e.value.backgroundColor,
|
|
1418
1434
|
fontSize: e.value.zoomFontSize,
|
|
1419
1435
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1420
|
-
labelLeft: e.value.xyPeriods[
|
|
1421
|
-
labelRight: e.value.xyPeriods[
|
|
1436
|
+
labelLeft: e.value.xyPeriods[x.value.start] ? ee.value[0].text : "",
|
|
1437
|
+
labelRight: e.value.xyPeriods[x.value.end - 1] ? ee.value.at(-1).text : "",
|
|
1422
1438
|
textColor: e.value.color,
|
|
1423
1439
|
inputColor: e.value.zoomColor,
|
|
1424
1440
|
selectColor: e.value.zoomHighlightColor,
|
|
1425
1441
|
max: p.value.maxSeriesLength,
|
|
1426
1442
|
min: 0,
|
|
1427
|
-
valueStart:
|
|
1428
|
-
valueEnd:
|
|
1443
|
+
valueStart: x.value.start,
|
|
1444
|
+
valueEnd: x.value.end,
|
|
1429
1445
|
smoothMinimap: e.value.zoomMinimap.smooth,
|
|
1430
1446
|
minimapSelectedColor: e.value.zoomMinimap.selectedColor,
|
|
1431
1447
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1432
1448
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1433
1449
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1434
|
-
minimap:
|
|
1450
|
+
minimap: Et.value,
|
|
1435
1451
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1436
1452
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1437
1453
|
minimapSelectedIndex: j.value,
|
|
1438
|
-
start:
|
|
1439
|
-
"onUpdate:start": s[3] || (s[3] = (t) =>
|
|
1440
|
-
end:
|
|
1441
|
-
"onUpdate:end": s[4] || (s[4] = (t) =>
|
|
1454
|
+
start: x.value.start,
|
|
1455
|
+
"onUpdate:start": s[3] || (s[3] = (t) => x.value.start = t),
|
|
1456
|
+
end: x.value.end,
|
|
1457
|
+
"onUpdate:end": s[4] || (s[4] = (t) => x.value.end = t),
|
|
1442
1458
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1443
1459
|
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : p.value.maxSeriesLength,
|
|
1444
1460
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
1445
1461
|
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1446
|
-
onReset:
|
|
1447
|
-
onTrapMouse:
|
|
1462
|
+
onReset: Ct,
|
|
1463
|
+
onTrapMouse: $t
|
|
1448
1464
|
}, {
|
|
1449
1465
|
"reset-action": G(({ reset: t }) => [
|
|
1450
|
-
M(o.$slots, "reset-action",
|
|
1466
|
+
M(o.$slots, "reset-action", ie(ue({ reset: t })), void 0, !0)
|
|
1451
1467
|
]),
|
|
1452
1468
|
_: 3
|
|
1453
1469
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "verticalHandles", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
@@ -1462,7 +1478,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1462
1478
|
L.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, u) => (a(), l("div", {
|
|
1463
1479
|
class: "vue-ui-quick-chart-legend-item",
|
|
1464
1480
|
onClick: (r) => {
|
|
1465
|
-
|
|
1481
|
+
zt(t, I.value.dataset), re("selectLegend", t);
|
|
1466
1482
|
},
|
|
1467
1483
|
style: R(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1468
1484
|
}, [
|
|
@@ -1470,17 +1486,17 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1470
1486
|
key: 0,
|
|
1471
1487
|
ref_for: !0
|
|
1472
1488
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1473
|
-
|
|
1489
|
+
ge(f(T), {
|
|
1474
1490
|
name: e.value.legendIcon,
|
|
1475
1491
|
stroke: t.color,
|
|
1476
1492
|
size: e.value.legendIconSize
|
|
1477
1493
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1478
1494
|
_("span", {
|
|
1479
1495
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1480
|
-
},
|
|
1496
|
+
}, O(t.name), 5),
|
|
1481
1497
|
_("span", {
|
|
1482
1498
|
style: R(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1483
|
-
},
|
|
1499
|
+
}, O(w.value.includes(t.id) ? "-" : f(X)(
|
|
1484
1500
|
e.value.formatter,
|
|
1485
1501
|
t.absoluteValue,
|
|
1486
1502
|
f(D)({
|
|
@@ -1494,23 +1510,23 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1494
1510
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1495
1511
|
key: 0,
|
|
1496
1512
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1497
|
-
}, " ( - % ) ", 4)) :
|
|
1513
|
+
}, " ( - % ) ", 4)) : Te.value ? (a(), l("span", {
|
|
1498
1514
|
key: 1,
|
|
1499
1515
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1500
1516
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1501
1517
|
key: 2,
|
|
1502
1518
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1503
|
-
}, " (" +
|
|
1519
|
+
}, " (" + O(f(D)({
|
|
1504
1520
|
v: t.value / I.value.total * 100,
|
|
1505
1521
|
s: "%",
|
|
1506
1522
|
r: e.value.dataLabelRoundingPercentage
|
|
1507
1523
|
})) + ") ", 5))
|
|
1508
1524
|
], 64))
|
|
1509
|
-
], 12,
|
|
1525
|
+
], 12, Il))), 256)) : g("", !0),
|
|
1510
1526
|
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(v.value.legend, (t, u) => (a(), l("div", {
|
|
1511
1527
|
class: "vue-ui-quick-chart-legend-item",
|
|
1512
1528
|
onClick: (r) => {
|
|
1513
|
-
ut(t.id, v.value.legend.length - 1),
|
|
1529
|
+
ut(t.id, v.value.legend.length - 1), re("selectLegend", t);
|
|
1514
1530
|
},
|
|
1515
1531
|
style: R(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1516
1532
|
}, [
|
|
@@ -1518,20 +1534,20 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1518
1534
|
key: 0,
|
|
1519
1535
|
ref_for: !0
|
|
1520
1536
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1521
|
-
|
|
1537
|
+
ge(f(T), {
|
|
1522
1538
|
name: e.value.legendIcon,
|
|
1523
1539
|
stroke: t.color,
|
|
1524
1540
|
size: e.value.legendIconSize
|
|
1525
1541
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1526
1542
|
_("span", {
|
|
1527
1543
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1528
|
-
},
|
|
1544
|
+
}, O(t.name), 5)
|
|
1529
1545
|
], 64))
|
|
1530
|
-
], 12,
|
|
1546
|
+
], 12, El))), 256)) : g("", !0),
|
|
1531
1547
|
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(d.value.legend, (t, u) => (a(), l("div", {
|
|
1532
1548
|
class: "vue-ui-quick-chart-legend-item",
|
|
1533
1549
|
onClick: (r) => {
|
|
1534
|
-
ut(t.id, d.value.legend.length - 1),
|
|
1550
|
+
ut(t.id, d.value.legend.length - 1), re("selectLegend", t);
|
|
1535
1551
|
},
|
|
1536
1552
|
style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1537
1553
|
}, [
|
|
@@ -1539,16 +1555,16 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1539
1555
|
key: 0,
|
|
1540
1556
|
ref_for: !0
|
|
1541
1557
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1542
|
-
|
|
1558
|
+
ge(f(T), {
|
|
1543
1559
|
name: e.value.legendIcon,
|
|
1544
1560
|
stroke: t.color,
|
|
1545
1561
|
size: e.value.legendIconSize
|
|
1546
1562
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1547
1563
|
_("span", {
|
|
1548
1564
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1549
|
-
},
|
|
1565
|
+
}, O(t.name), 5)
|
|
1550
1566
|
], 64))
|
|
1551
|
-
], 12,
|
|
1567
|
+
], 12, Ol))), 256)) : g("", !0)
|
|
1552
1568
|
], 4)) : g("", !0),
|
|
1553
1569
|
o.$slots.source ? (a(), l("div", {
|
|
1554
1570
|
key: 9,
|
|
@@ -1558,8 +1574,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1558
1574
|
}, [
|
|
1559
1575
|
M(o.$slots, "source", {}, void 0, !0)
|
|
1560
1576
|
], 512)) : g("", !0),
|
|
1561
|
-
|
|
1562
|
-
show: Se.value.showTooltip &&
|
|
1577
|
+
ge(f(ye), {
|
|
1578
|
+
show: Se.value.showTooltip && te.value,
|
|
1563
1579
|
backgroundColor: e.value.backgroundColor,
|
|
1564
1580
|
color: e.value.color,
|
|
1565
1581
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1569,28 +1585,28 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1569
1585
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1570
1586
|
position: e.value.tooltipPosition,
|
|
1571
1587
|
offsetY: e.value.tooltipOffsetY,
|
|
1572
|
-
parent:
|
|
1573
|
-
content:
|
|
1588
|
+
parent: J.value,
|
|
1589
|
+
content: ae.value,
|
|
1574
1590
|
isFullscreen: Pe.value,
|
|
1575
1591
|
isCustom: f(Ne)(e.value.tooltipCustomFormat)
|
|
1576
1592
|
}, {
|
|
1577
1593
|
"tooltip-before": G(() => [
|
|
1578
|
-
M(o.$slots, "tooltip-before",
|
|
1594
|
+
M(o.$slots, "tooltip-before", ie(ue({ ...xe.value })), void 0, !0)
|
|
1579
1595
|
]),
|
|
1580
1596
|
"tooltip-after": G(() => [
|
|
1581
|
-
M(o.$slots, "tooltip-after",
|
|
1597
|
+
M(o.$slots, "tooltip-after", ie(ue({ ...xe.value })), void 0, !0)
|
|
1582
1598
|
]),
|
|
1583
1599
|
_: 3
|
|
1584
1600
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
1585
|
-
], 46,
|
|
1586
|
-
|
|
1601
|
+
], 46, ua)) : (a(), l("div", Tl, [
|
|
1602
|
+
ge(f(T), {
|
|
1587
1603
|
name: "circleCancel",
|
|
1588
1604
|
stroke: "red"
|
|
1589
1605
|
}),
|
|
1590
1606
|
s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
|
|
1591
1607
|
]));
|
|
1592
1608
|
}
|
|
1593
|
-
},
|
|
1609
|
+
}, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-3a5268da"]]);
|
|
1594
1610
|
export {
|
|
1595
|
-
|
|
1611
|
+
Wl as default
|
|
1596
1612
|
};
|