vue-data-ui 3.2.7 → 3.3.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/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
- package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
- package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
- package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
- package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
- package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
- package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
- package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
- package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
- package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
- package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
- package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
- package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
- package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
- package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
- package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
- package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
- package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
- package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
- package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
- package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
- package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
- package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
- package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
- package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
- package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
- package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
- package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
- package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-data-ui-DH8opsJv.js +0 -325
- package/dist/vue-ui-flow-B72CBzC3.js +0 -909
- package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
- package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
|
@@ -1,144 +1,145 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ee, ref as w, computed as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import { defineAsyncComponent as Ee, ref as w, computed as R, toRefs as ya, watch as Te, shallowRef as Mt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot, watchEffect as ka, createElementBlock as n, openBlock as o, normalizeStyle as B, normalizeClass as de, createBlock as Ie, createCommentVNode as m, createElementVNode as C, createVNode as be, unref as s, createSlots as ba, withCtx as ne, renderSlot as W, normalizeProps as me, guardReactiveProps as ge, toDisplayString as U, Fragment as x, renderList as T, Teleport as Sa, mergeProps as nt } from "vue";
|
|
2
|
+
import { c as wa, t as Aa, b as La, p as J, B as We, e as _a, J as za, f as Ca, o as $a, h as it, n as Ea, C as Xe, X as Ta, u as Ia, v as ut, w as Pe, a as ie, d as G, L as Bt, U as Dt, q as ue, z as je, A as rt } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as Ut, u as Pa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Oa, a as Vt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Fa, B as Ra } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ma } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as Na } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as Ba } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as Da } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Ua } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import Va from "./img-6wPuVVtk.js";
|
|
12
|
+
import { S as qa } from "./Slicer-D6T4aUhr.js";
|
|
13
|
+
import { t as Ha } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import { _ as Wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const A = {
|
|
15
16
|
LINE: "LINE",
|
|
16
17
|
BAR: "BAR",
|
|
17
18
|
DONUT: "DONUT"
|
|
18
|
-
},
|
|
19
|
-
function
|
|
20
|
-
let q = null,
|
|
21
|
-
if ((typeof h == "number" || typeof h == "string") &&
|
|
22
|
-
if (!
|
|
23
|
-
return
|
|
24
|
-
const Ze = Object.keys(h[0]),
|
|
25
|
-
if (!Ze.some((M) =>
|
|
26
|
-
return
|
|
27
|
-
|
|
19
|
+
}, Xa = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
20
|
+
function ja({ dataset: h, barLineSwitch: O = 6, debug: L = !0 }) {
|
|
21
|
+
let q = null, j = null, se = 0;
|
|
22
|
+
if ((typeof h == "number" || typeof h == "string") && L && console.warn(`The provided dataset (${h}) is not sufficient to build a chart`), Ye(h) && (re(h) && (h.length < O ? q = A.BAR : q = A.LINE, j = h, se = h.length), Ge(h))) {
|
|
23
|
+
if (!Ya(h))
|
|
24
|
+
return L && console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
25
|
+
const Ze = Object.keys(h[0]), D = Object.values(h[0]);
|
|
26
|
+
if (!Ze.some((M) => Za(M)))
|
|
27
|
+
return L && 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;
|
|
28
|
+
qt(D, (M) => typeof M == "number") && (q = A.DONUT, j = h), qt(D, (M) => Array.isArray(M) && re(M)) && (Ht(h) > O ? q = A.LINE : q = A.BAR, se = Ht(h), j = h.map((M) => ({
|
|
28
29
|
...M,
|
|
29
|
-
data:
|
|
30
|
-
}))), h = h.map((M) =>
|
|
30
|
+
data: Ja(M, (Oe) => re(Oe))
|
|
31
|
+
}))), h = h.map((M) => Wt(M)), j = j.map((M) => Wt(M));
|
|
31
32
|
}
|
|
32
33
|
return {
|
|
33
34
|
dataset: h,
|
|
34
35
|
type: q,
|
|
35
|
-
usableDataset:
|
|
36
|
+
usableDataset: j,
|
|
36
37
|
maxSeriesLength: se
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function Xt(h) {
|
|
40
41
|
return !h || Ye(h) && !h.length;
|
|
41
42
|
}
|
|
42
43
|
function Ye(h) {
|
|
43
44
|
return Array.isArray(h);
|
|
44
45
|
}
|
|
45
46
|
function re(h) {
|
|
46
|
-
if (!Ye(h) ||
|
|
47
|
-
const
|
|
48
|
-
return ![...new Set(
|
|
47
|
+
if (!Ye(h) || Xt(h)) return !1;
|
|
48
|
+
const O = h.map((L) => Number(L));
|
|
49
|
+
return ![...new Set(O.flatMap((L) => typeof L == "number" && !isNaN(L)))].includes(!1);
|
|
49
50
|
}
|
|
50
51
|
function Ge(h) {
|
|
51
|
-
return !Ye(h) ||
|
|
52
|
+
return !Ye(h) || Xt(h) || !![...new Set(h.flatMap((L) => typeof L == "object" && !Array.isArray(L)))].includes(!1) ? !1 : !h.map((L) => Object.keys(L).length > 0).includes(!1);
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
54
|
+
function Ga(h, O) {
|
|
55
|
+
const L = Object.keys(h).sort(), q = Object.keys(O).sort();
|
|
56
|
+
if (L.length !== q.length)
|
|
56
57
|
return !1;
|
|
57
|
-
for (let
|
|
58
|
-
const se =
|
|
59
|
-
if (se !== Se || typeof h[se] != typeof
|
|
58
|
+
for (let j = 0; j < L.length; j += 1) {
|
|
59
|
+
const se = L[j], Se = q[j];
|
|
60
|
+
if (se !== Se || typeof h[se] != typeof O[Se])
|
|
60
61
|
return !1;
|
|
61
62
|
}
|
|
62
63
|
return !0;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function Ya(h) {
|
|
65
66
|
if (h.length <= 1) return !0;
|
|
66
|
-
for (let
|
|
67
|
-
for (let
|
|
68
|
-
if (!
|
|
67
|
+
for (let O = 0; O < h.length; O += 1)
|
|
68
|
+
for (let L = O + 1; L < h.length; L += 1)
|
|
69
|
+
if (!Ga(h[O], h[L]))
|
|
69
70
|
return !1;
|
|
70
71
|
return !0;
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
73
|
+
function Za(h) {
|
|
74
|
+
return Xa.includes(h.toUpperCase());
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
-
let
|
|
76
|
+
function qt(h, O) {
|
|
77
|
+
let L = [];
|
|
77
78
|
for (let q = 0; q < h.length; q += 1)
|
|
78
|
-
|
|
79
|
-
return
|
|
79
|
+
L.push(O(h[q]));
|
|
80
|
+
return L.includes(!0);
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
return Math.max(...[...h].flatMap((
|
|
82
|
+
function Ht(h) {
|
|
83
|
+
return Math.max(...[...h].flatMap((O) => Object.values(O).filter((L) => re(L)).map((L) => L.length)));
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
-
return Object.values(h).filter((
|
|
85
|
+
function Ja(h, O) {
|
|
86
|
+
return Object.values(h).filter((L) => O(L))[0];
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
const
|
|
89
|
-
for (let
|
|
90
|
-
h.hasOwnProperty(
|
|
91
|
-
return
|
|
88
|
+
function Wt(h) {
|
|
89
|
+
const O = {};
|
|
90
|
+
for (let L in h)
|
|
91
|
+
h.hasOwnProperty(L) && (O[L.toUpperCase()] = h[L]);
|
|
92
|
+
return O;
|
|
92
93
|
}
|
|
93
|
-
const
|
|
94
|
+
const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height"], al = ["x", "y", "width", "height"], ll = ["width", "height"], ol = ["id"], nl = ["id"], il = ["id"], ul = ["flood-color"], rl = {
|
|
94
95
|
key: 0,
|
|
95
96
|
class: "donut-label-connectors"
|
|
96
|
-
},
|
|
97
|
+
}, sl = ["d", "stroke", "stroke-width", "filter"], vl = ["cx", "cy", "r", "fill", "filter"], dl = { class: "donut" }, cl = ["d", "fill", "stroke", "stroke-width", "filter"], fl = ["d", "onMouseenter", "onMouseout", "onClick"], hl = {
|
|
97
98
|
key: 1,
|
|
98
99
|
class: "donut-labels quick-animation"
|
|
99
|
-
},
|
|
100
|
+
}, ml = ["cx", "cy", "fill", "stroke", "filter"], gl = ["text-anchor", "x", "y", "fill", "font-size", "filter"], pl = ["text-anchor", "x", "y", "fill", "font-size", "filter"], yl = {
|
|
100
101
|
key: 2,
|
|
101
102
|
class: "donut-hollow quick-animation"
|
|
102
|
-
},
|
|
103
|
+
}, xl = ["x", "y", "font-size", "fill"], kl = ["x", "y", "font-size", "fill"], bl = {
|
|
103
104
|
key: 0,
|
|
104
105
|
class: "line-grid"
|
|
105
|
-
},
|
|
106
|
+
}, Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Al = {
|
|
106
107
|
key: 1,
|
|
107
108
|
class: "line-axis"
|
|
108
|
-
},
|
|
109
|
+
}, Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "font-size", "fill"], $l = {
|
|
109
110
|
key: 3,
|
|
110
111
|
class: "periodLabels"
|
|
111
|
-
},
|
|
112
|
+
}, El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = { key: 0 }, Il = ["font-size", "text-anchor", "fill", "transform"], Pl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Ol = { class: "plots" }, Fl = { class: "line-plot-series" }, Rl = ["d", "stroke", "stroke-width"], Ml = ["d", "stroke", "stroke-width"], Nl = ["d", "stroke", "stroke-width"], Bl = ["d", "stroke", "stroke-width"], Dl = ["cx", "cy", "fill", "stroke"], Ul = {
|
|
112
113
|
key: 4,
|
|
113
114
|
class: "dataLabels"
|
|
114
|
-
},
|
|
115
|
+
}, Vl = ["font-size", "fill", "x", "y"], ql = {
|
|
115
116
|
key: 5,
|
|
116
117
|
class: "tooltip-traps"
|
|
117
|
-
},
|
|
118
|
+
}, Hl = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], Wl = {
|
|
118
119
|
key: 0,
|
|
119
120
|
class: "line-grid"
|
|
120
|
-
},
|
|
121
|
+
}, Xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gl = {
|
|
121
122
|
key: 1,
|
|
122
123
|
class: "line-axis"
|
|
123
|
-
},
|
|
124
|
+
}, Yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ql = ["x", "y", "font-size", "fill"], Kl = {
|
|
124
125
|
key: 3,
|
|
125
126
|
class: "periodLabels"
|
|
126
|
-
},
|
|
127
|
+
}, eo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], to = { key: 0 }, ao = ["font-size", "text-anchor", "fill", "transform"], lo = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], oo = { class: "plots" }, no = ["x", "width", "height", "y", "fill", "stroke", "stroke-width"], io = ["to"], uo = ["from", "to"], ro = {
|
|
127
128
|
key: 4,
|
|
128
129
|
class: "dataLabels"
|
|
129
|
-
},
|
|
130
|
+
}, so = ["x", "y", "font-size", "fill"], vo = {
|
|
130
131
|
key: 5,
|
|
131
132
|
class: "tooltip-traps"
|
|
132
|
-
},
|
|
133
|
+
}, co = ["x", "y", "height", "width", "fill", "onMouseenter", "onMouseleave", "onClick"], fo = {
|
|
133
134
|
key: 6,
|
|
134
135
|
class: "axis-labels"
|
|
135
|
-
},
|
|
136
|
+
}, ho = ["font-size", "fill", "x", "y"], mo = ["font-size", "fill", "x", "y"], go = ["font-size", "fill", "transform"], po = ["font-size", "fill", "transform"], yo = {
|
|
136
137
|
key: 5,
|
|
137
138
|
class: "vue-data-ui-watermark"
|
|
138
|
-
},
|
|
139
|
+
}, xo = ["id"], ko = ["onClick"], bo = ["onClick"], So = ["onClick"], wo = {
|
|
139
140
|
key: 1,
|
|
140
141
|
class: "vue-ui-quick-chart-not-processable"
|
|
141
|
-
},
|
|
142
|
+
}, Ao = {
|
|
142
143
|
__name: "vue-ui-quick-chart",
|
|
143
144
|
props: {
|
|
144
145
|
config: {
|
|
@@ -155,14 +156,14 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
155
156
|
}
|
|
156
157
|
},
|
|
157
158
|
emits: ["selectDatapoint", "selectLegend"],
|
|
158
|
-
setup(h, { expose:
|
|
159
|
-
const q = Ee(() => import("./BaseIcon-
|
|
160
|
-
...
|
|
159
|
+
setup(h, { expose: O, emit: L }) {
|
|
160
|
+
const q = Ee(() => import("./BaseIcon-CtqN7W_g.js")), j = Ee(() => import("./PackageVersion-C9oklnuy.js")), se = Ee(() => import("./PenAndPaper-BxbYiPy4.js")), Se = Ee(() => import("./Tooltip-CtVdvbZi.js")), st = Ee(() => import("./UserOptions-B3vCIe-u.js")), { vue_ui_quick_chart: Ze } = Oa(), D = h, M = w(null), Oe = w(null), vt = w(null), dt = w(null), Y = w(wa()), ce = w(!1), we = w(null), fe = w(""), te = w(null), ct = w(null), ft = w(null), _ = w([]), ht = w(0), Fe = w(0), mt = w(!1), Ae = w(null), Le = w(null), ae = w(null), Re = w(null), gt = w(null), pt = w(null), Me = w("#FFFFFF"), e = w(et()), Je = R(() => !!e.value.debug), { loading: V, FINAL_DATASET: jt, manualLoading: yt } = Fa({
|
|
161
|
+
...ya(D),
|
|
161
162
|
FINAL_CONFIG: e,
|
|
162
|
-
prepareConfig:
|
|
163
|
+
prepareConfig: et,
|
|
163
164
|
callback: () => {
|
|
164
165
|
Promise.resolve().then(async () => {
|
|
165
|
-
await
|
|
166
|
+
await ot(), $.value === A.LINE && e.value.lineAnimated && !V.value && ua({
|
|
166
167
|
pathDuration: 1e3,
|
|
167
168
|
pointDuration: 1200,
|
|
168
169
|
labelDuration: 1200
|
|
@@ -170,7 +171,7 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
170
171
|
});
|
|
171
172
|
},
|
|
172
173
|
skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
|
|
173
|
-
skeletonConfig:
|
|
174
|
+
skeletonConfig: Aa({
|
|
174
175
|
defaultConfig: e.value,
|
|
175
176
|
userConfig: {
|
|
176
177
|
backgroundColor: "#99999930",
|
|
@@ -192,33 +193,33 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
192
193
|
zoomEndIndex: null
|
|
193
194
|
}
|
|
194
195
|
})
|
|
195
|
-
}), { svgRef:
|
|
196
|
+
}), { svgRef: Qe } = Da({ config: { text: e.value.title } }), Gt = R(() => e.value.showUserOptionsOnChartHover), xt = R(() => e.value.keepUserOptionsStateOnChartLeave), Ne = w(!e.value.showUserOptionsOnChartHover), Ke = w(!1);
|
|
196
197
|
function kt(a = !1) {
|
|
197
|
-
|
|
198
|
+
Ke.value = a, Gt.value && (Ne.value = a);
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
-
const a =
|
|
201
|
-
userConfig:
|
|
200
|
+
function et() {
|
|
201
|
+
const a = Vt({
|
|
202
|
+
userConfig: D.config,
|
|
202
203
|
defaultConfig: Ze
|
|
203
204
|
});
|
|
204
205
|
let r = {};
|
|
205
206
|
return a.theme ? r = {
|
|
206
|
-
...
|
|
207
|
-
userConfig:
|
|
207
|
+
...Vt({
|
|
208
|
+
userConfig: Ha.vue_ui_quick_chart[a.theme] || D.config,
|
|
208
209
|
defaultConfig: a
|
|
209
210
|
}),
|
|
210
|
-
customPalette:
|
|
211
|
-
} : r = a,
|
|
211
|
+
customPalette: La[a.theme] || J
|
|
212
|
+
} : r = a, D.config && We(D.config, "zoomStartIndex") ? r.zoomStartIndex = D.config.zoomStartIndex : r.zoomStartIndex = null, D.config && We(D.config, "zoomEndIndex") ? r.zoomEndIndex = D.config.zoomEndIndex : r.zoomEndIndex = null, D.config && !We(D.config, "donutStroke") ? We(D.config, "backgroundColor") ? Me.value = D.config.backgroundColor : Me.value = "#FFFFFF" : Me.value = D.config.donutStroke, r;
|
|
212
213
|
}
|
|
213
|
-
Te(() =>
|
|
214
|
-
|
|
215
|
-
}, { deep: !0 }), Te(() =>
|
|
214
|
+
Te(() => D.config, (a) => {
|
|
215
|
+
V.value || (e.value = et()), S.value.width = e.value.width, S.value.height = e.value.height, Ne.value = !e.value.showUserOptionsOnChartHover, wt(), ye.value.showTooltip = e.value.showTooltip;
|
|
216
|
+
}, { deep: !0 }), Te(() => D.dataset, (a) => {
|
|
216
217
|
k.value = ze.value, y.value.start = 0, y.value.end = k.value.maxSeriesLength, Fe.value += 1;
|
|
217
|
-
}, { deep: !0 }), Te(() =>
|
|
218
|
-
Array.isArray(a) && a.length > 0 && (
|
|
218
|
+
}, { deep: !0 }), Te(() => D.dataset, (a) => {
|
|
219
|
+
Array.isArray(a) && a.length > 0 && (yt.value = !1);
|
|
219
220
|
}, { immediate: !0 });
|
|
220
|
-
const _e =
|
|
221
|
-
const a =
|
|
221
|
+
const _e = R(() => _a(e.value.customPalette)), pe = L, ze = R(() => {
|
|
222
|
+
const a = ja({ debug: Je.value, dataset: za(jt.value, [
|
|
222
223
|
"serie",
|
|
223
224
|
"series",
|
|
224
225
|
"data",
|
|
@@ -227,19 +228,19 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
227
228
|
"num"
|
|
228
229
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
229
230
|
return !a && Je.value && console.error("VueUiQuickChart : Dataset is not processable"), a;
|
|
230
|
-
}), k = w(ze.value),
|
|
231
|
-
Te(() =>
|
|
232
|
-
a ||
|
|
231
|
+
}), k = w(ze.value), Yt = R(() => !!k.value), $ = R(() => k.value ? k.value.type : null);
|
|
232
|
+
Te(() => $.value, (a) => {
|
|
233
|
+
a || Ca({
|
|
233
234
|
componentName: "VueUiQuickChart",
|
|
234
235
|
type: "dataset",
|
|
235
236
|
debug: Je.value
|
|
236
237
|
});
|
|
237
238
|
}, { immediate: !0 });
|
|
238
|
-
const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } =
|
|
239
|
-
elementId: `${
|
|
240
|
-
fileName: e.value.title ||
|
|
239
|
+
const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } = Ma({
|
|
240
|
+
elementId: `${$.value}_${Y.value}`,
|
|
241
|
+
fileName: e.value.title || $.value,
|
|
241
242
|
options: e.value.userOptionsPrint
|
|
242
|
-
}),
|
|
243
|
+
}), Zt = R(() => e.value.showUserOptions && !e.value.title), S = w({
|
|
243
244
|
width: e.value.width,
|
|
244
245
|
height: e.value.height
|
|
245
246
|
}), ye = w({
|
|
@@ -251,19 +252,19 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
251
252
|
};
|
|
252
253
|
}, { immediate: !0 });
|
|
253
254
|
const ve = Mt(null), xe = Mt(null);
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
xa(async () => {
|
|
256
|
+
mt.value = !0, wt();
|
|
256
257
|
});
|
|
257
258
|
function wt() {
|
|
258
|
-
if (
|
|
259
|
-
const a =
|
|
260
|
-
const { width: r, height: t } =
|
|
259
|
+
if ($a(D.dataset) || (yt.value = e.value.loading), e.value.responsive) {
|
|
260
|
+
const a = Ut(() => {
|
|
261
|
+
const { width: r, height: t } = Pa({
|
|
261
262
|
chart: M.value,
|
|
262
|
-
title: e.value.title ?
|
|
263
|
-
legend: e.value.showLegend ?
|
|
264
|
-
slicer: [
|
|
265
|
-
source:
|
|
266
|
-
noTitle:
|
|
263
|
+
title: e.value.title ? Oe.value : null,
|
|
264
|
+
legend: e.value.showLegend ? vt.value : null,
|
|
265
|
+
slicer: [A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? dt.value : null,
|
|
266
|
+
source: ct.value,
|
|
267
|
+
noTitle: ft.value
|
|
267
268
|
});
|
|
268
269
|
requestAnimationFrame(() => {
|
|
269
270
|
S.value.width = r, S.value.height = t;
|
|
@@ -273,16 +274,16 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
273
274
|
}
|
|
274
275
|
Et();
|
|
275
276
|
}
|
|
276
|
-
|
|
277
|
+
Nt(() => {
|
|
277
278
|
ve.value && (xe.value && ve.value.unobserve(xe.value), ve.value.disconnect());
|
|
278
279
|
});
|
|
279
|
-
const
|
|
280
|
-
switch (
|
|
281
|
-
case
|
|
280
|
+
const Jt = R(() => {
|
|
281
|
+
switch ($.value) {
|
|
282
|
+
case A.LINE:
|
|
282
283
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
283
|
-
case
|
|
284
|
+
case A.BAR:
|
|
284
285
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
285
|
-
case
|
|
286
|
+
case A.DONUT:
|
|
286
287
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
287
288
|
default:
|
|
288
289
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
@@ -291,27 +292,27 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
291
292
|
function At(a) {
|
|
292
293
|
return [...a].map((r) => r.value).reduce((r, t) => r + t, 0);
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
+
function Ce(a) {
|
|
295
296
|
return e.value.blurOnHover && ![null, void 0].includes(te.value) && te.value !== a ? `url(#blur_${Y.value})` : "";
|
|
296
297
|
}
|
|
297
298
|
function Lt(a, r) {
|
|
298
|
-
|
|
299
|
+
_.value.includes(a) ? _.value = _.value.filter((t) => t !== a) : _.value.length < r && _.value.push(a);
|
|
299
300
|
}
|
|
300
301
|
const _t = w(null), zt = w(null), Ue = w(!1);
|
|
301
|
-
function
|
|
302
|
+
function Qt(a, r) {
|
|
302
303
|
Ue.value = !0;
|
|
303
304
|
let t = a.value;
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
305
|
+
const l = ze.value.dataset.find((u, p) => a.id === `donut_${p}`).VALUE;
|
|
306
|
+
if (_.value.includes(a.id)) {
|
|
306
307
|
let u = function() {
|
|
307
|
-
t >
|
|
308
|
+
t > l ? (Ue.value = !1, cancelAnimationFrame(zt.value), k.value = {
|
|
308
309
|
...k.value,
|
|
309
310
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
310
311
|
...p,
|
|
311
|
-
value:
|
|
312
|
-
VALUE:
|
|
312
|
+
value: l,
|
|
313
|
+
VALUE: l
|
|
313
314
|
} : p)
|
|
314
|
-
}) : (t +=
|
|
315
|
+
}) : (t += l * 0.025, k.value = {
|
|
315
316
|
...k.value,
|
|
316
317
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
317
318
|
...p,
|
|
@@ -320,10 +321,10 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
320
321
|
} : p)
|
|
321
322
|
}, zt.value = requestAnimationFrame(u));
|
|
322
323
|
};
|
|
323
|
-
|
|
324
|
+
_.value = _.value.filter((p) => p !== a.id), u();
|
|
324
325
|
} else if (r.length > 1) {
|
|
325
326
|
let u = function() {
|
|
326
|
-
t <
|
|
327
|
+
t < l / 100 ? (Ue.value = !1, cancelAnimationFrame(_t.value), _.value.push(a.id), k.value = {
|
|
327
328
|
...k.value,
|
|
328
329
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
329
330
|
...p,
|
|
@@ -343,24 +344,24 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
346
|
const le = w(null);
|
|
346
|
-
function
|
|
347
|
+
function Kt(a) {
|
|
347
348
|
le.value = a;
|
|
348
349
|
}
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
351
|
-
const a = k.value.dataset.map((f,
|
|
350
|
+
const Ct = R(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = R(() => {
|
|
351
|
+
if ($.value !== A.DONUT) return null;
|
|
352
|
+
const a = k.value.dataset.map((f, z) => ({
|
|
352
353
|
...f,
|
|
353
354
|
value: f.VALUE || f.DATA || f.SERIE || f.VALUES || f.NUM || 0,
|
|
354
|
-
name: f.NAME || f.DESCRIPTION || f.TITLE || f.LABEL || `Serie ${
|
|
355
|
-
id: `donut_${
|
|
356
|
-
})).map((f,
|
|
355
|
+
name: f.NAME || f.DESCRIPTION || f.TITLE || f.LABEL || `Serie ${z}`,
|
|
356
|
+
id: `donut_${z}`
|
|
357
|
+
})).map((f, z) => ({
|
|
357
358
|
...f,
|
|
358
|
-
color: f.COLOR ?
|
|
359
|
+
color: f.COLOR ? it(f.COLOR) : _e.value[z + e.value.paletteStartIndex] || J[z + e.value.paletteStartIndex] || J[(z + e.value.paletteStartIndex) % J.length],
|
|
359
360
|
immutableValue: f.value
|
|
360
361
|
}));
|
|
361
|
-
function r(f,
|
|
362
|
+
function r(f, z) {
|
|
362
363
|
return G({
|
|
363
|
-
v: isNaN(f.value / At(
|
|
364
|
+
v: isNaN(f.value / At(z)) ? 0 : f.value / At(z) * 100,
|
|
364
365
|
s: "%",
|
|
365
366
|
r: e.value.dataLabelRoundingPercentage
|
|
366
367
|
});
|
|
@@ -368,22 +369,22 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
368
369
|
function t(f) {
|
|
369
370
|
return f.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
-
const
|
|
373
|
-
return Math.abs(String(Number(
|
|
372
|
+
function l(f, z) {
|
|
373
|
+
const d = ze.value.dataset.find((g, E) => `donut_${E}` === f).VALUE;
|
|
374
|
+
return Math.abs(String(Number(d.toFixed(0))).length - String(Number(z.toFixed(0))).length);
|
|
374
375
|
}
|
|
375
|
-
function u({ datapoint: f, seriesIndex:
|
|
376
|
-
we.value = { datapoint: f, seriesIndex:
|
|
377
|
-
const
|
|
378
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex:
|
|
376
|
+
function u({ datapoint: f, seriesIndex: z }) {
|
|
377
|
+
we.value = { datapoint: f, seriesIndex: z, config: e.value, dataset: a }, te.value = f.id;
|
|
378
|
+
const d = e.value.tooltipCustomFormat;
|
|
379
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: z }), je(d) && rt(() => d({
|
|
379
380
|
datapoint: f,
|
|
380
|
-
seriesIndex:
|
|
381
|
+
seriesIndex: z,
|
|
381
382
|
series: a,
|
|
382
383
|
config: e.value
|
|
383
384
|
})))
|
|
384
|
-
fe.value =
|
|
385
|
+
fe.value = d({
|
|
385
386
|
datapoint: f,
|
|
386
|
-
seriesIndex:
|
|
387
|
+
seriesIndex: z,
|
|
387
388
|
series: a,
|
|
388
389
|
config: e.value
|
|
389
390
|
});
|
|
@@ -398,81 +399,82 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
398
399
|
s: e.value.valueSuffix,
|
|
399
400
|
r: e.value.dataLabelRoundingValue
|
|
400
401
|
}),
|
|
401
|
-
{ datapoint: f, seriesIndex:
|
|
402
|
+
{ datapoint: f, seriesIndex: z }
|
|
402
403
|
)}</b>`, i += `<span>(${G({ v: f.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, fe.value = `<div>${i}</div>`;
|
|
403
404
|
}
|
|
404
405
|
ce.value = !0;
|
|
405
406
|
}
|
|
406
|
-
function p({ datapoint: f, seriesIndex:
|
|
407
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex:
|
|
407
|
+
function p({ datapoint: f, seriesIndex: z }) {
|
|
408
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: z }), ce.value = !1, te.value = null, le.value = null;
|
|
408
409
|
}
|
|
409
|
-
function b({ datapoint: f, seriesIndex:
|
|
410
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex:
|
|
410
|
+
function b({ datapoint: f, seriesIndex: z }) {
|
|
411
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex: z }), pe("selectDatapoint", f);
|
|
411
412
|
}
|
|
412
|
-
const
|
|
413
|
+
const P = {
|
|
413
414
|
centerX: S.value.width / 2,
|
|
414
415
|
centerY: S.value.height / 2
|
|
415
|
-
}, F = a.filter((f) => !
|
|
416
|
+
}, F = a.filter((f) => !_.value.includes(f.id)).map((f) => f.value || 0).reduce((f, z) => f + z, 0), K = a.map((f, z) => ({
|
|
416
417
|
...f,
|
|
417
418
|
proportion: (f.value || 0) / F,
|
|
418
419
|
value: f.value || 0,
|
|
419
|
-
absoluteValue: ze.value.dataset.find((
|
|
420
|
-
|
|
420
|
+
absoluteValue: ze.value.dataset.find((d, i) => `donut_${i}` === f.id).VALUE,
|
|
421
|
+
shape: "circle"
|
|
422
|
+
})), oe = S.value.width / 2, Z = S.value.height / 2, X = S.value.height * e.value.donutRadiusRatio;
|
|
421
423
|
return {
|
|
422
|
-
dataset: K.filter((f) => !
|
|
424
|
+
dataset: K.filter((f) => !_.value.includes(f.id)),
|
|
423
425
|
legend: K,
|
|
424
|
-
drawingArea:
|
|
426
|
+
drawingArea: P,
|
|
425
427
|
displayArcPercentage: r,
|
|
426
428
|
isArcBigEnough: t,
|
|
427
429
|
useTooltip: u,
|
|
428
430
|
killTooltip: p,
|
|
429
431
|
selectDatapoint: b,
|
|
430
|
-
getSpaces:
|
|
432
|
+
getSpaces: l,
|
|
431
433
|
total: F,
|
|
432
434
|
cx: oe,
|
|
433
435
|
cy: Z,
|
|
434
|
-
radius:
|
|
435
|
-
chart:
|
|
436
|
-
{ series: a.filter((f) => !
|
|
436
|
+
radius: X,
|
|
437
|
+
chart: Ea(
|
|
438
|
+
{ series: a.filter((f) => !_.value.includes(f.id)) },
|
|
437
439
|
oe,
|
|
438
440
|
Z,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
+
X,
|
|
442
|
+
X,
|
|
441
443
|
1.99999,
|
|
442
444
|
2,
|
|
443
445
|
1,
|
|
444
446
|
360,
|
|
445
447
|
105.25,
|
|
446
|
-
S.value.height *
|
|
448
|
+
S.value.height * Ct.value
|
|
447
449
|
)
|
|
448
450
|
};
|
|
449
451
|
}), y = w({
|
|
450
452
|
start: 0,
|
|
451
453
|
end: k.value.maxSeriesLength
|
|
452
454
|
});
|
|
453
|
-
function
|
|
455
|
+
function ea() {
|
|
454
456
|
Et();
|
|
455
457
|
}
|
|
456
|
-
const
|
|
458
|
+
const $t = w(null);
|
|
457
459
|
async function Et() {
|
|
458
|
-
await
|
|
459
|
-
const { zoomStartIndex: a, zoomEndIndex: r } = e.value, t =
|
|
460
|
-
(a != null || r != null) && t ? (a != null && t.setStartValue(a), r != null && t.setEndValue(
|
|
460
|
+
await ot(), await ot();
|
|
461
|
+
const { zoomStartIndex: a, zoomEndIndex: r } = e.value, t = $t.value;
|
|
462
|
+
(a != null || r != null) && t ? (a != null && t.setStartValue(a), r != null && t.setEndValue(ta(r + 1))) : (y.value = {
|
|
461
463
|
start: 0,
|
|
462
464
|
end: k.value.maxSeriesLength
|
|
463
465
|
}, Fe.value += 1);
|
|
464
466
|
}
|
|
465
|
-
function
|
|
467
|
+
function ta(a) {
|
|
466
468
|
const r = k.value.maxSeriesLength;
|
|
467
469
|
return a > r ? r : a < 0 || e.value.zoomStartIndex !== null && a < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : a;
|
|
468
470
|
}
|
|
469
|
-
const
|
|
470
|
-
if (!e.value.zoomMinimap.show ||
|
|
471
|
+
const aa = R(() => {
|
|
472
|
+
if (!e.value.zoomMinimap.show || $.value === A.DONUT) return [];
|
|
471
473
|
let a = [];
|
|
472
474
|
re(k.value.dataset) && (a = k.value.dataset), Ge(k.value.dataset) && (a = k.value.dataset.map((u, p) => ({
|
|
473
475
|
values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
|
|
474
|
-
id:
|
|
475
|
-
})).filter((u) => !
|
|
476
|
+
id: $.value === A.LINE ? `line_${p}` : `bar_${p}`
|
|
477
|
+
})).filter((u) => !_.value.includes(u.id)));
|
|
476
478
|
const r = re(a) ? a.length : Math.max(...a.map((u) => u.values.length));
|
|
477
479
|
let t = [];
|
|
478
480
|
if (re(a))
|
|
@@ -480,42 +482,42 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
480
482
|
else
|
|
481
483
|
for (let u = 0; u < r; u += 1)
|
|
482
484
|
t.push(a.map((p) => p.values[u] || 0).reduce((p, b) => (p || 0) + (b || 0), 0));
|
|
483
|
-
const
|
|
484
|
-
return t.map((u) => u + (
|
|
485
|
+
const l = Math.min(...t);
|
|
486
|
+
return t.map((u) => u + (l < 0 ? Math.abs(l) : 0));
|
|
485
487
|
});
|
|
486
488
|
function Tt() {
|
|
487
489
|
let a = 0;
|
|
488
|
-
return
|
|
490
|
+
return Re.value && (a = Array.from(Re.value.querySelectorAll("text")).reduce((l, u) => {
|
|
489
491
|
const p = u.getComputedTextLength();
|
|
490
|
-
return p >
|
|
492
|
+
return p > l ? p : l;
|
|
491
493
|
}, 0)), a + 4;
|
|
492
494
|
}
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
+
const tt = w(0), la = Ut((a) => {
|
|
496
|
+
tt.value = a;
|
|
495
497
|
}, 100);
|
|
496
|
-
|
|
498
|
+
ka((a) => {
|
|
497
499
|
const r = ae.value;
|
|
498
500
|
if (!r) return;
|
|
499
|
-
const t = new ResizeObserver((
|
|
500
|
-
|
|
501
|
+
const t = new ResizeObserver((l) => {
|
|
502
|
+
la(l[0].contentRect.height);
|
|
501
503
|
});
|
|
502
504
|
t.observe(r), a(() => t.disconnect());
|
|
503
|
-
}),
|
|
504
|
-
|
|
505
|
+
}), Nt(() => {
|
|
506
|
+
tt.value = 0;
|
|
505
507
|
});
|
|
506
|
-
const Ve =
|
|
508
|
+
const Ve = R(() => {
|
|
507
509
|
let a = 0, r = 0;
|
|
508
|
-
return ae.value && (r =
|
|
509
|
-
}), c =
|
|
510
|
-
if (
|
|
510
|
+
return ae.value && (r = tt.value), a + r;
|
|
511
|
+
}), c = R(() => {
|
|
512
|
+
if ($.value !== A.LINE) return null;
|
|
511
513
|
const a = {
|
|
512
514
|
height: S.value.height,
|
|
513
515
|
width: S.value.width
|
|
514
516
|
};
|
|
515
517
|
let r = Tt();
|
|
516
518
|
if (ae.value) {
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
+
const d = ae.value.getBBox().x;
|
|
520
|
+
d < 0 && (r += Math.abs(d));
|
|
519
521
|
}
|
|
520
522
|
const t = {
|
|
521
523
|
left: r + e.value.xyPaddingLeft,
|
|
@@ -525,93 +527,94 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
525
527
|
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
|
|
526
528
|
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
|
|
527
529
|
};
|
|
528
|
-
let
|
|
529
|
-
re(k.value.dataset) && (
|
|
530
|
+
let l = [];
|
|
531
|
+
re(k.value.dataset) && (l = [
|
|
530
532
|
{
|
|
531
533
|
values: k.value.dataset.slice(y.value.start, y.value.end),
|
|
532
534
|
absoluteValues: k.value.dataset,
|
|
533
|
-
absoluteIndices: k.value.dataset.map((
|
|
535
|
+
absoluteIndices: k.value.dataset.map((d, i) => i).slice(y.value.start, y.value.end),
|
|
534
536
|
name: e.value.title,
|
|
535
537
|
color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
|
|
536
538
|
id: "line_0"
|
|
537
539
|
}
|
|
538
|
-
]), Ge(k.value.dataset) && (
|
|
539
|
-
...
|
|
540
|
-
values:
|
|
541
|
-
name:
|
|
540
|
+
]), Ge(k.value.dataset) && (l = k.value.dataset.map((d, i) => ({
|
|
541
|
+
...d,
|
|
542
|
+
values: d.VALUE || d.DATA || d.SERIE || d.SERIES || d.VALUES || d.NUM || 0,
|
|
543
|
+
name: d.NAME || d.DESCRIPTION || d.TITLE || d.LABEL || `Serie ${i}`,
|
|
542
544
|
id: `line_${i}`
|
|
543
|
-
})).map((
|
|
544
|
-
...
|
|
545
|
-
color:
|
|
546
|
-
values:
|
|
547
|
-
absoluteValues:
|
|
548
|
-
absoluteIndices:
|
|
545
|
+
})).map((d, i) => ({
|
|
546
|
+
...d,
|
|
547
|
+
color: d.COLOR ? it(d.COLOR) : _e.value[i + e.value.paletteStartIndex] || J[i + e.value.paletteStartIndex] || J[(i + e.value.paletteStartIndex) % J.length],
|
|
548
|
+
values: d.values.slice(y.value.start, y.value.end),
|
|
549
|
+
absoluteValues: d.values,
|
|
550
|
+
absoluteIndices: d.values.map((g, E) => E).slice(y.value.start, y.value.end)
|
|
549
551
|
})));
|
|
550
552
|
const u = {
|
|
551
|
-
max: Math.max(...
|
|
552
|
-
min: Math.min(...
|
|
553
|
-
maxSeries: Math.max(...
|
|
554
|
-
}, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), b = u.min < 0 ? Math.abs(u.min) : 0,
|
|
555
|
-
y: t.bottom - t.height * ((
|
|
553
|
+
max: Math.max(...l.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
|
|
554
|
+
min: Math.min(...l.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
|
|
555
|
+
maxSeries: Math.max(...l.map((d) => d.values.length))
|
|
556
|
+
}, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), b = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((d) => ({
|
|
557
|
+
y: t.bottom - t.height * ((d + b) / (p.max + b)),
|
|
556
558
|
x: t.left - 8,
|
|
557
|
-
value:
|
|
558
|
-
})), oe =
|
|
559
|
-
...
|
|
560
|
-
|
|
559
|
+
value: d
|
|
560
|
+
})), oe = l.map((d, i) => ({
|
|
561
|
+
...d,
|
|
562
|
+
shape: "circle",
|
|
563
|
+
coordinates: d.values.map((g, E) => ({
|
|
561
564
|
x: t.left + F * (E + 1) - F / 2,
|
|
562
565
|
y: t.bottom - (g + b) / (p.max + b) * t.height,
|
|
563
566
|
value: g
|
|
564
567
|
}))
|
|
565
|
-
})).map((
|
|
568
|
+
})).map((d) => {
|
|
566
569
|
let i = [];
|
|
567
|
-
return
|
|
570
|
+
return d.coordinates.forEach((g) => {
|
|
568
571
|
i.push(`${g.x},${g.y} `);
|
|
569
572
|
}), {
|
|
570
|
-
...
|
|
573
|
+
...d,
|
|
571
574
|
linePath: i.join(" ")
|
|
572
575
|
};
|
|
573
576
|
});
|
|
574
|
-
function Z(
|
|
575
|
-
return
|
|
577
|
+
function Z(d) {
|
|
578
|
+
return l.map((i) => ({
|
|
576
579
|
...i,
|
|
577
|
-
value: i.values[
|
|
578
|
-
absoluteIndex: i.absoluteIndices[
|
|
579
|
-
})).filter((i) => !
|
|
580
|
+
value: i.values[d],
|
|
581
|
+
absoluteIndex: i.absoluteIndices[d]
|
|
582
|
+
})).filter((i) => !_.value.includes(i.id));
|
|
580
583
|
}
|
|
581
|
-
function
|
|
582
|
-
te.value =
|
|
583
|
-
const i = Z(
|
|
584
|
-
we.value = { datapoint: i, seriesIndex:
|
|
584
|
+
function X(d) {
|
|
585
|
+
te.value = d, le.value = d;
|
|
586
|
+
const i = Z(d);
|
|
587
|
+
we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset: l };
|
|
585
588
|
const g = e.value.tooltipCustomFormat;
|
|
586
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex:
|
|
589
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: d + y.value.start }), je(g) && rt(() => g({
|
|
587
590
|
datapoint: i,
|
|
588
|
-
seriesIndex:
|
|
589
|
-
series:
|
|
591
|
+
seriesIndex: d,
|
|
592
|
+
series: l,
|
|
590
593
|
config: e.value
|
|
591
594
|
})))
|
|
592
595
|
fe.value = g({
|
|
593
596
|
datapoint: i,
|
|
594
|
-
seriesIndex:
|
|
595
|
-
series:
|
|
597
|
+
seriesIndex: d,
|
|
598
|
+
series: l,
|
|
596
599
|
config: e.value
|
|
597
600
|
});
|
|
598
601
|
else {
|
|
599
602
|
let E = "";
|
|
600
|
-
Q.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[i[0].absoluteIndex].text}</div>`), i.forEach((
|
|
603
|
+
Q.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[i[0].absoluteIndex].text}</div>`), i.forEach((N, H) => {
|
|
601
604
|
E += `
|
|
602
605
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
603
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${
|
|
604
|
-
<span>${
|
|
606
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${N.color}"/></svg>
|
|
607
|
+
<span>${N.name}:</span>
|
|
605
608
|
<b>${ie(
|
|
606
609
|
e.value.formatter,
|
|
607
|
-
|
|
610
|
+
N.value,
|
|
608
611
|
G({
|
|
609
612
|
p: e.value.valuePrefix,
|
|
610
|
-
v:
|
|
613
|
+
v: N.value,
|
|
611
614
|
s: e.value.valueSuffix,
|
|
612
615
|
r: e.value.dataLabelRoundingValue
|
|
613
616
|
}),
|
|
614
|
-
{ datapoint:
|
|
617
|
+
{ datapoint: N, seriesIndex: H }
|
|
615
618
|
)}
|
|
616
619
|
</b>
|
|
617
620
|
</div>
|
|
@@ -620,28 +623,28 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
620
623
|
}
|
|
621
624
|
ce.value = !0;
|
|
622
625
|
}
|
|
623
|
-
function f(
|
|
624
|
-
const i = Z(
|
|
625
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex:
|
|
626
|
+
function f(d) {
|
|
627
|
+
const i = Z(d);
|
|
628
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: d + y.value.start }), te.value = null, le.value = null, ce.value = !1;
|
|
626
629
|
}
|
|
627
|
-
function
|
|
628
|
-
const i = Z(
|
|
629
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: i, seriesIndex:
|
|
630
|
+
function z(d) {
|
|
631
|
+
const i = Z(d);
|
|
632
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: i, seriesIndex: d + y.value.start }), pe("selectDatapoint", i);
|
|
630
633
|
}
|
|
631
634
|
return {
|
|
632
|
-
absoluteZero:
|
|
633
|
-
dataset: oe.filter((
|
|
635
|
+
absoluteZero: P,
|
|
636
|
+
dataset: oe.filter((d) => !_.value.includes(d.id)),
|
|
634
637
|
legend: oe,
|
|
635
638
|
drawingArea: t,
|
|
636
639
|
extremes: u,
|
|
637
640
|
slotSize: F,
|
|
638
641
|
yLabels: K,
|
|
639
|
-
useTooltip:
|
|
642
|
+
useTooltip: X,
|
|
640
643
|
killTooltip: f,
|
|
641
|
-
selectDatapoint:
|
|
644
|
+
selectDatapoint: z
|
|
642
645
|
};
|
|
643
|
-
}),
|
|
644
|
-
if (
|
|
646
|
+
}), v = R(() => {
|
|
647
|
+
if ($.value !== A.BAR) return null;
|
|
645
648
|
const a = {
|
|
646
649
|
height: S.value.height,
|
|
647
650
|
width: S.value.width
|
|
@@ -659,8 +662,8 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
659
662
|
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
|
|
660
663
|
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
|
|
661
664
|
};
|
|
662
|
-
let
|
|
663
|
-
re(k.value.dataset) && (
|
|
665
|
+
let l = [];
|
|
666
|
+
re(k.value.dataset) && (l = [
|
|
664
667
|
{
|
|
665
668
|
values: k.value.dataset.slice(y.value.start, y.value.end),
|
|
666
669
|
absoluteValues: k.value.dataset,
|
|
@@ -669,79 +672,80 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
669
672
|
color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
|
|
670
673
|
id: "bar_0"
|
|
671
674
|
}
|
|
672
|
-
]), Ge(k.value.dataset) && (
|
|
675
|
+
]), Ge(k.value.dataset) && (l = k.value.dataset.map((i, g) => ({
|
|
673
676
|
...i,
|
|
674
677
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
675
678
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${g}`,
|
|
676
679
|
id: `bar_${g}`
|
|
677
680
|
})).map((i, g) => ({
|
|
678
681
|
...i,
|
|
679
|
-
color: i.COLOR ?
|
|
682
|
+
color: i.COLOR ? it(i.COLOR) : _e.value[g + e.value.paletteStartIndex] || J[g + e.value.paletteStartIndex] || J[(g + e.value.paletteStartIndex) % J.length],
|
|
680
683
|
values: i.values.slice(y.value.start, y.value.end),
|
|
681
684
|
absoluteValues: i.values,
|
|
682
|
-
absoluteIndices: i.values.map((E,
|
|
685
|
+
absoluteIndices: i.values.map((E, N) => N).slice(y.value.start, y.value.end)
|
|
683
686
|
})));
|
|
684
687
|
const u = {
|
|
685
|
-
max: Math.max(...
|
|
686
|
-
min: Math.min(...
|
|
687
|
-
maxSeries: Math.max(...
|
|
688
|
-
}, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0,
|
|
688
|
+
max: Math.max(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
|
|
689
|
+
min: Math.min(...l.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
|
|
690
|
+
maxSeries: Math.max(...l.filter((i) => !_.value.includes(i.id)).map((i) => i.values.length))
|
|
691
|
+
}, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, P = t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((i) => ({
|
|
689
692
|
y: t.bottom - t.height * ((i + b) / (p.max + b)),
|
|
690
693
|
x: t.left - 8,
|
|
691
694
|
value: i
|
|
692
|
-
})), oe =
|
|
695
|
+
})), oe = l.map((i, g) => ({
|
|
693
696
|
...i,
|
|
694
|
-
|
|
695
|
-
|
|
697
|
+
shape: "square",
|
|
698
|
+
coordinates: i.values.map((E, N) => {
|
|
699
|
+
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = b / (u.max + b) * t.height, $e = F / l.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / l.filter((he) => !_.value.includes(he.id)).length;
|
|
696
700
|
return {
|
|
697
|
-
x: t.left + F *
|
|
698
|
-
y: E > 0 ? t.bottom - H :
|
|
699
|
-
height: E > 0 ? H -
|
|
701
|
+
x: t.left + F * N + $e * g + e.value.barGap / 2,
|
|
702
|
+
y: E > 0 ? t.bottom - H : P,
|
|
703
|
+
height: E > 0 ? H - lt : ee,
|
|
700
704
|
value: E,
|
|
701
|
-
width:
|
|
705
|
+
width: $e
|
|
702
706
|
};
|
|
703
707
|
})
|
|
704
|
-
})), Z =
|
|
708
|
+
})), Z = l.filter((i) => !_.value.includes(i.id)).map((i, g) => ({
|
|
705
709
|
...i,
|
|
706
|
-
coordinates: i.values.map((E,
|
|
707
|
-
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height,
|
|
710
|
+
coordinates: i.values.map((E, N) => {
|
|
711
|
+
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height, lt = b / (u.max + b) * t.height, $e = F / l.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / l.filter((he) => !_.value.includes(he.id)).length;
|
|
708
712
|
return {
|
|
709
|
-
x: t.left + F *
|
|
710
|
-
y: E > 0 ? t.bottom - H :
|
|
711
|
-
height: E > 0 ? H -
|
|
713
|
+
x: t.left + F * N + $e * g + e.value.barGap / 2,
|
|
714
|
+
y: E > 0 ? t.bottom - H : P,
|
|
715
|
+
height: E > 0 ? H - lt : ee,
|
|
712
716
|
value: E,
|
|
713
|
-
width:
|
|
717
|
+
width: $e
|
|
714
718
|
};
|
|
715
719
|
})
|
|
716
720
|
}));
|
|
717
|
-
function
|
|
718
|
-
return
|
|
721
|
+
function X(i) {
|
|
722
|
+
return l.map((g) => ({
|
|
719
723
|
...g,
|
|
720
724
|
value: g.values[i],
|
|
721
725
|
absoluteIndex: g.absoluteIndices[i]
|
|
722
|
-
})).filter((g) => !
|
|
726
|
+
})).filter((g) => !_.value.includes(g.id));
|
|
723
727
|
}
|
|
724
728
|
function f(i) {
|
|
725
729
|
te.value = i, le.value = i;
|
|
726
|
-
const g =
|
|
727
|
-
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset:
|
|
730
|
+
const g = X(i);
|
|
731
|
+
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
|
|
728
732
|
const E = e.value.tooltipCustomFormat;
|
|
729
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), je(E) &&
|
|
733
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), je(E) && rt(() => E({
|
|
730
734
|
datapoint: g,
|
|
731
735
|
seriesIndex: i,
|
|
732
|
-
series:
|
|
736
|
+
series: l,
|
|
733
737
|
config: e.value
|
|
734
738
|
})))
|
|
735
739
|
fe.value = E({
|
|
736
740
|
point: g,
|
|
737
741
|
seriesIndex: i,
|
|
738
|
-
series:
|
|
742
|
+
series: l,
|
|
739
743
|
config: e.value
|
|
740
744
|
});
|
|
741
745
|
else {
|
|
742
|
-
let
|
|
743
|
-
Q.value[g[0].absoluteIndex] && (
|
|
744
|
-
|
|
746
|
+
let N = "";
|
|
747
|
+
Q.value[g[0].absoluteIndex] && (N += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[g[0].absoluteIndex].text}</div>`), g.forEach((H, ee) => {
|
|
748
|
+
N += `
|
|
745
749
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
746
750
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${H.color}"/></svg>
|
|
747
751
|
<span>${H.name}:</span>
|
|
@@ -759,21 +763,21 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
759
763
|
</b>
|
|
760
764
|
</div>
|
|
761
765
|
`;
|
|
762
|
-
}), fe.value =
|
|
766
|
+
}), fe.value = N;
|
|
763
767
|
}
|
|
764
768
|
ce.value = !0;
|
|
765
769
|
}
|
|
766
|
-
function
|
|
767
|
-
const g =
|
|
770
|
+
function z(i) {
|
|
771
|
+
const g = X(i);
|
|
768
772
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: g, seriesIndex: i + y.value.start }), ce.value = !1, te.value = null, le.value = null;
|
|
769
773
|
}
|
|
770
|
-
function
|
|
771
|
-
const g =
|
|
774
|
+
function d(i) {
|
|
775
|
+
const g = X(i);
|
|
772
776
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: g, seriesIndex: i + y.value.start }), pe("selectDatapoint", g);
|
|
773
777
|
}
|
|
774
778
|
return {
|
|
775
|
-
absoluteZero:
|
|
776
|
-
dataset: Z.filter((i) => !
|
|
779
|
+
absoluteZero: P,
|
|
780
|
+
dataset: Z.filter((i) => !_.value.includes(i.id)),
|
|
777
781
|
absoluteDataset: Z,
|
|
778
782
|
legend: oe,
|
|
779
783
|
drawingArea: t,
|
|
@@ -781,24 +785,24 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
781
785
|
slotSize: F,
|
|
782
786
|
yLabels: K,
|
|
783
787
|
useTooltip: f,
|
|
784
|
-
killTooltip:
|
|
785
|
-
selectDatapoint:
|
|
788
|
+
killTooltip: z,
|
|
789
|
+
selectDatapoint: d
|
|
786
790
|
};
|
|
787
791
|
});
|
|
788
|
-
function
|
|
792
|
+
function oa(a) {
|
|
789
793
|
if (!a) return;
|
|
790
794
|
const r = a.getTotalLength();
|
|
791
795
|
a.style.transition = "none", a.style.strokeDasharray = `${r}`, a.style.strokeDashoffset = `${r}`;
|
|
792
796
|
}
|
|
793
797
|
function It(a, { fromOpacity: r = "0", fromScale: t = "0.85" } = {}) {
|
|
794
|
-
a.forEach((
|
|
795
|
-
|
|
798
|
+
a.forEach((l) => {
|
|
799
|
+
l.style.animation = "none", l.style.transition = "none", l.style.opacity = r, l.style.transform = `scale(${t})`, l.style.transformBox = "fill-box", l.style.transformOrigin = "50% 50%";
|
|
796
800
|
});
|
|
797
801
|
}
|
|
798
|
-
function
|
|
802
|
+
function na(a) {
|
|
799
803
|
return a.cx?.baseVal?.value ?? parseFloat(a.getAttribute("cx"));
|
|
800
804
|
}
|
|
801
|
-
function
|
|
805
|
+
function ia(a) {
|
|
802
806
|
const r = a.getAttribute("x");
|
|
803
807
|
if (r != null) return parseFloat(r);
|
|
804
808
|
const t = a.getCTM?.();
|
|
@@ -806,102 +810,102 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
806
810
|
}
|
|
807
811
|
function Pt(a, r) {
|
|
808
812
|
if (!a.length) return [];
|
|
809
|
-
const t = a.map((
|
|
810
|
-
t.sort((
|
|
811
|
-
let
|
|
812
|
-
for (let
|
|
813
|
-
const F = t[
|
|
814
|
-
F > 0 && F <
|
|
813
|
+
const t = a.map((P) => ({ el: P, x: r(P) })).filter((P) => Number.isFinite(P.x));
|
|
814
|
+
t.sort((P, F) => P.x - F.x);
|
|
815
|
+
let l = 1 / 0;
|
|
816
|
+
for (let P = 1; P < t.length; P++) {
|
|
817
|
+
const F = t[P].x - t[P - 1].x;
|
|
818
|
+
F > 0 && F < l && (l = F);
|
|
815
819
|
}
|
|
816
|
-
const u = (
|
|
820
|
+
const u = (l === 1 / 0 ? 1 : l) / 2, p = [];
|
|
817
821
|
let b = { x: t[0].x, items: [t[0].el] };
|
|
818
|
-
for (let
|
|
819
|
-
const { x: F, el: K } = t[
|
|
822
|
+
for (let P = 1; P < t.length; P++) {
|
|
823
|
+
const { x: F, el: K } = t[P];
|
|
820
824
|
Math.abs(F - b.x) <= u ? b.items.push(K) : (p.push(b), b = { x: F, items: [K] });
|
|
821
825
|
}
|
|
822
826
|
return p.push(b), p;
|
|
823
827
|
}
|
|
824
|
-
function
|
|
828
|
+
function ua({
|
|
825
829
|
pathDuration: a,
|
|
826
830
|
pathEasing: r = "ease-in-out",
|
|
827
831
|
pointDuration: t,
|
|
828
|
-
labelDuration:
|
|
832
|
+
labelDuration: l,
|
|
829
833
|
pointDelay: u = 0,
|
|
830
834
|
labelDelay: p = 0,
|
|
831
835
|
pointStep: b = 0,
|
|
832
|
-
labelStep:
|
|
836
|
+
labelStep: P = 0,
|
|
833
837
|
intraSeriesStep: F = 0
|
|
834
838
|
} = {}) {
|
|
835
|
-
const K = Array.isArray(Ae
|
|
836
|
-
Z.forEach(
|
|
837
|
-
const
|
|
839
|
+
const K = Array.isArray(Ae?.value) ? Ae.value : [Ae?.value].filter(Boolean), oe = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), Z = [...K, ...oe].filter(Boolean), X = M?.value || null, f = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-plot")) : [], z = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
840
|
+
Z.forEach(oa), It(f, { fromOpacity: "0", fromScale: "0.75" }), It(z, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), z.forEach((g) => g.classList.remove("quick-animation")), X && X.offsetWidth;
|
|
841
|
+
const d = f.length ? Pt(f, na) : [], i = z.length ? Pt(z, ia) : [];
|
|
838
842
|
requestAnimationFrame(() => {
|
|
839
843
|
requestAnimationFrame(() => {
|
|
840
844
|
Z.forEach((g) => {
|
|
841
845
|
g.style.transition = `stroke-dashoffset ${a}ms ${r}`, g.style.strokeDashoffset = "0";
|
|
842
|
-
}),
|
|
843
|
-
g.items.forEach((
|
|
846
|
+
}), d.forEach((g, E) => {
|
|
847
|
+
g.items.forEach((N, H) => {
|
|
844
848
|
const ee = u + E * b + H * F;
|
|
845
|
-
|
|
849
|
+
N.style.transition = `opacity ${t}ms ease-out ${ee}ms, transform ${t}ms ease-out ${ee}ms`, N.style.opacity = "1", N.style.transform = "scale(1)";
|
|
846
850
|
});
|
|
847
851
|
}), i.forEach((g, E) => {
|
|
848
|
-
g.items.forEach((
|
|
849
|
-
const ee = p + E *
|
|
850
|
-
|
|
852
|
+
g.items.forEach((N, H) => {
|
|
853
|
+
const ee = p + E * P + H * F;
|
|
854
|
+
N.style.transition = `opacity ${l}ms ease-out ${ee}ms, transform ${l}ms ease-out ${ee}ms`, N.style.opacity = "1", N.style.transform = "scale(1)";
|
|
851
855
|
});
|
|
852
856
|
});
|
|
853
857
|
});
|
|
854
858
|
});
|
|
855
859
|
}
|
|
856
|
-
const
|
|
857
|
-
if (
|
|
860
|
+
const ra = R(() => {
|
|
861
|
+
if ($.value === A.LINE)
|
|
858
862
|
return c.value.legend.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
|
|
859
863
|
...a,
|
|
860
|
-
isVisible: !
|
|
864
|
+
isVisible: !_.value.includes(a.id),
|
|
861
865
|
type: "line",
|
|
862
866
|
series: a.absoluteValues
|
|
863
867
|
}));
|
|
864
|
-
if (
|
|
865
|
-
return
|
|
868
|
+
if ($.value === A.BAR)
|
|
869
|
+
return v.value.absoluteDataset.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
|
|
866
870
|
...a,
|
|
867
|
-
isVisible: !
|
|
871
|
+
isVisible: !_.value.includes(a.id),
|
|
868
872
|
type: "bar",
|
|
869
873
|
series: a.absoluteValues
|
|
870
874
|
}));
|
|
871
|
-
}), Q =
|
|
875
|
+
}), Q = R(() => Ba({
|
|
872
876
|
values: e.value.xyPeriods,
|
|
873
877
|
maxDatapoints: k.value.maxSeriesLength,
|
|
874
878
|
formatter: e.value.datetimeFormatter,
|
|
875
879
|
start: y.value.start,
|
|
876
880
|
end: y.value.end
|
|
877
|
-
})), ke =
|
|
881
|
+
})), ke = R(() => {
|
|
878
882
|
const a = e.value.xyPeriodsModulo;
|
|
879
883
|
return e.value.xyPeriods.length ? Math.min(a, [...new Set(Q.value.map((r) => r.text))].length) : a;
|
|
880
884
|
}), qe = w(!1);
|
|
881
|
-
function
|
|
882
|
-
qe.value = a,
|
|
885
|
+
function Ot(a) {
|
|
886
|
+
qe.value = a, ht.value += 1;
|
|
883
887
|
}
|
|
884
888
|
function Ft() {
|
|
885
889
|
ye.value.showTooltip = !ye.value.showTooltip;
|
|
886
890
|
}
|
|
887
891
|
const He = w(!1);
|
|
888
|
-
function
|
|
892
|
+
function at() {
|
|
889
893
|
He.value = !He.value;
|
|
890
894
|
}
|
|
891
|
-
async function
|
|
895
|
+
async function sa({ scale: a = 2 } = {}) {
|
|
892
896
|
if (!M.value) return;
|
|
893
|
-
const { width: r, height: t } = M.value.getBoundingClientRect(),
|
|
897
|
+
const { width: r, height: t } = M.value.getBoundingClientRect(), l = r / t, { imageUri: u, base64: p } = await Va({ domElement: M.value, base64: !0, img: !0, scale: a });
|
|
894
898
|
return {
|
|
895
899
|
imageUri: u,
|
|
896
900
|
base64: p,
|
|
897
901
|
title: e.value.title,
|
|
898
902
|
width: r,
|
|
899
903
|
height: t,
|
|
900
|
-
aspectRatio:
|
|
904
|
+
aspectRatio: l
|
|
901
905
|
};
|
|
902
906
|
}
|
|
903
|
-
const
|
|
904
|
-
|
|
907
|
+
const va = R(() => S.value.width), da = R(() => S.value.height);
|
|
908
|
+
Ua({
|
|
905
909
|
timeLabelsEls: ae,
|
|
906
910
|
timeLabels: Q,
|
|
907
911
|
slicer: y,
|
|
@@ -910,43 +914,75 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
910
914
|
autoRotatePath: ["xyPeriodLabelsAutoRotate", "enable"],
|
|
911
915
|
isAutoSize: !1,
|
|
912
916
|
rotation: e.value.xyPeriodLabelsAutoRotate.angle,
|
|
913
|
-
height:
|
|
914
|
-
width:
|
|
915
|
-
})
|
|
916
|
-
|
|
917
|
+
height: da.value,
|
|
918
|
+
width: va.value
|
|
919
|
+
});
|
|
920
|
+
const ca = R(() => e.value.backgroundColor), fa = R(() => $.value === A.DONUT ? I.value.legend : $.value === A.LINE ? c.value.legend : v.value.legend), ha = R(() => ({
|
|
921
|
+
show: e.value.showLegend,
|
|
922
|
+
bold: !1,
|
|
923
|
+
backgroundColor: e.value.backgroundColor,
|
|
924
|
+
color: e.value.color,
|
|
925
|
+
fontSize: e.value.legendFontSize,
|
|
926
|
+
position: e.value.legendPosition
|
|
927
|
+
})), ma = R(() => ({
|
|
928
|
+
text: e.value.title,
|
|
929
|
+
color: e.value.color,
|
|
930
|
+
fontSize: e.value.titleFontSize,
|
|
931
|
+
bold: e.value.titleBold,
|
|
932
|
+
textAlign: e.value.titleTextAlign,
|
|
933
|
+
subtitle: {
|
|
934
|
+
text: ""
|
|
935
|
+
}
|
|
936
|
+
})), { exportSvg: ga, getSvg: pa } = Na({
|
|
937
|
+
svg: Qe,
|
|
938
|
+
title: ma,
|
|
939
|
+
legend: ha,
|
|
940
|
+
legendItems: fa,
|
|
941
|
+
backgroundColor: ca
|
|
942
|
+
});
|
|
943
|
+
async function Rt({ isCb: a }) {
|
|
944
|
+
if (a) {
|
|
945
|
+
const { blob: r, url: t, text: l, dataUrl: u } = await pa();
|
|
946
|
+
e.value.userOptionsCallbacks.svg({ blob: r, url: t, text: l, dataUrl: u });
|
|
947
|
+
} else
|
|
948
|
+
ga();
|
|
949
|
+
}
|
|
950
|
+
return O({
|
|
951
|
+
getImage: sa,
|
|
917
952
|
generatePdf: bt,
|
|
918
953
|
generateImage: St,
|
|
954
|
+
generateSvg: Rt,
|
|
919
955
|
toggleTooltip: Ft,
|
|
920
|
-
toggleAnnotator:
|
|
921
|
-
toggleFullscreen:
|
|
922
|
-
}), (a, r) =>
|
|
956
|
+
toggleAnnotator: at,
|
|
957
|
+
toggleFullscreen: Ot
|
|
958
|
+
}), (a, r) => Yt.value ? (o(), n("div", {
|
|
923
959
|
key: 0,
|
|
924
|
-
id: `${
|
|
960
|
+
id: `${$.value}_${Y.value}`,
|
|
925
961
|
ref_key: "quickChart",
|
|
926
962
|
ref: M,
|
|
927
|
-
class: de({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": qe.value }),
|
|
928
|
-
style:
|
|
963
|
+
class: de({ "vue-data-ui-component": !0, "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": qe.value }),
|
|
964
|
+
style: B(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
929
965
|
onMouseenter: r[2] || (r[2] = () => kt(!0)),
|
|
930
966
|
onMouseleave: r[3] || (r[3] = () => kt(!1))
|
|
931
967
|
}, [
|
|
932
|
-
e.value.userOptionsButtons.annotator ? (
|
|
968
|
+
e.value.userOptionsButtons.annotator ? (o(), Ie(s(se), {
|
|
933
969
|
key: 0,
|
|
934
|
-
svgRef: s(
|
|
970
|
+
svgRef: s(Qe),
|
|
935
971
|
backgroundColor: e.value.backgroundColor,
|
|
936
972
|
color: e.value.color,
|
|
937
973
|
active: He.value,
|
|
938
|
-
onClose:
|
|
974
|
+
onClose: at
|
|
939
975
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
940
|
-
|
|
976
|
+
Zt.value ? (o(), n("div", {
|
|
941
977
|
key: 1,
|
|
942
978
|
ref_key: "noTitle",
|
|
943
|
-
ref:
|
|
979
|
+
ref: ft,
|
|
944
980
|
class: "vue-data-ui-no-title-space",
|
|
945
981
|
style: "height:36px; width: 100%;background:transparent"
|
|
946
982
|
}, null, 512)) : m("", !0),
|
|
947
|
-
e.value.showUserOptions && (xt.value || Ne.value) ? (
|
|
983
|
+
e.value.showUserOptions && (xt.value || Ne.value) ? (o(), Ie(s(st), {
|
|
948
984
|
ref: "details",
|
|
949
|
-
key: `user_option_${
|
|
985
|
+
key: `user_option_${ht.value}`,
|
|
950
986
|
backgroundColor: e.value.backgroundColor,
|
|
951
987
|
color: e.value.color,
|
|
952
988
|
isPrinting: s(Be),
|
|
@@ -955,6 +991,7 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
955
991
|
hasTooltip: e.value.userOptionsButtons.tooltip && e.value.showTooltip,
|
|
956
992
|
hasPdf: e.value.userOptionsButtons.pdf,
|
|
957
993
|
hasImg: e.value.userOptionsButtons.img,
|
|
994
|
+
hasSvg: e.value.userOptionsButtons.svg,
|
|
958
995
|
hasFullscreen: e.value.userOptionsButtons.fullscreen,
|
|
959
996
|
hasXls: !1,
|
|
960
997
|
isTooltip: ye.value.showTooltip,
|
|
@@ -966,19 +1003,20 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
966
1003
|
isAnnotation: He.value,
|
|
967
1004
|
callbacks: e.value.userOptionsCallbacks,
|
|
968
1005
|
printScale: e.value.userOptionsPrint.scale,
|
|
969
|
-
onToggleFullscreen:
|
|
1006
|
+
onToggleFullscreen: Ot,
|
|
970
1007
|
onGeneratePdf: s(bt),
|
|
971
1008
|
onGenerateImage: s(St),
|
|
1009
|
+
onGenerateSvg: Rt,
|
|
972
1010
|
onToggleTooltip: Ft,
|
|
973
|
-
onToggleAnnotator:
|
|
974
|
-
style:
|
|
1011
|
+
onToggleAnnotator: at,
|
|
1012
|
+
style: B({
|
|
975
1013
|
visibility: xt.value ? Ne.value ? "visible" : "hidden" : "visible"
|
|
976
1014
|
})
|
|
977
|
-
},
|
|
1015
|
+
}, ba({ _: 2 }, [
|
|
978
1016
|
a.$slots.menuIcon ? {
|
|
979
1017
|
name: "menuIcon",
|
|
980
|
-
fn: ne(({ isOpen: t, color:
|
|
981
|
-
W(a.$slots, "menuIcon", me(ge({ isOpen: t, color:
|
|
1018
|
+
fn: ne(({ isOpen: t, color: l }) => [
|
|
1019
|
+
W(a.$slots, "menuIcon", me(ge({ isOpen: t, color: l })), void 0, !0)
|
|
982
1020
|
]),
|
|
983
1021
|
key: "0"
|
|
984
1022
|
} : void 0,
|
|
@@ -1005,51 +1043,51 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1005
1043
|
} : void 0,
|
|
1006
1044
|
a.$slots.optionFullscreen ? {
|
|
1007
1045
|
name: "optionFullscreen",
|
|
1008
|
-
fn: ne(({ toggleFullscreen: t, isFullscreen:
|
|
1009
|
-
W(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen:
|
|
1046
|
+
fn: ne(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
1047
|
+
W(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
1010
1048
|
]),
|
|
1011
1049
|
key: "4"
|
|
1012
1050
|
} : void 0,
|
|
1013
1051
|
a.$slots.optionAnnotator ? {
|
|
1014
1052
|
name: "optionAnnotator",
|
|
1015
|
-
fn: ne(({ toggleAnnotator: t, isAnnotator:
|
|
1016
|
-
W(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator:
|
|
1053
|
+
fn: ne(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
1054
|
+
W(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
1017
1055
|
]),
|
|
1018
1056
|
key: "5"
|
|
1019
1057
|
} : void 0
|
|
1020
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
1021
|
-
e.value.title ? (
|
|
1058
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
1059
|
+
e.value.title ? (o(), n("div", {
|
|
1022
1060
|
key: 3,
|
|
1023
1061
|
ref_key: "quickChartTitle",
|
|
1024
|
-
ref:
|
|
1062
|
+
ref: Oe,
|
|
1025
1063
|
class: "vue-ui-quick-chart-title",
|
|
1026
|
-
style:
|
|
1027
|
-
},
|
|
1028
|
-
|
|
1064
|
+
style: B(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
1065
|
+
}, U(e.value.title), 5)) : m("", !0),
|
|
1066
|
+
C("div", {
|
|
1029
1067
|
id: `legend-top-${Y.value}`
|
|
1030
|
-
}, null, 8,
|
|
1031
|
-
|
|
1068
|
+
}, null, 8, Ka),
|
|
1069
|
+
$.value ? (o(), n("svg", {
|
|
1032
1070
|
key: 4,
|
|
1033
1071
|
ref_key: "svgRef",
|
|
1034
|
-
ref:
|
|
1035
|
-
xmlns: s(
|
|
1036
|
-
viewBox:
|
|
1037
|
-
style:
|
|
1072
|
+
ref: Qe,
|
|
1073
|
+
xmlns: s(Ta),
|
|
1074
|
+
viewBox: Jt.value,
|
|
1075
|
+
style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
1038
1076
|
}, [
|
|
1039
|
-
be(s(
|
|
1040
|
-
a.$slots["chart-background"] &&
|
|
1077
|
+
be(s(j)),
|
|
1078
|
+
a.$slots["chart-background"] && $.value === A.BAR ? (o(), n("foreignObject", {
|
|
1041
1079
|
key: 0,
|
|
1042
|
-
x:
|
|
1043
|
-
y:
|
|
1044
|
-
width:
|
|
1045
|
-
height:
|
|
1080
|
+
x: v.value.drawingArea.left,
|
|
1081
|
+
y: v.value.drawingArea.top,
|
|
1082
|
+
width: v.value.drawingArea.width,
|
|
1083
|
+
height: v.value.drawingArea.height,
|
|
1046
1084
|
style: {
|
|
1047
1085
|
pointerEvents: "none"
|
|
1048
1086
|
}
|
|
1049
1087
|
}, [
|
|
1050
1088
|
W(a.$slots, "chart-background", {}, void 0, !0)
|
|
1051
|
-
], 8,
|
|
1052
|
-
a.$slots["chart-background"] &&
|
|
1089
|
+
], 8, tl)) : m("", !0),
|
|
1090
|
+
a.$slots["chart-background"] && $.value === A.LINE ? (o(), n("foreignObject", {
|
|
1053
1091
|
key: 1,
|
|
1054
1092
|
x: c.value.drawingArea.left,
|
|
1055
1093
|
y: c.value.drawingArea.top,
|
|
@@ -1060,8 +1098,8 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1060
1098
|
}
|
|
1061
1099
|
}, [
|
|
1062
1100
|
W(a.$slots, "chart-background", {}, void 0, !0)
|
|
1063
|
-
], 8,
|
|
1064
|
-
a.$slots["chart-background"] &&
|
|
1101
|
+
], 8, al)) : m("", !0),
|
|
1102
|
+
a.$slots["chart-background"] && $.value === A.DONUT ? (o(), n("foreignObject", {
|
|
1065
1103
|
key: 2,
|
|
1066
1104
|
x: 0,
|
|
1067
1105
|
y: 0,
|
|
@@ -1072,97 +1110,97 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1072
1110
|
}
|
|
1073
1111
|
}, [
|
|
1074
1112
|
W(a.$slots, "chart-background", {}, void 0, !0)
|
|
1075
|
-
], 8,
|
|
1076
|
-
|
|
1077
|
-
|
|
1113
|
+
], 8, ll)) : m("", !0),
|
|
1114
|
+
C("defs", null, [
|
|
1115
|
+
C("filter", {
|
|
1078
1116
|
id: `blur_${Y.value}`,
|
|
1079
1117
|
x: "-50%",
|
|
1080
1118
|
y: "-50%",
|
|
1081
1119
|
width: "200%",
|
|
1082
1120
|
height: "200%"
|
|
1083
1121
|
}, [
|
|
1084
|
-
|
|
1122
|
+
C("feGaussianBlur", {
|
|
1085
1123
|
in: "SourceGraphic",
|
|
1086
1124
|
stdDeviation: 2,
|
|
1087
1125
|
id: `blur_std_${Y.value}`
|
|
1088
|
-
}, null, 8,
|
|
1089
|
-
r[4] || (r[4] =
|
|
1126
|
+
}, null, 8, nl),
|
|
1127
|
+
r[4] || (r[4] = C("feColorMatrix", {
|
|
1090
1128
|
type: "saturate",
|
|
1091
1129
|
values: "0"
|
|
1092
1130
|
}, null, -1))
|
|
1093
|
-
], 8,
|
|
1094
|
-
|
|
1131
|
+
], 8, ol),
|
|
1132
|
+
C("filter", {
|
|
1095
1133
|
id: `shadow_${Y.value}`,
|
|
1096
1134
|
"color-interpolation-filters": "sRGB"
|
|
1097
1135
|
}, [
|
|
1098
|
-
|
|
1136
|
+
C("feDropShadow", {
|
|
1099
1137
|
dx: "0",
|
|
1100
1138
|
dy: "0",
|
|
1101
1139
|
stdDeviation: "10",
|
|
1102
1140
|
"flood-opacity": "0.5",
|
|
1103
1141
|
"flood-color": e.value.donutShadowColor
|
|
1104
|
-
}, null, 8,
|
|
1105
|
-
], 8,
|
|
1142
|
+
}, null, 8, ul)
|
|
1143
|
+
], 8, il)
|
|
1106
1144
|
]),
|
|
1107
|
-
|
|
1108
|
-
e.value.showDataLabels ? (
|
|
1109
|
-
(
|
|
1110
|
-
|
|
1145
|
+
$.value === A.DONUT ? (o(), n(x, { key: 3 }, [
|
|
1146
|
+
e.value.showDataLabels ? (o(), n("g", rl, [
|
|
1147
|
+
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n(x, null, [
|
|
1148
|
+
I.value.isArcBigEnough(t) ? (o(), n("path", {
|
|
1111
1149
|
key: 0,
|
|
1112
|
-
d: s(
|
|
1150
|
+
d: s(Ia)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * Ct.value, 12, e.value.donutCurvedMarkers),
|
|
1113
1151
|
stroke: t.color,
|
|
1114
1152
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
1115
1153
|
"stroke-linecap": "round",
|
|
1116
1154
|
"stroke-linejoin": "round",
|
|
1117
1155
|
fill: "none",
|
|
1118
|
-
filter:
|
|
1119
|
-
}, null, 8,
|
|
1156
|
+
filter: Ce(t.id)
|
|
1157
|
+
}, null, 8, sl)) : m("", !0)
|
|
1120
1158
|
], 64))), 256))
|
|
1121
1159
|
])) : m("", !0),
|
|
1122
|
-
|
|
1123
|
-
cx:
|
|
1124
|
-
cy:
|
|
1125
|
-
r:
|
|
1160
|
+
C("circle", {
|
|
1161
|
+
cx: I.value.cx,
|
|
1162
|
+
cy: I.value.cy,
|
|
1163
|
+
r: I.value.radius,
|
|
1126
1164
|
fill: e.value.backgroundColor,
|
|
1127
1165
|
filter: e.value.donutUseShadow ? `url(#shadow_${Y.value})` : ""
|
|
1128
|
-
}, null, 8,
|
|
1129
|
-
|
|
1130
|
-
(
|
|
1166
|
+
}, null, 8, vl),
|
|
1167
|
+
C("g", dl, [
|
|
1168
|
+
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
|
|
1131
1169
|
d: t.arcSlice,
|
|
1132
1170
|
fill: t.color,
|
|
1133
|
-
stroke:
|
|
1171
|
+
stroke: Me.value,
|
|
1134
1172
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1135
|
-
filter:
|
|
1136
|
-
}, null, 8,
|
|
1137
|
-
(
|
|
1173
|
+
filter: Ce(t.id)
|
|
1174
|
+
}, null, 8, cl))), 256)),
|
|
1175
|
+
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
|
|
1138
1176
|
d: t.arcSlice,
|
|
1139
1177
|
fill: "transparent",
|
|
1140
|
-
onMouseenter: (u) =>
|
|
1141
|
-
onMouseout: (u) =>
|
|
1142
|
-
onClick: (u) =>
|
|
1143
|
-
}, null, 40,
|
|
1178
|
+
onMouseenter: (u) => I.value.useTooltip({ datapoint: t, seriesIndex: l }),
|
|
1179
|
+
onMouseout: (u) => I.value.killTooltip({ datapoint: t, seriesIndex: l }),
|
|
1180
|
+
onClick: (u) => I.value.selectDatapoint({ datapoint: t, seriesIndex: l })
|
|
1181
|
+
}, null, 40, fl))), 256))
|
|
1144
1182
|
]),
|
|
1145
|
-
e.value.showDataLabels ? (
|
|
1146
|
-
(
|
|
1147
|
-
|
|
1183
|
+
e.value.showDataLabels ? (o(), n("g", hl, [
|
|
1184
|
+
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n(x, null, [
|
|
1185
|
+
I.value.isArcBigEnough(t) ? (o(), n("circle", {
|
|
1148
1186
|
key: 0,
|
|
1149
1187
|
cx: s(Pe)(t).x,
|
|
1150
|
-
cy: s(
|
|
1188
|
+
cy: s(ut)(t) - 3.7,
|
|
1151
1189
|
fill: t.color,
|
|
1152
1190
|
stroke: e.value.backgroundColor,
|
|
1153
1191
|
"stroke-width": 1,
|
|
1154
1192
|
r: 3,
|
|
1155
|
-
filter:
|
|
1156
|
-
}, null, 8,
|
|
1157
|
-
|
|
1193
|
+
filter: Ce(t.id)
|
|
1194
|
+
}, null, 8, ml)) : m("", !0),
|
|
1195
|
+
I.value.isArcBigEnough(t) ? (o(), n("text", {
|
|
1158
1196
|
key: 1,
|
|
1159
1197
|
"text-anchor": s(Pe)(t, !0, 20).anchor,
|
|
1160
1198
|
x: s(Pe)(t, !0).x,
|
|
1161
|
-
y: s(
|
|
1199
|
+
y: s(ut)(t),
|
|
1162
1200
|
fill: e.value.color,
|
|
1163
1201
|
"font-size": e.value.dataLabelFontSize,
|
|
1164
|
-
filter:
|
|
1165
|
-
},
|
|
1202
|
+
filter: Ce(t.id)
|
|
1203
|
+
}, U(I.value.displayArcPercentage(t, I.value.chart)) + " (" + U(s(ie)(
|
|
1166
1204
|
e.value.formatter,
|
|
1167
1205
|
t.value,
|
|
1168
1206
|
s(G)({
|
|
@@ -1171,45 +1209,45 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1171
1209
|
s: e.value.valueSuffix,
|
|
1172
1210
|
r: e.value.dataLabelRoundingValue
|
|
1173
1211
|
}),
|
|
1174
|
-
{ datapoint: t, seriesIndex:
|
|
1175
|
-
)) + ") ", 9,
|
|
1176
|
-
|
|
1212
|
+
{ datapoint: t, seriesIndex: l }
|
|
1213
|
+
)) + ") ", 9, gl)) : m("", !0),
|
|
1214
|
+
I.value.isArcBigEnough(t, !0, 20) ? (o(), n("text", {
|
|
1177
1215
|
key: 2,
|
|
1178
1216
|
"text-anchor": s(Pe)(t).anchor,
|
|
1179
1217
|
x: s(Pe)(t, !0).x,
|
|
1180
|
-
y: s(
|
|
1218
|
+
y: s(ut)(t) + e.value.dataLabelFontSize,
|
|
1181
1219
|
fill: e.value.color,
|
|
1182
1220
|
"font-size": e.value.dataLabelFontSize,
|
|
1183
|
-
filter:
|
|
1184
|
-
},
|
|
1221
|
+
filter: Ce(t.id)
|
|
1222
|
+
}, U(t.name), 9, pl)) : m("", !0)
|
|
1185
1223
|
], 64))), 256))
|
|
1186
1224
|
])) : m("", !0),
|
|
1187
|
-
e.value.donutShowTotal ? (
|
|
1188
|
-
|
|
1225
|
+
e.value.donutShowTotal ? (o(), n("g", yl, [
|
|
1226
|
+
C("text", {
|
|
1189
1227
|
"text-anchor": "middle",
|
|
1190
|
-
x:
|
|
1191
|
-
y:
|
|
1228
|
+
x: I.value.drawingArea.centerX,
|
|
1229
|
+
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
1192
1230
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1193
1231
|
fill: e.value.color
|
|
1194
|
-
},
|
|
1195
|
-
|
|
1232
|
+
}, U(e.value.donutTotalLabelText), 9, xl),
|
|
1233
|
+
C("text", {
|
|
1196
1234
|
"text-anchor": "middle",
|
|
1197
|
-
x:
|
|
1198
|
-
y:
|
|
1235
|
+
x: I.value.drawingArea.centerX,
|
|
1236
|
+
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
1199
1237
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1200
1238
|
fill: e.value.color
|
|
1201
|
-
},
|
|
1239
|
+
}, U(s(G)({
|
|
1202
1240
|
p: e.value.valuePrefix,
|
|
1203
|
-
v:
|
|
1241
|
+
v: I.value.total,
|
|
1204
1242
|
s: e.value.valueSuffix,
|
|
1205
1243
|
r: e.value.dataLabelRoundingValue
|
|
1206
|
-
})), 9,
|
|
1244
|
+
})), 9, kl)
|
|
1207
1245
|
])) : m("", !0)
|
|
1208
1246
|
], 64)) : m("", !0),
|
|
1209
|
-
|
|
1210
|
-
e.value.xyShowGrid ? (
|
|
1211
|
-
(
|
|
1212
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1247
|
+
$.value === A.LINE ? (o(), n(x, { key: 4 }, [
|
|
1248
|
+
e.value.xyShowGrid ? (o(), n("g", bl, [
|
|
1249
|
+
(o(!0), n(x, null, T(c.value.yLabels, (t) => (o(), n(x, null, [
|
|
1250
|
+
t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
|
|
1213
1251
|
key: 0,
|
|
1214
1252
|
x1: c.value.drawingArea.left,
|
|
1215
1253
|
x2: c.value.drawingArea.right,
|
|
@@ -1218,20 +1256,20 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1218
1256
|
stroke: e.value.xyGridStroke,
|
|
1219
1257
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1220
1258
|
"stroke-linecap": "round"
|
|
1221
|
-
}, null, 8,
|
|
1259
|
+
}, null, 8, Sl)) : m("", !0)
|
|
1222
1260
|
], 64))), 256)),
|
|
1223
|
-
(
|
|
1224
|
-
x1: c.value.drawingArea.left + c.value.slotSize *
|
|
1225
|
-
x2: c.value.drawingArea.left + c.value.slotSize *
|
|
1261
|
+
(o(!0), n(x, null, T(c.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
|
|
1262
|
+
x1: c.value.drawingArea.left + c.value.slotSize * l,
|
|
1263
|
+
x2: c.value.drawingArea.left + c.value.slotSize * l,
|
|
1226
1264
|
y1: c.value.drawingArea.top,
|
|
1227
1265
|
y2: c.value.drawingArea.bottom,
|
|
1228
1266
|
stroke: e.value.xyGridStroke,
|
|
1229
1267
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1230
1268
|
"stroke-linecap": "round"
|
|
1231
|
-
}, null, 8,
|
|
1269
|
+
}, null, 8, wl))), 256))
|
|
1232
1270
|
])) : m("", !0),
|
|
1233
|
-
e.value.xyShowAxis ? (
|
|
1234
|
-
|
|
1271
|
+
e.value.xyShowAxis ? (o(), n("g", Al, [
|
|
1272
|
+
C("line", {
|
|
1235
1273
|
x1: c.value.drawingArea.left,
|
|
1236
1274
|
x2: c.value.drawingArea.left,
|
|
1237
1275
|
y1: c.value.drawingArea.top,
|
|
@@ -1239,8 +1277,8 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1239
1277
|
stroke: e.value.xyAxisStroke,
|
|
1240
1278
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1241
1279
|
"stroke-linecap": "round"
|
|
1242
|
-
}, null, 8,
|
|
1243
|
-
|
|
1280
|
+
}, null, 8, Ll),
|
|
1281
|
+
C("line", {
|
|
1244
1282
|
x1: c.value.drawingArea.left,
|
|
1245
1283
|
x2: c.value.drawingArea.right,
|
|
1246
1284
|
y1: isNaN(c.value.absoluteZero) ? c.value.drawingArea.bottom : c.value.absoluteZero,
|
|
@@ -1248,16 +1286,16 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1248
1286
|
stroke: e.value.xyAxisStroke,
|
|
1249
1287
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1250
1288
|
"stroke-linecap": "round"
|
|
1251
|
-
}, null, 8,
|
|
1289
|
+
}, null, 8, _l)
|
|
1252
1290
|
])) : m("", !0),
|
|
1253
|
-
e.value.xyShowScale ? (
|
|
1291
|
+
e.value.xyShowScale ? (o(), n("g", {
|
|
1254
1292
|
key: 2,
|
|
1255
1293
|
class: "yLabels",
|
|
1256
1294
|
ref_key: "scaleLabels",
|
|
1257
|
-
ref:
|
|
1295
|
+
ref: Re
|
|
1258
1296
|
}, [
|
|
1259
|
-
(
|
|
1260
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1297
|
+
(o(!0), n(x, null, T(c.value.yLabels, (t, l) => (o(), n(x, null, [
|
|
1298
|
+
t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
|
|
1261
1299
|
key: 0,
|
|
1262
1300
|
x1: t.x + 4,
|
|
1263
1301
|
x2: c.value.drawingArea.left,
|
|
@@ -1266,15 +1304,15 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1266
1304
|
stroke: e.value.xyAxisStroke,
|
|
1267
1305
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1268
1306
|
"stroke-linecap": "round"
|
|
1269
|
-
}, null, 8,
|
|
1270
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1307
|
+
}, null, 8, zl)) : m("", !0),
|
|
1308
|
+
t.y <= c.value.drawingArea.bottom ? (o(), n("text", {
|
|
1271
1309
|
key: 1,
|
|
1272
1310
|
x: t.x,
|
|
1273
1311
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
1274
1312
|
"text-anchor": "end",
|
|
1275
1313
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1276
1314
|
fill: e.value.color
|
|
1277
|
-
},
|
|
1315
|
+
}, U(s(ie)(
|
|
1278
1316
|
e.value.formatter,
|
|
1279
1317
|
t.value,
|
|
1280
1318
|
s(G)({
|
|
@@ -1283,85 +1321,85 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1283
1321
|
s: e.value.valueSuffix,
|
|
1284
1322
|
r: e.value.dataLabelRoundingValue
|
|
1285
1323
|
}),
|
|
1286
|
-
{ datapoint: t, seriesIndex:
|
|
1287
|
-
)), 9,
|
|
1324
|
+
{ datapoint: t, seriesIndex: l }
|
|
1325
|
+
)), 9, Cl)) : m("", !0)
|
|
1288
1326
|
], 64))), 256))
|
|
1289
1327
|
], 512)) : m("", !0),
|
|
1290
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (
|
|
1291
|
-
(
|
|
1292
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1328
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", $l, [
|
|
1329
|
+
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1330
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("line", {
|
|
1293
1331
|
key: 0,
|
|
1294
|
-
x1: c.value.drawingArea.left + c.value.slotSize * (
|
|
1295
|
-
x2: c.value.drawingArea.left + c.value.slotSize * (
|
|
1332
|
+
x1: c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2,
|
|
1333
|
+
x2: c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2,
|
|
1296
1334
|
y1: c.value.drawingArea.bottom,
|
|
1297
1335
|
y2: c.value.drawingArea.bottom + 4,
|
|
1298
1336
|
stroke: e.value.xyAxisStroke,
|
|
1299
1337
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1300
1338
|
"stroke-linecap": "round"
|
|
1301
|
-
}, null, 8,
|
|
1339
|
+
}, null, 8, El)) : m("", !0)
|
|
1302
1340
|
], 64))), 256)),
|
|
1303
|
-
|
|
1341
|
+
C("g", {
|
|
1304
1342
|
ref_key: "timeLabelsEls",
|
|
1305
1343
|
ref: ae
|
|
1306
1344
|
}, [
|
|
1307
|
-
(
|
|
1308
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1345
|
+
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1346
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", Tl, [
|
|
1309
1347
|
String(t).includes(`
|
|
1310
|
-
`) ? (
|
|
1348
|
+
`) ? (o(), n("text", {
|
|
1311
1349
|
key: 1,
|
|
1312
1350
|
class: "vue-data-ui-time-label",
|
|
1313
1351
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1314
1352
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1315
1353
|
fill: e.value.color,
|
|
1316
|
-
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (
|
|
1317
|
-
innerHTML: s(
|
|
1354
|
+
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1355
|
+
innerHTML: s(Bt)({
|
|
1318
1356
|
content: String(t),
|
|
1319
1357
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1320
1358
|
fill: e.value.color,
|
|
1321
1359
|
x: 0,
|
|
1322
1360
|
y: 0
|
|
1323
1361
|
})
|
|
1324
|
-
}, null, 8,
|
|
1362
|
+
}, null, 8, Pl)) : (o(), n("text", {
|
|
1325
1363
|
key: 0,
|
|
1326
1364
|
class: "vue-data-ui-time-label",
|
|
1327
1365
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1328
1366
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1329
1367
|
fill: e.value.color,
|
|
1330
|
-
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (
|
|
1331
|
-
},
|
|
1368
|
+
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (l + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1369
|
+
}, U(t), 9, Il))
|
|
1332
1370
|
])) : m("", !0)
|
|
1333
1371
|
], 64))), 256))
|
|
1334
1372
|
], 512)
|
|
1335
1373
|
])) : m("", !0),
|
|
1336
|
-
|
|
1337
|
-
(
|
|
1338
|
-
e.value.lineSmooth ? (
|
|
1339
|
-
|
|
1374
|
+
C("g", Ol, [
|
|
1375
|
+
(o(!0), n(x, null, T(c.value.dataset, (t, l) => (o(), n("g", Fl, [
|
|
1376
|
+
e.value.lineSmooth ? (o(), n(x, { key: 0 }, [
|
|
1377
|
+
C("path", {
|
|
1340
1378
|
ref_for: !0,
|
|
1341
1379
|
ref_key: "pathWrapper",
|
|
1342
1380
|
ref: Ae,
|
|
1343
|
-
d: `M ${s(
|
|
1381
|
+
d: `M ${s(Dt)(t.coordinates)}`,
|
|
1344
1382
|
stroke: e.value.backgroundColor,
|
|
1345
1383
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1346
1384
|
"stroke-linecap": "round",
|
|
1347
1385
|
fill: "none",
|
|
1348
|
-
class: de({ "quick-animation": !s(
|
|
1349
|
-
style:
|
|
1350
|
-
}, null, 14,
|
|
1351
|
-
|
|
1386
|
+
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1387
|
+
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1388
|
+
}, null, 14, Rl),
|
|
1389
|
+
C("path", {
|
|
1352
1390
|
ref_for: !0,
|
|
1353
1391
|
ref_key: "pathTop",
|
|
1354
1392
|
ref: Le,
|
|
1355
|
-
d: `M ${s(
|
|
1393
|
+
d: `M ${s(Dt)(t.coordinates)}`,
|
|
1356
1394
|
stroke: t.color,
|
|
1357
1395
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1358
1396
|
"stroke-linecap": "round",
|
|
1359
1397
|
fill: "none",
|
|
1360
|
-
class: de({ "quick-animation": !s(
|
|
1361
|
-
style:
|
|
1362
|
-
}, null, 14,
|
|
1363
|
-
], 64)) : (
|
|
1364
|
-
|
|
1398
|
+
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1399
|
+
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1400
|
+
}, null, 14, Ml)
|
|
1401
|
+
], 64)) : (o(), n(x, { key: 1 }, [
|
|
1402
|
+
C("path", {
|
|
1365
1403
|
ref_for: !0,
|
|
1366
1404
|
ref_key: "pathWrapper",
|
|
1367
1405
|
ref: Ae,
|
|
@@ -1370,10 +1408,10 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1370
1408
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1371
1409
|
"stroke-linecap": "round",
|
|
1372
1410
|
fill: "none",
|
|
1373
|
-
class: de({ "quick-animation": !s(
|
|
1374
|
-
style:
|
|
1375
|
-
}, null, 14,
|
|
1376
|
-
|
|
1411
|
+
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1412
|
+
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1413
|
+
}, null, 14, Nl),
|
|
1414
|
+
C("path", {
|
|
1377
1415
|
ref_for: !0,
|
|
1378
1416
|
ref_key: "pathTop",
|
|
1379
1417
|
ref: Le,
|
|
@@ -1382,33 +1420,33 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1382
1420
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1383
1421
|
"stroke-linecap": "round",
|
|
1384
1422
|
fill: "none",
|
|
1385
|
-
class: de({ "quick-animation": !s(
|
|
1386
|
-
style:
|
|
1387
|
-
}, null, 14,
|
|
1423
|
+
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1424
|
+
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1425
|
+
}, null, 14, Bl)
|
|
1388
1426
|
], 64)),
|
|
1389
|
-
(
|
|
1427
|
+
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("circle", {
|
|
1390
1428
|
cx: u.x,
|
|
1391
1429
|
cy: s(ue)(u.y),
|
|
1392
1430
|
r: 3,
|
|
1393
1431
|
fill: t.color,
|
|
1394
1432
|
stroke: e.value.backgroundColor,
|
|
1395
1433
|
"stroke-width": "0.5",
|
|
1396
|
-
class: de({ "vue-ui-quick-chart-plot": !0, "quick-animation": !s(
|
|
1397
|
-
style:
|
|
1398
|
-
}, null, 14,
|
|
1434
|
+
class: de({ "vue-ui-quick-chart-plot": !0, "quick-animation": !s(V) }),
|
|
1435
|
+
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1436
|
+
}, null, 14, Dl))), 256))
|
|
1399
1437
|
]))), 256))
|
|
1400
1438
|
]),
|
|
1401
|
-
e.value.showDataLabels ? (
|
|
1402
|
-
(
|
|
1403
|
-
(
|
|
1439
|
+
e.value.showDataLabels ? (o(), n("g", Ul, [
|
|
1440
|
+
(o(!0), n(x, null, T(c.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1441
|
+
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("text", {
|
|
1404
1442
|
"text-anchor": "middle",
|
|
1405
1443
|
"font-size": e.value.dataLabelFontSize,
|
|
1406
1444
|
fill: t.color,
|
|
1407
1445
|
x: u.x,
|
|
1408
1446
|
y: s(ue)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1409
|
-
class: de({ "vue-ui-quick-chart-label": !0, "quick-animation": !s(
|
|
1410
|
-
style:
|
|
1411
|
-
},
|
|
1447
|
+
class: de({ "vue-ui-quick-chart-label": !0, "quick-animation": !s(V) }),
|
|
1448
|
+
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1449
|
+
}, U(s(ie)(
|
|
1412
1450
|
e.value.formatter,
|
|
1413
1451
|
s(ue)(u.value),
|
|
1414
1452
|
s(G)({
|
|
@@ -1418,92 +1456,92 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1418
1456
|
r: e.value.dataLabelRoundingValue
|
|
1419
1457
|
}),
|
|
1420
1458
|
{ datapoint: u, seriesIndex: p }
|
|
1421
|
-
)), 15,
|
|
1459
|
+
)), 15, Vl))), 256))
|
|
1422
1460
|
], 64))), 256))
|
|
1423
1461
|
])) : m("", !0),
|
|
1424
|
-
|
|
1425
|
-
(
|
|
1426
|
-
x: c.value.drawingArea.left +
|
|
1462
|
+
Ke.value ? (o(), n("g", ql, [
|
|
1463
|
+
(o(!0), n(x, null, T(c.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
|
|
1464
|
+
x: c.value.drawingArea.left + l * c.value.slotSize,
|
|
1427
1465
|
y: c.value.drawingArea.top,
|
|
1428
1466
|
height: c.value.drawingArea.height <= 0 ? 1e-5 : c.value.drawingArea.height,
|
|
1429
1467
|
width: c.value.slotSize <= 0 ? 1e-5 : c.value.slotSize,
|
|
1430
|
-
fill: [te.value, le.value].includes(
|
|
1431
|
-
style:
|
|
1432
|
-
onMouseenter: (u) => c.value.useTooltip(
|
|
1433
|
-
onMouseleave: (u) => c.value.killTooltip(
|
|
1434
|
-
onClick: (u) => c.value.selectDatapoint(
|
|
1435
|
-
}, null, 44,
|
|
1468
|
+
fill: [te.value, le.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
|
|
1469
|
+
style: B(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1470
|
+
onMouseenter: (u) => c.value.useTooltip(l),
|
|
1471
|
+
onMouseleave: (u) => c.value.killTooltip(l),
|
|
1472
|
+
onClick: (u) => c.value.selectDatapoint(l)
|
|
1473
|
+
}, null, 44, Hl))), 256))
|
|
1436
1474
|
])) : m("", !0)
|
|
1437
1475
|
], 64)) : m("", !0),
|
|
1438
|
-
|
|
1439
|
-
e.value.xyShowGrid ? (
|
|
1440
|
-
(
|
|
1441
|
-
t.y <=
|
|
1476
|
+
$.value === A.BAR ? (o(), n(x, { key: 5 }, [
|
|
1477
|
+
e.value.xyShowGrid ? (o(), n("g", Wl, [
|
|
1478
|
+
(o(!0), n(x, null, T(v.value.yLabels, (t) => (o(), n(x, null, [
|
|
1479
|
+
t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
|
|
1442
1480
|
key: 0,
|
|
1443
|
-
x1:
|
|
1444
|
-
x2:
|
|
1481
|
+
x1: v.value.drawingArea.left,
|
|
1482
|
+
x2: v.value.drawingArea.right,
|
|
1445
1483
|
y1: t.y,
|
|
1446
1484
|
y2: t.y,
|
|
1447
1485
|
stroke: e.value.xyGridStroke,
|
|
1448
1486
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1449
1487
|
"stroke-linecap": "round"
|
|
1450
|
-
}, null, 8,
|
|
1488
|
+
}, null, 8, Xl)) : m("", !0)
|
|
1451
1489
|
], 64))), 256)),
|
|
1452
|
-
(
|
|
1453
|
-
x1:
|
|
1454
|
-
x2:
|
|
1455
|
-
y1:
|
|
1456
|
-
y2:
|
|
1490
|
+
(o(!0), n(x, null, T(v.value.extremes.maxSeries + 1, (t, l) => (o(), n("line", {
|
|
1491
|
+
x1: v.value.drawingArea.left + v.value.slotSize * l,
|
|
1492
|
+
x2: v.value.drawingArea.left + v.value.slotSize * l,
|
|
1493
|
+
y1: v.value.drawingArea.top,
|
|
1494
|
+
y2: v.value.drawingArea.bottom,
|
|
1457
1495
|
stroke: e.value.xyGridStroke,
|
|
1458
1496
|
"stroke-width": e.value.xyGridStrokeWidth,
|
|
1459
1497
|
"stroke-linecap": "round"
|
|
1460
|
-
}, null, 8,
|
|
1498
|
+
}, null, 8, jl))), 256))
|
|
1461
1499
|
])) : m("", !0),
|
|
1462
|
-
e.value.xyShowAxis ? (
|
|
1463
|
-
|
|
1464
|
-
x1:
|
|
1465
|
-
x2:
|
|
1466
|
-
y1:
|
|
1467
|
-
y2:
|
|
1500
|
+
e.value.xyShowAxis ? (o(), n("g", Gl, [
|
|
1501
|
+
C("line", {
|
|
1502
|
+
x1: v.value.drawingArea.left,
|
|
1503
|
+
x2: v.value.drawingArea.left,
|
|
1504
|
+
y1: v.value.drawingArea.top,
|
|
1505
|
+
y2: v.value.drawingArea.bottom,
|
|
1468
1506
|
stroke: e.value.xyAxisStroke,
|
|
1469
1507
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1470
1508
|
"stroke-linecap": "round"
|
|
1471
|
-
}, null, 8,
|
|
1472
|
-
|
|
1473
|
-
x1:
|
|
1474
|
-
x2:
|
|
1475
|
-
y1: isNaN(
|
|
1476
|
-
y2: isNaN(
|
|
1509
|
+
}, null, 8, Yl),
|
|
1510
|
+
C("line", {
|
|
1511
|
+
x1: v.value.drawingArea.left,
|
|
1512
|
+
x2: v.value.drawingArea.right,
|
|
1513
|
+
y1: isNaN(v.value.absoluteZero) ? v.value.drawingArea.bottom : v.value.absoluteZero,
|
|
1514
|
+
y2: isNaN(v.value.absoluteZero) ? v.value.drawingArea.bottom : v.value.absoluteZero,
|
|
1477
1515
|
stroke: e.value.xyAxisStroke,
|
|
1478
1516
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1479
1517
|
"stroke-linecap": "round"
|
|
1480
|
-
}, null, 8,
|
|
1518
|
+
}, null, 8, Zl)
|
|
1481
1519
|
])) : m("", !0),
|
|
1482
|
-
e.value.xyShowScale ? (
|
|
1520
|
+
e.value.xyShowScale ? (o(), n("g", {
|
|
1483
1521
|
key: 2,
|
|
1484
1522
|
class: "yLabels",
|
|
1485
1523
|
ref_key: "scaleLabels",
|
|
1486
|
-
ref:
|
|
1524
|
+
ref: Re
|
|
1487
1525
|
}, [
|
|
1488
|
-
(
|
|
1489
|
-
t.y <=
|
|
1526
|
+
(o(!0), n(x, null, T(v.value.yLabels, (t, l) => (o(), n(x, null, [
|
|
1527
|
+
t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
|
|
1490
1528
|
key: 0,
|
|
1491
1529
|
x1: t.x + 4,
|
|
1492
|
-
x2:
|
|
1530
|
+
x2: v.value.drawingArea.left,
|
|
1493
1531
|
y1: t.y,
|
|
1494
1532
|
y2: t.y,
|
|
1495
1533
|
stroke: e.value.xyAxisStroke,
|
|
1496
1534
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1497
1535
|
"stroke-linecap": "round"
|
|
1498
|
-
}, null, 8,
|
|
1499
|
-
t.y <=
|
|
1536
|
+
}, null, 8, Jl)) : m("", !0),
|
|
1537
|
+
t.y <= v.value.drawingArea.bottom ? (o(), n("text", {
|
|
1500
1538
|
key: 1,
|
|
1501
1539
|
x: t.x,
|
|
1502
1540
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
1503
1541
|
"text-anchor": "end",
|
|
1504
1542
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1505
1543
|
fill: e.value.color
|
|
1506
|
-
},
|
|
1544
|
+
}, U(s(ie)(
|
|
1507
1545
|
e.value.formatter,
|
|
1508
1546
|
t.value,
|
|
1509
1547
|
s(G)({
|
|
@@ -1512,56 +1550,56 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1512
1550
|
s: e.value.valueSuffix,
|
|
1513
1551
|
r: e.value.dataLabelRoundingValue
|
|
1514
1552
|
}),
|
|
1515
|
-
{ datapoint: t, seriesIndex:
|
|
1516
|
-
)), 9,
|
|
1553
|
+
{ datapoint: t, seriesIndex: l }
|
|
1554
|
+
)), 9, Ql)) : m("", !0)
|
|
1517
1555
|
], 64))), 256))
|
|
1518
1556
|
], 512)) : m("", !0),
|
|
1519
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (
|
|
1520
|
-
(
|
|
1521
|
-
x1:
|
|
1522
|
-
x2:
|
|
1523
|
-
y1:
|
|
1524
|
-
y2:
|
|
1557
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", Kl, [
|
|
1558
|
+
(o(!0), n(x, null, T(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, l) => (o(), n("line", {
|
|
1559
|
+
x1: v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2,
|
|
1560
|
+
x2: v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2,
|
|
1561
|
+
y1: v.value.drawingArea.bottom,
|
|
1562
|
+
y2: v.value.drawingArea.bottom + 4,
|
|
1525
1563
|
stroke: e.value.xyAxisStroke,
|
|
1526
1564
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1527
1565
|
"stroke-linecap": "round"
|
|
1528
|
-
}, null, 8,
|
|
1529
|
-
|
|
1566
|
+
}, null, 8, eo))), 256)),
|
|
1567
|
+
C("g", {
|
|
1530
1568
|
ref_key: "timeLabelsEls",
|
|
1531
1569
|
ref: ae
|
|
1532
1570
|
}, [
|
|
1533
|
-
(
|
|
1534
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1571
|
+
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1572
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", to, [
|
|
1535
1573
|
String(t).includes(`
|
|
1536
|
-
`) ? (
|
|
1574
|
+
`) ? (o(), n("text", {
|
|
1537
1575
|
key: 1,
|
|
1538
1576
|
class: "vue-data-ui-time-label",
|
|
1539
1577
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1540
1578
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1541
1579
|
fill: e.value.color,
|
|
1542
|
-
transform: `translate(${
|
|
1543
|
-
innerHTML: s(
|
|
1580
|
+
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1581
|
+
innerHTML: s(Bt)({
|
|
1544
1582
|
content: String(t),
|
|
1545
1583
|
fontSize: e.value.xyLabelsXFontSize,
|
|
1546
1584
|
fill: e.value.color,
|
|
1547
1585
|
x: 0,
|
|
1548
1586
|
y: 0
|
|
1549
1587
|
})
|
|
1550
|
-
}, null, 8,
|
|
1588
|
+
}, null, 8, lo)) : (o(), n("text", {
|
|
1551
1589
|
key: 0,
|
|
1552
1590
|
class: "vue-data-ui-time-label",
|
|
1553
1591
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1554
1592
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1555
1593
|
fill: e.value.color,
|
|
1556
|
-
transform: `translate(${
|
|
1557
|
-
},
|
|
1594
|
+
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (l + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1595
|
+
}, U(t), 9, ao))
|
|
1558
1596
|
])) : m("", !0)
|
|
1559
1597
|
], 64))), 256))
|
|
1560
1598
|
], 512)
|
|
1561
1599
|
])) : m("", !0),
|
|
1562
|
-
|
|
1563
|
-
(
|
|
1564
|
-
(
|
|
1600
|
+
C("g", oo, [
|
|
1601
|
+
(o(!0), n(x, null, T(v.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1602
|
+
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("rect", {
|
|
1565
1603
|
x: u.x,
|
|
1566
1604
|
width: u.width <= 0 ? 1e-5 : u.width,
|
|
1567
1605
|
height: s(ue)(u.height <= 0 ? 1e-5 : u.height),
|
|
@@ -1570,35 +1608,35 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1570
1608
|
stroke: e.value.backgroundColor,
|
|
1571
1609
|
"stroke-width": e.value.barStrokeWidth,
|
|
1572
1610
|
"stroke-linecap": "round",
|
|
1573
|
-
class: de({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !s(
|
|
1611
|
+
class: de({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !s(V) })
|
|
1574
1612
|
}, [
|
|
1575
|
-
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (
|
|
1613
|
+
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (o(), n("animate", {
|
|
1576
1614
|
key: 0,
|
|
1577
1615
|
attributeName: "height",
|
|
1578
1616
|
from: 0,
|
|
1579
1617
|
to: u.height,
|
|
1580
1618
|
dur: "0.5s"
|
|
1581
|
-
}, null, 8,
|
|
1582
|
-
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (
|
|
1619
|
+
}, null, 8, io)) : m("", !0),
|
|
1620
|
+
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (o(), n("animate", {
|
|
1583
1621
|
key: 1,
|
|
1584
1622
|
attributeName: "y",
|
|
1585
|
-
from:
|
|
1586
|
-
to:
|
|
1623
|
+
from: v.value.absoluteZero,
|
|
1624
|
+
to: v.value.absoluteZero - u.height,
|
|
1587
1625
|
dur: "0.5s"
|
|
1588
|
-
}, null, 8,
|
|
1589
|
-
], 10,
|
|
1626
|
+
}, null, 8, uo)) : m("", !0)
|
|
1627
|
+
], 10, no))), 256))
|
|
1590
1628
|
], 64))), 256))
|
|
1591
1629
|
]),
|
|
1592
|
-
e.value.showDataLabels ? (
|
|
1593
|
-
(
|
|
1594
|
-
(
|
|
1630
|
+
e.value.showDataLabels ? (o(), n("g", ro, [
|
|
1631
|
+
(o(!0), n(x, null, T(v.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1632
|
+
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("text", {
|
|
1595
1633
|
x: u.x + u.width / 2,
|
|
1596
1634
|
y: s(ue)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1597
1635
|
"text-anchor": "middle",
|
|
1598
1636
|
"font-size": e.value.dataLabelFontSize,
|
|
1599
1637
|
fill: t.color,
|
|
1600
1638
|
class: "quick-animation"
|
|
1601
|
-
},
|
|
1639
|
+
}, U(s(ie)(
|
|
1602
1640
|
e.value.formatter,
|
|
1603
1641
|
s(ue)(u.value),
|
|
1604
1642
|
s(G)({
|
|
@@ -1608,87 +1646,87 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1608
1646
|
r: e.value.dataLabelRoundingValue
|
|
1609
1647
|
}),
|
|
1610
1648
|
{ datapoint: u, seriesIndex: p }
|
|
1611
|
-
)), 9,
|
|
1649
|
+
)), 9, so))), 256))
|
|
1612
1650
|
], 64))), 256))
|
|
1613
1651
|
])) : m("", !0),
|
|
1614
|
-
|
|
1615
|
-
(
|
|
1616
|
-
x:
|
|
1617
|
-
y:
|
|
1618
|
-
height:
|
|
1619
|
-
width:
|
|
1620
|
-
fill: [te.value, le.value].includes(
|
|
1621
|
-
style:
|
|
1622
|
-
onMouseenter: (u) =>
|
|
1623
|
-
onMouseleave: (u) =>
|
|
1624
|
-
onClick: (u) =>
|
|
1625
|
-
}, null, 44,
|
|
1652
|
+
Ke.value ? (o(), n("g", vo, [
|
|
1653
|
+
(o(!0), n(x, null, T(v.value.extremes.maxSeries, (t, l) => (o(), n("rect", {
|
|
1654
|
+
x: v.value.drawingArea.left + l * v.value.slotSize,
|
|
1655
|
+
y: v.value.drawingArea.top,
|
|
1656
|
+
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1657
|
+
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1658
|
+
fill: [te.value, le.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
|
|
1659
|
+
style: B(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1660
|
+
onMouseenter: (u) => v.value.useTooltip(l),
|
|
1661
|
+
onMouseleave: (u) => v.value.killTooltip(l),
|
|
1662
|
+
onClick: (u) => v.value.selectDatapoint(l)
|
|
1663
|
+
}, null, 44, co))), 256))
|
|
1626
1664
|
])) : m("", !0)
|
|
1627
1665
|
], 64)) : m("", !0),
|
|
1628
|
-
[
|
|
1629
|
-
e.value.xAxisLabel &&
|
|
1666
|
+
[A.LINE, A.BAR].includes($.value) ? (o(), n("g", fo, [
|
|
1667
|
+
e.value.xAxisLabel && $.value === A.LINE ? (o(), n("g", {
|
|
1630
1668
|
key: 0,
|
|
1631
1669
|
ref_key: "xAxisLabel",
|
|
1632
|
-
ref:
|
|
1670
|
+
ref: gt
|
|
1633
1671
|
}, [
|
|
1634
|
-
|
|
1672
|
+
C("text", {
|
|
1635
1673
|
"font-size": e.value.axisLabelsFontSize,
|
|
1636
1674
|
fill: e.value.color,
|
|
1637
1675
|
"text-anchor": "middle",
|
|
1638
1676
|
x: c.value.drawingArea.left + c.value.drawingArea.width / 2,
|
|
1639
1677
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1640
|
-
},
|
|
1678
|
+
}, U(e.value.xAxisLabel), 9, ho)
|
|
1641
1679
|
], 512)) : m("", !0),
|
|
1642
|
-
e.value.xAxisLabel &&
|
|
1680
|
+
e.value.xAxisLabel && $.value === A.BAR ? (o(), n("g", {
|
|
1643
1681
|
key: 1,
|
|
1644
1682
|
ref_key: "xAxisLabel",
|
|
1645
|
-
ref:
|
|
1683
|
+
ref: gt
|
|
1646
1684
|
}, [
|
|
1647
|
-
|
|
1685
|
+
C("text", {
|
|
1648
1686
|
"font-size": e.value.axisLabelsFontSize,
|
|
1649
1687
|
fill: e.value.color,
|
|
1650
1688
|
"text-anchor": "middle",
|
|
1651
|
-
x:
|
|
1689
|
+
x: v.value.drawingArea.left + v.value.drawingArea.width / 2,
|
|
1652
1690
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1653
|
-
},
|
|
1691
|
+
}, U(e.value.xAxisLabel), 9, mo)
|
|
1654
1692
|
], 512)) : m("", !0),
|
|
1655
|
-
e.value.yAxisLabel &&
|
|
1693
|
+
e.value.yAxisLabel && $.value === A.LINE ? (o(), n("g", {
|
|
1656
1694
|
key: 2,
|
|
1657
1695
|
ref_key: "yAxisLabel",
|
|
1658
|
-
ref:
|
|
1696
|
+
ref: pt
|
|
1659
1697
|
}, [
|
|
1660
|
-
|
|
1698
|
+
C("text", {
|
|
1661
1699
|
"font-size": e.value.axisLabelsFontSize,
|
|
1662
1700
|
fill: e.value.color,
|
|
1663
1701
|
transform: `translate(${e.value.axisLabelsFontSize}, ${c.value.drawingArea.top + c.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1664
1702
|
"text-anchor": "middle"
|
|
1665
|
-
},
|
|
1703
|
+
}, U(e.value.yAxisLabel), 9, go)
|
|
1666
1704
|
], 512)) : m("", !0),
|
|
1667
|
-
e.value.yAxisLabel &&
|
|
1705
|
+
e.value.yAxisLabel && $.value === A.BAR ? (o(), n("g", {
|
|
1668
1706
|
key: 3,
|
|
1669
1707
|
ref_key: "yAxisLabel",
|
|
1670
|
-
ref:
|
|
1708
|
+
ref: pt
|
|
1671
1709
|
}, [
|
|
1672
|
-
|
|
1710
|
+
C("text", {
|
|
1673
1711
|
"font-size": e.value.axisLabelsFontSize,
|
|
1674
1712
|
fill: e.value.color,
|
|
1675
|
-
transform: `translate(${e.value.axisLabelsFontSize}, ${
|
|
1713
|
+
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1676
1714
|
"text-anchor": "middle"
|
|
1677
|
-
},
|
|
1715
|
+
}, U(e.value.yAxisLabel), 9, po)
|
|
1678
1716
|
], 512)) : m("", !0)
|
|
1679
1717
|
])) : m("", !0)
|
|
1680
|
-
], 12,
|
|
1681
|
-
a.$slots.watermark ? (
|
|
1718
|
+
], 12, el)) : m("", !0),
|
|
1719
|
+
a.$slots.watermark ? (o(), n("div", yo, [
|
|
1682
1720
|
W(a.$slots, "watermark", me(ge({ isPrinting: s(Be) || s(De) })), void 0, !0)
|
|
1683
1721
|
])) : m("", !0),
|
|
1684
|
-
[
|
|
1722
|
+
[A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (o(), n("div", {
|
|
1685
1723
|
key: `slicer_${Fe.value}`,
|
|
1686
1724
|
ref_key: "quickChartSlicer",
|
|
1687
|
-
ref:
|
|
1725
|
+
ref: dt
|
|
1688
1726
|
}, [
|
|
1689
|
-
(
|
|
1727
|
+
(o(), Ie(qa, {
|
|
1690
1728
|
ref_key: "slicerComponent",
|
|
1691
|
-
ref:
|
|
1729
|
+
ref: $t,
|
|
1692
1730
|
key: `slicer_${Fe.value}`,
|
|
1693
1731
|
background: e.value.zoomColor,
|
|
1694
1732
|
borderColor: e.value.backgroundColor,
|
|
@@ -1708,7 +1746,7 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1708
1746
|
minimapSelectedColorOpacity: e.value.zoomMinimap.selectedColorOpacity,
|
|
1709
1747
|
minimapSelectionRadius: e.value.zoomMinimap.selectionRadius,
|
|
1710
1748
|
minimapLineColor: e.value.zoomMinimap.lineColor,
|
|
1711
|
-
minimap:
|
|
1749
|
+
minimap: aa.value,
|
|
1712
1750
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1713
1751
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1714
1752
|
minimapSelectedIndex: le.value,
|
|
@@ -1722,12 +1760,12 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1722
1760
|
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1723
1761
|
minimapCompact: e.value.zoomMinimap.compact,
|
|
1724
1762
|
minimapMerged: e.value.zoomMinimap.merged,
|
|
1725
|
-
allMinimaps:
|
|
1763
|
+
allMinimaps: ra.value,
|
|
1726
1764
|
minimapFrameColor: e.value.zoomMinimap.frameColor,
|
|
1727
1765
|
focusOnDrag: e.value.zoomFocusOnDrag,
|
|
1728
1766
|
focusRangeRatio: e.value.zoomFocusRangeRatio,
|
|
1729
|
-
onReset:
|
|
1730
|
-
onTrapMouse:
|
|
1767
|
+
onReset: ea,
|
|
1768
|
+
onTrapMouse: Kt
|
|
1731
1769
|
}, {
|
|
1732
1770
|
"reset-action": ne(({ reset: t }) => [
|
|
1733
1771
|
W(a.$slots, "reset-action", me(ge({ reset: t })), void 0, !0)
|
|
@@ -1735,42 +1773,42 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1735
1773
|
_: 3
|
|
1736
1774
|
}, 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", "minimapCompact", "minimapMerged", "allMinimaps", "minimapFrameColor", "focusOnDrag", "focusRangeRatio"]))
|
|
1737
1775
|
])) : m("", !0),
|
|
1738
|
-
|
|
1776
|
+
C("div", {
|
|
1739
1777
|
id: `legend-bottom-${Y.value}`
|
|
1740
|
-
}, null, 8,
|
|
1741
|
-
|
|
1778
|
+
}, null, 8, xo),
|
|
1779
|
+
mt.value ? (o(), Ie(Sa, {
|
|
1742
1780
|
key: 7,
|
|
1743
1781
|
to: e.value.legendPosition === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
|
|
1744
1782
|
}, [
|
|
1745
|
-
e.value.showLegend ? (
|
|
1783
|
+
e.value.showLegend ? (o(), n("div", {
|
|
1746
1784
|
key: 0,
|
|
1747
1785
|
ref_key: "quickChartLegend",
|
|
1748
|
-
ref:
|
|
1786
|
+
ref: vt,
|
|
1749
1787
|
class: "vue-ui-quick-chart-legend",
|
|
1750
|
-
style:
|
|
1788
|
+
style: B(`background:transparent;color:${e.value.color}`)
|
|
1751
1789
|
}, [
|
|
1752
|
-
|
|
1790
|
+
$.value === A.DONUT ? (o(!0), n(x, { key: 0 }, T(I.value.legend, (t, l) => (o(), n("div", {
|
|
1753
1791
|
class: "vue-ui-quick-chart-legend-item",
|
|
1754
1792
|
onClick: (u) => {
|
|
1755
|
-
|
|
1793
|
+
Qt(t, I.value.dataset), pe("selectLegend", t);
|
|
1756
1794
|
},
|
|
1757
|
-
style:
|
|
1795
|
+
style: B(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1758
1796
|
}, [
|
|
1759
|
-
e.value.useCustomLegend ? W(a.$slots, "legend",
|
|
1797
|
+
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1760
1798
|
key: 0,
|
|
1761
1799
|
ref_for: !0
|
|
1762
|
-
}, { legend: t }), void 0, !0) : (
|
|
1800
|
+
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1763
1801
|
be(s(q), {
|
|
1764
1802
|
name: e.value.legendIcon,
|
|
1765
1803
|
stroke: t.color,
|
|
1766
1804
|
size: e.value.legendIconSize
|
|
1767
1805
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1768
|
-
|
|
1769
|
-
style:
|
|
1770
|
-
},
|
|
1771
|
-
|
|
1772
|
-
style:
|
|
1773
|
-
},
|
|
1806
|
+
C("span", {
|
|
1807
|
+
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1808
|
+
}, U(t.name), 5),
|
|
1809
|
+
C("span", {
|
|
1810
|
+
style: B(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1811
|
+
}, U(_.value.includes(t.id) ? "-" : s(ie)(
|
|
1774
1812
|
e.value.formatter,
|
|
1775
1813
|
t.absoluteValue,
|
|
1776
1814
|
s(G)({
|
|
@@ -1779,72 +1817,72 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1779
1817
|
s: e.value.valueSuffix,
|
|
1780
1818
|
r: e.value.dataLabelRoundingValue
|
|
1781
1819
|
}),
|
|
1782
|
-
{ datapoint: t, seriesIndex:
|
|
1820
|
+
{ datapoint: t, seriesIndex: l }
|
|
1783
1821
|
)), 5),
|
|
1784
|
-
|
|
1822
|
+
_.value.includes(t.id) ? (o(), n("span", {
|
|
1785
1823
|
key: 0,
|
|
1786
|
-
style:
|
|
1787
|
-
}, " ( - % ) ", 4)) : Ue.value ? (
|
|
1824
|
+
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1825
|
+
}, " ( - % ) ", 4)) : Ue.value ? (o(), n("span", {
|
|
1788
1826
|
key: 1,
|
|
1789
|
-
style:
|
|
1790
|
-
}, " ( - % ) ", 4)) : (
|
|
1827
|
+
style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1828
|
+
}, " ( - % ) ", 4)) : (o(), n("span", {
|
|
1791
1829
|
key: 2,
|
|
1792
|
-
style:
|
|
1793
|
-
}, " (" +
|
|
1794
|
-
v: t.value /
|
|
1830
|
+
style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1831
|
+
}, " (" + U(s(G)({
|
|
1832
|
+
v: t.value / I.value.total * 100,
|
|
1795
1833
|
s: "%",
|
|
1796
1834
|
r: e.value.dataLabelRoundingPercentage
|
|
1797
1835
|
})) + ") ", 5))
|
|
1798
1836
|
], 64))
|
|
1799
|
-
], 12,
|
|
1800
|
-
|
|
1837
|
+
], 12, ko))), 256)) : m("", !0),
|
|
1838
|
+
$.value === A.LINE ? (o(!0), n(x, { key: 1 }, T(c.value.legend, (t, l) => (o(), n("div", {
|
|
1801
1839
|
class: "vue-ui-quick-chart-legend-item",
|
|
1802
1840
|
onClick: (u) => {
|
|
1803
1841
|
Lt(t.id, c.value.legend.length - 1), pe("selectLegend", t);
|
|
1804
1842
|
},
|
|
1805
|
-
style:
|
|
1843
|
+
style: B(`cursor: ${c.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1806
1844
|
}, [
|
|
1807
|
-
e.value.useCustomLegend ? W(a.$slots, "legend",
|
|
1845
|
+
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1808
1846
|
key: 0,
|
|
1809
1847
|
ref_for: !0
|
|
1810
|
-
}, { legend: t }), void 0, !0) : (
|
|
1848
|
+
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1811
1849
|
be(s(q), {
|
|
1812
1850
|
name: e.value.legendIcon,
|
|
1813
1851
|
stroke: t.color,
|
|
1814
1852
|
size: e.value.legendIconSize
|
|
1815
1853
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1816
|
-
|
|
1817
|
-
style:
|
|
1818
|
-
},
|
|
1854
|
+
C("span", {
|
|
1855
|
+
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1856
|
+
}, U(t.name), 5)
|
|
1819
1857
|
], 64))
|
|
1820
|
-
], 12,
|
|
1821
|
-
|
|
1858
|
+
], 12, bo))), 256)) : m("", !0),
|
|
1859
|
+
$.value === A.BAR ? (o(!0), n(x, { key: 2 }, T(v.value.legend, (t, l) => (o(), n("div", {
|
|
1822
1860
|
class: "vue-ui-quick-chart-legend-item",
|
|
1823
1861
|
onClick: (u) => {
|
|
1824
|
-
Lt(t.id,
|
|
1862
|
+
Lt(t.id, v.value.legend.length - 1), pe("selectLegend", t);
|
|
1825
1863
|
},
|
|
1826
|
-
style:
|
|
1864
|
+
style: B(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1827
1865
|
}, [
|
|
1828
|
-
e.value.useCustomLegend ? W(a.$slots, "legend",
|
|
1866
|
+
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1829
1867
|
key: 0,
|
|
1830
1868
|
ref_for: !0
|
|
1831
|
-
}, { legend: t }), void 0, !0) : (
|
|
1869
|
+
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
1832
1870
|
be(s(q), {
|
|
1833
1871
|
name: e.value.legendIcon,
|
|
1834
1872
|
stroke: t.color,
|
|
1835
1873
|
size: e.value.legendIconSize
|
|
1836
1874
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1837
|
-
|
|
1838
|
-
style:
|
|
1839
|
-
},
|
|
1875
|
+
C("span", {
|
|
1876
|
+
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1877
|
+
}, U(t.name), 5)
|
|
1840
1878
|
], 64))
|
|
1841
|
-
], 12,
|
|
1879
|
+
], 12, So))), 256)) : m("", !0)
|
|
1842
1880
|
], 4)) : m("", !0)
|
|
1843
1881
|
], 8, ["to"])) : m("", !0),
|
|
1844
|
-
a.$slots.source ? (
|
|
1882
|
+
a.$slots.source ? (o(), n("div", {
|
|
1845
1883
|
key: 8,
|
|
1846
1884
|
ref_key: "source",
|
|
1847
|
-
ref:
|
|
1885
|
+
ref: ct,
|
|
1848
1886
|
dir: "auto"
|
|
1849
1887
|
}, [
|
|
1850
1888
|
W(a.$slots, "source", {}, void 0, !0)
|
|
@@ -1877,16 +1915,16 @@ const Ha = ["id"], Wa = ["id"], Xa = ["xmlns", "viewBox"], ja = ["x", "y", "widt
|
|
|
1877
1915
|
]),
|
|
1878
1916
|
_: 3
|
|
1879
1917
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
|
|
1880
|
-
s(
|
|
1881
|
-
], 46,
|
|
1918
|
+
s(V) ? (o(), Ie(Ra, { key: 9 })) : m("", !0)
|
|
1919
|
+
], 46, Qa)) : (o(), n("div", wo, [
|
|
1882
1920
|
be(s(q), {
|
|
1883
1921
|
name: "circleCancel",
|
|
1884
1922
|
stroke: "red"
|
|
1885
1923
|
}),
|
|
1886
|
-
r[5] || (r[5] =
|
|
1924
|
+
r[5] || (r[5] = C("span", null, "Dataset is not processable", -1))
|
|
1887
1925
|
]));
|
|
1888
1926
|
}
|
|
1889
|
-
},
|
|
1927
|
+
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-ad4e3d0e"]]);
|
|
1890
1928
|
export {
|
|
1891
|
-
|
|
1929
|
+
Bo as default
|
|
1892
1930
|
};
|