vue-data-ui 2.6.23 → 2.6.25-beta.0

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 (160) hide show
  1. package/dist/{Arrow-DJiG3r33.js → Arrow-BAdaNFbq.js} +1 -1
  2. package/dist/{Arrow-D2_aIcM2.cjs → Arrow-CzMwGfcd.cjs} +1 -1
  3. package/dist/{BaseIcon-PVERbTHZ.js → BaseIcon-BjAKZREF.js} +1 -1
  4. package/dist/{BaseIcon-DIB9Wlvp.cjs → BaseIcon-Cu4z5qOb.cjs} +1 -1
  5. package/dist/{DataTable-Rgwt5jLm.js → DataTable-BF8jSYP_.js} +2 -2
  6. package/dist/{DataTable-DaVBEH1O.cjs → DataTable-C6qGpwbf.cjs} +1 -1
  7. package/dist/{Legend-DhgOMgdq.cjs → Legend-BGzf2ymO.cjs} +1 -1
  8. package/dist/{Legend-V8N3VATg.js → Legend-BLgxdJG6.js} +2 -2
  9. package/dist/{PackageVersion-DS-HtU0C.cjs → PackageVersion-BOKy76ww.cjs} +1 -1
  10. package/dist/{PackageVersion-iMtoLiV5.js → PackageVersion-BiK7Dx4X.js} +1 -1
  11. package/dist/{PenAndPaper-SlsCQe6h.js → PenAndPaper-BzFJd7bn.js} +3 -3
  12. package/dist/{PenAndPaper-DoCqfQwX.cjs → PenAndPaper-pnjIQe7c.cjs} +1 -1
  13. package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-J88AdoNs.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DMur-P6k.js} +3 -3
  14. package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DOiZB6lf.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-gRKMNGtJ.cjs} +1 -1
  15. package/dist/{Shape-BdDFKbBn.cjs → Shape-Dj0Gxs21.cjs} +1 -1
  16. package/dist/{Shape-f9GRGy-D.js → Shape-hvBooorF.js} +1 -1
  17. package/dist/{Slicer-BXvYiDjH.js → Slicer-DnFM9Cfy.js} +2 -2
  18. package/dist/{Slicer-COW0ywTC.cjs → Slicer-DofurhNU.cjs} +1 -1
  19. package/dist/{Title-Cp_BaOUM.js → Title-DA-ToubT.js} +1 -1
  20. package/dist/{Title-DcAqbRBW.cjs → Title-s0c2mmwp.cjs} +1 -1
  21. package/dist/{Tooltip-Cu7aaMHU.js → Tooltip-DbjT4bdy.js} +1 -1
  22. package/dist/{Tooltip-BmxVr2nR.cjs → Tooltip-RjlHJ2b1.cjs} +1 -1
  23. package/dist/index-C4henJeh.cjs +9 -0
  24. package/dist/{index-CORoDQCP.js → index-DaOY9hvr.js} +4 -2
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +1 -0
  27. package/dist/types/vue-data-ui.d.ts +1 -0
  28. package/dist/{useNestedProp-B7NKqijt.cjs → useNestedProp-CGTM8Oru.cjs} +1 -1
  29. package/dist/{useNestedProp-BP2kns_4.js → useNestedProp-Da76X-ip.js} +1 -1
  30. package/dist/{usePrinter-fs3l3gnB.cjs → usePrinter-DY4mJksH.cjs} +1 -1
  31. package/dist/{usePrinter-B4-qiZp3.js → usePrinter-DqRlipuX.js} +1 -1
  32. package/dist/{vue-data-ui-CiIQJgvu.cjs → vue-data-ui-BFmU6tG3.cjs} +1 -1
  33. package/dist/{vue-data-ui-BgpNWNqc.js → vue-data-ui-xyzhGgcQ.js} +61 -61
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-Sxl3Zs19.js → vue-ui-3d-bar-D4IrdXXf.js} +9 -9
  37. package/dist/{vue-ui-3d-bar-DmsqEue_.cjs → vue-ui-3d-bar-X3q87U-i.cjs} +1 -1
  38. package/dist/{vue-ui-accordion-BnQrFX7-.js → vue-ui-accordion-B7y_o2CM.js} +3 -3
  39. package/dist/{vue-ui-accordion-CiPtE4C5.cjs → vue-ui-accordion-CrXKs3m4.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-DhFVwfnk.cjs → vue-ui-age-pyramid-BfRVvOi1.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-BMLSHqix.js → vue-ui-age-pyramid-i5VFxDrm.js} +10 -10
  42. package/dist/{vue-ui-annotator-D8CD5njW.cjs → vue-ui-annotator-BYW-3d9f.cjs} +1 -1
  43. package/dist/{vue-ui-annotator-BOQOfVRi.js → vue-ui-annotator-Ow6aEzah.js} +1 -1
  44. package/dist/{vue-ui-bullet-CFhLYNX0.js → vue-ui-bullet-D0OIGi2Z.js} +8 -8
  45. package/dist/{vue-ui-bullet-CuhFNGas.cjs → vue-ui-bullet-DUtNFOCK.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-Drw87cBU.cjs → vue-ui-candlestick-BErFxfEm.cjs} +1 -1
  47. package/dist/{vue-ui-candlestick-Ca3RyIlE.js → vue-ui-candlestick-CxwsOOSE.js} +11 -11
  48. package/dist/{vue-ui-carousel-table-ZPxDGxHL.cjs → vue-ui-carousel-table-8wGKm7CY.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-CzWQO7o8.js → vue-ui-carousel-table-XorN21Ch.js} +4 -4
  50. package/dist/{vue-ui-chestnut-BmAhPQAV.cjs → vue-ui-chestnut-8NpsXoBH.cjs} +1 -1
  51. package/dist/{vue-ui-chestnut-CHq2YDla.js → vue-ui-chestnut-BRmiS0S-.js} +8 -8
  52. package/dist/vue-ui-circle-pack-8LEyD6Nr.cjs +1 -0
  53. package/dist/{vue-ui-circle-pack-DRa-twBC.js → vue-ui-circle-pack-B3-z6LYc.js} +226 -225
  54. package/dist/{vue-ui-cursor-CV1yQWQq.cjs → vue-ui-cursor-CQuKoDoK.cjs} +1 -1
  55. package/dist/{vue-ui-cursor-B6otBk5O.js → vue-ui-cursor-wFwVQ7wO.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BxzUDFYN.js → vue-ui-dashboard-Swa-B0GO.js} +2 -2
  57. package/dist/{vue-ui-dashboard-ChUs9hjn.cjs → vue-ui-dashboard-iC3BO8_R.cjs} +1 -1
  58. package/dist/{vue-ui-digits-D6J-zOTg.js → vue-ui-digits-BcJ6kR0E.js} +2 -2
  59. package/dist/{vue-ui-digits-CSBA8-rP.cjs → vue-ui-digits-Wpeo7w9-.cjs} +1 -1
  60. package/dist/{vue-ui-donut-BzqHaS9U.cjs → vue-ui-donut-BGBQUMp8.cjs} +1 -1
  61. package/dist/{vue-ui-donut-CavmyRb9.js → vue-ui-donut-BP7R_ZP-.js} +12 -12
  62. package/dist/{vue-ui-donut-evolution-Bs9eaisH.js → vue-ui-donut-evolution-BCMTspbT.js} +11 -11
  63. package/dist/{vue-ui-donut-evolution-OnJlabzf.cjs → vue-ui-donut-evolution-D7XGDW1c.cjs} +1 -1
  64. package/dist/{vue-ui-dumbbell-BJHDVx_f.js → vue-ui-dumbbell-7CQcJFse.js} +10 -10
  65. package/dist/{vue-ui-dumbbell-H_D431z2.cjs → vue-ui-dumbbell-DsAMwcR6.cjs} +1 -1
  66. package/dist/{vue-ui-flow-CJyZd1H6.js → vue-ui-flow-CriQxeRX.js} +9 -9
  67. package/dist/{vue-ui-flow-BygsUZtu.cjs → vue-ui-flow-DxOk8uv2.cjs} +1 -1
  68. package/dist/{vue-ui-funnel-0Q_LpBDZ.cjs → vue-ui-funnel-CKENGLYA.cjs} +1 -1
  69. package/dist/{vue-ui-funnel-gTjgs4j9.js → vue-ui-funnel-GSxIBL8c.js} +9 -9
  70. package/dist/{vue-ui-galaxy-CjzJzzjR.cjs → vue-ui-galaxy-C-xr7W2K.cjs} +1 -1
  71. package/dist/{vue-ui-galaxy-5g43syZ_.js → vue-ui-galaxy-C6WdAXYd.js} +11 -11
  72. package/dist/{vue-ui-gauge-77KuagM8.cjs → vue-ui-gauge-CtBDEvOn.cjs} +1 -1
  73. package/dist/{vue-ui-gauge-Khz7Rc8p.js → vue-ui-gauge-fLXqVC92.js} +7 -7
  74. package/dist/{vue-ui-gizmo-BkzXwNSA.js → vue-ui-gizmo-BAZr0T6W.js} +3 -3
  75. package/dist/{vue-ui-gizmo-BNCE1QC7.cjs → vue-ui-gizmo-CKrFFnkE.cjs} +1 -1
  76. package/dist/{vue-ui-heatmap-DrQmm7ns.js → vue-ui-heatmap-B9i_h3GX.js} +10 -10
  77. package/dist/{vue-ui-heatmap-CtYEgexU.cjs → vue-ui-heatmap-BpuwcIj9.cjs} +1 -1
  78. package/dist/{vue-ui-history-plot-DtAHeCIn.js → vue-ui-history-plot-Caf88NC4.js} +11 -11
  79. package/dist/{vue-ui-history-plot-DBxkk8uU.cjs → vue-ui-history-plot-D1mCPSYG.cjs} +1 -1
  80. package/dist/{vue-ui-kpi-wCJKise3.js → vue-ui-kpi-BonTwa6f.js} +3 -3
  81. package/dist/{vue-ui-kpi-BJf_RiaZ.cjs → vue-ui-kpi-DJY8Tg3f.cjs} +1 -1
  82. package/dist/{vue-ui-mini-loader-DTdkdhel.js → vue-ui-mini-loader-B8OKo7ZA.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-QjTF0M7X.cjs → vue-ui-mini-loader-B_E1Cuc-.cjs} +1 -1
  84. package/dist/{vue-ui-molecule-CMzB-8rG.cjs → vue-ui-molecule-CMGevEyN.cjs} +1 -1
  85. package/dist/{vue-ui-molecule-BmpVr_gK.js → vue-ui-molecule-FDomYPWP.js} +10 -10
  86. package/dist/{vue-ui-mood-radar-xFIV8rX7.js → vue-ui-mood-radar-D_m1qTwO.js} +11 -11
  87. package/dist/{vue-ui-mood-radar-CcPYNvdi.cjs → vue-ui-mood-radar-Daq1TyK6.cjs} +1 -1
  88. package/dist/{vue-ui-nested-donuts-CX4ADWaJ.cjs → vue-ui-nested-donuts-BmGO3Hiu.cjs} +1 -1
  89. package/dist/{vue-ui-nested-donuts-CSf69O8o.js → vue-ui-nested-donuts-DG4e_aD6.js} +11 -11
  90. package/dist/{vue-ui-onion-D4BQdTiM.js → vue-ui-onion-B6UwKh_z.js} +11 -11
  91. package/dist/{vue-ui-onion-DuMvm2D7.cjs → vue-ui-onion-BQRZh5CJ.cjs} +1 -1
  92. package/dist/{vue-ui-parallel-coordinate-plot-Dc6N5YHX.js → vue-ui-parallel-coordinate-plot-DPNWS-Kx.js} +12 -12
  93. package/dist/{vue-ui-parallel-coordinate-plot-BbLVVerv.cjs → vue-ui-parallel-coordinate-plot-DzBrYLYe.cjs} +1 -1
  94. package/dist/{vue-ui-quadrant-CPHUxz0i.js → vue-ui-quadrant-6450wz3p.js} +12 -12
  95. package/dist/{vue-ui-quadrant-B4iH_goy.cjs → vue-ui-quadrant-B7ta4fwr.cjs} +1 -1
  96. package/dist/{vue-ui-quick-chart-BdRCSnMP.cjs → vue-ui-quick-chart-CVXqMfjH.cjs} +1 -1
  97. package/dist/{vue-ui-quick-chart-x1bjHLL_.js → vue-ui-quick-chart-DTDw76x0.js} +9 -9
  98. package/dist/{vue-ui-radar-BJW8f9Ha.cjs → vue-ui-radar-C4UnVmaY.cjs} +1 -1
  99. package/dist/{vue-ui-radar-BLhC82mY.js → vue-ui-radar-HkWzUvd7.js} +12 -12
  100. package/dist/{vue-ui-rating-DnyFmWGj.cjs → vue-ui-rating-Bs_fFQ9I.cjs} +1 -1
  101. package/dist/{vue-ui-rating-nsK29Mwb.js → vue-ui-rating-C_dS-umr.js} +2 -2
  102. package/dist/{vue-ui-relation-circle-B8k_TzBX.cjs → vue-ui-relation-circle-DGclgLW5.cjs} +1 -1
  103. package/dist/{vue-ui-relation-circle-Blb-GooX.js → vue-ui-relation-circle-DqaEq0eC.js} +7 -7
  104. package/dist/{vue-ui-rings-ClHVJNrR.js → vue-ui-rings-ByNGHdb6.js} +12 -12
  105. package/dist/{vue-ui-rings-k9gIeUIA.cjs → vue-ui-rings-xCvw5Cuh.cjs} +1 -1
  106. package/dist/{vue-ui-scatter-B0kbnm8B.js → vue-ui-scatter-CXelVAG1.js} +12 -12
  107. package/dist/{vue-ui-scatter-1i_9Zs70.cjs → vue-ui-scatter-EBnKFgVT.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot-rdceQU35.cjs → vue-ui-screenshot-CGHnCmFe.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-BucDcruu.js → vue-ui-screenshot-DxyZ1_Qu.js} +1 -1
  110. package/dist/{vue-ui-skeleton-CrROSIXs.js → vue-ui-skeleton-D0_Nq8rw.js} +3 -3
  111. package/dist/{vue-ui-skeleton-DOrpie3d.cjs → vue-ui-skeleton-DnYFlPGP.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-B0S7szh0.js → vue-ui-smiley-CL6lLgRB.js} +2 -2
  113. package/dist/{vue-ui-smiley-CeVvVZJJ.cjs → vue-ui-smiley-CWnwVCjt.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-DSKhap1U.cjs → vue-ui-spark-trend-BxgpidJH.cjs} +1 -1
  115. package/dist/{vue-ui-spark-trend-BC1zG3z1.js → vue-ui-spark-trend-DAfgfIAx.js} +5 -5
  116. package/dist/{vue-ui-sparkbar-CXQ8rWwv.cjs → vue-ui-sparkbar-CQMZlD5-.cjs} +1 -1
  117. package/dist/{vue-ui-sparkbar-DK5zyF2q.js → vue-ui-sparkbar-CoF99eY4.js} +4 -4
  118. package/dist/{vue-ui-sparkgauge-DoxNseQu.cjs → vue-ui-sparkgauge-BKn7G_F2.cjs} +1 -1
  119. package/dist/{vue-ui-sparkgauge-CLF23Z6B.js → vue-ui-sparkgauge-Djgo61MY.js} +4 -4
  120. package/dist/{vue-ui-sparkhistogram-CeNlChEK.cjs → vue-ui-sparkhistogram-CMpv-YE_.cjs} +1 -1
  121. package/dist/{vue-ui-sparkhistogram-DFx2PdMT.js → vue-ui-sparkhistogram-DwtdhU0n.js} +5 -5
  122. package/dist/{vue-ui-sparkline-hDosQh2z.js → vue-ui-sparkline-TOSulCCN.js} +4 -4
  123. package/dist/{vue-ui-sparkline-CgdJGWkW.cjs → vue-ui-sparkline-nhiakSCd.cjs} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-CiQRicBj.js → vue-ui-sparkstackbar-Cmv3gmY6.js} +5 -5
  125. package/dist/{vue-ui-sparkstackbar-Bx_O0E2Q.cjs → vue-ui-sparkstackbar-D56R_hUb.cjs} +1 -1
  126. package/dist/{vue-ui-stackbar-BpCvkxTQ.js → vue-ui-stackbar-C23mIVOe.js} +13 -13
  127. package/dist/{vue-ui-stackbar-DFrui-nK.cjs → vue-ui-stackbar-zmoPYCIE.cjs} +1 -1
  128. package/dist/{vue-ui-strip-plot-BaLGfp02.js → vue-ui-strip-plot-9Uqrdluj.js} +11 -11
  129. package/dist/{vue-ui-strip-plot-CJvbeG6e.cjs → vue-ui-strip-plot-DXnRHpgS.cjs} +1 -1
  130. package/dist/{vue-ui-table-sunBd8sR.js → vue-ui-table-D-xFxXFb.js} +1 -1
  131. package/dist/{vue-ui-table-DQ_t1xTE.cjs → vue-ui-table-ZB4Hj-hY.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-Czx9ATpO.js → vue-ui-table-heatmap-BsRoJIAj.js} +4 -4
  133. package/dist/{vue-ui-table-heatmap-CZZDVnzr.cjs → vue-ui-table-heatmap-yBomM0G3.cjs} +1 -1
  134. package/dist/{vue-ui-table-sparkline-CftOKg9N.cjs → vue-ui-table-sparkline-Bspr5ZGR.cjs} +1 -1
  135. package/dist/{vue-ui-table-sparkline-B73dlAI6.js → vue-ui-table-sparkline-UyU28o32.js} +5 -5
  136. package/dist/{vue-ui-thermometer-BVkI8vlH.cjs → vue-ui-thermometer-CVniQ8Di.cjs} +1 -1
  137. package/dist/{vue-ui-thermometer-CLRznn3m.js → vue-ui-thermometer-DHyiBKMW.js} +7 -7
  138. package/dist/{vue-ui-timer-BuamplsS.cjs → vue-ui-timer-DDQWQuni.cjs} +1 -1
  139. package/dist/{vue-ui-timer-Beaj2sv_.js → vue-ui-timer-gmLKyvkR.js} +5 -5
  140. package/dist/{vue-ui-tiremarks-kw2cLJwr.cjs → vue-ui-tiremarks-DJnlqFXj.cjs} +1 -1
  141. package/dist/{vue-ui-tiremarks-Dda1Ogkj.js → vue-ui-tiremarks-DULECN3d.js} +7 -7
  142. package/dist/{vue-ui-treemap-qMgWCw7y.js → vue-ui-treemap-DUNc03Ga.js} +11 -11
  143. package/dist/{vue-ui-treemap-9i7zH6_D.cjs → vue-ui-treemap-etxY64vX.cjs} +1 -1
  144. package/dist/{vue-ui-vertical-bar-D6VWdpxb.cjs → vue-ui-vertical-bar-5KD70L1d.cjs} +1 -1
  145. package/dist/{vue-ui-vertical-bar-Dau3LmOt.js → vue-ui-vertical-bar-BShiKr6x.js} +12 -12
  146. package/dist/{vue-ui-waffle-CSQBfdSt.js → vue-ui-waffle-BzVQCIV9.js} +12 -12
  147. package/dist/{vue-ui-waffle-DEyKQoF1.cjs → vue-ui-waffle-CNEUcnEt.cjs} +1 -1
  148. package/dist/{vue-ui-wheel-xExPUamV.cjs → vue-ui-wheel-C5ORN9_D.cjs} +1 -1
  149. package/dist/{vue-ui-wheel-Cq7qBq00.js → vue-ui-wheel-D666N4kG.js} +7 -7
  150. package/dist/{vue-ui-word-cloud-B_ZFfVkQ.cjs → vue-ui-word-cloud-1_4jnaS0.cjs} +1 -1
  151. package/dist/{vue-ui-word-cloud-CzQIP7Ov.js → vue-ui-word-cloud-B-07eCCw.js} +10 -10
  152. package/dist/vue-ui-xy-BrB21eQl.js +2541 -0
  153. package/dist/vue-ui-xy-IPgVOfxQ.cjs +3 -0
  154. package/dist/{vue-ui-xy-canvas-C-1Z6nVa.js → vue-ui-xy-canvas-B90sYL2l.js} +12 -12
  155. package/dist/{vue-ui-xy-canvas-C1FLTlGQ.cjs → vue-ui-xy-canvas-Db8HfLcv.cjs} +1 -1
  156. package/package.json +2 -2
  157. package/dist/index-ClAuXrnE.cjs +0 -9
  158. package/dist/vue-ui-circle-pack-CUS8c5qb.cjs +0 -1
  159. package/dist/vue-ui-xy-BKvIGkT4.js +0 -2512
  160. package/dist/vue-ui-xy-BVbXEFgP.cjs +0 -3
@@ -1,2512 +0,0 @@
1
- import { P as D, W as q, A as j, F as $, w as ee, s as te, o as re, _ as ie, a6 as ae, x as le, C as se, y as ne, a4 as he, e as oe, r as ce, f as X, a7 as de, R as ue, S as ge, q as fe, b as Ie, z as me, d as Ne, a8 as xe, v as be, a9 as Fe, a2 as _e, aa as Ae, i as ye, G as Ce, L as Le, u as Se, c as K, p as ke, B as we, a as Oe, t as Ge } from "./index-CORoDQCP.js";
2
- import { D as ve } from "./DataTable-Rgwt5jLm.js";
3
- import { _ as ze } from "./Title-Cp_BaOUM.js";
4
- import { u as Me, _ as pe } from "./Tooltip-Cu7aaMHU.js";
5
- import { U as Te } from "./usePrinter-B4-qiZp3.js";
6
- import { _ as Pe } from "./Shape-f9GRGy-D.js";
7
- import Ve from "./BaseIcon-PVERbTHZ.js";
8
- import Re from "./vue-ui-table-sparkline-B73dlAI6.js";
9
- import De from "./vue-ui-skeleton-CrROSIXs.js";
10
- import { S as He } from "./Slicer-BXvYiDjH.js";
11
- import Be from "./vue-ui-accordion-BnQrFX7-.js";
12
- import { u as U } from "./useNestedProp-BP2kns_4.js";
13
- import { _ as We } from "./PackageVersion-iMtoLiV5.js";
14
- import { P as Ee } from "./PenAndPaper-SlsCQe6h.js";
15
- import { resolveComponent as R, createElementBlock as s, openBlock as a, normalizeStyle as w, normalizeClass as B, createBlock as H, createCommentVNode as c, createVNode as Y, createSlots as Ye, withCtx as P, renderSlot as L, normalizeProps as W, guardReactiveProps as E, createElementVNode as u, createTextVNode as Z, Fragment as g, renderList as m, toDisplayString as k, mergeProps as J, withDirectives as qe, vModelCheckbox as Xe } from "vue";
16
- import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Ze = K(), Je = {
18
- name: "vue-ui-xy",
19
- props: {
20
- config: {
21
- type: Object,
22
- default() {
23
- return {};
24
- }
25
- },
26
- dataset: {
27
- type: Array,
28
- default() {
29
- return [];
30
- }
31
- }
32
- },
33
- components: {
34
- DataTable: ve,
35
- Shape: Pe,
36
- Title: ze,
37
- Tooltip: pe,
38
- UserOptions: Te,
39
- BaseIcon: Ve,
40
- TableSparkline: Re,
41
- Skeleton: De,
42
- Slicer: He,
43
- Accordion: Be,
44
- PackageVersion: We,
45
- PenAndPaper: Ee
46
- },
47
- data() {
48
- this.dataset.forEach((d, t) => {
49
- [null, void 0].includes(d.series) && this.error({
50
- componentName: "VueUiXy",
51
- type: "datasetSerieAttribute",
52
- property: "series (number[])",
53
- index: t
54
- });
55
- });
56
- const r = this.config.downsample && this.config.downsample.threshold ? this.config.downsample.threshold : 500, l = Math.max(...this.dataset.map((d) => this.largestTriangleThreeBucketsArray({ data: d.series, threshold: r }).length)), o = {
57
- start: 0,
58
- end: l
59
- };
60
- return {
61
- themePalettes: Ge,
62
- themes: Oe,
63
- slicerStep: 0,
64
- selectedScale: null,
65
- CTX: null,
66
- CANVAS: null,
67
- opacity: we,
68
- useSafeValues: !0,
69
- palette: ke,
70
- height: 600,
71
- width: 1e3,
72
- viewBox: "0 0 1000 600",
73
- clientPosition: {
74
- x: 0,
75
- y: 0
76
- },
77
- canvasClientPosition: {
78
- x: 0,
79
- y: 0
80
- },
81
- icons: {
82
- line: "line",
83
- bar: "bar",
84
- plot: "plot"
85
- },
86
- isAnnotator: !1,
87
- isFullscreen: !1,
88
- isPrinting: !1,
89
- isImaging: !1,
90
- isTooltip: !1,
91
- mutableConfig: {
92
- dataLabels: {
93
- show: !0
94
- },
95
- showTooltip: !0,
96
- showTable: !1,
97
- isStacked: !1,
98
- useIndividualScale: !1
99
- },
100
- selectedSerieIndex: null,
101
- selectedRowIndex: null,
102
- segregatedSeries: [],
103
- uniqueId: K(),
104
- step: 0,
105
- tableStep: 0,
106
- titleStep: 0,
107
- slicer: o,
108
- __to__: null,
109
- maxX: l,
110
- showSparklineTable: !0,
111
- segregateStep: 0,
112
- sliderId: Ze,
113
- fontSizes: {
114
- xAxis: 18,
115
- yAxis: 12,
116
- dataLabels: 20,
117
- plotLabels: 10
118
- },
119
- plotRadii: {
120
- plot: 3,
121
- line: 3
122
- },
123
- selectedMinimapIndex: null,
124
- showUserOptionsOnChartHover: !1,
125
- keepUserOptionState: !0,
126
- userOptionsVisible: !0,
127
- svgRef: null
128
- };
129
- },
130
- watch: {
131
- dataset: {
132
- handler(r, l) {
133
- this.maxX = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({
134
- data: o.series,
135
- threshold: this.FINAL_CONFIG.downsample.threshold
136
- }).length)), this.slicer = {
137
- start: 0,
138
- end: this.maxX
139
- }, this.slicerStep += 1, this.segregateStep += 1;
140
- },
141
- deep: !0
142
- },
143
- config: {
144
- handler(r, l) {
145
- this.FINAL_CONFIG = this.prepareConfig(), this.prepareChart(), this.titleStep += 1, this.tableStep += 1, this.mutableConfig = {
146
- dataLabels: {
147
- show: !0
148
- },
149
- showTooltip: this.FINAL_CONFIG.chart.tooltip.show === !0,
150
- showTable: this.FINAL_CONFIG.showTable === !0,
151
- isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
152
- useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
153
- };
154
- },
155
- deep: !0
156
- }
157
- },
158
- computed: {
159
- chartAriaLabel() {
160
- const r = this.FINAL_CONFIG.chart.title.text || "Chart visualization", l = this.FINAL_CONFIG.chart.title.subtitle.text || "";
161
- return `${r}. ${l}`;
162
- },
163
- optimize() {
164
- return {
165
- linePlot: this.maxSeries > this.FINAL_CONFIG.line.dot.hideAboveMaxSerieLength
166
- };
167
- },
168
- hasOptionsNoTitle() {
169
- return this.FINAL_CONFIG.chart.userOptions.show && (!this.FINAL_CONFIG.chart.title.show || !this.FINAL_CONFIG.chart.title.text);
170
- },
171
- minimap() {
172
- if (!this.FINAL_CONFIG.chart.zoom.minimap.show) return [];
173
- const r = this.datasetWithIds.filter((t) => !this.segregatedSeries.includes(t.id)), l = Math.max(...r.map((t) => t.series.length)), o = [];
174
- for (let t = 0; t < l; t += 1)
175
- o.push(r.map((e) => e.series[t] || 0).reduce((e, _) => (e || 0) + (_ || 0), 0));
176
- const d = Math.min(...o);
177
- return o.map((t) => t + (d < 0 ? Math.abs(d) : 0));
178
- },
179
- customPalette() {
180
- return this.convertCustomPalette(this.FINAL_CONFIG.customPalette);
181
- },
182
- backgroundColor() {
183
- return this.FINAL_CONFIG.chart.backgroundColor;
184
- },
185
- slicerColor() {
186
- return this.FINAL_CONFIG.chart.zoom.color;
187
- },
188
- allScales() {
189
- const r = this.lineSet.map((t) => ({
190
- name: t.name,
191
- color: t.color,
192
- scale: t.individualScale,
193
- scaleYLabels: t.scaleYLabels,
194
- zero: t.zeroPosition,
195
- max: t.individualMax,
196
- scaleLabel: t.scaleLabel || "",
197
- id: t.id,
198
- yOffset: t.yOffset || 0,
199
- individualHeight: t.individualHeight || this.drawingArea.height,
200
- autoScaleYLabels: t.autoScaleYLabels
201
- })), l = this.barSet.map((t) => ({
202
- name: t.name,
203
- color: t.color,
204
- scale: t.individualScale,
205
- scaleYLabels: t.scaleYLabels,
206
- zero: t.zeroPosition,
207
- max: t.individualMax,
208
- scaleLabel: t.scaleLabel || "",
209
- id: t.id,
210
- yOffset: t.yOffset || 0,
211
- individualHeight: t.individualHeight || this.drawingArea.height
212
- })), o = this.plotSet.map((t) => ({
213
- name: t.name,
214
- color: t.color,
215
- scale: t.individualScale,
216
- scaleYLabels: t.scaleYLabels,
217
- // FIX
218
- zero: t.zeroPosition,
219
- max: t.individualMax,
220
- scaleLabel: t.scaleLabel || "",
221
- id: t.id,
222
- yOffset: t.yOffset || 0,
223
- individualHeight: t.individualHeight || this.drawingArea.height
224
- })), d = [...r, ...l, ...o].flatMap((t) => t).length;
225
- return [...r, ...l, ...o].flatMap((t, e) => ({
226
- id: t.id,
227
- scaleLabel: t.scaleLabel,
228
- name: t.name,
229
- color: t.color,
230
- scale: t.scale,
231
- yOffset: t.yOffset,
232
- individualHeight: t.individualHeight,
233
- x: this.mutableConfig.isStacked ? this.drawingArea.left : this.drawingArea.left / d * (e + 1),
234
- yLabels: t.scaleYLabels || t.scale.ticks.map((_) => ({
235
- y: _ >= 0 ? t.zero - t.individualHeight * (_ / t.max) : t.zero + t.individualHeight * Math.abs(_) / t.max,
236
- value: _
237
- }))
238
- }));
239
- },
240
- isDataset() {
241
- return !!this.dataset && this.dataset.length;
242
- },
243
- chartFont() {
244
- const r = document.getElementById(`vue-ui-xy_${this.uniqueId}`);
245
- return window.getComputedStyle(r, null).getPropertyValue("font-family");
246
- },
247
- FINAL_CONFIG: {
248
- get: function() {
249
- return this.prepareConfig();
250
- },
251
- set: function(r) {
252
- return r;
253
- }
254
- },
255
- hasHighlightArea() {
256
- 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;
257
- },
258
- highlightAreas() {
259
- if (Array.isArray(this.FINAL_CONFIG.chart.highlightArea))
260
- return this.FINAL_CONFIG.chart.highlightArea.map((l) => ({
261
- ...l,
262
- span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1
263
- }));
264
- const r = this.FINAL_CONFIG.chart.highlightArea;
265
- return [{ ...r, span: r.from === r.to ? 1 : r.to < r.from ? 0 : r.to - r.from + 1 }];
266
- },
267
- xPadding() {
268
- return this.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : this.drawingArea.width / this.maxSeries / 2;
269
- },
270
- relativeZero() {
271
- return [null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) ? this.niceScale.min >= 0 ? 0 : Math.abs(this.niceScale.min) : -this.niceScale.min;
272
- },
273
- absoluteMax() {
274
- return this.niceScale.max + this.relativeZero;
275
- },
276
- datasetWithIds() {
277
- return this.useSafeValues ? this.dataset.map((r, l) => ({
278
- ...r,
279
- series: this.largestTriangleThreeBucketsArray({
280
- data: r.series,
281
- threshold: this.FINAL_CONFIG.downsample.threshold
282
- }),
283
- id: `uniqueId_${l}`
284
- })) : this.dataset;
285
- },
286
- safeDataset() {
287
- return this.useSafeValues ? this.dataset.map((r, l) => {
288
- const o = this.largestTriangleThreeBucketsArray({
289
- data: r.series,
290
- threshold: this.FINAL_CONFIG.downsample.threshold
291
- });
292
- return {
293
- ...r,
294
- slotAbsoluteIndex: l,
295
- series: o.map((d) => this.isSafeValue(d) ? d : null).slice(this.slicer.start, this.slicer.end),
296
- color: this.convertColorToHex(r.color ? r.color : this.customPalette[l] ? this.customPalette[l] : this.palette[l]),
297
- id: `uniqueId_${l}`
298
- };
299
- }) : this.dataset;
300
- },
301
- relativeDataset() {
302
- return this.safeDataset.map((r, l) => ({
303
- ...r,
304
- series: r.series.map((o) => o + this.relativeZero),
305
- absoluteValues: r.series
306
- })).filter((r) => !this.segregatedSeries.includes(r.id));
307
- },
308
- tableSparklineDataset() {
309
- return this.relativeDataset.map((r) => {
310
- const l = r.absoluteValues.map((o) => [void 0, null].includes(o) ? 0 : o);
311
- return {
312
- id: r.id,
313
- name: r.name,
314
- color: r.color,
315
- values: this.fillArray(this.maxSeries, l)
316
- };
317
- });
318
- },
319
- tableSparklineConfig() {
320
- return {
321
- responsiveBreakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint,
322
- roundingValues: this.FINAL_CONFIG.table.rounding,
323
- showAverage: !1,
324
- showMedian: !1,
325
- showTotal: !1,
326
- fontFamily: this.FINAL_CONFIG.chart.fontFamily,
327
- prefix: this.FINAL_CONFIG.chart.labels.prefix,
328
- suffix: this.FINAL_CONFIG.chart.labels.suffix,
329
- colNames: JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),
330
- thead: {
331
- backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
332
- color: this.FINAL_CONFIG.table.th.color,
333
- outline: this.FINAL_CONFIG.table.th.outline
334
- },
335
- tbody: {
336
- backgroundColor: this.FINAL_CONFIG.table.td.backgroundColor,
337
- color: this.FINAL_CONFIG.table.td.color,
338
- outline: this.FINAL_CONFIG.table.td.outline
339
- },
340
- userOptions: {
341
- show: !1
342
- }
343
- };
344
- },
345
- absoluteDataset() {
346
- return this.safeDataset.map((r, l) => ({
347
- absoluteIndex: l,
348
- ...r,
349
- series: r.series.map((o) => o + this.relativeZero),
350
- absoluteValues: r.series,
351
- segregate: () => this.segregate(r),
352
- isSegregated: this.segregatedSeries.includes(r.id)
353
- }));
354
- },
355
- barSet() {
356
- return this.activeSeriesWithStackRatios.filter((r) => r.type === "bar").map((r, l) => {
357
- this.checkAutoScaleError(r);
358
- const o = Math.min(...r.absoluteValues.filter((N) => ![null, void 0].includes(N))), d = Math.max(...r.absoluteValues.filter((N) => ![null, void 0].includes(N)));
359
- r.absoluteValues.filter((N) => ![null, void 0].includes(N)).map((N) => (N - o) / (d - o));
360
- const t = {
361
- valueMin: o,
362
- valueMax: d < 0 ? 0 : d
363
- }, e = {
364
- max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
365
- min: r.scaleMin || Math.min(...r.absoluteValues.filter((N) => ![void 0, null].includes(N))) > 0 ? 0 : Math.min(...r.absoluteValues.filter((N) => ![null, void 0].includes(N)))
366
- }, _ = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, b = 1.0000001, I = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * b : e.max, _), A = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * b : t.valueMax, _), O = I.min >= 0 ? 0 : Math.abs(I.min), G = 0, p = I.max + O, v = A.max + Math.abs(G), F = 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, T = this.drawingArea.bottom - F - C * O / p, V = this.drawingArea.bottom - F - C * G / v, i = this.absoluteDataset.filter((N) => N.type === "bar").filter((N) => !this.segregatedSeries.includes(N.id)).length, h = r.series.map((N, M) => {
367
- const x = this.mutableConfig.useIndividualScale ? (r.absoluteValues[M] + O) / p : this.ratioToMax(N), S = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left + this.slot.bar * l + this.slot.bar * M * i - this.barSlot / 2 - l * this.barPeriodGap;
368
- return {
369
- yOffset: this.checkNaN(F),
370
- individualHeight: this.checkNaN(C),
371
- x: this.checkNaN(S),
372
- y: this.drawingArea.bottom - F - C * x,
373
- value: r.absoluteValues[M],
374
- zeroPosition: this.checkNaN(T),
375
- individualMax: this.checkNaN(p),
376
- comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
377
- };
378
- }), n = r.absoluteValues.map((N) => A.min >= 0 ? (N - Math.abs(A.min)) / (A.max - Math.abs(A.min)) : (N + Math.abs(A.min)) / (A.max + Math.abs(A.min))), f = r.series.map((N, M) => {
379
- const x = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * M : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * l + this.slot.bar * M * this.absoluteDataset.filter((S) => S.type === "bar").filter((S) => !this.segregatedSeries.includes(S.id)).length;
380
- return {
381
- yOffset: this.checkNaN(F),
382
- individualHeight: this.checkNaN(C),
383
- x: this.checkNaN(x),
384
- y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(F) - (this.checkNaN(C) * n[M] || 0)),
385
- value: r.absoluteValues[M],
386
- zeroPosition: this.checkNaN(T),
387
- individualMax: this.checkNaN(p),
388
- comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[M] || ""
389
- };
390
- }), y = I.ticks.map((N) => ({
391
- y: N >= 0 ? T - C * (N / p) : T + C * Math.abs(N) / p,
392
- value: N,
393
- prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
394
- suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
395
- datapoint: r
396
- })), z = A.ticks.map((N) => {
397
- const M = (N - A.min) / (A.max - A.min);
398
- return {
399
- y: N >= 0 ? V - C * M : V + C * M,
400
- value: N,
401
- prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
402
- suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
403
- datapoint: r
404
- };
405
- });
406
- return {
407
- ...r,
408
- yOffset: F,
409
- autoScaleYLabels: z,
410
- individualHeight: C,
411
- scaleYLabels: r.autoScaling ? z : y,
412
- individualScale: r.autoScaling ? A : I,
413
- individualMax: r.autoScaling ? v : p,
414
- zeroPosition: r.autoScaling ? V : T,
415
- plots: r.autoScaling ? f : h
416
- };
417
- });
418
- },
419
- activeSeriesLength() {
420
- return this.absoluteDataset.length;
421
- },
422
- activeSeriesWithStackRatios() {
423
- return this.assignStackRatios(this.absoluteDataset.filter((r) => !this.segregatedSeries.includes(r.id)));
424
- },
425
- lineSet() {
426
- return this.activeSeriesWithStackRatios.filter((r) => r.type === "line").map((r) => {
427
- this.checkAutoScaleError(r);
428
- const l = Math.min(...r.absoluteValues.filter((x) => ![void 0, null].includes(x))), o = Math.max(...r.absoluteValues.filter((x) => ![void 0, null].includes(x))) || 1;
429
- r.absoluteValues.filter((x) => ![null, void 0].includes(x)).map((x) => (x - l) / (o - l));
430
- const d = {
431
- valueMin: l,
432
- valueMax: o
433
- }, t = {
434
- max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
435
- min: r.scaleMin || (Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues))
436
- }, e = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(t.min, t.max === t.min ? t.max * _ : t.max, e), I = this.calculateNiceScaleWithExactExtremes(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * _ : d.valueMax, e), A = b.min >= 0 ? 0 : Math.abs(b.min), O = 0, G = b.max + Math.abs(A), p = I.max + Math.abs(O), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - v - F * A / G, T = this.drawingArea.bottom - v - F * O / p, V = r.series.map((x, S) => {
437
- const Q = this.mutableConfig.useIndividualScale ? (r.absoluteValues[S] + Math.abs(A)) / G : this.ratioToMax(x);
438
- return {
439
- x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * S),
440
- y: this.checkNaN(this.drawingArea.bottom - v - F * Q),
441
- value: r.absoluteValues[S],
442
- comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[S] || ""
443
- };
444
- }), i = r.absoluteValues.map((x) => I.min >= 0 ? (x - Math.abs(I.min)) / (I.max - Math.abs(I.min)) : (x + Math.abs(I.min)) / (I.max + Math.abs(I.min))), h = r.series.map((x, S) => [void 0, null].includes(r.absoluteValues[S]) ? {
445
- x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * S),
446
- y: C,
447
- value: r.absoluteValues[S],
448
- comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[S] || ""
449
- } : {
450
- x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * S),
451
- y: this.checkNaN(this.drawingArea.bottom - v - (F * i[S] || 0)),
452
- value: r.absoluteValues[S],
453
- comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[S] || ""
454
- }), n = this.createSmoothPath(V.filter((x) => x.value !== null)), f = this.createSmoothPath(h.filter((x) => x.value !== null)), y = this.createStraightPath(V.filter((x) => x.value !== null)), z = this.createStraightPath(h.filter((x) => x.value !== null)), N = b.ticks.map((x) => ({
455
- y: x >= 0 ? C - F * (x / G) : C + F * Math.abs(x) / G,
456
- value: x,
457
- prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
458
- suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
459
- datapoint: r
460
- })), M = I.ticks.map((x) => {
461
- const S = (x - I.min) / (I.max - I.min);
462
- return {
463
- y: x >= 0 ? T - F * S : T + F * S,
464
- value: x,
465
- prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
466
- suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
467
- datapoint: r
468
- };
469
- });
470
- return {
471
- ...r,
472
- yOffset: v,
473
- autoScaleYLabels: M,
474
- individualHeight: F,
475
- scaleYLabels: r.autoScaling ? M : N,
476
- individualScale: r.autoScaling ? I : b,
477
- individualMax: r.autoScaling ? p : G,
478
- zeroPosition: r.autoScaling ? T : C,
479
- curve: r.autoScaling ? f : n,
480
- plots: r.autoScaling ? h : V,
481
- area: r.useArea ? this.mutableConfig.useIndividualScale ? this.createIndividualArea(r.autoScaling ? h : V, r.autoScaling ? T : C) : this.createArea(V) : "",
482
- straight: r.autoScaling ? z : y
483
- };
484
- });
485
- },
486
- plotSet() {
487
- return this.activeSeriesWithStackRatios.filter((r) => r.type === "plot").map((r) => {
488
- this.checkAutoScaleError(r);
489
- const l = Math.min(...r.absoluteValues.filter((y) => ![null, void 0].includes(y))), o = Math.max(...r.absoluteValues.filter((y) => ![null, void 0].includes(y))) || 1;
490
- r.absoluteValues.filter((y) => ![null, void 0].includes(y)).map((y) => (y - l) / (o - l));
491
- const d = {
492
- valueMin: l,
493
- valueMax: o
494
- }, t = {
495
- max: r.scaleMax || Math.max(...r.absoluteValues) || 1,
496
- min: r.scaleMin || Math.min(...r.absoluteValues) > 0 ? 0 : Math.min(...r.absoluteValues)
497
- }, e = r.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, _ = 1.0000001, b = this.calculateNiceScaleWithExactExtremes(t.min, t.max === t.min ? t.max * _ : t.max, e), I = this.calculateNiceScaleWithExactExtremes(d.valueMin, d.valueMax === d.valueMin ? d.valueMax * _ : d.valueMax, e), A = b.min >= 0 ? 0 : Math.abs(b.min), O = 0, G = b.max + A, p = I.max + Math.abs(O), v = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - r.cumulatedStackRatio) : 0, F = this.mutableConfig.isStacked ? this.drawingArea.height * r.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - v - F * A / G, T = this.drawingArea.bottom - v - F * O / p, V = r.series.map((y, z) => {
498
- const N = this.mutableConfig.useIndividualScale ? (r.absoluteValues[z] + Math.abs(A)) / G : this.ratioToMax(y);
499
- return {
500
- x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * z),
501
- y: this.checkNaN(this.drawingArea.bottom - v - F * N),
502
- value: r.absoluteValues[z],
503
- comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
504
- };
505
- }), i = r.absoluteValues.map((y) => I.min >= 0 ? (y - Math.abs(I.min)) / (I.max - Math.abs(I.min)) : (y + Math.abs(I.min)) / (I.max + Math.abs(I.min))), h = r.series.map((y, z) => ({
506
- x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * z),
507
- y: this.checkNaN(this.drawingArea.bottom - v - (F * i[z] || 0)),
508
- value: r.absoluteValues[z],
509
- comment: r.comments && r.comments.slice(this.slicer.start, this.slicer.end)[z] || ""
510
- })), n = b.ticks.map((y) => ({
511
- y: y >= 0 ? C - F * (y / G) : C + F * Math.abs(y) / G,
512
- value: y,
513
- prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
514
- suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
515
- datapoint: r
516
- })), f = I.ticks.map((y) => {
517
- const z = (y - I.min) / (I.max - I.min);
518
- return {
519
- y: y >= 0 ? T - F * z : T + F * z,
520
- value: y,
521
- prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
522
- suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix,
523
- datapoint: r
524
- };
525
- });
526
- return {
527
- ...r,
528
- yOffset: v,
529
- autoScaleYLabels: f,
530
- individualHeight: F,
531
- scaleYLabels: r.autoScaling ? f : n,
532
- individualScale: r.autoScaling ? I : b,
533
- individualMax: r.autoScaling ? p : G,
534
- zeroPosition: r.autoScaling ? T : C,
535
- plots: r.autoScaling ? h : V
536
- };
537
- });
538
- },
539
- drawingArea() {
540
- const r = 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;
541
- return {
542
- top: this.FINAL_CONFIG.chart.padding.top,
543
- right: this.width - this.FINAL_CONFIG.chart.padding.right,
544
- bottom: this.height - this.FINAL_CONFIG.chart.padding.bottom,
545
- left: this.FINAL_CONFIG.chart.padding.left + r,
546
- height: this.height - (this.FINAL_CONFIG.chart.padding.top + this.FINAL_CONFIG.chart.padding.bottom),
547
- width: this.width - (this.FINAL_CONFIG.chart.padding.right + this.FINAL_CONFIG.chart.padding.left + r)
548
- };
549
- },
550
- max() {
551
- 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)));
552
- },
553
- min() {
554
- if (this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin !== null)
555
- return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;
556
- const r = Math.min(...this.safeDataset.filter((l) => !this.segregatedSeries.includes(l.id)).map((l) => Math.min(...l.series)));
557
- return r > 0 ? 0 : r;
558
- },
559
- niceScale() {
560
- return this.calculateNiceScaleWithExactExtremes(this.min, this.max < 0 ? 0 : this.max, this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps);
561
- },
562
- maxSeries() {
563
- return this.slicer.end - this.slicer.start;
564
- },
565
- timeLabels() {
566
- const r = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length)), l = [];
567
- for (let o = 0; o < r; o += 1)
568
- l.push({
569
- text: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o] || String(o),
570
- absoluteIndex: o
571
- });
572
- return l.slice(this.slicer.start, this.slicer.end);
573
- },
574
- slot() {
575
- return {
576
- bar: this.drawingArea.width / this.maxSeries / this.safeDataset.filter((r) => r.type === "bar").filter((r) => !this.segregatedSeries.includes(r.id)).length,
577
- plot: this.drawingArea.width / this.maxSeries,
578
- line: this.drawingArea.width / this.maxSeries
579
- };
580
- },
581
- barSlot() {
582
- const r = this.safeDataset.filter((l) => l.type === "bar").filter((l) => !this.segregatedSeries.includes(l.id)).length;
583
- return this.drawingArea.width / this.maxSeries / r - this.barPeriodGap * r;
584
- },
585
- barPeriodGap() {
586
- return this.slot.line * this.FINAL_CONFIG.bar.periodGap;
587
- },
588
- maxSlot() {
589
- return Math.max(...Object.values(this.slot).filter((r) => r !== 1 / 0));
590
- },
591
- table() {
592
- if (this.safeDataset.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
593
- const r = this.relativeDataset.map((o) => ({
594
- label: o.name,
595
- color: o.color,
596
- type: o.type
597
- })), l = [];
598
- return this.timeLabels.forEach((o, d) => {
599
- const t = [o.text];
600
- this.relativeDataset.forEach((e) => {
601
- t.push(this.canShowValue(e.absoluteValues[d]) ? Number(e.absoluteValues[d].toFixed(this.FINAL_CONFIG.table.rounding)) : "");
602
- }), l.push(t);
603
- }), { head: r, body: l };
604
- },
605
- dataTable() {
606
- const r = this.FINAL_CONFIG.table.showSum;
607
- let l = [""].concat(this.relativeDataset.map((e) => e.name));
608
- r && (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>'));
609
- let o = [];
610
- for (let e = 0; e < this.maxSeries; e += 1) {
611
- const _ = this.relativeDataset.map((b) => b.absoluteValues[e] ?? 0).reduce((b, I) => b + I, 0);
612
- o.push(
613
- [
614
- this.timeLabels[e].text ?? "-"
615
- ].concat(this.relativeDataset.map(
616
- (b) => this.applyDataLabel(
617
- b.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : b.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
618
- b.absoluteValues[e] ?? 0,
619
- this.dataLabel({
620
- p: b.prefix || this.FINAL_CONFIG.chart.labels.prefix,
621
- v: b.absoluteValues[e] ?? 0,
622
- s: b.suffix || this.FINAL_CONFIG.chart.labels.suffix,
623
- r: this.FINAL_CONFIG.table.rounding
624
- })
625
- )
626
- )).concat(r ? (_ ?? 0).toFixed(this.FINAL_CONFIG.table.rounding) : [])
627
- );
628
- }
629
- const d = {
630
- th: {
631
- backgroundColor: this.FINAL_CONFIG.table.th.backgroundColor,
632
- color: this.FINAL_CONFIG.table.th.color,
633
- outline: this.FINAL_CONFIG.table.th.outline
634
- },
635
- td: {
636
- backgroundColor: this.FINAL_CONFIG.table.td.backgroundColor,
637
- color: this.FINAL_CONFIG.table.td.color,
638
- outline: this.FINAL_CONFIG.table.td.outline
639
- },
640
- breakpoint: this.FINAL_CONFIG.table.responsiveBreakpoint
641
- }, t = [this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map((e) => e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);
642
- return { head: l, body: o, config: d, colNames: t };
643
- },
644
- dataTooltipSlot() {
645
- return {
646
- datapoint: this.selectedSeries,
647
- seriesIndex: this.selectedSerieIndex,
648
- series: this.absoluteDataset,
649
- bars: this.barSet,
650
- lines: this.lineSet,
651
- plots: this.plotSet,
652
- config: this.FINAL_CONFIG
653
- };
654
- },
655
- selectedSeries() {
656
- return this.relativeDataset.map((r) => ({
657
- slotAbsoluteIndex: r.slotAbsoluteIndex,
658
- shape: r.shape || null,
659
- name: r.name,
660
- color: r.color,
661
- type: r.type,
662
- value: r.absoluteValues.find((l, o) => o === this.selectedSerieIndex),
663
- comments: r.comments || [],
664
- prefix: r.prefix || this.FINAL_CONFIG.chart.labels.prefix,
665
- suffix: r.suffix || this.FINAL_CONFIG.chart.labels.suffix
666
- }));
667
- },
668
- tooltipContent() {
669
- let r = "", l = this.selectedSeries.map((t) => t.value).filter((t) => this.isSafeValue(t) && t !== null).reduce((t, e) => Math.abs(t) + Math.abs(e), 0);
670
- const o = this.timeLabels[this.selectedSerieIndex], d = this.FINAL_CONFIG.chart.tooltip.customFormat;
671
- return this.isFunction(d) && this.functionReturnsString(() => d({
672
- seriesIndex: this.selectedSerieIndex,
673
- datapoint: this.selectedSeries,
674
- series: this.absoluteDataset,
675
- bars: this.barSet,
676
- lines: this.lineSet,
677
- plots: this.plotSet,
678
- config: this.FINAL_CONFIG
679
- })) ? d({
680
- seriesIndex: this.selectedSerieIndex,
681
- datapoint: this.selectedSeries,
682
- series: this.absoluteDataset,
683
- bars: this.barSet,
684
- lines: this.lineSet,
685
- plots: this.plotSet,
686
- config: this.FINAL_CONFIG
687
- }) : (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) => {
688
- if (this.isSafeValue(t.value)) {
689
- let e = "", _ = "";
690
- switch (this.icons[t.type]) {
691
- case "bar":
692
- 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>`;
693
- break;
694
- case "line":
695
- !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? _ = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? _ = `<path d="${D({ 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" ? _ = `<path d="${D({ 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" ? _ = `<path d="${D({ 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" ? _ = `<path d="${D({ 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" ? _ = `<path d="${D({ 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" && (_ = `<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}" />${_}</svg>`;
696
- break;
697
- case "plot":
698
- if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
699
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
700
- break;
701
- }
702
- if (t.shape === "star") {
703
- 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>`;
704
- break;
705
- }
706
- if (t.shape === "triangle") {
707
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
708
- break;
709
- }
710
- if (t.shape === "square") {
711
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
712
- break;
713
- }
714
- if (t.shape === "diamond") {
715
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
716
- break;
717
- }
718
- if (t.shape === "pentagon") {
719
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
720
- break;
721
- }
722
- if (t.shape === "hexagon") {
723
- e = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${D({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
724
- break;
725
- }
726
- }
727
- 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(
728
- t.type === "line" ? this.FINAL_CONFIG.line.labels.formatter : t.type === "bar" ? this.FINAL_CONFIG.bar.labels.formatter : this.FINAL_CONFIG.plot.labels.formatter,
729
- t.value,
730
- this.dataLabel({
731
- p: t.prefix,
732
- v: t.value,
733
- s: t.suffix,
734
- r: this.FINAL_CONFIG.chart.tooltip.roundingValue
735
- }),
736
- { datapoint: t }
737
- ) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${X({
738
- v: this.checkNaN(Math.abs(t.value) / l * 100),
739
- s: "%",
740
- r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
741
- })})` : ""}</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>`);
742
- }
743
- }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${r}</div>`);
744
- },
745
- svg() {
746
- return {
747
- height: this.height,
748
- width: this.width
749
- };
750
- },
751
- yLabels() {
752
- return this.niceScale.ticks.map((r) => ({
753
- y: r >= 0 ? this.zero - this.drawingArea.height * this.ratioToMax(r) : this.zero + this.drawingArea.height * this.ratioToMax(Math.abs(r)),
754
- value: r,
755
- prefix: this.FINAL_CONFIG.chart.labels.prefix,
756
- suffix: this.FINAL_CONFIG.chart.labels.suffix
757
- }));
758
- },
759
- zero() {
760
- return this.drawingArea.bottom - this.drawingArea.height * this.ratioToMax(this.relativeZero);
761
- }
762
- },
763
- mounted() {
764
- this.svgRef = this.$refs.svgRef, this.prepareChart(), this.setupSlicer(), document.addEventListener("mousemove", (r) => {
765
- this.clientPosition = {
766
- x: r.clientX,
767
- y: r.clientY
768
- };
769
- });
770
- },
771
- methods: {
772
- abbreviate: Le,
773
- adaptColorToBackground: Ce,
774
- applyDataLabel: ye,
775
- assignStackRatios: Ae,
776
- calcLinearProgression: _e,
777
- calculateNiceScaleWithExactExtremes: Fe,
778
- checkNaN: be,
779
- closestDecimal: xe,
780
- convertColorToHex: Ne,
781
- convertConfigColors: me,
782
- convertCustomPalette: Ie,
783
- createCsvContent: fe,
784
- createSmoothPath: ge,
785
- createStraightPath: ue,
786
- createTSpans: de,
787
- dataLabel: X,
788
- downloadCsv: ce,
789
- error: oe,
790
- forceValidValue: he,
791
- functionReturnsString: ne,
792
- hasDeepProperty: se,
793
- isFunction: le,
794
- isSafeValue: ae,
795
- largestTriangleThreeBucketsArray: ie,
796
- objectIsEmpty: re,
797
- setOpacity: te,
798
- shiftHue: ee,
799
- translateSize: $,
800
- treeShake: j,
801
- useMouse: Me,
802
- useNestedProp: U,
803
- setUserOptionsVisibility(r = !1) {
804
- this.showUserOptionsOnChartHover && (this.userOptionsVisible = r);
805
- },
806
- toggleAnnotator() {
807
- this.isAnnotator = !this.isAnnotator;
808
- },
809
- selectTimeLabel(r, l) {
810
- const o = this.relativeDataset.map((d) => ({
811
- shape: d.shape || null,
812
- name: d.name,
813
- color: d.color,
814
- type: d.type,
815
- value: d.absoluteValues.find((t, e) => e === l),
816
- comments: d.comments || [],
817
- prefix: d.prefix || this.FINAL_CONFIG.chart.labels.prefix,
818
- suffix: d.suffix || this.FINAL_CONFIG.chart.labels.suffix
819
- }));
820
- this.$emit("selectTimeLabel", {
821
- datapoint: o,
822
- absoluteIndex: r.absoluteIndex,
823
- label: r.text
824
- });
825
- },
826
- getHighlightAreaPosition(r) {
827
- const l = 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;
828
- return {
829
- x: l < this.drawingArea.left ? this.drawingArea.left : l,
830
- width: o
831
- };
832
- },
833
- prepareConfig() {
834
- const r = Se().vue_ui_xy;
835
- if (!Object.keys(this.config || {}).length)
836
- return r;
837
- const l = this.useNestedProp({
838
- userConfig: this.config,
839
- defaultConfig: r
840
- });
841
- 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 ? {
842
- ...U({
843
- userConfig: this.themes.vue_ui_xy[l.theme] || this.config,
844
- defaultConfig: l
845
- }),
846
- customPalette: this.themePalettes[l.theme] || this.palette
847
- } : l;
848
- },
849
- prepareChart() {
850
- if (this.objectIsEmpty(this.dataset) ? this.error({
851
- componentName: "VueUiXy",
852
- type: "dataset"
853
- }) : this.dataset.forEach((r, l) => {
854
- [null, void 0].includes(r.name) && this.error({
855
- componentName: "VueUiXy",
856
- type: "datasetSerieAttribute",
857
- property: "name (string)",
858
- index: l
859
- });
860
- }), this.FINAL_CONFIG.showWarnings && this.dataset.forEach((r) => {
861
- r.series.forEach((l, o) => {
862
- this.isSafeValue(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
863
- -----> The serie '${r.name}' contains the value '${l}' at index ${o}.
864
- '${l}' was converted to null to allow the chart to display.`);
865
- });
866
- }), 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 = {
867
- dataLabels: {
868
- show: !0
869
- },
870
- showTooltip: this.FINAL_CONFIG.chart.tooltip.show === !0,
871
- showTable: this.FINAL_CONFIG.showTable === !0,
872
- isStacked: this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,
873
- useIndividualScale: this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale
874
- }, this.FINAL_CONFIG.responsive) {
875
- const l = this.$refs.chart.parentNode, { height: o, width: d } = l.getBoundingClientRect();
876
- let t = null, e = 0;
877
- this.FINAL_CONFIG.chart.title.show && (t = this.$refs.chartTitle, e = t.getBoundingClientRect().height);
878
- let _ = null, b = 0;
879
- this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (_ = this.$refs.chartSlicer.$el, b = _.getBoundingClientRect().height);
880
- let I = null, A = 0;
881
- this.FINAL_CONFIG.chart.legend.show && (I = this.$refs.chartLegend, A = I.getBoundingClientRect().height);
882
- let O = 0;
883
- this.$refs.source && (O = this.$refs.source.getBoundingClientRect().height);
884
- let G = 0;
885
- this.$refs.noTitle && (G = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - A - b - O - G, this.width = d, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((v) => {
886
- for (const F of v)
887
- this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (b = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (A = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (O = this.$refs.source.getBoundingClientRect().height), requestAnimationFrame(() => {
888
- this.height = F.contentBoxSize[0].blockSize - e - A - b - O - 24, this.width = F.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
889
- });
890
- }).observe(l);
891
- } else
892
- 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;
893
- },
894
- selectMinimapIndex(r) {
895
- this.selectedMinimapIndex = r;
896
- },
897
- convertSizes() {
898
- this.fontSizes.dataLabels = this.translateSize({
899
- relator: this.height,
900
- adjuster: 400,
901
- source: this.FINAL_CONFIG.chart.grid.labels.fontSize,
902
- threshold: 10,
903
- fallback: 10
904
- }), this.fontSizes.yAxis = this.translateSize({
905
- relator: this.width,
906
- adjuster: 1e3,
907
- source: this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,
908
- threshold: 10,
909
- fallback: 10
910
- }), this.fontSizes.xAxis = this.translateSize({
911
- relator: this.width,
912
- adjuster: 1e3,
913
- source: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,
914
- threshold: 10,
915
- fallback: 10
916
- }), this.fontSizes.plotLabels = this.translateSize({
917
- relator: this.width,
918
- adjuster: 800,
919
- source: this.FINAL_CONFIG.chart.labels.fontSize,
920
- threshold: 10,
921
- fallback: 10
922
- }), this.plotRadii.plot = this.translateSize({
923
- relator: this.width,
924
- adjuster: 800,
925
- source: this.FINAL_CONFIG.plot.radius,
926
- threshold: 1,
927
- fallback: 1
928
- }), this.plotRadii.line = this.translateSize({
929
- relator: this.width,
930
- adjuster: 800,
931
- source: this.FINAL_CONFIG.line.radius,
932
- threshold: 1,
933
- fallback: 1
934
- });
935
- },
936
- toggleStack() {
937
- this.mutableConfig.isStacked = !this.mutableConfig.isStacked, this.mutableConfig.isStacked ? this.mutableConfig.useIndividualScale = !0 : this.mutableConfig.useIndividualScale = this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale;
938
- },
939
- toggleTable() {
940
- this.mutableConfig.showTable = !this.mutableConfig.showTable;
941
- },
942
- toggleLabels() {
943
- this.mutableConfig.dataLabels.show = !this.mutableConfig.dataLabels.show;
944
- },
945
- toggleTooltip() {
946
- this.mutableConfig.showTooltip = !this.mutableConfig.showTooltip;
947
- },
948
- checkAutoScaleError(r) {
949
- 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`));
950
- },
951
- createArea(r) {
952
- if (!r[0]) return [-10, -10, "", -10, -10];
953
- const l = { x: r[0].x, y: this.zero }, o = { x: r.at(-1).x, y: this.zero }, d = [];
954
- return r.forEach((t) => {
955
- d.push(`${t.x},${t.y} `);
956
- }), [l.x, l.y, ...d, o.x, o.y].toString();
957
- },
958
- createIndividualArea(r, l) {
959
- if (!r[0]) return [-10, -10, "", -10, -10];
960
- const o = { x: r[0] ? r[0].x : Math.min(...r.filter((e) => !!e).map((e) => e.x)), y: l }, d = { x: r.at(-1) ? r.at(-1).x : Math.min(...r.filter((e) => !!e).map((e) => e.x)), y: l }, t = [];
961
- return r.filter((e) => !!e).forEach((e) => {
962
- t.push(`${e.x},${e.y} `);
963
- }), [o.x, o.y, ...t, d.x, d.y].toString();
964
- },
965
- createStar: q,
966
- createPolygonPath: D,
967
- fillArray(r, l) {
968
- let o = Array(r).fill(0);
969
- for (let d = 0; d < l.length && d < r; d += 1)
970
- o[d] = l[d];
971
- return o;
972
- },
973
- async setupSlicer() {
974
- (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 = {
975
- start: 0,
976
- end: Math.max(...this.dataset.map((r) => this.largestTriangleThreeBucketsArray({ data: r.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length))
977
- }, this.slicerStep += 1);
978
- },
979
- refreshSlicer() {
980
- this.setupSlicer();
981
- },
982
- validSlicerEnd(r) {
983
- const l = Math.max(...this.dataset.map((o) => this.largestTriangleThreeBucketsArray({ data: o.series, threshold: this.FINAL_CONFIG.downsample.threshold }).length));
984
- return r > l ? l : 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;
985
- },
986
- calcRectHeight(r) {
987
- const l = ![null, void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin) && this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin > 0 && this.min >= 0 ? this.drawingArea.bottom : this.zero;
988
- return r.value >= 0 ? this.checkNaN(l - r.y <= 0 ? 1e-5 : l - r.y) : this.checkNaN(r.y - this.zero <= 0 ? 1e-5 : r.y - this.zero);
989
- },
990
- calcIndividualHeight(r) {
991
- 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);
992
- },
993
- calcRectWidth() {
994
- return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.slot.line - this.drawingArea.width / this.maxSeries * 0.1 : this.slot.bar;
995
- },
996
- calcRectX(r) {
997
- return this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? r.x + this.drawingArea.width / this.maxSeries * 0.05 : r.x + this.slot.bar / 2;
998
- },
999
- calcRectY(r) {
1000
- return r.value >= 0 ? r.y : this.zero;
1001
- },
1002
- calcIndividualRectY(r) {
1003
- return r.value >= 0 ? r.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(r.zeroPosition) ? 0 : r.zeroPosition;
1004
- },
1005
- canShowValue(r) {
1006
- return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(r);
1007
- },
1008
- findClosestValue(r, l) {
1009
- let o = l[0], d = Math.abs(r - l[0]);
1010
- for (let t = 1; t < l.length; t += 1) {
1011
- const e = Math.abs(r - l[t]);
1012
- e < d && l[t] < r && (o = l[t], d = e);
1013
- }
1014
- return o;
1015
- },
1016
- ratioToMax(r) {
1017
- return r / (this.canShowValue(this.absoluteMax) ? this.absoluteMax : 1);
1018
- },
1019
- selectX(r) {
1020
- this.$emit(
1021
- "selectX",
1022
- {
1023
- dataset: this.relativeDataset.map((l) => ({
1024
- name: l.name,
1025
- value: [null, void 0, NaN].includes(l.absoluteValues[r]) ? null : l.absoluteValues[r],
1026
- color: l.color,
1027
- type: l.type
1028
- })),
1029
- index: r,
1030
- indexLabel: this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]
1031
- }
1032
- );
1033
- },
1034
- getData() {
1035
- return this.absoluteDataset.map((r) => ({
1036
- values: r.absoluteValues,
1037
- color: r.color,
1038
- name: r.name,
1039
- type: r.type
1040
- }));
1041
- },
1042
- segregate(r) {
1043
- if (this.segregatedSeries.includes(r.id))
1044
- this.segregatedSeries = this.segregatedSeries.filter((l) => l !== r.id);
1045
- else {
1046
- if (this.segregatedSeries.length + 1 === this.safeDataset.length) return;
1047
- this.segregatedSeries.push(r.id);
1048
- }
1049
- this.$emit("selectLegend", this.relativeDataset.map((l) => ({
1050
- name: l.name,
1051
- values: l.absoluteValues,
1052
- color: l.color,
1053
- type: l.type
1054
- }))), this.segregateStep += 1;
1055
- },
1056
- toggleTooltipVisibility(r, l = null) {
1057
- this.isTooltip = r, r ? this.selectedSerieIndex = l : this.selectedSerieIndex = null;
1058
- },
1059
- toggleFullscreen(r) {
1060
- this.isFullscreen = r, this.step += 1;
1061
- },
1062
- showSpinnerPdf() {
1063
- this.isPrinting = !0;
1064
- },
1065
- async generatePdf() {
1066
- this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
1067
- try {
1068
- const { default: r } = await import("./pdf-DVWl3Adn.js");
1069
- await r({
1070
- domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1071
- fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy"
1072
- });
1073
- } catch (r) {
1074
- console.error("Error generating PDF:", r);
1075
- } finally {
1076
- this.isPrinting = !1;
1077
- }
1078
- }, 100);
1079
- },
1080
- generateCsv() {
1081
- const r = [[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, d = r.concat([l]).concat(o), t = this.createCsvContent(d);
1082
- this.downloadCsv({ csvContent: t, title: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy" });
1083
- },
1084
- showSpinnerImage() {
1085
- this.isImaging = !0;
1086
- },
1087
- async generateImage() {
1088
- this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
1089
- try {
1090
- const { default: r } = await import("./img-itj0Vdmx.js");
1091
- await r({
1092
- domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
1093
- fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
1094
- format: "png"
1095
- });
1096
- } catch (r) {
1097
- console.error("Error generating image:", r);
1098
- } finally {
1099
- this.isImaging = !1;
1100
- }
1101
- }, 100);
1102
- }
1103
- }
1104
- }, Ke = ["id"], Qe = {
1105
- key: 1,
1106
- ref: "noTitle",
1107
- class: "vue-data-ui-no-title-space",
1108
- style: "height:36px; width: 100%; background:transparent"
1109
- }, je = ["viewBox", "aria-label"], $e = ["x", "y", "width", "height"], et = { key: 1 }, tt = { class: "vue-ui-xy-grid" }, rt = ["stroke", "x1", "x2", "y1", "y2"], it = ["stroke", "x1", "x2", "y1", "y2"], at = { key: 1 }, lt = ["x1", "x2", "y1", "y2", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke"], ht = { key: 3 }, ot = ["x1", "x2", "y1", "y2", "stroke"], ct = ["id"], dt = ["stop-color"], ut = ["stop-color"], gt = ["stop-color"], ft = ["id"], It = ["stop-color"], mt = ["stop-color"], Nt = ["stop-color"], xt = ["id"], bt = ["stop-color"], Ft = ["stop-color"], _t = ["id"], At = ["stop-color"], yt = ["stop-color"], Ct = ["id"], Lt = ["stop-color"], St = ["stop-color"], kt = ["x", "y", "height", "width", "fill"], wt = ["x", "y", "width"], Ot = ["x", "y", "height", "width", "fill"], Gt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], zt = ["width", "x", "y"], Mt = { key: 0 }, pt = ["id"], Tt = ["fill"], Pt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Vt = ["x", "y", "font-size", "fill"], Rt = ["stroke", "x1", "x2", "y1", "y2"], Dt = { key: 2 }, Ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Bt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Wt = { key: 4 }, Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = ["fill", "font-size", "transform"], qt = ["x1", "x2", "y1", "y2", "stroke"], Xt = ["x", "y", "font-size", "fill"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Zt = ["x", "y", "font-size", "fill"], Jt = ["width", "x", "y"], Kt = { style: { width: "100%" } }, Qt = { key: 0 }, jt = ["id"], $t = ["fill"], er = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], tr = ["x", "y", "font-size", "fill"], rr = ["d", "stroke", "stroke-width", "stroke-dasharray"], ir = ["d", "stroke", "stroke-width", "stroke-dasharray"], ar = { key: 5 }, lr = { key: 0 }, sr = ["d", "fill"], nr = ["d", "fill"], hr = ["d", "fill"], or = ["d", "fill"], cr = ["d", "stroke", "stroke-width", "stroke-dasharray"], dr = ["d", "stroke", "stroke-width", "stroke-dasharray"], ur = ["width", "x", "y"], gr = { style: { width: "100%" } }, fr = { key: 3 }, Ir = ["id"], mr = ["fill"], Nr = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], xr = ["x", "y", "font-size", "fill"], br = { key: 6 }, Fr = ["x", "y", "font-size", "fill"], _r = ["x", "y", "font-size", "fill", "font-weight"], Ar = { key: 7 }, yr = ["x", "y", "font-size", "fill"], Cr = ["x", "y"], Lr = ["x", "y"], Sr = { key: 8 }, kr = ["x", "y", "font-size", "fill"], wr = ["x", "y"], Or = ["x", "y"], Gr = ["x", "y", "font-size", "fill", "innerHTML"], vr = ["x", "y", "font-size", "fill", "innerHTML"], zr = ["x", "y", "font-size", "fill", "innerHTML"], Mr = ["x", "y", "font-size", "fill", "innerHTML"], pr = ["id"], Tr = ["stop-color"], Pr = ["stop-color"], Vr = ["x", "y", "width", "height", "fill", "onMouseenter"], Rr = ["font-size", "fill", "transform"], Dr = ["x", "y", "font-size", "fill"], Hr = { key: 10 }, Br = ["text-anchor", "font-size", "fill", "transform", "onClick"], Wr = ["x", "y", "height", "width", "onMouseenter", "onClick"], Er = {
1110
- key: 11,
1111
- style: { "pointer-events": "none" }
1112
- }, Yr = ["x", "y"], qr = ["cx", "cy", "r", "fill"], Xr = {
1113
- key: 5,
1114
- class: "vue-data-ui-watermark"
1115
- }, Ur = ["onClick"], Zr = {
1116
- key: 0,
1117
- viewBox: "0 0 20 12",
1118
- height: "14",
1119
- width: "20"
1120
- }, Jr = ["stroke", "fill"], Kr = {
1121
- key: 1,
1122
- viewBox: "0 0 40 40",
1123
- height: "14",
1124
- width: "14"
1125
- }, Qr = ["fill"], jr = ["fill"], $r = {
1126
- key: 2,
1127
- viewBox: "0 0 12 12",
1128
- height: "14",
1129
- width: "14"
1130
- }, ei = {
1131
- key: 9,
1132
- ref: "chartLegend"
1133
- }, ti = {
1134
- key: 10,
1135
- ref: "source",
1136
- dir: "auto"
1137
- }, ri = {
1138
- style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
1139
- "data-html2canvas-ignore": ""
1140
- }, ii = ["innerHTML"];
1141
- function ai(r, l, o, d, t, e) {
1142
- const _ = R("PenAndPaper"), b = R("Title"), I = R("UserOptions"), A = R("PackageVersion"), O = R("Shape"), G = R("Skeleton"), p = R("Slicer"), v = R("Tooltip"), F = R("BaseIcon"), C = R("TableSparkline"), T = R("DataTable"), V = R("Accordion");
1143
- return a(), s("div", {
1144
- id: `vue-ui-xy_${t.uniqueId}`,
1145
- class: B(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
1146
- ref: "chart",
1147
- style: w(`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%" : ""}`),
1148
- onMouseenter: l[7] || (l[7] = () => e.setUserOptionsVisibility(!0)),
1149
- onMouseleave: l[8] || (l[8] = () => e.setUserOptionsVisibility(!1))
1150
- }, [
1151
- e.FINAL_CONFIG.chart.userOptions.buttons.annotator ? (a(), H(_, {
1152
- key: 0,
1153
- svgRef: t.svgRef,
1154
- backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
1155
- color: e.FINAL_CONFIG.chart.color,
1156
- active: t.isAnnotator,
1157
- onClose: e.toggleAnnotator
1158
- }, null, 8, ["svgRef", "backgroundColor", "color", "active", "onClose"])) : c("", !0),
1159
- e.hasOptionsNoTitle ? (a(), s("div", Qe, null, 512)) : c("", !0),
1160
- e.FINAL_CONFIG.chart.title.show ? (a(), s("div", {
1161
- key: 2,
1162
- ref: "chartTitle",
1163
- class: "vue-ui-xy-title",
1164
- style: w(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1165
- }, [
1166
- (a(), H(b, {
1167
- key: `title_${t.titleStep}`,
1168
- config: {
1169
- title: {
1170
- cy: "xy-div-title",
1171
- ...e.FINAL_CONFIG.chart.title
1172
- },
1173
- subtitle: {
1174
- cy: "xy-div-subtitle",
1175
- ...e.FINAL_CONFIG.chart.title.subtitle
1176
- }
1177
- }
1178
- }, null, 8, ["config"]))
1179
- ], 4)) : c("", !0),
1180
- e.FINAL_CONFIG.chart.userOptions.show && e.isDataset && (t.keepUserOptionState || t.userOptionsVisible) ? (a(), H(I, {
1181
- ref: "defails",
1182
- key: `user_options_${t.step}`,
1183
- backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
1184
- color: e.FINAL_CONFIG.chart.color,
1185
- isPrinting: t.isPrinting,
1186
- isImaging: t.isImaging,
1187
- uid: t.uniqueId,
1188
- hasTooltip: e.FINAL_CONFIG.chart.userOptions.buttons.tooltip && e.FINAL_CONFIG.chart.tooltip.show,
1189
- hasPdf: e.FINAL_CONFIG.chart.userOptions.buttons.pdf,
1190
- hasXls: e.FINAL_CONFIG.chart.userOptions.buttons.csv,
1191
- hasImg: e.FINAL_CONFIG.chart.userOptions.buttons.img,
1192
- hasLabel: e.FINAL_CONFIG.chart.userOptions.buttons.labels,
1193
- hasTable: e.FINAL_CONFIG.chart.userOptions.buttons.table,
1194
- hasStack: o.dataset.length > 1 && e.FINAL_CONFIG.chart.userOptions.buttons.stack,
1195
- hasFullscreen: e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,
1196
- isStacked: t.mutableConfig.isStacked,
1197
- isFullscreen: t.isFullscreen,
1198
- chartElement: r.$refs.chart,
1199
- position: e.FINAL_CONFIG.chart.userOptions.position,
1200
- isTooltip: t.mutableConfig.showTooltip,
1201
- titles: { ...e.FINAL_CONFIG.chart.userOptions.buttonTitles },
1202
- hasAnnotator: e.FINAL_CONFIG.chart.userOptions.buttons.annotator,
1203
- isAnnotation: t.isAnnotator,
1204
- onToggleFullscreen: e.toggleFullscreen,
1205
- onGeneratePdf: e.generatePdf,
1206
- onGenerateCsv: e.generateCsv,
1207
- onGenerateImage: e.generateImage,
1208
- onToggleTable: e.toggleTable,
1209
- onToggleLabels: e.toggleLabels,
1210
- onToggleStack: e.toggleStack,
1211
- onToggleTooltip: e.toggleTooltip,
1212
- onToggleAnnotator: e.toggleAnnotator,
1213
- style: w({
1214
- visibility: t.keepUserOptionState ? t.userOptionsVisible ? "visible" : "hidden" : "visible"
1215
- })
1216
- }, Ye({ _: 2 }, [
1217
- r.$slots.menuIcon ? {
1218
- name: "menuIcon",
1219
- fn: P(({ isOpen: i, color: h }) => [
1220
- L(r.$slots, "menuIcon", W(E({ isOpen: i, color: h })), void 0, !0)
1221
- ]),
1222
- key: "0"
1223
- } : void 0,
1224
- r.$slots.optionTooltip ? {
1225
- name: "optionTooltip",
1226
- fn: P(() => [
1227
- L(r.$slots, "optionTooltip", {}, void 0, !0)
1228
- ]),
1229
- key: "1"
1230
- } : void 0,
1231
- r.$slots.optionPdf ? {
1232
- name: "optionPdf",
1233
- fn: P(() => [
1234
- L(r.$slots, "optionPdf", {}, void 0, !0)
1235
- ]),
1236
- key: "2"
1237
- } : void 0,
1238
- r.$slots.optionCsv ? {
1239
- name: "optionCsv",
1240
- fn: P(() => [
1241
- L(r.$slots, "optionCsv", {}, void 0, !0)
1242
- ]),
1243
- key: "3"
1244
- } : void 0,
1245
- r.$slots.optionImg ? {
1246
- name: "optionImg",
1247
- fn: P(() => [
1248
- L(r.$slots, "optionImg", {}, void 0, !0)
1249
- ]),
1250
- key: "4"
1251
- } : void 0,
1252
- r.$slots.optionTable ? {
1253
- name: "optionTable",
1254
- fn: P(() => [
1255
- L(r.$slots, "optionTable", {}, void 0, !0)
1256
- ]),
1257
- key: "5"
1258
- } : void 0,
1259
- r.$slots.optionLabels ? {
1260
- name: "optionLabels",
1261
- fn: P(() => [
1262
- L(r.$slots, "optionLabels", {}, void 0, !0)
1263
- ]),
1264
- key: "6"
1265
- } : void 0,
1266
- r.$slots.optionStack ? {
1267
- name: "optionStack",
1268
- fn: P(() => [
1269
- L(r.$slots, "optionStack", {}, void 0, !0)
1270
- ]),
1271
- key: "7"
1272
- } : void 0,
1273
- r.$slots.optionFullscreen ? {
1274
- name: "optionFullscreen",
1275
- fn: P(({ toggleFullscreen: i, isFullscreen: h }) => [
1276
- L(r.$slots, "optionFullscreen", W(E({ toggleFullscreen: i, isFullscreen: h })), void 0, !0)
1277
- ]),
1278
- key: "8"
1279
- } : void 0,
1280
- r.$slots.optionAnnotator ? {
1281
- name: "optionAnnotator",
1282
- fn: P(({ toggleAnnotator: i, isAnnotator: h }) => [
1283
- L(r.$slots, "optionAnnotator", W(E({ toggleAnnotator: i, isAnnotator: h })), void 0, !0)
1284
- ]),
1285
- key: "9"
1286
- } : void 0
1287
- ]), 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),
1288
- e.isDataset ? (a(), s("svg", {
1289
- key: 4,
1290
- ref: "svgRef",
1291
- xmlns: "http://www.w3.org/2000/svg",
1292
- class: B([{ "vue-data-ui-fullscreen--on": t.isFullscreen, "vue-data-ui-fulscreen--off": !t.isFullscreen }, "vue-ui-xy-svg"]),
1293
- width: "100%",
1294
- viewBox: t.viewBox,
1295
- style: w(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),
1296
- "aria-label": e.chartAriaLabel,
1297
- role: "img",
1298
- "aria-live": "polite"
1299
- }, [
1300
- Y(A),
1301
- r.$slots["chart-background"] ? (a(), s("foreignObject", {
1302
- key: 0,
1303
- x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
1304
- y: e.drawingArea.top,
1305
- width: e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries) < 0 ? 0 : e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries),
1306
- height: e.drawingArea.height < 0 ? 0 : e.drawingArea.height,
1307
- style: {
1308
- pointerEvents: "none"
1309
- }
1310
- }, [
1311
- L(r.$slots, "chart-background", {}, void 0, !0)
1312
- ], 8, $e)) : c("", !0),
1313
- e.maxSeries > 0 ? (a(), s("g", et, [
1314
- u("g", tt, [
1315
- e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (a(), s("line", {
1316
- key: 0,
1317
- stroke: e.FINAL_CONFIG.chart.grid.stroke,
1318
- "stroke-width": "1",
1319
- x1: e.drawingArea.left + e.xPadding,
1320
- x2: e.drawingArea.right - e.xPadding,
1321
- y1: e.forceValidValue(e.drawingArea.bottom),
1322
- y2: e.forceValidValue(e.drawingArea.bottom),
1323
- "stroke-linecap": "round"
1324
- }, null, 8, rt)) : c("", !0),
1325
- t.mutableConfig.useIndividualScale ? e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(!0), s(g, { key: 2 }, m(e.allScales, (i) => (a(), s("g", null, [
1326
- i.id === t.selectedScale && i.yLabels.length ? (a(!0), s(g, { key: 0 }, m(i.yLabels, (h) => (a(), s("line", {
1327
- x1: e.drawingArea.left + e.xPadding,
1328
- x2: e.drawingArea.right - e.xPadding,
1329
- y1: e.forceValidValue(h.y),
1330
- y2: e.forceValidValue(h.y),
1331
- stroke: i.color,
1332
- "stroke-width": 0.5,
1333
- "stroke-linecap": "round"
1334
- }, null, 8, st))), 256)) : i.yLabels.length ? (a(!0), s(g, { key: 1 }, m(i.yLabels, (h) => (a(), s("line", {
1335
- x1: e.drawingArea.left + e.xPadding,
1336
- x2: e.drawingArea.right - e.xPadding,
1337
- y1: e.forceValidValue(h.y),
1338
- y2: e.forceValidValue(h.y),
1339
- stroke: e.FINAL_CONFIG.chart.grid.stroke,
1340
- "stroke-width": 0.5,
1341
- "stroke-linecap": "round"
1342
- }, null, 8, nt))), 256)) : c("", !0)
1343
- ]))), 256)) : c("", !0) : (a(), s(g, { key: 1 }, [
1344
- e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline ? (a(), s("line", {
1345
- key: 0,
1346
- stroke: e.FINAL_CONFIG.chart.grid.stroke,
1347
- "stroke-width": "1",
1348
- x1: e.drawingArea.left + e.xPadding,
1349
- x2: e.drawingArea.left + e.xPadding,
1350
- y1: e.forceValidValue(e.drawingArea.top),
1351
- y2: e.forceValidValue(e.drawingArea.bottom),
1352
- "stroke-linecap": "round"
1353
- }, null, 8, it)) : c("", !0),
1354
- e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (a(), s("g", at, [
1355
- (a(!0), s(g, null, m(e.yLabels, (i) => (a(), s("line", {
1356
- x1: e.drawingArea.left + e.xPadding,
1357
- x2: e.drawingArea.right - e.xPadding,
1358
- y1: e.forceValidValue(i.y),
1359
- y2: e.forceValidValue(i.y),
1360
- stroke: e.FINAL_CONFIG.chart.grid.stroke,
1361
- "stroke-width": 0.5,
1362
- "stroke-linecap": "round"
1363
- }, null, 8, lt))), 256))
1364
- ])) : c("", !0)
1365
- ], 64)),
1366
- e.FINAL_CONFIG.chart.grid.showVerticalLines ? (a(), s("g", ht, [
1367
- (a(!0), s(g, null, m(e.maxSeries + (e.FINAL_CONFIG.chart.grid.position === "middle" ? 1 : 0), (i, h) => (a(), s("line", {
1368
- key: `grid_vertical_line_${h}`,
1369
- x1: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
1370
- x2: e.drawingArea.width / e.maxSeries * h + e.drawingArea.left + e.xPadding,
1371
- y1: e.forceValidValue(e.drawingArea.top),
1372
- y2: e.forceValidValue(e.drawingArea.bottom),
1373
- "stroke-width": "0.5",
1374
- stroke: e.FINAL_CONFIG.chart.grid.stroke
1375
- }, null, 8, ot))), 128))
1376
- ])) : c("", !0)
1377
- ]),
1378
- (a(!0), s(g, null, m(e.barSet, (i, h) => (a(), s("defs", {
1379
- key: `def_rect_${h}`
1380
- }, [
1381
- u("linearGradient", {
1382
- id: `rectGradient_pos_${h}_${t.uniqueId}`,
1383
- x2: "0%",
1384
- y2: "100%"
1385
- }, [
1386
- u("stop", {
1387
- offset: "0%",
1388
- "stop-color": i.color
1389
- }, null, 8, dt),
1390
- u("stop", {
1391
- offset: "62%",
1392
- "stop-color": `${e.shiftHue(i.color, 0.02)}`
1393
- }, null, 8, ut),
1394
- u("stop", {
1395
- offset: "100%",
1396
- "stop-color": `${e.shiftHue(i.color, 0.05)}`
1397
- }, null, 8, gt)
1398
- ], 8, ct),
1399
- u("linearGradient", {
1400
- id: `rectGradient_neg_${h}_${t.uniqueId}`,
1401
- x2: "0%",
1402
- y2: "100%"
1403
- }, [
1404
- u("stop", {
1405
- offset: "0%",
1406
- "stop-color": `${e.shiftHue(i.color, 0.05)}`
1407
- }, null, 8, It),
1408
- u("stop", {
1409
- offset: "38%",
1410
- "stop-color": `${e.shiftHue(i.color, 0.02)}`
1411
- }, null, 8, mt),
1412
- u("stop", {
1413
- offset: "100%",
1414
- "stop-color": i.color
1415
- }, null, 8, Nt)
1416
- ], 8, ft)
1417
- ]))), 128)),
1418
- (a(!0), s(g, null, m(e.plotSet, (i, h) => (a(), s("defs", {
1419
- key: `def_plot_${h}`
1420
- }, [
1421
- u("radialGradient", {
1422
- id: `plotGradient_${h}_${t.uniqueId}`,
1423
- cx: "50%",
1424
- cy: "50%",
1425
- r: "50%",
1426
- fx: "50%",
1427
- fy: "50%"
1428
- }, [
1429
- u("stop", {
1430
- offset: "0%",
1431
- "stop-color": `${e.shiftHue(i.color, 0.05)}`
1432
- }, null, 8, bt),
1433
- u("stop", {
1434
- offset: "100%",
1435
- "stop-color": i.color
1436
- }, null, 8, Ft)
1437
- ], 8, xt)
1438
- ]))), 128)),
1439
- (a(!0), s(g, null, m(e.lineSet, (i, h) => (a(), s("defs", {
1440
- key: `def_line_${h}`
1441
- }, [
1442
- u("radialGradient", {
1443
- id: `lineGradient_${h}_${t.uniqueId}`,
1444
- cx: "50%",
1445
- cy: "50%",
1446
- r: "50%",
1447
- fx: "50%",
1448
- fy: "50%"
1449
- }, [
1450
- u("stop", {
1451
- offset: "0%",
1452
- "stop-color": `${e.shiftHue(i.color, 0.05)}`
1453
- }, null, 8, At),
1454
- u("stop", {
1455
- offset: "100%",
1456
- "stop-color": i.color
1457
- }, null, 8, yt)
1458
- ], 8, _t),
1459
- u("linearGradient", {
1460
- id: `areaGradient_${h}_${t.uniqueId}`,
1461
- x1: "0%",
1462
- x2: "100%",
1463
- y1: "0%",
1464
- y2: "0%"
1465
- }, [
1466
- u("stop", {
1467
- offset: "0%",
1468
- "stop-color": `${e.setOpacity(e.shiftHue(i.color, 0.03), e.FINAL_CONFIG.line.area.opacity)}`
1469
- }, null, 8, Lt),
1470
- u("stop", {
1471
- offset: "100%",
1472
- "stop-color": `${e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)}`
1473
- }, null, 8, St)
1474
- ], 8, Ct)
1475
- ]))), 128)),
1476
- (a(!0), s(g, null, m(e.highlightAreas, (i) => (a(), s("g", null, [
1477
- i.show ? (a(!0), s(g, { key: 0 }, m(i.span, (h, n) => (a(), s("g", null, [
1478
- u("rect", {
1479
- style: w({
1480
- transition: "none",
1481
- opacity: i.from + n >= t.slicer.start && i.from + n <= t.slicer.end - 1 ? 1 : 0
1482
- }),
1483
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.from + n - t.slicer.start),
1484
- y: e.drawingArea.top,
1485
- height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1486
- width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1487
- fill: e.setOpacity(i.color, i.opacity)
1488
- }, null, 12, kt),
1489
- i.caption.text && n === 0 ? (a(), s("foreignObject", {
1490
- key: 0,
1491
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * (i.from + n - t.slicer.start) - (i.caption.width === "auto" ? 0 : i.caption.width / 2 - e.drawingArea.width / e.maxSeries * i.span / 2),
1492
- y: e.drawingArea.top + i.caption.offsetY,
1493
- style: w({
1494
- overflow: "visible",
1495
- opacity: i.to >= t.slicer.start && i.from < t.slicer.end ? 1 : 0
1496
- }),
1497
- height: "1",
1498
- width: i.caption.width === "auto" ? e.drawingArea.width / e.maxSeries * i.span : i.caption.width
1499
- }, [
1500
- u("div", {
1501
- style: w(`padding:${i.caption.padding}px;text-align:${i.caption.textAlign};font-size:${i.caption.fontSize}px;color:${i.caption.color};font-weight:${i.caption.bold ? "bold" : "normal"}`)
1502
- }, k(i.caption.text), 5)
1503
- ], 12, wt)) : c("", !0)
1504
- ]))), 256)) : c("", !0)
1505
- ]))), 256)),
1506
- u("g", null, [
1507
- (a(!0), s(g, null, m(e.maxSeries, (i, h) => (a(), s("g", {
1508
- key: `tooltip_trap_highlighter_${h}`
1509
- }, [
1510
- u("rect", {
1511
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
1512
- y: e.drawingArea.top,
1513
- height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
1514
- width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
1515
- fill: [t.selectedMinimapIndex, t.selectedSerieIndex, t.selectedRowIndex].includes(h) ? e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color, e.FINAL_CONFIG.chart.highlighter.opacity) : "transparent"
1516
- }, null, 8, Ot)
1517
- ]))), 128))
1518
- ]),
1519
- e.barSet.length ? (a(!0), s(g, { key: 0 }, m(e.barSet, (i, h) => (a(), s("g", {
1520
- key: `serie_bar_${h}`,
1521
- class: B(`serie_bar_${h}`),
1522
- style: w(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1523
- }, [
1524
- (a(!0), s(g, null, m(i.plots, (n, f) => (a(), s("g", {
1525
- key: `bar_plot_${h}_${f}`
1526
- }, [
1527
- e.canShowValue(n.value) ? (a(), s("rect", {
1528
- key: 0,
1529
- x: e.calcRectX(n),
1530
- y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
1531
- height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1532
- 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),
1533
- rx: e.FINAL_CONFIG.bar.borderRadius,
1534
- fill: e.FINAL_CONFIG.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${h}_${t.uniqueId})` : `url(#rectGradient_neg_${h}_${t.uniqueId})` : i.color,
1535
- stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? i.color : e.FINAL_CONFIG.bar.border.stroke,
1536
- "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1537
- }, null, 8, Gt)) : c("", !0),
1538
- e.canShowValue(n.value) && r.$slots.pattern ? (a(), s("rect", {
1539
- key: 1,
1540
- x: e.calcRectX(n),
1541
- y: t.mutableConfig.useIndividualScale ? e.calcIndividualRectY(n) : e.calcRectY(n),
1542
- height: t.mutableConfig.useIndividualScale ? Math.abs(e.calcIndividualHeight(n)) : Math.abs(e.calcRectHeight(n)),
1543
- 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),
1544
- rx: e.FINAL_CONFIG.bar.borderRadius,
1545
- fill: `url(#pattern_${t.uniqueId}_${i.slotAbsoluteIndex})`,
1546
- stroke: e.FINAL_CONFIG.bar.border.useSerieColor ? i.color : e.FINAL_CONFIG.bar.border.stroke,
1547
- "stroke-width": e.FINAL_CONFIG.bar.border.strokeWidth
1548
- }, null, 8, vt)) : c("", !0),
1549
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1550
- key: 2,
1551
- style: { overflow: "visible" },
1552
- height: "12",
1553
- 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,
1554
- x: e.calcRectX(n) - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1555
- y: e.checkNaN(n.y) + e.FINAL_CONFIG.chart.comments.offsetY + 6
1556
- }, [
1557
- L(r.$slots, "plot-comment", {
1558
- plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: f }
1559
- }, void 0, !0)
1560
- ], 8, zt)) : c("", !0)
1561
- ]))), 128)),
1562
- Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (a(), s("g", Mt, [
1563
- u("defs", null, [
1564
- u("marker", {
1565
- id: `bar_arrow_${h}`,
1566
- markerWidth: 7,
1567
- markerHeight: 7,
1568
- refX: "0",
1569
- refY: 7 / 2,
1570
- orient: "auto"
1571
- }, [
1572
- u("polygon", {
1573
- points: `0 0, 7 ${7 / 2}, 0 7`,
1574
- fill: i.color
1575
- }, null, 8, Tt)
1576
- ], 8, pt)
1577
- ]),
1578
- i.plots.length > 1 ? (a(), s("line", {
1579
- key: 0,
1580
- x1: e.calcLinearProgression(i.plots).x1,
1581
- x2: e.calcLinearProgression(i.plots).x2,
1582
- y1: e.forceValidValue(e.calcLinearProgression(i.plots).y1),
1583
- y2: e.forceValidValue(e.calcLinearProgression(i.plots).y2),
1584
- "stroke-width": 1,
1585
- stroke: i.color,
1586
- "stroke-dasharray": 2,
1587
- "marker-end": `url(#bar_arrow_${h})`
1588
- }, null, 8, Pt)) : c("", !0),
1589
- i.plots.length > 1 ? (a(), s("text", {
1590
- key: 1,
1591
- "text-anchor": "middle",
1592
- x: e.calcLinearProgression(i.plots).x2,
1593
- y: e.calcLinearProgression(i.plots).y2 - 6,
1594
- "font-size": t.fontSizes.plotLabels,
1595
- fill: i.color
1596
- }, k(e.dataLabel({
1597
- v: e.calcLinearProgression(i.plots).trend * 100,
1598
- s: "%",
1599
- r: 2
1600
- })), 9, Vt)) : c("", !0)
1601
- ])) : c("", !0)
1602
- ], 6))), 128)) : c("", !0),
1603
- !t.mutableConfig.useIndividualScale && e.FINAL_CONFIG.chart.grid.labels.zeroLine.show ? (a(), s("line", {
1604
- key: 1,
1605
- stroke: e.FINAL_CONFIG.chart.grid.stroke,
1606
- "stroke-width": "1",
1607
- x1: e.drawingArea.left + e.xPadding,
1608
- x2: e.drawingArea.right - e.xPadding,
1609
- y1: e.forceValidValue(e.zero),
1610
- y2: e.forceValidValue(e.zero),
1611
- "stroke-linecap": "round"
1612
- }, null, 8, Rt)) : c("", !0),
1613
- e.FINAL_CONFIG.chart.highlighter.useLine && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Dt, [
1614
- u("line", {
1615
- 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,
1616
- 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,
1617
- y1: e.forceValidValue(e.drawingArea.top),
1618
- y2: e.forceValidValue(e.drawingArea.bottom),
1619
- stroke: e.FINAL_CONFIG.chart.highlighter.color,
1620
- "stroke-width": e.FINAL_CONFIG.chart.highlighter.lineWidth,
1621
- "stroke-dasharray": e.FINAL_CONFIG.chart.highlighter.lineDasharray,
1622
- "stroke-linecap": "round",
1623
- style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1624
- }, null, 8, Ht)
1625
- ])) : c("", !0),
1626
- e.FINAL_CONFIG.chart.grid.frame.show ? (a(), s("rect", {
1627
- key: 3,
1628
- style: { pointerEvents: "none", transition: "none" },
1629
- x: e.drawingArea.left + e.xPadding < 0 ? 0 : e.drawingArea.left + e.xPadding,
1630
- y: e.drawingArea.top,
1631
- width: e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries) < 0 ? 0 : e.drawingArea.width - (e.FINAL_CONFIG.chart.grid.position === "middle" ? 0 : e.drawingArea.width / e.maxSeries),
1632
- height: e.drawingArea.height < 0 ? 0 : e.drawingArea.height,
1633
- fill: "transparent",
1634
- stroke: e.FINAL_CONFIG.chart.grid.frame.stroke,
1635
- "stroke-width": e.FINAL_CONFIG.chart.grid.frame.strokeWidth,
1636
- "stroke-linecap": e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,
1637
- "stroke-linejoin": e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,
1638
- "stroke-dasharray": e.FINAL_CONFIG.chart.grid.frame.strokeDasharray
1639
- }, null, 8, Bt)) : c("", !0),
1640
- e.FINAL_CONFIG.chart.grid.labels.show ? (a(), s("g", Wt, [
1641
- t.mutableConfig.useIndividualScale ? (a(), s(g, { key: 0 }, [
1642
- (a(!0), s(g, null, m(e.allScales, (i) => (a(), s("g", null, [
1643
- u("line", {
1644
- x1: i.x + e.xPadding,
1645
- x2: i.x + e.xPadding,
1646
- y1: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - i.yOffset - i.individualHeight) : e.forceValidValue(e.drawingArea.top),
1647
- y2: t.mutableConfig.isStacked ? e.forceValidValue(e.drawingArea.bottom - i.yOffset) : e.forceValidValue(e.drawingArea.bottom),
1648
- stroke: i.color,
1649
- "stroke-width": e.FINAL_CONFIG.chart.grid.stroke,
1650
- "stroke-linecap": "round",
1651
- style: w(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1652
- }, null, 12, Et)
1653
- ]))), 256)),
1654
- (a(!0), s(g, null, m(e.allScales, (i) => (a(), s("g", {
1655
- style: w(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
1656
- }, [
1657
- u("text", {
1658
- fill: i.color,
1659
- "font-size": t.fontSizes.dataLabels,
1660
- "text-anchor": "middle",
1661
- transform: `translate(${i.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + 5 + e.xPadding}, ${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset - i.individualHeight / 2 : e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`
1662
- }, k(i.name) + " " + k(i.scaleLabel ? `- ${i.scaleLabel}` : ""), 9, Yt),
1663
- (a(!0), s(g, null, m(i.yLabels, (h, n) => (a(), s("line", {
1664
- x1: i.x - 3 + e.xPadding,
1665
- x2: i.x + e.xPadding,
1666
- y1: e.forceValidValue(h.y),
1667
- y2: e.forceValidValue(h.y),
1668
- stroke: i.color,
1669
- "stroke-width": 1,
1670
- "stroke-linecap": "round"
1671
- }, null, 8, qt))), 256)),
1672
- (a(!0), s(g, null, m(i.yLabels, (h, n) => (a(), s("text", {
1673
- x: i.x - 5 + e.xPadding,
1674
- y: e.forceValidValue(h.y) + t.fontSizes.dataLabels / 3,
1675
- "font-size": t.fontSizes.dataLabels,
1676
- "text-anchor": "end",
1677
- fill: i.color
1678
- }, k(e.applyDataLabel(
1679
- e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
1680
- h.value,
1681
- e.dataLabel({
1682
- p: h.prefix,
1683
- v: h.value,
1684
- s: h.suffix,
1685
- r: 1
1686
- }),
1687
- { datapoint: h.datapoint, seriesIndex: n }
1688
- )), 9, Xt))), 256))
1689
- ], 4))), 256))
1690
- ], 64)) : (a(!0), s(g, { key: 1 }, m(e.yLabels, (i, h) => (a(), s("g", {
1691
- key: `yLabel_${h}`
1692
- }, [
1693
- e.canShowValue(i) && i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (a(), s("line", {
1694
- key: 0,
1695
- x1: e.drawingArea.left + e.xPadding,
1696
- x2: e.drawingArea.left - 5 + e.xPadding,
1697
- y1: e.forceValidValue(i.y),
1698
- y2: e.forceValidValue(i.y),
1699
- stroke: e.FINAL_CONFIG.chart.grid.stroke,
1700
- "stroke-width": "1",
1701
- "stroke-linecap": "round"
1702
- }, null, 8, Ut)) : c("", !0),
1703
- i.value >= e.niceScale.min && i.value <= e.niceScale.max ? (a(), s("text", {
1704
- key: 1,
1705
- x: e.drawingArea.left - 7 + e.xPadding,
1706
- y: e.checkNaN(i.y + t.fontSizes.dataLabels / 3),
1707
- "font-size": t.fontSizes.dataLabels,
1708
- "text-anchor": "end",
1709
- fill: e.FINAL_CONFIG.chart.grid.labels.color
1710
- }, k(e.canShowValue(i.value) ? e.applyDataLabel(
1711
- e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,
1712
- i.value,
1713
- e.dataLabel({
1714
- p: i.prefix,
1715
- v: i.value,
1716
- s: i.suffix,
1717
- r: 1
1718
- })
1719
- ) : ""), 9, Zt)) : c("", !0)
1720
- ]))), 128))
1721
- ])) : c("", !0),
1722
- (a(!0), s(g, null, m(e.plotSet, (i, h) => (a(), s("g", {
1723
- key: `serie_plot_${h}`,
1724
- class: B(`serie_plot_${h}`),
1725
- style: w(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1726
- }, [
1727
- (a(!0), s(g, null, m(i.plots, (n, f) => (a(), s("g", {
1728
- key: `circle_plot_${h}_${f}`
1729
- }, [
1730
- n && e.canShowValue(n.value) ? (a(), H(O, {
1731
- key: 0,
1732
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
1733
- color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? i.color : e.FINAL_CONFIG.plot.dot.fill,
1734
- plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
1735
- radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f ? (t.plotRadii.plot || 6) * 1.5 : t.plotRadii.plot || 6,
1736
- stroke: e.FINAL_CONFIG.plot.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : i.color,
1737
- strokeWidth: e.FINAL_CONFIG.plot.dot.strokeWidth
1738
- }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
1739
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1740
- key: 1,
1741
- style: { overflow: "visible" },
1742
- height: "12",
1743
- width: e.FINAL_CONFIG.chart.comments.width,
1744
- x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1745
- y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1746
- }, [
1747
- u("div", Kt, [
1748
- L(r.$slots, "plot-comment", {
1749
- plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: f }
1750
- }, void 0, !0)
1751
- ])
1752
- ], 8, Jt)) : c("", !0)
1753
- ]))), 128)),
1754
- Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (a(), s("g", Qt, [
1755
- u("defs", null, [
1756
- u("marker", {
1757
- id: `plot_arrow_${h}`,
1758
- markerWidth: 7,
1759
- markerHeight: 7,
1760
- refX: "0",
1761
- refY: 7 / 2,
1762
- orient: "auto"
1763
- }, [
1764
- u("polygon", {
1765
- points: `0 0, 7 ${7 / 2}, 0 7`,
1766
- fill: i.color
1767
- }, null, 8, $t)
1768
- ], 8, jt)
1769
- ]),
1770
- i.plots.length > 1 ? (a(), s("line", {
1771
- key: 0,
1772
- x1: e.calcLinearProgression(i.plots).x1,
1773
- x2: e.calcLinearProgression(i.plots).x2,
1774
- y1: e.forceValidValue(e.calcLinearProgression(i.plots).y1),
1775
- y2: e.forceValidValue(e.calcLinearProgression(i.plots).y2),
1776
- "stroke-width": 1,
1777
- stroke: i.color,
1778
- "stroke-dasharray": 2,
1779
- "marker-end": `url(#plot_arrow_${h})`
1780
- }, null, 8, er)) : c("", !0),
1781
- i.plots.length > 1 ? (a(), s("text", {
1782
- key: 1,
1783
- "text-anchor": "middle",
1784
- x: e.calcLinearProgression(i.plots).x2,
1785
- y: e.calcLinearProgression(i.plots).y2 - 6,
1786
- "font-size": t.fontSizes.plotLabels,
1787
- fill: i.color
1788
- }, k(e.dataLabel({
1789
- v: e.calcLinearProgression(i.plots).trend * 100,
1790
- s: "%",
1791
- r: 2
1792
- })), 9, tr)) : c("", !0)
1793
- ])) : c("", !0)
1794
- ], 6))), 128)),
1795
- (a(!0), s(g, null, m(e.lineSet, (i, h) => (a(), s("g", {
1796
- key: `serie_line_${h}`,
1797
- class: B(`serie_line_${h}`),
1798
- style: w(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1799
- }, [
1800
- i.smooth && i.plots.length > 1 ? (a(), s("path", {
1801
- key: 0,
1802
- d: `M${i.curve}`,
1803
- stroke: e.FINAL_CONFIG.chart.backgroundColor,
1804
- "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1805
- "stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1806
- fill: "none"
1807
- }, null, 8, rr)) : i.plots.length > 1 ? (a(), s("path", {
1808
- key: 1,
1809
- d: `M${i.straight}`,
1810
- stroke: e.FINAL_CONFIG.chart.backgroundColor,
1811
- "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1812
- "stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1813
- fill: "none",
1814
- "stroke-linecap": "round",
1815
- "stroke-linejoin": "round"
1816
- }, null, 8, ir)) : c("", !0)
1817
- ], 6))), 128)),
1818
- r.$slots.pattern ? (a(), s("defs", ar, [
1819
- (a(!0), s(g, null, m(e.safeDataset, (i, h) => L(r.$slots, "pattern", J({
1820
- key: `serie_pattern_slot_${h}`,
1821
- ref_for: !0
1822
- }, { ...i, seriesIndex: i.slotAbsoluteIndex, patternId: `pattern_${t.uniqueId}_${h}` }), void 0, !0)), 128))
1823
- ])) : c("", !0),
1824
- (a(!0), s(g, null, m(e.lineSet, (i, h) => (a(), s("g", {
1825
- key: `serie_line_${h}`,
1826
- class: B(`serie_line_${h}`),
1827
- style: w(`opacity:${t.selectedScale ? t.selectedScale === i.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1828
- }, [
1829
- i.useArea && i.plots.length > 1 ? (a(), s("g", lr, [
1830
- i.smooth ? (a(), s(g, { key: 0 }, [
1831
- u("path", {
1832
- d: `M ${i.plots[0] ? i.plots[0].x : Math.min(...i.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} ${i.curve} L ${i.plots.at(-1) ? i.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} Z`,
1833
- fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)
1834
- }, null, 8, sr),
1835
- r.$slots.pattern ? (a(), s("path", {
1836
- key: 0,
1837
- d: `M ${i.plots[0] ? i.plots[0].x : Math.min(...i.plots.filter((n) => !!n).map((n) => n.x))},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} ${i.curve} L ${i.plots.at(-1) ? i.plots.at(-1).x : e.drawingArea.left + e.slot.line * h + e.slot.line / 2},${t.mutableConfig.isStacked ? e.drawingArea.bottom - i.yOffset : e.drawingArea.bottom} Z`,
1838
- fill: `url(#pattern_${t.uniqueId}_${i.slotAbsoluteIndex})`
1839
- }, null, 8, nr)) : c("", !0)
1840
- ], 64)) : (a(), s(g, { key: 1 }, [
1841
- u("path", {
1842
- d: `M${i.area}Z`,
1843
- fill: e.FINAL_CONFIG.line.area.useGradient ? `url(#areaGradient_${h}_${t.uniqueId})` : e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)
1844
- }, null, 8, hr),
1845
- r.$slots.pattern ? (a(), s("path", {
1846
- key: 0,
1847
- d: `M${i.area}Z`,
1848
- fill: `url(#pattern_${t.uniqueId}_${i.slotAbsoluteIndex})`
1849
- }, null, 8, or)) : c("", !0)
1850
- ], 64))
1851
- ])) : c("", !0),
1852
- i.smooth && i.plots.length > 1 ? (a(), s("path", {
1853
- key: 1,
1854
- d: `M${i.curve}`,
1855
- stroke: i.color,
1856
- "stroke-width": e.FINAL_CONFIG.line.strokeWidth,
1857
- "stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1858
- fill: "none",
1859
- "stroke-linecap": "round"
1860
- }, null, 8, cr)) : i.plots.length > 1 ? (a(), s("path", {
1861
- key: 2,
1862
- d: `M${i.straight}`,
1863
- stroke: i.color,
1864
- "stroke-width": e.FINAL_CONFIG.line.strokeWidth,
1865
- "stroke-dasharray": i.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1866
- fill: "none",
1867
- "stroke-linecap": "round",
1868
- "stroke-linejoin": "round"
1869
- }, null, 8, dr)) : c("", !0),
1870
- (a(!0), s(g, null, m(i.plots, (n, f) => (a(), s(g, {
1871
- key: `circle_line_${h}_${f}`
1872
- }, [
1873
- !e.optimize.linePlot && n && e.canShowValue(n.value) || e.optimize.linePlot && n && e.canShowValue(n.value) && (t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f) ? (a(), H(O, {
1874
- key: 0,
1875
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
1876
- color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? i.color : e.FINAL_CONFIG.line.dot.fill,
1877
- plot: { x: e.checkNaN(n.x), y: e.checkNaN(n.y) },
1878
- radius: t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f ? (t.plotRadii.line || 6) * 1.5 : t.plotRadii.line || 6,
1879
- stroke: e.FINAL_CONFIG.line.dot.useSerieColor ? e.FINAL_CONFIG.chart.backgroundColor : i.color,
1880
- strokeWidth: e.FINAL_CONFIG.line.dot.strokeWidth
1881
- }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : c("", !0),
1882
- n.comment && e.FINAL_CONFIG.chart.comments.show ? (a(), s("foreignObject", {
1883
- key: 1,
1884
- style: { overflow: "visible" },
1885
- height: "12",
1886
- width: e.FINAL_CONFIG.chart.comments.width,
1887
- x: n.x - e.FINAL_CONFIG.chart.comments.width / 2 + e.FINAL_CONFIG.chart.comments.offsetX,
1888
- y: n.y + e.FINAL_CONFIG.chart.comments.offsetY + 6
1889
- }, [
1890
- u("div", gr, [
1891
- L(r.$slots, "plot-comment", {
1892
- plot: { ...n, color: i.color, seriesIndex: h, datapointIndex: f }
1893
- }, void 0, !0)
1894
- ])
1895
- ], 8, ur)) : c("", !0)
1896
- ], 64))), 128)),
1897
- Object.hasOwn(i, "useProgression") && i.useProgression === !0 && !isNaN(e.calcLinearProgression(i.plots).trend) ? (a(), s("g", fr, [
1898
- u("defs", null, [
1899
- u("marker", {
1900
- id: `line_arrow_${h}`,
1901
- markerWidth: 7,
1902
- markerHeight: 7,
1903
- refX: "0",
1904
- refY: 7 / 2,
1905
- orient: "auto"
1906
- }, [
1907
- u("polygon", {
1908
- points: `0 0, 7 ${7 / 2}, 0 7`,
1909
- fill: i.color
1910
- }, null, 8, mr)
1911
- ], 8, Ir)
1912
- ]),
1913
- i.plots.length > 1 ? (a(), s("line", {
1914
- key: 0,
1915
- x1: e.calcLinearProgression(i.plots).x1,
1916
- x2: e.calcLinearProgression(i.plots).x2,
1917
- y1: e.forceValidValue(e.calcLinearProgression(i.plots).y1),
1918
- y2: e.forceValidValue(e.calcLinearProgression(i.plots).y2),
1919
- "stroke-width": 1,
1920
- stroke: i.color,
1921
- "stroke-dasharray": 2,
1922
- "marker-end": `url(#line_arrow_${h})`
1923
- }, null, 8, Nr)) : c("", !0),
1924
- i.plots.length > 1 ? (a(), s("text", {
1925
- key: 1,
1926
- "text-anchor": "middle",
1927
- x: e.calcLinearProgression(i.plots).x2,
1928
- y: e.calcLinearProgression(i.plots).y2 - 6,
1929
- "font-size": t.fontSizes.plotLabels,
1930
- fill: i.color
1931
- }, k(e.dataLabel({
1932
- v: e.calcLinearProgression(i.plots).trend * 100,
1933
- s: "%",
1934
- r: 2
1935
- })), 9, xr)) : c("", !0)
1936
- ])) : c("", !0)
1937
- ], 6))), 128)),
1938
- (e.FINAL_CONFIG.bar.labels.show || e.FINAL_CONFIG.bar.serieName.show) && t.mutableConfig.dataLabels.show ? (a(), s("g", br, [
1939
- (a(!0), s(g, null, m(e.barSet, (i, h) => (a(), s(g, {
1940
- key: `xLabel_bar_${h}`
1941
- }, [
1942
- (a(!0), s(g, null, m(i.plots, (n, f) => (a(), s(g, {
1943
- key: `xLabel_bar_${h}_${f}`
1944
- }, [
1945
- n && (!Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f) && e.FINAL_CONFIG.bar.labels.show ? (a(), s("text", {
1946
- key: 0,
1947
- x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : e.calcRectX(n) + e.calcRectWidth() / 2 - e.barPeriodGap / 2,
1948
- y: e.checkNaN(n.y) + (n.value >= 0 ? e.FINAL_CONFIG.bar.labels.offsetY : -e.FINAL_CONFIG.bar.labels.offsetY * 3),
1949
- "text-anchor": "middle",
1950
- "font-size": t.fontSizes.plotLabels,
1951
- fill: e.FINAL_CONFIG.bar.labels.color
1952
- }, k(e.canShowValue(n.value) ? e.applyDataLabel(
1953
- e.FINAL_CONFIG.bar.labels.formatter,
1954
- n.value,
1955
- e.dataLabel({
1956
- p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
1957
- v: n.value,
1958
- s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
1959
- r: e.FINAL_CONFIG.bar.labels.rounding
1960
- }),
1961
- {
1962
- datapoint: n,
1963
- serie: i
1964
- }
1965
- ) : ""), 9, Fr)) : c("", !0),
1966
- n && e.FINAL_CONFIG.bar.serieName.show ? (a(), s("text", {
1967
- key: 1,
1968
- x: t.mutableConfig.useIndividualScale && t.mutableConfig.isStacked ? n.x + e.slot.line / 2 : n.x + e.calcRectWidth() * 1.1,
1969
- y: n.y + (n.value > 0 ? e.FINAL_CONFIG.bar.serieName.offsetY : -e.FINAL_CONFIG.bar.serieName.offsetY * 3),
1970
- "text-anchor": "middle",
1971
- "font-size": t.fontSizes.plotLabels,
1972
- fill: e.FINAL_CONFIG.bar.serieName.useSerieColor ? i.color : e.FINAL_CONFIG.bar.serieName.color,
1973
- "font-weight": e.FINAL_CONFIG.bar.serieName.bold ? "bold" : "normal"
1974
- }, k(e.FINAL_CONFIG.bar.serieName.useAbbreviation ? e.abbreviate({ source: i.name, length: e.FINAL_CONFIG.bar.serieName.abbreviationSize }) : i.name), 9, _r)) : c("", !0)
1975
- ], 64))), 128))
1976
- ], 64))), 128))
1977
- ])) : c("", !0),
1978
- e.FINAL_CONFIG.plot.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", Ar, [
1979
- (a(!0), s(g, null, m(e.plotSet, (i, h) => (a(), s(g, {
1980
- key: `xLabel_plot_${h}`
1981
- }, [
1982
- (a(!0), s(g, null, m(i.plots, (n, f) => (a(), s(g, {
1983
- key: `xLabel_plot_${h}_${f}`
1984
- }, [
1985
- n && !Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f ? (a(), s("text", {
1986
- key: 0,
1987
- x: n.x,
1988
- y: n.y + e.FINAL_CONFIG.plot.labels.offsetY,
1989
- "text-anchor": "middle",
1990
- "font-size": t.fontSizes.plotLabels,
1991
- fill: e.FINAL_CONFIG.plot.labels.color
1992
- }, k(e.canShowValue(n.value) ? e.applyDataLabel(
1993
- e.FINAL_CONFIG.plot.labels.formatter,
1994
- n.value,
1995
- e.dataLabel({
1996
- p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
1997
- v: n.value,
1998
- s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
1999
- r: e.FINAL_CONFIG.plot.labels.rounding
2000
- }),
2001
- {
2002
- datapoint: n,
2003
- serie: i
2004
- }
2005
- ) : ""), 9, yr)) : c("", !0),
2006
- n && f === 0 && i.useTag && i.useTag === "start" ? (a(), s("foreignObject", {
2007
- key: 1,
2008
- x: n.x,
2009
- y: n.y - 20,
2010
- height: 24,
2011
- width: "150",
2012
- style: { overflow: "visible" }
2013
- }, [
2014
- u("div", {
2015
- style: w(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
2016
- }, k(i.name), 5)
2017
- ], 8, Cr)) : c("", !0),
2018
- n && f === i.plots.length - 1 && i.useTag && i.useTag === "end" ? (a(), s("foreignObject", {
2019
- key: 2,
2020
- x: n.x - i.name.length * (t.fontSizes.plotLabels / 2),
2021
- y: n.y - 20,
2022
- height: 24,
2023
- width: "150",
2024
- style: { overflow: "visible" }
2025
- }, [
2026
- u("div", {
2027
- style: w(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
2028
- }, k(i.name), 5)
2029
- ], 8, Lr)) : c("", !0)
2030
- ], 64))), 128))
2031
- ], 64))), 128))
2032
- ])) : c("", !0),
2033
- e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (a(), s("g", Sr, [
2034
- (a(!0), s(g, null, m(e.lineSet, (i, h) => (a(), s(g, {
2035
- key: `xLabel_line_${h}`
2036
- }, [
2037
- (a(!0), s(g, null, m(i.plots, (n, f) => (a(), s(g, {
2038
- key: `xLabel_line_${h}_${f}`
2039
- }, [
2040
- n && !Object.hasOwn(i, "dataLabels") || i.dataLabels === !0 || t.selectedSerieIndex !== null && t.selectedSerieIndex === f || t.selectedMinimapIndex !== null && t.selectedMinimapIndex === f ? (a(), s("text", {
2041
- key: 0,
2042
- x: n.x,
2043
- y: n.y + (n.value >= 0 ? e.FINAL_CONFIG.line.labels.offsetY : -e.FINAL_CONFIG.line.labels.offsetY * 3),
2044
- "text-anchor": "middle",
2045
- "font-size": t.fontSizes.plotLabels,
2046
- fill: e.FINAL_CONFIG.line.labels.color
2047
- }, k(e.canShowValue(n.value) ? e.applyDataLabel(
2048
- e.FINAL_CONFIG.line.labels.formatter,
2049
- n.value,
2050
- e.dataLabel({
2051
- p: i.prefix || e.FINAL_CONFIG.chart.labels.prefix,
2052
- v: n.value,
2053
- s: i.suffix || e.FINAL_CONFIG.chart.labels.suffix,
2054
- r: e.FINAL_CONFIG.line.labels.rounding
2055
- }),
2056
- {
2057
- datapoint: n,
2058
- serie: i
2059
- }
2060
- ) : ""), 9, kr)) : c("", !0),
2061
- n && f === 0 && i.useTag && i.useTag === "start" ? (a(), s("foreignObject", {
2062
- key: 1,
2063
- x: n.x,
2064
- y: n.y - 20,
2065
- height: 24,
2066
- width: "150",
2067
- style: { overflow: "visible" }
2068
- }, [
2069
- u("div", {
2070
- style: w(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
2071
- }, k(i.name), 5)
2072
- ], 8, wr)) : c("", !0),
2073
- n && f === i.plots.length - 1 && i.useTag && i.useTag === "end" ? (a(), s("foreignObject", {
2074
- key: 2,
2075
- x: n.x - i.name.length * (t.fontSizes.plotLabels / 2),
2076
- y: n.y - 20,
2077
- height: 24,
2078
- width: "150",
2079
- style: { overflow: "visible" }
2080
- }, [
2081
- u("div", {
2082
- style: w(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
2083
- }, k(i.name), 5)
2084
- ], 8, Or)) : c("", !0)
2085
- ], 64))), 128))
2086
- ], 64))), 128))
2087
- ])) : c("", !0),
2088
- (a(!0), s(g, null, m(e.lineSet, (i, h) => (a(), s(g, {
2089
- key: `xLabel_line_${h}`
2090
- }, [
2091
- (a(!0), s(g, null, m(i.plots, (n, f) => (a(), s(g, {
2092
- key: `xLabel_line_${h}_${f}`
2093
- }, [
2094
- n && f === 0 && i.showSerieName && i.showSerieName === "start" ? (a(), s("text", {
2095
- key: 0,
2096
- x: n.x - t.fontSizes.plotLabels,
2097
- y: n.y,
2098
- "font-size": t.fontSizes.plotLabels,
2099
- "text-anchor": "end",
2100
- fill: i.color,
2101
- innerHTML: e.createTSpans({
2102
- content: i.name,
2103
- fontSize: t.fontSizes.plotLabels,
2104
- fill: i.color,
2105
- x: n.x - t.fontSizes.plotLabels,
2106
- y: n.y,
2107
- maxWords: 2
2108
- })
2109
- }, null, 8, Gr)) : c("", !0),
2110
- n && f === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (a(), s("text", {
2111
- key: 1,
2112
- x: n.x + t.fontSizes.plotLabels,
2113
- y: n.y,
2114
- "font-size": t.fontSizes.plotLabels,
2115
- "text-anchor": "start",
2116
- fill: i.color,
2117
- innerHTML: e.createTSpans({
2118
- content: i.name,
2119
- fontSize: t.fontSizes.plotLabels,
2120
- fill: i.color,
2121
- x: n.x + t.fontSizes.plotLabels,
2122
- y: n.y,
2123
- maxWords: 2
2124
- })
2125
- }, null, 8, vr)) : c("", !0)
2126
- ], 64))), 128))
2127
- ], 64))), 128)),
2128
- (a(!0), s(g, null, m(e.plotSet, (i, h) => (a(), s(g, {
2129
- key: `xLabel_plot_${h}`
2130
- }, [
2131
- (a(!0), s(g, null, m(i.plots, (n, f) => (a(), s(g, {
2132
- key: `xLabel_plot_${h}_${f}`
2133
- }, [
2134
- n && f === 0 && i.showSerieName && i.showSerieName === "start" ? (a(), s("text", {
2135
- key: 0,
2136
- x: n.x - t.fontSizes.plotLabels,
2137
- y: n.y,
2138
- "font-size": t.fontSizes.plotLabels,
2139
- "text-anchor": "end",
2140
- fill: i.color,
2141
- innerHTML: e.createTSpans({
2142
- content: i.name,
2143
- fontSize: t.fontSizes.plotLabels,
2144
- fill: i.color,
2145
- x: n.x - t.fontSizes.plotLabels,
2146
- y: n.y,
2147
- maxWords: 2
2148
- })
2149
- }, null, 8, zr)) : c("", !0),
2150
- n && f === i.plots.length - 1 && i.showSerieName && i.showSerieName === "end" ? (a(), s("text", {
2151
- key: 1,
2152
- x: n.x + t.fontSizes.plotLabels,
2153
- y: n.y,
2154
- "font-size": t.fontSizes.plotLabels,
2155
- "text-anchor": "start",
2156
- fill: i.color,
2157
- innerHTML: e.createTSpans({
2158
- content: i.name,
2159
- fontSize: t.fontSizes.plotLabels,
2160
- fill: i.color,
2161
- x: n.x + t.fontSizes.plotLabels,
2162
- y: n.y,
2163
- maxWords: 2
2164
- })
2165
- }, null, 8, Mr)) : c("", !0)
2166
- ], 64))), 128))
2167
- ], 64))), 128)),
2168
- t.mutableConfig.useIndividualScale && !t.mutableConfig.isStacked ? (a(), s(g, { key: 9 }, [
2169
- u("defs", null, [
2170
- (a(!0), s(g, null, m(e.allScales, (i, h) => (a(), s("linearGradient", {
2171
- id: `individual_scale_gradient_${t.uniqueId}_${h}`,
2172
- x1: "0%",
2173
- x2: "100%",
2174
- y1: "0%",
2175
- y2: "0%"
2176
- }, [
2177
- u("stop", {
2178
- offset: "0%",
2179
- "stop-color": e.FINAL_CONFIG.chart.backgroundColor,
2180
- "stop-opacity": "0"
2181
- }, null, 8, Tr),
2182
- u("stop", {
2183
- offset: "100%",
2184
- "stop-color": i.color,
2185
- "stop-opacity": "0.2"
2186
- }, null, 8, Pr)
2187
- ], 8, pr))), 256))
2188
- ]),
2189
- (a(!0), s(g, null, m(e.allScales, (i, h) => (a(), s("rect", {
2190
- x: i.x - e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth + e.xPadding,
2191
- y: e.drawingArea.top,
2192
- width: e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,
2193
- height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2194
- fill: t.selectedScale === i.id ? `url(#individual_scale_gradient_${t.uniqueId}_${h})` : "transparent",
2195
- onMouseenter: (n) => t.selectedScale = i.id,
2196
- onMouseleave: l[0] || (l[0] = (n) => t.selectedScale = null)
2197
- }, null, 40, Vr))), 256))
2198
- ], 64)) : c("", !0),
2199
- u("g", null, [
2200
- e.FINAL_CONFIG.chart.grid.labels.axis.yLabel && !t.mutableConfig.useIndividualScale ? (a(), s("text", {
2201
- key: 0,
2202
- "font-size": t.fontSizes.yAxis,
2203
- fill: e.FINAL_CONFIG.chart.grid.labels.color,
2204
- transform: `translate(${t.fontSizes.yAxis + e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top + e.drawingArea.height / 2}) rotate(-90)`,
2205
- "text-anchor": "middle",
2206
- style: { transition: "none" }
2207
- }, k(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel), 9, Rr)) : c("", !0),
2208
- e.FINAL_CONFIG.chart.grid.labels.axis.xLabel ? (a(), s("text", {
2209
- key: 1,
2210
- "text-anchor": "middle",
2211
- x: t.width / 2,
2212
- y: e.drawingArea.bottom + t.fontSizes.yAxis + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,
2213
- "font-size": t.fontSizes.yAxis,
2214
- fill: e.FINAL_CONFIG.chart.grid.labels.color
2215
- }, k(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel), 9, Dr)) : c("", !0)
2216
- ]),
2217
- l[9] || (l[9] = Z('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),
2218
- e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show ? (a(), s("g", Hr, [
2219
- r.$slots["time-label"] ? (a(!0), s(g, { key: 0 }, m(e.timeLabels, (i, h) => L(r.$slots, "time-label", J({
2220
- key: `time_label_${h}`,
2221
- ref_for: !0
2222
- }, {
2223
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h + e.drawingArea.width / e.maxSeries / 2,
2224
- y: e.drawingArea.bottom + t.fontSizes.xAxis * 1.3 + e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,
2225
- fontSize: t.fontSizes.xAxis,
2226
- fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2227
- 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})`,
2228
- absoluteIndex: i.absoluteIndex,
2229
- content: i.text,
2230
- textAnchor: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2231
- show: i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0
2232
- }), void 0, !0)), 128)) : (a(!0), s(g, { key: 1 }, m(e.timeLabels, (i, h) => (a(), s("g", {
2233
- key: `time_label_${h}`
2234
- }, [
2235
- i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (h === 0 || h === e.timeLabels.length - 1) && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && t.selectedSerieIndex === h && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo || i && !e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo && h % Math.floor((this.slicer.end - this.slicer.start) / e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo) === 0 ? (a(), s("text", {
2236
- key: 0,
2237
- "text-anchor": e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2238
- "font-size": t.fontSizes.xAxis,
2239
- fill: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,
2240
- 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})`,
2241
- style: {
2242
- cursor: "pointer"
2243
- },
2244
- onClick: () => e.selectTimeLabel(i, h)
2245
- }, k(i.text || ""), 9, Br)) : c("", !0)
2246
- ]))), 128))
2247
- ])) : c("", !0),
2248
- u("g", null, [
2249
- (a(!0), s(g, null, m(e.maxSeries, (i, h) => (a(), s("rect", {
2250
- key: `tooltip_trap_${h}`,
2251
- x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * h,
2252
- y: e.drawingArea.top,
2253
- height: e.drawingArea.height < 0 ? 10 : e.drawingArea.height,
2254
- width: e.drawingArea.width / e.maxSeries < 0 ? 1e-5 : e.drawingArea.width / e.maxSeries,
2255
- fill: "transparent",
2256
- onMouseenter: (n) => e.toggleTooltipVisibility(!0, h),
2257
- onMouseleave: l[1] || (l[1] = (n) => e.toggleTooltipVisibility(!1)),
2258
- onClick: (n) => e.selectX(h)
2259
- }, null, 40, Wr))), 128))
2260
- ]),
2261
- e.FINAL_CONFIG.chart.timeTag.show && (![null, void 0].includes(t.selectedSerieIndex) || ![null, void 0].includes(t.selectedMinimapIndex)) ? (a(), s("g", Er, [
2262
- (a(), s("foreignObject", {
2263
- 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,
2264
- y: e.drawingArea.bottom,
2265
- width: "200",
2266
- height: "40",
2267
- style: { overflow: "visible !important" }
2268
- }, [
2269
- u("div", {
2270
- class: "vue-ui-xy-time-tag",
2271
- style: w(`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`)
2272
- }, 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)
2273
- ], 8, Yr)),
2274
- u("circle", {
2275
- 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,
2276
- cy: e.drawingArea.bottom,
2277
- r: e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,
2278
- fill: e.FINAL_CONFIG.chart.timeTag.circleMarker.color
2279
- }, null, 8, qr)
2280
- ])) : c("", !0)
2281
- ])) : c("", !0),
2282
- L(r.$slots, "svg", { svg: e.svg }, void 0, !0)
2283
- ], 14, je)) : c("", !0),
2284
- r.$slots.watermark ? (a(), s("div", Xr, [
2285
- L(r.$slots, "watermark", W(E({ isPrinting: t.isPrinting || t.isImaging })), void 0, !0)
2286
- ])) : c("", !0),
2287
- e.isDataset ? c("", !0) : (a(), H(G, {
2288
- key: 6,
2289
- config: {
2290
- type: "line",
2291
- style: {
2292
- backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
2293
- line: {
2294
- axis: {
2295
- color: e.FINAL_CONFIG.chart.grid.stroke
2296
- },
2297
- path: {
2298
- color: e.FINAL_CONFIG.chart.grid.stroke,
2299
- strokeWidth: 0.5
2300
- }
2301
- }
2302
- }
2303
- }
2304
- }, null, 8, ["config"])),
2305
- e.FINAL_CONFIG.chart.zoom.show && t.maxX > 6 && e.isDataset ? (a(), H(p, {
2306
- ref: "chartSlicer",
2307
- key: `slicer_${t.slicerStep}`,
2308
- background: e.FINAL_CONFIG.chart.zoom.color,
2309
- fontSize: e.FINAL_CONFIG.chart.zoom.fontSize,
2310
- useResetSlot: e.FINAL_CONFIG.chart.zoom.useResetSlot,
2311
- labelLeft: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[t.slicer.start],
2312
- labelRight: e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[t.slicer.end - 1],
2313
- textColor: e.FINAL_CONFIG.chart.color,
2314
- inputColor: e.FINAL_CONFIG.chart.zoom.color,
2315
- selectColor: e.FINAL_CONFIG.chart.zoom.highlightColor,
2316
- borderColor: e.FINAL_CONFIG.chart.backgroundColor,
2317
- minimap: e.minimap,
2318
- smoothMinimap: e.FINAL_CONFIG.chart.zoom.minimap.smooth,
2319
- minimapSelectedColor: e.FINAL_CONFIG.chart.zoom.minimap.selectedColor,
2320
- minimapSelectionRadius: e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,
2321
- minimapLineColor: e.FINAL_CONFIG.chart.zoom.minimap.lineColor,
2322
- minimapSelectedColorOpacity: e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,
2323
- minimapSelectedIndex: t.selectedSerieIndex,
2324
- minimapIndicatorColor: e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,
2325
- verticalHandles: e.FINAL_CONFIG.chart.zoom.minimap.verticalHandles,
2326
- max: t.maxX,
2327
- min: 0,
2328
- valueStart: t.slicer.start,
2329
- valueEnd: t.slicer.end,
2330
- start: t.slicer.start,
2331
- "onUpdate:start": l[2] || (l[2] = (i) => t.slicer.start = i),
2332
- end: t.slicer.end,
2333
- "onUpdate:end": l[3] || (l[3] = (i) => t.slicer.end = i),
2334
- refreshStartPoint: e.FINAL_CONFIG.chart.zoom.startIndex !== null ? e.FINAL_CONFIG.chart.zoom.startIndex : 0,
2335
- refreshEndPoint: e.FINAL_CONFIG.chart.zoom.endIndex !== null ? e.FINAL_CONFIG.chart.zoom.endIndex + 1 : Math.max(...o.dataset.map((i) => e.largestTriangleThreeBucketsArray({ data: i.series, threshold: e.FINAL_CONFIG.downsample.threshold }).length)),
2336
- enableRangeHandles: e.FINAL_CONFIG.chart.zoom.enableRangeHandles,
2337
- enableSelectionDrag: e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,
2338
- onReset: e.refreshSlicer,
2339
- onTrapMouse: e.selectMinimapIndex
2340
- }, {
2341
- "reset-action": P(({ reset: i }) => [
2342
- L(r.$slots, "reset-action", W(E({ reset: i })), void 0, !0)
2343
- ]),
2344
- _: 3
2345
- }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "onReset", "onTrapMouse"])) : c("", !0),
2346
- e.FINAL_CONFIG.chart.legend.show ? (a(), s("div", {
2347
- key: 8,
2348
- ref: "chartLegend",
2349
- class: "vue-ui-xy-legend",
2350
- style: w(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)
2351
- }, [
2352
- (a(!0), s(g, null, m(e.absoluteDataset, (i, h) => (a(), s("div", {
2353
- key: `div_legend_item_${h}`,
2354
- onClick: (n) => e.segregate(i),
2355
- class: B({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": t.segregatedSeries.includes(i.id) })
2356
- }, [
2357
- t.icons[i.type] === "line" ? (a(), s("svg", Zr, [
2358
- u("rect", {
2359
- x: "0",
2360
- y: "7.5",
2361
- rx: "1.5",
2362
- stroke: e.FINAL_CONFIG.chart.backgroundColor,
2363
- "stroke-width": 0.5,
2364
- height: "3",
2365
- width: "20",
2366
- fill: i.color
2367
- }, null, 8, Jr),
2368
- Y(O, {
2369
- plot: { x: 10, y: 9 },
2370
- radius: 4,
2371
- color: i.color,
2372
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
2373
- stroke: e.FINAL_CONFIG.chart.backgroundColor,
2374
- strokeWidth: 0.5
2375
- }, null, 8, ["color", "shape", "stroke"])
2376
- ])) : t.icons[i.type] === "bar" ? (a(), s("svg", Kr, [
2377
- t.icons[i.type] === "bar" && r.$slots.pattern ? (a(), s("rect", {
2378
- key: 0,
2379
- x: "0",
2380
- y: "0",
2381
- rx: "1",
2382
- height: "40",
2383
- width: "40",
2384
- stroke: "none",
2385
- fill: i.color
2386
- }, null, 8, Qr)) : c("", !0),
2387
- t.icons[i.type] === "bar" ? (a(), s("rect", {
2388
- key: 1,
2389
- x: "0",
2390
- y: "0",
2391
- rx: "1",
2392
- height: "40",
2393
- width: "40",
2394
- stroke: "none",
2395
- fill: r.$slots.pattern ? `url(#pattern_${t.uniqueId}_${i.slotAbsoluteIndex})` : i.color
2396
- }, null, 8, jr)) : c("", !0)
2397
- ])) : (a(), s("svg", $r, [
2398
- Y(O, {
2399
- plot: { x: 6, y: 6 },
2400
- radius: 5,
2401
- color: i.color,
2402
- shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle"
2403
- }, null, 8, ["color", "shape"])
2404
- ])),
2405
- u("span", {
2406
- style: w(`color:${e.FINAL_CONFIG.chart.legend.color}`)
2407
- }, k(i.name), 5)
2408
- ], 10, Ur))), 128))
2409
- ], 4)) : (a(), s("div", ei, [
2410
- L(r.$slots, "legend", { legend: e.absoluteDataset }, void 0, !0)
2411
- ], 512)),
2412
- r.$slots.source ? (a(), s("div", ti, [
2413
- L(r.$slots, "source", {}, void 0, !0)
2414
- ], 512)) : c("", !0),
2415
- Y(v, {
2416
- show: t.mutableConfig.showTooltip && t.isTooltip,
2417
- backgroundColor: e.FINAL_CONFIG.chart.tooltip.backgroundColor,
2418
- color: e.FINAL_CONFIG.chart.tooltip.color,
2419
- fontSize: e.FINAL_CONFIG.chart.tooltip.fontSize,
2420
- borderRadius: e.FINAL_CONFIG.chart.tooltip.borderRadius,
2421
- borderColor: e.FINAL_CONFIG.chart.tooltip.borderColor,
2422
- borderWidth: e.FINAL_CONFIG.chart.tooltip.borderWidth,
2423
- backgroundOpacity: e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,
2424
- position: e.FINAL_CONFIG.chart.tooltip.position,
2425
- offsetY: e.FINAL_CONFIG.chart.tooltip.offsetY,
2426
- parent: r.$refs.chart,
2427
- content: e.tooltipContent,
2428
- isFullscreen: t.isFullscreen,
2429
- isCustom: e.FINAL_CONFIG.chart.tooltip.customFormat && typeof e.FINAL_CONFIG.chart.tooltip.customFormat == "function"
2430
- }, {
2431
- "tooltip-before": P(() => [
2432
- L(r.$slots, "tooltip-before", W(E({ ...e.dataTooltipSlot })), void 0, !0)
2433
- ]),
2434
- "tooltip-after": P(() => [
2435
- L(r.$slots, "tooltip-after", W(E({ ...e.dataTooltipSlot })), void 0, !0)
2436
- ]),
2437
- _: 3
2438
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2439
- e.isDataset ? (a(), H(V, {
2440
- key: 11,
2441
- hideDetails: "",
2442
- config: {
2443
- open: t.mutableConfig.showTable,
2444
- maxHeight: 1e4,
2445
- body: {
2446
- backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
2447
- color: e.FINAL_CONFIG.chart.color
2448
- },
2449
- head: {
2450
- backgroundColor: e.FINAL_CONFIG.chart.backgroundColor,
2451
- color: e.FINAL_CONFIG.chart.color
2452
- }
2453
- }
2454
- }, {
2455
- content: P(() => [
2456
- u("div", {
2457
- style: w(`${t.isPrinting ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2458
- }, [
2459
- u("div", ri, [
2460
- qe(u("input", {
2461
- type: "checkbox",
2462
- "onUpdate:modelValue": l[4] || (l[4] = (i) => t.showSparklineTable = i)
2463
- }, null, 512), [
2464
- [Xe, t.showSparklineTable]
2465
- ]),
2466
- u("div", {
2467
- onClick: l[5] || (l[5] = (i) => t.showSparklineTable = !t.showSparklineTable),
2468
- style: { cursor: "pointer" }
2469
- }, [
2470
- Y(F, {
2471
- name: "chartLine",
2472
- size: 20,
2473
- stroke: e.FINAL_CONFIG.chart.color
2474
- }, null, 8, ["stroke"])
2475
- ])
2476
- ]),
2477
- t.showSparklineTable ? (a(), H(C, {
2478
- key: `sparkline_${t.segregateStep}`,
2479
- dataset: e.tableSparklineDataset,
2480
- config: e.tableSparklineConfig
2481
- }, null, 8, ["dataset", "config"])) : (a(), H(T, {
2482
- key: `table_${t.tableStep}`,
2483
- colNames: e.dataTable.colNames,
2484
- head: e.dataTable.head,
2485
- body: e.dataTable.body,
2486
- config: e.dataTable.config,
2487
- title: `${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text ? ` : ${e.FINAL_CONFIG.chart.title.subtitle.text}` : ""}`,
2488
- onClose: l[6] || (l[6] = (i) => t.mutableConfig.showTable = !1)
2489
- }, {
2490
- th: P(({ th: i }) => [
2491
- u("div", { innerHTML: i }, null, 8, ii)
2492
- ]),
2493
- td: P(({ td: i }) => [
2494
- Z(k(isNaN(Number(i)) ? i : e.dataLabel({
2495
- p: e.FINAL_CONFIG.chart.labels.prefix,
2496
- v: i,
2497
- s: e.FINAL_CONFIG.chart.labels.suffix,
2498
- r: e.FINAL_CONFIG.table.rounding
2499
- })), 1)
2500
- ]),
2501
- _: 1
2502
- }, 8, ["colNames", "head", "body", "config", "title"]))
2503
- ], 4)
2504
- ]),
2505
- _: 1
2506
- }, 8, ["config"])) : c("", !0)
2507
- ], 46, Ke);
2508
- }
2509
- const _i = /* @__PURE__ */ Ue(Je, [["render", ai], ["__scopeId", "data-v-ff6dcb19"]]);
2510
- export {
2511
- _i as default
2512
- };