vue-data-ui 2.3.83 → 2.3.85
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-CcR4ZIEI.cjs → Arrow-CLOh6oi7.cjs} +1 -1
- package/dist/{Arrow-M7fNgsWN.js → Arrow-JwDgP3de.js} +1 -1
- package/dist/{BaseIcon-BHuHlqT8.cjs → BaseIcon-BBQHz_Sf.cjs} +1 -1
- package/dist/{BaseIcon-DY4dOkkj.js → BaseIcon-BysUnfCR.js} +1 -1
- package/dist/{DataTable-NaCUmiJt.js → DataTable-MkG5Dqrn.js} +2 -2
- package/dist/{DataTable-BYpARrqG.cjs → DataTable-pVXaNplZ.cjs} +1 -1
- package/dist/{Legend-CK7IfQW2.js → Legend-KW7sTwN3.js} +1 -1
- package/dist/{Legend-D8icDk38.cjs → Legend-k2mcTp7z.cjs} +1 -1
- package/dist/{Shape-BBQ0BAq6.js → Shape-BFiZBf3X.js} +1 -1
- package/dist/{Shape-BSA-6ATj.cjs → Shape-COoEWeGM.cjs} +1 -1
- package/dist/{Slicer-BSNY_ZDL.js → Slicer-CALc-Q4W.js} +2 -2
- package/dist/{Slicer-BEiXplka.cjs → Slicer-DCyxUSsn.cjs} +1 -1
- package/dist/{Title-1LPI4Pd7.cjs → Title-BaKZYHEx.cjs} +1 -1
- package/dist/{Title-I5LLf5MT.js → Title-ISDbzCH8.js} +1 -1
- package/dist/{Tooltip-UuN-HISf.js → Tooltip-BHmMXOej.js} +1 -1
- package/dist/{Tooltip-BbUUQjWg.cjs → Tooltip-okAYzo5Y.cjs} +1 -1
- package/dist/{index-B6bGaBzE.js → index-BiuHBtkZ.js} +2 -1
- package/dist/index-D-vy9N1v.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-CAjEiadB.cjs → useNestedProp-B9yDavuy.cjs} +1 -1
- package/dist/{useNestedProp-BS8PvQ5U.js → useNestedProp-Ck5_RzLu.js} +1 -1
- package/dist/{usePrinter-DthbDD1O.js → usePrinter-Do8KiK5h.js} +1 -1
- package/dist/{usePrinter-D47Cl-_I.cjs → usePrinter-P4nLcXX-.cjs} +1 -1
- package/dist/{vue-data-ui-BesfxeQR.js → vue-data-ui-CAl2KJv9.js} +57 -57
- package/dist/{vue-data-ui-ZBy4ZyPH.cjs → vue-data-ui-CVYCyzY-.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-BmCupY_F.js → vue-ui-3d-bar-CploAEkY.js} +163 -163
- package/dist/vue-ui-3d-bar-DlUqKETN.cjs +19 -0
- package/dist/{vue-ui-accordion-BblXoBgi.js → vue-ui-accordion-D2fhyKpk.js} +3 -3
- package/dist/{vue-ui-accordion-DVK9JwAM.cjs → vue-ui-accordion-btKAUUTu.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CzgKgRqy.js → vue-ui-age-pyramid-DkaM5MrK.js} +55 -55
- package/dist/{vue-ui-annotator-CQryTk_7.js → vue-ui-annotator-38FBI0Pn.js} +1 -1
- package/dist/{vue-ui-annotator-dTbuigK7.cjs → vue-ui-annotator-BMYk78DR.cjs} +1 -1
- package/dist/vue-ui-candlestick-BJulnyV3.cjs +2 -0
- package/dist/{vue-ui-candlestick-DH3-JcNQ.js → vue-ui-candlestick-CKsjq0Uw.js} +81 -81
- package/dist/{vue-ui-carousel-table-DxDDpzyO.cjs → vue-ui-carousel-table-Cx72LlTd.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BoLJlPIf.js → vue-ui-carousel-table-DjGaEuM7.js} +4 -4
- package/dist/{vue-ui-chestnut-BHo_m_eO.cjs → vue-ui-chestnut-DAiBfoPN.cjs} +2 -2
- package/dist/{vue-ui-chestnut-DFCI0g97.js → vue-ui-chestnut-TLyh4dIZ.js} +9 -9
- package/dist/{vue-ui-cursor-DjVXzBDJ.js → vue-ui-cursor-B1xa5yua.js} +2 -2
- package/dist/{vue-ui-cursor-WpptD__s.cjs → vue-ui-cursor-BunDuWpK.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DewqEIU8.cjs → vue-ui-dashboard-CMZ736DL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Cms5XJQ9.js → vue-ui-dashboard-DdcubzWu.js} +2 -2
- package/dist/{vue-ui-digits-C0YWch_M.js → vue-ui-digits-BUpjWWnD.js} +2 -2
- package/dist/{vue-ui-digits-ChM4kqZY.cjs → vue-ui-digits-z5g__gqs.cjs} +1 -1
- package/dist/vue-ui-donut-TY2Z9Ljx.cjs +1 -0
- package/dist/{vue-ui-donut-jnS5SfdU.js → vue-ui-donut-ZLpfm-XT.js} +73 -73
- package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-bM3kCJUD.js → vue-ui-donut-evolution-Bn4asQO3.js} +81 -81
- package/dist/{vue-ui-dumbbell-DhZL7zEK.cjs → vue-ui-dumbbell-CY6X8J1K.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-CJr-rur-.js → vue-ui-dumbbell-D2R9tJ99.js} +21 -21
- package/dist/{vue-ui-flow-C0vcVRWr.js → vue-ui-flow-Dd5uPNTQ.js} +52 -52
- package/dist/vue-ui-flow-DswsuPwy.cjs +1 -0
- package/dist/{vue-ui-galaxy-B3FMALkv.js → vue-ui-galaxy-B7CoWLhj.js} +85 -85
- package/dist/vue-ui-galaxy-Dxy6jzus.cjs +1 -0
- package/dist/{vue-ui-gauge-BwDm2zQl.js → vue-ui-gauge-CGh_m922.js} +61 -61
- package/dist/vue-ui-gauge-CWd_ol6u.cjs +1 -0
- package/dist/{vue-ui-gizmo-D9EQ3r0O.js → vue-ui-gizmo-BY3hnKSH.js} +2 -2
- package/dist/{vue-ui-gizmo-DA_RRisA.cjs → vue-ui-gizmo-D5Kn7w7L.cjs} +1 -1
- package/dist/vue-ui-heatmap-AUm42a1v.cjs +1 -0
- package/dist/{vue-ui-heatmap-DAOrAKZ7.js → vue-ui-heatmap-yYN0u0I6.js} +150 -150
- package/dist/{vue-ui-kpi-_-b-280h.js → vue-ui-kpi-B4zr_geL.js} +3 -3
- package/dist/{vue-ui-kpi-DP430jb8.cjs → vue-ui-kpi-Q20yM3IP.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CPtiWFfd.cjs → vue-ui-mini-loader-GFSZofpE.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BHLoiHsr.js → vue-ui-mini-loader-GImbaGsN.js} +2 -2
- package/dist/vue-ui-molecule-C9FcDH4x.cjs +1 -0
- package/dist/{vue-ui-molecule-BeBh4FNr.js → vue-ui-molecule-DmrB3kgA.js} +54 -54
- package/dist/vue-ui-mood-radar-CRwStVTV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BD9bJ50Z.js → vue-ui-mood-radar-sEkQtzI2.js} +100 -100
- package/dist/{vue-ui-nested-donuts-eCox9YV-.cjs → vue-ui-nested-donuts-BcOgxtZV.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-Cgto3tF8.js → vue-ui-nested-donuts-DvpZLcYd.js} +43 -43
- package/dist/vue-ui-onion-C9v9YjdJ.cjs +5 -0
- package/dist/{vue-ui-onion-CuNbMdeS.js → vue-ui-onion-DQMLPe3M.js} +88 -88
- package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-VJfABpcX.js → vue-ui-parallel-coordinate-plot-DN2LPNyS.js} +38 -38
- package/dist/{vue-ui-quadrant-vM1usRVi.js → vue-ui-quadrant-D2GpeXI6.js} +49 -49
- package/dist/vue-ui-quadrant-ulY-rCMI.cjs +1 -0
- package/dist/{vue-ui-quick-chart-BGVhBISR.js → vue-ui-quick-chart-C5K9DfUV.js} +12 -12
- package/dist/vue-ui-quick-chart-DFj17h6h.cjs +15 -0
- package/dist/{vue-ui-radar-B_GDv1OM.js → vue-ui-radar-B9TZPujK.js} +42 -42
- package/dist/vue-ui-radar-KA287Tp-.cjs +1 -0
- package/dist/{vue-ui-rating-ANVaulU4.js → vue-ui-rating-B0pNsmGB.js} +2 -2
- package/dist/{vue-ui-rating-C2XpUtCE.cjs → vue-ui-rating-DpxzUDQq.cjs} +1 -1
- package/dist/vue-ui-relation-circle-D3B-lpdM.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CeHXshK7.js → vue-ui-relation-circle-DSnlpLHt.js} +54 -54
- package/dist/{vue-ui-rings-BbmSC-kG.js → vue-ui-rings-BuvFDBXg.js} +77 -77
- package/dist/vue-ui-rings-cmeFVitd.cjs +2 -0
- package/dist/vue-ui-scatter-BWPqoSUN.cjs +1 -0
- package/dist/{vue-ui-scatter-dWaDeP28.js → vue-ui-scatter-D_chvOSJ.js} +51 -51
- package/dist/{vue-ui-screenshot-CDkexSfB.cjs → vue-ui-screenshot-CwrXLMru.cjs} +1 -1
- package/dist/{vue-ui-screenshot-LFcpEMW-.js → vue-ui-screenshot-DSHeHshf.js} +1 -1
- package/dist/{vue-ui-skeleton-BR_pp7QN.cjs → vue-ui-skeleton-DJhwv2oY.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DyodIkl3.js → vue-ui-skeleton-Du4zw-c1.js} +2 -2
- package/dist/{vue-ui-smiley-vzDOQmfu.cjs → vue-ui-smiley-BNkk6suC.cjs} +1 -1
- package/dist/{vue-ui-smiley-BW1y5hnG.js → vue-ui-smiley-BtQLJ7rA.js} +2 -2
- package/dist/{vue-ui-spark-trend-DANt3xrm.js → vue-ui-spark-trend-BgA79g7a.js} +29 -29
- package/dist/vue-ui-spark-trend-DFIjxBTY.cjs +1 -0
- package/dist/vue-ui-sparkbar-BlwQfhlY.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Ds2HHojQ.js → vue-ui-sparkbar-DQAWZReF.js} +27 -27
- package/dist/vue-ui-sparkgauge-BCRSQDpt.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-BtJZFN2Q.js → vue-ui-sparkgauge-CCApU38s.js} +22 -22
- package/dist/vue-ui-sparkhistogram-CTxG1Vtn.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-BK5q9yzw.js → vue-ui-sparkhistogram-PKTt4EmH.js} +52 -52
- package/dist/{vue-ui-sparkline-BH7TjDt8.cjs → vue-ui-sparkline-BUaixngQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-hX4509iJ.js → vue-ui-sparkline-EESAiZyt.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-D5GszwYa.js → vue-ui-sparkstackbar-TnLNixdf.js} +6 -6
- package/dist/vue-ui-sparkstackbar-iQnc0zcO.cjs +1 -0
- package/dist/{vue-ui-stackbar-B_hMyMvl.js → vue-ui-stackbar-Ci04sup3.js} +62 -62
- package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +6 -0
- package/dist/vue-ui-strip-plot-CowHumiU.cjs +1 -0
- package/dist/{vue-ui-strip-plot-de9Eymtb.js → vue-ui-strip-plot-DbvW0BuF.js} +72 -72
- package/dist/{vue-ui-table-DCdfSuVG.cjs → vue-ui-table-328De4vk.cjs} +1 -1
- package/dist/{vue-ui-table-BLHo9-_6.js → vue-ui-table-CamkBCdL.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BszD4e0_.cjs → vue-ui-table-heatmap-CCHre3Gt.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Dr5Qk35G.js → vue-ui-table-heatmap-D-YdrvGV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BWXuJi0-.cjs → vue-ui-table-sparkline-Cmg7wnQ0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B6IhXLL_.js → vue-ui-table-sparkline-Dg2RKv6f.js} +5 -5
- package/dist/vue-ui-thermometer-BDeKErC9.cjs +1 -0
- package/dist/{vue-ui-thermometer-DXv1JPZX.js → vue-ui-thermometer-jWHbZTc2.js} +47 -47
- package/dist/{vue-ui-timer-DtWdRECG.js → vue-ui-timer-BPepr5eV.js} +4 -4
- package/dist/{vue-ui-timer-Db-uYQDe.cjs → vue-ui-timer-B_FyRAU7.cjs} +1 -1
- package/dist/vue-ui-tiremarks-CaJWlyz8.cjs +1 -0
- package/dist/{vue-ui-tiremarks-Cda6cwHT.js → vue-ui-tiremarks-DW8Q2IBl.js} +94 -94
- package/dist/{vue-ui-treemap-HzIfevi0.cjs → vue-ui-treemap-B9GpvA0k.cjs} +1 -1
- package/dist/{vue-ui-treemap-nX8RJJ0M.js → vue-ui-treemap-CWu43qLo.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Cq9OrF-E.js → vue-ui-vertical-bar-CndASePh.js} +178 -178
- package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +4 -0
- package/dist/{vue-ui-waffle-CdfiQX7W.js → vue-ui-waffle-CdyqwJwN.js} +71 -71
- package/dist/vue-ui-waffle-c9ycdoKz.cjs +1 -0
- package/dist/vue-ui-wheel-B3BMfKmd.cjs +1 -0
- package/dist/{vue-ui-wheel-pj51puV8.js → vue-ui-wheel-Byq_BLhl.js} +57 -57
- package/dist/{vue-ui-word-cloud-D04mc7xB.js → vue-ui-word-cloud-BRxN5uFD.js} +107 -107
- package/dist/{vue-ui-word-cloud-DbFRSx5H.cjs → vue-ui-word-cloud-BVOcsuMP.cjs} +1 -1
- package/dist/vue-ui-xy-CsS5ny0q.cjs +3 -0
- package/dist/{vue-ui-xy-CTSQiIh0.js → vue-ui-xy-DgEdZz0O.js} +831 -817
- package/dist/{vue-ui-xy-canvas-6lqDLyxU.js → vue-ui-xy-canvas-BI7jUOTn.js} +10 -10
- package/dist/{vue-ui-xy-canvas-D78-vkpW.cjs → vue-ui-xy-canvas-Td0WNYN0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CuTsdJDI.cjs +0 -4
- package/dist/vue-ui-3d-bar-ndPdPajx.cjs +0 -19
- package/dist/vue-ui-age-pyramid-ua3MdmCq.cjs +0 -1
- package/dist/vue-ui-candlestick-BSDnT9kJ.cjs +0 -2
- package/dist/vue-ui-donut-evolution-ConFJEQl.cjs +0 -1
- package/dist/vue-ui-donut-wewLho92.cjs +0 -1
- package/dist/vue-ui-flow-Cpwccu5D.cjs +0 -1
- package/dist/vue-ui-galaxy-BfcyfvBH.cjs +0 -1
- package/dist/vue-ui-gauge-CzhpktL0.cjs +0 -1
- package/dist/vue-ui-heatmap-DgeFeTzQ.cjs +0 -1
- package/dist/vue-ui-molecule-Bo_vv3KE.cjs +0 -1
- package/dist/vue-ui-mood-radar-BgM0X3vV.cjs +0 -1
- package/dist/vue-ui-onion-Bg4bO8zm.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-Cn_H0TAS.cjs +0 -8
- package/dist/vue-ui-quadrant-CsBneYsu.cjs +0 -1
- package/dist/vue-ui-quick-chart-Be96p8ex.cjs +0 -15
- package/dist/vue-ui-radar-CkX69xOF.cjs +0 -1
- package/dist/vue-ui-relation-circle-4JRcycOA.cjs +0 -1
- package/dist/vue-ui-rings-BFDBWLpB.cjs +0 -2
- package/dist/vue-ui-scatter-DXC7BLyb.cjs +0 -1
- package/dist/vue-ui-spark-trend-B6bGMK7B.cjs +0 -1
- package/dist/vue-ui-sparkbar-D9lC7k4l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-B1xubatN.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-Czii-6F7.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-K6WpH3Yp.cjs +0 -1
- package/dist/vue-ui-stackbar-D7LVOSv5.cjs +0 -6
- package/dist/vue-ui-strip-plot-CVT5B7TW.cjs +0 -1
- package/dist/vue-ui-thermometer-C1zl2BIB.cjs +0 -1
- package/dist/vue-ui-tiremarks-CjBnqmbt.cjs +0 -1
- package/dist/vue-ui-vertical-bar-CemDj3SW.cjs +0 -4
- package/dist/vue-ui-waffle-Cb6ILDHZ.cjs +0 -1
- package/dist/vue-ui-wheel-DJ6FlnRI.cjs +0 -1
- package/dist/vue-ui-xy-CUgcj9k1.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
|
|
4
|
-
import { D as Oe } from "./DataTable-
|
|
5
|
-
import { _ as ve } from "./Title-
|
|
6
|
-
import { _ as Ge, u as
|
|
7
|
-
import { _ as
|
|
8
|
-
import Me from "./BaseIcon-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
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
|
|
2
|
+
import { U as K, s as j } from "./usePrinter-Do8KiK5h.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 me, a0 as Ne, 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-BiuHBtkZ.js";
|
|
4
|
+
import { D as Oe } from "./DataTable-MkG5Dqrn.js";
|
|
5
|
+
import { _ as ve } from "./Title-ISDbzCH8.js";
|
|
6
|
+
import { _ as Ge, u as pe } from "./Tooltip-BHmMXOej.js";
|
|
7
|
+
import { _ as ze } from "./Shape-BFiZBf3X.js";
|
|
8
|
+
import Me from "./BaseIcon-BysUnfCR.js";
|
|
9
|
+
import Te from "./vue-ui-table-sparkline-Dg2RKv6f.js";
|
|
10
|
+
import Pe from "./vue-ui-skeleton-Du4zw-c1.js";
|
|
11
|
+
import { S as Ve } from "./Slicer-CALc-Q4W.js";
|
|
12
|
+
import Re from "./vue-ui-accordion-D2fhyKpk.js";
|
|
13
|
+
import { u as U } from "./useNestedProp-Ck5_RzLu.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 m, renderList as I, toDisplayString as S, createVNode as q, withDirectives as He, vModelCheckbox as We, 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",
|
|
@@ -31,13 +31,13 @@ const Ye = J(), Xe = {
|
|
|
31
31
|
},
|
|
32
32
|
components: {
|
|
33
33
|
DataTable: Oe,
|
|
34
|
-
Shape:
|
|
34
|
+
Shape: ze,
|
|
35
35
|
Title: ve,
|
|
36
36
|
Tooltip: Ge,
|
|
37
37
|
UserOptions: K,
|
|
38
38
|
BaseIcon: Me,
|
|
39
|
-
TableSparkline:
|
|
40
|
-
Skeleton:
|
|
39
|
+
TableSparkline: Te,
|
|
40
|
+
Skeleton: Pe,
|
|
41
41
|
Slicer: Ve,
|
|
42
42
|
Accordion: Re
|
|
43
43
|
},
|
|
@@ -50,9 +50,9 @@ const Ye = J(), Xe = {
|
|
|
50
50
|
index: f
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
-
const
|
|
53
|
+
const a = Math.max(...this.dataset.map((h) => h.series.length)), s = {
|
|
54
54
|
start: 0,
|
|
55
|
-
end:
|
|
55
|
+
end: a
|
|
56
56
|
};
|
|
57
57
|
return {
|
|
58
58
|
themePalettes: $,
|
|
@@ -102,7 +102,7 @@ const Ye = J(), Xe = {
|
|
|
102
102
|
titleStep: 0,
|
|
103
103
|
slicer: s,
|
|
104
104
|
__to__: null,
|
|
105
|
-
maxX:
|
|
105
|
+
maxX: a,
|
|
106
106
|
showSparklineTable: !0,
|
|
107
107
|
segregateStep: 0,
|
|
108
108
|
sliderId: Ye,
|
|
@@ -121,7 +121,7 @@ const Ye = J(), Xe = {
|
|
|
121
121
|
},
|
|
122
122
|
watch: {
|
|
123
123
|
dataset: {
|
|
124
|
-
handler(
|
|
124
|
+
handler(a, s) {
|
|
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(
|
|
133
|
+
handler(a, s) {
|
|
134
134
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1;
|
|
135
135
|
},
|
|
136
136
|
deep: !0
|
|
@@ -139,11 +139,11 @@ const Ye = J(), Xe = {
|
|
|
139
139
|
computed: {
|
|
140
140
|
minimap() {
|
|
141
141
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
142
|
-
const
|
|
143
|
-
for (let
|
|
144
|
-
h.push(
|
|
142
|
+
const a = this.datasetWithIds.filter((i) => !this.segregatedSeries.includes(i.id)), s = Math.max(...a.map((i) => i.series.length)), h = [];
|
|
143
|
+
for (let i = 0; i < s; i += 1)
|
|
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
|
-
return h.map((
|
|
146
|
+
return h.map((i) => i + (f < 0 ? Math.abs(f) : 0));
|
|
147
147
|
},
|
|
148
148
|
customPalette() {
|
|
149
149
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -155,54 +155,54 @@ const Ye = J(), Xe = {
|
|
|
155
155
|
return this.FINAL_CONFIG.chart.zoom.color;
|
|
156
156
|
},
|
|
157
157
|
allScales() {
|
|
158
|
-
const
|
|
159
|
-
name:
|
|
160
|
-
color:
|
|
161
|
-
scale:
|
|
162
|
-
scaleYLabels:
|
|
163
|
-
zero:
|
|
164
|
-
max:
|
|
165
|
-
scaleLabel:
|
|
166
|
-
id:
|
|
167
|
-
yOffset:
|
|
168
|
-
individualHeight:
|
|
169
|
-
autoScaleYLabels:
|
|
170
|
-
})), s = this.barSet.map((
|
|
171
|
-
name:
|
|
172
|
-
color:
|
|
173
|
-
scale:
|
|
174
|
-
scaleYLabels:
|
|
175
|
-
zero:
|
|
176
|
-
max:
|
|
177
|
-
scaleLabel:
|
|
178
|
-
id:
|
|
179
|
-
yOffset:
|
|
180
|
-
individualHeight:
|
|
181
|
-
})), h = this.plotSet.map((
|
|
182
|
-
name:
|
|
183
|
-
color:
|
|
184
|
-
scale:
|
|
185
|
-
scaleYLabels:
|
|
158
|
+
const a = this.lineSet.map((i) => ({
|
|
159
|
+
name: i.name,
|
|
160
|
+
color: i.color,
|
|
161
|
+
scale: i.individualScale,
|
|
162
|
+
scaleYLabels: i.scaleYLabels,
|
|
163
|
+
zero: i.zeroPosition,
|
|
164
|
+
max: i.individualMax,
|
|
165
|
+
scaleLabel: i.scaleLabel || "",
|
|
166
|
+
id: i.id,
|
|
167
|
+
yOffset: i.yOffset || 0,
|
|
168
|
+
individualHeight: i.individualHeight || this.drawingArea.height,
|
|
169
|
+
autoScaleYLabels: i.autoScaleYLabels
|
|
170
|
+
})), s = this.barSet.map((i) => ({
|
|
171
|
+
name: i.name,
|
|
172
|
+
color: i.color,
|
|
173
|
+
scale: i.individualScale,
|
|
174
|
+
scaleYLabels: i.scaleYLabels,
|
|
175
|
+
zero: i.zeroPosition,
|
|
176
|
+
max: i.individualMax,
|
|
177
|
+
scaleLabel: i.scaleLabel || "",
|
|
178
|
+
id: i.id,
|
|
179
|
+
yOffset: i.yOffset || 0,
|
|
180
|
+
individualHeight: i.individualHeight || this.drawingArea.height
|
|
181
|
+
})), h = this.plotSet.map((i) => ({
|
|
182
|
+
name: i.name,
|
|
183
|
+
color: i.color,
|
|
184
|
+
scale: i.individualScale,
|
|
185
|
+
scaleYLabels: i.scaleYLabels,
|
|
186
186
|
// FIX
|
|
187
|
-
zero:
|
|
188
|
-
max:
|
|
189
|
-
scaleLabel:
|
|
190
|
-
id:
|
|
191
|
-
yOffset:
|
|
192
|
-
individualHeight:
|
|
193
|
-
})), f = [...
|
|
194
|
-
return [...
|
|
195
|
-
id:
|
|
196
|
-
scaleLabel:
|
|
197
|
-
name:
|
|
198
|
-
color:
|
|
199
|
-
scale:
|
|
200
|
-
yOffset:
|
|
201
|
-
individualHeight:
|
|
187
|
+
zero: i.zeroPosition,
|
|
188
|
+
max: i.individualMax,
|
|
189
|
+
scaleLabel: i.scaleLabel || "",
|
|
190
|
+
id: i.id,
|
|
191
|
+
yOffset: i.yOffset || 0,
|
|
192
|
+
individualHeight: i.individualHeight || this.drawingArea.height
|
|
193
|
+
})), f = [...a, ...s, ...h].flatMap((i) => i).length;
|
|
194
|
+
return [...a, ...s, ...h].flatMap((i, e) => ({
|
|
195
|
+
id: i.id,
|
|
196
|
+
scaleLabel: i.scaleLabel,
|
|
197
|
+
name: i.name,
|
|
198
|
+
color: i.color,
|
|
199
|
+
scale: i.scale,
|
|
200
|
+
yOffset: i.yOffset,
|
|
201
|
+
individualHeight: i.individualHeight,
|
|
202
202
|
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / f * (e + 1),
|
|
203
|
-
yLabels:
|
|
204
|
-
y:
|
|
205
|
-
value:
|
|
203
|
+
yLabels: i.scaleYLabels || i.scale.ticks.map((x) => ({
|
|
204
|
+
y: x >= 0 ? i.zero - i.individualHeight * (x / i.max) : i.zero + i.individualHeight * Math.abs(x) / i.max,
|
|
205
|
+
value: x
|
|
206
206
|
}))
|
|
207
207
|
}));
|
|
208
208
|
},
|
|
@@ -210,19 +210,19 @@ const Ye = J(), Xe = {
|
|
|
210
210
|
return !!this.dataset && this.dataset.length;
|
|
211
211
|
},
|
|
212
212
|
chartFont() {
|
|
213
|
-
const
|
|
214
|
-
return window.getComputedStyle(
|
|
213
|
+
const a = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
|
|
214
|
+
return window.getComputedStyle(a, null).getPropertyValue("font-family");
|
|
215
215
|
},
|
|
216
216
|
FINAL_CONFIG: {
|
|
217
217
|
get: function() {
|
|
218
218
|
return this.prepareConfig();
|
|
219
219
|
},
|
|
220
|
-
set: function(
|
|
221
|
-
return
|
|
220
|
+
set: function(a) {
|
|
221
|
+
return a;
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
224
|
hasHighlightArea() {
|
|
225
|
-
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((
|
|
225
|
+
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((a) => a.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
|
|
226
226
|
},
|
|
227
227
|
highlightAreas() {
|
|
228
228
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
@@ -230,8 +230,8 @@ const Ye = J(), Xe = {
|
|
|
230
230
|
...s,
|
|
231
231
|
span: s.from === s.to ? 1 : s.to < s.from ? 0 : s.to - s.from + 1
|
|
232
232
|
}));
|
|
233
|
-
const
|
|
234
|
-
return [{ ...
|
|
233
|
+
const a = this.FINAL_CONFIG.chart.highlightArea;
|
|
234
|
+
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
235
235
|
},
|
|
236
236
|
xPadding() {
|
|
237
237
|
return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
|
|
@@ -243,33 +243,33 @@ const Ye = J(), Xe = {
|
|
|
243
243
|
return this.niceScale.max + this.relativeZero;
|
|
244
244
|
},
|
|
245
245
|
datasetWithIds() {
|
|
246
|
-
return this.useSafeValues ? this.dataset.map((
|
|
247
|
-
...
|
|
246
|
+
return this.useSafeValues ? this.dataset.map((a, s) => ({
|
|
247
|
+
...a,
|
|
248
248
|
id: `uniqueId_${s}`
|
|
249
249
|
})) : this.dataset;
|
|
250
250
|
},
|
|
251
251
|
safeDataset() {
|
|
252
|
-
return this.useSafeValues ? this.dataset.map((
|
|
253
|
-
...
|
|
254
|
-
series:
|
|
255
|
-
color: this.convertColorToHex(
|
|
252
|
+
return this.useSafeValues ? this.dataset.map((a, s) => ({
|
|
253
|
+
...a,
|
|
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[s] ? this.customPalette[s] : this.palette[s]),
|
|
256
256
|
id: `uniqueId_${s}`
|
|
257
257
|
})) : this.dataset;
|
|
258
258
|
},
|
|
259
259
|
relativeDataset() {
|
|
260
|
-
return this.safeDataset.map((
|
|
261
|
-
...
|
|
262
|
-
series:
|
|
263
|
-
absoluteValues:
|
|
264
|
-
})).filter((
|
|
260
|
+
return this.safeDataset.map((a, s) => ({
|
|
261
|
+
...a,
|
|
262
|
+
series: a.series.map((h) => h + this.relativeZero),
|
|
263
|
+
absoluteValues: a.series
|
|
264
|
+
})).filter((a) => !this.segregatedSeries.includes(a.id));
|
|
265
265
|
},
|
|
266
266
|
tableSparklineDataset() {
|
|
267
|
-
return this.relativeDataset.map((
|
|
268
|
-
const s =
|
|
267
|
+
return this.relativeDataset.map((a) => {
|
|
268
|
+
const s = a.absoluteValues.map((h) => [void 0, null].includes(h) ? 0 : h);
|
|
269
269
|
return {
|
|
270
|
-
id:
|
|
271
|
-
name:
|
|
272
|
-
color:
|
|
270
|
+
id: a.id,
|
|
271
|
+
name: a.name,
|
|
272
|
+
color: a.color,
|
|
273
273
|
values: this.fillArray(this.maxSeries, s)
|
|
274
274
|
};
|
|
275
275
|
});
|
|
@@ -301,75 +301,75 @@ const Ye = J(), Xe = {
|
|
|
301
301
|
};
|
|
302
302
|
},
|
|
303
303
|
absoluteDataset() {
|
|
304
|
-
return this.safeDataset.map((
|
|
304
|
+
return this.safeDataset.map((a, s) => ({
|
|
305
305
|
absoluteIndex: s,
|
|
306
|
-
...
|
|
307
|
-
series:
|
|
308
|
-
absoluteValues:
|
|
309
|
-
segregate: () => this.segregate(
|
|
310
|
-
isSegregated: this.segregatedSeries.includes(
|
|
306
|
+
...a,
|
|
307
|
+
series: a.series.map((h) => h + this.relativeZero),
|
|
308
|
+
absoluteValues: a.series,
|
|
309
|
+
segregate: () => this.segregate(a),
|
|
310
|
+
isSegregated: this.segregatedSeries.includes(a.id)
|
|
311
311
|
}));
|
|
312
312
|
},
|
|
313
313
|
barSet() {
|
|
314
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
315
|
-
this.checkAutoScaleError(
|
|
316
|
-
const h = Math.min(...
|
|
317
|
-
ratios:
|
|
314
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "bar").map((a, s) => {
|
|
315
|
+
this.checkAutoScaleError(a);
|
|
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
|
+
ratios: a.absoluteValues.filter((d) => ![null, void 0].includes(d)).map((d) => (d - h) / (f - h)),
|
|
318
318
|
valueMin: h,
|
|
319
319
|
valueMax: f < 0 ? 0 : f
|
|
320
|
-
},
|
|
321
|
-
max:
|
|
322
|
-
min:
|
|
323
|
-
},
|
|
324
|
-
const W = this.mutableConfig.useIndividualScale ? (
|
|
320
|
+
}, x = {
|
|
321
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
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, N = 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 = N.min >= 0 ? 0 : Math.abs(N.min), k = 0, G = N.max + z, v = C.max + Math.abs(k), b = 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 - b - t * z / G, n = this.drawingArea.bottom - b - t * k / v, g = this.absoluteDataset.filter((d) => d.type === "bar").filter((d) => !this.segregatedSeries.includes(d.id)).length, R = a.series.map((d, F) => {
|
|
324
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[F] + z) / G : this.ratioToMax(d), E = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * s + this.slot.bar * F * g - this.barSlot / 2 - s * this.barPeriodGap;
|
|
325
325
|
return {
|
|
326
326
|
yOffset: this.checkNaN(b),
|
|
327
|
-
individualHeight: this.checkNaN(
|
|
327
|
+
individualHeight: this.checkNaN(t),
|
|
328
328
|
x: this.checkNaN(E),
|
|
329
|
-
y: this.drawingArea.bottom - b -
|
|
330
|
-
value:
|
|
329
|
+
y: this.drawingArea.bottom - b - t * W,
|
|
330
|
+
value: a.absoluteValues[F],
|
|
331
331
|
zeroPosition: this.checkNaN(c),
|
|
332
332
|
individualMax: this.checkNaN(G),
|
|
333
|
-
comment:
|
|
333
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
334
334
|
};
|
|
335
|
-
}), H =
|
|
335
|
+
}), H = 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, F) => {
|
|
336
336
|
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * F * this.absoluteDataset.filter((E) => E.type === "bar").filter((E) => !this.segregatedSeries.includes(E.id)).length;
|
|
337
337
|
return {
|
|
338
338
|
yOffset: this.checkNaN(b),
|
|
339
|
-
individualHeight: this.checkNaN(
|
|
339
|
+
individualHeight: this.checkNaN(t),
|
|
340
340
|
x: this.checkNaN(W),
|
|
341
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(b) - (this.checkNaN(
|
|
342
|
-
value:
|
|
341
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(b) - (this.checkNaN(t) * H[F] || 0)),
|
|
342
|
+
value: a.absoluteValues[F],
|
|
343
343
|
zeroPosition: this.checkNaN(c),
|
|
344
344
|
individualMax: this.checkNaN(G),
|
|
345
|
-
comment:
|
|
345
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
346
346
|
};
|
|
347
|
-
}),
|
|
348
|
-
y: d >= 0 ? c -
|
|
347
|
+
}), y = N.ticks.map((d) => ({
|
|
348
|
+
y: d >= 0 ? c - t * (d / G) : c + t * Math.abs(d) / G,
|
|
349
349
|
value: d,
|
|
350
|
-
prefix:
|
|
351
|
-
suffix:
|
|
352
|
-
datapoint:
|
|
353
|
-
})),
|
|
354
|
-
const F = (d -
|
|
350
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
351
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
352
|
+
datapoint: a
|
|
353
|
+
})), w = C.ticks.map((d) => {
|
|
354
|
+
const F = (d - C.min) / (C.max - C.min);
|
|
355
355
|
return {
|
|
356
|
-
y: d >= 0 ? n -
|
|
356
|
+
y: d >= 0 ? n - t * F : n + t * F,
|
|
357
357
|
value: d,
|
|
358
|
-
prefix:
|
|
359
|
-
suffix:
|
|
360
|
-
datapoint:
|
|
358
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
359
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
360
|
+
datapoint: a
|
|
361
361
|
};
|
|
362
362
|
});
|
|
363
363
|
return {
|
|
364
|
-
...
|
|
364
|
+
...a,
|
|
365
365
|
yOffset: b,
|
|
366
|
-
autoScaleYLabels:
|
|
367
|
-
individualHeight:
|
|
368
|
-
scaleYLabels:
|
|
369
|
-
individualScale:
|
|
370
|
-
individualMax:
|
|
371
|
-
zeroPosition:
|
|
372
|
-
plots:
|
|
366
|
+
autoScaleYLabels: w,
|
|
367
|
+
individualHeight: t,
|
|
368
|
+
scaleYLabels: a.autoScaling ? w : y,
|
|
369
|
+
individualScale: a.autoScaling ? C : N,
|
|
370
|
+
individualMax: a.autoScaling ? v : G,
|
|
371
|
+
zeroPosition: a.autoScaling ? n : c,
|
|
372
|
+
plots: a.autoScaling ? D : R
|
|
373
373
|
};
|
|
374
374
|
});
|
|
375
375
|
},
|
|
@@ -377,136 +377,136 @@ const Ye = J(), Xe = {
|
|
|
377
377
|
return this.absoluteDataset.length;
|
|
378
378
|
},
|
|
379
379
|
activeSeriesWithStackRatios() {
|
|
380
|
-
return this.assignStackRatios(this.absoluteDataset.filter((
|
|
380
|
+
return this.assignStackRatios(this.absoluteDataset.filter((a) => !this.segregatedSeries.includes(a.id)));
|
|
381
381
|
},
|
|
382
382
|
lineSet() {
|
|
383
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
384
|
-
this.checkAutoScaleError(
|
|
385
|
-
const s = Math.min(...
|
|
386
|
-
ratios:
|
|
383
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "line").map((a) => {
|
|
384
|
+
this.checkAutoScaleError(a);
|
|
385
|
+
const s = 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 - s) / (h - s)),
|
|
387
387
|
valueMin: s,
|
|
388
388
|
valueMax: h
|
|
389
389
|
}, e = {
|
|
390
|
-
max:
|
|
391
|
-
min:
|
|
392
|
-
},
|
|
393
|
-
const W = this.mutableConfig.useIndividualScale ? (
|
|
390
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
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), N = 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), G = N.max + Math.abs(z), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, b = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, t = this.drawingArea.bottom - v - b * C / k, c = this.drawingArea.bottom - v - b * z / G, n = a.series.map((d, F) => {
|
|
393
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[F] + Math.abs(C)) / k : this.ratioToMax(d);
|
|
394
394
|
return {
|
|
395
395
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
396
396
|
y: this.checkNaN(this.drawingArea.bottom - v - b * W),
|
|
397
|
-
value:
|
|
398
|
-
comment:
|
|
397
|
+
value: a.absoluteValues[F],
|
|
398
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
399
399
|
};
|
|
400
|
-
}), g =
|
|
401
|
-
if (![void 0, null].includes(
|
|
400
|
+
}), g = a.absoluteValues.map((d) => N.min >= 0 ? (d - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (d + Math.abs(N.min)) / (N.max + Math.abs(N.min))), R = a.series.map((d, F) => {
|
|
401
|
+
if (![void 0, null].includes(a.absoluteValues[F]))
|
|
402
402
|
return {
|
|
403
403
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
404
404
|
y: this.checkNaN(this.drawingArea.bottom - v - (b * g[F] || 0)),
|
|
405
|
-
value:
|
|
406
|
-
comment:
|
|
405
|
+
value: a.absoluteValues[F],
|
|
406
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
407
407
|
};
|
|
408
|
-
}), H = this.createSmoothPath(n), D = this.createSmoothPath(R),
|
|
409
|
-
y: d >= 0 ?
|
|
408
|
+
}), H = this.createSmoothPath(n), D = this.createSmoothPath(R), y = L.ticks.map((d) => ({
|
|
409
|
+
y: d >= 0 ? t - b * (d / k) : t + b * Math.abs(d) / k,
|
|
410
410
|
value: d,
|
|
411
|
-
prefix:
|
|
412
|
-
suffix:
|
|
413
|
-
datapoint:
|
|
414
|
-
})),
|
|
415
|
-
const F = (d -
|
|
411
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
412
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
413
|
+
datapoint: a
|
|
414
|
+
})), w = N.ticks.map((d) => {
|
|
415
|
+
const F = (d - N.min) / (N.max - N.min);
|
|
416
416
|
return {
|
|
417
417
|
y: d >= 0 ? c - b * F : c + b * F,
|
|
418
418
|
value: d,
|
|
419
|
-
prefix:
|
|
420
|
-
suffix:
|
|
421
|
-
datapoint:
|
|
419
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
420
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
421
|
+
datapoint: a
|
|
422
422
|
};
|
|
423
423
|
});
|
|
424
424
|
return {
|
|
425
|
-
...
|
|
425
|
+
...a,
|
|
426
426
|
yOffset: v,
|
|
427
|
-
autoScaleYLabels:
|
|
427
|
+
autoScaleYLabels: w,
|
|
428
428
|
individualHeight: b,
|
|
429
|
-
scaleYLabels:
|
|
430
|
-
individualScale:
|
|
431
|
-
individualMax:
|
|
432
|
-
zeroPosition:
|
|
433
|
-
curve:
|
|
434
|
-
plots:
|
|
435
|
-
area:
|
|
429
|
+
scaleYLabels: a.autoScaling ? w : y,
|
|
430
|
+
individualScale: a.autoScaling ? N : L,
|
|
431
|
+
individualMax: a.autoScaling ? G : k,
|
|
432
|
+
zeroPosition: a.autoScaling ? c : t,
|
|
433
|
+
curve: a.autoScaling ? D : H,
|
|
434
|
+
plots: a.autoScaling ? R : n,
|
|
435
|
+
area: a.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(a.autoScaling ? R : n, a.autoScaling ? c : t) : this.createArea(n) : ""
|
|
436
436
|
};
|
|
437
437
|
});
|
|
438
438
|
},
|
|
439
439
|
plotSet() {
|
|
440
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
441
|
-
this.checkAutoScaleError(
|
|
442
|
-
const s = Math.min(...
|
|
443
|
-
ratios:
|
|
440
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "plot").map((a) => {
|
|
441
|
+
this.checkAutoScaleError(a);
|
|
442
|
+
const s = 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 = {
|
|
443
|
+
ratios: a.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (h - s)),
|
|
444
444
|
valueMin: s,
|
|
445
445
|
valueMax: h
|
|
446
446
|
}, e = {
|
|
447
|
-
max:
|
|
448
|
-
min:
|
|
449
|
-
},
|
|
450
|
-
const d = this.mutableConfig.useIndividualScale ? (
|
|
447
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
448
|
+
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), N = 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, G = N.max + Math.abs(z), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, b = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, t = this.drawingArea.bottom - v - b * C / k, c = this.drawingArea.bottom - v - b * z / G, n = a.series.map((y, w) => {
|
|
450
|
+
const d = this.mutableConfig.useIndividualScale ? (a.absoluteValues[w] + Math.abs(C)) / k : this.ratioToMax(y);
|
|
451
451
|
return {
|
|
452
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot *
|
|
452
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * w),
|
|
453
453
|
y: this.checkNaN(this.drawingArea.bottom - v - b * d),
|
|
454
|
-
value:
|
|
455
|
-
comment:
|
|
454
|
+
value: a.absoluteValues[w],
|
|
455
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
456
456
|
};
|
|
457
|
-
}), g =
|
|
458
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot *
|
|
459
|
-
y: this.checkNaN(this.drawingArea.bottom - v - (b * g[
|
|
460
|
-
value:
|
|
461
|
-
comment:
|
|
462
|
-
})), H = L.ticks.map((
|
|
463
|
-
y:
|
|
464
|
-
value:
|
|
465
|
-
prefix:
|
|
466
|
-
suffix:
|
|
467
|
-
datapoint:
|
|
468
|
-
})), D =
|
|
469
|
-
const
|
|
457
|
+
}), g = a.absoluteValues.map((y) => N.min >= 0 ? (y - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (y + Math.abs(N.min)) / (N.max + Math.abs(N.min))), R = a.series.map((y, w) => ({
|
|
458
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * w),
|
|
459
|
+
y: this.checkNaN(this.drawingArea.bottom - v - (b * g[w] || 0)),
|
|
460
|
+
value: a.absoluteValues[w],
|
|
461
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[w] || ""
|
|
462
|
+
})), H = L.ticks.map((y) => ({
|
|
463
|
+
y: y >= 0 ? t - b * (y / k) : t + b * Math.abs(y) / k,
|
|
464
|
+
value: y,
|
|
465
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
466
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
467
|
+
datapoint: a
|
|
468
|
+
})), D = N.ticks.map((y) => {
|
|
469
|
+
const w = (y - N.min) / (N.max - N.min);
|
|
470
470
|
return {
|
|
471
|
-
y:
|
|
472
|
-
value:
|
|
473
|
-
prefix:
|
|
474
|
-
suffix:
|
|
475
|
-
datapoint:
|
|
471
|
+
y: y >= 0 ? c - b * w : c + b * w,
|
|
472
|
+
value: y,
|
|
473
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
474
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
475
|
+
datapoint: a
|
|
476
476
|
};
|
|
477
477
|
});
|
|
478
478
|
return {
|
|
479
|
-
...
|
|
479
|
+
...a,
|
|
480
480
|
yOffset: v,
|
|
481
481
|
autoScaleYLabels: D,
|
|
482
482
|
individualHeight: b,
|
|
483
|
-
scaleYLabels:
|
|
484
|
-
individualScale:
|
|
485
|
-
individualMax:
|
|
486
|
-
zeroPosition:
|
|
487
|
-
plots:
|
|
483
|
+
scaleYLabels: a.autoScaling ? D : H,
|
|
484
|
+
individualScale: a.autoScaling ? N : L,
|
|
485
|
+
individualMax: a.autoScaling ? G : k,
|
|
486
|
+
zeroPosition: a.autoScaling ? c : t,
|
|
487
|
+
plots: a.autoScaling ? R : n
|
|
488
488
|
};
|
|
489
489
|
});
|
|
490
490
|
},
|
|
491
491
|
drawingArea() {
|
|
492
|
-
const
|
|
492
|
+
const a = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((s) => !this.segregatedSeries.includes(s.id)).length * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
|
|
493
493
|
return {
|
|
494
494
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
495
495
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
496
496
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
497
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
497
|
+
left: this.FINAL_CONFIG.chart.padding.left + a,
|
|
498
498
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
499
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
499
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + a)
|
|
500
500
|
};
|
|
501
501
|
},
|
|
502
502
|
max() {
|
|
503
|
-
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((
|
|
503
|
+
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((a) => !this.segregatedSeries.includes(a.id)).map((a) => Math.max(...a.series)));
|
|
504
504
|
},
|
|
505
505
|
min() {
|
|
506
506
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
507
507
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
508
|
-
const
|
|
509
|
-
return
|
|
508
|
+
const a = Math.min(...this.safeDataset.filter((s) => !this.segregatedSeries.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
509
|
+
return a > 0 ? 0 : a;
|
|
510
510
|
},
|
|
511
511
|
niceScale() {
|
|
512
512
|
return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
|
|
@@ -519,43 +519,60 @@ const Ye = J(), Xe = {
|
|
|
519
519
|
},
|
|
520
520
|
slot() {
|
|
521
521
|
return {
|
|
522
|
-
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((
|
|
522
|
+
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((a) => a.type === "bar").filter((a) => !this.segregatedSeries.includes(a.id)).length,
|
|
523
523
|
plot: this.drawingArea.width / this.maxSeries,
|
|
524
524
|
line: this.drawingArea.width / this.maxSeries
|
|
525
525
|
};
|
|
526
526
|
},
|
|
527
527
|
barSlot() {
|
|
528
|
-
const
|
|
529
|
-
return this.drawingArea.width / this.maxSeries /
|
|
528
|
+
const a = this.safeDataset.filter((s) => s.type === "bar").filter((s) => !this.segregatedSeries.includes(s.id)).length;
|
|
529
|
+
return this.drawingArea.width / this.maxSeries / a - this.barPeriodGap * a;
|
|
530
530
|
},
|
|
531
531
|
barPeriodGap() {
|
|
532
532
|
return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
|
|
533
533
|
},
|
|
534
534
|
maxSlot() {
|
|
535
|
-
return Math.max(...Object.values(this.slot).filter((
|
|
535
|
+
return Math.max(...Object.values(this.slot).filter((a) => a !== 1 / 0));
|
|
536
536
|
},
|
|
537
537
|
table() {
|
|
538
538
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
539
|
-
const
|
|
539
|
+
const a = this.relativeDataset.map((h) => ({
|
|
540
540
|
label: h.name,
|
|
541
541
|
color: h.color,
|
|
542
542
|
type: h.type
|
|
543
543
|
})), s = [];
|
|
544
544
|
return this.timeLabels.forEach((h, f) => {
|
|
545
|
-
const
|
|
545
|
+
const i = [h];
|
|
546
546
|
this.relativeDataset.forEach((e) => {
|
|
547
|
-
|
|
548
|
-
}), s.push(
|
|
549
|
-
}), { head:
|
|
547
|
+
i.push(this.canShowValue(e.absoluteValues[f]) ? Number(e.absoluteValues[f].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
548
|
+
}), s.push(i);
|
|
549
|
+
}), { head: a, body: s };
|
|
550
550
|
},
|
|
551
551
|
dataTable() {
|
|
552
|
-
const
|
|
553
|
-
let s = [];
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
552
|
+
const a = this.FINAL_CONFIG.table.showSum;
|
|
553
|
+
let s = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
554
|
+
a && (s = s.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
|
+
let h = [];
|
|
556
|
+
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
557
|
+
const x = this.relativeDataset.map((_) => _.absoluteValues[e] ?? 0).reduce((_, L) => _ + L, 0);
|
|
558
|
+
h.push(
|
|
559
|
+
[
|
|
560
|
+
this.timeLabels[e] ?? "-"
|
|
561
|
+
].concat(this.relativeDataset.map(
|
|
562
|
+
(_) => this.applyDataLabel(
|
|
563
|
+
_.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : _.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
564
|
+
_.absoluteValues[e] ?? 0,
|
|
565
|
+
this.dataLabel({
|
|
566
|
+
p: _.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
567
|
+
v: _.absoluteValues[e] ?? 0,
|
|
568
|
+
s: _.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
569
|
+
r: this.FINAL_CONFIG.table.rounding
|
|
570
|
+
})
|
|
571
|
+
)
|
|
572
|
+
)).concat(a ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
573
|
+
);
|
|
557
574
|
}
|
|
558
|
-
const
|
|
575
|
+
const f = {
|
|
559
576
|
th: {
|
|
560
577
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
561
578
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -567,8 +584,8 @@ const Ye = J(), Xe = {
|
|
|
567
584
|
outline: this.FINAL_CONFIG.table.td.outline
|
|
568
585
|
},
|
|
569
586
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
570
|
-
},
|
|
571
|
-
return { head:
|
|
587
|
+
}, i = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
588
|
+
return { head: s, body: h, config: f, colNames: i };
|
|
572
589
|
},
|
|
573
590
|
dataTooltipSlot() {
|
|
574
591
|
return {
|
|
@@ -582,17 +599,19 @@ const Ye = J(), Xe = {
|
|
|
582
599
|
};
|
|
583
600
|
},
|
|
584
601
|
selectedSeries() {
|
|
585
|
-
return this.relativeDataset.map((
|
|
586
|
-
shape:
|
|
587
|
-
name:
|
|
588
|
-
color:
|
|
589
|
-
type:
|
|
590
|
-
value:
|
|
591
|
-
comments:
|
|
602
|
+
return this.relativeDataset.map((a) => ({
|
|
603
|
+
shape: a.shape || null,
|
|
604
|
+
name: a.name,
|
|
605
|
+
color: a.color,
|
|
606
|
+
type: a.type,
|
|
607
|
+
value: a.absoluteValues.find((s, h) => h === this.selectedSerieIndex),
|
|
608
|
+
comments: a.comments || [],
|
|
609
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
610
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
592
611
|
}));
|
|
593
612
|
},
|
|
594
613
|
tooltipContent() {
|
|
595
|
-
let
|
|
614
|
+
let a = "", s = this.selectedSeries.map((i) => i.value).filter((i) => this.isSafeValue(i) && i !== null).reduce((i, e) => Math.abs(i) + Math.abs(e), 0);
|
|
596
615
|
const h = this.timeLabels[this.selectedSerieIndex], f = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
597
616
|
return this.isFunction(f) && this.functionReturnsString(() => f({
|
|
598
617
|
seriesIndex: this.selectedSerieIndex,
|
|
@@ -610,63 +629,63 @@ const Ye = J(), Xe = {
|
|
|
610
629
|
lines: this.lineSet,
|
|
611
630
|
plots: this.plotSet,
|
|
612
631
|
config: this.FINAL_CONFIG
|
|
613
|
-
}) : (h && (
|
|
614
|
-
if (this.isSafeValue(
|
|
615
|
-
let e = "",
|
|
616
|
-
switch (this.icons[
|
|
632
|
+
}) : (h && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${h}</div>`), this.selectedSeries.forEach((i) => {
|
|
633
|
+
if (this.isSafeValue(i.value)) {
|
|
634
|
+
let e = "", x = "";
|
|
635
|
+
switch (this.icons[i.type]) {
|
|
617
636
|
case "bar":
|
|
618
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${
|
|
637
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${i.color}" /></svg>`;
|
|
619
638
|
break;
|
|
620
639
|
case "line":
|
|
621
|
-
!
|
|
640
|
+
!i.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(i.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${i.color}" />` : i.shape === "triangle" ? x = `<path d="${T({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "square" ? x = `<path d="${T({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "diamond" ? x = `<path d="${T({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "pentagon" ? x = `<path d="${T({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "hexagon" ? x = `<path d="${T({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />` : i.shape === "star" && (x = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${i.color}" points="${X({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${i.color}" />${x}</svg>`;
|
|
622
641
|
break;
|
|
623
642
|
case "plot":
|
|
624
|
-
if (!
|
|
625
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
643
|
+
if (!i.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(i.shape)) {
|
|
644
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${i.color}" /></svg>`;
|
|
626
645
|
break;
|
|
627
646
|
}
|
|
628
|
-
if (
|
|
629
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${
|
|
647
|
+
if (i.shape === "star") {
|
|
648
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${i.color}" points="${X({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
630
649
|
break;
|
|
631
650
|
}
|
|
632
|
-
if (
|
|
633
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
651
|
+
if (i.shape === "triangle") {
|
|
652
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${T({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
634
653
|
break;
|
|
635
654
|
}
|
|
636
|
-
if (
|
|
637
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
655
|
+
if (i.shape === "square") {
|
|
656
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${T({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
638
657
|
break;
|
|
639
658
|
}
|
|
640
|
-
if (
|
|
641
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
659
|
+
if (i.shape === "diamond") {
|
|
660
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${T({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
642
661
|
break;
|
|
643
662
|
}
|
|
644
|
-
if (
|
|
645
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
663
|
+
if (i.shape === "pentagon") {
|
|
664
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${T({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
646
665
|
break;
|
|
647
666
|
}
|
|
648
|
-
if (
|
|
649
|
-
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
667
|
+
if (i.shape === "hexagon") {
|
|
668
|
+
e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${T({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${i.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
650
669
|
break;
|
|
651
670
|
}
|
|
652
671
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
672
|
+
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${i.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
|
|
673
|
+
i.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : i.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
674
|
+
i.value,
|
|
656
675
|
this.dataLabel({
|
|
657
|
-
p:
|
|
658
|
-
v:
|
|
659
|
-
s:
|
|
676
|
+
p: i.prefix,
|
|
677
|
+
v: i.value,
|
|
678
|
+
s: i.suffix,
|
|
660
679
|
r: this.FINAL_CONFIG.chart.tooltip.roundingValue
|
|
661
680
|
}),
|
|
662
|
-
{ datapoint:
|
|
681
|
+
{ datapoint: i }
|
|
663
682
|
) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${Z({
|
|
664
|
-
v: this.checkNaN(Math.abs(
|
|
683
|
+
v: this.checkNaN(Math.abs(i.value) / s * 100),
|
|
665
684
|
s: "%",
|
|
666
685
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
667
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip &&
|
|
686
|
+
})})` : ""}</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>`);
|
|
668
687
|
}
|
|
669
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${
|
|
688
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${a}</div>`);
|
|
670
689
|
},
|
|
671
690
|
svg() {
|
|
672
691
|
return {
|
|
@@ -675,9 +694,9 @@ const Ye = J(), Xe = {
|
|
|
675
694
|
};
|
|
676
695
|
},
|
|
677
696
|
yLabels() {
|
|
678
|
-
return this.niceScale.ticks.map((
|
|
679
|
-
y:
|
|
680
|
-
value:
|
|
697
|
+
return this.niceScale.ticks.map((a) => ({
|
|
698
|
+
y: a >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(a) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(a)),
|
|
699
|
+
value: a,
|
|
681
700
|
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
682
701
|
suffix: this.FINAL_CONFIG.chart.labels.suffix
|
|
683
702
|
}));
|
|
@@ -687,10 +706,10 @@ const Ye = J(), Xe = {
|
|
|
687
706
|
}
|
|
688
707
|
},
|
|
689
708
|
mounted() {
|
|
690
|
-
this.prepareChart(), document.addEventListener("mousemove", (
|
|
709
|
+
this.prepareChart(), document.addEventListener("mousemove", (a) => {
|
|
691
710
|
this.clientPosition = {
|
|
692
|
-
x:
|
|
693
|
-
y:
|
|
711
|
+
x: a.clientX,
|
|
712
|
+
y: a.clientY
|
|
694
713
|
};
|
|
695
714
|
});
|
|
696
715
|
},
|
|
@@ -707,8 +726,8 @@ const Ye = J(), Xe = {
|
|
|
707
726
|
convertConfigColors: ue,
|
|
708
727
|
convertCustomPalette: ge,
|
|
709
728
|
createCsvContent: fe,
|
|
710
|
-
createSmoothPath:
|
|
711
|
-
createTSpans:
|
|
729
|
+
createSmoothPath: me,
|
|
730
|
+
createTSpans: Ne,
|
|
712
731
|
dataLabel: Z,
|
|
713
732
|
downloadCsv: Ie,
|
|
714
733
|
error: xe,
|
|
@@ -723,15 +742,22 @@ const Ye = J(), Xe = {
|
|
|
723
742
|
shiftHue: Ce,
|
|
724
743
|
translateSize: Se,
|
|
725
744
|
treeShake: ke,
|
|
726
|
-
useMouse:
|
|
745
|
+
useMouse: pe,
|
|
727
746
|
useNestedProp: U,
|
|
747
|
+
getHighlightAreaPosition(a) {
|
|
748
|
+
const s = 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
|
+
return {
|
|
750
|
+
x: s < this.drawingArea.left ? this.drawingArea.left : s,
|
|
751
|
+
width: h
|
|
752
|
+
};
|
|
753
|
+
},
|
|
728
754
|
prepareConfig() {
|
|
729
|
-
const
|
|
755
|
+
const a = we().vue_ui_xy;
|
|
730
756
|
if (!Object.keys(this.config || {}).length)
|
|
731
|
-
return
|
|
757
|
+
return a;
|
|
732
758
|
const s = this.useNestedProp({
|
|
733
759
|
userConfig: this.config,
|
|
734
|
-
defaultConfig:
|
|
760
|
+
defaultConfig: a
|
|
735
761
|
});
|
|
736
762
|
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? s.chart.highlightArea = this.config.chart.highlightArea : s.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? s.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : s.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? s.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : s.chart.grid.labels.yAxis.scaleMax = null, s.theme ? {
|
|
737
763
|
...U({
|
|
@@ -745,17 +771,17 @@ const Ye = J(), Xe = {
|
|
|
745
771
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
746
772
|
componentName: "VueUiXy",
|
|
747
773
|
type: "dataset"
|
|
748
|
-
}) : this.dataset.forEach((
|
|
749
|
-
[null, void 0].includes(
|
|
774
|
+
}) : this.dataset.forEach((a, s) => {
|
|
775
|
+
[null, void 0].includes(a.name) && this.error({
|
|
750
776
|
componentName: "VueUiXy",
|
|
751
777
|
type: "datasetSerieAttribute",
|
|
752
778
|
property: "name (string)",
|
|
753
779
|
index: s
|
|
754
780
|
});
|
|
755
|
-
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((
|
|
756
|
-
|
|
781
|
+
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((a) => {
|
|
782
|
+
a.series.forEach((s, h) => {
|
|
757
783
|
this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
758
|
-
-----> The serie '${
|
|
784
|
+
-----> The serie '${a.name}' contains the value '${s}' at index ${h}.
|
|
759
785
|
'${s}' was converted to null to allow the chart to display.`);
|
|
760
786
|
});
|
|
761
787
|
}), this.mutableConfig = {
|
|
@@ -768,20 +794,20 @@ const Ye = J(), Xe = {
|
|
|
768
794
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
769
795
|
}, this.FINAL_CONFIG.responsive) {
|
|
770
796
|
const s = this.$refs.chart.parentNode, { height: h, width: f } = s.getBoundingClientRect();
|
|
771
|
-
let
|
|
772
|
-
this.FINAL_CONFIG.chart.title.show && (
|
|
773
|
-
let
|
|
774
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (
|
|
775
|
-
let L = null,
|
|
776
|
-
this.FINAL_CONFIG.chart.legend.show && (L = this.$refs.chartLegend,
|
|
777
|
-
for (const
|
|
778
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (
|
|
797
|
+
let i = null, e = 0;
|
|
798
|
+
this.FINAL_CONFIG.chart.title.show && (i = this.$refs.chartTitle, e = i.getBoundingClientRect().height);
|
|
799
|
+
let x = null, _ = 0;
|
|
800
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, _ = x.getBoundingClientRect().height);
|
|
801
|
+
let L = null, N = 0;
|
|
802
|
+
this.FINAL_CONFIG.chart.legend.show && (L = this.$refs.chartLegend, N = L.getBoundingClientRect().height), this.height = h - e - N - _, 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
|
+
for (const k of z)
|
|
804
|
+
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 && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.height = k.contentBoxSize[0].blockSize - e - N - _ - 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();
|
|
779
805
|
}).observe(s);
|
|
780
806
|
} else
|
|
781
807
|
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;
|
|
782
808
|
},
|
|
783
|
-
selectMinimapIndex(
|
|
784
|
-
this.selectedMinimapIndex =
|
|
809
|
+
selectMinimapIndex(a) {
|
|
810
|
+
this.selectedMinimapIndex = a;
|
|
785
811
|
},
|
|
786
812
|
convertSizes() {
|
|
787
813
|
this.fontSizes.dataLabels = this.translateSize({
|
|
@@ -834,98 +860,98 @@ const Ye = J(), Xe = {
|
|
|
834
860
|
toggleTooltip() {
|
|
835
861
|
this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
|
|
836
862
|
},
|
|
837
|
-
checkAutoScaleError(
|
|
838
|
-
|
|
863
|
+
checkAutoScaleError(a) {
|
|
864
|
+
a.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
839
865
|
},
|
|
840
|
-
createArea(
|
|
841
|
-
if (!
|
|
842
|
-
const s = { x:
|
|
843
|
-
return
|
|
844
|
-
f.push(`${
|
|
866
|
+
createArea(a) {
|
|
867
|
+
if (!a[0]) return [-10, -10, "", -10, -10];
|
|
868
|
+
const s = { x: a[0].x, y: this.zero }, h = { x: a.at(-1).x, y: this.zero }, f = [];
|
|
869
|
+
return a.forEach((i) => {
|
|
870
|
+
f.push(`${i.x},${i.y} `);
|
|
845
871
|
}), [s.x, s.y, ...f, h.x, h.y].toString();
|
|
846
872
|
},
|
|
847
|
-
createIndividualArea(
|
|
848
|
-
if (!
|
|
849
|
-
const h = { x:
|
|
850
|
-
return
|
|
851
|
-
|
|
852
|
-
}), [h.x, h.y, ...
|
|
873
|
+
createIndividualArea(a, s) {
|
|
874
|
+
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: s }, f = { x: a.at(-1) ? a.at(-1).x : Math.min(...a.filter((e) => !!e).map((e) => e.x)), y: s }, i = [];
|
|
876
|
+
return a.filter((e) => !!e).forEach((e) => {
|
|
877
|
+
i.push(`${e.x},${e.y} `);
|
|
878
|
+
}), [h.x, h.y, ...i, f.x, f.y].toString();
|
|
853
879
|
},
|
|
854
880
|
createStar: X,
|
|
855
|
-
createPolygonPath:
|
|
856
|
-
fillArray(
|
|
857
|
-
let h = Array(
|
|
858
|
-
for (let f = 0; f < s.length && f <
|
|
881
|
+
createPolygonPath: T,
|
|
882
|
+
fillArray(a, s) {
|
|
883
|
+
let h = Array(a).fill(0);
|
|
884
|
+
for (let f = 0; f < s.length && f < a; f += 1)
|
|
859
885
|
h[f] = s[f];
|
|
860
886
|
return h;
|
|
861
887
|
},
|
|
862
888
|
refreshSlicer() {
|
|
863
889
|
this.slicer = {
|
|
864
890
|
start: 0,
|
|
865
|
-
end: Math.max(...this.dataset.map((
|
|
891
|
+
end: Math.max(...this.dataset.map((a) => a.series.length))
|
|
866
892
|
}, this.slicerStep += 1;
|
|
867
893
|
},
|
|
868
|
-
calcRectHeight(
|
|
869
|
-
return
|
|
894
|
+
calcRectHeight(a) {
|
|
895
|
+
return a.value >= 0 ? this.checkNaN(this.zero - a.y <= 0 ? 1e-5 : this.zero - a.y) : this.checkNaN(a.y - this.zero <= 0 ? 1e-5 : a.y - this.zero);
|
|
870
896
|
},
|
|
871
|
-
calcIndividualHeight(
|
|
872
|
-
return
|
|
897
|
+
calcIndividualHeight(a) {
|
|
898
|
+
return a.value >= 0 ? this.checkNaN(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : this.checkNaN(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
873
899
|
},
|
|
874
900
|
calcRectWidth() {
|
|
875
901
|
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
|
|
876
902
|
},
|
|
877
|
-
calcRectX(
|
|
878
|
-
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ?
|
|
903
|
+
calcRectX(a) {
|
|
904
|
+
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? a.x + this.drawingArea.width / this.maxSeries * 0.05 : a.x + this.slot.bar / 2;
|
|
879
905
|
},
|
|
880
|
-
calcRectY(
|
|
881
|
-
return
|
|
906
|
+
calcRectY(a) {
|
|
907
|
+
return a.value >= 0 ? a.y : this.zero;
|
|
882
908
|
},
|
|
883
|
-
calcIndividualRectY(
|
|
884
|
-
return
|
|
909
|
+
calcIndividualRectY(a) {
|
|
910
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
885
911
|
},
|
|
886
|
-
canShowValue(
|
|
887
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
912
|
+
canShowValue(a) {
|
|
913
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
888
914
|
},
|
|
889
|
-
findClosestValue(
|
|
890
|
-
let h = s[0], f = Math.abs(
|
|
891
|
-
for (let
|
|
892
|
-
const e = Math.abs(
|
|
893
|
-
e < f && s[
|
|
915
|
+
findClosestValue(a, s) {
|
|
916
|
+
let h = s[0], f = Math.abs(a - s[0]);
|
|
917
|
+
for (let i = 1; i < s.length; i += 1) {
|
|
918
|
+
const e = Math.abs(a - s[i]);
|
|
919
|
+
e < f && s[i] < a && (h = s[i], f = e);
|
|
894
920
|
}
|
|
895
921
|
return h;
|
|
896
922
|
},
|
|
897
|
-
ratioToMax(
|
|
898
|
-
return
|
|
923
|
+
ratioToMax(a) {
|
|
924
|
+
return a / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
899
925
|
},
|
|
900
|
-
selectX(
|
|
926
|
+
selectX(a) {
|
|
901
927
|
this.$emit(
|
|
902
928
|
"selectX",
|
|
903
929
|
{
|
|
904
930
|
dataset: this.relativeDataset.map((s) => ({
|
|
905
931
|
name: s.name,
|
|
906
|
-
value: [null, void 0, NaN].includes(s.absoluteValues[
|
|
932
|
+
value: [null, void 0, NaN].includes(s.absoluteValues[a]) ? null : s.absoluteValues[a],
|
|
907
933
|
color: s.color,
|
|
908
934
|
type: s.type
|
|
909
935
|
})),
|
|
910
|
-
index:
|
|
911
|
-
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
936
|
+
index: a,
|
|
937
|
+
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a]
|
|
912
938
|
}
|
|
913
939
|
);
|
|
914
940
|
},
|
|
915
941
|
getData() {
|
|
916
|
-
return this.absoluteDataset.map((
|
|
917
|
-
values:
|
|
918
|
-
color:
|
|
919
|
-
name:
|
|
920
|
-
type:
|
|
942
|
+
return this.absoluteDataset.map((a) => ({
|
|
943
|
+
values: a.absoluteValues,
|
|
944
|
+
color: a.color,
|
|
945
|
+
name: a.name,
|
|
946
|
+
type: a.type
|
|
921
947
|
}));
|
|
922
948
|
},
|
|
923
|
-
segregate(
|
|
924
|
-
if (this.segregatedSeries.includes(
|
|
925
|
-
this.segregatedSeries = this.segregatedSeries.filter((s) => s !==
|
|
949
|
+
segregate(a) {
|
|
950
|
+
if (this.segregatedSeries.includes(a.id))
|
|
951
|
+
this.segregatedSeries = this.segregatedSeries.filter((s) => s !== a.id);
|
|
926
952
|
else {
|
|
927
953
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
928
|
-
this.segregatedSeries.push(
|
|
954
|
+
this.segregatedSeries.push(a.id);
|
|
929
955
|
}
|
|
930
956
|
this.$emit("selectLegend", this.relativeDataset.map((s) => ({
|
|
931
957
|
name: s.name,
|
|
@@ -934,11 +960,11 @@ const Ye = J(), Xe = {
|
|
|
934
960
|
type: s.type
|
|
935
961
|
}))), this.segregateStep += 1;
|
|
936
962
|
},
|
|
937
|
-
toggleTooltipVisibility(
|
|
938
|
-
this.isTooltip =
|
|
963
|
+
toggleTooltipVisibility(a, s = null) {
|
|
964
|
+
this.isTooltip = a, a ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
|
|
939
965
|
},
|
|
940
|
-
toggleFullscreen(
|
|
941
|
-
this.isFullscreen =
|
|
966
|
+
toggleFullscreen(a) {
|
|
967
|
+
this.isFullscreen = a, this.step += 1;
|
|
942
968
|
},
|
|
943
969
|
showSpinnerPdf() {
|
|
944
970
|
this.isPrinting = !0;
|
|
@@ -954,8 +980,8 @@ const Ye = J(), Xe = {
|
|
|
954
980
|
}, 100);
|
|
955
981
|
},
|
|
956
982
|
generateCsv() {
|
|
957
|
-
const
|
|
958
|
-
this.downloadCsv({ csvContent:
|
|
983
|
+
const a = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], h = this.table.body, f = a.concat([s]).concat(h), i = this.createCsvContent(f);
|
|
984
|
+
this.downloadCsv({ csvContent: i, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
959
985
|
},
|
|
960
986
|
showSpinnerImage() {
|
|
961
987
|
this.isImaging = !0;
|
|
@@ -972,31 +998,31 @@ const Ye = J(), Xe = {
|
|
|
972
998
|
}, 100);
|
|
973
999
|
}
|
|
974
1000
|
}
|
|
975
|
-
}, 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"],
|
|
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"], 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"], mt = ["id"], Nt = ["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"], vt = ["x", "y", "font-size", "fill"], Gt = ["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"], Ht = ["x1", "x2", "y1", "y2", "stroke"], Wt = ["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 }, ma = ["x", "y", "font-size", "fill"], Na = ["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 }, va = ["text-anchor", "font-size", "fill", "transform"], Ga = ["x", "y", "height", "width", "onMouseenter", "onClick"], pa = { key: 10 }, za = ["x", "y"], Ma = ["cx", "cy", "r", "fill"], Ta = {
|
|
976
1002
|
key: 3,
|
|
977
1003
|
class: "vue-data-ui-watermark"
|
|
978
|
-
},
|
|
1004
|
+
}, Pa = ["onClick"], Va = {
|
|
979
1005
|
key: 0,
|
|
980
1006
|
viewBox: "0 0 20 12",
|
|
981
1007
|
height: "14",
|
|
982
1008
|
width: "20"
|
|
983
|
-
},
|
|
1009
|
+
}, Ra = ["fill"], Da = {
|
|
984
1010
|
key: 1,
|
|
985
1011
|
viewBox: "0 0 12 12",
|
|
986
1012
|
height: "14",
|
|
987
1013
|
width: "14"
|
|
988
|
-
},
|
|
1014
|
+
}, Ha = ["fill"], Wa = {
|
|
989
1015
|
key: 7,
|
|
990
1016
|
ref: "chartLegend"
|
|
991
|
-
},
|
|
1017
|
+
}, Ea = {
|
|
992
1018
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
993
1019
|
"data-html2canvas-ignore": ""
|
|
994
|
-
},
|
|
995
|
-
function
|
|
996
|
-
const
|
|
1020
|
+
}, Ba = ["innerHTML"];
|
|
1021
|
+
function Ya(a, s, h, f, i, e) {
|
|
1022
|
+
const x = P("Title"), _ = P("UserOptions"), L = P("Shape"), N = P("Skeleton"), C = P("Slicer"), z = P("Tooltip"), k = P("BaseIcon"), G = P("TableSparkline"), v = P("DataTable"), b = P("Accordion");
|
|
997
1023
|
return l(), r("div", {
|
|
998
|
-
id: `vue-ui-xy_${
|
|
999
|
-
class: M(`vue-ui-xy ${
|
|
1024
|
+
id: `vue-ui-xy_${i.uniqueId}`,
|
|
1025
|
+
class: M(`vue-ui-xy ${i.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1000
1026
|
ref: "chart",
|
|
1001
1027
|
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%" : ""}`)
|
|
1002
1028
|
}, [
|
|
@@ -1006,8 +1032,8 @@ function qa(i, s, h, f, t, e) {
|
|
|
1006
1032
|
class: "vue-ui-xy-title",
|
|
1007
1033
|
style: A(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1008
1034
|
}, [
|
|
1009
|
-
(l(), V(
|
|
1010
|
-
key: `title_${
|
|
1035
|
+
(l(), V(x, {
|
|
1036
|
+
key: `title_${i.titleStep}`,
|
|
1011
1037
|
config: {
|
|
1012
1038
|
title: {
|
|
1013
1039
|
cy: "xy-div-title",
|
|
@@ -1020,14 +1046,14 @@ function qa(i, s, h, f, t, e) {
|
|
|
1020
1046
|
}
|
|
1021
1047
|
}, null, 8, ["config"]))
|
|
1022
1048
|
], 4)) : o("", !0),
|
|
1023
|
-
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (l(), V(
|
|
1049
|
+
e.FINAL_CONFIG.chart.userOptions.show && e.isDataset ? (l(), V(_, {
|
|
1024
1050
|
ref: "defails",
|
|
1025
|
-
key: `user_options_${
|
|
1051
|
+
key: `user_options_${i.step}`,
|
|
1026
1052
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1027
1053
|
color: e.FINAL_CONFIG.chart.color,
|
|
1028
|
-
isPrinting:
|
|
1029
|
-
isImaging:
|
|
1030
|
-
uid:
|
|
1054
|
+
isPrinting: i.isPrinting,
|
|
1055
|
+
isImaging: i.isImaging,
|
|
1056
|
+
uid: i.uniqueId,
|
|
1031
1057
|
hasTooltip: e.FINAL_CONFIG.chart.userOptions.buttons.tooltip && e.FINAL_CONFIG.chart.tooltip.show,
|
|
1032
1058
|
hasPdf: e.FINAL_CONFIG.chart.userOptions.buttons.pdf,
|
|
1033
1059
|
hasXls: e.FINAL_CONFIG.chart.userOptions.buttons.csv,
|
|
@@ -1036,10 +1062,10 @@ function qa(i, s, h, f, t, e) {
|
|
|
1036
1062
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1037
1063
|
hasStack: h.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1038
1064
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1039
|
-
isStacked:
|
|
1040
|
-
isFullscreen:
|
|
1041
|
-
chartElement:
|
|
1042
|
-
isTooltip:
|
|
1065
|
+
isStacked: i.mutableConfig.isStacked,
|
|
1066
|
+
isFullscreen: i.isFullscreen,
|
|
1067
|
+
chartElement: a.$refs.chart,
|
|
1068
|
+
isTooltip: i.mutableConfig.showTooltip,
|
|
1043
1069
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
1044
1070
|
onToggleFullscreen: e.toggleFullscreen,
|
|
1045
1071
|
onGeneratePdf: e.generatePdf,
|
|
@@ -1050,59 +1076,59 @@ function qa(i, s, h, f, t, e) {
|
|
|
1050
1076
|
onToggleStack: e.toggleStack,
|
|
1051
1077
|
onToggleTooltip: e.toggleTooltip
|
|
1052
1078
|
}, De({ _: 2 }, [
|
|
1053
|
-
|
|
1079
|
+
a.$slots.optionTooltip ? {
|
|
1054
1080
|
name: "optionTooltip",
|
|
1055
|
-
fn:
|
|
1056
|
-
O(
|
|
1081
|
+
fn: p(() => [
|
|
1082
|
+
O(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1057
1083
|
]),
|
|
1058
1084
|
key: "0"
|
|
1059
1085
|
} : void 0,
|
|
1060
|
-
|
|
1086
|
+
a.$slots.optionPdf ? {
|
|
1061
1087
|
name: "optionPdf",
|
|
1062
|
-
fn:
|
|
1063
|
-
O(
|
|
1088
|
+
fn: p(() => [
|
|
1089
|
+
O(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1064
1090
|
]),
|
|
1065
1091
|
key: "1"
|
|
1066
1092
|
} : void 0,
|
|
1067
|
-
|
|
1093
|
+
a.$slots.optionCsv ? {
|
|
1068
1094
|
name: "optionCsv",
|
|
1069
|
-
fn:
|
|
1070
|
-
O(
|
|
1095
|
+
fn: p(() => [
|
|
1096
|
+
O(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1071
1097
|
]),
|
|
1072
1098
|
key: "2"
|
|
1073
1099
|
} : void 0,
|
|
1074
|
-
|
|
1100
|
+
a.$slots.optionImg ? {
|
|
1075
1101
|
name: "optionImg",
|
|
1076
|
-
fn:
|
|
1077
|
-
O(
|
|
1102
|
+
fn: p(() => [
|
|
1103
|
+
O(a.$slots, "optionImg", {}, void 0, !0)
|
|
1078
1104
|
]),
|
|
1079
1105
|
key: "3"
|
|
1080
1106
|
} : void 0,
|
|
1081
|
-
|
|
1107
|
+
a.$slots.optionTable ? {
|
|
1082
1108
|
name: "optionTable",
|
|
1083
|
-
fn:
|
|
1084
|
-
O(
|
|
1109
|
+
fn: p(() => [
|
|
1110
|
+
O(a.$slots, "optionTable", {}, void 0, !0)
|
|
1085
1111
|
]),
|
|
1086
1112
|
key: "4"
|
|
1087
1113
|
} : void 0,
|
|
1088
|
-
|
|
1114
|
+
a.$slots.optionLabels ? {
|
|
1089
1115
|
name: "optionLabels",
|
|
1090
|
-
fn:
|
|
1091
|
-
O(
|
|
1116
|
+
fn: p(() => [
|
|
1117
|
+
O(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1092
1118
|
]),
|
|
1093
1119
|
key: "5"
|
|
1094
1120
|
} : void 0,
|
|
1095
|
-
|
|
1121
|
+
a.$slots.optionStack ? {
|
|
1096
1122
|
name: "optionStack",
|
|
1097
|
-
fn:
|
|
1098
|
-
O(
|
|
1123
|
+
fn: p(() => [
|
|
1124
|
+
O(a.$slots, "optionStack", {}, void 0, !0)
|
|
1099
1125
|
]),
|
|
1100
1126
|
key: "6"
|
|
1101
1127
|
} : void 0,
|
|
1102
|
-
|
|
1128
|
+
a.$slots.optionFullscreen ? {
|
|
1103
1129
|
name: "optionFullscreen",
|
|
1104
|
-
fn:
|
|
1105
|
-
O(
|
|
1130
|
+
fn: p(({ toggleFullscreen: t, isFullscreen: c }) => [
|
|
1131
|
+
O(a.$slots, "optionFullscreen", B(Y({ toggleFullscreen: t, isFullscreen: c })), void 0, !0)
|
|
1106
1132
|
]),
|
|
1107
1133
|
key: "7"
|
|
1108
1134
|
} : void 0
|
|
@@ -1110,10 +1136,10 @@ function qa(i, s, h, f, t, e) {
|
|
|
1110
1136
|
e.isDataset ? (l(), r("svg", {
|
|
1111
1137
|
key: 2,
|
|
1112
1138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1113
|
-
class: M([{ "vue-data-ui-fullscreen--on":
|
|
1139
|
+
class: M([{ "vue-data-ui-fullscreen--on": i.isFullscreen, "vue-data-ui-fulscreen--off": !i.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1114
1140
|
width: "100%",
|
|
1115
|
-
viewBox:
|
|
1116
|
-
style: A(`background
|
|
1141
|
+
viewBox: i.viewBox,
|
|
1142
|
+
style: A(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1117
1143
|
}, [
|
|
1118
1144
|
e.maxSeries > 0 ? (l(), r("g", Ue, [
|
|
1119
1145
|
u("g", Je, [
|
|
@@ -1127,16 +1153,16 @@ function qa(i, s, h, f, t, e) {
|
|
|
1127
1153
|
y2: e.drawingArea.bottom,
|
|
1128
1154
|
"stroke-linecap": "round"
|
|
1129
1155
|
}, null, 8, Qe)) : o("", !0),
|
|
1130
|
-
|
|
1131
|
-
|
|
1156
|
+
i.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(!0), r(m, { key: 2 }, I(e.allScales, (t) => (l(), r("g", null, [
|
|
1157
|
+
t.id === i.selectedScale && t.yLabels.length ? (l(!0), r(m, { key: 0 }, I(t.yLabels, (c) => (l(), r("line", {
|
|
1132
1158
|
x1: e.drawingArea.left + e.xPadding,
|
|
1133
1159
|
x2: e.drawingArea.right - e.xPadding,
|
|
1134
1160
|
y1: e.checkNaN(c.y),
|
|
1135
1161
|
y2: e.checkNaN(c.y),
|
|
1136
|
-
stroke:
|
|
1162
|
+
stroke: t.color,
|
|
1137
1163
|
"stroke-width": 0.5,
|
|
1138
1164
|
"stroke-linecap": "round"
|
|
1139
|
-
}, null, 8, et))), 256)) :
|
|
1165
|
+
}, null, 8, et))), 256)) : t.yLabels.length ? (l(!0), r(m, { key: 1 }, I(t.yLabels, (c) => (l(), r("line", {
|
|
1140
1166
|
x1: e.drawingArea.left + e.xPadding,
|
|
1141
1167
|
x2: e.drawingArea.right - e.xPadding,
|
|
1142
1168
|
y1: e.checkNaN(c.y),
|
|
@@ -1145,7 +1171,7 @@ function qa(i, s, h, f, t, e) {
|
|
|
1145
1171
|
"stroke-width": 0.5,
|
|
1146
1172
|
"stroke-linecap": "round"
|
|
1147
1173
|
}, null, 8, tt))), 256)) : o("", !0)
|
|
1148
|
-
]))), 256)) : o("", !0) : (l(), r(
|
|
1174
|
+
]))), 256)) : o("", !0) : (l(), r(m, { key: 1 }, [
|
|
1149
1175
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (l(), r("line", {
|
|
1150
1176
|
key: 0,
|
|
1151
1177
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1157,11 +1183,11 @@ function qa(i, s, h, f, t, e) {
|
|
|
1157
1183
|
"stroke-linecap": "round"
|
|
1158
1184
|
}, null, 8, Ke)) : o("", !0),
|
|
1159
1185
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(), r("g", je, [
|
|
1160
|
-
(l(!0), r(
|
|
1186
|
+
(l(!0), r(m, null, I(e.yLabels, (t) => (l(), r("line", {
|
|
1161
1187
|
x1: e.drawingArea.left + e.xPadding,
|
|
1162
1188
|
x2: e.drawingArea.right - e.xPadding,
|
|
1163
|
-
y1: e.checkNaN(
|
|
1164
|
-
y2: e.checkNaN(
|
|
1189
|
+
y1: e.checkNaN(t.y),
|
|
1190
|
+
y2: e.checkNaN(t.y),
|
|
1165
1191
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1166
1192
|
"stroke-width": 0.5,
|
|
1167
1193
|
"stroke-linecap": "round"
|
|
@@ -1169,7 +1195,7 @@ function qa(i, s, h, f, t, e) {
|
|
|
1169
1195
|
])) : o("", !0)
|
|
1170
1196
|
], 64)),
|
|
1171
1197
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (l(), r("g", at, [
|
|
1172
|
-
(l(!0), r(
|
|
1198
|
+
(l(!0), r(m, null, I(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (t, c) => (l(), r("line", {
|
|
1173
1199
|
key: `grid_vertical_line_${c}`,
|
|
1174
1200
|
x1: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
1175
1201
|
x2: e.drawingArea.width / e.maxSeries * c + e.drawingArea.left + e.xPadding,
|
|
@@ -1180,51 +1206,51 @@ function qa(i, s, h, f, t, e) {
|
|
|
1180
1206
|
}, null, 8, it))), 128))
|
|
1181
1207
|
])) : o("", !0)
|
|
1182
1208
|
]),
|
|
1183
|
-
(l(!0), r(
|
|
1209
|
+
(l(!0), r(m, null, I(e.barSet, (t, c) => (l(), r("defs", {
|
|
1184
1210
|
key: `def_rect_${c}`
|
|
1185
1211
|
}, [
|
|
1186
1212
|
u("linearGradient", {
|
|
1187
|
-
id: `rectGradient_pos_${c}_${
|
|
1213
|
+
id: `rectGradient_pos_${c}_${i.uniqueId}`,
|
|
1188
1214
|
x2: "0%",
|
|
1189
1215
|
y2: "100%"
|
|
1190
1216
|
}, [
|
|
1191
1217
|
u("stop", {
|
|
1192
1218
|
offset: "0%",
|
|
1193
|
-
"stop-color":
|
|
1219
|
+
"stop-color": t.color
|
|
1194
1220
|
}, null, 8, rt),
|
|
1195
1221
|
u("stop", {
|
|
1196
1222
|
offset: "62%",
|
|
1197
|
-
"stop-color": `${e.shiftHue(
|
|
1223
|
+
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1198
1224
|
}, null, 8, st),
|
|
1199
1225
|
u("stop", {
|
|
1200
1226
|
offset: "100%",
|
|
1201
|
-
"stop-color": `${e.shiftHue(
|
|
1227
|
+
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1202
1228
|
}, null, 8, nt)
|
|
1203
1229
|
], 8, lt),
|
|
1204
1230
|
u("linearGradient", {
|
|
1205
|
-
id: `rectGradient_neg_${c}_${
|
|
1231
|
+
id: `rectGradient_neg_${c}_${i.uniqueId}`,
|
|
1206
1232
|
x2: "0%",
|
|
1207
1233
|
y2: "100%"
|
|
1208
1234
|
}, [
|
|
1209
1235
|
u("stop", {
|
|
1210
1236
|
offset: "0%",
|
|
1211
|
-
"stop-color": `${e.shiftHue(
|
|
1237
|
+
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1212
1238
|
}, null, 8, ht),
|
|
1213
1239
|
u("stop", {
|
|
1214
1240
|
offset: "38%",
|
|
1215
|
-
"stop-color": `${e.shiftHue(
|
|
1241
|
+
"stop-color": `${e.shiftHue(t.color, 0.02)}`
|
|
1216
1242
|
}, null, 8, ot),
|
|
1217
1243
|
u("stop", {
|
|
1218
1244
|
offset: "100%",
|
|
1219
|
-
"stop-color":
|
|
1245
|
+
"stop-color": t.color
|
|
1220
1246
|
}, null, 8, dt)
|
|
1221
1247
|
], 8, ct)
|
|
1222
1248
|
]))), 128)),
|
|
1223
|
-
(l(!0), r(
|
|
1249
|
+
(l(!0), r(m, null, I(e.plotSet, (t, c) => (l(), r("defs", {
|
|
1224
1250
|
key: `def_plot_${c}`
|
|
1225
1251
|
}, [
|
|
1226
1252
|
u("radialGradient", {
|
|
1227
|
-
id: `plotGradient_${c}_${
|
|
1253
|
+
id: `plotGradient_${c}_${i.uniqueId}`,
|
|
1228
1254
|
cx: "50%",
|
|
1229
1255
|
cy: "50%",
|
|
1230
1256
|
r: "50%",
|
|
@@ -1233,19 +1259,19 @@ function qa(i, s, h, f, t, e) {
|
|
|
1233
1259
|
}, [
|
|
1234
1260
|
u("stop", {
|
|
1235
1261
|
offset: "0%",
|
|
1236
|
-
"stop-color": `${e.shiftHue(
|
|
1262
|
+
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1237
1263
|
}, null, 8, gt),
|
|
1238
1264
|
u("stop", {
|
|
1239
1265
|
offset: "100%",
|
|
1240
|
-
"stop-color":
|
|
1266
|
+
"stop-color": t.color
|
|
1241
1267
|
}, null, 8, ft)
|
|
1242
1268
|
], 8, ut)
|
|
1243
1269
|
]))), 128)),
|
|
1244
|
-
(l(!0), r(
|
|
1270
|
+
(l(!0), r(m, null, I(e.lineSet, (t, c) => (l(), r("defs", {
|
|
1245
1271
|
key: `def_line_${c}`
|
|
1246
1272
|
}, [
|
|
1247
1273
|
u("radialGradient", {
|
|
1248
|
-
id: `lineGradient_${c}_${
|
|
1274
|
+
id: `lineGradient_${c}_${i.uniqueId}`,
|
|
1249
1275
|
cx: "50%",
|
|
1250
1276
|
cy: "50%",
|
|
1251
1277
|
r: "50%",
|
|
@@ -1254,15 +1280,15 @@ function qa(i, s, h, f, t, e) {
|
|
|
1254
1280
|
}, [
|
|
1255
1281
|
u("stop", {
|
|
1256
1282
|
offset: "0%",
|
|
1257
|
-
"stop-color": `${e.shiftHue(
|
|
1258
|
-
}, null, 8,
|
|
1283
|
+
"stop-color": `${e.shiftHue(t.color, 0.05)}`
|
|
1284
|
+
}, null, 8, Nt),
|
|
1259
1285
|
u("stop", {
|
|
1260
1286
|
offset: "100%",
|
|
1261
|
-
"stop-color":
|
|
1287
|
+
"stop-color": t.color
|
|
1262
1288
|
}, null, 8, It)
|
|
1263
|
-
], 8,
|
|
1289
|
+
], 8, mt),
|
|
1264
1290
|
u("linearGradient", {
|
|
1265
|
-
id: `areaGradient_${c}_${
|
|
1291
|
+
id: `areaGradient_${c}_${i.uniqueId}`,
|
|
1266
1292
|
x1: "0%",
|
|
1267
1293
|
x2: "100%",
|
|
1268
1294
|
y1: "0%",
|
|
@@ -1270,40 +1296,46 @@ function qa(i, s, h, f, t, e) {
|
|
|
1270
1296
|
}, [
|
|
1271
1297
|
u("stop", {
|
|
1272
1298
|
offset: "0%",
|
|
1273
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1299
|
+
"stop-color": `${e.setOpacity(e.shiftHue(t.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1274
1300
|
}, null, 8, bt),
|
|
1275
1301
|
u("stop", {
|
|
1276
1302
|
offset: "100%",
|
|
1277
|
-
"stop-color": `${e.setOpacity(
|
|
1303
|
+
"stop-color": `${e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1278
1304
|
}, null, 8, Ft)
|
|
1279
1305
|
], 8, xt)
|
|
1280
1306
|
]))), 128)),
|
|
1281
|
-
(l(!0), r(
|
|
1282
|
-
|
|
1307
|
+
(l(!0), r(m, null, I(e.highlightAreas, (t) => (l(), r("g", null, [
|
|
1308
|
+
t.show ? (l(!0), r(m, { key: 0 }, I(t.span, (c, n) => (l(), r("g", null, [
|
|
1283
1309
|
u("rect", {
|
|
1284
|
-
style: {
|
|
1285
|
-
|
|
1310
|
+
style: A({
|
|
1311
|
+
transition: "none",
|
|
1312
|
+
opacity: t.from + n >= i.slicer.start && t.from + n <= i.slicer.end - 1 ? 1 : 0
|
|
1313
|
+
}),
|
|
1314
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + n - i.slicer.start),
|
|
1286
1315
|
y: e.drawingArea.top,
|
|
1287
1316
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1288
|
-
width: e.drawingArea.width / e.maxSeries
|
|
1289
|
-
fill: e.setOpacity(
|
|
1290
|
-
}, null,
|
|
1291
|
-
|
|
1317
|
+
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1318
|
+
fill: e.setOpacity(t.color, t.opacity)
|
|
1319
|
+
}, null, 12, _t),
|
|
1320
|
+
t.caption.text && n === 0 ? (l(), r("foreignObject", {
|
|
1292
1321
|
key: 0,
|
|
1293
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1294
|
-
y: e.drawingArea.top +
|
|
1295
|
-
style: {
|
|
1322
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (t.from + n - i.slicer.start) - (t.caption.width === "auto" ? 0 : t.caption.width / 2 - e.drawingArea.width / e.maxSeries * t.span / 2),
|
|
1323
|
+
y: e.drawingArea.top + t.caption.offsetY,
|
|
1324
|
+
style: A({
|
|
1325
|
+
overflow: "visible",
|
|
1326
|
+
opacity: t.to >= i.slicer.start && t.from < i.slicer.end ? 1 : 0
|
|
1327
|
+
}),
|
|
1296
1328
|
height: "1",
|
|
1297
|
-
width:
|
|
1329
|
+
width: t.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * t.span : t.caption.width
|
|
1298
1330
|
}, [
|
|
1299
1331
|
u("div", {
|
|
1300
|
-
style: A(`padding:${
|
|
1301
|
-
},
|
|
1302
|
-
],
|
|
1303
|
-
],
|
|
1332
|
+
style: A(`padding:${t.caption.padding}px;text-align:${t.caption.textAlign};font-size:${t.caption.fontSize}px;color:${t.caption.color};font-weight:${t.caption.bold ? "bold" : "normal"}`)
|
|
1333
|
+
}, S(t.caption.text), 5)
|
|
1334
|
+
], 12, yt)) : o("", !0)
|
|
1335
|
+
]))), 256)) : o("", !0)
|
|
1304
1336
|
]))), 256)),
|
|
1305
1337
|
u("g", null, [
|
|
1306
|
-
(l(!0), r(
|
|
1338
|
+
(l(!0), r(m, null, I(e.maxSeries, (t, c) => (l(), r("g", {
|
|
1307
1339
|
key: `tooltip_trap_${c}`
|
|
1308
1340
|
}, [
|
|
1309
1341
|
u("rect", {
|
|
@@ -1311,43 +1343,43 @@ function qa(i, s, h, f, t, e) {
|
|
|
1311
1343
|
y: e.drawingArea.top,
|
|
1312
1344
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1313
1345
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1314
|
-
fill: [
|
|
1346
|
+
fill: [i.selectedMinimapIndex, i.selectedSerieIndex, i.selectedRowIndex].includes(c) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1315
1347
|
}, null, 8, At)
|
|
1316
1348
|
]))), 128))
|
|
1317
1349
|
]),
|
|
1318
|
-
e.barSet.length ? (l(!0), r(
|
|
1350
|
+
e.barSet.length ? (l(!0), r(m, { key: 0 }, I(e.barSet, (t, c) => (l(), r("g", {
|
|
1319
1351
|
key: `serie_bar_${c}`,
|
|
1320
1352
|
class: M(`serie_bar_${c}`),
|
|
1321
|
-
style: A(`opacity:${
|
|
1353
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1322
1354
|
}, [
|
|
1323
|
-
(l(!0), r(
|
|
1355
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1324
1356
|
key: `bar_plot_${c}_${g}`
|
|
1325
1357
|
}, [
|
|
1326
1358
|
e.canShowValue(n.value) ? (l(), r("rect", {
|
|
1327
1359
|
key: 0,
|
|
1328
1360
|
x: e.calcRectX(n),
|
|
1329
|
-
y:
|
|
1330
|
-
height:
|
|
1331
|
-
width: e.calcRectWidth() - (
|
|
1361
|
+
y: i.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
|
|
1362
|
+
height: i.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1363
|
+
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),
|
|
1332
1364
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1333
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${
|
|
1334
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1365
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${c}_${i.uniqueId})` : `url(#rectGradient_neg_${c}_${i.uniqueId})` : t.color,
|
|
1366
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? t.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1335
1367
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1336
1368
|
}, null, 8, Lt)) : o("", !0),
|
|
1337
1369
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), r("foreignObject", {
|
|
1338
1370
|
key: 1,
|
|
1339
1371
|
style: { overflow: "visible" },
|
|
1340
1372
|
height: "12",
|
|
1341
|
-
width: (e.calcRectWidth() - (
|
|
1373
|
+
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,
|
|
1342
1374
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1343
1375
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1344
1376
|
}, [
|
|
1345
|
-
O(
|
|
1346
|
-
plot: { ...n, color:
|
|
1377
|
+
O(a.$slots, "plot-comment", {
|
|
1378
|
+
plot: { ...n, color: t.color }
|
|
1347
1379
|
}, void 0, !0)
|
|
1348
1380
|
], 8, Ct)) : o("", !0)
|
|
1349
1381
|
]))), 128)),
|
|
1350
|
-
Object.hasOwn(
|
|
1382
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", St, [
|
|
1351
1383
|
u("defs", null, [
|
|
1352
1384
|
u("marker", {
|
|
1353
1385
|
id: `bar_arrow_${c}`,
|
|
@@ -1359,36 +1391,36 @@ function qa(i, s, h, f, t, e) {
|
|
|
1359
1391
|
}, [
|
|
1360
1392
|
u("polygon", {
|
|
1361
1393
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1362
|
-
fill:
|
|
1394
|
+
fill: t.color
|
|
1363
1395
|
}, null, 8, wt)
|
|
1364
1396
|
], 8, kt)
|
|
1365
1397
|
]),
|
|
1366
|
-
|
|
1398
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1367
1399
|
key: 0,
|
|
1368
|
-
x1: e.calcLinearProgression(
|
|
1369
|
-
x2: e.calcLinearProgression(
|
|
1370
|
-
y1: e.calcLinearProgression(
|
|
1371
|
-
y2: e.calcLinearProgression(
|
|
1400
|
+
x1: e.calcLinearProgression(t.plots).x1,
|
|
1401
|
+
x2: e.calcLinearProgression(t.plots).x2,
|
|
1402
|
+
y1: e.calcLinearProgression(t.plots).y1,
|
|
1403
|
+
y2: e.calcLinearProgression(t.plots).y2,
|
|
1372
1404
|
"stroke-width": 1,
|
|
1373
|
-
stroke:
|
|
1405
|
+
stroke: t.color,
|
|
1374
1406
|
"stroke-dasharray": 2,
|
|
1375
1407
|
"marker-end": `url(#bar_arrow_${c})`
|
|
1376
1408
|
}, null, 8, Ot)) : o("", !0),
|
|
1377
|
-
|
|
1409
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1378
1410
|
key: 1,
|
|
1379
1411
|
"text-anchor": "middle",
|
|
1380
|
-
x: e.calcLinearProgression(
|
|
1381
|
-
y: e.calcLinearProgression(
|
|
1382
|
-
"font-size":
|
|
1383
|
-
fill:
|
|
1384
|
-
},
|
|
1385
|
-
v: e.calcLinearProgression(
|
|
1412
|
+
x: e.calcLinearProgression(t.plots).x2,
|
|
1413
|
+
y: e.calcLinearProgression(t.plots).y2 - 6,
|
|
1414
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1415
|
+
fill: t.color
|
|
1416
|
+
}, S(e.dataLabel({
|
|
1417
|
+
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1386
1418
|
s: "%",
|
|
1387
1419
|
r: 2
|
|
1388
1420
|
})), 9, vt)) : o("", !0)
|
|
1389
1421
|
])) : o("", !0)
|
|
1390
1422
|
], 6))), 128)) : o("", !0),
|
|
1391
|
-
!
|
|
1423
|
+
!i.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (l(), r("line", {
|
|
1392
1424
|
key: 1,
|
|
1393
1425
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1394
1426
|
"stroke-width": "1",
|
|
@@ -1398,10 +1430,10 @@ function qa(i, s, h, f, t, e) {
|
|
|
1398
1430
|
y2: e.checkNaN(e.zero),
|
|
1399
1431
|
"stroke-linecap": "round"
|
|
1400
1432
|
}, null, 8, Gt)) : o("", !0),
|
|
1401
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(
|
|
1433
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(i.selectedSerieIndex) || i.selectedMinimapIndex !== null) ? (l(), r("g", pt, [
|
|
1402
1434
|
u("line", {
|
|
1403
|
-
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1404
|
-
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1435
|
+
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.selectedSerieIndex || i.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1436
|
+
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.selectedSerieIndex || i.selectedMinimapIndex) + e.drawingArea.width / e.maxSeries / 2,
|
|
1405
1437
|
y1: e.drawingArea.top,
|
|
1406
1438
|
y2: e.drawingArea.bottom,
|
|
1407
1439
|
stroke: e.FINAL_CONFIG.chart.highlighter.color,
|
|
@@ -1409,26 +1441,8 @@ function qa(i, s, h, f, t, e) {
|
|
|
1409
1441
|
"stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
|
|
1410
1442
|
"stroke-linecap": "round",
|
|
1411
1443
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
1412
|
-
}, null, 8,
|
|
1444
|
+
}, null, 8, zt)
|
|
1413
1445
|
])) : o("", !0),
|
|
1414
|
-
u("g", null, [
|
|
1415
|
-
u("rect", {
|
|
1416
|
-
style: { transition: "none" },
|
|
1417
|
-
x: 0,
|
|
1418
|
-
y: e.drawingArea.top,
|
|
1419
|
-
width: e.FINAL_CONFIG.chart.padding.left - 1 + e.xPadding,
|
|
1420
|
-
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1421
|
-
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1422
|
-
}, null, 8, Mt),
|
|
1423
|
-
u("rect", {
|
|
1424
|
-
style: { transition: "none" },
|
|
1425
|
-
x: e.drawingArea.right + 1 - e.xPadding,
|
|
1426
|
-
y: e.drawingArea.top,
|
|
1427
|
-
width: e.FINAL_CONFIG.chart.padding.right - 1 + e.xPadding,
|
|
1428
|
-
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1429
|
-
fill: e.FINAL_CONFIG.chart.backgroundColor
|
|
1430
|
-
}, null, 8, Pt)
|
|
1431
|
-
]),
|
|
1432
1446
|
e.FINAL_CONFIG.chart.grid.frame.show ? (l(), r("rect", {
|
|
1433
1447
|
key: 3,
|
|
1434
1448
|
style: { pointerEvents: "none", transition: "none" },
|
|
@@ -1442,46 +1456,46 @@ function qa(i, s, h, f, t, e) {
|
|
|
1442
1456
|
"stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
|
|
1443
1457
|
"stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
|
|
1444
1458
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1445
|
-
}, null, 8,
|
|
1446
|
-
e.FINAL_CONFIG.chart.grid.labels.show ? (l(), r("g",
|
|
1447
|
-
|
|
1448
|
-
(l(!0), r(
|
|
1459
|
+
}, null, 8, Mt)) : o("", !0),
|
|
1460
|
+
e.FINAL_CONFIG.chart.grid.labels.show ? (l(), r("g", Tt, [
|
|
1461
|
+
i.mutableConfig.useIndividualScale ? (l(), r(m, { key: 0 }, [
|
|
1462
|
+
(l(!0), r(m, null, I(e.allScales, (t) => (l(), r("g", null, [
|
|
1449
1463
|
u("line", {
|
|
1450
|
-
x1:
|
|
1451
|
-
x2:
|
|
1452
|
-
y1:
|
|
1453
|
-
y2:
|
|
1454
|
-
stroke:
|
|
1464
|
+
x1: t.x + e.xPadding,
|
|
1465
|
+
x2: t.x + e.xPadding,
|
|
1466
|
+
y1: i.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - t.yOffset - t.individualHeight) : e.checkNaN(e.drawingArea.top),
|
|
1467
|
+
y2: i.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - t.yOffset) : e.checkNaN(e.drawingArea.bottom),
|
|
1468
|
+
stroke: t.color,
|
|
1455
1469
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1456
1470
|
"stroke-linecap": "round",
|
|
1457
|
-
style: A(`opacity:${
|
|
1458
|
-
}, null, 12,
|
|
1471
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1472
|
+
}, null, 12, Pt)
|
|
1459
1473
|
]))), 256)),
|
|
1460
|
-
(l(!0), r(
|
|
1461
|
-
style: A(`opacity:${
|
|
1474
|
+
(l(!0), r(m, null, I(e.allScales, (t) => (l(), r("g", {
|
|
1475
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1462
1476
|
}, [
|
|
1463
1477
|
u("text", {
|
|
1464
|
-
fill:
|
|
1465
|
-
"font-size":
|
|
1478
|
+
fill: t.color,
|
|
1479
|
+
"font-size": i.fontSizes.dataLabels,
|
|
1466
1480
|
"text-anchor": "middle",
|
|
1467
|
-
transform: `translate(${
|
|
1468
|
-
},
|
|
1469
|
-
(l(!0), r(
|
|
1470
|
-
x1:
|
|
1471
|
-
x2:
|
|
1481
|
+
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)`
|
|
1482
|
+
}, S(t.name) + " " + S(t.scaleLabel ? `- ${t.scaleLabel}` : ""), 9, Vt),
|
|
1483
|
+
(l(!0), r(m, null, I(t.yLabels, (c, n) => (l(), r("line", {
|
|
1484
|
+
x1: t.x - 3 + e.xPadding,
|
|
1485
|
+
x2: t.x + e.xPadding,
|
|
1472
1486
|
y1: e.checkNaN(c.y),
|
|
1473
1487
|
y2: e.checkNaN(c.y),
|
|
1474
|
-
stroke:
|
|
1488
|
+
stroke: t.color,
|
|
1475
1489
|
"stroke-width": 1,
|
|
1476
1490
|
"stroke-linecap": "round"
|
|
1477
|
-
}, null, 8,
|
|
1478
|
-
(l(!0), r(
|
|
1479
|
-
x:
|
|
1480
|
-
y: e.checkNaN(c.y) +
|
|
1481
|
-
"font-size":
|
|
1491
|
+
}, null, 8, Rt))), 256)),
|
|
1492
|
+
(l(!0), r(m, null, I(t.yLabels, (c, n) => (l(), r("text", {
|
|
1493
|
+
x: t.x - 5 + e.xPadding,
|
|
1494
|
+
y: e.checkNaN(c.y) + i.fontSizes.dataLabels / 3,
|
|
1495
|
+
"font-size": i.fontSizes.dataLabels,
|
|
1482
1496
|
"text-anchor": "end",
|
|
1483
|
-
fill:
|
|
1484
|
-
},
|
|
1497
|
+
fill: t.color
|
|
1498
|
+
}, S(e.applyDataLabel(
|
|
1485
1499
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1486
1500
|
c.value,
|
|
1487
1501
|
e.dataLabel({
|
|
@@ -1491,54 +1505,54 @@ function qa(i, s, h, f, t, e) {
|
|
|
1491
1505
|
r: 1
|
|
1492
1506
|
}),
|
|
1493
1507
|
{ datapoint: c.datapoint, seriesIndex: n }
|
|
1494
|
-
)), 9,
|
|
1508
|
+
)), 9, Dt))), 256))
|
|
1495
1509
|
], 4))), 256))
|
|
1496
|
-
], 64)) : (l(!0), r(
|
|
1510
|
+
], 64)) : (l(!0), r(m, { key: 1 }, I(e.yLabels, (t, c) => (l(), r("g", {
|
|
1497
1511
|
key: `yLabel_${c}`
|
|
1498
1512
|
}, [
|
|
1499
|
-
e.canShowValue(
|
|
1513
|
+
e.canShowValue(t) && t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (l(), r("line", {
|
|
1500
1514
|
key: 0,
|
|
1501
1515
|
x1: e.drawingArea.left + e.xPadding,
|
|
1502
1516
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1503
|
-
y1: e.checkNaN(
|
|
1504
|
-
y2: e.checkNaN(
|
|
1517
|
+
y1: e.checkNaN(t.y),
|
|
1518
|
+
y2: e.checkNaN(t.y),
|
|
1505
1519
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1506
1520
|
"stroke-width": "1",
|
|
1507
1521
|
"stroke-linecap": "round"
|
|
1508
|
-
}, null, 8,
|
|
1509
|
-
|
|
1522
|
+
}, null, 8, Ht)) : o("", !0),
|
|
1523
|
+
t.value >= e.niceScale.min && t.value <= e.niceScale.max ? (l(), r("text", {
|
|
1510
1524
|
key: 1,
|
|
1511
1525
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1512
|
-
y: e.checkNaN(
|
|
1513
|
-
"font-size":
|
|
1526
|
+
y: e.checkNaN(t.y + i.fontSizes.dataLabels / 3),
|
|
1527
|
+
"font-size": i.fontSizes.dataLabels,
|
|
1514
1528
|
"text-anchor": "end",
|
|
1515
1529
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1516
|
-
},
|
|
1530
|
+
}, S(e.canShowValue(t.value) ? e.applyDataLabel(
|
|
1517
1531
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1518
|
-
|
|
1532
|
+
t.value,
|
|
1519
1533
|
e.dataLabel({
|
|
1520
|
-
p:
|
|
1521
|
-
v:
|
|
1522
|
-
s:
|
|
1534
|
+
p: t.prefix,
|
|
1535
|
+
v: t.value,
|
|
1536
|
+
s: t.suffix,
|
|
1523
1537
|
r: 1
|
|
1524
1538
|
})
|
|
1525
|
-
) : ""), 9,
|
|
1539
|
+
) : ""), 9, Wt)) : o("", !0)
|
|
1526
1540
|
]))), 128))
|
|
1527
1541
|
])) : o("", !0),
|
|
1528
|
-
(l(!0), r(
|
|
1542
|
+
(l(!0), r(m, null, I(e.plotSet, (t, c) => (l(), r("g", {
|
|
1529
1543
|
key: `serie_plot_${c}`,
|
|
1530
1544
|
class: M(`serie_plot_${c}`),
|
|
1531
|
-
style: A(`opacity:${
|
|
1545
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1532
1546
|
}, [
|
|
1533
|
-
(l(!0), r(
|
|
1547
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1534
1548
|
key: `circle_plot_${c}_${g}`
|
|
1535
1549
|
}, [
|
|
1536
1550
|
e.canShowValue(n.value) ? (l(), V(L, {
|
|
1537
1551
|
key: 0,
|
|
1538
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1539
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${
|
|
1552
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1553
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${c}_${i.uniqueId})` : t.color,
|
|
1540
1554
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1541
|
-
radius:
|
|
1555
|
+
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex === g || i.selectedMinimapIndex !== null && i.selectedMinimapIndex === g ? (i.plotRadii.plot || 6) * 1.5 : i.plotRadii.plot || 6,
|
|
1542
1556
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1543
1557
|
strokeWidth: 0.5
|
|
1544
1558
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : o("", !0),
|
|
@@ -1550,14 +1564,14 @@ function qa(i, s, h, f, t, e) {
|
|
|
1550
1564
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1551
1565
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1552
1566
|
}, [
|
|
1553
|
-
u("div",
|
|
1554
|
-
O(
|
|
1555
|
-
plot: { ...n, color:
|
|
1567
|
+
u("div", Bt, [
|
|
1568
|
+
O(a.$slots, "plot-comment", {
|
|
1569
|
+
plot: { ...n, color: t.color }
|
|
1556
1570
|
}, void 0, !0)
|
|
1557
1571
|
])
|
|
1558
|
-
], 8,
|
|
1572
|
+
], 8, Et)) : o("", !0)
|
|
1559
1573
|
]))), 128)),
|
|
1560
|
-
Object.hasOwn(
|
|
1574
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", Yt, [
|
|
1561
1575
|
u("defs", null, [
|
|
1562
1576
|
u("marker", {
|
|
1563
1577
|
id: `plot_arrow_${c}`,
|
|
@@ -1569,116 +1583,116 @@ function qa(i, s, h, f, t, e) {
|
|
|
1569
1583
|
}, [
|
|
1570
1584
|
u("polygon", {
|
|
1571
1585
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1572
|
-
fill:
|
|
1573
|
-
}, null, 8,
|
|
1574
|
-
], 8,
|
|
1586
|
+
fill: t.color
|
|
1587
|
+
}, null, 8, qt)
|
|
1588
|
+
], 8, Xt)
|
|
1575
1589
|
]),
|
|
1576
|
-
|
|
1590
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1577
1591
|
key: 0,
|
|
1578
|
-
x1: e.calcLinearProgression(
|
|
1579
|
-
x2: e.calcLinearProgression(
|
|
1580
|
-
y1: e.calcLinearProgression(
|
|
1581
|
-
y2: e.calcLinearProgression(
|
|
1592
|
+
x1: e.calcLinearProgression(t.plots).x1,
|
|
1593
|
+
x2: e.calcLinearProgression(t.plots).x2,
|
|
1594
|
+
y1: e.calcLinearProgression(t.plots).y1,
|
|
1595
|
+
y2: e.calcLinearProgression(t.plots).y2,
|
|
1582
1596
|
"stroke-width": 1,
|
|
1583
|
-
stroke:
|
|
1597
|
+
stroke: t.color,
|
|
1584
1598
|
"stroke-dasharray": 2,
|
|
1585
1599
|
"marker-end": `url(#plot_arrow_${c})`
|
|
1586
|
-
}, null, 8,
|
|
1587
|
-
|
|
1600
|
+
}, null, 8, Zt)) : o("", !0),
|
|
1601
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1588
1602
|
key: 1,
|
|
1589
1603
|
"text-anchor": "middle",
|
|
1590
|
-
x: e.calcLinearProgression(
|
|
1591
|
-
y: e.calcLinearProgression(
|
|
1592
|
-
"font-size":
|
|
1593
|
-
fill:
|
|
1594
|
-
},
|
|
1595
|
-
v: e.calcLinearProgression(
|
|
1604
|
+
x: e.calcLinearProgression(t.plots).x2,
|
|
1605
|
+
y: e.calcLinearProgression(t.plots).y2 - 6,
|
|
1606
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1607
|
+
fill: t.color
|
|
1608
|
+
}, S(e.dataLabel({
|
|
1609
|
+
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1596
1610
|
s: "%",
|
|
1597
1611
|
r: 2
|
|
1598
|
-
})), 9,
|
|
1612
|
+
})), 9, Ut)) : o("", !0)
|
|
1599
1613
|
])) : o("", !0)
|
|
1600
1614
|
], 6))), 128)),
|
|
1601
|
-
(l(!0), r(
|
|
1615
|
+
(l(!0), r(m, null, I(e.lineSet, (t, c) => (l(), r("g", {
|
|
1602
1616
|
key: `serie_line_${c}`,
|
|
1603
1617
|
class: M(`serie_line_${c}`),
|
|
1604
|
-
style: A(`opacity:${
|
|
1618
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1605
1619
|
}, [
|
|
1606
|
-
|
|
1620
|
+
t.smooth && t.plots.length > 1 ? (l(), r("path", {
|
|
1607
1621
|
key: 0,
|
|
1608
|
-
d: `M${
|
|
1622
|
+
d: `M${t.curve}`,
|
|
1609
1623
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1610
1624
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1611
|
-
"stroke-dasharray":
|
|
1625
|
+
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1612
1626
|
fill: "none"
|
|
1613
|
-
}, null, 8,
|
|
1614
|
-
(l(!0), r(
|
|
1627
|
+
}, null, 8, Jt)) : t.plots.length > 1 ? (l(), r("g", Qt, [
|
|
1628
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1615
1629
|
key: `line_${c}_${g}`
|
|
1616
1630
|
}, [
|
|
1617
|
-
n && g <
|
|
1631
|
+
n && g < t.plots.length - 1 && t.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(t.plots[g + 1].value) ? (l(), r("line", {
|
|
1618
1632
|
key: 0,
|
|
1619
1633
|
x1: n.x,
|
|
1620
|
-
x2:
|
|
1634
|
+
x2: t.plots[g + 1].x,
|
|
1621
1635
|
y1: n.y,
|
|
1622
|
-
y2:
|
|
1636
|
+
y2: t.plots[g + 1].y,
|
|
1623
1637
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1624
1638
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1625
|
-
"stroke-dasharray":
|
|
1639
|
+
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1626
1640
|
"stroke-linejoin": "round",
|
|
1627
1641
|
"stroke-linecap": "round"
|
|
1628
|
-
}, null, 8,
|
|
1642
|
+
}, null, 8, Kt)) : o("", !0)
|
|
1629
1643
|
]))), 128))
|
|
1630
1644
|
])) : o("", !0)
|
|
1631
1645
|
], 6))), 128)),
|
|
1632
|
-
(l(!0), r(
|
|
1646
|
+
(l(!0), r(m, null, I(e.lineSet, (t, c) => (l(), r("g", {
|
|
1633
1647
|
key: `serie_line_${c}`,
|
|
1634
1648
|
class: M(`serie_line_${c}`),
|
|
1635
|
-
style: A(`opacity:${
|
|
1649
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1636
1650
|
}, [
|
|
1637
|
-
|
|
1638
|
-
|
|
1651
|
+
t.useArea && t.plots.length > 1 ? (l(), r("g", jt, [
|
|
1652
|
+
t.smooth ? (l(), r("path", {
|
|
1639
1653
|
key: 0,
|
|
1640
|
-
d: `M ${
|
|
1641
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${
|
|
1642
|
-
}, null, 8,
|
|
1654
|
+
d: `M ${t.plots[0] ? t.plots[0].x : Math.min(...t.plots.filter((n) => !!n).map((n) => n.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`,
|
|
1655
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${i.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1656
|
+
}, null, 8, $t)) : (l(), r("path", {
|
|
1643
1657
|
key: 1,
|
|
1644
|
-
d: `M${
|
|
1645
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${
|
|
1646
|
-
}, null, 8,
|
|
1658
|
+
d: `M${t.area}Z`,
|
|
1659
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${c}_${i.uniqueId})` : e.setOpacity(t.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1660
|
+
}, null, 8, ea))
|
|
1647
1661
|
])) : o("", !0),
|
|
1648
|
-
|
|
1662
|
+
t.smooth && t.plots.length > 1 ? (l(), r("path", {
|
|
1649
1663
|
key: 1,
|
|
1650
|
-
d: `M${
|
|
1651
|
-
stroke:
|
|
1664
|
+
d: `M${t.curve}`,
|
|
1665
|
+
stroke: t.color,
|
|
1652
1666
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1653
|
-
"stroke-dasharray":
|
|
1667
|
+
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1654
1668
|
fill: "none"
|
|
1655
|
-
}, null, 8,
|
|
1656
|
-
(l(!0), r(
|
|
1669
|
+
}, null, 8, ta)) : t.plots.length > 1 ? (l(), r("g", aa, [
|
|
1670
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1657
1671
|
key: `line_${c}_${g}`
|
|
1658
1672
|
}, [
|
|
1659
|
-
n && g <
|
|
1673
|
+
n && g < t.plots.length - 1 && t.plots[g + 1] && e.canShowValue(n.value) && e.canShowValue(t.plots[g + 1].value) ? (l(), r("line", {
|
|
1660
1674
|
key: 0,
|
|
1661
1675
|
x1: n.x,
|
|
1662
|
-
x2:
|
|
1676
|
+
x2: t.plots[g + 1].x,
|
|
1663
1677
|
y1: n.y,
|
|
1664
|
-
y2:
|
|
1665
|
-
stroke:
|
|
1678
|
+
y2: t.plots[g + 1].y,
|
|
1679
|
+
stroke: t.color,
|
|
1666
1680
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1667
|
-
"stroke-dasharray":
|
|
1681
|
+
"stroke-dasharray": t.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1668
1682
|
"stroke-linejoin": "round",
|
|
1669
1683
|
"stroke-linecap": "round"
|
|
1670
|
-
}, null, 8,
|
|
1684
|
+
}, null, 8, ia)) : o("", !0)
|
|
1671
1685
|
]))), 128))
|
|
1672
1686
|
])) : o("", !0),
|
|
1673
|
-
(l(!0), r(
|
|
1687
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1674
1688
|
key: `circle_line_${c}_${g}`
|
|
1675
1689
|
}, [
|
|
1676
1690
|
n && e.canShowValue(n.value) ? (l(), V(L, {
|
|
1677
1691
|
key: 0,
|
|
1678
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1679
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${
|
|
1692
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
1693
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${c}_${i.uniqueId})` : t.color,
|
|
1680
1694
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1681
|
-
radius:
|
|
1695
|
+
radius: i.selectedSerieIndex !== null && i.selectedSerieIndex === g || i.selectedMinimapIndex !== null && i.selectedMinimapIndex === g ? (i.plotRadii.line || 6) * 1.5 : i.plotRadii.line || 6,
|
|
1682
1696
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1683
1697
|
strokeWidth: 0.5
|
|
1684
1698
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke"])) : o("", !0),
|
|
@@ -1690,14 +1704,14 @@ function qa(i, s, h, f, t, e) {
|
|
|
1690
1704
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1691
1705
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1692
1706
|
}, [
|
|
1693
|
-
u("div",
|
|
1694
|
-
O(
|
|
1695
|
-
plot: { ...n, color:
|
|
1707
|
+
u("div", ra, [
|
|
1708
|
+
O(a.$slots, "plot-comment", {
|
|
1709
|
+
plot: { ...n, color: t.color }
|
|
1696
1710
|
}, void 0, !0)
|
|
1697
1711
|
])
|
|
1698
|
-
], 8,
|
|
1712
|
+
], 8, la)) : o("", !0)
|
|
1699
1713
|
]))), 128)),
|
|
1700
|
-
Object.hasOwn(
|
|
1714
|
+
Object.hasOwn(t, "useProgression") && t.useProgression === !0 && !isNaN(e.calcLinearProgression(t.plots).trend) ? (l(), r("g", sa, [
|
|
1701
1715
|
u("defs", null, [
|
|
1702
1716
|
u("marker", {
|
|
1703
1717
|
id: `line_arrow_${c}`,
|
|
@@ -1709,108 +1723,108 @@ function qa(i, s, h, f, t, e) {
|
|
|
1709
1723
|
}, [
|
|
1710
1724
|
u("polygon", {
|
|
1711
1725
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1712
|
-
fill:
|
|
1713
|
-
}, null, 8,
|
|
1714
|
-
], 8,
|
|
1726
|
+
fill: t.color
|
|
1727
|
+
}, null, 8, ca)
|
|
1728
|
+
], 8, na)
|
|
1715
1729
|
]),
|
|
1716
|
-
|
|
1730
|
+
t.plots.length > 1 ? (l(), r("line", {
|
|
1717
1731
|
key: 0,
|
|
1718
|
-
x1: e.calcLinearProgression(
|
|
1719
|
-
x2: e.calcLinearProgression(
|
|
1720
|
-
y1: e.calcLinearProgression(
|
|
1721
|
-
y2: e.calcLinearProgression(
|
|
1732
|
+
x1: e.calcLinearProgression(t.plots).x1,
|
|
1733
|
+
x2: e.calcLinearProgression(t.plots).x2,
|
|
1734
|
+
y1: e.calcLinearProgression(t.plots).y1,
|
|
1735
|
+
y2: e.calcLinearProgression(t.plots).y2,
|
|
1722
1736
|
"stroke-width": 1,
|
|
1723
|
-
stroke:
|
|
1737
|
+
stroke: t.color,
|
|
1724
1738
|
"stroke-dasharray": 2,
|
|
1725
1739
|
"marker-end": `url(#line_arrow_${c})`
|
|
1726
|
-
}, null, 8,
|
|
1727
|
-
|
|
1740
|
+
}, null, 8, ha)) : o("", !0),
|
|
1741
|
+
t.plots.length > 1 ? (l(), r("text", {
|
|
1728
1742
|
key: 1,
|
|
1729
1743
|
"text-anchor": "middle",
|
|
1730
|
-
x: e.calcLinearProgression(
|
|
1731
|
-
y: e.calcLinearProgression(
|
|
1732
|
-
"font-size":
|
|
1733
|
-
fill:
|
|
1734
|
-
},
|
|
1735
|
-
v: e.calcLinearProgression(
|
|
1744
|
+
x: e.calcLinearProgression(t.plots).x2,
|
|
1745
|
+
y: e.calcLinearProgression(t.plots).y2 - 6,
|
|
1746
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1747
|
+
fill: t.color
|
|
1748
|
+
}, S(e.dataLabel({
|
|
1749
|
+
v: e.calcLinearProgression(t.plots).trend * 100,
|
|
1736
1750
|
s: "%",
|
|
1737
1751
|
r: 2
|
|
1738
|
-
})), 9,
|
|
1752
|
+
})), 9, oa)) : o("", !0)
|
|
1739
1753
|
])) : o("", !0)
|
|
1740
1754
|
], 6))), 128)),
|
|
1741
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) &&
|
|
1742
|
-
(l(!0), r(
|
|
1755
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && i.mutableConfig.dataLabels.show ? (l(), r("g", da, [
|
|
1756
|
+
(l(!0), r(m, null, I(e.barSet, (t, c) => (l(), r("g", {
|
|
1743
1757
|
key: `xLabel_bar_${c}`,
|
|
1744
1758
|
class: M(`xLabel_bar_${c}`),
|
|
1745
|
-
style: A(`opacity:${
|
|
1759
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1746
1760
|
}, [
|
|
1747
|
-
(l(!0), r(
|
|
1761
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1748
1762
|
key: `xLabel_bar_${c}_${g}`
|
|
1749
1763
|
}, [
|
|
1750
|
-
n && (!Object.hasOwn(
|
|
1764
|
+
n && (!Object.hasOwn(t, "dataLabels") || t.dataLabels === !0) && e.FINAL_CONFIG.bar.labels.show ? (l(), r("text", {
|
|
1751
1765
|
key: 0,
|
|
1752
|
-
x:
|
|
1766
|
+
x: i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1753
1767
|
y: e.checkNaN(n.y) + (n.value > 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
1754
1768
|
"text-anchor": "middle",
|
|
1755
|
-
"font-size":
|
|
1769
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1756
1770
|
fill: e.FINAL_CONFIG.bar.labels.color
|
|
1757
|
-
},
|
|
1771
|
+
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1758
1772
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1759
1773
|
n.value,
|
|
1760
1774
|
e.dataLabel({
|
|
1761
|
-
p:
|
|
1775
|
+
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1762
1776
|
v: n.value,
|
|
1763
|
-
s:
|
|
1777
|
+
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1764
1778
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1765
1779
|
}),
|
|
1766
1780
|
{
|
|
1767
1781
|
datapoint: n,
|
|
1768
|
-
serie:
|
|
1782
|
+
serie: t
|
|
1769
1783
|
}
|
|
1770
|
-
) : ""), 9,
|
|
1784
|
+
) : ""), 9, ua)) : o("", !0),
|
|
1771
1785
|
n && e.FINAL_CONFIG.bar.serieName.show ? (l(), r("text", {
|
|
1772
1786
|
key: 1,
|
|
1773
|
-
x:
|
|
1787
|
+
x: i.mutableConfig.useIndividualScale && i.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1774
1788
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1775
1789
|
"text-anchor": "middle",
|
|
1776
|
-
"font-size":
|
|
1777
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
1790
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1791
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? t.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1778
1792
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1779
|
-
},
|
|
1793
|
+
}, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: t.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : t.name), 9, ga)) : o("", !0)
|
|
1780
1794
|
]))), 128))
|
|
1781
1795
|
], 6))), 128))
|
|
1782
1796
|
])) : o("", !0),
|
|
1783
|
-
e.FINAL_CONFIG.plot.labels.show &&
|
|
1784
|
-
(l(!0), r(
|
|
1797
|
+
e.FINAL_CONFIG.plot.labels.show && i.mutableConfig.dataLabels.show ? (l(), r("g", fa, [
|
|
1798
|
+
(l(!0), r(m, null, I(e.plotSet, (t, c) => (l(), r("g", {
|
|
1785
1799
|
key: `xLabel_plot_${c}`,
|
|
1786
1800
|
class: M(`xLabel_plot_${c}`),
|
|
1787
|
-
style: A(`opacity:${
|
|
1801
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1788
1802
|
}, [
|
|
1789
|
-
(l(!0), r(
|
|
1803
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1790
1804
|
key: `xLabel_plot_${c}_${g}`
|
|
1791
1805
|
}, [
|
|
1792
|
-
n && !Object.hasOwn(
|
|
1806
|
+
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 ? (l(), r("text", {
|
|
1793
1807
|
key: 0,
|
|
1794
1808
|
x: n.x,
|
|
1795
1809
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
1796
1810
|
"text-anchor": "middle",
|
|
1797
|
-
"font-size":
|
|
1811
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1798
1812
|
fill: e.FINAL_CONFIG.plot.labels.color
|
|
1799
|
-
},
|
|
1813
|
+
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1800
1814
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1801
1815
|
n.value,
|
|
1802
1816
|
e.dataLabel({
|
|
1803
|
-
p:
|
|
1817
|
+
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1804
1818
|
v: n.value,
|
|
1805
|
-
s:
|
|
1819
|
+
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1806
1820
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1807
1821
|
}),
|
|
1808
1822
|
{
|
|
1809
1823
|
datapoint: n,
|
|
1810
|
-
serie:
|
|
1824
|
+
serie: t
|
|
1811
1825
|
}
|
|
1812
|
-
) : ""), 9,
|
|
1813
|
-
n && g === 0 &&
|
|
1826
|
+
) : ""), 9, ma)) : o("", !0),
|
|
1827
|
+
n && g === 0 && t.useTag && t.useTag === "start" ? (l(), r("foreignObject", {
|
|
1814
1828
|
key: 1,
|
|
1815
1829
|
x: n.x,
|
|
1816
1830
|
y: n.y - 20,
|
|
@@ -1819,55 +1833,55 @@ function qa(i, s, h, f, t, e) {
|
|
|
1819
1833
|
style: { overflow: "visible" }
|
|
1820
1834
|
}, [
|
|
1821
1835
|
u("div", {
|
|
1822
|
-
style: A(`padding: 3px; background:${e.setOpacity(
|
|
1823
|
-
},
|
|
1824
|
-
], 8,
|
|
1825
|
-
n && g ===
|
|
1836
|
+
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;`)
|
|
1837
|
+
}, S(t.name), 5)
|
|
1838
|
+
], 8, Na)) : o("", !0),
|
|
1839
|
+
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (l(), r("foreignObject", {
|
|
1826
1840
|
key: 2,
|
|
1827
|
-
x: n.x -
|
|
1841
|
+
x: n.x - t.name.length * (i.fontSizes.plotLabels / 2),
|
|
1828
1842
|
y: n.y - 20,
|
|
1829
1843
|
height: 24,
|
|
1830
1844
|
width: "150",
|
|
1831
1845
|
style: { overflow: "visible" }
|
|
1832
1846
|
}, [
|
|
1833
1847
|
u("div", {
|
|
1834
|
-
style: A(`padding: 3px; background:${e.setOpacity(
|
|
1835
|
-
},
|
|
1836
|
-
], 8,
|
|
1848
|
+
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;`)
|
|
1849
|
+
}, S(t.name), 5)
|
|
1850
|
+
], 8, Ia)) : o("", !0)
|
|
1837
1851
|
]))), 128))
|
|
1838
1852
|
], 6))), 128))
|
|
1839
1853
|
])) : o("", !0),
|
|
1840
|
-
e.FINAL_CONFIG.line.labels.show &&
|
|
1841
|
-
(l(!0), r(
|
|
1854
|
+
e.FINAL_CONFIG.line.labels.show && i.mutableConfig.dataLabels.show ? (l(), r("g", xa, [
|
|
1855
|
+
(l(!0), r(m, null, I(e.lineSet, (t, c) => (l(), r("g", {
|
|
1842
1856
|
key: `xLabel_line_${c}`,
|
|
1843
1857
|
class: M(`xLabel_line_${c}`),
|
|
1844
|
-
style: A(`opacity:${
|
|
1858
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1845
1859
|
}, [
|
|
1846
|
-
(l(!0), r(
|
|
1860
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1847
1861
|
key: `xLabel_line_${c}_${g}`
|
|
1848
1862
|
}, [
|
|
1849
|
-
n && !Object.hasOwn(
|
|
1863
|
+
n && !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 ? (l(), r("text", {
|
|
1850
1864
|
key: 0,
|
|
1851
1865
|
x: n.x,
|
|
1852
1866
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
1853
1867
|
"text-anchor": "middle",
|
|
1854
|
-
"font-size":
|
|
1868
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1855
1869
|
fill: e.FINAL_CONFIG.line.labels.color
|
|
1856
|
-
},
|
|
1870
|
+
}, S(e.canShowValue(n.value) ? e.applyDataLabel(
|
|
1857
1871
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1858
1872
|
n.value,
|
|
1859
1873
|
e.dataLabel({
|
|
1860
|
-
p:
|
|
1874
|
+
p: t.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1861
1875
|
v: n.value,
|
|
1862
|
-
s:
|
|
1876
|
+
s: t.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1863
1877
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1864
1878
|
}),
|
|
1865
1879
|
{
|
|
1866
1880
|
datapoint: n,
|
|
1867
|
-
serie:
|
|
1881
|
+
serie: t
|
|
1868
1882
|
}
|
|
1869
|
-
) : ""), 9,
|
|
1870
|
-
n && g === 0 &&
|
|
1883
|
+
) : ""), 9, ba)) : o("", !0),
|
|
1884
|
+
n && g === 0 && t.useTag && t.useTag === "start" ? (l(), r("foreignObject", {
|
|
1871
1885
|
key: 1,
|
|
1872
1886
|
x: n.x,
|
|
1873
1887
|
y: n.y - 20,
|
|
@@ -1876,150 +1890,150 @@ function qa(i, s, h, f, t, e) {
|
|
|
1876
1890
|
style: { overflow: "visible" }
|
|
1877
1891
|
}, [
|
|
1878
1892
|
u("div", {
|
|
1879
|
-
style: A(`padding: 3px; background:${e.setOpacity(
|
|
1880
|
-
},
|
|
1881
|
-
], 8,
|
|
1882
|
-
n && g ===
|
|
1893
|
+
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;`)
|
|
1894
|
+
}, S(t.name), 5)
|
|
1895
|
+
], 8, Fa)) : o("", !0),
|
|
1896
|
+
n && g === t.plots.length - 1 && t.useTag && t.useTag === "end" ? (l(), r("foreignObject", {
|
|
1883
1897
|
key: 2,
|
|
1884
|
-
x: n.x -
|
|
1898
|
+
x: n.x - t.name.length * (i.fontSizes.plotLabels / 2),
|
|
1885
1899
|
y: n.y - 20,
|
|
1886
1900
|
height: 24,
|
|
1887
1901
|
width: "150",
|
|
1888
1902
|
style: { overflow: "visible" }
|
|
1889
1903
|
}, [
|
|
1890
1904
|
u("div", {
|
|
1891
|
-
style: A(`padding: 3px; background:${e.setOpacity(
|
|
1892
|
-
},
|
|
1893
|
-
], 8,
|
|
1905
|
+
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;`)
|
|
1906
|
+
}, S(t.name), 5)
|
|
1907
|
+
], 8, _a)) : o("", !0)
|
|
1894
1908
|
]))), 128))
|
|
1895
1909
|
], 6))), 128))
|
|
1896
1910
|
])) : o("", !0),
|
|
1897
|
-
(l(!0), r(
|
|
1911
|
+
(l(!0), r(m, null, I(e.lineSet, (t, c) => (l(), r("g", {
|
|
1898
1912
|
key: `xLabel_line_${c}`,
|
|
1899
1913
|
class: M(`xLabel_line_${c}`),
|
|
1900
|
-
style: A(`opacity:${
|
|
1914
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1901
1915
|
}, [
|
|
1902
|
-
(l(!0), r(
|
|
1916
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1903
1917
|
key: `xLabel_line_${c}_${g}`
|
|
1904
1918
|
}, [
|
|
1905
|
-
n && g === 0 &&
|
|
1919
|
+
n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (l(), r("text", {
|
|
1906
1920
|
key: 0,
|
|
1907
|
-
x: n.x -
|
|
1921
|
+
x: n.x - i.fontSizes.plotLabels,
|
|
1908
1922
|
y: n.y,
|
|
1909
|
-
"font-size":
|
|
1923
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1910
1924
|
"text-anchor": "end",
|
|
1911
|
-
fill:
|
|
1925
|
+
fill: t.color,
|
|
1912
1926
|
innerHTML: e.createTSpans({
|
|
1913
|
-
content:
|
|
1914
|
-
fontSize:
|
|
1915
|
-
fill:
|
|
1916
|
-
x: n.x -
|
|
1927
|
+
content: t.name,
|
|
1928
|
+
fontSize: i.fontSizes.plotLabels,
|
|
1929
|
+
fill: t.color,
|
|
1930
|
+
x: n.x - i.fontSizes.plotLabels,
|
|
1917
1931
|
y: n.y,
|
|
1918
1932
|
maxWords: 2
|
|
1919
1933
|
})
|
|
1920
|
-
}, null, 8,
|
|
1921
|
-
n && g ===
|
|
1934
|
+
}, null, 8, ya)) : o("", !0),
|
|
1935
|
+
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (l(), r("text", {
|
|
1922
1936
|
key: 1,
|
|
1923
|
-
x: n.x +
|
|
1937
|
+
x: n.x + i.fontSizes.plotLabels,
|
|
1924
1938
|
y: n.y,
|
|
1925
|
-
"font-size":
|
|
1939
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1926
1940
|
"text-anchor": "start",
|
|
1927
|
-
fill:
|
|
1941
|
+
fill: t.color,
|
|
1928
1942
|
innerHTML: e.createTSpans({
|
|
1929
|
-
content:
|
|
1930
|
-
fontSize:
|
|
1931
|
-
fill:
|
|
1932
|
-
x: n.x +
|
|
1943
|
+
content: t.name,
|
|
1944
|
+
fontSize: i.fontSizes.plotLabels,
|
|
1945
|
+
fill: t.color,
|
|
1946
|
+
x: n.x + i.fontSizes.plotLabels,
|
|
1933
1947
|
y: n.y,
|
|
1934
1948
|
maxWords: 2
|
|
1935
1949
|
})
|
|
1936
|
-
}, null, 8,
|
|
1950
|
+
}, null, 8, Aa)) : o("", !0)
|
|
1937
1951
|
]))), 128))
|
|
1938
1952
|
], 6))), 128)),
|
|
1939
|
-
(l(!0), r(
|
|
1953
|
+
(l(!0), r(m, null, I(e.plotSet, (t, c) => (l(), r("g", {
|
|
1940
1954
|
key: `xLabel_plot_${c}`,
|
|
1941
1955
|
class: M(`xLabel_plot_${c}`),
|
|
1942
|
-
style: A(`opacity:${
|
|
1956
|
+
style: A(`opacity:${i.selectedScale ? i.selectedScale === t.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1943
1957
|
}, [
|
|
1944
|
-
(l(!0), r(
|
|
1958
|
+
(l(!0), r(m, null, I(t.plots, (n, g) => (l(), r("g", {
|
|
1945
1959
|
key: `xLabel_plot_${c}_${g}`
|
|
1946
1960
|
}, [
|
|
1947
|
-
n && g === 0 &&
|
|
1961
|
+
n && g === 0 && t.showSerieName && t.showSerieName === "start" ? (l(), r("text", {
|
|
1948
1962
|
key: 0,
|
|
1949
|
-
x: n.x -
|
|
1963
|
+
x: n.x - i.fontSizes.plotLabels,
|
|
1950
1964
|
y: n.y,
|
|
1951
|
-
"font-size":
|
|
1965
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1952
1966
|
"text-anchor": "end",
|
|
1953
|
-
fill:
|
|
1967
|
+
fill: t.color,
|
|
1954
1968
|
innerHTML: e.createTSpans({
|
|
1955
|
-
content:
|
|
1956
|
-
fontSize:
|
|
1957
|
-
fill:
|
|
1958
|
-
x: n.x -
|
|
1969
|
+
content: t.name,
|
|
1970
|
+
fontSize: i.fontSizes.plotLabels,
|
|
1971
|
+
fill: t.color,
|
|
1972
|
+
x: n.x - i.fontSizes.plotLabels,
|
|
1959
1973
|
y: n.y,
|
|
1960
1974
|
maxWords: 2
|
|
1961
1975
|
})
|
|
1962
|
-
}, null, 8,
|
|
1963
|
-
n && g ===
|
|
1976
|
+
}, null, 8, La)) : o("", !0),
|
|
1977
|
+
n && g === t.plots.length - 1 && t.showSerieName && t.showSerieName === "end" ? (l(), r("text", {
|
|
1964
1978
|
key: 1,
|
|
1965
|
-
x: n.x +
|
|
1979
|
+
x: n.x + i.fontSizes.plotLabels,
|
|
1966
1980
|
y: n.y,
|
|
1967
|
-
"font-size":
|
|
1981
|
+
"font-size": i.fontSizes.plotLabels,
|
|
1968
1982
|
"text-anchor": "start",
|
|
1969
|
-
fill:
|
|
1983
|
+
fill: t.color,
|
|
1970
1984
|
innerHTML: e.createTSpans({
|
|
1971
|
-
content:
|
|
1972
|
-
fontSize:
|
|
1973
|
-
fill:
|
|
1974
|
-
x: n.x +
|
|
1985
|
+
content: t.name,
|
|
1986
|
+
fontSize: i.fontSizes.plotLabels,
|
|
1987
|
+
fill: t.color,
|
|
1988
|
+
x: n.x + i.fontSizes.plotLabels,
|
|
1975
1989
|
y: n.y,
|
|
1976
1990
|
maxWords: 2
|
|
1977
1991
|
})
|
|
1978
|
-
}, null, 8,
|
|
1992
|
+
}, null, 8, Ca)) : o("", !0)
|
|
1979
1993
|
]))), 128))
|
|
1980
1994
|
], 6))), 128)),
|
|
1981
|
-
|
|
1982
|
-
x:
|
|
1995
|
+
i.mutableConfig.useIndividualScale && !i.mutableConfig.isStacked ? (l(!0), r(m, { key: 8 }, I(e.allScales, (t) => (l(), r("rect", {
|
|
1996
|
+
x: t.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1983
1997
|
y: e.drawingArea.top,
|
|
1984
1998
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
1985
1999
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1986
|
-
fill:
|
|
1987
|
-
onMouseenter: (c) =>
|
|
1988
|
-
onMouseleave: s[0] || (s[0] = (c) =>
|
|
1989
|
-
}, null, 40,
|
|
2000
|
+
fill: i.selectedScale === t.id ? e.setOpacity(t.color, 20) : "transparent",
|
|
2001
|
+
onMouseenter: (c) => i.selectedScale = t.id,
|
|
2002
|
+
onMouseleave: s[0] || (s[0] = (c) => i.selectedScale = null)
|
|
2003
|
+
}, null, 40, Sa))), 256)) : o("", !0),
|
|
1990
2004
|
u("g", null, [
|
|
1991
|
-
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !
|
|
2005
|
+
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !i.mutableConfig.useIndividualScale ? (l(), r("text", {
|
|
1992
2006
|
key: 0,
|
|
1993
|
-
"font-size":
|
|
2007
|
+
"font-size": i.fontSizes.yAxis,
|
|
1994
2008
|
fill: e.FINAL_CONFIG.chart.grid.labels.color,
|
|
1995
|
-
transform: `translate(${
|
|
2009
|
+
transform: `translate(${i.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
1996
2010
|
"text-anchor": "middle",
|
|
1997
2011
|
style: { transition: "none" }
|
|
1998
|
-
},
|
|
2012
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, ka)) : o("", !0),
|
|
1999
2013
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (l(), r("text", {
|
|
2000
2014
|
key: 1,
|
|
2001
2015
|
"text-anchor": "middle",
|
|
2002
|
-
x:
|
|
2003
|
-
y: e.drawingArea.bottom +
|
|
2004
|
-
"font-size":
|
|
2016
|
+
x: i.width / 2,
|
|
2017
|
+
y: e.drawingArea.bottom + i.fontSizes.yAxis + i.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2018
|
+
"font-size": i.fontSizes.yAxis,
|
|
2005
2019
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2006
|
-
},
|
|
2020
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, wa)) : o("", !0)
|
|
2007
2021
|
]),
|
|
2008
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), r("g",
|
|
2009
|
-
(l(!0), r(
|
|
2022
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), r("g", Oa, [
|
|
2023
|
+
(l(!0), r(m, null, I(e.timeLabels, (t, c) => (l(), r("g", {
|
|
2010
2024
|
key: `time_label_${c}`
|
|
2011
2025
|
}, [
|
|
2012
|
-
|
|
2026
|
+
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", {
|
|
2013
2027
|
key: 0,
|
|
2014
2028
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2015
|
-
"font-size":
|
|
2029
|
+
"font-size": i.fontSizes.xAxis,
|
|
2016
2030
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2017
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * c + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom +
|
|
2018
|
-
},
|
|
2031
|
+
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})`
|
|
2032
|
+
}, S(t || ""), 9, va)) : o("", !0)
|
|
2019
2033
|
]))), 128))
|
|
2020
2034
|
])) : o("", !0),
|
|
2021
2035
|
u("g", null, [
|
|
2022
|
-
(l(!0), r(
|
|
2036
|
+
(l(!0), r(m, null, I(e.maxSeries, (t, c) => (l(), r("g", {
|
|
2023
2037
|
key: `tooltip_trap_${c}`
|
|
2024
2038
|
}, [
|
|
2025
2039
|
u("rect", {
|
|
@@ -2032,12 +2046,12 @@ function qa(i, s, h, f, t, e) {
|
|
|
2032
2046
|
onMouseenter: (n) => e.toggleTooltipVisibility(!0, c),
|
|
2033
2047
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2034
2048
|
onClick: (n) => e.selectX(c)
|
|
2035
|
-
}, null, 40,
|
|
2049
|
+
}, null, 40, Ga)
|
|
2036
2050
|
]))), 128))
|
|
2037
2051
|
]),
|
|
2038
|
-
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(
|
|
2052
|
+
e.FINAL_CONFIG.chart.timeTag.show && ![null, void 0].includes(i.selectedSerieIndex) ? (l(), r("g", pa, [
|
|
2039
2053
|
(l(), r("foreignObject", {
|
|
2040
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2054
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * i.selectedSerieIndex - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2041
2055
|
y: e.drawingArea.bottom,
|
|
2042
2056
|
width: "200",
|
|
2043
2057
|
height: "40",
|
|
@@ -2046,22 +2060,22 @@ function qa(i, s, h, f, t, e) {
|
|
|
2046
2060
|
u("div", {
|
|
2047
2061
|
class: "vue-ui-xy-time-tag",
|
|
2048
2062
|
style: A(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)
|
|
2049
|
-
},
|
|
2050
|
-
], 8,
|
|
2063
|
+
}, S(e.timeLabels[i.selectedSerieIndex] || i.selectedSerieIndex), 5)
|
|
2064
|
+
], 8, za)),
|
|
2051
2065
|
u("circle", {
|
|
2052
|
-
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2066
|
+
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * i.selectedSerieIndex + e.drawingArea.width / e.maxSeries / 2,
|
|
2053
2067
|
cy: e.drawingArea.bottom,
|
|
2054
2068
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2055
2069
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2056
|
-
}, null, 8,
|
|
2070
|
+
}, null, 8, Ma)
|
|
2057
2071
|
])) : o("", !0)
|
|
2058
2072
|
])) : o("", !0),
|
|
2059
|
-
O(
|
|
2073
|
+
O(a.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2060
2074
|
], 14, Ze)) : o("", !0),
|
|
2061
|
-
|
|
2062
|
-
O(
|
|
2075
|
+
a.$slots.watermark ? (l(), r("div", Ta, [
|
|
2076
|
+
O(a.$slots, "watermark", B(Y({ isPrinting: i.isPrinting || i.isImaging })), void 0, !0)
|
|
2063
2077
|
])) : o("", !0),
|
|
2064
|
-
e.isDataset ? o("", !0) : (l(), V(
|
|
2078
|
+
e.isDataset ? o("", !0) : (l(), V(N, {
|
|
2065
2079
|
key: 4,
|
|
2066
2080
|
config: {
|
|
2067
2081
|
type: "line",
|
|
@@ -2079,14 +2093,14 @@ function qa(i, s, h, f, t, e) {
|
|
|
2079
2093
|
}
|
|
2080
2094
|
}
|
|
2081
2095
|
}, null, 8, ["config"])),
|
|
2082
|
-
e.FINAL_CONFIG.chart.zoom.show &&
|
|
2096
|
+
e.FINAL_CONFIG.chart.zoom.show && i.maxX > 6 && e.isDataset ? (l(), V(C, {
|
|
2083
2097
|
ref: "chartSlicer",
|
|
2084
|
-
key: `slicer_${
|
|
2098
|
+
key: `slicer_${i.slicerStep}`,
|
|
2085
2099
|
background: e.FINAL_CONFIG.chart.zoom.color,
|
|
2086
2100
|
fontSize: e.FINAL_CONFIG.chart.zoom.fontSize,
|
|
2087
2101
|
useResetSlot: e.FINAL_CONFIG.chart.zoom.useResetSlot,
|
|
2088
|
-
labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
2089
|
-
labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
2102
|
+
labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[i.slicer.start],
|
|
2103
|
+
labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[i.slicer.end - 1],
|
|
2090
2104
|
textColor: e.FINAL_CONFIG.chart.color,
|
|
2091
2105
|
inputColor: e.FINAL_CONFIG.chart.zoom.color,
|
|
2092
2106
|
selectColor: e.FINAL_CONFIG.chart.zoom.highlightColor,
|
|
@@ -2097,21 +2111,21 @@ function qa(i, s, h, f, t, e) {
|
|
|
2097
2111
|
minimapSelectionRadius: e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,
|
|
2098
2112
|
minimapLineColor: e.FINAL_CONFIG.chart.zoom.minimap.lineColor,
|
|
2099
2113
|
minimapSelectedColorOpacity: e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,
|
|
2100
|
-
minimapSelectedIndex:
|
|
2114
|
+
minimapSelectedIndex: i.selectedSerieIndex,
|
|
2101
2115
|
minimapIndicatorColor: e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,
|
|
2102
|
-
max:
|
|
2116
|
+
max: i.maxX,
|
|
2103
2117
|
min: 0,
|
|
2104
|
-
valueStart:
|
|
2105
|
-
valueEnd:
|
|
2106
|
-
start:
|
|
2107
|
-
"onUpdate:start": s[2] || (s[2] = (
|
|
2108
|
-
end:
|
|
2109
|
-
"onUpdate:end": s[3] || (s[3] = (
|
|
2118
|
+
valueStart: i.slicer.start,
|
|
2119
|
+
valueEnd: i.slicer.end,
|
|
2120
|
+
start: i.slicer.start,
|
|
2121
|
+
"onUpdate:start": s[2] || (s[2] = (t) => i.slicer.start = t),
|
|
2122
|
+
end: i.slicer.end,
|
|
2123
|
+
"onUpdate:end": s[3] || (s[3] = (t) => i.slicer.end = t),
|
|
2110
2124
|
onReset: e.refreshSlicer,
|
|
2111
2125
|
onTrapMouse: e.selectMinimapIndex
|
|
2112
2126
|
}, {
|
|
2113
|
-
"reset-action":
|
|
2114
|
-
O(
|
|
2127
|
+
"reset-action": p(({ reset: t }) => [
|
|
2128
|
+
O(a.$slots, "reset-action", B(Y({ reset: t })), void 0, !0)
|
|
2115
2129
|
]),
|
|
2116
2130
|
_: 3
|
|
2117
2131
|
}, 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),
|
|
@@ -2121,12 +2135,12 @@ function qa(i, s, h, f, t, e) {
|
|
|
2121
2135
|
class: "vue-ui-xy-legend",
|
|
2122
2136
|
style: A(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2123
2137
|
}, [
|
|
2124
|
-
(l(!0), r(
|
|
2138
|
+
(l(!0), r(m, null, I(e.absoluteDataset, (t, c) => (l(), r("div", {
|
|
2125
2139
|
key: `div_legend_item_${c}`,
|
|
2126
|
-
onClick: (n) => e.segregate(
|
|
2127
|
-
class: M({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated":
|
|
2140
|
+
onClick: (n) => e.segregate(t),
|
|
2141
|
+
class: M({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": i.segregatedSeries.includes(t.id) })
|
|
2128
2142
|
}, [
|
|
2129
|
-
|
|
2143
|
+
i.icons[t.type] === "line" ? (l(), r("svg", Va, [
|
|
2130
2144
|
u("rect", {
|
|
2131
2145
|
x: "0",
|
|
2132
2146
|
y: "7",
|
|
@@ -2134,18 +2148,18 @@ function qa(i, s, h, f, t, e) {
|
|
|
2134
2148
|
stroke: "none",
|
|
2135
2149
|
height: "4",
|
|
2136
2150
|
width: "20",
|
|
2137
|
-
fill:
|
|
2138
|
-
}, null, 8,
|
|
2151
|
+
fill: t.color
|
|
2152
|
+
}, null, 8, Ra),
|
|
2139
2153
|
q(L, {
|
|
2140
2154
|
plot: { x: 10, y: 9 },
|
|
2141
2155
|
radius: 4,
|
|
2142
|
-
color:
|
|
2143
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2156
|
+
color: t.color,
|
|
2157
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle",
|
|
2144
2158
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2145
2159
|
strokeWidth: 1
|
|
2146
2160
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2147
|
-
])) : (l(), r("svg",
|
|
2148
|
-
|
|
2161
|
+
])) : (l(), r("svg", Da, [
|
|
2162
|
+
i.icons[t.type] === "bar" ? (l(), r("rect", {
|
|
2149
2163
|
key: 0,
|
|
2150
2164
|
x: "0",
|
|
2151
2165
|
y: "0",
|
|
@@ -2153,24 +2167,24 @@ function qa(i, s, h, f, t, e) {
|
|
|
2153
2167
|
height: "12",
|
|
2154
2168
|
width: "12",
|
|
2155
2169
|
stroke: "none",
|
|
2156
|
-
fill:
|
|
2157
|
-
}, null, 8,
|
|
2170
|
+
fill: t.color
|
|
2171
|
+
}, null, 8, Ha)) : (l(), V(L, {
|
|
2158
2172
|
key: 1,
|
|
2159
2173
|
plot: { x: 6, y: 6 },
|
|
2160
2174
|
radius: 5,
|
|
2161
|
-
color:
|
|
2162
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2175
|
+
color: t.color,
|
|
2176
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(t.shape) ? t.shape : "circle"
|
|
2163
2177
|
}, null, 8, ["color", "shape"]))
|
|
2164
2178
|
])),
|
|
2165
2179
|
u("span", {
|
|
2166
2180
|
style: A(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2167
|
-
},
|
|
2168
|
-
], 10,
|
|
2169
|
-
], 4)) : (l(), r("div",
|
|
2170
|
-
O(
|
|
2181
|
+
}, S(t.name), 5)
|
|
2182
|
+
], 10, Pa))), 128))
|
|
2183
|
+
], 4)) : (l(), r("div", Wa, [
|
|
2184
|
+
O(a.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2171
2185
|
], 512)),
|
|
2172
|
-
q(
|
|
2173
|
-
show:
|
|
2186
|
+
q(z, {
|
|
2187
|
+
show: i.mutableConfig.showTooltip && i.isTooltip,
|
|
2174
2188
|
backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
|
|
2175
2189
|
color: e.FINAL_CONFIG.chart.tooltip.color,
|
|
2176
2190
|
fontSize: e.FINAL_CONFIG.chart.tooltip.fontSize,
|
|
@@ -2180,15 +2194,15 @@ function qa(i, s, h, f, t, e) {
|
|
|
2180
2194
|
backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
|
|
2181
2195
|
position: e.FINAL_CONFIG.chart.tooltip.position,
|
|
2182
2196
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2183
|
-
parent:
|
|
2197
|
+
parent: a.$refs.chart,
|
|
2184
2198
|
content: e.tooltipContent,
|
|
2185
2199
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2186
2200
|
}, {
|
|
2187
|
-
"tooltip-before":
|
|
2188
|
-
O(
|
|
2201
|
+
"tooltip-before": p(() => [
|
|
2202
|
+
O(a.$slots, "tooltip-before", B(Y({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2189
2203
|
]),
|
|
2190
|
-
"tooltip-after":
|
|
2191
|
-
O(
|
|
2204
|
+
"tooltip-after": p(() => [
|
|
2205
|
+
O(a.$slots, "tooltip-after", B(Y({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2192
2206
|
]),
|
|
2193
2207
|
_: 3
|
|
2194
2208
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -2196,7 +2210,7 @@ function qa(i, s, h, f, t, e) {
|
|
|
2196
2210
|
key: 8,
|
|
2197
2211
|
hideDetails: "",
|
|
2198
2212
|
config: {
|
|
2199
|
-
open:
|
|
2213
|
+
open: i.mutableConfig.showTable,
|
|
2200
2214
|
maxHeight: 1e4,
|
|
2201
2215
|
body: {
|
|
2202
2216
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
@@ -2208,48 +2222,48 @@ function qa(i, s, h, f, t, e) {
|
|
|
2208
2222
|
}
|
|
2209
2223
|
}
|
|
2210
2224
|
}, {
|
|
2211
|
-
content:
|
|
2225
|
+
content: p(() => [
|
|
2212
2226
|
u("div", {
|
|
2213
|
-
style: A(`${
|
|
2227
|
+
style: A(`${i.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2214
2228
|
}, [
|
|
2215
|
-
u("div",
|
|
2229
|
+
u("div", Ea, [
|
|
2216
2230
|
He(u("input", {
|
|
2217
2231
|
type: "checkbox",
|
|
2218
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
2232
|
+
"onUpdate:modelValue": s[4] || (s[4] = (t) => i.showSparklineTable = t)
|
|
2219
2233
|
}, null, 512), [
|
|
2220
|
-
[We,
|
|
2234
|
+
[We, i.showSparklineTable]
|
|
2221
2235
|
]),
|
|
2222
2236
|
u("div", {
|
|
2223
|
-
onClick: s[5] || (s[5] = (
|
|
2237
|
+
onClick: s[5] || (s[5] = (t) => i.showSparklineTable = !i.showSparklineTable),
|
|
2224
2238
|
style: { cursor: "pointer" }
|
|
2225
2239
|
}, [
|
|
2226
|
-
q(
|
|
2240
|
+
q(k, {
|
|
2227
2241
|
name: "chartLine",
|
|
2228
2242
|
size: 20,
|
|
2229
2243
|
stroke: e.FINAL_CONFIG.chart.color
|
|
2230
2244
|
}, null, 8, ["stroke"])
|
|
2231
2245
|
])
|
|
2232
2246
|
]),
|
|
2233
|
-
|
|
2234
|
-
key: `sparkline_${
|
|
2247
|
+
i.showSparklineTable ? (l(), V(G, {
|
|
2248
|
+
key: `sparkline_${i.segregateStep}`,
|
|
2235
2249
|
dataset: e.tableSparklineDataset,
|
|
2236
2250
|
config: e.tableSparklineConfig
|
|
2237
2251
|
}, null, 8, ["dataset", "config"])) : (l(), V(v, {
|
|
2238
|
-
key: `table_${
|
|
2252
|
+
key: `table_${i.tableStep}`,
|
|
2239
2253
|
colNames: e.dataTable.colNames,
|
|
2240
2254
|
head: e.dataTable.head,
|
|
2241
2255
|
body: e.dataTable.body,
|
|
2242
2256
|
config: e.dataTable.config,
|
|
2243
2257
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2244
|
-
onClose: s[6] || (s[6] = (
|
|
2258
|
+
onClose: s[6] || (s[6] = (t) => i.mutableConfig.showTable = !1)
|
|
2245
2259
|
}, {
|
|
2246
|
-
th:
|
|
2247
|
-
u("div", { innerHTML:
|
|
2260
|
+
th: p(({ th: t }) => [
|
|
2261
|
+
u("div", { innerHTML: t }, null, 8, Ba)
|
|
2248
2262
|
]),
|
|
2249
|
-
td:
|
|
2250
|
-
Ee(
|
|
2263
|
+
td: p(({ td: t }) => [
|
|
2264
|
+
Ee(S(isNaN(Number(t)) ? t : e.dataLabel({
|
|
2251
2265
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2252
|
-
v:
|
|
2266
|
+
v: t,
|
|
2253
2267
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2254
2268
|
r: e.FINAL_CONFIG.table.rounding
|
|
2255
2269
|
})), 1)
|
|
@@ -2262,7 +2276,7 @@ function qa(i, s, h, f, t, e) {
|
|
|
2262
2276
|
}, 8, ["config"])) : o("", !0)
|
|
2263
2277
|
], 14, qe);
|
|
2264
2278
|
}
|
|
2265
|
-
const
|
|
2279
|
+
const si = /* @__PURE__ */ Be(Xe, [["render", Ya], ["__scopeId", "data-v-a70a56aa"]]);
|
|
2266
2280
|
export {
|
|
2267
|
-
|
|
2281
|
+
si as default
|
|
2268
2282
|
};
|