vue-data-ui 2.4.42 → 2.4.44
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-DTscDttD.cjs → Arrow-D7FfpPjv.cjs} +1 -1
- package/dist/{Arrow-DE71uBJZ.js → Arrow-DabU4Tq7.js} +1 -1
- package/dist/{BaseIcon-C8XxmpRq.js → BaseIcon-DgOZGFA6.js} +1 -1
- package/dist/{BaseIcon-COOfxsl_.cjs → BaseIcon-vmPfwVXS.cjs} +1 -1
- package/dist/{DataTable-D_w08xos.js → DataTable-ByILXTgq.js} +2 -2
- package/dist/{DataTable-DEdQvqB1.cjs → DataTable-WzoXT7XP.cjs} +1 -1
- package/dist/{Legend-BWDoQii_.js → Legend-CJAbBncx.js} +1 -1
- package/dist/{Legend-C4rlR-Ge.cjs → Legend-eRHr8IFu.cjs} +1 -1
- package/dist/{PackageVersion-CH6MCx6T.js → PackageVersion-2fR7Awu1.js} +1 -1
- package/dist/{PackageVersion-DKyD7D76.cjs → PackageVersion-DylCZJMA.cjs} +1 -1
- package/dist/{PenAndPaper-Dc2zn4C0.cjs → PenAndPaper-2aIJsXNH.cjs} +1 -1
- package/dist/{PenAndPaper-BWTR3U2d.js → PenAndPaper-wVL9QD9U.js} +3 -3
- package/dist/{Shape-xrlfL_v4.js → Shape-JMJZs7By.js} +1 -1
- package/dist/{Shape-BLS-KzBD.cjs → Shape-nGoGILeB.cjs} +1 -1
- package/dist/{Slicer-8gKX0l4Q.cjs → Slicer-BLuFaL8r.cjs} +1 -1
- package/dist/{Slicer-DIYseEL1.js → Slicer-Ce0VzdTY.js} +2 -2
- package/dist/{Title-B-xkTfi8.cjs → Title-CtfsoH8U.cjs} +1 -1
- package/dist/{Title-Cnl9ySNH.js → Title-Dj5wajqV.js} +1 -1
- package/dist/{Tooltip-Brbj6DqX.cjs → Tooltip-6D9aABEX.cjs} +1 -1
- package/dist/{Tooltip-DEAOBZ8h.js → Tooltip-Zrcwpy3T.js} +6 -6
- package/dist/documentation/installation.md +34 -34
- package/dist/{index-DnukYspq.js → index-D3_dyp9t.js} +4 -2
- package/dist/index-ZAR4YEAn.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-es9bVqY_.cjs → useNestedProp-C8Y0yWDq.cjs} +1 -1
- package/dist/{useNestedProp-CVOQGx-X.js → useNestedProp-qwG6HgrL.js} +1 -1
- package/dist/{usePrinter-DVIALk5e.js → usePrinter-41NUZdgl.js} +1 -1
- package/dist/{usePrinter-C9yUesCc.cjs → usePrinter-Cw4E_LYe.cjs} +1 -1
- package/dist/{vue-data-ui-BmmjmNbb.js → vue-data-ui-CKlgRX2w.js} +60 -60
- package/dist/{vue-data-ui-LA94HAVo.cjs → vue-data-ui-DPujYnT2.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DYswbvC_.cjs → vue-ui-3d-bar-CURLeBAg.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CnVJAgFO.js → vue-ui-3d-bar-DFqYSjKF.js} +9 -9
- package/dist/{vue-ui-accordion-f9NTID9e.js → vue-ui-accordion-DbKFz7vP.js} +3 -3
- package/dist/{vue-ui-accordion-D_K9gNUR.cjs → vue-ui-accordion-zOz2K8wY.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Bj9K08ws.cjs → vue-ui-age-pyramid-BzwQxubx.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CL0RB7mU.js → vue-ui-age-pyramid-DVjZHG-c.js} +10 -10
- package/dist/{vue-ui-annotator-DhwUZ4WB.cjs → vue-ui-annotator-CU8bDkP0.cjs} +1 -1
- package/dist/{vue-ui-annotator-C82vEb7R.js → vue-ui-annotator-ZDqHg-kV.js} +1 -1
- package/dist/{vue-ui-bullet-BxYYiFnu.js → vue-ui-bullet-BaQJ3acV.js} +8 -8
- package/dist/{vue-ui-bullet-D6KC5yoe.cjs → vue-ui-bullet-Dt0Ki37L.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Duf3yfwR.js → vue-ui-candlestick-C5Pzu7U1.js} +11 -11
- package/dist/{vue-ui-candlestick-lunuQ9Ka.cjs → vue-ui-candlestick-CMubhqre.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-4z9ZACSk.cjs → vue-ui-carousel-table-CL6njZH4.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DQymYeK0.js → vue-ui-carousel-table-CPE1nggj.js} +4 -4
- package/dist/{vue-ui-chestnut-DDNLUSav.js → vue-ui-chestnut-B7zSDFfA.js} +8 -8
- package/dist/{vue-ui-chestnut-iRODkXaw.cjs → vue-ui-chestnut-DHF2jlte.cjs} +1 -1
- package/dist/{vue-ui-cursor-Bdud_Fxg.js → vue-ui-cursor-GKguDqwJ.js} +2 -2
- package/dist/{vue-ui-cursor-Bt_SieMc.cjs → vue-ui-cursor-PG2njvGA.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BzRR9Ra7.cjs → vue-ui-dashboard-D2w_aK31.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CeVkJPeG.js → vue-ui-dashboard-u_haUFHY.js} +2 -2
- package/dist/{vue-ui-digits-DF3oLaaR.cjs → vue-ui-digits-DQetGFnZ.cjs} +1 -1
- package/dist/{vue-ui-digits-DtNvb8lM.js → vue-ui-digits-DjMZxTuZ.js} +2 -2
- package/dist/{vue-ui-donut-C028OlzU.js → vue-ui-donut-CmRH-JB2.js} +243 -243
- package/dist/vue-ui-donut-DQcISN6U.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-2vQPsBFq.cjs → vue-ui-donut-evolution-XrPuyr-U.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CprYApXF.js → vue-ui-donut-evolution-YntzBUIL.js} +11 -11
- package/dist/{vue-ui-dumbbell-CS8pY-mj.cjs → vue-ui-dumbbell-CCwYiUwP.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BV2LN5qt.js → vue-ui-dumbbell-DmgUkc9m.js} +10 -10
- package/dist/{vue-ui-flow-QRimZUXT.js → vue-ui-flow-CZkXzt4D.js} +9 -9
- package/dist/{vue-ui-flow-iNWWhp7U.cjs → vue-ui-flow-Ca2cA45D.cjs} +1 -1
- package/dist/{vue-ui-funnel-BL8vtmsw.cjs → vue-ui-funnel-CJAT8_1R.cjs} +1 -1
- package/dist/{vue-ui-funnel-CBymVSdd.js → vue-ui-funnel-z2OgL3Q1.js} +8 -8
- package/dist/{vue-ui-galaxy-KP3A9HVX.js → vue-ui-galaxy-CGhDJ3tA.js} +11 -11
- package/dist/{vue-ui-galaxy-DSJrMBzj.cjs → vue-ui-galaxy-bgA3s7VZ.cjs} +1 -1
- package/dist/{vue-ui-gauge-H9j8Dq5h.cjs → vue-ui-gauge-F-bvIFfG.cjs} +1 -1
- package/dist/{vue-ui-gauge-BuU0DDG0.js → vue-ui-gauge-NtnSEvX5.js} +7 -7
- package/dist/{vue-ui-gizmo-M7RalwJ6.js → vue-ui-gizmo-Bq56LDKo.js} +3 -3
- package/dist/{vue-ui-gizmo-Bl9JoMk1.cjs → vue-ui-gizmo-DBIefin8.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BXWWh4iN.cjs → vue-ui-heatmap-C0NUwPN7.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DSkfyl8j.js → vue-ui-heatmap-Dbrlismo.js} +10 -10
- package/dist/{vue-ui-history-plot-CYSDr-GH.js → vue-ui-history-plot-CMAu0w0K.js} +11 -11
- package/dist/{vue-ui-history-plot-BUoUHKx6.cjs → vue-ui-history-plot-Cd0Qgkox.cjs} +1 -1
- package/dist/{vue-ui-kpi-BXe7HQIh.cjs → vue-ui-kpi-C1a3ONse.cjs} +1 -1
- package/dist/{vue-ui-kpi-BvUaC7JA.js → vue-ui-kpi-CkRUVNcg.js} +3 -3
- package/dist/{vue-ui-mini-loader-DM8ShcKo.js → vue-ui-mini-loader-BVvBbruK.js} +2 -2
- package/dist/{vue-ui-mini-loader-zbjxzJTp.cjs → vue-ui-mini-loader-DZ1q-GO6.cjs} +1 -1
- package/dist/{vue-ui-molecule-BdIRpOM9.cjs → vue-ui-molecule-C-tmrnHA.cjs} +1 -1
- package/dist/{vue-ui-molecule-CZi84tUl.js → vue-ui-molecule-DlXNe42L.js} +11 -11
- package/dist/{vue-ui-mood-radar-DipV_UPN.cjs → vue-ui-mood-radar-DYXE1dDD.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DDnbuNdv.js → vue-ui-mood-radar-DzHvFqno.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DuxVLzDH.cjs → vue-ui-nested-donuts-BpcKwKFO.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Chuuvtu-.js → vue-ui-nested-donuts-DDpYr89I.js} +11 -11
- package/dist/{vue-ui-onion-CIRGvycb.js → vue-ui-onion-B9CAGc1E.js} +11 -11
- package/dist/{vue-ui-onion-CvlwZgpu.cjs → vue-ui-onion-_WXwSygI.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-jv7L5_x8.js → vue-ui-parallel-coordinate-plot-CdvYxx2S.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs → vue-ui-parallel-coordinate-plot-DL5vZwuT.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CjjXU43-.js → vue-ui-quadrant-CILC-e-o.js} +12 -12
- package/dist/{vue-ui-quadrant-ks_4yK85.cjs → vue-ui-quadrant-ivKVYVXn.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Br2gTOPk.cjs → vue-ui-quick-chart-DW3XlvkG.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BAVQ2SJ2.js → vue-ui-quick-chart-NIE0zUjt.js} +9 -9
- package/dist/{vue-ui-radar-CXXAYowO.js → vue-ui-radar-BonXp2ML.js} +12 -12
- package/dist/{vue-ui-radar-kjh9y4cm.cjs → vue-ui-radar-D9WtkmKW.cjs} +1 -1
- package/dist/{vue-ui-rating-EEIqiBgY.cjs → vue-ui-rating-3akEkZ0G.cjs} +1 -1
- package/dist/{vue-ui-rating-DOqMciYJ.js → vue-ui-rating-DblWs0Ay.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR3iWQV_.js → vue-ui-relation-circle-BaPqJcbF.js} +7 -7
- package/dist/{vue-ui-relation-circle-BEv568py.cjs → vue-ui-relation-circle-Bv5QA1FA.cjs} +1 -1
- package/dist/{vue-ui-rings-B--CFaNX.js → vue-ui-rings-DHa-dc3s.js} +11 -11
- package/dist/{vue-ui-rings-CgvWaw5N.cjs → vue-ui-rings-KRi0yCa1.cjs} +1 -1
- package/dist/{vue-ui-scatter-ChWlgb1L.cjs → vue-ui-scatter-C-0G6tO_.cjs} +1 -1
- package/dist/{vue-ui-scatter-C-RD4h73.js → vue-ui-scatter-CKnKyeDJ.js} +12 -12
- package/dist/{vue-ui-screenshot-CtjCOun0.cjs → vue-ui-screenshot-BIvS3Dva.cjs} +1 -1
- package/dist/{vue-ui-screenshot-C6-MOj7h.js → vue-ui-screenshot-BnQlv1n0.js} +1 -1
- package/dist/{vue-ui-skeleton-CXdyOF4T.js → vue-ui-skeleton-CaV7JuCg.js} +3 -3
- package/dist/{vue-ui-skeleton-DGCkWrND.cjs → vue-ui-skeleton-urNi7er0.cjs} +1 -1
- package/dist/{vue-ui-smiley-AYBZK1EE.cjs → vue-ui-smiley-BDJWFNUb.cjs} +1 -1
- package/dist/{vue-ui-smiley-CHXnJeLu.js → vue-ui-smiley-BkKHZRcE.js} +2 -2
- package/dist/{vue-ui-spark-trend-DO5rDGRm.js → vue-ui-spark-trend-C6B6URVX.js} +5 -5
- package/dist/{vue-ui-spark-trend-D2wIBOvT.cjs → vue-ui-spark-trend-Jrg-tgH_.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-COUcdDjn.cjs → vue-ui-sparkbar-CcPXRX01.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CU3UNgHm.js → vue-ui-sparkbar-D7A9EKVi.js} +4 -4
- package/dist/{vue-ui-sparkgauge-0810df6b.js → vue-ui-sparkgauge-C1kcwrm9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DrJzwEAh.cjs → vue-ui-sparkgauge-ZQOdaaF1.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-j7MGEYYJ.cjs → vue-ui-sparkhistogram-CZQzNQHQ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CENPsEeO.js → vue-ui-sparkhistogram-DkMaK9FC.js} +5 -5
- package/dist/{vue-ui-sparkline-CXMea9Ki.cjs → vue-ui-sparkline-DuJlR_56.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BOYreaxT.js → vue-ui-sparkline-JNv27Q7M.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-JvKmnoEy.js → vue-ui-sparkstackbar-4YKk6S2y.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BJIo5y1n.cjs → vue-ui-sparkstackbar-BStYMSiJ.cjs} +1 -1
- package/dist/vue-ui-stackbar-BKhScZJ4.cjs +6 -0
- package/dist/vue-ui-stackbar-BrBToOgd.js +1026 -0
- package/dist/{vue-ui-strip-plot-8MxOeTM_.js → vue-ui-strip-plot-BB9AjuXc.js} +11 -11
- package/dist/{vue-ui-strip-plot-CmIS1Osx.cjs → vue-ui-strip-plot-BSbIVJLB.cjs} +1 -1
- package/dist/{vue-ui-table-CS-NSZjj.js → vue-ui-table-BkfBNufP.js} +1 -1
- package/dist/{vue-ui-table-hVmeT8wY.cjs → vue-ui-table-CTwEo09l.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-k9e_RrhC.cjs → vue-ui-table-heatmap-BRa-idSR.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CGHYZFJy.js → vue-ui-table-heatmap-t6NXIulS.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CRnJVQmO.js → vue-ui-table-sparkline-CtVdHOeS.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DiMZ_mh6.cjs → vue-ui-table-sparkline-LRvAe8DG.cjs} +1 -1
- package/dist/{vue-ui-thermometer-43jmlgFC.cjs → vue-ui-thermometer-Bkj9olK0.cjs} +1 -1
- package/dist/{vue-ui-thermometer-D2BUcsvF.js → vue-ui-thermometer-Dqy_A9Ka.js} +7 -7
- package/dist/{vue-ui-timer-Dc6zOjxq.js → vue-ui-timer-BkWR-FS3.js} +5 -5
- package/dist/{vue-ui-timer-BO9Ipy0W.cjs → vue-ui-timer-C2WYUfS1.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CMUTe1vY.cjs → vue-ui-tiremarks-BXumbUyZ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-ejt0fqPg.js → vue-ui-tiremarks-Dl881FpL.js} +7 -7
- package/dist/{vue-ui-treemap-DqSHqaJK.cjs → vue-ui-treemap-CvNWsOoE.cjs} +1 -1
- package/dist/{vue-ui-treemap-DD8tFk9R.js → vue-ui-treemap-Vl47y-4n.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CxydSPHF.js → vue-ui-vertical-bar-BzkqxE45.js} +11 -11
- package/dist/{vue-ui-vertical-bar-D4dYglan.cjs → vue-ui-vertical-bar-D1EoKlII.cjs} +1 -1
- package/dist/{vue-ui-waffle-DYdcFM17.js → vue-ui-waffle-Bd4Wn4LE.js} +11 -11
- package/dist/{vue-ui-waffle-CHWAepdl.cjs → vue-ui-waffle-C6cN0uw8.cjs} +1 -1
- package/dist/{vue-ui-wheel-CxtgGGpt.js → vue-ui-wheel-D1SsLAru.js} +7 -7
- package/dist/{vue-ui-wheel-_ynSyF3l.cjs → vue-ui-wheel-OGoTipOg.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B0AhPT0k.js → vue-ui-word-cloud-C6vq-XKZ.js} +10 -10
- package/dist/{vue-ui-word-cloud-Ct16Xxaw.cjs → vue-ui-word-cloud-Da4dHp_U.cjs} +1 -1
- package/dist/{vue-ui-xy-B3346TfB.js → vue-ui-xy-Bbih4XkZ.js} +847 -805
- package/dist/vue-ui-xy-DXLSyett.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-W7YGqG7f.js → vue-ui-xy-canvas-Dtv9a_jF.js} +11 -11
- package/dist/{vue-ui-xy-canvas-DtPqmu7B.cjs → vue-ui-xy-canvas-GffgFKCU.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-B68kzBN9.cjs +0 -9
- package/dist/vue-ui-donut-o09QqVJO.cjs +0 -1
- package/dist/vue-ui-stackbar-BOAmp-no.cjs +0 -6
- package/dist/vue-ui-stackbar-C3-hx7VM.js +0 -960
- package/dist/vue-ui-xy-DHYbKvBg.cjs +0 -3
|
@@ -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, L as ee, G as te, i as
|
|
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 ze from "./BaseIcon-
|
|
8
|
-
import Me from "./vue-ui-table-sparkline-
|
|
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 Fe, Y as be, o as _e, s as Ae, w as ye, F as Le, A as Ce, u as Se } from "./index-D3_dyp9t.js";
|
|
2
|
+
import { D as ke } from "./DataTable-ByILXTgq.js";
|
|
3
|
+
import { _ as we } from "./Title-Dj5wajqV.js";
|
|
4
|
+
import { _ as Oe, u as Ge } from "./Tooltip-Zrcwpy3T.js";
|
|
5
|
+
import { U as ve } from "./usePrinter-41NUZdgl.js";
|
|
6
|
+
import { _ as pe } from "./Shape-JMJZs7By.js";
|
|
7
|
+
import ze from "./BaseIcon-DgOZGFA6.js";
|
|
8
|
+
import Me from "./vue-ui-table-sparkline-CtVdHOeS.js";
|
|
9
|
+
import Te from "./vue-ui-skeleton-CaV7JuCg.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-Ce0VzdTY.js";
|
|
11
|
+
import Ve from "./vue-ui-accordion-DbKFz7vP.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-qwG6HgrL.js";
|
|
13
|
+
import { _ as Re } from "./PackageVersion-2fR7Awu1.js";
|
|
14
|
+
import { P as De } from "./PenAndPaper-wVL9QD9U.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",
|
|
@@ -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 W = this.mutableConfig.useIndividualScale ? (
|
|
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), F = 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 = F.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, b) => {
|
|
344
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[b] + T) / p : this.ratioToMax(g), Y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * b : this.drawingArea.left + this.slot.bar * s + this.slot.bar * b * 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:
|
|
349
|
+
y: this.drawingArea.bottom - _ - C * W,
|
|
350
|
+
value: a.absoluteValues[b],
|
|
351
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)[b] || ""
|
|
354
354
|
};
|
|
355
|
-
}), d =
|
|
355
|
+
}), d = a.absoluteValues.map((g) => F.min >= 0 ? (g - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (g + Math.abs(F.min)) / (F.max + Math.abs(F.min))), H = a.series.map((g, b) => {
|
|
356
356
|
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * b : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * b * 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(
|
|
359
|
+
individualHeight: this.checkNaN(C),
|
|
360
360
|
x: this.checkNaN(W),
|
|
361
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(
|
|
362
|
-
value:
|
|
361
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[b] || 0)),
|
|
362
|
+
value: a.absoluteValues[b],
|
|
363
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)[b] || ""
|
|
366
366
|
};
|
|
367
|
-
}),
|
|
368
|
-
y:
|
|
369
|
-
value:
|
|
370
|
-
prefix:
|
|
371
|
-
suffix:
|
|
372
|
-
datapoint:
|
|
373
|
-
})), G = F.ticks.map((
|
|
374
|
-
const b = (
|
|
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 = F.ticks.map((g) => {
|
|
374
|
+
const b = (g - F.min) / (F.max - F.min);
|
|
375
375
|
return {
|
|
376
|
-
y:
|
|
377
|
-
value:
|
|
378
|
-
prefix:
|
|
379
|
-
suffix:
|
|
380
|
-
datapoint:
|
|
376
|
+
y: g >= 0 ? i - C * b : i + C * b,
|
|
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 ? F : 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 W = this.mutableConfig.useIndividualScale ? (
|
|
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), F = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + Math.abs(F), 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 - _ * F / v, z = this.drawingArea.bottom - O - _ * T / p, i = a.series.map((g, b) => {
|
|
413
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[b] + Math.abs(F)) / v : this.ratioToMax(g);
|
|
414
414
|
return {
|
|
415
415
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
416
|
-
y: this.checkNaN(this.drawingArea.bottom -
|
|
417
|
-
value:
|
|
418
|
-
comment:
|
|
416
|
+
y: this.checkNaN(this.drawingArea.bottom - O - _ * W),
|
|
417
|
+
value: a.absoluteValues[b],
|
|
418
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
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, b) => [void 0, null].includes(a.absoluteValues[b]) ? {
|
|
421
421
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
422
|
-
y:
|
|
423
|
-
value:
|
|
424
|
-
comment:
|
|
422
|
+
y: C,
|
|
423
|
+
value: a.absoluteValues[b],
|
|
424
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
425
425
|
} : {
|
|
426
426
|
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
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 = N.ticks.map((
|
|
437
|
-
const b = (
|
|
427
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[b] || 0)),
|
|
428
|
+
value: a.absoluteValues[b],
|
|
429
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
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 b = (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 - _ * b : z + _ * b,
|
|
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), F = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + F, 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 - _ * F / 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(F)) / 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]) {
|
|
@@ -659,7 +665,7 @@ const Xe = J(), qe = {
|
|
|
659
665
|
e = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${t.color}" /></svg>`;
|
|
660
666
|
break;
|
|
661
667
|
case "line":
|
|
662
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="
|
|
668
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (x = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${q({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${x}</svg>`;
|
|
663
669
|
break;
|
|
664
670
|
case "plot":
|
|
665
671
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -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,24 +734,24 @@ const Xe = J(), qe = {
|
|
|
728
734
|
}
|
|
729
735
|
},
|
|
730
736
|
mounted() {
|
|
731
|
-
this.prepareChart(), this.setupSlicer(), 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:
|
|
753
|
+
convertColorToHex: he,
|
|
754
|
+
convertConfigColors: oe,
|
|
749
755
|
convertCustomPalette: ce,
|
|
750
756
|
createCsvContent: de,
|
|
751
757
|
createSmoothPath: ue,
|
|
@@ -759,29 +765,46 @@ const Xe = J(), qe = {
|
|
|
759
765
|
isSafeValue: Fe,
|
|
760
766
|
largestTriangleThreeBucketsArray: be,
|
|
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
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({
|
|
@@ -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,
|
|
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);
|
|
825
848
|
let k = null, N = 0;
|
|
826
849
|
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend, N = k.getBoundingClientRect().height);
|
|
827
850
|
let F = 0;
|
|
828
851
|
this.$refs.source && (F = 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 - F - 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 && (F = this.$refs.source.getBoundingClientRect().height), this.height = O.contentBoxSize[0].blockSize - e - N - A - F - 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,105 +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;
|
|
915
938
|
},
|
|
916
939
|
async setupSlicer() {
|
|
917
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 = {
|
|
918
941
|
start: 0,
|
|
919
|
-
end: Math.max(...this.dataset.map((
|
|
942
|
+
end: Math.max(...this.dataset.map((a) => this.largestTriangleThreeBucketsArray({ data: a.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
|
|
920
943
|
}, this.slicerStep += 1);
|
|
921
944
|
},
|
|
922
945
|
refreshSlicer() {
|
|
923
946
|
this.setupSlicer();
|
|
924
947
|
},
|
|
925
|
-
validSlicerEnd(
|
|
926
|
-
const s = Math.max(...this.dataset.map((
|
|
927
|
-
return
|
|
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;
|
|
928
951
|
},
|
|
929
|
-
calcRectHeight(
|
|
930
|
-
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);
|
|
931
954
|
},
|
|
932
|
-
calcIndividualHeight(
|
|
933
|
-
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);
|
|
934
957
|
},
|
|
935
958
|
calcRectWidth() {
|
|
936
959
|
return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
|
|
937
960
|
},
|
|
938
|
-
calcRectX(
|
|
939
|
-
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;
|
|
940
963
|
},
|
|
941
|
-
calcRectY(
|
|
942
|
-
return
|
|
964
|
+
calcRectY(a) {
|
|
965
|
+
return a.value >= 0 ? a.y : this.zero;
|
|
943
966
|
},
|
|
944
|
-
calcIndividualRectY(
|
|
945
|
-
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;
|
|
946
969
|
},
|
|
947
|
-
canShowValue(
|
|
948
|
-
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);
|
|
949
972
|
},
|
|
950
|
-
findClosestValue(
|
|
951
|
-
let
|
|
973
|
+
findClosestValue(a, s) {
|
|
974
|
+
let o = s[0], u = Math.abs(a - s[0]);
|
|
952
975
|
for (let t = 1; t < s.length; t += 1) {
|
|
953
|
-
const e = Math.abs(
|
|
954
|
-
e <
|
|
976
|
+
const e = Math.abs(a - s[t]);
|
|
977
|
+
e < u && s[t] < a && (o = s[t], u = e);
|
|
955
978
|
}
|
|
956
|
-
return
|
|
979
|
+
return o;
|
|
957
980
|
},
|
|
958
|
-
ratioToMax(
|
|
959
|
-
return
|
|
981
|
+
ratioToMax(a) {
|
|
982
|
+
return a / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
|
|
960
983
|
},
|
|
961
|
-
selectX(
|
|
984
|
+
selectX(a) {
|
|
962
985
|
this.$emit(
|
|
963
986
|
"selectX",
|
|
964
987
|
{
|
|
965
988
|
dataset: this.relativeDataset.map((s) => ({
|
|
966
989
|
name: s.name,
|
|
967
|
-
value: [null, void 0, NaN].includes(s.absoluteValues[
|
|
990
|
+
value: [null, void 0, NaN].includes(s.absoluteValues[a]) ? null : s.absoluteValues[a],
|
|
968
991
|
color: s.color,
|
|
969
992
|
type: s.type
|
|
970
993
|
})),
|
|
971
|
-
index:
|
|
972
|
-
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[
|
|
994
|
+
index: a,
|
|
995
|
+
indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a]
|
|
973
996
|
}
|
|
974
997
|
);
|
|
975
998
|
},
|
|
976
999
|
getData() {
|
|
977
|
-
return this.absoluteDataset.map((
|
|
978
|
-
values:
|
|
979
|
-
color:
|
|
980
|
-
name:
|
|
981
|
-
type:
|
|
1000
|
+
return this.absoluteDataset.map((a) => ({
|
|
1001
|
+
values: a.absoluteValues,
|
|
1002
|
+
color: a.color,
|
|
1003
|
+
name: a.name,
|
|
1004
|
+
type: a.type
|
|
982
1005
|
}));
|
|
983
1006
|
},
|
|
984
|
-
segregate(
|
|
985
|
-
if (this.segregatedSeries.includes(
|
|
986
|
-
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);
|
|
987
1010
|
else {
|
|
988
1011
|
if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
|
|
989
|
-
this.segregatedSeries.push(
|
|
1012
|
+
this.segregatedSeries.push(a.id);
|
|
990
1013
|
}
|
|
991
1014
|
this.$emit("selectLegend", this.relativeDataset.map((s) => ({
|
|
992
1015
|
name: s.name,
|
|
@@ -995,11 +1018,11 @@ const Xe = J(), qe = {
|
|
|
995
1018
|
type: s.type
|
|
996
1019
|
}))), this.segregateStep += 1;
|
|
997
1020
|
},
|
|
998
|
-
toggleTooltipVisibility(
|
|
999
|
-
this.isTooltip =
|
|
1021
|
+
toggleTooltipVisibility(a, s = null) {
|
|
1022
|
+
this.isTooltip = a, a ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
|
|
1000
1023
|
},
|
|
1001
|
-
toggleFullscreen(
|
|
1002
|
-
this.isFullscreen =
|
|
1024
|
+
toggleFullscreen(a) {
|
|
1025
|
+
this.isFullscreen = a, this.step += 1;
|
|
1003
1026
|
},
|
|
1004
1027
|
showSpinnerPdf() {
|
|
1005
1028
|
this.isPrinting = !0;
|
|
@@ -1007,20 +1030,20 @@ const Xe = J(), qe = {
|
|
|
1007
1030
|
async generatePdf() {
|
|
1008
1031
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1009
1032
|
try {
|
|
1010
|
-
const { default:
|
|
1011
|
-
await
|
|
1033
|
+
const { default: a } = await import("./pdf-B7oVat64.js");
|
|
1034
|
+
await a({
|
|
1012
1035
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1013
1036
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy"
|
|
1014
1037
|
});
|
|
1015
|
-
} catch (
|
|
1016
|
-
console.error("Error generating PDF:",
|
|
1038
|
+
} catch (a) {
|
|
1039
|
+
console.error("Error generating PDF:", a);
|
|
1017
1040
|
} finally {
|
|
1018
1041
|
this.isPrinting = !1;
|
|
1019
1042
|
}
|
|
1020
1043
|
}, 100);
|
|
1021
1044
|
},
|
|
1022
1045
|
generateCsv() {
|
|
1023
|
-
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);
|
|
1024
1047
|
this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
|
|
1025
1048
|
},
|
|
1026
1049
|
showSpinnerImage() {
|
|
@@ -1029,14 +1052,14 @@ const Xe = J(), qe = {
|
|
|
1029
1052
|
async generateImage() {
|
|
1030
1053
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1031
1054
|
try {
|
|
1032
|
-
const { default:
|
|
1033
|
-
await
|
|
1055
|
+
const { default: a } = await import("./img-DGzWcJ4Y.js");
|
|
1056
|
+
await a({
|
|
1034
1057
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1035
1058
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
1036
1059
|
format: "png"
|
|
1037
1060
|
});
|
|
1038
|
-
} catch (
|
|
1039
|
-
console.error("Error generating image:",
|
|
1061
|
+
} catch (a) {
|
|
1062
|
+
console.error("Error generating image:", a);
|
|
1040
1063
|
} finally {
|
|
1041
1064
|
this.isImaging = !1;
|
|
1042
1065
|
}
|
|
@@ -1048,41 +1071,41 @@ const Xe = J(), qe = {
|
|
|
1048
1071
|
ref: "noTitle",
|
|
1049
1072
|
class: "vue-data-ui-no-title-space",
|
|
1050
1073
|
style: "height:36px; width: 100%; background:transparent"
|
|
1051
|
-
}, 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"], Ft = ["stop-color"], bt = ["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"], Fa = ["x", "y"], ba = { 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 = {
|
|
1052
1075
|
key: 5,
|
|
1053
1076
|
class: "vue-data-ui-watermark"
|
|
1054
|
-
},
|
|
1077
|
+
}, Ra = ["onClick"], Da = {
|
|
1055
1078
|
key: 0,
|
|
1056
1079
|
viewBox: "0 0 20 12",
|
|
1057
1080
|
height: "14",
|
|
1058
1081
|
width: "20"
|
|
1059
|
-
},
|
|
1082
|
+
}, Ba = ["stroke", "fill"], Ea = {
|
|
1060
1083
|
key: 1,
|
|
1061
1084
|
viewBox: "0 0 12 12",
|
|
1062
1085
|
height: "14",
|
|
1063
1086
|
width: "14"
|
|
1064
|
-
},
|
|
1087
|
+
}, Ha = ["fill"], Wa = {
|
|
1065
1088
|
key: 9,
|
|
1066
1089
|
ref: "chartLegend"
|
|
1067
|
-
},
|
|
1090
|
+
}, Ya = {
|
|
1068
1091
|
key: 10,
|
|
1069
1092
|
ref: "source",
|
|
1070
1093
|
dir: "auto"
|
|
1071
|
-
},
|
|
1094
|
+
}, Xa = {
|
|
1072
1095
|
style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
|
|
1073
1096
|
"data-html2canvas-ignore": ""
|
|
1074
|
-
},
|
|
1075
|
-
function
|
|
1076
|
-
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"), F = P("Shape"), T = P("Skeleton"), v = P("Slicer"), p = P("Tooltip"), O = P("BaseIcon"), _ = P("TableSparkline"), C = P("DataTable"), z = P("Accordion");
|
|
1077
1100
|
return r(), l("div", {
|
|
1078
1101
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
1079
1102
|
class: V(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1080
1103
|
ref: "chart",
|
|
1081
|
-
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%" : ""}`)
|
|
1082
1105
|
}, [
|
|
1083
1106
|
e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (r(), D(x, {
|
|
1084
1107
|
key: 0,
|
|
1085
|
-
parent:
|
|
1108
|
+
parent: a.$refs.chart,
|
|
1086
1109
|
backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1087
1110
|
color: e.FINAL_CONFIG.chart.color,
|
|
1088
1111
|
active: t.isAnnotator,
|
|
@@ -1093,9 +1116,9 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1093
1116
|
key: 2,
|
|
1094
1117
|
ref: "chartTitle",
|
|
1095
1118
|
class: "vue-ui-xy-title",
|
|
1096
|
-
style:
|
|
1119
|
+
style: L(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1097
1120
|
}, [
|
|
1098
|
-
(r(), D(
|
|
1121
|
+
(r(), D(A, {
|
|
1099
1122
|
key: `title_${t.titleStep}`,
|
|
1100
1123
|
config: {
|
|
1101
1124
|
title: {
|
|
@@ -1123,11 +1146,11 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1123
1146
|
hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
|
|
1124
1147
|
hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
|
|
1125
1148
|
hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
|
|
1126
|
-
hasStack:
|
|
1149
|
+
hasStack: o.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
|
|
1127
1150
|
hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
|
|
1128
1151
|
isStacked: t.mutableConfig.isStacked,
|
|
1129
1152
|
isFullscreen: t.isFullscreen,
|
|
1130
|
-
chartElement:
|
|
1153
|
+
chartElement: a.$refs.chart,
|
|
1131
1154
|
position: e.FINAL_CONFIG.chart.userOptions.position,
|
|
1132
1155
|
isTooltip: t.mutableConfig.showTooltip,
|
|
1133
1156
|
titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
|
|
@@ -1143,66 +1166,66 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1143
1166
|
onToggleTooltip: e.toggleTooltip,
|
|
1144
1167
|
onToggleAnnotator: e.toggleAnnotator
|
|
1145
1168
|
}, Be({ _: 2 }, [
|
|
1146
|
-
|
|
1169
|
+
a.$slots.optionTooltip ? {
|
|
1147
1170
|
name: "optionTooltip",
|
|
1148
1171
|
fn: M(() => [
|
|
1149
|
-
|
|
1172
|
+
w(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1150
1173
|
]),
|
|
1151
1174
|
key: "0"
|
|
1152
1175
|
} : void 0,
|
|
1153
|
-
|
|
1176
|
+
a.$slots.optionPdf ? {
|
|
1154
1177
|
name: "optionPdf",
|
|
1155
1178
|
fn: M(() => [
|
|
1156
|
-
|
|
1179
|
+
w(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1157
1180
|
]),
|
|
1158
1181
|
key: "1"
|
|
1159
1182
|
} : void 0,
|
|
1160
|
-
|
|
1183
|
+
a.$slots.optionCsv ? {
|
|
1161
1184
|
name: "optionCsv",
|
|
1162
1185
|
fn: M(() => [
|
|
1163
|
-
|
|
1186
|
+
w(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1164
1187
|
]),
|
|
1165
1188
|
key: "2"
|
|
1166
1189
|
} : void 0,
|
|
1167
|
-
|
|
1190
|
+
a.$slots.optionImg ? {
|
|
1168
1191
|
name: "optionImg",
|
|
1169
1192
|
fn: M(() => [
|
|
1170
|
-
|
|
1193
|
+
w(a.$slots, "optionImg", {}, void 0, !0)
|
|
1171
1194
|
]),
|
|
1172
1195
|
key: "3"
|
|
1173
1196
|
} : void 0,
|
|
1174
|
-
|
|
1197
|
+
a.$slots.optionTable ? {
|
|
1175
1198
|
name: "optionTable",
|
|
1176
1199
|
fn: M(() => [
|
|
1177
|
-
|
|
1200
|
+
w(a.$slots, "optionTable", {}, void 0, !0)
|
|
1178
1201
|
]),
|
|
1179
1202
|
key: "4"
|
|
1180
1203
|
} : void 0,
|
|
1181
|
-
|
|
1204
|
+
a.$slots.optionLabels ? {
|
|
1182
1205
|
name: "optionLabels",
|
|
1183
1206
|
fn: M(() => [
|
|
1184
|
-
|
|
1207
|
+
w(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1185
1208
|
]),
|
|
1186
1209
|
key: "5"
|
|
1187
1210
|
} : void 0,
|
|
1188
|
-
|
|
1211
|
+
a.$slots.optionStack ? {
|
|
1189
1212
|
name: "optionStack",
|
|
1190
1213
|
fn: M(() => [
|
|
1191
|
-
|
|
1214
|
+
w(a.$slots, "optionStack", {}, void 0, !0)
|
|
1192
1215
|
]),
|
|
1193
1216
|
key: "6"
|
|
1194
1217
|
} : void 0,
|
|
1195
|
-
|
|
1218
|
+
a.$slots.optionFullscreen ? {
|
|
1196
1219
|
name: "optionFullscreen",
|
|
1197
|
-
fn: M(({ toggleFullscreen:
|
|
1198
|
-
|
|
1220
|
+
fn: M(({ toggleFullscreen: i, isFullscreen: h }) => [
|
|
1221
|
+
w(a.$slots, "optionFullscreen", B(E({ toggleFullscreen: i, isFullscreen: h })), void 0, !0)
|
|
1199
1222
|
]),
|
|
1200
1223
|
key: "7"
|
|
1201
1224
|
} : void 0,
|
|
1202
|
-
|
|
1225
|
+
a.$slots.optionAnnotator ? {
|
|
1203
1226
|
name: "optionAnnotator",
|
|
1204
|
-
fn: M(({ toggleAnnotator:
|
|
1205
|
-
|
|
1227
|
+
fn: M(({ toggleAnnotator: i, isAnnotator: h }) => [
|
|
1228
|
+
w(a.$slots, "optionAnnotator", B(E({ toggleAnnotator: i, isAnnotator: h })), void 0, !0)
|
|
1206
1229
|
]),
|
|
1207
1230
|
key: "8"
|
|
1208
1231
|
} : void 0
|
|
@@ -1213,11 +1236,11 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1213
1236
|
class: V([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
|
|
1214
1237
|
width: "100%",
|
|
1215
1238
|
viewBox: t.viewBox,
|
|
1216
|
-
style:
|
|
1239
|
+
style: L(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
|
|
1217
1240
|
}, [
|
|
1218
1241
|
X(N),
|
|
1219
1242
|
e.maxSeries > 0 ? (r(), l("g", Ke, [
|
|
1220
|
-
|
|
1243
|
+
f("g", Qe, [
|
|
1221
1244
|
e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), l("line", {
|
|
1222
1245
|
key: 0,
|
|
1223
1246
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
@@ -1228,24 +1251,24 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1228
1251
|
y2: e.drawingArea.bottom,
|
|
1229
1252
|
"stroke-linecap": "round"
|
|
1230
1253
|
}, null, 8, je)) : c("", !0),
|
|
1231
|
-
t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(!0), l(I, { key: 2 }, m(e.allScales, (
|
|
1232
|
-
|
|
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", {
|
|
1233
1256
|
x1: e.drawingArea.left + e.xPadding,
|
|
1234
1257
|
x2: e.drawingArea.right - e.xPadding,
|
|
1235
|
-
y1: e.checkNaN(
|
|
1236
|
-
y2: e.checkNaN(
|
|
1237
|
-
stroke:
|
|
1258
|
+
y1: e.checkNaN(h.y),
|
|
1259
|
+
y2: e.checkNaN(h.y),
|
|
1260
|
+
stroke: i.color,
|
|
1238
1261
|
"stroke-width": 0.5,
|
|
1239
1262
|
"stroke-linecap": "round"
|
|
1240
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, at))), 256)) : i.yLabels.length ? (r(!0), l(I, { key: 1 }, m(i.yLabels, (h) => (r(), l("line", {
|
|
1241
1264
|
x1: e.drawingArea.left + e.xPadding,
|
|
1242
1265
|
x2: e.drawingArea.right - e.xPadding,
|
|
1243
|
-
y1: e.checkNaN(
|
|
1244
|
-
y2: e.checkNaN(
|
|
1266
|
+
y1: e.checkNaN(h.y),
|
|
1267
|
+
y2: e.checkNaN(h.y),
|
|
1245
1268
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1246
1269
|
"stroke-width": 0.5,
|
|
1247
1270
|
"stroke-linecap": "round"
|
|
1248
|
-
}, null, 8,
|
|
1271
|
+
}, null, 8, it))), 256)) : c("", !0)
|
|
1249
1272
|
]))), 256)) : c("", !0) : (r(), l(I, { key: 1 }, [
|
|
1250
1273
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (r(), l("line", {
|
|
1251
1274
|
key: 0,
|
|
@@ -1258,11 +1281,11 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1258
1281
|
"stroke-linecap": "round"
|
|
1259
1282
|
}, null, 8, $e)) : c("", !0),
|
|
1260
1283
|
e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), l("g", et, [
|
|
1261
|
-
(r(!0), l(I, null, m(e.yLabels, (
|
|
1284
|
+
(r(!0), l(I, null, m(e.yLabels, (i) => (r(), l("line", {
|
|
1262
1285
|
x1: e.drawingArea.left + e.xPadding,
|
|
1263
1286
|
x2: e.drawingArea.right - e.xPadding,
|
|
1264
|
-
y1: e.checkNaN(
|
|
1265
|
-
y2: e.checkNaN(
|
|
1287
|
+
y1: e.checkNaN(i.y),
|
|
1288
|
+
y2: e.checkNaN(i.y),
|
|
1266
1289
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1267
1290
|
"stroke-width": 0.5,
|
|
1268
1291
|
"stroke-linecap": "round"
|
|
@@ -1270,10 +1293,10 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1270
1293
|
])) : c("", !0)
|
|
1271
1294
|
], 64)),
|
|
1272
1295
|
e.FINAL_CONFIG.chart.grid.showVerticalLines ? (r(), l("g", rt, [
|
|
1273
|
-
(r(!0), l(I, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (
|
|
1274
|
-
key: `grid_vertical_line_${
|
|
1275
|
-
x1: e.drawingArea.width / e.maxSeries *
|
|
1276
|
-
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,
|
|
1277
1300
|
y1: e.drawingArea.top,
|
|
1278
1301
|
y2: e.drawingArea.bottom,
|
|
1279
1302
|
"stroke-width": "0.5",
|
|
@@ -1281,154 +1304,154 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1281
1304
|
}, null, 8, lt))), 128))
|
|
1282
1305
|
])) : c("", !0)
|
|
1283
1306
|
]),
|
|
1284
|
-
(r(!0), l(I, null, m(e.barSet, (
|
|
1285
|
-
key: `def_rect_${
|
|
1307
|
+
(r(!0), l(I, null, m(e.barSet, (i, h) => (r(), l("defs", {
|
|
1308
|
+
key: `def_rect_${h}`
|
|
1286
1309
|
}, [
|
|
1287
|
-
|
|
1288
|
-
id: `rectGradient_pos_${
|
|
1310
|
+
f("linearGradient", {
|
|
1311
|
+
id: `rectGradient_pos_${h}_${t.uniqueId}`,
|
|
1289
1312
|
x2: "0%",
|
|
1290
1313
|
y2: "100%"
|
|
1291
1314
|
}, [
|
|
1292
|
-
|
|
1315
|
+
f("stop", {
|
|
1293
1316
|
offset: "0%",
|
|
1294
|
-
"stop-color":
|
|
1317
|
+
"stop-color": i.color
|
|
1295
1318
|
}, null, 8, nt),
|
|
1296
|
-
|
|
1319
|
+
f("stop", {
|
|
1297
1320
|
offset: "62%",
|
|
1298
|
-
"stop-color": `${e.shiftHue(
|
|
1299
|
-
}, null, 8,
|
|
1300
|
-
|
|
1321
|
+
"stop-color": `${e.shiftHue(i.color, 0.02)}`
|
|
1322
|
+
}, null, 8, ht),
|
|
1323
|
+
f("stop", {
|
|
1301
1324
|
offset: "100%",
|
|
1302
|
-
"stop-color": `${e.shiftHue(
|
|
1303
|
-
}, null, 8,
|
|
1325
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1326
|
+
}, null, 8, ot)
|
|
1304
1327
|
], 8, st),
|
|
1305
|
-
|
|
1306
|
-
id: `rectGradient_neg_${
|
|
1328
|
+
f("linearGradient", {
|
|
1329
|
+
id: `rectGradient_neg_${h}_${t.uniqueId}`,
|
|
1307
1330
|
x2: "0%",
|
|
1308
1331
|
y2: "100%"
|
|
1309
1332
|
}, [
|
|
1310
|
-
|
|
1333
|
+
f("stop", {
|
|
1311
1334
|
offset: "0%",
|
|
1312
|
-
"stop-color": `${e.shiftHue(
|
|
1335
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1313
1336
|
}, null, 8, dt),
|
|
1314
|
-
|
|
1337
|
+
f("stop", {
|
|
1315
1338
|
offset: "38%",
|
|
1316
|
-
"stop-color": `${e.shiftHue(
|
|
1339
|
+
"stop-color": `${e.shiftHue(i.color, 0.02)}`
|
|
1317
1340
|
}, null, 8, ut),
|
|
1318
|
-
|
|
1341
|
+
f("stop", {
|
|
1319
1342
|
offset: "100%",
|
|
1320
|
-
"stop-color":
|
|
1343
|
+
"stop-color": i.color
|
|
1321
1344
|
}, null, 8, gt)
|
|
1322
1345
|
], 8, ct)
|
|
1323
1346
|
]))), 128)),
|
|
1324
|
-
(r(!0), l(I, null, m(e.plotSet, (
|
|
1325
|
-
key: `def_plot_${
|
|
1347
|
+
(r(!0), l(I, null, m(e.plotSet, (i, h) => (r(), l("defs", {
|
|
1348
|
+
key: `def_plot_${h}`
|
|
1326
1349
|
}, [
|
|
1327
|
-
|
|
1328
|
-
id: `plotGradient_${
|
|
1350
|
+
f("radialGradient", {
|
|
1351
|
+
id: `plotGradient_${h}_${t.uniqueId}`,
|
|
1329
1352
|
cx: "50%",
|
|
1330
1353
|
cy: "50%",
|
|
1331
1354
|
r: "50%",
|
|
1332
1355
|
fx: "50%",
|
|
1333
1356
|
fy: "50%"
|
|
1334
1357
|
}, [
|
|
1335
|
-
|
|
1358
|
+
f("stop", {
|
|
1336
1359
|
offset: "0%",
|
|
1337
|
-
"stop-color": `${e.shiftHue(
|
|
1360
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1338
1361
|
}, null, 8, It),
|
|
1339
|
-
|
|
1362
|
+
f("stop", {
|
|
1340
1363
|
offset: "100%",
|
|
1341
|
-
"stop-color":
|
|
1364
|
+
"stop-color": i.color
|
|
1342
1365
|
}, null, 8, Nt)
|
|
1343
1366
|
], 8, ft)
|
|
1344
1367
|
]))), 128)),
|
|
1345
|
-
(r(!0), l(I, null, m(e.lineSet, (
|
|
1346
|
-
key: `def_line_${
|
|
1368
|
+
(r(!0), l(I, null, m(e.lineSet, (i, h) => (r(), l("defs", {
|
|
1369
|
+
key: `def_line_${h}`
|
|
1347
1370
|
}, [
|
|
1348
|
-
|
|
1349
|
-
id: `lineGradient_${
|
|
1371
|
+
f("radialGradient", {
|
|
1372
|
+
id: `lineGradient_${h}_${t.uniqueId}`,
|
|
1350
1373
|
cx: "50%",
|
|
1351
1374
|
cy: "50%",
|
|
1352
1375
|
r: "50%",
|
|
1353
1376
|
fx: "50%",
|
|
1354
1377
|
fy: "50%"
|
|
1355
1378
|
}, [
|
|
1356
|
-
|
|
1379
|
+
f("stop", {
|
|
1357
1380
|
offset: "0%",
|
|
1358
|
-
"stop-color": `${e.shiftHue(
|
|
1381
|
+
"stop-color": `${e.shiftHue(i.color, 0.05)}`
|
|
1359
1382
|
}, null, 8, xt),
|
|
1360
|
-
|
|
1383
|
+
f("stop", {
|
|
1361
1384
|
offset: "100%",
|
|
1362
|
-
"stop-color":
|
|
1385
|
+
"stop-color": i.color
|
|
1363
1386
|
}, null, 8, Ft)
|
|
1364
1387
|
], 8, mt),
|
|
1365
|
-
|
|
1366
|
-
id: `areaGradient_${
|
|
1388
|
+
f("linearGradient", {
|
|
1389
|
+
id: `areaGradient_${h}_${t.uniqueId}`,
|
|
1367
1390
|
x1: "0%",
|
|
1368
1391
|
x2: "100%",
|
|
1369
1392
|
y1: "0%",
|
|
1370
1393
|
y2: "0%"
|
|
1371
1394
|
}, [
|
|
1372
|
-
|
|
1395
|
+
f("stop", {
|
|
1373
1396
|
offset: "0%",
|
|
1374
|
-
"stop-color": `${e.setOpacity(e.shiftHue(
|
|
1397
|
+
"stop-color": `${e.setOpacity(e.shiftHue(i.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
|
|
1375
1398
|
}, null, 8, _t),
|
|
1376
|
-
|
|
1399
|
+
f("stop", {
|
|
1377
1400
|
offset: "100%",
|
|
1378
|
-
"stop-color": `${e.setOpacity(
|
|
1379
|
-
}, null, 8,
|
|
1401
|
+
"stop-color": `${e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1402
|
+
}, null, 8, At)
|
|
1380
1403
|
], 8, bt)
|
|
1381
1404
|
]))), 128)),
|
|
1382
|
-
(r(!0), l(I, null, m(e.highlightAreas, (
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
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({
|
|
1386
1409
|
transition: "none",
|
|
1387
|
-
opacity:
|
|
1410
|
+
opacity: i.from + n >= t.slicer.start && i.from + n <= t.slicer.end - 1 ? 1 : 0
|
|
1388
1411
|
}),
|
|
1389
|
-
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),
|
|
1390
1413
|
y: e.drawingArea.top,
|
|
1391
1414
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1392
1415
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1393
|
-
fill: e.setOpacity(
|
|
1394
|
-
}, null, 12,
|
|
1395
|
-
|
|
1416
|
+
fill: e.setOpacity(i.color, i.opacity)
|
|
1417
|
+
}, null, 12, yt),
|
|
1418
|
+
i.caption.text && n === 0 ? (r(), l("foreignObject", {
|
|
1396
1419
|
key: 0,
|
|
1397
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (
|
|
1398
|
-
y: e.drawingArea.top +
|
|
1399
|
-
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({
|
|
1400
1423
|
overflow: "visible",
|
|
1401
|
-
opacity:
|
|
1424
|
+
opacity: i.to >= t.slicer.start && i.from < t.slicer.end ? 1 : 0
|
|
1402
1425
|
}),
|
|
1403
1426
|
height: "1",
|
|
1404
|
-
width:
|
|
1427
|
+
width: i.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * i.span : i.caption.width
|
|
1405
1428
|
}, [
|
|
1406
|
-
|
|
1407
|
-
style:
|
|
1408
|
-
}, S(
|
|
1409
|
-
], 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)
|
|
1410
1433
|
]))), 256)) : c("", !0)
|
|
1411
1434
|
]))), 256)),
|
|
1412
|
-
|
|
1413
|
-
(r(!0), l(I, null, m(e.maxSeries, (
|
|
1414
|
-
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}`
|
|
1415
1438
|
}, [
|
|
1416
|
-
|
|
1417
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
1439
|
+
f("rect", {
|
|
1440
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
1418
1441
|
y: e.drawingArea.top,
|
|
1419
1442
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
1420
1443
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
1421
|
-
fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(
|
|
1422
|
-
}, 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)
|
|
1423
1446
|
]))), 128))
|
|
1424
1447
|
]),
|
|
1425
|
-
e.barSet.length ? (r(!0), l(I, { key: 0 }, m(e.barSet, (
|
|
1426
|
-
key: `serie_bar_${
|
|
1427
|
-
class: V(`serie_bar_${
|
|
1428
|
-
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`)
|
|
1429
1452
|
}, [
|
|
1430
|
-
(r(!0), l(I, null, m(
|
|
1431
|
-
key: `bar_plot_${
|
|
1453
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1454
|
+
key: `bar_plot_${h}_${d}`
|
|
1432
1455
|
}, [
|
|
1433
1456
|
e.canShowValue(n.value) ? (r(), l("rect", {
|
|
1434
1457
|
key: 0,
|
|
@@ -1437,8 +1460,8 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1437
1460
|
height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
|
|
1438
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),
|
|
1439
1462
|
rx: e.FINAL_CONFIG.bar.borderRadius,
|
|
1440
|
-
fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${
|
|
1441
|
-
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,
|
|
1442
1465
|
"stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
|
|
1443
1466
|
}, null, 8, St)) : c("", !0),
|
|
1444
1467
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
@@ -1449,47 +1472,47 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1449
1472
|
x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1450
1473
|
y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1451
1474
|
}, [
|
|
1452
|
-
|
|
1453
|
-
plot: { ...n, color:
|
|
1475
|
+
w(a.$slots, "plot-comment", {
|
|
1476
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: d }
|
|
1454
1477
|
}, void 0, !0)
|
|
1455
1478
|
], 8, kt)) : c("", !0)
|
|
1456
1479
|
]))), 128)),
|
|
1457
|
-
Object.hasOwn(
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
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}`,
|
|
1461
1484
|
markerWidth: 7,
|
|
1462
1485
|
markerHeight: 7,
|
|
1463
1486
|
refX: "0",
|
|
1464
1487
|
refY: 7 / 2,
|
|
1465
1488
|
orient: "auto"
|
|
1466
1489
|
}, [
|
|
1467
|
-
|
|
1490
|
+
f("polygon", {
|
|
1468
1491
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1469
|
-
fill:
|
|
1492
|
+
fill: i.color
|
|
1470
1493
|
}, null, 8, Gt)
|
|
1471
1494
|
], 8, Ot)
|
|
1472
1495
|
]),
|
|
1473
|
-
|
|
1496
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1474
1497
|
key: 0,
|
|
1475
|
-
x1: e.calcLinearProgression(
|
|
1476
|
-
x2: e.calcLinearProgression(
|
|
1477
|
-
y1: e.calcLinearProgression(
|
|
1478
|
-
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,
|
|
1479
1502
|
"stroke-width": 1,
|
|
1480
|
-
stroke:
|
|
1503
|
+
stroke: i.color,
|
|
1481
1504
|
"stroke-dasharray": 2,
|
|
1482
|
-
"marker-end": `url(#bar_arrow_${
|
|
1505
|
+
"marker-end": `url(#bar_arrow_${h})`
|
|
1483
1506
|
}, null, 8, vt)) : c("", !0),
|
|
1484
|
-
|
|
1507
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1485
1508
|
key: 1,
|
|
1486
1509
|
"text-anchor": "middle",
|
|
1487
|
-
x: e.calcLinearProgression(
|
|
1488
|
-
y: e.calcLinearProgression(
|
|
1510
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1511
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1489
1512
|
"font-size": t.fontSizes.plotLabels,
|
|
1490
|
-
fill:
|
|
1513
|
+
fill: i.color
|
|
1491
1514
|
}, S(e.dataLabel({
|
|
1492
|
-
v: e.calcLinearProgression(
|
|
1515
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1493
1516
|
s: "%",
|
|
1494
1517
|
r: 2
|
|
1495
1518
|
})), 9, pt)) : c("", !0)
|
|
@@ -1506,7 +1529,7 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1506
1529
|
"stroke-linecap": "round"
|
|
1507
1530
|
}, null, 8, zt)) : c("", !0),
|
|
1508
1531
|
e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (r(), l("g", Mt, [
|
|
1509
|
-
|
|
1532
|
+
f("line", {
|
|
1510
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,
|
|
1511
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,
|
|
1512
1535
|
y1: e.drawingArea.top,
|
|
@@ -1534,101 +1557,101 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1534
1557
|
}, null, 8, Pt)) : c("", !0),
|
|
1535
1558
|
e.FINAL_CONFIG.chart.grid.labels.show ? (r(), l("g", Vt, [
|
|
1536
1559
|
t.mutableConfig.useIndividualScale ? (r(), l(I, { key: 0 }, [
|
|
1537
|
-
(r(!0), l(I, null, m(e.allScales, (
|
|
1538
|
-
|
|
1539
|
-
x1:
|
|
1540
|
-
x2:
|
|
1541
|
-
y1: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom -
|
|
1542
|
-
y2: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom -
|
|
1543
|
-
stroke:
|
|
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,
|
|
1544
1567
|
"stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
|
|
1545
1568
|
"stroke-linecap": "round",
|
|
1546
|
-
style:
|
|
1569
|
+
style: L(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1547
1570
|
}, null, 12, Rt)
|
|
1548
1571
|
]))), 256)),
|
|
1549
|
-
(r(!0), l(I, null, m(e.allScales, (
|
|
1550
|
-
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`)
|
|
1551
1574
|
}, [
|
|
1552
|
-
|
|
1553
|
-
fill:
|
|
1575
|
+
f("text", {
|
|
1576
|
+
fill: i.color,
|
|
1554
1577
|
"font-size": t.fontSizes.dataLabels,
|
|
1555
1578
|
"text-anchor": "middle",
|
|
1556
|
-
transform: `translate(${
|
|
1557
|
-
}, S(
|
|
1558
|
-
(r(!0), l(I, null, m(
|
|
1559
|
-
x1:
|
|
1560
|
-
x2:
|
|
1561
|
-
y1: e.checkNaN(
|
|
1562
|
-
y2: e.checkNaN(
|
|
1563
|
-
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,
|
|
1564
1587
|
"stroke-width": 1,
|
|
1565
1588
|
"stroke-linecap": "round"
|
|
1566
1589
|
}, null, 8, Bt))), 256)),
|
|
1567
|
-
(r(!0), l(I, null, m(
|
|
1568
|
-
x:
|
|
1569
|
-
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,
|
|
1570
1593
|
"font-size": t.fontSizes.dataLabels,
|
|
1571
1594
|
"text-anchor": "end",
|
|
1572
|
-
fill:
|
|
1595
|
+
fill: i.color
|
|
1573
1596
|
}, S(e.applyDataLabel(
|
|
1574
1597
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1575
|
-
|
|
1598
|
+
h.value,
|
|
1576
1599
|
e.dataLabel({
|
|
1577
|
-
p:
|
|
1578
|
-
v:
|
|
1579
|
-
s:
|
|
1600
|
+
p: h.prefix,
|
|
1601
|
+
v: h.value,
|
|
1602
|
+
s: h.suffix,
|
|
1580
1603
|
r: 1
|
|
1581
1604
|
}),
|
|
1582
|
-
{ datapoint:
|
|
1605
|
+
{ datapoint: h.datapoint, seriesIndex: n }
|
|
1583
1606
|
)), 9, Et))), 256))
|
|
1584
1607
|
], 4))), 256))
|
|
1585
|
-
], 64)) : (r(!0), l(I, { key: 1 }, m(e.yLabels, (
|
|
1586
|
-
key: `yLabel_${
|
|
1608
|
+
], 64)) : (r(!0), l(I, { key: 1 }, m(e.yLabels, (i, h) => (r(), l("g", {
|
|
1609
|
+
key: `yLabel_${h}`
|
|
1587
1610
|
}, [
|
|
1588
|
-
e.canShowValue(
|
|
1611
|
+
e.canShowValue(i) && i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (r(), l("line", {
|
|
1589
1612
|
key: 0,
|
|
1590
1613
|
x1: e.drawingArea.left + e.xPadding,
|
|
1591
1614
|
x2: e.drawingArea.left - 5 + e.xPadding,
|
|
1592
|
-
y1: e.checkNaN(
|
|
1593
|
-
y2: e.checkNaN(
|
|
1615
|
+
y1: e.checkNaN(i.y),
|
|
1616
|
+
y2: e.checkNaN(i.y),
|
|
1594
1617
|
stroke: e.FINAL_CONFIG.chart.grid.stroke,
|
|
1595
1618
|
"stroke-width": "1",
|
|
1596
1619
|
"stroke-linecap": "round"
|
|
1597
1620
|
}, null, 8, Ht)) : c("", !0),
|
|
1598
|
-
|
|
1621
|
+
i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (r(), l("text", {
|
|
1599
1622
|
key: 1,
|
|
1600
1623
|
x: e.drawingArea.left - 7 + e.xPadding,
|
|
1601
|
-
y: e.checkNaN(
|
|
1624
|
+
y: e.checkNaN(i.y + t.fontSizes.dataLabels / 3),
|
|
1602
1625
|
"font-size": t.fontSizes.dataLabels,
|
|
1603
1626
|
"text-anchor": "end",
|
|
1604
1627
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
1605
|
-
}, S(e.canShowValue(
|
|
1628
|
+
}, S(e.canShowValue(i.value) ? e.applyDataLabel(
|
|
1606
1629
|
e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
|
|
1607
|
-
|
|
1630
|
+
i.value,
|
|
1608
1631
|
e.dataLabel({
|
|
1609
|
-
p:
|
|
1610
|
-
v:
|
|
1611
|
-
s:
|
|
1632
|
+
p: i.prefix,
|
|
1633
|
+
v: i.value,
|
|
1634
|
+
s: i.suffix,
|
|
1612
1635
|
r: 1
|
|
1613
1636
|
})
|
|
1614
1637
|
) : ""), 9, Wt)) : c("", !0)
|
|
1615
1638
|
]))), 128))
|
|
1616
1639
|
])) : c("", !0),
|
|
1617
|
-
(r(!0), l(I, null, m(e.plotSet, (
|
|
1618
|
-
key: `serie_plot_${
|
|
1619
|
-
class: V(`serie_plot_${
|
|
1620
|
-
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`)
|
|
1621
1644
|
}, [
|
|
1622
|
-
(r(!0), l(I, null, m(
|
|
1623
|
-
key: `circle_plot_${
|
|
1645
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1646
|
+
key: `circle_plot_${h}_${d}`
|
|
1624
1647
|
}, [
|
|
1625
1648
|
n && e.canShowValue(n.value) ? (r(), D(F, {
|
|
1626
1649
|
key: 0,
|
|
1627
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1628
|
-
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,
|
|
1629
1652
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1630
1653
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
|
|
1631
|
-
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,
|
|
1632
1655
|
strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
|
|
1633
1656
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1634
1657
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
@@ -1639,136 +1662,136 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1639
1662
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1640
1663
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1641
1664
|
}, [
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
plot: { ...n, color:
|
|
1665
|
+
f("div", Xt, [
|
|
1666
|
+
w(a.$slots, "plot-comment", {
|
|
1667
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: d }
|
|
1645
1668
|
}, void 0, !0)
|
|
1646
1669
|
])
|
|
1647
1670
|
], 8, Yt)) : c("", !0)
|
|
1648
1671
|
]))), 128)),
|
|
1649
|
-
Object.hasOwn(
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
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}`,
|
|
1653
1676
|
markerWidth: 7,
|
|
1654
1677
|
markerHeight: 7,
|
|
1655
1678
|
refX: "0",
|
|
1656
1679
|
refY: 7 / 2,
|
|
1657
1680
|
orient: "auto"
|
|
1658
1681
|
}, [
|
|
1659
|
-
|
|
1682
|
+
f("polygon", {
|
|
1660
1683
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1661
|
-
fill:
|
|
1684
|
+
fill: i.color
|
|
1662
1685
|
}, null, 8, Zt)
|
|
1663
1686
|
], 8, Ut)
|
|
1664
1687
|
]),
|
|
1665
|
-
|
|
1688
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1666
1689
|
key: 0,
|
|
1667
|
-
x1: e.calcLinearProgression(
|
|
1668
|
-
x2: e.calcLinearProgression(
|
|
1669
|
-
y1: e.calcLinearProgression(
|
|
1670
|
-
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,
|
|
1671
1694
|
"stroke-width": 1,
|
|
1672
|
-
stroke:
|
|
1695
|
+
stroke: i.color,
|
|
1673
1696
|
"stroke-dasharray": 2,
|
|
1674
|
-
"marker-end": `url(#plot_arrow_${
|
|
1697
|
+
"marker-end": `url(#plot_arrow_${h})`
|
|
1675
1698
|
}, null, 8, Jt)) : c("", !0),
|
|
1676
|
-
|
|
1699
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1677
1700
|
key: 1,
|
|
1678
1701
|
"text-anchor": "middle",
|
|
1679
|
-
x: e.calcLinearProgression(
|
|
1680
|
-
y: e.calcLinearProgression(
|
|
1702
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1703
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1681
1704
|
"font-size": t.fontSizes.plotLabels,
|
|
1682
|
-
fill:
|
|
1705
|
+
fill: i.color
|
|
1683
1706
|
}, S(e.dataLabel({
|
|
1684
|
-
v: e.calcLinearProgression(
|
|
1707
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1685
1708
|
s: "%",
|
|
1686
1709
|
r: 2
|
|
1687
1710
|
})), 9, Kt)) : c("", !0)
|
|
1688
1711
|
])) : c("", !0)
|
|
1689
1712
|
], 6))), 128)),
|
|
1690
|
-
(r(!0), l(I, null, m(e.lineSet, (
|
|
1691
|
-
key: `serie_line_${
|
|
1692
|
-
class: V(`serie_line_${
|
|
1693
|
-
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`)
|
|
1694
1717
|
}, [
|
|
1695
|
-
|
|
1718
|
+
i.smooth && i.plots.length > 1 ? (r(), l("path", {
|
|
1696
1719
|
key: 0,
|
|
1697
|
-
d: `M${
|
|
1720
|
+
d: `M${i.curve}`,
|
|
1698
1721
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1699
1722
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1700
|
-
"stroke-dasharray":
|
|
1723
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1701
1724
|
fill: "none"
|
|
1702
|
-
}, null, 8, Qt)) :
|
|
1703
|
-
(r(!0), l(I, null, m(
|
|
1704
|
-
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}`
|
|
1705
1728
|
}, [
|
|
1706
|
-
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", {
|
|
1707
1730
|
key: 0,
|
|
1708
1731
|
x1: n.x,
|
|
1709
|
-
x2:
|
|
1732
|
+
x2: i.plots[d + 1].x,
|
|
1710
1733
|
y1: n.y,
|
|
1711
|
-
y2:
|
|
1734
|
+
y2: i.plots[d + 1].y,
|
|
1712
1735
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
1713
1736
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
|
|
1714
|
-
"stroke-dasharray":
|
|
1737
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1715
1738
|
"stroke-linejoin": "round",
|
|
1716
1739
|
"stroke-linecap": "round"
|
|
1717
1740
|
}, null, 8, $t)) : c("", !0)
|
|
1718
1741
|
]))), 128))
|
|
1719
1742
|
])) : c("", !0)
|
|
1720
1743
|
], 6))), 128)),
|
|
1721
|
-
(r(!0), l(I, null, m(e.lineSet, (
|
|
1722
|
-
key: `serie_line_${
|
|
1723
|
-
class: V(`serie_line_${
|
|
1724
|
-
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`)
|
|
1725
1748
|
}, [
|
|
1726
|
-
|
|
1727
|
-
|
|
1749
|
+
i.useArea && i.plots.length > 1 ? (r(), l("g", ea, [
|
|
1750
|
+
i.smooth ? (r(), l("path", {
|
|
1728
1751
|
key: 0,
|
|
1729
|
-
d: `M ${
|
|
1730
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1731
|
-
}, 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", {
|
|
1732
1755
|
key: 1,
|
|
1733
|
-
d: `M${
|
|
1734
|
-
fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${
|
|
1735
|
-
}, 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))
|
|
1736
1759
|
])) : c("", !0),
|
|
1737
|
-
|
|
1760
|
+
i.smooth && i.plots.length > 1 ? (r(), l("path", {
|
|
1738
1761
|
key: 1,
|
|
1739
|
-
d: `M${
|
|
1740
|
-
stroke:
|
|
1762
|
+
d: `M${i.curve}`,
|
|
1763
|
+
stroke: i.color,
|
|
1741
1764
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1742
|
-
"stroke-dasharray":
|
|
1765
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1743
1766
|
fill: "none"
|
|
1744
|
-
}, null, 8,
|
|
1745
|
-
(r(!0), l(I, null, m(
|
|
1746
|
-
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}`
|
|
1747
1770
|
}, [
|
|
1748
|
-
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", {
|
|
1749
1772
|
key: 0,
|
|
1750
1773
|
x1: n.x,
|
|
1751
|
-
x2:
|
|
1774
|
+
x2: i.plots[d + 1].x,
|
|
1752
1775
|
y1: n.y,
|
|
1753
|
-
y2:
|
|
1754
|
-
stroke:
|
|
1776
|
+
y2: i.plots[d + 1].y,
|
|
1777
|
+
stroke: i.color,
|
|
1755
1778
|
"stroke-width": e.FINAL_CONFIG.line.strokeWidth,
|
|
1756
|
-
"stroke-dasharray":
|
|
1779
|
+
"stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
|
|
1757
1780
|
"stroke-linejoin": "round",
|
|
1758
1781
|
"stroke-linecap": "round"
|
|
1759
|
-
}, null, 8,
|
|
1782
|
+
}, null, 8, la)) : c("", !0)
|
|
1760
1783
|
]))), 128))
|
|
1761
1784
|
])) : c("", !0),
|
|
1762
|
-
(r(!0), l(I, null, m(
|
|
1763
|
-
key: `circle_line_${
|
|
1785
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1786
|
+
key: `circle_line_${h}_${d}`
|
|
1764
1787
|
}, [
|
|
1765
1788
|
n && e.canShowValue(n.value) ? (r(), D(F, {
|
|
1766
1789
|
key: 0,
|
|
1767
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
1768
|
-
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,
|
|
1769
1792
|
plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
|
|
1770
1793
|
radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
|
|
1771
|
-
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,
|
|
1772
1795
|
strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
|
|
1773
1796
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
|
|
1774
1797
|
n.comment && e.FINAL_CONFIG.chart.comments.show ? (r(), l("foreignObject", {
|
|
@@ -1779,64 +1802,64 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1779
1802
|
x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
|
|
1780
1803
|
y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
|
|
1781
1804
|
}, [
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
plot: { ...n, color:
|
|
1805
|
+
f("div", na, [
|
|
1806
|
+
w(a.$slots, "plot-comment", {
|
|
1807
|
+
plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: d }
|
|
1785
1808
|
}, void 0, !0)
|
|
1786
1809
|
])
|
|
1787
|
-
], 8,
|
|
1810
|
+
], 8, sa)) : c("", !0)
|
|
1788
1811
|
]))), 128)),
|
|
1789
|
-
Object.hasOwn(
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
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}`,
|
|
1793
1816
|
markerWidth: 7,
|
|
1794
1817
|
markerHeight: 7,
|
|
1795
1818
|
refX: "0",
|
|
1796
1819
|
refY: 7 / 2,
|
|
1797
1820
|
orient: "auto"
|
|
1798
1821
|
}, [
|
|
1799
|
-
|
|
1822
|
+
f("polygon", {
|
|
1800
1823
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
1801
|
-
fill:
|
|
1802
|
-
}, null, 8,
|
|
1803
|
-
], 8,
|
|
1824
|
+
fill: i.color
|
|
1825
|
+
}, null, 8, ca)
|
|
1826
|
+
], 8, oa)
|
|
1804
1827
|
]),
|
|
1805
|
-
|
|
1828
|
+
i.plots.length > 1 ? (r(), l("line", {
|
|
1806
1829
|
key: 0,
|
|
1807
|
-
x1: e.calcLinearProgression(
|
|
1808
|
-
x2: e.calcLinearProgression(
|
|
1809
|
-
y1: e.calcLinearProgression(
|
|
1810
|
-
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,
|
|
1811
1834
|
"stroke-width": 1,
|
|
1812
|
-
stroke:
|
|
1835
|
+
stroke: i.color,
|
|
1813
1836
|
"stroke-dasharray": 2,
|
|
1814
|
-
"marker-end": `url(#line_arrow_${
|
|
1815
|
-
}, null, 8,
|
|
1816
|
-
|
|
1837
|
+
"marker-end": `url(#line_arrow_${h})`
|
|
1838
|
+
}, null, 8, da)) : c("", !0),
|
|
1839
|
+
i.plots.length > 1 ? (r(), l("text", {
|
|
1817
1840
|
key: 1,
|
|
1818
1841
|
"text-anchor": "middle",
|
|
1819
|
-
x: e.calcLinearProgression(
|
|
1820
|
-
y: e.calcLinearProgression(
|
|
1842
|
+
x: e.calcLinearProgression(i.plots).x2,
|
|
1843
|
+
y: e.calcLinearProgression(i.plots).y2 - 6,
|
|
1821
1844
|
"font-size": t.fontSizes.plotLabels,
|
|
1822
|
-
fill:
|
|
1845
|
+
fill: i.color
|
|
1823
1846
|
}, S(e.dataLabel({
|
|
1824
|
-
v: e.calcLinearProgression(
|
|
1847
|
+
v: e.calcLinearProgression(i.plots).trend * 100,
|
|
1825
1848
|
s: "%",
|
|
1826
1849
|
r: 2
|
|
1827
|
-
})), 9,
|
|
1850
|
+
})), 9, ua)) : c("", !0)
|
|
1828
1851
|
])) : c("", !0)
|
|
1829
1852
|
], 6))), 128)),
|
|
1830
|
-
(e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (r(), l("g",
|
|
1831
|
-
(r(!0), l(I, null, m(e.barSet, (
|
|
1832
|
-
key: `xLabel_bar_${
|
|
1833
|
-
class: V(`xLabel_bar_${
|
|
1834
|
-
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`)
|
|
1835
1858
|
}, [
|
|
1836
|
-
(r(!0), l(I, null, m(
|
|
1837
|
-
key: `xLabel_bar_${
|
|
1859
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1860
|
+
key: `xLabel_bar_${h}_${d}`
|
|
1838
1861
|
}, [
|
|
1839
|
-
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", {
|
|
1840
1863
|
key: 0,
|
|
1841
1864
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
|
|
1842
1865
|
y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
|
|
@@ -1847,38 +1870,38 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1847
1870
|
e.FINAL_CONFIG.bar.labels.formatter,
|
|
1848
1871
|
n.value,
|
|
1849
1872
|
e.dataLabel({
|
|
1850
|
-
p:
|
|
1873
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1851
1874
|
v: n.value,
|
|
1852
|
-
s:
|
|
1875
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1853
1876
|
r: e.FINAL_CONFIG.bar.labels.rounding
|
|
1854
1877
|
}),
|
|
1855
1878
|
{
|
|
1856
1879
|
datapoint: n,
|
|
1857
|
-
serie:
|
|
1880
|
+
serie: i
|
|
1858
1881
|
}
|
|
1859
|
-
) : ""), 9,
|
|
1882
|
+
) : ""), 9, fa)) : c("", !0),
|
|
1860
1883
|
n && e.FINAL_CONFIG.bar.serieName.show ? (r(), l("text", {
|
|
1861
1884
|
key: 1,
|
|
1862
1885
|
x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
|
|
1863
1886
|
y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
|
|
1864
1887
|
"text-anchor": "middle",
|
|
1865
1888
|
"font-size": t.fontSizes.plotLabels,
|
|
1866
|
-
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ?
|
|
1889
|
+
fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? i.color : e.FINAL_CONFIG.bar.serieName.color,
|
|
1867
1890
|
"font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
|
|
1868
|
-
}, 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)
|
|
1869
1892
|
]))), 128))
|
|
1870
1893
|
], 6))), 128))
|
|
1871
1894
|
])) : c("", !0),
|
|
1872
|
-
e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g",
|
|
1873
|
-
(r(!0), l(I, null, m(e.plotSet, (
|
|
1874
|
-
key: `xLabel_plot_${
|
|
1875
|
-
class: V(`xLabel_plot_${
|
|
1876
|
-
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`)
|
|
1877
1900
|
}, [
|
|
1878
|
-
(r(!0), l(I, null, m(
|
|
1879
|
-
key: `xLabel_plot_${
|
|
1901
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1902
|
+
key: `xLabel_plot_${h}_${d}`
|
|
1880
1903
|
}, [
|
|
1881
|
-
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", {
|
|
1882
1905
|
key: 0,
|
|
1883
1906
|
x: n.x,
|
|
1884
1907
|
y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
|
|
@@ -1889,17 +1912,17 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1889
1912
|
e.FINAL_CONFIG.plot.labels.formatter,
|
|
1890
1913
|
n.value,
|
|
1891
1914
|
e.dataLabel({
|
|
1892
|
-
p:
|
|
1915
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1893
1916
|
v: n.value,
|
|
1894
|
-
s:
|
|
1917
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1895
1918
|
r: e.FINAL_CONFIG.plot.labels.rounding
|
|
1896
1919
|
}),
|
|
1897
1920
|
{
|
|
1898
1921
|
datapoint: n,
|
|
1899
|
-
serie:
|
|
1922
|
+
serie: i
|
|
1900
1923
|
}
|
|
1901
|
-
) : ""), 9,
|
|
1902
|
-
n && d === 0 &&
|
|
1924
|
+
) : ""), 9, ma)) : c("", !0),
|
|
1925
|
+
n && d === 0 && i.useTag && i.useTag === "start" ? (r(), l("foreignObject", {
|
|
1903
1926
|
key: 1,
|
|
1904
1927
|
x: n.x,
|
|
1905
1928
|
y: n.y - 20,
|
|
@@ -1907,35 +1930,35 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1907
1930
|
width: "150",
|
|
1908
1931
|
style: { overflow: "visible" }
|
|
1909
1932
|
}, [
|
|
1910
|
-
|
|
1911
|
-
style:
|
|
1912
|
-
}, S(
|
|
1913
|
-
], 8,
|
|
1914
|
-
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", {
|
|
1915
1938
|
key: 2,
|
|
1916
|
-
x: n.x -
|
|
1939
|
+
x: n.x - i.name.length * (t.fontSizes.plotLabels / 2),
|
|
1917
1940
|
y: n.y - 20,
|
|
1918
1941
|
height: 24,
|
|
1919
1942
|
width: "150",
|
|
1920
1943
|
style: { overflow: "visible" }
|
|
1921
1944
|
}, [
|
|
1922
|
-
|
|
1923
|
-
style:
|
|
1924
|
-
}, S(
|
|
1925
|
-
], 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, Fa)) : c("", !0)
|
|
1926
1949
|
]))), 128))
|
|
1927
1950
|
], 6))), 128))
|
|
1928
1951
|
])) : c("", !0),
|
|
1929
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g",
|
|
1930
|
-
(r(!0), l(I, null, m(e.lineSet, (
|
|
1931
|
-
key: `xLabel_line_${
|
|
1932
|
-
class: V(`xLabel_line_${
|
|
1933
|
-
style:
|
|
1952
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g", ba, [
|
|
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`)
|
|
1934
1957
|
}, [
|
|
1935
|
-
(r(!0), l(I, null, m(
|
|
1936
|
-
key: `xLabel_line_${
|
|
1958
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1959
|
+
key: `xLabel_line_${h}_${d}`
|
|
1937
1960
|
}, [
|
|
1938
|
-
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", {
|
|
1939
1962
|
key: 0,
|
|
1940
1963
|
x: n.x,
|
|
1941
1964
|
y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
|
|
@@ -1946,17 +1969,17 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1946
1969
|
e.FINAL_CONFIG.line.labels.formatter,
|
|
1947
1970
|
n.value,
|
|
1948
1971
|
e.dataLabel({
|
|
1949
|
-
p:
|
|
1972
|
+
p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
|
|
1950
1973
|
v: n.value,
|
|
1951
|
-
s:
|
|
1974
|
+
s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
|
|
1952
1975
|
r: e.FINAL_CONFIG.line.labels.rounding
|
|
1953
1976
|
}),
|
|
1954
1977
|
{
|
|
1955
1978
|
datapoint: n,
|
|
1956
|
-
serie:
|
|
1979
|
+
serie: i
|
|
1957
1980
|
}
|
|
1958
|
-
) : ""), 9,
|
|
1959
|
-
n && d === 0 &&
|
|
1981
|
+
) : ""), 9, _a)) : c("", !0),
|
|
1982
|
+
n && d === 0 && i.useTag && i.useTag === "start" ? (r(), l("foreignObject", {
|
|
1960
1983
|
key: 1,
|
|
1961
1984
|
x: n.x,
|
|
1962
1985
|
y: n.y - 20,
|
|
@@ -1964,119 +1987,119 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1964
1987
|
width: "150",
|
|
1965
1988
|
style: { overflow: "visible" }
|
|
1966
1989
|
}, [
|
|
1967
|
-
|
|
1968
|
-
style:
|
|
1969
|
-
}, S(
|
|
1970
|
-
], 8,
|
|
1971
|
-
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", {
|
|
1972
1995
|
key: 2,
|
|
1973
|
-
x: n.x -
|
|
1996
|
+
x: n.x - i.name.length * (t.fontSizes.plotLabels / 2),
|
|
1974
1997
|
y: n.y - 20,
|
|
1975
1998
|
height: 24,
|
|
1976
1999
|
width: "150",
|
|
1977
2000
|
style: { overflow: "visible" }
|
|
1978
2001
|
}, [
|
|
1979
|
-
|
|
1980
|
-
style:
|
|
1981
|
-
}, S(
|
|
1982
|
-
], 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)
|
|
1983
2006
|
]))), 128))
|
|
1984
2007
|
], 6))), 128))
|
|
1985
2008
|
])) : c("", !0),
|
|
1986
|
-
(r(!0), l(I, null, m(e.lineSet, (
|
|
1987
|
-
key: `xLabel_line_${
|
|
1988
|
-
class: V(`xLabel_line_${
|
|
1989
|
-
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`)
|
|
1990
2013
|
}, [
|
|
1991
|
-
(r(!0), l(I, null, m(
|
|
1992
|
-
key: `xLabel_line_${
|
|
2014
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
2015
|
+
key: `xLabel_line_${h}_${d}`
|
|
1993
2016
|
}, [
|
|
1994
|
-
n && d === 0 &&
|
|
2017
|
+
n && d === 0 && i.showSerieName && i.showSerieName === "start" ? (r(), l("text", {
|
|
1995
2018
|
key: 0,
|
|
1996
2019
|
x: n.x - t.fontSizes.plotLabels,
|
|
1997
2020
|
y: n.y,
|
|
1998
2021
|
"font-size": t.fontSizes.plotLabels,
|
|
1999
2022
|
"text-anchor": "end",
|
|
2000
|
-
fill:
|
|
2023
|
+
fill: i.color,
|
|
2001
2024
|
innerHTML: e.createTSpans({
|
|
2002
|
-
content:
|
|
2025
|
+
content: i.name,
|
|
2003
2026
|
fontSize: t.fontSizes.plotLabels,
|
|
2004
|
-
fill:
|
|
2027
|
+
fill: i.color,
|
|
2005
2028
|
x: n.x - t.fontSizes.plotLabels,
|
|
2006
2029
|
y: n.y,
|
|
2007
2030
|
maxWords: 2
|
|
2008
2031
|
})
|
|
2009
|
-
}, null, 8,
|
|
2010
|
-
n && d ===
|
|
2032
|
+
}, null, 8, La)) : c("", !0),
|
|
2033
|
+
n && d === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (r(), l("text", {
|
|
2011
2034
|
key: 1,
|
|
2012
2035
|
x: n.x + t.fontSizes.plotLabels,
|
|
2013
2036
|
y: n.y,
|
|
2014
2037
|
"font-size": t.fontSizes.plotLabels,
|
|
2015
2038
|
"text-anchor": "start",
|
|
2016
|
-
fill:
|
|
2039
|
+
fill: i.color,
|
|
2017
2040
|
innerHTML: e.createTSpans({
|
|
2018
|
-
content:
|
|
2041
|
+
content: i.name,
|
|
2019
2042
|
fontSize: t.fontSizes.plotLabels,
|
|
2020
|
-
fill:
|
|
2043
|
+
fill: i.color,
|
|
2021
2044
|
x: n.x + t.fontSizes.plotLabels,
|
|
2022
2045
|
y: n.y,
|
|
2023
2046
|
maxWords: 2
|
|
2024
2047
|
})
|
|
2025
|
-
}, null, 8,
|
|
2048
|
+
}, null, 8, Ca)) : c("", !0)
|
|
2026
2049
|
]))), 128))
|
|
2027
2050
|
], 6))), 128)),
|
|
2028
|
-
(r(!0), l(I, null, m(e.plotSet, (
|
|
2029
|
-
key: `xLabel_plot_${
|
|
2030
|
-
class: V(`xLabel_plot_${
|
|
2031
|
-
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`)
|
|
2032
2055
|
}, [
|
|
2033
|
-
(r(!0), l(I, null, m(
|
|
2034
|
-
key: `xLabel_plot_${
|
|
2056
|
+
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
2057
|
+
key: `xLabel_plot_${h}_${d}`
|
|
2035
2058
|
}, [
|
|
2036
|
-
n && d === 0 &&
|
|
2059
|
+
n && d === 0 && i.showSerieName && i.showSerieName === "start" ? (r(), l("text", {
|
|
2037
2060
|
key: 0,
|
|
2038
2061
|
x: n.x - t.fontSizes.plotLabels,
|
|
2039
2062
|
y: n.y,
|
|
2040
2063
|
"font-size": t.fontSizes.plotLabels,
|
|
2041
2064
|
"text-anchor": "end",
|
|
2042
|
-
fill:
|
|
2065
|
+
fill: i.color,
|
|
2043
2066
|
innerHTML: e.createTSpans({
|
|
2044
|
-
content:
|
|
2067
|
+
content: i.name,
|
|
2045
2068
|
fontSize: t.fontSizes.plotLabels,
|
|
2046
|
-
fill:
|
|
2069
|
+
fill: i.color,
|
|
2047
2070
|
x: n.x - t.fontSizes.plotLabels,
|
|
2048
2071
|
y: n.y,
|
|
2049
2072
|
maxWords: 2
|
|
2050
2073
|
})
|
|
2051
|
-
}, null, 8,
|
|
2052
|
-
n && d ===
|
|
2074
|
+
}, null, 8, Sa)) : c("", !0),
|
|
2075
|
+
n && d === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (r(), l("text", {
|
|
2053
2076
|
key: 1,
|
|
2054
2077
|
x: n.x + t.fontSizes.plotLabels,
|
|
2055
2078
|
y: n.y,
|
|
2056
2079
|
"font-size": t.fontSizes.plotLabels,
|
|
2057
2080
|
"text-anchor": "start",
|
|
2058
|
-
fill:
|
|
2081
|
+
fill: i.color,
|
|
2059
2082
|
innerHTML: e.createTSpans({
|
|
2060
|
-
content:
|
|
2083
|
+
content: i.name,
|
|
2061
2084
|
fontSize: t.fontSizes.plotLabels,
|
|
2062
|
-
fill:
|
|
2085
|
+
fill: i.color,
|
|
2063
2086
|
x: n.x + t.fontSizes.plotLabels,
|
|
2064
2087
|
y: n.y,
|
|
2065
2088
|
maxWords: 2
|
|
2066
2089
|
})
|
|
2067
|
-
}, null, 8,
|
|
2090
|
+
}, null, 8, ka)) : c("", !0)
|
|
2068
2091
|
]))), 128))
|
|
2069
2092
|
], 6))), 128)),
|
|
2070
|
-
t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (r(!0), l(I, { key: 8 }, m(e.allScales, (
|
|
2071
|
-
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,
|
|
2072
2095
|
y: e.drawingArea.top,
|
|
2073
2096
|
width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
|
|
2074
2097
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2075
|
-
fill: t.selectedScale ===
|
|
2076
|
-
onMouseenter: (
|
|
2077
|
-
onMouseleave: s[0] || (s[0] = (
|
|
2078
|
-
}, null, 40,
|
|
2079
|
-
|
|
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, [
|
|
2080
2103
|
e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (r(), l("text", {
|
|
2081
2104
|
key: 0,
|
|
2082
2105
|
"font-size": t.fontSizes.yAxis,
|
|
@@ -2084,7 +2107,7 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2084
2107
|
transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
|
|
2085
2108
|
"text-anchor": "middle",
|
|
2086
2109
|
style: { transition: "none" }
|
|
2087
|
-
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9,
|
|
2110
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Oa)) : c("", !0),
|
|
2088
2111
|
e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (r(), l("text", {
|
|
2089
2112
|
key: 1,
|
|
2090
2113
|
"text-anchor": "middle",
|
|
@@ -2092,39 +2115,57 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2092
2115
|
y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
|
|
2093
2116
|
"font-size": t.fontSizes.yAxis,
|
|
2094
2117
|
fill: e.FINAL_CONFIG.chart.grid.labels.color
|
|
2095
|
-
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9,
|
|
2118
|
+
}, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Ga)) : c("", !0)
|
|
2096
2119
|
]),
|
|
2097
|
-
e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (r(), l("g",
|
|
2098
|
-
(r(!0), l(I,
|
|
2099
|
-
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}`
|
|
2100
2123
|
}, [
|
|
2101
|
-
|
|
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", {
|
|
2102
2139
|
key: 0,
|
|
2103
2140
|
"text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2104
2141
|
"font-size": t.fontSizes.xAxis,
|
|
2105
2142
|
fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
|
|
2106
|
-
transform: `translate(${e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2107
|
-
|
|
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)
|
|
2108
2149
|
]))), 128))
|
|
2109
2150
|
])) : c("", !0),
|
|
2110
|
-
|
|
2111
|
-
(r(!0), l(I, null, m(e.maxSeries, (
|
|
2112
|
-
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}`
|
|
2113
2154
|
}, [
|
|
2114
|
-
|
|
2155
|
+
f("rect", {
|
|
2115
2156
|
"data-cy-trap": "",
|
|
2116
|
-
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries *
|
|
2157
|
+
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
|
|
2117
2158
|
y: e.drawingArea.top,
|
|
2118
2159
|
height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
|
|
2119
2160
|
width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
|
|
2120
2161
|
fill: "transparent",
|
|
2121
|
-
onMouseenter: (n) => e.toggleTooltipVisibility(!0,
|
|
2162
|
+
onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
|
|
2122
2163
|
onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
|
|
2123
|
-
onClick: (n) => e.selectX(
|
|
2124
|
-
}, null, 40,
|
|
2164
|
+
onClick: (n) => e.selectX(h)
|
|
2165
|
+
}, null, 40, za)
|
|
2125
2166
|
]))), 128))
|
|
2126
2167
|
]),
|
|
2127
|
-
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, [
|
|
2128
2169
|
(r(), l("foreignObject", {
|
|
2129
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,
|
|
2130
2171
|
y: e.drawingArea.bottom,
|
|
@@ -2132,23 +2173,23 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2132
2173
|
height: "40",
|
|
2133
2174
|
style: { overflow: "visible !important" }
|
|
2134
2175
|
}, [
|
|
2135
|
-
|
|
2176
|
+
f("div", {
|
|
2136
2177
|
class: "vue-ui-xy-time-tag",
|
|
2137
|
-
style:
|
|
2138
|
-
}, 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)
|
|
2139
|
-
], 8,
|
|
2140
|
-
|
|
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", {
|
|
2141
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,
|
|
2142
2183
|
cy: e.drawingArea.bottom,
|
|
2143
2184
|
r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
|
|
2144
2185
|
fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
|
|
2145
|
-
}, null, 8,
|
|
2186
|
+
}, null, 8, Pa)
|
|
2146
2187
|
])) : c("", !0)
|
|
2147
2188
|
])) : c("", !0),
|
|
2148
|
-
|
|
2189
|
+
w(a.$slots, "svg", { svg: e.svg }, void 0, !0)
|
|
2149
2190
|
], 14, Je)) : c("", !0),
|
|
2150
|
-
|
|
2151
|
-
|
|
2191
|
+
a.$slots.watermark ? (r(), l("div", Va, [
|
|
2192
|
+
w(a.$slots, "watermark", B(E({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
|
|
2152
2193
|
])) : c("", !0),
|
|
2153
2194
|
e.isDataset ? c("", !0) : (r(), D(T, {
|
|
2154
2195
|
key: 6,
|
|
@@ -2193,16 +2234,16 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2193
2234
|
valueStart: t.slicer.start,
|
|
2194
2235
|
valueEnd: t.slicer.end,
|
|
2195
2236
|
start: t.slicer.start,
|
|
2196
|
-
"onUpdate:start": s[2] || (s[2] = (
|
|
2237
|
+
"onUpdate:start": s[2] || (s[2] = (i) => t.slicer.start = i),
|
|
2197
2238
|
end: t.slicer.end,
|
|
2198
|
-
"onUpdate:end": s[3] || (s[3] = (
|
|
2239
|
+
"onUpdate:end": s[3] || (s[3] = (i) => t.slicer.end = i),
|
|
2199
2240
|
refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
|
|
2200
|
-
refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...
|
|
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)),
|
|
2201
2242
|
onReset: e.refreshSlicer,
|
|
2202
2243
|
onTrapMouse: e.selectMinimapIndex
|
|
2203
2244
|
}, {
|
|
2204
|
-
"reset-action": M(({ reset:
|
|
2205
|
-
|
|
2245
|
+
"reset-action": M(({ reset: i }) => [
|
|
2246
|
+
w(a.$slots, "reset-action", B(E({ reset: i })), void 0, !0)
|
|
2206
2247
|
]),
|
|
2207
2248
|
_: 3
|
|
2208
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),
|
|
@@ -2210,33 +2251,34 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2210
2251
|
key: 8,
|
|
2211
2252
|
ref: "chartLegend",
|
|
2212
2253
|
class: "vue-ui-xy-legend",
|
|
2213
|
-
style:
|
|
2254
|
+
style: L(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
|
|
2214
2255
|
}, [
|
|
2215
|
-
(r(!0), l(I, null, m(e.absoluteDataset, (
|
|
2216
|
-
key: `div_legend_item_${
|
|
2217
|
-
onClick: (n) => e.segregate(
|
|
2218
|
-
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) })
|
|
2219
2260
|
}, [
|
|
2220
|
-
t.icons[
|
|
2221
|
-
|
|
2261
|
+
t.icons[i.type] === "line" ? (r(), l("svg", Da, [
|
|
2262
|
+
f("rect", {
|
|
2222
2263
|
x: "0",
|
|
2223
|
-
y: "7",
|
|
2224
|
-
rx: "
|
|
2225
|
-
stroke:
|
|
2226
|
-
|
|
2264
|
+
y: "7.5",
|
|
2265
|
+
rx: "1.5",
|
|
2266
|
+
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2267
|
+
"stroke-width": 0.5,
|
|
2268
|
+
height: "3",
|
|
2227
2269
|
width: "20",
|
|
2228
|
-
fill:
|
|
2229
|
-
}, null, 8,
|
|
2270
|
+
fill: i.color
|
|
2271
|
+
}, null, 8, Ba),
|
|
2230
2272
|
X(F, {
|
|
2231
2273
|
plot: { x: 10, y: 9 },
|
|
2232
2274
|
radius: 4,
|
|
2233
|
-
color:
|
|
2234
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2275
|
+
color: i.color,
|
|
2276
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
2235
2277
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2236
|
-
strokeWidth:
|
|
2278
|
+
strokeWidth: 0.5
|
|
2237
2279
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2238
|
-
])) : (r(), l("svg",
|
|
2239
|
-
t.icons[
|
|
2280
|
+
])) : (r(), l("svg", Ea, [
|
|
2281
|
+
t.icons[i.type] === "bar" ? (r(), l("rect", {
|
|
2240
2282
|
key: 0,
|
|
2241
2283
|
x: "0",
|
|
2242
2284
|
y: "0",
|
|
@@ -2244,24 +2286,24 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2244
2286
|
height: "12",
|
|
2245
2287
|
width: "12",
|
|
2246
2288
|
stroke: "none",
|
|
2247
|
-
fill:
|
|
2248
|
-
}, null, 8,
|
|
2289
|
+
fill: i.color
|
|
2290
|
+
}, null, 8, Ha)) : (r(), D(F, {
|
|
2249
2291
|
key: 1,
|
|
2250
2292
|
plot: { x: 6, y: 6 },
|
|
2251
2293
|
radius: 5,
|
|
2252
|
-
color:
|
|
2253
|
-
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(
|
|
2294
|
+
color: i.color,
|
|
2295
|
+
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle"
|
|
2254
2296
|
}, null, 8, ["color", "shape"]))
|
|
2255
2297
|
])),
|
|
2256
|
-
|
|
2257
|
-
style:
|
|
2258
|
-
}, S(
|
|
2259
|
-
], 10,
|
|
2260
|
-
], 4)) : (r(), l("div",
|
|
2261
|
-
|
|
2298
|
+
f("span", {
|
|
2299
|
+
style: L(`color:${e.FINAL_CONFIG.chart.legend.color}`)
|
|
2300
|
+
}, S(i.name), 5)
|
|
2301
|
+
], 10, Ra))), 128))
|
|
2302
|
+
], 4)) : (r(), l("div", Wa, [
|
|
2303
|
+
w(a.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
|
|
2262
2304
|
], 512)),
|
|
2263
|
-
|
|
2264
|
-
|
|
2305
|
+
a.$slots.source ? (r(), l("div", Ya, [
|
|
2306
|
+
w(a.$slots, "source", {}, void 0, !0)
|
|
2265
2307
|
], 512)) : c("", !0),
|
|
2266
2308
|
X(p, {
|
|
2267
2309
|
show: t.mutableConfig.showTooltip && t.isTooltip,
|
|
@@ -2274,16 +2316,16 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2274
2316
|
backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
|
|
2275
2317
|
position: e.FINAL_CONFIG.chart.tooltip.position,
|
|
2276
2318
|
offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
|
|
2277
|
-
parent:
|
|
2319
|
+
parent: a.$refs.chart,
|
|
2278
2320
|
content: e.tooltipContent,
|
|
2279
2321
|
isFullscreen: t.isFullscreen,
|
|
2280
2322
|
isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
|
|
2281
2323
|
}, {
|
|
2282
2324
|
"tooltip-before": M(() => [
|
|
2283
|
-
|
|
2325
|
+
w(a.$slots, "tooltip-before", B(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2284
2326
|
]),
|
|
2285
2327
|
"tooltip-after": M(() => [
|
|
2286
|
-
|
|
2328
|
+
w(a.$slots, "tooltip-after", B(E({ ...e.dataTooltipSlot })), void 0, !0)
|
|
2287
2329
|
]),
|
|
2288
2330
|
_: 3
|
|
2289
2331
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -2304,21 +2346,21 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2304
2346
|
}
|
|
2305
2347
|
}, {
|
|
2306
2348
|
content: M(() => [
|
|
2307
|
-
|
|
2308
|
-
style:
|
|
2349
|
+
f("div", {
|
|
2350
|
+
style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
|
|
2309
2351
|
}, [
|
|
2310
|
-
|
|
2311
|
-
Ee(
|
|
2352
|
+
f("div", Xa, [
|
|
2353
|
+
Ee(f("input", {
|
|
2312
2354
|
type: "checkbox",
|
|
2313
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
2355
|
+
"onUpdate:modelValue": s[4] || (s[4] = (i) => t.showSparklineTable = i)
|
|
2314
2356
|
}, null, 512), [
|
|
2315
2357
|
[He, t.showSparklineTable]
|
|
2316
2358
|
]),
|
|
2317
|
-
|
|
2318
|
-
onClick: s[5] || (s[5] = (
|
|
2359
|
+
f("div", {
|
|
2360
|
+
onClick: s[5] || (s[5] = (i) => t.showSparklineTable = !t.showSparklineTable),
|
|
2319
2361
|
style: { cursor: "pointer" }
|
|
2320
2362
|
}, [
|
|
2321
|
-
X(
|
|
2363
|
+
X(O, {
|
|
2322
2364
|
name: "chartLine",
|
|
2323
2365
|
size: 20,
|
|
2324
2366
|
stroke: e.FINAL_CONFIG.chart.color
|
|
@@ -2329,22 +2371,22 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2329
2371
|
key: `sparkline_${t.segregateStep}`,
|
|
2330
2372
|
dataset: e.tableSparklineDataset,
|
|
2331
2373
|
config: e.tableSparklineConfig
|
|
2332
|
-
}, null, 8, ["dataset", "config"])) : (r(), D(
|
|
2374
|
+
}, null, 8, ["dataset", "config"])) : (r(), D(C, {
|
|
2333
2375
|
key: `table_${t.tableStep}`,
|
|
2334
2376
|
colNames: e.dataTable.colNames,
|
|
2335
2377
|
head: e.dataTable.head,
|
|
2336
2378
|
body: e.dataTable.body,
|
|
2337
2379
|
config: e.dataTable.config,
|
|
2338
2380
|
title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
|
|
2339
|
-
onClose: s[6] || (s[6] = (
|
|
2381
|
+
onClose: s[6] || (s[6] = (i) => t.mutableConfig.showTable = !1)
|
|
2340
2382
|
}, {
|
|
2341
|
-
th: M(({ th:
|
|
2342
|
-
|
|
2383
|
+
th: M(({ th: i }) => [
|
|
2384
|
+
f("div", { innerHTML: i }, null, 8, qa)
|
|
2343
2385
|
]),
|
|
2344
|
-
td: M(({ td:
|
|
2345
|
-
We(S(isNaN(Number(
|
|
2386
|
+
td: M(({ td: i }) => [
|
|
2387
|
+
We(S(isNaN(Number(i)) ? i : e.dataLabel({
|
|
2346
2388
|
p: e.FINAL_CONFIG.chart.labels.prefix,
|
|
2347
|
-
v:
|
|
2389
|
+
v: i,
|
|
2348
2390
|
s: e.FINAL_CONFIG.chart.labels.suffix,
|
|
2349
2391
|
r: e.FINAL_CONFIG.table.rounding
|
|
2350
2392
|
})), 1)
|
|
@@ -2357,7 +2399,7 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2357
2399
|
}, 8, ["config"])) : c("", !0)
|
|
2358
2400
|
], 14, Ue);
|
|
2359
2401
|
}
|
|
2360
|
-
const
|
|
2402
|
+
const ci = /* @__PURE__ */ Ye(qe, [["render", Ua], ["__scopeId", "data-v-c43c1c59"]]);
|
|
2361
2403
|
export {
|
|
2362
|
-
|
|
2404
|
+
ci as default
|
|
2363
2405
|
};
|