vue-data-ui 2.3.85 → 2.3.86

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 (169) hide show
  1. package/dist/{Arrow-JwDgP3de.js → Arrow-CJ7hmWgf.js} +1 -1
  2. package/dist/{Arrow-CLOh6oi7.cjs → Arrow-CebZn6E4.cjs} +1 -1
  3. package/dist/{BaseIcon-BysUnfCR.js → BaseIcon-B9istAKo.js} +1 -1
  4. package/dist/{BaseIcon-BBQHz_Sf.cjs → BaseIcon-DnG75_Ol.cjs} +1 -1
  5. package/dist/{DataTable-pVXaNplZ.cjs → DataTable-BA_BCbHC.cjs} +1 -1
  6. package/dist/{DataTable-MkG5Dqrn.js → DataTable-tSDSY14n.js} +2 -2
  7. package/dist/{Legend-k2mcTp7z.cjs → Legend-BOY57qwA.cjs} +1 -1
  8. package/dist/{Legend-KW7sTwN3.js → Legend-D3hovFqM.js} +1 -1
  9. package/dist/{Shape-COoEWeGM.cjs → Shape-D6jrLLku.cjs} +1 -1
  10. package/dist/{Shape-BFiZBf3X.js → Shape-XiTBfhJM.js} +1 -1
  11. package/dist/{Slicer-CALc-Q4W.js → Slicer-BMvzmCKt.js} +2 -2
  12. package/dist/{Slicer-DCyxUSsn.cjs → Slicer-sZ-DArc4.cjs} +1 -1
  13. package/dist/{Title-BaKZYHEx.cjs → Title-Ahj4TYHa.cjs} +1 -1
  14. package/dist/{Title-ISDbzCH8.js → Title-DJ2FNrSN.js} +1 -1
  15. package/dist/{Tooltip-BHmMXOej.js → Tooltip-CQpXRqRC.js} +1 -1
  16. package/dist/{Tooltip-okAYzo5Y.cjs → Tooltip-XhevgJmm.cjs} +1 -1
  17. package/dist/index-CVgBMJU6.cjs +4 -0
  18. package/dist/{index-BiuHBtkZ.js → index-D2epy0rJ.js} +4 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +3 -0
  21. package/dist/types/vue-data-ui.d.ts +3 -0
  22. package/dist/{useNestedProp-B9yDavuy.cjs → useNestedProp-B-NmF2LO.cjs} +1 -1
  23. package/dist/{useNestedProp-Ck5_RzLu.js → useNestedProp-C_ZrJBd9.js} +1 -1
  24. package/dist/usePrinter-B6qtXaHk.js +527 -0
  25. package/dist/usePrinter-DN-6Hoh5.cjs +1 -0
  26. package/dist/{vue-data-ui-CVYCyzY-.cjs → vue-data-ui-DlNasA0G.cjs} +1 -1
  27. package/dist/{vue-data-ui-CAl2KJv9.js → vue-data-ui-vegY0BJm.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-CqRRjlUU.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-CploAEkY.js → vue-ui-3d-bar-D-0SSMOt.js} +11 -10
  32. package/dist/{vue-ui-accordion-btKAUUTu.cjs → vue-ui-accordion-BaV9R6cy.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-D2fhyKpk.js → vue-ui-accordion-DzTB2FL0.js} +3 -3
  34. package/dist/vue-ui-age-pyramid-Bx4BuL3K.cjs +1 -0
  35. package/dist/{vue-ui-age-pyramid-DkaM5MrK.js → vue-ui-age-pyramid-_eo2DGen.js} +25 -24
  36. package/dist/{vue-ui-annotator-38FBI0Pn.js → vue-ui-annotator-8j2dJ0CU.js} +1 -1
  37. package/dist/{vue-ui-annotator-BMYk78DR.cjs → vue-ui-annotator-CDZtr6tp.cjs} +1 -1
  38. package/dist/{vue-ui-candlestick-CKsjq0Uw.js → vue-ui-candlestick-CsF7OSvJ.js} +12 -11
  39. package/dist/vue-ui-candlestick-NypxP0Uu.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-DjGaEuM7.js → vue-ui-carousel-table-CMHd2i-6.js} +7 -7
  41. package/dist/{vue-ui-carousel-table-Cx72LlTd.cjs → vue-ui-carousel-table-CV0eVeRd.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-DAiBfoPN.cjs → vue-ui-chestnut-B9miwyAN.cjs} +2 -2
  43. package/dist/{vue-ui-chestnut-TLyh4dIZ.js → vue-ui-chestnut-CVftKftk.js} +10 -9
  44. package/dist/{vue-ui-cursor-BunDuWpK.cjs → vue-ui-cursor-Bsrt107X.cjs} +1 -1
  45. package/dist/{vue-ui-cursor-B1xa5yua.js → vue-ui-cursor-wujy8n_T.js} +2 -2
  46. package/dist/{vue-ui-dashboard-CMZ736DL.cjs → vue-ui-dashboard-BCN0BhjL.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-DdcubzWu.js → vue-ui-dashboard-Cvy0gI52.js} +2 -2
  48. package/dist/{vue-ui-digits-z5g__gqs.cjs → vue-ui-digits-CnHgzHPI.cjs} +1 -1
  49. package/dist/{vue-ui-digits-BUpjWWnD.js → vue-ui-digits-J-WrKKHg.js} +2 -2
  50. package/dist/{vue-ui-donut-ZLpfm-XT.js → vue-ui-donut-BOhWcHY_.js} +34 -33
  51. package/dist/vue-ui-donut-CZ1iKZq6.cjs +1 -0
  52. package/dist/{vue-ui-donut-evolution-Bn4asQO3.js → vue-ui-donut-evolution-CSSYuoti.js} +12 -11
  53. package/dist/vue-ui-donut-evolution-DuY2883r.cjs +1 -0
  54. package/dist/{vue-ui-dumbbell-D2R9tJ99.js → vue-ui-dumbbell-Cm0Rp_6W.js} +11 -10
  55. package/dist/{vue-ui-dumbbell-CY6X8J1K.cjs → vue-ui-dumbbell-i9QcsSVO.cjs} +2 -2
  56. package/dist/{vue-ui-flow-Dd5uPNTQ.js → vue-ui-flow-0m7a1NP7.js} +10 -9
  57. package/dist/vue-ui-flow-DXCBGdQT.cjs +1 -0
  58. package/dist/vue-ui-galaxy-D6GyjAnX.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-B7CoWLhj.js → vue-ui-galaxy-DCHEdZAl.js} +12 -11
  60. package/dist/{vue-ui-gauge-CGh_m922.js → vue-ui-gauge-HcM2JJpg.js} +29 -28
  61. package/dist/vue-ui-gauge-wbHQGQro.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-D5Kn7w7L.cjs → vue-ui-gizmo-B-zMyi1m.cjs} +1 -1
  63. package/dist/{vue-ui-gizmo-BY3hnKSH.js → vue-ui-gizmo-Bfo_nUnZ.js} +2 -2
  64. package/dist/{vue-ui-heatmap-yYN0u0I6.js → vue-ui-heatmap-CxIHmv0t.js} +41 -40
  65. package/dist/vue-ui-heatmap-Du2vI5Ae.cjs +1 -0
  66. package/dist/{vue-ui-kpi-Q20yM3IP.cjs → vue-ui-kpi-BOe7-M9V.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-B4zr_geL.js → vue-ui-kpi-DibULfkp.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-GFSZofpE.cjs → vue-ui-mini-loader-Bv7l-Kx3.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-GImbaGsN.js → vue-ui-mini-loader-qFRhERid.js} +2 -2
  70. package/dist/{vue-ui-molecule-DmrB3kgA.js → vue-ui-molecule-4cIGPnWg.js} +290 -286
  71. package/dist/vue-ui-molecule-eOj3ZjvT.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-sEkQtzI2.js → vue-ui-mood-radar-BTe21WKk.js} +79 -78
  73. package/dist/vue-ui-mood-radar-tUFqqekd.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts-DvpZLcYd.js → vue-ui-nested-donuts-BVzabOga.js} +35 -34
  75. package/dist/vue-ui-nested-donuts-BigBLrFR.cjs +17 -0
  76. package/dist/{vue-ui-onion-DQMLPe3M.js → vue-ui-onion-C3TAKqro.js} +12 -11
  77. package/dist/vue-ui-onion-_ZC3vbIS.cjs +5 -0
  78. package/dist/{vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs → vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs} +2 -2
  79. package/dist/{vue-ui-parallel-coordinate-plot-DN2LPNyS.js → vue-ui-parallel-coordinate-plot-CKoCQXqj.js} +13 -12
  80. package/dist/vue-ui-quadrant-B67wGTic.cjs +1 -0
  81. package/dist/{vue-ui-quadrant-D2GpeXI6.js → vue-ui-quadrant-CKnyfJoi.js} +13 -12
  82. package/dist/vue-ui-quick-chart-DEjdx0AB.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-C5K9DfUV.js → vue-ui-quick-chart-DZDYYnsI.js} +60 -59
  84. package/dist/vue-ui-radar-Cm_QkYGb.cjs +1 -0
  85. package/dist/{vue-ui-radar-B9TZPujK.js → vue-ui-radar-v9yayJxu.js} +13 -12
  86. package/dist/{vue-ui-rating-B0pNsmGB.js → vue-ui-rating-Cc_N7qbe.js} +2 -2
  87. package/dist/{vue-ui-rating-DpxzUDQq.cjs → vue-ui-rating-DV4cCZbB.cjs} +1 -1
  88. package/dist/{vue-ui-relation-circle-DSnlpLHt.js → vue-ui-relation-circle-Clqo4kkb.js} +46 -45
  89. package/dist/{vue-ui-relation-circle-D3B-lpdM.cjs → vue-ui-relation-circle-DcpIVbI6.cjs} +1 -1
  90. package/dist/{vue-ui-rings-BuvFDBXg.js → vue-ui-rings-D27xNq9q.js} +12 -11
  91. package/dist/{vue-ui-rings-cmeFVitd.cjs → vue-ui-rings-DTn3t8Ku.cjs} +2 -2
  92. package/dist/{vue-ui-scatter-D_chvOSJ.js → vue-ui-scatter-C07Mon-6.js} +13 -12
  93. package/dist/vue-ui-scatter-CXbrqLFm.cjs +1 -0
  94. package/dist/{vue-ui-screenshot-DSHeHshf.js → vue-ui-screenshot-CsxqbqlJ.js} +1 -1
  95. package/dist/{vue-ui-screenshot-CwrXLMru.cjs → vue-ui-screenshot-D8TAvQYN.cjs} +1 -1
  96. package/dist/{vue-ui-skeleton-Du4zw-c1.js → vue-ui-skeleton-BLiYyX95.js} +2 -2
  97. package/dist/{vue-ui-skeleton-DJhwv2oY.cjs → vue-ui-skeleton-Br1K3exH.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-BtQLJ7rA.js → vue-ui-smiley-BUHatT3Z.js} +2 -2
  99. package/dist/{vue-ui-smiley-BNkk6suC.cjs → vue-ui-smiley-CR_TkSYT.cjs} +1 -1
  100. package/dist/{vue-ui-spark-trend-DFIjxBTY.cjs → vue-ui-spark-trend-CnUz6s1m.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-BgA79g7a.js → vue-ui-spark-trend-GY2CfYRt.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-BlwQfhlY.cjs → vue-ui-sparkbar-DaFwUA6Z.cjs} +1 -1
  103. package/dist/{vue-ui-sparkbar-DQAWZReF.js → vue-ui-sparkbar-tdgek1gv.js} +3 -3
  104. package/dist/{vue-ui-sparkgauge-CCApU38s.js → vue-ui-sparkgauge-1zu5KmTA.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-BCRSQDpt.cjs → vue-ui-sparkgauge-D8P01Hem.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram-PKTt4EmH.js → vue-ui-sparkhistogram-b68QStxA.js} +4 -4
  107. package/dist/{vue-ui-sparkhistogram-CTxG1Vtn.cjs → vue-ui-sparkhistogram-mg6yuwLH.cjs} +1 -1
  108. package/dist/{vue-ui-sparkline-BUaixngQ.cjs → vue-ui-sparkline-CAqav9Gn.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-EESAiZyt.js → vue-ui-sparkline-CMmtp8MK.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-TnLNixdf.js → vue-ui-sparkstackbar-Cz8tOM3m.js} +3 -3
  111. package/dist/{vue-ui-sparkstackbar-iQnc0zcO.cjs → vue-ui-sparkstackbar-DOrquZvw.cjs} +1 -1
  112. package/dist/vue-ui-stackbar-DUa5F_Zl.cjs +6 -0
  113. package/dist/{vue-ui-stackbar-Ci04sup3.js → vue-ui-stackbar-DeQkP1dj.js} +13 -12
  114. package/dist/vue-ui-strip-plot-KNL9ToYG.cjs +1 -0
  115. package/dist/{vue-ui-strip-plot-DbvW0BuF.js → vue-ui-strip-plot-vqOCzdFV.js} +12 -11
  116. package/dist/{vue-ui-table-328De4vk.cjs → vue-ui-table-BCdHNku5.cjs} +1 -1
  117. package/dist/{vue-ui-table-CamkBCdL.js → vue-ui-table-DDdVqdHt.js} +1 -1
  118. package/dist/vue-ui-table-heatmap-BJDnZMZN.cjs +1 -0
  119. package/dist/{vue-ui-table-heatmap-D-YdrvGV.js → vue-ui-table-heatmap-DQg_jtYq.js} +27 -26
  120. package/dist/{vue-ui-table-sparkline-Dg2RKv6f.js → vue-ui-table-sparkline-Bg-VFq7X.js} +25 -24
  121. package/dist/{vue-ui-table-sparkline-Cmg7wnQ0.cjs → vue-ui-table-sparkline-D8DJxb5J.cjs} +1 -1
  122. package/dist/{vue-ui-thermometer-jWHbZTc2.js → vue-ui-thermometer-CajBbbYc.js} +51 -50
  123. package/dist/vue-ui-thermometer-eYM8DX7u.cjs +1 -0
  124. package/dist/{vue-ui-timer-BPepr5eV.js → vue-ui-timer-D3VRVK-8.js} +4 -4
  125. package/dist/{vue-ui-timer-B_FyRAU7.cjs → vue-ui-timer-RclP4Tql.cjs} +1 -1
  126. package/dist/{vue-ui-tiremarks-DW8Q2IBl.js → vue-ui-tiremarks-BT0k_3xi.js} +48 -47
  127. package/dist/{vue-ui-tiremarks-CaJWlyz8.cjs → vue-ui-tiremarks-Bc8bBBAw.cjs} +1 -1
  128. package/dist/{vue-ui-treemap-B9GpvA0k.cjs → vue-ui-treemap-BjWDt2b2.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-CWu43qLo.js → vue-ui-treemap-DMhe3zCm.js} +13 -12
  130. package/dist/vue-ui-vertical-bar-DWzafNBH.cjs +4 -0
  131. package/dist/{vue-ui-vertical-bar-CndASePh.js → vue-ui-vertical-bar-hH9R9V-K.js} +13 -12
  132. package/dist/{vue-ui-waffle-c9ycdoKz.cjs → vue-ui-waffle-BvYE9hAY.cjs} +1 -1
  133. package/dist/{vue-ui-waffle-CdyqwJwN.js → vue-ui-waffle-DnNd6Iba.js} +46 -45
  134. package/dist/{vue-ui-wheel-Byq_BLhl.js → vue-ui-wheel-Bx9_m-7W.js} +34 -33
  135. package/dist/vue-ui-wheel-CVBmY6h7.cjs +1 -0
  136. package/dist/{vue-ui-word-cloud-BVOcsuMP.cjs → vue-ui-word-cloud-3R-mYkIW.cjs} +1 -1
  137. package/dist/{vue-ui-word-cloud-BRxN5uFD.js → vue-ui-word-cloud-DUk0Xt8q.js} +10 -9
  138. package/dist/{vue-ui-xy-DgEdZz0O.js → vue-ui-xy-FtaqoNK8.js} +161 -160
  139. package/dist/{vue-ui-xy-canvas-BI7jUOTn.js → vue-ui-xy-canvas-Bp4PTl_E.js} +54 -53
  140. package/dist/{vue-ui-xy-canvas-Td0WNYN0.cjs → vue-ui-xy-canvas-Ctw_3PzN.cjs} +2 -2
  141. package/dist/vue-ui-xy-rX-aml0b.cjs +3 -0
  142. package/package.json +1 -1
  143. package/dist/index-D-vy9N1v.cjs +0 -4
  144. package/dist/usePrinter-Do8KiK5h.js +0 -513
  145. package/dist/usePrinter-P4nLcXX-.cjs +0 -1
  146. package/dist/vue-ui-3d-bar-DlUqKETN.cjs +0 -19
  147. package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +0 -1
  148. package/dist/vue-ui-candlestick-BJulnyV3.cjs +0 -2
  149. package/dist/vue-ui-donut-TY2Z9Ljx.cjs +0 -1
  150. package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +0 -1
  151. package/dist/vue-ui-flow-DswsuPwy.cjs +0 -1
  152. package/dist/vue-ui-galaxy-Dxy6jzus.cjs +0 -1
  153. package/dist/vue-ui-gauge-CWd_ol6u.cjs +0 -1
  154. package/dist/vue-ui-heatmap-AUm42a1v.cjs +0 -1
  155. package/dist/vue-ui-molecule-C9FcDH4x.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-CRwStVTV.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-BcOgxtZV.cjs +0 -17
  158. package/dist/vue-ui-onion-C9v9YjdJ.cjs +0 -5
  159. package/dist/vue-ui-quadrant-ulY-rCMI.cjs +0 -1
  160. package/dist/vue-ui-quick-chart-DFj17h6h.cjs +0 -15
  161. package/dist/vue-ui-radar-KA287Tp-.cjs +0 -1
  162. package/dist/vue-ui-scatter-BWPqoSUN.cjs +0 -1
  163. package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +0 -6
  164. package/dist/vue-ui-strip-plot-CowHumiU.cjs +0 -1
  165. package/dist/vue-ui-table-heatmap-CCHre3Gt.cjs +0 -1
  166. package/dist/vue-ui-thermometer-BDeKErC9.cjs +0 -1
  167. package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +0 -4
  168. package/dist/vue-ui-wheel-B3BMfKmd.cjs +0 -1
  169. package/dist/vue-ui-xy-CsS5ny0q.cjs +0 -3
@@ -1,3 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./pdf-Cz3729tZ.cjs"),p=require("./usePrinter-P4nLcXX-.cjs"),h=require("./index-D-vy9N1v.cjs"),z=require("./DataTable-pVXaNplZ.cjs"),V=require("./Title-BaKZYHEx.cjs"),G=require("./Tooltip-okAYzo5Y.cjs"),M=require("./Shape-COoEWeGM.cjs"),P=require("./BaseIcon-BBQHz_Sf.cjs"),T=require("./vue-ui-table-sparkline-Cmg7wnQ0.cjs"),D=require("./vue-ui-skeleton-DJhwv2oY.cjs"),R=require("./Slicer-DCyxUSsn.cjs"),H=require("./vue-ui-accordion-btKAUUTu.cjs"),B=require("./useNestedProp-B9yDavuy.cjs"),e=require("vue"),W=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=h.createUid(),Y={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:z.DataTable,Shape:M._sfc_main,Title:V._sfc_main,Tooltip:G._sfc_main,UserOptions:p.UserOptions,BaseIcon:P.default,TableSparkline:T.default,Skeleton:D.default,Slicer:R.Slicer,Accordion:H.default},data(){this.dataset.forEach((n,u)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:u})});const a=Math.max(...this.dataset.map(n=>n.series.length)),i={start:0,end:a};return{themePalettes:h.themePalettes,themes:h.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:h.opacity,useSafeValues:!0,palette:h.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:h.createUid(),step:0,tableStep:0,titleStep:0,slicer:i,__to__:null,maxX:a,showSparklineTable:!0,segregateStep:0,sliderId:q,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null}},watch:{dataset:{handler(a,i){this.maxX=Math.max(...this.dataset.map(n=>n.series.length)),this.slicer={start:0,end:this.maxX},this.slicerStep+=1,this.segregateStep+=1},deep:!0},config:{handler(a,i){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1},deep:!0}},computed:{minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const a=this.datasetWithIds.filter(r=>!this.segregatedSeries.includes(r.id)),i=Math.max(...a.map(r=>r.series.length)),n=[];for(let r=0;r<i;r+=1)n.push(a.map(t=>t.series[r]||0).reduce((t,g)=>(t||0)+(g||0),0));const u=Math.min(...n);return n.map(r=>r+(u<0?Math.abs(u):0))},customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const a=this.lineSet.map(r=>({name:r.name,color:r.color,scale:r.individualScale,scaleYLabels:r.scaleYLabels,zero:r.zeroPosition,max:r.individualMax,scaleLabel:r.scaleLabel||"",id:r.id,yOffset:r.yOffset||0,individualHeight:r.individualHeight||this.drawingArea.height,autoScaleYLabels:r.autoScaleYLabels})),i=this.barSet.map(r=>({name:r.name,color:r.color,scale:r.individualScale,scaleYLabels:r.scaleYLabels,zero:r.zeroPosition,max:r.individualMax,scaleLabel:r.scaleLabel||"",id:r.id,yOffset:r.yOffset||0,individualHeight:r.individualHeight||this.drawingArea.height})),n=this.plotSet.map(r=>({name:r.name,color:r.color,scale:r.individualScale,scaleYLabels:r.scaleYLabels,zero:r.zeroPosition,max:r.individualMax,scaleLabel:r.scaleLabel||"",id:r.id,yOffset:r.yOffset||0,individualHeight:r.individualHeight||this.drawingArea.height})),u=[...a,...i,...n].flatMap(r=>r).length;return[...a,...i,...n].flatMap((r,t)=>({id:r.id,scaleLabel:r.scaleLabel,name:r.name,color:r.color,scale:r.scale,yOffset:r.yOffset,individualHeight:r.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/u*(t+1),yLabels:r.scaleYLabels||r.scale.ticks.map(g=>({y:g>=0?r.zero-r.individualHeight*(g/r.max):r.zero+r.individualHeight*Math.abs(g)/r.max,value:g}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const a=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(a,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(a){return a}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(a=>a.show):this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreas(){if(Array.isArray(this.FINAL_CONFIG.chart.highlightArea))return this.FINAL_CONFIG.chart.highlightArea.map(i=>({...i,span:i.from===i.to?1:i.to<i.from?0:i.to-i.from+1}));const a=this.FINAL_CONFIG.chart.highlightArea;return[{...a,span:a.from===a.to?1:a.to<a.from?0:a.to-a.from+1}]},xPadding(){return this.FINAL_CONFIG.chart.grid.position==="middle"?0:this.drawingArea.width/this.maxSeries/2},relativeZero(){return this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((a,i)=>({...a,id:`uniqueId_${i}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((a,i)=>({...a,series:a.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(a.color?a.color:this.customPalette[i]?this.customPalette[i]:this.palette[i]),id:`uniqueId_${i}`})):this.dataset},relativeDataset(){return this.safeDataset.map((a,i)=>({...a,series:a.series.map(n=>n+this.relativeZero),absoluteValues:a.series})).filter(a=>!this.segregatedSeries.includes(a.id))},tableSparklineDataset(){return this.relativeDataset.map(a=>{const i=a.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:a.id,name:a.name,color:a.color,values:this.fillArray(this.maxSeries,i)}})},tableSparklineConfig(){return{responsiveBreakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint,roundingValues:this.FINAL_CONFIG.table.rounding,showAverage:!1,showMedian:!1,showTotal:!1,fontFamily:this.FINAL_CONFIG.chart.fontFamily,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix,colNames:JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),thead:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},tbody:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},userOptions:{show:!1}}},absoluteDataset(){return this.safeDataset.map((a,i)=>({absoluteIndex:i,...a,series:a.series.map(n=>n+this.relativeZero),absoluteValues:a.series,segregate:()=>this.segregate(a),isSegregated:this.segregatedSeries.includes(a.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="bar").map((a,i)=>{this.checkAutoScaleError(a);const n=Math.min(...a.absoluteValues.filter(c=>![null,void 0].includes(c))),u=Math.max(...a.absoluteValues.filter(c=>![null,void 0].includes(c))),t={ratios:a.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(u-n)),valueMin:n,valueMax:u<0?0:u},g={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||Math.min(...a.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...a.absoluteValues.filter(c=>![null,void 0].includes(c)))},k=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,x=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*x:g.max,k),b=this.calculateNiceScaleWithExactExtremes(t.valueMin,t.valueMax===t.valueMin?t.valueMax*x:t.valueMax,k),S=m.min>=0?0:Math.abs(m.min),F=0,C=m.max+S,_=b.max+Math.abs(F),N=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,l=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,o=this.drawingArea.bottom-N-l*S/C,s=this.drawingArea.bottom-N-l*F/_,d=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,L=a.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale?(a.absoluteValues[f]+S)/C:this.ratioToMax(c),v=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*f:this.drawingArea.left+this.slot.bar*i+this.slot.bar*f*d-this.barSlot/2-i*this.barPeriodGap;return{yOffset:this.checkNaN(N),individualHeight:this.checkNaN(l),x:this.checkNaN(v),y:this.drawingArea.bottom-N-l*O,value:a.absoluteValues[f],zeroPosition:this.checkNaN(o),individualMax:this.checkNaN(C),comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),w=a.absoluteValues.map(c=>b.min>=0?(c-Math.abs(b.min))/(b.max-Math.abs(b.min)):(c+Math.abs(b.min))/(b.max+Math.abs(b.min))),A=a.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*f:this.drawingArea.left-this.slot.bar/2+this.slot.bar*i+this.slot.bar*f*this.absoluteDataset.filter(v=>v.type==="bar").filter(v=>!this.segregatedSeries.includes(v.id)).length;return{yOffset:this.checkNaN(N),individualHeight:this.checkNaN(l),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(N)-(this.checkNaN(l)*w[f]||0)),value:a.absoluteValues[f],zeroPosition:this.checkNaN(o),individualMax:this.checkNaN(C),comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),I=m.ticks.map(c=>({y:c>=0?o-l*(c/C):o+l*Math.abs(c)/C,value:c,prefix:a.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:a.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:a})),y=b.ticks.map(c=>{const f=(c-b.min)/(b.max-b.min);return{y:c>=0?s-l*f:s+l*f,value:c,prefix:a.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:a.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:a}});return{...a,yOffset:N,autoScaleYLabels:y,individualHeight:l,scaleYLabels:a.autoScaling?y:I,individualScale:a.autoScaling?b:m,individualMax:a.autoScaling?_:C,zeroPosition:a.autoScaling?s:o,plots:a.autoScaling?A:L}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(a=>!this.segregatedSeries.includes(a.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="line").map(a=>{this.checkAutoScaleError(a);const i=Math.min(...a.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...a.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,r={ratios:a.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-i)/(n-i)),valueMin:i,valueMax:n},t={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||(Math.min(...a.absoluteValues)>0?0:Math.min(...a.absoluteValues))},g=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,x=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*k:t.max,g),m=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*k:r.valueMax,g),b=x.min>=0?0:Math.abs(x.min),S=0,F=x.max+Math.abs(b),C=m.max+Math.abs(S),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,l=this.drawingArea.bottom-_-N*b/F,o=this.drawingArea.bottom-_-N*S/C,s=a.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale?(a.absoluteValues[f]+Math.abs(b))/F:this.ratioToMax(c);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-_-N*O),value:a.absoluteValues[f],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),d=a.absoluteValues.map(c=>m.min>=0?(c-Math.abs(m.min))/(m.max-Math.abs(m.min)):(c+Math.abs(m.min))/(m.max+Math.abs(m.min))),L=a.series.map((c,f)=>{if(![void 0,null].includes(a.absoluteValues[f]))return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-_-(N*d[f]||0)),value:a.absoluteValues[f],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),w=this.createSmoothPath(s),A=this.createSmoothPath(L),I=x.ticks.map(c=>({y:c>=0?l-N*(c/F):l+N*Math.abs(c)/F,value:c,prefix:a.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:a.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:a})),y=m.ticks.map(c=>{const f=(c-m.min)/(m.max-m.min);return{y:c>=0?o-N*f:o+N*f,value:c,prefix:a.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:a.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:a}});return{...a,yOffset:_,autoScaleYLabels:y,individualHeight:N,scaleYLabels:a.autoScaling?y:I,individualScale:a.autoScaling?m:x,individualMax:a.autoScaling?C:F,zeroPosition:a.autoScaling?o:l,curve:a.autoScaling?A:w,plots:a.autoScaling?L:s,area:a.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(a.autoScaling?L:s,a.autoScaling?o:l):this.createArea(s):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="plot").map(a=>{this.checkAutoScaleError(a);const i=Math.min(...a.absoluteValues.filter(I=>![null,void 0].includes(I))),n=Math.max(...a.absoluteValues.filter(I=>![null,void 0].includes(I)))||1,r={ratios:a.absoluteValues.filter(I=>![null,void 0].includes(I)).map(I=>(I-i)/(n-i)),valueMin:i,valueMax:n},t={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||Math.min(...a.absoluteValues)>0?0:Math.min(...a.absoluteValues)},g=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,x=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*k:t.max,g),m=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*k:r.valueMax,g),b=x.min>=0?0:Math.abs(x.min),S=0,F=x.max+b,C=m.max+Math.abs(S),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,l=this.drawingArea.bottom-_-N*b/F,o=this.drawingArea.bottom-_-N*S/C,s=a.series.map((I,y)=>{const c=this.mutableConfig.useIndividualScale?(a.absoluteValues[y]+Math.abs(b))/F:this.ratioToMax(I);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-N*c),value:a.absoluteValues[y],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[y]||""}}),d=a.absoluteValues.map(I=>m.min>=0?(I-Math.abs(m.min))/(m.max-Math.abs(m.min)):(I+Math.abs(m.min))/(m.max+Math.abs(m.min))),L=a.series.map((I,y)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-(N*d[y]||0)),value:a.absoluteValues[y],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[y]||""})),w=x.ticks.map(I=>({y:I>=0?l-N*(I/F):l+N*Math.abs(I)/F,value:I,prefix:a.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:a.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:a})),A=m.ticks.map(I=>{const y=(I-m.min)/(m.max-m.min);return{y:I>=0?o-N*y:o+N*y,value:I,prefix:a.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:a.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:a}});return{...a,yOffset:_,autoScaleYLabels:A,individualHeight:N,scaleYLabels:a.autoScaling?A:w,individualScale:a.autoScaling?m:x,individualMax:a.autoScaling?C:F,zeroPosition:a.autoScaling?o:l,plots:a.autoScaling?L:s}})},drawingArea(){const a=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(i=>!this.segregatedSeries.includes(i.id)).length*(this.mutableConfig.isStacked?0:this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth):0;return{top:this.FINAL_CONFIG.chart.padding.top,right:this.width-this.FINAL_CONFIG.chart.padding.right,bottom:this.height-this.FINAL_CONFIG.chart.padding.bottom,left:this.FINAL_CONFIG.chart.padding.left+a,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+a)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(a=>!this.segregatedSeries.includes(a.id)).map(a=>Math.max(...a.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const a=Math.min(...this.safeDataset.filter(i=>!this.segregatedSeries.includes(i.id)).map(i=>Math.min(...i.series)));return a>0?0:a},niceScale(){return this.calculateNiceScaleWithExactExtremes(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(a=>a.type==="bar").filter(a=>!this.segregatedSeries.includes(a.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const a=this.safeDataset.filter(i=>i.type==="bar").filter(i=>!this.segregatedSeries.includes(i.id)).length;return this.drawingArea.width/this.maxSeries/a-this.barPeriodGap*a},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(a=>a!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const a=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),i=[];return this.timeLabels.forEach((n,u)=>{const r=[n];this.relativeDataset.forEach(t=>{r.push(this.canShowValue(t.absoluteValues[u])?Number(t.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),i.push(r)}),{head:a,body:i}},dataTable(){const a=this.FINAL_CONFIG.table.showSum;let i=[""].concat(this.relativeDataset.map(t=>t.name));a&&(i=i.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>'));let n=[];for(let t=0;t<this.maxSeries;t+=1){const g=this.relativeDataset.map(k=>k.absoluteValues[t]??0).reduce((k,x)=>k+x,0);n.push([this.timeLabels[t]??"-"].concat(this.relativeDataset.map(k=>this.applyDataLabel(k.type==="line"?this.FINAL_CONFIG.line.labels.formatter:k.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,k.absoluteValues[t]??0,this.dataLabel({p:k.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:k.absoluteValues[t]??0,s:k.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(a?(g??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const u={th:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},td:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},breakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint},r=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(t=>t.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:i,body:n,config:u,colNames:r}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(a=>({shape:a.shape||null,name:a.name,color:a.color,type:a.type,value:a.absoluteValues.find((i,n)=>n===this.selectedSerieIndex),comments:a.comments||[],prefix:a.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:a.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let a="",i=this.selectedSeries.map(r=>r.value).filter(r=>this.isSafeValue(r)&&r!==null).reduce((r,t)=>Math.abs(r)+Math.abs(t),0);const n=this.timeLabels[this.selectedSerieIndex],u=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(u)&&this.functionReturnsString(()=>u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(a+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(r=>{if(this.isSafeValue(r.value)){let t="",g="";switch(this.icons[r.type]){case"bar":t=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${r.color}" /></svg>`;break;case"line":!r.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(r.shape)?g=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" />`:r.shape==="triangle"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="square"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="diamond"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="pentagon"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="hexagon"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:r.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" points="${h.createStar({plot:{x:10,y:8},radius:4})}" />`),t=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${r.color}" />${g}</svg>`;break;case"plot":if(!r.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(r.shape)){t=`<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="${r.color}" /></svg>`;break}if(r.shape==="star"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" points="${h.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(r.shape==="triangle"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="square"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="diamond"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="pentagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="hexagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}a+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${t}</div> ${r.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(r.type==="line"?this.FINAL_CONFIG.line.labels.formatter:r.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,r.value,this.dataLabel({p:r.prefix,v:r.value,s:r.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:r}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${h.dataLabel({v:this.checkNaN(Math.abs(r.value)/i*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&r.comments.length&&r.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(a+=`<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${a}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(a=>({y:a>=0?this.zero-this.drawingArea.height*this.ratioToMax(a):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(a)),value:a,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){this.prepareChart(),document.addEventListener("mousemove",a=>{this.clientPosition={x:a.clientX,y:a.clientY}})},methods:{abbreviate:h.abbreviate,adaptColorToBackground:h.adaptColorToBackground,applyDataLabel:h.applyDataLabel,assignStackRatios:h.assignStackRatios,calcLinearProgression:h.calcLinearProgression,calculateNiceScaleWithExactExtremes:h.calculateNiceScaleWithExactExtremes,checkNaN:h.checkNaN,closestDecimal:h.closestDecimal,convertColorToHex:h.convertColorToHex,convertConfigColors:h.convertConfigColors,convertCustomPalette:h.convertCustomPalette,createCsvContent:h.createCsvContent,createSmoothPath:h.createSmoothPath,createTSpans:h.createTSpans,dataLabel:h.dataLabel,downloadCsv:h.downloadCsv,error:h.error,functionReturnsString:h.functionReturnsString,hasDeepProperty:h.hasDeepProperty,img:p.saveAsImage,isFunction:h.isFunction,isSafeValue:h.isSafeValue,objectIsEmpty:h.objectIsEmpty,pdf:E.pdf,setOpacity:h.setOpacity,shiftHue:h.shiftHue,translateSize:h.translateSize,treeShake:h.treeShake,useMouse:G.useMouse,useNestedProp:B.useNestedProp,getHighlightAreaPosition(a){const i=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(a.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*a.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*a.span;return{x:i<this.drawingArea.left?this.drawingArea.left:i,width:n}},prepareConfig(){const a=h.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return a;const i=this.useNestedProp({userConfig:this.config,defaultConfig:a});return this.config&&this.hasDeepProperty(this.config,"chart.highlightArea")&&(Array.isArray(this.config.chart.highlightArea)?i.chart.highlightArea=this.config.chart.highlightArea:i.chart.highlightArea=[this.config.chart.highlightArea]),this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMin")?i.chart.grid.labels.yAxis.scaleMin=this.config.chart.grid.labels.yAxis.scaleMin:i.chart.grid.labels.yAxis.scaleMin=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMax")?i.chart.grid.labels.yAxis.scaleMax=this.config.chart.grid.labels.yAxis.scaleMax:i.chart.grid.labels.yAxis.scaleMax=null,i.theme?{...B.useNestedProp({userConfig:this.themes.vue_ui_xy[i.theme]||this.config,defaultConfig:i}),customPalette:this.themePalettes[i.theme]||this.palette}:i},prepareChart(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((a,i)=>{[null,void 0].includes(a.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:i})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(a=>{a.series.forEach((i,n)=>{this.isSafeValue(i)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
2
- -----> The serie '${a.name}' contains the value '${i}' at index ${n}.
3
- '${i}' was converted to null to allow the chart to display.`)})}),this.mutableConfig={dataLabels:{show:!0},showTooltip:this.FINAL_CONFIG.chart.tooltip.show===!0,showTable:this.FINAL_CONFIG.showTable===!0,isStacked:this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,useIndividualScale:this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},this.FINAL_CONFIG.responsive){const i=this.$refs.chart.parentNode,{height:n,width:u}=i.getBoundingClientRect();let r=null,t=0;this.FINAL_CONFIG.chart.title.show&&(r=this.$refs.chartTitle,t=r.getBoundingClientRect().height);let g=null,k=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(g=this.$refs.chartSlicer.$el,k=g.getBoundingClientRect().height);let x=null,m=0;this.FINAL_CONFIG.chart.legend.show&&(x=this.$refs.chartLegend,m=x.getBoundingClientRect().height),this.height=n-t-m-k,this.width=u,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(S=>{for(const F of S)this.$refs.chartTitle&&(t=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(k=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(m=this.$refs.chartLegend.getBoundingClientRect().height),this.height=F.contentBoxSize[0].blockSize-t-m-k-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()}).observe(i)}else 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},selectMinimapIndex(a){this.selectedMinimapIndex=a},convertSizes(){this.fontSizes.dataLabels=this.translateSize({relator:this.height,adjuster:400,source:this.FINAL_CONFIG.chart.grid.labels.fontSize,threshold:10,fallback:10}),this.fontSizes.yAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,threshold:10,fallback:10}),this.fontSizes.xAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,threshold:10,fallback:10}),this.fontSizes.plotLabels=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.chart.labels.fontSize,threshold:10,fallback:10}),this.plotRadii.plot=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.plot.radius,threshold:1,fallback:1}),this.plotRadii.line=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.line.radius,threshold:1,fallback:1})},toggleStack(){this.mutableConfig.isStacked=!this.mutableConfig.isStacked,this.mutableConfig.isStacked?this.mutableConfig.useIndividualScale=!0:this.mutableConfig.useIndividualScale=this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},toggleTable(){this.mutableConfig.showTable=!this.mutableConfig.showTable},toggleLabels(){this.mutableConfig.dataLabels.show=!this.mutableConfig.dataLabels.show},toggleTooltip(){this.mutableConfig.showTooltip=!this.mutableConfig.showTooltip},checkAutoScaleError(a){a.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(a){if(!a[0])return[-10,-10,"",-10,-10];const i={x:a[0].x,y:this.zero},n={x:a.at(-1).x,y:this.zero},u=[];return a.forEach(r=>{u.push(`${r.x},${r.y} `)}),[i.x,i.y,...u,n.x,n.y].toString()},createIndividualArea(a,i){if(!a[0])return[-10,-10,"",-10,-10];const n={x:a[0]?a[0].x:Math.min(...a.filter(t=>!!t).map(t=>t.x)),y:i},u={x:a.at(-1)?a.at(-1).x:Math.min(...a.filter(t=>!!t).map(t=>t.x)),y:i},r=[];return a.filter(t=>!!t).forEach(t=>{r.push(`${t.x},${t.y} `)}),[n.x,n.y,...r,u.x,u.y].toString()},createStar:h.createStar,createPolygonPath:h.createPolygonPath,fillArray(a,i){let n=Array(a).fill(0);for(let u=0;u<i.length&&u<a;u+=1)n[u]=i[u];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(a=>a.series.length))},this.slicerStep+=1},calcRectHeight(a){return a.value>=0?this.checkNaN(this.zero-a.y<=0?1e-5:this.zero-a.y):this.checkNaN(a.y-this.zero<=0?1e-5:a.y-this.zero)},calcIndividualHeight(a){return a.value>=0?this.checkNaN(a.zeroPosition-a.y<=0?1e-5:a.zeroPosition-a.y):this.checkNaN(a.y-a.zeroPosition<=0?1e-5:a.zeroPosition-a.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(a){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?a.x+this.drawingArea.width/this.maxSeries*.05:a.x+this.slot.bar/2},calcRectY(a){return a.value>=0?a.y:this.zero},calcIndividualRectY(a){return a.value>=0?a.y:[null,void 0,NaN,1/0,-1/0].includes(a.zeroPosition)?0:a.zeroPosition},canShowValue(a){return![null,void 0,NaN,1/0,-1/0].includes(a)},findClosestValue(a,i){let n=i[0],u=Math.abs(a-i[0]);for(let r=1;r<i.length;r+=1){const t=Math.abs(a-i[r]);t<u&&i[r]<a&&(n=i[r],u=t)}return n},ratioToMax(a){return a/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(a){this.$emit("selectX",{dataset:this.relativeDataset.map(i=>({name:i.name,value:[null,void 0,NaN].includes(i.absoluteValues[a])?null:i.absoluteValues[a],color:i.color,type:i.type})),index:a,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a]})},getData(){return this.absoluteDataset.map(a=>({values:a.absoluteValues,color:a.color,name:a.name,type:a.type}))},segregate(a){if(this.segregatedSeries.includes(a.id))this.segregatedSeries=this.segregatedSeries.filter(i=>i!==a.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(a.id)}this.$emit("selectLegend",this.relativeDataset.map(i=>({name:i.name,values:i.absoluteValues,color:i.color,type:i.type}))),this.segregateStep+=1},toggleTooltipVisibility(a,i=null){this.isTooltip=a,a?this.selectedSerieIndex=i:this.selectedSerieIndex=null},toggleFullscreen(a){this.isFullscreen=a,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},100)},generateCsv(){const a=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],i=["",...this.table.head.map(t=>t.label)],n=this.table.body,u=a.concat([i]).concat(n),r=this.createCsvContent(u);this.downloadCsv({csvContent:r,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.img({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"}).finally(()=>{this.isImaging=!1})},100)}}},X=["id"],U=["viewBox"],Z={key:0},J={class:"vue-ui-xy-grid"},K=["stroke","x1","x2","y1","y2"],Q=["stroke","x1","x2","y1","y2"],j={key:1},$=["x1","x2","y1","y2","stroke"],ee=["x1","x2","y1","y2","stroke"],te=["x1","x2","y1","y2","stroke"],le={key:3},ae=["x1","x2","y1","y2","stroke"],re=["id"],ie=["stop-color"],se=["stop-color"],oe=["stop-color"],ne=["id"],ce=["stop-color"],he=["stop-color"],de=["stop-color"],ue=["id"],me=["stop-color"],ge=["stop-color"],Ne=["id"],fe=["stop-color"],ke=["stop-color"],Ie=["id"],xe=["stop-color"],be=["stop-color"],Fe=["x","y","height","width","fill"],ye=["x","y","width"],_e=["x","y","height","width","fill"],Ce=["x","y","height","width","rx","fill","stroke","stroke-width"],Se=["width","x","y"],Le={key:0},Ae=["id"],we=["fill"],Oe=["x1","x2","y1","y2","stroke","marker-end"],ve=["x","y","font-size","fill"],pe=["stroke","x1","x2","y1","y2"],Ge={key:2},Be=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ee=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],ze={key:4},Ve=["x1","x2","y1","y2","stroke","stroke-width"],Me=["fill","font-size","transform"],Pe=["x1","x2","y1","y2","stroke"],Te=["x","y","font-size","fill"],De=["x1","x2","y1","y2","stroke"],Re=["x","y","font-size","fill"],He=["width","x","y"],We={style:{width:"100%"}},qe={key:0},Ye=["id"],Xe=["fill"],Ue=["x1","x2","y1","y2","stroke","marker-end"],Ze=["x","y","font-size","fill"],Je=["d","stroke","stroke-width","stroke-dasharray"],Ke={key:1},Qe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],je={key:0},$e=["d","fill"],et=["d","fill"],tt=["d","stroke","stroke-width","stroke-dasharray"],lt={key:2},at=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],rt=["width","x","y"],it={style:{width:"100%"}},st={key:3},ot=["id"],nt=["fill"],ct=["x1","x2","y1","y2","stroke","marker-end"],ht=["x","y","font-size","fill"],dt={key:5},ut=["x","y","font-size","fill"],mt=["x","y","font-size","fill","font-weight"],gt={key:6},Nt=["x","y","font-size","fill"],ft=["x","y"],kt=["x","y"],It={key:7},xt=["x","y","font-size","fill"],bt=["x","y"],Ft=["x","y"],yt=["x","y","font-size","fill","innerHTML"],_t=["x","y","font-size","fill","innerHTML"],Ct=["x","y","font-size","fill","innerHTML"],St=["x","y","font-size","fill","innerHTML"],Lt=["x","y","width","height","fill","onMouseenter"],At=["font-size","fill","transform"],wt=["x","y","font-size","fill"],Ot={key:9},vt=["text-anchor","font-size","fill","transform"],pt=["x","y","height","width","onMouseenter","onClick"],Gt={key:10},Bt=["x","y"],Et=["cx","cy","r","fill"],zt={key:3,class:"vue-data-ui-watermark"},Vt=["onClick"],Mt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Pt=["fill"],Tt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Dt=["fill"],Rt={key:7,ref:"chartLegend"},Ht={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Wt=["innerHTML"];function qt(a,i,n,u,r,t){const g=e.resolveComponent("Title"),k=e.resolveComponent("UserOptions"),x=e.resolveComponent("Shape"),m=e.resolveComponent("Skeleton"),b=e.resolveComponent("Slicer"),S=e.resolveComponent("Tooltip"),F=e.resolveComponent("BaseIcon"),C=e.resolveComponent("TableSparkline"),_=e.resolveComponent("DataTable"),N=e.resolveComponent("Accordion");return e.openBlock(),e.createElementBlock("div",{id:`vue-ui-xy_${r.uniqueId}`,class:e.normalizeClass(`vue-ui-xy ${r.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${t.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.chart.backgroundColor}; color:${t.FINAL_CONFIG.chart.color};width:100%;${t.FINAL_CONFIG.chart.title.text?"":"padding-top:36px"};font-family:${t.FINAL_CONFIG.chart.fontFamily};${t.FINAL_CONFIG.responsive?"height: 100%":""}`)},[t.FINAL_CONFIG.chart.title.show?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"chartTitle",class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[(e.openBlock(),e.createBlock(g,{key:`title_${r.titleStep}`,config:{title:{cy:"xy-div-title",...t.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...t.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.userOptions.show&&t.isDataset?(e.openBlock(),e.createBlock(k,{ref:"defails",key:`user_options_${r.step}`,backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color,isPrinting:r.isPrinting,isImaging:r.isImaging,uid:r.uniqueId,hasTooltip:t.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&t.FINAL_CONFIG.chart.tooltip.show,hasPdf:t.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:t.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:t.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:t.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:t.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&t.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:t.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:r.mutableConfig.isStacked,isFullscreen:r.isFullscreen,chartElement:a.$refs.chart,isTooltip:r.mutableConfig.showTooltip,titles:{...t.FINAL_CONFIG.chart.userOptions.buttonTitles},onToggleFullscreen:t.toggleFullscreen,onGeneratePdf:t.generatePdf,onGenerateCsv:t.generateCsv,onGenerateImage:t.generateImage,onToggleTable:t.toggleTable,onToggleLabels:t.toggleLabels,onToggleStack:t.toggleStack,onToggleTooltip:t.toggleTooltip},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionStack?{name:"optionStack",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","isTooltip","titles","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip"])):e.createCommentVNode("",!0),t.isDataset?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([{"vue-data-ui-fullscreen--on":r.isFullscreen,"vue-data-ui-fulscreen--off":!r.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:r.viewBox,style:e.normalizeStyle(`background: transparent; color:${t.FINAL_CONFIG.chart.color}; font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[t.maxSeries>0?(e.openBlock(),e.createElementBlock("g",Z,[e.createElementVNode("g",J,[t.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.drawingArea.bottom,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,K)):e.createCommentVNode("",!0),r.mutableConfig.useIndividualScale?t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.allScales,l=>(e.openBlock(),e.createElementBlock("g",null,[l.id===r.selectedScale&&l.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.yLabels,o=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:l.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,ee))),256)):l.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.yLabels,o=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,te))),256)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.left+t.xPadding,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,Q)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(),e.createElementBlock("g",j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.yLabels,l=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(l.y),y2:t.checkNaN(l.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,$))),256))])):e.createCommentVNode("",!0)],64)),t.FINAL_CONFIG.chart.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries+(t.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(l,o)=>(e.openBlock(),e.createElementBlock("line",{key:`grid_vertical_line_${o}`,x1:t.drawingArea.width/t.maxSeries*o+t.drawingArea.left+t.xPadding,x2:t.drawingArea.width/t.maxSeries*o+t.drawingArea.left+t.xPadding,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-width":"0.5",stroke:t.FINAL_CONFIG.chart.grid.stroke},null,8,ae))),128))])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(l,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_rect_${o}`},[e.createElementVNode("linearGradient",{id:`rectGradient_pos_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,ie),e.createElementVNode("stop",{offset:"62%","stop-color":`${t.shiftHue(l.color,.02)}`},null,8,se),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.shiftHue(l.color,.05)}`},null,8,oe)],8,re),e.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(l.color,.05)}`},null,8,ce),e.createElementVNode("stop",{offset:"38%","stop-color":`${t.shiftHue(l.color,.02)}`},null,8,he),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,de)],8,ne)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(l,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_plot_${o}`},[e.createElementVNode("radialGradient",{id:`plotGradient_${o}_${r.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(l.color,.05)}`},null,8,me),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,ge)],8,ue)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(l,o)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_line_${o}`},[e.createElementVNode("radialGradient",{id:`lineGradient_${o}_${r.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(l.color,.05)}`},null,8,fe),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,ke)],8,Ne),e.createElementVNode("linearGradient",{id:`areaGradient_${o}_${r.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.setOpacity(t.shiftHue(l.color,.03),t.FINAL_CONFIG.line.area.opacity)}`},null,8,xe),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.setOpacity(l.color,t.FINAL_CONFIG.line.area.opacity)}`},null,8,be)],8,Ie)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.highlightAreas,l=>(e.openBlock(),e.createElementBlock("g",null,[l.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.span,(o,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{style:e.normalizeStyle({transition:"none",opacity:l.from+s>=r.slicer.start&&l.from+s<=r.slicer.end-1?1:0}),x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(l.from+s-r.slicer.start),y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:t.setOpacity(l.color,l.opacity)},null,12,Fe),l.caption.text&&s===0?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(l.from+s-r.slicer.start)-(l.caption.width==="auto"?0:l.caption.width/2-t.drawingArea.width/t.maxSeries*l.span/2),y:t.drawingArea.top+l.caption.offsetY,style:e.normalizeStyle({overflow:"visible",opacity:l.to>=r.slicer.start&&l.from<r.slicer.end?1:0}),height:"1",width:l.caption.width==="auto"?t.drawingArea.width/t.maxSeries*l.span:l.caption.width},[e.createElementVNode("div",{style:e.normalizeStyle(`padding:${l.caption.padding}px;text-align:${l.caption.textAlign};font-size:${l.caption.fontSize}px;color:${l.caption.color};font-weight:${l.caption.bold?"bold":"normal"}`)},e.toDisplayString(l.caption.text),5)],12,ye)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`tooltip_trap_${o}`},[e.createElementVNode("rect",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*o,y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(o)?t.setOpacity(t.FINAL_CONFIG.chart.highlighter.color,t.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,_e)]))),128))]),t.barSet.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.barSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_bar_${o}`,class:e.normalizeClass(`serie_bar_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`bar_plot_${o}_${d}`},[t.canShowValue(s.value)?(e.openBlock(),e.createElementBlock("rect",{key:0,x:t.calcRectX(s),y:r.mutableConfig.useIndividualScale?t.calcIndividualRectY(s):t.calcRectY(s),height:r.mutableConfig.useIndividualScale?Math.abs(t.calcIndividualHeight(s)):Math.abs(t.calcRectHeight(s)),width:t.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:t.barPeriodGap),rx:t.FINAL_CONFIG.bar.borderRadius,fill:t.FINAL_CONFIG.bar.useGradient?s.value>=0?`url(#rectGradient_pos_${o}_${r.uniqueId})`:`url(#rectGradient_neg_${o}_${r.uniqueId})`:l.color,stroke:t.FINAL_CONFIG.bar.border.useSerieColor?l.color:t.FINAL_CONFIG.bar.border.stroke,"stroke-width":t.FINAL_CONFIG.bar.border.strokeWidth},null,8,Ce)):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:(t.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:t.barPeriodGap)/2)+t.FINAL_CONFIG.chart.comments.width,x:t.calcRectX(s)-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:t.checkNaN(s.y)+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.renderSlot(a.$slots,"plot-comment",{plot:{...s,color:l.color}},void 0,!0)],8,Se)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(t.calcLinearProgression(l.plots).trend)?(e.openBlock(),e.createElementBlock("g",Le,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`bar_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,we)],8,Ae)]),l.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(l.plots).x1,x2:t.calcLinearProgression(l.plots).x2,y1:t.calcLinearProgression(l.plots).y1,y2:t.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,Oe)):e.createCommentVNode("",!0),l.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(l.plots).x2,y:t.calcLinearProgression(l.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:l.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,ve)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)):e.createCommentVNode("",!0),!r.mutableConfig.useIndividualScale&&t.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(e.openBlock(),e.createElementBlock("line",{key:1,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(t.zero),y2:t.checkNaN(t.zero),"stroke-linecap":"round"},null,8,pe)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(r.selectedSerieIndex)||r.selectedMinimapIndex!==null)?(e.openBlock(),e.createElementBlock("g",Ge,[e.createElementVNode("line",{x1:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(r.selectedSerieIndex||r.selectedMinimapIndex)+t.drawingArea.width/t.maxSeries/2,x2:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(r.selectedSerieIndex||r.selectedMinimapIndex)+t.drawingArea.width/t.maxSeries/2,y1:t.drawingArea.top,y2:t.drawingArea.bottom,stroke:t.FINAL_CONFIG.chart.highlighter.color,"stroke-width":t.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":t.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Be)])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.frame.show?(e.openBlock(),e.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:t.drawingArea.left+t.xPadding<0?0:t.drawingArea.left+t.xPadding,y:t.drawingArea.top,width:t.drawingArea.width-(t.FINAL_CONFIG.chart.grid.position==="middle"?0:t.drawingArea.width/t.maxSeries)<0?0:t.drawingArea.width-(t.FINAL_CONFIG.chart.grid.position==="middle"?0:t.drawingArea.width/t.maxSeries),height:t.drawingArea.height<0?0:t.drawingArea.height,fill:"transparent",stroke:t.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":t.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":t.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":t.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":t.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Ee)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.show?(e.openBlock(),e.createElementBlock("g",ze,[r.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,l=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:l.x+t.xPadding,x2:l.x+t.xPadding,y1:r.mutableConfig.isStacked?t.checkNaN(t.drawingArea.bottom-l.yOffset-l.individualHeight):t.checkNaN(t.drawingArea.top),y2:r.mutableConfig.isStacked?t.checkNaN(t.drawingArea.bottom-l.yOffset):t.checkNaN(t.drawingArea.bottom),stroke:l.color,"stroke-width":t.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,Ve)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,l=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[e.createElementVNode("text",{fill:l.color,"font-size":r.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${l.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${r.mutableConfig.isStacked?t.drawingArea.bottom-l.yOffset-l.individualHeight/2:t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`},e.toDisplayString(l.name)+" "+e.toDisplayString(l.scaleLabel?`- ${l.scaleLabel}`:""),9,Me),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.yLabels,(o,s)=>(e.openBlock(),e.createElementBlock("line",{x1:l.x-3+t.xPadding,x2:l.x+t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:l.color,"stroke-width":1,"stroke-linecap":"round"},null,8,Pe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.yLabels,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:l.x-5+t.xPadding,y:t.checkNaN(o.y)+r.fontSizes.dataLabels/3,"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:l.color},e.toDisplayString(t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,o.value,t.dataLabel({p:o.prefix,v:o.value,s:o.suffix,r:1}),{datapoint:o.datapoint,seriesIndex:s})),9,Te))),256))],4))),256))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.yLabels,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`yLabel_${o}`},[t.canShowValue(l)&&l.value>=t.niceScale.min&&l.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.left-5+t.xPadding,y1:t.checkNaN(l.y),y2:t.checkNaN(l.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,De)):e.createCommentVNode("",!0),l.value>=t.niceScale.min&&l.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:t.drawingArea.left-7+t.xPadding,y:t.checkNaN(l.y+r.fontSizes.dataLabels/3),"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.canShowValue(l.value)?t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,l.value,t.dataLabel({p:l.prefix,v:l.value,s:l.suffix,r:1})):""),9,Re)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_plot_${o}`,class:e.normalizeClass(`serie_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_plot_${o}_${d}`},[t.canShowValue(s.value)?(e.openBlock(),e.createBlock(x,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",color:t.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${r.uniqueId})`:l.color,plot:{x:t.checkNaN(s.x),y:t.checkNaN(s.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===d||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===d?(r.plotRadii.plot||6)*1.5:r.plotRadii.plot||6,stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["shape","color","plot","radius","stroke"])):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:s.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:s.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",We,[e.renderSlot(a.$slots,"plot-comment",{plot:{...s,color:l.color}},void 0,!0)])],8,He)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(t.calcLinearProgression(l.plots).trend)?(e.openBlock(),e.createElementBlock("g",qe,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`plot_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,Xe)],8,Ye)]),l.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(l.plots).x1,x2:t.calcLinearProgression(l.plots).x2,y1:t.calcLinearProgression(l.plots).y1,y2:t.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,Ue)):e.createCommentVNode("",!0),l.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(l.plots).x2,y:t.calcLinearProgression(l.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:l.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,Ze)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${o}`,class:e.normalizeClass(`serie_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[l.smooth&&l.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M${l.curve}`,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":l.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,Je)):l.plots.length>1?(e.openBlock(),e.createElementBlock("g",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${o}_${d}`},[s&&d<l.plots.length-1&&l.plots[d+1]&&t.canShowValue(s.value)&&t.canShowValue(l.plots[d+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,x2:l.plots[d+1].x,y1:s.y,y2:l.plots[d+1].y,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":l.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Qe)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${o}`,class:e.normalizeClass(`serie_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[l.useArea&&l.plots.length>1?(e.openBlock(),e.createElementBlock("g",je,[l.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.plots[0]?l.plots[0].x:Math.min(...l.plots.filter(s=>!!s).map(s=>s.x))},${r.mutableConfig.isStacked?t.drawingArea.bottom-l.yOffset:t.drawingArea.bottom} ${l.curve} L ${l.plots.at(-1)?l.plots.at(-1).x:t.drawingArea.left+t.slot.line*o+t.slot.line/2},${r.mutableConfig.isStacked?t.drawingArea.bottom-l.yOffset:t.drawingArea.bottom} Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:t.setOpacity(l.color,t.FINAL_CONFIG.line.area.opacity)},null,8,$e)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${l.area}Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:t.setOpacity(l.color,t.FINAL_CONFIG.line.area.opacity)},null,8,et))])):e.createCommentVNode("",!0),l.smooth&&l.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${l.curve}`,stroke:l.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":l.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,tt)):l.plots.length>1?(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${o}_${d}`},[s&&d<l.plots.length-1&&l.plots[d+1]&&t.canShowValue(s.value)&&t.canShowValue(l.plots[d+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,x2:l.plots[d+1].x,y1:s.y,y2:l.plots[d+1].y,stroke:l.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":l.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,at)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_line_${o}_${d}`},[s&&t.canShowValue(s.value)?(e.openBlock(),e.createBlock(x,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",color:t.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${r.uniqueId})`:l.color,plot:{x:t.checkNaN(s.x),y:t.checkNaN(s.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===d||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===d?(r.plotRadii.line||6)*1.5:r.plotRadii.line||6,stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["shape","color","plot","radius","stroke"])):e.createCommentVNode("",!0),s.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:s.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:s.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",it,[e.renderSlot(a.$slots,"plot-comment",{plot:{...s,color:l.color}},void 0,!0)])],8,rt)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(l,"useProgression")&&l.useProgression===!0&&!isNaN(t.calcLinearProgression(l.plots).trend)?(e.openBlock(),e.createElementBlock("g",st,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`line_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:l.color},null,8,nt)],8,ot)]),l.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(l.plots).x1,x2:t.calcLinearProgression(l.plots).x2,y1:t.calcLinearProgression(l.plots).y1,y2:t.calcLinearProgression(l.plots).y2,"stroke-width":1,stroke:l.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,ct)):e.createCommentVNode("",!0),l.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(l.plots).x2,y:t.calcLinearProgression(l.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:l.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(l.plots).trend*100,s:"%",r:2})),9,ht)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(t.FINAL_CONFIG.bar.labels.show||t.FINAL_CONFIG.bar.serieName.show)&&r.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${o}`,class:e.normalizeClass(`xLabel_bar_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${o}_${d}`},[s&&(!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0)&&t.FINAL_CONFIG.bar.labels.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?s.x+t.slot.line/2:t.calcRectX(s)+t.calcRectWidth()/2-t.barPeriodGap/2,y:t.checkNaN(s.y)+(s.value>0?t.FINAL_CONFIG.bar.labels.offsetY:-t.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.bar.labels.formatter,s.value,t.dataLabel({p:l.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:l.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.bar.labels.rounding}),{datapoint:s,serie:l}):""),9,ut)):e.createCommentVNode("",!0),s&&t.FINAL_CONFIG.bar.serieName.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?s.x+t.slot.line/2:s.x+t.calcRectWidth()*1.1,y:s.y+(s.value>0?t.FINAL_CONFIG.bar.serieName.offsetY:-t.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.serieName.useSerieColor?l.color:t.FINAL_CONFIG.bar.serieName.color,"font-weight":t.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},e.toDisplayString(t.FINAL_CONFIG.bar.serieName.useAbbreviation?t.abbreviate({source:l.name,length:t.FINAL_CONFIG.bar.serieName.abbreviationSize}):l.name),9,mt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.plot.labels.show&&r.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}`,class:e.normalizeClass(`xLabel_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}_${d}`},[s&&!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x,y:s.y+t.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:t.FINAL_CONFIG.plot.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.plot.labels.formatter,s.value,t.dataLabel({p:l.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:l.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.plot.labels.rounding}),{datapoint:s,serie:l}):""),9,Nt)):e.createCommentVNode("",!0),s&&d===0&&l.useTag&&l.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(l.color,80)};color:${t.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(l.name),5)],8,ft)):e.createCommentVNode("",!0),s&&d===l.plots.length-1&&l.useTag&&l.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-l.name.length*(r.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(l.color,80)};color:${t.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(l.name),5)],8,kt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.line.labels.show&&r.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",It,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}`,class:e.normalizeClass(`xLabel_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}_${d}`},[s&&!Object.hasOwn(l,"dataLabels")||l.dataLabels===!0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x,y:s.y+(s.value>0?t.FINAL_CONFIG.line.labels.offsetY:-t.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:t.FINAL_CONFIG.line.labels.color},e.toDisplayString(t.canShowValue(s.value)?t.applyDataLabel(t.FINAL_CONFIG.line.labels.formatter,s.value,t.dataLabel({p:l.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:l.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.line.labels.rounding}),{datapoint:s,serie:l}):""),9,xt)):e.createCommentVNode("",!0),s&&d===0&&l.useTag&&l.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(l.color,80)};color:${t.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(l.name),5)],8,bt)):e.createCommentVNode("",!0),s&&d===l.plots.length-1&&l.useTag&&l.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-l.name.length*(r.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${t.setOpacity(l.color,80)};color:${t.adaptColorToBackground(l.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(l.name),5)],8,Ft)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}`,class:e.normalizeClass(`xLabel_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}_${d}`},[s&&d===0&&l.showSerieName&&l.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x-r.fontSizes.plotLabels,y:s.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"end",fill:l.color,innerHTML:t.createTSpans({content:l.name,fontSize:r.fontSizes.plotLabels,fill:l.color,x:s.x-r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,yt)):e.createCommentVNode("",!0),s&&d===l.plots.length-1&&l.showSerieName&&l.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.x+r.fontSizes.plotLabels,y:s.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"start",fill:l.color,innerHTML:t.createTSpans({content:l.name,fontSize:r.fontSizes.plotLabels,fill:l.color,x:s.x+r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,_t)):e.createCommentVNode("",!0)]))),128))],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}`,class:e.normalizeClass(`xLabel_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===l.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,d)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}_${d}`},[s&&d===0&&l.showSerieName&&l.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.x-r.fontSizes.plotLabels,y:s.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"end",fill:l.color,innerHTML:t.createTSpans({content:l.name,fontSize:r.fontSizes.plotLabels,fill:l.color,x:s.x-r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Ct)):e.createCommentVNode("",!0),s&&d===l.plots.length-1&&l.showSerieName&&l.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:s.x+r.fontSizes.plotLabels,y:s.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"start",fill:l.color,innerHTML:t.createTSpans({content:l.name,fontSize:r.fontSizes.plotLabels,fill:l.color,x:s.x+r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,St)):e.createCommentVNode("",!0)]))),128))],6))),128)),r.mutableConfig.useIndividualScale&&!r.mutableConfig.isStacked?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:8},e.renderList(t.allScales,l=>(e.openBlock(),e.createElementBlock("rect",{x:l.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:r.selectedScale===l.id?t.setOpacity(l.color,20):"transparent",onMouseenter:o=>r.selectedScale=l.id,onMouseleave:i[0]||(i[0]=o=>r.selectedScale=null)},null,40,Lt))),256)):e.createCommentVNode("",!0),e.createElementVNode("g",null,[t.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!r.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock("text",{key:0,"font-size":r.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${r.fontSizes.yAxis+t.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,At)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:r.width/2,y:t.drawingArea.bottom+r.fontSizes.yAxis+r.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":r.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,wt)):e.createCommentVNode("",!0)]),t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timeLabels,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`time_label_${o}`},[l&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===t.timeLabels.length-1)&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&r.selectedSerieIndex===o&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||l&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":r.fontSizes.xAxis,fill:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${t.drawingArea.left+t.drawingArea.width/t.maxSeries*o+t.drawingArea.width/t.maxSeries/2}, ${t.drawingArea.bottom+r.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`},e.toDisplayString(l||""),9,vt)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(l,o)=>(e.openBlock(),e.createElementBlock("g",{key:`tooltip_trap_${o}`},[e.createElementVNode("rect",{"data-cy-trap":"",x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*o,y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:"transparent",onMouseenter:s=>t.toggleTooltipVisibility(!0,o),onMouseleave:i[1]||(i[1]=s=>t.toggleTooltipVisibility(!1)),onClick:s=>t.selectX(o)},null,40,pt)]))),128))]),t.FINAL_CONFIG.chart.timeTag.show&&![null,void 0].includes(r.selectedSerieIndex)?(e.openBlock(),e.createElementBlock("g",Gt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*r.selectedSerieIndex-100+t.drawingArea.width/t.maxSeries/2,y:t.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[e.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:e.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${t.FINAL_CONFIG.chart.timeTag.color};font-size:${t.FINAL_CONFIG.chart.timeTag.fontSize}px`)},e.toDisplayString(t.timeLabels[r.selectedSerieIndex]||r.selectedSerieIndex),5)],8,Bt)),e.createElementVNode("circle",{cx:t.drawingArea.left+t.drawingArea.width/t.maxSeries*r.selectedSerieIndex+t.drawingArea.width/t.maxSeries/2,cy:t.drawingArea.bottom,r:t.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:t.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Et)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:t.svg},void 0,!0)],14,U)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",zt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:r.isPrinting||r.isImaging})),void 0,!0)])):e.createCommentVNode("",!0),t.isDataset?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:4,config:{type:"line",style:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:t.FINAL_CONFIG.chart.grid.stroke},path:{color:t.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),t.FINAL_CONFIG.chart.zoom.show&&r.maxX>6&&t.isDataset?(e.openBlock(),e.createBlock(b,{ref:"chartSlicer",key:`slicer_${r.slicerStep}`,background:t.FINAL_CONFIG.chart.zoom.color,fontSize:t.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:t.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.start],labelRight:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.end-1],textColor:t.FINAL_CONFIG.chart.color,inputColor:t.FINAL_CONFIG.chart.zoom.color,selectColor:t.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:t.FINAL_CONFIG.chart.backgroundColor,minimap:t.minimap,smoothMinimap:t.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:t.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:t.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:t.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:t.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:r.selectedSerieIndex,minimapIndicatorColor:t.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,max:r.maxX,min:0,valueStart:r.slicer.start,valueEnd:r.slicer.end,start:r.slicer.start,"onUpdate:start":i[2]||(i[2]=l=>r.slicer.start=l),end:r.slicer.end,"onUpdate:end":i[3]||(i[3]=l=>r.slicer.end=l),onReset:t.refreshSlicer,onTrapMouse:t.selectMinimapIndex},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","minimap","smoothMinimap","minimapSelectedColor","minimapSelectionRadius","minimapLineColor","minimapSelectedColorOpacity","minimapSelectedIndex","minimapIndicatorColor","max","valueStart","valueEnd","start","end","onReset","onTrapMouse"])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:6,ref:"chartLegend",class:"vue-ui-xy-legend",style:e.normalizeStyle(`font-size:${t.FINAL_CONFIG.chart.legend.fontSize}px`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.absoluteDataset,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:s=>t.segregate(l),class:e.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":r.segregatedSeries.includes(l.id)})},[r.icons[l.type]==="line"?(e.openBlock(),e.createElementBlock("svg",Mt,[e.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:l.color},null,8,Pt),e.createVNode(x,{plot:{x:10,y:9},radius:4,color:l.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle",stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(e.openBlock(),e.createElementBlock("svg",Tt,[r.icons[l.type]==="bar"?(e.openBlock(),e.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:l.color},null,8,Dt)):(e.openBlock(),e.createBlock(x,{key:1,plot:{x:6,y:6},radius:5,color:l.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(l.shape)?l.shape:"circle"},null,8,["color","shape"]))])),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.FINAL_CONFIG.chart.legend.color}`)},e.toDisplayString(l.name),5)],10,Vt))),128))],4)):(e.openBlock(),e.createElementBlock("div",Rt,[e.renderSlot(a.$slots,"legend",{legend:t.absoluteDataset},void 0,!0)],512)),e.createVNode(S,{show:r.mutableConfig.showTooltip&&r.isTooltip,backgroundColor:t.FINAL_CONFIG.chart.tooltip.backgroundColor,color:t.FINAL_CONFIG.chart.tooltip.color,fontSize:t.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:t.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:t.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:t.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:t.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:t.FINAL_CONFIG.chart.tooltip.position,offsetY:t.FINAL_CONFIG.chart.tooltip.offsetY,parent:a.$refs.chart,content:t.tooltipContent,isCustom:t.FINAL_CONFIG.chart.tooltip.customFormat&&typeof t.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),t.isDataset?(e.openBlock(),e.createBlock(N,{key:8,hideDetails:"",config:{open:r.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color},head:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(`${r.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[e.createElementVNode("div",Ht,[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=l=>r.showSparklineTable=l)},null,512),[[e.vModelCheckbox,r.showSparklineTable]]),e.createElementVNode("div",{onClick:i[5]||(i[5]=l=>r.showSparklineTable=!r.showSparklineTable),style:{cursor:"pointer"}},[e.createVNode(F,{name:"chartLine",size:20,stroke:t.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),r.showSparklineTable?(e.openBlock(),e.createBlock(C,{key:`sparkline_${r.segregateStep}`,dataset:t.tableSparklineDataset,config:t.tableSparklineConfig},null,8,["dataset","config"])):(e.openBlock(),e.createBlock(_,{key:`table_${r.tableStep}`,colNames:t.dataTable.colNames,head:t.dataTable.head,body:t.dataTable.body,config:t.dataTable.config,title:`${t.FINAL_CONFIG.chart.title.text}${t.FINAL_CONFIG.chart.title.subtitle.text?` : ${t.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:i[6]||(i[6]=l=>r.mutableConfig.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l},null,8,Wt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(isNaN(Number(l))?l:t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:l,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,X)}const Yt=W._export_sfc(Y,[["render",qt],["__scopeId","data-v-a70a56aa"]]);exports.default=Yt;