vue-data-ui 2.6.7 → 2.6.9
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/dist/{Arrow-PPbxds1Q.cjs → Arrow-B5Fowd9E.cjs} +1 -1
- package/dist/{Arrow-BxUmDF04.js → Arrow-XUfEagNR.js} +1 -1
- package/dist/{BaseIcon-CDx9pxUG.js → BaseIcon-BTx6biat.js} +1 -1
- package/dist/{BaseIcon-BmVwfJg2.cjs → BaseIcon-CryLVoaH.cjs} +1 -1
- package/dist/{DataTable-TjJIVFlL.js → DataTable-n3ZWSPsz.js} +2 -2
- package/dist/{DataTable-Cv_TVAas.cjs → DataTable-oajjRhip.cjs} +1 -1
- package/dist/{Legend-NKGwxkI7.js → Legend-BbA3GOXo.js} +2 -2
- package/dist/{Legend-DunrYGuw.cjs → Legend-D2hs4A1E.cjs} +1 -1
- package/dist/{PackageVersion-QRvxRYPv.js → PackageVersion-CCXzMWuf.js} +1 -1
- package/dist/{PackageVersion-DJKkRuOD.cjs → PackageVersion-D0mzevDk.cjs} +1 -1
- package/dist/{PenAndPaper-CxC1lWGK.js → PenAndPaper-C3qGJ1mF.js} +3 -3
- package/dist/{PenAndPaper-MTTJ3Gd9.cjs → PenAndPaper-DFw6nHeD.cjs} +1 -1
- package/dist/{Shape-D_1vUjCL.cjs → Shape-CDXj5YIj.cjs} +1 -1
- package/dist/{Shape-58uyOuYc.js → Shape-DM1YyBgP.js} +1 -1
- package/dist/{Slicer-BGEieXKn.cjs → Slicer-D9B6W8zX.cjs} +1 -1
- package/dist/{Slicer-C7ormJRw.js → Slicer-DNyqaTO7.js} +2 -2
- package/dist/{Title-Dk92HYMu.cjs → Title-BIvGm_O3.cjs} +1 -1
- package/dist/{Title-BI8etrRU.js → Title-Ci05WFhs.js} +1 -1
- package/dist/{Tooltip-Cxc8c50d.js → Tooltip-BGoyGTcf.js} +1 -1
- package/dist/{Tooltip-ClMeqejQ.cjs → Tooltip-BIC3xxj7.cjs} +1 -1
- package/dist/index-BsQlLw24.cjs +9 -0
- package/dist/{index-9EeNZMz1.js → index-CWfVXv5m.js} +6 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -0
- package/dist/types/vue-data-ui.d.ts +5 -0
- package/dist/{useNestedProp-df_bKQEI.js → useNestedProp-D4gVG7s3.js} +1 -1
- package/dist/{useNestedProp-BNT60LxO.cjs → useNestedProp-suOXyj95.cjs} +1 -1
- package/dist/{usePrinter-dyVny55M.cjs → usePrinter-CHFROcW6.cjs} +1 -1
- package/dist/{usePrinter-ngrh00Ym.js → usePrinter-CNafRB9Y.js} +1 -1
- package/dist/{vue-data-ui-BYX-I7HQ.cjs → vue-data-ui-CvL0jRIZ.cjs} +1 -1
- package/dist/{vue-data-ui-CDD7JcMs.js → vue-data-ui-DaM6wctb.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BArLjlrc.js → vue-ui-3d-bar-BTpAkS0e.js} +9 -9
- package/dist/{vue-ui-3d-bar-DegdXf_S.cjs → vue-ui-3d-bar-BWjrWLRJ.cjs} +1 -1
- package/dist/{vue-ui-accordion-Qo8JxnIN.js → vue-ui-accordion-BrKcc0Za.js} +3 -3
- package/dist/{vue-ui-accordion-D2qxHGzp.cjs → vue-ui-accordion-Czbtgpgm.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Biz02m7c.js → vue-ui-age-pyramid-Bwb9Z7u9.js} +10 -10
- package/dist/{vue-ui-age-pyramid-kpaaJ2Gx.cjs → vue-ui-age-pyramid-uHIhvC5s.cjs} +1 -1
- package/dist/{vue-ui-annotator-MXs48Lua.js → vue-ui-annotator-CU1A7erK.js} +1 -1
- package/dist/{vue-ui-annotator-By6XNYm0.cjs → vue-ui-annotator-TUIKW1gF.cjs} +1 -1
- package/dist/{vue-ui-bullet-CtBs_r3I.js → vue-ui-bullet-Bilc6pkE.js} +8 -8
- package/dist/{vue-ui-bullet-Dkz6vX0T.cjs → vue-ui-bullet-BqkAm1y1.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DiEUIuW8.cjs → vue-ui-candlestick-CdemiHyJ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-gPztmuJE.js → vue-ui-candlestick-Cq6b9oYh.js} +11 -11
- package/dist/{vue-ui-carousel-table-CYeXP21y.cjs → vue-ui-carousel-table-D8ZhtJ_Z.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D9ckYNKZ.js → vue-ui-carousel-table-DmmE6hW5.js} +4 -4
- package/dist/{vue-ui-chestnut-DWjn-jcN.js → vue-ui-chestnut-BGSO4VfS.js} +8 -8
- package/dist/{vue-ui-chestnut-oZtRERnV.cjs → vue-ui-chestnut-b2iytY5v.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-Bz5yVvAM.js → vue-ui-circle-pack-DB2NGsJa.js} +9 -9
- package/dist/{vue-ui-circle-pack-DCJ6N00S.cjs → vue-ui-circle-pack-DaTWjDdt.cjs} +1 -1
- package/dist/{vue-ui-cursor-DZhRygRy.cjs → vue-ui-cursor-BNSm9CqX.cjs} +1 -1
- package/dist/{vue-ui-cursor-BrrVDy1u.js → vue-ui-cursor-BzrUnhnu.js} +2 -2
- package/dist/{vue-ui-dashboard-o8Ju_cXW.cjs → vue-ui-dashboard-Dve8PPSg.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DEmGN8Js.js → vue-ui-dashboard-hOXxqRLq.js} +2 -2
- package/dist/{vue-ui-digits-DbOrROu7.js → vue-ui-digits-0QVNbBza.js} +2 -2
- package/dist/{vue-ui-digits-CgyYdrQ5.cjs → vue-ui-digits-DpCVyWQc.cjs} +1 -1
- package/dist/{vue-ui-donut-9pWaRwf3.cjs → vue-ui-donut-CPe4B8iX.cjs} +1 -1
- package/dist/{vue-ui-donut-CP5uWglM.js → vue-ui-donut-CX5GnqeG.js} +12 -12
- package/dist/{vue-ui-donut-evolution-BAMD1wQ5.js → vue-ui-donut-evolution-CNAZo--D.js} +11 -11
- package/dist/{vue-ui-donut-evolution-Ci_gIrkO.cjs → vue-ui-donut-evolution-DCMlp5jl.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CFYd-Ypn.js → vue-ui-dumbbell-C4-bhU5A.js} +10 -10
- package/dist/{vue-ui-dumbbell-DUNYoZxT.cjs → vue-ui-dumbbell-D6ZkzaHh.cjs} +1 -1
- package/dist/{vue-ui-flow-W89ofPB-.cjs → vue-ui-flow-BLL4cPs3.cjs} +1 -1
- package/dist/{vue-ui-flow-CdvGWFzv.js → vue-ui-flow-CLoj51_4.js} +9 -9
- package/dist/{vue-ui-funnel-DYutKyoz.js → vue-ui-funnel-BpzIb0i9.js} +9 -9
- package/dist/{vue-ui-funnel-RvdVrhFu.cjs → vue-ui-funnel-C581xeWE.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BCBRlYS1.js → vue-ui-galaxy-CvJK-Q92.js} +11 -11
- package/dist/{vue-ui-galaxy-Djdx-ca8.cjs → vue-ui-galaxy-ohlYKV59.cjs} +1 -1
- package/dist/{vue-ui-gauge-BNAAZt4F.js → vue-ui-gauge-DU0fi2Cj.js} +7 -7
- package/dist/{vue-ui-gauge-BVVmf09x.cjs → vue-ui-gauge-qwo663L4.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BFQ_KgLX.js → vue-ui-gizmo-73Ku2o7o.js} +3 -3
- package/dist/{vue-ui-gizmo-Ceh0oFY3.cjs → vue-ui-gizmo-D7IronxF.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CiZpI-tA.cjs → vue-ui-heatmap-BAxE7u_1.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Ct3qaBv7.js → vue-ui-heatmap-By7uLj_w.js} +10 -10
- package/dist/{vue-ui-history-plot-Ci8Y2EFg.cjs → vue-ui-history-plot-legCqM6r.cjs} +1 -1
- package/dist/{vue-ui-history-plot-shn74MJ6.js → vue-ui-history-plot-mGD3eIag.js} +11 -11
- package/dist/{vue-ui-kpi-DfYrbxlX.cjs → vue-ui-kpi-8ivLxQqg.cjs} +1 -1
- package/dist/{vue-ui-kpi-B_pV-2JJ.js → vue-ui-kpi-DXR7_WCN.js} +3 -3
- package/dist/{vue-ui-mini-loader-BFnWQs5p.js → vue-ui-mini-loader-Bgd84CSA.js} +2 -2
- package/dist/{vue-ui-mini-loader-LIqf62jk.cjs → vue-ui-mini-loader-Cl8x7878.cjs} +1 -1
- package/dist/{vue-ui-molecule-D8YuYTKv.cjs → vue-ui-molecule-DQbcdob7.cjs} +1 -1
- package/dist/{vue-ui-molecule-DNz1m8XZ.js → vue-ui-molecule-GtCZU7R0.js} +11 -11
- package/dist/{vue-ui-mood-radar-DiYB_zhM.js → vue-ui-mood-radar-CXJ3vpaL.js} +11 -11
- package/dist/{vue-ui-mood-radar-uvH7qUHy.cjs → vue-ui-mood-radar-ELwAL5Go.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-9hn-g4ir.js → vue-ui-nested-donuts-DlgaImgY.js} +11 -11
- package/dist/{vue-ui-nested-donuts-C7ikDjp7.cjs → vue-ui-nested-donuts-h2dDy-_I.cjs} +1 -1
- package/dist/{vue-ui-onion-5Rqvd4Fw.cjs → vue-ui-onion-Bnm8bVis.cjs} +1 -1
- package/dist/{vue-ui-onion-DCWfNTNu.js → vue-ui-onion-CXpw7sq7.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs → vue-ui-parallel-coordinate-plot-Rs4YBn4y.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CaPFL9_1.js → vue-ui-parallel-coordinate-plot-RyzLSDN7.js} +12 -12
- package/dist/{vue-ui-quadrant-BoQZ375K.js → vue-ui-quadrant-C252RXMP.js} +12 -12
- package/dist/{vue-ui-quadrant-B0Sw5NGo.cjs → vue-ui-quadrant-D_LFPIT_.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-vfMN8F1q.js → vue-ui-quick-chart-BWMSOP5P.js} +9 -9
- package/dist/{vue-ui-quick-chart-D3zV1d7t.cjs → vue-ui-quick-chart-MqE6aph-.cjs} +1 -1
- package/dist/{vue-ui-radar-CAuu6wkh.js → vue-ui-radar-BjoztmAZ.js} +12 -12
- package/dist/{vue-ui-radar-CNMJCAwo.cjs → vue-ui-radar-C5kQ_p57.cjs} +1 -1
- package/dist/{vue-ui-rating-dsRDRL98.cjs → vue-ui-rating-C6hiBRH5.cjs} +1 -1
- package/dist/{vue-ui-rating-Bm0HZ3du.js → vue-ui-rating-CM8xa7cF.js} +2 -2
- package/dist/{vue-ui-relation-circle-5OZMN9jR.js → vue-ui-relation-circle-Binpp35O.js} +7 -7
- package/dist/{vue-ui-relation-circle-iD7BufNH.cjs → vue-ui-relation-circle-DzNG9vJO.cjs} +1 -1
- package/dist/{vue-ui-rings-DC4WG4sK.cjs → vue-ui-rings-B0z985U2.cjs} +1 -1
- package/dist/{vue-ui-rings-COefBaQT.js → vue-ui-rings-DG6eodWo.js} +12 -12
- package/dist/{vue-ui-scatter-5ny76dmi.cjs → vue-ui-scatter-1ztWzF3T.cjs} +1 -1
- package/dist/{vue-ui-scatter-DhO83TZZ.js → vue-ui-scatter-CeqhhHXd.js} +12 -12
- package/dist/{vue-ui-screenshot-DABH_phE.cjs → vue-ui-screenshot-BT3NvcXw.cjs} +1 -1
- package/dist/{vue-ui-screenshot-brillPo5.js → vue-ui-screenshot-CVEohGlX.js} +1 -1
- package/dist/{vue-ui-skeleton-BmJiYGtE.js → vue-ui-skeleton-CBgqwx0w.js} +3 -3
- package/dist/{vue-ui-skeleton-_DN0U6W6.cjs → vue-ui-skeleton-Djh065IE.cjs} +1 -1
- package/dist/{vue-ui-smiley-CW6714mb.cjs → vue-ui-smiley-BKUkSQik.cjs} +1 -1
- package/dist/{vue-ui-smiley-D9NRimij.js → vue-ui-smiley-CKxZ7alq.js} +2 -2
- package/dist/{vue-ui-spark-trend-BKZj03CQ.js → vue-ui-spark-trend-CJcsOAiE.js} +5 -5
- package/dist/{vue-ui-spark-trend-expbkxgR.cjs → vue-ui-spark-trend-DhECbF2S.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CYRORE5i.js → vue-ui-sparkbar-DG7RvjQD.js} +4 -4
- package/dist/{vue-ui-sparkbar-Cr9FtevP.cjs → vue-ui-sparkbar-rMlTAx4t.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-JV4tYB7P.js → vue-ui-sparkgauge-CRKfdFvs.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BHXFhvTv.cjs → vue-ui-sparkgauge-_hMXjqiJ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-T4a3DDck.cjs → vue-ui-sparkhistogram-B9Ts-6Ct.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DKINHX2q.js → vue-ui-sparkhistogram-DodJEKpg.js} +5 -5
- package/dist/{vue-ui-sparkline-CbRTHtig.js → vue-ui-sparkline-BgiovjuQ.js} +4 -4
- package/dist/{vue-ui-sparkline-Dc6Sf3n8.cjs → vue-ui-sparkline-BlWMJ4tb.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CV5SkdsP.cjs → vue-ui-sparkstackbar-YAvOUvuW.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-6u9-2nG4.js → vue-ui-sparkstackbar-ruSw1kKR.js} +5 -5
- package/dist/{vue-ui-stackbar-CXB-nd71.cjs → vue-ui-stackbar-B4JNdSgw.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CUppObfj.js → vue-ui-stackbar-Db2tbDLX.js} +13 -13
- package/dist/{vue-ui-strip-plot-6IXF_U6-.cjs → vue-ui-strip-plot-B4aD-087.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-doaNZAW4.js → vue-ui-strip-plot-SITK-H8f.js} +11 -11
- package/dist/{vue-ui-table-S66UCskD.cjs → vue-ui-table-BOBdSkYh.cjs} +1 -1
- package/dist/{vue-ui-table-CZsNuDR5.js → vue-ui-table-Cjc9orAT.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CjohHqDV.js → vue-ui-table-heatmap-CN1lQivS.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BU9UU15H.cjs → vue-ui-table-heatmap-QocifZtN.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CHFFTD0a.cjs → vue-ui-table-sparkline-Cx-7SMze.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-ab2rwdKB.js → vue-ui-table-sparkline-DM0QQC2N.js} +5 -5
- package/dist/{vue-ui-thermometer-C72mHwUi.js → vue-ui-thermometer-BNrH4oj3.js} +7 -7
- package/dist/{vue-ui-thermometer-Ccd6RGh8.cjs → vue-ui-thermometer-CQqF1J5n.cjs} +1 -1
- package/dist/{vue-ui-timer-C8Fn2B0b.cjs → vue-ui-timer-BIdWMds6.cjs} +1 -1
- package/dist/{vue-ui-timer-D-LNi6lz.js → vue-ui-timer-DBKZl1Hs.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bo8EWsJ8.js → vue-ui-tiremarks-COrnANET.js} +7 -7
- package/dist/{vue-ui-tiremarks-SOzvMOz4.cjs → vue-ui-tiremarks-DcMytXxZ.cjs} +1 -1
- package/dist/{vue-ui-treemap-BqTTQrVh.cjs → vue-ui-treemap-D8Wp1-OG.cjs} +1 -1
- package/dist/{vue-ui-treemap-uj94elVB.js → vue-ui-treemap-WBkNDEd7.js} +11 -11
- package/dist/{vue-ui-vertical-bar-C4Sxun4Q.cjs → vue-ui-vertical-bar-BNswKYcA.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BUTOw-DK.js → vue-ui-vertical-bar-slw4elUv.js} +12 -12
- package/dist/{vue-ui-waffle-DYWGRKdT.cjs → vue-ui-waffle-DXCVXO7E.cjs} +1 -1
- package/dist/{vue-ui-waffle-CTWA1frT.js → vue-ui-waffle-Frue_Rl8.js} +12 -12
- package/dist/{vue-ui-wheel-8K72ZKda.js → vue-ui-wheel-BS1W-Niw.js} +7 -7
- package/dist/{vue-ui-wheel-Cz5-0klT.cjs → vue-ui-wheel-D9s58OnR.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CSwBPDB8.js → vue-ui-word-cloud-BNVu5zfu.js} +10 -10
- package/dist/{vue-ui-word-cloud-D39riLZb.cjs → vue-ui-word-cloud-BifhSeRA.cjs} +1 -1
- package/dist/{vue-ui-xy-DpDKutd7.js → vue-ui-xy-B3LGX-Nf.js} +212 -190
- package/dist/vue-ui-xy-BuLo-J8c.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BCj0SCqe.cjs → vue-ui-xy-canvas-GPbmSgtz.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-BQm9gah4.js → vue-ui-xy-canvas-QKwLnkCW.js} +13 -13
- package/package.json +1 -1
- package/dist/index-DEnRHTzk.cjs +0 -9
- package/dist/vue-ui-xy-BbWXjajH.cjs +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index-BsQlLw24.cjs"),B=require("./DataTable-oajjRhip.cjs"),V=require("./Title-BIvGm_O3.cjs"),G=require("./Tooltip-BIC3xxj7.cjs"),E=require("./usePrinter-CHFROcW6.cjs"),z=require("./Shape-CDXj5YIj.cjs"),P=require("./BaseIcon-CryLVoaH.cjs"),M=require("./vue-ui-table-sparkline-Cx-7SMze.cjs"),T=require("./vue-ui-skeleton-Djh065IE.cjs"),D=require("./Slicer-D9B6W8zX.cjs"),R=require("./vue-ui-accordion-Czbtgpgm.cjs"),v=require("./useNestedProp-suOXyj95.cjs"),H=require("./PackageVersion-D0mzevDk.cjs"),W=require("./PenAndPaper-DFw6nHeD.cjs"),t=require("vue"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=h.createUid(),X={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:B.DataTable,Shape:z._sfc_main,Title:V._sfc_main,Tooltip:G._sfc_main,UserOptions:E.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((c,l)=>{[null,void 0].includes(c.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:l})});const r=this.config.downsample&&this.config.downsample.threshold?this.config.downsample.threshold:500,i=Math.max(...this.dataset.map(c=>this.largestTriangleThreeBucketsArray({data:c.series,threshold:r}).length)),o={start:0,end:i};return{themePalettes:h.themePalettes,themes:h.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:h.opacity,useSafeValues:!0,palette:h.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},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:h.createUid(),step:0,tableStep:0,titleStep:0,slicer:o,__to__:null,maxX:i,showSparklineTable:!0,segregateStep:0,sliderId:Y,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null,showUserOptionsOnChartHover:!1,keepUserOptionState:!0,userOptionsVisible:!0}},watch:{dataset:{handler(r,i){this.maxX=Math.max(...this.dataset.map(o=>this.largestTriangleThreeBucketsArray({data:o.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),this.slicer={start:0,end:this.maxX},this.slicerStep+=1,this.segregateStep+=1},deep:!0},config:{handler(r,i){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1,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}},deep:!0}},computed:{chartAriaLabel(){const r=this.FINAL_CONFIG.chart.title.text||"Chart visualization",i=this.FINAL_CONFIG.chart.title.subtitle.text||"";return`${r}. ${i}`},optimize(){return{linePlot:this.maxSeries>this.FINAL_CONFIG.line.dot.hideAboveMaxSerieLength}},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 r=this.datasetWithIds.filter(l=>!this.segregatedSeries.includes(l.id)),i=Math.max(...r.map(l=>l.series.length)),o=[];for(let l=0;l<i;l+=1)o.push(r.map(e=>e.series[l]||0).reduce((e,I)=>(e||0)+(I||0),0));const c=Math.min(...o);return o.map(l=>l+(c<0?Math.abs(c):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 r=this.lineSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height,autoScaleYLabels:l.autoScaleYLabels})),i=this.barSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height})),o=this.plotSet.map(l=>({name:l.name,color:l.color,scale:l.individualScale,scaleYLabels:l.scaleYLabels,zero:l.zeroPosition,max:l.individualMax,scaleLabel:l.scaleLabel||"",id:l.id,yOffset:l.yOffset||0,individualHeight:l.individualHeight||this.drawingArea.height})),c=[...r,...i,...o].flatMap(l=>l).length;return[...r,...i,...o].flatMap((l,e)=>({id:l.id,scaleLabel:l.scaleLabel,name:l.name,color:l.color,scale:l.scale,yOffset:l.yOffset,individualHeight:l.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/c*(e+1),yLabels:l.scaleYLabels||l.scale.ticks.map(I=>({y:I>=0?l.zero-l.individualHeight*(I/l.max):l.zero+l.individualHeight*Math.abs(I)/l.max,value:I}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const r=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(r,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(r){return r}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(r=>r.show):this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},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 r=this.FINAL_CONFIG.chart.highlightArea;return[{...r,span:r.from===r.to?1:r.to<r.from?0:r.to-r.from+1}]},xPadding(){return this.FINAL_CONFIG.chart.grid.position==="middle"?0:this.drawingArea.width/this.maxSeries/2},relativeZero(){return[null,void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin)?this.niceScale.min>=0?0:Math.abs(this.niceScale.min):-this.niceScale.min},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((r,i)=>({...r,series:this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold}),id:`uniqueId_${i}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((r,i)=>{const o=this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold});return{...r,slotAbsoluteIndex:i,series:o.map(c=>this.isSafeValue(c)?c:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(r.color?r.color:this.customPalette[i]?this.customPalette[i]:this.palette[i]),id:`uniqueId_${i}`}}):this.dataset},relativeDataset(){return this.safeDataset.map((r,i)=>({...r,series:r.series.map(o=>o+this.relativeZero),absoluteValues:r.series})).filter(r=>!this.segregatedSeries.includes(r.id))},tableSparklineDataset(){return this.relativeDataset.map(r=>{const i=r.absoluteValues.map(o=>[void 0,null].includes(o)?0:o);return{id:r.id,name:r.name,color:r.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((r,i)=>({absoluteIndex:i,...r,series:r.series.map(o=>o+this.relativeZero),absoluteValues:r.series,segregate:()=>this.segregate(r),isSegregated:this.segregatedSeries.includes(r.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="bar").map((r,i)=>{this.checkAutoScaleError(r);const o=Math.min(...r.absoluteValues.filter(m=>![null,void 0].includes(m))),c=Math.max(...r.absoluteValues.filter(m=>![null,void 0].includes(m)));r.absoluteValues.filter(m=>![null,void 0].includes(m)).map(m=>(m-o)/(c-o));const l={valueMin:o,valueMax:c<0?0:c},e={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues.filter(m=>![void 0,null].includes(m)))>0?0:Math.min(...r.absoluteValues.filter(m=>![null,void 0].includes(m)))},I=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,f=1.0000001,u=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*f:e.max,I),x=this.calculateNiceScaleWithExactExtremes(l.valueMin,l.valueMax===l.valueMin?l.valueMax*f:l.valueMax,I),_=u.min>=0?0:Math.abs(u.min),A=0,S=u.max+_,C=x.max+Math.abs(A),N=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,b=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,w=this.drawingArea.bottom-N-b*_/S,O=this.drawingArea.bottom-N-b*A/C,a=this.absoluteDataset.filter(m=>m.type==="bar").filter(m=>!this.segregatedSeries.includes(m.id)).length,n=r.series.map((m,L)=>{const g=this.mutableConfig.useIndividualScale?(r.absoluteValues[L]+_)/S:this.ratioToMax(m),k=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*L:this.drawingArea.left+this.slot.bar*i+this.slot.bar*L*a-this.barSlot/2-i*this.barPeriodGap;return{yOffset:this.checkNaN(N),individualHeight:this.checkNaN(b),x:this.checkNaN(k),y:this.drawingArea.bottom-N-b*g,value:r.absoluteValues[L],zeroPosition:this.checkNaN(w),individualMax:this.checkNaN(S),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[L]||""}}),s=r.absoluteValues.map(m=>x.min>=0?(m-Math.abs(x.min))/(x.max-Math.abs(x.min)):(m+Math.abs(x.min))/(x.max+Math.abs(x.min))),d=r.series.map((m,L)=>{const g=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*L:this.drawingArea.left-this.slot.bar/2+this.slot.bar*i+this.slot.bar*L*this.absoluteDataset.filter(k=>k.type==="bar").filter(k=>!this.segregatedSeries.includes(k.id)).length;return{yOffset:this.checkNaN(N),individualHeight:this.checkNaN(b),x:this.checkNaN(g),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(N)-(this.checkNaN(b)*s[L]||0)),value:r.absoluteValues[L],zeroPosition:this.checkNaN(w),individualMax:this.checkNaN(S),comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[L]||""}}),F=u.ticks.map(m=>({y:m>=0?w-b*(m/S):w+b*Math.abs(m)/S,value:m,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),y=x.ticks.map(m=>{const L=(m-x.min)/(x.max-x.min);return{y:m>=0?O-b*L:O+b*L,value:m,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:N,autoScaleYLabels:y,individualHeight:b,scaleYLabels:r.autoScaling?y:F,individualScale:r.autoScaling?x:u,individualMax:r.autoScaling?C:S,zeroPosition:r.autoScaling?O:w,plots:r.autoScaling?d:n}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(r=>!this.segregatedSeries.includes(r.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="line").map(r=>{this.checkAutoScaleError(r);const i=Math.min(...r.absoluteValues.filter(g=>![void 0,null].includes(g))),o=Math.max(...r.absoluteValues.filter(g=>![void 0,null].includes(g)))||1;r.absoluteValues.filter(g=>![null,void 0].includes(g)).map(g=>(g-i)/(o-i));const c={valueMin:i,valueMax:o},l={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||(Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues))},e=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=1.0000001,f=this.calculateNiceScaleWithExactExtremes(l.min,l.max===l.min?l.max*I:l.max,e),u=this.calculateNiceScaleWithExactExtremes(c.valueMin,c.valueMax===c.valueMin?c.valueMax*I:c.valueMax,e),x=f.min>=0?0:Math.abs(f.min),_=0,A=f.max+Math.abs(x),S=u.max+Math.abs(_),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-C-N*x/A,w=this.drawingArea.bottom-C-N*_/S,O=r.series.map((g,k)=>{const p=this.mutableConfig.useIndividualScale?(r.absoluteValues[k]+Math.abs(x))/A:this.ratioToMax(g);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*k),y:this.checkNaN(this.drawingArea.bottom-C-N*p),value:r.absoluteValues[k],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),a=r.absoluteValues.map(g=>u.min>=0?(g-Math.abs(u.min))/(u.max-Math.abs(u.min)):(g+Math.abs(u.min))/(u.max+Math.abs(u.min))),n=r.series.map((g,k)=>[void 0,null].includes(r.absoluteValues[k])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*k),y:b,value:r.absoluteValues[k],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[k]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*k),y:this.checkNaN(this.drawingArea.bottom-C-(N*a[k]||0)),value:r.absoluteValues[k],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[k]||""}),s=this.createSmoothPath(O.filter(g=>g.value!==null)),d=this.createSmoothPath(n.filter(g=>g.value!==null)),F=this.createStraightPath(O.filter(g=>g.value!==null)),y=this.createStraightPath(n.filter(g=>g.value!==null)),m=f.ticks.map(g=>({y:g>=0?b-N*(g/A):b+N*Math.abs(g)/A,value:g,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),L=u.ticks.map(g=>{const k=(g-u.min)/(u.max-u.min);return{y:g>=0?w-N*k:w+N*k,value:g,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:C,autoScaleYLabels:L,individualHeight:N,scaleYLabels:r.autoScaling?L:m,individualScale:r.autoScaling?u:f,individualMax:r.autoScaling?S:A,zeroPosition:r.autoScaling?w:b,curve:r.autoScaling?d:s,plots:r.autoScaling?n:O,area:r.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(r.autoScaling?n:O,r.autoScaling?w:b):this.createArea(O):"",straight:r.autoScaling?y:F}})},plotSet(){return this.activeSeriesWithStackRatios.filter(r=>r.type==="plot").map(r=>{this.checkAutoScaleError(r);const i=Math.min(...r.absoluteValues.filter(F=>![null,void 0].includes(F))),o=Math.max(...r.absoluteValues.filter(F=>![null,void 0].includes(F)))||1;r.absoluteValues.filter(F=>![null,void 0].includes(F)).map(F=>(F-i)/(o-i));const c={valueMin:i,valueMax:o},l={max:r.scaleMax||Math.max(...r.absoluteValues)||1,min:r.scaleMin||Math.min(...r.absoluteValues)>0?0:Math.min(...r.absoluteValues)},e=r.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=1.0000001,f=this.calculateNiceScaleWithExactExtremes(l.min,l.max===l.min?l.max*I:l.max,e),u=this.calculateNiceScaleWithExactExtremes(c.valueMin,c.valueMax===c.valueMin?c.valueMax*I:c.valueMax,e),x=f.min>=0?0:Math.abs(f.min),_=0,A=f.max+x,S=u.max+Math.abs(_),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-r.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*r.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-C-N*x/A,w=this.drawingArea.bottom-C-N*_/S,O=r.series.map((F,y)=>{const m=this.mutableConfig.useIndividualScale?(r.absoluteValues[y]+Math.abs(x))/A:this.ratioToMax(F);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-C-N*m),value:r.absoluteValues[y],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[y]||""}}),a=r.absoluteValues.map(F=>u.min>=0?(F-Math.abs(u.min))/(u.max-Math.abs(u.min)):(F+Math.abs(u.min))/(u.max+Math.abs(u.min))),n=r.series.map((F,y)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-C-(N*a[y]||0)),value:r.absoluteValues[y],comment:r.comments&&r.comments.slice(this.slicer.start,this.slicer.end)[y]||""})),s=f.ticks.map(F=>({y:F>=0?b-N*(F/A):b+N*Math.abs(F)/A,value:F,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r})),d=u.ticks.map(F=>{const y=(F-u.min)/(u.max-u.min);return{y:F>=0?w-N*y:w+N*y,value:F,prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:r}});return{...r,yOffset:C,autoScaleYLabels:d,individualHeight:N,scaleYLabels:r.autoScaling?d:s,individualScale:r.autoScaling?u:f,individualMax:r.autoScaling?S:A,zeroPosition:r.autoScaling?w:b,plots:r.autoScaling?n:O}})},drawingArea(){const r=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+r,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+r)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(r=>!this.segregatedSeries.includes(r.id)).map(r=>Math.max(...r.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const r=Math.min(...this.safeDataset.filter(i=>!this.segregatedSeries.includes(i.id)).map(i=>Math.min(...i.series)));return r>0?0:r},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(){const r=Math.max(...this.dataset.map(o=>this.largestTriangleThreeBucketsArray({data:o.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),i=[];for(let o=0;o<r;o+=1)i.push({text:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[o]||String(o),absoluteIndex:o});return i.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(r=>r.type==="bar").filter(r=>!this.segregatedSeries.includes(r.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const r=this.safeDataset.filter(i=>i.type==="bar").filter(i=>!this.segregatedSeries.includes(i.id)).length;return this.drawingArea.width/this.maxSeries/r-this.barPeriodGap*r},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(r=>r!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const r=this.relativeDataset.map(o=>({label:o.name,color:o.color,type:o.type})),i=[];return this.timeLabels.forEach((o,c)=>{const l=[o.text];this.relativeDataset.forEach(e=>{l.push(this.canShowValue(e.absoluteValues[c])?Number(e.absoluteValues[c].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),i.push(l)}),{head:r,body:i}},dataTable(){const r=this.FINAL_CONFIG.table.showSum;let i=[""].concat(this.relativeDataset.map(e=>e.name));r&&(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 o=[];for(let e=0;e<this.maxSeries;e+=1){const I=this.relativeDataset.map(f=>f.absoluteValues[e]??0).reduce((f,u)=>f+u,0);o.push([this.timeLabels[e].text??"-"].concat(this.relativeDataset.map(f=>this.applyDataLabel(f.type==="line"?this.FINAL_CONFIG.line.labels.formatter:f.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,f.absoluteValues[e]??0,this.dataLabel({p:f.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:f.absoluteValues[e]??0,s:f.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(r?(I??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const c={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},l=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(e=>e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:i,body:o,config:c,colNames:l}},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(r=>({slotAbsoluteIndex:r.slotAbsoluteIndex,shape:r.shape||null,name:r.name,color:r.color,type:r.type,value:r.absoluteValues.find((i,o)=>o===this.selectedSerieIndex),comments:r.comments||[],prefix:r.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:r.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let r="",i=this.selectedSeries.map(l=>l.value).filter(l=>this.isSafeValue(l)&&l!==null).reduce((l,e)=>Math.abs(l)+Math.abs(e),0);const o=this.timeLabels[this.selectedSerieIndex],c=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(c)&&this.functionReturnsString(()=>c({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?c({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(o&&o.text&&this.FINAL_CONFIG.chart.tooltip.showTimeLabel&&(r+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${o.text}</div>`),this.selectedSeries.forEach(l=>{if(this.isSafeValue(l.value)){let e="",I="";switch(this.icons[l.type]){case"bar":e=`<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern?`<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${l.color}" />`:""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern?`url(#pattern_${this.uniqueId}_${l.slotAbsoluteIndex}`:l.color}" /></svg>`;break;case"line":!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)?I=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" />`:l.shape==="triangle"?I=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="square"?I=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="diamond"?I=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="pentagon"?I=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="hexagon"?I=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:l.shape==="star"&&(I=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${l.color}" points="${h.createStar({plot:{x:10,y:8},radius:4})}" />`),e=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${l.color}" />${I}</svg>`;break;case"plot":if(!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)){e=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" /></svg>`;break}if(l.shape==="star"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${h.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(l.shape==="triangle"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="square"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="diamond"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="pentagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="hexagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}r+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${l.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(l.type==="line"?this.FINAL_CONFIG.line.labels.formatter:l.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,l.value,this.dataLabel({p:l.prefix,v:l.value,s:l.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:l}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${h.dataLabel({v:this.checkNaN(Math.abs(l.value)/i*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&l.comments.length&&l.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(r+=`<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${l.color}">${l.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}">${r}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(r=>({y:r>=0?this.zero-this.drawingArea.height*this.ratioToMax(r):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)),value:r,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(),this.setupSlicer(),document.addEventListener("mousemove",r=>{this.clientPosition={x:r.clientX,y:r.clientY}})},methods:{abbreviate:h.abbreviate,adaptColorToBackground:h.adaptColorToBackground,applyDataLabel:h.applyDataLabel,assignStackRatios:h.assignStackRatios,calcLinearProgression:h.calcLinearProgression,calculateNiceScaleWithExactExtremes:h.calculateNiceScaleWithExactExtremes,checkNaN:h.checkNaN,closestDecimal:h.closestDecimal,convertColorToHex:h.convertColorToHex,convertConfigColors:h.convertConfigColors,convertCustomPalette:h.convertCustomPalette,createCsvContent:h.createCsvContent,createSmoothPath:h.createSmoothPath,createStraightPath:h.createStraightPath,createTSpans:h.createTSpans,dataLabel:h.dataLabel,downloadCsv:h.downloadCsv,error:h.error,forceValidValue:h.forceValidValue,functionReturnsString:h.functionReturnsString,hasDeepProperty:h.hasDeepProperty,isFunction:h.isFunction,isSafeValue:h.isSafeValue,largestTriangleThreeBucketsArray:h.largestTriangleThreeBucketsArray,objectIsEmpty:h.objectIsEmpty,setOpacity:h.setOpacity,shiftHue:h.shiftHue,translateSize:h.translateSize,treeShake:h.treeShake,useMouse:G.useMouse,useNestedProp:v.useNestedProp,setUserOptionsVisibility(r=!1){this.showUserOptionsOnChartHover&&(this.userOptionsVisible=r)},toggleAnnotator(){this.isAnnotator=!this.isAnnotator},selectTimeLabel(r,i){const o=this.relativeDataset.map(c=>({shape:c.shape||null,name:c.name,color:c.color,type:c.type,value:c.absoluteValues.find((l,e)=>e===i),comments:c.comments||[],prefix:c.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:c.suffix||this.FINAL_CONFIG.chart.labels.suffix}));this.$emit("selectTimeLabel",{datapoint:o,absoluteIndex:r.absoluteIndex,label:r.text})},getHighlightAreaPosition(r){const i=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(r.from-this.slicer.start),o=this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*r.span;return{x:i<this.drawingArea.left?this.drawingArea.left:i,width:o}},prepareConfig(){const r=h.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return r;const i=this.useNestedProp({userConfig:this.config,defaultConfig:r});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,this.config&&this.hasDeepProperty(this.config,"chart.zoom.startIndex")?i.chart.zoom.startIndex=this.config.chart.zoom.startIndex:i.chart.zoom.startIndex=null,this.config&&this.hasDeepProperty(this.config,"chart.zoom.endIndex")?i.chart.zoom.endIndex=this.config.chart.zoom.endIndex:i.chart.zoom.endIndex=null,i.theme?{...v.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((r,i)=>{[null,void 0].includes(r.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:i})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(r=>{r.series.forEach((i,o)=>{this.isSafeValue(i)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2
|
+
-----> The serie '${r.name}' contains the value '${i}' at index ${o}.
|
|
3
|
+
'${i}' was converted to null to allow the chart to display.`)})}),this.showUserOptionsOnChartHover=this.FINAL_CONFIG.chart.userOptions.showOnChartHover,this.keepUserOptionState=this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave,this.userOptionsVisible=!this.FINAL_CONFIG.chart.userOptions.showOnChartHover,this.mutableConfig={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:o,width:c}=i.getBoundingClientRect();let l=null,e=0;this.FINAL_CONFIG.chart.title.show&&(l=this.$refs.chartTitle,e=l.getBoundingClientRect().height);let I=null,f=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(I=this.$refs.chartSlicer.$el,f=I.getBoundingClientRect().height);let u=null,x=0;this.FINAL_CONFIG.chart.legend.show&&(u=this.$refs.chartLegend,x=u.getBoundingClientRect().height);let _=0;this.$refs.source&&(_=this.$refs.source.getBoundingClientRect().height);let A=0;this.$refs.noTitle&&(A=this.$refs.noTitle.getBoundingClientRect().height),this.height=o-e-x-f-_-A,this.width=c,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(C=>{for(const N of C)this.$refs.chartTitle&&(e=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(f=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(x=this.$refs.chartLegend.getBoundingClientRect().height),this.$refs.source&&(_=this.$refs.source.getBoundingClientRect().height),requestAnimationFrame(()=>{this.height=N.contentBoxSize[0].blockSize-e-x-f-_-24,this.width=N.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(r){this.selectedMinimapIndex=r},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(r){r.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${r.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(r){if(!r[0])return[-10,-10,"",-10,-10];const i={x:r[0].x,y:this.zero},o={x:r.at(-1).x,y:this.zero},c=[];return r.forEach(l=>{c.push(`${l.x},${l.y} `)}),[i.x,i.y,...c,o.x,o.y].toString()},createIndividualArea(r,i){if(!r[0])return[-10,-10,"",-10,-10];const o={x:r[0]?r[0].x:Math.min(...r.filter(e=>!!e).map(e=>e.x)),y:i},c={x:r.at(-1)?r.at(-1).x:Math.min(...r.filter(e=>!!e).map(e=>e.x)),y:i},l=[];return r.filter(e=>!!e).forEach(e=>{l.push(`${e.x},${e.y} `)}),[o.x,o.y,...l,c.x,c.y].toString()},createStar:h.createStar,createPolygonPath:h.createPolygonPath,fillArray(r,i){let o=Array(r).fill(0);for(let c=0;c<i.length&&c<r;c+=1)o[c]=i[c];return o},async setupSlicer(){(this.FINAL_CONFIG.chart.zoom.startIndex!==null||this.FINAL_CONFIG.chart.zoom.endIndex!==null)&&this.$refs.chartSlicer?(this.FINAL_CONFIG.chart.zoom.startIndex!==null&&(await this.$nextTick(),await this.$nextTick(),this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)),this.FINAL_CONFIG.chart.zoom.endIndex!==null&&(await this.$nextTick(),await this.$nextTick(),this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex+1)))):(this.slicer={start:0,end:Math.max(...this.dataset.map(r=>this.largestTriangleThreeBucketsArray({data:r.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length))},this.slicerStep+=1)},refreshSlicer(){this.setupSlicer()},validSlicerEnd(r){const i=Math.max(...this.dataset.map(o=>this.largestTriangleThreeBucketsArray({data:o.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length));return r>i?i:r<0||this.FINAL_CONFIG.chart.zoom.startIndex!==null&&r<this.FINAL_CONFIG.chart.zoom.startIndex?this.FINAL_CONFIG.chart.zoom.startIndex!==null?this.FINAL_CONFIG.chart.zoom.startIndex+1:1:r},calcRectHeight(r){const i=![null,void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin)&&this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin>0&&this.min>=0?this.drawingArea.bottom:this.zero;return r.value>=0?this.checkNaN(i-r.y<=0?1e-5:i-r.y):this.checkNaN(r.y-this.zero<=0?1e-5:r.y-this.zero)},calcIndividualHeight(r){return r.value>=0?this.checkNaN(r.zeroPosition-r.y<=0?1e-5:r.zeroPosition-r.y):this.checkNaN(r.y-r.zeroPosition<=0?1e-5:r.zeroPosition-r.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(r){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?r.x+this.drawingArea.width/this.maxSeries*.05:r.x+this.slot.bar/2},calcRectY(r){return r.value>=0?r.y:this.zero},calcIndividualRectY(r){return r.value>=0?r.y:[null,void 0,NaN,1/0,-1/0].includes(r.zeroPosition)?0:r.zeroPosition},canShowValue(r){return![null,void 0,NaN,1/0,-1/0].includes(r)},findClosestValue(r,i){let o=i[0],c=Math.abs(r-i[0]);for(let l=1;l<i.length;l+=1){const e=Math.abs(r-i[l]);e<c&&i[l]<r&&(o=i[l],c=e)}return o},ratioToMax(r){return r/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(r){this.$emit("selectX",{dataset:this.relativeDataset.map(i=>({name:i.name,value:[null,void 0,NaN].includes(i.absoluteValues[r])?null:i.absoluteValues[r],color:i.color,type:i.type})),index:r,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r]})},getData(){return this.absoluteDataset.map(r=>({values:r.absoluteValues,color:r.color,name:r.name,type:r.type}))},segregate(r){if(this.segregatedSeries.includes(r.id))this.segregatedSeries=this.segregatedSeries.filter(i=>i!==r.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(r.id)}this.$emit("selectLegend",this.relativeDataset.map(i=>({name:i.name,values:i.absoluteValues,color:i.color,type:i.type}))),this.segregateStep+=1},toggleTooltipVisibility(r,i=null){this.isTooltip=r,r?this.selectedSerieIndex=i:this.selectedSerieIndex=null},toggleFullscreen(r){this.isFullscreen=r,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},async generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.isPrinting=!0,this.__to__=setTimeout(async()=>{try{const{default:r}=await Promise.resolve().then(()=>require("./pdf-DV2jHb_u.cjs"));await r({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})}catch(r){console.error("Error generating PDF:",r)}finally{this.isPrinting=!1}},100)},generateCsv(){const r=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],i=["",...this.table.head.map(e=>e.label)],o=this.table.body,c=r.concat([i]).concat(o),l=this.createCsvContent(c);this.downloadCsv({csvContent:l,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:r}=await Promise.resolve().then(()=>require("./img-BPGizWpM.cjs"));await r({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"})}catch(r){console.error("Error generating image:",r)}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","aria-label"],K=["x","y","width","height"],Q={key:1},j={class:"vue-ui-xy-grid"},$=["stroke","x1","x2","y1","y2"],ee=["stroke","x1","x2","y1","y2"],te={key:1},le=["x1","x2","y1","y2","stroke"],re=["x1","x2","y1","y2","stroke"],ae=["x1","x2","y1","y2","stroke"],ie={key:3},se=["x1","x2","y1","y2","stroke"],ne=["id"],oe=["stop-color"],ce=["stop-color"],he=["stop-color"],de=["id"],ue=["stop-color"],me=["stop-color"],ge=["stop-color"],fe=["id"],Ne=["stop-color"],Ie=["stop-color"],xe=["id"],Fe=["stop-color"],be=["stop-color"],ke=["id"],_e=["stop-color"],Ae=["stop-color"],Ce=["x","y","height","width","fill"],ye=["x","y","width"],Le=["x","y","height","width","fill"],Se=["x","y","height","width","rx","fill","stroke","stroke-width"],we=["x","y","height","width","rx","fill","stroke","stroke-width"],Oe=["width","x","y"],Ge={key:0},ve=["id"],pe=["fill"],Be=["x1","x2","y1","y2","stroke","marker-end"],Ve=["x","y","font-size","fill"],Ee=["stroke","x1","x2","y1","y2"],ze={key:2},Pe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Me=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],Te={key:4},De=["x1","x2","y1","y2","stroke","stroke-width"],Re=["fill","font-size","transform"],He=["x1","x2","y1","y2","stroke"],We=["x","y","font-size","fill"],qe=["x1","x2","y1","y2","stroke"],Ye=["x","y","font-size","fill"],Xe=["width","x","y"],Ue={style:{width:"100%"}},Ze={key:0},Je=["id"],Ke=["fill"],Qe=["x1","x2","y1","y2","stroke","marker-end"],je=["x","y","font-size","fill"],$e=["d","stroke","stroke-width","stroke-dasharray"],et=["d","stroke","stroke-width","stroke-dasharray"],tt={key:5},lt={key:0},rt=["d","fill"],at=["d","fill"],it=["d","fill"],st=["d","fill"],nt=["d","stroke","stroke-width","stroke-dasharray"],ot=["d","stroke","stroke-width","stroke-dasharray"],ct=["width","x","y"],ht={style:{width:"100%"}},dt={key:3},ut=["id"],mt=["fill"],gt=["x1","x2","y1","y2","stroke","marker-end"],ft=["x","y","font-size","fill"],Nt={key:6},It=["x","y","font-size","fill"],xt=["x","y","font-size","fill","font-weight"],Ft={key:7},bt=["x","y","font-size","fill"],kt=["x","y"],_t=["x","y"],At={key:8},Ct=["x","y","font-size","fill"],yt=["x","y"],Lt=["x","y"],St=["x","y","font-size","fill","innerHTML"],wt=["x","y","font-size","fill","innerHTML"],Ot=["x","y","font-size","fill","innerHTML"],Gt=["x","y","font-size","fill","innerHTML"],vt=["id"],pt=["stop-color"],Bt=["stop-color"],Vt=["x","y","width","height","fill","onMouseenter"],Et=["font-size","fill","transform"],zt=["x","y","font-size","fill"],Pt={key:10},Mt=["text-anchor","font-size","fill","transform","onClick"],Tt=["x","y","height","width","onMouseenter","onClick"],Dt={key:11,style:{"pointer-events":"none"}},Rt=["x","y"],Ht=["cx","cy","r","fill"],Wt={key:5,class:"vue-data-ui-watermark"},qt=["onClick"],Yt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Xt=["stroke","fill"],Ut={key:1,viewBox:"0 0 40 40",height:"14",width:"14"},Zt=["fill"],Jt=["fill"],Kt={key:2,viewBox:"0 0 12 12",height:"14",width:"14"},Qt={key:9,ref:"chartLegend"},jt={key:10,ref:"source",dir:"auto"},$t={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},el=["innerHTML"];function tl(r,i,o,c,l,e){const I=t.resolveComponent("PenAndPaper"),f=t.resolveComponent("Title"),u=t.resolveComponent("UserOptions"),x=t.resolveComponent("PackageVersion"),_=t.resolveComponent("Shape"),A=t.resolveComponent("Skeleton"),S=t.resolveComponent("Slicer"),C=t.resolveComponent("Tooltip"),N=t.resolveComponent("BaseIcon"),b=t.resolveComponent("TableSparkline"),w=t.resolveComponent("DataTable"),O=t.resolveComponent("Accordion");return t.openBlock(),t.createElementBlock("div",{id:`vue-ui-xy_${l.uniqueId}`,class:t.normalizeClass(`vue-ui-xy ${l.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${e.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:t.normalizeStyle(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive?"height: 100%":""}`),onMouseenter:i[7]||(i[7]=()=>e.setUserOptionsVisibility(!0)),onMouseleave:i[8]||(i[8]=()=>e.setUserOptionsVisibility(!1))},[e.FINAL_CONFIG.chart.userOptions.buttons.annotator?(t.openBlock(),t.createBlock(I,{key:0,parent:r.$refs.chart,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,active:l.isAnnotator,onClose:e.toggleAnnotator},null,8,["parent","backgroundColor","color","active","onClose"])):t.createCommentVNode("",!0),e.hasOptionsNoTitle?(t.openBlock(),t.createElementBlock("div",Z,null,512)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.title.show?(t.openBlock(),t.createElementBlock("div",{key:2,ref:"chartTitle",class:"vue-ui-xy-title",style:t.normalizeStyle(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[(t.openBlock(),t.createBlock(f,{key:`title_${l.titleStep}`,config:{title:{cy:"xy-div-title",...e.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...e.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.userOptions.show&&e.isDataset&&(l.keepUserOptionState||l.userOptionsVisible)?(t.openBlock(),t.createBlock(u,{ref:"defails",key:`user_options_${l.step}`,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,isPrinting:l.isPrinting,isImaging:l.isImaging,uid:l.uniqueId,hasTooltip:e.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&e.FINAL_CONFIG.chart.tooltip.show,hasPdf:e.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:e.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:e.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:e.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:e.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:o.dataset.length>1&&e.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:l.mutableConfig.isStacked,isFullscreen:l.isFullscreen,chartElement:r.$refs.chart,position:e.FINAL_CONFIG.chart.userOptions.position,isTooltip:l.mutableConfig.showTooltip,titles:{...e.FINAL_CONFIG.chart.userOptions.buttonTitles},hasAnnotator:e.FINAL_CONFIG.chart.userOptions.buttons.annotator,isAnnotation:l.isAnnotator,onToggleFullscreen:e.toggleFullscreen,onGeneratePdf:e.generatePdf,onGenerateCsv:e.generateCsv,onGenerateImage:e.generateImage,onToggleTable:e.toggleTable,onToggleLabels:e.toggleLabels,onToggleStack:e.toggleStack,onToggleTooltip:e.toggleTooltip,onToggleAnnotator:e.toggleAnnotator,style:t.normalizeStyle({visibility:l.keepUserOptionState?l.userOptionsVisible?"visible":"hidden":"visible"})},t.createSlots({_:2},[r.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,r.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,r.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,r.$slots.optionLabels?{name:"optionLabels",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,r.$slots.optionStack?{name:"optionStack",fn:t.withCtx(()=>[t.renderSlot(r.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:a,isFullscreen:n})=>[t.renderSlot(r.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"7"}:void 0,r.$slots.optionAnnotator?{name:"optionAnnotator",fn:t.withCtx(({toggleAnnotator:a,isAnnotator:n})=>[t.renderSlot(r.$slots,"optionAnnotator",t.normalizeProps(t.guardReactiveProps({toggleAnnotator:a,isAnnotator:n})),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","style"])):t.createCommentVNode("",!0),e.isDataset?(t.openBlock(),t.createElementBlock("svg",{key:4,xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass([{"vue-data-ui-fullscreen--on":l.isFullscreen,"vue-data-ui-fulscreen--off":!l.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:l.viewBox,style:t.normalizeStyle(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),"aria-label":e.chartAriaLabel,role:"img","aria-live":"polite"},[t.createVNode(x),r.$slots["chart-background"]?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,style:{pointerEvents:"none"}},[t.renderSlot(r.$slots,"chart-background",{},void 0,!0)],8,K)):t.createCommentVNode("",!0),e.maxSeries>0?(t.openBlock(),t.createElementBlock("g",Q,[t.createElementVNode("g",j,[e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(e.drawingArea.bottom),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-linecap":"round"},null,8,$)):t.createCommentVNode("",!0),l.mutableConfig.useIndividualScale?e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",null,[a.id===l.selectedScale&&a.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.yLabels,n=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(n.y),y2:e.forceValidValue(n.y),stroke:a.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,re))),256)):a.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.yLabels,n=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(n.y),y2:e.forceValidValue(n.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,ae))),256)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left+e.xPadding,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-linecap":"round"},null,8,ee)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(),t.createElementBlock("g",te,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.yLabels,a=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(a.y),y2:e.forceValidValue(a.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,le))),256))])):t.createCommentVNode("",!0)],64)),e.FINAL_CONFIG.chart.grid.showVerticalLines?(t.openBlock(),t.createElementBlock("g",ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries+(e.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(a,n)=>(t.openBlock(),t.createElementBlock("line",{key:`grid_vertical_line_${n}`,x1:e.drawingArea.width/e.maxSeries*n+e.drawingArea.left+e.xPadding,x2:e.drawingArea.width/e.maxSeries*n+e.drawingArea.left+e.xPadding,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-width":"0.5",stroke:e.FINAL_CONFIG.chart.grid.stroke},null,8,se))),128))])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(a,n)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_rect_${n}`},[t.createElementVNode("linearGradient",{id:`rectGradient_pos_${n}_${l.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,oe),t.createElementVNode("stop",{offset:"62%","stop-color":`${e.shiftHue(a.color,.02)}`},null,8,ce),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,he)],8,ne),t.createElementVNode("linearGradient",{id:`rectGradient_neg_${n}_${l.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,ue),t.createElementVNode("stop",{offset:"38%","stop-color":`${e.shiftHue(a.color,.02)}`},null,8,me),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,ge)],8,de)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,n)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_plot_${n}`},[t.createElementVNode("radialGradient",{id:`plotGradient_${n}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,Ne),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ie)],8,fe)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_line_${n}`},[t.createElementVNode("radialGradient",{id:`lineGradient_${n}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,Fe),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,be)],8,xe),t.createElementVNode("linearGradient",{id:`areaGradient_${n}_${l.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.setOpacity(e.shiftHue(a.color,.03),e.FINAL_CONFIG.line.area.opacity)}`},null,8,_e),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)}`},null,8,Ae)],8,ke)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.highlightAreas,a=>(t.openBlock(),t.createElementBlock("g",null,[a.show?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.span,(n,s)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{style:t.normalizeStyle({transition:"none",opacity:a.from+s>=l.slicer.start&&a.from+s<=l.slicer.end-1?1:0}),x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.from+s-l.slicer.start),y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:e.setOpacity(a.color,a.opacity)},null,12,Ce),a.caption.text&&s===0?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.from+s-l.slicer.start)-(a.caption.width==="auto"?0:a.caption.width/2-e.drawingArea.width/e.maxSeries*a.span/2),y:e.drawingArea.top+a.caption.offsetY,style:t.normalizeStyle({overflow:"visible",opacity:a.to>=l.slicer.start&&a.from<l.slicer.end?1:0}),height:"1",width:a.caption.width==="auto"?e.drawingArea.width/e.maxSeries*a.span:a.caption.width},[t.createElementVNode("div",{style:t.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"}`)},t.toDisplayString(a.caption.text),5)],12,ye)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0)]))),256)),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_highlighter_${n}`},[t.createElementVNode("rect",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*n,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:[l.selectedMinimapIndex,l.selectedSerieIndex,l.selectedRowIndex].includes(n)?e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color,e.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,Le)]))),128))]),e.barSet.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.barSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_bar_${n}`,class:t.normalizeClass(`serie_bar_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,d)=>(t.openBlock(),t.createElementBlock("g",{key:`bar_plot_${n}_${d}`},[e.canShowValue(s.value)?(t.openBlock(),t.createElementBlock("rect",{key:0,x:e.calcRectX(s),y:l.mutableConfig.useIndividualScale?e.calcIndividualRectY(s):e.calcRectY(s),height:l.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(s)):Math.abs(e.calcRectHeight(s)),width:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:e.FINAL_CONFIG.bar.useGradient?s.value>=0?`url(#rectGradient_pos_${n}_${l.uniqueId})`:`url(#rectGradient_neg_${n}_${l.uniqueId})`:a.color,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?a.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,Se)):t.createCommentVNode("",!0),e.canShowValue(s.value)&&r.$slots.pattern?(t.openBlock(),t.createElementBlock("rect",{key:1,x:e.calcRectX(s),y:l.mutableConfig.useIndividualScale?e.calcIndividualRectY(s):e.calcRectY(s),height:l.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(s)):Math.abs(e.calcRectHeight(s)),width:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:`url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?a.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,we)):t.createCommentVNode("",!0),s.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,style:{overflow:"visible"},height:"12",width:(e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:e.barPeriodGap)/2)+e.FINAL_CONFIG.chart.comments.width,x:e.calcRectX(s)-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:e.checkNaN(s.y)+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:n,datapointIndex:d}},void 0,!0)],8,Oe)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",Ge,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`bar_arrow_${n}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,pe)],8,ve)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${n})`},null,8,Be)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,Ve)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)):t.createCommentVNode("",!0),!l.mutableConfig.useIndividualScale&&e.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(t.openBlock(),t.createElementBlock("line",{key:1,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(e.zero),y2:e.forceValidValue(e.zero),"stroke-linecap":"round"},null,8,Ee)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(l.selectedSerieIndex)||![null,void 0].includes(l.selectedMinimapIndex))?(t.openBlock(),t.createElementBlock("g",ze,[t.createElementVNode("line",{x1:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,x2:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),stroke:e.FINAL_CONFIG.chart.highlighter.color,"stroke-width":e.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":e.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Pe)])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.frame.show?(t.openBlock(),t.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,fill:"transparent",stroke:e.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":e.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":e.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Me)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.show?(t.openBlock(),t.createElementBlock("g",Te,[l.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:a.x+e.xPadding,x2:a.x+e.xPadding,y1:l.mutableConfig.isStacked?e.forceValidValue(e.drawingArea.bottom-a.yOffset-a.individualHeight):e.forceValidValue(e.drawingArea.top),y2:l.mutableConfig.isStacked?e.forceValidValue(e.drawingArea.bottom-a.yOffset):e.forceValidValue(e.drawingArea.bottom),stroke:a.color,"stroke-width":e.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,De)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",{style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("text",{fill:a.color,"font-size":l.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${a.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5+e.xPadding}, ${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset-a.individualHeight/2:e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`},t.toDisplayString(a.name)+" "+t.toDisplayString(a.scaleLabel?`- ${a.scaleLabel}`:""),9,Re),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.yLabels,(n,s)=>(t.openBlock(),t.createElementBlock("line",{x1:a.x-3+e.xPadding,x2:a.x+e.xPadding,y1:e.forceValidValue(n.y),y2:e.forceValidValue(n.y),stroke:a.color,"stroke-width":1,"stroke-linecap":"round"},null,8,He))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.yLabels,(n,s)=>(t.openBlock(),t.createElementBlock("text",{x:a.x-5+e.xPadding,y:e.forceValidValue(n.y)+l.fontSizes.dataLabels/3,"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:a.color},t.toDisplayString(e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,n.value,e.dataLabel({p:n.prefix,v:n.value,s:n.suffix,r:1}),{datapoint:n.datapoint,seriesIndex:s})),9,We))),256))],4))),256))],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.yLabels,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`yLabel_${n}`},[e.canShowValue(a)&&a.value>=e.niceScale.min&&a.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left-5+e.xPadding,y1:e.forceValidValue(a.y),y2:e.forceValidValue(a.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,qe)):t.createCommentVNode("",!0),a.value>=e.niceScale.min&&a.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:e.drawingArea.left-7+e.xPadding,y:e.checkNaN(a.y+l.fontSizes.dataLabels/3),"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.canShowValue(a.value)?e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,a.value,e.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:1})):""),9,Ye)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_plot_${n}`,class:t.normalizeClass(`serie_plot_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,d)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_plot_${n}_${d}`},[s&&e.canShowValue(s.value)?(t.openBlock(),t.createBlock(_,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:e.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${n}_${l.uniqueId})`:e.FINAL_CONFIG.plot.dot.useSerieColor?a.color:e.FINAL_CONFIG.plot.dot.fill,plot:{x:e.checkNaN(s.x),y:e.checkNaN(s.y)},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===d||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===d?(l.plotRadii.plot||6)*1.5:l.plotRadii.plot||6,stroke:e.FINAL_CONFIG.plot.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:e.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),s.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:s.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:s.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",Ue,[t.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:n,datapointIndex:d}},void 0,!0)])],8,Xe)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",Ze,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`plot_arrow_${n}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,Ke)],8,Je)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${n})`},null,8,Qe)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,je)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${n}`,class:t.normalizeClass(`serie_line_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.smooth&&a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${a.curve}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,$e)):a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${a.straight}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,et)):t.createCommentVNode("",!0)],6))),128)),r.$slots.pattern?(t.openBlock(),t.createElementBlock("defs",tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.safeDataset,(a,n)=>t.renderSlot(r.$slots,"pattern",t.mergeProps({key:`serie_pattern_slot_${n}`,ref_for:!0},{...a,seriesIndex:a.slotAbsoluteIndex,patternId:`pattern_${l.uniqueId}_${n}`}),void 0,!0)),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${n}`,class:t.normalizeClass(`serie_line_${n}`),style:t.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===a.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.useArea&&a.plots.length>1?(t.openBlock(),t.createElementBlock("g",lt,[a.smooth?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("path",{d:`M ${a.plots[0]?a.plots[0].x:Math.min(...a.plots.filter(s=>!!s).map(s=>s.x))},${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset:e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1)?a.plots.at(-1).x:e.drawingArea.left+e.slot.line*n+e.slot.line/2},${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset:e.drawingArea.bottom} Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${n}_${l.uniqueId})`:e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)},null,8,rt),r.$slots.pattern?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M ${a.plots[0]?a.plots[0].x:Math.min(...a.plots.filter(s=>!!s).map(s=>s.x))},${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset:e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1)?a.plots.at(-1).x:e.drawingArea.left+e.slot.line*n+e.slot.line/2},${l.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset:e.drawingArea.bottom} Z`,fill:`url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`},null,8,at)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("path",{d:`M${a.area}Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${n}_${l.uniqueId})`:e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)},null,8,it),r.$slots.pattern?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${a.area}Z`,fill:`url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`},null,8,st)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0),a.smooth&&a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${a.curve}`,stroke:a.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round"},null,8,nt)):a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:2,d:`M${a.straight}`,stroke:a.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ot)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`circle_line_${n}_${d}`},[!e.optimize.linePlot&&s&&e.canShowValue(s.value)||e.optimize.linePlot&&s&&e.canShowValue(s.value)&&(l.selectedSerieIndex!==null&&l.selectedSerieIndex===d||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===d)?(t.openBlock(),t.createBlock(_,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:e.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${n}_${l.uniqueId})`:e.FINAL_CONFIG.line.dot.useSerieColor?a.color:e.FINAL_CONFIG.line.dot.fill,plot:{x:e.checkNaN(s.x),y:e.checkNaN(s.y)},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===d||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===d?(l.plotRadii.line||6)*1.5:l.plotRadii.line||6,stroke:e.FINAL_CONFIG.line.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:e.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),s.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:s.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:s.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",ht,[t.renderSlot(r.$slots,"plot-comment",{plot:{...s,color:a.color,seriesIndex:n,datapointIndex:d}},void 0,!0)])],8,ct)):t.createCommentVNode("",!0)],64))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",dt,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`line_arrow_${n}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,mt)],8,ut)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${n})`},null,8,gt)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,ft)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(e.FINAL_CONFIG.bar.labels.show||e.FINAL_CONFIG.bar.serieName.show)&&l.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Nt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(a,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_bar_${n}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_bar_${n}_${d}`},[s&&(!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===d||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===d)&&e.FINAL_CONFIG.bar.labels.show?(t.openBlock(),t.createElementBlock("text",{key:0,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?s.x+e.slot.line/2:e.calcRectX(s)+e.calcRectWidth()/2-e.barPeriodGap/2,y:e.checkNaN(s.y)+(s.value>=0?e.FINAL_CONFIG.bar.labels.offsetY:-e.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.labels.color},t.toDisplayString(e.canShowValue(s.value)?e.applyDataLabel(e.FINAL_CONFIG.bar.labels.formatter,s.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.bar.labels.rounding}),{datapoint:s,serie:a}):""),9,It)):t.createCommentVNode("",!0),s&&e.FINAL_CONFIG.bar.serieName.show?(t.openBlock(),t.createElementBlock("text",{key:1,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?s.x+e.slot.line/2:s.x+e.calcRectWidth()*1.1,y:s.y+(s.value>0?e.FINAL_CONFIG.bar.serieName.offsetY:-e.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.serieName.useSerieColor?a.color:e.FINAL_CONFIG.bar.serieName.color,"font-weight":e.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},t.toDisplayString(e.FINAL_CONFIG.bar.serieName.useAbbreviation?e.abbreviate({source:a.name,length:e.FINAL_CONFIG.bar.serieName.abbreviationSize}):a.name),9,xt)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.plot.labels.show&&l.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Ft,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${n}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${n}_${d}`},[s&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===d||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===d?(t.openBlock(),t.createElementBlock("text",{key:0,x:s.x,y:s.y+e.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:e.FINAL_CONFIG.plot.labels.color},t.toDisplayString(e.canShowValue(s.value)?e.applyDataLabel(e.FINAL_CONFIG.plot.labels.formatter,s.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.plot.labels.rounding}),{datapoint:s,serie:a}):""),9,bt)):t.createCommentVNode("",!0),s&&d===0&&a.useTag&&a.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(a.name),5)],8,kt)):t.createCommentVNode("",!0),s&&d===a.plots.length-1&&a.useTag&&a.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:s.x-a.name.length*(l.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(a.name),5)],8,_t)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.line.labels.show&&l.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",At,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${n}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${n}_${d}`},[s&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||l.selectedSerieIndex!==null&&l.selectedSerieIndex===d||l.selectedMinimapIndex!==null&&l.selectedMinimapIndex===d?(t.openBlock(),t.createElementBlock("text",{key:0,x:s.x,y:s.y+(s.value>=0?e.FINAL_CONFIG.line.labels.offsetY:-e.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:e.FINAL_CONFIG.line.labels.color},t.toDisplayString(e.canShowValue(s.value)?e.applyDataLabel(e.FINAL_CONFIG.line.labels.formatter,s.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.line.labels.rounding}),{datapoint:s,serie:a}):""),9,Ct)):t.createCommentVNode("",!0),s&&d===0&&a.useTag&&a.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:s.x,y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(a.name),5)],8,yt)):t.createCommentVNode("",!0),s&&d===a.plots.length-1&&a.useTag&&a.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:s.x-a.name.length*(l.fontSizes.plotLabels/2),y:s.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(a.name),5)],8,Lt)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${n}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${n}_${d}`},[s&&d===0&&a.showSerieName&&a.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:s.x-l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x-l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,St)):t.createCommentVNode("",!0),s&&d===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:s.x+l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x+l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,wt)):t.createCommentVNode("",!0)],64))),128))],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${n}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(s,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${n}_${d}`},[s&&d===0&&a.showSerieName&&a.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:s.x-l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x-l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Ot)):t.createCommentVNode("",!0),s&&d===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:s.x+l.fontSizes.plotLabels,y:s.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:l.fontSizes.plotLabels,fill:a.color,x:s.x+l.fontSizes.plotLabels,y:s.y,maxWords:2})},null,8,Gt)):t.createCommentVNode("",!0)],64))),128))],64))),128)),l.mutableConfig.useIndividualScale&&!l.mutableConfig.isStacked?(t.openBlock(),t.createElementBlock(t.Fragment,{key:9},[t.createElementVNode("defs",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,(a,n)=>(t.openBlock(),t.createElementBlock("linearGradient",{id:`individual_scale_gradient_${l.uniqueId}_${n}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.FINAL_CONFIG.chart.backgroundColor,"stop-opacity":"0"},null,8,pt),t.createElementVNode("stop",{offset:"100%","stop-color":a.color,"stop-opacity":"0.2"},null,8,Bt)],8,vt))),256))]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,(a,n)=>(t.openBlock(),t.createElementBlock("rect",{x:a.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+e.xPadding,y:e.drawingArea.top,width:e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:e.drawingArea.height<0?10:e.drawingArea.height,fill:l.selectedScale===a.id?`url(#individual_scale_gradient_${l.uniqueId}_${n})`:"transparent",onMouseenter:s=>l.selectedScale=a.id,onMouseleave:i[0]||(i[0]=s=>l.selectedScale=null)},null,40,Vt))),256))],64)):t.createCommentVNode("",!0),t.createElementVNode("g",null,[e.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!l.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock("text",{key:0,"font-size":l.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${l.fontSizes.yAxis+e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,Et)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:l.width/2,y:e.drawingArea.bottom+l.fontSizes.yAxis+l.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":l.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,zt)):t.createCommentVNode("",!0)]),i[9]||(i[9]=t.createTextVNode('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(t.openBlock(),t.createElementBlock("g",Pt,[r.$slots["time-label"]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.timeLabels,(a,n)=>t.renderSlot(r.$slots,"time-label",t.mergeProps({key:`time_label_${n}`,ref_for:!0},{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*n+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom+l.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,fontSize:l.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*n+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+l.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,absoluteIndex:a.absoluteIndex,content:a.text,textAnchor:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle",show:a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(n===0||n===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&l.selectedSerieIndex===n&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&n%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0}),void 0,!0)),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.timeLabels,(a,n)=>(t.openBlock(),t.createElementBlock("g",{key:`time_label_${n}`},[a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(n===0||n===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&l.selectedSerieIndex===n&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&n%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(t.openBlock(),t.createElementBlock("text",{key:0,"text-anchor":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":l.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*n+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+l.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,style:{cursor:"pointer"},onClick:()=>e.selectTimeLabel(a,n)},t.toDisplayString(a.text||""),9,Mt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(a,n)=>(t.openBlock(),t.createElementBlock("rect",{key:`tooltip_trap_${n}`,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*n,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:"transparent",onMouseenter:s=>e.toggleTooltipVisibility(!0,n),onMouseleave:i[1]||(i[1]=s=>e.toggleTooltipVisibility(!1)),onClick:s=>e.selectX(n)},null,40,Tt))),128))]),e.FINAL_CONFIG.chart.timeTag.show&&(![null,void 0].includes(l.selectedSerieIndex)||![null,void 0].includes(l.selectedMinimapIndex))?(t.openBlock(),t.createElementBlock("g",Dt,[(t.openBlock(),t.createElementBlock("foreignObject",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))-100+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[t.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:t.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)},t.toDisplayString(e.timeLabels[(l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0)].text||(l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0)),5)],8,Rt)),t.createElementVNode("circle",{cx:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((l.selectedSerieIndex!==null?l.selectedSerieIndex:0)||(l.selectedMinimapIndex!==null?l.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,cy:e.drawingArea.bottom,r:e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:e.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Ht)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(r.$slots,"svg",{svg:e.svg},void 0,!0)],14,J)):t.createCommentVNode("",!0),r.$slots.watermark?(t.openBlock(),t.createElementBlock("div",Wt,[t.renderSlot(r.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:l.isPrinting||l.isImaging})),void 0,!0)])):t.createCommentVNode("",!0),e.isDataset?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(A,{key:6,config:{type:"line",style:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:e.FINAL_CONFIG.chart.grid.stroke},path:{color:e.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),e.FINAL_CONFIG.chart.zoom.show&&l.maxX>6&&e.isDataset?(t.openBlock(),t.createBlock(S,{ref:"chartSlicer",key:`slicer_${l.slicerStep}`,background:e.FINAL_CONFIG.chart.zoom.color,fontSize:e.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:e.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.start],labelRight:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.end-1],textColor:e.FINAL_CONFIG.chart.color,inputColor:e.FINAL_CONFIG.chart.zoom.color,selectColor:e.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:e.FINAL_CONFIG.chart.backgroundColor,minimap:e.minimap,smoothMinimap:e.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:e.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:e.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:l.selectedSerieIndex,minimapIndicatorColor:e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,verticalHandles:e.FINAL_CONFIG.chart.zoom.minimap.verticalHandles,max:l.maxX,min:0,valueStart:l.slicer.start,valueEnd:l.slicer.end,start:l.slicer.start,"onUpdate:start":i[2]||(i[2]=a=>l.slicer.start=a),end:l.slicer.end,"onUpdate:end":i[3]||(i[3]=a=>l.slicer.end=a),refreshStartPoint:e.FINAL_CONFIG.chart.zoom.startIndex!==null?e.FINAL_CONFIG.chart.zoom.startIndex:0,refreshEndPoint:e.FINAL_CONFIG.chart.zoom.endIndex!==null?e.FINAL_CONFIG.chart.zoom.endIndex+1:Math.max(...o.dataset.map(a=>e.largestTriangleThreeBucketsArray({data:a.series,threshold:e.FINAL_CONFIG.downsample.threshold}).length)),enableRangeHandles:e.FINAL_CONFIG.chart.zoom.enableRangeHandles,enableSelectionDrag:e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,onReset:e.refreshSlicer,onTrapMouse:e.selectMinimapIndex},{"reset-action":t.withCtx(({reset:a})=>[t.renderSlot(r.$slots,"reset-action",t.normalizeProps(t.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","verticalHandles","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag","onReset","onTrapMouse"])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.legend.show?(t.openBlock(),t.createElementBlock("div",{key:8,ref:"chartLegend",class:"vue-ui-xy-legend",style:t.normalizeStyle(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.absoluteDataset,(a,n)=>(t.openBlock(),t.createElementBlock("div",{key:`div_legend_item_${n}`,onClick:s=>e.segregate(a),class:t.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":l.segregatedSeries.includes(a.id)})},[l.icons[a.type]==="line"?(t.openBlock(),t.createElementBlock("svg",Yt,[t.createElementVNode("rect",{x:"0",y:"7.5",rx:"1.5",stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":.5,height:"3",width:"20",fill:a.color},null,8,Xt),t.createVNode(_,{plot:{x:10,y:9},radius:4,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",stroke:e.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["color","shape","stroke"])])):l.icons[a.type]==="bar"?(t.openBlock(),t.createElementBlock("svg",Ut,[l.icons[a.type]==="bar"&&r.$slots.pattern?(t.openBlock(),t.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"40",width:"40",stroke:"none",fill:a.color},null,8,Zt)):t.createCommentVNode("",!0),l.icons[a.type]==="bar"?(t.openBlock(),t.createElementBlock("rect",{key:1,x:"0",y:"0",rx:"1",height:"40",width:"40",stroke:"none",fill:r.$slots.pattern?`url(#pattern_${l.uniqueId}_${a.slotAbsoluteIndex})`:a.color},null,8,Jt)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("svg",Kt,[t.createVNode(_,{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"])])),t.createElementVNode("span",{style:t.normalizeStyle(`color:${e.FINAL_CONFIG.chart.legend.color}`)},t.toDisplayString(a.name),5)],10,qt))),128))],4)):(t.openBlock(),t.createElementBlock("div",Qt,[t.renderSlot(r.$slots,"legend",{legend:e.absoluteDataset},void 0,!0)],512)),r.$slots.source?(t.openBlock(),t.createElementBlock("div",jt,[t.renderSlot(r.$slots,"source",{},void 0,!0)],512)):t.createCommentVNode("",!0),t.createVNode(C,{show:l.mutableConfig.showTooltip&&l.isTooltip,backgroundColor:e.FINAL_CONFIG.chart.tooltip.backgroundColor,color:e.FINAL_CONFIG.chart.tooltip.color,fontSize:e.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:e.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:e.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:e.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:e.FINAL_CONFIG.chart.tooltip.position,offsetY:e.FINAL_CONFIG.chart.tooltip.offsetY,parent:r.$refs.chart,content:e.tooltipContent,isFullscreen:l.isFullscreen,isCustom:e.FINAL_CONFIG.chart.tooltip.customFormat&&typeof e.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(r.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(r.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),e.isDataset?(t.openBlock(),t.createBlock(O,{key:11,hideDetails:"",config:{open:l.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color},head:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color}}},{content:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle(`${l.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[t.createElementVNode("div",$t,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":i[4]||(i[4]=a=>l.showSparklineTable=a)},null,512),[[t.vModelCheckbox,l.showSparklineTable]]),t.createElementVNode("div",{onClick:i[5]||(i[5]=a=>l.showSparklineTable=!l.showSparklineTable),style:{cursor:"pointer"}},[t.createVNode(N,{name:"chartLine",size:20,stroke:e.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),l.showSparklineTable?(t.openBlock(),t.createBlock(b,{key:`sparkline_${l.segregateStep}`,dataset:e.tableSparklineDataset,config:e.tableSparklineConfig},null,8,["dataset","config"])):(t.openBlock(),t.createBlock(w,{key:`table_${l.tableStep}`,colNames:e.dataTable.colNames,head:e.dataTable.head,body:e.dataTable.body,config:e.dataTable.config,title:`${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text?` : ${e.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:i[6]||(i[6]=a=>l.mutableConfig.showTable=!1)},{th:t.withCtx(({th:a})=>[t.createElementVNode("div",{innerHTML:a},null,8,el)]),td:t.withCtx(({td:a})=>[t.createTextVNode(t.toDisplayString(isNaN(Number(a))?a:e.dataLabel({p:e.FINAL_CONFIG.chart.labels.prefix,v:a,s:e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):t.createCommentVNode("",!0)],46,U)}const ll=q._export_sfc(X,[["render",tl],["__scopeId","data-v-e90b980f"]]);exports.default=ll;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),n=require("./index-BsQlLw24.cjs"),c=require("./useResponsive-YQYQrAZ_.cjs"),it=require("./Tooltip-BIC3xxj7.cjs"),ct=require("./Legend-D2hs4A1E.cjs"),vt=require("./Title-BIvGm_O3.cjs"),dt=require("./Slicer-D9B6W8zX.cjs"),Ne=require("./usePrinter-CHFROcW6.cjs"),ht=require("./vue-ui-accordion-Czbtgpgm.cjs"),yt=require("./DataTable-oajjRhip.cjs"),ft=require("./vue-ui-skeleton-Djh065IE.cjs"),De=require("./useNestedProp-suOXyj95.cjs"),gt=require("./PenAndPaper-DFw6nHeD.cjs"),pt=require("./useUserOptionState-BgepsfED.cjs"),mt=require("./useChartAccessibility-Cm7nkzTG.cjs"),bt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),xt=["id"],Lt=["onClick"],kt={key:2,class:"vue-data-ui-watermark"},Ct=["innerHTML"],wt={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ue,{expose:Be,emit:Fe}){const{vue_ui_xy_canvas:Ae}=n.useConfig(),m=ue,J=l.ref(n.createUid()),B=l.ref(null),F=l.ref(null),i=l.ref(null),g=l.ref(1),T=l.ref(1),U=l.ref(!1),h=l.ref(null),_=l.ref(""),ne=l.ref(null),C=l.ref([]),R=l.ref(1),I=l.ref(!0),E=l.ref(!0),K=l.ref(null),se=l.ref(0),ie=l.ref(0),q=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),he=l.ref(null),Q=l.ref(0),ee=l.ref(0),te=l.ref(0),S=l.ref(null),le=l.computed(()=>!!m.dataset&&m.dataset.length),He=Fe,Ve=l.useSlots();l.onMounted(()=>{Ve["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>ge(),set:e=>e}),{userOptionsVisible:ae,setUserOptionsVisibility:ye,keepUserOptionState:fe}=pt.useUserOptionState({config:t.value}),{svgRef:z}=mt.useChartAccessibility({config:t.value.style.chart.title});function ge(){const e=De.useNestedProp({userConfig:m.config,defaultConfig:Ae});let o={};return e.theme?o={...De.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||m.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:o=e,m.config&&n.hasDeepProperty(m.config,"style.chart.scale.min")?o.style.chart.scale.min=m.config.style.chart.scale.min:o.style.chart.scale.min=null,m.config&&n.hasDeepProperty(m.config,"style.chart.scale.max")?o.style.chart.scale.max=m.config.style.chart.scale.max:o.style.chart.scale.max=null,m.config&&n.hasDeepProperty(m.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=m.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,m.config&&n.hasDeepProperty(m.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=m.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>m.config,e=>{t.value=ge(),ae.value=!t.value.userOptions.showOnChartHover,oe(),Q.value+=1,ee.value+=1,te.value+=1,s.value.showTable=t.value.table.show,s.value.showDataLabels=t.value.style.chart.dataLabels.show,s.value.stacked=t.value.style.chart.stacked,s.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>m.dataset,()=>{oe(),Q.value+=1,ee.value+=1,te.value+=1},{deep:!0});const pe=l.ref(t.value.style.chart.aspectRatio),{isPrinting:me,isImaging:be,generatePdf:xe,generateImage:Le}=Ne.usePrinter({elementId:`xy_canvas_${J.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=l.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 Ye(e){q.value=e,ie.value+=1}const ke=l.computed(()=>n.convertCustomPalette(t.value.customPalette)),w=l.computed(()=>N.value?Math.max(...N.value.filter((e,o)=>!C.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:T.value,left:g.value*t.value.style.chart.paddingProportions.left,top:T.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:T.value-T.value*t.value.style.chart.paddingProportions.bottom,width:e,height:T.value-T.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function Ce(e,o){return e/o}function Ue({hasAutoScale:e,series:o,min:r,max:v,scale:y,yOffset:L,individualHeight:d,stackIndex:p=null}){return o.map((P,k)=>{const M=y.min<0?Math.abs(y.min):0,O=Ce(P+M,M+y.max);let V,Y;e&&(V=y.min,Y=Ce(P-V,y.max-V));let $=0;return p===null?$=a.value.bottom-a.value.height*(e?Y:O):$=a.value.bottom-L-d*(e?Y:O),{x:a.value.left+a.value.slot*k+a.value.slot/2,y:$,value:P}})}const b=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...N.value.filter((d,p)=>!C.value.includes(d.absoluteIndex)).flatMap(d=>d.series.slice(u.value.start,u.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...N.value.filter((d,p)=>!C.value.includes(d.absoluteIndex)).flatMap(d=>d.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,y=a.value.bottom-a.value.height*(v/(r.max+v)),L=r.ticks.map(d=>({y:a.value.bottom-a.value.height*((d+v)/(r.max+v)),x:a.value.left-8,value:d}));return{absoluteMin:v,max:o,min:e,scale:r,yLabels:L,zero:y}}),_e=l.computed(()=>f.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}"/>
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
<span>${e.name?e.name+": ":""}</span>
|
|
7
7
|
<span>${n.applyDataLabel(t.value.style.chart.dataLabels.formatter,e.series[h.value],n.dataLabel({p:e.prefix||"",v:e.series[h.value],s:e.suffix||"",r:e.rounding||0}),{datapoint:e,seriesIndex:h.value})}</span>
|
|
8
8
|
</div>
|
|
9
|
-
`)),N=l.computed(()=>m.dataset.map((e,o)=>({...e,series:n.largestTriangleThreeBucketsArray({data:n.sanitizeArray(e.series),threshold:t.value.downsample.threshold}),absoluteIndex:o,color:n.convertColorToHex(e.color||ke.value[o]||n.palette[o]||n.palette[o%n.palette.length])})));l.watch(w,e=>{e&&we()});const f=l.computed(()=>n.assignStackRatios(N.value.filter((e,o)=>!C.value.includes(e.absoluteIndex))).map((e,o)=>({...e,series:e.series.slice(u.value.start,u.value.end)})).map((e,o)=>{let r=[null,void 0].includes(e.scaleMin)?Math.min(...e.series)||0:e.scaleMin,v=[null,void 0].includes(e.scaleMax)?Math.max(...e.series)||1:e.scaleMax;r===v&&(r=r>=0?v-1:r,v=v>=0?v:r+1),e.series.filter($=>![null,void 0].includes($)).map($=>($-r)/(v-r));const y={valueMin:r,valueMax:v},L=e.scaleSteps||t.value.style.chart.scale.ticks;let d;e.autoScaling?d=n.calculateNiceScale(y.valueMin,y.valueMax,L):d=n.calculateNiceScale(y.valueMin<0?y.valueMin:0,y.valueMax<=0?0:y.valueMax,L);const p=s.value.stacked?a.value.height*(1-e.cumulatedStackRatio):0,P=s.value.stacked?a.value.height/t.value.style.chart.stackGap:0,k=s.value.stacked?a.value.height*e.stackRatio-P:a.value.height,M=d.min<0?Math.abs(d.min):0;let O;e.autoScaling&&s.value.stacked&&v<=0?O=a.value.bottom-p-k:O=a.value.bottom-p-k*(M/(d.max+M));const V=d.ticks.map(($,st)=>({y:a.value.bottom-p-k*(st/(d.ticks.length-1)),x:a.value.left-8,value:$})),Y=Ue({hasAutoScale:s.value.stacked&&e.autoScaling,series:e.series,min:s.value.stacked?r:b.value.min,max:s.value.stacked?v:b.value.max,scale:s.value.stacked?d:b.value.scale,yOffset:p,individualHeight:k,stackIndex:s.value.stacked?o:null});return{...e,coordinatesLine:Y,min:r,max:v,localScale:d,localZero:O,localMin:M,localYLabels:V,yOffset:p,individualHeight:k}})),u=l.ref({start:0,end:w.value});function we(){Se()}const D=l.ref(null);async function Se(){(t.value.style.chart.zoom.startIndex!==null||t.value.style.chart.zoom.endIndex!==null)&&D.value?(t.value.style.chart.zoom.startIndex!==null&&(await l.nextTick(),await l.nextTick(),D.value&&D.value.setStartValue(t.value.style.chart.zoom.startIndex)),t.value.style.chart.zoom.endIndex!==null&&(await l.nextTick(),await l.nextTick(),D.value&&D.value.setEndValue(qe(t.value.style.chart.zoom.endIndex+1)))):(u.value={start:0,end:w.value},se.value+=1)}function qe(e){const o=w.value;return e>o?o:e<0||t.value.style.chart.zoom.startIndex!==null&&e<t.value.style.chart.zoom.startIndex?t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex+1:1:e}const We=l.computed(()=>f.value.filter(e=>["line","plot",void 0].includes(e.type))),x=l.computed(()=>f.value.filter(e=>e.type==="bar"));function Xe(){if(!z.value)return;const e=F.value.offsetWidth,o=F.value.offsetHeight;z.value.width=e*R.value*2,z.value.height=o*R.value*2,g.value=e*R.value*2,T.value=o*R.value*2,i.value.scale(R.value,R.value),A()}function Ze(){if(i.value.clearRect(0,0,1e4,1e4),i.value.fillStyle=t.value.style.chart.backgroundColor,i.value.fillRect(0,0,a.value.canvasWidth,a.value.canvasHeight),s.value.stacked)t.value.style.chart.grid.y.verticalLines.show&&u.value.end-u.value.start<t.value.style.chart.grid.y.verticalLines.hideUnderXLength?f.value.forEach(e=>{for(let o=0;o<u.value.end-u.value.start+1;o+=1)c.line(i.value,[{x:a.value.left+a.value.slot*o,y:a.value.bottom-e.yOffset-e.individualHeight},{x:a.value.left+a.value.slot*o,y:a.value.bottom-e.yOffset}],{color:t.value.style.chart.grid.y.verticalLines.color})}):t.value.style.chart.grid.y.verticalLines.show&&u.value.end-u.value.start>=t.value.style.chart.grid.y.verticalLines.hideUnderXLength&&f.value.forEach(e=>{for(let o=u.value.start;o<u.value.end;o+=1)o%Math.floor((u.value.end-u.value.start)/t.value.style.chart.grid.y.timeLabels.modulo)===0&&c.line(i.value,[{x:a.value.left+a.value.slot*(o-u.value.start)+a.value.slot/2,y:a.value.bottom-e.yOffset-e.individualHeight},{x:a.value.left+a.value.slot*(o-u.value.start)+a.value.slot/2,y:a.value.bottom-e.yOffset}],{color:t.value.style.chart.grid.y.verticalLines.color})}),t.value.style.chart.grid.x.horizontalLines.show&&(t.value.style.chart.grid.x.horizontalLines.alternate?f.value.forEach(e=>{e.localYLabels.forEach((o,r)=>{r<e.localYLabels.length-1&&c.rect(i.value,[{x:a.value.left,y:o.y},{x:a.value.right,y:o.y},{x:a.value.right,y:e.localYLabels[r+1].y},{x:a.value.left,y:e.localYLabels[r+1].y}],{fillColor:r%2===0?"transparent":n.setOpacity(t.value.style.chart.grid.x.horizontalLines.color,t.value.style.chart.grid.x.horizontalLines.opacity),strokeColor:"transparent"})})}):f.value.forEach(e=>{e.localYLabels.slice(u.value.start,u.value.end).forEach(o=>{c.line(i.value,[{x:a.value.left,y:o.y},{x:a.value.right,y:o.y}],{color:t.value.style.chart.grid.x.horizontalLines.color})})})),t.value.style.chart.grid.zeroLine.show&&f.value.forEach(e=>{c.line(i.value,[{x:a.value.left,y:e.localZero},{x:a.value.right,y:e.localZero}],{color:t.value.style.chart.grid.zeroLine.color,lineDash:t.value.style.chart.grid.zeroLine.dashed?[10,10]:[0,0]})}),t.value.style.chart.grid.y.axisLabels.show&&f.value.forEach(e=>{c.line(i.value,[{x:a.value.left,y:a.value.bottom-e.yOffset},{x:a.value.left,y:a.value.bottom-e.yOffset-e.individualHeight}],{color:e.color}),c.line(i.value,[{x:a.value.right,y:a.value.bottom-e.yOffset},{x:a.value.right,y:a.value.bottom-e.yOffset-e.individualHeight}],{color:e.color})}),f.value.forEach(e=>{c.text(i.value,e.name,g.value/35,a.value.bottom-e.yOffset-e.individualHeight/2,{align:"center",rotation:-90,color:e.color,font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`})});else{if(t.value.style.chart.grid.y.verticalLines.show&&u.value.end-u.value.start<t.value.style.chart.grid.y.verticalLines.hideUnderXLength)for(let e=0;e<u.value.end-u.value.start+1;e+=1)c.line(i.value,[{x:a.value.left+a.value.slot*e,y:a.value.top},{x:a.value.left+a.value.slot*e,y:a.value.bottom}],{color:t.value.style.chart.grid.y.verticalLines.color});else if(t.value.style.chart.grid.y.verticalLines.show&&u.value.end-u.value.start>=t.value.style.chart.grid.y.verticalLines.hideUnderXLength)for(let e=u.value.start;e<u.value.end;e+=1)e%Math.floor((u.value.end-u.value.start)/t.value.style.chart.grid.y.timeLabels.modulo)===0&&c.line(i.value,[{x:a.value.left+a.value.slot*(e-u.value.start)+a.value.slot/2,y:a.value.top},{x:a.value.left+a.value.slot*(e-u.value.start)+a.value.slot/2,y:a.value.bottom}],{color:t.value.style.chart.grid.y.verticalLines.color});t.value.style.chart.grid.x.horizontalLines.show&&(t.value.style.chart.grid.x.horizontalLines.alternate?b.value.yLabels.forEach((e,o)=>{o<b.value.yLabels.length-1&&c.rect(i.value,[{x:a.value.left,y:e.y},{x:a.value.right,y:e.y},{x:a.value.right,y:b.value.yLabels[o+1].y},{x:a.value.left,y:b.value.yLabels[o+1].y}],{fillColor:o%2===0?"transparent":n.setOpacity(t.value.style.chart.grid.x.horizontalLines.color,t.value.style.chart.grid.x.horizontalLines.opacity),strokeColor:"transparent"})}):b.value.yLabels.forEach(e=>{c.line(i.value,[{x:a.value.left,y:e.y},{x:a.value.right,y:e.y}],{color:t.value.style.chart.grid.x.horizontalLines.color})})),t.value.style.chart.grid.y.showAxis&&c.line(i.value,[{x:a.value.left,y:a.value.top},{x:a.value.left,y:a.value.bottom}],{color:t.value.style.chart.grid.y.axisColor,lineWidth:t.value.style.chart.grid.y.axisThickness}),t.value.style.chart.grid.x.showAxis&&c.line(i.value,[{x:a.value.left,y:a.value.bottom},{x:a.value.right,y:a.value.bottom}],{color:t.value.style.chart.grid.x.axisColor,lineWidth:t.value.style.chart.grid.x.axisThickness}),t.value.style.chart.grid.zeroLine.show&&c.line(i.value,[{x:a.value.left,y:b.value.zero},{x:a.value.right,y:b.value.zero}],{color:t.value.style.chart.grid.zeroLine.color,lineDash:t.value.style.chart.grid.zeroLine.dashed?[10,10]:[0,0]})}t.value.style.chart.grid.y.axisName&&c.text(i.value,t.value.style.chart.grid.y.axisName,g.value-g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio*1.2,a.value.bottom-a.value.height/2,{font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.color,align:"center",rotation:90}),t.value.style.chart.grid.x.axisName&&c.text(i.value,t.value.style.chart.grid.x.axisName,g.value/2,T.value,{font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.color,align:"center"})}function Ge(e){for(let o=0;o<e.coordinatesLine.length;o+=1){const r=(h.value===o?g.value/150:t.value.style.chart.line.plots.show?g.value/200:0)*t.value.style.chart.line.plots.radiusRatio;c.circle(i.value,{x:e.coordinatesLine[o].x,y:e.coordinatesLine[o].y},r,{color:t.value.style.chart.backgroundColor,fillStyle:e.color})}}function je(){f.value.forEach(e=>{e.showYMarker&&H(e)&&c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,H(e).value,n.dataLabel({p:e.prefix||t.value.style.chart.grid.y.axisLabels.prefix||"",v:H(e).value,s:e.suffix||t.value.style.chart.grid.y.axisLabels.suffix||"",r:e.rounding||t.value.style.chart.grid.y.axisLabels.rounding||0}),{datapoint:H(e),seriesIndex:null}),a.value.left-8+t.value.style.chart.grid.y.axisLabels.offsetX,H(e).y,{align:"right",font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:e.color})})}function Je(){t.value.style.chart.grid.y.axisLabels.show&&(s.value.stacked?f.value.forEach(e=>{e.localYLabels.forEach((o,r)=>{c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,o.value,n.dataLabel({p:e.prefix||t.value.style.chart.grid.y.axisLabels.prefix||"",v:o.value,s:e.suffix||t.value.style.chart.grid.y.axisLabels.suffix||"",r:e.rounding||t.value.style.chart.grid.y.axisLabels.rounding||0}),{datapoint:o,seriesIndex:r}),o.x+t.value.style.chart.grid.y.axisLabels.offsetX,o.y,{align:"right",font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:e.color,globalAlpha:e.showYMarker&&![null,void 0].includes(h.value)?.2:1})})}):b.value.yLabels.forEach((e,o)=>{c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,e.value,n.dataLabel({p:t.value.style.chart.grid.y.axisLabels.prefix||"",v:e.value,s:t.value.style.chart.grid.y.axisLabels.suffix||"",r:t.value.style.chart.grid.y.axisLabels.rounding||0}),{datapoint:e,seriesIndex:o}),e.x+t.value.style.chart.grid.y.axisLabels.offsetX,e.y,{align:"right",font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.grid.y.axisLabels.color,globalAlpha:f.value.some(r=>r.showYMarker)&&![null,void 0].includes(h.value)?.2:1})}))}function Ke(e){for(let o=0;o<e.coordinatesLine.length;o+=1)c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,e.coordinatesLine[o].value,n.dataLabel({p:e.prefix||"",v:e.coordinatesLine[o].value,s:e.suffix||"",r:e.rounding||0}),{datapoint:e.coordinatesLine[o],seriesIndex:o}),e.coordinatesLine[o].x,e.coordinatesLine[o].y+t.value.style.chart.dataLabels.offsetY,{align:"center",font:`${Math.round(g.value/40*t.value.style.chart.dataLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.dataLabels.useSerieColor?e.color:t.value.style.chart.dataLabels.color,strokeColor:t.value.style.chart.backgroundColor,lineWidth:.8})}function Qe(){for(let e=u.value.start;e<u.value.end;e+=1)(u.value.end-u.value.start<t.value.style.chart.grid.y.timeLabels.modulo||u.value.end-u.value.start>=t.value.style.chart.grid.y.timeLabels.modulo&&(e%Math.floor((u.value.end-u.value.start)/t.value.style.chart.grid.y.timeLabels.modulo)===0||e===h.value+u.value.start&&t.value.style.chart.grid.y.timeLabels.showMarker))&&c.text(i.value,t.value.style.chart.grid.y.timeLabels.values[e]||e+1,a.value.left+a.value.slot*(e-u.value.start)+a.value.slot/2,a.value.bottom+g.value/t.value.style.chart.grid.y.timeLabels.offsetY,{align:t.value.style.chart.grid.y.timeLabels.rotation===0?"center":t.value.style.chart.grid.y.timeLabels.rotation>0?"left":"right",font:`${Math.round(g.value/40*t.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.grid.y.timeLabels.showMarker?n.setOpacity(t.value.style.chart.grid.y.timeLabels.color,h.value!==null?h.value+u.value.start===e?100:20:100):t.value.style.chart.grid.y.timeLabels.color,rotation:t.value.style.chart.grid.y.timeLabels.rotation})}function ze(){c.line(i.value,[{x:a.value.left+a.value.slot*h.value+a.value.slot/2,y:a.value.top},{x:a.value.left+a.value.slot*h.value+a.value.slot/2,y:a.value.bottom}],{color:t.value.style.chart.selector.color,lineDash:t.value.style.chart.selector.dashed?[8,8]:[0,0],lineWidth:2})}function et(){S.value&&c.line(i.value,[{x:a.value.left,y:S.value},{x:a.value.right,y:S.value}],{color:t.value.style.chart.selector.color,lineDash:t.value.style.chart.selector.dashed?[8,8]:[0,0],lineWidth:2})}function tt(){x.value.forEach((e,o)=>{for(let r=0;r<e.coordinatesLine.length;r+=1)c.rect(i.value,[{x:a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o)),y:s.value.stacked?e.localZero:b.value.zero},{x:a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o))+a.value.slot*.8/(s.value.stacked?1:x.value.length),y:s.value.stacked?e.localZero:b.value.zero},{x:a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o))+a.value.slot*.8/(s.value.stacked?1:x.value.length),y:e.coordinatesLine[r].y},{x:a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o)),y:e.coordinatesLine[r].y}],{strokeColor:t.value.style.chart.backgroundColor,gradient:{type:"linear",start:{x:e.coordinatesLine[r].x,y:e.coordinatesLine[r].y},end:{x:e.coordinatesLine[r].x,y:s.value.stacked?e.localZero:b.value.zero},stops:[{offset:0,color:e.color},{offset:1,color:n.lightenHexColor(e.color,.5)}]}}),s.value.showDataLabels&&[!0,void 0].includes(e.dataLabels)&&c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,e.coordinatesLine[r].value,n.dataLabel({p:e.prefix||"",v:e.coordinatesLine[r].value,s:e.suffix||"",r:e.rounding||0}),{datapoint:e.coordinatesLine[r],seriesIndex:r}),a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o))+a.value.slot*.4/(s.value.stacked?1:x.value.length),(e.coordinatesLine[r].value<0?s.value.stacked?e.localZero:b.value.zero:e.coordinatesLine[r].y)+t.value.style.chart.dataLabels.offsetY,{align:"center",font:`${Math.round(g.value/40*t.value.style.chart.dataLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.dataLabels.useSerieColor?e.color:t.value.style.chart.dataLabels.color,strokeColor:t.value.style.chart.backgroundColor,lineWidth:.8})})}function lt(e){e.useArea?s.value.stacked?c.polygon(i.value,[{x:e.coordinatesLine[0].x,y:e.localZero},...e.coordinatesLine,{x:e.coordinatesLine.at(-1).x,y:e.localZero}],{fillColor:n.setOpacity(e.color,t.value.style.chart.area.opacity),strokeColor:"transparent"}):c.polygon(i.value,[{x:e.coordinatesLine[0].x,y:b.value.zero},...e.coordinatesLine,{x:e.coordinatesLine.at(-1).x,y:b.value.zero}],{fillColor:n.setOpacity(e.color,t.value.style.chart.area.opacity),strokeColor:"transparent"}):c.line(i.value,e.coordinatesLine,{color:e.color,lineWidth:3})}function at(){f.value.forEach((e,o)=>{c.line(i.value,[{x:a.value.left,y:a.value.bottom-e.yOffset},{x:a.value.right,y:a.value.bottom-e.yOffset}],{color:t.value.style.chart.grid.x.horizontalLines.color,lineWidth:1})})}function A(){Ze(),I.value?(h.value!==null&&t.value.style.chart.selector.show&&ze(),tt(),s.value.stacked&&t.value.style.chart.grid.x.showAxis&&at(),We.value.forEach(e=>{(e.type==="line"||!e.type)&<(e),E.value&&(Ge(e),s.value.showDataLabels&&[!0,void 0].includes(e.dataLabels)&&Ke(e))}),K.value=c.cloneCanvas(z.value)):(K.value&&(i.value.clearRect(0,0,1e4,1e4),i.value.drawImage(K.value,0,0)),h.value!==null&&t.value.style.chart.selector.show&&ze(),h.value!==null&&f.value.forEach(e=>{if(e.type==="line"||!e.type||e.type==="plot"){if(!e.coordinatesLine[h.value])return;e.coordinatesLine[h.value].x!==void 0&&e.coordinatesLine[h.value].y!==void 0&&c.circle(i.value,{x:e.coordinatesLine[h.value].x,y:e.coordinatesLine[h.value].y},g.value/150*t.value.style.chart.line.plots.radiusRatio,{color:t.value.style.chart.backgroundColor,fillStyle:e.color})}})),t.value.style.chart.grid.y.timeLabels.show&&Qe(),t.value.style.chart.selector.show&&t.value.style.chart.selector.showHorizontalSelector&&et(),Je(),je(),I.value=!1}const W=c.debounce(()=>{E.value=!0,Xe()},w.value>200?10:1,!E.value);function H(e){if([null,void 0].includes(h.value)||!e.coordinatesLine[h.value])return!1;const{y:o,value:r}=e.coordinatesLine[h.value];return{y:o,value:r}}function ot(e){const{left:o,top:r}=z.value.getBoundingClientRect(),v=e.clientX-o;if(S.value=(e.clientY-r)*2,(S.value<a.value.top||S.value>a.value.bottom)&&(S.value=null),v*2<a.value.left||v*2>a.value.right){U.value=!1,h.value=null;return}const y=v*2-a.value.left;if(h.value=Math.floor(y/a.value.slot),U.value=!0,!E.value)return;let L="";const d=t.value.style.chart.tooltip.customFormat;n.isFunction(d)&&n.functionReturnsString(()=>d({seriesIndex:h.value,datapoint:f.value.map(p=>({shape:p.shape||null,name:p.name,color:p.color,type:p.type||"line",value:p.series.find((P,k)=>k===h.value)})),series:f.value,config:t.value}))?_.value=d({seriesIndex:h.value,datapoint:f.value.map(p=>({shape:p.shape||null,name:p.name,color:p.color,type:p.type||"line",value:p.series.find((P,k)=>k===h.value)})),series:f.value,config:t.value}):(t.value.style.chart.grid.y.timeLabels.values.slice(u.value.start,u.value.end)[h.value]&&(L+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${t.value.style.chart.grid.y.timeLabels.values.slice(u.value.start,u.value.end)[h.value]}</div>`),L+=_e.value.join(""),_.value=L),E.value=!1}l.watch(()=>h.value,e=>{W()}),l.watch(()=>u.value,e=>{I.value=!0,A()},{deep:!0}),l.watch(()=>s.value.showDataLabels,e=>{I.value=!0,A()}),l.watch(()=>S.value,e=>{e&&A()}),l.watch(()=>s.value.stacked,e=>{I.value=!0,E.value=!0,W()});function rt(){U.value=!1,h.value=null,_.value="",S.value=null,A()}const X=l.ref(null),Z=l.ref(null);l.onMounted(()=>{oe()});function oe(){if(n.objectIsEmpty(m.dataset)?n.error({componentName:"VueUiXyCanvas",type:"dataset"}):z.value&&(i.value=z.value.getContext("2d",{willReadFrequently:!0})),t.value.responsive){const e=c.throttle(()=>{const{width:o,height:r}=c.useResponsive({chart:B.value,title:t.value.style.chart.title.text?ce.value:null,legend:t.value.style.chart.legend.show?ve.value:null,slicer:t.value.style.chart.zoom.show&&w.value>1?de.value:null,source:he.value});requestAnimationFrame(()=>{pe.value=`${o} / ${r}`})});X.value=new ResizeObserver(e),X.value.observe(B.value.parentNode)}Z.value=new ResizeObserver(e=>{for(const o of e)o.contentBoxSize&&F.value&&(I.value=!0,W())}),Z.value.observe(F.value),Se()}l.onBeforeUnmount(()=>{Z.value&&Z.value.disconnect(),X.value&&X.value.disconnect()});function $e(e){He("selectLegend",f.value.find(o=>o.absoluteIndex===e)),C.value.includes(e)?C.value=C.value.filter(o=>o!==e):C.value.push(e),I.value=!0,W()}const Te=l.computed(()=>N.value.map((e,o)=>({...e,name:e.name,color:n.convertColorToHex(e.color)||ke.value[o]||n.palette[o]||n.palette[o%n.palette.length],shape:e.shape||"circle",prefix:e.prefix||"",suffix:e.suffix||"",rounding:e.rounding||0})).map(e=>({...e,opacity:C.value.includes(e.absoluteIndex)?.5:1,segregate:()=>$e(e.absoluteIndex),isSegregated:C.value.includes(e.absoluteIndex)}))),ut=l.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),G=l.computed(()=>{const e=[""].concat(f.value.map(y=>y.name)).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 o=[];for(let y=0;y<w.value;y+=1){const L=f.value.map(d=>d.series[y]??0).reduce((d,p)=>d+p,0);o.push([t.value.style.chart.grid.y.timeLabels.values.slice(u.value.start,u.value.end)[y]??y+1].concat(f.value.map(d=>(d.series[y]??0).toFixed(t.value.table.rounding))).concat((L??0).toFixed(t.value.table.rounding)))}const r={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},v=[t.value.table.columnNames.period].concat(f.value.map(y=>y.name)).concat(t.value.table.columnNames.total);return{head:e,body:o.slice(0,u.value.end-u.value.start),config:r,colNames:v}}),Me=l.computed(()=>{if(f.value.length===0)return{head:[],body:[],config:{},columnNames:[]};const e=f.value.map(r=>({label:r.name,color:r.color,type:r.type})),o=[];for(let r=u.value.start;r<u.value.end;r+=1){const v=[t.value.style.chart.grid.y.timeLabels.values[r]||r+1];f.value.forEach(y=>{v.push(Number((y.series[r]||0).toFixed(t.value.table.rounding)))}),o.push(v)}return{head:e,body:o}});function Ie(){const e=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=["",...Me.value.head.map(L=>L.label)],r=Me.value.body,v=e.concat([o]).concat(r),y=n.createCsvContent(v);n.downloadCsv({csvContent:y,title:t.value.style.chart.title.text||"vue-ui-xy-canvas"})}function nt(){return f.value}function Pe(){s.value.showTable=!s.value.showTable}function Oe(){s.value.showDataLabels=!s.value.showDataLabels}function Re(){s.value.stacked=!s.value.stacked}function Ee(){s.value.showTooltip=!s.value.showTooltip}const j=l.ref(!1);function re(){j.value=!j.value}return Be({getData:nt,generateCsv:Ie,generatePdf:xe,generateImage:Le,toggleTable:Pe,toggleLabels:Oe,toggleStack:Re,toggleTooltip:Ee,toggleAnnotator:re}),(e,o)=>(l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(`width:100%; position:relative; ${t.value.responsive?"height: 100%":""}`),ref_key:"xy",ref:B,id:`xy_canvas_${J.value}`,class:l.normalizeClass(`vue-ui-donut ${q.value?"vue-data-ui-wrapper-fullscreen":""}`),onMouseenter:o[5]||(o[5]=()=>l.unref(ye)(!0)),onMouseleave:o[6]||(o[6]=()=>l.unref(ye)(!1))},[t.value.style.chart.title.text?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:ce,style:l.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};`)},[(l.openBlock(),l.createBlock(vt._sfc_main,{key:`title_${Q.value}`,config:{title:{cy:"xy-canvas-title",...t.value.style.chart.title},subtitle:{cy:"xy-canvas-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):l.createCommentVNode("",!0),t.value.userOptions.show&&le.value&&(l.unref(fe)||l.unref(ae))?(l.openBlock(),l.createBlock(Ne.UserOptions,{ref:"details",key:`user_option_${ie.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:l.unref(me),isImaging:l.unref(be),uid:J.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasLabel:t.value.userOptions.buttons.labels,hasStack:ue.dataset.length>1&&t.value.userOptions.buttons.stack,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasTable:u.value.end-u.value.start<200&&t.value.userOptions.buttons.table,isFullscreen:q.value,isTooltip:s.value.showTooltip,isStacked:s.value.stacked,titles:{...t.value.userOptions.buttonTitles},chartElement:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:j.value,onToggleFullscreen:Ye,onGeneratePdf:l.unref(xe),onGenerateCsv:Ie,onGenerateImage:l.unref(Le),onToggleTable:Pe,onToggleLabels:Oe,onToggleStack:Re,onToggleTooltip:Ee,onToggleAnnotator:re,style:l.normalizeStyle({visibility:l.unref(fe)?l.unref(ae)?"visible":"hidden":"visible"})},l.createSlots({_:2},[e.$slots.optionTooltip?{name:"optionTooltip",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,e.$slots.optionPdf?{name:"optionPdf",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,e.$slots.optionCsv?{name:"optionCsv",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,e.$slots.optionImg?{name:"optionImg",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,e.$slots.optionTable?{name:"optionTable",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,e.$slots.optionLabels?{name:"optionLabels",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,e.$slots.optionStack?{name:"optionStack",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,e.$slots.optionFullscreen?{name:"optionFullscreen",fn:l.withCtx(({toggleFullscreen:r,isFullscreen:v})=>[l.renderSlot(e.$slots,"optionFullscreen",l.normalizeProps(l.guardReactiveProps({toggleFullscreen:r,isFullscreen:v})),void 0,!0)]),key:"7"}:void 0,e.$slots.optionAnnotator?{name:"optionAnnotator",fn:l.withCtx(({toggleAnnotator:r,isAnnotator:v})=>[l.renderSlot(e.$slots,"optionAnnotator",l.normalizeProps(l.guardReactiveProps({toggleAnnotator:r,isAnnotator:v})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasLabel","hasStack","hasFullscreen","hasTable","isFullscreen","isTooltip","isStacked","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"vue-ui-xy-canvas",style:l.normalizeStyle(`position: relative; aspect-ratio: ${pe.value}`),ref_key:"container",ref:F},[le.value?(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvas",ref:z,style:{width:"100%",height:"100%"},onMousemove:o[0]||(o[0]=r=>ot(r)),onMouseleave:rt},null,544)):(l.openBlock(),l.createBlock(ft.default,{key:1,config:{type:"line",style:{backgroundColor:t.value.style.chart.backgroundColor,line:{axis:{color:"#CCCCCC"},path:{color:"#CCCCCC",strokeWidth:.5}}}}},null,8,["config"])),l.createVNode(it._sfc_main,{show:s.value.showTooltip&&U.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:l.unref(z),content:_.value,isFullscreen:q.value,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,isCustom:l.unref(n.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":l.withCtx(()=>[l.renderSlot(e.$slots,"tooltip-before",l.normalizeProps(l.guardReactiveProps({...ne.value})),void 0,!0)]),"tooltip-after":l.withCtx(()=>[l.renderSlot(e.$slots,"tooltip-after",l.normalizeProps(l.guardReactiveProps({...ne.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","position","offsetY","parent","content","isFullscreen","backgroundOpacity","isCustom"])],4),l.createElementVNode("div",{ref_key:"chartSlicer",ref:de,style:l.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`),"data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&w.value>1?(l.openBlock(),l.createBlock(dt.Slicer,{ref_key:"slicerComponent",ref:D,key:`slicer_${se.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.grid.y.timeLabels.values[u.value.start]?t.value.style.chart.grid.y.timeLabels.values[u.value.start]:"",labelRight:t.value.style.chart.grid.y.timeLabels.values[u.value.end-1]?t.value.style.chart.grid.y.timeLabels.values[u.value.end-1]:"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:w.value,min:0,valueStart:u.value.start,valueEnd:u.value.end,start:u.value.start,"onUpdate:start":o[1]||(o[1]=r=>u.value.start=r),end:u.value.end,"onUpdate:end":o[2]||(o[2]=r=>u.value.end=r),refreshStartPoint:t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex:0,refreshEndPoint:t.value.style.chart.zoom.endIndex!==null?t.value.style.chart.zoom.endIndex+1:w.value,enableRangeHandles:t.value.style.chart.zoom.enableRangeHandles,enableSelectionDrag:t.value.style.chart.zoom.enableSelectionDrag,onReset:we},{"reset-action":l.withCtx(({reset:r})=>[l.renderSlot(e.$slots,"reset-action",l.normalizeProps(l.guardReactiveProps({reset:r})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"])):l.createCommentVNode("",!0)],4),l.createElementVNode("div",{ref_key:"chartLegend",ref:ve},[t.value.style.chart.legend.show&&le.value?(l.openBlock(),l.createBlock(ct.Legend,{legendSet:Te.value,config:ut.value,key:`legend_${te.value}`,onClickMarker:o[3]||(o[3]=({i:r})=>$e(r))},{item:l.withCtx(({legend:r,index:v})=>[l.createElementVNode("div",{onClick:y=>r.segregate(),style:l.normalizeStyle(`opacity:${C.value.includes(v)?.5:1}`)},l.toDisplayString(r.name),13,Lt)]),_:1},8,["legendSet","config"])):l.renderSlot(e.$slots,"legend",{key:1,legend:Te.value},void 0,!0)],512),e.$slots.watermark?(l.openBlock(),l.createElementBlock("div",kt,[l.renderSlot(e.$slots,"watermark",l.normalizeProps(l.guardReactiveProps({isPrinting:l.unref(me)||l.unref(be)})),void 0,!0)])):l.createCommentVNode("",!0),e.$slots.source?(l.openBlock(),l.createElementBlock("div",{key:3,ref_key:"source",ref:he,dir:"auto"},[l.renderSlot(e.$slots,"source",{},void 0,!0)],512)):l.createCommentVNode("",!0),u.value.end-u.value.start<200?(l.openBlock(),l.createBlock(ht.default,{key:4,hideDetails:"",config:{open:s.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:l.withCtx(()=>[(l.openBlock(),l.createBlock(yt.DataTable,{key:`table_${ee.value}`,colNames:G.value.colNames,head:G.value.head,body:G.value.body,config:G.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[4]||(o[4]=r=>s.value.showTable=!1)},{th:l.withCtx(({th:r})=>[l.createElementVNode("div",{innerHTML:r},null,8,Ct)]),td:l.withCtx(({td:r})=>[l.createTextVNode(l.toDisplayString(r),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):l.createCommentVNode("",!0),t.value.userOptions.buttons.annotator&&f.value.length?(l.openBlock(),l.createBlock(gt.PenAndPaper,{key:5,parent:B.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:j.value,onClose:re},null,8,["parent","backgroundColor","color","active"])):l.createCommentVNode("",!0)],46,xt))}},St=bt._export_sfc(wt,[["__scopeId","data-v-89446978"]]);exports.default=St;
|
|
9
|
+
`)),N=l.computed(()=>m.dataset.map((e,o)=>({...e,series:n.largestTriangleThreeBucketsArray({data:n.sanitizeArray(e.series),threshold:t.value.downsample.threshold}),absoluteIndex:o,color:n.convertColorToHex(e.color||ke.value[o]||n.palette[o]||n.palette[o%n.palette.length])})));l.watch(w,e=>{e&&we()});const f=l.computed(()=>n.assignStackRatios(N.value.filter((e,o)=>!C.value.includes(e.absoluteIndex))).map((e,o)=>({...e,series:e.series.slice(u.value.start,u.value.end)})).map((e,o)=>{let r=[null,void 0].includes(e.scaleMin)?Math.min(...e.series)||0:e.scaleMin,v=[null,void 0].includes(e.scaleMax)?Math.max(...e.series)||1:e.scaleMax;r===v&&(r=r>=0?v-1:r,v=v>=0?v:r+1),e.series.filter($=>![null,void 0].includes($)).map($=>($-r)/(v-r));const y={valueMin:r,valueMax:v},L=e.scaleSteps||t.value.style.chart.scale.ticks;let d;e.autoScaling?d=n.calculateNiceScale(y.valueMin,y.valueMax,L):d=n.calculateNiceScale(y.valueMin<0?y.valueMin:0,y.valueMax<=0?0:y.valueMax,L);const p=s.value.stacked?a.value.height*(1-e.cumulatedStackRatio):0,P=s.value.stacked?a.value.height/t.value.style.chart.stackGap:0,k=s.value.stacked?a.value.height*e.stackRatio-P:a.value.height,M=d.min<0?Math.abs(d.min):0;let O;e.autoScaling&&s.value.stacked&&v<=0?O=a.value.bottom-p-k:O=a.value.bottom-p-k*(M/(d.max+M));const V=d.ticks.map(($,st)=>({y:a.value.bottom-p-k*(st/(d.ticks.length-1)),x:a.value.left-8,value:$})),Y=Ue({hasAutoScale:s.value.stacked&&e.autoScaling,series:e.series,min:s.value.stacked?r:b.value.min,max:s.value.stacked?v:b.value.max,scale:s.value.stacked?d:b.value.scale,yOffset:p,individualHeight:k,stackIndex:s.value.stacked?o:null});return{...e,coordinatesLine:Y,min:r,max:v,localScale:d,localZero:O,localMin:M,localYLabels:V,yOffset:p,individualHeight:k}})),u=l.ref({start:0,end:w.value});function we(){Se()}const D=l.ref(null);async function Se(){(t.value.style.chart.zoom.startIndex!==null||t.value.style.chart.zoom.endIndex!==null)&&D.value?(t.value.style.chart.zoom.startIndex!==null&&(await l.nextTick(),await l.nextTick(),D.value&&D.value.setStartValue(t.value.style.chart.zoom.startIndex)),t.value.style.chart.zoom.endIndex!==null&&(await l.nextTick(),await l.nextTick(),D.value&&D.value.setEndValue(qe(t.value.style.chart.zoom.endIndex+1)))):(u.value={start:0,end:w.value},se.value+=1)}function qe(e){const o=w.value;return e>o?o:e<0||t.value.style.chart.zoom.startIndex!==null&&e<t.value.style.chart.zoom.startIndex?t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex+1:1:e}const We=l.computed(()=>f.value.filter(e=>["line","plot",void 0].includes(e.type))),x=l.computed(()=>f.value.filter(e=>e.type==="bar"));function Xe(){if(!z.value)return;const e=F.value.offsetWidth,o=F.value.offsetHeight;z.value.width=e*R.value*2,z.value.height=o*R.value*2,g.value=e*R.value*2,T.value=o*R.value*2,i.value.scale(R.value,R.value),A()}function Ze(){if(i.value.clearRect(0,0,1e4,1e4),i.value.fillStyle=t.value.style.chart.backgroundColor,i.value.fillRect(0,0,a.value.canvasWidth,a.value.canvasHeight),s.value.stacked)t.value.style.chart.grid.y.verticalLines.show&&u.value.end-u.value.start<t.value.style.chart.grid.y.verticalLines.hideUnderXLength?f.value.forEach(e=>{for(let o=0;o<u.value.end-u.value.start+1;o+=1)c.line(i.value,[{x:a.value.left+a.value.slot*o,y:a.value.bottom-e.yOffset-e.individualHeight},{x:a.value.left+a.value.slot*o,y:a.value.bottom-e.yOffset}],{color:t.value.style.chart.grid.y.verticalLines.color})}):t.value.style.chart.grid.y.verticalLines.show&&u.value.end-u.value.start>=t.value.style.chart.grid.y.verticalLines.hideUnderXLength&&f.value.forEach(e=>{for(let o=u.value.start;o<u.value.end;o+=1)o%Math.floor((u.value.end-u.value.start)/t.value.style.chart.grid.y.timeLabels.modulo)===0&&c.line(i.value,[{x:a.value.left+a.value.slot*(o-u.value.start)+a.value.slot/2,y:a.value.bottom-e.yOffset-e.individualHeight},{x:a.value.left+a.value.slot*(o-u.value.start)+a.value.slot/2,y:a.value.bottom-e.yOffset}],{color:t.value.style.chart.grid.y.verticalLines.color})}),t.value.style.chart.grid.x.horizontalLines.show&&(t.value.style.chart.grid.x.horizontalLines.alternate?f.value.forEach(e=>{e.localYLabels.forEach((o,r)=>{r<e.localYLabels.length-1&&c.rect(i.value,[{x:a.value.left,y:o.y},{x:a.value.right,y:o.y},{x:a.value.right,y:e.localYLabels[r+1].y},{x:a.value.left,y:e.localYLabels[r+1].y}],{fillColor:r%2===0?"transparent":n.setOpacity(t.value.style.chart.grid.x.horizontalLines.color,t.value.style.chart.grid.x.horizontalLines.opacity),strokeColor:"transparent"})})}):f.value.forEach(e=>{e.localYLabels.slice(u.value.start,u.value.end).forEach(o=>{c.line(i.value,[{x:a.value.left,y:o.y},{x:a.value.right,y:o.y}],{color:t.value.style.chart.grid.x.horizontalLines.color})})})),t.value.style.chart.grid.zeroLine.show&&f.value.forEach(e=>{c.line(i.value,[{x:a.value.left,y:e.localZero},{x:a.value.right,y:e.localZero}],{color:t.value.style.chart.grid.zeroLine.color,lineDash:t.value.style.chart.grid.zeroLine.dashed?[10,10]:[0,0]})}),t.value.style.chart.grid.y.axisLabels.show&&f.value.forEach(e=>{c.line(i.value,[{x:a.value.left,y:a.value.bottom-e.yOffset},{x:a.value.left,y:a.value.bottom-e.yOffset-e.individualHeight}],{color:e.color}),c.line(i.value,[{x:a.value.right,y:a.value.bottom-e.yOffset},{x:a.value.right,y:a.value.bottom-e.yOffset-e.individualHeight}],{color:e.color})}),f.value.forEach(e=>{c.text(i.value,e.name,g.value/35,a.value.bottom-e.yOffset-e.individualHeight/2,{align:"center",rotation:-90,color:e.color,font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`})});else{if(t.value.style.chart.grid.y.verticalLines.show&&u.value.end-u.value.start<t.value.style.chart.grid.y.verticalLines.hideUnderXLength)for(let e=0;e<u.value.end-u.value.start+1;e+=1)c.line(i.value,[{x:a.value.left+a.value.slot*e,y:a.value.top},{x:a.value.left+a.value.slot*e,y:a.value.bottom}],{color:t.value.style.chart.grid.y.verticalLines.color});else if(t.value.style.chart.grid.y.verticalLines.show&&u.value.end-u.value.start>=t.value.style.chart.grid.y.verticalLines.hideUnderXLength)for(let e=u.value.start;e<u.value.end;e+=1)e%Math.floor((u.value.end-u.value.start)/t.value.style.chart.grid.y.timeLabels.modulo)===0&&c.line(i.value,[{x:a.value.left+a.value.slot*(e-u.value.start)+a.value.slot/2,y:a.value.top},{x:a.value.left+a.value.slot*(e-u.value.start)+a.value.slot/2,y:a.value.bottom}],{color:t.value.style.chart.grid.y.verticalLines.color});t.value.style.chart.grid.x.horizontalLines.show&&(t.value.style.chart.grid.x.horizontalLines.alternate?b.value.yLabels.forEach((e,o)=>{o<b.value.yLabels.length-1&&c.rect(i.value,[{x:a.value.left,y:e.y},{x:a.value.right,y:e.y},{x:a.value.right,y:b.value.yLabels[o+1].y},{x:a.value.left,y:b.value.yLabels[o+1].y}],{fillColor:o%2===0?"transparent":n.setOpacity(t.value.style.chart.grid.x.horizontalLines.color,t.value.style.chart.grid.x.horizontalLines.opacity),strokeColor:"transparent"})}):b.value.yLabels.forEach(e=>{c.line(i.value,[{x:a.value.left,y:e.y},{x:a.value.right,y:e.y}],{color:t.value.style.chart.grid.x.horizontalLines.color})})),t.value.style.chart.grid.y.showAxis&&c.line(i.value,[{x:a.value.left,y:a.value.top},{x:a.value.left,y:a.value.bottom}],{color:t.value.style.chart.grid.y.axisColor,lineWidth:t.value.style.chart.grid.y.axisThickness}),t.value.style.chart.grid.x.showAxis&&c.line(i.value,[{x:a.value.left,y:a.value.bottom},{x:a.value.right,y:a.value.bottom}],{color:t.value.style.chart.grid.x.axisColor,lineWidth:t.value.style.chart.grid.x.axisThickness}),t.value.style.chart.grid.zeroLine.show&&c.line(i.value,[{x:a.value.left,y:b.value.zero},{x:a.value.right,y:b.value.zero}],{color:t.value.style.chart.grid.zeroLine.color,lineDash:t.value.style.chart.grid.zeroLine.dashed?[10,10]:[0,0]})}t.value.style.chart.grid.y.axisName&&c.text(i.value,t.value.style.chart.grid.y.axisName,g.value-g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio*1.2,a.value.bottom-a.value.height/2,{font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.color,align:"center",rotation:90}),t.value.style.chart.grid.x.axisName&&c.text(i.value,t.value.style.chart.grid.x.axisName,g.value/2,T.value,{font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.color,align:"center"})}function Ge(e){for(let o=0;o<e.coordinatesLine.length;o+=1){const r=(h.value===o?g.value/150:t.value.style.chart.line.plots.show?g.value/200:0)*t.value.style.chart.line.plots.radiusRatio;c.circle(i.value,{x:e.coordinatesLine[o].x,y:e.coordinatesLine[o].y},r,{color:t.value.style.chart.backgroundColor,fillStyle:e.color})}}function je(){f.value.forEach(e=>{e.showYMarker&&H(e)&&c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,H(e).value,n.dataLabel({p:e.prefix||t.value.style.chart.grid.y.axisLabels.prefix||"",v:H(e).value,s:e.suffix||t.value.style.chart.grid.y.axisLabels.suffix||"",r:e.rounding||t.value.style.chart.grid.y.axisLabels.rounding||0}),{datapoint:H(e),seriesIndex:null}),a.value.left-8+t.value.style.chart.grid.y.axisLabels.offsetX,H(e).y,{align:"right",font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:e.color})})}function Je(){t.value.style.chart.grid.y.axisLabels.show&&(s.value.stacked?f.value.forEach(e=>{e.localYLabels.forEach((o,r)=>{c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,o.value,n.dataLabel({p:e.prefix||t.value.style.chart.grid.y.axisLabels.prefix||"",v:o.value,s:e.suffix||t.value.style.chart.grid.y.axisLabels.suffix||"",r:e.rounding||t.value.style.chart.grid.y.axisLabels.rounding||0}),{datapoint:o,seriesIndex:r}),o.x+t.value.style.chart.grid.y.axisLabels.offsetX,o.y,{align:"right",font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:e.color,globalAlpha:e.showYMarker&&![null,void 0].includes(h.value)?.2:1})})}):b.value.yLabels.forEach((e,o)=>{c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,e.value,n.dataLabel({p:t.value.style.chart.grid.y.axisLabels.prefix||"",v:e.value,s:t.value.style.chart.grid.y.axisLabels.suffix||"",r:t.value.style.chart.grid.y.axisLabels.rounding||0}),{datapoint:e,seriesIndex:o}),e.x+t.value.style.chart.grid.y.axisLabels.offsetX,e.y,{align:"right",font:`${Math.round(g.value/40*t.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.grid.y.axisLabels.color,globalAlpha:f.value.some(r=>r.showYMarker)&&![null,void 0].includes(h.value)?.2:1})}))}function Ke(e){for(let o=0;o<e.coordinatesLine.length;o+=1)c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,e.coordinatesLine[o].value,n.dataLabel({p:e.prefix||"",v:e.coordinatesLine[o].value,s:e.suffix||"",r:e.rounding||0}),{datapoint:e.coordinatesLine[o],seriesIndex:o}),e.coordinatesLine[o].x,e.coordinatesLine[o].y+t.value.style.chart.dataLabels.offsetY,{align:"center",font:`${Math.round(g.value/40*t.value.style.chart.dataLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.dataLabels.useSerieColor?e.color:t.value.style.chart.dataLabels.color,strokeColor:t.value.style.chart.backgroundColor,lineWidth:.8})}function Qe(){for(let e=u.value.start;e<u.value.end;e+=1)(u.value.end-u.value.start<t.value.style.chart.grid.y.timeLabels.modulo||u.value.end-u.value.start>=t.value.style.chart.grid.y.timeLabels.modulo&&(e%Math.floor((u.value.end-u.value.start)/t.value.style.chart.grid.y.timeLabels.modulo)===0||e===h.value+u.value.start&&t.value.style.chart.grid.y.timeLabels.showMarker))&&c.text(i.value,t.value.style.chart.grid.y.timeLabels.values[e]||e+1,a.value.left+a.value.slot*(e-u.value.start)+a.value.slot/2,a.value.bottom+g.value/t.value.style.chart.grid.y.timeLabels.offsetY,{align:t.value.style.chart.grid.y.timeLabels.rotation===0?"center":t.value.style.chart.grid.y.timeLabels.rotation>0?"left":"right",font:`${Math.round(g.value/40*t.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.grid.y.timeLabels.showMarker?n.setOpacity(t.value.style.chart.grid.y.timeLabels.color,h.value!==null?h.value+u.value.start===e?100:20:100):t.value.style.chart.grid.y.timeLabels.color,rotation:t.value.style.chart.grid.y.timeLabels.rotation})}function ze(){c.line(i.value,[{x:a.value.left+a.value.slot*h.value+a.value.slot/2,y:a.value.top},{x:a.value.left+a.value.slot*h.value+a.value.slot/2,y:a.value.bottom}],{color:t.value.style.chart.selector.color,lineDash:t.value.style.chart.selector.dashed?[8,8]:[0,0],lineWidth:2})}function et(){S.value&&c.line(i.value,[{x:a.value.left,y:S.value},{x:a.value.right,y:S.value}],{color:t.value.style.chart.selector.color,lineDash:t.value.style.chart.selector.dashed?[8,8]:[0,0],lineWidth:2})}function tt(){x.value.forEach((e,o)=>{for(let r=0;r<e.coordinatesLine.length;r+=1)c.rect(i.value,[{x:a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o)),y:s.value.stacked?e.localZero:b.value.zero},{x:a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o))+a.value.slot*.8/(s.value.stacked?1:x.value.length),y:s.value.stacked?e.localZero:b.value.zero},{x:a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o))+a.value.slot*.8/(s.value.stacked?1:x.value.length),y:e.coordinatesLine[r].y},{x:a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o)),y:e.coordinatesLine[r].y}],{strokeColor:t.value.style.chart.backgroundColor,gradient:{type:"linear",start:{x:e.coordinatesLine[r].x,y:e.coordinatesLine[r].y},end:{x:e.coordinatesLine[r].x,y:s.value.stacked?e.localZero:b.value.zero},stops:[{offset:0,color:e.color},{offset:1,color:t.value.style.chart.bar.gradient.show?n.lightenHexColor(e.color,.5):e.color}]}}),s.value.showDataLabels&&[!0,void 0].includes(e.dataLabels)&&c.text(i.value,n.applyDataLabel(t.value.style.chart.dataLabels.formatter,e.coordinatesLine[r].value,n.dataLabel({p:e.prefix||"",v:e.coordinatesLine[r].value,s:e.suffix||"",r:e.rounding||0}),{datapoint:e.coordinatesLine[r],seriesIndex:r}),a.value.left+a.value.slot*r+a.value.slot/10+(s.value.stacked?0:a.value.slot/x.value.length*o-(o===0?0:a.value.slot/(5*x.value.length)*o))+a.value.slot*.4/(s.value.stacked?1:x.value.length),(e.coordinatesLine[r].value<0?s.value.stacked?e.localZero:b.value.zero:e.coordinatesLine[r].y)+t.value.style.chart.dataLabels.offsetY,{align:"center",font:`${Math.round(g.value/40*t.value.style.chart.dataLabels.fontSizeRatio)}px ${t.value.style.fontFamily}`,color:t.value.style.chart.dataLabels.useSerieColor?e.color:t.value.style.chart.dataLabels.color,strokeColor:t.value.style.chart.backgroundColor,lineWidth:.8})})}function lt(e){e.useArea?s.value.stacked?c.polygon(i.value,[{x:e.coordinatesLine[0].x,y:e.localZero},...e.coordinatesLine,{x:e.coordinatesLine.at(-1).x,y:e.localZero}],{fillColor:n.setOpacity(e.color,t.value.style.chart.area.opacity),strokeColor:"transparent"}):c.polygon(i.value,[{x:e.coordinatesLine[0].x,y:b.value.zero},...e.coordinatesLine,{x:e.coordinatesLine.at(-1).x,y:b.value.zero}],{fillColor:n.setOpacity(e.color,t.value.style.chart.area.opacity),strokeColor:"transparent"}):c.line(i.value,e.coordinatesLine,{color:e.color,lineWidth:3})}function at(){f.value.forEach((e,o)=>{c.line(i.value,[{x:a.value.left,y:a.value.bottom-e.yOffset},{x:a.value.right,y:a.value.bottom-e.yOffset}],{color:t.value.style.chart.grid.x.horizontalLines.color,lineWidth:1})})}function A(){Ze(),I.value?(h.value!==null&&t.value.style.chart.selector.show&&ze(),tt(),s.value.stacked&&t.value.style.chart.grid.x.showAxis&&at(),We.value.forEach(e=>{(e.type==="line"||!e.type)&<(e),E.value&&(Ge(e),s.value.showDataLabels&&[!0,void 0].includes(e.dataLabels)&&Ke(e))}),K.value=c.cloneCanvas(z.value)):(K.value&&(i.value.clearRect(0,0,1e4,1e4),i.value.drawImage(K.value,0,0)),h.value!==null&&t.value.style.chart.selector.show&&ze(),h.value!==null&&f.value.forEach(e=>{if(e.type==="line"||!e.type||e.type==="plot"){if(!e.coordinatesLine[h.value])return;e.coordinatesLine[h.value].x!==void 0&&e.coordinatesLine[h.value].y!==void 0&&c.circle(i.value,{x:e.coordinatesLine[h.value].x,y:e.coordinatesLine[h.value].y},g.value/150*t.value.style.chart.line.plots.radiusRatio,{color:t.value.style.chart.backgroundColor,fillStyle:e.color})}})),t.value.style.chart.grid.y.timeLabels.show&&Qe(),t.value.style.chart.selector.show&&t.value.style.chart.selector.showHorizontalSelector&&et(),Je(),je(),I.value=!1}const W=c.debounce(()=>{E.value=!0,Xe()},w.value>200?10:1,!E.value);function H(e){if([null,void 0].includes(h.value)||!e.coordinatesLine[h.value])return!1;const{y:o,value:r}=e.coordinatesLine[h.value];return{y:o,value:r}}function ot(e){const{left:o,top:r}=z.value.getBoundingClientRect(),v=e.clientX-o;if(S.value=(e.clientY-r)*2,(S.value<a.value.top||S.value>a.value.bottom)&&(S.value=null),v*2<a.value.left||v*2>a.value.right){U.value=!1,h.value=null;return}const y=v*2-a.value.left;if(h.value=Math.floor(y/a.value.slot),U.value=!0,!E.value)return;let L="";const d=t.value.style.chart.tooltip.customFormat;n.isFunction(d)&&n.functionReturnsString(()=>d({seriesIndex:h.value,datapoint:f.value.map(p=>({shape:p.shape||null,name:p.name,color:p.color,type:p.type||"line",value:p.series.find((P,k)=>k===h.value)})),series:f.value,config:t.value}))?_.value=d({seriesIndex:h.value,datapoint:f.value.map(p=>({shape:p.shape||null,name:p.name,color:p.color,type:p.type||"line",value:p.series.find((P,k)=>k===h.value)})),series:f.value,config:t.value}):(t.value.style.chart.grid.y.timeLabels.values.slice(u.value.start,u.value.end)[h.value]&&(L+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${t.value.style.chart.grid.y.timeLabels.values.slice(u.value.start,u.value.end)[h.value]}</div>`),L+=_e.value.join(""),_.value=L),E.value=!1}l.watch(()=>h.value,e=>{W()}),l.watch(()=>u.value,e=>{I.value=!0,A()},{deep:!0}),l.watch(()=>s.value.showDataLabels,e=>{I.value=!0,A()}),l.watch(()=>S.value,e=>{e&&A()}),l.watch(()=>s.value.stacked,e=>{I.value=!0,E.value=!0,W()});function rt(){U.value=!1,h.value=null,_.value="",S.value=null,A()}const X=l.ref(null),Z=l.ref(null);l.onMounted(()=>{oe()});function oe(){if(n.objectIsEmpty(m.dataset)?n.error({componentName:"VueUiXyCanvas",type:"dataset"}):z.value&&(i.value=z.value.getContext("2d",{willReadFrequently:!0})),t.value.responsive){const e=c.throttle(()=>{const{width:o,height:r}=c.useResponsive({chart:B.value,title:t.value.style.chart.title.text?ce.value:null,legend:t.value.style.chart.legend.show?ve.value:null,slicer:t.value.style.chart.zoom.show&&w.value>1?de.value:null,source:he.value});requestAnimationFrame(()=>{pe.value=`${o} / ${r}`})});X.value=new ResizeObserver(e),X.value.observe(B.value.parentNode)}Z.value=new ResizeObserver(e=>{for(const o of e)o.contentBoxSize&&F.value&&(I.value=!0,W())}),Z.value.observe(F.value),Se()}l.onBeforeUnmount(()=>{Z.value&&Z.value.disconnect(),X.value&&X.value.disconnect()});function $e(e){He("selectLegend",f.value.find(o=>o.absoluteIndex===e)),C.value.includes(e)?C.value=C.value.filter(o=>o!==e):C.value.push(e),I.value=!0,W()}const Te=l.computed(()=>N.value.map((e,o)=>({...e,name:e.name,color:n.convertColorToHex(e.color)||ke.value[o]||n.palette[o]||n.palette[o%n.palette.length],shape:e.shape||"circle",prefix:e.prefix||"",suffix:e.suffix||"",rounding:e.rounding||0})).map(e=>({...e,opacity:C.value.includes(e.absoluteIndex)?.5:1,segregate:()=>$e(e.absoluteIndex),isSegregated:C.value.includes(e.absoluteIndex)}))),ut=l.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),G=l.computed(()=>{const e=[""].concat(f.value.map(y=>y.name)).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 o=[];for(let y=0;y<w.value;y+=1){const L=f.value.map(d=>d.series[y]??0).reduce((d,p)=>d+p,0);o.push([t.value.style.chart.grid.y.timeLabels.values.slice(u.value.start,u.value.end)[y]??y+1].concat(f.value.map(d=>(d.series[y]??0).toFixed(t.value.table.rounding))).concat((L??0).toFixed(t.value.table.rounding)))}const r={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},v=[t.value.table.columnNames.period].concat(f.value.map(y=>y.name)).concat(t.value.table.columnNames.total);return{head:e,body:o.slice(0,u.value.end-u.value.start),config:r,colNames:v}}),Me=l.computed(()=>{if(f.value.length===0)return{head:[],body:[],config:{},columnNames:[]};const e=f.value.map(r=>({label:r.name,color:r.color,type:r.type})),o=[];for(let r=u.value.start;r<u.value.end;r+=1){const v=[t.value.style.chart.grid.y.timeLabels.values[r]||r+1];f.value.forEach(y=>{v.push(Number((y.series[r]||0).toFixed(t.value.table.rounding)))}),o.push(v)}return{head:e,body:o}});function Ie(){const e=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=["",...Me.value.head.map(L=>L.label)],r=Me.value.body,v=e.concat([o]).concat(r),y=n.createCsvContent(v);n.downloadCsv({csvContent:y,title:t.value.style.chart.title.text||"vue-ui-xy-canvas"})}function nt(){return f.value}function Pe(){s.value.showTable=!s.value.showTable}function Oe(){s.value.showDataLabels=!s.value.showDataLabels}function Re(){s.value.stacked=!s.value.stacked}function Ee(){s.value.showTooltip=!s.value.showTooltip}const j=l.ref(!1);function re(){j.value=!j.value}return Be({getData:nt,generateCsv:Ie,generatePdf:xe,generateImage:Le,toggleTable:Pe,toggleLabels:Oe,toggleStack:Re,toggleTooltip:Ee,toggleAnnotator:re}),(e,o)=>(l.openBlock(),l.createElementBlock("div",{style:l.normalizeStyle(`width:100%; position:relative; ${t.value.responsive?"height: 100%":""}`),ref_key:"xy",ref:B,id:`xy_canvas_${J.value}`,class:l.normalizeClass(`vue-ui-donut ${q.value?"vue-data-ui-wrapper-fullscreen":""}`),onMouseenter:o[5]||(o[5]=()=>l.unref(ye)(!0)),onMouseleave:o[6]||(o[6]=()=>l.unref(ye)(!1))},[t.value.style.chart.title.text?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:ce,style:l.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};`)},[(l.openBlock(),l.createBlock(vt._sfc_main,{key:`title_${Q.value}`,config:{title:{cy:"xy-canvas-title",...t.value.style.chart.title},subtitle:{cy:"xy-canvas-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):l.createCommentVNode("",!0),t.value.userOptions.show&&le.value&&(l.unref(fe)||l.unref(ae))?(l.openBlock(),l.createBlock(Ne.UserOptions,{ref:"details",key:`user_option_${ie.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:l.unref(me),isImaging:l.unref(be),uid:J.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasLabel:t.value.userOptions.buttons.labels,hasStack:ue.dataset.length>1&&t.value.userOptions.buttons.stack,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasTable:u.value.end-u.value.start<200&&t.value.userOptions.buttons.table,isFullscreen:q.value,isTooltip:s.value.showTooltip,isStacked:s.value.stacked,titles:{...t.value.userOptions.buttonTitles},chartElement:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:j.value,onToggleFullscreen:Ye,onGeneratePdf:l.unref(xe),onGenerateCsv:Ie,onGenerateImage:l.unref(Le),onToggleTable:Pe,onToggleLabels:Oe,onToggleStack:Re,onToggleTooltip:Ee,onToggleAnnotator:re,style:l.normalizeStyle({visibility:l.unref(fe)?l.unref(ae)?"visible":"hidden":"visible"})},l.createSlots({_:2},[e.$slots.optionTooltip?{name:"optionTooltip",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,e.$slots.optionPdf?{name:"optionPdf",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,e.$slots.optionCsv?{name:"optionCsv",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,e.$slots.optionImg?{name:"optionImg",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,e.$slots.optionTable?{name:"optionTable",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,e.$slots.optionLabels?{name:"optionLabels",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,e.$slots.optionStack?{name:"optionStack",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,e.$slots.optionFullscreen?{name:"optionFullscreen",fn:l.withCtx(({toggleFullscreen:r,isFullscreen:v})=>[l.renderSlot(e.$slots,"optionFullscreen",l.normalizeProps(l.guardReactiveProps({toggleFullscreen:r,isFullscreen:v})),void 0,!0)]),key:"7"}:void 0,e.$slots.optionAnnotator?{name:"optionAnnotator",fn:l.withCtx(({toggleAnnotator:r,isAnnotator:v})=>[l.renderSlot(e.$slots,"optionAnnotator",l.normalizeProps(l.guardReactiveProps({toggleAnnotator:r,isAnnotator:v})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasLabel","hasStack","hasFullscreen","hasTable","isFullscreen","isTooltip","isStacked","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"vue-ui-xy-canvas",style:l.normalizeStyle(`position: relative; aspect-ratio: ${pe.value}`),ref_key:"container",ref:F},[le.value?(l.openBlock(),l.createElementBlock("canvas",{key:0,ref_key:"canvas",ref:z,style:{width:"100%",height:"100%"},onMousemove:o[0]||(o[0]=r=>ot(r)),onMouseleave:rt},null,544)):(l.openBlock(),l.createBlock(ft.default,{key:1,config:{type:"line",style:{backgroundColor:t.value.style.chart.backgroundColor,line:{axis:{color:"#CCCCCC"},path:{color:"#CCCCCC",strokeWidth:.5}}}}},null,8,["config"])),l.createVNode(it._sfc_main,{show:s.value.showTooltip&&U.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:l.unref(z),content:_.value,isFullscreen:q.value,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,isCustom:l.unref(n.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":l.withCtx(()=>[l.renderSlot(e.$slots,"tooltip-before",l.normalizeProps(l.guardReactiveProps({...ne.value})),void 0,!0)]),"tooltip-after":l.withCtx(()=>[l.renderSlot(e.$slots,"tooltip-after",l.normalizeProps(l.guardReactiveProps({...ne.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","position","offsetY","parent","content","isFullscreen","backgroundOpacity","isCustom"])],4),l.createElementVNode("div",{ref_key:"chartSlicer",ref:de,style:l.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`),"data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&w.value>1?(l.openBlock(),l.createBlock(dt.Slicer,{ref_key:"slicerComponent",ref:D,key:`slicer_${se.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.grid.y.timeLabels.values[u.value.start]?t.value.style.chart.grid.y.timeLabels.values[u.value.start]:"",labelRight:t.value.style.chart.grid.y.timeLabels.values[u.value.end-1]?t.value.style.chart.grid.y.timeLabels.values[u.value.end-1]:"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:w.value,min:0,valueStart:u.value.start,valueEnd:u.value.end,start:u.value.start,"onUpdate:start":o[1]||(o[1]=r=>u.value.start=r),end:u.value.end,"onUpdate:end":o[2]||(o[2]=r=>u.value.end=r),refreshStartPoint:t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex:0,refreshEndPoint:t.value.style.chart.zoom.endIndex!==null?t.value.style.chart.zoom.endIndex+1:w.value,enableRangeHandles:t.value.style.chart.zoom.enableRangeHandles,enableSelectionDrag:t.value.style.chart.zoom.enableSelectionDrag,onReset:we},{"reset-action":l.withCtx(({reset:r})=>[l.renderSlot(e.$slots,"reset-action",l.normalizeProps(l.guardReactiveProps({reset:r})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"])):l.createCommentVNode("",!0)],4),l.createElementVNode("div",{ref_key:"chartLegend",ref:ve},[t.value.style.chart.legend.show&&le.value?(l.openBlock(),l.createBlock(ct.Legend,{legendSet:Te.value,config:ut.value,key:`legend_${te.value}`,onClickMarker:o[3]||(o[3]=({i:r})=>$e(r))},{item:l.withCtx(({legend:r,index:v})=>[l.createElementVNode("div",{onClick:y=>r.segregate(),style:l.normalizeStyle(`opacity:${C.value.includes(v)?.5:1}`)},l.toDisplayString(r.name),13,Lt)]),_:1},8,["legendSet","config"])):l.renderSlot(e.$slots,"legend",{key:1,legend:Te.value},void 0,!0)],512),e.$slots.watermark?(l.openBlock(),l.createElementBlock("div",kt,[l.renderSlot(e.$slots,"watermark",l.normalizeProps(l.guardReactiveProps({isPrinting:l.unref(me)||l.unref(be)})),void 0,!0)])):l.createCommentVNode("",!0),e.$slots.source?(l.openBlock(),l.createElementBlock("div",{key:3,ref_key:"source",ref:he,dir:"auto"},[l.renderSlot(e.$slots,"source",{},void 0,!0)],512)):l.createCommentVNode("",!0),u.value.end-u.value.start<200?(l.openBlock(),l.createBlock(ht.default,{key:4,hideDetails:"",config:{open:s.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:l.withCtx(()=>[(l.openBlock(),l.createBlock(yt.DataTable,{key:`table_${ee.value}`,colNames:G.value.colNames,head:G.value.head,body:G.value.body,config:G.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[4]||(o[4]=r=>s.value.showTable=!1)},{th:l.withCtx(({th:r})=>[l.createElementVNode("div",{innerHTML:r},null,8,Ct)]),td:l.withCtx(({td:r})=>[l.createTextVNode(l.toDisplayString(r),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):l.createCommentVNode("",!0),t.value.userOptions.buttons.annotator&&f.value.length?(l.openBlock(),l.createBlock(gt.PenAndPaper,{key:5,parent:B.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:j.value,onClose:re},null,8,["parent","backgroundColor","color","active"])):l.createCommentVNode("",!0)],46,xt))}},St=bt._export_sfc(wt,[["__scopeId","data-v-c369b504"]]);exports.default=St;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as v, computed as x, useSlots as Ea, onMounted as la, watch as E, nextTick as ye, onBeforeUnmount as Aa, createElementBlock as te, openBlock as z, unref as w, normalizeClass as Da, normalizeStyle as V, createCommentVNode as Y, createBlock as A, createElementVNode as oe, createSlots as Ha, withCtx as m, renderSlot as L, normalizeProps as Z, guardReactiveProps as G, createVNode as Na, toDisplayString as ta, createTextVNode as Ya } from "vue";
|
|
2
|
-
import { u as _a, c as Ua, t as Wa, p as _, a as Xa, C as fe, b as Ba, D as ze, i as j, f as q, d as oa, _ as Va, J as Za, a9 as Ga, o as ja, e as qa, x as ra, q as Ja, r as Ka, y as Qa, s as re, l as el } from "./index-
|
|
2
|
+
import { u as _a, c as Ua, t as Wa, p as _, a as Xa, C as fe, b as Ba, D as ze, i as j, f as q, d as oa, _ as Va, J as Za, a9 as Ga, o as ja, e as qa, x as ra, q as Ja, r as Ka, y as Qa, s as re, l as el } from "./index-CWfVXv5m.js";
|
|
3
3
|
import { d as al, t as ll, u as tl, c as ol, a as ua, l as b, r as Se, b as R, p as sa } from "./useResponsive-BWapHhVH.js";
|
|
4
|
-
import { _ as rl } from "./Tooltip-
|
|
5
|
-
import { L as ul } from "./Legend-
|
|
6
|
-
import { _ as sl } from "./Title-
|
|
7
|
-
import { S as nl } from "./Slicer-
|
|
8
|
-
import { u as il, U as vl } from "./usePrinter-
|
|
9
|
-
import cl from "./vue-ui-accordion-
|
|
10
|
-
import { D as dl } from "./DataTable-
|
|
11
|
-
import hl from "./vue-ui-skeleton-
|
|
12
|
-
import { u as na } from "./useNestedProp-
|
|
13
|
-
import { P as yl } from "./PenAndPaper-
|
|
4
|
+
import { _ as rl } from "./Tooltip-BGoyGTcf.js";
|
|
5
|
+
import { L as ul } from "./Legend-BbA3GOXo.js";
|
|
6
|
+
import { _ as sl } from "./Title-Ci05WFhs.js";
|
|
7
|
+
import { S as nl } from "./Slicer-DNyqaTO7.js";
|
|
8
|
+
import { u as il, U as vl } from "./usePrinter-CNafRB9Y.js";
|
|
9
|
+
import cl from "./vue-ui-accordion-BrKcc0Za.js";
|
|
10
|
+
import { D as dl } from "./DataTable-n3ZWSPsz.js";
|
|
11
|
+
import hl from "./vue-ui-skeleton-CBgqwx0w.js";
|
|
12
|
+
import { u as na } from "./useNestedProp-D4gVG7s3.js";
|
|
13
|
+
import { P as yl } from "./PenAndPaper-C3qGJ1mF.js";
|
|
14
14
|
import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { u as gl } from "./useChartAccessibility-BWojgys7.js";
|
|
16
16
|
import { _ as pl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -628,7 +628,7 @@ const ml = ["id"], bl = ["onClick"], xl = {
|
|
|
628
628
|
},
|
|
629
629
|
stops: [
|
|
630
630
|
{ offset: 0, color: e.color },
|
|
631
|
-
{ offset: 1, color: el(e.color, 0.5) }
|
|
631
|
+
{ offset: 1, color: a.value.style.chart.bar.gradient.show ? el(e.color, 0.5) : e.color }
|
|
632
632
|
]
|
|
633
633
|
}
|
|
634
634
|
}
|
|
@@ -1199,7 +1199,7 @@ const ml = ["id"], bl = ["onClick"], xl = {
|
|
|
1199
1199
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : Y("", !0)
|
|
1200
1200
|
], 46, ml));
|
|
1201
1201
|
}
|
|
1202
|
-
}, Nl = /* @__PURE__ */ pl(kl, [["__scopeId", "data-v-
|
|
1202
|
+
}, Nl = /* @__PURE__ */ pl(kl, [["__scopeId", "data-v-c369b504"]]);
|
|
1203
1203
|
export {
|
|
1204
1204
|
Nl as default
|
|
1205
1205
|
};
|
package/package.json
CHANGED