vue-data-ui 2.14.2 → 2.14.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/{Arrow-DNJvKMao.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-DzCoab4C.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-DLJ9I-cg.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-DdpwkHh8.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-B6mk6VRe.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-xtSGHclp.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-D8swCIay.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-BbJkNcCM.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CtqhCOnQ.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-DBYSSUsg.js → index-BzH6XFI9.js} +409 -394
- package/dist/{pdf-Cq3bf6D0.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-xF9W73YL.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-D6VPixUt.js} +111 -111
- package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-CWm-A-co.js} +46 -46
- package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineAsyncComponent as ce, ref as z, computed as U, watch as Ve, shallowRef as ht, onMounted as
|
|
2
|
-
import { u as Rt, c as Mt, t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as pt } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import { _ as
|
|
1
|
+
import { defineAsyncComponent as ce, ref as z, computed as U, watch as Ve, shallowRef as ht, onMounted as Tt, onBeforeUnmount as Ot, nextTick as Me, createElementBlock as l, openBlock as a, normalizeStyle as R, normalizeClass as he, createBlock as Fe, createCommentVNode as g, createVNode as fe, unref as f, createSlots as Pt, withCtx as G, renderSlot as M, normalizeProps as ne, guardReactiveProps as ue, toDisplayString as T, createElementVNode as _, Fragment as m, renderList as $, mergeProps as qe } from "vue";
|
|
2
|
+
import { u as Rt, c as Mt, t as Ft, p as q, a as Nt, C as ft, b as Ut, H as Bt, e as Dt, d as He, m as Vt, D as gt, X as qt, j as Ht, k as We, n as Le, i as X, f as D, I as Wt, V as mt, v as Z, x as Ne, y as je } from "./index-BzH6XFI9.js";
|
|
3
|
+
import { t as jt, u as Gt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as pt } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as Xt } from "./usePrinter-C653sJjz.js";
|
|
6
|
+
import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { S as Yt } from "./Slicer-DjwiDPEk.js";
|
|
8
|
+
import { u as Jt } from "./useTimeLabels-Mrr0jrpL.js";
|
|
9
|
+
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const A = {
|
|
11
11
|
LINE: "LINE",
|
|
12
12
|
BAR: "BAR",
|
|
13
13
|
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 (!
|
|
14
|
+
}, Kt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
15
|
+
function ea({ dataset: c, barLineSwitch: C = 6 }) {
|
|
16
|
+
let x = null, O = null, H = 0;
|
|
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 ? x = A.BAR : x = A.LINE, O = c, H = c.length), Ue(c))) {
|
|
18
|
+
if (!aa(c))
|
|
19
19
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
20
20
|
const pe = Object.keys(c[0]), $e = Object.values(c[0]);
|
|
21
|
-
if (!pe.some((
|
|
21
|
+
if (!pe.some((F) => la(F)))
|
|
22
22
|
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
|
-
|
|
24
|
-
...
|
|
25
|
-
data:
|
|
26
|
-
}))), c = c.map((
|
|
23
|
+
xt($e, (F) => typeof F == "number") && (x = A.DONUT, O = c), xt($e, (F) => Array.isArray(F) && Y(F)) && (yt(c) > C ? x = A.LINE : x = A.BAR, H = yt(c), O = c.map((F) => ({
|
|
24
|
+
...F,
|
|
25
|
+
data: oa(F, (B) => Y(B))
|
|
26
|
+
}))), c = c.map((F) => kt(F)), O = O.map((F) => kt(F));
|
|
27
27
|
}
|
|
28
28
|
return ze(c) && [...new Set(c.flatMap((pe) => Array.isArray(pe)))][0], {
|
|
29
29
|
dataset: c,
|
|
30
|
-
type:
|
|
31
|
-
usableDataset:
|
|
30
|
+
type: x,
|
|
31
|
+
usableDataset: O,
|
|
32
32
|
maxSeriesLength: H
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -40,101 +40,101 @@ function ze(c) {
|
|
|
40
40
|
}
|
|
41
41
|
function Y(c) {
|
|
42
42
|
if (!ze(c) || bt(c)) return !1;
|
|
43
|
-
const C = c.map((
|
|
44
|
-
return ![...new Set(C.flatMap((
|
|
43
|
+
const C = c.map((x) => Number(x));
|
|
44
|
+
return ![...new Set(C.flatMap((x) => typeof x == "number" && !isNaN(x)))].includes(!1);
|
|
45
45
|
}
|
|
46
46
|
function Ue(c) {
|
|
47
|
-
return !ze(c) || bt(c) || !![...new Set(c.flatMap((
|
|
47
|
+
return !ze(c) || bt(c) || !![...new Set(c.flatMap((x) => typeof x == "object" && !Array.isArray(x)))].includes(!1) ? !1 : !c.map((x) => Object.keys(x).length > 0).includes(!1);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
49
|
+
function ta(c, C) {
|
|
50
|
+
const x = Object.keys(c).sort(), O = Object.keys(C).sort();
|
|
51
|
+
if (x.length !== O.length)
|
|
52
52
|
return !1;
|
|
53
|
-
for (let H = 0; H <
|
|
54
|
-
const ge =
|
|
53
|
+
for (let H = 0; H < x.length; H += 1) {
|
|
54
|
+
const ge = x[H], me = O[H];
|
|
55
55
|
if (ge !== me || typeof c[ge] != typeof C[me])
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
58
|
return !0;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function aa(c) {
|
|
61
61
|
if (c.length <= 1) return !0;
|
|
62
62
|
for (let C = 0; C < c.length; C += 1)
|
|
63
|
-
for (let
|
|
64
|
-
if (!
|
|
63
|
+
for (let x = C + 1; x < c.length; x += 1)
|
|
64
|
+
if (!ta(c[C], c[x]))
|
|
65
65
|
return !1;
|
|
66
66
|
return !0;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function la(c) {
|
|
69
|
+
return Kt.includes(c.toUpperCase());
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
let
|
|
73
|
-
for (let
|
|
74
|
-
|
|
75
|
-
return
|
|
71
|
+
function xt(c, C) {
|
|
72
|
+
let x = [];
|
|
73
|
+
for (let O = 0; O < c.length; O += 1)
|
|
74
|
+
x.push(C(c[O]));
|
|
75
|
+
return x.includes(!0);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((
|
|
77
|
+
function yt(c) {
|
|
78
|
+
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((x) => Y(x)).map((x) => x.length)));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return Object.values(c).filter((
|
|
80
|
+
function oa(c, C) {
|
|
81
|
+
return Object.values(c).filter((x) => C(x))[0];
|
|
82
82
|
}
|
|
83
83
|
function kt(c) {
|
|
84
84
|
const C = {};
|
|
85
|
-
for (let
|
|
86
|
-
c.hasOwnProperty(
|
|
85
|
+
for (let x in c)
|
|
86
|
+
c.hasOwnProperty(x) && (C[x.toUpperCase()] = c[x]);
|
|
87
87
|
return C;
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const na = ["id"], ua = ["xmlns", "viewBox"], ia = ["x", "y", "width", "height"], ra = ["x", "y", "width", "height"], sa = ["width", "height"], va = ["id"], da = ["id"], ca = ["id"], ha = ["flood-color"], fa = {
|
|
90
90
|
key: 0,
|
|
91
91
|
class: "donut-label-connectors"
|
|
92
|
-
},
|
|
92
|
+
}, ga = ["d", "stroke", "stroke-width", "filter"], ma = ["cx", "cy", "r", "fill", "filter"], pa = { class: "donut" }, xa = ["d", "fill", "stroke", "stroke-width", "filter"], ya = ["d", "onMouseenter", "onClick"], ka = {
|
|
93
93
|
key: 1,
|
|
94
94
|
class: "donut-labels quick-animation"
|
|
95
|
-
},
|
|
95
|
+
}, ba = ["cx", "cy", "fill", "stroke", "filter"], Sa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], wa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], Aa = {
|
|
96
96
|
key: 2,
|
|
97
97
|
class: "donut-hollow quick-animation"
|
|
98
|
-
},
|
|
98
|
+
}, _a = ["x", "y", "font-size", "fill"], La = ["x", "y", "font-size", "fill"], za = {
|
|
99
99
|
key: 0,
|
|
100
100
|
class: "line-grid"
|
|
101
|
-
},
|
|
101
|
+
}, $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ia = {
|
|
102
102
|
key: 1,
|
|
103
103
|
class: "line-axis"
|
|
104
|
-
},
|
|
104
|
+
}, Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = {
|
|
105
105
|
key: 2,
|
|
106
106
|
class: "yLabels"
|
|
107
|
-
},
|
|
107
|
+
}, Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ra = ["x", "y", "font-size", "fill"], Ma = {
|
|
108
108
|
key: 3,
|
|
109
109
|
class: "periodLabels"
|
|
110
|
-
},
|
|
110
|
+
}, Fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = { key: 1 }, Ua = ["font-size", "text-anchor", "fill", "transform"], Ba = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Da = { class: "plots" }, Va = { class: "line-plot-series" }, qa = ["d", "stroke", "stroke-width"], Ha = ["d", "stroke", "stroke-width"], Wa = ["d", "stroke", "stroke-width"], ja = ["d", "stroke", "stroke-width"], Ga = ["cx", "cy", "fill", "stroke"], Xa = {
|
|
111
111
|
key: 4,
|
|
112
112
|
class: "dataLabels"
|
|
113
|
-
},
|
|
113
|
+
}, Za = ["font-size", "fill", "x", "y"], Ya = { class: "tooltip-traps" }, Ja = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], Qa = {
|
|
114
114
|
key: 0,
|
|
115
115
|
class: "line-grid"
|
|
116
|
-
},
|
|
116
|
+
}, Ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = {
|
|
117
117
|
key: 1,
|
|
118
118
|
class: "line-axis"
|
|
119
|
-
},
|
|
119
|
+
}, al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ol = {
|
|
120
120
|
key: 2,
|
|
121
121
|
class: "yLabels"
|
|
122
|
-
},
|
|
122
|
+
}, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x", "y", "font-size", "fill"], il = {
|
|
123
123
|
key: 3,
|
|
124
124
|
class: "periodLabels"
|
|
125
|
-
},
|
|
125
|
+
}, rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["font-size", "text-anchor", "transform", "fill"], vl = { class: "plots" }, dl = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], cl = ["to"], hl = ["from", "to"], fl = {
|
|
126
126
|
key: 4,
|
|
127
127
|
class: "dataLabels"
|
|
128
|
-
},
|
|
128
|
+
}, gl = ["x", "y", "font-size", "fill"], ml = { class: "tooltip-traps" }, pl = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], xl = {
|
|
129
129
|
key: 6,
|
|
130
130
|
class: "axis-labels"
|
|
131
|
-
},
|
|
131
|
+
}, yl = { key: 0 }, kl = ["font-size", "fill", "x", "y"], bl = { key: 1 }, Sl = ["font-size", "fill", "x", "y"], wl = { key: 2 }, Al = ["font-size", "fill", "transform"], _l = { key: 3 }, Ll = ["font-size", "fill", "transform"], zl = {
|
|
132
132
|
key: 6,
|
|
133
133
|
class: "vue-data-ui-watermark"
|
|
134
|
-
},
|
|
134
|
+
}, $l = ["onClick"], Cl = ["onClick"], Il = ["onClick"], El = {
|
|
135
135
|
key: 1,
|
|
136
136
|
class: "vue-ui-quick-chart-not-processable"
|
|
137
|
-
},
|
|
137
|
+
}, Tl = {
|
|
138
138
|
__name: "vue-ui-quick-chart",
|
|
139
139
|
props: {
|
|
140
140
|
config: {
|
|
@@ -151,35 +151,35 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
emits: ["selectDatapoint", "selectLegend"],
|
|
154
|
-
setup(c, { expose: C, emit:
|
|
155
|
-
const
|
|
154
|
+
setup(c, { expose: C, emit: x }) {
|
|
155
|
+
const O = ce(() => import("./BaseIcon-avTvifnO.js")), H = ce(() => import("./PackageVersion-Bwu7jdjH.js")), ge = ce(() => import("./PenAndPaper-BzQcbTCN.js")), me = ce(() => import("./vue-ui-skeleton-qa5B2MES.js")), pe = ce(() => import("./Tooltip-BuP-Tir7.js")), $e = ce(() => import("./UserOptions-fd2DeGS7.js")), { vue_ui_quick_chart: F } = Rt(), B = c, xe = z(null), Ge = z(null), Xe = z(null), Ze = z(null), J = z(Mt()), ee = z(!1), ye = z(null), te = z(""), W = z(null), Ye = z(null), Je = z(null), w = z([]), Qe = z(0), Ce = z(0), e = U({
|
|
156
156
|
get: () => at(),
|
|
157
157
|
set: (o) => o
|
|
158
|
-
}), { svgRef: Ke } =
|
|
158
|
+
}), { svgRef: Ke } = Zt({ config: { text: e.value.title } }), St = U(() => e.value.showUserOptionsOnChartHover), et = U(() => e.value.keepUserOptionsStateOnChartLeave), Ie = z(!e.value.showUserOptionsOnChartHover);
|
|
159
159
|
function tt(o = !1) {
|
|
160
160
|
St.value && (Ie.value = o);
|
|
161
161
|
}
|
|
162
162
|
function at() {
|
|
163
163
|
const o = pt({
|
|
164
|
-
userConfig:
|
|
165
|
-
defaultConfig:
|
|
164
|
+
userConfig: B.config,
|
|
165
|
+
defaultConfig: F
|
|
166
166
|
});
|
|
167
167
|
let s = {};
|
|
168
168
|
return o.theme ? s = {
|
|
169
169
|
...pt({
|
|
170
|
-
userConfig:
|
|
170
|
+
userConfig: Nt.vue_ui_quick_chart[o.theme] || B.config,
|
|
171
171
|
defaultConfig: o
|
|
172
172
|
}),
|
|
173
|
-
customPalette:
|
|
174
|
-
} : s = o,
|
|
173
|
+
customPalette: Ft[o.theme] || q
|
|
174
|
+
} : s = o, B.config && ft(B.config, "zoomStartIndex") ? s.zoomStartIndex = B.config.zoomStartIndex : s.zoomStartIndex = null, B.config && ft(B.config, "zoomEndIndex") ? s.zoomEndIndex = B.config.zoomEndIndex : s.zoomEndIndex = null, s;
|
|
175
175
|
}
|
|
176
|
-
Ve(() =>
|
|
176
|
+
Ve(() => B.config, (o) => {
|
|
177
177
|
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
|
-
}, { deep: !0 }), Ve(() =>
|
|
179
|
-
p.value = be.value,
|
|
178
|
+
}, { deep: !0 }), Ve(() => B.dataset, (o) => {
|
|
179
|
+
p.value = be.value, y.value.start = 0, y.value.end = p.value.maxSeriesLength, Ce.value += 1;
|
|
180
180
|
}, { deep: !0 });
|
|
181
|
-
const ke = U(() => Ut(e.value.customPalette)), ie =
|
|
182
|
-
const o =
|
|
181
|
+
const ke = U(() => Ut(e.value.customPalette)), ie = x, be = U(() => {
|
|
182
|
+
const o = ea({ dataset: Bt(B.dataset, [
|
|
183
183
|
"serie",
|
|
184
184
|
"series",
|
|
185
185
|
"data",
|
|
@@ -190,12 +190,12 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
190
190
|
return o || console.error("VueUiQuickChart : Dataset is not processable"), o;
|
|
191
191
|
}), p = z(be.value), wt = U(() => !!p.value), L = U(() => p.value ? p.value.type : null);
|
|
192
192
|
Ve(() => L.value, (o) => {
|
|
193
|
-
o ||
|
|
193
|
+
o || Dt({
|
|
194
194
|
componentName: "VueUiQuickChart",
|
|
195
195
|
type: "dataset"
|
|
196
196
|
});
|
|
197
197
|
}, { immediate: !0 });
|
|
198
|
-
const { isPrinting: Ee, isImaging:
|
|
198
|
+
const { isPrinting: Ee, isImaging: Te, generatePdf: lt, generateImage: ot } = Xt({
|
|
199
199
|
elementId: `${L.value}_${J.value}`,
|
|
200
200
|
fileName: e.value.title || L.value,
|
|
201
201
|
options: e.value.userOptionsPrint
|
|
@@ -205,14 +205,14 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
205
205
|
}), Se = z({
|
|
206
206
|
showTooltip: e.value.showTooltip
|
|
207
207
|
}), Q = ht(null), re = ht(null);
|
|
208
|
-
|
|
208
|
+
Tt(() => {
|
|
209
209
|
nt();
|
|
210
210
|
});
|
|
211
211
|
function nt() {
|
|
212
212
|
if (e.value.responsive) {
|
|
213
|
-
const o =
|
|
214
|
-
const { width: s, height: t } =
|
|
215
|
-
chart:
|
|
213
|
+
const o = jt(() => {
|
|
214
|
+
const { width: s, height: t } = Gt({
|
|
215
|
+
chart: xe.value,
|
|
216
216
|
title: e.value.title ? Ge.value : null,
|
|
217
217
|
legend: e.value.showLegend ? Xe.value : null,
|
|
218
218
|
slicer: [A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? Ze.value : null,
|
|
@@ -223,11 +223,11 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
223
223
|
b.value.width = s, b.value.height = t;
|
|
224
224
|
});
|
|
225
225
|
});
|
|
226
|
-
Q.value && (re.value && Q.value.unobserve(re.value), Q.value.disconnect()), Q.value = new ResizeObserver(o), re.value =
|
|
226
|
+
Q.value && (re.value && Q.value.unobserve(re.value), Q.value.disconnect()), Q.value = new ResizeObserver(o), re.value = xe.value.parentNode, Q.value.observe(re.value);
|
|
227
227
|
}
|
|
228
228
|
dt();
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
Ot(() => {
|
|
231
231
|
Q.value && (re.value && Q.value.unobserve(re.value), Q.value.disconnect());
|
|
232
232
|
});
|
|
233
233
|
const _t = U(() => {
|
|
@@ -251,14 +251,14 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
251
251
|
function it(o, s) {
|
|
252
252
|
w.value.includes(o) ? w.value = w.value.filter((t) => t !== o) : w.value.length < s && w.value.push(o);
|
|
253
253
|
}
|
|
254
|
-
const rt = z(null), st = z(null),
|
|
254
|
+
const rt = z(null), st = z(null), Oe = z(!1);
|
|
255
255
|
function Lt(o, s) {
|
|
256
|
-
|
|
256
|
+
Oe.value = !0;
|
|
257
257
|
let t = o.value;
|
|
258
258
|
const i = be.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
|
|
259
259
|
if (w.value.includes(o.id)) {
|
|
260
260
|
let r = function() {
|
|
261
|
-
t > i ? (
|
|
261
|
+
t > i ? (Oe.value = !1, cancelAnimationFrame(st.value), p.value = {
|
|
262
262
|
...p.value,
|
|
263
263
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
264
264
|
...h,
|
|
@@ -277,7 +277,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
277
277
|
w.value = w.value.filter((h) => h !== o.id), r();
|
|
278
278
|
} else if (s.length > 1) {
|
|
279
279
|
let r = function() {
|
|
280
|
-
t < i / 100 ? (
|
|
280
|
+
t < i / 100 ? (Oe.value = !1, cancelAnimationFrame(rt.value), w.value.push(o.id), p.value = {
|
|
281
281
|
...p.value,
|
|
282
282
|
dataset: p.value.dataset.map((h, P) => o.id === `donut_${P}` ? {
|
|
283
283
|
...h,
|
|
@@ -313,7 +313,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
313
313
|
immutableValue: n.value
|
|
314
314
|
}));
|
|
315
315
|
function s(n, u) {
|
|
316
|
-
return
|
|
316
|
+
return D({
|
|
317
317
|
v: isNaN(n.value / ut(u)) ? 0 : n.value / ut(u) * 100,
|
|
318
318
|
s: "%",
|
|
319
319
|
r: e.value.dataLabelRoundingPercentage
|
|
@@ -323,13 +323,13 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
323
323
|
return n.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
324
324
|
}
|
|
325
325
|
function i(n, u) {
|
|
326
|
-
const S = be.value.dataset.find((E,
|
|
326
|
+
const S = be.value.dataset.find((E, N) => `donut_${N}` === n).VALUE;
|
|
327
327
|
return Math.abs(String(Number(S.toFixed(0))).length - String(Number(u.toFixed(0))).length);
|
|
328
328
|
}
|
|
329
329
|
function r({ datapoint: n, seriesIndex: u }) {
|
|
330
|
-
|
|
330
|
+
ye.value = { datapoint: n, seriesIndex: u, config: e.value, dataset: o }, W.value = n.id;
|
|
331
331
|
const S = e.value.tooltipCustomFormat;
|
|
332
|
-
if (
|
|
332
|
+
if (Ne(S) && je(() => S({
|
|
333
333
|
datapoint: n,
|
|
334
334
|
seriesIndex: u,
|
|
335
335
|
series: o,
|
|
@@ -346,14 +346,14 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
346
346
|
k += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, k += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${n.color}"/></svg>`, k += `<b>${X(
|
|
347
347
|
e.value.formatter,
|
|
348
348
|
n.value,
|
|
349
|
-
|
|
349
|
+
D({
|
|
350
350
|
p: e.value.valuePrefix,
|
|
351
351
|
v: n.value,
|
|
352
352
|
s: e.value.valueSuffix,
|
|
353
353
|
r: e.value.dataLabelRoundingValue
|
|
354
354
|
}),
|
|
355
355
|
{ datapoint: n, seriesIndex: u }
|
|
356
|
-
)}</b>`, k += `<span>(${
|
|
356
|
+
)}</b>`, k += `<span>(${D({ v: n.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, te.value = `<div>${k}</div>`;
|
|
357
357
|
}
|
|
358
358
|
ee.value = !0;
|
|
359
359
|
}
|
|
@@ -396,7 +396,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
396
396
|
b.value.height * vt.value
|
|
397
397
|
)
|
|
398
398
|
};
|
|
399
|
-
}),
|
|
399
|
+
}), y = z({
|
|
400
400
|
start: 0,
|
|
401
401
|
end: p.value.maxSeriesLength
|
|
402
402
|
});
|
|
@@ -405,7 +405,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
405
405
|
}
|
|
406
406
|
const se = z(null);
|
|
407
407
|
async function dt() {
|
|
408
|
-
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && se.value ? (e.value.zoomStartIndex !== null && (await Me(), await Me(), se.value && se.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Me(), await Me(), se.value && se.value.setEndValue(Ct(e.value.zoomEndIndex + 1)))) : (
|
|
408
|
+
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && se.value ? (e.value.zoomStartIndex !== null && (await Me(), await Me(), se.value && se.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Me(), await Me(), se.value && se.value.setEndValue(Ct(e.value.zoomEndIndex + 1)))) : (y.value = {
|
|
409
409
|
start: 0,
|
|
410
410
|
end: p.value.maxSeriesLength
|
|
411
411
|
}, Ce.value += 1);
|
|
@@ -430,7 +430,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
430
430
|
t.push(o.map((h) => h.values[r] || 0).reduce((h, P) => (h || 0) + (P || 0), 0));
|
|
431
431
|
const i = Math.min(...t);
|
|
432
432
|
return t.map((r) => r + (i < 0 ? Math.abs(i) : 0));
|
|
433
|
-
}),
|
|
433
|
+
}), v = U(() => {
|
|
434
434
|
if (L.value !== A.LINE) return null;
|
|
435
435
|
const o = {
|
|
436
436
|
height: b.value.height,
|
|
@@ -446,8 +446,8 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
446
446
|
let t = [];
|
|
447
447
|
Y(p.value.dataset) && (t = [
|
|
448
448
|
{
|
|
449
|
-
values: p.value.dataset.slice(
|
|
450
|
-
absoluteIndices: p.value.dataset.map((n, u) => u).slice(
|
|
449
|
+
values: p.value.dataset.slice(y.value.start, y.value.end),
|
|
450
|
+
absoluteIndices: p.value.dataset.map((n, u) => u).slice(y.value.start, y.value.end),
|
|
451
451
|
name: e.value.title,
|
|
452
452
|
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
453
453
|
id: "line_0"
|
|
@@ -460,8 +460,8 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
460
460
|
})).map((n, u) => ({
|
|
461
461
|
...n,
|
|
462
462
|
color: n.COLOR ? He(n.COLOR) : ke.value[u + e.value.paletteStartIndex] || q[u + e.value.paletteStartIndex] || q[(u + e.value.paletteStartIndex) % q.length],
|
|
463
|
-
values: n.values.slice(
|
|
464
|
-
absoluteIndices: n.values.map((S, k) => k).slice(
|
|
463
|
+
values: n.values.slice(y.value.start, y.value.end),
|
|
464
|
+
absoluteIndices: n.values.map((S, k) => k).slice(y.value.start, y.value.end)
|
|
465
465
|
})));
|
|
466
466
|
const i = {
|
|
467
467
|
max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
@@ -494,9 +494,9 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
494
494
|
value: k.values[n],
|
|
495
495
|
absoluteIndex: k.absoluteIndices[n]
|
|
496
496
|
})).filter((k) => !w.value.includes(k.id));
|
|
497
|
-
|
|
497
|
+
ye.value = { datapoint: u, seriesIndex: n, config: e.value, dataset: t };
|
|
498
498
|
const S = e.value.tooltipCustomFormat;
|
|
499
|
-
if (
|
|
499
|
+
if (Ne(S) && je(() => S({
|
|
500
500
|
datapoint: u,
|
|
501
501
|
seriesIndex: n,
|
|
502
502
|
series: t,
|
|
@@ -510,7 +510,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
510
510
|
});
|
|
511
511
|
else {
|
|
512
512
|
let k = "";
|
|
513
|
-
K.value[u[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[u[0].absoluteIndex].text}</div>`), u.forEach((E,
|
|
513
|
+
K.value[u[0].absoluteIndex] && (k += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[u[0].absoluteIndex].text}</div>`), u.forEach((E, N) => {
|
|
514
514
|
k += `
|
|
515
515
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
516
516
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${E.color}"/></svg>
|
|
@@ -518,13 +518,13 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
518
518
|
<b>${X(
|
|
519
519
|
e.value.formatter,
|
|
520
520
|
E.value,
|
|
521
|
-
|
|
521
|
+
D({
|
|
522
522
|
p: e.value.valuePrefix,
|
|
523
523
|
v: E.value,
|
|
524
524
|
s: e.value.valueSuffix,
|
|
525
525
|
r: e.value.dataLabelRoundingValue
|
|
526
526
|
}),
|
|
527
|
-
{ datapoint: E, seriesIndex:
|
|
527
|
+
{ datapoint: E, seriesIndex: N }
|
|
528
528
|
)}
|
|
529
529
|
</b>
|
|
530
530
|
</div>
|
|
@@ -547,7 +547,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
547
547
|
useTooltip: de,
|
|
548
548
|
killTooltip: le
|
|
549
549
|
};
|
|
550
|
-
}),
|
|
550
|
+
}), d = U(() => {
|
|
551
551
|
if (L.value !== A.BAR) return null;
|
|
552
552
|
const o = {
|
|
553
553
|
height: b.value.height,
|
|
@@ -563,8 +563,8 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
563
563
|
let t = [];
|
|
564
564
|
Y(p.value.dataset) && (t = [
|
|
565
565
|
{
|
|
566
|
-
values: p.value.dataset.slice(
|
|
567
|
-
absoluteIndices: p.value.dataset.map((u, S) => S).slice(
|
|
566
|
+
values: p.value.dataset.slice(y.value.start, y.value.end),
|
|
567
|
+
absoluteIndices: p.value.dataset.map((u, S) => S).slice(y.value.start, y.value.end),
|
|
568
568
|
name: e.value.title,
|
|
569
569
|
color: ke.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
570
570
|
id: "bar_0"
|
|
@@ -577,8 +577,8 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
577
577
|
})).map((u, S) => ({
|
|
578
578
|
...u,
|
|
579
579
|
color: u.COLOR ? He(u.COLOR) : ke.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
|
|
580
|
-
values: u.values.slice(
|
|
581
|
-
absoluteIndices: u.values.map((k, E) => E).slice(
|
|
580
|
+
values: u.values.slice(y.value.start, y.value.end),
|
|
581
|
+
absoluteIndices: u.values.map((k, E) => E).slice(y.value.start, y.value.end)
|
|
582
582
|
})));
|
|
583
583
|
const i = {
|
|
584
584
|
max: Math.max(...t.filter((u) => !w.value.includes(u.id)).flatMap((u) => u.values)) < 0 ? 0 : Math.max(...t.filter((u) => !w.value.includes(u.id)).flatMap((u) => u.values)),
|
|
@@ -591,11 +591,11 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
591
591
|
})), ae = t.map((u, S) => ({
|
|
592
592
|
...u,
|
|
593
593
|
coordinates: u.values.map((k, E) => {
|
|
594
|
-
const
|
|
594
|
+
const N = (k + h) / (i.max + h) * s.height, Ae = Math.abs(k) / Math.abs(i.min) * (s.height - P), De = h / (i.max + h) * s.height, _e = V / t.filter((oe) => !w.value.includes(oe.id)).length - e.value.barGap / t.filter((oe) => !w.value.includes(oe.id)).length;
|
|
595
595
|
return {
|
|
596
596
|
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
597
|
-
y: k > 0 ? s.bottom -
|
|
598
|
-
height: k > 0 ?
|
|
597
|
+
y: k > 0 ? s.bottom - N : P,
|
|
598
|
+
height: k > 0 ? N - De : Ae,
|
|
599
599
|
value: k,
|
|
600
600
|
width: _e
|
|
601
601
|
};
|
|
@@ -603,11 +603,11 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
603
603
|
})), de = t.filter((u) => !w.value.includes(u.id)).map((u, S) => ({
|
|
604
604
|
...u,
|
|
605
605
|
coordinates: u.values.map((k, E) => {
|
|
606
|
-
const
|
|
606
|
+
const N = (k + h) / (i.max + h) * s.height, Ae = Math.abs(k) / (i.max + h) * s.height, De = h / (i.max + h) * s.height, _e = V / t.filter((oe) => !w.value.includes(oe.id)).length - e.value.barGap / t.filter((oe) => !w.value.includes(oe.id)).length;
|
|
607
607
|
return {
|
|
608
608
|
x: s.left + V * E + _e * S + e.value.barGap / 2,
|
|
609
|
-
y: k > 0 ? s.bottom -
|
|
610
|
-
height: k > 0 ?
|
|
609
|
+
y: k > 0 ? s.bottom - N : P,
|
|
610
|
+
height: k > 0 ? N - De : Ae,
|
|
611
611
|
value: k,
|
|
612
612
|
width: _e
|
|
613
613
|
};
|
|
@@ -620,9 +620,9 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
620
620
|
value: E.values[u],
|
|
621
621
|
absoluteIndex: E.absoluteIndices[u]
|
|
622
622
|
})).filter((E) => !w.value.includes(E.id));
|
|
623
|
-
|
|
623
|
+
ye.value = { datapoint: S, seriesIndex: u, config: e.value, dataset: t };
|
|
624
624
|
const k = e.value.tooltipCustomFormat;
|
|
625
|
-
if (
|
|
625
|
+
if (Ne(k) && je(() => k({
|
|
626
626
|
datapoint: S,
|
|
627
627
|
seriesIndex: u,
|
|
628
628
|
series: t,
|
|
@@ -636,21 +636,21 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
636
636
|
});
|
|
637
637
|
else {
|
|
638
638
|
let E = "";
|
|
639
|
-
K.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[S[0].absoluteIndex].text}</div>`), S.forEach((
|
|
639
|
+
K.value[S[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${K.value[S[0].absoluteIndex].text}</div>`), S.forEach((N, Ae) => {
|
|
640
640
|
E += `
|
|
641
641
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
642
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${
|
|
643
|
-
<span>${
|
|
642
|
+
<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>
|
|
643
|
+
<span>${N.name}:</span>
|
|
644
644
|
<b>${X(
|
|
645
645
|
e.value.formatter,
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
N.value,
|
|
647
|
+
D({
|
|
648
648
|
p: e.value.valuePrefix,
|
|
649
|
-
v:
|
|
649
|
+
v: N.value,
|
|
650
650
|
s: e.value.valueSuffix,
|
|
651
651
|
r: e.value.dataLabelRoundingValue
|
|
652
652
|
}),
|
|
653
|
-
{ datapoint:
|
|
653
|
+
{ datapoint: N, seriesIndex: Ae }
|
|
654
654
|
)}
|
|
655
655
|
</b>
|
|
656
656
|
</div>
|
|
@@ -673,12 +673,12 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
673
673
|
useTooltip: le,
|
|
674
674
|
killTooltip: n
|
|
675
675
|
};
|
|
676
|
-
}), K = U(() =>
|
|
676
|
+
}), K = U(() => Jt({
|
|
677
677
|
values: e.value.xyPeriods,
|
|
678
678
|
maxDatapoints: p.value.maxSeriesLength,
|
|
679
679
|
formatter: e.value.datetimeFormatter,
|
|
680
|
-
start:
|
|
681
|
-
end:
|
|
680
|
+
start: y.value.start,
|
|
681
|
+
end: y.value.end
|
|
682
682
|
})), Pe = z(!1);
|
|
683
683
|
function Et(o) {
|
|
684
684
|
Pe.value = o, Qe.value += 1;
|
|
@@ -687,31 +687,31 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
687
687
|
Se.value.showTooltip = !Se.value.showTooltip;
|
|
688
688
|
}
|
|
689
689
|
const Re = z(!1);
|
|
690
|
-
function
|
|
690
|
+
function Be() {
|
|
691
691
|
Re.value = !Re.value;
|
|
692
692
|
}
|
|
693
693
|
return C({
|
|
694
694
|
generatePdf: lt,
|
|
695
695
|
generateImage: ot,
|
|
696
696
|
toggleTooltip: ct,
|
|
697
|
-
toggleAnnotator:
|
|
697
|
+
toggleAnnotator: Be
|
|
698
698
|
}), (o, s) => wt.value ? (a(), l("div", {
|
|
699
699
|
key: 0,
|
|
700
700
|
id: `${L.value}_${J.value}`,
|
|
701
701
|
ref_key: "quickChart",
|
|
702
|
-
ref:
|
|
702
|
+
ref: xe,
|
|
703
703
|
class: he({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": Pe.value }),
|
|
704
704
|
style: R(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
705
705
|
onMouseenter: s[5] || (s[5] = () => tt(!0)),
|
|
706
706
|
onMouseleave: s[6] || (s[6] = () => tt(!1))
|
|
707
707
|
}, [
|
|
708
|
-
e.value.userOptionsButtons.annotator ? (a(),
|
|
708
|
+
e.value.userOptionsButtons.annotator ? (a(), Fe(f(ge), {
|
|
709
709
|
key: 0,
|
|
710
710
|
svgRef: f(Ke),
|
|
711
711
|
backgroundColor: e.value.backgroundColor,
|
|
712
712
|
color: e.value.color,
|
|
713
713
|
active: Re.value,
|
|
714
|
-
onClose:
|
|
714
|
+
onClose: Be
|
|
715
715
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
716
716
|
At.value ? (a(), l("div", {
|
|
717
717
|
key: 1,
|
|
@@ -720,13 +720,13 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
720
720
|
class: "vue-data-ui-no-title-space",
|
|
721
721
|
style: "height:36px; width: 100%;background:transparent"
|
|
722
722
|
}, null, 512)) : g("", !0),
|
|
723
|
-
e.value.showUserOptions && (et.value || Ie.value) ? (a(),
|
|
723
|
+
e.value.showUserOptions && (et.value || Ie.value) ? (a(), Fe(f($e), {
|
|
724
724
|
ref: "details",
|
|
725
725
|
key: `user_option_${Qe.value}`,
|
|
726
726
|
backgroundColor: e.value.backgroundColor,
|
|
727
727
|
color: e.value.color,
|
|
728
728
|
isPrinting: f(Ee),
|
|
729
|
-
isImaging: f(
|
|
729
|
+
isImaging: f(Te),
|
|
730
730
|
uid: J.value,
|
|
731
731
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
732
732
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
@@ -736,7 +736,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
736
736
|
isTooltip: Se.value.showTooltip,
|
|
737
737
|
isFullscreen: Pe.value,
|
|
738
738
|
titles: { ...e.value.userOptionsButtonTitles },
|
|
739
|
-
chartElement:
|
|
739
|
+
chartElement: xe.value,
|
|
740
740
|
position: e.value.userOptionsPosition,
|
|
741
741
|
hasAnnotator: e.value.userOptionsButtons.annotator,
|
|
742
742
|
isAnnotation: Re.value,
|
|
@@ -745,7 +745,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
745
745
|
onGeneratePdf: f(lt),
|
|
746
746
|
onGenerateImage: f(ot),
|
|
747
747
|
onToggleTooltip: ct,
|
|
748
|
-
onToggleAnnotator:
|
|
748
|
+
onToggleAnnotator: Be,
|
|
749
749
|
style: R({
|
|
750
750
|
visibility: et.value ? Ie.value ? "visible" : "hidden" : "visible"
|
|
751
751
|
})
|
|
@@ -799,7 +799,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
799
799
|
ref: Ge,
|
|
800
800
|
class: "vue-ui-quick-chart-title",
|
|
801
801
|
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
|
-
},
|
|
802
|
+
}, T(e.value.title), 5)) : g("", !0),
|
|
803
803
|
L.value ? (a(), l("svg", {
|
|
804
804
|
key: 4,
|
|
805
805
|
ref_key: "svgRef",
|
|
@@ -811,28 +811,28 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
811
811
|
fe(f(H)),
|
|
812
812
|
o.$slots["chart-background"] && L.value === A.BAR ? (a(), l("foreignObject", {
|
|
813
813
|
key: 0,
|
|
814
|
-
x:
|
|
815
|
-
y:
|
|
816
|
-
width:
|
|
817
|
-
height:
|
|
814
|
+
x: d.value.drawingArea.left,
|
|
815
|
+
y: d.value.drawingArea.top,
|
|
816
|
+
width: d.value.drawingArea.width,
|
|
817
|
+
height: d.value.drawingArea.height,
|
|
818
818
|
style: {
|
|
819
819
|
pointerEvents: "none"
|
|
820
820
|
}
|
|
821
821
|
}, [
|
|
822
822
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
823
|
-
], 8,
|
|
823
|
+
], 8, ia)) : g("", !0),
|
|
824
824
|
o.$slots["chart-background"] && L.value === A.LINE ? (a(), l("foreignObject", {
|
|
825
825
|
key: 1,
|
|
826
|
-
x:
|
|
827
|
-
y:
|
|
828
|
-
width:
|
|
829
|
-
height:
|
|
826
|
+
x: v.value.drawingArea.left,
|
|
827
|
+
y: v.value.drawingArea.top,
|
|
828
|
+
width: v.value.drawingArea.width,
|
|
829
|
+
height: v.value.drawingArea.height,
|
|
830
830
|
style: {
|
|
831
831
|
pointerEvents: "none"
|
|
832
832
|
}
|
|
833
833
|
}, [
|
|
834
834
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
835
|
-
], 8,
|
|
835
|
+
], 8, ra)) : g("", !0),
|
|
836
836
|
o.$slots["chart-background"] && L.value === A.DONUT ? (a(), l("foreignObject", {
|
|
837
837
|
key: 2,
|
|
838
838
|
x: 0,
|
|
@@ -844,7 +844,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
844
844
|
}
|
|
845
845
|
}, [
|
|
846
846
|
M(o.$slots, "chart-background", {}, void 0, !0)
|
|
847
|
-
], 8,
|
|
847
|
+
], 8, sa)) : g("", !0),
|
|
848
848
|
_("defs", null, [
|
|
849
849
|
_("filter", {
|
|
850
850
|
id: `blur_${J.value}`,
|
|
@@ -857,12 +857,12 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
857
857
|
in: "SourceGraphic",
|
|
858
858
|
stdDeviation: 2,
|
|
859
859
|
id: `blur_std_${J.value}`
|
|
860
|
-
}, null, 8,
|
|
860
|
+
}, null, 8, da),
|
|
861
861
|
s[7] || (s[7] = _("feColorMatrix", {
|
|
862
862
|
type: "saturate",
|
|
863
863
|
values: "0"
|
|
864
864
|
}, null, -1))
|
|
865
|
-
], 8,
|
|
865
|
+
], 8, va),
|
|
866
866
|
_("filter", {
|
|
867
867
|
id: `shadow_${J.value}`,
|
|
868
868
|
"color-interpolation-filters": "sRGB"
|
|
@@ -873,11 +873,11 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
873
873
|
stdDeviation: "10",
|
|
874
874
|
"flood-opacity": "0.5",
|
|
875
875
|
"flood-color": e.value.donutShadowColor
|
|
876
|
-
}, null, 8,
|
|
877
|
-
], 8,
|
|
876
|
+
}, null, 8, ha)
|
|
877
|
+
], 8, ca)
|
|
878
878
|
]),
|
|
879
879
|
L.value === A.DONUT ? (a(), l(m, { key: 3 }, [
|
|
880
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
880
|
+
e.value.showDataLabels ? (a(), l("g", fa, [
|
|
881
881
|
(a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l(m, null, [
|
|
882
882
|
I.value.isArcBigEnough(t) ? (a(), l("path", {
|
|
883
883
|
key: 0,
|
|
@@ -888,7 +888,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
888
888
|
"stroke-linejoin": "round",
|
|
889
889
|
fill: "none",
|
|
890
890
|
filter: we(t.id)
|
|
891
|
-
}, null, 8,
|
|
891
|
+
}, null, 8, ga)) : g("", !0)
|
|
892
892
|
], 64))), 256))
|
|
893
893
|
])) : g("", !0),
|
|
894
894
|
_("circle", {
|
|
@@ -897,15 +897,15 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
897
897
|
r: I.value.radius,
|
|
898
898
|
fill: e.value.backgroundColor,
|
|
899
899
|
filter: e.value.donutUseShadow ? `url(#shadow_${J.value})` : ""
|
|
900
|
-
}, null, 8,
|
|
901
|
-
_("g",
|
|
900
|
+
}, null, 8, ma),
|
|
901
|
+
_("g", pa, [
|
|
902
902
|
(a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l("path", {
|
|
903
903
|
d: t.arcSlice,
|
|
904
904
|
fill: t.color,
|
|
905
905
|
stroke: e.value.backgroundColor,
|
|
906
906
|
"stroke-width": e.value.donutStrokeWidth,
|
|
907
907
|
filter: we(t.id)
|
|
908
|
-
}, null, 8,
|
|
908
|
+
}, null, 8, xa))), 256)),
|
|
909
909
|
(a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l("path", {
|
|
910
910
|
d: t.arcSlice,
|
|
911
911
|
fill: "transparent",
|
|
@@ -914,7 +914,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
914
914
|
onClick: (r) => ie("selectDatapoint", t)
|
|
915
915
|
}, null, 40, ya))), 256))
|
|
916
916
|
]),
|
|
917
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
917
|
+
e.value.showDataLabels ? (a(), l("g", ka, [
|
|
918
918
|
(a(!0), l(m, null, $(I.value.chart, (t, i) => (a(), l(m, null, [
|
|
919
919
|
I.value.isArcBigEnough(t) ? (a(), l("circle", {
|
|
920
920
|
key: 0,
|
|
@@ -925,7 +925,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
925
925
|
"stroke-width": 1,
|
|
926
926
|
r: 3,
|
|
927
927
|
filter: we(t.id)
|
|
928
|
-
}, null, 8,
|
|
928
|
+
}, null, 8, ba)) : g("", !0),
|
|
929
929
|
I.value.isArcBigEnough(t) ? (a(), l("text", {
|
|
930
930
|
key: 1,
|
|
931
931
|
"text-anchor": f(Le)(t, !0, 20).anchor,
|
|
@@ -934,17 +934,17 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
934
934
|
fill: e.value.color,
|
|
935
935
|
"font-size": e.value.dataLabelFontSize,
|
|
936
936
|
filter: we(t.id)
|
|
937
|
-
},
|
|
937
|
+
}, T(I.value.displayArcPercentage(t, I.value.chart)) + " (" + T(f(X)(
|
|
938
938
|
e.value.formatter,
|
|
939
939
|
t.value,
|
|
940
|
-
f(
|
|
940
|
+
f(D)({
|
|
941
941
|
p: e.value.valuePrefix,
|
|
942
942
|
v: t.value,
|
|
943
943
|
s: e.value.valueSuffix,
|
|
944
944
|
r: e.value.dataLabelRoundingValue
|
|
945
945
|
}),
|
|
946
946
|
{ datapoint: t, seriesIndex: i }
|
|
947
|
-
)) + ") ", 9,
|
|
947
|
+
)) + ") ", 9, Sa)) : g("", !0),
|
|
948
948
|
I.value.isArcBigEnough(t, !0, 20) ? (a(), l("text", {
|
|
949
949
|
key: 2,
|
|
950
950
|
"text-anchor": f(Le)(t).anchor,
|
|
@@ -953,130 +953,146 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
953
953
|
fill: e.value.color,
|
|
954
954
|
"font-size": e.value.dataLabelFontSize,
|
|
955
955
|
filter: we(t.id)
|
|
956
|
-
},
|
|
956
|
+
}, T(t.name), 9, wa)) : g("", !0)
|
|
957
957
|
], 64))), 256))
|
|
958
958
|
])) : g("", !0),
|
|
959
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
959
|
+
e.value.donutShowTotal ? (a(), l("g", Aa, [
|
|
960
960
|
_("text", {
|
|
961
961
|
"text-anchor": "middle",
|
|
962
962
|
x: I.value.drawingArea.centerX,
|
|
963
963
|
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
964
964
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
965
965
|
fill: e.value.color
|
|
966
|
-
},
|
|
966
|
+
}, T(e.value.donutTotalLabelText), 9, _a),
|
|
967
967
|
_("text", {
|
|
968
968
|
"text-anchor": "middle",
|
|
969
969
|
x: I.value.drawingArea.centerX,
|
|
970
970
|
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
971
971
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
972
972
|
fill: e.value.color
|
|
973
|
-
},
|
|
973
|
+
}, T(f(D)({
|
|
974
974
|
p: e.value.valuePrefix,
|
|
975
975
|
v: I.value.total,
|
|
976
976
|
s: e.value.valueSuffix,
|
|
977
977
|
r: e.value.dataLabelRoundingValue
|
|
978
|
-
})), 9,
|
|
978
|
+
})), 9, La)
|
|
979
979
|
])) : g("", !0)
|
|
980
980
|
], 64)) : g("", !0),
|
|
981
981
|
L.value === A.LINE ? (a(), l(m, { key: 4 }, [
|
|
982
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
983
|
-
(a(!0), l(m, null, $(
|
|
984
|
-
t.y <=
|
|
982
|
+
e.value.xyShowGrid ? (a(), l("g", za, [
|
|
983
|
+
(a(!0), l(m, null, $(v.value.yLabels, (t) => (a(), l(m, null, [
|
|
984
|
+
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
985
985
|
key: 0,
|
|
986
|
-
x1:
|
|
987
|
-
x2:
|
|
986
|
+
x1: v.value.drawingArea.left,
|
|
987
|
+
x2: v.value.drawingArea.right,
|
|
988
988
|
y1: t.y,
|
|
989
989
|
y2: t.y,
|
|
990
990
|
stroke: e.value.xyGridStroke,
|
|
991
991
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
992
992
|
"stroke-linecap": "round"
|
|
993
|
-
}, null, 8,
|
|
993
|
+
}, null, 8, $a)) : g("", !0)
|
|
994
994
|
], 64))), 256)),
|
|
995
|
-
(a(!0), l(m, null, $(
|
|
996
|
-
x1:
|
|
997
|
-
x2:
|
|
998
|
-
y1:
|
|
999
|
-
y2:
|
|
995
|
+
(a(!0), l(m, null, $(v.value.extremes.maxSeries + 1, (t, i) => (a(), l("line", {
|
|
996
|
+
x1: v.value.drawingArea.left + v.value.slotSize * i,
|
|
997
|
+
x2: v.value.drawingArea.left + v.value.slotSize * i,
|
|
998
|
+
y1: v.value.drawingArea.top,
|
|
999
|
+
y2: v.value.drawingArea.bottom,
|
|
1000
1000
|
stroke: e.value.xyGridStroke,
|
|
1001
1001
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1002
1002
|
"stroke-linecap": "round"
|
|
1003
|
-
}, null, 8,
|
|
1003
|
+
}, null, 8, Ca))), 256))
|
|
1004
1004
|
])) : g("", !0),
|
|
1005
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1005
|
+
e.value.xyShowAxis ? (a(), l("g", Ia, [
|
|
1006
1006
|
_("line", {
|
|
1007
|
-
x1:
|
|
1008
|
-
x2:
|
|
1009
|
-
y1:
|
|
1010
|
-
y2:
|
|
1007
|
+
x1: v.value.drawingArea.left,
|
|
1008
|
+
x2: v.value.drawingArea.left,
|
|
1009
|
+
y1: v.value.drawingArea.top,
|
|
1010
|
+
y2: v.value.drawingArea.bottom,
|
|
1011
1011
|
stroke: e.value.xyAxisStroke,
|
|
1012
1012
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1013
1013
|
"stroke-linecap": "round"
|
|
1014
|
-
}, null, 8,
|
|
1014
|
+
}, null, 8, Ea),
|
|
1015
1015
|
_("line", {
|
|
1016
|
-
x1:
|
|
1017
|
-
x2:
|
|
1018
|
-
y1: isNaN(
|
|
1019
|
-
y2: isNaN(
|
|
1016
|
+
x1: v.value.drawingArea.left,
|
|
1017
|
+
x2: v.value.drawingArea.right,
|
|
1018
|
+
y1: isNaN(v.value.absoluteZero) ? v.value.drawingArea.bottom : v.value.absoluteZero,
|
|
1019
|
+
y2: isNaN(v.value.absoluteZero) ? v.value.drawingArea.bottom : v.value.absoluteZero,
|
|
1020
1020
|
stroke: e.value.xyAxisStroke,
|
|
1021
1021
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1022
1022
|
"stroke-linecap": "round"
|
|
1023
|
-
}, null, 8,
|
|
1023
|
+
}, null, 8, Ta)
|
|
1024
1024
|
])) : g("", !0),
|
|
1025
1025
|
e.value.xyShowScale ? (a(), l("g", Oa, [
|
|
1026
|
-
(a(!0), l(m, null, $(
|
|
1027
|
-
t.y <=
|
|
1026
|
+
(a(!0), l(m, null, $(v.value.yLabels, (t, i) => (a(), l(m, null, [
|
|
1027
|
+
t.y <= v.value.drawingArea.bottom ? (a(), l("line", {
|
|
1028
1028
|
key: 0,
|
|
1029
1029
|
x1: t.x + 4,
|
|
1030
|
-
x2:
|
|
1030
|
+
x2: v.value.drawingArea.left,
|
|
1031
1031
|
y1: t.y,
|
|
1032
1032
|
y2: t.y,
|
|
1033
1033
|
stroke: e.value.xyAxisStroke,
|
|
1034
1034
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1035
1035
|
"stroke-linecap": "round"
|
|
1036
|
-
}, null, 8,
|
|
1037
|
-
t.y <=
|
|
1036
|
+
}, null, 8, Pa)) : g("", !0),
|
|
1037
|
+
t.y <= v.value.drawingArea.bottom ? (a(), l("text", {
|
|
1038
1038
|
key: 1,
|
|
1039
1039
|
x: t.x,
|
|
1040
1040
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
1041
1041
|
"text-anchor": "end",
|
|
1042
1042
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1043
1043
|
fill: e.value.color
|
|
1044
|
-
},
|
|
1044
|
+
}, T(f(X)(
|
|
1045
1045
|
e.value.formatter,
|
|
1046
1046
|
t.value,
|
|
1047
|
-
f(
|
|
1047
|
+
f(D)({
|
|
1048
1048
|
p: e.value.valuePrefix,
|
|
1049
1049
|
v: t.value,
|
|
1050
1050
|
s: e.value.valueSuffix,
|
|
1051
1051
|
r: e.value.dataLabelRoundingValue
|
|
1052
1052
|
}),
|
|
1053
1053
|
{ datapoint: t, seriesIndex: i }
|
|
1054
|
-
)), 9,
|
|
1054
|
+
)), 9, Ra)) : g("", !0)
|
|
1055
1055
|
], 64))), 256))
|
|
1056
1056
|
])) : g("", !0),
|
|
1057
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1057
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", Ma, [
|
|
1058
1058
|
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, i) => (a(), l(m, null, [
|
|
1059
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((
|
|
1059
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((y.value.end - y.value.start) / e.value.xyPeriodsModulo) === 0 || y.value.end - y.value.start <= e.value.xyPeriodsModulo ? (a(), l("line", {
|
|
1060
1060
|
key: 0,
|
|
1061
|
-
x1:
|
|
1062
|
-
x2:
|
|
1063
|
-
y1:
|
|
1064
|
-
y2:
|
|
1061
|
+
x1: v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2,
|
|
1062
|
+
x2: v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2,
|
|
1063
|
+
y1: v.value.drawingArea.bottom,
|
|
1064
|
+
y2: v.value.drawingArea.bottom + 4,
|
|
1065
1065
|
stroke: e.value.xyAxisStroke,
|
|
1066
1066
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1067
1067
|
"stroke-linecap": "round"
|
|
1068
|
-
}, null, 8,
|
|
1069
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1068
|
+
}, null, 8, Fa)) : g("", !0),
|
|
1069
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && i % Math.floor((y.value.end - y.value.start) / e.value.xyPeriodsModulo) === 0 || y.value.end - y.value.start <= e.value.xyPeriodsModulo ? (a(), l("g", Na, [
|
|
1070
|
+
t.includes(`
|
|
1071
|
+
`) ? (a(), l("text", {
|
|
1072
|
+
key: 1,
|
|
1073
|
+
"font-size": e.value.xyLabelsXFontSize,
|
|
1074
|
+
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1075
|
+
fill: e.value.color,
|
|
1076
|
+
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1077
|
+
innerHTML: f(Wt)({
|
|
1078
|
+
content: t,
|
|
1079
|
+
fontSize: e.value.xyLabelsXFontSize,
|
|
1080
|
+
fill: e.value.color,
|
|
1081
|
+
x: 0,
|
|
1082
|
+
y: 0
|
|
1083
|
+
})
|
|
1084
|
+
}, null, 8, Ba)) : (a(), l("text", {
|
|
1085
|
+
key: 0,
|
|
1086
|
+
"font-size": e.value.xyLabelsXFontSize,
|
|
1087
|
+
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1088
|
+
fill: e.value.color,
|
|
1089
|
+
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (i + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1090
|
+
}, T(t), 9, Ua))
|
|
1091
|
+
])) : g("", !0)
|
|
1076
1092
|
], 64))), 256))
|
|
1077
1093
|
])) : g("", !0),
|
|
1078
|
-
_("g",
|
|
1079
|
-
(a(!0), l(m, null, $(
|
|
1094
|
+
_("g", Da, [
|
|
1095
|
+
(a(!0), l(m, null, $(v.value.dataset, (t, i) => (a(), l("g", Va, [
|
|
1080
1096
|
e.value.lineSmooth ? (a(), l(m, { key: 0 }, [
|
|
1081
1097
|
_("path", {
|
|
1082
1098
|
d: `M ${f(mt)(t.coordinates)}`,
|
|
@@ -1086,7 +1102,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1086
1102
|
fill: "none",
|
|
1087
1103
|
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1088
1104
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1089
|
-
}, null, 10,
|
|
1105
|
+
}, null, 10, qa),
|
|
1090
1106
|
_("path", {
|
|
1091
1107
|
d: `M ${f(mt)(t.coordinates)}`,
|
|
1092
1108
|
stroke: t.color,
|
|
@@ -1095,7 +1111,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1095
1111
|
fill: "none",
|
|
1096
1112
|
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1097
1113
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1098
|
-
}, null, 10,
|
|
1114
|
+
}, null, 10, Ha)
|
|
1099
1115
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
1100
1116
|
_("path", {
|
|
1101
1117
|
d: `M ${t.linePath}`,
|
|
@@ -1105,7 +1121,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1105
1121
|
fill: "none",
|
|
1106
1122
|
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1107
1123
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1108
|
-
}, null, 10,
|
|
1124
|
+
}, null, 10, Wa),
|
|
1109
1125
|
_("path", {
|
|
1110
1126
|
d: `M ${t.linePath}`,
|
|
1111
1127
|
stroke: t.color,
|
|
@@ -1114,7 +1130,7 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1114
1130
|
fill: "none",
|
|
1115
1131
|
class: he({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1116
1132
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1117
|
-
}, null, 10,
|
|
1133
|
+
}, null, 10, ja)
|
|
1118
1134
|
], 64)),
|
|
1119
1135
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1120
1136
|
cx: r.x,
|
|
@@ -1125,11 +1141,11 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1125
1141
|
"stroke-width": "0.5",
|
|
1126
1142
|
class: "quick-animation",
|
|
1127
1143
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1128
|
-
}, null, 8,
|
|
1144
|
+
}, null, 8, Ga))), 256))
|
|
1129
1145
|
]))), 256))
|
|
1130
1146
|
]),
|
|
1131
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1132
|
-
(a(!0), l(m, null, $(
|
|
1147
|
+
e.value.showDataLabels ? (a(), l("g", Xa, [
|
|
1148
|
+
(a(!0), l(m, null, $(v.value.dataset, (t, i) => (a(), l(m, null, [
|
|
1133
1149
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1134
1150
|
"text-anchor": "middle",
|
|
1135
1151
|
"font-size": e.value.dataLabelFontSize,
|
|
@@ -1138,131 +1154,131 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1138
1154
|
y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1139
1155
|
class: "quick-animation",
|
|
1140
1156
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1141
|
-
},
|
|
1157
|
+
}, T(f(X)(
|
|
1142
1158
|
e.value.formatter,
|
|
1143
1159
|
f(Z)(r.value),
|
|
1144
|
-
f(
|
|
1160
|
+
f(D)({
|
|
1145
1161
|
p: e.value.valuePrefix,
|
|
1146
1162
|
v: f(Z)(r.value),
|
|
1147
1163
|
s: e.value.valueSuffix,
|
|
1148
1164
|
r: e.value.dataLabelRoundingValue
|
|
1149
1165
|
}),
|
|
1150
1166
|
{ datapoint: r, seriesIndex: h }
|
|
1151
|
-
)), 9,
|
|
1167
|
+
)), 9, Za))), 256))
|
|
1152
1168
|
], 64))), 256))
|
|
1153
1169
|
])) : g("", !0),
|
|
1154
|
-
_("g",
|
|
1155
|
-
(a(!0), l(m, null, $(
|
|
1156
|
-
x:
|
|
1157
|
-
y:
|
|
1158
|
-
height:
|
|
1159
|
-
width:
|
|
1170
|
+
_("g", Ya, [
|
|
1171
|
+
(a(!0), l(m, null, $(v.value.extremes.maxSeries, (t, i) => (a(), l("rect", {
|
|
1172
|
+
x: v.value.drawingArea.left + i * v.value.slotSize,
|
|
1173
|
+
y: v.value.drawingArea.top,
|
|
1174
|
+
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1175
|
+
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1160
1176
|
fill: [W.value, j.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
|
|
1161
1177
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1162
|
-
onMouseenter: (r) =>
|
|
1163
|
-
onMouseleave: s[1] || (s[1] = (r) =>
|
|
1164
|
-
onClick: (r) => ie("selectDatapoint",
|
|
1178
|
+
onMouseenter: (r) => v.value.useTooltip(i),
|
|
1179
|
+
onMouseleave: s[1] || (s[1] = (r) => v.value.killTooltip()),
|
|
1180
|
+
onClick: (r) => ie("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1165
1181
|
...h,
|
|
1166
1182
|
value: h.values[i]
|
|
1167
1183
|
})))
|
|
1168
|
-
}, null, 44,
|
|
1184
|
+
}, null, 44, Ja))), 256))
|
|
1169
1185
|
])
|
|
1170
1186
|
], 64)) : g("", !0),
|
|
1171
1187
|
L.value === A.BAR ? (a(), l(m, { key: 5 }, [
|
|
1172
|
-
e.value.xyShowGrid ? (a(), l("g",
|
|
1173
|
-
(a(!0), l(m, null, $(
|
|
1174
|
-
t.y <=
|
|
1188
|
+
e.value.xyShowGrid ? (a(), l("g", Qa, [
|
|
1189
|
+
(a(!0), l(m, null, $(d.value.yLabels, (t) => (a(), l(m, null, [
|
|
1190
|
+
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1175
1191
|
key: 0,
|
|
1176
|
-
x1:
|
|
1177
|
-
x2:
|
|
1192
|
+
x1: d.value.drawingArea.left,
|
|
1193
|
+
x2: d.value.drawingArea.right,
|
|
1178
1194
|
y1: t.y,
|
|
1179
1195
|
y2: t.y,
|
|
1180
1196
|
stroke: e.value.xyGridStroke,
|
|
1181
1197
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1182
1198
|
"stroke-linecap": "round"
|
|
1183
|
-
}, null, 8,
|
|
1199
|
+
}, null, 8, Ka)) : g("", !0)
|
|
1184
1200
|
], 64))), 256)),
|
|
1185
|
-
(a(!0), l(m, null, $(
|
|
1186
|
-
x1:
|
|
1187
|
-
x2:
|
|
1188
|
-
y1:
|
|
1189
|
-
y2:
|
|
1201
|
+
(a(!0), l(m, null, $(d.value.extremes.maxSeries + 1, (t, i) => (a(), l("line", {
|
|
1202
|
+
x1: d.value.drawingArea.left + d.value.slotSize * i,
|
|
1203
|
+
x2: d.value.drawingArea.left + d.value.slotSize * i,
|
|
1204
|
+
y1: d.value.drawingArea.top,
|
|
1205
|
+
y2: d.value.drawingArea.bottom,
|
|
1190
1206
|
stroke: e.value.xyGridStroke,
|
|
1191
1207
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1192
1208
|
"stroke-linecap": "round"
|
|
1193
|
-
}, null, 8,
|
|
1209
|
+
}, null, 8, el))), 256))
|
|
1194
1210
|
])) : g("", !0),
|
|
1195
|
-
e.value.xyShowAxis ? (a(), l("g",
|
|
1211
|
+
e.value.xyShowAxis ? (a(), l("g", tl, [
|
|
1196
1212
|
_("line", {
|
|
1197
|
-
x1:
|
|
1198
|
-
x2:
|
|
1199
|
-
y1:
|
|
1200
|
-
y2:
|
|
1213
|
+
x1: d.value.drawingArea.left,
|
|
1214
|
+
x2: d.value.drawingArea.left,
|
|
1215
|
+
y1: d.value.drawingArea.top,
|
|
1216
|
+
y2: d.value.drawingArea.bottom,
|
|
1201
1217
|
stroke: e.value.xyAxisStroke,
|
|
1202
1218
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1203
1219
|
"stroke-linecap": "round"
|
|
1204
|
-
}, null, 8,
|
|
1220
|
+
}, null, 8, al),
|
|
1205
1221
|
_("line", {
|
|
1206
|
-
x1:
|
|
1207
|
-
x2:
|
|
1208
|
-
y1: isNaN(
|
|
1209
|
-
y2: isNaN(
|
|
1222
|
+
x1: d.value.drawingArea.left,
|
|
1223
|
+
x2: d.value.drawingArea.right,
|
|
1224
|
+
y1: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
|
|
1225
|
+
y2: isNaN(d.value.absoluteZero) ? d.value.drawingArea.bottom : d.value.absoluteZero,
|
|
1210
1226
|
stroke: e.value.xyAxisStroke,
|
|
1211
1227
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1212
1228
|
"stroke-linecap": "round"
|
|
1213
|
-
}, null, 8,
|
|
1229
|
+
}, null, 8, ll)
|
|
1214
1230
|
])) : g("", !0),
|
|
1215
|
-
e.value.xyShowScale ? (a(), l("g",
|
|
1216
|
-
(a(!0), l(m, null, $(
|
|
1217
|
-
t.y <=
|
|
1231
|
+
e.value.xyShowScale ? (a(), l("g", ol, [
|
|
1232
|
+
(a(!0), l(m, null, $(d.value.yLabels, (t, i) => (a(), l(m, null, [
|
|
1233
|
+
t.y <= d.value.drawingArea.bottom ? (a(), l("line", {
|
|
1218
1234
|
key: 0,
|
|
1219
1235
|
x1: t.x + 4,
|
|
1220
|
-
x2:
|
|
1236
|
+
x2: d.value.drawingArea.left,
|
|
1221
1237
|
y1: t.y,
|
|
1222
1238
|
y2: t.y,
|
|
1223
1239
|
stroke: e.value.xyAxisStroke,
|
|
1224
1240
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1225
1241
|
"stroke-linecap": "round"
|
|
1226
|
-
}, null, 8,
|
|
1227
|
-
t.y <=
|
|
1242
|
+
}, null, 8, nl)) : g("", !0),
|
|
1243
|
+
t.y <= d.value.drawingArea.bottom ? (a(), l("text", {
|
|
1228
1244
|
key: 1,
|
|
1229
1245
|
x: t.x,
|
|
1230
1246
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
1231
1247
|
"text-anchor": "end",
|
|
1232
1248
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1233
1249
|
fill: e.value.color
|
|
1234
|
-
},
|
|
1250
|
+
}, T(f(X)(
|
|
1235
1251
|
e.value.formatter,
|
|
1236
1252
|
t.value,
|
|
1237
|
-
f(
|
|
1253
|
+
f(D)({
|
|
1238
1254
|
p: e.value.valuePrefix,
|
|
1239
1255
|
v: t.value,
|
|
1240
1256
|
s: e.value.valueSuffix,
|
|
1241
1257
|
r: e.value.dataLabelRoundingValue
|
|
1242
1258
|
}),
|
|
1243
1259
|
{ datapoint: t, seriesIndex: i }
|
|
1244
|
-
)), 9,
|
|
1260
|
+
)), 9, ul)) : g("", !0)
|
|
1245
1261
|
], 64))), 256))
|
|
1246
1262
|
])) : g("", !0),
|
|
1247
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g",
|
|
1248
|
-
(a(!0), l(m, null, $(e.value.xyPeriods.slice(
|
|
1249
|
-
x1:
|
|
1250
|
-
x2:
|
|
1251
|
-
y1:
|
|
1252
|
-
y2:
|
|
1263
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (a(), l("g", il, [
|
|
1264
|
+
(a(!0), l(m, null, $(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, i) => (a(), l("line", {
|
|
1265
|
+
x1: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
|
|
1266
|
+
x2: d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2,
|
|
1267
|
+
y1: d.value.drawingArea.bottom,
|
|
1268
|
+
y2: d.value.drawingArea.bottom + 4,
|
|
1253
1269
|
stroke: e.value.xyAxisStroke,
|
|
1254
1270
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1255
1271
|
"stroke-linecap": "round"
|
|
1256
|
-
}, null, 8,
|
|
1272
|
+
}, null, 8, rl))), 256)),
|
|
1257
1273
|
(a(!0), l(m, null, $(K.value.map((t) => t.text), (t, i) => (a(), l("text", {
|
|
1258
1274
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1259
1275
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1260
|
-
transform: `translate(${
|
|
1276
|
+
transform: `translate(${d.value.drawingArea.left + d.value.slotSize * (i + 1) - d.value.slotSize / 2}, ${d.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}) rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1261
1277
|
fill: e.value.color
|
|
1262
|
-
},
|
|
1278
|
+
}, T(t), 9, sl))), 256))
|
|
1263
1279
|
])) : g("", !0),
|
|
1264
|
-
_("g",
|
|
1265
|
-
(a(!0), l(m, null, $(
|
|
1280
|
+
_("g", vl, [
|
|
1281
|
+
(a(!0), l(m, null, $(d.value.dataset, (t, i) => (a(), l(m, null, [
|
|
1266
1282
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1267
1283
|
x: r.x,
|
|
1268
1284
|
width: r.width <= 0 ? 1e-5 : r.width,
|
|
@@ -1274,25 +1290,25 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1274
1290
|
"stroke-linecap": "round",
|
|
1275
1291
|
class: he({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
|
|
1276
1292
|
}, [
|
|
1277
|
-
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(
|
|
1293
|
+
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Te) ? (a(), l("animate", {
|
|
1278
1294
|
key: 0,
|
|
1279
1295
|
attributeName: "height",
|
|
1280
1296
|
from: 0,
|
|
1281
1297
|
to: r.height,
|
|
1282
1298
|
dur: "0.5s"
|
|
1283
|
-
}, null, 8,
|
|
1284
|
-
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(
|
|
1299
|
+
}, null, 8, cl)) : g("", !0),
|
|
1300
|
+
e.value.barAnimated && r.value > 0 && !f(Ee) && !f(Te) ? (a(), l("animate", {
|
|
1285
1301
|
key: 1,
|
|
1286
1302
|
attributeName: "y",
|
|
1287
|
-
from:
|
|
1288
|
-
to:
|
|
1303
|
+
from: d.value.absoluteZero,
|
|
1304
|
+
to: d.value.absoluteZero - r.height,
|
|
1289
1305
|
dur: "0.5s"
|
|
1290
|
-
}, null, 8,
|
|
1291
|
-
], 10,
|
|
1306
|
+
}, null, 8, hl)) : g("", !0)
|
|
1307
|
+
], 10, dl))), 256))
|
|
1292
1308
|
], 64))), 256))
|
|
1293
1309
|
]),
|
|
1294
|
-
e.value.showDataLabels ? (a(), l("g",
|
|
1295
|
-
(a(!0), l(m, null, $(
|
|
1310
|
+
e.value.showDataLabels ? (a(), l("g", fl, [
|
|
1311
|
+
(a(!0), l(m, null, $(d.value.dataset, (t, i) => (a(), l(m, null, [
|
|
1296
1312
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1297
1313
|
x: r.x + r.width / 2,
|
|
1298
1314
|
y: f(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
@@ -1300,74 +1316,74 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1300
1316
|
"font-size": e.value.dataLabelFontSize,
|
|
1301
1317
|
fill: t.color,
|
|
1302
1318
|
class: "quick-animation"
|
|
1303
|
-
},
|
|
1319
|
+
}, T(f(X)(
|
|
1304
1320
|
e.value.formatter,
|
|
1305
1321
|
f(Z)(r.value),
|
|
1306
|
-
f(
|
|
1322
|
+
f(D)({
|
|
1307
1323
|
p: e.value.valuePrefix,
|
|
1308
1324
|
v: f(Z)(r.value),
|
|
1309
1325
|
s: e.value.valueSuffix,
|
|
1310
1326
|
r: e.value.dataLabelRoundingValue
|
|
1311
1327
|
}),
|
|
1312
1328
|
{ datapoint: r, seriesIndex: h }
|
|
1313
|
-
)), 9,
|
|
1329
|
+
)), 9, gl))), 256))
|
|
1314
1330
|
], 64))), 256))
|
|
1315
1331
|
])) : g("", !0),
|
|
1316
|
-
_("g",
|
|
1317
|
-
(a(!0), l(m, null, $(
|
|
1318
|
-
x:
|
|
1319
|
-
y:
|
|
1320
|
-
height:
|
|
1321
|
-
width:
|
|
1332
|
+
_("g", ml, [
|
|
1333
|
+
(a(!0), l(m, null, $(d.value.extremes.maxSeries, (t, i) => (a(), l("rect", {
|
|
1334
|
+
x: d.value.drawingArea.left + i * d.value.slotSize,
|
|
1335
|
+
y: d.value.drawingArea.top,
|
|
1336
|
+
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1337
|
+
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1322
1338
|
fill: [W.value, j.value].includes(i) ? e.value.xyHighlighterColor : "transparent",
|
|
1323
1339
|
style: R(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1324
|
-
onMouseenter: (r) =>
|
|
1325
|
-
onMouseleave: s[2] || (s[2] = (r) =>
|
|
1326
|
-
onClick: (r) => ie("selectDatapoint",
|
|
1340
|
+
onMouseenter: (r) => d.value.useTooltip(i),
|
|
1341
|
+
onMouseleave: s[2] || (s[2] = (r) => d.value.killTooltip()),
|
|
1342
|
+
onClick: (r) => ie("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1327
1343
|
...h,
|
|
1328
1344
|
value: h.values[i]
|
|
1329
1345
|
})))
|
|
1330
|
-
}, null, 44,
|
|
1346
|
+
}, null, 44, pl))), 256))
|
|
1331
1347
|
])
|
|
1332
1348
|
], 64)) : g("", !0),
|
|
1333
|
-
[A.LINE, A.BAR].includes(L.value) ? (a(), l("g",
|
|
1334
|
-
e.value.xAxisLabel && L.value === A.LINE ? (a(), l("g",
|
|
1349
|
+
[A.LINE, A.BAR].includes(L.value) ? (a(), l("g", xl, [
|
|
1350
|
+
e.value.xAxisLabel && L.value === A.LINE ? (a(), l("g", yl, [
|
|
1335
1351
|
_("text", {
|
|
1336
1352
|
"font-size": e.value.axisLabelsFontSize,
|
|
1337
1353
|
fill: e.value.color,
|
|
1338
1354
|
"text-anchor": "middle",
|
|
1339
|
-
x:
|
|
1355
|
+
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1340
1356
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1341
|
-
},
|
|
1357
|
+
}, T(e.value.xAxisLabel), 9, kl)
|
|
1342
1358
|
])) : g("", !0),
|
|
1343
|
-
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g",
|
|
1359
|
+
e.value.xAxisLabel && L.value === A.BAR ? (a(), l("g", bl, [
|
|
1344
1360
|
_("text", {
|
|
1345
1361
|
"font-size": e.value.axisLabelsFontSize,
|
|
1346
1362
|
fill: e.value.color,
|
|
1347
1363
|
"text-anchor": "middle",
|
|
1348
|
-
x:
|
|
1364
|
+
x: d.value.drawingArea.left + d.value.drawingArea.width / 2,
|
|
1349
1365
|
y: b.value.height - e.value.axisLabelsFontSize / 3
|
|
1350
|
-
},
|
|
1366
|
+
}, T(e.value.xAxisLabel), 9, Sl)
|
|
1351
1367
|
])) : g("", !0),
|
|
1352
|
-
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g",
|
|
1368
|
+
e.value.yAxisLabel && L.value === A.LINE ? (a(), l("g", wl, [
|
|
1353
1369
|
_("text", {
|
|
1354
1370
|
"font-size": e.value.axisLabelsFontSize,
|
|
1355
1371
|
fill: e.value.color,
|
|
1356
|
-
transform: `translate(${e.value.axisLabelsFontSize}, ${
|
|
1372
|
+
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1357
1373
|
"text-anchor": "middle"
|
|
1358
|
-
},
|
|
1374
|
+
}, T(e.value.yAxisLabel), 9, Al)
|
|
1359
1375
|
])) : g("", !0),
|
|
1360
|
-
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g",
|
|
1376
|
+
e.value.yAxisLabel && L.value === A.BAR ? (a(), l("g", _l, [
|
|
1361
1377
|
_("text", {
|
|
1362
1378
|
"font-size": e.value.axisLabelsFontSize,
|
|
1363
1379
|
fill: e.value.color,
|
|
1364
|
-
transform: `translate(${e.value.axisLabelsFontSize}, ${
|
|
1380
|
+
transform: `translate(${e.value.axisLabelsFontSize}, ${d.value.drawingArea.top + d.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1365
1381
|
"text-anchor": "middle"
|
|
1366
|
-
},
|
|
1382
|
+
}, T(e.value.yAxisLabel), 9, Ll)
|
|
1367
1383
|
])) : g("", !0)
|
|
1368
1384
|
])) : g("", !0)
|
|
1369
|
-
], 12,
|
|
1370
|
-
L.value ? g("", !0) : (a(),
|
|
1385
|
+
], 12, ua)) : g("", !0),
|
|
1386
|
+
L.value ? g("", !0) : (a(), Fe(f(me), {
|
|
1371
1387
|
key: 5,
|
|
1372
1388
|
config: {
|
|
1373
1389
|
type: "line",
|
|
@@ -1385,15 +1401,15 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1385
1401
|
}
|
|
1386
1402
|
}
|
|
1387
1403
|
}, null, 8, ["config"])),
|
|
1388
|
-
o.$slots.watermark ? (a(), l("div",
|
|
1389
|
-
M(o.$slots, "watermark", ne(ue({ isPrinting: f(Ee) || f(
|
|
1404
|
+
o.$slots.watermark ? (a(), l("div", zl, [
|
|
1405
|
+
M(o.$slots, "watermark", ne(ue({ isPrinting: f(Ee) || f(Te) })), void 0, !0)
|
|
1390
1406
|
])) : g("", !0),
|
|
1391
1407
|
[A.BAR, A.LINE].includes(L.value) && e.value.zoomXy && p.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1392
1408
|
key: `slicer_${Ce.value}`,
|
|
1393
1409
|
ref_key: "quickChartSlicer",
|
|
1394
1410
|
ref: Ze
|
|
1395
1411
|
}, [
|
|
1396
|
-
(a(),
|
|
1412
|
+
(a(), Fe(Yt, {
|
|
1397
1413
|
ref_key: "slicerComponent",
|
|
1398
1414
|
ref: se,
|
|
1399
1415
|
key: `slicer_${Ce.value}`,
|
|
@@ -1401,15 +1417,15 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1401
1417
|
borderColor: e.value.backgroundColor,
|
|
1402
1418
|
fontSize: e.value.zoomFontSize,
|
|
1403
1419
|
useResetSlot: e.value.zoomUseResetSlot,
|
|
1404
|
-
labelLeft: e.value.xyPeriods[
|
|
1405
|
-
labelRight: e.value.xyPeriods[
|
|
1420
|
+
labelLeft: e.value.xyPeriods[y.value.start] ? K.value[0].text : "",
|
|
1421
|
+
labelRight: e.value.xyPeriods[y.value.end - 1] ? K.value.at(-1).text : "",
|
|
1406
1422
|
textColor: e.value.color,
|
|
1407
1423
|
inputColor: e.value.zoomColor,
|
|
1408
1424
|
selectColor: e.value.zoomHighlightColor,
|
|
1409
1425
|
max: p.value.maxSeriesLength,
|
|
1410
1426
|
min: 0,
|
|
1411
|
-
valueStart:
|
|
1412
|
-
valueEnd:
|
|
1427
|
+
valueStart: y.value.start,
|
|
1428
|
+
valueEnd: y.value.end,
|
|
1413
1429
|
smoothMinimap: e.value.zoomMinimap.smooth,
|
|
1414
1430
|
minimapSelectedColor: e.value.zoomMinimap.selectedColor,
|
|
1415
1431
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
@@ -1419,10 +1435,10 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1419
1435
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1420
1436
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1421
1437
|
minimapSelectedIndex: j.value,
|
|
1422
|
-
start:
|
|
1423
|
-
"onUpdate:start": s[3] || (s[3] = (t) =>
|
|
1424
|
-
end:
|
|
1425
|
-
"onUpdate:end": s[4] || (s[4] = (t) =>
|
|
1438
|
+
start: y.value.start,
|
|
1439
|
+
"onUpdate:start": s[3] || (s[3] = (t) => y.value.start = t),
|
|
1440
|
+
end: y.value.end,
|
|
1441
|
+
"onUpdate:end": s[4] || (s[4] = (t) => y.value.end = t),
|
|
1426
1442
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1427
1443
|
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : p.value.maxSeriesLength,
|
|
1428
1444
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
@@ -1454,20 +1470,20 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1454
1470
|
key: 0,
|
|
1455
1471
|
ref_for: !0
|
|
1456
1472
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1457
|
-
fe(f(
|
|
1473
|
+
fe(f(O), {
|
|
1458
1474
|
name: e.value.legendIcon,
|
|
1459
1475
|
stroke: t.color,
|
|
1460
1476
|
size: e.value.legendIconSize
|
|
1461
1477
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1462
1478
|
_("span", {
|
|
1463
1479
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1464
|
-
},
|
|
1480
|
+
}, T(t.name), 5),
|
|
1465
1481
|
_("span", {
|
|
1466
1482
|
style: R(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1467
|
-
},
|
|
1483
|
+
}, T(w.value.includes(t.id) ? "-" : f(X)(
|
|
1468
1484
|
e.value.formatter,
|
|
1469
1485
|
t.absoluteValue,
|
|
1470
|
-
f(
|
|
1486
|
+
f(D)({
|
|
1471
1487
|
p: e.value.valuePrefix,
|
|
1472
1488
|
v: t.absoluteValue,
|
|
1473
1489
|
s: e.value.valueSuffix,
|
|
@@ -1478,61 +1494,61 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1478
1494
|
w.value.includes(t.id) ? (a(), l("span", {
|
|
1479
1495
|
key: 0,
|
|
1480
1496
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1481
|
-
}, " ( - % ) ", 4)) :
|
|
1497
|
+
}, " ( - % ) ", 4)) : Oe.value ? (a(), l("span", {
|
|
1482
1498
|
key: 1,
|
|
1483
1499
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1484
1500
|
}, " ( - % ) ", 4)) : (a(), l("span", {
|
|
1485
1501
|
key: 2,
|
|
1486
1502
|
style: R(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1487
|
-
}, " (" +
|
|
1503
|
+
}, " (" + T(f(D)({
|
|
1488
1504
|
v: t.value / I.value.total * 100,
|
|
1489
1505
|
s: "%",
|
|
1490
1506
|
r: e.value.dataLabelRoundingPercentage
|
|
1491
1507
|
})) + ") ", 5))
|
|
1492
1508
|
], 64))
|
|
1493
|
-
], 12,
|
|
1494
|
-
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(
|
|
1509
|
+
], 12, $l))), 256)) : g("", !0),
|
|
1510
|
+
L.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(v.value.legend, (t, i) => (a(), l("div", {
|
|
1495
1511
|
class: "vue-ui-quick-chart-legend-item",
|
|
1496
1512
|
onClick: (r) => {
|
|
1497
|
-
it(t.id,
|
|
1513
|
+
it(t.id, v.value.legend.length - 1), ie("selectLegend", t);
|
|
1498
1514
|
},
|
|
1499
|
-
style: R(`cursor: ${
|
|
1515
|
+
style: R(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1500
1516
|
}, [
|
|
1501
1517
|
e.value.useCustomLegend ? M(o.$slots, "legend", qe({
|
|
1502
1518
|
key: 0,
|
|
1503
1519
|
ref_for: !0
|
|
1504
1520
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1505
|
-
fe(f(
|
|
1521
|
+
fe(f(O), {
|
|
1506
1522
|
name: e.value.legendIcon,
|
|
1507
1523
|
stroke: t.color,
|
|
1508
1524
|
size: e.value.legendIconSize
|
|
1509
1525
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1510
1526
|
_("span", {
|
|
1511
1527
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1512
|
-
},
|
|
1528
|
+
}, T(t.name), 5)
|
|
1513
1529
|
], 64))
|
|
1514
|
-
], 12,
|
|
1515
|
-
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(
|
|
1530
|
+
], 12, Cl))), 256)) : g("", !0),
|
|
1531
|
+
L.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(d.value.legend, (t, i) => (a(), l("div", {
|
|
1516
1532
|
class: "vue-ui-quick-chart-legend-item",
|
|
1517
1533
|
onClick: (r) => {
|
|
1518
|
-
it(t.id,
|
|
1534
|
+
it(t.id, d.value.legend.length - 1), ie("selectLegend", t);
|
|
1519
1535
|
},
|
|
1520
|
-
style: R(`cursor: ${
|
|
1536
|
+
style: R(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1521
1537
|
}, [
|
|
1522
1538
|
e.value.useCustomLegend ? M(o.$slots, "legend", qe({
|
|
1523
1539
|
key: 0,
|
|
1524
1540
|
ref_for: !0
|
|
1525
1541
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1526
|
-
fe(f(
|
|
1542
|
+
fe(f(O), {
|
|
1527
1543
|
name: e.value.legendIcon,
|
|
1528
1544
|
stroke: t.color,
|
|
1529
1545
|
size: e.value.legendIconSize
|
|
1530
1546
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1531
1547
|
_("span", {
|
|
1532
1548
|
style: R(`font-size:${e.value.legendFontSize}px`)
|
|
1533
|
-
},
|
|
1549
|
+
}, T(t.name), 5)
|
|
1534
1550
|
], 64))
|
|
1535
|
-
], 12,
|
|
1551
|
+
], 12, Il))), 256)) : g("", !0)
|
|
1536
1552
|
], 4)) : g("", !0),
|
|
1537
1553
|
o.$slots.source ? (a(), l("div", {
|
|
1538
1554
|
key: 9,
|
|
@@ -1553,28 +1569,28 @@ const oa = ["id"], na = ["xmlns", "viewBox"], ua = ["x", "y", "width", "height"]
|
|
|
1553
1569
|
backgroundOpacity: e.value.tooltipBackgroundOpacity,
|
|
1554
1570
|
position: e.value.tooltipPosition,
|
|
1555
1571
|
offsetY: e.value.tooltipOffsetY,
|
|
1556
|
-
parent:
|
|
1572
|
+
parent: xe.value,
|
|
1557
1573
|
content: te.value,
|
|
1558
1574
|
isFullscreen: Pe.value,
|
|
1559
|
-
isCustom: f(
|
|
1575
|
+
isCustom: f(Ne)(e.value.tooltipCustomFormat)
|
|
1560
1576
|
}, {
|
|
1561
1577
|
"tooltip-before": G(() => [
|
|
1562
|
-
M(o.$slots, "tooltip-before", ne(ue({ ...
|
|
1578
|
+
M(o.$slots, "tooltip-before", ne(ue({ ...ye.value })), void 0, !0)
|
|
1563
1579
|
]),
|
|
1564
1580
|
"tooltip-after": G(() => [
|
|
1565
|
-
M(o.$slots, "tooltip-after", ne(ue({ ...
|
|
1581
|
+
M(o.$slots, "tooltip-after", ne(ue({ ...ye.value })), void 0, !0)
|
|
1566
1582
|
]),
|
|
1567
1583
|
_: 3
|
|
1568
1584
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
1569
|
-
], 46,
|
|
1570
|
-
fe(f(
|
|
1585
|
+
], 46, na)) : (a(), l("div", El, [
|
|
1586
|
+
fe(f(O), {
|
|
1571
1587
|
name: "circleCancel",
|
|
1572
1588
|
stroke: "red"
|
|
1573
1589
|
}),
|
|
1574
1590
|
s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
|
|
1575
1591
|
]));
|
|
1576
1592
|
}
|
|
1577
|
-
},
|
|
1593
|
+
}, Vl = /* @__PURE__ */ Qt(Tl, [["__scopeId", "data-v-80a6d1c1"]]);
|
|
1578
1594
|
export {
|
|
1579
|
-
|
|
1595
|
+
Vl as default
|
|
1580
1596
|
};
|