vue-data-ui 2.16.5 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -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-pPGk-uhD.js";
|
|
3
|
+
import { t as Gt, u as Xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as yt } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as Zt } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as Yt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { S as Jt } from "./Slicer-CL6-MRI6.js";
|
|
8
|
+
import { u as Qt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
9
|
+
import Kt from "./img-Y_hYz-ZC.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-naqtCxVi.js")), H = he(() => import("./PackageVersion-5TR4ocqp.js")), me = he(() => import("./PenAndPaper-D6AqipIO.js")), pe = he(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ye = he(() => import("./Tooltip-CoQnTnr-.js")), $e = he(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_quick_chart: F } = Mt(), B = c, ee = z(null), Ge = z(null), Xe = z(null), Ze = z(null), J = 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
|
+
const { isPrinting: Ee, isImaging: Oe, generatePdf: lt, generateImage: ot } = Zt({
|
|
199
200
|
elementId: `${L.value}_${J.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
|
-
}), Q =
|
|
208
|
+
}), Q = 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: ee.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
|
-
Q.value && (
|
|
227
|
+
Q.value && (se.value && Q.value.unobserve(se.value), Q.value.disconnect()), Q.value = new ResizeObserver(o), se.value = ee.value.parentNode, Q.value.observe(se.value);
|
|
227
228
|
}
|
|
228
229
|
dt();
|
|
229
230
|
}
|
|
230
|
-
|
|
231
|
-
Q.value && (
|
|
231
|
+
Pt(() => {
|
|
232
|
+
Q.value && (se.value && Q.value.unobserve(se.value), Q.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}`;
|
|
@@ -251,14 +252,14 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
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,
|
|
@@ -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,
|
|
@@ -655,57 +656,64 @@ 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
|
-
}), K = U(() =>
|
|
677
|
+
}), K = 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 (!ee.value) return;
|
|
696
|
+
const { imageUri: s, base64: t } = await Kt({ domElement: ee.value, base64: !0, img: !0, scale: o });
|
|
697
|
+
return { imageUri: s, base64: t };
|
|
698
|
+
}
|
|
693
699
|
return C({
|
|
700
|
+
getImage: Ot,
|
|
694
701
|
generatePdf: lt,
|
|
695
702
|
generateImage: ot,
|
|
696
|
-
toggleTooltip:
|
|
697
|
-
toggleAnnotator: Be
|
|
698
|
-
|
|
703
|
+
toggleTooltip: ht,
|
|
704
|
+
toggleAnnotator: Be,
|
|
705
|
+
toggleFullscreen: ct
|
|
706
|
+
}), (o, s) => At.value ? (a(), l("div", {
|
|
699
707
|
key: 0,
|
|
700
708
|
id: `${L.value}_${J.value}`,
|
|
701
709
|
ref_key: "quickChart",
|
|
702
|
-
ref:
|
|
703
|
-
class:
|
|
710
|
+
ref: ee,
|
|
711
|
+
class: fe({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
|
|
704
712
|
style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
705
713
|
onMouseenter: s[5] || (s[5] = () => tt(!0)),
|
|
706
714
|
onMouseleave: s[6] || (s[6] = () => tt(!1))
|
|
707
715
|
}, [
|
|
708
|
-
e.value.userOptionsButtons.annotator ? (a(), Fe(f(
|
|
716
|
+
e.value.userOptionsButtons.annotator ? (a(), Fe(f(me), {
|
|
709
717
|
key: 0,
|
|
710
718
|
svgRef: f(Ke),
|
|
711
719
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -713,7 +721,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
713
721
|
active: Re.value,
|
|
714
722
|
onClose: Be
|
|
715
723
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
716
|
-
|
|
724
|
+
_t.value ? (a(), l("div", {
|
|
717
725
|
key: 1,
|
|
718
726
|
ref_key: "noTitle",
|
|
719
727
|
ref: Je,
|
|
@@ -726,7 +734,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
726
734
|
backgroundColor: e.value.backgroundColor,
|
|
727
735
|
color: e.value.color,
|
|
728
736
|
isPrinting: f(Ee),
|
|
729
|
-
isImaging: f(
|
|
737
|
+
isImaging: f(Oe),
|
|
730
738
|
uid: J.value,
|
|
731
739
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
732
740
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
@@ -736,24 +744,25 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
736
744
|
isTooltip: Se.value.showTooltip,
|
|
737
745
|
isFullscreen: Pe.value,
|
|
738
746
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
739
|
-
chartElement:
|
|
747
|
+
chartElement: ee.value,
|
|
740
748
|
position: e.value.userOptionsPosition,
|
|
741
749
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
742
750
|
isAnnotation: Re.value,
|
|
743
751
|
callbacks: e.value.userOptionsCallbacks,
|
|
744
|
-
|
|
752
|
+
printScale: e.value.userOptionsPrint.scale,
|
|
753
|
+
onToggleFullscreen: ct,
|
|
745
754
|
onGeneratePdf: f(lt),
|
|
746
755
|
onGenerateImage: f(ot),
|
|
747
|
-
onToggleTooltip:
|
|
756
|
+
onToggleTooltip: ht,
|
|
748
757
|
onToggleAnnotator: Be,
|
|
749
758
|
style: R({
|
|
750
759
|
visibility: et.value ? Ie.value ? "visible" : "hidden" : "visible"
|
|
751
760
|
})
|
|
752
|
-
},
|
|
761
|
+
}, Rt({ _: 2 }, [
|
|
753
762
|
o.$slots.menuIcon ? {
|
|
754
763
|
name: "menuIcon",
|
|
755
764
|
fn: G(({ isOpen: t, color: u }) => [
|
|
756
|
-
M(o.$slots, "menuIcon",
|
|
765
|
+
M(o.$slots, "menuIcon", ie(ue({ isOpen: t, color: u })), void 0, !0)
|
|
757
766
|
]),
|
|
758
767
|
key: "0"
|
|
759
768
|
} : void 0,
|
|
@@ -781,34 +790,34 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
781
790
|
o.$slots.optionFullscreen ? {
|
|
782
791
|
name: "optionFullscreen",
|
|
783
792
|
fn: G(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
784
|
-
M(o.$slots, "optionFullscreen",
|
|
793
|
+
M(o.$slots, "optionFullscreen", ie(ue({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
785
794
|
]),
|
|
786
795
|
key: "4"
|
|
787
796
|
} : void 0,
|
|
788
797
|
o.$slots.optionAnnotator ? {
|
|
789
798
|
name: "optionAnnotator",
|
|
790
799
|
fn: G(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
791
|
-
M(o.$slots, "optionAnnotator",
|
|
800
|
+
M(o.$slots, "optionAnnotator", ie(ue({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
792
801
|
]),
|
|
793
802
|
key: "5"
|
|
794
803
|
} : 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),
|
|
804
|
+
]), 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
805
|
e.value.title ? (a(), l("div", {
|
|
797
806
|
key: 3,
|
|
798
807
|
ref_key: "quickChartTitle",
|
|
799
808
|
ref: Ge,
|
|
800
809
|
class: "vue-ui-quick-chart-title",
|
|
801
810
|
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
|
-
},
|
|
811
|
+
}, O(e.value.title), 5)) : g("", !0),
|
|
803
812
|
L.value ? (a(), l("svg", {
|
|
804
813
|
key: 4,
|
|
805
814
|
ref_key: "svgRef",
|
|
806
815
|
ref: Ke,
|
|
807
|
-
xmlns: f(
|
|
808
|
-
viewBox:
|
|
816
|
+
xmlns: f(Ht),
|
|
817
|
+
viewBox: Lt.value,
|
|
809
818
|
style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
810
819
|
}, [
|
|
811
|
-
|
|
820
|
+
ge(f(H)),
|
|
812
821
|
o.$slots["chart-background"] && L.value === A.BAR ? (a(), l("foreignObject", {
|
|
813
822
|
key: 0,
|
|
814
823
|
x: d.value.drawingArea.left,
|
|
@@ -820,7 +829,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
820
829
|
}
|
|
821
830
|
}, [
|
|
822
831
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
823
|
-
], 8,
|
|
832
|
+
], 8, sa)) : g("", !0),
|
|
824
833
|
o.$slots["chart-background"] && L.value === A.LINE ? (a(), l("foreignObject", {
|
|
825
834
|
key: 1,
|
|
826
835
|
x: v.value.drawingArea.left,
|
|
@@ -832,7 +841,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
832
841
|
}
|
|
833
842
|
}, [
|
|
834
843
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
835
|
-
], 8,
|
|
844
|
+
], 8, va)) : g("", !0),
|
|
836
845
|
o.$slots["chart-background"] && L.value === A.DONUT ? (a(), l("foreignObject", {
|
|
837
846
|
key: 2,
|
|
838
847
|
x: 0,
|
|
@@ -844,7 +853,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
844
853
|
}
|
|
845
854
|
}, [
|
|
846
855
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
847
|
-
], 8,
|
|
856
|
+
], 8, da)) : g("", !0),
|
|
848
857
|
_("defs", null, [
|
|
849
858
|
_("filter", {
|
|
850
859
|
id: `blur_${J.value}`,
|
|
@@ -857,12 +866,12 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
857
866
|
in: "SourceGraphic",
|
|
858
867
|
stdDeviation: 2,
|
|
859
868
|
id: `blur_std_${J.value}`
|
|
860
|
-
}, null, 8,
|
|
869
|
+
}, null, 8, ha),
|
|
861
870
|
s[7] || (s[7] = _("feColorMatrix", {
|
|
862
871
|
type: "saturate",
|
|
863
872
|
values: "0"
|
|
864
873
|
}, null, -1))
|
|
865
|
-
], 8,
|
|
874
|
+
], 8, ca),
|
|
866
875
|
_("filter", {
|
|
867
876
|
id: `shadow_${J.value}`,
|
|
868
877
|
"color-interpolation-filters": "sRGB"
|
|
@@ -873,22 +882,22 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
873
882
|
stdDeviation: "10",
|
|
874
883
|
"flood-opacity": "0.5",
|
|
875
884
|
"flood-color": e.value.donutShadowColor
|
|
876
|
-
}, null, 8,
|
|
877
|
-
], 8,
|
|
885
|
+
}, null, 8, ga)
|
|
886
|
+
], 8, fa)
|
|
878
887
|
]),
|
|
879
888
|
L.value === A.DONUT ? (a(), l(m, { key: 3 }, [
|
|
880
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
889
|
+
e.value.showDataLabels ? (a(), l("g", ma, [
|
|
881
890
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
882
891
|
I.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
883
892
|
key: 0,
|
|
884
|
-
d: f(
|
|
893
|
+
d: f(Wt)(t, { x: b.value.width / 2, y: b.value.height / 2 }, 16, 16, !1, !1, b.value.height * vt.value),
|
|
885
894
|
stroke: t.color,
|
|
886
895
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
887
896
|
"stroke-linecap": "round",
|
|
888
897
|
"stroke-linejoin": "round",
|
|
889
898
|
fill: "none",
|
|
890
899
|
filter: we(t.id)
|
|
891
|
-
}, null, 8,
|
|
900
|
+
}, null, 8, pa)) : g("", !0)
|
|
892
901
|
], 64))), 256))
|
|
893
902
|
])) : g("", !0),
|
|
894
903
|
_("circle", {
|
|
@@ -897,24 +906,24 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
897
906
|
r: I.value.radius,
|
|
898
907
|
fill: e.value.backgroundColor,
|
|
899
908
|
filter: e.value.donutUseShadow ? `url(#shadow_${J.value})` : ""
|
|
900
|
-
}, null, 8,
|
|
901
|
-
_("g",
|
|
909
|
+
}, null, 8, ya),
|
|
910
|
+
_("g", xa, [
|
|
902
911
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
903
912
|
d: t.arcSlice,
|
|
904
913
|
fill: t.color,
|
|
905
914
|
stroke: e.value.backgroundColor,
|
|
906
915
|
"stroke-width": e.value.donutStrokeWidth,
|
|
907
916
|
filter: we(t.id)
|
|
908
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, ka))), 256)),
|
|
909
918
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l("path", {
|
|
910
919
|
d: t.arcSlice,
|
|
911
920
|
fill: "transparent",
|
|
912
921
|
onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex: u }),
|
|
913
922
|
onMouseout: s[0] || (s[0] = (r) => I.value.killTooltip()),
|
|
914
|
-
onClick: (r) =>
|
|
915
|
-
}, null, 40,
|
|
923
|
+
onClick: (r) => re("selectDatapoint", t)
|
|
924
|
+
}, null, 40, ba))), 256))
|
|
916
925
|
]),
|
|
917
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
926
|
+
e.value.showDataLabels ? (a(), l("g", Sa, [
|
|
918
927
|
(a(!0), l(m, null, $(I.value.chart, (t, u) => (a(), l(m, null, [
|
|
919
928
|
I.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
920
929
|
key: 0,
|
|
@@ -925,7 +934,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
925
934
|
"stroke-width": 1,
|
|
926
935
|
r: 3,
|
|
927
936
|
filter: we(t.id)
|
|
928
|
-
}, null, 8,
|
|
937
|
+
}, null, 8, wa)) : g("", !0),
|
|
929
938
|
I.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
930
939
|
key: 1,
|
|
931
940
|
"text-anchor": f(Le)(t, !0, 20).anchor,
|
|
@@ -934,7 +943,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
934
943
|
fill: e.value.color,
|
|
935
944
|
"font-size": e.value.dataLabelFontSize,
|
|
936
945
|
filter: we(t.id)
|
|
937
|
-
},
|
|
946
|
+
}, O(I.value.displayArcPercentage(t, I.value.chart)) + " (" + O(f(X)(
|
|
938
947
|
e.value.formatter,
|
|
939
948
|
t.value,
|
|
940
949
|
f(D)({
|
|
@@ -944,7 +953,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
944
953
|
r: e.value.dataLabelRoundingValue
|
|
945
954
|
}),
|
|
946
955
|
{ datapoint: t, seriesIndex: u }
|
|
947
|
-
)) + ") ", 9,
|
|
956
|
+
)) + ") ", 9, Aa)) : g("", !0),
|
|
948
957
|
I.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
949
958
|
key: 2,
|
|
950
959
|
"text-anchor": f(Le)(t).anchor,
|
|
@@ -953,33 +962,33 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
953
962
|
fill: e.value.color,
|
|
954
963
|
"font-size": e.value.dataLabelFontSize,
|
|
955
964
|
filter: we(t.id)
|
|
956
|
-
},
|
|
965
|
+
}, O(t.name), 9, _a)) : g("", !0)
|
|
957
966
|
], 64))), 256))
|
|
958
967
|
])) : g("", !0),
|
|
959
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
968
|
+
e.value.donutShowTotal ? (a(), l("g", La, [
|
|
960
969
|
_("text", {
|
|
961
970
|
"text-anchor": "middle",
|
|
962
971
|
x: I.value.drawingArea.centerX,
|
|
963
972
|
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
964
973
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
965
974
|
fill: e.value.color
|
|
966
|
-
},
|
|
975
|
+
}, O(e.value.donutTotalLabelText), 9, za),
|
|
967
976
|
_("text", {
|
|
968
977
|
"text-anchor": "middle",
|
|
969
978
|
x: I.value.drawingArea.centerX,
|
|
970
979
|
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
971
980
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
972
981
|
fill: e.value.color
|
|
973
|
-
},
|
|
982
|
+
}, O(f(D)({
|
|
974
983
|
p: e.value.valuePrefix,
|
|
975
984
|
v: I.value.total,
|
|
976
985
|
s: e.value.valueSuffix,
|
|
977
986
|
r: e.value.dataLabelRoundingValue
|
|
978
|
-
})), 9,
|
|
987
|
+
})), 9, $a)
|
|
979
988
|
])) : g("", !0)
|
|
980
989
|
], 64)) : g("", !0),
|
|
981
990
|
L.value === A.LINE ? (a(), l(m, { key: 4 }, [
|
|
982
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
991
|
+
e.value.xyShowGrid ? (a(), l("g", Ca, [
|
|
983
992
|
(a(!0), l(m, null, $(v.value.yLabels, (t) => (a(), l(m, null, [
|
|
984
993
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
985
994
|
key: 0,
|
|
@@ -990,7 +999,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
990
999
|
stroke: e.value.xyGridStroke,
|
|
991
1000
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
992
1001
|
"stroke-linecap": "round"
|
|
993
|
-
}, null, 8,
|
|
1002
|
+
}, null, 8, Ia)) : g("", !0)
|
|
994
1003
|
], 64))), 256)),
|
|
995
1004
|
(a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
996
1005
|
x1: v.value.drawingArea.left + v.value.slotSize * u,
|
|
@@ -1000,9 +1009,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1000
1009
|
stroke: e.value.xyGridStroke,
|
|
1001
1010
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1002
1011
|
"stroke-linecap": "round"
|
|
1003
|
-
}, null, 8,
|
|
1012
|
+
}, null, 8, Ea))), 256))
|
|
1004
1013
|
])) : g("", !0),
|
|
1005
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1014
|
+
e.value.xyShowAxis ? (a(), l("g", Oa, [
|
|
1006
1015
|
_("line", {
|
|
1007
1016
|
x1: v.value.drawingArea.left,
|
|
1008
1017
|
x2: v.value.drawingArea.left,
|
|
@@ -1011,7 +1020,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1011
1020
|
stroke: e.value.xyAxisStroke,
|
|
1012
1021
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1013
1022
|
"stroke-linecap": "round"
|
|
1014
|
-
}, null, 8,
|
|
1023
|
+
}, null, 8, Ta),
|
|
1015
1024
|
_("line", {
|
|
1016
1025
|
x1: v.value.drawingArea.left,
|
|
1017
1026
|
x2: v.value.drawingArea.right,
|
|
@@ -1020,9 +1029,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1020
1029
|
stroke: e.value.xyAxisStroke,
|
|
1021
1030
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1022
1031
|
"stroke-linecap": "round"
|
|
1023
|
-
}, null, 8,
|
|
1032
|
+
}, null, 8, Pa)
|
|
1024
1033
|
])) : g("", !0),
|
|
1025
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1034
|
+
e.value.xyShowScale ? (a(), l("g", Ra, [
|
|
1026
1035
|
(a(!0), l(m, null, $(v.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1027
1036
|
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1028
1037
|
key: 0,
|
|
@@ -1033,7 +1042,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1033
1042
|
stroke: e.value.xyAxisStroke,
|
|
1034
1043
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1035
1044
|
"stroke-linecap": "round"
|
|
1036
|
-
}, null, 8,
|
|
1045
|
+
}, null, 8, Ma)) : g("", !0),
|
|
1037
1046
|
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1038
1047
|
key: 1,
|
|
1039
1048
|
x: t.x,
|
|
@@ -1041,7 +1050,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1041
1050
|
"text-anchor": "end",
|
|
1042
1051
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1043
1052
|
fill: e.value.color
|
|
1044
|
-
},
|
|
1053
|
+
}, O(f(X)(
|
|
1045
1054
|
e.value.formatter,
|
|
1046
1055
|
t.value,
|
|
1047
1056
|
f(D)({
|
|
@@ -1051,12 +1060,12 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1051
1060
|
r: e.value.dataLabelRoundingValue
|
|
1052
1061
|
}),
|
|
1053
1062
|
{ datapoint: t, seriesIndex: u }
|
|
1054
|
-
)), 9,
|
|
1063
|
+
)), 9, Fa)) : g("", !0)
|
|
1055
1064
|
], 64))), 256))
|
|
1056
1065
|
])) : g("", !0),
|
|
1057
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1066
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Na, [
|
|
1058
1067
|
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, u) => (a(), l(m, null, [
|
|
1059
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((
|
|
1068
|
+
!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
1069
|
key: 0,
|
|
1061
1070
|
x1: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
1062
1071
|
x2: v.value.drawingArea.left + v.value.slotSize * (u + 1) - v.value.slotSize / 2,
|
|
@@ -1065,8 +1074,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1065
1074
|
stroke: e.value.xyAxisStroke,
|
|
1066
1075
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1067
1076
|
"stroke-linecap": "round"
|
|
1068
|
-
}, null, 8,
|
|
1069
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && u % Math.floor((
|
|
1077
|
+
}, null, 8, Ua)) : g("", !0),
|
|
1078
|
+
!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
1079
|
String(t).includes(`
|
|
1071
1080
|
`) ? (a(), l("text", {
|
|
1072
1081
|
key: 1,
|
|
@@ -1074,44 +1083,44 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1074
1083
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1075
1084
|
fill: e.value.color,
|
|
1076
1085
|
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(
|
|
1086
|
+
innerHTML: f(jt)({
|
|
1078
1087
|
content: String(t),
|
|
1079
1088
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1080
1089
|
fill: e.value.color,
|
|
1081
1090
|
x: 0,
|
|
1082
1091
|
y: 0
|
|
1083
1092
|
})
|
|
1084
|
-
}, null, 8,
|
|
1093
|
+
}, null, 8, Va)) : (a(), l("text", {
|
|
1085
1094
|
key: 0,
|
|
1086
1095
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1087
1096
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1088
1097
|
fill: e.value.color,
|
|
1089
1098
|
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
|
-
},
|
|
1099
|
+
}, O(t), 9, Da))
|
|
1091
1100
|
])) : g("", !0)
|
|
1092
1101
|
], 64))), 256))
|
|
1093
1102
|
])) : g("", !0),
|
|
1094
|
-
_("g",
|
|
1095
|
-
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l("g",
|
|
1103
|
+
_("g", qa, [
|
|
1104
|
+
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l("g", Ha, [
|
|
1096
1105
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
1097
1106
|
_("path", {
|
|
1098
|
-
d: `M ${f(
|
|
1107
|
+
d: `M ${f(pt)(t.coordinates)}`,
|
|
1099
1108
|
stroke: e.value.backgroundColor,
|
|
1100
1109
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1101
1110
|
"stroke-linecap": "round",
|
|
1102
1111
|
fill: "none",
|
|
1103
|
-
class:
|
|
1112
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1104
1113
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1105
|
-
}, null, 10,
|
|
1114
|
+
}, null, 10, Wa),
|
|
1106
1115
|
_("path", {
|
|
1107
|
-
d: `M ${f(
|
|
1116
|
+
d: `M ${f(pt)(t.coordinates)}`,
|
|
1108
1117
|
stroke: t.color,
|
|
1109
1118
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1110
1119
|
"stroke-linecap": "round",
|
|
1111
1120
|
fill: "none",
|
|
1112
|
-
class:
|
|
1121
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1113
1122
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1114
|
-
}, null, 10,
|
|
1123
|
+
}, null, 10, ja)
|
|
1115
1124
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
1116
1125
|
_("path", {
|
|
1117
1126
|
d: `M ${t.linePath}`,
|
|
@@ -1119,18 +1128,18 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1119
1128
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1120
1129
|
"stroke-linecap": "round",
|
|
1121
1130
|
fill: "none",
|
|
1122
|
-
class:
|
|
1131
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1123
1132
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1124
|
-
}, null, 10,
|
|
1133
|
+
}, null, 10, Ga),
|
|
1125
1134
|
_("path", {
|
|
1126
1135
|
d: `M ${t.linePath}`,
|
|
1127
1136
|
stroke: t.color,
|
|
1128
1137
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1129
1138
|
"stroke-linecap": "round",
|
|
1130
1139
|
fill: "none",
|
|
1131
|
-
class:
|
|
1140
|
+
class: fe({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1132
1141
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1133
|
-
}, null, 10,
|
|
1142
|
+
}, null, 10, Xa)
|
|
1134
1143
|
], 64)),
|
|
1135
1144
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1136
1145
|
cx: r.x,
|
|
@@ -1141,10 +1150,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1141
1150
|
"stroke-width": "0.5",
|
|
1142
1151
|
class: "quick-animation",
|
|
1143
1152
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1144
|
-
}, null, 8,
|
|
1153
|
+
}, null, 8, Za))), 256))
|
|
1145
1154
|
]))), 256))
|
|
1146
1155
|
]),
|
|
1147
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1156
|
+
e.value.showDataLabels ? (a(), l("g", Ya, [
|
|
1148
1157
|
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1149
1158
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1150
1159
|
"text-anchor": "middle",
|
|
@@ -1154,7 +1163,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1154
1163
|
y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1155
1164
|
class: "quick-animation",
|
|
1156
1165
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1157
|
-
},
|
|
1166
|
+
}, O(f(X)(
|
|
1158
1167
|
e.value.formatter,
|
|
1159
1168
|
f(Z)(r.value),
|
|
1160
1169
|
f(D)({
|
|
@@ -1164,10 +1173,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1164
1173
|
r: e.value.dataLabelRoundingValue
|
|
1165
1174
|
}),
|
|
1166
1175
|
{ datapoint: r, seriesIndex: h }
|
|
1167
|
-
)), 9,
|
|
1176
|
+
)), 9, Ja))), 256))
|
|
1168
1177
|
], 64))), 256))
|
|
1169
1178
|
])) : g("", !0),
|
|
1170
|
-
_("g",
|
|
1179
|
+
_("g", Qa, [
|
|
1171
1180
|
(a(!0), l(m, null, $(v.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1172
1181
|
x: v.value.drawingArea.left + u * v.value.slotSize,
|
|
1173
1182
|
y: v.value.drawingArea.top,
|
|
@@ -1177,15 +1186,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1177
1186
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1178
1187
|
onMouseenter: (r) => v.value.useTooltip(u),
|
|
1179
1188
|
onMouseleave: s[1] || (s[1] = (r) => v.value.killTooltip()),
|
|
1180
|
-
onClick: (r) =>
|
|
1189
|
+
onClick: (r) => re("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1181
1190
|
...h,
|
|
1182
1191
|
value: h.values[u]
|
|
1183
1192
|
})))
|
|
1184
|
-
}, null, 44,
|
|
1193
|
+
}, null, 44, Ka))), 256))
|
|
1185
1194
|
])
|
|
1186
1195
|
], 64)) : g("", !0),
|
|
1187
1196
|
L.value === A.BAR ? (a(), l(m, { key: 5 }, [
|
|
1188
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1197
|
+
e.value.xyShowGrid ? (a(), l("g", el, [
|
|
1189
1198
|
(a(!0), l(m, null, $(d.value.yLabels, (t) => (a(), l(m, null, [
|
|
1190
1199
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1191
1200
|
key: 0,
|
|
@@ -1196,7 +1205,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1196
1205
|
stroke: e.value.xyGridStroke,
|
|
1197
1206
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1198
1207
|
"stroke-linecap": "round"
|
|
1199
|
-
}, null, 8,
|
|
1208
|
+
}, null, 8, tl)) : g("", !0)
|
|
1200
1209
|
], 64))), 256)),
|
|
1201
1210
|
(a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t, u) => (a(), l("line", {
|
|
1202
1211
|
x1: d.value.drawingArea.left + d.value.slotSize * u,
|
|
@@ -1206,9 +1215,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1206
1215
|
stroke: e.value.xyGridStroke,
|
|
1207
1216
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1208
1217
|
"stroke-linecap": "round"
|
|
1209
|
-
}, null, 8,
|
|
1218
|
+
}, null, 8, al))), 256))
|
|
1210
1219
|
])) : g("", !0),
|
|
1211
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1220
|
+
e.value.xyShowAxis ? (a(), l("g", ll, [
|
|
1212
1221
|
_("line", {
|
|
1213
1222
|
x1: d.value.drawingArea.left,
|
|
1214
1223
|
x2: d.value.drawingArea.left,
|
|
@@ -1217,7 +1226,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1217
1226
|
stroke: e.value.xyAxisStroke,
|
|
1218
1227
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1219
1228
|
"stroke-linecap": "round"
|
|
1220
|
-
}, null, 8,
|
|
1229
|
+
}, null, 8, ol),
|
|
1221
1230
|
_("line", {
|
|
1222
1231
|
x1: d.value.drawingArea.left,
|
|
1223
1232
|
x2: d.value.drawingArea.right,
|
|
@@ -1226,9 +1235,9 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1226
1235
|
stroke: e.value.xyAxisStroke,
|
|
1227
1236
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1228
1237
|
"stroke-linecap": "round"
|
|
1229
|
-
}, null, 8,
|
|
1238
|
+
}, null, 8, nl)
|
|
1230
1239
|
])) : g("", !0),
|
|
1231
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1240
|
+
e.value.xyShowScale ? (a(), l("g", il, [
|
|
1232
1241
|
(a(!0), l(m, null, $(d.value.yLabels, (t, u) => (a(), l(m, null, [
|
|
1233
1242
|
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1234
1243
|
key: 0,
|
|
@@ -1239,7 +1248,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1239
1248
|
stroke: e.value.xyAxisStroke,
|
|
1240
1249
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1241
1250
|
"stroke-linecap": "round"
|
|
1242
|
-
}, null, 8,
|
|
1251
|
+
}, null, 8, ul)) : g("", !0),
|
|
1243
1252
|
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
1244
1253
|
key: 1,
|
|
1245
1254
|
x: t.x,
|
|
@@ -1247,7 +1256,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1247
1256
|
"text-anchor": "end",
|
|
1248
1257
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1249
1258
|
fill: e.value.color
|
|
1250
|
-
},
|
|
1259
|
+
}, O(f(X)(
|
|
1251
1260
|
e.value.formatter,
|
|
1252
1261
|
t.value,
|
|
1253
1262
|
f(D)({
|
|
@@ -1257,11 +1266,11 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1257
1266
|
r: e.value.dataLabelRoundingValue
|
|
1258
1267
|
}),
|
|
1259
1268
|
{ datapoint: t, seriesIndex: u }
|
|
1260
|
-
)), 9,
|
|
1269
|
+
)), 9, rl)) : g("", !0)
|
|
1261
1270
|
], 64))), 256))
|
|
1262
1271
|
])) : g("", !0),
|
|
1263
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1264
|
-
(a(!0), l(m, null, $(e.value.xyPeriods.slice(
|
|
1272
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", sl, [
|
|
1273
|
+
(a(!0), l(m, null, $(e.value.xyPeriods.slice(x.value.start, x.value.end), (t, u) => (a(), l("line", {
|
|
1265
1274
|
x1: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
1266
1275
|
x2: d.value.drawingArea.left + d.value.slotSize * (u + 1) - d.value.slotSize / 2,
|
|
1267
1276
|
y1: d.value.drawingArea.bottom,
|
|
@@ -1269,15 +1278,15 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1269
1278
|
stroke: e.value.xyAxisStroke,
|
|
1270
1279
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1271
1280
|
"stroke-linecap": "round"
|
|
1272
|
-
}, null, 8,
|
|
1281
|
+
}, null, 8, vl))), 256)),
|
|
1273
1282
|
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, u) => (a(), l("text", {
|
|
1274
1283
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1275
1284
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1276
1285
|
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
1286
|
fill: e.value.color
|
|
1278
|
-
},
|
|
1287
|
+
}, O(t), 9, dl))), 256))
|
|
1279
1288
|
])) : g("", !0),
|
|
1280
|
-
_("g",
|
|
1289
|
+
_("g", cl, [
|
|
1281
1290
|
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1282
1291
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1283
1292
|
x: r.x,
|
|
@@ -1288,26 +1297,26 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1288
1297
|
stroke: e.value.backgroundColor,
|
|
1289
1298
|
"stroke-width": e.value.barStrokeWidth,
|
|
1290
1299
|
"stroke-linecap": "round",
|
|
1291
|
-
class:
|
|
1300
|
+
class: fe({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
|
|
1292
1301
|
}, [
|
|
1293
|
-
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(
|
|
1302
|
+
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Oe) ? (a(), l("animate", {
|
|
1294
1303
|
key: 0,
|
|
1295
1304
|
attributeName: "height",
|
|
1296
1305
|
from: 0,
|
|
1297
1306
|
to: r.height,
|
|
1298
1307
|
dur: "0.5s"
|
|
1299
|
-
}, null, 8,
|
|
1300
|
-
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(
|
|
1308
|
+
}, null, 8, fl)) : g("", !0),
|
|
1309
|
+
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Oe) ? (a(), l("animate", {
|
|
1301
1310
|
key: 1,
|
|
1302
1311
|
attributeName: "y",
|
|
1303
1312
|
from: d.value.absoluteZero,
|
|
1304
1313
|
to: d.value.absoluteZero - r.height,
|
|
1305
1314
|
dur: "0.5s"
|
|
1306
|
-
}, null, 8,
|
|
1307
|
-
], 10,
|
|
1315
|
+
}, null, 8, gl)) : g("", !0)
|
|
1316
|
+
], 10, hl))), 256))
|
|
1308
1317
|
], 64))), 256))
|
|
1309
1318
|
]),
|
|
1310
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1319
|
+
e.value.showDataLabels ? (a(), l("g", ml, [
|
|
1311
1320
|
(a(!0), l(m, null, $(d.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1312
1321
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1313
1322
|
x: r.x + r.width / 2,
|
|
@@ -1316,7 +1325,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1316
1325
|
"font-size": e.value.dataLabelFontSize,
|
|
1317
1326
|
fill: t.color,
|
|
1318
1327
|
class: "quick-animation"
|
|
1319
|
-
},
|
|
1328
|
+
}, O(f(X)(
|
|
1320
1329
|
e.value.formatter,
|
|
1321
1330
|
f(Z)(r.value),
|
|
1322
1331
|
f(D)({
|
|
@@ -1326,10 +1335,10 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1326
1335
|
r: e.value.dataLabelRoundingValue
|
|
1327
1336
|
}),
|
|
1328
1337
|
{ datapoint: r, seriesIndex: h }
|
|
1329
|
-
)), 9,
|
|
1338
|
+
)), 9, pl))), 256))
|
|
1330
1339
|
], 64))), 256))
|
|
1331
1340
|
])) : g("", !0),
|
|
1332
|
-
_("g",
|
|
1341
|
+
_("g", yl, [
|
|
1333
1342
|
(a(!0), l(m, null, $(d.value.extremes.maxSeries, (t, u) => (a(), l("rect", {
|
|
1334
1343
|
x: d.value.drawingArea.left + u * d.value.slotSize,
|
|
1335
1344
|
y: d.value.drawingArea.top,
|
|
@@ -1339,51 +1348,51 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1339
1348
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1340
1349
|
onMouseenter: (r) => d.value.useTooltip(u),
|
|
1341
1350
|
onMouseleave: s[2] || (s[2] = (r) => d.value.killTooltip()),
|
|
1342
|
-
onClick: (r) =>
|
|
1351
|
+
onClick: (r) => re("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1343
1352
|
...h,
|
|
1344
1353
|
value: h.values[u]
|
|
1345
1354
|
})))
|
|
1346
|
-
}, null, 44,
|
|
1355
|
+
}, null, 44, xl))), 256))
|
|
1347
1356
|
])
|
|
1348
1357
|
], 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",
|
|
1358
|
+
[A.LINE, A.BAR].includes(L.value) ? (a(), l("g", kl, [
|
|
1359
|
+
e.value.xAxisLabel && L.value === A.LINE ? (a(), l("g", bl, [
|
|
1351
1360
|
_("text", {
|
|
1352
1361
|
"font-size": e.value.axisLabelsFontSize,
|
|
1353
1362
|
fill: e.value.color,
|
|
1354
1363
|
"text-anchor": "middle",
|
|
1355
1364
|
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1356
1365
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1357
|
-
},
|
|
1366
|
+
}, O(e.value.xAxisLabel), 9, Sl)
|
|
1358
1367
|
])) : g("", !0),
|
|
1359
|
-
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g",
|
|
1368
|
+
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g", wl, [
|
|
1360
1369
|
_("text", {
|
|
1361
1370
|
"font-size": e.value.axisLabelsFontSize,
|
|
1362
1371
|
fill: e.value.color,
|
|
1363
1372
|
"text-anchor": "middle",
|
|
1364
1373
|
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1365
1374
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1366
|
-
},
|
|
1375
|
+
}, O(e.value.xAxisLabel), 9, Al)
|
|
1367
1376
|
])) : g("", !0),
|
|
1368
|
-
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g",
|
|
1377
|
+
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g", _l, [
|
|
1369
1378
|
_("text", {
|
|
1370
1379
|
"font-size": e.value.axisLabelsFontSize,
|
|
1371
1380
|
fill: e.value.color,
|
|
1372
1381
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1373
1382
|
"text-anchor": "middle"
|
|
1374
|
-
},
|
|
1383
|
+
}, O(e.value.yAxisLabel), 9, Ll)
|
|
1375
1384
|
])) : g("", !0),
|
|
1376
|
-
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g",
|
|
1385
|
+
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g", zl, [
|
|
1377
1386
|
_("text", {
|
|
1378
1387
|
"font-size": e.value.axisLabelsFontSize,
|
|
1379
1388
|
fill: e.value.color,
|
|
1380
1389
|
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1381
1390
|
"text-anchor": "middle"
|
|
1382
|
-
},
|
|
1391
|
+
}, O(e.value.yAxisLabel), 9, $l)
|
|
1383
1392
|
])) : g("", !0)
|
|
1384
1393
|
])) : g("", !0)
|
|
1385
|
-
], 12,
|
|
1386
|
-
L.value ? g("", !0) : (a(), Fe(f(
|
|
1394
|
+
], 12, ra)) : g("", !0),
|
|
1395
|
+
L.value ? g("", !0) : (a(), Fe(f(pe), {
|
|
1387
1396
|
key: 5,
|
|
1388
1397
|
config: {
|
|
1389
1398
|
type: "line",
|
|
@@ -1401,53 +1410,53 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1401
1410
|
}
|
|
1402
1411
|
}
|
|
1403
1412
|
}, null, 8, ["config"])),
|
|
1404
|
-
o.$slots.watermark ? (a(), l("div",
|
|
1405
|
-
M(o.$slots, "watermark",
|
|
1413
|
+
o.$slots.watermark ? (a(), l("div", Cl, [
|
|
1414
|
+
M(o.$slots, "watermark", ie(ue({ isPrinting: f(Ee) || f(Oe) })), void 0, !0)
|
|
1406
1415
|
])) : g("", !0),
|
|
1407
1416
|
[A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1408
1417
|
key: `slicer_${Ce.value}`,
|
|
1409
1418
|
ref_key: "quickChartSlicer",
|
|
1410
1419
|
ref: Ze
|
|
1411
1420
|
}, [
|
|
1412
|
-
(a(), Fe(
|
|
1421
|
+
(a(), Fe(Jt, {
|
|
1413
1422
|
ref_key: "slicerComponent",
|
|
1414
|
-
ref:
|
|
1423
|
+
ref: ve,
|
|
1415
1424
|
key: `slicer_${Ce.value}`,
|
|
1416
1425
|
background: e.value.zoomColor,
|
|
1417
1426
|
borderColor: e.value.backgroundColor,
|
|
1418
1427
|
fontSize: e.value.zoomFontSize,
|
|
1419
1428
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1420
|
-
labelLeft: e.value.xyPeriods[
|
|
1421
|
-
labelRight: e.value.xyPeriods[
|
|
1429
|
+
labelLeft: e.value.xyPeriods[x.value.start] ? K.value[0].text : "",
|
|
1430
|
+
labelRight: e.value.xyPeriods[x.value.end - 1] ? K.value.at(-1).text : "",
|
|
1422
1431
|
textColor: e.value.color,
|
|
1423
1432
|
inputColor: e.value.zoomColor,
|
|
1424
1433
|
selectColor: e.value.zoomHighlightColor,
|
|
1425
1434
|
max: p.value.maxSeriesLength,
|
|
1426
1435
|
min: 0,
|
|
1427
|
-
valueStart:
|
|
1428
|
-
valueEnd:
|
|
1436
|
+
valueStart: x.value.start,
|
|
1437
|
+
valueEnd: x.value.end,
|
|
1429
1438
|
smoothMinimap: e.value.zoomMinimap.smooth,
|
|
1430
1439
|
minimapSelectedColor: e.value.zoomMinimap.selectedColor,
|
|
1431
1440
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1432
1441
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1433
1442
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1434
|
-
minimap:
|
|
1443
|
+
minimap: Et.value,
|
|
1435
1444
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1436
1445
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1437
1446
|
minimapSelectedIndex: j.value,
|
|
1438
|
-
start:
|
|
1439
|
-
"onUpdate:start": s[3] || (s[3] = (t) =>
|
|
1440
|
-
end:
|
|
1441
|
-
"onUpdate:end": s[4] || (s[4] = (t) =>
|
|
1447
|
+
start: x.value.start,
|
|
1448
|
+
"onUpdate:start": s[3] || (s[3] = (t) => x.value.start = t),
|
|
1449
|
+
end: x.value.end,
|
|
1450
|
+
"onUpdate:end": s[4] || (s[4] = (t) => x.value.end = t),
|
|
1442
1451
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1443
1452
|
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : p.value.maxSeriesLength,
|
|
1444
1453
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
1445
1454
|
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1446
|
-
onReset:
|
|
1447
|
-
onTrapMouse:
|
|
1455
|
+
onReset: Ct,
|
|
1456
|
+
onTrapMouse: $t
|
|
1448
1457
|
}, {
|
|
1449
1458
|
"reset-action": G(({ reset: t }) => [
|
|
1450
|
-
M(o.$slots, "reset-action",
|
|
1459
|
+
M(o.$slots, "reset-action", ie(ue({ reset: t })), void 0, !0)
|
|
1451
1460
|
]),
|
|
1452
1461
|
_: 3
|
|
1453
1462
|
}, 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 +1471,7 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1462
1471
|
L.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, u) => (a(), l("div", {
|
|
1463
1472
|
class: "vue-ui-quick-chart-legend-item",
|
|
1464
1473
|
onClick: (r) => {
|
|
1465
|
-
|
|
1474
|
+
zt(t, I.value.dataset), re("selectLegend", t);
|
|
1466
1475
|
},
|
|
1467
1476
|
style: R(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1468
1477
|
}, [
|
|
@@ -1470,17 +1479,17 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1470
1479
|
key: 0,
|
|
1471
1480
|
ref_for: !0
|
|
1472
1481
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1473
|
-
|
|
1482
|
+
ge(f(T), {
|
|
1474
1483
|
name: e.value.legendIcon,
|
|
1475
1484
|
stroke: t.color,
|
|
1476
1485
|
size: e.value.legendIconSize
|
|
1477
1486
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1478
1487
|
_("span", {
|
|
1479
1488
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1480
|
-
},
|
|
1489
|
+
}, O(t.name), 5),
|
|
1481
1490
|
_("span", {
|
|
1482
1491
|
style: R(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1483
|
-
},
|
|
1492
|
+
}, O(w.value.includes(t.id) ? "-" : f(X)(
|
|
1484
1493
|
e.value.formatter,
|
|
1485
1494
|
t.absoluteValue,
|
|
1486
1495
|
f(D)({
|
|
@@ -1494,23 +1503,23 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1494
1503
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1495
1504
|
key: 0,
|
|
1496
1505
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1497
|
-
}, " ( - % ) ", 4)) :
|
|
1506
|
+
}, " ( - % ) ", 4)) : Te.value ? (a(), l("span", {
|
|
1498
1507
|
key: 1,
|
|
1499
1508
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1500
1509
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1501
1510
|
key: 2,
|
|
1502
1511
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1503
|
-
}, " (" +
|
|
1512
|
+
}, " (" + O(f(D)({
|
|
1504
1513
|
v: t.value / I.value.total * 100,
|
|
1505
1514
|
s: "%",
|
|
1506
1515
|
r: e.value.dataLabelRoundingPercentage
|
|
1507
1516
|
})) + ") ", 5))
|
|
1508
1517
|
], 64))
|
|
1509
|
-
], 12,
|
|
1518
|
+
], 12, Il))), 256)) : g("", !0),
|
|
1510
1519
|
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(v.value.legend, (t, u) => (a(), l("div", {
|
|
1511
1520
|
class: "vue-ui-quick-chart-legend-item",
|
|
1512
1521
|
onClick: (r) => {
|
|
1513
|
-
ut(t.id, v.value.legend.length - 1),
|
|
1522
|
+
ut(t.id, v.value.legend.length - 1), re("selectLegend", t);
|
|
1514
1523
|
},
|
|
1515
1524
|
style: R(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1516
1525
|
}, [
|
|
@@ -1518,20 +1527,20 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1518
1527
|
key: 0,
|
|
1519
1528
|
ref_for: !0
|
|
1520
1529
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1521
|
-
|
|
1530
|
+
ge(f(T), {
|
|
1522
1531
|
name: e.value.legendIcon,
|
|
1523
1532
|
stroke: t.color,
|
|
1524
1533
|
size: e.value.legendIconSize
|
|
1525
1534
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1526
1535
|
_("span", {
|
|
1527
1536
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1528
|
-
},
|
|
1537
|
+
}, O(t.name), 5)
|
|
1529
1538
|
], 64))
|
|
1530
|
-
], 12,
|
|
1539
|
+
], 12, El))), 256)) : g("", !0),
|
|
1531
1540
|
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(d.value.legend, (t, u) => (a(), l("div", {
|
|
1532
1541
|
class: "vue-ui-quick-chart-legend-item",
|
|
1533
1542
|
onClick: (r) => {
|
|
1534
|
-
ut(t.id, d.value.legend.length - 1),
|
|
1543
|
+
ut(t.id, d.value.legend.length - 1), re("selectLegend", t);
|
|
1535
1544
|
},
|
|
1536
1545
|
style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1537
1546
|
}, [
|
|
@@ -1539,16 +1548,16 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1539
1548
|
key: 0,
|
|
1540
1549
|
ref_for: !0
|
|
1541
1550
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1542
|
-
|
|
1551
|
+
ge(f(T), {
|
|
1543
1552
|
name: e.value.legendIcon,
|
|
1544
1553
|
stroke: t.color,
|
|
1545
1554
|
size: e.value.legendIconSize
|
|
1546
1555
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1547
1556
|
_("span", {
|
|
1548
1557
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1549
|
-
},
|
|
1558
|
+
}, O(t.name), 5)
|
|
1550
1559
|
], 64))
|
|
1551
|
-
], 12,
|
|
1560
|
+
], 12, Ol))), 256)) : g("", !0)
|
|
1552
1561
|
], 4)) : g("", !0),
|
|
1553
1562
|
o.$slots.source ? (a(), l("div", {
|
|
1554
1563
|
key: 9,
|
|
@@ -1558,8 +1567,8 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1558
1567
|
}, [
|
|
1559
1568
|
M(o.$slots, "source", {}, void 0, !0)
|
|
1560
1569
|
], 512)) : g("", !0),
|
|
1561
|
-
|
|
1562
|
-
show: Se.value.showTooltip &&
|
|
1570
|
+
ge(f(ye), {
|
|
1571
|
+
show: Se.value.showTooltip && te.value,
|
|
1563
1572
|
backgroundColor: e.value.backgroundColor,
|
|
1564
1573
|
color: e.value.color,
|
|
1565
1574
|
borderRadius: e.value.tooltipBorderRadius,
|
|
@@ -1569,28 +1578,28 @@ const na = ["id"], ia = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1569
1578
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1570
1579
|
position: e.value.tooltipPosition,
|
|
1571
1580
|
offsetY: e.value.tooltipOffsetY,
|
|
1572
|
-
parent:
|
|
1573
|
-
content:
|
|
1581
|
+
parent: ee.value,
|
|
1582
|
+
content: ae.value,
|
|
1574
1583
|
isFullscreen: Pe.value,
|
|
1575
1584
|
isCustom: f(Ne)(e.value.tooltipCustomFormat)
|
|
1576
1585
|
}, {
|
|
1577
1586
|
"tooltip-before": G(() => [
|
|
1578
|
-
M(o.$slots, "tooltip-before",
|
|
1587
|
+
M(o.$slots, "tooltip-before", ie(ue({ ...xe.value })), void 0, !0)
|
|
1579
1588
|
]),
|
|
1580
1589
|
"tooltip-after": G(() => [
|
|
1581
|
-
M(o.$slots, "tooltip-after",
|
|
1590
|
+
M(o.$slots, "tooltip-after", ie(ue({ ...xe.value })), void 0, !0)
|
|
1582
1591
|
]),
|
|
1583
1592
|
_: 3
|
|
1584
1593
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
1585
|
-
], 46,
|
|
1586
|
-
|
|
1594
|
+
], 46, ua)) : (a(), l("div", Tl, [
|
|
1595
|
+
ge(f(T), {
|
|
1587
1596
|
name: "circleCancel",
|
|
1588
1597
|
stroke: "red"
|
|
1589
1598
|
}),
|
|
1590
1599
|
s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
|
|
1591
1600
|
]));
|
|
1592
1601
|
}
|
|
1593
|
-
},
|
|
1602
|
+
}, Wl = /* @__PURE__ */ ea(Pl, [["__scopeId", "data-v-c0908d48"]]);
|
|
1594
1603
|
export {
|
|
1595
|
-
|
|
1604
|
+
Wl as default
|
|
1596
1605
|
};
|