vue-data-ui 2.4.41 → 2.4.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -34
- package/dist/{Arrow-6z0ZQva_.js → Arrow-BB6bdwAh.js} +1 -1
- package/dist/{Arrow-Cht76m69.cjs → Arrow-DGDnIooM.cjs} +1 -1
- package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-Cg6tqk_d.js} +1 -1
- package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-Cj2lO-KJ.cjs} +1 -1
- package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DnaY4y8p.cjs} +1 -1
- package/dist/{DataTable-B5DiCrf_.js → DataTable-YQ5lDRtX.js} +2 -2
- package/dist/{Legend-DzxQIjDO.js → Legend-3DteuHjj.js} +1 -1
- package/dist/{Legend-BXG_XPom.cjs → Legend-BPogA3ac.cjs} +1 -1
- package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-CQ9hp4g5.cjs} +1 -1
- package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CS8EAteX.js} +1 -1
- package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-B1DxKWdn.cjs} +1 -1
- package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-D22t_fD9.js} +3 -3
- package/dist/{Shape-C3ywBhkW.js → Shape-7VxscoGH.js} +1 -1
- package/dist/{Shape-CvL90fNe.cjs → Shape-BIoU-M2b.cjs} +1 -1
- package/dist/Slicer-BcXvtaNe.js +423 -0
- package/dist/Slicer-C_1pd_Kh.cjs +1 -0
- package/dist/{Title-BB0O0yol.js → Title-DQcop8gI.js} +1 -1
- package/dist/{Title-D9gPXVTT.cjs → Title-DoxrpVfD.cjs} +1 -1
- package/dist/{Tooltip-GvLaModr.js → Tooltip-Dx07vASW.js} +33 -25
- package/dist/Tooltip-t5_yWU6c.cjs +1 -0
- package/dist/documentation/installation.md +34 -34
- package/dist/index-Ce0TFqvS.cjs +9 -0
- package/dist/{index-B6Q1Fyk0.js → index-CvhiHStv.js} +48 -42
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +6 -0
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useNestedProp-DQpuJSz3.js → useNestedProp-Ccre6tXM.js} +1 -1
- package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-Dv81zO0o.cjs} +1 -1
- package/dist/{usePrinter-D8dIU7aG.js → usePrinter-BVA2_kNp.js} +1 -1
- package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-Dq9TRqqU.cjs} +1 -1
- package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-CXGGUSE5.js} +60 -60
- package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-DBaa-Zm-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +3 -3
- package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-B0eWYShT.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-Bvyn0JAH.js} +9 -9
- package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-2oBs8M8G.cjs} +1 -1
- package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-CzsbGsxC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-8dnWY_2V.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-gy4b8534.js} +42 -41
- package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-BOxVmY-t.js} +1 -1
- package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-D4AFe-ds.cjs} +1 -1
- package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-CYRzrrdq.js} +15 -15
- package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-DS61aLmi.cjs} +1 -1
- package/dist/vue-ui-candlestick-CnMW4VI7.cjs +2 -0
- package/dist/vue-ui-candlestick-z1XCCmjs.js +740 -0
- package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-Dusdq9C-.js} +4 -4
- package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-STfjKv04.cjs} +1 -1
- package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-CiOs7_Mn.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-xOUxz__4.js} +8 -8
- package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-BAZcn7gS.js} +2 -2
- package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-CgulNaZF.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-B-e6E048.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CM5h0sJK.js} +2 -2
- package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DE-VUfnq.cjs} +1 -1
- package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DFYtiFpE.js} +2 -2
- package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-B7WCvZ9X.js} +99 -98
- package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-Dh1MEQSX.cjs} +1 -1
- package/dist/vue-ui-donut-evolution-E8YRIlka.cjs +1 -0
- package/dist/vue-ui-donut-evolution-tseD-zkG.js +908 -0
- package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-CB-nTGSr.js} +10 -10
- package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-DoajPALb.cjs} +1 -1
- package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-DZo1e2BI.cjs} +1 -1
- package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-DgM7D7Kz.js} +46 -46
- package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-Bae7zmv7.js} +19 -19
- package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-FwQya4Js.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-BmQPNy0t.cjs} +1 -1
- package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-C1hMuu_6.js} +53 -52
- package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-4Gy_NFvq.cjs} +1 -1
- package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-CvUdCkBJ.js} +7 -7
- package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-B6t4exHM.js} +3 -3
- package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-F0ACp4Ym.cjs} +1 -1
- package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-CNptUmPc.js} +60 -59
- package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-DeLrr3m8.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-DnVFjg0P.js} +60 -59
- package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-iK6KKQTl.cjs} +1 -1
- package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BIb8GWpr.js} +3 -3
- package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BOLWEQ7j.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-dzvCTPe_.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-vn8l58Co.js} +2 -2
- package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-BXVfvrYp.js} +26 -25
- package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-CztdOxnV.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-COiSqYpY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-FyUqJ_WI.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-C3mVKHnx.js} +78 -77
- package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-CyzGIcRn.cjs} +2 -2
- package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-C3uZpdTX.js} +49 -48
- package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-PCbFeTBq.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-BbyG3T_L.cjs} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-_nN05_KZ.js} +70 -69
- package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CqcqhOTk.js} +55 -54
- package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-D48AnGwm.cjs} +1 -1
- package/dist/vue-ui-quick-chart-CUG-kf3L.cjs +15 -0
- package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-CvhtEA16.js} +637 -622
- package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-CKq_4-3B.cjs} +1 -1
- package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-o4cmO82a.js} +38 -37
- package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-CuBodH3C.js} +2 -2
- package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-DG1svxO9.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-AXwyCjxM.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-C--j7Q0q.js} +19 -19
- package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-DpVKPZCb.js} +49 -48
- package/dist/vue-ui-rings-fAvuiSZU.cjs +2 -0
- package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-CHY2sxci.cjs} +1 -1
- package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-D_KsmIg_.js} +26 -25
- package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-Baj16IKL.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C21qDF26.js} +1 -1
- package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-BdbO4Bxt.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-p82n8dLi.js} +3 -3
- package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-DDBn_kg-.js} +2 -2
- package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-DGdo7pOJ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-CM-XDvvj.js} +5 -5
- package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-CyiYuOb3.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-BRWlzT5P.js} +4 -4
- package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-Bi952P46.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-BPcFMY0I.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-bhzDdT-A.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-BdiA32Fs.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-DAtbloqL.js} +5 -5
- package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-BXa0bOgm.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-CbnPVyxs.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BDupdTEm.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-BdjWWadM.js} +5 -5
- package/dist/vue-ui-stackbar-CUXctt_2.js +1026 -0
- package/dist/vue-ui-stackbar-DvIG4zyP.cjs +6 -0
- package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-C5r83jmv.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-lb-y68Hd.js} +71 -70
- package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-DFfsqpZU.js} +1 -1
- package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-DgCMMvSx.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-BiSTfmrM.js} +9 -9
- package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-jp5xDCCO.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-8itAuNdX.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-B7sNio6G.js} +5 -5
- package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-CsY6PZxF.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-Cvoq-NoB.js} +7 -7
- package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BBYru0Q7.cjs} +1 -1
- package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-CKkmEEyh.js} +9 -9
- package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CJyRAXGr.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-CVDQcr2f.js} +7 -7
- package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-BKA7MrUz.cjs} +1 -1
- package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-BLDOoQdk.js} +98 -97
- package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-BNZ-jiBi.cjs} +2 -2
- package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-DgluCuy7.js} +58 -57
- package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-COGvHmU8.cjs} +1 -1
- package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DOZ8DM_y.js} +79 -78
- package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-BiHGxIWR.js} +7 -7
- package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-DrhwR-Z-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-CEfsjt8Y.js} +10 -10
- package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-ClzpBDxZ.cjs} +1 -1
- package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-BU03SArU.js} +888 -837
- package/dist/vue-ui-xy-CO99Ia72.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-D6xrOdYB.js} +378 -365
- package/dist/vue-ui-xy-canvas-lOb9PCZm.cjs +9 -0
- package/package.json +1 -1
- package/dist/Slicer-B2aHb4bj.cjs +0 -1
- package/dist/Slicer-D9ASV60L.js +0 -400
- package/dist/Tooltip-ypQtmi99.cjs +0 -1
- package/dist/index-B5Ugkauv.cjs +0 -9
- package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
- package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
- package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
- package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
- package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
- package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
- package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
- package/dist/vue-ui-stackbar-BZbOagnf.js +0 -947
- package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U,
|
|
2
|
-
import { D as ke } from "./DataTable-
|
|
3
|
-
import { _ as we } from "./Title-
|
|
4
|
-
import { _ as Oe, u as Ge } from "./Tooltip-
|
|
5
|
-
import { U as ve } from "./usePrinter-
|
|
6
|
-
import { _ as pe } from "./Shape-
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import Te from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Ve from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as Re } from "./PackageVersion-
|
|
14
|
-
import { P as De } from "./PenAndPaper-
|
|
15
|
-
import { resolveComponent as P, openBlock as r, createElementBlock as l, normalizeClass as V, normalizeStyle as
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, L as ee, G as te, i as ae, a2 as ie, a0 as re, a3 as le, v as se, a4 as ne, d as he, B as oe, b as ce, q as de, R as ue, a5 as ge, r as fe, e as Ie, y as Ne, C as me, x as xe, a6 as be, Y as Fe, o as _e, s as Ae, w as ye, F as Le, A as Ce, u as Se } from "./index-CvhiHStv.js";
|
|
2
|
+
import { D as ke } from "./DataTable-YQ5lDRtX.js";
|
|
3
|
+
import { _ as we } from "./Title-DQcop8gI.js";
|
|
4
|
+
import { _ as Oe, u as Ge } from "./Tooltip-Dx07vASW.js";
|
|
5
|
+
import { U as ve } from "./usePrinter-BVA2_kNp.js";
|
|
6
|
+
import { _ as pe } from "./Shape-7VxscoGH.js";
|
|
7
|
+
import ze from "./BaseIcon-Cg6tqk_d.js";
|
|
8
|
+
import Me from "./vue-ui-table-sparkline-B7sNio6G.js";
|
|
9
|
+
import Te from "./vue-ui-skeleton-p82n8dLi.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-BcXvtaNe.js";
|
|
11
|
+
import Ve from "./vue-ui-accordion-CzsbGsxC.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-Ccre6tXM.js";
|
|
13
|
+
import { _ as Re } from "./PackageVersion-CS8EAteX.js";
|
|
14
|
+
import { P as De } from "./PenAndPaper-D22t_fD9.js";
|
|
15
|
+
import { resolveComponent as P, openBlock as r, createElementBlock as l, normalizeClass as V, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as M, renderSlot as w, normalizeProps as B, guardReactiveProps as E, createVNode as X, createElementVNode as f, Fragment as I, renderList as m, toDisplayString as S, withDirectives as Ee, vModelCheckbox as He, createTextVNode as We } from "vue";
|
|
16
16
|
import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Xe = J(), qe = {
|
|
18
18
|
name: "vue-ui-xy",
|
|
@@ -36,8 +36,8 @@ const Xe = J(), qe = {
|
|
|
36
36
|
Title: we,
|
|
37
37
|
Tooltip: Oe,
|
|
38
38
|
UserOptions: ve,
|
|
39
|
-
BaseIcon:
|
|
40
|
-
TableSparkline:
|
|
39
|
+
BaseIcon: ze,
|
|
40
|
+
TableSparkline: Me,
|
|
41
41
|
Skeleton: Te,
|
|
42
42
|
Slicer: Pe,
|
|
43
43
|
Accordion: Ve,
|
|
@@ -45,15 +45,15 @@ const Xe = J(), qe = {
|
|
|
45
45
|
PenAndPaper: De
|
|
46
46
|
},
|
|
47
47
|
data() {
|
|
48
|
-
this.dataset.forEach((
|
|
49
|
-
[null, void 0].includes(
|
|
48
|
+
this.dataset.forEach((u, t) => {
|
|
49
|
+
[null, void 0].includes(u.series) && this.error({
|
|
50
50
|
componentName: "VueUiXy",
|
|
51
51
|
type: "datasetSerieAttribute",
|
|
52
52
|
property: "series (number[])",
|
|
53
53
|
index: t
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
|
-
const
|
|
56
|
+
const a = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, s = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({ data: u.series, threshold: a }).length)), o = {
|
|
57
57
|
start: 0,
|
|
58
58
|
end: s
|
|
59
59
|
};
|
|
@@ -104,7 +104,7 @@ const Xe = J(), qe = {
|
|
|
104
104
|
step: 0,
|
|
105
105
|
tableStep: 0,
|
|
106
106
|
titleStep: 0,
|
|
107
|
-
slicer:
|
|
107
|
+
slicer: o,
|
|
108
108
|
__to__: null,
|
|
109
109
|
maxX: s,
|
|
110
110
|
showSparklineTable: !0,
|
|
@@ -125,9 +125,9 @@ const Xe = J(), qe = {
|
|
|
125
125
|
},
|
|
126
126
|
watch: {
|
|
127
127
|
dataset: {
|
|
128
|
-
handler(
|
|
129
|
-
this.maxX = Math.max(...this.dataset.map((
|
|
130
|
-
data:
|
|
128
|
+
handler(a, s) {
|
|
129
|
+
this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
|
|
130
|
+
data: o.series,
|
|
131
131
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
132
132
|
}).length)), this.slicer = {
|
|
133
133
|
start: 0,
|
|
@@ -137,7 +137,7 @@ const Xe = J(), qe = {
|
|
|
137
137
|
deep: !0
|
|
138
138
|
},
|
|
139
139
|
config: {
|
|
140
|
-
handler(
|
|
140
|
+
handler(a, s) {
|
|
141
141
|
this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1;
|
|
142
142
|
},
|
|
143
143
|
deep: !0
|
|
@@ -149,11 +149,11 @@ const Xe = J(), qe = {
|
|
|
149
149
|
},
|
|
150
150
|
minimap() {
|
|
151
151
|
if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
|
|
152
|
-
const
|
|
152
|
+
const a = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), s = Math.max(...a.map((t) => t.series.length)), o = [];
|
|
153
153
|
for (let t = 0; t < s; t += 1)
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
return
|
|
154
|
+
o.push(a.map((e) => e.series[t] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
|
|
155
|
+
const u = Math.min(...o);
|
|
156
|
+
return o.map((t) => t + (u < 0 ? Math.abs(u) : 0));
|
|
157
157
|
},
|
|
158
158
|
customPalette() {
|
|
159
159
|
return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
|
|
@@ -165,7 +165,7 @@ const Xe = J(), qe = {
|
|
|
165
165
|
return this.FINAL_CONFIG.chart.zoom.color;
|
|
166
166
|
},
|
|
167
167
|
allScales() {
|
|
168
|
-
const
|
|
168
|
+
const a = this.lineSet.map((t) => ({
|
|
169
169
|
name: t.name,
|
|
170
170
|
color: t.color,
|
|
171
171
|
scale: t.individualScale,
|
|
@@ -188,7 +188,7 @@ const Xe = J(), qe = {
|
|
|
188
188
|
id: t.id,
|
|
189
189
|
yOffset: t.yOffset || 0,
|
|
190
190
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
191
|
-
})),
|
|
191
|
+
})), o = this.plotSet.map((t) => ({
|
|
192
192
|
name: t.name,
|
|
193
193
|
color: t.color,
|
|
194
194
|
scale: t.individualScale,
|
|
@@ -200,8 +200,8 @@ const Xe = J(), qe = {
|
|
|
200
200
|
id: t.id,
|
|
201
201
|
yOffset: t.yOffset || 0,
|
|
202
202
|
individualHeight: t.individualHeight || this.drawingArea.height
|
|
203
|
-
})),
|
|
204
|
-
return [...
|
|
203
|
+
})), u = [...a, ...s, ...o].flatMap((t) => t).length;
|
|
204
|
+
return [...a, ...s, ...o].flatMap((t, e) => ({
|
|
205
205
|
id: t.id,
|
|
206
206
|
scaleLabel: t.scaleLabel,
|
|
207
207
|
name: t.name,
|
|
@@ -209,7 +209,7 @@ const Xe = J(), qe = {
|
|
|
209
209
|
scale: t.scale,
|
|
210
210
|
yOffset: t.yOffset,
|
|
211
211
|
individualHeight: t.individualHeight,
|
|
212
|
-
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left /
|
|
212
|
+
x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / u * (e + 1),
|
|
213
213
|
yLabels: t.scaleYLabels || t.scale.ticks.map((x) => ({
|
|
214
214
|
y: x >= 0 ? t.zero - t.individualHeight * (x / t.max) : t.zero + t.individualHeight * Math.abs(x) / t.max,
|
|
215
215
|
value: x
|
|
@@ -220,19 +220,19 @@ const Xe = J(), qe = {
|
|
|
220
220
|
return !!this.dataset && this.dataset.length;
|
|
221
221
|
},
|
|
222
222
|
chartFont() {
|
|
223
|
-
const
|
|
224
|
-
return window.getComputedStyle(
|
|
223
|
+
const a = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
|
|
224
|
+
return window.getComputedStyle(a, null).getPropertyValue("font-family");
|
|
225
225
|
},
|
|
226
226
|
FINAL_CONFIG: {
|
|
227
227
|
get: function() {
|
|
228
228
|
return this.prepareConfig();
|
|
229
229
|
},
|
|
230
|
-
set: function(
|
|
231
|
-
return
|
|
230
|
+
set: function(a) {
|
|
231
|
+
return a;
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
hasHighlightArea() {
|
|
235
|
-
return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((
|
|
235
|
+
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;
|
|
236
236
|
},
|
|
237
237
|
highlightAreas() {
|
|
238
238
|
if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
|
|
@@ -240,8 +240,8 @@ const Xe = J(), qe = {
|
|
|
240
240
|
...s,
|
|
241
241
|
span: s.from === s.to ? 1 : s.to < s.from ? 0 : s.to - s.from + 1
|
|
242
242
|
}));
|
|
243
|
-
const
|
|
244
|
-
return [{ ...
|
|
243
|
+
const a = this.FINAL_CONFIG.chart.highlightArea;
|
|
244
|
+
return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
|
|
245
245
|
},
|
|
246
246
|
xPadding() {
|
|
247
247
|
return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
|
|
@@ -253,43 +253,43 @@ const Xe = J(), qe = {
|
|
|
253
253
|
return this.niceScale.max + this.relativeZero;
|
|
254
254
|
},
|
|
255
255
|
datasetWithIds() {
|
|
256
|
-
return this.useSafeValues ? this.dataset.map((
|
|
257
|
-
...
|
|
256
|
+
return this.useSafeValues ? this.dataset.map((a, s) => ({
|
|
257
|
+
...a,
|
|
258
258
|
series: this.largestTriangleThreeBucketsArray({
|
|
259
|
-
data:
|
|
259
|
+
data: a.series,
|
|
260
260
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
261
261
|
}),
|
|
262
262
|
id: `uniqueId_${s}`
|
|
263
263
|
})) : this.dataset;
|
|
264
264
|
},
|
|
265
265
|
safeDataset() {
|
|
266
|
-
return this.useSafeValues ? this.dataset.map((
|
|
267
|
-
const
|
|
268
|
-
data:
|
|
266
|
+
return this.useSafeValues ? this.dataset.map((a, s) => {
|
|
267
|
+
const o = this.largestTriangleThreeBucketsArray({
|
|
268
|
+
data: a.series,
|
|
269
269
|
threshold: this.FINAL_CONFIG.downsample.threshold
|
|
270
270
|
});
|
|
271
271
|
return {
|
|
272
|
-
...
|
|
273
|
-
series:
|
|
274
|
-
color: this.convertColorToHex(
|
|
272
|
+
...a,
|
|
273
|
+
series: o.map((u) => this.isSafeValue(u) ? u : null).slice(this.slicer.start, this.slicer.end),
|
|
274
|
+
color: this.convertColorToHex(a.color ? a.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
|
|
275
275
|
id: `uniqueId_${s}`
|
|
276
276
|
};
|
|
277
277
|
}) : this.dataset;
|
|
278
278
|
},
|
|
279
279
|
relativeDataset() {
|
|
280
|
-
return this.safeDataset.map((
|
|
281
|
-
...
|
|
282
|
-
series:
|
|
283
|
-
absoluteValues:
|
|
284
|
-
})).filter((
|
|
280
|
+
return this.safeDataset.map((a, s) => ({
|
|
281
|
+
...a,
|
|
282
|
+
series: a.series.map((o) => o + this.relativeZero),
|
|
283
|
+
absoluteValues: a.series
|
|
284
|
+
})).filter((a) => !this.segregatedSeries.includes(a.id));
|
|
285
285
|
},
|
|
286
286
|
tableSparklineDataset() {
|
|
287
|
-
return this.relativeDataset.map((
|
|
288
|
-
const s =
|
|
287
|
+
return this.relativeDataset.map((a) => {
|
|
288
|
+
const s = a.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
|
|
289
289
|
return {
|
|
290
|
-
id:
|
|
291
|
-
name:
|
|
292
|
-
color:
|
|
290
|
+
id: a.id,
|
|
291
|
+
name: a.name,
|
|
292
|
+
color: a.color,
|
|
293
293
|
values: this.fillArray(this.maxSeries, s)
|
|
294
294
|
};
|
|
295
295
|
});
|
|
@@ -321,75 +321,75 @@ const Xe = J(), qe = {
|
|
|
321
321
|
};
|
|
322
322
|
},
|
|
323
323
|
absoluteDataset() {
|
|
324
|
-
return this.safeDataset.map((
|
|
324
|
+
return this.safeDataset.map((a, s) => ({
|
|
325
325
|
absoluteIndex: s,
|
|
326
|
-
...
|
|
327
|
-
series:
|
|
328
|
-
absoluteValues:
|
|
329
|
-
segregate: () => this.segregate(
|
|
330
|
-
isSegregated: this.segregatedSeries.includes(
|
|
326
|
+
...a,
|
|
327
|
+
series: a.series.map((o) => o + this.relativeZero),
|
|
328
|
+
absoluteValues: a.series,
|
|
329
|
+
segregate: () => this.segregate(a),
|
|
330
|
+
isSegregated: this.segregatedSeries.includes(a.id)
|
|
331
331
|
}));
|
|
332
332
|
},
|
|
333
333
|
barSet() {
|
|
334
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
335
|
-
this.checkAutoScaleError(
|
|
336
|
-
const
|
|
337
|
-
ratios:
|
|
338
|
-
valueMin:
|
|
339
|
-
valueMax:
|
|
334
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "bar").map((a, s) => {
|
|
335
|
+
this.checkAutoScaleError(a);
|
|
336
|
+
const o = Math.min(...a.absoluteValues.filter((g) => ![null, void 0].includes(g))), u = Math.max(...a.absoluteValues.filter((g) => ![null, void 0].includes(g))), e = {
|
|
337
|
+
ratios: a.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - o) / (u - o)),
|
|
338
|
+
valueMin: o,
|
|
339
|
+
valueMax: u < 0 ? 0 : u
|
|
340
340
|
}, x = {
|
|
341
|
-
max:
|
|
342
|
-
min:
|
|
343
|
-
},
|
|
344
|
-
const
|
|
341
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
342
|
+
min: a.scaleMin || Math.min(...a.absoluteValues.filter((g) => ![void 0, null].includes(g))) > 0 ? 0 : Math.min(...a.absoluteValues.filter((g) => ![null, void 0].includes(g)))
|
|
343
|
+
}, A = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * k : x.max, A), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * k : e.valueMax, A), T = N.min >= 0 ? 0 : Math.abs(N.min), v = 0, p = N.max + T, O = b.max + Math.abs(v), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, z = this.drawingArea.bottom - _ - C * T / p, i = this.drawingArea.bottom - _ - C * v / O, h = this.absoluteDataset.filter((g) => g.type === "bar").filter((g) => !this.segregatedSeries.includes(g.id)).length, n = a.series.map((g, F) => {
|
|
344
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[F] + T) / p : this.ratioToMax(g), Y = 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 * h - this.barSlot / 2 - s * this.barPeriodGap;
|
|
345
345
|
return {
|
|
346
346
|
yOffset: this.checkNaN(_),
|
|
347
|
-
individualHeight: this.checkNaN(
|
|
347
|
+
individualHeight: this.checkNaN(C),
|
|
348
348
|
x: this.checkNaN(Y),
|
|
349
|
-
y: this.drawingArea.bottom - _ -
|
|
350
|
-
value:
|
|
351
|
-
zeroPosition: this.checkNaN(
|
|
349
|
+
y: this.drawingArea.bottom - _ - C * W,
|
|
350
|
+
value: a.absoluteValues[F],
|
|
351
|
+
zeroPosition: this.checkNaN(z),
|
|
352
352
|
individualMax: this.checkNaN(p),
|
|
353
|
-
comment:
|
|
353
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
354
354
|
};
|
|
355
|
-
}), d =
|
|
356
|
-
const
|
|
355
|
+
}), d = a.absoluteValues.map((g) => b.min >= 0 ? (g - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (g + Math.abs(b.min)) / (b.max + Math.abs(b.min))), H = a.series.map((g, F) => {
|
|
356
|
+
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((Y) => Y.type === "bar").filter((Y) => !this.segregatedSeries.includes(Y.id)).length;
|
|
357
357
|
return {
|
|
358
358
|
yOffset: this.checkNaN(_),
|
|
359
|
-
individualHeight: this.checkNaN(
|
|
360
|
-
x: this.checkNaN(
|
|
361
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(
|
|
362
|
-
value:
|
|
363
|
-
zeroPosition: this.checkNaN(
|
|
359
|
+
individualHeight: this.checkNaN(C),
|
|
360
|
+
x: this.checkNaN(W),
|
|
361
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[F] || 0)),
|
|
362
|
+
value: a.absoluteValues[F],
|
|
363
|
+
zeroPosition: this.checkNaN(z),
|
|
364
364
|
individualMax: this.checkNaN(p),
|
|
365
|
-
comment:
|
|
365
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
366
366
|
};
|
|
367
|
-
}),
|
|
368
|
-
y:
|
|
369
|
-
value:
|
|
370
|
-
prefix:
|
|
371
|
-
suffix:
|
|
372
|
-
datapoint:
|
|
373
|
-
})), G = b.ticks.map((
|
|
374
|
-
const F = (
|
|
367
|
+
}), y = N.ticks.map((g) => ({
|
|
368
|
+
y: g >= 0 ? z - C * (g / p) : z + C * Math.abs(g) / p,
|
|
369
|
+
value: g,
|
|
370
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
371
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
372
|
+
datapoint: a
|
|
373
|
+
})), G = b.ticks.map((g) => {
|
|
374
|
+
const F = (g - b.min) / (b.max - b.min);
|
|
375
375
|
return {
|
|
376
|
-
y:
|
|
377
|
-
value:
|
|
378
|
-
prefix:
|
|
379
|
-
suffix:
|
|
380
|
-
datapoint:
|
|
376
|
+
y: g >= 0 ? i - C * F : i + C * F,
|
|
377
|
+
value: g,
|
|
378
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
379
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
380
|
+
datapoint: a
|
|
381
381
|
};
|
|
382
382
|
});
|
|
383
383
|
return {
|
|
384
|
-
...
|
|
384
|
+
...a,
|
|
385
385
|
yOffset: _,
|
|
386
386
|
autoScaleYLabels: G,
|
|
387
|
-
individualHeight:
|
|
388
|
-
scaleYLabels:
|
|
389
|
-
individualScale:
|
|
390
|
-
individualMax:
|
|
391
|
-
zeroPosition:
|
|
392
|
-
plots:
|
|
387
|
+
individualHeight: C,
|
|
388
|
+
scaleYLabels: a.autoScaling ? G : y,
|
|
389
|
+
individualScale: a.autoScaling ? b : N,
|
|
390
|
+
individualMax: a.autoScaling ? O : p,
|
|
391
|
+
zeroPosition: a.autoScaling ? i : z,
|
|
392
|
+
plots: a.autoScaling ? H : n
|
|
393
393
|
};
|
|
394
394
|
});
|
|
395
395
|
},
|
|
@@ -397,138 +397,138 @@ const Xe = J(), qe = {
|
|
|
397
397
|
return this.absoluteDataset.length;
|
|
398
398
|
},
|
|
399
399
|
activeSeriesWithStackRatios() {
|
|
400
|
-
return this.assignStackRatios(this.absoluteDataset.filter((
|
|
400
|
+
return this.assignStackRatios(this.absoluteDataset.filter((a) => !this.segregatedSeries.includes(a.id)));
|
|
401
401
|
},
|
|
402
402
|
lineSet() {
|
|
403
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
404
|
-
this.checkAutoScaleError(
|
|
405
|
-
const s = Math.min(...
|
|
406
|
-
ratios:
|
|
403
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "line").map((a) => {
|
|
404
|
+
this.checkAutoScaleError(a);
|
|
405
|
+
const s = Math.min(...a.absoluteValues.filter((g) => ![void 0, null].includes(g))), o = Math.max(...a.absoluteValues.filter((g) => ![void 0, null].includes(g))) || 1, t = {
|
|
406
|
+
ratios: a.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - s) / (o - s)),
|
|
407
407
|
valueMin: s,
|
|
408
|
-
valueMax:
|
|
408
|
+
valueMax: o
|
|
409
409
|
}, e = {
|
|
410
|
-
max:
|
|
411
|
-
min:
|
|
412
|
-
}, x =
|
|
413
|
-
const
|
|
410
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
411
|
+
min: a.scaleMin || (Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues))
|
|
412
|
+
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + Math.abs(b), p = N.max + Math.abs(T), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, z = this.drawingArea.bottom - O - _ * T / p, i = a.series.map((g, F) => {
|
|
413
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[F] + Math.abs(b)) / v : this.ratioToMax(g);
|
|
414
414
|
return {
|
|
415
415
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
416
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
417
|
-
value:
|
|
418
|
-
comment:
|
|
416
|
+
y: this.checkNaN(this.drawingArea.bottom - O - _ * W),
|
|
417
|
+
value: a.absoluteValues[F],
|
|
418
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
419
419
|
};
|
|
420
|
-
}),
|
|
420
|
+
}), h = a.absoluteValues.map((g) => N.min >= 0 ? (g - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (g + Math.abs(N.min)) / (N.max + Math.abs(N.min))), n = a.series.map((g, F) => [void 0, null].includes(a.absoluteValues[F]) ? {
|
|
421
421
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
422
|
-
y:
|
|
423
|
-
value:
|
|
424
|
-
comment:
|
|
422
|
+
y: C,
|
|
423
|
+
value: a.absoluteValues[F],
|
|
424
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
425
425
|
} : {
|
|
426
426
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
|
|
427
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
428
|
-
value:
|
|
429
|
-
comment:
|
|
430
|
-
}), d = this.createSmoothPath(
|
|
431
|
-
y:
|
|
432
|
-
value:
|
|
433
|
-
prefix:
|
|
434
|
-
suffix:
|
|
435
|
-
datapoint:
|
|
436
|
-
})), G =
|
|
437
|
-
const F = (
|
|
427
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[F] || 0)),
|
|
428
|
+
value: a.absoluteValues[F],
|
|
429
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
|
|
430
|
+
}), d = this.createSmoothPath(i), H = this.createSmoothPath(n), y = k.ticks.map((g) => ({
|
|
431
|
+
y: g >= 0 ? C - _ * (g / v) : C + _ * Math.abs(g) / v,
|
|
432
|
+
value: g,
|
|
433
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
434
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
435
|
+
datapoint: a
|
|
436
|
+
})), G = N.ticks.map((g) => {
|
|
437
|
+
const F = (g - N.min) / (N.max - N.min);
|
|
438
438
|
return {
|
|
439
|
-
y:
|
|
440
|
-
value:
|
|
441
|
-
prefix:
|
|
442
|
-
suffix:
|
|
443
|
-
datapoint:
|
|
439
|
+
y: g >= 0 ? z - _ * F : z + _ * F,
|
|
440
|
+
value: g,
|
|
441
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
442
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
443
|
+
datapoint: a
|
|
444
444
|
};
|
|
445
445
|
});
|
|
446
446
|
return {
|
|
447
|
-
...
|
|
448
|
-
yOffset:
|
|
447
|
+
...a,
|
|
448
|
+
yOffset: O,
|
|
449
449
|
autoScaleYLabels: G,
|
|
450
450
|
individualHeight: _,
|
|
451
|
-
scaleYLabels:
|
|
452
|
-
individualScale:
|
|
453
|
-
individualMax:
|
|
454
|
-
zeroPosition:
|
|
455
|
-
curve:
|
|
456
|
-
plots:
|
|
457
|
-
area:
|
|
451
|
+
scaleYLabels: a.autoScaling ? G : y,
|
|
452
|
+
individualScale: a.autoScaling ? N : k,
|
|
453
|
+
individualMax: a.autoScaling ? p : v,
|
|
454
|
+
zeroPosition: a.autoScaling ? z : C,
|
|
455
|
+
curve: a.autoScaling ? H : d,
|
|
456
|
+
plots: a.autoScaling ? n : i,
|
|
457
|
+
area: a.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(a.autoScaling ? n : i, a.autoScaling ? z : C) : this.createArea(i) : ""
|
|
458
458
|
};
|
|
459
459
|
});
|
|
460
460
|
},
|
|
461
461
|
plotSet() {
|
|
462
|
-
return this.activeSeriesWithStackRatios.filter((
|
|
463
|
-
this.checkAutoScaleError(
|
|
464
|
-
const s = Math.min(...
|
|
465
|
-
ratios:
|
|
462
|
+
return this.activeSeriesWithStackRatios.filter((a) => a.type === "plot").map((a) => {
|
|
463
|
+
this.checkAutoScaleError(a);
|
|
464
|
+
const s = Math.min(...a.absoluteValues.filter((y) => ![null, void 0].includes(y))), o = Math.max(...a.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, t = {
|
|
465
|
+
ratios: a.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (o - s)),
|
|
466
466
|
valueMin: s,
|
|
467
|
-
valueMax:
|
|
467
|
+
valueMax: o
|
|
468
468
|
}, e = {
|
|
469
|
-
max:
|
|
470
|
-
min:
|
|
471
|
-
}, x =
|
|
472
|
-
const
|
|
469
|
+
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
470
|
+
min: a.scaleMin || Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues)
|
|
471
|
+
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + b, p = N.max + Math.abs(T), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, z = this.drawingArea.bottom - O - _ * T / p, i = a.series.map((y, G) => {
|
|
472
|
+
const g = this.mutableConfig.useIndividualScale ? (a.absoluteValues[G] + Math.abs(b)) / v : this.ratioToMax(y);
|
|
473
473
|
return {
|
|
474
474
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
|
|
475
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
476
|
-
value:
|
|
477
|
-
comment:
|
|
475
|
+
y: this.checkNaN(this.drawingArea.bottom - O - _ * g),
|
|
476
|
+
value: a.absoluteValues[G],
|
|
477
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
|
|
478
478
|
};
|
|
479
|
-
}),
|
|
479
|
+
}), h = 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))), n = a.series.map((y, G) => ({
|
|
480
480
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
|
|
481
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
482
|
-
value:
|
|
483
|
-
comment:
|
|
484
|
-
})), d = k.ticks.map((
|
|
485
|
-
y:
|
|
486
|
-
value:
|
|
487
|
-
prefix:
|
|
488
|
-
suffix:
|
|
489
|
-
datapoint:
|
|
490
|
-
})),
|
|
491
|
-
const G = (
|
|
481
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[G] || 0)),
|
|
482
|
+
value: a.absoluteValues[G],
|
|
483
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
|
|
484
|
+
})), d = k.ticks.map((y) => ({
|
|
485
|
+
y: y >= 0 ? C - _ * (y / v) : C + _ * Math.abs(y) / v,
|
|
486
|
+
value: y,
|
|
487
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
488
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
489
|
+
datapoint: a
|
|
490
|
+
})), H = N.ticks.map((y) => {
|
|
491
|
+
const G = (y - N.min) / (N.max - N.min);
|
|
492
492
|
return {
|
|
493
|
-
y:
|
|
494
|
-
value:
|
|
495
|
-
prefix:
|
|
496
|
-
suffix:
|
|
497
|
-
datapoint:
|
|
493
|
+
y: y >= 0 ? z - _ * G : z + _ * G,
|
|
494
|
+
value: y,
|
|
495
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
496
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
497
|
+
datapoint: a
|
|
498
498
|
};
|
|
499
499
|
});
|
|
500
500
|
return {
|
|
501
|
-
...
|
|
502
|
-
yOffset:
|
|
503
|
-
autoScaleYLabels:
|
|
501
|
+
...a,
|
|
502
|
+
yOffset: O,
|
|
503
|
+
autoScaleYLabels: H,
|
|
504
504
|
individualHeight: _,
|
|
505
|
-
scaleYLabels:
|
|
506
|
-
individualScale:
|
|
507
|
-
individualMax:
|
|
508
|
-
zeroPosition:
|
|
509
|
-
plots:
|
|
505
|
+
scaleYLabels: a.autoScaling ? H : d,
|
|
506
|
+
individualScale: a.autoScaling ? N : k,
|
|
507
|
+
individualMax: a.autoScaling ? p : v,
|
|
508
|
+
zeroPosition: a.autoScaling ? z : C,
|
|
509
|
+
plots: a.autoScaling ? n : i
|
|
510
510
|
};
|
|
511
511
|
});
|
|
512
512
|
},
|
|
513
513
|
drawingArea() {
|
|
514
|
-
const
|
|
514
|
+
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;
|
|
515
515
|
return {
|
|
516
516
|
top: this.FINAL_CONFIG.chart.padding.top,
|
|
517
517
|
right: this.width - this.FINAL_CONFIG.chart.padding.right,
|
|
518
518
|
bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
|
|
519
|
-
left: this.FINAL_CONFIG.chart.padding.left +
|
|
519
|
+
left: this.FINAL_CONFIG.chart.padding.left + a,
|
|
520
520
|
height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
|
|
521
|
-
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left +
|
|
521
|
+
width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + a)
|
|
522
522
|
};
|
|
523
523
|
},
|
|
524
524
|
max() {
|
|
525
|
-
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((
|
|
525
|
+
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)));
|
|
526
526
|
},
|
|
527
527
|
min() {
|
|
528
528
|
if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
|
|
529
529
|
return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
|
|
530
|
-
const
|
|
531
|
-
return
|
|
530
|
+
const a = Math.min(...this.safeDataset.filter((s) => !this.segregatedSeries.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
531
|
+
return a > 0 ? 0 : a;
|
|
532
532
|
},
|
|
533
533
|
niceScale() {
|
|
534
534
|
return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
|
|
@@ -537,64 +537,70 @@ const Xe = J(), qe = {
|
|
|
537
537
|
return this.slicer.end - this.slicer.start;
|
|
538
538
|
},
|
|
539
539
|
timeLabels() {
|
|
540
|
-
|
|
540
|
+
const a = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), s = [];
|
|
541
|
+
for (let o = 0; o < a; o += 1)
|
|
542
|
+
s.push({
|
|
543
|
+
text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
|
|
544
|
+
absoluteIndex: o
|
|
545
|
+
});
|
|
546
|
+
return s.slice(this.slicer.start, this.slicer.end);
|
|
541
547
|
},
|
|
542
548
|
slot() {
|
|
543
549
|
return {
|
|
544
|
-
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((
|
|
550
|
+
bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((a) => a.type === "bar").filter((a) => !this.segregatedSeries.includes(a.id)).length,
|
|
545
551
|
plot: this.drawingArea.width / this.maxSeries,
|
|
546
552
|
line: this.drawingArea.width / this.maxSeries
|
|
547
553
|
};
|
|
548
554
|
},
|
|
549
555
|
barSlot() {
|
|
550
|
-
const
|
|
551
|
-
return this.drawingArea.width / this.maxSeries /
|
|
556
|
+
const a = this.safeDataset.filter((s) => s.type === "bar").filter((s) => !this.segregatedSeries.includes(s.id)).length;
|
|
557
|
+
return this.drawingArea.width / this.maxSeries / a - this.barPeriodGap * a;
|
|
552
558
|
},
|
|
553
559
|
barPeriodGap() {
|
|
554
560
|
return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
|
|
555
561
|
},
|
|
556
562
|
maxSlot() {
|
|
557
|
-
return Math.max(...Object.values(this.slot).filter((
|
|
563
|
+
return Math.max(...Object.values(this.slot).filter((a) => a !== 1 / 0));
|
|
558
564
|
},
|
|
559
565
|
table() {
|
|
560
566
|
if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
561
|
-
const
|
|
562
|
-
label:
|
|
563
|
-
color:
|
|
564
|
-
type:
|
|
567
|
+
const a = this.relativeDataset.map((o) => ({
|
|
568
|
+
label: o.name,
|
|
569
|
+
color: o.color,
|
|
570
|
+
type: o.type
|
|
565
571
|
})), s = [];
|
|
566
|
-
return this.timeLabels.forEach((
|
|
567
|
-
const t = [
|
|
572
|
+
return this.timeLabels.forEach((o, u) => {
|
|
573
|
+
const t = [o.text];
|
|
568
574
|
this.relativeDataset.forEach((e) => {
|
|
569
|
-
t.push(this.canShowValue(e.absoluteValues[
|
|
575
|
+
t.push(this.canShowValue(e.absoluteValues[u]) ? Number(e.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
|
|
570
576
|
}), s.push(t);
|
|
571
|
-
}), { head:
|
|
577
|
+
}), { head: a, body: s };
|
|
572
578
|
},
|
|
573
579
|
dataTable() {
|
|
574
|
-
const
|
|
580
|
+
const a = this.FINAL_CONFIG.table.showSum;
|
|
575
581
|
let s = [""].concat(this.relativeDataset.map((e) => e.name));
|
|
576
|
-
|
|
577
|
-
let
|
|
582
|
+
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>'));
|
|
583
|
+
let o = [];
|
|
578
584
|
for (let e = 0; e < this.maxSeries; e += 1) {
|
|
579
|
-
const x = this.relativeDataset.map((
|
|
580
|
-
|
|
585
|
+
const x = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, k) => A + k, 0);
|
|
586
|
+
o.push(
|
|
581
587
|
[
|
|
582
|
-
this.timeLabels[e] ?? "-"
|
|
588
|
+
this.timeLabels[e].text ?? "-"
|
|
583
589
|
].concat(this.relativeDataset.map(
|
|
584
|
-
(
|
|
585
|
-
|
|
586
|
-
|
|
590
|
+
(A) => this.applyDataLabel(
|
|
591
|
+
A.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : A.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
592
|
+
A.absoluteValues[e] ?? 0,
|
|
587
593
|
this.dataLabel({
|
|
588
|
-
p:
|
|
589
|
-
v:
|
|
590
|
-
s:
|
|
594
|
+
p: A.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
595
|
+
v: A.absoluteValues[e] ?? 0,
|
|
596
|
+
s: A.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
591
597
|
r: this.FINAL_CONFIG.table.rounding
|
|
592
598
|
})
|
|
593
599
|
)
|
|
594
|
-
)).concat(
|
|
600
|
+
)).concat(a ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
|
|
595
601
|
);
|
|
596
602
|
}
|
|
597
|
-
const
|
|
603
|
+
const u = {
|
|
598
604
|
th: {
|
|
599
605
|
backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
|
|
600
606
|
color: this.FINAL_CONFIG.table.th.color,
|
|
@@ -607,7 +613,7 @@ const Xe = J(), qe = {
|
|
|
607
613
|
},
|
|
608
614
|
breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
|
|
609
615
|
}, t = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
|
|
610
|
-
return { head: s, body:
|
|
616
|
+
return { head: s, body: o, config: u, colNames: t };
|
|
611
617
|
},
|
|
612
618
|
dataTooltipSlot() {
|
|
613
619
|
return {
|
|
@@ -621,21 +627,21 @@ const Xe = J(), qe = {
|
|
|
621
627
|
};
|
|
622
628
|
},
|
|
623
629
|
selectedSeries() {
|
|
624
|
-
return this.relativeDataset.map((
|
|
625
|
-
shape:
|
|
626
|
-
name:
|
|
627
|
-
color:
|
|
628
|
-
type:
|
|
629
|
-
value:
|
|
630
|
-
comments:
|
|
631
|
-
prefix:
|
|
632
|
-
suffix:
|
|
630
|
+
return this.relativeDataset.map((a) => ({
|
|
631
|
+
shape: a.shape || null,
|
|
632
|
+
name: a.name,
|
|
633
|
+
color: a.color,
|
|
634
|
+
type: a.type,
|
|
635
|
+
value: a.absoluteValues.find((s, o) => o === this.selectedSerieIndex),
|
|
636
|
+
comments: a.comments || [],
|
|
637
|
+
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
638
|
+
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
633
639
|
}));
|
|
634
640
|
},
|
|
635
641
|
tooltipContent() {
|
|
636
|
-
let
|
|
637
|
-
const
|
|
638
|
-
return this.isFunction(
|
|
642
|
+
let a = "", s = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
|
|
643
|
+
const o = this.timeLabels[this.selectedSerieIndex], u = this.FINAL_CONFIG.chart.tooltip.customFormat;
|
|
644
|
+
return this.isFunction(u) && this.functionReturnsString(() => u({
|
|
639
645
|
seriesIndex: this.selectedSerieIndex,
|
|
640
646
|
datapoint: this.selectedSeries,
|
|
641
647
|
series: this.absoluteDataset,
|
|
@@ -643,7 +649,7 @@ const Xe = J(), qe = {
|
|
|
643
649
|
lines: this.lineSet,
|
|
644
650
|
plots: this.plotSet,
|
|
645
651
|
config: this.FINAL_CONFIG
|
|
646
|
-
})) ?
|
|
652
|
+
})) ? u({
|
|
647
653
|
seriesIndex: this.selectedSerieIndex,
|
|
648
654
|
datapoint: this.selectedSeries,
|
|
649
655
|
series: this.absoluteDataset,
|
|
@@ -651,7 +657,7 @@ const Xe = J(), qe = {
|
|
|
651
657
|
lines: this.lineSet,
|
|
652
658
|
plots: this.plotSet,
|
|
653
659
|
config: this.FINAL_CONFIG
|
|
654
|
-
}) : (
|
|
660
|
+
}) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`), this.selectedSeries.forEach((t) => {
|
|
655
661
|
if (this.isSafeValue(t.value)) {
|
|
656
662
|
let e = "", x = "";
|
|
657
663
|
switch (this.icons[t.type]) {
|
|
@@ -691,7 +697,7 @@ const Xe = J(), qe = {
|
|
|
691
697
|
break;
|
|
692
698
|
}
|
|
693
699
|
}
|
|
694
|
-
|
|
700
|
+
a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${t.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue ? this.applyDataLabel(
|
|
695
701
|
t.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : t.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
|
|
696
702
|
t.value,
|
|
697
703
|
this.dataLabel({
|
|
@@ -705,9 +711,9 @@ const Xe = J(), qe = {
|
|
|
705
711
|
v: this.checkNaN(Math.abs(t.value) / s * 100),
|
|
706
712
|
s: "%",
|
|
707
713
|
r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
|
|
708
|
-
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (
|
|
714
|
+
})})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex]}</div>`);
|
|
709
715
|
}
|
|
710
|
-
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${
|
|
716
|
+
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${a}</div>`);
|
|
711
717
|
},
|
|
712
718
|
svg() {
|
|
713
719
|
return {
|
|
@@ -716,9 +722,9 @@ const Xe = J(), qe = {
|
|
|
716
722
|
};
|
|
717
723
|
},
|
|
718
724
|
yLabels() {
|
|
719
|
-
return this.niceScale.ticks.map((
|
|
720
|
-
y:
|
|
721
|
-
value:
|
|
725
|
+
return this.niceScale.ticks.map((a) => ({
|
|
726
|
+
y: a >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(a) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(a)),
|
|
727
|
+
value: a,
|
|
722
728
|
prefix: this.FINAL_CONFIG.chart.labels.prefix,
|
|
723
729
|
suffix: this.FINAL_CONFIG.chart.labels.suffix
|
|
724
730
|
}));
|
|
@@ -728,62 +734,79 @@ const Xe = J(), qe = {
|
|
|
728
734
|
}
|
|
729
735
|
},
|
|
730
736
|
mounted() {
|
|
731
|
-
this.prepareChart(), document.addEventListener("mousemove", (
|
|
737
|
+
this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (a) => {
|
|
732
738
|
this.clientPosition = {
|
|
733
|
-
x:
|
|
734
|
-
y:
|
|
739
|
+
x: a.clientX,
|
|
740
|
+
y: a.clientY
|
|
735
741
|
};
|
|
736
742
|
});
|
|
737
743
|
},
|
|
738
744
|
methods: {
|
|
739
745
|
abbreviate: ee,
|
|
740
746
|
adaptColorToBackground: te,
|
|
741
|
-
applyDataLabel:
|
|
742
|
-
assignStackRatios:
|
|
747
|
+
applyDataLabel: ae,
|
|
748
|
+
assignStackRatios: ie,
|
|
743
749
|
calcLinearProgression: re,
|
|
744
750
|
calculateNiceScaleWithExactExtremes: le,
|
|
745
751
|
checkNaN: se,
|
|
746
752
|
closestDecimal: ne,
|
|
747
|
-
convertColorToHex:
|
|
748
|
-
convertConfigColors:
|
|
749
|
-
convertCustomPalette:
|
|
753
|
+
convertColorToHex: he,
|
|
754
|
+
convertConfigColors: oe,
|
|
755
|
+
convertCustomPalette: ce,
|
|
750
756
|
createCsvContent: de,
|
|
751
757
|
createSmoothPath: ue,
|
|
752
758
|
createTSpans: ge,
|
|
753
759
|
dataLabel: U,
|
|
754
760
|
downloadCsv: fe,
|
|
755
|
-
error:
|
|
756
|
-
functionReturnsString:
|
|
757
|
-
hasDeepProperty:
|
|
761
|
+
error: Ie,
|
|
762
|
+
functionReturnsString: Ne,
|
|
763
|
+
hasDeepProperty: me,
|
|
758
764
|
isFunction: xe,
|
|
759
765
|
isSafeValue: be,
|
|
760
766
|
largestTriangleThreeBucketsArray: Fe,
|
|
761
767
|
objectIsEmpty: _e,
|
|
762
|
-
setOpacity:
|
|
763
|
-
shiftHue:
|
|
764
|
-
translateSize:
|
|
765
|
-
treeShake:
|
|
768
|
+
setOpacity: Ae,
|
|
769
|
+
shiftHue: ye,
|
|
770
|
+
translateSize: Le,
|
|
771
|
+
treeShake: Ce,
|
|
766
772
|
useMouse: Ge,
|
|
767
773
|
useNestedProp: Z,
|
|
768
774
|
toggleAnnotator() {
|
|
769
775
|
this.isAnnotator = !this.isAnnotator;
|
|
770
776
|
},
|
|
771
|
-
|
|
772
|
-
const
|
|
777
|
+
selectTimeLabel(a, s) {
|
|
778
|
+
const o = this.relativeDataset.map((u) => ({
|
|
779
|
+
shape: u.shape || null,
|
|
780
|
+
name: u.name,
|
|
781
|
+
color: u.color,
|
|
782
|
+
type: u.type,
|
|
783
|
+
value: u.absoluteValues.find((t, e) => e === s),
|
|
784
|
+
comments: u.comments || [],
|
|
785
|
+
prefix: u.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
786
|
+
suffix: u.suffix || this.FINAL_CONFIG.chart.labels.suffix
|
|
787
|
+
}));
|
|
788
|
+
this.$emit("selectTimeLabel", {
|
|
789
|
+
datapoint: o,
|
|
790
|
+
absoluteIndex: a.absoluteIndex,
|
|
791
|
+
label: a.text
|
|
792
|
+
});
|
|
793
|
+
},
|
|
794
|
+
getHighlightAreaPosition(a) {
|
|
795
|
+
const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (a.from - this.slicer.start), o = 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;
|
|
773
796
|
return {
|
|
774
797
|
x: s < this.drawingArea.left ? this.drawingArea.left : s,
|
|
775
|
-
width:
|
|
798
|
+
width: o
|
|
776
799
|
};
|
|
777
800
|
},
|
|
778
801
|
prepareConfig() {
|
|
779
|
-
const
|
|
802
|
+
const a = Se().vue_ui_xy;
|
|
780
803
|
if (!Object.keys(this.config || {}).length)
|
|
781
|
-
return
|
|
804
|
+
return a;
|
|
782
805
|
const s = this.useNestedProp({
|
|
783
806
|
userConfig: this.config,
|
|
784
|
-
defaultConfig:
|
|
807
|
+
defaultConfig: a
|
|
785
808
|
});
|
|
786
|
-
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 ? {
|
|
809
|
+
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, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? s.chart.zoom.startIndex = this.config.chart.zoom.startIndex : s.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? s.chart.zoom.endIndex = this.config.chart.zoom.endIndex : s.chart.zoom.endIndex = null, s.theme ? {
|
|
787
810
|
...Z({
|
|
788
811
|
userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
|
|
789
812
|
defaultConfig: s
|
|
@@ -795,17 +818,17 @@ const Xe = J(), qe = {
|
|
|
795
818
|
if (this.objectIsEmpty(this.dataset) ? this.error({
|
|
796
819
|
componentName: "VueUiXy",
|
|
797
820
|
type: "dataset"
|
|
798
|
-
}) : this.dataset.forEach((
|
|
799
|
-
[null, void 0].includes(
|
|
821
|
+
}) : this.dataset.forEach((a, s) => {
|
|
822
|
+
[null, void 0].includes(a.name) && this.error({
|
|
800
823
|
componentName: "VueUiXy",
|
|
801
824
|
type: "datasetSerieAttribute",
|
|
802
825
|
property: "name (string)",
|
|
803
826
|
index: s
|
|
804
827
|
});
|
|
805
|
-
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((
|
|
806
|
-
|
|
828
|
+
}), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((a) => {
|
|
829
|
+
a.series.forEach((s, o) => {
|
|
807
830
|
this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
808
|
-
-----> The serie '${
|
|
831
|
+
-----> The serie '${a.name}' contains the value '${s}' at index ${o}.
|
|
809
832
|
'${s}' was converted to null to allow the chart to display.`);
|
|
810
833
|
});
|
|
811
834
|
}), this.mutableConfig = {
|
|
@@ -817,25 +840,25 @@ const Xe = J(), qe = {
|
|
|
817
840
|
isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
|
|
818
841
|
useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
|
|
819
842
|
}, this.FINAL_CONFIG.responsive) {
|
|
820
|
-
const s = this.$refs.chart.parentNode, { height:
|
|
843
|
+
const s = this.$refs.chart.parentNode, { height: o, width: u } = s.getBoundingClientRect();
|
|
821
844
|
let t = null, e = 0;
|
|
822
845
|
this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
|
|
823
|
-
let x = null,
|
|
824
|
-
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el,
|
|
825
|
-
let k = null,
|
|
826
|
-
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend,
|
|
846
|
+
let x = null, A = 0;
|
|
847
|
+
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, A = x.getBoundingClientRect().height);
|
|
848
|
+
let k = null, N = 0;
|
|
849
|
+
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend, N = k.getBoundingClientRect().height);
|
|
827
850
|
let b = 0;
|
|
828
851
|
this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height);
|
|
829
852
|
let T = 0;
|
|
830
|
-
this.$refs.noTitle && (T = this.$refs.noTitle.getBoundingClientRect().height), this.height =
|
|
831
|
-
for (const
|
|
832
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (
|
|
853
|
+
this.$refs.noTitle && (T = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - N - A - b - T, this.width = u, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((p) => {
|
|
854
|
+
for (const O of p)
|
|
855
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (A = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height), this.height = O.contentBoxSize[0].blockSize - e - N - A - b - 24, this.width = O.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
833
856
|
}).observe(s);
|
|
834
857
|
} else
|
|
835
858
|
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;
|
|
836
859
|
},
|
|
837
|
-
selectMinimapIndex(
|
|
838
|
-
this.selectedMinimapIndex =
|
|
860
|
+
selectMinimapIndex(a) {
|
|
861
|
+
this.selectedMinimapIndex = a;
|
|
839
862
|
},
|
|
840
863
|
convertSizes() {
|
|
841
864
|
this.fontSizes.dataLabels = this.translateSize({
|
|
@@ -888,98 +911,105 @@ const Xe = J(), qe = {
|
|
|
888
911
|
toggleTooltip() {
|
|
889
912
|
this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
|
|
890
913
|
},
|
|
891
|
-
checkAutoScaleError(
|
|
892
|
-
|
|
914
|
+
checkAutoScaleError(a) {
|
|
915
|
+
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`));
|
|
893
916
|
},
|
|
894
|
-
createArea(
|
|
895
|
-
if (!
|
|
896
|
-
const s = { x:
|
|
897
|
-
return
|
|
898
|
-
|
|
899
|
-
}), [s.x, s.y, ...
|
|
917
|
+
createArea(a) {
|
|
918
|
+
if (!a[0]) return [-10, -10, "", -10, -10];
|
|
919
|
+
const s = { x: a[0].x, y: this.zero }, o = { x: a.at(-1).x, y: this.zero }, u = [];
|
|
920
|
+
return a.forEach((t) => {
|
|
921
|
+
u.push(`${t.x},${t.y} `);
|
|
922
|
+
}), [s.x, s.y, ...u, o.x, o.y].toString();
|
|
900
923
|
},
|
|
901
|
-
createIndividualArea(
|
|
902
|
-
if (!
|
|
903
|
-
const
|
|
904
|
-
return
|
|
924
|
+
createIndividualArea(a, s) {
|
|
925
|
+
if (!a[0]) return [-10, -10, "", -10, -10];
|
|
926
|
+
const o = { x: a[0] ? a[0].x : Math.min(...a.filter((e) => !!e).map((e) => e.x)), y: s }, u = { x: a.at(-1) ? a.at(-1).x : Math.min(...a.filter((e) => !!e).map((e) => e.x)), y: s }, t = [];
|
|
927
|
+
return a.filter((e) => !!e).forEach((e) => {
|
|
905
928
|
t.push(`${e.x},${e.y} `);
|
|
906
|
-
}), [
|
|
929
|
+
}), [o.x, o.y, ...t, u.x, u.y].toString();
|
|
907
930
|
},
|
|
908
931
|
createStar: q,
|
|
909
932
|
createPolygonPath: R,
|
|
910
|
-
fillArray(
|
|
911
|
-
let
|
|
912
|
-
for (let
|
|
913
|
-
|
|
914
|
-
return
|
|
933
|
+
fillArray(a, s) {
|
|
934
|
+
let o = Array(a).fill(0);
|
|
935
|
+
for (let u = 0; u < s.length && u < a; u += 1)
|
|
936
|
+
o[u] = s[u];
|
|
937
|
+
return o;
|
|
938
|
+
},
|
|
939
|
+
async setupSlicer() {
|
|
940
|
+
(this.FINAL_CONFIG.chart.zoom.startIndex !== null || this.FINAL_CONFIG.chart.zoom.endIndex !== null) && this.$refs.chartSlicer ? (this.FINAL_CONFIG.chart.zoom.startIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)), this.FINAL_CONFIG.chart.zoom.endIndex !== null && (await this.$nextTick(), await this.$nextTick(), this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex + 1)))) : (this.slicer = {
|
|
941
|
+
start: 0,
|
|
942
|
+
end: Math.max(...this.dataset.map((a) => this.largestTriangleThreeBucketsArray({ data: a.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
|
|
943
|
+
}, this.slicerStep += 1);
|
|
915
944
|
},
|
|
916
945
|
refreshSlicer() {
|
|
917
|
-
this.
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
946
|
+
this.setupSlicer();
|
|
947
|
+
},
|
|
948
|
+
validSlicerEnd(a) {
|
|
949
|
+
const s = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
|
|
950
|
+
return a > s ? s : a < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && a < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : a;
|
|
921
951
|
},
|
|
922
|
-
calcRectHeight(
|
|
923
|
-
return
|
|
952
|
+
calcRectHeight(a) {
|
|
953
|
+
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);
|
|
924
954
|
},
|
|
925
|
-
calcIndividualHeight(
|
|
926
|
-
return
|
|
955
|
+
calcIndividualHeight(a) {
|
|
956
|
+
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);
|
|
927
957
|
},
|
|
928
958
|
calcRectWidth() {
|
|
929
959
|
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
|
|
930
960
|
},
|
|
931
|
-
calcRectX(
|
|
932
|
-
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ?
|
|
961
|
+
calcRectX(a) {
|
|
962
|
+
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? a.x + this.drawingArea.width / this.maxSeries * 0.05 : a.x + this.slot.bar / 2;
|
|
933
963
|
},
|
|
934
|
-
calcRectY(
|
|
935
|
-
return
|
|
964
|
+
calcRectY(a) {
|
|
965
|
+
return a.value >= 0 ? a.y : this.zero;
|
|
936
966
|
},
|
|
937
|
-
calcIndividualRectY(
|
|
938
|
-
return
|
|
967
|
+
calcIndividualRectY(a) {
|
|
968
|
+
return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
|
|
939
969
|
},
|
|
940
|
-
canShowValue(
|
|
941
|
-
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
970
|
+
canShowValue(a) {
|
|
971
|
+
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
942
972
|
},
|
|
943
|
-
findClosestValue(
|
|
944
|
-
let
|
|
973
|
+
findClosestValue(a, s) {
|
|
974
|
+
let o = s[0], u = Math.abs(a - s[0]);
|
|
945
975
|
for (let t = 1; t < s.length; t += 1) {
|
|
946
|
-
const e = Math.abs(
|
|
947
|
-
e <
|
|
976
|
+
const e = Math.abs(a - s[t]);
|
|
977
|
+
e < u && s[t] < a && (o = s[t], u = e);
|
|
948
978
|
}
|
|
949
|
-
return
|
|
979
|
+
return o;
|
|
950
980
|
},
|
|
951
|
-
ratioToMax(
|
|
952
|
-
return
|
|
981
|
+
ratioToMax(a) {
|
|
982
|
+
return a / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
953
983
|
},
|
|
954
|
-
selectX(
|
|
984
|
+
selectX(a) {
|
|
955
985
|
this.$emit(
|
|
956
986
|
"selectX",
|
|
957
987
|
{
|
|
958
988
|
dataset: this.relativeDataset.map((s) => ({
|
|
959
989
|
name: s.name,
|
|
960
|
-
value: [null, void 0, NaN].includes(s.absoluteValues[
|
|
990
|
+
value: [null, void 0, NaN].includes(s.absoluteValues[a]) ? null : s.absoluteValues[a],
|
|
961
991
|
color: s.color,
|
|
962
992
|
type: s.type
|
|
963
993
|
})),
|
|
964
|
-
index:
|
|
965
|
-
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
994
|
+
index: a,
|
|
995
|
+
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a]
|
|
966
996
|
}
|
|
967
997
|
);
|
|
968
998
|
},
|
|
969
999
|
getData() {
|
|
970
|
-
return this.absoluteDataset.map((
|
|
971
|
-
values:
|
|
972
|
-
color:
|
|
973
|
-
name:
|
|
974
|
-
type:
|
|
1000
|
+
return this.absoluteDataset.map((a) => ({
|
|
1001
|
+
values: a.absoluteValues,
|
|
1002
|
+
color: a.color,
|
|
1003
|
+
name: a.name,
|
|
1004
|
+
type: a.type
|
|
975
1005
|
}));
|
|
976
1006
|
},
|
|
977
|
-
segregate(
|
|
978
|
-
if (this.segregatedSeries.includes(
|
|
979
|
-
this.segregatedSeries = this.segregatedSeries.filter((s) => s !==
|
|
1007
|
+
segregate(a) {
|
|
1008
|
+
if (this.segregatedSeries.includes(a.id))
|
|
1009
|
+
this.segregatedSeries = this.segregatedSeries.filter((s) => s !== a.id);
|
|
980
1010
|
else {
|
|
981
1011
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
982
|
-
this.segregatedSeries.push(
|
|
1012
|
+
this.segregatedSeries.push(a.id);
|
|
983
1013
|
}
|
|
984
1014
|
this.$emit("selectLegend", this.relativeDataset.map((s) => ({
|
|
985
1015
|
name: s.name,
|
|
@@ -988,11 +1018,11 @@ const Xe = J(), qe = {
|
|
|
988
1018
|
type: s.type
|
|
989
1019
|
}))), this.segregateStep += 1;
|
|
990
1020
|
},
|
|
991
|
-
toggleTooltipVisibility(
|
|
992
|
-
this.isTooltip =
|
|
1021
|
+
toggleTooltipVisibility(a, s = null) {
|
|
1022
|
+
this.isTooltip = a, a ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
|
|
993
1023
|
},
|
|
994
|
-
toggleFullscreen(
|
|
995
|
-
this.isFullscreen =
|
|
1024
|
+
toggleFullscreen(a) {
|
|
1025
|
+
this.isFullscreen = a, this.step += 1;
|
|
996
1026
|
},
|
|
997
1027
|
showSpinnerPdf() {
|
|
998
1028
|
this.isPrinting = !0;
|
|
@@ -1000,20 +1030,20 @@ const Xe = J(), qe = {
|
|
|
1000
1030
|
async generatePdf() {
|
|
1001
1031
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1002
1032
|
try {
|
|
1003
|
-
const { default:
|
|
1004
|
-
await
|
|
1033
|
+
const { default: a } = await import("./pdf-B7oVat64.js");
|
|
1034
|
+
await a({
|
|
1005
1035
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1006
1036
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy"
|
|
1007
1037
|
});
|
|
1008
|
-
} catch (
|
|
1009
|
-
console.error("Error generating PDF:",
|
|
1038
|
+
} catch (a) {
|
|
1039
|
+
console.error("Error generating PDF:", a);
|
|
1010
1040
|
} finally {
|
|
1011
1041
|
this.isPrinting = !1;
|
|
1012
1042
|
}
|
|
1013
1043
|
}, 100);
|
|
1014
1044
|
},
|
|
1015
1045
|
generateCsv() {
|
|
1016
|
-
const
|
|
1046
|
+
const a = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], s = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, u = a.concat([s]).concat(o), t = this.createCsvContent(u);
|
|
1017
1047
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1018
1048
|
},
|
|
1019
1049
|
showSpinnerImage() {
|
|
@@ -1022,14 +1052,14 @@ const Xe = J(), qe = {
|
|
|
1022
1052
|
async generateImage() {
|
|
1023
1053
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1024
1054
|
try {
|
|
1025
|
-
const { default:
|
|
1026
|
-
await
|
|
1055
|
+
const { default: a } = await import("./img-DGzWcJ4Y.js");
|
|
1056
|
+
await a({
|
|
1027
1057
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1028
1058
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
1029
1059
|
format: "png"
|
|
1030
1060
|
});
|
|
1031
|
-
} catch (
|
|
1032
|
-
console.error("Error generating image:",
|
|
1061
|
+
} catch (a) {
|
|
1062
|
+
console.error("Error generating image:", a);
|
|
1033
1063
|
} finally {
|
|
1034
1064
|
this.isImaging = !1;
|
|
1035
1065
|
}
|
|
@@ -1041,41 +1071,41 @@ const Xe = J(), qe = {
|
|
|
1041
1071
|
ref: "noTitle",
|
|
1042
1072
|
class: "vue-data-ui-no-title-space",
|
|
1043
1073
|
style: "height:36px; width: 100%; background:transparent"
|
|
1044
|
-
}, Je = ["viewBox"], Ke = { key: 0 }, Qe = { class: "vue-ui-xy-grid" }, je = ["stroke", "x1", "x2", "y1", "y2"], $e = ["stroke", "x1", "x2", "y1", "y2"], et = { key: 1 }, tt = ["x1", "x2", "y1", "y2", "stroke"],
|
|
1074
|
+
}, Je = ["viewBox"], Ke = { key: 0 }, Qe = { class: "vue-ui-xy-grid" }, je = ["stroke", "x1", "x2", "y1", "y2"], $e = ["stroke", "x1", "x2", "y1", "y2"], et = { key: 1 }, tt = ["x1", "x2", "y1", "y2", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke"], rt = { key: 3 }, lt = ["x1", "x2", "y1", "y2", "stroke"], st = ["id"], nt = ["stop-color"], ht = ["stop-color"], ot = ["stop-color"], ct = ["id"], dt = ["stop-color"], ut = ["stop-color"], gt = ["stop-color"], ft = ["id"], It = ["stop-color"], Nt = ["stop-color"], mt = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], At = ["stop-color"], yt = ["x", "y", "height", "width", "fill"], Lt = ["x", "y", "width"], Ct = ["x", "y", "height", "width", "fill"], St = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], kt = ["width", "x", "y"], wt = { key: 0 }, Ot = ["id"], Gt = ["fill"], vt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], pt = ["x", "y", "font-size", "fill"], zt = ["stroke", "x1", "x2", "y1", "y2"], Mt = { key: 2 }, Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Vt = { key: 4 }, Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["fill", "font-size", "transform"], Bt = ["x1", "x2", "y1", "y2", "stroke"], Et = ["x", "y", "font-size", "fill"], Ht = ["x1", "x2", "y1", "y2", "stroke"], Wt = ["x", "y", "font-size", "fill"], Yt = ["width", "x", "y"], Xt = { style: { width: "100%" } }, qt = { key: 0 }, Ut = ["id"], Zt = ["fill"], Jt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Kt = ["x", "y", "font-size", "fill"], Qt = ["d", "stroke", "stroke-width", "stroke-dasharray"], jt = { key: 1 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ea = { key: 0 }, ta = ["d", "fill"], aa = ["d", "fill"], ia = ["d", "stroke", "stroke-width", "stroke-dasharray"], ra = { key: 2 }, la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], sa = ["width", "x", "y"], na = { style: { width: "100%" } }, ha = { key: 3 }, oa = ["id"], ca = ["fill"], da = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ua = ["x", "y", "font-size", "fill"], ga = { key: 5 }, fa = ["x", "y", "font-size", "fill"], Ia = ["x", "y", "font-size", "fill", "font-weight"], Na = { key: 6 }, ma = ["x", "y", "font-size", "fill"], xa = ["x", "y"], ba = ["x", "y"], Fa = { key: 7 }, _a = ["x", "y", "font-size", "fill"], Aa = ["x", "y"], ya = ["x", "y"], La = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "font-size", "fill", "innerHTML"], Sa = ["x", "y", "font-size", "fill", "innerHTML"], ka = ["x", "y", "font-size", "fill", "innerHTML"], wa = ["x", "y", "width", "height", "fill", "onMouseenter"], Oa = ["font-size", "fill", "transform"], Ga = ["x", "y", "font-size", "fill"], va = { key: 9 }, pa = ["text-anchor", "font-size", "fill", "transform", "onClick"], za = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ma = { key: 10 }, Ta = ["x", "y"], Pa = ["cx", "cy", "r", "fill"], Va = {
|
|
1045
1075
|
key: 5,
|
|
1046
1076
|
class: "vue-data-ui-watermark"
|
|
1047
|
-
},
|
|
1077
|
+
}, Ra = ["onClick"], Da = {
|
|
1048
1078
|
key: 0,
|
|
1049
1079
|
viewBox: "0 0 20 12",
|
|
1050
1080
|
height: "14",
|
|
1051
1081
|
width: "20"
|
|
1052
|
-
},
|
|
1082
|
+
}, Ba = ["fill"], Ea = {
|
|
1053
1083
|
key: 1,
|
|
1054
1084
|
viewBox: "0 0 12 12",
|
|
1055
1085
|
height: "14",
|
|
1056
1086
|
width: "14"
|
|
1057
|
-
},
|
|
1087
|
+
}, Ha = ["fill"], Wa = {
|
|
1058
1088
|
key: 9,
|
|
1059
1089
|
ref: "chartLegend"
|
|
1060
|
-
},
|
|
1090
|
+
}, Ya = {
|
|
1061
1091
|
key: 10,
|
|
1062
1092
|
ref: "source",
|
|
1063
1093
|
dir: "auto"
|
|
1064
|
-
},
|
|
1094
|
+
}, Xa = {
|
|
1065
1095
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1066
1096
|
"data-html2canvas-ignore": ""
|
|
1067
|
-
},
|
|
1068
|
-
function
|
|
1069
|
-
const x = P("PenAndPaper"),
|
|
1097
|
+
}, qa = ["innerHTML"];
|
|
1098
|
+
function Ua(a, s, o, u, t, e) {
|
|
1099
|
+
const x = P("PenAndPaper"), A = P("Title"), k = P("UserOptions"), N = P("PackageVersion"), b = P("Shape"), T = P("Skeleton"), v = P("Slicer"), p = P("Tooltip"), O = P("BaseIcon"), _ = P("TableSparkline"), C = P("DataTable"), z = P("Accordion");
|
|
1070
1100
|
return r(), l("div", {
|
|
1071
1101
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
1072
1102
|
class: V(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1073
1103
|
ref: "chart",
|
|
1074
|
-
style:
|
|
1104
|
+
style: L(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive ? "height: 100%" : ""}`)
|
|
1075
1105
|
}, [
|
|
1076
1106
|
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (r(), D(x, {
|
|
1077
1107
|
key: 0,
|
|
1078
|
-
parent:
|
|
1108
|
+
parent: a.$refs.chart,
|
|
1079
1109
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1080
1110
|
color: e.FINAL_CONFIG.chart.color,
|
|
1081
1111
|
active: t.isAnnotator,
|
|
@@ -1086,9 +1116,9 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1086
1116
|
key: 2,
|
|
1087
1117
|
ref: "chartTitle",
|
|
1088
1118
|
class: "vue-ui-xy-title",
|
|
1089
|
-
style:
|
|
1119
|
+
style: L(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1090
1120
|
}, [
|
|
1091
|
-
(r(), D(
|
|
1121
|
+
(r(), D(A, {
|
|
1092
1122
|
key: `title_${t.titleStep}`,
|
|
1093
1123
|
config: {
|
|
1094
1124
|
title: {
|
|
@@ -1116,11 +1146,11 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1116
1146
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1117
1147
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1118
1148
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1119
|
-
hasStack:
|
|
1149
|
+
hasStack: o.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1120
1150
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1121
1151
|
isStacked: t.mutableConfig.isStacked,
|
|
1122
1152
|
isFullscreen: t.isFullscreen,
|
|
1123
|
-
chartElement:
|
|
1153
|
+
chartElement: a.$refs.chart,
|
|
1124
1154
|
position: e.FINAL_CONFIG.chart.userOptions.position,
|
|
1125
1155
|
isTooltip: t.mutableConfig.showTooltip,
|
|
1126
1156
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
@@ -1136,66 +1166,66 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1136
1166
|
onToggleTooltip: e.toggleTooltip,
|
|
1137
1167
|
onToggleAnnotator: e.toggleAnnotator
|
|
1138
1168
|
}, Be({ _: 2 }, [
|
|
1139
|
-
|
|
1169
|
+
a.$slots.optionTooltip ? {
|
|
1140
1170
|
name: "optionTooltip",
|
|
1141
|
-
fn:
|
|
1142
|
-
|
|
1171
|
+
fn: M(() => [
|
|
1172
|
+
w(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1143
1173
|
]),
|
|
1144
1174
|
key: "0"
|
|
1145
1175
|
} : void 0,
|
|
1146
|
-
|
|
1176
|
+
a.$slots.optionPdf ? {
|
|
1147
1177
|
name: "optionPdf",
|
|
1148
|
-
fn:
|
|
1149
|
-
|
|
1178
|
+
fn: M(() => [
|
|
1179
|
+
w(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1150
1180
|
]),
|
|
1151
1181
|
key: "1"
|
|
1152
1182
|
} : void 0,
|
|
1153
|
-
|
|
1183
|
+
a.$slots.optionCsv ? {
|
|
1154
1184
|
name: "optionCsv",
|
|
1155
|
-
fn:
|
|
1156
|
-
|
|
1185
|
+
fn: M(() => [
|
|
1186
|
+
w(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1157
1187
|
]),
|
|
1158
1188
|
key: "2"
|
|
1159
1189
|
} : void 0,
|
|
1160
|
-
|
|
1190
|
+
a.$slots.optionImg ? {
|
|
1161
1191
|
name: "optionImg",
|
|
1162
|
-
fn:
|
|
1163
|
-
|
|
1192
|
+
fn: M(() => [
|
|
1193
|
+
w(a.$slots, "optionImg", {}, void 0, !0)
|
|
1164
1194
|
]),
|
|
1165
1195
|
key: "3"
|
|
1166
1196
|
} : void 0,
|
|
1167
|
-
|
|
1197
|
+
a.$slots.optionTable ? {
|
|
1168
1198
|
name: "optionTable",
|
|
1169
|
-
fn:
|
|
1170
|
-
|
|
1199
|
+
fn: M(() => [
|
|
1200
|
+
w(a.$slots, "optionTable", {}, void 0, !0)
|
|
1171
1201
|
]),
|
|
1172
1202
|
key: "4"
|
|
1173
1203
|
} : void 0,
|
|
1174
|
-
|
|
1204
|
+
a.$slots.optionLabels ? {
|
|
1175
1205
|
name: "optionLabels",
|
|
1176
|
-
fn:
|
|
1177
|
-
|
|
1206
|
+
fn: M(() => [
|
|
1207
|
+
w(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1178
1208
|
]),
|
|
1179
1209
|
key: "5"
|
|
1180
1210
|
} : void 0,
|
|
1181
|
-
|
|
1211
|
+
a.$slots.optionStack ? {
|
|
1182
1212
|
name: "optionStack",
|
|
1183
|
-
fn:
|
|
1184
|
-
|
|
1213
|
+
fn: M(() => [
|
|
1214
|
+
w(a.$slots, "optionStack", {}, void 0, !0)
|
|
1185
1215
|
]),
|
|
1186
1216
|
key: "6"
|
|
1187
1217
|
} : void 0,
|
|
1188
|
-
|
|
1218
|
+
a.$slots.optionFullscreen ? {
|
|
1189
1219
|
name: "optionFullscreen",
|
|
1190
|
-
fn:
|
|
1191
|
-
|
|
1220
|
+
fn: M(({ toggleFullscreen: i, isFullscreen: h }) => [
|
|
1221
|
+
w(a.$slots, "optionFullscreen", B(E({ toggleFullscreen: i, isFullscreen: h })), void 0, !0)
|
|
1192
1222
|
]),
|
|
1193
1223
|
key: "7"
|
|
1194
1224
|
} : void 0,
|
|
1195
|
-
|
|
1225
|
+
a.$slots.optionAnnotator ? {
|
|
1196
1226
|
name: "optionAnnotator",
|
|
1197
|
-
fn:
|
|
1198
|
-
|
|
1227
|
+
fn: M(({ toggleAnnotator: i, isAnnotator: h }) => [
|
|
1228
|
+
w(a.$slots, "optionAnnotator", B(E({ toggleAnnotator: i, isAnnotator: h })), void 0, !0)
|
|
1199
1229
|
]),
|
|
1200
1230
|
key: "8"
|
|
1201
1231
|
} : void 0
|
|
@@ -1206,11 +1236,11 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1206
1236
|
class: V([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1207
1237
|
width: "100%",
|
|
1208
1238
|
viewBox: t.viewBox,
|
|
1209
|
-
style:
|
|
1239
|
+
style: L(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1210
1240
|
}, [
|
|
1211
|
-
X(
|
|
1241
|
+
X(N),
|
|
1212
1242
|
e.maxSeries > 0 ? (r(), l("g", Ke, [
|
|
1213
|
-
|
|
1243
|
+
f("g", Qe, [
|
|
1214
1244
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), l("line", {
|
|
1215
1245
|
key: 0,
|
|
1216
1246
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1221,25 +1251,25 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1221
1251
|
y2: e.drawingArea.bottom,
|
|
1222
1252
|
"stroke-linecap": "round"
|
|
1223
1253
|
}, null, 8, je)) : c("", !0),
|
|
1224
|
-
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), l(
|
|
1225
|
-
|
|
1254
|
+
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), l(I, { key: 2 }, m(e.allScales, (i) => (r(), l("g", null, [
|
|
1255
|
+
i.id === t.selectedScale && i.yLabels.length ? (r(!0), l(I, { key: 0 }, m(i.yLabels, (h) => (r(), l("line", {
|
|
1226
1256
|
x1: e.drawingArea.left + e.xPadding,
|
|
1227
1257
|
x2: e.drawingArea.right - e.xPadding,
|
|
1228
|
-
y1: e.checkNaN(
|
|
1229
|
-
y2: e.checkNaN(
|
|
1230
|
-
stroke:
|
|
1258
|
+
y1: e.checkNaN(h.y),
|
|
1259
|
+
y2: e.checkNaN(h.y),
|
|
1260
|
+
stroke: i.color,
|
|
1231
1261
|
"stroke-width": 0.5,
|
|
1232
1262
|
"stroke-linecap": "round"
|
|
1233
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, at))), 256)) : i.yLabels.length ? (r(!0), l(I, { key: 1 }, m(i.yLabels, (h) => (r(), l("line", {
|
|
1234
1264
|
x1: e.drawingArea.left + e.xPadding,
|
|
1235
1265
|
x2: e.drawingArea.right - e.xPadding,
|
|
1236
|
-
y1: e.checkNaN(
|
|
1237
|
-
y2: e.checkNaN(
|
|
1266
|
+
y1: e.checkNaN(h.y),
|
|
1267
|
+
y2: e.checkNaN(h.y),
|
|
1238
1268
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1239
1269
|
"stroke-width": 0.5,
|
|
1240
1270
|
"stroke-linecap": "round"
|
|
1241
|
-
}, null, 8,
|
|
1242
|
-
]))), 256)) : c("", !0) : (r(), l(
|
|
1271
|
+
}, null, 8, it))), 256)) : c("", !0)
|
|
1272
|
+
]))), 256)) : c("", !0) : (r(), l(I, { key: 1 }, [
|
|
1243
1273
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (r(), l("line", {
|
|
1244
1274
|
key: 0,
|
|
1245
1275
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1251,11 +1281,11 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1251
1281
|
"stroke-linecap": "round"
|
|
1252
1282
|
}, null, 8, $e)) : c("", !0),
|
|
1253
1283
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), l("g", et, [
|
|
1254
|
-
(r(!0), l(
|
|
1284
|
+
(r(!0), l(I, null, m(e.yLabels, (i) => (r(), l("line", {
|
|
1255
1285
|
x1: e.drawingArea.left + e.xPadding,
|
|
1256
1286
|
x2: e.drawingArea.right - e.xPadding,
|
|
1257
|
-
y1: e.checkNaN(
|
|
1258
|
-
y2: e.checkNaN(
|
|
1287
|
+
y1: e.checkNaN(i.y),
|
|
1288
|
+
y2: e.checkNaN(i.y),
|
|
1259
1289
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1260
1290
|
"stroke-width": 0.5,
|
|
1261
1291
|
"stroke-linecap": "round"
|
|
@@ -1263,10 +1293,10 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1263
1293
|
])) : c("", !0)
|
|
1264
1294
|
], 64)),
|
|
1265
1295
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), l("g", rt, [
|
|
1266
|
-
(r(!0), l(
|
|
1267
|
-
key: `grid_vertical_line_${
|
|
1268
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1269
|
-
x2: e.drawingArea.width / e.maxSeries *
|
|
1296
|
+
(r(!0), l(I, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (i, h) => (r(), l("line", {
|
|
1297
|
+
key: `grid_vertical_line_${h}`,
|
|
1298
|
+
x1: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1299
|
+
x2: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
|
|
1270
1300
|
y1: e.drawingArea.top,
|
|
1271
1301
|
y2: e.drawingArea.bottom,
|
|
1272
1302
|
"stroke-width": "0.5",
|
|
@@ -1274,154 +1304,154 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1274
1304
|
}, null, 8, lt))), 128))
|
|
1275
1305
|
])) : c("", !0)
|
|
1276
1306
|
]),
|
|
1277
|
-
(r(!0), l(
|
|
1278
|
-
key: `def_rect_${
|
|
1307
|
+
(r(!0), l(I, null, m(e.barSet, (i, h) => (r(), l("defs", {
|
|
1308
|
+
key: `def_rect_${h}`
|
|
1279
1309
|
}, [
|
|
1280
|
-
|
|
1281
|
-
id: `rectGradient_pos_${
|
|
1310
|
+
f("linearGradient", {
|
|
1311
|
+
id: `rectGradient_pos_${h}_${t.uniqueId}`,
|
|
1282
1312
|
x2: "0%",
|
|
1283
1313
|
y2: "100%"
|
|
1284
1314
|
}, [
|
|
1285
|
-
|
|
1315
|
+
f("stop", {
|
|
1286
1316
|
offset: "0%",
|
|
1287
|
-
"stop-color":
|
|
1317
|
+
"stop-color": i.color
|
|
1288
1318
|
}, null, 8, nt),
|
|
1289
|
-
|
|
1319
|
+
f("stop", {
|
|
1290
1320
|
offset: "62%",
|
|
1291
|
-
"stop-color": `${e.shiftHue(
|
|
1292
|
-
}, null, 8,
|
|
1293
|
-
|
|
1321
|
+
"stop-color": `${e.shiftHue(i.color, 0.02)}`
|
|
1322
|
+
}, null, 8, ht),
|
|
1323
|
+
f("stop", {
|
|
1294
1324
|
offset: "100%",
|
|
1295
|
-
"stop-color": `${e.shiftHue(
|
|
1296
|
-
}, null, 8,
|
|
1325
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1326
|
+
}, null, 8, ot)
|
|
1297
1327
|
], 8, st),
|
|
1298
|
-
|
|
1299
|
-
id: `rectGradient_neg_${
|
|
1328
|
+
f("linearGradient", {
|
|
1329
|
+
id: `rectGradient_neg_${h}_${t.uniqueId}`,
|
|
1300
1330
|
x2: "0%",
|
|
1301
1331
|
y2: "100%"
|
|
1302
1332
|
}, [
|
|
1303
|
-
|
|
1333
|
+
f("stop", {
|
|
1304
1334
|
offset: "0%",
|
|
1305
|
-
"stop-color": `${e.shiftHue(
|
|
1335
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1306
1336
|
}, null, 8, dt),
|
|
1307
|
-
|
|
1337
|
+
f("stop", {
|
|
1308
1338
|
offset: "38%",
|
|
1309
|
-
"stop-color": `${e.shiftHue(
|
|
1339
|
+
"stop-color": `${e.shiftHue(i.color, 0.02)}`
|
|
1310
1340
|
}, null, 8, ut),
|
|
1311
|
-
|
|
1341
|
+
f("stop", {
|
|
1312
1342
|
offset: "100%",
|
|
1313
|
-
"stop-color":
|
|
1343
|
+
"stop-color": i.color
|
|
1314
1344
|
}, null, 8, gt)
|
|
1315
|
-
], 8,
|
|
1345
|
+
], 8, ct)
|
|
1316
1346
|
]))), 128)),
|
|
1317
|
-
(r(!0), l(
|
|
1318
|
-
key: `def_plot_${
|
|
1347
|
+
(r(!0), l(I, null, m(e.plotSet, (i, h) => (r(), l("defs", {
|
|
1348
|
+
key: `def_plot_${h}`
|
|
1319
1349
|
}, [
|
|
1320
|
-
|
|
1321
|
-
id: `plotGradient_${
|
|
1350
|
+
f("radialGradient", {
|
|
1351
|
+
id: `plotGradient_${h}_${t.uniqueId}`,
|
|
1322
1352
|
cx: "50%",
|
|
1323
1353
|
cy: "50%",
|
|
1324
1354
|
r: "50%",
|
|
1325
1355
|
fx: "50%",
|
|
1326
1356
|
fy: "50%"
|
|
1327
1357
|
}, [
|
|
1328
|
-
|
|
1358
|
+
f("stop", {
|
|
1329
1359
|
offset: "0%",
|
|
1330
|
-
"stop-color": `${e.shiftHue(
|
|
1331
|
-
}, null, 8,
|
|
1332
|
-
|
|
1360
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1361
|
+
}, null, 8, It),
|
|
1362
|
+
f("stop", {
|
|
1333
1363
|
offset: "100%",
|
|
1334
|
-
"stop-color":
|
|
1335
|
-
}, null, 8,
|
|
1364
|
+
"stop-color": i.color
|
|
1365
|
+
}, null, 8, Nt)
|
|
1336
1366
|
], 8, ft)
|
|
1337
1367
|
]))), 128)),
|
|
1338
|
-
(r(!0), l(
|
|
1339
|
-
key: `def_line_${
|
|
1368
|
+
(r(!0), l(I, null, m(e.lineSet, (i, h) => (r(), l("defs", {
|
|
1369
|
+
key: `def_line_${h}`
|
|
1340
1370
|
}, [
|
|
1341
|
-
|
|
1342
|
-
id: `lineGradient_${
|
|
1371
|
+
f("radialGradient", {
|
|
1372
|
+
id: `lineGradient_${h}_${t.uniqueId}`,
|
|
1343
1373
|
cx: "50%",
|
|
1344
1374
|
cy: "50%",
|
|
1345
1375
|
r: "50%",
|
|
1346
1376
|
fx: "50%",
|
|
1347
1377
|
fy: "50%"
|
|
1348
1378
|
}, [
|
|
1349
|
-
|
|
1379
|
+
f("stop", {
|
|
1350
1380
|
offset: "0%",
|
|
1351
|
-
"stop-color": `${e.shiftHue(
|
|
1381
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1352
1382
|
}, null, 8, xt),
|
|
1353
|
-
|
|
1383
|
+
f("stop", {
|
|
1354
1384
|
offset: "100%",
|
|
1355
|
-
"stop-color":
|
|
1385
|
+
"stop-color": i.color
|
|
1356
1386
|
}, null, 8, bt)
|
|
1357
|
-
], 8,
|
|
1358
|
-
|
|
1359
|
-
id: `areaGradient_${
|
|
1387
|
+
], 8, mt),
|
|
1388
|
+
f("linearGradient", {
|
|
1389
|
+
id: `areaGradient_${h}_${t.uniqueId}`,
|
|
1360
1390
|
x1: "0%",
|
|
1361
1391
|
x2: "100%",
|
|
1362
1392
|
y1: "0%",
|
|
1363
1393
|
y2: "0%"
|
|
1364
1394
|
}, [
|
|
1365
|
-
|
|
1395
|
+
f("stop", {
|
|
1366
1396
|
offset: "0%",
|
|
1367
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1397
|
+
"stop-color": `${e.setOpacity(e.shiftHue(i.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1368
1398
|
}, null, 8, _t),
|
|
1369
|
-
|
|
1399
|
+
f("stop", {
|
|
1370
1400
|
offset: "100%",
|
|
1371
|
-
"stop-color": `${e.setOpacity(
|
|
1372
|
-
}, null, 8,
|
|
1401
|
+
"stop-color": `${e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1402
|
+
}, null, 8, At)
|
|
1373
1403
|
], 8, Ft)
|
|
1374
1404
|
]))), 128)),
|
|
1375
|
-
(r(!0), l(
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
style:
|
|
1405
|
+
(r(!0), l(I, null, m(e.highlightAreas, (i) => (r(), l("g", null, [
|
|
1406
|
+
i.show ? (r(!0), l(I, { key: 0 }, m(i.span, (h, n) => (r(), l("g", null, [
|
|
1407
|
+
f("rect", {
|
|
1408
|
+
style: L({
|
|
1379
1409
|
transition: "none",
|
|
1380
|
-
opacity:
|
|
1410
|
+
opacity: i.from + n >= t.slicer.start && i.from + n <= t.slicer.end - 1 ? 1 : 0
|
|
1381
1411
|
}),
|
|
1382
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1412
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.from + n - t.slicer.start),
|
|
1383
1413
|
y: e.drawingArea.top,
|
|
1384
1414
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1385
1415
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1386
|
-
fill: e.setOpacity(
|
|
1387
|
-
}, null, 12,
|
|
1388
|
-
|
|
1416
|
+
fill: e.setOpacity(i.color, i.opacity)
|
|
1417
|
+
}, null, 12, yt),
|
|
1418
|
+
i.caption.text && n === 0 ? (r(), l("foreignObject", {
|
|
1389
1419
|
key: 0,
|
|
1390
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1391
|
-
y: e.drawingArea.top +
|
|
1392
|
-
style:
|
|
1420
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.from + n - t.slicer.start) - (i.caption.width === "auto" ? 0 : i.caption.width / 2 - e.drawingArea.width / e.maxSeries * i.span / 2),
|
|
1421
|
+
y: e.drawingArea.top + i.caption.offsetY,
|
|
1422
|
+
style: L({
|
|
1393
1423
|
overflow: "visible",
|
|
1394
|
-
opacity:
|
|
1424
|
+
opacity: i.to >= t.slicer.start && i.from < t.slicer.end ? 1 : 0
|
|
1395
1425
|
}),
|
|
1396
1426
|
height: "1",
|
|
1397
|
-
width:
|
|
1427
|
+
width: i.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * i.span : i.caption.width
|
|
1398
1428
|
}, [
|
|
1399
|
-
|
|
1400
|
-
style:
|
|
1401
|
-
}, S(
|
|
1402
|
-
], 12,
|
|
1429
|
+
f("div", {
|
|
1430
|
+
style: L(`padding:${i.caption.padding}px;text-align:${i.caption.textAlign};font-size:${i.caption.fontSize}px;color:${i.caption.color};font-weight:${i.caption.bold ? "bold" : "normal"}`)
|
|
1431
|
+
}, S(i.caption.text), 5)
|
|
1432
|
+
], 12, Lt)) : c("", !0)
|
|
1403
1433
|
]))), 256)) : c("", !0)
|
|
1404
1434
|
]))), 256)),
|
|
1405
|
-
|
|
1406
|
-
(r(!0), l(
|
|
1407
|
-
key: `tooltip_trap_highlighter_${
|
|
1435
|
+
f("g", null, [
|
|
1436
|
+
(r(!0), l(I, null, m(e.maxSeries, (i, h) => (r(), l("g", {
|
|
1437
|
+
key: `tooltip_trap_highlighter_${h}`
|
|
1408
1438
|
}, [
|
|
1409
|
-
|
|
1410
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1439
|
+
f("rect", {
|
|
1440
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
1411
1441
|
y: e.drawingArea.top,
|
|
1412
1442
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1413
1443
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1414
|
-
fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(
|
|
1415
|
-
}, null, 8,
|
|
1444
|
+
fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(h) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
|
|
1445
|
+
}, null, 8, Ct)
|
|
1416
1446
|
]))), 128))
|
|
1417
1447
|
]),
|
|
1418
|
-
e.barSet.length ? (r(!0), l(
|
|
1419
|
-
key: `serie_bar_${
|
|
1420
|
-
class: V(`serie_bar_${
|
|
1421
|
-
style:
|
|
1448
|
+
e.barSet.length ? (r(!0), l(I, { key: 0 }, m(e.barSet, (i, h) => (r(), l("g", {
|
|
1449
|
+
key: `serie_bar_${h}`,
|
|
1450
|
+
class: V(`serie_bar_${h}`),
|
|
1451
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1422
1452
|
}, [
|
|
1423
|
-
(r(!0), l(
|
|
1424
|
-
key: `bar_plot_${
|
|
1453
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1454
|
+
key: `bar_plot_${h}_${d}`
|
|
1425
1455
|
}, [
|
|
1426
1456
|
e.canShowValue(n.value) ? (r(), l("rect", {
|
|
1427
1457
|
key: 0,
|
|
@@ -1430,8 +1460,8 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1430
1460
|
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1431
1461
|
width: e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap),
|
|
1432
1462
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1433
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${
|
|
1434
|
-
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ?
|
|
1463
|
+
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` : i.color,
|
|
1464
|
+
stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? i.color : e.FINAL_CONFIG.bar.border.stroke,
|
|
1435
1465
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1436
1466
|
}, null, 8, St)) : c("", !0),
|
|
1437
1467
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
@@ -1442,47 +1472,47 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1442
1472
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1443
1473
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1444
1474
|
}, [
|
|
1445
|
-
|
|
1446
|
-
plot: { ...n, color:
|
|
1475
|
+
w(a.$slots, "plot-comment", {
|
|
1476
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: d }
|
|
1447
1477
|
}, void 0, !0)
|
|
1448
1478
|
], 8, kt)) : c("", !0)
|
|
1449
1479
|
]))), 128)),
|
|
1450
|
-
Object.hasOwn(
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
id: `bar_arrow_${
|
|
1480
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (r(), l("g", wt, [
|
|
1481
|
+
f("defs", null, [
|
|
1482
|
+
f("marker", {
|
|
1483
|
+
id: `bar_arrow_${h}`,
|
|
1454
1484
|
markerWidth: 7,
|
|
1455
1485
|
markerHeight: 7,
|
|
1456
1486
|
refX: "0",
|
|
1457
1487
|
refY: 7 / 2,
|
|
1458
1488
|
orient: "auto"
|
|
1459
1489
|
}, [
|
|
1460
|
-
|
|
1490
|
+
f("polygon", {
|
|
1461
1491
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1462
|
-
fill:
|
|
1492
|
+
fill: i.color
|
|
1463
1493
|
}, null, 8, Gt)
|
|
1464
1494
|
], 8, Ot)
|
|
1465
1495
|
]),
|
|
1466
|
-
|
|
1496
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1467
1497
|
key: 0,
|
|
1468
|
-
x1: e.calcLinearProgression(
|
|
1469
|
-
x2: e.calcLinearProgression(
|
|
1470
|
-
y1: e.calcLinearProgression(
|
|
1471
|
-
y2: e.calcLinearProgression(
|
|
1498
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1499
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1500
|
+
y1: e.calcLinearProgression(i.plots).y1,
|
|
1501
|
+
y2: e.calcLinearProgression(i.plots).y2,
|
|
1472
1502
|
"stroke-width": 1,
|
|
1473
|
-
stroke:
|
|
1503
|
+
stroke: i.color,
|
|
1474
1504
|
"stroke-dasharray": 2,
|
|
1475
|
-
"marker-end": `url(#bar_arrow_${
|
|
1505
|
+
"marker-end": `url(#bar_arrow_${h})`
|
|
1476
1506
|
}, null, 8, vt)) : c("", !0),
|
|
1477
|
-
|
|
1507
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1478
1508
|
key: 1,
|
|
1479
1509
|
"text-anchor": "middle",
|
|
1480
|
-
x: e.calcLinearProgression(
|
|
1481
|
-
y: e.calcLinearProgression(
|
|
1510
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1511
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1482
1512
|
"font-size": t.fontSizes.plotLabels,
|
|
1483
|
-
fill:
|
|
1513
|
+
fill: i.color
|
|
1484
1514
|
}, S(e.dataLabel({
|
|
1485
|
-
v: e.calcLinearProgression(
|
|
1515
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1486
1516
|
s: "%",
|
|
1487
1517
|
r: 2
|
|
1488
1518
|
})), 9, pt)) : c("", !0)
|
|
@@ -1497,9 +1527,9 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1497
1527
|
y1: e.checkNaN(e.zero),
|
|
1498
1528
|
y2: e.checkNaN(e.zero),
|
|
1499
1529
|
"stroke-linecap": "round"
|
|
1500
|
-
}, null, 8,
|
|
1501
|
-
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (r(), l("g",
|
|
1502
|
-
|
|
1530
|
+
}, null, 8, zt)) : c("", !0),
|
|
1531
|
+
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (r(), l("g", Mt, [
|
|
1532
|
+
f("line", {
|
|
1503
1533
|
x1: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1504
1534
|
x2: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
1505
1535
|
y1: e.drawingArea.top,
|
|
@@ -1526,102 +1556,102 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1526
1556
|
"stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
|
|
1527
1557
|
}, null, 8, Pt)) : c("", !0),
|
|
1528
1558
|
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), l("g", Vt, [
|
|
1529
|
-
t.mutableConfig.useIndividualScale ? (r(), l(
|
|
1530
|
-
(r(!0), l(
|
|
1531
|
-
|
|
1532
|
-
x1:
|
|
1533
|
-
x2:
|
|
1534
|
-
y1: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom -
|
|
1535
|
-
y2: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom -
|
|
1536
|
-
stroke:
|
|
1559
|
+
t.mutableConfig.useIndividualScale ? (r(), l(I, { key: 0 }, [
|
|
1560
|
+
(r(!0), l(I, null, m(e.allScales, (i) => (r(), l("g", null, [
|
|
1561
|
+
f("line", {
|
|
1562
|
+
x1: i.x + e.xPadding,
|
|
1563
|
+
x2: i.x + e.xPadding,
|
|
1564
|
+
y1: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - i.yOffset - i.individualHeight) : e.checkNaN(e.drawingArea.top),
|
|
1565
|
+
y2: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - i.yOffset) : e.checkNaN(e.drawingArea.bottom),
|
|
1566
|
+
stroke: i.color,
|
|
1537
1567
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1538
1568
|
"stroke-linecap": "round",
|
|
1539
|
-
style:
|
|
1569
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1540
1570
|
}, null, 12, Rt)
|
|
1541
1571
|
]))), 256)),
|
|
1542
|
-
(r(!0), l(
|
|
1543
|
-
style:
|
|
1572
|
+
(r(!0), l(I, null, m(e.allScales, (i) => (r(), l("g", {
|
|
1573
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1544
1574
|
}, [
|
|
1545
|
-
|
|
1546
|
-
fill:
|
|
1575
|
+
f("text", {
|
|
1576
|
+
fill: i.color,
|
|
1547
1577
|
"font-size": t.fontSizes.dataLabels,
|
|
1548
1578
|
"text-anchor": "middle",
|
|
1549
|
-
transform: `translate(${
|
|
1550
|
-
}, S(
|
|
1551
|
-
(r(!0), l(
|
|
1552
|
-
x1:
|
|
1553
|
-
x2:
|
|
1554
|
-
y1: e.checkNaN(
|
|
1555
|
-
y2: e.checkNaN(
|
|
1556
|
-
stroke:
|
|
1579
|
+
transform: `translate(${i.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset - i.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
|
|
1580
|
+
}, S(i.name) + " " + S(i.scaleLabel ? `- ${i.scaleLabel}` : ""), 9, Dt),
|
|
1581
|
+
(r(!0), l(I, null, m(i.yLabels, (h, n) => (r(), l("line", {
|
|
1582
|
+
x1: i.x - 3 + e.xPadding,
|
|
1583
|
+
x2: i.x + e.xPadding,
|
|
1584
|
+
y1: e.checkNaN(h.y),
|
|
1585
|
+
y2: e.checkNaN(h.y),
|
|
1586
|
+
stroke: i.color,
|
|
1557
1587
|
"stroke-width": 1,
|
|
1558
1588
|
"stroke-linecap": "round"
|
|
1559
1589
|
}, null, 8, Bt))), 256)),
|
|
1560
|
-
(r(!0), l(
|
|
1561
|
-
x:
|
|
1562
|
-
y: e.checkNaN(
|
|
1590
|
+
(r(!0), l(I, null, m(i.yLabels, (h, n) => (r(), l("text", {
|
|
1591
|
+
x: i.x - 5 + e.xPadding,
|
|
1592
|
+
y: e.checkNaN(h.y) + t.fontSizes.dataLabels / 3,
|
|
1563
1593
|
"font-size": t.fontSizes.dataLabels,
|
|
1564
1594
|
"text-anchor": "end",
|
|
1565
|
-
fill:
|
|
1595
|
+
fill: i.color
|
|
1566
1596
|
}, S(e.applyDataLabel(
|
|
1567
1597
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1568
|
-
|
|
1598
|
+
h.value,
|
|
1569
1599
|
e.dataLabel({
|
|
1570
|
-
p:
|
|
1571
|
-
v:
|
|
1572
|
-
s:
|
|
1600
|
+
p: h.prefix,
|
|
1601
|
+
v: h.value,
|
|
1602
|
+
s: h.suffix,
|
|
1573
1603
|
r: 1
|
|
1574
1604
|
}),
|
|
1575
|
-
{ datapoint:
|
|
1576
|
-
)), 9,
|
|
1605
|
+
{ datapoint: h.datapoint, seriesIndex: n }
|
|
1606
|
+
)), 9, Et))), 256))
|
|
1577
1607
|
], 4))), 256))
|
|
1578
|
-
], 64)) : (r(!0), l(
|
|
1579
|
-
key: `yLabel_${
|
|
1608
|
+
], 64)) : (r(!0), l(I, { key: 1 }, m(e.yLabels, (i, h) => (r(), l("g", {
|
|
1609
|
+
key: `yLabel_${h}`
|
|
1580
1610
|
}, [
|
|
1581
|
-
e.canShowValue(
|
|
1611
|
+
e.canShowValue(i) && i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (r(), l("line", {
|
|
1582
1612
|
key: 0,
|
|
1583
1613
|
x1: e.drawingArea.left + e.xPadding,
|
|
1584
1614
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1585
|
-
y1: e.checkNaN(
|
|
1586
|
-
y2: e.checkNaN(
|
|
1615
|
+
y1: e.checkNaN(i.y),
|
|
1616
|
+
y2: e.checkNaN(i.y),
|
|
1587
1617
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1588
1618
|
"stroke-width": "1",
|
|
1589
1619
|
"stroke-linecap": "round"
|
|
1590
|
-
}, null, 8,
|
|
1591
|
-
|
|
1620
|
+
}, null, 8, Ht)) : c("", !0),
|
|
1621
|
+
i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (r(), l("text", {
|
|
1592
1622
|
key: 1,
|
|
1593
1623
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1594
|
-
y: e.checkNaN(
|
|
1624
|
+
y: e.checkNaN(i.y + t.fontSizes.dataLabels / 3),
|
|
1595
1625
|
"font-size": t.fontSizes.dataLabels,
|
|
1596
1626
|
"text-anchor": "end",
|
|
1597
1627
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1598
|
-
}, S(e.canShowValue(
|
|
1628
|
+
}, S(e.canShowValue(i.value) ? e.applyDataLabel(
|
|
1599
1629
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1600
|
-
|
|
1630
|
+
i.value,
|
|
1601
1631
|
e.dataLabel({
|
|
1602
|
-
p:
|
|
1603
|
-
v:
|
|
1604
|
-
s:
|
|
1632
|
+
p: i.prefix,
|
|
1633
|
+
v: i.value,
|
|
1634
|
+
s: i.suffix,
|
|
1605
1635
|
r: 1
|
|
1606
1636
|
})
|
|
1607
|
-
) : ""), 9,
|
|
1637
|
+
) : ""), 9, Wt)) : c("", !0)
|
|
1608
1638
|
]))), 128))
|
|
1609
1639
|
])) : c("", !0),
|
|
1610
|
-
(r(!0), l(
|
|
1611
|
-
key: `serie_plot_${
|
|
1612
|
-
class: V(`serie_plot_${
|
|
1613
|
-
style:
|
|
1640
|
+
(r(!0), l(I, null, m(e.plotSet, (i, h) => (r(), l("g", {
|
|
1641
|
+
key: `serie_plot_${h}`,
|
|
1642
|
+
class: V(`serie_plot_${h}`),
|
|
1643
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1614
1644
|
}, [
|
|
1615
|
-
(r(!0), l(
|
|
1616
|
-
key: `circle_plot_${
|
|
1645
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1646
|
+
key: `circle_plot_${h}_${d}`
|
|
1617
1647
|
}, [
|
|
1618
1648
|
n && e.canShowValue(n.value) ? (r(), D(b, {
|
|
1619
1649
|
key: 0,
|
|
1620
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1621
|
-
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${
|
|
1650
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
1651
|
+
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? i.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
1622
1652
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1623
1653
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1624
|
-
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1654
|
+
stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : i.color,
|
|
1625
1655
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1626
1656
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1627
1657
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
@@ -1632,136 +1662,136 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1632
1662
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1633
1663
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1634
1664
|
}, [
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
plot: { ...n, color:
|
|
1665
|
+
f("div", Xt, [
|
|
1666
|
+
w(a.$slots, "plot-comment", {
|
|
1667
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: d }
|
|
1638
1668
|
}, void 0, !0)
|
|
1639
1669
|
])
|
|
1640
1670
|
], 8, Yt)) : c("", !0)
|
|
1641
1671
|
]))), 128)),
|
|
1642
|
-
Object.hasOwn(
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
id: `plot_arrow_${
|
|
1672
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (r(), l("g", qt, [
|
|
1673
|
+
f("defs", null, [
|
|
1674
|
+
f("marker", {
|
|
1675
|
+
id: `plot_arrow_${h}`,
|
|
1646
1676
|
markerWidth: 7,
|
|
1647
1677
|
markerHeight: 7,
|
|
1648
1678
|
refX: "0",
|
|
1649
1679
|
refY: 7 / 2,
|
|
1650
1680
|
orient: "auto"
|
|
1651
1681
|
}, [
|
|
1652
|
-
|
|
1682
|
+
f("polygon", {
|
|
1653
1683
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1654
|
-
fill:
|
|
1684
|
+
fill: i.color
|
|
1655
1685
|
}, null, 8, Zt)
|
|
1656
1686
|
], 8, Ut)
|
|
1657
1687
|
]),
|
|
1658
|
-
|
|
1688
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1659
1689
|
key: 0,
|
|
1660
|
-
x1: e.calcLinearProgression(
|
|
1661
|
-
x2: e.calcLinearProgression(
|
|
1662
|
-
y1: e.calcLinearProgression(
|
|
1663
|
-
y2: e.calcLinearProgression(
|
|
1690
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1691
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1692
|
+
y1: e.calcLinearProgression(i.plots).y1,
|
|
1693
|
+
y2: e.calcLinearProgression(i.plots).y2,
|
|
1664
1694
|
"stroke-width": 1,
|
|
1665
|
-
stroke:
|
|
1695
|
+
stroke: i.color,
|
|
1666
1696
|
"stroke-dasharray": 2,
|
|
1667
|
-
"marker-end": `url(#plot_arrow_${
|
|
1697
|
+
"marker-end": `url(#plot_arrow_${h})`
|
|
1668
1698
|
}, null, 8, Jt)) : c("", !0),
|
|
1669
|
-
|
|
1699
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1670
1700
|
key: 1,
|
|
1671
1701
|
"text-anchor": "middle",
|
|
1672
|
-
x: e.calcLinearProgression(
|
|
1673
|
-
y: e.calcLinearProgression(
|
|
1702
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1703
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1674
1704
|
"font-size": t.fontSizes.plotLabels,
|
|
1675
|
-
fill:
|
|
1705
|
+
fill: i.color
|
|
1676
1706
|
}, S(e.dataLabel({
|
|
1677
|
-
v: e.calcLinearProgression(
|
|
1707
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1678
1708
|
s: "%",
|
|
1679
1709
|
r: 2
|
|
1680
1710
|
})), 9, Kt)) : c("", !0)
|
|
1681
1711
|
])) : c("", !0)
|
|
1682
1712
|
], 6))), 128)),
|
|
1683
|
-
(r(!0), l(
|
|
1684
|
-
key: `serie_line_${
|
|
1685
|
-
class: V(`serie_line_${
|
|
1686
|
-
style:
|
|
1713
|
+
(r(!0), l(I, null, m(e.lineSet, (i, h) => (r(), l("g", {
|
|
1714
|
+
key: `serie_line_${h}`,
|
|
1715
|
+
class: V(`serie_line_${h}`),
|
|
1716
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1687
1717
|
}, [
|
|
1688
|
-
|
|
1718
|
+
i.smooth && i.plots.length > 1 ? (r(), l("path", {
|
|
1689
1719
|
key: 0,
|
|
1690
|
-
d: `M${
|
|
1720
|
+
d: `M${i.curve}`,
|
|
1691
1721
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1692
1722
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1693
|
-
"stroke-dasharray":
|
|
1723
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1694
1724
|
fill: "none"
|
|
1695
|
-
}, null, 8, Qt)) :
|
|
1696
|
-
(r(!0), l(
|
|
1697
|
-
key: `line_${
|
|
1725
|
+
}, null, 8, Qt)) : i.plots.length > 1 ? (r(), l("g", jt, [
|
|
1726
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1727
|
+
key: `line_${h}_${d}`
|
|
1698
1728
|
}, [
|
|
1699
|
-
n && d <
|
|
1729
|
+
n && d < i.plots.length - 1 && i.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(i.plots[d + 1].value) ? (r(), l("line", {
|
|
1700
1730
|
key: 0,
|
|
1701
1731
|
x1: n.x,
|
|
1702
|
-
x2:
|
|
1732
|
+
x2: i.plots[d + 1].x,
|
|
1703
1733
|
y1: n.y,
|
|
1704
|
-
y2:
|
|
1734
|
+
y2: i.plots[d + 1].y,
|
|
1705
1735
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1706
1736
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1707
|
-
"stroke-dasharray":
|
|
1737
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1708
1738
|
"stroke-linejoin": "round",
|
|
1709
1739
|
"stroke-linecap": "round"
|
|
1710
1740
|
}, null, 8, $t)) : c("", !0)
|
|
1711
1741
|
]))), 128))
|
|
1712
1742
|
])) : c("", !0)
|
|
1713
1743
|
], 6))), 128)),
|
|
1714
|
-
(r(!0), l(
|
|
1715
|
-
key: `serie_line_${
|
|
1716
|
-
class: V(`serie_line_${
|
|
1717
|
-
style:
|
|
1744
|
+
(r(!0), l(I, null, m(e.lineSet, (i, h) => (r(), l("g", {
|
|
1745
|
+
key: `serie_line_${h}`,
|
|
1746
|
+
class: V(`serie_line_${h}`),
|
|
1747
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1718
1748
|
}, [
|
|
1719
|
-
|
|
1720
|
-
|
|
1749
|
+
i.useArea && i.plots.length > 1 ? (r(), l("g", ea, [
|
|
1750
|
+
i.smooth ? (r(), l("path", {
|
|
1721
1751
|
key: 0,
|
|
1722
|
-
d: `M ${
|
|
1723
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1724
|
-
}, null, 8,
|
|
1752
|
+
d: `M ${i.plots[0] ? i.plots[0].x : Math.min(...i.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} ${i.curve} L ${i.plots.at(-1) ? i.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} Z`,
|
|
1753
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1754
|
+
}, null, 8, ta)) : (r(), l("path", {
|
|
1725
1755
|
key: 1,
|
|
1726
|
-
d: `M${
|
|
1727
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1728
|
-
}, null, 8,
|
|
1756
|
+
d: `M${i.area}Z`,
|
|
1757
|
+
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)
|
|
1758
|
+
}, null, 8, aa))
|
|
1729
1759
|
])) : c("", !0),
|
|
1730
|
-
|
|
1760
|
+
i.smooth && i.plots.length > 1 ? (r(), l("path", {
|
|
1731
1761
|
key: 1,
|
|
1732
|
-
d: `M${
|
|
1733
|
-
stroke:
|
|
1762
|
+
d: `M${i.curve}`,
|
|
1763
|
+
stroke: i.color,
|
|
1734
1764
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1735
|
-
"stroke-dasharray":
|
|
1765
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1736
1766
|
fill: "none"
|
|
1737
|
-
}, null, 8,
|
|
1738
|
-
(r(!0), l(
|
|
1739
|
-
key: `line_${
|
|
1767
|
+
}, null, 8, ia)) : i.plots.length > 1 ? (r(), l("g", ra, [
|
|
1768
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1769
|
+
key: `line_${h}_${d}`
|
|
1740
1770
|
}, [
|
|
1741
|
-
n && d <
|
|
1771
|
+
n && d < i.plots.length - 1 && i.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(i.plots[d + 1].value) ? (r(), l("line", {
|
|
1742
1772
|
key: 0,
|
|
1743
1773
|
x1: n.x,
|
|
1744
|
-
x2:
|
|
1774
|
+
x2: i.plots[d + 1].x,
|
|
1745
1775
|
y1: n.y,
|
|
1746
|
-
y2:
|
|
1747
|
-
stroke:
|
|
1776
|
+
y2: i.plots[d + 1].y,
|
|
1777
|
+
stroke: i.color,
|
|
1748
1778
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1749
|
-
"stroke-dasharray":
|
|
1779
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1750
1780
|
"stroke-linejoin": "round",
|
|
1751
1781
|
"stroke-linecap": "round"
|
|
1752
|
-
}, null, 8,
|
|
1782
|
+
}, null, 8, la)) : c("", !0)
|
|
1753
1783
|
]))), 128))
|
|
1754
1784
|
])) : c("", !0),
|
|
1755
|
-
(r(!0), l(
|
|
1756
|
-
key: `circle_line_${
|
|
1785
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1786
|
+
key: `circle_line_${h}_${d}`
|
|
1757
1787
|
}, [
|
|
1758
1788
|
n && e.canShowValue(n.value) ? (r(), D(b, {
|
|
1759
1789
|
key: 0,
|
|
1760
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1761
|
-
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${
|
|
1790
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
1791
|
+
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? i.color : e.FINAL_CONFIG.line.dot.fill,
|
|
1762
1792
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1763
1793
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
|
|
1764
|
-
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor :
|
|
1794
|
+
stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : i.color,
|
|
1765
1795
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1766
1796
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1767
1797
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
@@ -1772,64 +1802,64 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1772
1802
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1773
1803
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1774
1804
|
}, [
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
plot: { ...n, color:
|
|
1805
|
+
f("div", na, [
|
|
1806
|
+
w(a.$slots, "plot-comment", {
|
|
1807
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: d }
|
|
1778
1808
|
}, void 0, !0)
|
|
1779
1809
|
])
|
|
1780
|
-
], 8,
|
|
1810
|
+
], 8, sa)) : c("", !0)
|
|
1781
1811
|
]))), 128)),
|
|
1782
|
-
Object.hasOwn(
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
id: `line_arrow_${
|
|
1812
|
+
Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (r(), l("g", ha, [
|
|
1813
|
+
f("defs", null, [
|
|
1814
|
+
f("marker", {
|
|
1815
|
+
id: `line_arrow_${h}`,
|
|
1786
1816
|
markerWidth: 7,
|
|
1787
1817
|
markerHeight: 7,
|
|
1788
1818
|
refX: "0",
|
|
1789
1819
|
refY: 7 / 2,
|
|
1790
1820
|
orient: "auto"
|
|
1791
1821
|
}, [
|
|
1792
|
-
|
|
1822
|
+
f("polygon", {
|
|
1793
1823
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1794
|
-
fill:
|
|
1795
|
-
}, null, 8,
|
|
1796
|
-
], 8,
|
|
1824
|
+
fill: i.color
|
|
1825
|
+
}, null, 8, ca)
|
|
1826
|
+
], 8, oa)
|
|
1797
1827
|
]),
|
|
1798
|
-
|
|
1828
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1799
1829
|
key: 0,
|
|
1800
|
-
x1: e.calcLinearProgression(
|
|
1801
|
-
x2: e.calcLinearProgression(
|
|
1802
|
-
y1: e.calcLinearProgression(
|
|
1803
|
-
y2: e.calcLinearProgression(
|
|
1830
|
+
x1: e.calcLinearProgression(i.plots).x1,
|
|
1831
|
+
x2: e.calcLinearProgression(i.plots).x2,
|
|
1832
|
+
y1: e.calcLinearProgression(i.plots).y1,
|
|
1833
|
+
y2: e.calcLinearProgression(i.plots).y2,
|
|
1804
1834
|
"stroke-width": 1,
|
|
1805
|
-
stroke:
|
|
1835
|
+
stroke: i.color,
|
|
1806
1836
|
"stroke-dasharray": 2,
|
|
1807
|
-
"marker-end": `url(#line_arrow_${
|
|
1808
|
-
}, null, 8,
|
|
1809
|
-
|
|
1837
|
+
"marker-end": `url(#line_arrow_${h})`
|
|
1838
|
+
}, null, 8, da)) : c("", !0),
|
|
1839
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1810
1840
|
key: 1,
|
|
1811
1841
|
"text-anchor": "middle",
|
|
1812
|
-
x: e.calcLinearProgression(
|
|
1813
|
-
y: e.calcLinearProgression(
|
|
1842
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1843
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1814
1844
|
"font-size": t.fontSizes.plotLabels,
|
|
1815
|
-
fill:
|
|
1845
|
+
fill: i.color
|
|
1816
1846
|
}, S(e.dataLabel({
|
|
1817
|
-
v: e.calcLinearProgression(
|
|
1847
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1818
1848
|
s: "%",
|
|
1819
1849
|
r: 2
|
|
1820
|
-
})), 9,
|
|
1850
|
+
})), 9, ua)) : c("", !0)
|
|
1821
1851
|
])) : c("", !0)
|
|
1822
1852
|
], 6))), 128)),
|
|
1823
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (r(), l("g",
|
|
1824
|
-
(r(!0), l(
|
|
1825
|
-
key: `xLabel_bar_${
|
|
1826
|
-
class: V(`xLabel_bar_${
|
|
1827
|
-
style:
|
|
1853
|
+
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (r(), l("g", ga, [
|
|
1854
|
+
(r(!0), l(I, null, m(e.barSet, (i, h) => (r(), l("g", {
|
|
1855
|
+
key: `xLabel_bar_${h}`,
|
|
1856
|
+
class: V(`xLabel_bar_${h}`),
|
|
1857
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1828
1858
|
}, [
|
|
1829
|
-
(r(!0), l(
|
|
1830
|
-
key: `xLabel_bar_${
|
|
1859
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1860
|
+
key: `xLabel_bar_${h}_${d}`
|
|
1831
1861
|
}, [
|
|
1832
|
-
n && (!Object.hasOwn(
|
|
1862
|
+
n && (!Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d) && e.FINAL_CONFIG.bar.labels.show ? (r(), l("text", {
|
|
1833
1863
|
key: 0,
|
|
1834
1864
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1835
1865
|
y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
@@ -1840,38 +1870,38 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1840
1870
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1841
1871
|
n.value,
|
|
1842
1872
|
e.dataLabel({
|
|
1843
|
-
p:
|
|
1873
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1844
1874
|
v: n.value,
|
|
1845
|
-
s:
|
|
1875
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1846
1876
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1847
1877
|
}),
|
|
1848
1878
|
{
|
|
1849
1879
|
datapoint: n,
|
|
1850
|
-
serie:
|
|
1880
|
+
serie: i
|
|
1851
1881
|
}
|
|
1852
|
-
) : ""), 9,
|
|
1882
|
+
) : ""), 9, fa)) : c("", !0),
|
|
1853
1883
|
n && e.FINAL_CONFIG.bar.serieName.show ? (r(), l("text", {
|
|
1854
1884
|
key: 1,
|
|
1855
1885
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1856
1886
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1857
1887
|
"text-anchor": "middle",
|
|
1858
1888
|
"font-size": t.fontSizes.plotLabels,
|
|
1859
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
1889
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? i.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1860
1890
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1861
|
-
}, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source:
|
|
1891
|
+
}, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: i.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : i.name), 9, Ia)) : c("", !0)
|
|
1862
1892
|
]))), 128))
|
|
1863
1893
|
], 6))), 128))
|
|
1864
1894
|
])) : c("", !0),
|
|
1865
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g",
|
|
1866
|
-
(r(!0), l(
|
|
1867
|
-
key: `xLabel_plot_${
|
|
1868
|
-
class: V(`xLabel_plot_${
|
|
1869
|
-
style:
|
|
1895
|
+
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g", Na, [
|
|
1896
|
+
(r(!0), l(I, null, m(e.plotSet, (i, h) => (r(), l("g", {
|
|
1897
|
+
key: `xLabel_plot_${h}`,
|
|
1898
|
+
class: V(`xLabel_plot_${h}`),
|
|
1899
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1870
1900
|
}, [
|
|
1871
|
-
(r(!0), l(
|
|
1872
|
-
key: `xLabel_plot_${
|
|
1901
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1902
|
+
key: `xLabel_plot_${h}_${d}`
|
|
1873
1903
|
}, [
|
|
1874
|
-
n && !Object.hasOwn(
|
|
1904
|
+
n && !Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (r(), l("text", {
|
|
1875
1905
|
key: 0,
|
|
1876
1906
|
x: n.x,
|
|
1877
1907
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
@@ -1882,17 +1912,17 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1882
1912
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1883
1913
|
n.value,
|
|
1884
1914
|
e.dataLabel({
|
|
1885
|
-
p:
|
|
1915
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1886
1916
|
v: n.value,
|
|
1887
|
-
s:
|
|
1917
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1888
1918
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1889
1919
|
}),
|
|
1890
1920
|
{
|
|
1891
1921
|
datapoint: n,
|
|
1892
|
-
serie:
|
|
1922
|
+
serie: i
|
|
1893
1923
|
}
|
|
1894
|
-
) : ""), 9,
|
|
1895
|
-
n && d === 0 &&
|
|
1924
|
+
) : ""), 9, ma)) : c("", !0),
|
|
1925
|
+
n && d === 0 && i.useTag && i.useTag === "start" ? (r(), l("foreignObject", {
|
|
1896
1926
|
key: 1,
|
|
1897
1927
|
x: n.x,
|
|
1898
1928
|
y: n.y - 20,
|
|
@@ -1900,35 +1930,35 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1900
1930
|
width: "150",
|
|
1901
1931
|
style: { overflow: "visible" }
|
|
1902
1932
|
}, [
|
|
1903
|
-
|
|
1904
|
-
style:
|
|
1905
|
-
}, S(
|
|
1906
|
-
], 8,
|
|
1907
|
-
n && d ===
|
|
1933
|
+
f("div", {
|
|
1934
|
+
style: L(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1935
|
+
}, S(i.name), 5)
|
|
1936
|
+
], 8, xa)) : c("", !0),
|
|
1937
|
+
n && d === i.plots.length - 1 && i.useTag && i.useTag === "end" ? (r(), l("foreignObject", {
|
|
1908
1938
|
key: 2,
|
|
1909
|
-
x: n.x -
|
|
1939
|
+
x: n.x - i.name.length * (t.fontSizes.plotLabels / 2),
|
|
1910
1940
|
y: n.y - 20,
|
|
1911
1941
|
height: 24,
|
|
1912
1942
|
width: "150",
|
|
1913
1943
|
style: { overflow: "visible" }
|
|
1914
1944
|
}, [
|
|
1915
|
-
|
|
1916
|
-
style:
|
|
1917
|
-
}, S(
|
|
1918
|
-
], 8,
|
|
1945
|
+
f("div", {
|
|
1946
|
+
style: L(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1947
|
+
}, S(i.name), 5)
|
|
1948
|
+
], 8, ba)) : c("", !0)
|
|
1919
1949
|
]))), 128))
|
|
1920
1950
|
], 6))), 128))
|
|
1921
1951
|
])) : c("", !0),
|
|
1922
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g",
|
|
1923
|
-
(r(!0), l(
|
|
1924
|
-
key: `xLabel_line_${
|
|
1925
|
-
class: V(`xLabel_line_${
|
|
1926
|
-
style:
|
|
1952
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g", Fa, [
|
|
1953
|
+
(r(!0), l(I, null, m(e.lineSet, (i, h) => (r(), l("g", {
|
|
1954
|
+
key: `xLabel_line_${h}`,
|
|
1955
|
+
class: V(`xLabel_line_${h}`),
|
|
1956
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1927
1957
|
}, [
|
|
1928
|
-
(r(!0), l(
|
|
1929
|
-
key: `xLabel_line_${
|
|
1958
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1959
|
+
key: `xLabel_line_${h}_${d}`
|
|
1930
1960
|
}, [
|
|
1931
|
-
n && !Object.hasOwn(
|
|
1961
|
+
n && !Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (r(), l("text", {
|
|
1932
1962
|
key: 0,
|
|
1933
1963
|
x: n.x,
|
|
1934
1964
|
y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
@@ -1939,17 +1969,17 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1939
1969
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1940
1970
|
n.value,
|
|
1941
1971
|
e.dataLabel({
|
|
1942
|
-
p:
|
|
1972
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1943
1973
|
v: n.value,
|
|
1944
|
-
s:
|
|
1974
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1945
1975
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1946
1976
|
}),
|
|
1947
1977
|
{
|
|
1948
1978
|
datapoint: n,
|
|
1949
|
-
serie:
|
|
1979
|
+
serie: i
|
|
1950
1980
|
}
|
|
1951
|
-
) : ""), 9,
|
|
1952
|
-
n && d === 0 &&
|
|
1981
|
+
) : ""), 9, _a)) : c("", !0),
|
|
1982
|
+
n && d === 0 && i.useTag && i.useTag === "start" ? (r(), l("foreignObject", {
|
|
1953
1983
|
key: 1,
|
|
1954
1984
|
x: n.x,
|
|
1955
1985
|
y: n.y - 20,
|
|
@@ -1957,119 +1987,119 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1957
1987
|
width: "150",
|
|
1958
1988
|
style: { overflow: "visible" }
|
|
1959
1989
|
}, [
|
|
1960
|
-
|
|
1961
|
-
style:
|
|
1962
|
-
}, S(
|
|
1963
|
-
], 8,
|
|
1964
|
-
n && d ===
|
|
1990
|
+
f("div", {
|
|
1991
|
+
style: L(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1992
|
+
}, S(i.name), 5)
|
|
1993
|
+
], 8, Aa)) : c("", !0),
|
|
1994
|
+
n && d === i.plots.length - 1 && i.useTag && i.useTag === "end" ? (r(), l("foreignObject", {
|
|
1965
1995
|
key: 2,
|
|
1966
|
-
x: n.x -
|
|
1996
|
+
x: n.x - i.name.length * (t.fontSizes.plotLabels / 2),
|
|
1967
1997
|
y: n.y - 20,
|
|
1968
1998
|
height: 24,
|
|
1969
1999
|
width: "150",
|
|
1970
2000
|
style: { overflow: "visible" }
|
|
1971
2001
|
}, [
|
|
1972
|
-
|
|
1973
|
-
style:
|
|
1974
|
-
}, S(
|
|
1975
|
-
], 8,
|
|
2002
|
+
f("div", {
|
|
2003
|
+
style: L(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
2004
|
+
}, S(i.name), 5)
|
|
2005
|
+
], 8, ya)) : c("", !0)
|
|
1976
2006
|
]))), 128))
|
|
1977
2007
|
], 6))), 128))
|
|
1978
2008
|
])) : c("", !0),
|
|
1979
|
-
(r(!0), l(
|
|
1980
|
-
key: `xLabel_line_${
|
|
1981
|
-
class: V(`xLabel_line_${
|
|
1982
|
-
style:
|
|
2009
|
+
(r(!0), l(I, null, m(e.lineSet, (i, h) => (r(), l("g", {
|
|
2010
|
+
key: `xLabel_line_${h}`,
|
|
2011
|
+
class: V(`xLabel_line_${h}`),
|
|
2012
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1983
2013
|
}, [
|
|
1984
|
-
(r(!0), l(
|
|
1985
|
-
key: `xLabel_line_${
|
|
2014
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
2015
|
+
key: `xLabel_line_${h}_${d}`
|
|
1986
2016
|
}, [
|
|
1987
|
-
n && d === 0 &&
|
|
2017
|
+
n && d === 0 && i.showSerieName && i.showSerieName === "start" ? (r(), l("text", {
|
|
1988
2018
|
key: 0,
|
|
1989
2019
|
x: n.x - t.fontSizes.plotLabels,
|
|
1990
2020
|
y: n.y,
|
|
1991
2021
|
"font-size": t.fontSizes.plotLabels,
|
|
1992
2022
|
"text-anchor": "end",
|
|
1993
|
-
fill:
|
|
2023
|
+
fill: i.color,
|
|
1994
2024
|
innerHTML: e.createTSpans({
|
|
1995
|
-
content:
|
|
2025
|
+
content: i.name,
|
|
1996
2026
|
fontSize: t.fontSizes.plotLabels,
|
|
1997
|
-
fill:
|
|
2027
|
+
fill: i.color,
|
|
1998
2028
|
x: n.x - t.fontSizes.plotLabels,
|
|
1999
2029
|
y: n.y,
|
|
2000
2030
|
maxWords: 2
|
|
2001
2031
|
})
|
|
2002
|
-
}, null, 8,
|
|
2003
|
-
n && d ===
|
|
2032
|
+
}, null, 8, La)) : c("", !0),
|
|
2033
|
+
n && d === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (r(), l("text", {
|
|
2004
2034
|
key: 1,
|
|
2005
2035
|
x: n.x + t.fontSizes.plotLabels,
|
|
2006
2036
|
y: n.y,
|
|
2007
2037
|
"font-size": t.fontSizes.plotLabels,
|
|
2008
2038
|
"text-anchor": "start",
|
|
2009
|
-
fill:
|
|
2039
|
+
fill: i.color,
|
|
2010
2040
|
innerHTML: e.createTSpans({
|
|
2011
|
-
content:
|
|
2041
|
+
content: i.name,
|
|
2012
2042
|
fontSize: t.fontSizes.plotLabels,
|
|
2013
|
-
fill:
|
|
2043
|
+
fill: i.color,
|
|
2014
2044
|
x: n.x + t.fontSizes.plotLabels,
|
|
2015
2045
|
y: n.y,
|
|
2016
2046
|
maxWords: 2
|
|
2017
2047
|
})
|
|
2018
|
-
}, null, 8,
|
|
2048
|
+
}, null, 8, Ca)) : c("", !0)
|
|
2019
2049
|
]))), 128))
|
|
2020
2050
|
], 6))), 128)),
|
|
2021
|
-
(r(!0), l(
|
|
2022
|
-
key: `xLabel_plot_${
|
|
2023
|
-
class: V(`xLabel_plot_${
|
|
2024
|
-
style:
|
|
2051
|
+
(r(!0), l(I, null, m(e.plotSet, (i, h) => (r(), l("g", {
|
|
2052
|
+
key: `xLabel_plot_${h}`,
|
|
2053
|
+
class: V(`xLabel_plot_${h}`),
|
|
2054
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2025
2055
|
}, [
|
|
2026
|
-
(r(!0), l(
|
|
2027
|
-
key: `xLabel_plot_${
|
|
2056
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
2057
|
+
key: `xLabel_plot_${h}_${d}`
|
|
2028
2058
|
}, [
|
|
2029
|
-
n && d === 0 &&
|
|
2059
|
+
n && d === 0 && i.showSerieName && i.showSerieName === "start" ? (r(), l("text", {
|
|
2030
2060
|
key: 0,
|
|
2031
2061
|
x: n.x - t.fontSizes.plotLabels,
|
|
2032
2062
|
y: n.y,
|
|
2033
2063
|
"font-size": t.fontSizes.plotLabels,
|
|
2034
2064
|
"text-anchor": "end",
|
|
2035
|
-
fill:
|
|
2065
|
+
fill: i.color,
|
|
2036
2066
|
innerHTML: e.createTSpans({
|
|
2037
|
-
content:
|
|
2067
|
+
content: i.name,
|
|
2038
2068
|
fontSize: t.fontSizes.plotLabels,
|
|
2039
|
-
fill:
|
|
2069
|
+
fill: i.color,
|
|
2040
2070
|
x: n.x - t.fontSizes.plotLabels,
|
|
2041
2071
|
y: n.y,
|
|
2042
2072
|
maxWords: 2
|
|
2043
2073
|
})
|
|
2044
|
-
}, null, 8,
|
|
2045
|
-
n && d ===
|
|
2074
|
+
}, null, 8, Sa)) : c("", !0),
|
|
2075
|
+
n && d === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (r(), l("text", {
|
|
2046
2076
|
key: 1,
|
|
2047
2077
|
x: n.x + t.fontSizes.plotLabels,
|
|
2048
2078
|
y: n.y,
|
|
2049
2079
|
"font-size": t.fontSizes.plotLabels,
|
|
2050
2080
|
"text-anchor": "start",
|
|
2051
|
-
fill:
|
|
2081
|
+
fill: i.color,
|
|
2052
2082
|
innerHTML: e.createTSpans({
|
|
2053
|
-
content:
|
|
2083
|
+
content: i.name,
|
|
2054
2084
|
fontSize: t.fontSizes.plotLabels,
|
|
2055
|
-
fill:
|
|
2085
|
+
fill: i.color,
|
|
2056
2086
|
x: n.x + t.fontSizes.plotLabels,
|
|
2057
2087
|
y: n.y,
|
|
2058
2088
|
maxWords: 2
|
|
2059
2089
|
})
|
|
2060
|
-
}, null, 8,
|
|
2090
|
+
}, null, 8, ka)) : c("", !0)
|
|
2061
2091
|
]))), 128))
|
|
2062
2092
|
], 6))), 128)),
|
|
2063
|
-
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (r(!0), l(
|
|
2064
|
-
x:
|
|
2093
|
+
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (r(!0), l(I, { key: 8 }, m(e.allScales, (i) => (r(), l("rect", {
|
|
2094
|
+
x: i.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2065
2095
|
y: e.drawingArea.top,
|
|
2066
2096
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2067
2097
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2068
|
-
fill: t.selectedScale ===
|
|
2069
|
-
onMouseenter: (
|
|
2070
|
-
onMouseleave: s[0] || (s[0] = (
|
|
2071
|
-
}, null, 40,
|
|
2072
|
-
|
|
2098
|
+
fill: t.selectedScale === i.id ? e.setOpacity(i.color, 20) : "transparent",
|
|
2099
|
+
onMouseenter: (h) => t.selectedScale = i.id,
|
|
2100
|
+
onMouseleave: s[0] || (s[0] = (h) => t.selectedScale = null)
|
|
2101
|
+
}, null, 40, wa))), 256)) : c("", !0),
|
|
2102
|
+
f("g", null, [
|
|
2073
2103
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (r(), l("text", {
|
|
2074
2104
|
key: 0,
|
|
2075
2105
|
"font-size": t.fontSizes.yAxis,
|
|
@@ -2077,7 +2107,7 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2077
2107
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2078
2108
|
"text-anchor": "middle",
|
|
2079
2109
|
style: { transition: "none" }
|
|
2080
|
-
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2110
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Oa)) : c("", !0),
|
|
2081
2111
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (r(), l("text", {
|
|
2082
2112
|
key: 1,
|
|
2083
2113
|
"text-anchor": "middle",
|
|
@@ -2085,39 +2115,57 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2085
2115
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2086
2116
|
"font-size": t.fontSizes.yAxis,
|
|
2087
2117
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2088
|
-
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2118
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Ga)) : c("", !0)
|
|
2089
2119
|
]),
|
|
2090
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), l("g",
|
|
2091
|
-
(r(!0), l(
|
|
2092
|
-
key: `time_label_${
|
|
2120
|
+
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), l("g", va, [
|
|
2121
|
+
a.$slots["time-label"] ? (r(!0), l(I, { key: 0 }, m(e.timeLabels, (i, h) => (r(), l("g", {
|
|
2122
|
+
key: `time_label_${h}`
|
|
2093
2123
|
}, [
|
|
2094
|
-
|
|
2124
|
+
w(a.$slots, "time-label", B(E({
|
|
2125
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2,
|
|
2126
|
+
y: e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
|
|
2127
|
+
fontSize: t.fontSizes.xAxis,
|
|
2128
|
+
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2129
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2130
|
+
absoluteIndex: i.absoluteIndex,
|
|
2131
|
+
content: i.text,
|
|
2132
|
+
textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2133
|
+
show: i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
|
|
2134
|
+
})), void 0, !0)
|
|
2135
|
+
]))), 128)) : (r(!0), l(I, { key: 1 }, m(e.timeLabels, (i, h) => (r(), l("g", {
|
|
2136
|
+
key: `time_label_${h}`
|
|
2137
|
+
}, [
|
|
2138
|
+
i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (r(), l("text", {
|
|
2095
2139
|
key: 0,
|
|
2096
2140
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2097
2141
|
"font-size": t.fontSizes.xAxis,
|
|
2098
2142
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2099
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2100
|
-
|
|
2143
|
+
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2}, ${e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,
|
|
2144
|
+
style: {
|
|
2145
|
+
cursor: "pointer"
|
|
2146
|
+
},
|
|
2147
|
+
onClick: () => e.selectTimeLabel(i, h)
|
|
2148
|
+
}, S(i.text || ""), 9, pa)) : c("", !0)
|
|
2101
2149
|
]))), 128))
|
|
2102
2150
|
])) : c("", !0),
|
|
2103
|
-
|
|
2104
|
-
(r(!0), l(
|
|
2105
|
-
key: `tooltip_trap_${
|
|
2151
|
+
f("g", null, [
|
|
2152
|
+
(r(!0), l(I, null, m(e.maxSeries, (i, h) => (r(), l("g", {
|
|
2153
|
+
key: `tooltip_trap_${h}`
|
|
2106
2154
|
}, [
|
|
2107
|
-
|
|
2155
|
+
f("rect", {
|
|
2108
2156
|
"data-cy-trap": "",
|
|
2109
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2157
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
2110
2158
|
y: e.drawingArea.top,
|
|
2111
2159
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2112
2160
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2113
2161
|
fill: "transparent",
|
|
2114
|
-
onMouseenter: (n) => e.toggleTooltipVisibility(!0,
|
|
2162
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
|
|
2115
2163
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2116
|
-
onClick: (n) => e.selectX(
|
|
2117
|
-
}, null, 40,
|
|
2164
|
+
onClick: (n) => e.selectX(h)
|
|
2165
|
+
}, null, 40, za)
|
|
2118
2166
|
]))), 128))
|
|
2119
2167
|
]),
|
|
2120
|
-
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (r(), l("g",
|
|
2168
|
+
e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (r(), l("g", Ma, [
|
|
2121
2169
|
(r(), l("foreignObject", {
|
|
2122
2170
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) - 100 + e.drawingArea.width / e.maxSeries / 2,
|
|
2123
2171
|
y: e.drawingArea.bottom,
|
|
@@ -2125,23 +2173,23 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2125
2173
|
height: "40",
|
|
2126
2174
|
style: { overflow: "visible !important" }
|
|
2127
2175
|
}, [
|
|
2128
|
-
|
|
2176
|
+
f("div", {
|
|
2129
2177
|
class: "vue-ui-xy-time-tag",
|
|
2130
|
-
style:
|
|
2131
|
-
}, S(e.timeLabels[(t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)] || (t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)), 5)
|
|
2132
|
-
], 8,
|
|
2133
|
-
|
|
2178
|
+
style: L(`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`)
|
|
2179
|
+
}, S(e.timeLabels[(t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)].text || (t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)), 5)
|
|
2180
|
+
], 8, Ta)),
|
|
2181
|
+
f("circle", {
|
|
2134
2182
|
cx: e.drawingArea.left + e.drawingArea.width / e.maxSeries * ((t.selectedSerieIndex !== null ? t.selectedSerieIndex : 0) || (t.selectedMinimapIndex !== null ? t.selectedMinimapIndex : 0)) + e.drawingArea.width / e.maxSeries / 2,
|
|
2135
2183
|
cy: e.drawingArea.bottom,
|
|
2136
2184
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2137
2185
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2138
|
-
}, null, 8,
|
|
2186
|
+
}, null, 8, Pa)
|
|
2139
2187
|
])) : c("", !0)
|
|
2140
2188
|
])) : c("", !0),
|
|
2141
|
-
|
|
2189
|
+
w(a.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2142
2190
|
], 14, Je)) : c("", !0),
|
|
2143
|
-
|
|
2144
|
-
|
|
2191
|
+
a.$slots.watermark ? (r(), l("div", Va, [
|
|
2192
|
+
w(a.$slots, "watermark", B(E({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
2145
2193
|
])) : c("", !0),
|
|
2146
2194
|
e.isDataset ? c("", !0) : (r(), D(T, {
|
|
2147
2195
|
key: 6,
|
|
@@ -2186,48 +2234,50 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2186
2234
|
valueStart: t.slicer.start,
|
|
2187
2235
|
valueEnd: t.slicer.end,
|
|
2188
2236
|
start: t.slicer.start,
|
|
2189
|
-
"onUpdate:start": s[2] || (s[2] = (
|
|
2237
|
+
"onUpdate:start": s[2] || (s[2] = (i) => t.slicer.start = i),
|
|
2190
2238
|
end: t.slicer.end,
|
|
2191
|
-
"onUpdate:end": s[3] || (s[3] = (
|
|
2239
|
+
"onUpdate:end": s[3] || (s[3] = (i) => t.slicer.end = i),
|
|
2240
|
+
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2241
|
+
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((i) => e.largestTriangleThreeBucketsArray({ data: i.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
|
|
2192
2242
|
onReset: e.refreshSlicer,
|
|
2193
2243
|
onTrapMouse: e.selectMinimapIndex
|
|
2194
2244
|
}, {
|
|
2195
|
-
"reset-action":
|
|
2196
|
-
|
|
2245
|
+
"reset-action": M(({ reset: i }) => [
|
|
2246
|
+
w(a.$slots, "reset-action", B(E({ reset: i })), void 0, !0)
|
|
2197
2247
|
]),
|
|
2198
2248
|
_: 3
|
|
2199
|
-
}, 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"])) : c("", !0),
|
|
2249
|
+
}, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "onReset", "onTrapMouse"])) : c("", !0),
|
|
2200
2250
|
e.FINAL_CONFIG.chart.legend.show ? (r(), l("div", {
|
|
2201
2251
|
key: 8,
|
|
2202
2252
|
ref: "chartLegend",
|
|
2203
2253
|
class: "vue-ui-xy-legend",
|
|
2204
|
-
style:
|
|
2254
|
+
style: L(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2205
2255
|
}, [
|
|
2206
|
-
(r(!0), l(
|
|
2207
|
-
key: `div_legend_item_${
|
|
2208
|
-
onClick: (n) => e.segregate(
|
|
2209
|
-
class: V({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(
|
|
2256
|
+
(r(!0), l(I, null, m(e.absoluteDataset, (i, h) => (r(), l("div", {
|
|
2257
|
+
key: `div_legend_item_${h}`,
|
|
2258
|
+
onClick: (n) => e.segregate(i),
|
|
2259
|
+
class: V({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(i.id) })
|
|
2210
2260
|
}, [
|
|
2211
|
-
t.icons[
|
|
2212
|
-
|
|
2261
|
+
t.icons[i.type] === "line" ? (r(), l("svg", Da, [
|
|
2262
|
+
f("rect", {
|
|
2213
2263
|
x: "0",
|
|
2214
2264
|
y: "7",
|
|
2215
2265
|
rx: "3",
|
|
2216
2266
|
stroke: "none",
|
|
2217
2267
|
height: "4",
|
|
2218
2268
|
width: "20",
|
|
2219
|
-
fill:
|
|
2220
|
-
}, null, 8,
|
|
2269
|
+
fill: i.color
|
|
2270
|
+
}, null, 8, Ba),
|
|
2221
2271
|
X(b, {
|
|
2222
2272
|
plot: { x: 10, y: 9 },
|
|
2223
2273
|
radius: 4,
|
|
2224
|
-
color:
|
|
2225
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2274
|
+
color: i.color,
|
|
2275
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
2226
2276
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2227
2277
|
strokeWidth: 1
|
|
2228
2278
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2229
|
-
])) : (r(), l("svg",
|
|
2230
|
-
t.icons[
|
|
2279
|
+
])) : (r(), l("svg", Ea, [
|
|
2280
|
+
t.icons[i.type] === "bar" ? (r(), l("rect", {
|
|
2231
2281
|
key: 0,
|
|
2232
2282
|
x: "0",
|
|
2233
2283
|
y: "0",
|
|
@@ -2235,24 +2285,24 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2235
2285
|
height: "12",
|
|
2236
2286
|
width: "12",
|
|
2237
2287
|
stroke: "none",
|
|
2238
|
-
fill:
|
|
2239
|
-
}, null, 8,
|
|
2288
|
+
fill: i.color
|
|
2289
|
+
}, null, 8, Ha)) : (r(), D(b, {
|
|
2240
2290
|
key: 1,
|
|
2241
2291
|
plot: { x: 6, y: 6 },
|
|
2242
2292
|
radius: 5,
|
|
2243
|
-
color:
|
|
2244
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2293
|
+
color: i.color,
|
|
2294
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle"
|
|
2245
2295
|
}, null, 8, ["color", "shape"]))
|
|
2246
2296
|
])),
|
|
2247
|
-
|
|
2248
|
-
style:
|
|
2249
|
-
}, S(
|
|
2250
|
-
], 10,
|
|
2251
|
-
], 4)) : (r(), l("div",
|
|
2252
|
-
|
|
2297
|
+
f("span", {
|
|
2298
|
+
style: L(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2299
|
+
}, S(i.name), 5)
|
|
2300
|
+
], 10, Ra))), 128))
|
|
2301
|
+
], 4)) : (r(), l("div", Wa, [
|
|
2302
|
+
w(a.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2253
2303
|
], 512)),
|
|
2254
|
-
|
|
2255
|
-
|
|
2304
|
+
a.$slots.source ? (r(), l("div", Ya, [
|
|
2305
|
+
w(a.$slots, "source", {}, void 0, !0)
|
|
2256
2306
|
], 512)) : c("", !0),
|
|
2257
2307
|
X(p, {
|
|
2258
2308
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
@@ -2265,19 +2315,20 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2265
2315
|
backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
|
|
2266
2316
|
position: e.FINAL_CONFIG.chart.tooltip.position,
|
|
2267
2317
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2268
|
-
parent:
|
|
2318
|
+
parent: a.$refs.chart,
|
|
2269
2319
|
content: e.tooltipContent,
|
|
2320
|
+
isFullscreen: t.isFullscreen,
|
|
2270
2321
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2271
2322
|
}, {
|
|
2272
|
-
"tooltip-before":
|
|
2273
|
-
|
|
2323
|
+
"tooltip-before": M(() => [
|
|
2324
|
+
w(a.$slots, "tooltip-before", B(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2274
2325
|
]),
|
|
2275
|
-
"tooltip-after":
|
|
2276
|
-
|
|
2326
|
+
"tooltip-after": M(() => [
|
|
2327
|
+
w(a.$slots, "tooltip-after", B(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2277
2328
|
]),
|
|
2278
2329
|
_: 3
|
|
2279
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
2280
|
-
e.isDataset ? (r(), D(
|
|
2330
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
2331
|
+
e.isDataset ? (r(), D(z, {
|
|
2281
2332
|
key: 11,
|
|
2282
2333
|
hideDetails: "",
|
|
2283
2334
|
config: {
|
|
@@ -2293,22 +2344,22 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2293
2344
|
}
|
|
2294
2345
|
}
|
|
2295
2346
|
}, {
|
|
2296
|
-
content:
|
|
2297
|
-
|
|
2298
|
-
style:
|
|
2347
|
+
content: M(() => [
|
|
2348
|
+
f("div", {
|
|
2349
|
+
style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2299
2350
|
}, [
|
|
2300
|
-
|
|
2301
|
-
|
|
2351
|
+
f("div", Xa, [
|
|
2352
|
+
Ee(f("input", {
|
|
2302
2353
|
type: "checkbox",
|
|
2303
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
2354
|
+
"onUpdate:modelValue": s[4] || (s[4] = (i) => t.showSparklineTable = i)
|
|
2304
2355
|
}, null, 512), [
|
|
2305
|
-
[
|
|
2356
|
+
[He, t.showSparklineTable]
|
|
2306
2357
|
]),
|
|
2307
|
-
|
|
2308
|
-
onClick: s[5] || (s[5] = (
|
|
2358
|
+
f("div", {
|
|
2359
|
+
onClick: s[5] || (s[5] = (i) => t.showSparklineTable = !t.showSparklineTable),
|
|
2309
2360
|
style: { cursor: "pointer" }
|
|
2310
2361
|
}, [
|
|
2311
|
-
X(
|
|
2362
|
+
X(O, {
|
|
2312
2363
|
name: "chartLine",
|
|
2313
2364
|
size: 20,
|
|
2314
2365
|
stroke: e.FINAL_CONFIG.chart.color
|
|
@@ -2319,22 +2370,22 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2319
2370
|
key: `sparkline_${t.segregateStep}`,
|
|
2320
2371
|
dataset: e.tableSparklineDataset,
|
|
2321
2372
|
config: e.tableSparklineConfig
|
|
2322
|
-
}, null, 8, ["dataset", "config"])) : (r(), D(
|
|
2373
|
+
}, null, 8, ["dataset", "config"])) : (r(), D(C, {
|
|
2323
2374
|
key: `table_${t.tableStep}`,
|
|
2324
2375
|
colNames: e.dataTable.colNames,
|
|
2325
2376
|
head: e.dataTable.head,
|
|
2326
2377
|
body: e.dataTable.body,
|
|
2327
2378
|
config: e.dataTable.config,
|
|
2328
2379
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2329
|
-
onClose: s[6] || (s[6] = (
|
|
2380
|
+
onClose: s[6] || (s[6] = (i) => t.mutableConfig.showTable = !1)
|
|
2330
2381
|
}, {
|
|
2331
|
-
th:
|
|
2332
|
-
|
|
2382
|
+
th: M(({ th: i }) => [
|
|
2383
|
+
f("div", { innerHTML: i }, null, 8, qa)
|
|
2333
2384
|
]),
|
|
2334
|
-
td:
|
|
2335
|
-
|
|
2385
|
+
td: M(({ td: i }) => [
|
|
2386
|
+
We(S(isNaN(Number(i)) ? i : e.dataLabel({
|
|
2336
2387
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2337
|
-
v:
|
|
2388
|
+
v: i,
|
|
2338
2389
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2339
2390
|
r: e.FINAL_CONFIG.table.rounding
|
|
2340
2391
|
})), 1)
|
|
@@ -2347,7 +2398,7 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2347
2398
|
}, 8, ["config"])) : c("", !0)
|
|
2348
2399
|
], 14, Ue);
|
|
2349
2400
|
}
|
|
2350
|
-
const
|
|
2401
|
+
const ci = /* @__PURE__ */ Ye(qe, [["render", Ua], ["__scopeId", "data-v-ad7181b3"]]);
|
|
2351
2402
|
export {
|
|
2352
|
-
|
|
2403
|
+
ci as default
|
|
2353
2404
|
};
|