vue-data-ui 2.4.42 → 2.4.44

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