vue-data-ui 2.3.86 → 2.3.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CebZn6E4.cjs → Arrow-CaBSHqw3.cjs} +1 -1
- package/dist/{Arrow-CJ7hmWgf.js → Arrow-kIoRmLea.js} +1 -1
- package/dist/{BaseIcon-DnG75_Ol.cjs → BaseIcon-B2zEAYL0.cjs} +1 -1
- package/dist/{BaseIcon-B9istAKo.js → BaseIcon-dAh8thfs.js} +1 -1
- package/dist/{DataTable-tSDSY14n.js → DataTable-BLGE-au6.js} +2 -2
- package/dist/{DataTable-BA_BCbHC.cjs → DataTable-DEvCstuA.cjs} +1 -1
- package/dist/{Legend-D3hovFqM.js → Legend-BAZwLtW5.js} +1 -1
- package/dist/{Legend-BOY57qwA.cjs → Legend-D9oHmbQR.cjs} +1 -1
- package/dist/{Shape-XiTBfhJM.js → Shape-Bw52scDY.js} +1 -1
- package/dist/{Shape-D6jrLLku.cjs → Shape-yv-533z4.cjs} +1 -1
- package/dist/Slicer-CnyR7m1m.cjs +1 -0
- package/dist/{Slicer-BMvzmCKt.js → Slicer-eP9UH3h4.js} +125 -111
- package/dist/{Title-Ahj4TYHa.cjs → Title-BOtOowG-.cjs} +1 -1
- package/dist/{Title-DJ2FNrSN.js → Title-vxOwL9mI.js} +1 -1
- package/dist/{Tooltip-XhevgJmm.cjs → Tooltip-B25UdCt3.cjs} +1 -1
- package/dist/{Tooltip-CQpXRqRC.js → Tooltip-FDQ6j0dy.js} +1 -1
- package/dist/{index-D2epy0rJ.js → index-Bkzd7TEp.js} +170 -162
- package/dist/index-BzFQHG8B.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +10 -0
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useNestedProp-B-NmF2LO.cjs → useNestedProp-BU19Uk2G.cjs} +1 -1
- package/dist/{useNestedProp-C_ZrJBd9.js → useNestedProp-BjKkGjnV.js} +1 -1
- package/dist/{usePrinter-B6qtXaHk.js → usePrinter-BO99ut-7.js} +1 -1
- package/dist/{usePrinter-DN-6Hoh5.cjs → usePrinter-BY2kEF_E.cjs} +1 -1
- package/dist/{vue-data-ui-vegY0BJm.js → vue-data-ui-9X87OiUw.js} +57 -57
- package/dist/{vue-data-ui-DlNasA0G.cjs → vue-data-ui-C4vMufw3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D-0SSMOt.js → vue-ui-3d-bar-BQs0ss6E.js} +7 -7
- package/dist/{vue-ui-3d-bar-CqRRjlUU.cjs → vue-ui-3d-bar-DW_P_GEm.cjs} +1 -1
- package/dist/{vue-ui-accordion-BaV9R6cy.cjs → vue-ui-accordion-D9rDPTxC.cjs} +1 -1
- package/dist/{vue-ui-accordion-DzTB2FL0.js → vue-ui-accordion-Dq8PnOQI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-_eo2DGen.js → vue-ui-age-pyramid-BtQBOmuj.js} +8 -8
- package/dist/{vue-ui-age-pyramid-Bx4BuL3K.cjs → vue-ui-age-pyramid-w1cHqmfP.cjs} +1 -1
- package/dist/{vue-ui-annotator-CDZtr6tp.cjs → vue-ui-annotator-DN8dHbpa.cjs} +1 -1
- package/dist/{vue-ui-annotator-8j2dJ0CU.js → vue-ui-annotator-yL2aaXSM.js} +1 -1
- package/dist/{vue-ui-candlestick-NypxP0Uu.cjs → vue-ui-candlestick-Bb3gE99L.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CsF7OSvJ.js → vue-ui-candlestick-DvI-paAZ.js} +9 -9
- package/dist/{vue-ui-carousel-table-CMHd2i-6.js → vue-ui-carousel-table-CFOGiUYF.js} +4 -4
- package/dist/{vue-ui-carousel-table-CV0eVeRd.cjs → vue-ui-carousel-table-DrnpUyMB.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B9miwyAN.cjs → vue-ui-chestnut--s6irU0q.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CVftKftk.js → vue-ui-chestnut-BsAh9hFC.js} +6 -6
- package/dist/{vue-ui-cursor-Bsrt107X.cjs → vue-ui-cursor-B-XJpQPg.cjs} +1 -1
- package/dist/{vue-ui-cursor-wujy8n_T.js → vue-ui-cursor-C4ReYD2O.js} +2 -2
- package/dist/{vue-ui-dashboard-Cvy0gI52.js → vue-ui-dashboard-B9vNbg0W.js} +2 -2
- package/dist/{vue-ui-dashboard-BCN0BhjL.cjs → vue-ui-dashboard-DRPAfzVQ.cjs} +1 -1
- package/dist/{vue-ui-digits-J-WrKKHg.js → vue-ui-digits-BWo3eCH7.js} +2 -2
- package/dist/{vue-ui-digits-CnHgzHPI.cjs → vue-ui-digits-DMXN0q7k.cjs} +1 -1
- package/dist/{vue-ui-donut-CZ1iKZq6.cjs → vue-ui-donut-B0iDrljg.cjs} +1 -1
- package/dist/{vue-ui-donut-BOhWcHY_.js → vue-ui-donut-Cel6UjXl.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DuY2883r.cjs → vue-ui-donut-evolution-D94iUNlt.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CSSYuoti.js → vue-ui-donut-evolution-daM3GjWu.js} +9 -9
- package/dist/{vue-ui-dumbbell-i9QcsSVO.cjs → vue-ui-dumbbell-AimehlIj.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Cm0Rp_6W.js → vue-ui-dumbbell-DY_AhNS1.js} +8 -8
- package/dist/{vue-ui-flow-DXCBGdQT.cjs → vue-ui-flow-BhnVwgW5.cjs} +1 -1
- package/dist/{vue-ui-flow-0m7a1NP7.js → vue-ui-flow-DHemHIqr.js} +7 -7
- package/dist/{vue-ui-galaxy-DCHEdZAl.js → vue-ui-galaxy-D8uc51fE.js} +9 -9
- package/dist/{vue-ui-galaxy-D6GyjAnX.cjs → vue-ui-galaxy-DlS-pSHI.cjs} +1 -1
- package/dist/{vue-ui-gauge-HcM2JJpg.js → vue-ui-gauge-BDP3AbQP.js} +5 -5
- package/dist/{vue-ui-gauge-wbHQGQro.cjs → vue-ui-gauge-DkgiaTIQ.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bfo_nUnZ.js → vue-ui-gizmo-Bw-drsvJ.js} +2 -2
- package/dist/{vue-ui-gizmo-B-zMyi1m.cjs → vue-ui-gizmo-d48XB9Y7.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CxIHmv0t.js → vue-ui-heatmap-D6rhUBIv.js} +8 -8
- package/dist/{vue-ui-heatmap-Du2vI5Ae.cjs → vue-ui-heatmap-qXivxpXK.cjs} +1 -1
- package/dist/{vue-ui-kpi-DibULfkp.js → vue-ui-kpi-CaJNQu-7.js} +3 -3
- package/dist/{vue-ui-kpi-BOe7-M9V.cjs → vue-ui-kpi-DYtYBfVS.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Bv7l-Kx3.cjs → vue-ui-mini-loader-Bd3n8Eh7.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-qFRhERid.js → vue-ui-mini-loader-C8WE9mmc.js} +2 -2
- package/dist/{vue-ui-molecule-4cIGPnWg.js → vue-ui-molecule-BJ78cyz2.js} +9 -9
- package/dist/{vue-ui-molecule-eOj3ZjvT.cjs → vue-ui-molecule-DCOIE2Oz.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BTe21WKk.js → vue-ui-mood-radar-BcKbxhUb.js} +9 -9
- package/dist/{vue-ui-mood-radar-tUFqqekd.cjs → vue-ui-mood-radar-xc7ZIj7B.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BigBLrFR.cjs → vue-ui-nested-donuts-1AnFMRQE.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BVzabOga.js → vue-ui-nested-donuts-DmqrKtK-.js} +9 -9
- package/dist/{vue-ui-onion-_ZC3vbIS.cjs → vue-ui-onion-B-CQQFDn.cjs} +1 -1
- package/dist/{vue-ui-onion-C3TAKqro.js → vue-ui-onion-B7-Luph_.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs → vue-ui-parallel-coordinate-plot-Cg7rXYJl.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CKoCQXqj.js → vue-ui-parallel-coordinate-plot-Cl2fIY0h.js} +11 -11
- package/dist/{vue-ui-quadrant-CKnyfJoi.js → vue-ui-quadrant-BMRu5C6_.js} +10 -10
- package/dist/{vue-ui-quadrant-B67wGTic.cjs → vue-ui-quadrant-DzqQM8zj.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DEjdx0AB.cjs → vue-ui-quick-chart-D6Y5lQZz.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DZDYYnsI.js → vue-ui-quick-chart-bdjkTZCJ.js} +7 -7
- package/dist/{vue-ui-radar-Cm_QkYGb.cjs → vue-ui-radar-CmIznCHB.cjs} +1 -1
- package/dist/{vue-ui-radar-v9yayJxu.js → vue-ui-radar-DUBmmYCM.js} +10 -10
- package/dist/{vue-ui-rating-DV4cCZbB.cjs → vue-ui-rating-D353kmjW.cjs} +1 -1
- package/dist/{vue-ui-rating-Cc_N7qbe.js → vue-ui-rating-vn6QGQ1T.js} +2 -2
- package/dist/{vue-ui-relation-circle-DcpIVbI6.cjs → vue-ui-relation-circle-Dd_nf_ni.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Clqo4kkb.js → vue-ui-relation-circle-Enjx6oV8.js} +5 -5
- package/dist/{vue-ui-rings-DTn3t8Ku.cjs → vue-ui-rings-BggXdDcB.cjs} +1 -1
- package/dist/{vue-ui-rings-D27xNq9q.js → vue-ui-rings-D3n403nM.js} +9 -9
- package/dist/{vue-ui-scatter-CXbrqLFm.cjs → vue-ui-scatter-C5kTB_at.cjs} +1 -1
- package/dist/{vue-ui-scatter-C07Mon-6.js → vue-ui-scatter-D8gjIVvT.js} +10 -10
- package/dist/{vue-ui-screenshot-CsxqbqlJ.js → vue-ui-screenshot-BOtaOWHH.js} +1 -1
- package/dist/{vue-ui-screenshot-D8TAvQYN.cjs → vue-ui-screenshot-BOtri9ZP.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BLiYyX95.js → vue-ui-skeleton-B1pWkVPT.js} +2 -2
- package/dist/{vue-ui-skeleton-Br1K3exH.cjs → vue-ui-skeleton-B_ed6BaF.cjs} +1 -1
- package/dist/{vue-ui-smiley-CR_TkSYT.cjs → vue-ui-smiley-BHwhptXa.cjs} +1 -1
- package/dist/{vue-ui-smiley-BUHatT3Z.js → vue-ui-smiley-Fx2vCfWl.js} +2 -2
- package/dist/{vue-ui-spark-trend-GY2CfYRt.js → vue-ui-spark-trend-BbGJLy6v.js} +4 -4
- package/dist/{vue-ui-spark-trend-CnUz6s1m.cjs → vue-ui-spark-trend-DYeF_f9D.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-tdgek1gv.js → vue-ui-sparkbar-D4zOXsmw.js} +3 -3
- package/dist/{vue-ui-sparkbar-DaFwUA6Z.cjs → vue-ui-sparkbar-waCPID8a.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-D8P01Hem.cjs → vue-ui-sparkgauge-ByLoId02.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-1zu5KmTA.js → vue-ui-sparkgauge-CrOeVBM6.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-mg6yuwLH.cjs → vue-ui-sparkhistogram-Du-8Djku.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-b68QStxA.js → vue-ui-sparkhistogram-m8HxSpNJ.js} +4 -4
- package/dist/{vue-ui-sparkline-CAqav9Gn.cjs → vue-ui-sparkline-Ccq4xp69.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CMmtp8MK.js → vue-ui-sparkline-KMDtu_Z0.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DOrquZvw.cjs → vue-ui-sparkstackbar-BbG_IuZ6.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Cz8tOM3m.js → vue-ui-sparkstackbar-D3YWcJ_H.js} +3 -3
- package/dist/{vue-ui-stackbar-DeQkP1dj.js → vue-ui-stackbar-D6oKKqGM.js} +10 -10
- package/dist/{vue-ui-stackbar-DUa5F_Zl.cjs → vue-ui-stackbar-DlfuJps0.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-vqOCzdFV.js → vue-ui-strip-plot-BbAVQ73Y.js} +9 -9
- package/dist/{vue-ui-strip-plot-KNL9ToYG.cjs → vue-ui-strip-plot-CtJyMV8c.cjs} +1 -1
- package/dist/{vue-ui-table-BCdHNku5.cjs → vue-ui-table-B1feGzci.cjs} +1 -1
- package/dist/{vue-ui-table-DDdVqdHt.js → vue-ui-table-C3fDr-79.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DQg_jtYq.js → vue-ui-table-heatmap-Bs11u_Bn.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BJDnZMZN.cjs → vue-ui-table-heatmap-DTTq642Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Bg-VFq7X.js → vue-ui-table-sparkline-BmnqHZCN.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D8DJxb5J.cjs → vue-ui-table-sparkline-C9v0ZCRY.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CajBbbYc.js → vue-ui-thermometer-BF0EfLSS.js} +5 -5
- package/dist/{vue-ui-thermometer-eYM8DX7u.cjs → vue-ui-thermometer-DH4J5XrN.cjs} +1 -1
- package/dist/{vue-ui-timer-RclP4Tql.cjs → vue-ui-timer-BoF6_mg_.cjs} +1 -1
- package/dist/{vue-ui-timer-D3VRVK-8.js → vue-ui-timer-Dex5u9Ug.js} +4 -4
- package/dist/{vue-ui-tiremarks-Bc8bBBAw.cjs → vue-ui-tiremarks-DEhFA_QA.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BT0k_3xi.js → vue-ui-tiremarks-i2bIrejU.js} +5 -5
- package/dist/{vue-ui-treemap-BjWDt2b2.cjs → vue-ui-treemap-BXfhAmfw.cjs} +1 -1
- package/dist/{vue-ui-treemap-DMhe3zCm.js → vue-ui-treemap-CkHKUr9H.js} +9 -9
- package/dist/{vue-ui-vertical-bar-DWzafNBH.cjs → vue-ui-vertical-bar-Co4Vz7W1.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-hH9R9V-K.js → vue-ui-vertical-bar-Ui-eKo2G.js} +9 -9
- package/dist/{vue-ui-waffle-BvYE9hAY.cjs → vue-ui-waffle-DJIU32yG.cjs} +1 -1
- package/dist/{vue-ui-waffle-DnNd6Iba.js → vue-ui-waffle-IjZAL-JJ.js} +9 -9
- package/dist/{vue-ui-wheel-Bx9_m-7W.js → vue-ui-wheel-CEyocXra.js} +5 -5
- package/dist/{vue-ui-wheel-CVBmY6h7.cjs → vue-ui-wheel-WTP6VSQg.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DUk0Xt8q.js → vue-ui-word-cloud-CanNB33d.js} +7 -7
- package/dist/{vue-ui-word-cloud-3R-mYkIW.cjs → vue-ui-word-cloud-Cg-5NUED.cjs} +1 -1
- package/dist/vue-ui-xy-B5Wip8Yp.cjs +3 -0
- package/dist/{vue-ui-xy-FtaqoNK8.js → vue-ui-xy-Ea4QdEJG.js} +376 -374
- package/dist/{vue-ui-xy-canvas-Bp4PTl_E.js → vue-ui-xy-canvas-CtYuW5vo.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Ctw_3PzN.cjs → vue-ui-xy-canvas-DQCerSdP.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Slicer-sZ-DArc4.cjs +0 -1
- package/dist/index-CVgBMJU6.cjs +0 -4
- package/dist/vue-ui-xy-rX-aml0b.cjs +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { p as Q } from "./pdf-97UbtKC2.js";
|
|
2
|
-
import { U as K, s as j } from "./usePrinter-
|
|
3
|
-
import { c as J, a as $, t as ee, z as te, p as ae, T as X, N as T, f as Z, I as ie, F as
|
|
4
|
-
import { D as Oe } from "./DataTable-
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as ze } from "./Shape-
|
|
8
|
-
import Me from "./BaseIcon-
|
|
9
|
-
import Te from "./vue-ui-table-sparkline-
|
|
10
|
-
import Pe from "./vue-ui-skeleton-
|
|
11
|
-
import { S as Ve } from "./Slicer-
|
|
12
|
-
import Re from "./vue-ui-accordion-
|
|
13
|
-
import { u as U } from "./useNestedProp-
|
|
14
|
-
import { resolveComponent as P, openBlock as
|
|
2
|
+
import { U as K, s as j } from "./usePrinter-BO99ut-7.js";
|
|
3
|
+
import { c as J, a as $, t as ee, z as te, p as ae, T as X, N as T, f as Z, I as ie, F as le, i as re, Z as se, W as ne, _ as ce, v as he, $ as oe, d as de, B as ue, b as ge, q as fe, Q as Ne, a0 as me, r as Ie, e as xe, y as be, L as Fe, x as _e, a1 as ye, o as Ae, s as Le, w as Ce, E as Se, A as ke, u as we } from "./index-Bkzd7TEp.js";
|
|
4
|
+
import { D as Oe } from "./DataTable-BLGE-au6.js";
|
|
5
|
+
import { _ as Ge } from "./Title-vxOwL9mI.js";
|
|
6
|
+
import { _ as ve, u as pe } from "./Tooltip-FDQ6j0dy.js";
|
|
7
|
+
import { _ as ze } from "./Shape-Bw52scDY.js";
|
|
8
|
+
import Me from "./BaseIcon-dAh8thfs.js";
|
|
9
|
+
import Te from "./vue-ui-table-sparkline-BmnqHZCN.js";
|
|
10
|
+
import Pe from "./vue-ui-skeleton-B1pWkVPT.js";
|
|
11
|
+
import { S as Ve } from "./Slicer-eP9UH3h4.js";
|
|
12
|
+
import Re from "./vue-ui-accordion-Dq8PnOQI.js";
|
|
13
|
+
import { u as U } from "./useNestedProp-BjKkGjnV.js";
|
|
14
|
+
import { resolveComponent as P, openBlock as l, createElementBlock as r, normalizeClass as M, normalizeStyle as A, createBlock as V, createCommentVNode as o, createSlots as De, withCtx as p, renderSlot as O, normalizeProps as B, guardReactiveProps as Y, createElementVNode as u, Fragment as N, renderList as I, toDisplayString as S, createVNode as q, withDirectives as We, vModelCheckbox as He, createTextVNode as Ee } from "vue";
|
|
15
15
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const Ye = J(), Xe = {
|
|
17
17
|
name: "vue-ui-xy",
|
|
@@ -32,8 +32,8 @@ const Ye = J(), Xe = {
|
|
|
32
32
|
components: {
|
|
33
33
|
DataTable: Oe,
|
|
34
34
|
Shape: ze,
|
|
35
|
-
Title:
|
|
36
|
-
Tooltip:
|
|
35
|
+
Title: Ge,
|
|
36
|
+
Tooltip: ve,
|
|
37
37
|
UserOptions: K,
|
|
38
38
|
BaseIcon: Me,
|
|
39
39
|
TableSparkline: Te,
|
|
@@ -50,7 +50,7 @@ const Ye = J(), Xe = {
|
|
|
50
50
|
index: f
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
-
const a = Math.max(...this.dataset.map((h) => h.series.length)),
|
|
53
|
+
const a = Math.max(...this.dataset.map((h) => h.series.length)), n = {
|
|
54
54
|
start: 0,
|
|
55
55
|
end: a
|
|
56
56
|
};
|
|
@@ -100,7 +100,7 @@ const Ye = J(), Xe = {
|
|
|
100
100
|
step: 0,
|
|
101
101
|
tableStep: 0,
|
|
102
102
|
titleStep: 0,
|
|
103
|
-
slicer:
|
|
103
|
+
slicer: n,
|
|
104
104
|
__to__: null,
|
|
105
105
|
maxX: a,
|
|
106
106
|
showSparklineTable: !0,
|
|
@@ -121,7 +121,7 @@ const Ye = J(), Xe = {
|
|
|
121
121
|
},
|
|
122
122
|
watch: {
|
|
123
123
|
dataset: {
|
|
124
|
-
handler(a,
|
|
124
|
+
handler(a, n) {
|
|
125
125
|
this.maxX = Math.max(...this.dataset.map((h) => h.series.length)), this.slicer = {
|
|
126
126
|
start: 0,
|
|
127
127
|
end: this.maxX
|
|
@@ -130,7 +130,7 @@ const Ye = J(), Xe = {
|
|
|
130
130
|
deep: !0
|
|
131
131
|
},
|
|
132
132
|
config: {
|
|
133
|
-
handler(a,
|
|
133
|
+
handler(a, n) {
|
|
134
134
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1;
|
|
135
135
|
},
|
|
136
136
|
deep: !0
|
|
@@ -139,8 +139,8 @@ const Ye = J(), Xe = {
|
|
|
139
139
|
computed: {
|
|
140
140
|
minimap() {
|
|
141
141
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
142
|
-
const a = this.datasetWithIds.filter((i) => !this.segregatedSeries.includes(i.id)),
|
|
143
|
-
for (let i = 0; i <
|
|
142
|
+
const a = this.datasetWithIds.filter((i) => !this.segregatedSeries.includes(i.id)), n = Math.max(...a.map((i) => i.series.length)), h = [];
|
|
143
|
+
for (let i = 0; i < n; i += 1)
|
|
144
144
|
h.push(a.map((e) => e.series[i] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
|
|
145
145
|
const f = Math.min(...h);
|
|
146
146
|
return h.map((i) => i + (f < 0 ? Math.abs(f) : 0));
|
|
@@ -167,7 +167,7 @@ const Ye = J(), Xe = {
|
|
|
167
167
|
yOffset: i.yOffset || 0,
|
|
168
168
|
individualHeight: i.individualHeight || this.drawingArea.height,
|
|
169
169
|
autoScaleYLabels: i.autoScaleYLabels
|
|
170
|
-
})),
|
|
170
|
+
})), n = this.barSet.map((i) => ({
|
|
171
171
|
name: i.name,
|
|
172
172
|
color: i.color,
|
|
173
173
|
scale: i.individualScale,
|
|
@@ -190,8 +190,8 @@ const Ye = J(), Xe = {
|
|
|
190
190
|
id: i.id,
|
|
191
191
|
yOffset: i.yOffset || 0,
|
|
192
192
|
individualHeight: i.individualHeight || this.drawingArea.height
|
|
193
|
-
})), f = [...a, ...
|
|
194
|
-
return [...a, ...
|
|
193
|
+
})), f = [...a, ...n, ...h].flatMap((i) => i).length;
|
|
194
|
+
return [...a, ...n, ...h].flatMap((i, e) => ({
|
|
195
195
|
id: i.id,
|
|
196
196
|
scaleLabel: i.scaleLabel,
|
|
197
197
|
name: i.name,
|
|
@@ -226,9 +226,9 @@ const Ye = J(), Xe = {
|
|
|
226
226
|
},
|
|
227
227
|
highlightAreas() {
|
|
228
228
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
229
|
-
return this.FINAL_CONFIG.chart.highlightArea.map((
|
|
230
|
-
...
|
|
231
|
-
span:
|
|
229
|
+
return this.FINAL_CONFIG.chart.highlightArea.map((n) => ({
|
|
230
|
+
...n,
|
|
231
|
+
span: n.from === n.to ? 1 : n.to < n.from ? 0 : n.to - n.from + 1
|
|
232
232
|
}));
|
|
233
233
|
const a = this.FINAL_CONFIG.chart.highlightArea;
|
|
234
234
|
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
@@ -243,21 +243,21 @@ const Ye = J(), Xe = {
|
|
|
243
243
|
return this.niceScale.max + this.relativeZero;
|
|
244
244
|
},
|
|
245
245
|
datasetWithIds() {
|
|
246
|
-
return this.useSafeValues ? this.dataset.map((a,
|
|
246
|
+
return this.useSafeValues ? this.dataset.map((a, n) => ({
|
|
247
247
|
...a,
|
|
248
|
-
id: `uniqueId_${
|
|
248
|
+
id: `uniqueId_${n}`
|
|
249
249
|
})) : this.dataset;
|
|
250
250
|
},
|
|
251
251
|
safeDataset() {
|
|
252
|
-
return this.useSafeValues ? this.dataset.map((a,
|
|
252
|
+
return this.useSafeValues ? this.dataset.map((a, n) => ({
|
|
253
253
|
...a,
|
|
254
254
|
series: a.series.map((h) => this.isSafeValue(h) ? h : null).slice(this.slicer.start, this.slicer.end),
|
|
255
|
-
color: this.convertColorToHex(a.color ? a.color : this.customPalette[
|
|
256
|
-
id: `uniqueId_${
|
|
255
|
+
color: this.convertColorToHex(a.color ? a.color : this.customPalette[n] ? this.customPalette[n] : this.palette[n]),
|
|
256
|
+
id: `uniqueId_${n}`
|
|
257
257
|
})) : this.dataset;
|
|
258
258
|
},
|
|
259
259
|
relativeDataset() {
|
|
260
|
-
return this.safeDataset.map((a,
|
|
260
|
+
return this.safeDataset.map((a, n) => ({
|
|
261
261
|
...a,
|
|
262
262
|
series: a.series.map((h) => h + this.relativeZero),
|
|
263
263
|
absoluteValues: a.series
|
|
@@ -265,12 +265,12 @@ const Ye = J(), Xe = {
|
|
|
265
265
|
},
|
|
266
266
|
tableSparklineDataset() {
|
|
267
267
|
return this.relativeDataset.map((a) => {
|
|
268
|
-
const
|
|
268
|
+
const n = a.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
|
|
269
269
|
return {
|
|
270
270
|
id: a.id,
|
|
271
271
|
name: a.name,
|
|
272
272
|
color: a.color,
|
|
273
|
-
values: this.fillArray(this.maxSeries,
|
|
273
|
+
values: this.fillArray(this.maxSeries, n)
|
|
274
274
|
};
|
|
275
275
|
});
|
|
276
276
|
},
|
|
@@ -301,8 +301,8 @@ const Ye = J(), Xe = {
|
|
|
301
301
|
};
|
|
302
302
|
},
|
|
303
303
|
absoluteDataset() {
|
|
304
|
-
return this.safeDataset.map((a,
|
|
305
|
-
absoluteIndex:
|
|
304
|
+
return this.safeDataset.map((a, n) => ({
|
|
305
|
+
absoluteIndex: n,
|
|
306
306
|
...a,
|
|
307
307
|
series: a.series.map((h) => h + this.relativeZero),
|
|
308
308
|
absoluteValues: a.series,
|
|
@@ -311,7 +311,7 @@ const Ye = J(), Xe = {
|
|
|
311
311
|
}));
|
|
312
312
|
},
|
|
313
313
|
barSet() {
|
|
314
|
-
return this.activeSeriesWithStackRatios.filter((a) => a.type === "bar").map((a,
|
|
314
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "bar").map((a, n) => {
|
|
315
315
|
this.checkAutoScaleError(a);
|
|
316
316
|
const h = Math.min(...a.absoluteValues.filter((d) => ![null, void 0].includes(d))), f = Math.max(...a.absoluteValues.filter((d) => ![null, void 0].includes(d))), e = {
|
|
317
317
|
ratios: a.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - h) / (f - h)),
|
|
@@ -320,40 +320,40 @@ const Ye = J(), Xe = {
|
|
|
320
320
|
}, x = {
|
|
321
321
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
322
322
|
min: a.scaleMin || Math.min(...a.absoluteValues.filter((d) => ![void 0, null].includes(d))) > 0 ? 0 : Math.min(...a.absoluteValues.filter((d) => ![null, void 0].includes(d)))
|
|
323
|
-
}, _ = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, L = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * L : x.max, _), C = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * L : e.valueMax, _), z = m.min >= 0 ? 0 : Math.abs(m.min), k = 0,
|
|
324
|
-
const
|
|
323
|
+
}, _ = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, L = 1.0000001, m = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * L : x.max, _), C = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * L : e.valueMax, _), z = m.min >= 0 ? 0 : Math.abs(m.min), k = 0, v = m.max + z, G = C.max + Math.abs(k), F = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, t = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, c = this.drawingArea.bottom - F - t * z / v, s = this.drawingArea.bottom - F - t * k / G, g = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, R = a.series.map((d, b) => {
|
|
324
|
+
const H = this.mutableConfig.useIndividualScale ? (a.absoluteValues[b] + z) / v : this.ratioToMax(d), E = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * b : this.drawingArea.left + this.slot.bar * n + this.slot.bar * b * g - this.barSlot / 2 - n * this.barPeriodGap;
|
|
325
325
|
return {
|
|
326
|
-
yOffset: this.checkNaN(
|
|
326
|
+
yOffset: this.checkNaN(F),
|
|
327
327
|
individualHeight: this.checkNaN(t),
|
|
328
328
|
x: this.checkNaN(E),
|
|
329
|
-
y: this.drawingArea.bottom -
|
|
330
|
-
value: a.absoluteValues[
|
|
329
|
+
y: this.drawingArea.bottom - F - t * H,
|
|
330
|
+
value: a.absoluteValues[b],
|
|
331
331
|
zeroPosition: this.checkNaN(c),
|
|
332
|
-
individualMax: this.checkNaN(
|
|
333
|
-
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[
|
|
332
|
+
individualMax: this.checkNaN(v),
|
|
333
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
334
334
|
};
|
|
335
|
-
}),
|
|
336
|
-
const
|
|
335
|
+
}), W = a.absoluteValues.map((d) => C.min >= 0 ? (d - Math.abs(C.min)) / (C.max - Math.abs(C.min)) : (d + Math.abs(C.min)) / (C.max + Math.abs(C.min))), D = a.series.map((d, b) => {
|
|
336
|
+
const H = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * b : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * n + this.slot.bar * b * this.absoluteDataset.filter((E) => E.type === "bar").filter((E) => !this.segregatedSeries.includes(E.id)).length;
|
|
337
337
|
return {
|
|
338
|
-
yOffset: this.checkNaN(
|
|
338
|
+
yOffset: this.checkNaN(F),
|
|
339
339
|
individualHeight: this.checkNaN(t),
|
|
340
|
-
x: this.checkNaN(
|
|
341
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(
|
|
342
|
-
value: a.absoluteValues[
|
|
340
|
+
x: this.checkNaN(H),
|
|
341
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(t) * W[b] || 0)),
|
|
342
|
+
value: a.absoluteValues[b],
|
|
343
343
|
zeroPosition: this.checkNaN(c),
|
|
344
|
-
individualMax: this.checkNaN(
|
|
345
|
-
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[
|
|
344
|
+
individualMax: this.checkNaN(v),
|
|
345
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
346
346
|
};
|
|
347
347
|
}), y = m.ticks.map((d) => ({
|
|
348
|
-
y: d >= 0 ? c - t * (d /
|
|
348
|
+
y: d >= 0 ? c - t * (d / v) : c + t * Math.abs(d) / v,
|
|
349
349
|
value: d,
|
|
350
350
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
351
351
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
352
352
|
datapoint: a
|
|
353
353
|
})), w = C.ticks.map((d) => {
|
|
354
|
-
const
|
|
354
|
+
const b = (d - C.min) / (C.max - C.min);
|
|
355
355
|
return {
|
|
356
|
-
y: d >= 0 ?
|
|
356
|
+
y: d >= 0 ? s - t * b : s + t * b,
|
|
357
357
|
value: d,
|
|
358
358
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
359
359
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -362,13 +362,13 @@ const Ye = J(), Xe = {
|
|
|
362
362
|
});
|
|
363
363
|
return {
|
|
364
364
|
...a,
|
|
365
|
-
yOffset:
|
|
365
|
+
yOffset: F,
|
|
366
366
|
autoScaleYLabels: w,
|
|
367
367
|
individualHeight: t,
|
|
368
368
|
scaleYLabels: a.autoScaling ? w : y,
|
|
369
369
|
individualScale: a.autoScaling ? C : m,
|
|
370
|
-
individualMax: a.autoScaling ?
|
|
371
|
-
zeroPosition: a.autoScaling ?
|
|
370
|
+
individualMax: a.autoScaling ? G : v,
|
|
371
|
+
zeroPosition: a.autoScaling ? s : c,
|
|
372
372
|
plots: a.autoScaling ? D : R
|
|
373
373
|
};
|
|
374
374
|
});
|
|
@@ -382,39 +382,41 @@ const Ye = J(), Xe = {
|
|
|
382
382
|
lineSet() {
|
|
383
383
|
return this.activeSeriesWithStackRatios.filter((a) => a.type === "line").map((a) => {
|
|
384
384
|
this.checkAutoScaleError(a);
|
|
385
|
-
const
|
|
386
|
-
ratios: a.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d -
|
|
387
|
-
valueMin:
|
|
385
|
+
const n = Math.min(...a.absoluteValues.filter((d) => ![void 0, null].includes(d))), h = Math.max(...a.absoluteValues.filter((d) => ![void 0, null].includes(d))) || 1, i = {
|
|
386
|
+
ratios: a.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - n) / (h - n)),
|
|
387
|
+
valueMin: n,
|
|
388
388
|
valueMax: h
|
|
389
389
|
}, e = {
|
|
390
390
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
391
391
|
min: a.scaleMin || (Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues))
|
|
392
|
-
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), m = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), C = L.min >= 0 ? 0 : Math.abs(L.min), z = 0, k = L.max + Math.abs(C),
|
|
393
|
-
const
|
|
392
|
+
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), m = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), C = L.min >= 0 ? 0 : Math.abs(L.min), z = 0, k = L.max + Math.abs(C), v = m.max + Math.abs(z), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, t = this.drawingArea.bottom - G - F * C / k, c = this.drawingArea.bottom - G - F * z / v, s = a.series.map((d, b) => {
|
|
393
|
+
const H = this.mutableConfig.useIndividualScale ? (a.absoluteValues[b] + Math.abs(C)) / k : this.ratioToMax(d);
|
|
394
394
|
return {
|
|
395
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
396
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
397
|
-
value: a.absoluteValues[
|
|
398
|
-
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[
|
|
395
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
396
|
+
y: this.checkNaN(this.drawingArea.bottom - G - F * H),
|
|
397
|
+
value: a.absoluteValues[b],
|
|
398
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
399
399
|
};
|
|
400
|
-
}), g = a.absoluteValues.map((d) => m.min >= 0 ? (d - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (d + Math.abs(m.min)) / (m.max + Math.abs(m.min))), R = a.series.map((d,
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
400
|
+
}), g = a.absoluteValues.map((d) => m.min >= 0 ? (d - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (d + Math.abs(m.min)) / (m.max + Math.abs(m.min))), R = a.series.map((d, b) => [void 0, null].includes(a.absoluteValues[b]) ? {
|
|
401
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
402
|
+
y: t,
|
|
403
|
+
value: a.absoluteValues[b],
|
|
404
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
405
|
+
} : {
|
|
406
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
407
|
+
y: this.checkNaN(this.drawingArea.bottom - G - (F * g[b] || 0)),
|
|
408
|
+
value: a.absoluteValues[b],
|
|
409
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
410
|
+
}), W = this.createSmoothPath(s), D = this.createSmoothPath(R), y = L.ticks.map((d) => ({
|
|
411
|
+
y: d >= 0 ? t - F * (d / k) : t + F * Math.abs(d) / k,
|
|
410
412
|
value: d,
|
|
411
413
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
412
414
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
413
415
|
datapoint: a
|
|
414
416
|
})), w = m.ticks.map((d) => {
|
|
415
|
-
const
|
|
417
|
+
const b = (d - m.min) / (m.max - m.min);
|
|
416
418
|
return {
|
|
417
|
-
y: d >= 0 ? c -
|
|
419
|
+
y: d >= 0 ? c - F * b : c + F * b,
|
|
418
420
|
value: d,
|
|
419
421
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
420
422
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -423,44 +425,44 @@ const Ye = J(), Xe = {
|
|
|
423
425
|
});
|
|
424
426
|
return {
|
|
425
427
|
...a,
|
|
426
|
-
yOffset:
|
|
428
|
+
yOffset: G,
|
|
427
429
|
autoScaleYLabels: w,
|
|
428
|
-
individualHeight:
|
|
430
|
+
individualHeight: F,
|
|
429
431
|
scaleYLabels: a.autoScaling ? w : y,
|
|
430
432
|
individualScale: a.autoScaling ? m : L,
|
|
431
|
-
individualMax: a.autoScaling ?
|
|
433
|
+
individualMax: a.autoScaling ? v : k,
|
|
432
434
|
zeroPosition: a.autoScaling ? c : t,
|
|
433
|
-
curve: a.autoScaling ? D :
|
|
434
|
-
plots: a.autoScaling ? R :
|
|
435
|
-
area: a.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(a.autoScaling ? R :
|
|
435
|
+
curve: a.autoScaling ? D : W,
|
|
436
|
+
plots: a.autoScaling ? R : s,
|
|
437
|
+
area: a.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(a.autoScaling ? R : s, a.autoScaling ? c : t) : this.createArea(s) : ""
|
|
436
438
|
};
|
|
437
439
|
});
|
|
438
440
|
},
|
|
439
441
|
plotSet() {
|
|
440
442
|
return this.activeSeriesWithStackRatios.filter((a) => a.type === "plot").map((a) => {
|
|
441
443
|
this.checkAutoScaleError(a);
|
|
442
|
-
const
|
|
443
|
-
ratios: a.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y -
|
|
444
|
-
valueMin:
|
|
444
|
+
const n = Math.min(...a.absoluteValues.filter((y) => ![null, void 0].includes(y))), h = Math.max(...a.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, i = {
|
|
445
|
+
ratios: a.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - n) / (h - n)),
|
|
446
|
+
valueMin: n,
|
|
445
447
|
valueMax: h
|
|
446
448
|
}, e = {
|
|
447
449
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
448
450
|
min: a.scaleMin || Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues)
|
|
449
|
-
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), m = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), C = L.min >= 0 ? 0 : Math.abs(L.min), z = 0, k = L.max + C,
|
|
451
|
+
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, L = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * _ : e.max, x), m = this.calculateNiceScaleWithExactExtremes(i.valueMin, i.valueMax === i.valueMin ? i.valueMax * _ : i.valueMax, x), C = L.min >= 0 ? 0 : Math.abs(L.min), z = 0, k = L.max + C, v = m.max + Math.abs(z), G = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, t = this.drawingArea.bottom - G - F * C / k, c = this.drawingArea.bottom - G - F * z / v, s = a.series.map((y, w) => {
|
|
450
452
|
const d = this.mutableConfig.useIndividualScale ? (a.absoluteValues[w] + Math.abs(C)) / k : this.ratioToMax(y);
|
|
451
453
|
return {
|
|
452
454
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * w),
|
|
453
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
455
|
+
y: this.checkNaN(this.drawingArea.bottom - G - F * d),
|
|
454
456
|
value: a.absoluteValues[w],
|
|
455
457
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
456
458
|
};
|
|
457
459
|
}), g = a.absoluteValues.map((y) => m.min >= 0 ? (y - Math.abs(m.min)) / (m.max - Math.abs(m.min)) : (y + Math.abs(m.min)) / (m.max + Math.abs(m.min))), R = a.series.map((y, w) => ({
|
|
458
460
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * w),
|
|
459
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
461
|
+
y: this.checkNaN(this.drawingArea.bottom - G - (F * g[w] || 0)),
|
|
460
462
|
value: a.absoluteValues[w],
|
|
461
463
|
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
462
|
-
})),
|
|
463
|
-
y: y >= 0 ? t -
|
|
464
|
+
})), W = L.ticks.map((y) => ({
|
|
465
|
+
y: y >= 0 ? t - F * (y / k) : t + F * Math.abs(y) / k,
|
|
464
466
|
value: y,
|
|
465
467
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
466
468
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -468,7 +470,7 @@ const Ye = J(), Xe = {
|
|
|
468
470
|
})), D = m.ticks.map((y) => {
|
|
469
471
|
const w = (y - m.min) / (m.max - m.min);
|
|
470
472
|
return {
|
|
471
|
-
y: y >= 0 ? c -
|
|
473
|
+
y: y >= 0 ? c - F * w : c + F * w,
|
|
472
474
|
value: y,
|
|
473
475
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
474
476
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -477,19 +479,19 @@ const Ye = J(), Xe = {
|
|
|
477
479
|
});
|
|
478
480
|
return {
|
|
479
481
|
...a,
|
|
480
|
-
yOffset:
|
|
482
|
+
yOffset: G,
|
|
481
483
|
autoScaleYLabels: D,
|
|
482
|
-
individualHeight:
|
|
483
|
-
scaleYLabels: a.autoScaling ? D :
|
|
484
|
+
individualHeight: F,
|
|
485
|
+
scaleYLabels: a.autoScaling ? D : W,
|
|
484
486
|
individualScale: a.autoScaling ? m : L,
|
|
485
|
-
individualMax: a.autoScaling ?
|
|
487
|
+
individualMax: a.autoScaling ? v : k,
|
|
486
488
|
zeroPosition: a.autoScaling ? c : t,
|
|
487
|
-
plots: a.autoScaling ? R :
|
|
489
|
+
plots: a.autoScaling ? R : s
|
|
488
490
|
};
|
|
489
491
|
});
|
|
490
492
|
},
|
|
491
493
|
drawingArea() {
|
|
492
|
-
const a = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((
|
|
494
|
+
const a = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((n) => !this.segregatedSeries.includes(n.id)).length * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
493
495
|
return {
|
|
494
496
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
495
497
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
@@ -505,7 +507,7 @@ const Ye = J(), Xe = {
|
|
|
505
507
|
min() {
|
|
506
508
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
507
509
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
508
|
-
const a = Math.min(...this.safeDataset.filter((
|
|
510
|
+
const a = Math.min(...this.safeDataset.filter((n) => !this.segregatedSeries.includes(n.id)).map((n) => Math.min(...n.series)));
|
|
509
511
|
return a > 0 ? 0 : a;
|
|
510
512
|
},
|
|
511
513
|
niceScale() {
|
|
@@ -525,7 +527,7 @@ const Ye = J(), Xe = {
|
|
|
525
527
|
};
|
|
526
528
|
},
|
|
527
529
|
barSlot() {
|
|
528
|
-
const a = this.safeDataset.filter((
|
|
530
|
+
const a = this.safeDataset.filter((n) => n.type === "bar").filter((n) => !this.segregatedSeries.includes(n.id)).length;
|
|
529
531
|
return this.drawingArea.width / this.maxSeries / a - this.barPeriodGap * a;
|
|
530
532
|
},
|
|
531
533
|
barPeriodGap() {
|
|
@@ -540,18 +542,18 @@ const Ye = J(), Xe = {
|
|
|
540
542
|
label: h.name,
|
|
541
543
|
color: h.color,
|
|
542
544
|
type: h.type
|
|
543
|
-
})),
|
|
545
|
+
})), n = [];
|
|
544
546
|
return this.timeLabels.forEach((h, f) => {
|
|
545
547
|
const i = [h];
|
|
546
548
|
this.relativeDataset.forEach((e) => {
|
|
547
549
|
i.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
548
|
-
}),
|
|
549
|
-
}), { head: a, body:
|
|
550
|
+
}), n.push(i);
|
|
551
|
+
}), { head: a, body: n };
|
|
550
552
|
},
|
|
551
553
|
dataTable() {
|
|
552
554
|
const a = this.FINAL_CONFIG.table.showSum;
|
|
553
|
-
let
|
|
554
|
-
a && (
|
|
555
|
+
let n = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
556
|
+
a && (n = n.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
555
557
|
let h = [];
|
|
556
558
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
557
559
|
const x = this.relativeDataset.map((_) => _.absoluteValues[e] ?? 0).reduce((_, L) => _ + L, 0);
|
|
@@ -585,7 +587,7 @@ const Ye = J(), Xe = {
|
|
|
585
587
|
},
|
|
586
588
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
587
589
|
}, i = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
588
|
-
return { head:
|
|
590
|
+
return { head: n, body: h, config: f, colNames: i };
|
|
589
591
|
},
|
|
590
592
|
dataTooltipSlot() {
|
|
591
593
|
return {
|
|
@@ -604,14 +606,14 @@ const Ye = J(), Xe = {
|
|
|
604
606
|
name: a.name,
|
|
605
607
|
color: a.color,
|
|
606
608
|
type: a.type,
|
|
607
|
-
value: a.absoluteValues.find((
|
|
609
|
+
value: a.absoluteValues.find((n, h) => h === this.selectedSerieIndex),
|
|
608
610
|
comments: a.comments || [],
|
|
609
611
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
610
612
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
611
613
|
}));
|
|
612
614
|
},
|
|
613
615
|
tooltipContent() {
|
|
614
|
-
let a = "",
|
|
616
|
+
let a = "", n = this.selectedSeries.map((i) => i.value).filter((i) => this.isSafeValue(i) && i !== null).reduce((i, e) => Math.abs(i) + Math.abs(e), 0);
|
|
615
617
|
const h = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
616
618
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
617
619
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -680,7 +682,7 @@ const Ye = J(), Xe = {
|
|
|
680
682
|
}),
|
|
681
683
|
{ datapoint: i }
|
|
682
684
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${Z({
|
|
683
|
-
v: this.checkNaN(Math.abs(i.value) /
|
|
685
|
+
v: this.checkNaN(Math.abs(i.value) / n * 100),
|
|
684
686
|
s: "%",
|
|
685
687
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
686
688
|
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && i.comments.length && i.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${i.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${i.color}">${i.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
@@ -715,8 +717,8 @@ const Ye = J(), Xe = {
|
|
|
715
717
|
},
|
|
716
718
|
methods: {
|
|
717
719
|
abbreviate: ie,
|
|
718
|
-
adaptColorToBackground:
|
|
719
|
-
applyDataLabel:
|
|
720
|
+
adaptColorToBackground: le,
|
|
721
|
+
applyDataLabel: re,
|
|
720
722
|
assignStackRatios: se,
|
|
721
723
|
calcLinearProgression: ne,
|
|
722
724
|
calculateNiceScaleWithExactExtremes: ce,
|
|
@@ -745,9 +747,9 @@ const Ye = J(), Xe = {
|
|
|
745
747
|
useMouse: pe,
|
|
746
748
|
useNestedProp: U,
|
|
747
749
|
getHighlightAreaPosition(a) {
|
|
748
|
-
const
|
|
750
|
+
const n = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (a.from - this.slicer.start), h = this.drawingArea.width / (this.slicer.end - this.slicer.start) * a.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * a.span;
|
|
749
751
|
return {
|
|
750
|
-
x:
|
|
752
|
+
x: n < this.drawingArea.left ? this.drawingArea.left : n,
|
|
751
753
|
width: h
|
|
752
754
|
};
|
|
753
755
|
},
|
|
@@ -755,34 +757,34 @@ const Ye = J(), Xe = {
|
|
|
755
757
|
const a = we().vue_ui_xy;
|
|
756
758
|
if (!Object.keys(this.config || {}).length)
|
|
757
759
|
return a;
|
|
758
|
-
const
|
|
760
|
+
const n = this.useNestedProp({
|
|
759
761
|
userConfig: this.config,
|
|
760
762
|
defaultConfig: a
|
|
761
763
|
});
|
|
762
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ?
|
|
764
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? n.chart.highlightArea = this.config.chart.highlightArea : n.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? n.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : n.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? n.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : n.chart.grid.labels.yAxis.scaleMax = null, n.theme ? {
|
|
763
765
|
...U({
|
|
764
|
-
userConfig: this.themes.vue_ui_xy[
|
|
765
|
-
defaultConfig:
|
|
766
|
+
userConfig: this.themes.vue_ui_xy[n.theme] || this.config,
|
|
767
|
+
defaultConfig: n
|
|
766
768
|
}),
|
|
767
|
-
customPalette: this.themePalettes[
|
|
768
|
-
} :
|
|
769
|
+
customPalette: this.themePalettes[n.theme] || this.palette
|
|
770
|
+
} : n;
|
|
769
771
|
},
|
|
770
772
|
prepareChart() {
|
|
771
773
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
772
774
|
componentName: "VueUiXy",
|
|
773
775
|
type: "dataset"
|
|
774
|
-
}) : this.dataset.forEach((a,
|
|
776
|
+
}) : this.dataset.forEach((a, n) => {
|
|
775
777
|
[null, void 0].includes(a.name) && this.error({
|
|
776
778
|
componentName: "VueUiXy",
|
|
777
779
|
type: "datasetSerieAttribute",
|
|
778
780
|
property: "name (string)",
|
|
779
|
-
index:
|
|
781
|
+
index: n
|
|
780
782
|
});
|
|
781
783
|
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((a) => {
|
|
782
|
-
a.series.forEach((
|
|
783
|
-
this.isSafeValue(
|
|
784
|
-
-----> The serie '${a.name}' contains the value '${
|
|
785
|
-
'${
|
|
784
|
+
a.series.forEach((n, h) => {
|
|
785
|
+
this.isSafeValue(n) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
786
|
+
-----> The serie '${a.name}' contains the value '${n}' at index ${h}.
|
|
787
|
+
'${n}' was converted to null to allow the chart to display.`);
|
|
786
788
|
});
|
|
787
789
|
}), this.mutableConfig = {
|
|
788
790
|
dataLabels: {
|
|
@@ -793,7 +795,7 @@ const Ye = J(), Xe = {
|
|
|
793
795
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
794
796
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
795
797
|
}, this.FINAL_CONFIG.responsive) {
|
|
796
|
-
const
|
|
798
|
+
const n = this.$refs.chart.parentNode, { height: h, width: f } = n.getBoundingClientRect();
|
|
797
799
|
let i = null, e = 0;
|
|
798
800
|
this.FINAL_CONFIG.chart.title.show && (i = this.$refs.chartTitle, e = i.getBoundingClientRect().height);
|
|
799
801
|
let x = null, _ = 0;
|
|
@@ -802,7 +804,7 @@ const Ye = J(), Xe = {
|
|
|
802
804
|
this.FINAL_CONFIG.chart.legend.show && (L = this.$refs.chartLegend, m = L.getBoundingClientRect().height), this.height = h - e - m - _, this.width = f, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((z) => {
|
|
803
805
|
for (const k of z)
|
|
804
806
|
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (_ = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (m = this.$refs.chartLegend.getBoundingClientRect().height), this.height = k.contentBoxSize[0].blockSize - e - m - _ - 24, this.width = k.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
805
|
-
}).observe(
|
|
807
|
+
}).observe(n);
|
|
806
808
|
} else
|
|
807
809
|
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
|
|
808
810
|
},
|
|
@@ -865,24 +867,24 @@ const Ye = J(), Xe = {
|
|
|
865
867
|
},
|
|
866
868
|
createArea(a) {
|
|
867
869
|
if (!a[0]) return [-10, -10, "", -10, -10];
|
|
868
|
-
const
|
|
870
|
+
const n = { x: a[0].x, y: this.zero }, h = { x: a.at(-1).x, y: this.zero }, f = [];
|
|
869
871
|
return a.forEach((i) => {
|
|
870
872
|
f.push(`${i.x},${i.y} `);
|
|
871
|
-
}), [
|
|
873
|
+
}), [n.x, n.y, ...f, h.x, h.y].toString();
|
|
872
874
|
},
|
|
873
|
-
createIndividualArea(a,
|
|
875
|
+
createIndividualArea(a, n) {
|
|
874
876
|
if (!a[0]) return [-10, -10, "", -10, -10];
|
|
875
|
-
const h = { x: a[0] ? a[0].x : Math.min(...a.filter((e) => !!e).map((e) => e.x)), y:
|
|
877
|
+
const h = { x: a[0] ? a[0].x : Math.min(...a.filter((e) => !!e).map((e) => e.x)), y: n }, f = { x: a.at(-1) ? a.at(-1).x : Math.min(...a.filter((e) => !!e).map((e) => e.x)), y: n }, i = [];
|
|
876
878
|
return a.filter((e) => !!e).forEach((e) => {
|
|
877
879
|
i.push(`${e.x},${e.y} `);
|
|
878
880
|
}), [h.x, h.y, ...i, f.x, f.y].toString();
|
|
879
881
|
},
|
|
880
882
|
createStar: X,
|
|
881
883
|
createPolygonPath: T,
|
|
882
|
-
fillArray(a,
|
|
884
|
+
fillArray(a, n) {
|
|
883
885
|
let h = Array(a).fill(0);
|
|
884
|
-
for (let f = 0; f <
|
|
885
|
-
h[f] =
|
|
886
|
+
for (let f = 0; f < n.length && f < a; f += 1)
|
|
887
|
+
h[f] = n[f];
|
|
886
888
|
return h;
|
|
887
889
|
},
|
|
888
890
|
refreshSlicer() {
|
|
@@ -912,11 +914,11 @@ const Ye = J(), Xe = {
|
|
|
912
914
|
canShowValue(a) {
|
|
913
915
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
914
916
|
},
|
|
915
|
-
findClosestValue(a,
|
|
916
|
-
let h =
|
|
917
|
-
for (let i = 1; i <
|
|
918
|
-
const e = Math.abs(a -
|
|
919
|
-
e < f &&
|
|
917
|
+
findClosestValue(a, n) {
|
|
918
|
+
let h = n[0], f = Math.abs(a - n[0]);
|
|
919
|
+
for (let i = 1; i < n.length; i += 1) {
|
|
920
|
+
const e = Math.abs(a - n[i]);
|
|
921
|
+
e < f && n[i] < a && (h = n[i], f = e);
|
|
920
922
|
}
|
|
921
923
|
return h;
|
|
922
924
|
},
|
|
@@ -927,11 +929,11 @@ const Ye = J(), Xe = {
|
|
|
927
929
|
this.$emit(
|
|
928
930
|
"selectX",
|
|
929
931
|
{
|
|
930
|
-
dataset: this.relativeDataset.map((
|
|
931
|
-
name:
|
|
932
|
-
value: [null, void 0, NaN].includes(
|
|
933
|
-
color:
|
|
934
|
-
type:
|
|
932
|
+
dataset: this.relativeDataset.map((n) => ({
|
|
933
|
+
name: n.name,
|
|
934
|
+
value: [null, void 0, NaN].includes(n.absoluteValues[a]) ? null : n.absoluteValues[a],
|
|
935
|
+
color: n.color,
|
|
936
|
+
type: n.type
|
|
935
937
|
})),
|
|
936
938
|
index: a,
|
|
937
939
|
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a]
|
|
@@ -948,20 +950,20 @@ const Ye = J(), Xe = {
|
|
|
948
950
|
},
|
|
949
951
|
segregate(a) {
|
|
950
952
|
if (this.segregatedSeries.includes(a.id))
|
|
951
|
-
this.segregatedSeries = this.segregatedSeries.filter((
|
|
953
|
+
this.segregatedSeries = this.segregatedSeries.filter((n) => n !== a.id);
|
|
952
954
|
else {
|
|
953
955
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
954
956
|
this.segregatedSeries.push(a.id);
|
|
955
957
|
}
|
|
956
|
-
this.$emit("selectLegend", this.relativeDataset.map((
|
|
957
|
-
name:
|
|
958
|
-
values:
|
|
959
|
-
color:
|
|
960
|
-
type:
|
|
958
|
+
this.$emit("selectLegend", this.relativeDataset.map((n) => ({
|
|
959
|
+
name: n.name,
|
|
960
|
+
values: n.absoluteValues,
|
|
961
|
+
color: n.color,
|
|
962
|
+
type: n.type
|
|
961
963
|
}))), this.segregateStep += 1;
|
|
962
964
|
},
|
|
963
|
-
toggleTooltipVisibility(a,
|
|
964
|
-
this.isTooltip = a, a ? this.selectedSerieIndex =
|
|
965
|
+
toggleTooltipVisibility(a, n = null) {
|
|
966
|
+
this.isTooltip = a, a ? this.selectedSerieIndex = n : this.selectedSerieIndex = null;
|
|
965
967
|
},
|
|
966
968
|
toggleFullscreen(a) {
|
|
967
969
|
this.isFullscreen = a, this.step += 1;
|
|
@@ -980,7 +982,7 @@ const Ye = J(), Xe = {
|
|
|
980
982
|
}, 100);
|
|
981
983
|
},
|
|
982
984
|
generateCsv() {
|
|
983
|
-
const a = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]],
|
|
985
|
+
const a = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], n = ["", ...this.table.head.map((e) => e.label)], h = this.table.body, f = a.concat([n]).concat(h), i = this.createCsvContent(f);
|
|
984
986
|
this.downloadCsv({ csvContent: i, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
985
987
|
},
|
|
986
988
|
showSpinnerImage() {
|
|
@@ -998,7 +1000,7 @@ const Ye = J(), Xe = {
|
|
|
998
1000
|
}, 100);
|
|
999
1001
|
}
|
|
1000
1002
|
}
|
|
1001
|
-
}, qe = ["id"], Ze = ["viewBox"], Ue = { key: 0 }, Je = { class: "vue-ui-xy-grid" }, Qe = ["stroke", "x1", "x2", "y1", "y2"], Ke = ["stroke", "x1", "x2", "y1", "y2"], je = { key: 1 }, $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = ["x1", "x2", "y1", "y2", "stroke"], at = { key: 3 }, it = ["x1", "x2", "y1", "y2", "stroke"],
|
|
1003
|
+
}, qe = ["id"], Ze = ["viewBox"], Ue = { key: 0 }, Je = { class: "vue-ui-xy-grid" }, Qe = ["stroke", "x1", "x2", "y1", "y2"], Ke = ["stroke", "x1", "x2", "y1", "y2"], je = { key: 1 }, $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = ["x1", "x2", "y1", "y2", "stroke"], at = { key: 3 }, it = ["x1", "x2", "y1", "y2", "stroke"], lt = ["id"], rt = ["stop-color"], st = ["stop-color"], nt = ["stop-color"], ct = ["id"], ht = ["stop-color"], ot = ["stop-color"], dt = ["stop-color"], ut = ["id"], gt = ["stop-color"], ft = ["stop-color"], Nt = ["id"], mt = ["stop-color"], It = ["stop-color"], xt = ["id"], bt = ["stop-color"], Ft = ["stop-color"], _t = ["x", "y", "height", "width", "fill"], yt = ["x", "y", "width"], At = ["x", "y", "height", "width", "fill"], Lt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ct = ["width", "x", "y"], St = { key: 0 }, kt = ["id"], wt = ["fill"], Ot = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Gt = ["x", "y", "font-size", "fill"], vt = ["stroke", "x1", "x2", "y1", "y2"], pt = { key: 2 }, zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Tt = { key: 4 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["fill", "font-size", "transform"], Rt = ["x1", "x2", "y1", "y2", "stroke"], Dt = ["x", "y", "font-size", "fill"], Wt = ["x1", "x2", "y1", "y2", "stroke"], Ht = ["x", "y", "font-size", "fill"], Et = ["width", "x", "y"], Bt = { style: { width: "100%" } }, Yt = { key: 0 }, Xt = ["id"], qt = ["fill"], Zt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ut = ["x", "y", "font-size", "fill"], Jt = ["d", "stroke", "stroke-width", "stroke-dasharray"], Qt = { key: 1 }, Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], jt = { key: 0 }, $t = ["d", "fill"], ea = ["d", "fill"], ta = ["d", "stroke", "stroke-width", "stroke-dasharray"], aa = { key: 2 }, ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], la = ["width", "x", "y"], ra = { style: { width: "100%" } }, sa = { key: 3 }, na = ["id"], ca = ["fill"], ha = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], oa = ["x", "y", "font-size", "fill"], da = { key: 5 }, ua = ["x", "y", "font-size", "fill"], ga = ["x", "y", "font-size", "fill", "font-weight"], fa = { key: 6 }, Na = ["x", "y", "font-size", "fill"], ma = ["x", "y"], Ia = ["x", "y"], xa = { key: 7 }, ba = ["x", "y", "font-size", "fill"], Fa = ["x", "y"], _a = ["x", "y"], ya = ["x", "y", "font-size", "fill", "innerHTML"], Aa = ["x", "y", "font-size", "fill", "innerHTML"], La = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "font-size", "fill", "innerHTML"], Sa = ["x", "y", "width", "height", "fill", "onMouseenter"], ka = ["font-size", "fill", "transform"], wa = ["x", "y", "font-size", "fill"], Oa = { key: 9 }, Ga = ["text-anchor", "font-size", "fill", "transform"], va = ["x", "y", "height", "width", "onMouseenter", "onClick"], pa = { key: 10 }, za = ["x", "y"], Ma = ["cx", "cy", "r", "fill"], Ta = {
|
|
1002
1004
|
key: 3,
|
|
1003
1005
|
class: "vue-data-ui-watermark"
|
|
1004
1006
|
}, Pa = ["onClick"], Va = {
|
|
@@ -1011,28 +1013,28 @@ const Ye = J(), Xe = {
|
|
|
1011
1013
|
viewBox: "0 0 12 12",
|
|
1012
1014
|
height: "14",
|
|
1013
1015
|
width: "14"
|
|
1014
|
-
},
|
|
1016
|
+
}, Wa = ["fill"], Ha = {
|
|
1015
1017
|
key: 7,
|
|
1016
1018
|
ref: "chartLegend"
|
|
1017
1019
|
}, Ea = {
|
|
1018
1020
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1019
1021
|
"data-html2canvas-ignore": ""
|
|
1020
1022
|
}, Ba = ["innerHTML"];
|
|
1021
|
-
function Ya(a,
|
|
1022
|
-
const x = P("Title"), _ = P("UserOptions"), L = P("Shape"), m = P("Skeleton"), C = P("Slicer"), z = P("Tooltip"), k = P("BaseIcon"),
|
|
1023
|
-
return
|
|
1023
|
+
function Ya(a, n, h, f, i, e) {
|
|
1024
|
+
const x = P("Title"), _ = P("UserOptions"), L = P("Shape"), m = P("Skeleton"), C = P("Slicer"), z = P("Tooltip"), k = P("BaseIcon"), v = P("TableSparkline"), G = P("DataTable"), F = P("Accordion");
|
|
1025
|
+
return l(), r("div", {
|
|
1024
1026
|
id: `vue-ui-xy_${i.uniqueId}`,
|
|
1025
1027
|
class: M(`vue-ui-xy ${i.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1026
1028
|
ref: "chart",
|
|
1027
1029
|
style: A(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;${e.FINAL_CONFIG.chart.title.text ? "" : "padding-top:36px"};font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`)
|
|
1028
1030
|
}, [
|
|
1029
|
-
e.FINAL_CONFIG.chart.title.show ? (
|
|
1031
|
+
e.FINAL_CONFIG.chart.title.show ? (l(), r("div", {
|
|
1030
1032
|
key: 0,
|
|
1031
1033
|
ref: "chartTitle",
|
|
1032
1034
|
class: "vue-ui-xy-title",
|
|
1033
1035
|
style: A(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1034
1036
|
}, [
|
|
1035
|
-
(
|
|
1037
|
+
(l(), V(x, {
|
|
1036
1038
|
key: `title_${i.titleStep}`,
|
|
1037
1039
|
config: {
|
|
1038
1040
|
title: {
|
|
@@ -1046,7 +1048,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1046
1048
|
}
|
|
1047
1049
|
}, null, 8, ["config"]))
|
|
1048
1050
|
], 4)) : o("", !0),
|
|
1049
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (
|
|
1051
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (l(), V(_, {
|
|
1050
1052
|
ref: "defails",
|
|
1051
1053
|
key: `user_options_${i.step}`,
|
|
1052
1054
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -1134,7 +1136,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1134
1136
|
key: "7"
|
|
1135
1137
|
} : void 0
|
|
1136
1138
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip"])) : o("", !0),
|
|
1137
|
-
e.isDataset ? (
|
|
1139
|
+
e.isDataset ? (l(), r("svg", {
|
|
1138
1140
|
key: 2,
|
|
1139
1141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1140
1142
|
class: M([{ "vue-data-ui-fullscreen--on": i.isFullscreen, "vue-data-ui-fulscreen--off": !i.isFullscreen }, "vue-ui-xy-svg"]),
|
|
@@ -1142,9 +1144,9 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1142
1144
|
viewBox: i.viewBox,
|
|
1143
1145
|
style: A(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1144
1146
|
}, [
|
|
1145
|
-
e.maxSeries > 0 ? (
|
|
1147
|
+
e.maxSeries > 0 ? (l(), r("g", Ue, [
|
|
1146
1148
|
u("g", Je, [
|
|
1147
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (
|
|
1149
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (l(), r("line", {
|
|
1148
1150
|
key: 0,
|
|
1149
1151
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1150
1152
|
"stroke-width": "1",
|
|
@@ -1154,8 +1156,8 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1154
1156
|
y2: e.drawingArea.bottom,
|
|
1155
1157
|
"stroke-linecap": "round"
|
|
1156
1158
|
}, null, 8, Qe)) : o("", !0),
|
|
1157
|
-
i.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1158
|
-
t.id === i.selectedScale && t.yLabels.length ? (
|
|
1159
|
+
i.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(!0), r(N, { key: 2 }, I(e.allScales, (t) => (l(), r("g", null, [
|
|
1160
|
+
t.id === i.selectedScale && t.yLabels.length ? (l(!0), r(N, { key: 0 }, I(t.yLabels, (c) => (l(), r("line", {
|
|
1159
1161
|
x1: e.drawingArea.left + e.xPadding,
|
|
1160
1162
|
x2: e.drawingArea.right - e.xPadding,
|
|
1161
1163
|
y1: e.checkNaN(c.y),
|
|
@@ -1163,7 +1165,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1163
1165
|
stroke: t.color,
|
|
1164
1166
|
"stroke-width": 0.5,
|
|
1165
1167
|
"stroke-linecap": "round"
|
|
1166
|
-
}, null, 8, et))), 256)) : t.yLabels.length ? (
|
|
1168
|
+
}, null, 8, et))), 256)) : t.yLabels.length ? (l(!0), r(N, { key: 1 }, I(t.yLabels, (c) => (l(), r("line", {
|
|
1167
1169
|
x1: e.drawingArea.left + e.xPadding,
|
|
1168
1170
|
x2: e.drawingArea.right - e.xPadding,
|
|
1169
1171
|
y1: e.checkNaN(c.y),
|
|
@@ -1172,8 +1174,8 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1172
1174
|
"stroke-width": 0.5,
|
|
1173
1175
|
"stroke-linecap": "round"
|
|
1174
1176
|
}, null, 8, tt))), 256)) : o("", !0)
|
|
1175
|
-
]))), 256)) : o("", !0) : (
|
|
1176
|
-
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (
|
|
1177
|
+
]))), 256)) : o("", !0) : (l(), r(N, { key: 1 }, [
|
|
1178
|
+
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (l(), r("line", {
|
|
1177
1179
|
key: 0,
|
|
1178
1180
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1179
1181
|
"stroke-width": "1",
|
|
@@ -1183,8 +1185,8 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1183
1185
|
y2: e.drawingArea.bottom,
|
|
1184
1186
|
"stroke-linecap": "round"
|
|
1185
1187
|
}, null, 8, Ke)) : o("", !0),
|
|
1186
|
-
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (
|
|
1187
|
-
(
|
|
1188
|
+
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(), r("g", je, [
|
|
1189
|
+
(l(!0), r(N, null, I(e.yLabels, (t) => (l(), r("line", {
|
|
1188
1190
|
x1: e.drawingArea.left + e.xPadding,
|
|
1189
1191
|
x2: e.drawingArea.right - e.xPadding,
|
|
1190
1192
|
y1: e.checkNaN(t.y),
|
|
@@ -1195,8 +1197,8 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1195
1197
|
}, null, 8, $e))), 256))
|
|
1196
1198
|
])) : o("", !0)
|
|
1197
1199
|
], 64)),
|
|
1198
|
-
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (
|
|
1199
|
-
(
|
|
1200
|
+
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (l(), r("g", at, [
|
|
1201
|
+
(l(!0), r(N, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, c) => (l(), r("line", {
|
|
1200
1202
|
key: `grid_vertical_line_${c}`,
|
|
1201
1203
|
x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1202
1204
|
x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
@@ -1207,7 +1209,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1207
1209
|
}, null, 8, it))), 128))
|
|
1208
1210
|
])) : o("", !0)
|
|
1209
1211
|
]),
|
|
1210
|
-
(
|
|
1212
|
+
(l(!0), r(N, null, I(e.barSet, (t, c) => (l(), r("defs", {
|
|
1211
1213
|
key: `def_rect_${c}`
|
|
1212
1214
|
}, [
|
|
1213
1215
|
u("linearGradient", {
|
|
@@ -1218,7 +1220,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1218
1220
|
u("stop", {
|
|
1219
1221
|
offset: "0%",
|
|
1220
1222
|
"stop-color": t.color
|
|
1221
|
-
}, null, 8,
|
|
1223
|
+
}, null, 8, rt),
|
|
1222
1224
|
u("stop", {
|
|
1223
1225
|
offset: "62%",
|
|
1224
1226
|
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
@@ -1227,7 +1229,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1227
1229
|
offset: "100%",
|
|
1228
1230
|
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1229
1231
|
}, null, 8, nt)
|
|
1230
|
-
], 8,
|
|
1232
|
+
], 8, lt),
|
|
1231
1233
|
u("linearGradient", {
|
|
1232
1234
|
id: `rectGradient_neg_${c}_${i.uniqueId}`,
|
|
1233
1235
|
x2: "0%",
|
|
@@ -1247,7 +1249,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1247
1249
|
}, null, 8, dt)
|
|
1248
1250
|
], 8, ct)
|
|
1249
1251
|
]))), 128)),
|
|
1250
|
-
(
|
|
1252
|
+
(l(!0), r(N, null, I(e.plotSet, (t, c) => (l(), r("defs", {
|
|
1251
1253
|
key: `def_plot_${c}`
|
|
1252
1254
|
}, [
|
|
1253
1255
|
u("radialGradient", {
|
|
@@ -1268,7 +1270,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1268
1270
|
}, null, 8, ft)
|
|
1269
1271
|
], 8, ut)
|
|
1270
1272
|
]))), 128)),
|
|
1271
|
-
(
|
|
1273
|
+
(l(!0), r(N, null, I(e.lineSet, (t, c) => (l(), r("defs", {
|
|
1272
1274
|
key: `def_line_${c}`
|
|
1273
1275
|
}, [
|
|
1274
1276
|
u("radialGradient", {
|
|
@@ -1305,22 +1307,22 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1305
1307
|
}, null, 8, Ft)
|
|
1306
1308
|
], 8, xt)
|
|
1307
1309
|
]))), 128)),
|
|
1308
|
-
(
|
|
1309
|
-
t.show ? (
|
|
1310
|
+
(l(!0), r(N, null, I(e.highlightAreas, (t) => (l(), r("g", null, [
|
|
1311
|
+
t.show ? (l(!0), r(N, { key: 0 }, I(t.span, (c, s) => (l(), r("g", null, [
|
|
1310
1312
|
u("rect", {
|
|
1311
1313
|
style: A({
|
|
1312
1314
|
transition: "none",
|
|
1313
|
-
opacity: t.from +
|
|
1315
|
+
opacity: t.from + s >= i.slicer.start && t.from + s <= i.slicer.end - 1 ? 1 : 0
|
|
1314
1316
|
}),
|
|
1315
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from +
|
|
1317
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + s - i.slicer.start),
|
|
1316
1318
|
y: e.drawingArea.top,
|
|
1317
1319
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1318
1320
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1319
1321
|
fill: e.setOpacity(t.color, t.opacity)
|
|
1320
1322
|
}, null, 12, _t),
|
|
1321
|
-
t.caption.text &&
|
|
1323
|
+
t.caption.text && s === 0 ? (l(), r("foreignObject", {
|
|
1322
1324
|
key: 0,
|
|
1323
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from +
|
|
1325
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + s - i.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
|
|
1324
1326
|
y: e.drawingArea.top + t.caption.offsetY,
|
|
1325
1327
|
style: A({
|
|
1326
1328
|
overflow: "visible",
|
|
@@ -1336,7 +1338,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1336
1338
|
]))), 256)) : o("", !0)
|
|
1337
1339
|
]))), 256)),
|
|
1338
1340
|
u("g", null, [
|
|
1339
|
-
(
|
|
1341
|
+
(l(!0), r(N, null, I(e.maxSeries, (t, c) => (l(), r("g", {
|
|
1340
1342
|
key: `tooltip_trap_${c}`
|
|
1341
1343
|
}, [
|
|
1342
1344
|
u("rect", {
|
|
@@ -1348,39 +1350,39 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1348
1350
|
}, null, 8, At)
|
|
1349
1351
|
]))), 128))
|
|
1350
1352
|
]),
|
|
1351
|
-
e.barSet.length ? (
|
|
1353
|
+
e.barSet.length ? (l(!0), r(N, { key: 0 }, I(e.barSet, (t, c) => (l(), r("g", {
|
|
1352
1354
|
key: `serie_bar_${c}`,
|
|
1353
1355
|
class: M(`serie_bar_${c}`),
|
|
1354
1356
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1355
1357
|
}, [
|
|
1356
|
-
(
|
|
1358
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1357
1359
|
key: `bar_plot_${c}_${g}`
|
|
1358
1360
|
}, [
|
|
1359
|
-
e.canShowValue(
|
|
1361
|
+
e.canShowValue(s.value) ? (l(), r("rect", {
|
|
1360
1362
|
key: 0,
|
|
1361
|
-
x: e.calcRectX(
|
|
1362
|
-
y: i.mutableConfig.useIndividualScale ? e.calcIndividualRectY(
|
|
1363
|
-
height: i.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(
|
|
1363
|
+
x: e.calcRectX(s),
|
|
1364
|
+
y: i.mutableConfig.useIndividualScale ? e.calcIndividualRectY(s) : e.calcRectY(s),
|
|
1365
|
+
height: i.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(s)) : Math.abs(e.calcRectHeight(s)),
|
|
1364
1366
|
width: e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1365
1367
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1366
|
-
fill: e.FINAL_CONFIG.bar.useGradient ?
|
|
1368
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? s.value >= 0 ? `url(#rectGradient_pos_${c}_${i.uniqueId})` : `url(#rectGradient_neg_${c}_${i.uniqueId})` : t.color,
|
|
1367
1369
|
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1368
1370
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1369
1371
|
}, null, 8, Lt)) : o("", !0),
|
|
1370
|
-
|
|
1372
|
+
s.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1371
1373
|
key: 1,
|
|
1372
1374
|
style: { overflow: "visible" },
|
|
1373
1375
|
height: "12",
|
|
1374
1376
|
width: (e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
|
|
1375
|
-
x: e.calcRectX(
|
|
1376
|
-
y: e.checkNaN(
|
|
1377
|
+
x: e.calcRectX(s) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1378
|
+
y: e.checkNaN(s.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1377
1379
|
}, [
|
|
1378
1380
|
O(a.$slots, "plot-comment", {
|
|
1379
|
-
plot: { ...
|
|
1381
|
+
plot: { ...s, color: t.color }
|
|
1380
1382
|
}, void 0, !0)
|
|
1381
1383
|
], 8, Ct)) : o("", !0)
|
|
1382
1384
|
]))), 128)),
|
|
1383
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (
|
|
1385
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", St, [
|
|
1384
1386
|
u("defs", null, [
|
|
1385
1387
|
u("marker", {
|
|
1386
1388
|
id: `bar_arrow_${c}`,
|
|
@@ -1396,7 +1398,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1396
1398
|
}, null, 8, wt)
|
|
1397
1399
|
], 8, kt)
|
|
1398
1400
|
]),
|
|
1399
|
-
t.plots.length > 1 ? (
|
|
1401
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1400
1402
|
key: 0,
|
|
1401
1403
|
x1: e.calcLinearProgression(t.plots).x1,
|
|
1402
1404
|
x2: e.calcLinearProgression(t.plots).x2,
|
|
@@ -1407,7 +1409,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1407
1409
|
"stroke-dasharray": 2,
|
|
1408
1410
|
"marker-end": `url(#bar_arrow_${c})`
|
|
1409
1411
|
}, null, 8, Ot)) : o("", !0),
|
|
1410
|
-
t.plots.length > 1 ? (
|
|
1412
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1411
1413
|
key: 1,
|
|
1412
1414
|
"text-anchor": "middle",
|
|
1413
1415
|
x: e.calcLinearProgression(t.plots).x2,
|
|
@@ -1418,10 +1420,10 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1418
1420
|
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1419
1421
|
s: "%",
|
|
1420
1422
|
r: 2
|
|
1421
|
-
})), 9,
|
|
1423
|
+
})), 9, Gt)) : o("", !0)
|
|
1422
1424
|
])) : o("", !0)
|
|
1423
1425
|
], 6))), 128)) : o("", !0),
|
|
1424
|
-
!i.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (
|
|
1426
|
+
!i.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (l(), r("line", {
|
|
1425
1427
|
key: 1,
|
|
1426
1428
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1427
1429
|
"stroke-width": "1",
|
|
@@ -1430,8 +1432,8 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1430
1432
|
y1: e.checkNaN(e.zero),
|
|
1431
1433
|
y2: e.checkNaN(e.zero),
|
|
1432
1434
|
"stroke-linecap": "round"
|
|
1433
|
-
}, null, 8,
|
|
1434
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(i.selectedSerieIndex) || i.selectedMinimapIndex !== null) ? (
|
|
1435
|
+
}, null, 8, vt)) : o("", !0),
|
|
1436
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(i.selectedSerieIndex) || i.selectedMinimapIndex !== null) ? (l(), r("g", pt, [
|
|
1435
1437
|
u("line", {
|
|
1436
1438
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.selectedSerieIndex || i.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1437
1439
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.selectedSerieIndex || i.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
@@ -1444,7 +1446,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1444
1446
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1445
1447
|
}, null, 8, zt)
|
|
1446
1448
|
])) : o("", !0),
|
|
1447
|
-
e.FINAL_CONFIG.chart.grid.frame.show ? (
|
|
1449
|
+
e.FINAL_CONFIG.chart.grid.frame.show ? (l(), r("rect", {
|
|
1448
1450
|
key: 3,
|
|
1449
1451
|
style: { pointerEvents: "none", transition: "none" },
|
|
1450
1452
|
x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
|
|
@@ -1458,9 +1460,9 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1458
1460
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1459
1461
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1460
1462
|
}, null, 8, Mt)) : o("", !0),
|
|
1461
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (
|
|
1462
|
-
i.mutableConfig.useIndividualScale ? (
|
|
1463
|
-
(
|
|
1463
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (l(), r("g", Tt, [
|
|
1464
|
+
i.mutableConfig.useIndividualScale ? (l(), r(N, { key: 0 }, [
|
|
1465
|
+
(l(!0), r(N, null, I(e.allScales, (t) => (l(), r("g", null, [
|
|
1464
1466
|
u("line", {
|
|
1465
1467
|
x1: t.x + e.xPadding,
|
|
1466
1468
|
x2: t.x + e.xPadding,
|
|
@@ -1472,7 +1474,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1472
1474
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1473
1475
|
}, null, 12, Pt)
|
|
1474
1476
|
]))), 256)),
|
|
1475
|
-
(
|
|
1477
|
+
(l(!0), r(N, null, I(e.allScales, (t) => (l(), r("g", {
|
|
1476
1478
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1477
1479
|
}, [
|
|
1478
1480
|
u("text", {
|
|
@@ -1481,7 +1483,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1481
1483
|
"text-anchor": "middle",
|
|
1482
1484
|
transform: `translate(${t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${i.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset - t.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1483
1485
|
}, S(t.name) + " " + S(t.scaleLabel ? `- ${t.scaleLabel}` : ""), 9, Vt),
|
|
1484
|
-
(
|
|
1486
|
+
(l(!0), r(N, null, I(t.yLabels, (c, s) => (l(), r("line", {
|
|
1485
1487
|
x1: t.x - 3 + e.xPadding,
|
|
1486
1488
|
x2: t.x + e.xPadding,
|
|
1487
1489
|
y1: e.checkNaN(c.y),
|
|
@@ -1490,7 +1492,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1490
1492
|
"stroke-width": 1,
|
|
1491
1493
|
"stroke-linecap": "round"
|
|
1492
1494
|
}, null, 8, Rt))), 256)),
|
|
1493
|
-
(
|
|
1495
|
+
(l(!0), r(N, null, I(t.yLabels, (c, s) => (l(), r("text", {
|
|
1494
1496
|
x: t.x - 5 + e.xPadding,
|
|
1495
1497
|
y: e.checkNaN(c.y) + i.fontSizes.dataLabels / 3,
|
|
1496
1498
|
"font-size": i.fontSizes.dataLabels,
|
|
@@ -1505,13 +1507,13 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1505
1507
|
s: c.suffix,
|
|
1506
1508
|
r: 1
|
|
1507
1509
|
}),
|
|
1508
|
-
{ datapoint: c.datapoint, seriesIndex:
|
|
1510
|
+
{ datapoint: c.datapoint, seriesIndex: s }
|
|
1509
1511
|
)), 9, Dt))), 256))
|
|
1510
1512
|
], 4))), 256))
|
|
1511
|
-
], 64)) : (
|
|
1513
|
+
], 64)) : (l(!0), r(N, { key: 1 }, I(e.yLabels, (t, c) => (l(), r("g", {
|
|
1512
1514
|
key: `yLabel_${c}`
|
|
1513
1515
|
}, [
|
|
1514
|
-
e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (
|
|
1516
|
+
e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (l(), r("line", {
|
|
1515
1517
|
key: 0,
|
|
1516
1518
|
x1: e.drawingArea.left + e.xPadding,
|
|
1517
1519
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
@@ -1520,8 +1522,8 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1520
1522
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1521
1523
|
"stroke-width": "1",
|
|
1522
1524
|
"stroke-linecap": "round"
|
|
1523
|
-
}, null, 8,
|
|
1524
|
-
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (
|
|
1525
|
+
}, null, 8, Wt)) : o("", !0),
|
|
1526
|
+
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (l(), r("text", {
|
|
1525
1527
|
key: 1,
|
|
1526
1528
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1527
1529
|
y: e.checkNaN(t.y + i.fontSizes.dataLabels / 3),
|
|
@@ -1537,42 +1539,42 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1537
1539
|
s: t.suffix,
|
|
1538
1540
|
r: 1
|
|
1539
1541
|
})
|
|
1540
|
-
) : ""), 9,
|
|
1542
|
+
) : ""), 9, Ht)) : o("", !0)
|
|
1541
1543
|
]))), 128))
|
|
1542
1544
|
])) : o("", !0),
|
|
1543
|
-
(
|
|
1545
|
+
(l(!0), r(N, null, I(e.plotSet, (t, c) => (l(), r("g", {
|
|
1544
1546
|
key: `serie_plot_${c}`,
|
|
1545
1547
|
class: M(`serie_plot_${c}`),
|
|
1546
1548
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1547
1549
|
}, [
|
|
1548
|
-
(
|
|
1550
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1549
1551
|
key: `circle_plot_${c}_${g}`
|
|
1550
1552
|
}, [
|
|
1551
|
-
e.canShowValue(
|
|
1553
|
+
s && e.canShowValue(s.value) ? (l(), V(L, {
|
|
1552
1554
|
key: 0,
|
|
1553
1555
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1554
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${i.uniqueId})` : t.color,
|
|
1555
|
-
plot: { x: e.checkNaN(
|
|
1556
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${i.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? t.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1557
|
+
plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
|
|
1556
1558
|
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex === g || i.selectedMinimapIndex !== null && i.selectedMinimapIndex === g ? (i.plotRadii.plot || 6) * 1.5 : i.plotRadii.plot || 6,
|
|
1557
|
-
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1558
|
-
strokeWidth:
|
|
1559
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : o("", !0),
|
|
1560
|
-
|
|
1559
|
+
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
1560
|
+
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1561
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : o("", !0),
|
|
1562
|
+
s.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1561
1563
|
key: 1,
|
|
1562
1564
|
style: { overflow: "visible" },
|
|
1563
1565
|
height: "12",
|
|
1564
1566
|
width: e.FINAL_CONFIG.chart.comments.width,
|
|
1565
|
-
x:
|
|
1566
|
-
y:
|
|
1567
|
+
x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1568
|
+
y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1567
1569
|
}, [
|
|
1568
1570
|
u("div", Bt, [
|
|
1569
1571
|
O(a.$slots, "plot-comment", {
|
|
1570
|
-
plot: { ...
|
|
1572
|
+
plot: { ...s, color: t.color }
|
|
1571
1573
|
}, void 0, !0)
|
|
1572
1574
|
])
|
|
1573
1575
|
], 8, Et)) : o("", !0)
|
|
1574
1576
|
]))), 128)),
|
|
1575
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (
|
|
1577
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", Yt, [
|
|
1576
1578
|
u("defs", null, [
|
|
1577
1579
|
u("marker", {
|
|
1578
1580
|
id: `plot_arrow_${c}`,
|
|
@@ -1588,7 +1590,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1588
1590
|
}, null, 8, qt)
|
|
1589
1591
|
], 8, Xt)
|
|
1590
1592
|
]),
|
|
1591
|
-
t.plots.length > 1 ? (
|
|
1593
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1592
1594
|
key: 0,
|
|
1593
1595
|
x1: e.calcLinearProgression(t.plots).x1,
|
|
1594
1596
|
x2: e.calcLinearProgression(t.plots).x2,
|
|
@@ -1599,7 +1601,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1599
1601
|
"stroke-dasharray": 2,
|
|
1600
1602
|
"marker-end": `url(#plot_arrow_${c})`
|
|
1601
1603
|
}, null, 8, Zt)) : o("", !0),
|
|
1602
|
-
t.plots.length > 1 ? (
|
|
1604
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1603
1605
|
key: 1,
|
|
1604
1606
|
"text-anchor": "middle",
|
|
1605
1607
|
x: e.calcLinearProgression(t.plots).x2,
|
|
@@ -1613,27 +1615,27 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1613
1615
|
})), 9, Ut)) : o("", !0)
|
|
1614
1616
|
])) : o("", !0)
|
|
1615
1617
|
], 6))), 128)),
|
|
1616
|
-
(
|
|
1618
|
+
(l(!0), r(N, null, I(e.lineSet, (t, c) => (l(), r("g", {
|
|
1617
1619
|
key: `serie_line_${c}`,
|
|
1618
1620
|
class: M(`serie_line_${c}`),
|
|
1619
1621
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1620
1622
|
}, [
|
|
1621
|
-
t.smooth && t.plots.length > 1 ? (
|
|
1623
|
+
t.smooth && t.plots.length > 1 ? (l(), r("path", {
|
|
1622
1624
|
key: 0,
|
|
1623
1625
|
d: `M${t.curve}`,
|
|
1624
1626
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1625
1627
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1626
1628
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1627
1629
|
fill: "none"
|
|
1628
|
-
}, null, 8, Jt)) : t.plots.length > 1 ? (
|
|
1629
|
-
(
|
|
1630
|
+
}, null, 8, Jt)) : t.plots.length > 1 ? (l(), r("g", Qt, [
|
|
1631
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1630
1632
|
key: `line_${c}_${g}`
|
|
1631
1633
|
}, [
|
|
1632
|
-
|
|
1634
|
+
s && g < t.plots.length - 1 && t.plots[g + 1] && e.canShowValue(s.value) && e.canShowValue(t.plots[g + 1].value) ? (l(), r("line", {
|
|
1633
1635
|
key: 0,
|
|
1634
|
-
x1:
|
|
1636
|
+
x1: s.x,
|
|
1635
1637
|
x2: t.plots[g + 1].x,
|
|
1636
|
-
y1:
|
|
1638
|
+
y1: s.y,
|
|
1637
1639
|
y2: t.plots[g + 1].y,
|
|
1638
1640
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1639
1641
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
@@ -1644,38 +1646,38 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1644
1646
|
]))), 128))
|
|
1645
1647
|
])) : o("", !0)
|
|
1646
1648
|
], 6))), 128)),
|
|
1647
|
-
(
|
|
1649
|
+
(l(!0), r(N, null, I(e.lineSet, (t, c) => (l(), r("g", {
|
|
1648
1650
|
key: `serie_line_${c}`,
|
|
1649
1651
|
class: M(`serie_line_${c}`),
|
|
1650
1652
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1651
1653
|
}, [
|
|
1652
|
-
t.useArea && t.plots.length > 1 ? (
|
|
1653
|
-
t.smooth ? (
|
|
1654
|
+
t.useArea && t.plots.length > 1 ? (l(), r("g", jt, [
|
|
1655
|
+
t.smooth ? (l(), r("path", {
|
|
1654
1656
|
key: 0,
|
|
1655
|
-
d: `M ${t.plots[0] ? t.plots[0].x : Math.min(...t.plots.filter((
|
|
1657
|
+
d: `M ${t.plots[0] ? t.plots[0].x : Math.min(...t.plots.filter((s) => !!s).map((s) => s.x))},${i.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset : e.drawingArea.bottom} ${t.curve} L ${t.plots.at(-1) ? t.plots.at(-1).x : e.drawingArea.left + e.slot.line * c + e.slot.line / 2},${i.mutableConfig.isStacked ? e.drawingArea.bottom - t.yOffset : e.drawingArea.bottom} Z`,
|
|
1656
1658
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${i.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1657
|
-
}, null, 8, $t)) : (
|
|
1659
|
+
}, null, 8, $t)) : (l(), r("path", {
|
|
1658
1660
|
key: 1,
|
|
1659
1661
|
d: `M${t.area}Z`,
|
|
1660
1662
|
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${i.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1661
1663
|
}, null, 8, ea))
|
|
1662
1664
|
])) : o("", !0),
|
|
1663
|
-
t.smooth && t.plots.length > 1 ? (
|
|
1665
|
+
t.smooth && t.plots.length > 1 ? (l(), r("path", {
|
|
1664
1666
|
key: 1,
|
|
1665
1667
|
d: `M${t.curve}`,
|
|
1666
1668
|
stroke: t.color,
|
|
1667
1669
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1668
1670
|
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1669
1671
|
fill: "none"
|
|
1670
|
-
}, null, 8, ta)) : t.plots.length > 1 ? (
|
|
1671
|
-
(
|
|
1672
|
+
}, null, 8, ta)) : t.plots.length > 1 ? (l(), r("g", aa, [
|
|
1673
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1672
1674
|
key: `line_${c}_${g}`
|
|
1673
1675
|
}, [
|
|
1674
|
-
|
|
1676
|
+
s && g < t.plots.length - 1 && t.plots[g + 1] && e.canShowValue(s.value) && e.canShowValue(t.plots[g + 1].value) ? (l(), r("line", {
|
|
1675
1677
|
key: 0,
|
|
1676
|
-
x1:
|
|
1678
|
+
x1: s.x,
|
|
1677
1679
|
x2: t.plots[g + 1].x,
|
|
1678
|
-
y1:
|
|
1680
|
+
y1: s.y,
|
|
1679
1681
|
y2: t.plots[g + 1].y,
|
|
1680
1682
|
stroke: t.color,
|
|
1681
1683
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
@@ -1685,34 +1687,34 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1685
1687
|
}, null, 8, ia)) : o("", !0)
|
|
1686
1688
|
]))), 128))
|
|
1687
1689
|
])) : o("", !0),
|
|
1688
|
-
(
|
|
1690
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1689
1691
|
key: `circle_line_${c}_${g}`
|
|
1690
1692
|
}, [
|
|
1691
|
-
|
|
1693
|
+
s && e.canShowValue(s.value) ? (l(), V(L, {
|
|
1692
1694
|
key: 0,
|
|
1693
1695
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1694
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${i.uniqueId})` : t.color,
|
|
1695
|
-
plot: { x: e.checkNaN(
|
|
1696
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${i.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? t.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1697
|
+
plot: { x: e.checkNaN(s.x), y: e.checkNaN(s.y) },
|
|
1696
1698
|
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex === g || i.selectedMinimapIndex !== null && i.selectedMinimapIndex === g ? (i.plotRadii.line || 6) * 1.5 : i.plotRadii.line || 6,
|
|
1697
|
-
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1698
|
-
strokeWidth:
|
|
1699
|
-
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : o("", !0),
|
|
1700
|
-
|
|
1699
|
+
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : t.color,
|
|
1700
|
+
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1701
|
+
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : o("", !0),
|
|
1702
|
+
s.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1701
1703
|
key: 1,
|
|
1702
1704
|
style: { overflow: "visible" },
|
|
1703
1705
|
height: "12",
|
|
1704
1706
|
width: e.FINAL_CONFIG.chart.comments.width,
|
|
1705
|
-
x:
|
|
1706
|
-
y:
|
|
1707
|
+
x: s.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1708
|
+
y: s.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1707
1709
|
}, [
|
|
1708
|
-
u("div",
|
|
1710
|
+
u("div", ra, [
|
|
1709
1711
|
O(a.$slots, "plot-comment", {
|
|
1710
|
-
plot: { ...
|
|
1712
|
+
plot: { ...s, color: t.color }
|
|
1711
1713
|
}, void 0, !0)
|
|
1712
1714
|
])
|
|
1713
|
-
], 8,
|
|
1715
|
+
], 8, la)) : o("", !0)
|
|
1714
1716
|
]))), 128)),
|
|
1715
|
-
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (
|
|
1717
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", sa, [
|
|
1716
1718
|
u("defs", null, [
|
|
1717
1719
|
u("marker", {
|
|
1718
1720
|
id: `line_arrow_${c}`,
|
|
@@ -1728,7 +1730,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1728
1730
|
}, null, 8, ca)
|
|
1729
1731
|
], 8, na)
|
|
1730
1732
|
]),
|
|
1731
|
-
t.plots.length > 1 ? (
|
|
1733
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1732
1734
|
key: 0,
|
|
1733
1735
|
x1: e.calcLinearProgression(t.plots).x1,
|
|
1734
1736
|
x2: e.calcLinearProgression(t.plots).x2,
|
|
@@ -1739,7 +1741,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1739
1741
|
"stroke-dasharray": 2,
|
|
1740
1742
|
"marker-end": `url(#line_arrow_${c})`
|
|
1741
1743
|
}, null, 8, ha)) : o("", !0),
|
|
1742
|
-
t.plots.length > 1 ? (
|
|
1744
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1743
1745
|
key: 1,
|
|
1744
1746
|
"text-anchor": "middle",
|
|
1745
1747
|
x: e.calcLinearProgression(t.plots).x2,
|
|
@@ -1753,40 +1755,40 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1753
1755
|
})), 9, oa)) : o("", !0)
|
|
1754
1756
|
])) : o("", !0)
|
|
1755
1757
|
], 6))), 128)),
|
|
1756
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && i.mutableConfig.dataLabels.show ? (
|
|
1757
|
-
(
|
|
1758
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && i.mutableConfig.dataLabels.show ? (l(), r("g", da, [
|
|
1759
|
+
(l(!0), r(N, null, I(e.barSet, (t, c) => (l(), r("g", {
|
|
1758
1760
|
key: `xLabel_bar_${c}`,
|
|
1759
1761
|
class: M(`xLabel_bar_${c}`),
|
|
1760
1762
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1761
1763
|
}, [
|
|
1762
|
-
(
|
|
1764
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1763
1765
|
key: `xLabel_bar_${c}_${g}`
|
|
1764
1766
|
}, [
|
|
1765
|
-
|
|
1767
|
+
s && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (l(), r("text", {
|
|
1766
1768
|
key: 0,
|
|
1767
|
-
x: i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ?
|
|
1768
|
-
y: e.checkNaN(
|
|
1769
|
+
x: i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? s.x + e.slot.line / 2 : e.calcRectX(s) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1770
|
+
y: e.checkNaN(s.y) + (s.value > 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
1769
1771
|
"text-anchor": "middle",
|
|
1770
1772
|
"font-size": i.fontSizes.plotLabels,
|
|
1771
1773
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1772
|
-
}, S(e.canShowValue(
|
|
1774
|
+
}, S(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
1773
1775
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1774
|
-
|
|
1776
|
+
s.value,
|
|
1775
1777
|
e.dataLabel({
|
|
1776
1778
|
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1777
|
-
v:
|
|
1779
|
+
v: s.value,
|
|
1778
1780
|
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1779
1781
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1780
1782
|
}),
|
|
1781
1783
|
{
|
|
1782
|
-
datapoint:
|
|
1784
|
+
datapoint: s,
|
|
1783
1785
|
serie: t
|
|
1784
1786
|
}
|
|
1785
1787
|
) : ""), 9, ua)) : o("", !0),
|
|
1786
|
-
|
|
1788
|
+
s && e.FINAL_CONFIG.bar.serieName.show ? (l(), r("text", {
|
|
1787
1789
|
key: 1,
|
|
1788
|
-
x: i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ?
|
|
1789
|
-
y:
|
|
1790
|
+
x: i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? s.x + e.slot.line / 2 : s.x + e.calcRectWidth() * 1.1,
|
|
1791
|
+
y: s.y + (s.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1790
1792
|
"text-anchor": "middle",
|
|
1791
1793
|
"font-size": i.fontSizes.plotLabels,
|
|
1792
1794
|
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
@@ -1795,40 +1797,40 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1795
1797
|
]))), 128))
|
|
1796
1798
|
], 6))), 128))
|
|
1797
1799
|
])) : o("", !0),
|
|
1798
|
-
e.FINAL_CONFIG.plot.labels.show && i.mutableConfig.dataLabels.show ? (
|
|
1799
|
-
(
|
|
1800
|
+
e.FINAL_CONFIG.plot.labels.show && i.mutableConfig.dataLabels.show ? (l(), r("g", fa, [
|
|
1801
|
+
(l(!0), r(N, null, I(e.plotSet, (t, c) => (l(), r("g", {
|
|
1800
1802
|
key: `xLabel_plot_${c}`,
|
|
1801
1803
|
class: M(`xLabel_plot_${c}`),
|
|
1802
1804
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1803
1805
|
}, [
|
|
1804
|
-
(
|
|
1806
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1805
1807
|
key: `xLabel_plot_${c}_${g}`
|
|
1806
1808
|
}, [
|
|
1807
|
-
|
|
1809
|
+
s && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 ? (l(), r("text", {
|
|
1808
1810
|
key: 0,
|
|
1809
|
-
x:
|
|
1810
|
-
y:
|
|
1811
|
+
x: s.x,
|
|
1812
|
+
y: s.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
1811
1813
|
"text-anchor": "middle",
|
|
1812
1814
|
"font-size": i.fontSizes.plotLabels,
|
|
1813
1815
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1814
|
-
}, S(e.canShowValue(
|
|
1816
|
+
}, S(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
1815
1817
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1816
|
-
|
|
1818
|
+
s.value,
|
|
1817
1819
|
e.dataLabel({
|
|
1818
1820
|
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1819
|
-
v:
|
|
1821
|
+
v: s.value,
|
|
1820
1822
|
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1821
1823
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1822
1824
|
}),
|
|
1823
1825
|
{
|
|
1824
|
-
datapoint:
|
|
1826
|
+
datapoint: s,
|
|
1825
1827
|
serie: t
|
|
1826
1828
|
}
|
|
1827
1829
|
) : ""), 9, Na)) : o("", !0),
|
|
1828
|
-
|
|
1830
|
+
s && g === 0 && t.useTag && t.useTag === "start" ? (l(), r("foreignObject", {
|
|
1829
1831
|
key: 1,
|
|
1830
|
-
x:
|
|
1831
|
-
y:
|
|
1832
|
+
x: s.x,
|
|
1833
|
+
y: s.y - 20,
|
|
1832
1834
|
height: 24,
|
|
1833
1835
|
width: "150",
|
|
1834
1836
|
style: { overflow: "visible" }
|
|
@@ -1837,10 +1839,10 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1837
1839
|
style: A(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1838
1840
|
}, S(t.name), 5)
|
|
1839
1841
|
], 8, ma)) : o("", !0),
|
|
1840
|
-
|
|
1842
|
+
s && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (l(), r("foreignObject", {
|
|
1841
1843
|
key: 2,
|
|
1842
|
-
x:
|
|
1843
|
-
y:
|
|
1844
|
+
x: s.x - t.name.length * (i.fontSizes.plotLabels / 2),
|
|
1845
|
+
y: s.y - 20,
|
|
1844
1846
|
height: 24,
|
|
1845
1847
|
width: "150",
|
|
1846
1848
|
style: { overflow: "visible" }
|
|
@@ -1852,40 +1854,40 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1852
1854
|
]))), 128))
|
|
1853
1855
|
], 6))), 128))
|
|
1854
1856
|
])) : o("", !0),
|
|
1855
|
-
e.FINAL_CONFIG.line.labels.show && i.mutableConfig.dataLabels.show ? (
|
|
1856
|
-
(
|
|
1857
|
+
e.FINAL_CONFIG.line.labels.show && i.mutableConfig.dataLabels.show ? (l(), r("g", xa, [
|
|
1858
|
+
(l(!0), r(N, null, I(e.lineSet, (t, c) => (l(), r("g", {
|
|
1857
1859
|
key: `xLabel_line_${c}`,
|
|
1858
1860
|
class: M(`xLabel_line_${c}`),
|
|
1859
1861
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1860
1862
|
}, [
|
|
1861
|
-
(
|
|
1863
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1862
1864
|
key: `xLabel_line_${c}_${g}`
|
|
1863
1865
|
}, [
|
|
1864
|
-
|
|
1866
|
+
s && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 ? (l(), r("text", {
|
|
1865
1867
|
key: 0,
|
|
1866
|
-
x:
|
|
1867
|
-
y:
|
|
1868
|
+
x: s.x,
|
|
1869
|
+
y: s.y + (s.value > 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
1868
1870
|
"text-anchor": "middle",
|
|
1869
1871
|
"font-size": i.fontSizes.plotLabels,
|
|
1870
1872
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
1871
|
-
}, S(e.canShowValue(
|
|
1873
|
+
}, S(e.canShowValue(s.value) ? e.applyDataLabel(
|
|
1872
1874
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1873
|
-
|
|
1875
|
+
s.value,
|
|
1874
1876
|
e.dataLabel({
|
|
1875
1877
|
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1876
|
-
v:
|
|
1878
|
+
v: s.value,
|
|
1877
1879
|
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1878
1880
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1879
1881
|
}),
|
|
1880
1882
|
{
|
|
1881
|
-
datapoint:
|
|
1883
|
+
datapoint: s,
|
|
1882
1884
|
serie: t
|
|
1883
1885
|
}
|
|
1884
1886
|
) : ""), 9, ba)) : o("", !0),
|
|
1885
|
-
|
|
1887
|
+
s && g === 0 && t.useTag && t.useTag === "start" ? (l(), r("foreignObject", {
|
|
1886
1888
|
key: 1,
|
|
1887
|
-
x:
|
|
1888
|
-
y:
|
|
1889
|
+
x: s.x,
|
|
1890
|
+
y: s.y - 20,
|
|
1889
1891
|
height: 24,
|
|
1890
1892
|
width: "150",
|
|
1891
1893
|
style: { overflow: "visible" }
|
|
@@ -1894,10 +1896,10 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1894
1896
|
style: A(`padding: 3px; background:${e.setOpacity(t.color, 80)};color:${e.adaptColorToBackground(t.color)};width:fit-content;font-size:${i.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1895
1897
|
}, S(t.name), 5)
|
|
1896
1898
|
], 8, Fa)) : o("", !0),
|
|
1897
|
-
|
|
1899
|
+
s && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (l(), r("foreignObject", {
|
|
1898
1900
|
key: 2,
|
|
1899
|
-
x:
|
|
1900
|
-
y:
|
|
1901
|
+
x: s.x - t.name.length * (i.fontSizes.plotLabels / 2),
|
|
1902
|
+
y: s.y - 20,
|
|
1901
1903
|
height: 24,
|
|
1902
1904
|
width: "150",
|
|
1903
1905
|
style: { overflow: "visible" }
|
|
@@ -1909,18 +1911,18 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1909
1911
|
]))), 128))
|
|
1910
1912
|
], 6))), 128))
|
|
1911
1913
|
])) : o("", !0),
|
|
1912
|
-
(
|
|
1914
|
+
(l(!0), r(N, null, I(e.lineSet, (t, c) => (l(), r("g", {
|
|
1913
1915
|
key: `xLabel_line_${c}`,
|
|
1914
1916
|
class: M(`xLabel_line_${c}`),
|
|
1915
1917
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1916
1918
|
}, [
|
|
1917
|
-
(
|
|
1919
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1918
1920
|
key: `xLabel_line_${c}_${g}`
|
|
1919
1921
|
}, [
|
|
1920
|
-
|
|
1922
|
+
s && g === 0 && t.showSerieName && t.showSerieName === "start" ? (l(), r("text", {
|
|
1921
1923
|
key: 0,
|
|
1922
|
-
x:
|
|
1923
|
-
y:
|
|
1924
|
+
x: s.x - i.fontSizes.plotLabels,
|
|
1925
|
+
y: s.y,
|
|
1924
1926
|
"font-size": i.fontSizes.plotLabels,
|
|
1925
1927
|
"text-anchor": "end",
|
|
1926
1928
|
fill: t.color,
|
|
@@ -1928,15 +1930,15 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1928
1930
|
content: t.name,
|
|
1929
1931
|
fontSize: i.fontSizes.plotLabels,
|
|
1930
1932
|
fill: t.color,
|
|
1931
|
-
x:
|
|
1932
|
-
y:
|
|
1933
|
+
x: s.x - i.fontSizes.plotLabels,
|
|
1934
|
+
y: s.y,
|
|
1933
1935
|
maxWords: 2
|
|
1934
1936
|
})
|
|
1935
1937
|
}, null, 8, ya)) : o("", !0),
|
|
1936
|
-
|
|
1938
|
+
s && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (l(), r("text", {
|
|
1937
1939
|
key: 1,
|
|
1938
|
-
x:
|
|
1939
|
-
y:
|
|
1940
|
+
x: s.x + i.fontSizes.plotLabels,
|
|
1941
|
+
y: s.y,
|
|
1940
1942
|
"font-size": i.fontSizes.plotLabels,
|
|
1941
1943
|
"text-anchor": "start",
|
|
1942
1944
|
fill: t.color,
|
|
@@ -1944,25 +1946,25 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1944
1946
|
content: t.name,
|
|
1945
1947
|
fontSize: i.fontSizes.plotLabels,
|
|
1946
1948
|
fill: t.color,
|
|
1947
|
-
x:
|
|
1948
|
-
y:
|
|
1949
|
+
x: s.x + i.fontSizes.plotLabels,
|
|
1950
|
+
y: s.y,
|
|
1949
1951
|
maxWords: 2
|
|
1950
1952
|
})
|
|
1951
1953
|
}, null, 8, Aa)) : o("", !0)
|
|
1952
1954
|
]))), 128))
|
|
1953
1955
|
], 6))), 128)),
|
|
1954
|
-
(
|
|
1956
|
+
(l(!0), r(N, null, I(e.plotSet, (t, c) => (l(), r("g", {
|
|
1955
1957
|
key: `xLabel_plot_${c}`,
|
|
1956
1958
|
class: M(`xLabel_plot_${c}`),
|
|
1957
1959
|
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1958
1960
|
}, [
|
|
1959
|
-
(
|
|
1961
|
+
(l(!0), r(N, null, I(t.plots, (s, g) => (l(), r("g", {
|
|
1960
1962
|
key: `xLabel_plot_${c}_${g}`
|
|
1961
1963
|
}, [
|
|
1962
|
-
|
|
1964
|
+
s && g === 0 && t.showSerieName && t.showSerieName === "start" ? (l(), r("text", {
|
|
1963
1965
|
key: 0,
|
|
1964
|
-
x:
|
|
1965
|
-
y:
|
|
1966
|
+
x: s.x - i.fontSizes.plotLabels,
|
|
1967
|
+
y: s.y,
|
|
1966
1968
|
"font-size": i.fontSizes.plotLabels,
|
|
1967
1969
|
"text-anchor": "end",
|
|
1968
1970
|
fill: t.color,
|
|
@@ -1970,15 +1972,15 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1970
1972
|
content: t.name,
|
|
1971
1973
|
fontSize: i.fontSizes.plotLabels,
|
|
1972
1974
|
fill: t.color,
|
|
1973
|
-
x:
|
|
1974
|
-
y:
|
|
1975
|
+
x: s.x - i.fontSizes.plotLabels,
|
|
1976
|
+
y: s.y,
|
|
1975
1977
|
maxWords: 2
|
|
1976
1978
|
})
|
|
1977
1979
|
}, null, 8, La)) : o("", !0),
|
|
1978
|
-
|
|
1980
|
+
s && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (l(), r("text", {
|
|
1979
1981
|
key: 1,
|
|
1980
|
-
x:
|
|
1981
|
-
y:
|
|
1982
|
+
x: s.x + i.fontSizes.plotLabels,
|
|
1983
|
+
y: s.y,
|
|
1982
1984
|
"font-size": i.fontSizes.plotLabels,
|
|
1983
1985
|
"text-anchor": "start",
|
|
1984
1986
|
fill: t.color,
|
|
@@ -1986,24 +1988,24 @@ function Ya(a, s, h, f, i, e) {
|
|
|
1986
1988
|
content: t.name,
|
|
1987
1989
|
fontSize: i.fontSizes.plotLabels,
|
|
1988
1990
|
fill: t.color,
|
|
1989
|
-
x:
|
|
1990
|
-
y:
|
|
1991
|
+
x: s.x + i.fontSizes.plotLabels,
|
|
1992
|
+
y: s.y,
|
|
1991
1993
|
maxWords: 2
|
|
1992
1994
|
})
|
|
1993
1995
|
}, null, 8, Ca)) : o("", !0)
|
|
1994
1996
|
]))), 128))
|
|
1995
1997
|
], 6))), 128)),
|
|
1996
|
-
i.mutableConfig.useIndividualScale && !i.mutableConfig.isStacked ? (
|
|
1998
|
+
i.mutableConfig.useIndividualScale && !i.mutableConfig.isStacked ? (l(!0), r(N, { key: 8 }, I(e.allScales, (t) => (l(), r("rect", {
|
|
1997
1999
|
x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1998
2000
|
y: e.drawingArea.top,
|
|
1999
2001
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2000
2002
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2001
2003
|
fill: i.selectedScale === t.id ? e.setOpacity(t.color, 20) : "transparent",
|
|
2002
2004
|
onMouseenter: (c) => i.selectedScale = t.id,
|
|
2003
|
-
onMouseleave:
|
|
2005
|
+
onMouseleave: n[0] || (n[0] = (c) => i.selectedScale = null)
|
|
2004
2006
|
}, null, 40, Sa))), 256)) : o("", !0),
|
|
2005
2007
|
u("g", null, [
|
|
2006
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !i.mutableConfig.useIndividualScale ? (
|
|
2008
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !i.mutableConfig.useIndividualScale ? (l(), r("text", {
|
|
2007
2009
|
key: 0,
|
|
2008
2010
|
"font-size": i.fontSizes.yAxis,
|
|
2009
2011
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
@@ -2011,7 +2013,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2011
2013
|
"text-anchor": "middle",
|
|
2012
2014
|
style: { transition: "none" }
|
|
2013
2015
|
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, ka)) : o("", !0),
|
|
2014
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (
|
|
2016
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (l(), r("text", {
|
|
2015
2017
|
key: 1,
|
|
2016
2018
|
"text-anchor": "middle",
|
|
2017
2019
|
x: i.width / 2,
|
|
@@ -2020,21 +2022,21 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2020
2022
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2021
2023
|
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, wa)) : o("", !0)
|
|
2022
2024
|
]),
|
|
2023
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (
|
|
2024
|
-
(
|
|
2025
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), r("g", Oa, [
|
|
2026
|
+
(l(!0), r(N, null, I(e.timeLabels, (t, c) => (l(), r("g", {
|
|
2025
2027
|
key: `time_label_${c}`
|
|
2026
2028
|
}, [
|
|
2027
|
-
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && i.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (
|
|
2029
|
+
t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (c === 0 || c === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && i.selectedSerieIndex === c && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || t && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && c % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (l(), r("text", {
|
|
2028
2030
|
key: 0,
|
|
2029
2031
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2030
2032
|
"font-size": i.fontSizes.xAxis,
|
|
2031
2033
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2032
2034
|
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + i.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`
|
|
2033
|
-
}, S(t || ""), 9,
|
|
2035
|
+
}, S(t || ""), 9, Ga)) : o("", !0)
|
|
2034
2036
|
]))), 128))
|
|
2035
2037
|
])) : o("", !0),
|
|
2036
2038
|
u("g", null, [
|
|
2037
|
-
(
|
|
2039
|
+
(l(!0), r(N, null, I(e.maxSeries, (t, c) => (l(), r("g", {
|
|
2038
2040
|
key: `tooltip_trap_${c}`
|
|
2039
2041
|
}, [
|
|
2040
2042
|
u("rect", {
|
|
@@ -2044,14 +2046,14 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2044
2046
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2045
2047
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2046
2048
|
fill: "transparent",
|
|
2047
|
-
onMouseenter: (
|
|
2048
|
-
onMouseleave:
|
|
2049
|
-
onClick: (
|
|
2050
|
-
}, null, 40,
|
|
2049
|
+
onMouseenter: (s) => e.toggleTooltipVisibility(!0, c),
|
|
2050
|
+
onMouseleave: n[1] || (n[1] = (s) => e.toggleTooltipVisibility(!1)),
|
|
2051
|
+
onClick: (s) => e.selectX(c)
|
|
2052
|
+
}, null, 40, va)
|
|
2051
2053
|
]))), 128))
|
|
2052
2054
|
]),
|
|
2053
|
-
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(i.selectedSerieIndex) ? (
|
|
2054
|
-
(
|
|
2055
|
+
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(i.selectedSerieIndex) ? (l(), r("g", pa, [
|
|
2056
|
+
(l(), r("foreignObject", {
|
|
2055
2057
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * i.selectedSerieIndex - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2056
2058
|
y: e.drawingArea.bottom,
|
|
2057
2059
|
width: "200",
|
|
@@ -2073,10 +2075,10 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2073
2075
|
])) : o("", !0),
|
|
2074
2076
|
O(a.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2075
2077
|
], 14, Ze)) : o("", !0),
|
|
2076
|
-
a.$slots.watermark ? (
|
|
2078
|
+
a.$slots.watermark ? (l(), r("div", Ta, [
|
|
2077
2079
|
O(a.$slots, "watermark", B(Y({ isPrinting: i.isPrinting || i.isImaging })), void 0, !0)
|
|
2078
2080
|
])) : o("", !0),
|
|
2079
|
-
e.isDataset ? o("", !0) : (
|
|
2081
|
+
e.isDataset ? o("", !0) : (l(), V(m, {
|
|
2080
2082
|
key: 4,
|
|
2081
2083
|
config: {
|
|
2082
2084
|
type: "line",
|
|
@@ -2094,7 +2096,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2094
2096
|
}
|
|
2095
2097
|
}
|
|
2096
2098
|
}, null, 8, ["config"])),
|
|
2097
|
-
e.FINAL_CONFIG.chart.zoom.show && i.maxX > 6 && e.isDataset ? (
|
|
2099
|
+
e.FINAL_CONFIG.chart.zoom.show && i.maxX > 6 && e.isDataset ? (l(), V(C, {
|
|
2098
2100
|
ref: "chartSlicer",
|
|
2099
2101
|
key: `slicer_${i.slicerStep}`,
|
|
2100
2102
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
@@ -2119,9 +2121,9 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2119
2121
|
valueStart: i.slicer.start,
|
|
2120
2122
|
valueEnd: i.slicer.end,
|
|
2121
2123
|
start: i.slicer.start,
|
|
2122
|
-
"onUpdate:start":
|
|
2124
|
+
"onUpdate:start": n[2] || (n[2] = (t) => i.slicer.start = t),
|
|
2123
2125
|
end: i.slicer.end,
|
|
2124
|
-
"onUpdate:end":
|
|
2126
|
+
"onUpdate:end": n[3] || (n[3] = (t) => i.slicer.end = t),
|
|
2125
2127
|
onReset: e.refreshSlicer,
|
|
2126
2128
|
onTrapMouse: e.selectMinimapIndex
|
|
2127
2129
|
}, {
|
|
@@ -2130,18 +2132,18 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2130
2132
|
]),
|
|
2131
2133
|
_: 3
|
|
2132
2134
|
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "max", "valueStart", "valueEnd", "start", "end", "onReset", "onTrapMouse"])) : o("", !0),
|
|
2133
|
-
e.FINAL_CONFIG.chart.legend.show ? (
|
|
2135
|
+
e.FINAL_CONFIG.chart.legend.show ? (l(), r("div", {
|
|
2134
2136
|
key: 6,
|
|
2135
2137
|
ref: "chartLegend",
|
|
2136
2138
|
class: "vue-ui-xy-legend",
|
|
2137
2139
|
style: A(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2138
2140
|
}, [
|
|
2139
|
-
(
|
|
2141
|
+
(l(!0), r(N, null, I(e.absoluteDataset, (t, c) => (l(), r("div", {
|
|
2140
2142
|
key: `div_legend_item_${c}`,
|
|
2141
|
-
onClick: (
|
|
2143
|
+
onClick: (s) => e.segregate(t),
|
|
2142
2144
|
class: M({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": i.segregatedSeries.includes(t.id) })
|
|
2143
2145
|
}, [
|
|
2144
|
-
i.icons[t.type] === "line" ? (
|
|
2146
|
+
i.icons[t.type] === "line" ? (l(), r("svg", Va, [
|
|
2145
2147
|
u("rect", {
|
|
2146
2148
|
x: "0",
|
|
2147
2149
|
y: "7",
|
|
@@ -2159,8 +2161,8 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2159
2161
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2160
2162
|
strokeWidth: 1
|
|
2161
2163
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2162
|
-
])) : (
|
|
2163
|
-
i.icons[t.type] === "bar" ? (
|
|
2164
|
+
])) : (l(), r("svg", Da, [
|
|
2165
|
+
i.icons[t.type] === "bar" ? (l(), r("rect", {
|
|
2164
2166
|
key: 0,
|
|
2165
2167
|
x: "0",
|
|
2166
2168
|
y: "0",
|
|
@@ -2169,7 +2171,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2169
2171
|
width: "12",
|
|
2170
2172
|
stroke: "none",
|
|
2171
2173
|
fill: t.color
|
|
2172
|
-
}, null, 8,
|
|
2174
|
+
}, null, 8, Wa)) : (l(), V(L, {
|
|
2173
2175
|
key: 1,
|
|
2174
2176
|
plot: { x: 6, y: 6 },
|
|
2175
2177
|
radius: 5,
|
|
@@ -2181,7 +2183,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2181
2183
|
style: A(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2182
2184
|
}, S(t.name), 5)
|
|
2183
2185
|
], 10, Pa))), 128))
|
|
2184
|
-
], 4)) : (
|
|
2186
|
+
], 4)) : (l(), r("div", Ha, [
|
|
2185
2187
|
O(a.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2186
2188
|
], 512)),
|
|
2187
2189
|
q(z, {
|
|
@@ -2207,7 +2209,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2207
2209
|
]),
|
|
2208
2210
|
_: 3
|
|
2209
2211
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
2210
|
-
e.isDataset ? (
|
|
2212
|
+
e.isDataset ? (l(), V(F, {
|
|
2211
2213
|
key: 8,
|
|
2212
2214
|
hideDetails: "",
|
|
2213
2215
|
config: {
|
|
@@ -2228,14 +2230,14 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2228
2230
|
style: A(`${i.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2229
2231
|
}, [
|
|
2230
2232
|
u("div", Ea, [
|
|
2231
|
-
|
|
2233
|
+
We(u("input", {
|
|
2232
2234
|
type: "checkbox",
|
|
2233
|
-
"onUpdate:modelValue":
|
|
2235
|
+
"onUpdate:modelValue": n[4] || (n[4] = (t) => i.showSparklineTable = t)
|
|
2234
2236
|
}, null, 512), [
|
|
2235
|
-
[
|
|
2237
|
+
[He, i.showSparklineTable]
|
|
2236
2238
|
]),
|
|
2237
2239
|
u("div", {
|
|
2238
|
-
onClick:
|
|
2240
|
+
onClick: n[5] || (n[5] = (t) => i.showSparklineTable = !i.showSparklineTable),
|
|
2239
2241
|
style: { cursor: "pointer" }
|
|
2240
2242
|
}, [
|
|
2241
2243
|
q(k, {
|
|
@@ -2245,18 +2247,18 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2245
2247
|
}, null, 8, ["stroke"])
|
|
2246
2248
|
])
|
|
2247
2249
|
]),
|
|
2248
|
-
i.showSparklineTable ? (
|
|
2250
|
+
i.showSparklineTable ? (l(), V(v, {
|
|
2249
2251
|
key: `sparkline_${i.segregateStep}`,
|
|
2250
2252
|
dataset: e.tableSparklineDataset,
|
|
2251
2253
|
config: e.tableSparklineConfig
|
|
2252
|
-
}, null, 8, ["dataset", "config"])) : (
|
|
2254
|
+
}, null, 8, ["dataset", "config"])) : (l(), V(G, {
|
|
2253
2255
|
key: `table_${i.tableStep}`,
|
|
2254
2256
|
colNames: e.dataTable.colNames,
|
|
2255
2257
|
head: e.dataTable.head,
|
|
2256
2258
|
body: e.dataTable.body,
|
|
2257
2259
|
config: e.dataTable.config,
|
|
2258
2260
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2259
|
-
onClose:
|
|
2261
|
+
onClose: n[6] || (n[6] = (t) => i.mutableConfig.showTable = !1)
|
|
2260
2262
|
}, {
|
|
2261
2263
|
th: p(({ th: t }) => [
|
|
2262
2264
|
u("div", { innerHTML: t }, null, 8, Ba)
|
|
@@ -2277,7 +2279,7 @@ function Ya(a, s, h, f, i, e) {
|
|
|
2277
2279
|
}, 8, ["config"])) : o("", !0)
|
|
2278
2280
|
], 14, qe);
|
|
2279
2281
|
}
|
|
2280
|
-
const si = /* @__PURE__ */ Be(Xe, [["render", Ya], ["__scopeId", "data-v-
|
|
2282
|
+
const si = /* @__PURE__ */ Be(Xe, [["render", Ya], ["__scopeId", "data-v-72e644a5"]]);
|
|
2281
2283
|
export {
|
|
2282
2284
|
si as default
|
|
2283
2285
|
};
|