vue-data-ui 2.4.63 → 2.4.65

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 (165) hide show
  1. package/README.md +66 -34
  2. package/dist/{Arrow-BpZBF7Ak.cjs → Arrow-BKPURRQ6.cjs} +1 -1
  3. package/dist/{Arrow-nOy23OOV.js → Arrow-C7ihyW4O.js} +1 -1
  4. package/dist/{BaseIcon-rzIvDo2Q.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
  5. package/dist/{BaseIcon-CrqNvGTs.js → BaseIcon-DpaRUsHC.js} +1 -1
  6. package/dist/{DataTable-CCJGHIVo.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
  7. package/dist/{DataTable-BBh7_ttv.js → DataTable-DX_jYNWG.js} +2 -2
  8. package/dist/Legend-BMTBtkoQ.cjs +1 -0
  9. package/dist/Legend-DGUxLqhs.js +70 -0
  10. package/dist/{PackageVersion-dR8EUy_P.js → PackageVersion-B9_Ed72C.js} +1 -1
  11. package/dist/{PackageVersion-eZ5Dmuid.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
  12. package/dist/{PenAndPaper-D_w2N2qM.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
  13. package/dist/{PenAndPaper-CrXlqi9I.js → PenAndPaper-CzjoEhsO.js} +3 -3
  14. package/dist/{Shape-qkkvCKyp.cjs → Shape-CZB2KQ0L.cjs} +1 -1
  15. package/dist/{Shape-CwmKWYzq.js → Shape-aXd72O71.js} +1 -1
  16. package/dist/{Slicer-oNEtv1s3.cjs → Slicer-ChxjRhai.cjs} +1 -1
  17. package/dist/{Slicer-DvdU-uf8.js → Slicer-CopZgIzh.js} +2 -2
  18. package/dist/{Title-CoNtoGH9.cjs → Title-BnRtxxP4.cjs} +1 -1
  19. package/dist/{Title-obqvTiXP.js → Title-DyUTj8GI.js} +1 -1
  20. package/dist/{Tooltip-BK-ACGDE.js → Tooltip-B-0uEV3l.js} +1 -1
  21. package/dist/{Tooltip-Dz4wVJkz.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/{index-Z_vzxZTo.js → index-BVNcFEqn.js} +398 -393
  24. package/dist/{index-ChOY3hT9.cjs → index-CKgv8c-A.cjs} +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-CA8PjFJH.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
  27. package/dist/{useNestedProp-Buhi5uyL.js → useNestedProp-D79dWdel.js} +1 -1
  28. package/dist/{usePrinter-Ck0oiMlt.js → usePrinter-Bcfs_I6G.js} +1 -1
  29. package/dist/{usePrinter-c3c7_uAW.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
  30. package/dist/{vue-data-ui-BGng_wXI.js → vue-data-ui-CXxR_hXg.js} +60 -60
  31. package/dist/{vue-data-ui-CihfnXFF.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +9 -9
  34. package/dist/{vue-ui-3d-bar-BsxFEhMN.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-B7k4LzL1.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
  36. package/dist/{vue-ui-accordion-CV2-8b1O.js → vue-ui-accordion-GNblUy42.js} +3 -3
  37. package/dist/{vue-ui-accordion-CZ8AlriN.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-Bc4DaLIy.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-C1crnKk7.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-DNKcAaEh.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DLbAn_Mz.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
  42. package/dist/{vue-ui-bullet-ClODxNrk.js → vue-ui-bullet-D_CS85II.js} +8 -8
  43. package/dist/{vue-ui-bullet-CEO3AsWC.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-DI7t6jqz.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
  45. package/dist/{vue-ui-candlestick-B00zQB4B.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-5jXlkslq.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-Bm2D_0pZ.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DP6-Gie6.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-CRZsXRUH.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
  50. package/dist/{vue-ui-cursor-BGe0gZK8.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-DA8bsmEc.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
  52. package/dist/{vue-ui-dashboard-D2v4oSiB.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-BZD-6Pz7.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
  54. package/dist/{vue-ui-digits-CKvrL9Wc.js → vue-ui-digits-B5P9UheE.js} +2 -2
  55. package/dist/{vue-ui-digits-DC8ZuHOj.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
  56. package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
  57. package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
  58. package/dist/{vue-ui-donut-evolution-CBsxmrTO.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-AlCGLfzy.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-DB7jNjQP.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-B9cELz3z.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
  62. package/dist/{vue-ui-flow-Cw1Vfk_e.js → vue-ui-flow-cKQSDKfP.js} +9 -9
  63. package/dist/{vue-ui-flow-CCM51fzQ.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
  64. package/dist/{vue-ui-funnel--4JhwVwW.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-CU72MuGg.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
  66. package/dist/{vue-ui-galaxy-BKInqdOk.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
  67. package/dist/{vue-ui-galaxy-BJrkygeR.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
  68. package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
  69. package/dist/{vue-ui-gauge-DBPB11Eo.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
  70. package/dist/{vue-ui-gizmo-BSDdKP_q.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
  71. package/dist/{vue-ui-gizmo-D7hHruEs.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-CysVyR78.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-DhoDd6I_.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
  74. package/dist/{vue-ui-history-plot-C1IcR5tn.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
  75. package/dist/{vue-ui-history-plot-D97p0C8E.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-Cu2PoWud.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C43FJnkn.js → vue-ui-kpi-HyZOfh63.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-Bdr0862F.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DgPnsWaW.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
  80. package/dist/{vue-ui-molecule-CvxtHapj.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
  81. package/dist/{vue-ui-molecule-CEJzQ7RY.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-DIn_Oars.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-B6EmzBGf.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-D4pAkaZH.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-c2pJF_ex.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
  86. package/dist/{vue-ui-onion-DHOhnx2s.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
  87. package/dist/{vue-ui-onion-98XPhnVF.js → vue-ui-onion-CID0DNSa.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-DLOtv_NO.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-CrVVxflg.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DWM3zE7x.js → vue-ui-quadrant-063Cq0di.js} +12 -12
  91. package/dist/{vue-ui-quadrant-DbDQtcxz.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-DP0hSesI.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-CFVAisN4.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
  94. package/dist/{vue-ui-radar-CNBN5GF9.js → vue-ui-radar-BmY47r3J.js} +12 -12
  95. package/dist/{vue-ui-radar-CDhwXWfs.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
  96. package/dist/{vue-ui-rating-cHW6zh7i.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
  97. package/dist/{vue-ui-rating-CEfg8aGb.js → vue-ui-rating-b2SThMJw.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-92LvehQf.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-olDAN0lU.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
  100. package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
  101. package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
  102. package/dist/{vue-ui-scatter-BvdgtUHX.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-6wDrQ5fP.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
  104. package/dist/{vue-ui-screenshot-CIAlcAvq.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
  105. package/dist/{vue-ui-screenshot-ChB7VFUO.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-DlnPFtb4.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-BMRe3SzB.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
  108. package/dist/{vue-ui-smiley-DkrQ5gDD.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-CN5FWJ1G.js → vue-ui-smiley-ne5pBMum.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-MNkadB41.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
  111. package/dist/{vue-ui-spark-trend-BlOdnAb4.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-CBPO2mUa.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-ChTbwY11.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-VLkIev3p.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-B7yvQfZW.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-DbOxX4Ks.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-mYU6RAK_.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
  118. package/dist/vue-ui-sparkline-BFlRfhM6.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-D_-31O2S.js → vue-ui-sparkline-lY0wS6kU.js} +96 -96
  120. package/dist/{vue-ui-sparkstackbar-KaFMlIAL.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-gW7rpJmQ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
  122. package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
  123. package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
  124. package/dist/{vue-ui-strip-plot-MlP5pDNx.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-4o1zAxG_.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
  126. package/dist/{vue-ui-table-B0PFrkLI.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
  127. package/dist/{vue-ui-table-DWNrd7zM.js → vue-ui-table-DZV-uDG2.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-BSKCS8Lq.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
  129. package/dist/{vue-ui-table-heatmap-4k74Ux7O.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-DCCogh2-.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-BrImSTh0.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
  132. package/dist/{vue-ui-thermometer-DswmMXiU.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-DHEoT4yB.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
  134. package/dist/{vue-ui-timer-Tv94CYqL.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BNFihNgK.js → vue-ui-timer-D2_1bbpl.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-B2kuKLe-.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-DzaUfiET.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
  138. package/dist/{vue-ui-treemap-qKZJcEYe.js → vue-ui-treemap-CgzgE20q.js} +11 -11
  139. package/dist/{vue-ui-treemap-Dmt3RPF2.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
  140. package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
  141. package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
  142. package/dist/{vue-ui-waffle-DjJoezg-.js → vue-ui-waffle-0mHE8fud.js} +11 -11
  143. package/dist/{vue-ui-waffle-fWQvVbAH.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DOrWSWt6.js → vue-ui-wheel-BWL-td7-.js} +7 -7
  145. package/dist/{vue-ui-wheel-2qIHyZe1.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Tgg5jCE6.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-UPPKGsXt.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
  148. package/dist/{vue-ui-xy-zCJv-Vao.js → vue-ui-xy-C8E2WzGt.js} +866 -819
  149. package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
  150. package/dist/{vue-ui-xy-canvas-paHHRtqs.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
  151. package/dist/{vue-ui-xy-canvas-Dm3YUQ3g.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/Legend-CqilK5CI.cjs +0 -1
  154. package/dist/Legend-WOejx9sp.js +0 -68
  155. package/dist/vue-ui-donut-D5mDCNky.cjs +0 -1
  156. package/dist/vue-ui-donut-DDayabSz.js +0 -1122
  157. package/dist/vue-ui-gauge-Uo_1rs0Z.cjs +0 -1
  158. package/dist/vue-ui-rings-Bp0WLW4E.js +0 -628
  159. package/dist/vue-ui-rings-BwvTmRCE.cjs +0 -2
  160. package/dist/vue-ui-sparkline-DO496Tk5.cjs +0 -1
  161. package/dist/vue-ui-stackbar-CYHsSzEK.cjs +0 -6
  162. package/dist/vue-ui-stackbar-vIyS6oag.js +0 -1061
  163. package/dist/vue-ui-vertical-bar-CMXtevyE.js +0 -888
  164. package/dist/vue-ui-vertical-bar-CQ_qEJ_O.cjs +0 -4
  165. package/dist/vue-ui-xy-CMde0Kq-.cjs +0 -3
@@ -1,20 +1,20 @@
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 re, a0 as ae, a3 as le, v as se, a4 as ne, d as he, B as oe, b as ce, q as de, R as ue, a5 as ge, r as fe, e as Ie, y as Ne, C as me, x as xe, a6 as be, Y as Fe, o as _e, s as Ae, w as ye, F as Le, A as Ce, u as Se } from "./index-Z_vzxZTo.js";
2
- import { D as ke } from "./DataTable-BBh7_ttv.js";
3
- import { _ as we } from "./Title-obqvTiXP.js";
4
- import { _ as Oe, u as Ge } from "./Tooltip-BK-ACGDE.js";
5
- import { U as ve } from "./usePrinter-Ck0oiMlt.js";
6
- import { _ as pe } from "./Shape-CwmKWYzq.js";
7
- import ze from "./BaseIcon-CrqNvGTs.js";
8
- import Me from "./vue-ui-table-sparkline-BrImSTh0.js";
9
- import Te from "./vue-ui-skeleton-BMRe3SzB.js";
10
- import { S as Pe } from "./Slicer-DvdU-uf8.js";
11
- import Ve from "./vue-ui-accordion-CV2-8b1O.js";
12
- import { u as Z } from "./useNestedProp-Buhi5uyL.js";
13
- import { _ as Re } from "./PackageVersion-dR8EUy_P.js";
14
- import { P as De } from "./PenAndPaper-CrXlqi9I.js";
15
- import { resolveComponent as P, openBlock as a, createElementBlock as s, normalizeClass as V, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as He, withCtx as M, renderSlot as w, normalizeProps as H, guardReactiveProps as B, createVNode as X, createElementVNode as f, Fragment as I, renderList as m, toDisplayString as S, withDirectives as Be, vModelCheckbox as Ee, createTextVNode as We } from "vue";
16
- import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Xe = J(), qe = {
1
+ import { c as J, a as K, t as Q, z as j, p as $, V as X, O as R, f as U, L as ee, G as te, i as re, a4 as ae, a1 as le, a5 as ie, v as se, a6 as ne, d as he, B as oe, b as ce, q as de, R as ue, a7 as ge, r as fe, e as Ie, a2 as me, y as Ne, C as xe, x as be, a8 as Fe, Z as _e, o as Ae, s as ye, w as Le, F as Ce, A as Se, u as ke } from "./index-BVNcFEqn.js";
2
+ import { D as we } from "./DataTable-DX_jYNWG.js";
3
+ import { _ as Oe } from "./Title-DyUTj8GI.js";
4
+ import { _ as Ge, u as ve } from "./Tooltip-B-0uEV3l.js";
5
+ import { U as ze } from "./usePrinter-Bcfs_I6G.js";
6
+ import { _ as pe } from "./Shape-aXd72O71.js";
7
+ import Me from "./BaseIcon-DpaRUsHC.js";
8
+ import Ve from "./vue-ui-table-sparkline-wWAVQ0es.js";
9
+ import Te from "./vue-ui-skeleton-Bgf16k10.js";
10
+ import { S as Pe } from "./Slicer-CopZgIzh.js";
11
+ import Re from "./vue-ui-accordion-GNblUy42.js";
12
+ import { u as Z } from "./useNestedProp-D79dWdel.js";
13
+ import { _ as De } from "./PackageVersion-B9_Ed72C.js";
14
+ import { P as He } from "./PenAndPaper-CzjoEhsO.js";
15
+ import { resolveComponent as T, openBlock as l, createElementBlock as i, normalizeClass as P, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as M, renderSlot as S, normalizeProps as H, guardReactiveProps as B, createVNode as q, createElementVNode as f, Fragment as I, renderList as m, toDisplayString as k, mergeProps as We, withDirectives as Ee, vModelCheckbox as Ye, createTextVNode as qe } from "vue";
16
+ import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const Ue = J(), Ze = {
18
18
  name: "vue-ui-xy",
19
19
  props: {
20
20
  config: {
@@ -31,18 +31,18 @@ const Xe = J(), qe = {
31
31
  }
32
32
  },
33
33
  components: {
34
- DataTable: ke,
34
+ DataTable: we,
35
35
  Shape: pe,
36
- Title: we,
37
- Tooltip: Oe,
38
- UserOptions: ve,
39
- BaseIcon: ze,
40
- TableSparkline: Me,
36
+ Title: Oe,
37
+ Tooltip: Ge,
38
+ UserOptions: ze,
39
+ BaseIcon: Me,
40
+ TableSparkline: Ve,
41
41
  Skeleton: Te,
42
42
  Slicer: Pe,
43
- Accordion: Ve,
44
- PackageVersion: Re,
45
- PenAndPaper: De
43
+ Accordion: Re,
44
+ PackageVersion: De,
45
+ PenAndPaper: He
46
46
  },
47
47
  data() {
48
48
  this.dataset.forEach((u, t) => {
@@ -53,9 +53,9 @@ const Xe = J(), qe = {
53
53
  index: t
54
54
  });
55
55
  });
56
- const i = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, l = Math.max(...this.dataset.map((u) => this.largestTriangleThreeBucketsArray({ data: u.series, threshold: i }).length)), o = {
56
+ const r = 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: r }).length)), o = {
57
57
  start: 0,
58
- end: l
58
+ end: s
59
59
  };
60
60
  return {
61
61
  themePalettes: K,
@@ -106,10 +106,10 @@ const Xe = J(), qe = {
106
106
  titleStep: 0,
107
107
  slicer: o,
108
108
  __to__: null,
109
- maxX: l,
109
+ maxX: s,
110
110
  showSparklineTable: !0,
111
111
  segregateStep: 0,
112
- sliderId: Xe,
112
+ sliderId: Ue,
113
113
  fontSizes: {
114
114
  xAxis: 18,
115
115
  yAxis: 12,
@@ -128,7 +128,7 @@ const Xe = J(), qe = {
128
128
  },
129
129
  watch: {
130
130
  dataset: {
131
- handler(i, l) {
131
+ handler(r, s) {
132
132
  this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
133
133
  data: o.series,
134
134
  threshold: this.FINAL_CONFIG.downsample.threshold
@@ -140,7 +140,7 @@ const Xe = J(), qe = {
140
140
  deep: !0
141
141
  },
142
142
  config: {
143
- handler(i, l) {
143
+ handler(r, s) {
144
144
  this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1;
145
145
  },
146
146
  deep: !0
@@ -152,9 +152,9 @@ const Xe = J(), qe = {
152
152
  },
153
153
  minimap() {
154
154
  if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
155
- const i = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), l = Math.max(...i.map((t) => t.series.length)), o = [];
156
- for (let t = 0; t < l; t += 1)
157
- o.push(i.map((e) => e.series[t] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
155
+ const r = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), s = Math.max(...r.map((t) => t.series.length)), o = [];
156
+ for (let t = 0; t < s; t += 1)
157
+ o.push(r.map((e) => e.series[t] || 0).reduce((e, x) => (e || 0) + (x || 0), 0));
158
158
  const u = Math.min(...o);
159
159
  return o.map((t) => t + (u < 0 ? Math.abs(u) : 0));
160
160
  },
@@ -168,7 +168,7 @@ const Xe = J(), qe = {
168
168
  return this.FINAL_CONFIG.chart.zoom.color;
169
169
  },
170
170
  allScales() {
171
- const i = this.lineSet.map((t) => ({
171
+ const r = this.lineSet.map((t) => ({
172
172
  name: t.name,
173
173
  color: t.color,
174
174
  scale: t.individualScale,
@@ -180,7 +180,7 @@ const Xe = J(), qe = {
180
180
  yOffset: t.yOffset || 0,
181
181
  individualHeight: t.individualHeight || this.drawingArea.height,
182
182
  autoScaleYLabels: t.autoScaleYLabels
183
- })), l = this.barSet.map((t) => ({
183
+ })), s = this.barSet.map((t) => ({
184
184
  name: t.name,
185
185
  color: t.color,
186
186
  scale: t.individualScale,
@@ -203,8 +203,8 @@ const Xe = J(), qe = {
203
203
  id: t.id,
204
204
  yOffset: t.yOffset || 0,
205
205
  individualHeight: t.individualHeight || this.drawingArea.height
206
- })), u = [...i, ...l, ...o].flatMap((t) => t).length;
207
- return [...i, ...l, ...o].flatMap((t, e) => ({
206
+ })), u = [...r, ...s, ...o].flatMap((t) => t).length;
207
+ return [...r, ...s, ...o].flatMap((t, e) => ({
208
208
  id: t.id,
209
209
  scaleLabel: t.scaleLabel,
210
210
  name: t.name,
@@ -223,28 +223,28 @@ const Xe = J(), qe = {
223
223
  return !!this.dataset && this.dataset.length;
224
224
  },
225
225
  chartFont() {
226
- const i = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
227
- return window.getComputedStyle(i, null).getPropertyValue("font-family");
226
+ const r = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
227
+ return window.getComputedStyle(r, null).getPropertyValue("font-family");
228
228
  },
229
229
  FINAL_CONFIG: {
230
230
  get: function() {
231
231
  return this.prepareConfig();
232
232
  },
233
- set: function(i) {
234
- return i;
233
+ set: function(r) {
234
+ return r;
235
235
  }
236
236
  },
237
237
  hasHighlightArea() {
238
- 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;
238
+ return Array.isArray(this.FINAL_CONFIG.chart.highlightArea) ? this.FINAL_CONFIG.chart.highlightArea.some((r) => r.show) : this.FINAL_CONFIG.chart.highlightArea && this.FINAL_CONFIG.chart.highlightArea.show;
239
239
  },
240
240
  highlightAreas() {
241
241
  if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
242
- return this.FINAL_CONFIG.chart.highlightArea.map((l) => ({
243
- ...l,
244
- span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1
242
+ return this.FINAL_CONFIG.chart.highlightArea.map((s) => ({
243
+ ...s,
244
+ span: s.from === s.to ? 1 : s.to < s.from ? 0 : s.to - s.from + 1
245
245
  }));
246
- const i = this.FINAL_CONFIG.chart.highlightArea;
247
- return [{ ...i, span: i.from === i.to ? 1 : i.to < i.from ? 0 : i.to - i.from + 1 }];
246
+ const r = this.FINAL_CONFIG.chart.highlightArea;
247
+ return [{ ...r, span: r.from === r.to ? 1 : r.to < r.from ? 0 : r.to - r.from + 1 }];
248
248
  },
249
249
  xPadding() {
250
250
  return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
@@ -256,44 +256,45 @@ const Xe = J(), qe = {
256
256
  return this.niceScale.max + this.relativeZero;
257
257
  },
258
258
  datasetWithIds() {
259
- return this.useSafeValues ? this.dataset.map((i, l) => ({
260
- ...i,
259
+ return this.useSafeValues ? this.dataset.map((r, s) => ({
260
+ ...r,
261
261
  series: this.largestTriangleThreeBucketsArray({
262
- data: i.series,
262
+ data: r.series,
263
263
  threshold: this.FINAL_CONFIG.downsample.threshold
264
264
  }),
265
- id: `uniqueId_${l}`
265
+ id: `uniqueId_${s}`
266
266
  })) : this.dataset;
267
267
  },
268
268
  safeDataset() {
269
- return this.useSafeValues ? this.dataset.map((i, l) => {
269
+ return this.useSafeValues ? this.dataset.map((r, s) => {
270
270
  const o = this.largestTriangleThreeBucketsArray({
271
- data: i.series,
271
+ data: r.series,
272
272
  threshold: this.FINAL_CONFIG.downsample.threshold
273
273
  });
274
274
  return {
275
- ...i,
275
+ ...r,
276
+ slotAbsoluteIndex: s,
276
277
  series: o.map((u) => this.isSafeValue(u) ? u : null).slice(this.slicer.start, this.slicer.end),
277
- color: this.convertColorToHex(i.color ? i.color : this.customPalette[l] ? this.customPalette[l] : this.palette[l]),
278
- id: `uniqueId_${l}`
278
+ color: this.convertColorToHex(r.color ? r.color : this.customPalette[s] ? this.customPalette[s] : this.palette[s]),
279
+ id: `uniqueId_${s}`
279
280
  };
280
281
  }) : this.dataset;
281
282
  },
282
283
  relativeDataset() {
283
- return this.safeDataset.map((i, l) => ({
284
- ...i,
285
- series: i.series.map((o) => o + this.relativeZero),
286
- absoluteValues: i.series
287
- })).filter((i) => !this.segregatedSeries.includes(i.id));
284
+ return this.safeDataset.map((r, s) => ({
285
+ ...r,
286
+ series: r.series.map((o) => o + this.relativeZero),
287
+ absoluteValues: r.series
288
+ })).filter((r) => !this.segregatedSeries.includes(r.id));
288
289
  },
289
290
  tableSparklineDataset() {
290
- return this.relativeDataset.map((i) => {
291
- const l = i.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
291
+ return this.relativeDataset.map((r) => {
292
+ const s = r.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
292
293
  return {
293
- id: i.id,
294
- name: i.name,
295
- color: i.color,
296
- values: this.fillArray(this.maxSeries, l)
294
+ id: r.id,
295
+ name: r.name,
296
+ color: r.color,
297
+ values: this.fillArray(this.maxSeries, s)
297
298
  };
298
299
  });
299
300
  },
@@ -324,75 +325,75 @@ const Xe = J(), qe = {
324
325
  };
325
326
  },
326
327
  absoluteDataset() {
327
- return this.safeDataset.map((i, l) => ({
328
- absoluteIndex: l,
329
- ...i,
330
- series: i.series.map((o) => o + this.relativeZero),
331
- absoluteValues: i.series,
332
- segregate: () => this.segregate(i),
333
- isSegregated: this.segregatedSeries.includes(i.id)
328
+ return this.safeDataset.map((r, s) => ({
329
+ absoluteIndex: s,
330
+ ...r,
331
+ series: r.series.map((o) => o + this.relativeZero),
332
+ absoluteValues: r.series,
333
+ segregate: () => this.segregate(r),
334
+ isSegregated: this.segregatedSeries.includes(r.id)
334
335
  }));
335
336
  },
336
337
  barSet() {
337
- return this.activeSeriesWithStackRatios.filter((i) => i.type === "bar").map((i, l) => {
338
- this.checkAutoScaleError(i);
339
- const o = Math.min(...i.absoluteValues.filter((g) => ![null, void 0].includes(g))), u = Math.max(...i.absoluteValues.filter((g) => ![null, void 0].includes(g))), e = {
340
- ratios: i.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - o) / (u - o)),
338
+ return this.activeSeriesWithStackRatios.filter((r) => r.type === "bar").map((r, s) => {
339
+ this.checkAutoScaleError(r);
340
+ const o = Math.min(...r.absoluteValues.filter((g) => ![null, void 0].includes(g))), u = Math.max(...r.absoluteValues.filter((g) => ![null, void 0].includes(g))), e = {
341
+ ratios: r.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - o) / (u - o)),
341
342
  valueMin: o,
342
343
  valueMax: u < 0 ? 0 : u
343
344
  }, x = {
344
- max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
345
- min: i.scaleMin || Math.min(...i.absoluteValues.filter((g) => ![void 0, null].includes(g))) > 0 ? 0 : Math.min(...i.absoluteValues.filter((g) => ![null, void 0].includes(g)))
346
- }, A = 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, A), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * k : e.valueMax, A), T = N.min >= 0 ? 0 : Math.abs(N.min), v = 0, p = N.max + T, O = b.max + Math.abs(v), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, z = this.drawingArea.bottom - _ - C * T / p, r = this.drawingArea.bottom - _ - C * v / O, h = this.absoluteDataset.filter((g) => g.type === "bar").filter((g) => !this.segregatedSeries.includes(g.id)).length, n = i.series.map((g, F) => {
347
- const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[F] + T) / p : this.ratioToMax(g), Y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * l + this.slot.bar * F * h - this.barSlot / 2 - l * this.barPeriodGap;
345
+ max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
346
+ min: r.scaleMin || Math.min(...r.absoluteValues.filter((g) => ![void 0, null].includes(g))) > 0 ? 0 : Math.min(...r.absoluteValues.filter((g) => ![null, void 0].includes(g)))
347
+ }, A = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, w = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * w : x.max, A), b = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * w : e.valueMax, A), V = N.min >= 0 ? 0 : Math.abs(N.min), v = 0, z = N.max + V, O = b.max + Math.abs(v), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, p = this.drawingArea.bottom - _ - C * V / z, a = this.drawingArea.bottom - _ - C * v / O, h = this.absoluteDataset.filter((g) => g.type === "bar").filter((g) => !this.segregatedSeries.includes(g.id)).length, n = r.series.map((g, F) => {
348
+ const E = this.mutableConfig.useIndividualScale ? (r.absoluteValues[F] + V) / z : this.ratioToMax(g), Y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left + this.slot.bar * s + this.slot.bar * F * h - this.barSlot / 2 - s * this.barPeriodGap;
348
349
  return {
349
350
  yOffset: this.checkNaN(_),
350
351
  individualHeight: this.checkNaN(C),
351
352
  x: this.checkNaN(Y),
352
- y: this.drawingArea.bottom - _ - C * W,
353
- value: i.absoluteValues[F],
354
- zeroPosition: this.checkNaN(z),
355
- individualMax: this.checkNaN(p),
356
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
353
+ y: this.drawingArea.bottom - _ - C * E,
354
+ value: r.absoluteValues[F],
355
+ zeroPosition: this.checkNaN(p),
356
+ individualMax: this.checkNaN(z),
357
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
357
358
  };
358
- }), d = i.absoluteValues.map((g) => b.min >= 0 ? (g - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (g + Math.abs(b.min)) / (b.max + Math.abs(b.min))), E = i.series.map((g, F) => {
359
- const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * l + this.slot.bar * F * this.absoluteDataset.filter((Y) => Y.type === "bar").filter((Y) => !this.segregatedSeries.includes(Y.id)).length;
359
+ }), d = r.absoluteValues.map((g) => b.min >= 0 ? (g - Math.abs(b.min)) / (b.max - Math.abs(b.min)) : (g + Math.abs(b.min)) / (b.max + Math.abs(b.min))), W = r.series.map((g, F) => {
360
+ const E = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * F : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * F * this.absoluteDataset.filter((Y) => Y.type === "bar").filter((Y) => !this.segregatedSeries.includes(Y.id)).length;
360
361
  return {
361
362
  yOffset: this.checkNaN(_),
362
363
  individualHeight: this.checkNaN(C),
363
- x: this.checkNaN(W),
364
+ x: this.checkNaN(E),
364
365
  y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[F] || 0)),
365
- value: i.absoluteValues[F],
366
- zeroPosition: this.checkNaN(z),
367
- individualMax: this.checkNaN(p),
368
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
366
+ value: r.absoluteValues[F],
367
+ zeroPosition: this.checkNaN(p),
368
+ individualMax: this.checkNaN(z),
369
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
369
370
  };
370
371
  }), y = N.ticks.map((g) => ({
371
- y: g >= 0 ? z - C * (g / p) : z + C * Math.abs(g) / p,
372
+ y: g >= 0 ? p - C * (g / z) : p + C * Math.abs(g) / z,
372
373
  value: g,
373
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
374
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
375
- datapoint: i
374
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
375
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
376
+ datapoint: r
376
377
  })), G = b.ticks.map((g) => {
377
378
  const F = (g - b.min) / (b.max - b.min);
378
379
  return {
379
- y: g >= 0 ? r - C * F : r + C * F,
380
+ y: g >= 0 ? a - C * F : a + C * F,
380
381
  value: g,
381
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
382
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
383
- datapoint: i
382
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
383
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
384
+ datapoint: r
384
385
  };
385
386
  });
386
387
  return {
387
- ...i,
388
+ ...r,
388
389
  yOffset: _,
389
390
  autoScaleYLabels: G,
390
391
  individualHeight: C,
391
- scaleYLabels: i.autoScaling ? G : y,
392
- individualScale: i.autoScaling ? b : N,
393
- individualMax: i.autoScaling ? O : p,
394
- zeroPosition: i.autoScaling ? r : z,
395
- plots: i.autoScaling ? E : n
392
+ scaleYLabels: r.autoScaling ? G : y,
393
+ individualScale: r.autoScaling ? b : N,
394
+ individualMax: r.autoScaling ? O : z,
395
+ zeroPosition: r.autoScaling ? a : p,
396
+ plots: r.autoScaling ? W : n
396
397
  };
397
398
  });
398
399
  },
@@ -400,138 +401,138 @@ const Xe = J(), qe = {
400
401
  return this.absoluteDataset.length;
401
402
  },
402
403
  activeSeriesWithStackRatios() {
403
- return this.assignStackRatios(this.absoluteDataset.filter((i) => !this.segregatedSeries.includes(i.id)));
404
+ return this.assignStackRatios(this.absoluteDataset.filter((r) => !this.segregatedSeries.includes(r.id)));
404
405
  },
405
406
  lineSet() {
406
- return this.activeSeriesWithStackRatios.filter((i) => i.type === "line").map((i) => {
407
- this.checkAutoScaleError(i);
408
- const l = Math.min(...i.absoluteValues.filter((g) => ![void 0, null].includes(g))), o = Math.max(...i.absoluteValues.filter((g) => ![void 0, null].includes(g))) || 1, t = {
409
- ratios: i.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - l) / (o - l)),
410
- valueMin: l,
407
+ return this.activeSeriesWithStackRatios.filter((r) => r.type === "line").map((r) => {
408
+ this.checkAutoScaleError(r);
409
+ const s = Math.min(...r.absoluteValues.filter((g) => ![void 0, null].includes(g))), o = Math.max(...r.absoluteValues.filter((g) => ![void 0, null].includes(g))) || 1, t = {
410
+ ratios: r.absoluteValues.filter((g) => ![null, void 0].includes(g)).map((g) => (g - s) / (o - s)),
411
+ valueMin: s,
411
412
  valueMax: o
412
413
  }, e = {
413
- max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
414
- min: i.scaleMin || (Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues))
415
- }, x = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + Math.abs(b), p = N.max + Math.abs(T), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, z = this.drawingArea.bottom - O - _ * T / p, r = i.series.map((g, F) => {
416
- const W = this.mutableConfig.useIndividualScale ? (i.absoluteValues[F] + Math.abs(b)) / v : this.ratioToMax(g);
414
+ max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
415
+ min: r.scaleMin || (Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues))
416
+ }, x = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + Math.abs(b), z = N.max + Math.abs(V), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, p = this.drawingArea.bottom - O - _ * V / z, a = r.series.map((g, F) => {
417
+ const E = this.mutableConfig.useIndividualScale ? (r.absoluteValues[F] + Math.abs(b)) / v : this.ratioToMax(g);
417
418
  return {
418
419
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
419
- y: this.checkNaN(this.drawingArea.bottom - O - _ * W),
420
- value: i.absoluteValues[F],
421
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
420
+ y: this.checkNaN(this.drawingArea.bottom - O - _ * E),
421
+ value: r.absoluteValues[F],
422
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
422
423
  };
423
- }), h = i.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 = i.series.map((g, F) => [void 0, null].includes(i.absoluteValues[F]) ? {
424
+ }), h = r.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 = r.series.map((g, F) => [void 0, null].includes(r.absoluteValues[F]) ? {
424
425
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
425
426
  y: C,
426
- value: i.absoluteValues[F],
427
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
427
+ value: r.absoluteValues[F],
428
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
428
429
  } : {
429
430
  x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * F),
430
431
  y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[F] || 0)),
431
- value: i.absoluteValues[F],
432
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
433
- }), d = this.createSmoothPath(r), E = this.createSmoothPath(n), y = k.ticks.map((g) => ({
432
+ value: r.absoluteValues[F],
433
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[F] || ""
434
+ }), d = this.createSmoothPath(a), W = this.createSmoothPath(n), y = w.ticks.map((g) => ({
434
435
  y: g >= 0 ? C - _ * (g / v) : C + _ * Math.abs(g) / v,
435
436
  value: g,
436
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
437
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
438
- datapoint: i
437
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
438
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
439
+ datapoint: r
439
440
  })), G = N.ticks.map((g) => {
440
441
  const F = (g - N.min) / (N.max - N.min);
441
442
  return {
442
- y: g >= 0 ? z - _ * F : z + _ * F,
443
+ y: g >= 0 ? p - _ * F : p + _ * F,
443
444
  value: g,
444
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
445
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
446
- datapoint: i
445
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
446
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
447
+ datapoint: r
447
448
  };
448
449
  });
449
450
  return {
450
- ...i,
451
+ ...r,
451
452
  yOffset: O,
452
453
  autoScaleYLabels: G,
453
454
  individualHeight: _,
454
- scaleYLabels: i.autoScaling ? G : y,
455
- individualScale: i.autoScaling ? N : k,
456
- individualMax: i.autoScaling ? p : v,
457
- zeroPosition: i.autoScaling ? z : C,
458
- curve: i.autoScaling ? E : d,
459
- plots: i.autoScaling ? n : r,
460
- area: i.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(i.autoScaling ? n : r, i.autoScaling ? z : C) : this.createArea(r) : ""
455
+ scaleYLabels: r.autoScaling ? G : y,
456
+ individualScale: r.autoScaling ? N : w,
457
+ individualMax: r.autoScaling ? z : v,
458
+ zeroPosition: r.autoScaling ? p : C,
459
+ curve: r.autoScaling ? W : d,
460
+ plots: r.autoScaling ? n : a,
461
+ area: r.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(r.autoScaling ? n : a, r.autoScaling ? p : C) : this.createArea(a) : ""
461
462
  };
462
463
  });
463
464
  },
464
465
  plotSet() {
465
- return this.activeSeriesWithStackRatios.filter((i) => i.type === "plot").map((i) => {
466
- this.checkAutoScaleError(i);
467
- const l = Math.min(...i.absoluteValues.filter((y) => ![null, void 0].includes(y))), o = Math.max(...i.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, t = {
468
- ratios: i.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - l) / (o - l)),
469
- valueMin: l,
466
+ return this.activeSeriesWithStackRatios.filter((r) => r.type === "plot").map((r) => {
467
+ this.checkAutoScaleError(r);
468
+ const s = Math.min(...r.absoluteValues.filter((y) => ![null, void 0].includes(y))), o = Math.max(...r.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1, t = {
469
+ ratios: r.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - s) / (o - s)),
470
+ valueMin: s,
470
471
  valueMax: o
471
472
  }, e = {
472
- max: i.scaleMax || Math.max(...i.absoluteValues) || 1,
473
- min: i.scaleMin || Math.min(...i.absoluteValues) > 0 ? 0 : Math.min(...i.absoluteValues)
474
- }, x = i.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + b, p = N.max + Math.abs(T), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - i.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * i.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, z = this.drawingArea.bottom - O - _ * T / p, r = i.series.map((y, G) => {
475
- const g = this.mutableConfig.useIndividualScale ? (i.absoluteValues[G] + Math.abs(b)) / v : this.ratioToMax(y);
473
+ max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
474
+ min: r.scaleMin || Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues)
475
+ }, x = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, w = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), b = w.min >= 0 ? 0 : Math.abs(w.min), V = 0, v = w.max + b, z = N.max + Math.abs(V), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * b / v, p = this.drawingArea.bottom - O - _ * V / z, a = r.series.map((y, G) => {
476
+ const g = this.mutableConfig.useIndividualScale ? (r.absoluteValues[G] + Math.abs(b)) / v : this.ratioToMax(y);
476
477
  return {
477
478
  x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
478
479
  y: this.checkNaN(this.drawingArea.bottom - O - _ * g),
479
- value: i.absoluteValues[G],
480
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
480
+ value: r.absoluteValues[G],
481
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
481
482
  };
482
- }), h = i.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 = i.series.map((y, G) => ({
483
+ }), h = r.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 = r.series.map((y, G) => ({
483
484
  x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
484
485
  y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[G] || 0)),
485
- value: i.absoluteValues[G],
486
- comment: i.comments && i.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
487
- })), d = k.ticks.map((y) => ({
486
+ value: r.absoluteValues[G],
487
+ comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[G] || ""
488
+ })), d = w.ticks.map((y) => ({
488
489
  y: y >= 0 ? C - _ * (y / v) : C + _ * Math.abs(y) / v,
489
490
  value: y,
490
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
491
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
492
- datapoint: i
493
- })), E = N.ticks.map((y) => {
491
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
492
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
493
+ datapoint: r
494
+ })), W = N.ticks.map((y) => {
494
495
  const G = (y - N.min) / (N.max - N.min);
495
496
  return {
496
- y: y >= 0 ? z - _ * G : z + _ * G,
497
+ y: y >= 0 ? p - _ * G : p + _ * G,
497
498
  value: y,
498
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
499
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix,
500
- datapoint: i
499
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
500
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
501
+ datapoint: r
501
502
  };
502
503
  });
503
504
  return {
504
- ...i,
505
+ ...r,
505
506
  yOffset: O,
506
- autoScaleYLabels: E,
507
+ autoScaleYLabels: W,
507
508
  individualHeight: _,
508
- scaleYLabels: i.autoScaling ? E : d,
509
- individualScale: i.autoScaling ? N : k,
510
- individualMax: i.autoScaling ? p : v,
511
- zeroPosition: i.autoScaling ? z : C,
512
- plots: i.autoScaling ? n : r
509
+ scaleYLabels: r.autoScaling ? W : d,
510
+ individualScale: r.autoScaling ? N : w,
511
+ individualMax: r.autoScaling ? z : v,
512
+ zeroPosition: r.autoScaling ? p : C,
513
+ plots: r.autoScaling ? n : a
513
514
  };
514
515
  });
515
516
  },
516
517
  drawingArea() {
517
- const i = this.mutableConfig.useIndividualScale && this.FINAL_CONFIG.chart.grid.labels.show ? this.absoluteDataset.filter((l) => !this.segregatedSeries.includes(l.id)).length * (this.mutableConfig.isStacked ? 0 : this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth) : 0;
518
+ const r = 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;
518
519
  return {
519
520
  top: this.FINAL_CONFIG.chart.padding.top,
520
521
  right: this.width - this.FINAL_CONFIG.chart.padding.right,
521
522
  bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
522
- left: this.FINAL_CONFIG.chart.padding.left + i,
523
+ left: this.FINAL_CONFIG.chart.padding.left + r,
523
524
  height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
524
- width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + i)
525
+ width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + r)
525
526
  };
526
527
  },
527
528
  max() {
528
- 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)));
529
+ return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax ? this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax : Math.max(...this.safeDataset.filter((r) => !this.segregatedSeries.includes(r.id)).map((r) => Math.max(...r.series)));
529
530
  },
530
531
  min() {
531
532
  if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
532
533
  return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
533
- const i = Math.min(...this.safeDataset.filter((l) => !this.segregatedSeries.includes(l.id)).map((l) => Math.min(...l.series)));
534
- return i > 0 ? 0 : i;
534
+ const r = Math.min(...this.safeDataset.filter((s) => !this.segregatedSeries.includes(s.id)).map((s) => Math.min(...s.series)));
535
+ return r > 0 ? 0 : r;
535
536
  },
536
537
  niceScale() {
537
538
  return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
@@ -540,52 +541,52 @@ const Xe = J(), qe = {
540
541
  return this.slicer.end - this.slicer.start;
541
542
  },
542
543
  timeLabels() {
543
- const i = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), l = [];
544
- for (let o = 0; o < i; o += 1)
545
- l.push({
544
+ const r = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), s = [];
545
+ for (let o = 0; o < r; o += 1)
546
+ s.push({
546
547
  text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
547
548
  absoluteIndex: o
548
549
  });
549
- return l.slice(this.slicer.start, this.slicer.end);
550
+ return s.slice(this.slicer.start, this.slicer.end);
550
551
  },
551
552
  slot() {
552
553
  return {
553
- bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((i) => i.type === "bar").filter((i) => !this.segregatedSeries.includes(i.id)).length,
554
+ bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((r) => r.type === "bar").filter((r) => !this.segregatedSeries.includes(r.id)).length,
554
555
  plot: this.drawingArea.width / this.maxSeries,
555
556
  line: this.drawingArea.width / this.maxSeries
556
557
  };
557
558
  },
558
559
  barSlot() {
559
- const i = this.safeDataset.filter((l) => l.type === "bar").filter((l) => !this.segregatedSeries.includes(l.id)).length;
560
- return this.drawingArea.width / this.maxSeries / i - this.barPeriodGap * i;
560
+ const r = this.safeDataset.filter((s) => s.type === "bar").filter((s) => !this.segregatedSeries.includes(s.id)).length;
561
+ return this.drawingArea.width / this.maxSeries / r - this.barPeriodGap * r;
561
562
  },
562
563
  barPeriodGap() {
563
564
  return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
564
565
  },
565
566
  maxSlot() {
566
- return Math.max(...Object.values(this.slot).filter((i) => i !== 1 / 0));
567
+ return Math.max(...Object.values(this.slot).filter((r) => r !== 1 / 0));
567
568
  },
568
569
  table() {
569
570
  if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
570
- const i = this.relativeDataset.map((o) => ({
571
+ const r = this.relativeDataset.map((o) => ({
571
572
  label: o.name,
572
573
  color: o.color,
573
574
  type: o.type
574
- })), l = [];
575
+ })), s = [];
575
576
  return this.timeLabels.forEach((o, u) => {
576
577
  const t = [o.text];
577
578
  this.relativeDataset.forEach((e) => {
578
579
  t.push(this.canShowValue(e.absoluteValues[u]) ? Number(e.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
579
- }), l.push(t);
580
- }), { head: i, body: l };
580
+ }), s.push(t);
581
+ }), { head: r, body: s };
581
582
  },
582
583
  dataTable() {
583
- const i = this.FINAL_CONFIG.table.showSum;
584
- let l = [""].concat(this.relativeDataset.map((e) => e.name));
585
- i && (l = l.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>'));
584
+ const r = this.FINAL_CONFIG.table.showSum;
585
+ let s = [""].concat(this.relativeDataset.map((e) => e.name));
586
+ r && (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>'));
586
587
  let o = [];
587
588
  for (let e = 0; e < this.maxSeries; e += 1) {
588
- const x = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, k) => A + k, 0);
589
+ const x = this.relativeDataset.map((A) => A.absoluteValues[e] ?? 0).reduce((A, w) => A + w, 0);
589
590
  o.push(
590
591
  [
591
592
  this.timeLabels[e].text ?? "-"
@@ -600,7 +601,7 @@ const Xe = J(), qe = {
600
601
  r: this.FINAL_CONFIG.table.rounding
601
602
  })
602
603
  )
603
- )).concat(i ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
604
+ )).concat(r ? (x ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
604
605
  );
605
606
  }
606
607
  const u = {
@@ -616,7 +617,7 @@ const Xe = J(), qe = {
616
617
  },
617
618
  breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
618
619
  }, t = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
619
- return { head: l, body: o, config: u, colNames: t };
620
+ return { head: s, body: o, config: u, colNames: t };
620
621
  },
621
622
  dataTooltipSlot() {
622
623
  return {
@@ -630,19 +631,20 @@ const Xe = J(), qe = {
630
631
  };
631
632
  },
632
633
  selectedSeries() {
633
- return this.relativeDataset.map((i) => ({
634
- shape: i.shape || null,
635
- name: i.name,
636
- color: i.color,
637
- type: i.type,
638
- value: i.absoluteValues.find((l, o) => o === this.selectedSerieIndex),
639
- comments: i.comments || [],
640
- prefix: i.prefix || this.FINAL_CONFIG.chart.labels.prefix,
641
- suffix: i.suffix || this.FINAL_CONFIG.chart.labels.suffix
634
+ return this.relativeDataset.map((r) => ({
635
+ slotAbsoluteIndex: r.slotAbsoluteIndex,
636
+ shape: r.shape || null,
637
+ name: r.name,
638
+ color: r.color,
639
+ type: r.type,
640
+ value: r.absoluteValues.find((s, o) => o === this.selectedSerieIndex),
641
+ comments: r.comments || [],
642
+ prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
643
+ suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix
642
644
  }));
643
645
  },
644
646
  tooltipContent() {
645
- let i = "", l = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
647
+ let r = "", s = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
646
648
  const o = this.timeLabels[this.selectedSerieIndex], u = this.FINAL_CONFIG.chart.tooltip.customFormat;
647
649
  return this.isFunction(u) && this.functionReturnsString(() => u({
648
650
  seriesIndex: this.selectedSerieIndex,
@@ -660,15 +662,15 @@ const Xe = J(), qe = {
660
662
  lines: this.lineSet,
661
663
  plots: this.plotSet,
662
664
  config: this.FINAL_CONFIG
663
- }) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (i += `<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) => {
665
+ }) : (o && o.text && this.FINAL_CONFIG.chart.tooltip.showTimeLabel && (r += `<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) => {
664
666
  if (this.isSafeValue(t.value)) {
665
667
  let e = "", x = "";
666
668
  switch (this.icons[t.type]) {
667
669
  case "bar":
668
- 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>`;
670
+ e = `<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern ? `url(#pattern_${this.uniqueId}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
669
671
  break;
670
672
  case "line":
671
- !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>`;
673
+ !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="${X({ 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>`;
672
674
  break;
673
675
  case "plot":
674
676
  if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
@@ -676,7 +678,7 @@ const Xe = J(), qe = {
676
678
  break;
677
679
  }
678
680
  if (t.shape === "star") {
679
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${q({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
681
+ e = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${X({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
680
682
  break;
681
683
  }
682
684
  if (t.shape === "triangle") {
@@ -700,7 +702,7 @@ const Xe = J(), qe = {
700
702
  break;
701
703
  }
702
704
  }
703
- 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(
705
+ r += `<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(
704
706
  t.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : t.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
705
707
  t.value,
706
708
  this.dataLabel({
@@ -711,12 +713,12 @@ const Xe = J(), qe = {
711
713
  }),
712
714
  { datapoint: t }
713
715
  ) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${U({
714
- v: this.checkNaN(Math.abs(t.value) / l * 100),
716
+ v: this.checkNaN(Math.abs(t.value) / s * 100),
715
717
  s: "%",
716
718
  r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
717
- })})` : ""}</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>`);
719
+ })})` : ""}</div>`, this.FINAL_CONFIG.chart.comments.showInTooltip && t.comments.length && t.comments.slice(this.slicer.start, this.slicer.end)[this.selectedSerieIndex] && (r += `<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>`);
718
720
  }
719
- }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${i}</div>`);
721
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${r}</div>`);
720
722
  },
721
723
  svg() {
722
724
  return {
@@ -725,9 +727,9 @@ const Xe = J(), qe = {
725
727
  };
726
728
  },
727
729
  yLabels() {
728
- return this.niceScale.ticks.map((i) => ({
729
- y: i >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(i) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(i)),
730
- value: i,
730
+ return this.niceScale.ticks.map((r) => ({
731
+ y: r >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(r) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(r)),
732
+ value: r,
731
733
  prefix: this.FINAL_CONFIG.chart.labels.prefix,
732
734
  suffix: this.FINAL_CONFIG.chart.labels.suffix
733
735
  }));
@@ -737,20 +739,20 @@ const Xe = J(), qe = {
737
739
  }
738
740
  },
739
741
  mounted() {
740
- this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (i) => {
742
+ this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (r) => {
741
743
  this.clientPosition = {
742
- x: i.clientX,
743
- y: i.clientY
744
+ x: r.clientX,
745
+ y: r.clientY
744
746
  };
745
747
  });
746
748
  },
747
749
  methods: {
748
750
  abbreviate: ee,
749
751
  adaptColorToBackground: te,
750
- applyDataLabel: ie,
751
- assignStackRatios: re,
752
- calcLinearProgression: ae,
753
- calculateNiceScaleWithExactExtremes: le,
752
+ applyDataLabel: re,
753
+ assignStackRatios: ae,
754
+ calcLinearProgression: le,
755
+ calculateNiceScaleWithExactExtremes: ie,
754
756
  checkNaN: se,
755
757
  closestDecimal: ne,
756
758
  convertColorToHex: he,
@@ -762,80 +764,81 @@ const Xe = J(), qe = {
762
764
  dataLabel: U,
763
765
  downloadCsv: fe,
764
766
  error: Ie,
767
+ forceValidValue: me,
765
768
  functionReturnsString: Ne,
766
- hasDeepProperty: me,
767
- isFunction: xe,
768
- isSafeValue: be,
769
- largestTriangleThreeBucketsArray: Fe,
770
- objectIsEmpty: _e,
771
- setOpacity: Ae,
772
- shiftHue: ye,
773
- translateSize: Le,
774
- treeShake: Ce,
775
- useMouse: Ge,
769
+ hasDeepProperty: xe,
770
+ isFunction: be,
771
+ isSafeValue: Fe,
772
+ largestTriangleThreeBucketsArray: _e,
773
+ objectIsEmpty: Ae,
774
+ setOpacity: ye,
775
+ shiftHue: Le,
776
+ translateSize: Ce,
777
+ treeShake: Se,
778
+ useMouse: ve,
776
779
  useNestedProp: Z,
777
- setUserOptionsVisibility(i = !1) {
778
- this.showUserOptionsOnChartHover && (this.userOptionsVisible = i);
780
+ setUserOptionsVisibility(r = !1) {
781
+ this.showUserOptionsOnChartHover && (this.userOptionsVisible = r);
779
782
  },
780
783
  toggleAnnotator() {
781
784
  this.isAnnotator = !this.isAnnotator;
782
785
  },
783
- selectTimeLabel(i, l) {
786
+ selectTimeLabel(r, s) {
784
787
  const o = this.relativeDataset.map((u) => ({
785
788
  shape: u.shape || null,
786
789
  name: u.name,
787
790
  color: u.color,
788
791
  type: u.type,
789
- value: u.absoluteValues.find((t, e) => e === l),
792
+ value: u.absoluteValues.find((t, e) => e === s),
790
793
  comments: u.comments || [],
791
794
  prefix: u.prefix || this.FINAL_CONFIG.chart.labels.prefix,
792
795
  suffix: u.suffix || this.FINAL_CONFIG.chart.labels.suffix
793
796
  }));
794
797
  this.$emit("selectTimeLabel", {
795
798
  datapoint: o,
796
- absoluteIndex: i.absoluteIndex,
797
- label: i.text
799
+ absoluteIndex: r.absoluteIndex,
800
+ label: r.text
798
801
  });
799
802
  },
800
- getHighlightAreaPosition(i) {
801
- const l = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (i.from - this.slicer.start), o = 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;
803
+ getHighlightAreaPosition(r) {
804
+ const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (r.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * r.span;
802
805
  return {
803
- x: l < this.drawingArea.left ? this.drawingArea.left : l,
806
+ x: s < this.drawingArea.left ? this.drawingArea.left : s,
804
807
  width: o
805
808
  };
806
809
  },
807
810
  prepareConfig() {
808
- const i = Se().vue_ui_xy;
811
+ const r = ke().vue_ui_xy;
809
812
  if (!Object.keys(this.config || {}).length)
810
- return i;
811
- const l = this.useNestedProp({
813
+ return r;
814
+ const s = this.useNestedProp({
812
815
  userConfig: this.config,
813
- defaultConfig: i
816
+ defaultConfig: r
814
817
  });
815
- return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? l.chart.highlightArea = this.config.chart.highlightArea : l.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = this.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = this.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, l.theme ? {
818
+ 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 ? {
816
819
  ...Z({
817
- userConfig: this.themes.vue_ui_xy[l.theme] || this.config,
818
- defaultConfig: l
820
+ userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
821
+ defaultConfig: s
819
822
  }),
820
- customPalette: this.themePalettes[l.theme] || this.palette
821
- } : l;
823
+ customPalette: this.themePalettes[s.theme] || this.palette
824
+ } : s;
822
825
  },
823
826
  prepareChart() {
824
827
  if (this.objectIsEmpty(this.dataset) ? this.error({
825
828
  componentName: "VueUiXy",
826
829
  type: "dataset"
827
- }) : this.dataset.forEach((i, l) => {
828
- [null, void 0].includes(i.name) && this.error({
830
+ }) : this.dataset.forEach((r, s) => {
831
+ [null, void 0].includes(r.name) && this.error({
829
832
  componentName: "VueUiXy",
830
833
  type: "datasetSerieAttribute",
831
834
  property: "name (string)",
832
- index: l
835
+ index: s
833
836
  });
834
- }), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((i) => {
835
- i.series.forEach((l, o) => {
836
- this.isSafeValue(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
837
- -----> The serie '${i.name}' contains the value '${l}' at index ${o}.
838
- '${l}' was converted to null to allow the chart to display.`);
837
+ }), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((r) => {
838
+ r.series.forEach((s, o) => {
839
+ this.isSafeValue(s) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
840
+ -----> The serie '${r.name}' contains the value '${s}' at index ${o}.
841
+ '${s}' was converted to null to allow the chart to display.`);
839
842
  });
840
843
  }), this.showUserOptionsOnChartHover = this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.keepUserOptionState = this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave, this.userOptionsVisible = !this.FINAL_CONFIG.chart.userOptions.showOnChartHover, this.mutableConfig = {
841
844
  dataLabels: {
@@ -846,25 +849,25 @@ const Xe = J(), qe = {
846
849
  isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
847
850
  useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
848
851
  }, this.FINAL_CONFIG.responsive) {
849
- const l = this.$refs.chart.parentNode, { height: o, width: u } = l.getBoundingClientRect();
852
+ const s = this.$refs.chart.parentNode, { height: o, width: u } = s.getBoundingClientRect();
850
853
  let t = null, e = 0;
851
854
  this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
852
855
  let x = null, A = 0;
853
856
  this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, A = x.getBoundingClientRect().height);
854
- let k = null, N = 0;
855
- this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend, N = k.getBoundingClientRect().height);
857
+ let w = null, N = 0;
858
+ this.FINAL_CONFIG.chart.legend.show && (w = this.$refs.chartLegend, N = w.getBoundingClientRect().height);
856
859
  let b = 0;
857
860
  this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height);
858
- let T = 0;
859
- this.$refs.noTitle && (T = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - N - A - b - T, this.width = u, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((p) => {
860
- for (const O of p)
861
+ let V = 0;
862
+ this.$refs.noTitle && (V = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - N - A - b - V, this.width = u, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((z) => {
863
+ for (const O of z)
861
864
  this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (A = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (b = this.$refs.source.getBoundingClientRect().height), this.height = O.contentBoxSize[0].blockSize - e - N - A - b - 24, this.width = O.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
862
- }).observe(l);
865
+ }).observe(s);
863
866
  } else
864
867
  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;
865
868
  },
866
- selectMinimapIndex(i) {
867
- this.selectedMinimapIndex = i;
869
+ selectMinimapIndex(r) {
870
+ this.selectedMinimapIndex = r;
868
871
  },
869
872
  convertSizes() {
870
873
  this.fontSizes.dataLabels = this.translateSize({
@@ -917,118 +920,118 @@ const Xe = J(), qe = {
917
920
  toggleTooltip() {
918
921
  this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
919
922
  },
920
- checkAutoScaleError(i) {
921
- 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`));
923
+ checkAutoScaleError(r) {
924
+ r.autoScaling && (this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${r.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: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
922
925
  },
923
- createArea(i) {
924
- if (!i[0]) return [-10, -10, "", -10, -10];
925
- const l = { x: i[0].x, y: this.zero }, o = { x: i.at(-1).x, y: this.zero }, u = [];
926
- return i.forEach((t) => {
926
+ createArea(r) {
927
+ if (!r[0]) return [-10, -10, "", -10, -10];
928
+ const s = { x: r[0].x, y: this.zero }, o = { x: r.at(-1).x, y: this.zero }, u = [];
929
+ return r.forEach((t) => {
927
930
  u.push(`${t.x},${t.y} `);
928
- }), [l.x, l.y, ...u, o.x, o.y].toString();
931
+ }), [s.x, s.y, ...u, o.x, o.y].toString();
929
932
  },
930
- createIndividualArea(i, l) {
931
- if (!i[0]) return [-10, -10, "", -10, -10];
932
- const o = { x: i[0] ? i[0].x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: l }, u = { x: i.at(-1) ? i.at(-1).x : Math.min(...i.filter((e) => !!e).map((e) => e.x)), y: l }, t = [];
933
- return i.filter((e) => !!e).forEach((e) => {
933
+ createIndividualArea(r, s) {
934
+ if (!r[0]) return [-10, -10, "", -10, -10];
935
+ const o = { x: r[0] ? r[0].x : Math.min(...r.filter((e) => !!e).map((e) => e.x)), y: s }, u = { x: r.at(-1) ? r.at(-1).x : Math.min(...r.filter((e) => !!e).map((e) => e.x)), y: s }, t = [];
936
+ return r.filter((e) => !!e).forEach((e) => {
934
937
  t.push(`${e.x},${e.y} `);
935
938
  }), [o.x, o.y, ...t, u.x, u.y].toString();
936
939
  },
937
- createStar: q,
940
+ createStar: X,
938
941
  createPolygonPath: R,
939
- fillArray(i, l) {
940
- let o = Array(i).fill(0);
941
- for (let u = 0; u < l.length && u < i; u += 1)
942
- o[u] = l[u];
942
+ fillArray(r, s) {
943
+ let o = Array(r).fill(0);
944
+ for (let u = 0; u < s.length && u < r; u += 1)
945
+ o[u] = s[u];
943
946
  return o;
944
947
  },
945
948
  async setupSlicer() {
946
949
  (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 = {
947
950
  start: 0,
948
- end: Math.max(...this.dataset.map((i) => this.largestTriangleThreeBucketsArray({ data: i.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
951
+ end: Math.max(...this.dataset.map((r) => this.largestTriangleThreeBucketsArray({ data: r.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
949
952
  }, this.slicerStep += 1);
950
953
  },
951
954
  refreshSlicer() {
952
955
  this.setupSlicer();
953
956
  },
954
- validSlicerEnd(i) {
955
- const l = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
956
- return i > l ? l : 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;
957
+ validSlicerEnd(r) {
958
+ const s = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
959
+ return r > s ? s : r < 0 || this.FINAL_CONFIG.chart.zoom.startIndex !== null && r < this.FINAL_CONFIG.chart.zoom.startIndex ? this.FINAL_CONFIG.chart.zoom.startIndex !== null ? this.FINAL_CONFIG.chart.zoom.startIndex + 1 : 1 : r;
957
960
  },
958
- calcRectHeight(i) {
959
- 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);
961
+ calcRectHeight(r) {
962
+ return r.value >= 0 ? this.checkNaN(this.zero - r.y <= 0 ? 1e-5 : this.zero - r.y) : this.checkNaN(r.y - this.zero <= 0 ? 1e-5 : r.y - this.zero);
960
963
  },
961
- calcIndividualHeight(i) {
962
- 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);
964
+ calcIndividualHeight(r) {
965
+ return r.value >= 0 ? this.checkNaN(r.zeroPosition - r.y <= 0 ? 1e-5 : r.zeroPosition - r.y) : this.checkNaN(r.y - r.zeroPosition <= 0 ? 1e-5 : r.zeroPosition - r.y);
963
966
  },
964
967
  calcRectWidth() {
965
968
  return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
966
969
  },
967
- calcRectX(i) {
968
- return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? i.x + this.drawingArea.width / this.maxSeries * 0.05 : i.x + this.slot.bar / 2;
970
+ calcRectX(r) {
971
+ return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? r.x + this.drawingArea.width / this.maxSeries * 0.05 : r.x + this.slot.bar / 2;
969
972
  },
970
- calcRectY(i) {
971
- return i.value >= 0 ? i.y : this.zero;
973
+ calcRectY(r) {
974
+ return r.value >= 0 ? r.y : this.zero;
972
975
  },
973
- calcIndividualRectY(i) {
974
- return i.value >= 0 ? i.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(i.zeroPosition) ? 0 : i.zeroPosition;
976
+ calcIndividualRectY(r) {
977
+ return r.value >= 0 ? r.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(r.zeroPosition) ? 0 : r.zeroPosition;
975
978
  },
976
- canShowValue(i) {
977
- return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(i);
979
+ canShowValue(r) {
980
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(r);
978
981
  },
979
- findClosestValue(i, l) {
980
- let o = l[0], u = Math.abs(i - l[0]);
981
- for (let t = 1; t < l.length; t += 1) {
982
- const e = Math.abs(i - l[t]);
983
- e < u && l[t] < i && (o = l[t], u = e);
982
+ findClosestValue(r, s) {
983
+ let o = s[0], u = Math.abs(r - s[0]);
984
+ for (let t = 1; t < s.length; t += 1) {
985
+ const e = Math.abs(r - s[t]);
986
+ e < u && s[t] < r && (o = s[t], u = e);
984
987
  }
985
988
  return o;
986
989
  },
987
- ratioToMax(i) {
988
- return i / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
990
+ ratioToMax(r) {
991
+ return r / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
989
992
  },
990
- selectX(i) {
993
+ selectX(r) {
991
994
  this.$emit(
992
995
  "selectX",
993
996
  {
994
- dataset: this.relativeDataset.map((l) => ({
995
- name: l.name,
996
- value: [null, void 0, NaN].includes(l.absoluteValues[i]) ? null : l.absoluteValues[i],
997
- color: l.color,
998
- type: l.type
997
+ dataset: this.relativeDataset.map((s) => ({
998
+ name: s.name,
999
+ value: [null, void 0, NaN].includes(s.absoluteValues[r]) ? null : s.absoluteValues[r],
1000
+ color: s.color,
1001
+ type: s.type
999
1002
  })),
1000
- index: i,
1001
- indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[i]
1003
+ index: r,
1004
+ indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]
1002
1005
  }
1003
1006
  );
1004
1007
  },
1005
1008
  getData() {
1006
- return this.absoluteDataset.map((i) => ({
1007
- values: i.absoluteValues,
1008
- color: i.color,
1009
- name: i.name,
1010
- type: i.type
1009
+ return this.absoluteDataset.map((r) => ({
1010
+ values: r.absoluteValues,
1011
+ color: r.color,
1012
+ name: r.name,
1013
+ type: r.type
1011
1014
  }));
1012
1015
  },
1013
- segregate(i) {
1014
- if (this.segregatedSeries.includes(i.id))
1015
- this.segregatedSeries = this.segregatedSeries.filter((l) => l !== i.id);
1016
+ segregate(r) {
1017
+ if (this.segregatedSeries.includes(r.id))
1018
+ this.segregatedSeries = this.segregatedSeries.filter((s) => s !== r.id);
1016
1019
  else {
1017
1020
  if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
1018
- this.segregatedSeries.push(i.id);
1021
+ this.segregatedSeries.push(r.id);
1019
1022
  }
1020
- this.$emit("selectLegend", this.relativeDataset.map((l) => ({
1021
- name: l.name,
1022
- values: l.absoluteValues,
1023
- color: l.color,
1024
- type: l.type
1023
+ this.$emit("selectLegend", this.relativeDataset.map((s) => ({
1024
+ name: s.name,
1025
+ values: s.absoluteValues,
1026
+ color: s.color,
1027
+ type: s.type
1025
1028
  }))), this.segregateStep += 1;
1026
1029
  },
1027
- toggleTooltipVisibility(i, l = null) {
1028
- this.isTooltip = i, i ? this.selectedSerieIndex = l : this.selectedSerieIndex = null;
1030
+ toggleTooltipVisibility(r, s = null) {
1031
+ this.isTooltip = r, r ? this.selectedSerieIndex = s : this.selectedSerieIndex = null;
1029
1032
  },
1030
- toggleFullscreen(i) {
1031
- this.isFullscreen = i, this.step += 1;
1033
+ toggleFullscreen(r) {
1034
+ this.isFullscreen = r, this.step += 1;
1032
1035
  },
1033
1036
  showSpinnerPdf() {
1034
1037
  this.isPrinting = !0;
@@ -1036,20 +1039,20 @@ const Xe = J(), qe = {
1036
1039
  async generatePdf() {
1037
1040
  this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1038
1041
  try {
1039
- const { default: i } = await import("./pdf-B7oVat64.js");
1040
- await i({
1042
+ const { default: r } = await import("./pdf-B7oVat64.js");
1043
+ await r({
1041
1044
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1042
1045
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy"
1043
1046
  });
1044
- } catch (i) {
1045
- console.error("Error generating PDF:", i);
1047
+ } catch (r) {
1048
+ console.error("Error generating PDF:", r);
1046
1049
  } finally {
1047
1050
  this.isPrinting = !1;
1048
1051
  }
1049
1052
  }, 100);
1050
1053
  },
1051
1054
  generateCsv() {
1052
- const i = [[this.FINAL_CONFIG.chart.title.text], [this.FINAL_CONFIG.chart.title.subtitle.text], [""]], l = ["", ...this.table.head.map((e) => e.label)], o = this.table.body, u = i.concat([l]).concat(o), t = this.createCsvContent(u);
1055
+ const r = [[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 = r.concat([s]).concat(o), t = this.createCsvContent(u);
1053
1056
  this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
1054
1057
  },
1055
1058
  showSpinnerImage() {
@@ -1058,75 +1061,80 @@ const Xe = J(), qe = {
1058
1061
  async generateImage() {
1059
1062
  this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1060
1063
  try {
1061
- const { default: i } = await import("./img-DGzWcJ4Y.js");
1062
- await i({
1064
+ const { default: r } = await import("./img-DGzWcJ4Y.js");
1065
+ await r({
1063
1066
  domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1064
1067
  fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
1065
1068
  format: "png"
1066
1069
  });
1067
- } catch (i) {
1068
- console.error("Error generating image:", i);
1070
+ } catch (r) {
1071
+ console.error("Error generating image:", r);
1069
1072
  } finally {
1070
1073
  this.isImaging = !1;
1071
1074
  }
1072
1075
  }, 100);
1073
1076
  }
1074
1077
  }
1075
- }, Ue = ["id"], Ze = {
1078
+ }, Je = ["id"], Ke = {
1076
1079
  key: 1,
1077
1080
  ref: "noTitle",
1078
1081
  class: "vue-data-ui-no-title-space",
1079
1082
  style: "height:36px; width: 100%; background:transparent"
1080
- }, Je = ["viewBox"], Ke = ["x", "y", "width", "height"], Qe = { key: 1 }, je = { class: "vue-ui-xy-grid" }, $e = ["stroke", "x1", "x2", "y1", "y2"], et = ["stroke", "x1", "x2", "y1", "y2"], tt = { key: 1 }, it = ["x1", "x2", "y1", "y2", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke"], lt = { key: 3 }, st = ["x1", "x2", "y1", "y2", "stroke"], nt = ["id"], ht = ["stop-color"], ot = ["stop-color"], ct = ["stop-color"], dt = ["id"], ut = ["stop-color"], gt = ["stop-color"], ft = ["stop-color"], It = ["id"], Nt = ["stop-color"], mt = ["stop-color"], xt = ["id"], bt = ["stop-color"], Ft = ["stop-color"], _t = ["id"], At = ["stop-color"], yt = ["stop-color"], Lt = ["x", "y", "height", "width", "fill"], Ct = ["x", "y", "width"], St = ["x", "y", "height", "width", "fill"], kt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], wt = ["width", "x", "y"], Ot = { key: 0 }, Gt = ["id"], vt = ["fill"], pt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], zt = ["x", "y", "font-size", "fill"], Mt = ["stroke", "x1", "x2", "y1", "y2"], Tt = { key: 2 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Vt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Rt = { key: 4 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["fill", "font-size", "transform"], Bt = ["x1", "x2", "y1", "y2", "stroke"], Et = ["x", "y", "font-size", "fill"], Wt = ["x1", "x2", "y1", "y2", "stroke"], Yt = ["x", "y", "font-size", "fill"], Xt = ["width", "x", "y"], qt = { style: { width: "100%" } }, Ut = { key: 0 }, Zt = ["id"], Jt = ["fill"], Kt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Qt = ["x", "y", "font-size", "fill"], jt = ["d", "stroke", "stroke-width", "stroke-dasharray"], $t = { key: 1 }, ei = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ti = { key: 0 }, ii = ["d", "fill"], ri = ["d", "fill"], ai = ["d", "stroke", "stroke-width", "stroke-dasharray"], li = { key: 2 }, si = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ni = ["width", "x", "y"], hi = { style: { width: "100%" } }, oi = { key: 3 }, ci = ["id"], di = ["fill"], ui = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], gi = ["x", "y", "font-size", "fill"], fi = { key: 5 }, Ii = ["x", "y", "font-size", "fill"], Ni = ["x", "y", "font-size", "fill", "font-weight"], mi = { key: 6 }, xi = ["x", "y", "font-size", "fill"], bi = ["x", "y"], Fi = ["x", "y"], _i = { key: 7 }, Ai = ["x", "y", "font-size", "fill"], yi = ["x", "y"], Li = ["x", "y"], Ci = ["x", "y", "font-size", "fill", "innerHTML"], Si = ["x", "y", "font-size", "fill", "innerHTML"], ki = ["x", "y", "font-size", "fill", "innerHTML"], wi = ["x", "y", "font-size", "fill", "innerHTML"], Oi = ["x", "y", "width", "height", "fill", "onMouseenter"], Gi = ["font-size", "fill", "transform"], vi = ["x", "y", "font-size", "fill"], pi = { key: 9 }, zi = ["text-anchor", "font-size", "fill", "transform", "onClick"], Mi = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ti = { key: 10 }, Pi = ["x", "y"], Vi = ["cx", "cy", "r", "fill"], Ri = {
1083
+ }, Qe = ["viewBox"], je = ["x", "y", "width", "height"], $e = { key: 1 }, et = { class: "vue-ui-xy-grid" }, tt = ["stroke", "x1", "x2", "y1", "y2"], rt = ["stroke", "x1", "x2", "y1", "y2"], at = { key: 1 }, lt = ["x1", "x2", "y1", "y2", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke"], nt = { key: 3 }, ht = ["x1", "x2", "y1", "y2", "stroke"], ot = ["id"], ct = ["stop-color"], dt = ["stop-color"], ut = ["stop-color"], gt = ["id"], ft = ["stop-color"], It = ["stop-color"], mt = ["stop-color"], Nt = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["id"], _t = ["stop-color"], At = ["stop-color"], yt = ["id"], Lt = ["stop-color"], Ct = ["stop-color"], St = ["x", "y", "height", "width", "fill"], kt = ["x", "y", "width"], wt = ["x", "y", "height", "width", "fill"], Ot = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Gt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["width", "x", "y"], zt = { key: 0 }, pt = ["id"], Mt = ["fill"], Vt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Tt = ["x", "y", "font-size", "fill"], Pt = ["stroke", "x1", "x2", "y1", "y2"], Rt = { key: 2 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ht = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Bt = { key: 4 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = ["fill", "font-size", "transform"], Yt = ["x1", "x2", "y1", "y2", "stroke"], qt = ["x", "y", "font-size", "fill"], Xt = ["x1", "x2", "y1", "y2", "stroke"], Ut = ["x", "y", "font-size", "fill"], Zt = ["width", "x", "y"], Jt = { style: { width: "100%" } }, Kt = { key: 0 }, Qt = ["id"], jt = ["fill"], $t = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], er = ["x", "y", "font-size", "fill"], tr = ["d", "stroke", "stroke-width", "stroke-dasharray"], rr = { key: 1 }, ar = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], lr = { key: 5 }, ir = { key: 0 }, sr = ["d", "fill"], nr = ["d", "fill"], hr = ["d", "fill"], or = ["d", "fill"], cr = ["d", "stroke", "stroke-width", "stroke-dasharray"], dr = { key: 2 }, ur = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gr = ["width", "x", "y"], fr = { style: { width: "100%" } }, Ir = { key: 3 }, mr = ["id"], Nr = ["fill"], xr = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], br = ["x", "y", "font-size", "fill"], Fr = { key: 6 }, _r = ["x", "y", "font-size", "fill"], Ar = ["x", "y", "font-size", "fill", "font-weight"], yr = { key: 7 }, Lr = ["x", "y", "font-size", "fill"], Cr = ["x", "y"], Sr = ["x", "y"], kr = { key: 8 }, wr = ["x", "y", "font-size", "fill"], Or = ["x", "y"], Gr = ["x", "y"], vr = ["x", "y", "font-size", "fill", "innerHTML"], zr = ["x", "y", "font-size", "fill", "innerHTML"], pr = ["x", "y", "font-size", "fill", "innerHTML"], Mr = ["x", "y", "font-size", "fill", "innerHTML"], Vr = ["x", "y", "width", "height", "fill", "onMouseenter"], Tr = ["font-size", "fill", "transform"], Pr = ["x", "y", "font-size", "fill"], Rr = { key: 10 }, Dr = ["text-anchor", "font-size", "fill", "transform", "onClick"], Hr = ["x", "y", "height", "width", "onMouseenter", "onClick"], Br = { key: 11 }, Wr = ["x", "y"], Er = ["cx", "cy", "r", "fill"], Yr = {
1081
1084
  key: 5,
1082
1085
  class: "vue-data-ui-watermark"
1083
- }, Di = ["onClick"], Hi = {
1086
+ }, qr = ["onClick"], Xr = {
1084
1087
  key: 0,
1085
1088
  viewBox: "0 0 20 12",
1086
1089
  height: "14",
1087
1090
  width: "20"
1088
- }, Bi = ["stroke", "fill"], Ei = {
1091
+ }, Ur = ["stroke", "fill"], Zr = {
1089
1092
  key: 1,
1093
+ viewBox: "0 0 40 40",
1094
+ height: "14",
1095
+ width: "14"
1096
+ }, Jr = ["fill"], Kr = ["fill"], Qr = {
1097
+ key: 2,
1090
1098
  viewBox: "0 0 12 12",
1091
1099
  height: "14",
1092
1100
  width: "14"
1093
- }, Wi = ["fill"], Yi = {
1101
+ }, jr = {
1094
1102
  key: 9,
1095
1103
  ref: "chartLegend"
1096
- }, Xi = {
1104
+ }, $r = {
1097
1105
  key: 10,
1098
1106
  ref: "source",
1099
1107
  dir: "auto"
1100
- }, qi = {
1108
+ }, ea = {
1101
1109
  style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
1102
1110
  "data-html2canvas-ignore": ""
1103
- }, Ui = ["innerHTML"];
1104
- function Zi(i, l, o, u, t, e) {
1105
- const x = P("PenAndPaper"), A = P("Title"), k = P("UserOptions"), N = P("PackageVersion"), b = P("Shape"), T = P("Skeleton"), v = P("Slicer"), p = P("Tooltip"), O = P("BaseIcon"), _ = P("TableSparkline"), C = P("DataTable"), z = P("Accordion");
1106
- return a(), s("div", {
1111
+ }, ta = ["innerHTML"];
1112
+ function ra(r, s, o, u, t, e) {
1113
+ const x = T("PenAndPaper"), A = T("Title"), w = T("UserOptions"), N = T("PackageVersion"), b = T("Shape"), V = T("Skeleton"), v = T("Slicer"), z = T("Tooltip"), O = T("BaseIcon"), _ = T("TableSparkline"), C = T("DataTable"), p = T("Accordion");
1114
+ return l(), i("div", {
1107
1115
  id: `vue-ui-xy_${t.uniqueId}`,
1108
- class: V(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
1116
+ class: P(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
1109
1117
  ref: "chart",
1110
1118
  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%" : ""}`),
1111
- onMouseenter: l[7] || (l[7] = () => e.setUserOptionsVisibility(!0)),
1112
- onMouseleave: l[8] || (l[8] = () => e.setUserOptionsVisibility(!1))
1119
+ onMouseenter: s[7] || (s[7] = () => e.setUserOptionsVisibility(!0)),
1120
+ onMouseleave: s[8] || (s[8] = () => e.setUserOptionsVisibility(!1))
1113
1121
  }, [
1114
- e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), D(x, {
1122
+ e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (l(), D(x, {
1115
1123
  key: 0,
1116
- parent: i.$refs.chart,
1124
+ parent: r.$refs.chart,
1117
1125
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
1118
1126
  color: e.FINAL_CONFIG.chart.color,
1119
1127
  active: t.isAnnotator,
1120
1128
  onClose: e.toggleAnnotator
1121
1129
  }, null, 8, ["parent", "backgroundColor", "color", "active", "onClose"])) : c("", !0),
1122
- e.hasOptionsNoTitle ? (a(), s("div", Ze, null, 512)) : c("", !0),
1123
- e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
1130
+ e.hasOptionsNoTitle ? (l(), i("div", Ke, null, 512)) : c("", !0),
1131
+ e.FINAL_CONFIG.chart.title.show ? (l(), i("div", {
1124
1132
  key: 2,
1125
1133
  ref: "chartTitle",
1126
1134
  class: "vue-ui-xy-title",
1127
1135
  style: L(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1128
1136
  }, [
1129
- (a(), D(A, {
1137
+ (l(), D(A, {
1130
1138
  key: `title_${t.titleStep}`,
1131
1139
  config: {
1132
1140
  title: {
@@ -1140,7 +1148,7 @@ function Zi(i, l, o, u, t, e) {
1140
1148
  }
1141
1149
  }, null, 8, ["config"]))
1142
1150
  ], 4)) : c("", !0),
1143
- e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (a(), D(k, {
1151
+ e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (l(), D(w, {
1144
1152
  ref: "defails",
1145
1153
  key: `user_options_${t.step}`,
1146
1154
  backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
@@ -1158,7 +1166,7 @@ function Zi(i, l, o, u, t, e) {
1158
1166
  hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
1159
1167
  isStacked: t.mutableConfig.isStacked,
1160
1168
  isFullscreen: t.isFullscreen,
1161
- chartElement: i.$refs.chart,
1169
+ chartElement: r.$refs.chart,
1162
1170
  position: e.FINAL_CONFIG.chart.userOptions.position,
1163
1171
  isTooltip: t.mutableConfig.showTooltip,
1164
1172
  titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
@@ -1176,81 +1184,81 @@ function Zi(i, l, o, u, t, e) {
1176
1184
  style: L({
1177
1185
  visibility: t.keepUserOptionState ? t.userOptionsVisible ? "visible" : "hidden" : "visible"
1178
1186
  })
1179
- }, He({ _: 2 }, [
1180
- i.$slots.optionTooltip ? {
1187
+ }, Be({ _: 2 }, [
1188
+ r.$slots.optionTooltip ? {
1181
1189
  name: "optionTooltip",
1182
1190
  fn: M(() => [
1183
- w(i.$slots, "optionTooltip", {}, void 0, !0)
1191
+ S(r.$slots, "optionTooltip", {}, void 0, !0)
1184
1192
  ]),
1185
1193
  key: "0"
1186
1194
  } : void 0,
1187
- i.$slots.optionPdf ? {
1195
+ r.$slots.optionPdf ? {
1188
1196
  name: "optionPdf",
1189
1197
  fn: M(() => [
1190
- w(i.$slots, "optionPdf", {}, void 0, !0)
1198
+ S(r.$slots, "optionPdf", {}, void 0, !0)
1191
1199
  ]),
1192
1200
  key: "1"
1193
1201
  } : void 0,
1194
- i.$slots.optionCsv ? {
1202
+ r.$slots.optionCsv ? {
1195
1203
  name: "optionCsv",
1196
1204
  fn: M(() => [
1197
- w(i.$slots, "optionCsv", {}, void 0, !0)
1205
+ S(r.$slots, "optionCsv", {}, void 0, !0)
1198
1206
  ]),
1199
1207
  key: "2"
1200
1208
  } : void 0,
1201
- i.$slots.optionImg ? {
1209
+ r.$slots.optionImg ? {
1202
1210
  name: "optionImg",
1203
1211
  fn: M(() => [
1204
- w(i.$slots, "optionImg", {}, void 0, !0)
1212
+ S(r.$slots, "optionImg", {}, void 0, !0)
1205
1213
  ]),
1206
1214
  key: "3"
1207
1215
  } : void 0,
1208
- i.$slots.optionTable ? {
1216
+ r.$slots.optionTable ? {
1209
1217
  name: "optionTable",
1210
1218
  fn: M(() => [
1211
- w(i.$slots, "optionTable", {}, void 0, !0)
1219
+ S(r.$slots, "optionTable", {}, void 0, !0)
1212
1220
  ]),
1213
1221
  key: "4"
1214
1222
  } : void 0,
1215
- i.$slots.optionLabels ? {
1223
+ r.$slots.optionLabels ? {
1216
1224
  name: "optionLabels",
1217
1225
  fn: M(() => [
1218
- w(i.$slots, "optionLabels", {}, void 0, !0)
1226
+ S(r.$slots, "optionLabels", {}, void 0, !0)
1219
1227
  ]),
1220
1228
  key: "5"
1221
1229
  } : void 0,
1222
- i.$slots.optionStack ? {
1230
+ r.$slots.optionStack ? {
1223
1231
  name: "optionStack",
1224
1232
  fn: M(() => [
1225
- w(i.$slots, "optionStack", {}, void 0, !0)
1233
+ S(r.$slots, "optionStack", {}, void 0, !0)
1226
1234
  ]),
1227
1235
  key: "6"
1228
1236
  } : void 0,
1229
- i.$slots.optionFullscreen ? {
1237
+ r.$slots.optionFullscreen ? {
1230
1238
  name: "optionFullscreen",
1231
- fn: M(({ toggleFullscreen: r, isFullscreen: h }) => [
1232
- w(i.$slots, "optionFullscreen", H(B({ toggleFullscreen: r, isFullscreen: h })), void 0, !0)
1239
+ fn: M(({ toggleFullscreen: a, isFullscreen: h }) => [
1240
+ S(r.$slots, "optionFullscreen", H(B({ toggleFullscreen: a, isFullscreen: h })), void 0, !0)
1233
1241
  ]),
1234
1242
  key: "7"
1235
1243
  } : void 0,
1236
- i.$slots.optionAnnotator ? {
1244
+ r.$slots.optionAnnotator ? {
1237
1245
  name: "optionAnnotator",
1238
- fn: M(({ toggleAnnotator: r, isAnnotator: h }) => [
1239
- w(i.$slots, "optionAnnotator", H(B({ toggleAnnotator: r, isAnnotator: h })), void 0, !0)
1246
+ fn: M(({ toggleAnnotator: a, isAnnotator: h }) => [
1247
+ S(r.$slots, "optionAnnotator", H(B({ toggleAnnotator: a, isAnnotator: h })), void 0, !0)
1240
1248
  ]),
1241
1249
  key: "8"
1242
1250
  } : void 0
1243
1251
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onToggleFullscreen", "onGeneratePdf", "onGenerateCsv", "onGenerateImage", "onToggleTable", "onToggleLabels", "onToggleStack", "onToggleTooltip", "onToggleAnnotator", "style"])) : c("", !0),
1244
- e.isDataset ? (a(), s("svg", {
1252
+ e.isDataset ? (l(), i("svg", {
1245
1253
  key: 4,
1246
1254
  xmlns: "http://www.w3.org/2000/svg",
1247
- class: V([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
1255
+ class: P([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
1248
1256
  width: "100%",
1249
1257
  viewBox: t.viewBox,
1250
1258
  style: L(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1251
1259
  }, [
1252
- X(N),
1253
- i.$slots["chart-background"] ? (a(), s("foreignObject", {
1260
+ q(N),
1261
+ r.$slots["chart-background"] ? (l(), i("foreignObject", {
1254
1262
  key: 0,
1255
1263
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
1256
1264
  y: e.drawingArea.top,
@@ -1260,74 +1268,74 @@ function Zi(i, l, o, u, t, e) {
1260
1268
  pointerEvents: "none"
1261
1269
  }
1262
1270
  }, [
1263
- w(i.$slots, "chart-background", {}, void 0, !0)
1264
- ], 8, Ke)) : c("", !0),
1265
- e.maxSeries > 0 ? (a(), s("g", Qe, [
1266
- f("g", je, [
1267
- e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
1271
+ S(r.$slots, "chart-background", {}, void 0, !0)
1272
+ ], 8, je)) : c("", !0),
1273
+ e.maxSeries > 0 ? (l(), i("g", $e, [
1274
+ f("g", et, [
1275
+ e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (l(), i("line", {
1268
1276
  key: 0,
1269
1277
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1270
1278
  "stroke-width": "1",
1271
1279
  x1: e.drawingArea.left + e.xPadding,
1272
1280
  x2: e.drawingArea.right - e.xPadding,
1273
- y1: e.drawingArea.bottom,
1274
- y2: e.drawingArea.bottom,
1281
+ y1: e.forceValidValue(e.drawingArea.bottom),
1282
+ y2: e.forceValidValue(e.drawingArea.bottom),
1275
1283
  "stroke-linecap": "round"
1276
- }, null, 8, $e)) : c("", !0),
1277
- t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(I, { key: 2 }, m(e.allScales, (r) => (a(), s("g", null, [
1278
- r.id === t.selectedScale && r.yLabels.length ? (a(!0), s(I, { key: 0 }, m(r.yLabels, (h) => (a(), s("line", {
1284
+ }, null, 8, tt)) : c("", !0),
1285
+ t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(!0), i(I, { key: 2 }, m(e.allScales, (a) => (l(), i("g", null, [
1286
+ a.id === t.selectedScale && a.yLabels.length ? (l(!0), i(I, { key: 0 }, m(a.yLabels, (h) => (l(), i("line", {
1279
1287
  x1: e.drawingArea.left + e.xPadding,
1280
1288
  x2: e.drawingArea.right - e.xPadding,
1281
- y1: e.checkNaN(h.y),
1282
- y2: e.checkNaN(h.y),
1283
- stroke: r.color,
1289
+ y1: e.forceValidValue(h.y),
1290
+ y2: e.forceValidValue(h.y),
1291
+ stroke: a.color,
1284
1292
  "stroke-width": 0.5,
1285
1293
  "stroke-linecap": "round"
1286
- }, null, 8, rt))), 256)) : r.yLabels.length ? (a(!0), s(I, { key: 1 }, m(r.yLabels, (h) => (a(), s("line", {
1294
+ }, null, 8, it))), 256)) : a.yLabels.length ? (l(!0), i(I, { key: 1 }, m(a.yLabels, (h) => (l(), i("line", {
1287
1295
  x1: e.drawingArea.left + e.xPadding,
1288
1296
  x2: e.drawingArea.right - e.xPadding,
1289
- y1: e.checkNaN(h.y),
1290
- y2: e.checkNaN(h.y),
1297
+ y1: e.forceValidValue(h.y),
1298
+ y2: e.forceValidValue(h.y),
1291
1299
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1292
1300
  "stroke-width": 0.5,
1293
1301
  "stroke-linecap": "round"
1294
- }, null, 8, at))), 256)) : c("", !0)
1295
- ]))), 256)) : c("", !0) : (a(), s(I, { key: 1 }, [
1296
- e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
1302
+ }, null, 8, st))), 256)) : c("", !0)
1303
+ ]))), 256)) : c("", !0) : (l(), i(I, { key: 1 }, [
1304
+ e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (l(), i("line", {
1297
1305
  key: 0,
1298
1306
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1299
1307
  "stroke-width": "1",
1300
1308
  x1: e.drawingArea.left + e.xPadding,
1301
1309
  x2: e.drawingArea.left + e.xPadding,
1302
- y1: e.drawingArea.top,
1303
- y2: e.drawingArea.bottom,
1310
+ y1: e.forceValidValue(e.drawingArea.top),
1311
+ y2: e.forceValidValue(e.drawingArea.bottom),
1304
1312
  "stroke-linecap": "round"
1305
- }, null, 8, et)) : c("", !0),
1306
- e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", tt, [
1307
- (a(!0), s(I, null, m(e.yLabels, (r) => (a(), s("line", {
1313
+ }, null, 8, rt)) : c("", !0),
1314
+ e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (l(), i("g", at, [
1315
+ (l(!0), i(I, null, m(e.yLabels, (a) => (l(), i("line", {
1308
1316
  x1: e.drawingArea.left + e.xPadding,
1309
1317
  x2: e.drawingArea.right - e.xPadding,
1310
- y1: e.checkNaN(r.y),
1311
- y2: e.checkNaN(r.y),
1318
+ y1: e.forceValidValue(a.y),
1319
+ y2: e.forceValidValue(a.y),
1312
1320
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1313
1321
  "stroke-width": 0.5,
1314
1322
  "stroke-linecap": "round"
1315
- }, null, 8, it))), 256))
1323
+ }, null, 8, lt))), 256))
1316
1324
  ])) : c("", !0)
1317
1325
  ], 64)),
1318
- e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", lt, [
1319
- (a(!0), s(I, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (r, h) => (a(), s("line", {
1326
+ e.FINAL_CONFIG.chart.grid.showVerticalLines ? (l(), i("g", nt, [
1327
+ (l(!0), i(I, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (a, h) => (l(), i("line", {
1320
1328
  key: `grid_vertical_line_${h}`,
1321
1329
  x1: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
1322
1330
  x2: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
1323
- y1: e.drawingArea.top,
1324
- y2: e.drawingArea.bottom,
1331
+ y1: e.forceValidValue(e.drawingArea.top),
1332
+ y2: e.forceValidValue(e.drawingArea.top),
1325
1333
  "stroke-width": "0.5",
1326
1334
  stroke: e.FINAL_CONFIG.chart.grid.stroke
1327
- }, null, 8, st))), 128))
1335
+ }, null, 8, ht))), 128))
1328
1336
  ])) : c("", !0)
1329
1337
  ]),
1330
- (a(!0), s(I, null, m(e.barSet, (r, h) => (a(), s("defs", {
1338
+ (l(!0), i(I, null, m(e.barSet, (a, h) => (l(), i("defs", {
1331
1339
  key: `def_rect_${h}`
1332
1340
  }, [
1333
1341
  f("linearGradient", {
@@ -1337,17 +1345,17 @@ function Zi(i, l, o, u, t, e) {
1337
1345
  }, [
1338
1346
  f("stop", {
1339
1347
  offset: "0%",
1340
- "stop-color": r.color
1341
- }, null, 8, ht),
1348
+ "stop-color": a.color
1349
+ }, null, 8, ct),
1342
1350
  f("stop", {
1343
1351
  offset: "62%",
1344
- "stop-color": `${e.shiftHue(r.color, 0.02)}`
1345
- }, null, 8, ot),
1352
+ "stop-color": `${e.shiftHue(a.color, 0.02)}`
1353
+ }, null, 8, dt),
1346
1354
  f("stop", {
1347
1355
  offset: "100%",
1348
- "stop-color": `${e.shiftHue(r.color, 0.05)}`
1349
- }, null, 8, ct)
1350
- ], 8, nt),
1356
+ "stop-color": `${e.shiftHue(a.color, 0.05)}`
1357
+ }, null, 8, ut)
1358
+ ], 8, ot),
1351
1359
  f("linearGradient", {
1352
1360
  id: `rectGradient_neg_${h}_${t.uniqueId}`,
1353
1361
  x2: "0%",
@@ -1355,19 +1363,19 @@ function Zi(i, l, o, u, t, e) {
1355
1363
  }, [
1356
1364
  f("stop", {
1357
1365
  offset: "0%",
1358
- "stop-color": `${e.shiftHue(r.color, 0.05)}`
1359
- }, null, 8, ut),
1366
+ "stop-color": `${e.shiftHue(a.color, 0.05)}`
1367
+ }, null, 8, ft),
1360
1368
  f("stop", {
1361
1369
  offset: "38%",
1362
- "stop-color": `${e.shiftHue(r.color, 0.02)}`
1363
- }, null, 8, gt),
1370
+ "stop-color": `${e.shiftHue(a.color, 0.02)}`
1371
+ }, null, 8, It),
1364
1372
  f("stop", {
1365
1373
  offset: "100%",
1366
- "stop-color": r.color
1367
- }, null, 8, ft)
1368
- ], 8, dt)
1374
+ "stop-color": a.color
1375
+ }, null, 8, mt)
1376
+ ], 8, gt)
1369
1377
  ]))), 128)),
1370
- (a(!0), s(I, null, m(e.plotSet, (r, h) => (a(), s("defs", {
1378
+ (l(!0), i(I, null, m(e.plotSet, (a, h) => (l(), i("defs", {
1371
1379
  key: `def_plot_${h}`
1372
1380
  }, [
1373
1381
  f("radialGradient", {
@@ -1380,15 +1388,15 @@ function Zi(i, l, o, u, t, e) {
1380
1388
  }, [
1381
1389
  f("stop", {
1382
1390
  offset: "0%",
1383
- "stop-color": `${e.shiftHue(r.color, 0.05)}`
1384
- }, null, 8, Nt),
1391
+ "stop-color": `${e.shiftHue(a.color, 0.05)}`
1392
+ }, null, 8, xt),
1385
1393
  f("stop", {
1386
1394
  offset: "100%",
1387
- "stop-color": r.color
1388
- }, null, 8, mt)
1389
- ], 8, It)
1395
+ "stop-color": a.color
1396
+ }, null, 8, bt)
1397
+ ], 8, Nt)
1390
1398
  ]))), 128)),
1391
- (a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("defs", {
1399
+ (l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("defs", {
1392
1400
  key: `def_line_${h}`
1393
1401
  }, [
1394
1402
  f("radialGradient", {
@@ -1401,13 +1409,13 @@ function Zi(i, l, o, u, t, e) {
1401
1409
  }, [
1402
1410
  f("stop", {
1403
1411
  offset: "0%",
1404
- "stop-color": `${e.shiftHue(r.color, 0.05)}`
1405
- }, null, 8, bt),
1412
+ "stop-color": `${e.shiftHue(a.color, 0.05)}`
1413
+ }, null, 8, _t),
1406
1414
  f("stop", {
1407
1415
  offset: "100%",
1408
- "stop-color": r.color
1409
- }, null, 8, Ft)
1410
- ], 8, xt),
1416
+ "stop-color": a.color
1417
+ }, null, 8, At)
1418
+ ], 8, Ft),
1411
1419
  f("linearGradient", {
1412
1420
  id: `areaGradient_${h}_${t.uniqueId}`,
1413
1421
  x1: "0%",
@@ -1417,46 +1425,46 @@ function Zi(i, l, o, u, t, e) {
1417
1425
  }, [
1418
1426
  f("stop", {
1419
1427
  offset: "0%",
1420
- "stop-color": `${e.setOpacity(e.shiftHue(r.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1421
- }, null, 8, At),
1428
+ "stop-color": `${e.setOpacity(e.shiftHue(a.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1429
+ }, null, 8, Lt),
1422
1430
  f("stop", {
1423
1431
  offset: "100%",
1424
- "stop-color": `${e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)}`
1425
- }, null, 8, yt)
1426
- ], 8, _t)
1432
+ "stop-color": `${e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)}`
1433
+ }, null, 8, Ct)
1434
+ ], 8, yt)
1427
1435
  ]))), 128)),
1428
- (a(!0), s(I, null, m(e.highlightAreas, (r) => (a(), s("g", null, [
1429
- r.show ? (a(!0), s(I, { key: 0 }, m(r.span, (h, n) => (a(), s("g", null, [
1436
+ (l(!0), i(I, null, m(e.highlightAreas, (a) => (l(), i("g", null, [
1437
+ a.show ? (l(!0), i(I, { key: 0 }, m(a.span, (h, n) => (l(), i("g", null, [
1430
1438
  f("rect", {
1431
1439
  style: L({
1432
1440
  transition: "none",
1433
- opacity: r.from + n >= t.slicer.start && r.from + n <= t.slicer.end - 1 ? 1 : 0
1441
+ opacity: a.from + n >= t.slicer.start && a.from + n <= t.slicer.end - 1 ? 1 : 0
1434
1442
  }),
1435
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - t.slicer.start),
1443
+ x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (a.from + n - t.slicer.start),
1436
1444
  y: e.drawingArea.top,
1437
1445
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1438
1446
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1439
- fill: e.setOpacity(r.color, r.opacity)
1440
- }, null, 12, Lt),
1441
- r.caption.text && n === 0 ? (a(), s("foreignObject", {
1447
+ fill: e.setOpacity(a.color, a.opacity)
1448
+ }, null, 12, St),
1449
+ a.caption.text && n === 0 ? (l(), i("foreignObject", {
1442
1450
  key: 0,
1443
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (r.from + n - t.slicer.start) - (r.caption.width === "auto" ? 0 : r.caption.width / 2 - e.drawingArea.width / e.maxSeries * r.span / 2),
1444
- y: e.drawingArea.top + r.caption.offsetY,
1451
+ 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),
1452
+ y: e.drawingArea.top + a.caption.offsetY,
1445
1453
  style: L({
1446
1454
  overflow: "visible",
1447
- opacity: r.to >= t.slicer.start && r.from < t.slicer.end ? 1 : 0
1455
+ opacity: a.to >= t.slicer.start && a.from < t.slicer.end ? 1 : 0
1448
1456
  }),
1449
1457
  height: "1",
1450
- width: r.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * r.span : r.caption.width
1458
+ width: a.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * a.span : a.caption.width
1451
1459
  }, [
1452
1460
  f("div", {
1453
- style: L(`padding:${r.caption.padding}px;text-align:${r.caption.textAlign};font-size:${r.caption.fontSize}px;color:${r.caption.color};font-weight:${r.caption.bold ? "bold" : "normal"}`)
1454
- }, S(r.caption.text), 5)
1455
- ], 12, Ct)) : c("", !0)
1461
+ style: L(`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"}`)
1462
+ }, k(a.caption.text), 5)
1463
+ ], 12, kt)) : c("", !0)
1456
1464
  ]))), 256)) : c("", !0)
1457
1465
  ]))), 256)),
1458
1466
  f("g", null, [
1459
- (a(!0), s(I, null, m(e.maxSeries, (r, h) => (a(), s("g", {
1467
+ (l(!0), i(I, null, m(e.maxSeries, (a, h) => (l(), i("g", {
1460
1468
  key: `tooltip_trap_highlighter_${h}`
1461
1469
  }, [
1462
1470
  f("rect", {
@@ -1465,42 +1473,53 @@ function Zi(i, l, o, u, t, e) {
1465
1473
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1466
1474
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1467
1475
  fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(h) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
1468
- }, null, 8, St)
1476
+ }, null, 8, wt)
1469
1477
  ]))), 128))
1470
1478
  ]),
1471
- e.barSet.length ? (a(!0), s(I, { key: 0 }, m(e.barSet, (r, h) => (a(), s("g", {
1479
+ e.barSet.length ? (l(!0), i(I, { key: 0 }, m(e.barSet, (a, h) => (l(), i("g", {
1472
1480
  key: `serie_bar_${h}`,
1473
- class: V(`serie_bar_${h}`),
1474
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1481
+ class: P(`serie_bar_${h}`),
1482
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1475
1483
  }, [
1476
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
1484
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
1477
1485
  key: `bar_plot_${h}_${d}`
1478
1486
  }, [
1479
- e.canShowValue(n.value) ? (a(), s("rect", {
1487
+ e.canShowValue(n.value) ? (l(), i("rect", {
1480
1488
  key: 0,
1481
1489
  x: e.calcRectX(n),
1482
1490
  y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
1483
1491
  height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1484
1492
  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),
1485
1493
  rx: e.FINAL_CONFIG.bar.borderRadius,
1486
- fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` : r.color,
1487
- stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? r.color : e.FINAL_CONFIG.bar.border.stroke,
1494
+ fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` : a.color,
1495
+ stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
1488
1496
  "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1489
- }, null, 8, kt)) : c("", !0),
1490
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1497
+ }, null, 8, Ot)) : c("", !0),
1498
+ e.canShowValue(n.value) && r.$slots.pattern ? (l(), i("rect", {
1491
1499
  key: 1,
1500
+ x: e.calcRectX(n),
1501
+ y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
1502
+ height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1503
+ 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),
1504
+ rx: e.FINAL_CONFIG.bar.borderRadius,
1505
+ fill: `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})`,
1506
+ stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? a.color : e.FINAL_CONFIG.bar.border.stroke,
1507
+ "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1508
+ }, null, 8, Gt)) : c("", !0),
1509
+ n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), i("foreignObject", {
1510
+ key: 2,
1492
1511
  style: { overflow: "visible" },
1493
1512
  height: "12",
1494
1513
  width: (e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap) < 0 ? 1e-5 : e.calcRectWidth() - (t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? 0 : e.barPeriodGap) / 2) + e.FINAL_CONFIG.chart.comments.width,
1495
1514
  x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1496
1515
  y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1497
1516
  }, [
1498
- w(i.$slots, "plot-comment", {
1499
- plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: d }
1517
+ S(r.$slots, "plot-comment", {
1518
+ plot: { ...n, color: a.color, seriesIndex: h, datapointIndex: d }
1500
1519
  }, void 0, !0)
1501
- ], 8, wt)) : c("", !0)
1520
+ ], 8, vt)) : c("", !0)
1502
1521
  ]))), 128)),
1503
- Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", Ot, [
1522
+ Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), i("g", zt, [
1504
1523
  f("defs", null, [
1505
1524
  f("marker", {
1506
1525
  id: `bar_arrow_${h}`,
@@ -1512,59 +1531,59 @@ function Zi(i, l, o, u, t, e) {
1512
1531
  }, [
1513
1532
  f("polygon", {
1514
1533
  points: `0 0, 7 ${7 / 2}, 0 7`,
1515
- fill: r.color
1516
- }, null, 8, vt)
1517
- ], 8, Gt)
1534
+ fill: a.color
1535
+ }, null, 8, Mt)
1536
+ ], 8, pt)
1518
1537
  ]),
1519
- r.plots.length > 1 ? (a(), s("line", {
1538
+ a.plots.length > 1 ? (l(), i("line", {
1520
1539
  key: 0,
1521
- x1: e.calcLinearProgression(r.plots).x1,
1522
- x2: e.calcLinearProgression(r.plots).x2,
1523
- y1: e.calcLinearProgression(r.plots).y1,
1524
- y2: e.calcLinearProgression(r.plots).y2,
1540
+ x1: e.calcLinearProgression(a.plots).x1,
1541
+ x2: e.calcLinearProgression(a.plots).x2,
1542
+ y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
1543
+ y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
1525
1544
  "stroke-width": 1,
1526
- stroke: r.color,
1545
+ stroke: a.color,
1527
1546
  "stroke-dasharray": 2,
1528
1547
  "marker-end": `url(#bar_arrow_${h})`
1529
- }, null, 8, pt)) : c("", !0),
1530
- r.plots.length > 1 ? (a(), s("text", {
1548
+ }, null, 8, Vt)) : c("", !0),
1549
+ a.plots.length > 1 ? (l(), i("text", {
1531
1550
  key: 1,
1532
1551
  "text-anchor": "middle",
1533
- x: e.calcLinearProgression(r.plots).x2,
1534
- y: e.calcLinearProgression(r.plots).y2 - 6,
1552
+ x: e.calcLinearProgression(a.plots).x2,
1553
+ y: e.calcLinearProgression(a.plots).y2 - 6,
1535
1554
  "font-size": t.fontSizes.plotLabels,
1536
- fill: r.color
1537
- }, S(e.dataLabel({
1538
- v: e.calcLinearProgression(r.plots).trend * 100,
1555
+ fill: a.color
1556
+ }, k(e.dataLabel({
1557
+ v: e.calcLinearProgression(a.plots).trend * 100,
1539
1558
  s: "%",
1540
1559
  r: 2
1541
- })), 9, zt)) : c("", !0)
1560
+ })), 9, Tt)) : c("", !0)
1542
1561
  ])) : c("", !0)
1543
1562
  ], 6))), 128)) : c("", !0),
1544
- !t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
1563
+ !t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (l(), i("line", {
1545
1564
  key: 1,
1546
1565
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1547
1566
  "stroke-width": "1",
1548
1567
  x1: e.drawingArea.left + e.xPadding,
1549
1568
  x2: e.drawingArea.right - e.xPadding,
1550
- y1: e.checkNaN(e.zero),
1551
- y2: e.checkNaN(e.zero),
1569
+ y1: e.forceValidValue(e.zero),
1570
+ y2: e.forceValidValue(e.zero),
1552
1571
  "stroke-linecap": "round"
1553
- }, null, 8, Mt)) : c("", !0),
1554
- e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Tt, [
1572
+ }, null, 8, Pt)) : c("", !0),
1573
+ e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (l(), i("g", Rt, [
1555
1574
  f("line", {
1556
1575
  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,
1557
1576
  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,
1558
- y1: e.drawingArea.top,
1559
- y2: e.drawingArea.bottom,
1577
+ y1: e.forceValidValue(e.drawingArea.top),
1578
+ y2: e.forceValidValue(e.drawingArea.bottom),
1560
1579
  stroke: e.FINAL_CONFIG.chart.highlighter.color,
1561
1580
  "stroke-width": e.FINAL_CONFIG.chart.highlighter.lineWidth,
1562
1581
  "stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
1563
1582
  "stroke-linecap": "round",
1564
1583
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1565
- }, null, 8, Pt)
1584
+ }, null, 8, Dt)
1566
1585
  ])) : c("", !0),
1567
- e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
1586
+ e.FINAL_CONFIG.chart.grid.frame.show ? (l(), i("rect", {
1568
1587
  key: 3,
1569
1588
  style: { pointerEvents: "none", transition: "none" },
1570
1589
  x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
@@ -1577,46 +1596,46 @@ function Zi(i, l, o, u, t, e) {
1577
1596
  "stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
1578
1597
  "stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
1579
1598
  "stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
1580
- }, null, 8, Vt)) : c("", !0),
1581
- e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", Rt, [
1582
- t.mutableConfig.useIndividualScale ? (a(), s(I, { key: 0 }, [
1583
- (a(!0), s(I, null, m(e.allScales, (r) => (a(), s("g", null, [
1599
+ }, null, 8, Ht)) : c("", !0),
1600
+ e.FINAL_CONFIG.chart.grid.labels.show ? (l(), i("g", Bt, [
1601
+ t.mutableConfig.useIndividualScale ? (l(), i(I, { key: 0 }, [
1602
+ (l(!0), i(I, null, m(e.allScales, (a) => (l(), i("g", null, [
1584
1603
  f("line", {
1585
- x1: r.x + e.xPadding,
1586
- x2: r.x + e.xPadding,
1587
- y1: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - r.yOffset - r.individualHeight) : e.checkNaN(e.drawingArea.top),
1588
- y2: t.mutableConfig.isStacked ? e.checkNaN(e.drawingArea.bottom - r.yOffset) : e.checkNaN(e.drawingArea.bottom),
1589
- stroke: r.color,
1604
+ x1: a.x + e.xPadding,
1605
+ x2: a.x + e.xPadding,
1606
+ y1: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - a.yOffset - a.individualHeight) : e.forceValidValue(e.drawingArea.top),
1607
+ y2: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - a.yOffset) : e.forceValidValue(e.drawingArea.bottom),
1608
+ stroke: a.color,
1590
1609
  "stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
1591
1610
  "stroke-linecap": "round",
1592
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1593
- }, null, 12, Dt)
1611
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1612
+ }, null, 12, Wt)
1594
1613
  ]))), 256)),
1595
- (a(!0), s(I, null, m(e.allScales, (r) => (a(), s("g", {
1596
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1614
+ (l(!0), i(I, null, m(e.allScales, (a) => (l(), i("g", {
1615
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1597
1616
  }, [
1598
1617
  f("text", {
1599
- fill: r.color,
1618
+ fill: a.color,
1600
1619
  "font-size": t.fontSizes.dataLabels,
1601
1620
  "text-anchor": "middle",
1602
- transform: `translate(${r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset - r.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
1603
- }, S(r.name) + " " + S(r.scaleLabel ? `- ${r.scaleLabel}` : ""), 9, Ht),
1604
- (a(!0), s(I, null, m(r.yLabels, (h, n) => (a(), s("line", {
1605
- x1: r.x - 3 + e.xPadding,
1606
- x2: r.x + e.xPadding,
1607
- y1: e.checkNaN(h.y),
1608
- y2: e.checkNaN(h.y),
1609
- stroke: r.color,
1621
+ 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)`
1622
+ }, k(a.name) + " " + k(a.scaleLabel ? `- ${a.scaleLabel}` : ""), 9, Et),
1623
+ (l(!0), i(I, null, m(a.yLabels, (h, n) => (l(), i("line", {
1624
+ x1: a.x - 3 + e.xPadding,
1625
+ x2: a.x + e.xPadding,
1626
+ y1: e.forceValidValue(h.y),
1627
+ y2: e.forceValidValue(h.y),
1628
+ stroke: a.color,
1610
1629
  "stroke-width": 1,
1611
1630
  "stroke-linecap": "round"
1612
- }, null, 8, Bt))), 256)),
1613
- (a(!0), s(I, null, m(r.yLabels, (h, n) => (a(), s("text", {
1614
- x: r.x - 5 + e.xPadding,
1615
- y: e.checkNaN(h.y) + t.fontSizes.dataLabels / 3,
1631
+ }, null, 8, Yt))), 256)),
1632
+ (l(!0), i(I, null, m(a.yLabels, (h, n) => (l(), i("text", {
1633
+ x: a.x - 5 + e.xPadding,
1634
+ y: e.forceValidValue(h.y) + t.fontSizes.dataLabels / 3,
1616
1635
  "font-size": t.fontSizes.dataLabels,
1617
1636
  "text-anchor": "end",
1618
- fill: r.color
1619
- }, S(e.applyDataLabel(
1637
+ fill: a.color
1638
+ }, k(e.applyDataLabel(
1620
1639
  e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
1621
1640
  h.value,
1622
1641
  e.dataLabel({
@@ -1626,58 +1645,58 @@ function Zi(i, l, o, u, t, e) {
1626
1645
  r: 1
1627
1646
  }),
1628
1647
  { datapoint: h.datapoint, seriesIndex: n }
1629
- )), 9, Et))), 256))
1648
+ )), 9, qt))), 256))
1630
1649
  ], 4))), 256))
1631
- ], 64)) : (a(!0), s(I, { key: 1 }, m(e.yLabels, (r, h) => (a(), s("g", {
1650
+ ], 64)) : (l(!0), i(I, { key: 1 }, m(e.yLabels, (a, h) => (l(), i("g", {
1632
1651
  key: `yLabel_${h}`
1633
1652
  }, [
1634
- e.canShowValue(r) && r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), s("line", {
1653
+ e.canShowValue(a) && a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (l(), i("line", {
1635
1654
  key: 0,
1636
1655
  x1: e.drawingArea.left + e.xPadding,
1637
1656
  x2: e.drawingArea.left - 5 + e.xPadding,
1638
- y1: e.checkNaN(r.y),
1639
- y2: e.checkNaN(r.y),
1657
+ y1: e.forceValidValue(a.y),
1658
+ y2: e.forceValidValue(a.y),
1640
1659
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
1641
1660
  "stroke-width": "1",
1642
1661
  "stroke-linecap": "round"
1643
- }, null, 8, Wt)) : c("", !0),
1644
- r.value >= e.niceScale.min && r.value <= e.niceScale.max ? (a(), s("text", {
1662
+ }, null, 8, Xt)) : c("", !0),
1663
+ a.value >= e.niceScale.min && a.value <= e.niceScale.max ? (l(), i("text", {
1645
1664
  key: 1,
1646
1665
  x: e.drawingArea.left - 7 + e.xPadding,
1647
- y: e.checkNaN(r.y + t.fontSizes.dataLabels / 3),
1666
+ y: e.checkNaN(a.y + t.fontSizes.dataLabels / 3),
1648
1667
  "font-size": t.fontSizes.dataLabels,
1649
1668
  "text-anchor": "end",
1650
1669
  fill: e.FINAL_CONFIG.chart.grid.labels.color
1651
- }, S(e.canShowValue(r.value) ? e.applyDataLabel(
1670
+ }, k(e.canShowValue(a.value) ? e.applyDataLabel(
1652
1671
  e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
1653
- r.value,
1672
+ a.value,
1654
1673
  e.dataLabel({
1655
- p: r.prefix,
1656
- v: r.value,
1657
- s: r.suffix,
1674
+ p: a.prefix,
1675
+ v: a.value,
1676
+ s: a.suffix,
1658
1677
  r: 1
1659
1678
  })
1660
- ) : ""), 9, Yt)) : c("", !0)
1679
+ ) : ""), 9, Ut)) : c("", !0)
1661
1680
  ]))), 128))
1662
1681
  ])) : c("", !0),
1663
- (a(!0), s(I, null, m(e.plotSet, (r, h) => (a(), s("g", {
1682
+ (l(!0), i(I, null, m(e.plotSet, (a, h) => (l(), i("g", {
1664
1683
  key: `serie_plot_${h}`,
1665
- class: V(`serie_plot_${h}`),
1666
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1684
+ class: P(`serie_plot_${h}`),
1685
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1667
1686
  }, [
1668
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
1687
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
1669
1688
  key: `circle_plot_${h}_${d}`
1670
1689
  }, [
1671
- n && e.canShowValue(n.value) ? (a(), D(b, {
1690
+ n && e.canShowValue(n.value) ? (l(), D(b, {
1672
1691
  key: 0,
1673
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
1674
- color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? r.color : e.FINAL_CONFIG.plot.dot.fill,
1692
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
1693
+ color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? a.color : e.FINAL_CONFIG.plot.dot.fill,
1675
1694
  plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
1676
1695
  radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
1677
- stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
1696
+ stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
1678
1697
  strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
1679
1698
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
1680
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1699
+ n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), i("foreignObject", {
1681
1700
  key: 1,
1682
1701
  style: { overflow: "visible" },
1683
1702
  height: "12",
@@ -1685,14 +1704,14 @@ function Zi(i, l, o, u, t, e) {
1685
1704
  x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1686
1705
  y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1687
1706
  }, [
1688
- f("div", qt, [
1689
- w(i.$slots, "plot-comment", {
1690
- plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: d }
1707
+ f("div", Jt, [
1708
+ S(r.$slots, "plot-comment", {
1709
+ plot: { ...n, color: a.color, seriesIndex: h, datapointIndex: d }
1691
1710
  }, void 0, !0)
1692
1711
  ])
1693
- ], 8, Xt)) : c("", !0)
1712
+ ], 8, Zt)) : c("", !0)
1694
1713
  ]))), 128)),
1695
- Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", Ut, [
1714
+ Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), i("g", Kt, [
1696
1715
  f("defs", null, [
1697
1716
  f("marker", {
1698
1717
  id: `plot_arrow_${h}`,
@@ -1704,120 +1723,137 @@ function Zi(i, l, o, u, t, e) {
1704
1723
  }, [
1705
1724
  f("polygon", {
1706
1725
  points: `0 0, 7 ${7 / 2}, 0 7`,
1707
- fill: r.color
1708
- }, null, 8, Jt)
1709
- ], 8, Zt)
1726
+ fill: a.color
1727
+ }, null, 8, jt)
1728
+ ], 8, Qt)
1710
1729
  ]),
1711
- r.plots.length > 1 ? (a(), s("line", {
1730
+ a.plots.length > 1 ? (l(), i("line", {
1712
1731
  key: 0,
1713
- x1: e.calcLinearProgression(r.plots).x1,
1714
- x2: e.calcLinearProgression(r.plots).x2,
1715
- y1: e.calcLinearProgression(r.plots).y1,
1716
- y2: e.calcLinearProgression(r.plots).y2,
1732
+ x1: e.calcLinearProgression(a.plots).x1,
1733
+ x2: e.calcLinearProgression(a.plots).x2,
1734
+ y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
1735
+ y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
1717
1736
  "stroke-width": 1,
1718
- stroke: r.color,
1737
+ stroke: a.color,
1719
1738
  "stroke-dasharray": 2,
1720
1739
  "marker-end": `url(#plot_arrow_${h})`
1721
- }, null, 8, Kt)) : c("", !0),
1722
- r.plots.length > 1 ? (a(), s("text", {
1740
+ }, null, 8, $t)) : c("", !0),
1741
+ a.plots.length > 1 ? (l(), i("text", {
1723
1742
  key: 1,
1724
1743
  "text-anchor": "middle",
1725
- x: e.calcLinearProgression(r.plots).x2,
1726
- y: e.calcLinearProgression(r.plots).y2 - 6,
1744
+ x: e.calcLinearProgression(a.plots).x2,
1745
+ y: e.calcLinearProgression(a.plots).y2 - 6,
1727
1746
  "font-size": t.fontSizes.plotLabels,
1728
- fill: r.color
1729
- }, S(e.dataLabel({
1730
- v: e.calcLinearProgression(r.plots).trend * 100,
1747
+ fill: a.color
1748
+ }, k(e.dataLabel({
1749
+ v: e.calcLinearProgression(a.plots).trend * 100,
1731
1750
  s: "%",
1732
1751
  r: 2
1733
- })), 9, Qt)) : c("", !0)
1752
+ })), 9, er)) : c("", !0)
1734
1753
  ])) : c("", !0)
1735
1754
  ], 6))), 128)),
1736
- (a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("g", {
1755
+ (l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("g", {
1737
1756
  key: `serie_line_${h}`,
1738
- class: V(`serie_line_${h}`),
1739
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1757
+ class: P(`serie_line_${h}`),
1758
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1740
1759
  }, [
1741
- r.smooth && r.plots.length > 1 ? (a(), s("path", {
1760
+ a.smooth && a.plots.length > 1 ? (l(), i("path", {
1742
1761
  key: 0,
1743
- d: `M${r.curve}`,
1762
+ d: `M${a.curve}`,
1744
1763
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
1745
1764
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1746
- "stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1765
+ "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1747
1766
  fill: "none"
1748
- }, null, 8, jt)) : r.plots.length > 1 ? (a(), s("g", $t, [
1749
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
1767
+ }, null, 8, tr)) : a.plots.length > 1 ? (l(), i("g", rr, [
1768
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
1750
1769
  key: `line_${h}_${d}`
1751
1770
  }, [
1752
- n && d < r.plots.length - 1 && r.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(r.plots[d + 1].value) ? (a(), s("line", {
1771
+ n && d < a.plots.length - 1 && a.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[d + 1].value) ? (l(), i("line", {
1753
1772
  key: 0,
1754
1773
  x1: n.x,
1755
- x2: r.plots[d + 1].x,
1756
- y1: n.y,
1757
- y2: r.plots[d + 1].y,
1774
+ x2: a.plots[d + 1].x,
1775
+ y1: e.forceValidValue(n.y),
1776
+ y2: e.forceValidValue(a.plots[d + 1].y),
1758
1777
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
1759
1778
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1760
- "stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1779
+ "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1761
1780
  "stroke-linejoin": "round",
1762
1781
  "stroke-linecap": "round"
1763
- }, null, 8, ei)) : c("", !0)
1782
+ }, null, 8, ar)) : c("", !0)
1764
1783
  ]))), 128))
1765
1784
  ])) : c("", !0)
1766
1785
  ], 6))), 128)),
1767
- (a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("g", {
1786
+ r.$slots.pattern ? (l(), i("defs", lr, [
1787
+ (l(!0), i(I, null, m(e.safeDataset, (a, h) => S(r.$slots, "pattern", We({
1788
+ key: `serie_pattern_slot_${h}`
1789
+ }, { ...a, seriesIndex: a.slotAbsoluteIndex, patternId: `pattern_${t.uniqueId}_${h}` }), void 0, !0)), 128))
1790
+ ])) : c("", !0),
1791
+ (l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("g", {
1768
1792
  key: `serie_line_${h}`,
1769
- class: V(`serie_line_${h}`),
1770
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1793
+ class: P(`serie_line_${h}`),
1794
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1771
1795
  }, [
1772
- r.useArea && r.plots.length > 1 ? (a(), s("g", ti, [
1773
- r.smooth ? (a(), s("path", {
1774
- key: 0,
1775
- d: `M ${r.plots[0] ? r.plots[0].x : Math.min(...r.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset : e.drawingArea.bottom} ${r.curve} L ${r.plots.at(-1) ? r.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - r.yOffset : e.drawingArea.bottom} Z`,
1776
- fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
1777
- }, null, 8, ii)) : (a(), s("path", {
1778
- key: 1,
1779
- d: `M${r.area}Z`,
1780
- fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(r.color, e.FINAL_CONFIG.line.area.opacity)
1781
- }, null, 8, ri))
1796
+ a.useArea && a.plots.length > 1 ? (l(), i("g", ir, [
1797
+ a.smooth ? (l(), i(I, { key: 0 }, [
1798
+ r.$slots.pattern ? (l(), i("path", {
1799
+ key: 0,
1800
+ 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 * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
1801
+ fill: `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})`
1802
+ }, null, 8, sr)) : (l(), i("path", {
1803
+ key: 1,
1804
+ 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 * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,
1805
+ fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
1806
+ }, null, 8, nr))
1807
+ ], 64)) : (l(), i(I, { key: 1 }, [
1808
+ r.$slots.pattern ? (l(), i("path", {
1809
+ key: 0,
1810
+ d: `M${a.area}Z`,
1811
+ fill: `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})`
1812
+ }, null, 8, hr)) : (l(), i("path", {
1813
+ key: 1,
1814
+ d: `M${a.area}Z`,
1815
+ fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(a.color, e.FINAL_CONFIG.line.area.opacity)
1816
+ }, null, 8, or))
1817
+ ], 64))
1782
1818
  ])) : c("", !0),
1783
- r.smooth && r.plots.length > 1 ? (a(), s("path", {
1819
+ a.smooth && a.plots.length > 1 ? (l(), i("path", {
1784
1820
  key: 1,
1785
- d: `M${r.curve}`,
1786
- stroke: r.color,
1821
+ d: `M${a.curve}`,
1822
+ stroke: a.color,
1787
1823
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth,
1788
- "stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1824
+ "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1789
1825
  fill: "none"
1790
- }, null, 8, ai)) : r.plots.length > 1 ? (a(), s("g", li, [
1791
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
1826
+ }, null, 8, cr)) : a.plots.length > 1 ? (l(), i("g", dr, [
1827
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
1792
1828
  key: `line_${h}_${d}`
1793
1829
  }, [
1794
- n && d < r.plots.length - 1 && r.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(r.plots[d + 1].value) ? (a(), s("line", {
1830
+ n && d < a.plots.length - 1 && a.plots[d + 1] && e.canShowValue(n.value) && e.canShowValue(a.plots[d + 1].value) ? (l(), i("line", {
1795
1831
  key: 0,
1796
1832
  x1: n.x,
1797
- x2: r.plots[d + 1].x,
1798
- y1: n.y,
1799
- y2: r.plots[d + 1].y,
1800
- stroke: r.color,
1833
+ x2: a.plots[d + 1].x,
1834
+ y1: e.forceValidValue(n.y),
1835
+ y2: e.forceValidValue(a.plots[d + 1].y),
1836
+ stroke: a.color,
1801
1837
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth,
1802
- "stroke-dasharray": r.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1838
+ "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1803
1839
  "stroke-linejoin": "round",
1804
1840
  "stroke-linecap": "round"
1805
- }, null, 8, si)) : c("", !0)
1841
+ }, null, 8, ur)) : c("", !0)
1806
1842
  ]))), 128))
1807
1843
  ])) : c("", !0),
1808
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
1844
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
1809
1845
  key: `circle_line_${h}_${d}`
1810
1846
  }, [
1811
- n && e.canShowValue(n.value) ? (a(), D(b, {
1847
+ n && e.canShowValue(n.value) ? (l(), D(b, {
1812
1848
  key: 0,
1813
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
1814
- color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? r.color : e.FINAL_CONFIG.line.dot.fill,
1849
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
1850
+ color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? a.color : e.FINAL_CONFIG.line.dot.fill,
1815
1851
  plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
1816
1852
  radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
1817
- stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : r.color,
1853
+ stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : a.color,
1818
1854
  strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
1819
1855
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
1820
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1856
+ n.comment && e.FINAL_CONFIG.chart.comments.show ? (l(), i("foreignObject", {
1821
1857
  key: 1,
1822
1858
  style: { overflow: "visible" },
1823
1859
  height: "12",
@@ -1825,14 +1861,14 @@ function Zi(i, l, o, u, t, e) {
1825
1861
  x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1826
1862
  y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1827
1863
  }, [
1828
- f("div", hi, [
1829
- w(i.$slots, "plot-comment", {
1830
- plot: { ...n, color: r.color, seriesIndex: h, datapointIndex: d }
1864
+ f("div", fr, [
1865
+ S(r.$slots, "plot-comment", {
1866
+ plot: { ...n, color: a.color, seriesIndex: h, datapointIndex: d }
1831
1867
  }, void 0, !0)
1832
1868
  ])
1833
- ], 8, ni)) : c("", !0)
1869
+ ], 8, gr)) : c("", !0)
1834
1870
  ]))), 128)),
1835
- Object.hasOwn(r, "useProgression") && r.useProgression === !0 && !isNaN(e.calcLinearProgression(r.plots).trend) ? (a(), s("g", oi, [
1871
+ Object.hasOwn(a, "useProgression") && a.useProgression === !0 && !isNaN(e.calcLinearProgression(a.plots).trend) ? (l(), i("g", Ir, [
1836
1872
  f("defs", null, [
1837
1873
  f("marker", {
1838
1874
  id: `line_arrow_${h}`,
@@ -1844,108 +1880,108 @@ function Zi(i, l, o, u, t, e) {
1844
1880
  }, [
1845
1881
  f("polygon", {
1846
1882
  points: `0 0, 7 ${7 / 2}, 0 7`,
1847
- fill: r.color
1848
- }, null, 8, di)
1849
- ], 8, ci)
1883
+ fill: a.color
1884
+ }, null, 8, Nr)
1885
+ ], 8, mr)
1850
1886
  ]),
1851
- r.plots.length > 1 ? (a(), s("line", {
1887
+ a.plots.length > 1 ? (l(), i("line", {
1852
1888
  key: 0,
1853
- x1: e.calcLinearProgression(r.plots).x1,
1854
- x2: e.calcLinearProgression(r.plots).x2,
1855
- y1: e.calcLinearProgression(r.plots).y1,
1856
- y2: e.calcLinearProgression(r.plots).y2,
1889
+ x1: e.calcLinearProgression(a.plots).x1,
1890
+ x2: e.calcLinearProgression(a.plots).x2,
1891
+ y1: e.forceValidValue(e.calcLinearProgression(a.plots).y1),
1892
+ y2: e.forceValidValue(e.calcLinearProgression(a.plots).y2),
1857
1893
  "stroke-width": 1,
1858
- stroke: r.color,
1894
+ stroke: a.color,
1859
1895
  "stroke-dasharray": 2,
1860
1896
  "marker-end": `url(#line_arrow_${h})`
1861
- }, null, 8, ui)) : c("", !0),
1862
- r.plots.length > 1 ? (a(), s("text", {
1897
+ }, null, 8, xr)) : c("", !0),
1898
+ a.plots.length > 1 ? (l(), i("text", {
1863
1899
  key: 1,
1864
1900
  "text-anchor": "middle",
1865
- x: e.calcLinearProgression(r.plots).x2,
1866
- y: e.calcLinearProgression(r.plots).y2 - 6,
1901
+ x: e.calcLinearProgression(a.plots).x2,
1902
+ y: e.calcLinearProgression(a.plots).y2 - 6,
1867
1903
  "font-size": t.fontSizes.plotLabels,
1868
- fill: r.color
1869
- }, S(e.dataLabel({
1870
- v: e.calcLinearProgression(r.plots).trend * 100,
1904
+ fill: a.color
1905
+ }, k(e.dataLabel({
1906
+ v: e.calcLinearProgression(a.plots).trend * 100,
1871
1907
  s: "%",
1872
1908
  r: 2
1873
- })), 9, gi)) : c("", !0)
1909
+ })), 9, br)) : c("", !0)
1874
1910
  ])) : c("", !0)
1875
1911
  ], 6))), 128)),
1876
- (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (a(), s("g", fi, [
1877
- (a(!0), s(I, null, m(e.barSet, (r, h) => (a(), s("g", {
1912
+ (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (l(), i("g", Fr, [
1913
+ (l(!0), i(I, null, m(e.barSet, (a, h) => (l(), i("g", {
1878
1914
  key: `xLabel_bar_${h}`,
1879
- class: V(`xLabel_bar_${h}`),
1880
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1915
+ class: P(`xLabel_bar_${h}`),
1916
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1881
1917
  }, [
1882
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
1918
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
1883
1919
  key: `xLabel_bar_${h}_${d}`
1884
1920
  }, [
1885
- n && (!Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d) && e.FINAL_CONFIG.bar.labels.show ? (a(), s("text", {
1921
+ 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 ? (l(), i("text", {
1886
1922
  key: 0,
1887
1923
  x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
1888
1924
  y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
1889
1925
  "text-anchor": "middle",
1890
1926
  "font-size": t.fontSizes.plotLabels,
1891
1927
  fill: e.FINAL_CONFIG.bar.labels.color
1892
- }, S(e.canShowValue(n.value) ? e.applyDataLabel(
1928
+ }, k(e.canShowValue(n.value) ? e.applyDataLabel(
1893
1929
  e.FINAL_CONFIG.bar.labels.formatter,
1894
1930
  n.value,
1895
1931
  e.dataLabel({
1896
- p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
1932
+ p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
1897
1933
  v: n.value,
1898
- s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
1934
+ s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
1899
1935
  r: e.FINAL_CONFIG.bar.labels.rounding
1900
1936
  }),
1901
1937
  {
1902
1938
  datapoint: n,
1903
- serie: r
1939
+ serie: a
1904
1940
  }
1905
- ) : ""), 9, Ii)) : c("", !0),
1906
- n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
1941
+ ) : ""), 9, _r)) : c("", !0),
1942
+ n && e.FINAL_CONFIG.bar.serieName.show ? (l(), i("text", {
1907
1943
  key: 1,
1908
1944
  x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
1909
1945
  y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
1910
1946
  "text-anchor": "middle",
1911
1947
  "font-size": t.fontSizes.plotLabels,
1912
- fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? r.color : e.FINAL_CONFIG.bar.serieName.color,
1948
+ fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? a.color : e.FINAL_CONFIG.bar.serieName.color,
1913
1949
  "font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
1914
- }, S(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: r.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : r.name), 9, Ni)) : c("", !0)
1950
+ }, k(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: a.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : a.name), 9, Ar)) : c("", !0)
1915
1951
  ]))), 128))
1916
1952
  ], 6))), 128))
1917
1953
  ])) : c("", !0),
1918
- e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", mi, [
1919
- (a(!0), s(I, null, m(e.plotSet, (r, h) => (a(), s("g", {
1954
+ e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (l(), i("g", yr, [
1955
+ (l(!0), i(I, null, m(e.plotSet, (a, h) => (l(), i("g", {
1920
1956
  key: `xLabel_plot_${h}`,
1921
- class: V(`xLabel_plot_${h}`),
1922
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1957
+ class: P(`xLabel_plot_${h}`),
1958
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1923
1959
  }, [
1924
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
1960
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
1925
1961
  key: `xLabel_plot_${h}_${d}`
1926
1962
  }, [
1927
- n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (a(), s("text", {
1963
+ n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (l(), i("text", {
1928
1964
  key: 0,
1929
1965
  x: n.x,
1930
1966
  y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
1931
1967
  "text-anchor": "middle",
1932
1968
  "font-size": t.fontSizes.plotLabels,
1933
1969
  fill: e.FINAL_CONFIG.plot.labels.color
1934
- }, S(e.canShowValue(n.value) ? e.applyDataLabel(
1970
+ }, k(e.canShowValue(n.value) ? e.applyDataLabel(
1935
1971
  e.FINAL_CONFIG.plot.labels.formatter,
1936
1972
  n.value,
1937
1973
  e.dataLabel({
1938
- p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
1974
+ p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
1939
1975
  v: n.value,
1940
- s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
1976
+ s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
1941
1977
  r: e.FINAL_CONFIG.plot.labels.rounding
1942
1978
  }),
1943
1979
  {
1944
1980
  datapoint: n,
1945
- serie: r
1981
+ serie: a
1946
1982
  }
1947
- ) : ""), 9, xi)) : c("", !0),
1948
- n && d === 0 && r.useTag && r.useTag === "start" ? (a(), s("foreignObject", {
1983
+ ) : ""), 9, Lr)) : c("", !0),
1984
+ n && d === 0 && a.useTag && a.useTag === "start" ? (l(), i("foreignObject", {
1949
1985
  key: 1,
1950
1986
  x: n.x,
1951
1987
  y: n.y - 20,
@@ -1954,55 +1990,55 @@ function Zi(i, l, o, u, t, e) {
1954
1990
  style: { overflow: "visible" }
1955
1991
  }, [
1956
1992
  f("div", {
1957
- style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
1958
- }, S(r.name), 5)
1959
- ], 8, bi)) : c("", !0),
1960
- n && d === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), s("foreignObject", {
1993
+ style: L(`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;`)
1994
+ }, k(a.name), 5)
1995
+ ], 8, Cr)) : c("", !0),
1996
+ n && d === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (l(), i("foreignObject", {
1961
1997
  key: 2,
1962
- x: n.x - r.name.length * (t.fontSizes.plotLabels / 2),
1998
+ x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
1963
1999
  y: n.y - 20,
1964
2000
  height: 24,
1965
2001
  width: "150",
1966
2002
  style: { overflow: "visible" }
1967
2003
  }, [
1968
2004
  f("div", {
1969
- style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
1970
- }, S(r.name), 5)
1971
- ], 8, Fi)) : c("", !0)
2005
+ style: L(`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;`)
2006
+ }, k(a.name), 5)
2007
+ ], 8, Sr)) : c("", !0)
1972
2008
  ]))), 128))
1973
2009
  ], 6))), 128))
1974
2010
  ])) : c("", !0),
1975
- e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", _i, [
1976
- (a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("g", {
2011
+ e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (l(), i("g", kr, [
2012
+ (l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("g", {
1977
2013
  key: `xLabel_line_${h}`,
1978
- class: V(`xLabel_line_${h}`),
1979
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2014
+ class: P(`xLabel_line_${h}`),
2015
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1980
2016
  }, [
1981
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
2017
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
1982
2018
  key: `xLabel_line_${h}_${d}`
1983
2019
  }, [
1984
- n && !Object.hasOwn(r, "dataLabels") || r.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (a(), s("text", {
2020
+ n && !Object.hasOwn(a, "dataLabels") || a.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === d || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === d ? (l(), i("text", {
1985
2021
  key: 0,
1986
2022
  x: n.x,
1987
2023
  y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
1988
2024
  "text-anchor": "middle",
1989
2025
  "font-size": t.fontSizes.plotLabels,
1990
2026
  fill: e.FINAL_CONFIG.line.labels.color
1991
- }, S(e.canShowValue(n.value) ? e.applyDataLabel(
2027
+ }, k(e.canShowValue(n.value) ? e.applyDataLabel(
1992
2028
  e.FINAL_CONFIG.line.labels.formatter,
1993
2029
  n.value,
1994
2030
  e.dataLabel({
1995
- p: r.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2031
+ p: a.prefix || e.FINAL_CONFIG.chart.labels.prefix,
1996
2032
  v: n.value,
1997
- s: r.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2033
+ s: a.suffix || e.FINAL_CONFIG.chart.labels.suffix,
1998
2034
  r: e.FINAL_CONFIG.line.labels.rounding
1999
2035
  }),
2000
2036
  {
2001
2037
  datapoint: n,
2002
- serie: r
2038
+ serie: a
2003
2039
  }
2004
- ) : ""), 9, Ai)) : c("", !0),
2005
- n && d === 0 && r.useTag && r.useTag === "start" ? (a(), s("foreignObject", {
2040
+ ) : ""), 9, wr)) : c("", !0),
2041
+ n && d === 0 && a.useTag && a.useTag === "start" ? (l(), i("foreignObject", {
2006
2042
  key: 1,
2007
2043
  x: n.x,
2008
2044
  y: n.y - 20,
@@ -2011,154 +2047,154 @@ function Zi(i, l, o, u, t, e) {
2011
2047
  style: { overflow: "visible" }
2012
2048
  }, [
2013
2049
  f("div", {
2014
- style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
2015
- }, S(r.name), 5)
2016
- ], 8, yi)) : c("", !0),
2017
- n && d === r.plots.length - 1 && r.useTag && r.useTag === "end" ? (a(), s("foreignObject", {
2050
+ style: L(`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;`)
2051
+ }, k(a.name), 5)
2052
+ ], 8, Or)) : c("", !0),
2053
+ n && d === a.plots.length - 1 && a.useTag && a.useTag === "end" ? (l(), i("foreignObject", {
2018
2054
  key: 2,
2019
- x: n.x - r.name.length * (t.fontSizes.plotLabels / 2),
2055
+ x: n.x - a.name.length * (t.fontSizes.plotLabels / 2),
2020
2056
  y: n.y - 20,
2021
2057
  height: 24,
2022
2058
  width: "150",
2023
2059
  style: { overflow: "visible" }
2024
2060
  }, [
2025
2061
  f("div", {
2026
- style: L(`padding: 3px; background:${e.setOpacity(r.color, 80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
2027
- }, S(r.name), 5)
2028
- ], 8, Li)) : c("", !0)
2062
+ style: L(`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;`)
2063
+ }, k(a.name), 5)
2064
+ ], 8, Gr)) : c("", !0)
2029
2065
  ]))), 128))
2030
2066
  ], 6))), 128))
2031
2067
  ])) : c("", !0),
2032
- (a(!0), s(I, null, m(e.lineSet, (r, h) => (a(), s("g", {
2068
+ (l(!0), i(I, null, m(e.lineSet, (a, h) => (l(), i("g", {
2033
2069
  key: `xLabel_line_${h}`,
2034
- class: V(`xLabel_line_${h}`),
2035
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2070
+ class: P(`xLabel_line_${h}`),
2071
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2036
2072
  }, [
2037
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
2073
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
2038
2074
  key: `xLabel_line_${h}_${d}`
2039
2075
  }, [
2040
- n && d === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), s("text", {
2076
+ n && d === 0 && a.showSerieName && a.showSerieName === "start" ? (l(), i("text", {
2041
2077
  key: 0,
2042
2078
  x: n.x - t.fontSizes.plotLabels,
2043
2079
  y: n.y,
2044
2080
  "font-size": t.fontSizes.plotLabels,
2045
2081
  "text-anchor": "end",
2046
- fill: r.color,
2082
+ fill: a.color,
2047
2083
  innerHTML: e.createTSpans({
2048
- content: r.name,
2084
+ content: a.name,
2049
2085
  fontSize: t.fontSizes.plotLabels,
2050
- fill: r.color,
2086
+ fill: a.color,
2051
2087
  x: n.x - t.fontSizes.plotLabels,
2052
2088
  y: n.y,
2053
2089
  maxWords: 2
2054
2090
  })
2055
- }, null, 8, Ci)) : c("", !0),
2056
- n && d === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), s("text", {
2091
+ }, null, 8, vr)) : c("", !0),
2092
+ n && d === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (l(), i("text", {
2057
2093
  key: 1,
2058
2094
  x: n.x + t.fontSizes.plotLabels,
2059
2095
  y: n.y,
2060
2096
  "font-size": t.fontSizes.plotLabels,
2061
2097
  "text-anchor": "start",
2062
- fill: r.color,
2098
+ fill: a.color,
2063
2099
  innerHTML: e.createTSpans({
2064
- content: r.name,
2100
+ content: a.name,
2065
2101
  fontSize: t.fontSizes.plotLabels,
2066
- fill: r.color,
2102
+ fill: a.color,
2067
2103
  x: n.x + t.fontSizes.plotLabels,
2068
2104
  y: n.y,
2069
2105
  maxWords: 2
2070
2106
  })
2071
- }, null, 8, Si)) : c("", !0)
2107
+ }, null, 8, zr)) : c("", !0)
2072
2108
  ]))), 128))
2073
2109
  ], 6))), 128)),
2074
- (a(!0), s(I, null, m(e.plotSet, (r, h) => (a(), s("g", {
2110
+ (l(!0), i(I, null, m(e.plotSet, (a, h) => (l(), i("g", {
2075
2111
  key: `xLabel_plot_${h}`,
2076
- class: V(`xLabel_plot_${h}`),
2077
- style: L(`opacity:${t.selectedScale ? t.selectedScale === r.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2112
+ class: P(`xLabel_plot_${h}`),
2113
+ style: L(`opacity:${t.selectedScale ? t.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2078
2114
  }, [
2079
- (a(!0), s(I, null, m(r.plots, (n, d) => (a(), s("g", {
2115
+ (l(!0), i(I, null, m(a.plots, (n, d) => (l(), i("g", {
2080
2116
  key: `xLabel_plot_${h}_${d}`
2081
2117
  }, [
2082
- n && d === 0 && r.showSerieName && r.showSerieName === "start" ? (a(), s("text", {
2118
+ n && d === 0 && a.showSerieName && a.showSerieName === "start" ? (l(), i("text", {
2083
2119
  key: 0,
2084
2120
  x: n.x - t.fontSizes.plotLabels,
2085
2121
  y: n.y,
2086
2122
  "font-size": t.fontSizes.plotLabels,
2087
2123
  "text-anchor": "end",
2088
- fill: r.color,
2124
+ fill: a.color,
2089
2125
  innerHTML: e.createTSpans({
2090
- content: r.name,
2126
+ content: a.name,
2091
2127
  fontSize: t.fontSizes.plotLabels,
2092
- fill: r.color,
2128
+ fill: a.color,
2093
2129
  x: n.x - t.fontSizes.plotLabels,
2094
2130
  y: n.y,
2095
2131
  maxWords: 2
2096
2132
  })
2097
- }, null, 8, ki)) : c("", !0),
2098
- n && d === r.plots.length - 1 && r.showSerieName && r.showSerieName === "end" ? (a(), s("text", {
2133
+ }, null, 8, pr)) : c("", !0),
2134
+ n && d === a.plots.length - 1 && a.showSerieName && a.showSerieName === "end" ? (l(), i("text", {
2099
2135
  key: 1,
2100
2136
  x: n.x + t.fontSizes.plotLabels,
2101
2137
  y: n.y,
2102
2138
  "font-size": t.fontSizes.plotLabels,
2103
2139
  "text-anchor": "start",
2104
- fill: r.color,
2140
+ fill: a.color,
2105
2141
  innerHTML: e.createTSpans({
2106
- content: r.name,
2142
+ content: a.name,
2107
2143
  fontSize: t.fontSizes.plotLabels,
2108
- fill: r.color,
2144
+ fill: a.color,
2109
2145
  x: n.x + t.fontSizes.plotLabels,
2110
2146
  y: n.y,
2111
2147
  maxWords: 2
2112
2148
  })
2113
- }, null, 8, wi)) : c("", !0)
2149
+ }, null, 8, Mr)) : c("", !0)
2114
2150
  ]))), 128))
2115
2151
  ], 6))), 128)),
2116
- t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (a(!0), s(I, { key: 8 }, m(e.allScales, (r) => (a(), s("rect", {
2117
- x: r.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
2152
+ t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (l(!0), i(I, { key: 9 }, m(e.allScales, (a) => (l(), i("rect", {
2153
+ x: a.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
2118
2154
  y: e.drawingArea.top,
2119
2155
  width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
2120
2156
  height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2121
- fill: t.selectedScale === r.id ? e.setOpacity(r.color, 20) : "transparent",
2122
- onMouseenter: (h) => t.selectedScale = r.id,
2123
- onMouseleave: l[0] || (l[0] = (h) => t.selectedScale = null)
2124
- }, null, 40, Oi))), 256)) : c("", !0),
2157
+ fill: t.selectedScale === a.id ? e.setOpacity(a.color, 20) : "transparent",
2158
+ onMouseenter: (h) => t.selectedScale = a.id,
2159
+ onMouseleave: s[0] || (s[0] = (h) => t.selectedScale = null)
2160
+ }, null, 40, Vr))), 256)) : c("", !0),
2125
2161
  f("g", null, [
2126
- e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (a(), s("text", {
2162
+ e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (l(), i("text", {
2127
2163
  key: 0,
2128
2164
  "font-size": t.fontSizes.yAxis,
2129
2165
  fill: e.FINAL_CONFIG.chart.grid.labels.color,
2130
2166
  transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
2131
2167
  "text-anchor": "middle",
2132
2168
  style: { transition: "none" }
2133
- }, S(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Gi)) : c("", !0),
2134
- e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
2169
+ }, k(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Tr)) : c("", !0),
2170
+ e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (l(), i("text", {
2135
2171
  key: 1,
2136
2172
  "text-anchor": "middle",
2137
2173
  x: t.width / 2,
2138
2174
  y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
2139
2175
  "font-size": t.fontSizes.yAxis,
2140
2176
  fill: e.FINAL_CONFIG.chart.grid.labels.color
2141
- }, S(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, vi)) : c("", !0)
2177
+ }, k(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Pr)) : c("", !0)
2142
2178
  ]),
2143
- e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", pi, [
2144
- i.$slots["time-label"] ? (a(!0), s(I, { key: 0 }, m(e.timeLabels, (r, h) => (a(), s("g", {
2179
+ e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (l(), i("g", Rr, [
2180
+ r.$slots["time-label"] ? (l(!0), i(I, { key: 0 }, m(e.timeLabels, (a, h) => (l(), i("g", {
2145
2181
  key: `time_label_${h}`
2146
2182
  }, [
2147
- w(i.$slots, "time-label", H(B({
2183
+ S(r.$slots, "time-label", H(B({
2148
2184
  x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2,
2149
2185
  y: e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
2150
2186
  fontSize: t.fontSizes.xAxis,
2151
2187
  fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2152
2188
  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})`,
2153
- absoluteIndex: r.absoluteIndex,
2154
- content: r.text,
2189
+ absoluteIndex: a.absoluteIndex,
2190
+ content: a.text,
2155
2191
  textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2156
- show: r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !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
2192
+ show: 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 && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !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 && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
2157
2193
  })), void 0, !0)
2158
- ]))), 128)) : (a(!0), s(I, { key: 1 }, m(e.timeLabels, (r, h) => (a(), s("g", {
2194
+ ]))), 128)) : (l(!0), i(I, { key: 1 }, m(e.timeLabels, (a, h) => (l(), i("g", {
2159
2195
  key: `time_label_${h}`
2160
2196
  }, [
2161
- r && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || r && !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 ? (a(), s("text", {
2197
+ 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 && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || a && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !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 && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (l(), i("text", {
2162
2198
  key: 0,
2163
2199
  "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2164
2200
  "font-size": t.fontSizes.xAxis,
@@ -2167,12 +2203,12 @@ function Zi(i, l, o, u, t, e) {
2167
2203
  style: {
2168
2204
  cursor: "pointer"
2169
2205
  },
2170
- onClick: () => e.selectTimeLabel(r, h)
2171
- }, S(r.text || ""), 9, zi)) : c("", !0)
2206
+ onClick: () => e.selectTimeLabel(a, h)
2207
+ }, k(a.text || ""), 9, Dr)) : c("", !0)
2172
2208
  ]))), 128))
2173
2209
  ])) : c("", !0),
2174
2210
  f("g", null, [
2175
- (a(!0), s(I, null, m(e.maxSeries, (r, h) => (a(), s("g", {
2211
+ (l(!0), i(I, null, m(e.maxSeries, (a, h) => (l(), i("g", {
2176
2212
  key: `tooltip_trap_${h}`
2177
2213
  }, [
2178
2214
  f("rect", {
@@ -2183,13 +2219,13 @@ function Zi(i, l, o, u, t, e) {
2183
2219
  width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
2184
2220
  fill: "transparent",
2185
2221
  onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
2186
- onMouseleave: l[1] || (l[1] = (n) => e.toggleTooltipVisibility(!1)),
2222
+ onMouseleave: s[1] || (s[1] = (n) => e.toggleTooltipVisibility(!1)),
2187
2223
  onClick: (n) => e.selectX(h)
2188
- }, null, 40, Mi)
2224
+ }, null, 40, Hr)
2189
2225
  ]))), 128))
2190
2226
  ]),
2191
- e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Ti, [
2192
- (a(), s("foreignObject", {
2227
+ e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (l(), i("g", Br, [
2228
+ (l(), i("foreignObject", {
2193
2229
  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,
2194
2230
  y: e.drawingArea.bottom,
2195
2231
  width: "200",
@@ -2199,22 +2235,22 @@ function Zi(i, l, o, u, t, e) {
2199
2235
  f("div", {
2200
2236
  class: "vue-ui-xy-time-tag",
2201
2237
  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`)
2202
- }, 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)
2203
- ], 8, Pi)),
2238
+ }, k(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)
2239
+ ], 8, Wr)),
2204
2240
  f("circle", {
2205
2241
  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,
2206
2242
  cy: e.drawingArea.bottom,
2207
2243
  r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
2208
2244
  fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
2209
- }, null, 8, Vi)
2245
+ }, null, 8, Er)
2210
2246
  ])) : c("", !0)
2211
2247
  ])) : c("", !0),
2212
- w(i.$slots, "svg", { svg: e.svg }, void 0, !0)
2213
- ], 14, Je)) : c("", !0),
2214
- i.$slots.watermark ? (a(), s("div", Ri, [
2215
- w(i.$slots, "watermark", H(B({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
2248
+ S(r.$slots, "svg", { svg: e.svg }, void 0, !0)
2249
+ ], 14, Qe)) : c("", !0),
2250
+ r.$slots.watermark ? (l(), i("div", Yr, [
2251
+ S(r.$slots, "watermark", H(B({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
2216
2252
  ])) : c("", !0),
2217
- e.isDataset ? c("", !0) : (a(), D(T, {
2253
+ e.isDataset ? c("", !0) : (l(), D(V, {
2218
2254
  key: 6,
2219
2255
  config: {
2220
2256
  type: "line",
@@ -2232,7 +2268,7 @@ function Zi(i, l, o, u, t, e) {
2232
2268
  }
2233
2269
  }
2234
2270
  }, null, 8, ["config"])),
2235
- e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (a(), D(v, {
2271
+ e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (l(), D(v, {
2236
2272
  ref: "chartSlicer",
2237
2273
  key: `slicer_${t.slicerStep}`,
2238
2274
  background: e.FINAL_CONFIG.chart.zoom.color,
@@ -2257,33 +2293,33 @@ function Zi(i, l, o, u, t, e) {
2257
2293
  valueStart: t.slicer.start,
2258
2294
  valueEnd: t.slicer.end,
2259
2295
  start: t.slicer.start,
2260
- "onUpdate:start": l[2] || (l[2] = (r) => t.slicer.start = r),
2296
+ "onUpdate:start": s[2] || (s[2] = (a) => t.slicer.start = a),
2261
2297
  end: t.slicer.end,
2262
- "onUpdate:end": l[3] || (l[3] = (r) => t.slicer.end = r),
2298
+ "onUpdate:end": s[3] || (s[3] = (a) => t.slicer.end = a),
2263
2299
  refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
2264
- refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((r) => e.largestTriangleThreeBucketsArray({ data: r.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
2300
+ refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((a) => e.largestTriangleThreeBucketsArray({ data: a.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
2265
2301
  enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
2266
2302
  enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
2267
2303
  onReset: e.refreshSlicer,
2268
2304
  onTrapMouse: e.selectMinimapIndex
2269
2305
  }, {
2270
- "reset-action": M(({ reset: r }) => [
2271
- w(i.$slots, "reset-action", H(B({ reset: r })), void 0, !0)
2306
+ "reset-action": M(({ reset: a }) => [
2307
+ S(r.$slots, "reset-action", H(B({ reset: a })), void 0, !0)
2272
2308
  ]),
2273
2309
  _: 3
2274
2310
  }, 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", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : c("", !0),
2275
- e.FINAL_CONFIG.chart.legend.show ? (a(), s("div", {
2311
+ e.FINAL_CONFIG.chart.legend.show ? (l(), i("div", {
2276
2312
  key: 8,
2277
2313
  ref: "chartLegend",
2278
2314
  class: "vue-ui-xy-legend",
2279
2315
  style: L(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2280
2316
  }, [
2281
- (a(!0), s(I, null, m(e.absoluteDataset, (r, h) => (a(), s("div", {
2317
+ (l(!0), i(I, null, m(e.absoluteDataset, (a, h) => (l(), i("div", {
2282
2318
  key: `div_legend_item_${h}`,
2283
- onClick: (n) => e.segregate(r),
2284
- class: V({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(r.id) })
2319
+ onClick: (n) => e.segregate(a),
2320
+ class: P({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(a.id) })
2285
2321
  }, [
2286
- t.icons[r.type] === "line" ? (a(), s("svg", Hi, [
2322
+ t.icons[a.type] === "line" ? (l(), i("svg", Xr, [
2287
2323
  f("rect", {
2288
2324
  x: "0",
2289
2325
  y: "7.5",
@@ -2292,45 +2328,56 @@ function Zi(i, l, o, u, t, e) {
2292
2328
  "stroke-width": 0.5,
2293
2329
  height: "3",
2294
2330
  width: "20",
2295
- fill: r.color
2296
- }, null, 8, Bi),
2297
- X(b, {
2331
+ fill: a.color
2332
+ }, null, 8, Ur),
2333
+ q(b, {
2298
2334
  plot: { x: 10, y: 9 },
2299
2335
  radius: 4,
2300
- color: r.color,
2301
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle",
2336
+ color: a.color,
2337
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
2302
2338
  stroke: e.FINAL_CONFIG.chart.backgroundColor,
2303
2339
  strokeWidth: 0.5
2304
2340
  }, null, 8, ["color", "shape", "stroke"])
2305
- ])) : (a(), s("svg", Ei, [
2306
- t.icons[r.type] === "bar" ? (a(), s("rect", {
2341
+ ])) : t.icons[a.type] === "bar" ? (l(), i("svg", Zr, [
2342
+ t.icons[a.type] === "bar" && r.$slots.pattern ? (l(), i("rect", {
2307
2343
  key: 0,
2308
2344
  x: "0",
2309
2345
  y: "0",
2310
2346
  rx: "1",
2311
- height: "12",
2312
- width: "12",
2347
+ height: "40",
2348
+ width: "40",
2313
2349
  stroke: "none",
2314
- fill: r.color
2315
- }, null, 8, Wi)) : (a(), D(b, {
2350
+ fill: a.color
2351
+ }, null, 8, Jr)) : c("", !0),
2352
+ t.icons[a.type] === "bar" ? (l(), i("rect", {
2316
2353
  key: 1,
2354
+ x: "0",
2355
+ y: "0",
2356
+ rx: "1",
2357
+ height: "40",
2358
+ width: "40",
2359
+ stroke: "none",
2360
+ fill: r.$slots.pattern ? `url(#pattern_${t.uniqueId}_${a.slotAbsoluteIndex})` : a.color
2361
+ }, null, 8, Kr)) : c("", !0)
2362
+ ])) : (l(), i("svg", Qr, [
2363
+ q(b, {
2317
2364
  plot: { x: 6, y: 6 },
2318
2365
  radius: 5,
2319
- color: r.color,
2320
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(r.shape) ? r.shape : "circle"
2321
- }, null, 8, ["color", "shape"]))
2366
+ color: a.color,
2367
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle"
2368
+ }, null, 8, ["color", "shape"])
2322
2369
  ])),
2323
2370
  f("span", {
2324
2371
  style: L(`color:${e.FINAL_CONFIG.chart.legend.color}`)
2325
- }, S(r.name), 5)
2326
- ], 10, Di))), 128))
2327
- ], 4)) : (a(), s("div", Yi, [
2328
- w(i.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
2372
+ }, k(a.name), 5)
2373
+ ], 10, qr))), 128))
2374
+ ], 4)) : (l(), i("div", jr, [
2375
+ S(r.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
2329
2376
  ], 512)),
2330
- i.$slots.source ? (a(), s("div", Xi, [
2331
- w(i.$slots, "source", {}, void 0, !0)
2377
+ r.$slots.source ? (l(), i("div", $r, [
2378
+ S(r.$slots, "source", {}, void 0, !0)
2332
2379
  ], 512)) : c("", !0),
2333
- X(p, {
2380
+ q(z, {
2334
2381
  show: t.mutableConfig.showTooltip && t.isTooltip,
2335
2382
  backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
2336
2383
  color: e.FINAL_CONFIG.chart.tooltip.color,
@@ -2341,20 +2388,20 @@ function Zi(i, l, o, u, t, e) {
2341
2388
  backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
2342
2389
  position: e.FINAL_CONFIG.chart.tooltip.position,
2343
2390
  offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
2344
- parent: i.$refs.chart,
2391
+ parent: r.$refs.chart,
2345
2392
  content: e.tooltipContent,
2346
2393
  isFullscreen: t.isFullscreen,
2347
2394
  isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
2348
2395
  }, {
2349
2396
  "tooltip-before": M(() => [
2350
- w(i.$slots, "tooltip-before", H(B({ ...e.dataTooltipSlot })), void 0, !0)
2397
+ S(r.$slots, "tooltip-before", H(B({ ...e.dataTooltipSlot })), void 0, !0)
2351
2398
  ]),
2352
2399
  "tooltip-after": M(() => [
2353
- w(i.$slots, "tooltip-after", H(B({ ...e.dataTooltipSlot })), void 0, !0)
2400
+ S(r.$slots, "tooltip-after", H(B({ ...e.dataTooltipSlot })), void 0, !0)
2354
2401
  ]),
2355
2402
  _: 3
2356
2403
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2357
- e.isDataset ? (a(), D(z, {
2404
+ e.isDataset ? (l(), D(p, {
2358
2405
  key: 11,
2359
2406
  hideDetails: "",
2360
2407
  config: {
@@ -2374,44 +2421,44 @@ function Zi(i, l, o, u, t, e) {
2374
2421
  f("div", {
2375
2422
  style: L(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2376
2423
  }, [
2377
- f("div", qi, [
2378
- Be(f("input", {
2424
+ f("div", ea, [
2425
+ Ee(f("input", {
2379
2426
  type: "checkbox",
2380
- "onUpdate:modelValue": l[4] || (l[4] = (r) => t.showSparklineTable = r)
2427
+ "onUpdate:modelValue": s[4] || (s[4] = (a) => t.showSparklineTable = a)
2381
2428
  }, null, 512), [
2382
- [Ee, t.showSparklineTable]
2429
+ [Ye, t.showSparklineTable]
2383
2430
  ]),
2384
2431
  f("div", {
2385
- onClick: l[5] || (l[5] = (r) => t.showSparklineTable = !t.showSparklineTable),
2432
+ onClick: s[5] || (s[5] = (a) => t.showSparklineTable = !t.showSparklineTable),
2386
2433
  style: { cursor: "pointer" }
2387
2434
  }, [
2388
- X(O, {
2435
+ q(O, {
2389
2436
  name: "chartLine",
2390
2437
  size: 20,
2391
2438
  stroke: e.FINAL_CONFIG.chart.color
2392
2439
  }, null, 8, ["stroke"])
2393
2440
  ])
2394
2441
  ]),
2395
- t.showSparklineTable ? (a(), D(_, {
2442
+ t.showSparklineTable ? (l(), D(_, {
2396
2443
  key: `sparkline_${t.segregateStep}`,
2397
2444
  dataset: e.tableSparklineDataset,
2398
2445
  config: e.tableSparklineConfig
2399
- }, null, 8, ["dataset", "config"])) : (a(), D(C, {
2446
+ }, null, 8, ["dataset", "config"])) : (l(), D(C, {
2400
2447
  key: `table_${t.tableStep}`,
2401
2448
  colNames: e.dataTable.colNames,
2402
2449
  head: e.dataTable.head,
2403
2450
  body: e.dataTable.body,
2404
2451
  config: e.dataTable.config,
2405
2452
  title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
2406
- onClose: l[6] || (l[6] = (r) => t.mutableConfig.showTable = !1)
2453
+ onClose: s[6] || (s[6] = (a) => t.mutableConfig.showTable = !1)
2407
2454
  }, {
2408
- th: M(({ th: r }) => [
2409
- f("div", { innerHTML: r }, null, 8, Ui)
2455
+ th: M(({ th: a }) => [
2456
+ f("div", { innerHTML: a }, null, 8, ta)
2410
2457
  ]),
2411
- td: M(({ td: r }) => [
2412
- We(S(isNaN(Number(r)) ? r : e.dataLabel({
2458
+ td: M(({ td: a }) => [
2459
+ qe(k(isNaN(Number(a)) ? a : e.dataLabel({
2413
2460
  p: e.FINAL_CONFIG.chart.labels.prefix,
2414
- v: r,
2461
+ v: a,
2415
2462
  s: e.FINAL_CONFIG.chart.labels.suffix,
2416
2463
  r: e.FINAL_CONFIG.table.rounding
2417
2464
  })), 1)
@@ -2422,9 +2469,9 @@ function Zi(i, l, o, u, t, e) {
2422
2469
  ]),
2423
2470
  _: 1
2424
2471
  }, 8, ["config"])) : c("", !0)
2425
- ], 46, Ue);
2472
+ ], 46, Je);
2426
2473
  }
2427
- const dr = /* @__PURE__ */ Ye(qe, [["render", Zi], ["__scopeId", "data-v-03fbeffe"]]);
2474
+ const ba = /* @__PURE__ */ Xe(Ze, [["render", ra], ["__scopeId", "data-v-a2f682ad"]]);
2428
2475
  export {
2429
- dr as default
2476
+ ba as default
2430
2477
  };