vue-data-ui 2.3.83 → 2.3.84

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