vue-data-ui 2.4.7 → 2.4.8
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.
- package/README.md +11 -10
- package/dist/{Arrow-Ds1Mhkkt.cjs → Arrow-CyaIC3_N.cjs} +1 -1
- package/dist/{Arrow-BCeetU2P.js → Arrow-csGlRFph.js} +1 -1
- package/dist/{BaseIcon-Icg3SIlH.js → BaseIcon-C4xMR9-8.js} +1 -1
- package/dist/{BaseIcon-C31iTAGj.cjs → BaseIcon-fwPMcivX.cjs} +1 -1
- package/dist/{DataTable-CnLqhXZ2.js → DataTable-BlGRB1Pa.js} +2 -2
- package/dist/{DataTable-CqaGqXkz.cjs → DataTable-CxaymjxX.cjs} +1 -1
- package/dist/{Legend-D2iK-_M0.cjs → Legend-Ds7yCP4e.cjs} +1 -1
- package/dist/{Legend-8QHo6cZQ.js → Legend-xj_UZPuw.js} +1 -1
- package/dist/{PackageVersion-Bw7N_9KM.js → PackageVersion-Crfv987V.js} +1 -1
- package/dist/{PackageVersion-DjuywB0J.cjs → PackageVersion-DgPnBWYN.cjs} +1 -1
- package/dist/{PenAndPaper-BiWc81tP.js → PenAndPaper-D8QdkfKM.js} +18 -18
- package/dist/{PenAndPaper-DoKpW2Tl.cjs → PenAndPaper-vKdCNpVJ.cjs} +1 -1
- package/dist/{Shape-CppjH62a.js → Shape-DNQDrxfn.js} +1 -1
- package/dist/{Shape-BfZLKYNk.cjs → Shape-M9CIgwzd.cjs} +1 -1
- package/dist/{Slicer-U4q5iMIE.cjs → Slicer-BMIoaXrp.cjs} +1 -1
- package/dist/{Slicer-CA5jR9Em.js → Slicer-BtiO3aSt.js} +2 -2
- package/dist/{Title-aR9ViX_A.cjs → Title-BqcJ8-j1.cjs} +1 -1
- package/dist/{Title-yJsQ5q-l.js → Title-CoonHZp1.js} +1 -1
- package/dist/Tooltip-DSZJXOZo.cjs +1 -0
- package/dist/Tooltip-WJvwo3eC.js +109 -0
- package/dist/documentation/installation.md +10 -10
- package/dist/{index-Cn1EWnYG.js → index-Qst-5kz0.js} +66 -63
- package/dist/index-uTaoMjg1.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -0
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/{useNestedProp-BXn-g9sr.js → useNestedProp-D3SUMrZY.js} +1 -1
- package/dist/{useNestedProp-DxZ05ZEt.cjs → useNestedProp-P8wzQfmW.cjs} +1 -1
- package/dist/{usePrinter-B3HaYNI4.cjs → usePrinter-DGnyAFMM.cjs} +1 -1
- package/dist/{usePrinter-ZkzmtO6K.js → usePrinter-srpiqIq8.js} +1 -1
- package/dist/{vue-data-ui-DfGCpkA8.js → vue-data-ui-BWV0_3wY.js} +58 -58
- package/dist/{vue-data-ui-Bn_29KuS.cjs → vue-data-ui-vuDWhbxy.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CERRaGHQ.cjs → vue-ui-3d-bar-DXXySQ7-.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Cz7ZSFFf.js → vue-ui-3d-bar-nqIMKDVC.js} +9 -9
- package/dist/{vue-ui-accordion-UADqAdVj.js → vue-ui-accordion-CHl3zwsU.js} +3 -3
- package/dist/{vue-ui-accordion-kQwtYRmD.cjs → vue-ui-accordion-D88l7NVk.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DhGijqy5.js → vue-ui-age-pyramid-Cm9zRjyB.js} +10 -10
- package/dist/{vue-ui-age-pyramid-Rfk1WUfJ.cjs → vue-ui-age-pyramid-DlRVNxj5.cjs} +1 -1
- package/dist/{vue-ui-annotator-BdAFNoMu.cjs → vue-ui-annotator-BaLbEuPn.cjs} +1 -1
- package/dist/{vue-ui-annotator-CCgDEOdY.js → vue-ui-annotator-BcZwMf4k.js} +1 -1
- package/dist/{vue-ui-bullet-Bkx9sfrv.cjs → vue-ui-bullet-DZ3ISzEy.cjs} +1 -1
- package/dist/{vue-ui-bullet-CSVuqhhg.js → vue-ui-bullet-DfIZfg_U.js} +8 -8
- package/dist/{vue-ui-candlestick-CuNi5UZ7.cjs → vue-ui-candlestick-CjSR_UwH.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D0RfMi-W.js → vue-ui-candlestick-CrKXtUTA.js} +11 -11
- package/dist/{vue-ui-carousel-table-Dch3TChE.cjs → vue-ui-carousel-table-DSYgD9k3.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DeY0f9Ba.js → vue-ui-carousel-table-RTzJDG_m.js} +4 -4
- package/dist/{vue-ui-chestnut-bqu8whHd.cjs → vue-ui-chestnut-C-P3GVoT.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B2Gio3KC.js → vue-ui-chestnut-DvGUaaag.js} +8 -8
- package/dist/{vue-ui-cursor-BlW4uLBm.js → vue-ui-cursor-CURrSWJH.js} +2 -2
- package/dist/{vue-ui-cursor-Dnv5a5oy.cjs → vue-ui-cursor-u0uJ1nPk.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCaNJXOd.js → vue-ui-dashboard-D5UQ9d4W.js} +2 -2
- package/dist/{vue-ui-dashboard-De5_U4a9.cjs → vue-ui-dashboard-DJSg-19y.cjs} +1 -1
- package/dist/{vue-ui-digits-DlteJApK.js → vue-ui-digits-BESFcIu-.js} +2 -2
- package/dist/{vue-ui-digits-Dc0L7473.cjs → vue-ui-digits-OdhKcT0Z.cjs} +1 -1
- package/dist/{vue-ui-donut-CBTZK6YJ.cjs → vue-ui-donut-D1JD2JpW.cjs} +1 -1
- package/dist/{vue-ui-donut-6Vh9u3Xp.js → vue-ui-donut-eLSljaMD.js} +11 -11
- package/dist/{vue-ui-donut-evolution-CmgjvLvu.cjs → vue-ui-donut-evolution-C5IpwddH.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-gQyMiCiu.js → vue-ui-donut-evolution-nogin4DH.js} +11 -11
- package/dist/{vue-ui-dumbbell-ByhSaE6s.cjs → vue-ui-dumbbell-BHd8UFZA.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C4xg1FG4.js → vue-ui-dumbbell-D1g4t_ba.js} +10 -10
- package/dist/{vue-ui-flow-DYF0P7LD.js → vue-ui-flow-CQ4ZPEf9.js} +9 -9
- package/dist/{vue-ui-flow-Bef5hCwj.cjs → vue-ui-flow-Cbo8koaf.cjs} +1 -1
- package/dist/{vue-ui-galaxy-COY_QSwC.cjs → vue-ui-galaxy-CwqWivy9.cjs} +1 -1
- package/dist/{vue-ui-galaxy-aM8uOGRD.js → vue-ui-galaxy-cJyFGSj3.js} +11 -11
- package/dist/{vue-ui-gauge-qYg_QM-A.js → vue-ui-gauge-BJ73VPHK.js} +7 -7
- package/dist/{vue-ui-gauge-CW8ZpODM.cjs → vue-ui-gauge-BjlSrIzM.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BZyOCD_y.js → vue-ui-gizmo-B0_McLBu.js} +3 -3
- package/dist/{vue-ui-gizmo-DgS57tJ2.cjs → vue-ui-gizmo-LKVdd220.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BfJGluVp.js → vue-ui-heatmap-B_p_NA69.js} +10 -10
- package/dist/{vue-ui-heatmap-Czg21edC.cjs → vue-ui-heatmap-CMwpGcs-.cjs} +1 -1
- package/dist/{vue-ui-kpi-C5ISBjIs.js → vue-ui-kpi-BTjso80e.js} +3 -3
- package/dist/{vue-ui-kpi-DQpkO2MX.cjs → vue-ui-kpi-JdTRJHRm.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BiaLLW3x.js → vue-ui-mini-loader-CaQfIaet.js} +2 -2
- package/dist/{vue-ui-mini-loader-Db5Khvfw.cjs → vue-ui-mini-loader-DzPmmR1Y.cjs} +1 -1
- package/dist/{vue-ui-molecule-fmAXI5nL.js → vue-ui-molecule-fG82cUkT.js} +11 -11
- package/dist/{vue-ui-molecule-4AXvVmWt.cjs → vue-ui-molecule-j_a9VBda.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BzfFikJv.cjs → vue-ui-mood-radar-DKVd8LUE.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CVLad_RZ.js → vue-ui-mood-radar-Up3yenwX.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BP0qdKto.cjs → vue-ui-nested-donuts-B7hiJJ1U.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-7VePVE4W.js → vue-ui-nested-donuts-JT8N_ith.js} +11 -11
- package/dist/{vue-ui-onion-tzmb3ARN.cjs → vue-ui-onion-CIWDaVKe.cjs} +1 -1
- package/dist/{vue-ui-onion-LCcrKbXJ.js → vue-ui-onion-CWJlmMOv.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-Dgu-tY5L.cjs → vue-ui-parallel-coordinate-plot-BPmehEq0.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-D0Xxq5a9.js → vue-ui-parallel-coordinate-plot-BdS7FR9e.js} +12 -12
- package/dist/{vue-ui-quadrant-DkOZbxio.cjs → vue-ui-quadrant-Bj0_m09T.cjs} +1 -1
- package/dist/{vue-ui-quadrant-D_e1Knsr.js → vue-ui-quadrant-DNSSfYxO.js} +12 -12
- package/dist/{vue-ui-quick-chart-Brzheuk8.cjs → vue-ui-quick-chart-CaePwM8z.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CIm7vclU.js → vue-ui-quick-chart-DdHb8oXV.js} +9 -9
- package/dist/{vue-ui-radar-DoNZ8Qv9.cjs → vue-ui-radar-B3kRIdyQ.cjs} +1 -1
- package/dist/{vue-ui-radar-Cx_w_viT.js → vue-ui-radar-BLaCDKDI.js} +12 -12
- package/dist/{vue-ui-rating-B4zDVBEd.cjs → vue-ui-rating-6murOKLs.cjs} +1 -1
- package/dist/{vue-ui-rating-NRP3A0oA.js → vue-ui-rating-ZTFd5PY9.js} +2 -2
- package/dist/{vue-ui-relation-circle-C4LKLsEz.js → vue-ui-relation-circle-8HwwVi9V.js} +7 -7
- package/dist/{vue-ui-relation-circle-Cuk4LDJo.cjs → vue-ui-relation-circle-dng0Wo7U.cjs} +1 -1
- package/dist/{vue-ui-rings-DXawhL1m.js → vue-ui-rings-Bg-gI2AV.js} +11 -11
- package/dist/{vue-ui-rings-D6Rs1eq0.cjs → vue-ui-rings-cJg30GML.cjs} +1 -1
- package/dist/{vue-ui-scatter-8EzIXx2n.js → vue-ui-scatter-BbGF7Kqu.js} +12 -12
- package/dist/{vue-ui-scatter-DlfZqYP9.cjs → vue-ui-scatter-mE1PRE_c.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Wwmw7VVM.js → vue-ui-screenshot-8L5oXuB8.js} +1 -1
- package/dist/{vue-ui-screenshot-Dt0UpXVm.cjs → vue-ui-screenshot-BDncUrRv.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D3AGluiW.js → vue-ui-skeleton-3V3a9YDD.js} +3 -3
- package/dist/{vue-ui-skeleton-Si57O3af.cjs → vue-ui-skeleton-B9HVcMQ5.cjs} +1 -1
- package/dist/{vue-ui-smiley-UxTt4IMY.cjs → vue-ui-smiley-D0cPnUvD.cjs} +1 -1
- package/dist/{vue-ui-smiley-CRddsfyu.js → vue-ui-smiley-bfJp-uDp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Cgr4pAvU.js → vue-ui-spark-trend-CUiHyXEy.js} +5 -5
- package/dist/{vue-ui-spark-trend-tMuRiISe.cjs → vue-ui-spark-trend-QESJyQLY.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B6TEBbyt.js → vue-ui-sparkbar-DQ6xAWCW.js} +4 -4
- package/dist/{vue-ui-sparkbar-BZVjpA5h.cjs → vue-ui-sparkbar-LgONGPmJ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-P5fVXRT8.js → vue-ui-sparkgauge-C71yrtal.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B9P3ngyj.cjs → vue-ui-sparkgauge-Ebcv5WPF.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BSQsOim4.cjs → vue-ui-sparkhistogram-DR5bbtjv.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-vlWx_CFP.js → vue-ui-sparkhistogram-DV9-qngy.js} +5 -5
- package/dist/{vue-ui-sparkline-B1UrThV_.js → vue-ui-sparkline-BUQwEBGh.js} +4 -4
- package/dist/{vue-ui-sparkline-5FsmrmmU.cjs → vue-ui-sparkline-CFApZqM6.cjs} +1 -1
- package/dist/vue-ui-sparkstackbar-CWfd4U7P.cjs +1 -0
- package/dist/vue-ui-sparkstackbar-Dy8NuRTo.js +374 -0
- package/dist/{vue-ui-stackbar-BpFxY9uX.cjs → vue-ui-stackbar-B8k4q2Ci.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DhnCj5jR.js → vue-ui-stackbar-Dm3TUSfv.js} +12 -12
- package/dist/{vue-ui-strip-plot-CutPMUb1.js → vue-ui-strip-plot-AZWlE4bf.js} +11 -11
- package/dist/{vue-ui-strip-plot-DnFquLCu.cjs → vue-ui-strip-plot-BGIlRwxX.cjs} +1 -1
- package/dist/{vue-ui-table-CUtRHuc4.cjs → vue-ui-table-D07ATtZj.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DS2cSiGt.cjs → vue-ui-table-heatmap-Cga1jg-5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DyGuk9kw.js → vue-ui-table-heatmap-DIYuyeya.js} +4 -4
- package/dist/{vue-ui-table-Cx0eqrK_.js → vue-ui-table-j1JKMJlY.js} +1 -1
- package/dist/{vue-ui-table-sparkline-C1ril5t8.cjs → vue-ui-table-sparkline-BCtjl04c.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline--Ekk_QoU.js → vue-ui-table-sparkline-Bs68Kr3b.js} +5 -5
- package/dist/{vue-ui-thermometer-Dr6_S2Qz.cjs → vue-ui-thermometer-B-bVUAFf.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Dz_xaxCt.js → vue-ui-thermometer-XragDhm1.js} +7 -7
- package/dist/{vue-ui-timer-DRdgSmMv.js → vue-ui-timer-CD6NO3sW.js} +5 -5
- package/dist/{vue-ui-timer-BkmRYrPn.cjs → vue-ui-timer-CzKkkrH7.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BwVRnR-c.cjs → vue-ui-tiremarks-B2nQDIj-.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-XuaMScx0.js → vue-ui-tiremarks-CgFVKqyp.js} +7 -7
- package/dist/{vue-ui-treemap-yUQZvXta.cjs → vue-ui-treemap-FK55MDjM.cjs} +1 -1
- package/dist/{vue-ui-treemap-D8HfM8ny.js → vue-ui-treemap-gj4510HN.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DpaRYTVo.cjs → vue-ui-vertical-bar-BFtin4EH.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BcWnPMjH.js → vue-ui-vertical-bar-iEd5iot7.js} +11 -11
- package/dist/{vue-ui-waffle-uur49hDo.cjs → vue-ui-waffle-DcsTaFaS.cjs} +1 -1
- package/dist/{vue-ui-waffle-sLIM61xh.js → vue-ui-waffle-XLMUuduF.js} +11 -11
- package/dist/{vue-ui-wheel-CJBuFjJt.cjs → vue-ui-wheel-BuLz0PvU.cjs} +1 -1
- package/dist/{vue-ui-wheel-D3Pfhpbe.js → vue-ui-wheel-DvNNNUNo.js} +7 -7
- package/dist/{vue-ui-word-cloud-Dhz-n0_M.cjs → vue-ui-word-cloud-Cs6kdOG-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DhC8SN1l.js → vue-ui-word-cloud-IMAaNlwt.js} +10 -10
- package/dist/{vue-ui-xy-D7nWzSu1.js → vue-ui-xy-Dc67UrQD.js} +14 -14
- package/dist/{vue-ui-xy-Cn-JnSRl.cjs → vue-ui-xy-DvgA1d7k.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DWZRAtDJ.js → vue-ui-xy-canvas-CMQ_w0PG.js} +11 -11
- package/dist/{vue-ui-xy-canvas-BI5nAbis.cjs → vue-ui-xy-canvas-CzydPKZG.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Tooltip-CN6_JyjT.cjs +0 -1
- package/dist/Tooltip-klg8yuWM.js +0 -104
- package/dist/index-Ci5MafHS.cjs +0 -9
- package/dist/vue-ui-sparkstackbar-BzrHl4LW.js +0 -290
- package/dist/vue-ui-sparkstackbar-CEXgwtwV.cjs +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-Ci5MafHS.cjs"),B=require("./DataTable-CqaGqXkz.cjs"),E=require("./Title-aR9ViX_A.cjs"),p=require("./Tooltip-CN6_JyjT.cjs"),z=require("./usePrinter-B3HaYNI4.cjs"),V=require("./Shape-BfZLKYNk.cjs"),P=require("./BaseIcon-C31iTAGj.cjs"),M=require("./vue-ui-table-sparkline-C1ril5t8.cjs"),T=require("./vue-ui-skeleton-Si57O3af.cjs"),D=require("./Slicer-U4q5iMIE.cjs"),R=require("./vue-ui-accordion-kQwtYRmD.cjs"),G=require("./useNestedProp-DxZ05ZEt.cjs"),H=require("./PackageVersion-DjuywB0J.cjs"),W=require("./PenAndPaper-DoKpW2Tl.cjs"),e=require("vue"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=d.createUid(),X={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:B.DataTable,Shape:V._sfc_main,Title:E._sfc_main,Tooltip:p._sfc_main,UserOptions:z.UserOptions,BaseIcon:P.default,TableSparkline:M.default,Skeleton:T.default,Slicer:D.Slicer,Accordion:R.default,PackageVersion:H._sfc_main,PenAndPaper:W.PenAndPaper},data(){this.dataset.forEach((n,u)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:u})});const l=Math.max(...this.dataset.map(n=>n.series.length)),i={start:0,end:l};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.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"},isAnnotator:!1,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:d.createUid(),step:0,tableStep:0,titleStep:0,slicer:i,__to__:null,maxX:l,showSparklineTable:!0,segregateStep:0,sliderId:Y,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null}},watch:{dataset:{handler(l,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(l,i){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1},deep:!0}},computed:{hasOptionsNoTitle(){return this.FINAL_CONFIG.chart.userOptions.show&&(!this.FINAL_CONFIG.chart.title.show||!this.FINAL_CONFIG.chart.title.text)},minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const l=this.datasetWithIds.filter(r=>!this.segregatedSeries.includes(r.id)),i=Math.max(...l.map(r=>r.series.length)),n=[];for(let r=0;r<i;r+=1)n.push(l.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 l=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=[...l,...i,...n].flatMap(r=>r).length;return[...l,...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 l=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(l,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(l){return l}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(l=>l.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 l=this.FINAL_CONFIG.chart.highlightArea;return[{...l,span:l.from===l.to?1:l.to<l.from?0:l.to-l.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((l,i)=>({...l,id:`uniqueId_${i}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((l,i)=>({...l,series:l.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(l.color?l.color:this.customPalette[i]?this.customPalette[i]:this.palette[i]),id:`uniqueId_${i}`})):this.dataset},relativeDataset(){return this.safeDataset.map((l,i)=>({...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series})).filter(l=>!this.segregatedSeries.includes(l.id))},tableSparklineDataset(){return this.relativeDataset.map(l=>{const i=l.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:l.id,name:l.name,color:l.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((l,i)=>({absoluteIndex:i,...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series,segregate:()=>this.segregate(l),isSegregated:this.segregatedSeries.includes(l.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="bar").map((l,i)=>{this.checkAutoScaleError(l);const n=Math.min(...l.absoluteValues.filter(c=>![null,void 0].includes(c))),u=Math.max(...l.absoluteValues.filter(c=>![null,void 0].includes(c))),t={ratios:l.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(u-n)),valueMin:n,valueMax:u<0?0:u},g={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...l.absoluteValues.filter(c=>![null,void 0].includes(c)))},I=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,F=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*F:g.max,I),N=this.calculateNiceScaleWithExactExtremes(t.valueMin,t.valueMax===t.valueMin?t.valueMax*F:t.valueMax,I),L=m.min>=0?0:Math.abs(m.min),C=0,A=m.max+L,_=N.max+Math.abs(C),k=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,b=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,S=this.drawingArea.bottom-k-b*L/A,a=this.drawingArea.bottom-k-b*C/_,o=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,s=l.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale?(l.absoluteValues[f]+L)/A: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*o-this.barSlot/2-i*this.barPeriodGap;return{yOffset:this.checkNaN(k),individualHeight:this.checkNaN(b),x:this.checkNaN(v),y:this.drawingArea.bottom-k-b*O,value:l.absoluteValues[f],zeroPosition:this.checkNaN(S),individualMax:this.checkNaN(A),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),h=l.absoluteValues.map(c=>N.min>=0?(c-Math.abs(N.min))/(N.max-Math.abs(N.min)):(c+Math.abs(N.min))/(N.max+Math.abs(N.min))),w=l.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(k),individualHeight:this.checkNaN(b),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(k)-(this.checkNaN(b)*h[f]||0)),value:l.absoluteValues[f],zeroPosition:this.checkNaN(S),individualMax:this.checkNaN(A),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),x=m.ticks.map(c=>({y:c>=0?S-b*(c/A):S+b*Math.abs(c)/A,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),y=N.ticks.map(c=>{const f=(c-N.min)/(N.max-N.min);return{y:c>=0?a-b*f:a+b*f,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:k,autoScaleYLabels:y,individualHeight:b,scaleYLabels:l.autoScaling?y:x,individualScale:l.autoScaling?N:m,individualMax:l.autoScaling?_:A,zeroPosition:l.autoScaling?a:S,plots:l.autoScaling?w:s}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(l=>!this.segregatedSeries.includes(l.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="line").map(l=>{this.checkAutoScaleError(l);const i=Math.min(...l.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...l.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,r={ratios:l.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-i)/(n-i)),valueMin:i,valueMax:n},t={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||(Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues))},g=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=1.0000001,F=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*I:t.max,g),m=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*I:r.valueMax,g),N=F.min>=0?0:Math.abs(F.min),L=0,C=F.max+Math.abs(N),A=m.max+Math.abs(L),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,k=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-_-k*N/C,S=this.drawingArea.bottom-_-k*L/A,a=l.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale?(l.absoluteValues[f]+Math.abs(N))/C:this.ratioToMax(c);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-_-k*O),value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),o=l.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))),s=l.series.map((c,f)=>[void 0,null].includes(l.absoluteValues[f])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:b,value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-_-(k*o[f]||0)),value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}),h=this.createSmoothPath(a),w=this.createSmoothPath(s),x=F.ticks.map(c=>({y:c>=0?b-k*(c/C):b+k*Math.abs(c)/C,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),y=m.ticks.map(c=>{const f=(c-m.min)/(m.max-m.min);return{y:c>=0?S-k*f:S+k*f,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:_,autoScaleYLabels:y,individualHeight:k,scaleYLabels:l.autoScaling?y:x,individualScale:l.autoScaling?m:F,individualMax:l.autoScaling?A:C,zeroPosition:l.autoScaling?S:b,curve:l.autoScaling?w:h,plots:l.autoScaling?s:a,area:l.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(l.autoScaling?s:a,l.autoScaling?S:b):this.createArea(a):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="plot").map(l=>{this.checkAutoScaleError(l);const i=Math.min(...l.absoluteValues.filter(x=>![null,void 0].includes(x))),n=Math.max(...l.absoluteValues.filter(x=>![null,void 0].includes(x)))||1,r={ratios:l.absoluteValues.filter(x=>![null,void 0].includes(x)).map(x=>(x-i)/(n-i)),valueMin:i,valueMax:n},t={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues)},g=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=1.0000001,F=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*I:t.max,g),m=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*I:r.valueMax,g),N=F.min>=0?0:Math.abs(F.min),L=0,C=F.max+N,A=m.max+Math.abs(L),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,k=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-_-k*N/C,S=this.drawingArea.bottom-_-k*L/A,a=l.series.map((x,y)=>{const c=this.mutableConfig.useIndividualScale?(l.absoluteValues[y]+Math.abs(N))/C:this.ratioToMax(x);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-k*c),value:l.absoluteValues[y],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[y]||""}}),o=l.absoluteValues.map(x=>m.min>=0?(x-Math.abs(m.min))/(m.max-Math.abs(m.min)):(x+Math.abs(m.min))/(m.max+Math.abs(m.min))),s=l.series.map((x,y)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-(k*o[y]||0)),value:l.absoluteValues[y],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[y]||""})),h=F.ticks.map(x=>({y:x>=0?b-k*(x/C):b+k*Math.abs(x)/C,value:x,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),w=m.ticks.map(x=>{const y=(x-m.min)/(m.max-m.min);return{y:x>=0?S-k*y:S+k*y,value:x,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:_,autoScaleYLabels:w,individualHeight:k,scaleYLabels:l.autoScaling?w:h,individualScale:l.autoScaling?m:F,individualMax:l.autoScaling?A:C,zeroPosition:l.autoScaling?S:b,plots:l.autoScaling?s:a}})},drawingArea(){const l=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+l,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+l)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(l=>!this.segregatedSeries.includes(l.id)).map(l=>Math.max(...l.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const l=Math.min(...this.safeDataset.filter(i=>!this.segregatedSeries.includes(i.id)).map(i=>Math.min(...i.series)));return l>0?0:l},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(l=>l.type==="bar").filter(l=>!this.segregatedSeries.includes(l.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const l=this.safeDataset.filter(i=>i.type==="bar").filter(i=>!this.segregatedSeries.includes(i.id)).length;return this.drawingArea.width/this.maxSeries/l-this.barPeriodGap*l},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(l=>l!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=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:l,body:i}},dataTable(){const l=this.FINAL_CONFIG.table.showSum;let i=[""].concat(this.relativeDataset.map(t=>t.name));l&&(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(I=>I.absoluteValues[t]??0).reduce((I,F)=>I+F,0);n.push([this.timeLabels[t]??"-"].concat(this.relativeDataset.map(I=>this.applyDataLabel(I.type==="line"?this.FINAL_CONFIG.line.labels.formatter:I.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,I.absoluteValues[t]??0,this.dataLabel({p:I.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:I.absoluteValues[t]??0,s:I.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(l?(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(l=>({shape:l.shape||null,name:l.name,color:l.color,type:l.type,value:l.absoluteValues.find((i,n)=>n===this.selectedSerieIndex),comments:l.comments||[],prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let l="",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&&(l+=`<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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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}}l+=`<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?`(${d.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]&&(l+=`<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}">${l}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(l=>({y:l>=0?this.zero-this.drawingArea.height*this.ratioToMax(l):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(l)),value:l,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",l=>{this.clientPosition={x:l.clientX,y:l.clientY}})},methods:{abbreviate:d.abbreviate,adaptColorToBackground:d.adaptColorToBackground,applyDataLabel:d.applyDataLabel,assignStackRatios:d.assignStackRatios,calcLinearProgression:d.calcLinearProgression,calculateNiceScaleWithExactExtremes:d.calculateNiceScaleWithExactExtremes,checkNaN:d.checkNaN,closestDecimal:d.closestDecimal,convertColorToHex:d.convertColorToHex,convertConfigColors:d.convertConfigColors,convertCustomPalette:d.convertCustomPalette,createCsvContent:d.createCsvContent,createSmoothPath:d.createSmoothPath,createTSpans:d.createTSpans,dataLabel:d.dataLabel,downloadCsv:d.downloadCsv,error:d.error,functionReturnsString:d.functionReturnsString,hasDeepProperty:d.hasDeepProperty,isFunction:d.isFunction,isSafeValue:d.isSafeValue,objectIsEmpty:d.objectIsEmpty,setOpacity:d.setOpacity,shiftHue:d.shiftHue,translateSize:d.translateSize,treeShake:d.treeShake,useMouse:p.useMouse,useNestedProp:G.useNestedProp,toggleAnnotator(){this.isAnnotator=!this.isAnnotator},getHighlightAreaPosition(l){const i=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(l.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span;return{x:i<this.drawingArea.left?this.drawingArea.left:i,width:n}},prepareConfig(){const l=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return l;const i=this.useNestedProp({userConfig:this.config,defaultConfig:l});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?{...G.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((l,i)=>{[null,void 0].includes(l.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:i})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(l=>{l.series.forEach((i,n)=>{this.isSafeValue(i)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-uTaoMjg1.cjs"),B=require("./DataTable-CxaymjxX.cjs"),E=require("./Title-BqcJ8-j1.cjs"),p=require("./Tooltip-DSZJXOZo.cjs"),z=require("./usePrinter-DGnyAFMM.cjs"),V=require("./Shape-M9CIgwzd.cjs"),P=require("./BaseIcon-fwPMcivX.cjs"),M=require("./vue-ui-table-sparkline-BCtjl04c.cjs"),T=require("./vue-ui-skeleton-B9HVcMQ5.cjs"),D=require("./Slicer-BMIoaXrp.cjs"),R=require("./vue-ui-accordion-D88l7NVk.cjs"),G=require("./useNestedProp-P8wzQfmW.cjs"),H=require("./PackageVersion-DgPnBWYN.cjs"),W=require("./PenAndPaper-vKdCNpVJ.cjs"),e=require("vue"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=d.createUid(),X={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:B.DataTable,Shape:V._sfc_main,Title:E._sfc_main,Tooltip:p._sfc_main,UserOptions:z.UserOptions,BaseIcon:P.default,TableSparkline:M.default,Skeleton:T.default,Slicer:D.Slicer,Accordion:R.default,PackageVersion:H._sfc_main,PenAndPaper:W.PenAndPaper},data(){this.dataset.forEach((n,u)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:u})});const l=Math.max(...this.dataset.map(n=>n.series.length)),i={start:0,end:l};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.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"},isAnnotator:!1,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:d.createUid(),step:0,tableStep:0,titleStep:0,slicer:i,__to__:null,maxX:l,showSparklineTable:!0,segregateStep:0,sliderId:Y,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null}},watch:{dataset:{handler(l,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(l,i){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1},deep:!0}},computed:{hasOptionsNoTitle(){return this.FINAL_CONFIG.chart.userOptions.show&&(!this.FINAL_CONFIG.chart.title.show||!this.FINAL_CONFIG.chart.title.text)},minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const l=this.datasetWithIds.filter(r=>!this.segregatedSeries.includes(r.id)),i=Math.max(...l.map(r=>r.series.length)),n=[];for(let r=0;r<i;r+=1)n.push(l.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 l=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=[...l,...i,...n].flatMap(r=>r).length;return[...l,...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 l=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(l,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(l){return l}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(l=>l.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 l=this.FINAL_CONFIG.chart.highlightArea;return[{...l,span:l.from===l.to?1:l.to<l.from?0:l.to-l.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((l,i)=>({...l,id:`uniqueId_${i}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((l,i)=>({...l,series:l.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(l.color?l.color:this.customPalette[i]?this.customPalette[i]:this.palette[i]),id:`uniqueId_${i}`})):this.dataset},relativeDataset(){return this.safeDataset.map((l,i)=>({...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series})).filter(l=>!this.segregatedSeries.includes(l.id))},tableSparklineDataset(){return this.relativeDataset.map(l=>{const i=l.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:l.id,name:l.name,color:l.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((l,i)=>({absoluteIndex:i,...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series,segregate:()=>this.segregate(l),isSegregated:this.segregatedSeries.includes(l.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="bar").map((l,i)=>{this.checkAutoScaleError(l);const n=Math.min(...l.absoluteValues.filter(c=>![null,void 0].includes(c))),u=Math.max(...l.absoluteValues.filter(c=>![null,void 0].includes(c))),t={ratios:l.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(u-n)),valueMin:n,valueMax:u<0?0:u},g={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...l.absoluteValues.filter(c=>![null,void 0].includes(c)))},I=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,F=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*F:g.max,I),N=this.calculateNiceScaleWithExactExtremes(t.valueMin,t.valueMax===t.valueMin?t.valueMax*F:t.valueMax,I),L=m.min>=0?0:Math.abs(m.min),C=0,A=m.max+L,_=N.max+Math.abs(C),k=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,b=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,S=this.drawingArea.bottom-k-b*L/A,a=this.drawingArea.bottom-k-b*C/_,o=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,s=l.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale?(l.absoluteValues[f]+L)/A: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*o-this.barSlot/2-i*this.barPeriodGap;return{yOffset:this.checkNaN(k),individualHeight:this.checkNaN(b),x:this.checkNaN(v),y:this.drawingArea.bottom-k-b*O,value:l.absoluteValues[f],zeroPosition:this.checkNaN(S),individualMax:this.checkNaN(A),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),h=l.absoluteValues.map(c=>N.min>=0?(c-Math.abs(N.min))/(N.max-Math.abs(N.min)):(c+Math.abs(N.min))/(N.max+Math.abs(N.min))),w=l.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(k),individualHeight:this.checkNaN(b),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(k)-(this.checkNaN(b)*h[f]||0)),value:l.absoluteValues[f],zeroPosition:this.checkNaN(S),individualMax:this.checkNaN(A),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),x=m.ticks.map(c=>({y:c>=0?S-b*(c/A):S+b*Math.abs(c)/A,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),y=N.ticks.map(c=>{const f=(c-N.min)/(N.max-N.min);return{y:c>=0?a-b*f:a+b*f,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:k,autoScaleYLabels:y,individualHeight:b,scaleYLabels:l.autoScaling?y:x,individualScale:l.autoScaling?N:m,individualMax:l.autoScaling?_:A,zeroPosition:l.autoScaling?a:S,plots:l.autoScaling?w:s}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(l=>!this.segregatedSeries.includes(l.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="line").map(l=>{this.checkAutoScaleError(l);const i=Math.min(...l.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...l.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,r={ratios:l.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-i)/(n-i)),valueMin:i,valueMax:n},t={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||(Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues))},g=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=1.0000001,F=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*I:t.max,g),m=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*I:r.valueMax,g),N=F.min>=0?0:Math.abs(F.min),L=0,C=F.max+Math.abs(N),A=m.max+Math.abs(L),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,k=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-_-k*N/C,S=this.drawingArea.bottom-_-k*L/A,a=l.series.map((c,f)=>{const O=this.mutableConfig.useIndividualScale?(l.absoluteValues[f]+Math.abs(N))/C:this.ratioToMax(c);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-_-k*O),value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}}),o=l.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))),s=l.series.map((c,f)=>[void 0,null].includes(l.absoluteValues[f])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:b,value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*f),y:this.checkNaN(this.drawingArea.bottom-_-(k*o[f]||0)),value:l.absoluteValues[f],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[f]||""}),h=this.createSmoothPath(a),w=this.createSmoothPath(s),x=F.ticks.map(c=>({y:c>=0?b-k*(c/C):b+k*Math.abs(c)/C,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),y=m.ticks.map(c=>{const f=(c-m.min)/(m.max-m.min);return{y:c>=0?S-k*f:S+k*f,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:_,autoScaleYLabels:y,individualHeight:k,scaleYLabels:l.autoScaling?y:x,individualScale:l.autoScaling?m:F,individualMax:l.autoScaling?A:C,zeroPosition:l.autoScaling?S:b,curve:l.autoScaling?w:h,plots:l.autoScaling?s:a,area:l.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(l.autoScaling?s:a,l.autoScaling?S:b):this.createArea(a):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="plot").map(l=>{this.checkAutoScaleError(l);const i=Math.min(...l.absoluteValues.filter(x=>![null,void 0].includes(x))),n=Math.max(...l.absoluteValues.filter(x=>![null,void 0].includes(x)))||1,r={ratios:l.absoluteValues.filter(x=>![null,void 0].includes(x)).map(x=>(x-i)/(n-i)),valueMin:i,valueMax:n},t={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues)},g=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=1.0000001,F=this.calculateNiceScaleWithExactExtremes(t.min,t.max===t.min?t.max*I:t.max,g),m=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*I:r.valueMax,g),N=F.min>=0?0:Math.abs(F.min),L=0,C=F.max+N,A=m.max+Math.abs(L),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,k=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-_-k*N/C,S=this.drawingArea.bottom-_-k*L/A,a=l.series.map((x,y)=>{const c=this.mutableConfig.useIndividualScale?(l.absoluteValues[y]+Math.abs(N))/C:this.ratioToMax(x);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-k*c),value:l.absoluteValues[y],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[y]||""}}),o=l.absoluteValues.map(x=>m.min>=0?(x-Math.abs(m.min))/(m.max-Math.abs(m.min)):(x+Math.abs(m.min))/(m.max+Math.abs(m.min))),s=l.series.map((x,y)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-(k*o[y]||0)),value:l.absoluteValues[y],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[y]||""})),h=F.ticks.map(x=>({y:x>=0?b-k*(x/C):b+k*Math.abs(x)/C,value:x,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),w=m.ticks.map(x=>{const y=(x-m.min)/(m.max-m.min);return{y:x>=0?S-k*y:S+k*y,value:x,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:_,autoScaleYLabels:w,individualHeight:k,scaleYLabels:l.autoScaling?w:h,individualScale:l.autoScaling?m:F,individualMax:l.autoScaling?A:C,zeroPosition:l.autoScaling?S:b,plots:l.autoScaling?s:a}})},drawingArea(){const l=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+l,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+l)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(l=>!this.segregatedSeries.includes(l.id)).map(l=>Math.max(...l.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const l=Math.min(...this.safeDataset.filter(i=>!this.segregatedSeries.includes(i.id)).map(i=>Math.min(...i.series)));return l>0?0:l},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(l=>l.type==="bar").filter(l=>!this.segregatedSeries.includes(l.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const l=this.safeDataset.filter(i=>i.type==="bar").filter(i=>!this.segregatedSeries.includes(i.id)).length;return this.drawingArea.width/this.maxSeries/l-this.barPeriodGap*l},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(l=>l!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=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:l,body:i}},dataTable(){const l=this.FINAL_CONFIG.table.showSum;let i=[""].concat(this.relativeDataset.map(t=>t.name));l&&(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(I=>I.absoluteValues[t]??0).reduce((I,F)=>I+F,0);n.push([this.timeLabels[t]??"-"].concat(this.relativeDataset.map(I=>this.applyDataLabel(I.type==="line"?this.FINAL_CONFIG.line.labels.formatter:I.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,I.absoluteValues[t]??0,this.dataLabel({p:I.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:I.absoluteValues[t]??0,s:I.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(l?(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(l=>({shape:l.shape||null,name:l.name,color:l.color,type:l.type,value:l.absoluteValues.find((i,n)=>n===this.selectedSerieIndex),comments:l.comments||[],prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let l="",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&&(l+=`<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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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="${d.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}}l+=`<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?`(${d.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]&&(l+=`<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}">${l}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(l=>({y:l>=0?this.zero-this.drawingArea.height*this.ratioToMax(l):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(l)),value:l,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",l=>{this.clientPosition={x:l.clientX,y:l.clientY}})},methods:{abbreviate:d.abbreviate,adaptColorToBackground:d.adaptColorToBackground,applyDataLabel:d.applyDataLabel,assignStackRatios:d.assignStackRatios,calcLinearProgression:d.calcLinearProgression,calculateNiceScaleWithExactExtremes:d.calculateNiceScaleWithExactExtremes,checkNaN:d.checkNaN,closestDecimal:d.closestDecimal,convertColorToHex:d.convertColorToHex,convertConfigColors:d.convertConfigColors,convertCustomPalette:d.convertCustomPalette,createCsvContent:d.createCsvContent,createSmoothPath:d.createSmoothPath,createTSpans:d.createTSpans,dataLabel:d.dataLabel,downloadCsv:d.downloadCsv,error:d.error,functionReturnsString:d.functionReturnsString,hasDeepProperty:d.hasDeepProperty,isFunction:d.isFunction,isSafeValue:d.isSafeValue,objectIsEmpty:d.objectIsEmpty,setOpacity:d.setOpacity,shiftHue:d.shiftHue,translateSize:d.translateSize,treeShake:d.treeShake,useMouse:p.useMouse,useNestedProp:G.useNestedProp,toggleAnnotator(){this.isAnnotator=!this.isAnnotator},getHighlightAreaPosition(l){const i=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(l.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span;return{x:i<this.drawingArea.left?this.drawingArea.left:i,width:n}},prepareConfig(){const l=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return l;const i=this.useNestedProp({userConfig:this.config,defaultConfig:l});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?{...G.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((l,i)=>{[null,void 0].includes(l.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:i})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(l=>{l.series.forEach((i,n)=>{this.isSafeValue(i)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2
2
|
-----> The serie '${l.name}' contains the value '${i}' at index ${n}.
|
|
3
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,I=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(g=this.$refs.chartSlicer.$el,I=g.getBoundingClientRect().height);let F=null,m=0;this.FINAL_CONFIG.chart.legend.show&&(F=this.$refs.chartLegend,m=F.getBoundingClientRect().height);let N=0;this.$refs.source&&(N=this.$refs.source.getBoundingClientRect().height);let L=0;this.$refs.noTitle&&(L=this.$refs.source.getBoundingClientRect().height),this.height=n-t-m-I-N-L,this.width=u,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(A=>{for(const _ of A)this.$refs.chartTitle&&(t=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(I=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(m=this.$refs.chartLegend.getBoundingClientRect().height),this.$refs.source&&(N=this.$refs.source.getBoundingClientRect().height),this.height=_.contentBoxSize[0].blockSize-t-m-I-N-24,this.width=_.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(l){this.selectedMinimapIndex=l},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(l){l.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${l.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: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(l){if(!l[0])return[-10,-10,"",-10,-10];const i={x:l[0].x,y:this.zero},n={x:l.at(-1).x,y:this.zero},u=[];return l.forEach(r=>{u.push(`${r.x},${r.y} `)}),[i.x,i.y,...u,n.x,n.y].toString()},createIndividualArea(l,i){if(!l[0])return[-10,-10,"",-10,-10];const n={x:l[0]?l[0].x:Math.min(...l.filter(t=>!!t).map(t=>t.x)),y:i},u={x:l.at(-1)?l.at(-1).x:Math.min(...l.filter(t=>!!t).map(t=>t.x)),y:i},r=[];return l.filter(t=>!!t).forEach(t=>{r.push(`${t.x},${t.y} `)}),[n.x,n.y,...r,u.x,u.y].toString()},createStar:d.createStar,createPolygonPath:d.createPolygonPath,fillArray(l,i){let n=Array(l).fill(0);for(let u=0;u<i.length&&u<l;u+=1)n[u]=i[u];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(l=>l.series.length))},this.slicerStep+=1},calcRectHeight(l){return l.value>=0?this.checkNaN(this.zero-l.y<=0?1e-5:this.zero-l.y):this.checkNaN(l.y-this.zero<=0?1e-5:l.y-this.zero)},calcIndividualHeight(l){return l.value>=0?this.checkNaN(l.zeroPosition-l.y<=0?1e-5:l.zeroPosition-l.y):this.checkNaN(l.y-l.zeroPosition<=0?1e-5:l.zeroPosition-l.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(l){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?l.x+this.drawingArea.width/this.maxSeries*.05:l.x+this.slot.bar/2},calcRectY(l){return l.value>=0?l.y:this.zero},calcIndividualRectY(l){return l.value>=0?l.y:[null,void 0,NaN,1/0,-1/0].includes(l.zeroPosition)?0:l.zeroPosition},canShowValue(l){return![null,void 0,NaN,1/0,-1/0].includes(l)},findClosestValue(l,i){let n=i[0],u=Math.abs(l-i[0]);for(let r=1;r<i.length;r+=1){const t=Math.abs(l-i[r]);t<u&&i[r]<l&&(n=i[r],u=t)}return n},ratioToMax(l){return l/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(l){this.$emit("selectX",{dataset:this.relativeDataset.map(i=>({name:i.name,value:[null,void 0,NaN].includes(i.absoluteValues[l])?null:i.absoluteValues[l],color:i.color,type:i.type})),index:l,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l]})},getData(){return this.absoluteDataset.map(l=>({values:l.absoluteValues,color:l.color,name:l.name,type:l.type}))},segregate(l){if(this.segregatedSeries.includes(l.id))this.segregatedSeries=this.segregatedSeries.filter(i=>i!==l.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(l.id)}this.$emit("selectLegend",this.relativeDataset.map(i=>({name:i.name,values:i.absoluteValues,color:i.color,type:i.type}))),this.segregateStep+=1},toggleTooltipVisibility(l,i=null){this.isTooltip=l,l?this.selectedSerieIndex=i:this.selectedSerieIndex=null},toggleFullscreen(l){this.isFullscreen=l,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},async generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.isPrinting=!0,this.__to__=setTimeout(async()=>{try{const{default:l}=await Promise.resolve().then(()=>require("./pdf-9cRTLjY8.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})}catch(l){console.error("Error generating PDF:",l)}finally{this.isPrinting=!1}},100)},generateCsv(){const l=[[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=l.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},async generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.isImaging=!0,this.__to__=setTimeout(async()=>{try{const{default:l}=await Promise.resolve().then(()=>require("./img-BFCs759q.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"})}catch(l){console.error("Error generating image:",l)}finally{this.isImaging=!1}},100)}}},U=["id"],Z={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%; background:transparent"},J=["viewBox"],K={key:0},Q={class:"vue-ui-xy-grid"},j=["stroke","x1","x2","y1","y2"],$=["stroke","x1","x2","y1","y2"],ee={key:1},te=["x1","x2","y1","y2","stroke"],le=["x1","x2","y1","y2","stroke"],re=["x1","x2","y1","y2","stroke"],ae={key:3},ie=["x1","x2","y1","y2","stroke"],se=["id"],oe=["stop-color"],ne=["stop-color"],ce=["stop-color"],he=["id"],de=["stop-color"],ue=["stop-color"],me=["stop-color"],ge=["id"],Ne=["stop-color"],fe=["stop-color"],ke=["id"],Ie=["stop-color"],xe=["stop-color"],be=["id"],Fe=["stop-color"],_e=["stop-color"],ye=["x","y","height","width","fill"],Ce=["x","y","width"],Ae=["x","y","height","width","fill"],Se=["x","y","height","width","rx","fill","stroke","stroke-width"],Le=["width","x","y"],we={key:0},Oe=["id"],ve=["fill"],pe=["x1","x2","y1","y2","stroke","marker-end"],Ge=["x","y","font-size","fill"],Be=["stroke","x1","x2","y1","y2"],Ee={key:2},ze=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ve=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],Pe={key:4},Me=["x1","x2","y1","y2","stroke","stroke-width"],Te=["fill","font-size","transform"],De=["x1","x2","y1","y2","stroke"],Re=["x","y","font-size","fill"],He=["x1","x2","y1","y2","stroke"],We=["x","y","font-size","fill"],qe=["width","x","y"],Ye={style:{width:"100%"}},Xe={key:0},Ue=["id"],Ze=["fill"],Je=["x1","x2","y1","y2","stroke","marker-end"],Ke=["x","y","font-size","fill"],Qe=["d","stroke","stroke-width","stroke-dasharray"],je={key:1},$e=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],et={key:0},tt=["d","fill"],lt=["d","fill"],rt=["d","stroke","stroke-width","stroke-dasharray"],at={key:2},it=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],st=["width","x","y"],ot={style:{width:"100%"}},nt={key:3},ct=["id"],ht=["fill"],dt=["x1","x2","y1","y2","stroke","marker-end"],ut=["x","y","font-size","fill"],mt={key:5},gt=["x","y","font-size","fill"],Nt=["x","y","font-size","fill","font-weight"],ft={key:6},kt=["x","y","font-size","fill"],It=["x","y"],xt=["x","y"],bt={key:7},Ft=["x","y","font-size","fill"],_t=["x","y"],yt=["x","y"],Ct=["x","y","font-size","fill","innerHTML"],At=["x","y","font-size","fill","innerHTML"],St=["x","y","font-size","fill","innerHTML"],Lt=["x","y","font-size","fill","innerHTML"],wt=["x","y","width","height","fill","onMouseenter"],Ot=["font-size","fill","transform"],vt=["x","y","font-size","fill"],pt={key:9},Gt=["text-anchor","font-size","fill","transform"],Bt=["x","y","height","width","onMouseenter","onClick"],Et={key:10},zt=["x","y"],Vt=["cx","cy","r","fill"],Pt={key:5,class:"vue-data-ui-watermark"},Mt=["onClick"],Tt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Dt=["fill"],Rt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Ht=["fill"],Wt={key:9,ref:"chartLegend"},qt={key:10,ref:"source",dir:"auto"},Yt={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Xt=["innerHTML"];function Ut(l,i,n,u,r,t){const g=e.resolveComponent("PenAndPaper"),I=e.resolveComponent("Title"),F=e.resolveComponent("UserOptions"),m=e.resolveComponent("PackageVersion"),N=e.resolveComponent("Shape"),L=e.resolveComponent("Skeleton"),C=e.resolveComponent("Slicer"),A=e.resolveComponent("Tooltip"),_=e.resolveComponent("BaseIcon"),k=e.resolveComponent("TableSparkline"),b=e.resolveComponent("DataTable"),S=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%;font-family:${t.FINAL_CONFIG.chart.fontFamily};${t.FINAL_CONFIG.responsive?"height: 100%":""}`)},[t.FINAL_CONFIG.chart.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(g,{key:0,parent:l.$refs.chart,backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color,active:r.isAnnotator,onClose:t.toggleAnnotator},null,8,["parent","backgroundColor","color","active","onClose"])):e.createCommentVNode("",!0),t.hasOptionsNoTitle?(e.openBlock(),e.createElementBlock("div",Z,null,512)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.title.show?(e.openBlock(),e.createElementBlock("div",{key:2,ref:"chartTitle",class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[(e.openBlock(),e.createBlock(I,{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(F,{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:l.$refs.chart,position:t.FINAL_CONFIG.chart.userOptions.position,isTooltip:r.mutableConfig.showTooltip,titles:{...t.FINAL_CONFIG.chart.userOptions.buttonTitles},hasAnnotator:t.FINAL_CONFIG.chart.userOptions.buttons.annotator,isAnnotation:r.isAnnotator,onToggleFullscreen:t.toggleFullscreen,onGeneratePdf:t.generatePdf,onGenerateCsv:t.generateCsv,onGenerateImage:t.generateImage,onToggleTable:t.toggleTable,onToggleLabels:t.toggleLabels,onToggleStack:t.toggleStack,onToggleTooltip:t.toggleTooltip,onToggleAnnotator:t.toggleAnnotator},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionStack?{name:"optionStack",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"7"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip","onToggleAnnotator"])):e.createCommentVNode("",!0),t.isDataset?(e.openBlock(),e.createElementBlock("svg",{key:4,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}`)},[e.createVNode(m),t.maxSeries>0?(e.openBlock(),e.createElementBlock("g",K,[e.createElementVNode("g",Q,[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,j)):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,a=>(e.openBlock(),e.createElementBlock("g",null,[a.id===r.selectedScale&&a.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.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:a.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,le))),256)):a.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.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,re))),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,$)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(),e.createElementBlock("g",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.yLabels,a=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left+t.xPadding,x2:t.drawingArea.right-t.xPadding,y1:t.checkNaN(a.y),y2:t.checkNaN(a.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,te))),256))])):e.createCommentVNode("",!0)],64)),t.FINAL_CONFIG.chart.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries+(t.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(a,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,ie))),128))])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(a,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":a.color},null,8,oe),e.createElementVNode("stop",{offset:"62%","stop-color":`${t.shiftHue(a.color,.02)}`},null,8,ne),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,ce)],8,se),e.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(a.color,.05)}`},null,8,de),e.createElementVNode("stop",{offset:"38%","stop-color":`${t.shiftHue(a.color,.02)}`},null,8,ue),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,me)],8,he)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,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(a.color,.05)}`},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,fe)],8,ge)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,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(a.color,.05)}`},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,xe)],8,ke),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(a.color,.03),t.FINAL_CONFIG.line.area.opacity)}`},null,8,Fe),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)}`},null,8,_e)],8,be)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.highlightAreas,a=>(e.openBlock(),e.createElementBlock("g",null,[a.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.span,(o,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{style:e.normalizeStyle({transition:"none",opacity:a.from+s>=r.slicer.start&&a.from+s<=r.slicer.end-1?1:0}),x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(a.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(a.color,a.opacity)},null,12,ye),a.caption.text&&s===0?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(a.from+s-r.slicer.start)-(a.caption.width==="auto"?0:a.caption.width/2-t.drawingArea.width/t.maxSeries*a.span/2),y:t.drawingArea.top+a.caption.offsetY,style:e.normalizeStyle({overflow:"visible",opacity:a.to>=r.slicer.start&&a.from<r.slicer.end?1:0}),height:"1",width:a.caption.width==="auto"?t.drawingArea.width/t.maxSeries*a.span:a.caption.width},[e.createElementVNode("div",{style:e.normalizeStyle(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold?"bold":"normal"}`)},e.toDisplayString(a.caption.text),5)],12,Ce)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(a,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,Ae)]))),128))]),t.barSet.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.barSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_bar_${o}`,class:e.normalizeClass(`serie_bar_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`bar_plot_${o}_${h}`},[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})`:a.color,stroke:t.FINAL_CONFIG.bar.border.useSerieColor?a.color:t.FINAL_CONFIG.bar.border.stroke,"stroke-width":t.FINAL_CONFIG.bar.border.strokeWidth},null,8,Se)):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(l.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:h}},void 0,!0)],8,Le)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",we,[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:a.color},null,8,ve)],8,Oe)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,pe)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ge)):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,Be)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(r.selectedSerieIndex)||r.selectedMinimapIndex!==null)?(e.openBlock(),e.createElementBlock("g",Ee,[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,ze)])):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,Ve)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.show?(e.openBlock(),e.createElementBlock("g",Pe,[r.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:a.x+t.xPadding,x2:a.x+t.xPadding,y1:r.mutableConfig.isStacked?t.checkNaN(t.drawingArea.bottom-a.yOffset-a.individualHeight):t.checkNaN(t.drawingArea.top),y2:r.mutableConfig.isStacked?t.checkNaN(t.drawingArea.bottom-a.yOffset):t.checkNaN(t.drawingArea.bottom),stroke:a.color,"stroke-width":t.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,Me)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,a=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[e.createElementVNode("text",{fill:a.color,"font-size":r.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${a.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${r.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset-a.individualHeight/2:t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`},e.toDisplayString(a.name)+" "+e.toDisplayString(a.scaleLabel?`- ${a.scaleLabel}`:""),9,Te),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.yLabels,(o,s)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x-3+t.xPadding,x2:a.x+t.xPadding,y1:t.checkNaN(o.y),y2:t.checkNaN(o.y),stroke:a.color,"stroke-width":1,"stroke-linecap":"round"},null,8,De))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.yLabels,(o,s)=>(e.openBlock(),e.createElementBlock("text",{x:a.x-5+t.xPadding,y:t.checkNaN(o.y)+r.fontSizes.dataLabels/3,"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:a.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,Re))),256))],4))),256))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.yLabels,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`yLabel_${o}`},[t.canShowValue(a)&&a.value>=t.niceScale.min&&a.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(a.y),y2:t.checkNaN(a.y),stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,He)):e.createCommentVNode("",!0),a.value>=t.niceScale.min&&a.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:t.drawingArea.left-7+t.xPadding,y:t.checkNaN(a.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(a.value)?t.applyDataLabel(t.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,a.value,t.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:1})):""),9,We)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_plot_${o}`,class:e.normalizeClass(`serie_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_plot_${o}_${h}`},[s&&t.canShowValue(s.value)?(e.openBlock(),e.createBlock(N,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:t.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${r.uniqueId})`:t.FINAL_CONFIG.plot.dot.useSerieColor?a.color:t.FINAL_CONFIG.plot.dot.fill,plot:{x:t.checkNaN(s.x),y:t.checkNaN(s.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===h||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===h?(r.plotRadii.plot||6)*1.5:r.plotRadii.plot||6,stroke:t.FINAL_CONFIG.plot.dot.useSerieColor?t.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:t.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):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",Ye,[e.renderSlot(l.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:h}},void 0,!0)])],8,qe)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",Xe,[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:a.color},null,8,Ze)],8,Ue)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,Je)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ke)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${o}`,class:e.normalizeClass(`serie_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.smooth&&a.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M${a.curve}`,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,Qe)):a.plots.length>1?(e.openBlock(),e.createElementBlock("g",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${o}_${h}`},[s&&h<a.plots.length-1&&a.plots[h+1]&&t.canShowValue(s.value)&&t.canShowValue(a.plots[h+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,x2:a.plots[h+1].x,y1:s.y,y2:a.plots[h+1].y,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,$e)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${o}`,class:e.normalizeClass(`serie_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.useArea&&a.plots.length>1?(e.openBlock(),e.createElementBlock("g",et,[a.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.plots[0]?a.plots[0].x:Math.min(...a.plots.filter(s=>!!s).map(s=>s.x))},${r.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1)?a.plots.at(-1).x:t.drawingArea.left+t.slot.line*o+t.slot.line/2},${r.mutableConfig.isStacked?t.drawingArea.bottom-a.yOffset:t.drawingArea.bottom} Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)},null,8,tt)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${a.area}Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:t.setOpacity(a.color,t.FINAL_CONFIG.line.area.opacity)},null,8,lt))])):e.createCommentVNode("",!0),a.smooth&&a.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${a.curve}`,stroke:a.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,rt)):a.plots.length>1?(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${o}_${h}`},[s&&h<a.plots.length-1&&a.plots[h+1]&&t.canShowValue(s.value)&&t.canShowValue(a.plots[h+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.x,x2:a.plots[h+1].x,y1:s.y,y2:a.plots[h+1].y,stroke:a.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,it)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_line_${o}_${h}`},[s&&t.canShowValue(s.value)?(e.openBlock(),e.createBlock(N,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:t.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${r.uniqueId})`:t.FINAL_CONFIG.line.dot.useSerieColor?a.color:t.FINAL_CONFIG.line.dot.fill,plot:{x:t.checkNaN(s.x),y:t.checkNaN(s.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===h||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===h?(r.plotRadii.line||6)*1.5:r.plotRadii.line||6,stroke:t.FINAL_CONFIG.line.dot.useSerieColor?t.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:t.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):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",ot,[e.renderSlot(l.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:o,datapointIndex:h}},void 0,!0)])],8,st)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(t.calcLinearProgression(a.plots).trend)?(e.openBlock(),e.createElementBlock("g",nt,[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:a.color},null,8,ht)],8,ct)]),a.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(a.plots).x1,x2:t.calcLinearProgression(a.plots).x2,y1:t.calcLinearProgression(a.plots).y1,y2:t.calcLinearProgression(a.plots).y2,"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,dt)):e.createCommentVNode("",!0),a.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(a.plots).x2,y:t.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,ut)):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",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${o}`,class:e.normalizeClass(`xLabel_bar_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${o}_${h}`},[s&&(!Object.hasOwn(a,"dataLabels")||a.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:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.bar.labels.rounding}),{datapoint:s,serie:a}):""),9,gt)):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?a.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:a.name,length:t.FINAL_CONFIG.bar.serieName.abbreviationSize}):a.name),9,Nt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.plot.labels.show&&r.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}`,class:e.normalizeClass(`xLabel_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}_${h}`},[s&&!Object.hasOwn(a,"dataLabels")||a.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:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.plot.labels.rounding}),{datapoint:s,serie:a}):""),9,kt)):e.createCommentVNode("",!0),s&&h===0&&a.useTag&&a.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(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,It)):e.createCommentVNode("",!0),s&&h===a.plots.length-1&&a.useTag&&a.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-a.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(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,xt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.line.labels.show&&r.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}`,class:e.normalizeClass(`xLabel_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}_${h}`},[s&&!Object.hasOwn(a,"dataLabels")||a.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:a.prefix||t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.line.labels.rounding}),{datapoint:s,serie:a}):""),9,Ft)):e.createCommentVNode("",!0),s&&h===0&&a.useTag&&a.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(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,_t)):e.createCommentVNode("",!0),s&&h===a.plots.length-1&&a.useTag&&a.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:s.x-a.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(a.color,80)};color:${t.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(a.name),5)],8,yt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}`,class:e.normalizeClass(`xLabel_line_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${o}_${h}`},[s&&h===0&&a.showSerieName&&a.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:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:s.x-r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Ct)):e.createCommentVNode("",!0),s&&h===a.plots.length-1&&a.showSerieName&&a.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:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:s.x+r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,At)):e.createCommentVNode("",!0)]))),128))],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}`,class:e.normalizeClass(`xLabel_plot_${o}`),style:e.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${o}_${h}`},[s&&h===0&&a.showSerieName&&a.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:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:s.x-r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,St)):e.createCommentVNode("",!0),s&&h===a.plots.length-1&&a.showSerieName&&a.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:a.color,innerHTML:t.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:s.x+r.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Lt)):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,a=>(e.openBlock(),e.createElementBlock("rect",{x:a.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===a.id?t.setOpacity(a.color,20):"transparent",onMouseenter:o=>r.selectedScale=a.id,onMouseleave:i[0]||(i[0]=o=>r.selectedScale=null)},null,40,wt))),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,Ot)):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,vt)):e.createCommentVNode("",!0)]),t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timeLabels,(a,o)=>(e.openBlock(),e.createElementBlock("g",{key:`time_label_${o}`},[a&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===t.timeLabels.length-1)&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&r.selectedSerieIndex===o&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!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(a||""),9,Gt)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(a,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,Bt)]))),128))]),t.FINAL_CONFIG.chart.timeTag.show&&![null,void 0].includes(r.selectedSerieIndex)?(e.openBlock(),e.createElementBlock("g",Et,[(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,zt)),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,Vt)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:t.svg},void 0,!0)],14,J)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Pt,[e.renderSlot(l.$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(L,{key:6,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(C,{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]=a=>r.slicer.start=a),end:r.slicer.end,"onUpdate:end":i[3]||(i[3]=a=>r.slicer.end=a),onReset:t.refreshSlicer,onTrapMouse:t.selectMinimapIndex},{"reset-action":e.withCtx(({reset:a})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:a})),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:8,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,(a,o)=>(e.openBlock(),e.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:s=>t.segregate(a),class:e.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":r.segregatedSeries.includes(a.id)})},[r.icons[a.type]==="line"?(e.openBlock(),e.createElementBlock("svg",Tt,[e.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:a.color},null,8,Dt),e.createVNode(N,{plot:{x:10,y:9},radius:4,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(e.openBlock(),e.createElementBlock("svg",Rt,[r.icons[a.type]==="bar"?(e.openBlock(),e.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:a.color},null,8,Ht)):(e.openBlock(),e.createBlock(N,{key:1,plot:{x:6,y:6},radius:5,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle"},null,8,["color","shape"]))])),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.FINAL_CONFIG.chart.legend.color}`)},e.toDisplayString(a.name),5)],10,Mt))),128))],4)):(e.openBlock(),e.createElementBlock("div",Wt,[e.renderSlot(l.$slots,"legend",{legend:t.absoluteDataset},void 0,!0)],512)),l.$slots.source?(e.openBlock(),e.createElementBlock("div",qt,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(A,{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:l.$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(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$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(S,{key:11,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",Yt,[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=a=>r.showSparklineTable=a)},null,512),[[e.vModelCheckbox,r.showSparklineTable]]),e.createElementVNode("div",{onClick:i[5]||(i[5]=a=>r.showSparklineTable=!r.showSparklineTable),style:{cursor:"pointer"}},[e.createVNode(_,{name:"chartLine",size:20,stroke:t.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),r.showSparklineTable?(e.openBlock(),e.createBlock(k,{key:`sparkline_${r.segregateStep}`,dataset:t.tableSparklineDataset,config:t.tableSparklineConfig},null,8,["dataset","config"])):(e.openBlock(),e.createBlock(b,{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]=a=>r.mutableConfig.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,Xt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(isNaN(Number(a))?a:t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:a,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,U)}const Zt=q._export_sfc(X,[["render",Ut],["__scopeId","data-v-843e93cc"]]);exports.default=Zt;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as v, computed as m, watch as Y, onMounted as xa, onBeforeUnmount as La, openBlock as C, createElementBlock as q, normalizeStyle as J, normalizeClass as ka, createBlock as P, createCommentVNode as _, unref as A, createSlots as Ca, withCtx as b, renderSlot as x, normalizeProps as B, guardReactiveProps as X, createElementVNode as K, createVNode as wa, toDisplayString as Ve, createTextVNode as Sa } from "vue";
|
|
2
|
-
import { u as $a, c as za, t as Ta, a as Ma, p as D, b as Ra, C as ge, i as Q, f as ee, I as Ia, d as je, $ as Oa, o as Pa, e as Fa, x as qe, y as Ea, q as Na, r as _a, s as ae, l as Aa } from "./index-
|
|
2
|
+
import { u as $a, c as za, t as Ta, a as Ma, p as D, b as Ra, C as ge, i as Q, f as ee, I as Ia, d as je, $ as Oa, o as Pa, e as Fa, x as qe, y as Ea, q as Na, r as _a, s as ae, l as Aa } from "./index-Qst-5kz0.js";
|
|
3
3
|
import { d as Da, c as Ha, a as Je, t as Wa, l as w, r as pe, b as F, p as Ke, u as Ya } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Ba } from "./Tooltip-
|
|
5
|
-
import { L as Xa } from "./Legend-
|
|
6
|
-
import { _ as Ua } from "./Title-
|
|
7
|
-
import { S as Za } from "./Slicer-
|
|
8
|
-
import { u as Ga, U as Va } from "./usePrinter-
|
|
9
|
-
import ja from "./vue-ui-accordion-
|
|
10
|
-
import { D as qa } from "./DataTable-
|
|
11
|
-
import Ja from "./vue-ui-skeleton-
|
|
12
|
-
import { u as Qe } from "./useNestedProp-
|
|
13
|
-
import { P as Ka } from "./PenAndPaper-
|
|
4
|
+
import { _ as Ba } from "./Tooltip-WJvwo3eC.js";
|
|
5
|
+
import { L as Xa } from "./Legend-xj_UZPuw.js";
|
|
6
|
+
import { _ as Ua } from "./Title-CoonHZp1.js";
|
|
7
|
+
import { S as Za } from "./Slicer-BtiO3aSt.js";
|
|
8
|
+
import { u as Ga, U as Va } from "./usePrinter-srpiqIq8.js";
|
|
9
|
+
import ja from "./vue-ui-accordion-CHl3zwsU.js";
|
|
10
|
+
import { D as qa } from "./DataTable-BlGRB1Pa.js";
|
|
11
|
+
import Ja from "./vue-ui-skeleton-3V3a9YDD.js";
|
|
12
|
+
import { u as Qe } from "./useNestedProp-D3SUMrZY.js";
|
|
13
|
+
import { P as Ka } from "./PenAndPaper-D8QdkfKM.js";
|
|
14
14
|
import { _ as Qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const et = ["id"], at = ["onClick"], tt = {
|
|
16
16
|
key: 2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-uTaoMjg1.cjs"),d=require("./useResponsive-BJ7DTGpm.cjs"),Je=require("./Tooltip-DSZJXOZo.cjs"),Ke=require("./Legend-Ds7yCP4e.cjs"),Qe=require("./Title-BqcJ8-j1.cjs"),et=require("./Slicer-BMIoaXrp.cjs"),Pe=require("./usePrinter-DGnyAFMM.cjs"),tt=require("./vue-ui-accordion-D88l7NVk.cjs"),at=require("./DataTable-CxaymjxX.cjs"),lt=require("./vue-ui-skeleton-B9HVcMQ5.cjs"),Me=require("./useNestedProp-P8wzQfmW.cjs"),ot=require("./PenAndPaper-vKdCNpVJ.cjs"),rt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=["id"],nt=["onClick"],st={key:2,class:"vue-data-ui-watermark"},it=["innerHTML"],ct={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(Q,{expose:Re,emit:Oe}){const M=Q,{vue_ui_xy_canvas:Ne}=n.useConfig(),U=a.ref(n.createUid()),I=a.ref(null),C=a.ref(null),B=a.ref(null),i=a.ref(null),p=a.ref(1),z=a.ref(1),A=a.ref(!1),f=a.ref(null),_=a.ref(""),ee=a.ref(null),L=a.ref([]),O=a.ref(1),R=a.ref(!0),w=a.ref(!0),X=a.ref(null),te=a.ref(0),ae=a.ref(0),Z=a.ref(!1),le=a.ref(null),oe=a.ref(null),re=a.ref(null),ue=a.ref(null),ne=a.ref(0),se=a.ref(0),ie=a.ref(0),G=a.computed(()=>!!M.dataset&&M.dataset.length),t=a.computed({get:()=>ce(),set:e=>e});function ce(){const e=Me.useNestedProp({userConfig:M.config,defaultConfig:Ne});return e.theme?{...Me.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||M.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:e}a.watch(()=>M.config,e=>{t.value=ce(),xe(),ne.value+=1,se.value+=1,ie.value+=1},{deep:!0});const ve=a.ref(t.value.style.chart.aspectRatio),{isPrinting:de,isImaging:he,generatePdf:fe,generateImage:ye}=Pe.usePrinter({elementId:`xy_canvas_${U.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=a.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ie(e){Z.value=e,ae.value+=1}const pe=a.computed(()=>n.convertCustomPalette(t.value.customPalette)),$=a.computed(()=>N.value?Math.max(...N.value.filter((e,o)=>!L.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),l=a.computed(()=>{const e=p.value-p.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:p.value,canvasHeight:z.value,left:p.value*t.value.style.chart.paddingProportions.left,top:z.value*t.value.style.chart.paddingProportions.top,right:p.value-p.value*t.value.style.chart.paddingProportions.right,bottom:z.value-z.value*t.value.style.chart.paddingProportions.bottom,width:e,height:z.value-z.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function ge(e,o){return e/o}function Be({hasAutoScale:e,series:o,min:r,max:v,scale:h,yOffset:g,individualHeight:c,stackIndex:m=null}){return o.map((k,K)=>{const S=h.min<0?Math.abs(h.min):0,T=ge(k+S,S+h.max);let P,E;e&&(P=Math.abs(h.min),E=ge(k+P,h.max+P));let F=0;return m===null?F=l.value.bottom-l.value.height*(e?E:T):F=l.value.bottom-g-c*(e?E:T),{x:l.value.left+l.value.slot*K+l.value.slot/2,y:F,value:k}})}const b=a.computed(()=>{const e=Math.min(...N.value.filter((c,m)=>!L.value.includes(c.absoluteIndex)).flatMap(c=>c.series.slice(u.value.start,u.value.end))),o=Math.max(...N.value.filter((c,m)=>!L.value.includes(c.absoluteIndex)).flatMap(c=>c.series.slice(u.value.start,u.value.end))),r=n.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),v=r.min<0?Math.abs(r.min):0,h=l.value.bottom-l.value.height*(v/(r.max+v)),g=r.ticks.map(c=>({y:l.value.bottom-l.value.height*((c+v)/(r.max+v)),x:l.value.left-8,value:c}));return{absoluteMin:v,max:o,min:e,scale:r,yLabels:g,zero:h}}),Ee=a.computed(()=>y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),v=require("./index-Ci5MafHS.cjs");function p({tooltip:e,chart:r,clientPosition:t,positionPreference:a="center",defaultOffsetY:d=24}){const u=o.ref(0),l=o.ref(d);if(e&&r){const{width:n,height:f}=e.getBoundingClientRect(),{right:i,left:s,bottom:m}=r.getBoundingClientRect();a==="center"&&(t.x+n/2>i?u.value=-n+(i-t.x):t.x-n/2<s?u.value=-n+(n-(t.x-s)):u.value=-n/2),a==="right"&&(t.x+n>i?u.value=-n+(i-t.x):u.value=0),a==="left"&&(t.x<s+n?u.value=-n+(n-(t.x-s)):u.value=-n),t.y+f>m&&(l.value=-f-d)}return{top:t.y+l.value,left:t.x+u.value}}function y(e,r,t){o.onMounted(()=>e.addEventListener(r,t)),o.onUnmounted(()=>e.removeEventListener(r,t))}function c(){const e=o.ref(0),r=o.ref(0);return y(window,"mousemove",t=>{e.value=t.clientX,r.value=t.clientY}),{x:e,y:r}}const b=["innerHTML"],g={__name:"Tooltip",props:{backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#000000"},content:String,maxWidth:{type:String,default:"300px"},parent:{type:Object},show:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:14},borderRadius:{type:Number,default:4},borderColor:{type:String,default:"#e1e5e8"},borderWidth:{type:Number,default:1},backgroundOpacity:{type:Number,default:100},position:{type:String,default:"center"},offsetY:{type:Number,default:24}},setup(e){const r=e,t=o.ref(null),a=o.ref(c()),d=o.computed(()=>p({tooltip:t.value,chart:r.parent,clientPosition:a.value,positionPreference:r.position,defaultOffsetY:r.offsetY})),u=o.computed(()=>v.setOpacity(r.backgroundColor,r.backgroundOpacity));return(l,n)=>e.show?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"tooltip",ref:t,class:o.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:o.normalizeStyle(`pointer-events:none;top:${d.value.top}px;left:${d.value.left}px;${e.isCustom?"":`background:${u.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};border-radius:${e.borderRadius}px;border:${e.borderWidth}px solid ${e.borderColor};`)},[o.renderSlot(l.$slots,"tooltip-before"),o.renderSlot(l.$slots,"default"),o.createElementVNode("div",{innerHTML:e.content},null,8,b),o.renderSlot(l.$slots,"tooltip-after")],6)):o.createCommentVNode("",!0)}};exports._sfc_main=g;exports.useMouse=c;
|
package/dist/Tooltip-klg8yuWM.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { ref as l, onMounted as v, onUnmounted as y, computed as m, openBlock as b, createElementBlock as g, normalizeClass as x, normalizeStyle as h, renderSlot as f, createElementVNode as $, createCommentVNode as C } from "vue";
|
|
2
|
-
import { s as S } from "./index-Cn1EWnYG.js";
|
|
3
|
-
function k({ tooltip: e, chart: o, clientPosition: t, positionPreference: a = "center", defaultOffsetY: i = 24 }) {
|
|
4
|
-
const u = l(0), r = l(i);
|
|
5
|
-
if (e && o) {
|
|
6
|
-
const { width: n, height: c } = e.getBoundingClientRect(), { right: d, left: s, bottom: p } = o.getBoundingClientRect();
|
|
7
|
-
a === "center" && (t.x + n / 2 > d ? u.value = -n + (d - t.x) : t.x - n / 2 < s ? u.value = -n + (n - (t.x - s)) : u.value = -n / 2), a === "right" && (t.x + n > d ? u.value = -n + (d - t.x) : u.value = 0), a === "left" && (t.x < s + n ? u.value = -n + (n - (t.x - s)) : u.value = -n), t.y + c > p && (r.value = -c - i);
|
|
8
|
-
}
|
|
9
|
-
return {
|
|
10
|
-
top: t.y + r.value,
|
|
11
|
-
left: t.x + u.value
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function B(e, o, t) {
|
|
15
|
-
v(() => e.addEventListener(o, t)), y(() => e.removeEventListener(o, t));
|
|
16
|
-
}
|
|
17
|
-
function N() {
|
|
18
|
-
const e = l(0), o = l(0);
|
|
19
|
-
return B(window, "mousemove", (t) => {
|
|
20
|
-
e.value = t.clientX, o.value = t.clientY;
|
|
21
|
-
}), { x: e, y: o };
|
|
22
|
-
}
|
|
23
|
-
const w = ["innerHTML"], E = {
|
|
24
|
-
__name: "Tooltip",
|
|
25
|
-
props: {
|
|
26
|
-
backgroundColor: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "#FFFFFF"
|
|
29
|
-
},
|
|
30
|
-
color: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "#000000"
|
|
33
|
-
},
|
|
34
|
-
content: String,
|
|
35
|
-
maxWidth: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: "300px"
|
|
38
|
-
},
|
|
39
|
-
parent: {
|
|
40
|
-
type: Object
|
|
41
|
-
},
|
|
42
|
-
show: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !1
|
|
45
|
-
},
|
|
46
|
-
isCustom: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !1
|
|
49
|
-
},
|
|
50
|
-
fontSize: {
|
|
51
|
-
type: [Number, String],
|
|
52
|
-
default: 14
|
|
53
|
-
},
|
|
54
|
-
borderRadius: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 4
|
|
57
|
-
},
|
|
58
|
-
borderColor: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: "#e1e5e8"
|
|
61
|
-
},
|
|
62
|
-
borderWidth: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 1
|
|
65
|
-
},
|
|
66
|
-
backgroundOpacity: {
|
|
67
|
-
type: Number,
|
|
68
|
-
default: 100
|
|
69
|
-
},
|
|
70
|
-
position: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: "center"
|
|
73
|
-
},
|
|
74
|
-
offsetY: {
|
|
75
|
-
type: Number,
|
|
76
|
-
default: 24
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
setup(e) {
|
|
80
|
-
const o = e, t = l(null), a = l(N()), i = m(() => k({
|
|
81
|
-
tooltip: t.value,
|
|
82
|
-
chart: o.parent,
|
|
83
|
-
clientPosition: a.value,
|
|
84
|
-
positionPreference: o.position,
|
|
85
|
-
defaultOffsetY: o.offsetY
|
|
86
|
-
})), u = m(() => S(o.backgroundColor, o.backgroundOpacity));
|
|
87
|
-
return (r, n) => e.show ? (b(), g("div", {
|
|
88
|
-
key: 0,
|
|
89
|
-
ref_key: "tooltip",
|
|
90
|
-
ref: t,
|
|
91
|
-
class: x({ "vue-data-ui-custom-tooltip": e.isCustom, "vue-data-ui-tooltip": !e.isCustom }),
|
|
92
|
-
style: h(`pointer-events:none;top:${i.value.top}px;left:${i.value.left}px;${e.isCustom ? "" : `background:${u.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};border-radius:${e.borderRadius}px;border:${e.borderWidth}px solid ${e.borderColor};`)
|
|
93
|
-
}, [
|
|
94
|
-
f(r.$slots, "tooltip-before"),
|
|
95
|
-
f(r.$slots, "default"),
|
|
96
|
-
$("div", { innerHTML: e.content }, null, 8, w),
|
|
97
|
-
f(r.$slots, "tooltip-after")
|
|
98
|
-
], 6)) : C("", !0);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
export {
|
|
102
|
-
E as _,
|
|
103
|
-
N as u
|
|
104
|
-
};
|