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