vue-data-ui 2.3.10 → 2.3.12
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-f4c5AEIv.cjs → Arrow-CAMiXnML.cjs} +1 -1
- package/dist/{Arrow-BO8QA2_F.js → Arrow-D9RknCbe.js} +1 -1
- package/dist/{BaseIcon-BGeIE3vn.cjs → BaseIcon-5MAyZTOz.cjs} +1 -1
- package/dist/{BaseIcon-NaAlKaAM.js → BaseIcon-DB1g9sdS.js} +1 -1
- package/dist/{DataTable-R7hmQ0wl.js → DataTable-Bza1ed62.js} +2 -2
- package/dist/{DataTable-CXkMZ3ja.cjs → DataTable-CGX9xKvm.cjs} +1 -1
- package/dist/{Legend-VoYDt_v5.cjs → Legend-BEMGbN0s.cjs} +1 -1
- package/dist/{Legend-BKBuWgj8.js → Legend-C4cCpb4z.js} +1 -1
- package/dist/{Shape-DH2ovwu7.cjs → Shape-BTzik3V0.cjs} +1 -1
- package/dist/{Shape-CCI8C_dI.js → Shape-Bttb-v8s.js} +1 -1
- package/dist/{Slicer-CPQW_sm_.cjs → Slicer-CuwuufTu.cjs} +1 -1
- package/dist/{Slicer-C1zx1qMy.js → Slicer-WyjxXfiD.js} +1 -1
- package/dist/{Title-DJ269q6H.js → Title-BSpLzDC1.js} +1 -1
- package/dist/{Title-gCBF7AU7.cjs → Title-XRMcJkna.cjs} +1 -1
- package/dist/{Tooltip-Qv4VexrA.cjs → Tooltip-COgv-iii.cjs} +1 -1
- package/dist/{Tooltip-CKKSlbSq.js → Tooltip-DI8_Wjjy.js} +1 -1
- package/dist/{index-Xau3hcRk.cjs → index-BDKEFvEF.cjs} +1 -1
- package/dist/{index-BK818aZo.js → index-ByO3Ywek.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -2
- package/dist/types/vue-data-ui.d.ts +3 -2
- package/dist/{useNestedProp-hi25rRoY.js → useNestedProp-Da77DnaA.js} +1 -1
- package/dist/{useNestedProp-C_EQ-Kxy.cjs → useNestedProp-Dikfncsl.cjs} +1 -1
- package/dist/{usePrinter-C-2KAW2f.js → usePrinter-Dda5FBG3.js} +1 -1
- package/dist/{usePrinter-Dhvmhwhf.cjs → usePrinter-DedM_6px.cjs} +1 -1
- package/dist/{vue-data-ui-ifINAh05.cjs → vue-data-ui-CV6BvTv3.cjs} +1 -1
- package/dist/{vue-data-ui-DPu_2hNJ.js → vue-data-ui-Cl7hqjOh.js} +55 -55
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DPqaPUTZ.cjs → vue-ui-3d-bar-DMek7e52.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BaR6gHYb.js → vue-ui-3d-bar-DoFgj58m.js} +7 -7
- package/dist/{vue-ui-accordion-BjU8im6m.cjs → vue-ui-accordion-BytUYLYl.cjs} +1 -1
- package/dist/{vue-ui-accordion-CH8K6f6J.js → vue-ui-accordion-CbKHVPHh.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CDotLSiv.js → vue-ui-age-pyramid-CZy4Y3uw.js} +8 -8
- package/dist/{vue-ui-age-pyramid-Dt9ILoAz.cjs → vue-ui-age-pyramid-DjlXDjMI.cjs} +1 -1
- package/dist/{vue-ui-annotator-C2bmdjLc.cjs → vue-ui-annotator-BJShyHMc.cjs} +1 -1
- package/dist/{vue-ui-annotator-CoH_aFJm.js → vue-ui-annotator-BqG8z2Ms.js} +1 -1
- package/dist/{vue-ui-candlestick-C5SjZVYs.cjs → vue-ui-candlestick-DJETMuli.cjs} +1 -1
- package/dist/{vue-ui-candlestick-G_90YTDo.js → vue-ui-candlestick-DkOQM3qu.js} +9 -9
- package/dist/{vue-ui-carousel-table-CptU7uki.cjs → vue-ui-carousel-table-BQipTTWP.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DzxLQOiB.js → vue-ui-carousel-table-C2vcNP0X.js} +4 -4
- package/dist/{vue-ui-chestnut-Cj5fJhR5.js → vue-ui-chestnut-D39qozSK.js} +6 -6
- package/dist/{vue-ui-chestnut-D8RaQMzo.cjs → vue-ui-chestnut-D3FtT3JK.cjs} +1 -1
- package/dist/{vue-ui-cursor-pZEn4NtN.cjs → vue-ui-cursor-CpJO5mEd.cjs} +1 -1
- package/dist/{vue-ui-cursor-G8ixOooh.js → vue-ui-cursor-LMFBAzPM.js} +2 -2
- package/dist/{vue-ui-dashboard-C46M9Oob.cjs → vue-ui-dashboard-BzOic-SZ.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CaMDg3iT.js → vue-ui-dashboard-C-LaI61T.js} +2 -2
- package/dist/{vue-ui-digits-CXTC7Ypr.js → vue-ui-digits-BMoM0DwG.js} +2 -2
- package/dist/{vue-ui-digits-BnzhiKJT.cjs → vue-ui-digits-D2XilsJW.cjs} +1 -1
- package/dist/{vue-ui-donut-De--4Msd.cjs → vue-ui-donut-BYacXuN1.cjs} +1 -1
- package/dist/{vue-ui-donut-Caan2HEG.js → vue-ui-donut-DvESP2fh.js} +9 -9
- package/dist/{vue-ui-donut-evolution-CUV7vE4C.js → vue-ui-donut-evolution-Dr1MkSB2.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DwPXJh13.cjs → vue-ui-donut-evolution-DwhuTpBB.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BzqRvxE9.cjs → vue-ui-dumbbell-CzYf1Etr.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-2D7NAlDu.js → vue-ui-dumbbell-kTZ4cbhw.js} +8 -8
- package/dist/{vue-ui-flow-CSlnKCEh.cjs → vue-ui-flow-BJbCaSJI.cjs} +1 -1
- package/dist/{vue-ui-flow-DsqenwU_.js → vue-ui-flow-BkSTX5_A.js} +7 -7
- package/dist/{vue-ui-galaxy-WwvhRAFa.cjs → vue-ui-galaxy-Bb-A8wCU.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CLXeRR9E.js → vue-ui-galaxy-DiKAWRBN.js} +9 -9
- package/dist/{vue-ui-gauge-zoUBHBL2.js → vue-ui-gauge-Dt6Cuuo0.js} +4 -4
- package/dist/{vue-ui-gauge-B_5_uMiG.cjs → vue-ui-gauge-DvYBrZs4.cjs} +1 -1
- package/dist/{vue-ui-heatmap-D-oq-QFJ.js → vue-ui-heatmap-B9B0h5N8.js} +8 -8
- package/dist/{vue-ui-heatmap-Gv6Y0025.cjs → vue-ui-heatmap-KHa42VW8.cjs} +1 -1
- package/dist/{vue-ui-kpi-Bgxu139K.cjs → vue-ui-kpi-BfqVRF0H.cjs} +1 -1
- package/dist/{vue-ui-kpi-CE3UnfLM.js → vue-ui-kpi-Bts4qzfH.js} +2 -2
- package/dist/{vue-ui-mini-loader-Fap6KDDb.js → vue-ui-mini-loader-CZtaTr-s.js} +2 -2
- package/dist/{vue-ui-mini-loader-KFiTgq0Z.cjs → vue-ui-mini-loader-DdlM_ms1.cjs} +1 -1
- package/dist/{vue-ui-molecule-CaKXLDG3.cjs → vue-ui-molecule-Cey5Cuqp.cjs} +1 -1
- package/dist/{vue-ui-molecule-QMshD0fQ.js → vue-ui-molecule-Y29DXzD8.js} +9 -9
- package/dist/{vue-ui-mood-radar-BFKJ6-wI.cjs → vue-ui-mood-radar-BGQYx51N.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-woI18vdU.js → vue-ui-mood-radar-CaXsxM2P.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BH8pGgVI.js → vue-ui-nested-donuts-8aIjfQHr.js} +9 -9
- package/dist/{vue-ui-nested-donuts-Nb5Jg_SG.cjs → vue-ui-nested-donuts-B0OSKK4x.cjs} +1 -1
- package/dist/{vue-ui-onion-bofmS_kO.js → vue-ui-onion-BuM5DcbA.js} +9 -9
- package/dist/{vue-ui-onion-BBYwZtjh.cjs → vue-ui-onion-D8Ug2z_r.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DVW0LYp7.js → vue-ui-parallel-coordinate-plot-BnylgPQ1.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-C-ZbQgN7.cjs → vue-ui-parallel-coordinate-plot-RAjWALxs.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DFMVk5eC.cjs → vue-ui-quadrant-Bd9XzzOJ.cjs} +1 -1
- package/dist/{vue-ui-quadrant-fhx9NkrR.js → vue-ui-quadrant-DpUSb39t.js} +10 -10
- package/dist/{vue-ui-quick-chart-S6LEQLn7.cjs → vue-ui-quick-chart-7dYq_RGE.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-5rggkq9-.js → vue-ui-quick-chart-CMkvhuhW.js} +6 -6
- package/dist/{vue-ui-radar-B8RvpBi-.js → vue-ui-radar-BlHTPxa4.js} +10 -10
- package/dist/{vue-ui-radar-CsR9V_Sl.cjs → vue-ui-radar-DVFyhzLg.cjs} +1 -1
- package/dist/{vue-ui-rating-CgzLPjlb.cjs → vue-ui-rating-DRncGN96.cjs} +1 -1
- package/dist/{vue-ui-rating-ClQkygLG.js → vue-ui-rating-cVAVmnzB.js} +2 -2
- package/dist/{vue-ui-relation-circle-B2hJDB7v.js → vue-ui-relation-circle-B8iBDo0q.js} +5 -5
- package/dist/{vue-ui-relation-circle-D0zllKLp.cjs → vue-ui-relation-circle-C8QjpkXl.cjs} +1 -1
- package/dist/{vue-ui-rings-D3nNsoiU.js → vue-ui-rings-CQq3JQNk.js} +9 -9
- package/dist/{vue-ui-rings-CLIeS7BN.cjs → vue-ui-rings-m4MWlNsq.cjs} +1 -1
- package/dist/{vue-ui-scatter-DitnL-sZ.js → vue-ui-scatter-C-Egs7S_.js} +10 -10
- package/dist/{vue-ui-scatter-bPAA5OYI.cjs → vue-ui-scatter-mNEnBtaf.cjs} +1 -1
- package/dist/{vue-ui-screenshot-C-uHRqZ7.cjs → vue-ui-screenshot-Bl9jX-C2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DayBW_7b.js → vue-ui-screenshot-DfHSBG7u.js} +1 -1
- package/dist/{vue-ui-skeleton-DJtTdfNg.js → vue-ui-skeleton-BxRSQeuo.js} +2 -2
- package/dist/{vue-ui-skeleton-CgYrDrh-.cjs → vue-ui-skeleton-rY_nZhMQ.cjs} +1 -1
- package/dist/{vue-ui-smiley-CvpPFDBL.cjs → vue-ui-smiley-BWTx88Vc.cjs} +1 -1
- package/dist/{vue-ui-smiley-CZTyxQvT.js → vue-ui-smiley-J5ng6jFT.js} +2 -2
- package/dist/{vue-ui-spark-trend-DZm9J_ZI.cjs → vue-ui-spark-trend-CKllSCO9.cjs} +1 -1
- package/dist/{vue-ui-spark-trend--aNEsQNW.js → vue-ui-spark-trend-CSgSKyhQ.js} +4 -4
- package/dist/{vue-ui-sparkbar-uvq7AcMr.js → vue-ui-sparkbar-BDSuCvBs.js} +54 -47
- package/dist/{vue-ui-sparkbar-C43IyepC.cjs → vue-ui-sparkbar-wLasc_jU.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BP11yMVn.cjs → vue-ui-sparkgauge-DLf9qwso.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-V1zC6qrt.js → vue-ui-sparkgauge-DsKCi2rC.js} +3 -3
- package/dist/vue-ui-sparkhistogram-BY9WjI96.js +261 -0
- package/dist/vue-ui-sparkhistogram-D3xFCR7z.cjs +1 -0
- package/dist/{vue-ui-sparkline-C3C9heBc.cjs → vue-ui-sparkline-BhB4gTda.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DOAhQCt5.js → vue-ui-sparkline-D8gMceMV.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-ObA64D3E.js → vue-ui-sparkstackbar-8ap_HMW0.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Bk7nIBnD.cjs → vue-ui-sparkstackbar-dINlqLlM.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-6eenEjje.js → vue-ui-strip-plot-Duu9jsML.js} +9 -9
- package/dist/{vue-ui-strip-plot-CffrlZCk.cjs → vue-ui-strip-plot-wUXpoWOD.cjs} +1 -1
- package/dist/{vue-ui-table-BbMFv-oU.js → vue-ui-table-Bbjo6d7J.js} +1 -1
- package/dist/{vue-ui-table-CzAWebM5.cjs → vue-ui-table-DPBuQHl9.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CR4Z6gFJ.cjs → vue-ui-table-heatmap-BWUGw4tD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B9YVKhvr.js → vue-ui-table-heatmap-CokrixjX.js} +4 -4
- package/dist/{vue-ui-table-sparkline-D7b-hkZg.js → vue-ui-table-sparkline-B4f74K6D.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BZdfmaoe.cjs → vue-ui-table-sparkline-DwStFsdv.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CfGfCzz9.js → vue-ui-thermometer-Bvw08auw.js} +5 -5
- package/dist/{vue-ui-thermometer-DJw8iKSK.cjs → vue-ui-thermometer-D4lvsaZQ.cjs} +1 -1
- package/dist/{vue-ui-timer-DjSR1opQ.cjs → vue-ui-timer-BSU22BD2.cjs} +1 -1
- package/dist/{vue-ui-timer-PdZYURw6.js → vue-ui-timer-C6zSHO_W.js} +4 -4
- package/dist/{vue-ui-tiremarks-9o6eS1Mc.js → vue-ui-tiremarks-BY4m2mEn.js} +5 -5
- package/dist/{vue-ui-tiremarks-DmQpv3n0.cjs → vue-ui-tiremarks-CH0_xCoD.cjs} +1 -1
- package/dist/{vue-ui-treemap-BQlEP4Wi.cjs → vue-ui-treemap-DIxqUkmn.cjs} +1 -1
- package/dist/{vue-ui-treemap-hdJRrv6w.js → vue-ui-treemap-DWBXR_CR.js} +9 -9
- package/dist/{vue-ui-vertical-bar-BRhV9I7i.js → vue-ui-vertical-bar-BxvhqgWg.js} +9 -9
- package/dist/{vue-ui-vertical-bar-CXn4FfOg.cjs → vue-ui-vertical-bar-DnPmmj4p.cjs} +1 -1
- package/dist/{vue-ui-waffle-CXyoderQ.js → vue-ui-waffle-BlFjCDDx.js} +9 -9
- package/dist/{vue-ui-waffle-CjAIw38i.cjs → vue-ui-waffle-CYpc5Enk.cjs} +1 -1
- package/dist/{vue-ui-wheel-BU_90Fhv.js → vue-ui-wheel-CHvx9zQF.js} +5 -5
- package/dist/{vue-ui-wheel-DLj-V4jn.cjs → vue-ui-wheel-WxC0_YV_.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DQ72J4Ro.js → vue-ui-word-cloud-BnLAMza-.js} +6 -6
- package/dist/{vue-ui-word-cloud-CtBamLvE.cjs → vue-ui-word-cloud-LMl5vudk.cjs} +1 -1
- package/dist/{vue-ui-xy-Bz15K-CC.cjs → vue-ui-xy-DHzwqXVf.cjs} +1 -1
- package/dist/{vue-ui-xy-DYEsmppC.js → vue-ui-xy-DStN5sP4.js} +12 -12
- package/dist/{vue-ui-xy-canvas-BRWp_v0p.js → vue-ui-xy-canvas-D3zCvIfh.js} +10 -10
- package/dist/{vue-ui-xy-canvas-DLN-ipCw.cjs → vue-ui-xy-canvas-DTjWEsfN.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-sparkhistogram-BIUsoRQJ.js +0 -244
- package/dist/vue-ui-sparkhistogram-Dipd391E.cjs +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./pdf-Cz3729tZ.cjs"),O=require("./usePrinter-Dhvmhwhf.cjs"),d=require("./index-Xau3hcRk.cjs"),E=require("./DataTable-CXkMZ3ja.cjs"),z=require("./Title-gCBF7AU7.cjs"),G=require("./Tooltip-Qv4VexrA.cjs"),V=require("./Shape-DH2ovwu7.cjs"),T=require("./BaseIcon-BGeIE3vn.cjs"),P=require("./vue-ui-table-sparkline-BZdfmaoe.cjs"),M=require("./vue-ui-skeleton-CgYrDrh-.cjs"),R=require("./Slicer-CPQW_sm_.cjs"),D=require("./vue-ui-accordion-BjU8im6m.cjs"),B=require("./useNestedProp-C_EQ-Kxy.cjs"),e=require("vue"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=d.createUid(),W={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:E.DataTable,Shape:V._sfc_main,Title:z._sfc_main,Tooltip:G._sfc_main,UserOptions:O.UserOptions,BaseIcon:T.default,TableSparkline:P.default,Skeleton:M.default,Slicer:R.Slicer,Accordion:D.default},data(){this.dataset.forEach((n,g)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:g})});const a=Math.max(...this.dataset.map(n=>n.series.length)),o={start:0,end:a};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:d.createUid(),step:0,slicer:o,__to__:null,maxX:a,showSparklineTable:!0,segregateStep:0,sliderId:q,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3}}},computed:{customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const a=this.lineSet.map(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})),o=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})),n=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})),g=[...a,...o,...n].flatMap(l=>l).length;return[...a,...o,...n].flatMap((l,t)=>({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/g*(t+1),yLabels:l.scaleYLabels||l.scale.ticks.map(m=>({y:m>=0?l.zero-l.individualHeight*(m/l.max):l.zero+l.individualHeight*Math.abs(m)/l.max,value:m}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const a=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(a,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){const a=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return a;const o=this.useNestedProp({userConfig:this.config,defaultConfig:a});return o.theme?{...B.useNestedProp({userConfig:this.themes.vue_ui_xy[o.theme]||this.config,defaultConfig:o}),customPalette:this.themePalettes[o.theme]||this.palette}:o},set:function(a){return a}},hasHighlightArea(){return this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreaSpan(){const{from:a,to:o}=this.FINAL_CONFIG.chart.highlightArea;return a===o?1:o<a?0:o-a+1},relativeZero(){return this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((a,o)=>({...a,series:a.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(a.color?a.color:this.customPalette[o]?this.customPalette[o]:this.palette[o]),id:`uniqueId_${o}`})):this.dataset},relativeDataset(){return this.safeDataset.map((a,o)=>({...a,series:a.series.map(n=>n+this.relativeZero),absoluteValues:a.series})).filter(a=>!this.segregatedSeries.includes(a.id))},tableSparklineDataset(){return this.relativeDataset.map(a=>{const o=a.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:a.id,name:a.name,color:a.color,values:this.fillArray(this.maxSeries,o)}})},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,colNames:JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),thead:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},tbody:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},userOptions:{show:!1}}},absoluteDataset(){return this.safeDataset.map((a,o)=>({absoluteIndex:o,...a,series:a.series.map(n=>n+this.relativeZero),absoluteValues:a.series,segregate:()=>this.segregate(a),isSegregated:this.segregatedSeries.includes(a.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="bar").map((a,o)=>{this.checkAutoScaleError(a);const n=Math.min(...a.absoluteValues.filter(c=>![null,void 0].includes(c))),g=Math.max(...a.absoluteValues.filter(c=>![null,void 0].includes(c))),t={ratios:a.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(g-n)),valueMin:n,valueMax:g<0?0:g},m={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||Math.min(...a.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...a.absoluteValues.filter(c=>![null,void 0].includes(c)))},I=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,u=this.calculateNiceScale(m.min,m.max,I),f=this.calculateNiceScale(t.valueMin,t.valueMax,I),S=u.min>=0?0:Math.abs(u.min),_=0,y=u.max+S,C=f.max+Math.abs(_),N=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,F=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,r=this.drawingArea.bottom-N-F*S/y,s=this.drawingArea.bottom-N-F*_/C,i=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,h=a.series.map((c,k)=>{const w=this.mutableConfig.useIndividualScale?(a.absoluteValues[k]+S)/y:this.ratioToMax(c),v=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*k:this.drawingArea.left+this.slot.bar*o+this.slot.bar*k*i-this.barSlot/2-o*this.barPeriodGap;return{yOffset:N,individualHeight:F,x:v,y:this.drawingArea.bottom-N-F*w,value:a.absoluteValues[k],zeroPosition:r,individualMax:y,comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),L=a.absoluteValues.map(c=>f.min>=0?(c-Math.abs(f.min))/(f.max-Math.abs(f.min)):(c+Math.abs(f.min))/(f.max+Math.abs(f.min))),A=a.series.map((c,k)=>{const w=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*k:this.drawingArea.left-this.slot.bar/2+this.slot.bar*o+this.slot.bar*k*this.absoluteDataset.filter(v=>v.type==="bar").filter(v=>!this.segregatedSeries.includes(v.id)).length;return{yOffset:N,individualHeight:F,x:w,y:this.drawingArea.bottom-N-(F*L[k]||0),value:a.absoluteValues[k],zeroPosition:r,individualMax:y,comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),b=u.ticks.map(c=>({y:c>=0?r-F*(c/y):r+F*Math.abs(c)/y,value:c})),x=f.ticks.map(c=>{const k=(c-f.min)/(f.max-f.min);return{y:c>=0?s-F*k:s+F*k,value:c}});return{...a,yOffset:N,autoScaleYLabels:x,individualHeight:F,scaleYLabels:a.autoScaling?x:b,individualScale:a.autoScaling?f:u,individualMax:a.autoScaling?C:y,zeroPosition:a.autoScaling?s:r,plots:a.autoScaling?A:h}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(a=>!this.segregatedSeries.includes(a.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="line").map(a=>{this.checkAutoScaleError(a);const o=Math.min(...a.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...a.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,l={ratios:a.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-o)/(n-o)),valueMin:o,valueMax:n},t={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||(Math.min(...a.absoluteValues)>0?0:Math.min(...a.absoluteValues))},m=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=this.calculateNiceScale(t.min,t.max,m),u=this.calculateNiceScale(l.valueMin,l.valueMax,m),f=I.min>=0?0:Math.abs(I.min),S=0,_=I.max+Math.abs(f),y=u.max+Math.abs(S),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,F=this.drawingArea.bottom-C-N*f/_,r=this.drawingArea.bottom-C-N*S/y,s=a.series.map((c,k)=>{const w=this.mutableConfig.useIndividualScale?(a.absoluteValues[k]+Math.abs(f))/_:this.ratioToMax(c);return{x:this.drawingArea.left+this.slot.line/2+this.slot.line*k,y:this.drawingArea.bottom-C-N*w,value:a.absoluteValues[k],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),i=a.absoluteValues.map(c=>u.min>=0?(c-Math.abs(u.min))/(u.max-Math.abs(u.min)):(c+Math.abs(u.min))/(u.max+Math.abs(u.min))),h=a.series.map((c,k)=>{if(![void 0,null].includes(a.absoluteValues[k]))return{x:this.drawingArea.left+this.slot.line/2+this.slot.line*k,y:this.drawingArea.bottom-C-(N*i[k]||0),value:a.absoluteValues[k],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),L=this.createSmoothPath(s),A=this.createSmoothPath(h),b=I.ticks.map(c=>({y:c>=0?F-N*(c/_):F+N*Math.abs(c)/_,value:c})),x=u.ticks.map(c=>{const k=(c-u.min)/(u.max-u.min);return{y:c>=0?r-N*k:r+N*k,value:c}});return{...a,yOffset:C,autoScaleYLabels:x,individualHeight:N,scaleYLabels:a.autoScaling?x:b,individualScale:a.autoScaling?u:I,individualMax:a.autoScaling?y:_,zeroPosition:a.autoScaling?r:F,curve:a.autoScaling?A:L,plots:a.autoScaling?h:s,area:a.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(a.autoScaling?h:s,a.autoScaling?r:F):this.createArea(s):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="plot").map(a=>{this.checkAutoScaleError(a);const o=Math.min(...a.absoluteValues.filter(b=>![null,void 0].includes(b))),n=Math.max(...a.absoluteValues.filter(b=>![null,void 0].includes(b)))||1,l={ratios:a.absoluteValues.filter(b=>![null,void 0].includes(b)).map(b=>(b-o)/(n-o)),valueMin:o,valueMax:n},t={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||Math.min(...a.absoluteValues)>0?0:Math.min(...a.absoluteValues)},m=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=this.calculateNiceScale(t.min,t.max,m),u=this.calculateNiceScale(l.valueMin,l.valueMax,m),f=I.min>=0?0:Math.abs(I.min),S=0,_=I.max+f,y=u.max+Math.abs(S),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,F=this.drawingArea.bottom-C-N*f/_,r=this.drawingArea.bottom-C-N*S/y,s=a.series.map((b,x)=>{const c=this.mutableConfig.useIndividualScale?(a.absoluteValues[x]+Math.abs(f))/_:this.ratioToMax(b);return{x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*x,y:this.drawingArea.bottom-C-N*c,value:a.absoluteValues[x],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[x]||""}}),i=a.absoluteValues.map(b=>u.min>=0?(b-Math.abs(u.min))/(u.max-Math.abs(u.min)):(b+Math.abs(u.min))/(u.max+Math.abs(u.min))),h=a.series.map((b,x)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*x,y:this.drawingArea.bottom-C-(N*i[x]||0),value:a.absoluteValues[x],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[x]||""})),L=I.ticks.map(b=>({y:b>=0?F-N*(b/_):F+N*Math.abs(b)/_,value:b})),A=u.ticks.map(b=>{const x=(b-u.min)/(u.max-u.min);return{y:b>=0?r-N*x:r+N*x,value:b}});return{...a,yOffset:C,autoScaleYLabels:A,individualHeight:N,scaleYLabels:a.autoScaling?A:L,individualScale:a.autoScaling?u:I,individualMax:a.autoScaling?y:_,zeroPosition:a.autoScaling?r:F,plots:a.autoScaling?h:s}})},drawingArea(){const a=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(o=>!this.segregatedSeries.includes(o.id)).length*(this.mutableConfig.isStacked?0:this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth):0;return{top:this.FINAL_CONFIG.chart.padding.top,right:this.width-this.FINAL_CONFIG.chart.padding.right,bottom:this.height-this.FINAL_CONFIG.chart.padding.bottom,left:this.FINAL_CONFIG.chart.padding.left+a,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+a)}},max(){return Math.max(...this.safeDataset.filter(a=>!this.segregatedSeries.includes(a.id)).map(a=>Math.max(...a.series)))},min(){const a=Math.min(...this.safeDataset.filter(o=>!this.segregatedSeries.includes(o.id)).map(o=>Math.min(...o.series)));return a>0?0:a},niceScale(){return this.calculateNiceScale(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(a=>a.type==="bar").filter(a=>!this.segregatedSeries.includes(a.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const a=this.safeDataset.filter(o=>o.type==="bar").filter(o=>!this.segregatedSeries.includes(o.id)).length;return this.drawingArea.width/this.maxSeries/a-this.barPeriodGap*a},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(a=>a!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const a=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),o=[];return this.timeLabels.forEach((n,g)=>{const l=[n];this.relativeDataset.forEach(t=>{l.push(this.canShowValue(t.absoluteValues[g])?Number(t.absoluteValues[g].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),o.push(l)}),{head:a,body:o}},dataTable(){const a=[""].concat(this.relativeDataset.map(l=>l.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 l=0;l<this.maxSeries;l+=1){const t=this.relativeDataset.map(m=>m.absoluteValues[l]??0).reduce((m,I)=>m+I,0);o.push([this.timeLabels[l]??"-"].concat(this.relativeDataset.map(m=>(m.absoluteValues[l]??0).toFixed(this.FINAL_CONFIG.table.rounding))).concat((t??0).toFixed(this.FINAL_CONFIG.table.rounding)))}const n={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},g=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(l=>l.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:a,body:o,config:n,colNames:g}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(a=>({shape:a.shape||null,name:a.name,color:a.color,type:a.type,value:a.absoluteValues.find((o,n)=>n===this.selectedSerieIndex),comments:a.comments||[]}))},tooltipContent(){let a="",o=this.selectedSeries.map(l=>l.value).filter(l=>this.isSafeValue(l)&&l!==null).reduce((l,t)=>Math.abs(l)+Math.abs(t),0);const n=this.timeLabels[this.selectedSerieIndex],g=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(g)&&this.functionReturnsString(()=>g({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?g({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(a+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(l=>{if(this.isSafeValue(l.value)){let t="",m="";switch(this.icons[l.type]){case"bar":t=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${l.color}" /></svg>`;break;case"line":!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)?m=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" />`:l.shape==="triangle"?m=`<path d="${d.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="1" />`:l.shape==="square"?m=`<path d="${d.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="1" />`:l.shape==="diamond"?m=`<path d="${d.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="1" />`:l.shape==="pentagon"?m=`<path d="${d.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="1" />`:l.shape==="hexagon"?m=`<path d="${d.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="1" />`:l.shape==="star"&&(m=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:10,y:8},radius:4})}" />`),t=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${l.color}" />${m}</svg>`;break;case"plot":if(!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)){t=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" /></svg>`;break}if(l.shape==="star"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(l.shape==="triangle"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="square"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="diamond"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="pentagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="hexagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}a+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${t}</div> ${l.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.dataLabel({p:this.FINAL_CONFIG.chart.labels.prefix,v:l.value,s:this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(l.value)/o*100).toFixed(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]&&(a+=`<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}">${a}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(a=>({y:a>=0?this.zero-this.drawingArea.height*this.ratioToMax(a):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(a)),value:a}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((a,o)=>{[null,void 0].includes(a.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:o})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(a=>{a.series.forEach((o,n)=>{this.isSafeValue(o)||console.warn(`SmartXY has detected an unsafe value in your dataset:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./pdf-Cz3729tZ.cjs"),O=require("./usePrinter-DedM_6px.cjs"),d=require("./index-BDKEFvEF.cjs"),E=require("./DataTable-CGX9xKvm.cjs"),z=require("./Title-XRMcJkna.cjs"),G=require("./Tooltip-COgv-iii.cjs"),V=require("./Shape-BTzik3V0.cjs"),T=require("./BaseIcon-5MAyZTOz.cjs"),P=require("./vue-ui-table-sparkline-DwStFsdv.cjs"),M=require("./vue-ui-skeleton-rY_nZhMQ.cjs"),R=require("./Slicer-CuwuufTu.cjs"),D=require("./vue-ui-accordion-BytUYLYl.cjs"),B=require("./useNestedProp-Dikfncsl.cjs"),e=require("vue"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=d.createUid(),W={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:E.DataTable,Shape:V._sfc_main,Title:z._sfc_main,Tooltip:G._sfc_main,UserOptions:O.UserOptions,BaseIcon:T.default,TableSparkline:P.default,Skeleton:M.default,Slicer:R.Slicer,Accordion:D.default},data(){this.dataset.forEach((n,g)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:g})});const a=Math.max(...this.dataset.map(n=>n.series.length)),o={start:0,end:a};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:d.createUid(),step:0,slicer:o,__to__:null,maxX:a,showSparklineTable:!0,segregateStep:0,sliderId:q,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3}}},computed:{customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const a=this.lineSet.map(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})),o=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})),n=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})),g=[...a,...o,...n].flatMap(l=>l).length;return[...a,...o,...n].flatMap((l,t)=>({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/g*(t+1),yLabels:l.scaleYLabels||l.scale.ticks.map(m=>({y:m>=0?l.zero-l.individualHeight*(m/l.max):l.zero+l.individualHeight*Math.abs(m)/l.max,value:m}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const a=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(a,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){const a=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return a;const o=this.useNestedProp({userConfig:this.config,defaultConfig:a});return o.theme?{...B.useNestedProp({userConfig:this.themes.vue_ui_xy[o.theme]||this.config,defaultConfig:o}),customPalette:this.themePalettes[o.theme]||this.palette}:o},set:function(a){return a}},hasHighlightArea(){return this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreaSpan(){const{from:a,to:o}=this.FINAL_CONFIG.chart.highlightArea;return a===o?1:o<a?0:o-a+1},relativeZero(){return this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((a,o)=>({...a,series:a.series.map(n=>this.isSafeValue(n)?n:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(a.color?a.color:this.customPalette[o]?this.customPalette[o]:this.palette[o]),id:`uniqueId_${o}`})):this.dataset},relativeDataset(){return this.safeDataset.map((a,o)=>({...a,series:a.series.map(n=>n+this.relativeZero),absoluteValues:a.series})).filter(a=>!this.segregatedSeries.includes(a.id))},tableSparklineDataset(){return this.relativeDataset.map(a=>{const o=a.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:a.id,name:a.name,color:a.color,values:this.fillArray(this.maxSeries,o)}})},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,colNames:JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),thead:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},tbody:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},userOptions:{show:!1}}},absoluteDataset(){return this.safeDataset.map((a,o)=>({absoluteIndex:o,...a,series:a.series.map(n=>n+this.relativeZero),absoluteValues:a.series,segregate:()=>this.segregate(a),isSegregated:this.segregatedSeries.includes(a.id)}))},barSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="bar").map((a,o)=>{this.checkAutoScaleError(a);const n=Math.min(...a.absoluteValues.filter(c=>![null,void 0].includes(c))),g=Math.max(...a.absoluteValues.filter(c=>![null,void 0].includes(c))),t={ratios:a.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(g-n)),valueMin:n,valueMax:g<0?0:g},m={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||Math.min(...a.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...a.absoluteValues.filter(c=>![null,void 0].includes(c)))},I=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,u=this.calculateNiceScale(m.min,m.max,I),f=this.calculateNiceScale(t.valueMin,t.valueMax,I),S=u.min>=0?0:Math.abs(u.min),_=0,y=u.max+S,C=f.max+Math.abs(_),N=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,F=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,r=this.drawingArea.bottom-N-F*S/y,s=this.drawingArea.bottom-N-F*_/C,i=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,h=a.series.map((c,k)=>{const w=this.mutableConfig.useIndividualScale?(a.absoluteValues[k]+S)/y:this.ratioToMax(c),v=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*k:this.drawingArea.left+this.slot.bar*o+this.slot.bar*k*i-this.barSlot/2-o*this.barPeriodGap;return{yOffset:N,individualHeight:F,x:v,y:this.drawingArea.bottom-N-F*w,value:a.absoluteValues[k],zeroPosition:r,individualMax:y,comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),L=a.absoluteValues.map(c=>f.min>=0?(c-Math.abs(f.min))/(f.max-Math.abs(f.min)):(c+Math.abs(f.min))/(f.max+Math.abs(f.min))),A=a.series.map((c,k)=>{const w=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*k:this.drawingArea.left-this.slot.bar/2+this.slot.bar*o+this.slot.bar*k*this.absoluteDataset.filter(v=>v.type==="bar").filter(v=>!this.segregatedSeries.includes(v.id)).length;return{yOffset:N,individualHeight:F,x:w,y:this.drawingArea.bottom-N-(F*L[k]||0),value:a.absoluteValues[k],zeroPosition:r,individualMax:y,comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),b=u.ticks.map(c=>({y:c>=0?r-F*(c/y):r+F*Math.abs(c)/y,value:c})),x=f.ticks.map(c=>{const k=(c-f.min)/(f.max-f.min);return{y:c>=0?s-F*k:s+F*k,value:c}});return{...a,yOffset:N,autoScaleYLabels:x,individualHeight:F,scaleYLabels:a.autoScaling?x:b,individualScale:a.autoScaling?f:u,individualMax:a.autoScaling?C:y,zeroPosition:a.autoScaling?s:r,plots:a.autoScaling?A:h}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(a=>!this.segregatedSeries.includes(a.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="line").map(a=>{this.checkAutoScaleError(a);const o=Math.min(...a.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...a.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,l={ratios:a.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-o)/(n-o)),valueMin:o,valueMax:n},t={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||(Math.min(...a.absoluteValues)>0?0:Math.min(...a.absoluteValues))},m=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=this.calculateNiceScale(t.min,t.max,m),u=this.calculateNiceScale(l.valueMin,l.valueMax,m),f=I.min>=0?0:Math.abs(I.min),S=0,_=I.max+Math.abs(f),y=u.max+Math.abs(S),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,F=this.drawingArea.bottom-C-N*f/_,r=this.drawingArea.bottom-C-N*S/y,s=a.series.map((c,k)=>{const w=this.mutableConfig.useIndividualScale?(a.absoluteValues[k]+Math.abs(f))/_:this.ratioToMax(c);return{x:this.drawingArea.left+this.slot.line/2+this.slot.line*k,y:this.drawingArea.bottom-C-N*w,value:a.absoluteValues[k],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),i=a.absoluteValues.map(c=>u.min>=0?(c-Math.abs(u.min))/(u.max-Math.abs(u.min)):(c+Math.abs(u.min))/(u.max+Math.abs(u.min))),h=a.series.map((c,k)=>{if(![void 0,null].includes(a.absoluteValues[k]))return{x:this.drawingArea.left+this.slot.line/2+this.slot.line*k,y:this.drawingArea.bottom-C-(N*i[k]||0),value:a.absoluteValues[k],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[k]||""}}),L=this.createSmoothPath(s),A=this.createSmoothPath(h),b=I.ticks.map(c=>({y:c>=0?F-N*(c/_):F+N*Math.abs(c)/_,value:c})),x=u.ticks.map(c=>{const k=(c-u.min)/(u.max-u.min);return{y:c>=0?r-N*k:r+N*k,value:c}});return{...a,yOffset:C,autoScaleYLabels:x,individualHeight:N,scaleYLabels:a.autoScaling?x:b,individualScale:a.autoScaling?u:I,individualMax:a.autoScaling?y:_,zeroPosition:a.autoScaling?r:F,curve:a.autoScaling?A:L,plots:a.autoScaling?h:s,area:a.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(a.autoScaling?h:s,a.autoScaling?r:F):this.createArea(s):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(a=>a.type==="plot").map(a=>{this.checkAutoScaleError(a);const o=Math.min(...a.absoluteValues.filter(b=>![null,void 0].includes(b))),n=Math.max(...a.absoluteValues.filter(b=>![null,void 0].includes(b)))||1,l={ratios:a.absoluteValues.filter(b=>![null,void 0].includes(b)).map(b=>(b-o)/(n-o)),valueMin:o,valueMax:n},t={max:a.scaleMax||Math.max(...a.absoluteValues)||1,min:a.scaleMin||Math.min(...a.absoluteValues)>0?0:Math.min(...a.absoluteValues)},m=a.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,I=this.calculateNiceScale(t.min,t.max,m),u=this.calculateNiceScale(l.valueMin,l.valueMax,m),f=I.min>=0?0:Math.abs(I.min),S=0,_=I.max+f,y=u.max+Math.abs(S),C=this.mutableConfig.isStacked?this.drawingArea.height*(1-a.cumulatedStackRatio):0,N=this.mutableConfig.isStacked?this.drawingArea.height*a.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,F=this.drawingArea.bottom-C-N*f/_,r=this.drawingArea.bottom-C-N*S/y,s=a.series.map((b,x)=>{const c=this.mutableConfig.useIndividualScale?(a.absoluteValues[x]+Math.abs(f))/_:this.ratioToMax(b);return{x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*x,y:this.drawingArea.bottom-C-N*c,value:a.absoluteValues[x],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[x]||""}}),i=a.absoluteValues.map(b=>u.min>=0?(b-Math.abs(u.min))/(u.max-Math.abs(u.min)):(b+Math.abs(u.min))/(u.max+Math.abs(u.min))),h=a.series.map((b,x)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*x,y:this.drawingArea.bottom-C-(N*i[x]||0),value:a.absoluteValues[x],comment:a.comments&&a.comments.slice(this.slicer.start,this.slicer.end)[x]||""})),L=I.ticks.map(b=>({y:b>=0?F-N*(b/_):F+N*Math.abs(b)/_,value:b})),A=u.ticks.map(b=>{const x=(b-u.min)/(u.max-u.min);return{y:b>=0?r-N*x:r+N*x,value:b}});return{...a,yOffset:C,autoScaleYLabels:A,individualHeight:N,scaleYLabels:a.autoScaling?A:L,individualScale:a.autoScaling?u:I,individualMax:a.autoScaling?y:_,zeroPosition:a.autoScaling?r:F,plots:a.autoScaling?h:s}})},drawingArea(){const a=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(o=>!this.segregatedSeries.includes(o.id)).length*(this.mutableConfig.isStacked?0:this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth):0;return{top:this.FINAL_CONFIG.chart.padding.top,right:this.width-this.FINAL_CONFIG.chart.padding.right,bottom:this.height-this.FINAL_CONFIG.chart.padding.bottom,left:this.FINAL_CONFIG.chart.padding.left+a,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+a)}},max(){return Math.max(...this.safeDataset.filter(a=>!this.segregatedSeries.includes(a.id)).map(a=>Math.max(...a.series)))},min(){const a=Math.min(...this.safeDataset.filter(o=>!this.segregatedSeries.includes(o.id)).map(o=>Math.min(...o.series)));return a>0?0:a},niceScale(){return this.calculateNiceScale(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(a=>a.type==="bar").filter(a=>!this.segregatedSeries.includes(a.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const a=this.safeDataset.filter(o=>o.type==="bar").filter(o=>!this.segregatedSeries.includes(o.id)).length;return this.drawingArea.width/this.maxSeries/a-this.barPeriodGap*a},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(a=>a!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const a=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),o=[];return this.timeLabels.forEach((n,g)=>{const l=[n];this.relativeDataset.forEach(t=>{l.push(this.canShowValue(t.absoluteValues[g])?Number(t.absoluteValues[g].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),o.push(l)}),{head:a,body:o}},dataTable(){const a=[""].concat(this.relativeDataset.map(l=>l.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 l=0;l<this.maxSeries;l+=1){const t=this.relativeDataset.map(m=>m.absoluteValues[l]??0).reduce((m,I)=>m+I,0);o.push([this.timeLabels[l]??"-"].concat(this.relativeDataset.map(m=>(m.absoluteValues[l]??0).toFixed(this.FINAL_CONFIG.table.rounding))).concat((t??0).toFixed(this.FINAL_CONFIG.table.rounding)))}const n={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},g=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(l=>l.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:a,body:o,config:n,colNames:g}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(a=>({shape:a.shape||null,name:a.name,color:a.color,type:a.type,value:a.absoluteValues.find((o,n)=>n===this.selectedSerieIndex),comments:a.comments||[]}))},tooltipContent(){let a="",o=this.selectedSeries.map(l=>l.value).filter(l=>this.isSafeValue(l)&&l!==null).reduce((l,t)=>Math.abs(l)+Math.abs(t),0);const n=this.timeLabels[this.selectedSerieIndex],g=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(g)&&this.functionReturnsString(()=>g({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?g({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(a+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(l=>{if(this.isSafeValue(l.value)){let t="",m="";switch(this.icons[l.type]){case"bar":t=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${l.color}" /></svg>`;break;case"line":!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)?m=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" />`:l.shape==="triangle"?m=`<path d="${d.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="1" />`:l.shape==="square"?m=`<path d="${d.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="1" />`:l.shape==="diamond"?m=`<path d="${d.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="1" />`:l.shape==="pentagon"?m=`<path d="${d.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="1" />`:l.shape==="hexagon"?m=`<path d="${d.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="1" />`:l.shape==="star"&&(m=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:10,y:8},radius:4})}" />`),t=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${l.color}" />${m}</svg>`;break;case"plot":if(!l.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(l.shape)){t=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" /></svg>`;break}if(l.shape==="star"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${l.color}" points="${d.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(l.shape==="triangle"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="square"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="diamond"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="pentagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(l.shape==="hexagon"){t=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${l.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}a+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${t}</div> ${l.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.dataLabel({p:this.FINAL_CONFIG.chart.labels.prefix,v:l.value,s:this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(l.value)/o*100).toFixed(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]&&(a+=`<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}">${a}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(a=>({y:a>=0?this.zero-this.drawingArea.height*this.ratioToMax(a):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(a)),value:a}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((a,o)=>{[null,void 0].includes(a.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:o})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(a=>{a.series.forEach((o,n)=>{this.isSafeValue(o)||console.warn(`SmartXY has detected an unsafe value in your dataset:
|
|
2
2
|
-----> The serie '${a.name}' contains the value '${o}' at index ${n}.
|
|
3
3
|
'${o}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",a=>{this.clientPosition={x:a.clientX,y:a.clientY}}),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 o=this.$refs.chart.parentNode,{height:n,width:g}=o.getBoundingClientRect();let l=null,t=0;this.FINAL_CONFIG.chart.title.show&&(l=this.$refs.chartTitle,t=l.getBoundingClientRect().height);let m=null,I=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(m=this.$refs.chartSlicer.$el,I=m.getBoundingClientRect().height);let u=null,f=0;this.FINAL_CONFIG.chart.legend.show&&(u=this.$refs.chartLegend,f=u.getBoundingClientRect().height),this.height=n-t-f-I,this.width=g,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(_=>{for(const y of _)l&&(t=l.getBoundingClientRect().height),m&&(I=m.getBoundingClientRect().height),u&&(f=u.getBoundingClientRect().height),this.height=y.contentBoxSize[0].blockSize-t-f-I-24,this.width=y.contentBoxSize[0].inlineSize,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes()}).observe(o)}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},methods:{abbreviate:d.abbreviate,assignStackRatios:d.assignStackRatios,calculateNiceScale:d.calculateNiceScale,checkNaN:d.checkNaN,createSmoothPath:d.createSmoothPath,isSafeValue:d.isSafeValue,treeShake:d.treeShake,shiftHue:d.shiftHue,pdf:p.pdf,img:O.saveAsImage,convertColorToHex:d.convertColorToHex,convertConfigColors:d.convertConfigColors,convertCustomPalette:d.convertCustomPalette,downloadCsv:d.downloadCsv,createCsvContent:d.createCsvContent,adaptColorToBackground:d.adaptColorToBackground,calcLinearProgression:d.calcLinearProgression,useMouse:G.useMouse,closestDecimal:d.closestDecimal,dataLabel:d.dataLabel,isFunction:d.isFunction,functionReturnsString:d.functionReturnsString,error:d.error,objectIsEmpty:d.objectIsEmpty,createTSpans:d.createTSpans,useNestedProp:B.useNestedProp,translateSize:d.translateSize,convertSizes(){this.fontSizes.dataLabels=this.translateSize({relator:this.height,adjuster:400,source:this.FINAL_CONFIG.chart.grid.labels.fontSize,threshold:10,fallback:10}),this.fontSizes.yAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,threshold:10,fallback:10}),this.fontSizes.xAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,threshold:10,fallback:10}),this.fontSizes.plotLabels=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.chart.labels.fontSize,threshold:10,fallback:10}),this.plotRadii.plot=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.plot.radius,threshold:1,fallback:1}),this.plotRadii.line=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.line.radius,threshold:1,fallback:1})},toggleStack(){this.mutableConfig.isStacked=!this.mutableConfig.isStacked,this.mutableConfig.isStacked?this.mutableConfig.useIndividualScale=!0:this.mutableConfig.useIndividualScale=this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},toggleTable(){this.mutableConfig.showTable=!this.mutableConfig.showTable},toggleLabels(){this.mutableConfig.dataLabels.show=!this.mutableConfig.dataLabels.show},toggleTooltip(){this.mutableConfig.showTooltip=!this.mutableConfig.showTooltip},checkAutoScaleError(a){a.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(a){if(!a[0])return[-10,-10,"",-10,-10];const o={x:a[0].x,y:this.zero},n={x:a.at(-1).x,y:this.zero},g=[];return a.forEach(l=>{g.push(`${l.x},${l.y} `)}),[o.x,o.y,...g,n.x,n.y].toString()},createIndividualArea(a,o){if(!a[0])return[-10,-10,"",-10,-10];const n={x:a[0]?a[0].x:Math.min(...a.filter(t=>!!t).map(t=>t.x)),y:o},g={x:a.at(-1)?a.at(-1).x:Math.min(...a.filter(t=>!!t).map(t=>t.x)),y:o},l=[];return a.filter(t=>!!t).forEach(t=>{l.push(`${t.x},${t.y} `)}),[n.x,n.y,...l,g.x,g.y].toString()},createStar:d.createStar,createPolygonPath:d.createPolygonPath,fillArray(a,o){let n=Array(a).fill(0);for(let g=0;g<o.length&&g<a;g+=1)n[g]=o[g];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(a=>a.series.length))},this.slicerStep+=1},calcRectHeight(a){return a.value>=0?this.zero-a.y<=0?1e-5:this.zero-a.y:a.y-this.zero<=0?1e-5:a.y-this.zero},calcIndividualHeight(a){return a.value>=0?a.zeroPosition-a.y<=0?1e-5:a.zeroPosition-a.y:a.y-a.zeroPosition<=0?1e-5:a.zeroPosition-a.y},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(a){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?a.x+this.drawingArea.width/this.maxSeries*.05:a.x+this.slot.bar/2},calcRectY(a){return a.value>=0?a.y:this.zero},calcIndividualRectY(a){return a.value>=0?a.y:a.zeroPosition},canShowValue(a){return![null,void 0,NaN].includes(a)},findClosestValue(a,o){let n=o[0],g=Math.abs(a-o[0]);for(let l=1;l<o.length;l+=1){const t=Math.abs(a-o[l]);t<g&&o[l]<a&&(n=o[l],g=t)}return n},ratioToMax(a){return a/this.absoluteMax},selectX(a){this.$emit("selectX",{dataset:this.relativeDataset.map(o=>({name:o.name,value:[null,void 0,NaN].includes(o.absoluteValues[a])?null:o.absoluteValues[a],color:o.color,type:o.type})),index:a,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a]})},getData(){return this.absoluteDataset.map(a=>({values:a.absoluteValues,color:a.color,name:a.name,type:a.type}))},segregate(a){if(this.segregatedSeries.includes(a.id))this.segregatedSeries=this.segregatedSeries.filter(o=>o!==a.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(a.id)}this.$emit("selectLegend",this.relativeDataset.map(o=>({name:o.name,values:o.absoluteValues,color:o.color,type:o.type}))),this.segregateStep+=1},toggleTooltipVisibility(a,o=null){this.isTooltip=a,a?this.selectedSerieIndex=o:this.selectedSerieIndex=null},toggleFullscreen(a){this.isFullscreen=a,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.pdf({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"}).finally(()=>{this.isPrinting=!1})},100)},generateCsv(){const a=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],o=["",...this.table.head.map(t=>t.label)],n=this.table.body,g=a.concat([o]).concat(n),l=this.createCsvContent(g);this.downloadCsv({csvContent:l,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.__to__=setTimeout(()=>{this.img({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"}).finally(()=>{this.isImaging=!1})},100)}}},Y=["id"],X=["viewBox"],U={key:0},Z={class:"vue-ui-xy-grid"},J=["stroke","x1","x2","y1","y2"],K=["stroke","x1","x2","y1","y2"],Q={key:1},j=["x1","x2","y1","y2","stroke"],$=["x1","x2","y1","y2","stroke"],ee=["x1","x2","y1","y2","stroke"],te={key:3},le=["x1","x2","y1","y2","stroke"],re=["id"],ae=["stop-color"],ie=["stop-color"],oe=["stop-color"],se=["id"],ne=["stop-color"],ce=["stop-color"],he=["stop-color"],de=["id"],ue=["stop-color"],ge=["stop-color"],me=["id"],Ne=["stop-color"],fe=["stop-color"],ke=["id"],be=["stop-color"],Ie=["stop-color"],Fe=["x","y","height","width","rx","fill","stroke","stroke-width"],_e=["width","x","y"],ye={key:0},xe=["id"],Ce=["fill"],Se=["x1","x2","y1","y2","stroke","marker-end"],Ae=["x","y","font-size","fill"],Le=["stroke","x1","x2","y1","y2"],we=["width","x","y"],ve={style:{width:"100%"}},Oe={key:0},Ge=["id"],Be=["fill"],pe=["x1","x2","y1","y2","stroke","marker-end"],Ee=["x","y","font-size","fill"],ze=["d","stroke","stroke-width","stroke-dasharray"],Ve={key:1},Te=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Pe={key:0},Me=["d","fill"],Re=["d","fill"],De=["d","stroke","stroke-width","stroke-dasharray"],He={key:2},qe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],We=["width","x","y"],Ye={style:{width:"100%"}},Xe={key:3},Ue=["id"],Ze=["fill"],Je=["x1","x2","y1","y2","stroke","marker-end"],Ke=["x","y","font-size","fill"],Qe={key:2},je=["x","y","font-size","fill"],$e=["x","y","font-size","fill","font-weight"],et={key:3},tt=["x","y","font-size","fill"],lt=["x","y"],rt=["x","y"],at={key:4},it=["x","y","font-size","fill"],ot=["x","y"],st=["x","y"],nt={key:5},ct=["x","y","height","width","fill"],ht=["x","y","width"],dt=["y","width","height","fill"],ut=["x","y","width","height","fill"],gt=["x","y","font-size","fill","innerHTML"],mt=["x","y","font-size","fill","innerHTML"],Nt=["x","y","font-size","fill","innerHTML"],ft=["x","y","font-size","fill","innerHTML"],kt={key:6},bt=["x1","x2","y1","y2","stroke","stroke-width"],It=["fill","font-size","transform"],Ft=["x1","x2","y1","y2","stroke"],_t=["x","y","font-size","fill"],yt=["x1","x2","y1","y2","stroke"],xt=["x","y","font-size","fill"],Ct=["x","y","width","height","fill","onMouseenter"],St=["font-size","fill","transform"],At=["x","y","font-size","fill"],Lt={key:8},wt=["text-anchor","font-size","fill","transform"],vt=["x","y","height","width","fill","onMouseenter","onClick"],Ot={key:9},Gt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Bt={key:10},pt=["x","y"],Et=["cx","cy","r","fill"],zt=["onClick"],Vt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Tt=["fill"],Pt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Mt=["fill"],Rt={key:6,ref:"chartLegend"},Dt={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Ht=["innerHTML"];function qt(a,o,n,g,l,t){const m=e.resolveComponent("Title"),I=e.resolveComponent("UserOptions"),u=e.resolveComponent("Shape"),f=e.resolveComponent("Skeleton"),S=e.resolveComponent("Slicer"),_=e.resolveComponent("Tooltip"),y=e.resolveComponent("BaseIcon"),C=e.resolveComponent("TableSparkline"),N=e.resolveComponent("DataTable"),F=e.resolveComponent("Accordion");return e.openBlock(),e.createElementBlock("div",{id:`vue-ui-xy_${l.uniqueId}`,class:e.normalizeClass(`vue-ui-xy ${l.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${t.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:e.normalizeStyle(`background:${t.FINAL_CONFIG.chart.backgroundColor}; color:${t.FINAL_CONFIG.chart.color};width:100%;${t.FINAL_CONFIG.chart.title.text?"":"padding-top:36px"};font-family:${t.FINAL_CONFIG.chart.fontFamily};${t.FINAL_CONFIG.responsive?"height: 100%":""}`)},[t.FINAL_CONFIG.chart.title.show?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"chartTitle",class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[e.createVNode(m,{config:{title:{cy:"xy-div-title",...t.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...t.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.userOptions.show&&t.isDataset?(e.openBlock(),e.createBlock(I,{ref:"defails",key:`user_options_${l.step}`,backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color,isPrinting:l.isPrinting,isImaging:l.isImaging,uid:l.uniqueId,hasTooltip:t.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&t.FINAL_CONFIG.chart.tooltip.show,hasPdf:t.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:t.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:t.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:t.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:t.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&t.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:t.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:l.mutableConfig.isStacked,isFullscreen:l.isFullscreen,chartElement:a.$refs.chart,isTooltip:l.mutableConfig.showTooltip,titles:{...t.FINAL_CONFIG.chart.userOptions.buttonTitles},onToggleFullscreen:t.toggleFullscreen,onGeneratePdf:t.generatePdf,onGenerateCsv:t.generateCsv,onGenerateImage:t.generateImage,onToggleTable:t.toggleTable,onToggleLabels:t.toggleLabels,onToggleStack:t.toggleStack,onToggleTooltip:t.toggleTooltip},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionStack?{name:"optionStack",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:r,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:r,isFullscreen:s})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","isTooltip","titles","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip"])):e.createCommentVNode("",!0),t.isDataset?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",class:e.normalizeClass([{"vue-data-ui-fullscreen--on":l.isFullscreen,"vue-data-ui-fulscreen--off":!l.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:l.viewBox,style:e.normalizeStyle(`background:${t.FINAL_CONFIG.chart.backgroundColor}; color:${t.FINAL_CONFIG.chart.color}; font-family:${t.FINAL_CONFIG.chart.fontFamily}`)},[t.maxSeries>0?(e.openBlock(),e.createElementBlock("g",U,[e.createElementVNode("g",Z,[t.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left,x2:t.drawingArea.right,y1:t.drawingArea.bottom,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,J)):e.createCommentVNode("",!0),l.mutableConfig.useIndividualScale?t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.allScales,r=>(e.openBlock(),e.createElementBlock("g",null,[r.id===l.selectedScale&&r.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.yLabels,s=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left,x2:t.drawingArea.right,y1:s.y,y2:s.y,stroke:r.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,$))),256)):r.yLabels.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.yLabels,s=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left,x2:t.drawingArea.right,y1:s.y,y2:s.y,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,ee))),256)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(e.openBlock(),e.createElementBlock("line",{key:0,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left,x2:t.drawingArea.left,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-linecap":"round"},null,8,K)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.showHorizontalLines?(e.openBlock(),e.createElementBlock("g",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.yLabels,r=>(e.openBlock(),e.createElementBlock("line",{x1:t.drawingArea.left,x2:t.drawingArea.right,y1:r.y,y2:r.y,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,j))),256))])):e.createCommentVNode("",!0)],64)),t.FINAL_CONFIG.chart.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries+1,(r,s)=>(e.openBlock(),e.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:t.drawingArea.width/t.maxSeries*s+t.drawingArea.left,x2:t.drawingArea.width/t.maxSeries*s+t.drawingArea.left,y1:t.drawingArea.top,y2:t.drawingArea.bottom,"stroke-width":"0.5",stroke:t.FINAL_CONFIG.chart.grid.stroke},null,8,le))),128))])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(r,s)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_rect_${s}`},[e.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${l.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":r.color},null,8,ae),e.createElementVNode("stop",{offset:"62%","stop-color":`${t.shiftHue(r.color,.02)}DE`},null,8,ie),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.shiftHue(r.color,.05)}66`},null,8,oe)],8,re),e.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${l.uniqueId}`,x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(r.color,.05)}66`},null,8,ne),e.createElementVNode("stop",{offset:"38%","stop-color":`${t.shiftHue(r.color,.02)}DE`},null,8,ce),e.createElementVNode("stop",{offset:"100%","stop-color":r.color},null,8,he)],8,se)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(r,s)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_plot_${s}`},[e.createElementVNode("radialGradient",{id:`plotGradient_${s}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(r.color,.05)}`},null,8,ue),e.createElementVNode("stop",{offset:"100%","stop-color":r.color},null,8,ge)],8,de)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(r,s)=>(e.openBlock(),e.createElementBlock("defs",{key:`def_line_${s}`},[e.createElementVNode("radialGradient",{id:`lineGradient_${s}_${l.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(r.color,.05)}`},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":r.color},null,8,fe)],8,me),e.createElementVNode("linearGradient",{id:`areaGradient_${s}_${l.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.shiftHue(r.color,.03)}${l.opacity[t.FINAL_CONFIG.line.area.opacity]}`},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":`${r.color}${l.opacity[t.FINAL_CONFIG.line.area.opacity]}`},null,8,Ie)],8,ke)]))),128)),t.barSet.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.barSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_bar_${s}`,class:e.normalizeClass(`serie_bar_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`bar_plot_${s}_${h}`},[t.canShowValue(i.value)?(e.openBlock(),e.createElementBlock("rect",{key:0,x:t.calcRectX(i),y:l.mutableConfig.useIndividualScale?t.calcIndividualRectY(i):t.calcRectY(i),height:l.mutableConfig.useIndividualScale?Math.abs(t.calcIndividualHeight(i)):Math.abs(t.calcRectHeight(i)),width:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap),rx:t.FINAL_CONFIG.bar.borderRadius,fill:t.FINAL_CONFIG.bar.useGradient?i.value>=0?`url(#rectGradient_pos_${s}_${l.uniqueId})`:`url(#rectGradient_neg_${s}_${l.uniqueId})`:r.color,stroke:t.FINAL_CONFIG.bar.border.useSerieColor?r.color:t.FINAL_CONFIG.bar.border.stroke,"stroke-width":t.FINAL_CONFIG.bar.border.strokeWidth},null,8,Fe)):e.createCommentVNode("",!0),i.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:(t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)<0?1e-5:t.calcRectWidth()-(l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?0:t.barPeriodGap)/2)+t.FINAL_CONFIG.chart.comments.width,x:t.calcRectX(i)-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:i.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.renderSlot(a.$slots,"plot-comment",{plot:{...i,color:r.color}},void 0,!0)],8,_e)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(r,"useProgression")&&r.useProgression===!0&&!isNaN(t.calcLinearProgression(r.plots).trend)?(e.openBlock(),e.createElementBlock("g",ye,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`bar_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:r.color},null,8,Ce)],8,xe)]),r.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(r.plots).x1,x2:t.calcLinearProgression(r.plots).x2,y1:t.calcLinearProgression(r.plots).y1,y2:t.calcLinearProgression(r.plots).y2,"stroke-width":1,stroke:r.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${s})`},null,8,Se)):e.createCommentVNode("",!0),r.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(r.plots).x2,y:t.calcLinearProgression(r.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:r.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(r.plots).trend*100,s:"%",r:2})),9,Ae)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)):e.createCommentVNode("",!0),!l.mutableConfig.useIndividualScale&&t.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(e.openBlock(),e.createElementBlock("line",{key:1,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:t.drawingArea.left,x2:t.drawingArea.right,y1:t.zero,y2:t.zero,"stroke-linecap":"round"},null,8,Le)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_plot_${s}`,class:e.normalizeClass(`serie_plot_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_plot_${s}_${h}`},[t.canShowValue(i.value)?(e.openBlock(),e.createBlock(u,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(r.shape)?r.shape:"circle",color:t.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${s}_${l.uniqueId})`:r.color,plot:{x:i.x,y:i.y},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===h?(l.plotRadii.plot||6)*1.5:l.plotRadii.plot||6,stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["shape","color","plot","radius","stroke"])):e.createCommentVNode("",!0),i.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:i.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:i.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",ve,[e.renderSlot(a.$slots,"plot-comment",{plot:{...i,color:r.color}},void 0,!0)])],8,we)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(r,"useProgression")&&r.useProgression===!0&&!isNaN(t.calcLinearProgression(r.plots).trend)?(e.openBlock(),e.createElementBlock("g",Oe,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`plot_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:r.color},null,8,Be)],8,Ge)]),r.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(r.plots).x1,x2:t.calcLinearProgression(r.plots).x2,y1:t.calcLinearProgression(r.plots).y1,y2:t.calcLinearProgression(r.plots).y2,"stroke-width":1,stroke:r.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${s})`},null,8,pe)):e.createCommentVNode("",!0),r.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(r.plots).x2,y:t.calcLinearProgression(r.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:r.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(r.plots).trend*100,s:"%",r:2})),9,Ee)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${s}`,class:e.normalizeClass(`serie_line_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[r.smooth&&r.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M${r.curve}`,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":r.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,ze)):r.plots.length>1?(e.openBlock(),e.createElementBlock("g",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${s}_${h}`},[i&&h<r.plots.length-1&&r.plots[h+1]&&t.canShowValue(i.value)&&t.canShowValue(r.plots[h+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:i.x,x2:r.plots[h+1].x,y1:i.y,y2:r.plots[h+1].y,stroke:t.FINAL_CONFIG.chart.backgroundColor,"stroke-width":t.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":r.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Te)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`serie_line_${s}`,class:e.normalizeClass(`serie_line_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[r.useArea&&r.plots.length>1?(e.openBlock(),e.createElementBlock("g",Pe,[r.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${r.plots[0]?r.plots[0].x:Math.min(...r.plots.filter(i=>!!i).map(i=>i.x))},${l.mutableConfig.isStacked?t.drawingArea.bottom-r.yOffset:t.drawingArea.bottom} ${r.curve} L ${r.plots.at(-1)?r.plots.at(-1).x:t.drawingArea.left+t.slot.line*s+t.slot.line/2},${l.mutableConfig.isStacked?t.drawingArea.bottom-r.yOffset:t.drawingArea.bottom} Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${s}_${l.uniqueId})`:`${r.color}${l.opacity[t.FINAL_CONFIG.line.area.opacity]}`},null,8,Me)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${r.area}Z`,fill:t.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${s}_${l.uniqueId})`:`${r.color}${l.opacity[t.FINAL_CONFIG.line.area.opacity]}`},null,8,Re))])):e.createCommentVNode("",!0),r.smooth&&r.plots.length>1?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${r.curve}`,stroke:r.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":r.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,De)):r.plots.length>1?(e.openBlock(),e.createElementBlock("g",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`line_${s}_${h}`},[i&&h<r.plots.length-1&&r.plots[h+1]&&t.canShowValue(i.value)&&t.canShowValue(r.plots[h+1].value)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:i.x,x2:r.plots[h+1].x,y1:i.y,y2:r.plots[h+1].y,stroke:r.color,"stroke-width":t.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":r.dashed?t.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,qe)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`circle_line_${s}_${h}`},[i&&t.canShowValue(i.value)?(e.openBlock(),e.createBlock(u,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(r.shape)?r.shape:"circle",color:t.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${s}_${l.uniqueId})`:r.color,plot:{x:i.x,y:i.y},radius:l.selectedSerieIndex!==null&&l.selectedSerieIndex===h?(l.plotRadii.line||6)*1.5:l.plotRadii.line,stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["shape","color","plot","radius","stroke"])):e.createCommentVNode("",!0),i.comment&&t.FINAL_CONFIG.chart.comments.show?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:t.FINAL_CONFIG.chart.comments.width,x:i.x-t.FINAL_CONFIG.chart.comments.width/2+t.FINAL_CONFIG.chart.comments.offsetX,y:i.y+t.FINAL_CONFIG.chart.comments.offsetY+6},[e.createElementVNode("div",Ye,[e.renderSlot(a.$slots,"plot-comment",{plot:{...i,color:r.color}},void 0,!0)])],8,We)):e.createCommentVNode("",!0)]))),128)),Object.hasOwn(r,"useProgression")&&r.useProgression===!0&&!isNaN(t.calcLinearProgression(r.plots).trend)?(e.openBlock(),e.createElementBlock("g",Xe,[e.createElementVNode("defs",null,[e.createElementVNode("marker",{id:`line_arrow_${s}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[e.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:r.color},null,8,Ze)],8,Ue)]),r.plots.length>1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.calcLinearProgression(r.plots).x1,x2:t.calcLinearProgression(r.plots).x2,y1:t.calcLinearProgression(r.plots).y1,y2:t.calcLinearProgression(r.plots).y2,"stroke-width":1,stroke:r.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${s})`},null,8,Je)):e.createCommentVNode("",!0),r.plots.length>1?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:t.calcLinearProgression(r.plots).x2,y:t.calcLinearProgression(r.plots).y2-6,"font-size":l.fontSizes.plotLabels,fill:r.color},e.toDisplayString(t.dataLabel({v:t.calcLinearProgression(r.plots).trend*100,s:"%",r:2})),9,Ke)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],6))),128)),(t.FINAL_CONFIG.bar.labels.show||t.FINAL_CONFIG.bar.serieName.show)&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.barSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${s}`,class:e.normalizeClass(`xLabel_bar_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_bar_${s}_${h}`},[i&&(!Object.hasOwn(r,"dataLabels")||r.dataLabels===!0)&&t.FINAL_CONFIG.bar.labels.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?i.x+t.slot.line/2:t.calcRectX(i)+t.calcRectWidth()/2-t.barPeriodGap/2,y:i.y+(i.value>0?t.FINAL_CONFIG.bar.labels.offsetY:-t.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.labels.color},e.toDisplayString(t.canShowValue(i.value)?t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.bar.labels.rounding}):""),9,je)):e.createCommentVNode("",!0),i&&t.FINAL_CONFIG.bar.serieName.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.mutableConfig.useIndividualScale&&l.mutableConfig.isStacked?i.x+t.slot.line/2:i.x+t.calcRectWidth()*1.1,y:i.y+(i.value>0?t.FINAL_CONFIG.bar.serieName.offsetY:-t.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.bar.serieName.useSerieColor?r.color:t.FINAL_CONFIG.bar.serieName.color,"font-weight":t.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},e.toDisplayString(t.FINAL_CONFIG.bar.serieName.useAbbreviation?t.abbreviate({source:r.name,length:t.FINAL_CONFIG.bar.serieName.abbreviationSize}):r.name),9,$e)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.plot.labels.show&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${s}`,class:e.normalizeClass(`xLabel_plot_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${s}_${h}`},[i&&!Object.hasOwn(r,"dataLabels")||r.dataLabels===!0?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.x,y:i.y+t.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.plot.labels.color},e.toDisplayString(t.canShowValue(i.value)?t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.plot.labels.rounding}):""),9,tt)):e.createCommentVNode("",!0),i&&h===0&&r.useTag&&r.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${r.color}${l.opacity[80]};color:${t.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(r.name),5)],8,lt)):e.createCommentVNode("",!0),i&&h===r.plots.length-1&&r.useTag&&r.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:i.x-r.name.length*(l.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${r.color}${l.opacity[80]};color:${t.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(r.name),5)],8,rt)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.FINAL_CONFIG.line.labels.show&&l.mutableConfig.dataLabels.show?(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${s}`,class:e.normalizeClass(`xLabel_line_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${s}_${h}`},[i&&!Object.hasOwn(r,"dataLabels")||r.dataLabels===!0?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.x,y:i.y+(i.value>0?t.FINAL_CONFIG.line.labels.offsetY:-t.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":l.fontSizes.plotLabels,fill:t.FINAL_CONFIG.line.labels.color},e.toDisplayString(t.canShowValue(i.value)?t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:t.FINAL_CONFIG.line.labels.rounding}):""),9,it)):e.createCommentVNode("",!0),i&&h===0&&r.useTag&&r.useTag==="start"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${r.color}${l.opacity[80]};color:${t.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(r.name),5)],8,ot)):e.createCommentVNode("",!0),i&&h===r.plots.length-1&&r.useTag&&r.useTag==="end"?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:i.x-r.name.length*(l.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[e.createElementVNode("div",{style:e.normalizeStyle(`padding: 3px; background:${r.color}${l.opacity[80]};color:${t.adaptColorToBackground(r.color)};width:fit-content;font-size:${l.fontSizes.plotLabels}px;border-radius: 2px;`)},e.toDisplayString(r.name),5)],8,st)):e.createCommentVNode("",!0)]))),128))],6))),128))])):e.createCommentVNode("",!0),t.hasHighlightArea?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("rect",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(t.FINAL_CONFIG.chart.highlightArea.from-l.slicer.start),y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries*t.highlightAreaSpan<0?1e-5:t.drawingArea.width/t.maxSeries*t.highlightAreaSpan,fill:`${t.FINAL_CONFIG.chart.highlightArea.color}${l.opacity[t.FINAL_CONFIG.chart.highlightArea.opacity]}`},null,8,ct),t.FINAL_CONFIG.chart.highlightArea.caption.text?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*(t.FINAL_CONFIG.chart.highlightArea.from-l.slicer.start)-(t.FINAL_CONFIG.chart.highlightArea.caption.width==="auto"?0:t.FINAL_CONFIG.chart.highlightArea.caption.width/2-t.drawingArea.width/t.maxSeries*t.highlightAreaSpan/2),y:t.drawingArea.top+t.FINAL_CONFIG.chart.highlightArea.caption.offsetY,style:{overflow:"visible"},height:"1",width:t.FINAL_CONFIG.chart.highlightArea.caption.width==="auto"?t.drawingArea.width/t.maxSeries*t.highlightAreaSpan:t.FINAL_CONFIG.chart.highlightArea.caption.width},[e.createElementVNode("div",{style:e.normalizeStyle(`padding:${t.FINAL_CONFIG.chart.highlightArea.caption.padding}px;text-align:${t.FINAL_CONFIG.chart.highlightArea.caption.textAlign};font-size:${t.FINAL_CONFIG.chart.highlightArea.caption.fontSize}px;color:${t.FINAL_CONFIG.chart.highlightArea.caption.color};font-weight:${t.FINAL_CONFIG.chart.highlightArea.caption.bold?"bold":"normal"}`)},e.toDisplayString(t.FINAL_CONFIG.chart.highlightArea.caption.text),5)],8,ht)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[e.createElementVNode("rect",{x:0,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.padding.left-1,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:t.FINAL_CONFIG.chart.backgroundColor},null,8,dt),e.createElementVNode("rect",{x:t.drawingArea.right+1,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.padding.right,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:t.FINAL_CONFIG.chart.backgroundColor},null,8,ut)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lineSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${s}`,class:e.normalizeClass(`xLabel_line_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_line_${s}_${h}`},[i&&h===0&&r.showSerieName&&r.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.x-l.fontSizes.plotLabels,y:i.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:r.color,innerHTML:t.createTSpans({content:r.name,fontSize:l.fontSizes.plotLabels,fill:r.color,x:i.x-l.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,gt)):e.createCommentVNode("",!0),i&&h===r.plots.length-1&&r.showSerieName&&r.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:i.x+l.fontSizes.plotLabels,y:i.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:r.color,innerHTML:t.createTSpans({content:r.name,fontSize:l.fontSizes.plotLabels,fill:r.color,x:i.x+l.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,mt)):e.createCommentVNode("",!0)]))),128))],6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.plotSet,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${s}`,class:e.normalizeClass(`xLabel_plot_${s}`),style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.plots,(i,h)=>(e.openBlock(),e.createElementBlock("g",{key:`xLabel_plot_${s}_${h}`},[i&&h===0&&r.showSerieName&&r.showSerieName==="start"?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.x-l.fontSizes.plotLabels,y:i.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"end",fill:r.color,innerHTML:t.createTSpans({content:r.name,fontSize:l.fontSizes.plotLabels,fill:r.color,x:i.x-l.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,Nt)):e.createCommentVNode("",!0),i&&h===r.plots.length-1&&r.showSerieName&&r.showSerieName==="end"?(e.openBlock(),e.createElementBlock("text",{key:1,x:i.x+l.fontSizes.plotLabels,y:i.y,"font-size":l.fontSizes.plotLabels,"text-anchor":"start",fill:r.color,innerHTML:t.createTSpans({content:r.name,fontSize:l.fontSizes.plotLabels,fill:r.color,x:i.x+l.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,ft)):e.createCommentVNode("",!0)]))),128))],6))),128)),t.FINAL_CONFIG.chart.grid.labels.show?(e.openBlock(),e.createElementBlock("g",kt,[l.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,r=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:r.x,x2:r.x,y1:l.mutableConfig.isStacked?t.drawingArea.bottom-r.yOffset-r.individualHeight:t.drawingArea.top,y2:l.mutableConfig.isStacked?t.drawingArea.bottom-r.yOffset:t.drawingArea.bottom,stroke:r.color,"stroke-width":t.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,bt)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.allScales,r=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${l.selectedScale?l.selectedScale===r.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[e.createElementVNode("text",{fill:r.color,"font-size":l.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${r.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${l.mutableConfig.isStacked?t.drawingArea.bottom-r.yOffset-r.individualHeight/2:t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`},e.toDisplayString(r.name)+" "+e.toDisplayString(r.scaleLabel?`- ${r.scaleLabel}`:""),9,It),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.yLabels,(s,i)=>(e.openBlock(),e.createElementBlock("line",{x1:r.x-3,x2:r.x,y1:s.y,y2:s.y,stroke:r.color,"stroke-width":1,"stroke-linecap":"round"},null,8,Ft))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.yLabels,(s,i)=>(e.openBlock(),e.createElementBlock("text",{x:r.x-5,y:s.y,"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:r.color},e.toDisplayString(t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:s.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:1})),9,_t))),256))],4))),256))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.yLabels,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`yLabel_${s}`},[t.canShowValue(r)&&r.value>=t.niceScale.min&&r.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:t.drawingArea.left,x2:t.drawingArea.left-5,y1:r.y,y2:r.y,stroke:t.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,yt)):e.createCommentVNode("",!0),r.value>=t.niceScale.min&&r.value<=t.niceScale.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:t.drawingArea.left-7,y:r.y+l.fontSizes.dataLabels/3,"font-size":l.fontSizes.dataLabels,"text-anchor":"end",fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.canShowValue(r.value)?t.dataLabel({p:t.FINAL_CONFIG.chart.labels.prefix,v:r.value,s:t.FINAL_CONFIG.chart.labels.suffix,r:1}):""),9,xt)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),l.mutableConfig.useIndividualScale&&!l.mutableConfig.isStacked?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:7},e.renderList(t.allScales,r=>(e.openBlock(),e.createElementBlock("rect",{x:r.x-t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,y:t.drawingArea.top,width:t.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:t.drawingArea.height<0?10:t.drawingArea.height,fill:l.selectedScale===r.id?`${r.color}20`:"transparent",onMouseenter:s=>l.selectedScale=r.id,onMouseleave:o[0]||(o[0]=s=>l.selectedScale=null)},null,40,Ct))),256)):e.createCommentVNode("",!0),e.createElementVNode("g",null,[t.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!l.mutableConfig.useIndividualScale?(e.openBlock(),e.createElementBlock("text",{key:0,"font-size":l.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${l.fontSizes.yAxis+t.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${t.drawingArea.top+t.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,St)):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:l.width/2,y:t.drawingArea.bottom+l.fontSizes.yAxis+l.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":l.fontSizes.yAxis,fill:t.FINAL_CONFIG.chart.grid.labels.color},e.toDisplayString(t.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,At)):e.createCommentVNode("",!0)]),t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.timeLabels,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`time_label_${s}`},[r&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||r&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(s===0||s===t.timeLabels.length-1)&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||r&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&l.selectedSerieIndex===s&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||r&&!t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&s%Math.floor((this.slicer.end-this.slicer.start)/t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":l.fontSizes.xAxis,fill:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${t.drawingArea.left+t.drawingArea.width/t.maxSeries*s+t.drawingArea.width/t.maxSeries/2}, ${t.drawingArea.bottom+l.fontSizes.xAxis*1.3+t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`},e.toDisplayString(r||""),9,wt)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.maxSeries,(r,s)=>(e.openBlock(),e.createElementBlock("g",{key:`tooltip_trap_${s}`},[e.createElementVNode("rect",{"data-cy-trap":"",x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*s,y:t.drawingArea.top,height:t.drawingArea.height<0?10:t.drawingArea.height,width:t.drawingArea.width/t.maxSeries<0?1e-5:t.drawingArea.width/t.maxSeries,fill:l.selectedSerieIndex===s||l.selectedRowIndex===s?`${t.FINAL_CONFIG.chart.highlighter.color}${l.opacity[t.FINAL_CONFIG.chart.highlighter.opacity]}`:"transparent",onMouseenter:i=>t.toggleTooltipVisibility(!0,s),onMouseleave:o[1]||(o[1]=i=>t.toggleTooltipVisibility(!1)),onClick:i=>t.selectX(s)},null,40,vt)]))),128))]),t.FINAL_CONFIG.chart.highlighter.useLine&&![null,void 0].includes(l.selectedSerieIndex)?(e.openBlock(),e.createElementBlock("g",Ot,[e.createElementVNode("line",{x1:t.drawingArea.left+t.drawingArea.width/t.maxSeries*l.selectedSerieIndex+t.drawingArea.width/t.maxSeries/2,x2:t.drawingArea.left+t.drawingArea.width/t.maxSeries*l.selectedSerieIndex+t.drawingArea.width/t.maxSeries/2,y1:t.drawingArea.top,y2:t.drawingArea.bottom,stroke:t.FINAL_CONFIG.chart.highlighter.color,"stroke-width":t.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":t.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Gt)])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.timeTag.show&&![null,void 0].includes(l.selectedSerieIndex)?(e.openBlock(),e.createElementBlock("g",Bt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:t.drawingArea.left+t.drawingArea.width/t.maxSeries*l.selectedSerieIndex-100+t.drawingArea.width/t.maxSeries/2,y:t.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[e.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:e.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${t.FINAL_CONFIG.chart.timeTag.color};font-size:${t.FINAL_CONFIG.chart.timeTag.fontSize}px`)},e.toDisplayString(t.timeLabels[l.selectedSerieIndex]||l.selectedSerieIndex),5)],8,pt)),e.createElementVNode("circle",{cx:t.drawingArea.left+t.drawingArea.width/t.maxSeries*l.selectedSerieIndex+t.drawingArea.width/t.maxSeries/2,cy:t.drawingArea.bottom,r:t.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:t.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,Et)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:t.svg},void 0,!0)],14,X)):e.createCommentVNode("",!0),t.isDataset?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:3,config:{type:"line",style:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:t.FINAL_CONFIG.chart.grid.stroke},path:{color:t.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),t.FINAL_CONFIG.chart.zoom.show&&l.maxX>6&&t.isDataset?(e.openBlock(),e.createBlock(S,{ref:"chartSlicer",key:`slicer_${l.slicerStep}`,background:t.FINAL_CONFIG.chart.zoom.color,fontSize:t.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:t.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.start],labelRight:t.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l.slicer.end-1],textColor:t.FINAL_CONFIG.chart.color,inputColor:t.FINAL_CONFIG.chart.zoom.color,selectColor:t.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:t.FINAL_CONFIG.chart.backgroundColor,max:l.maxX,min:0,valueStart:l.slicer.start,valueEnd:l.slicer.end,start:l.slicer.start,"onUpdate:start":o[2]||(o[2]=r=>l.slicer.start=r),end:l.slicer.end,"onUpdate:end":o[3]||(o[3]=r=>l.slicer.end=r),onReset:t.refreshSlicer},{"reset-action":e.withCtx(({reset:r})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:r})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","max","valueStart","valueEnd","start","end","onReset"])):e.createCommentVNode("",!0),t.FINAL_CONFIG.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:5,ref:"chartLegend",class:"vue-ui-xy-legend",style:e.normalizeStyle(`font-size:${t.FINAL_CONFIG.chart.legend.fontSize}px`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.absoluteDataset,(r,s)=>(e.openBlock(),e.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:i=>t.segregate(r),class:e.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":l.segregatedSeries.includes(r.id)})},[l.icons[r.type]==="line"?(e.openBlock(),e.createElementBlock("svg",Vt,[e.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:r.color},null,8,Tt),e.createVNode(u,{plot:{x:10,y:9},radius:4,color:r.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(r.shape)?r.shape:"circle",stroke:t.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(e.openBlock(),e.createElementBlock("svg",Pt,[l.icons[r.type]==="bar"?(e.openBlock(),e.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:r.color},null,8,Mt)):(e.openBlock(),e.createBlock(u,{key:1,plot:{x:6,y:6},radius:5,color:r.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(r.shape)?r.shape:"circle"},null,8,["color","shape"]))])),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.FINAL_CONFIG.chart.legend.color}`)},e.toDisplayString(r.name),5)],10,zt))),128))],4)):(e.openBlock(),e.createElementBlock("div",Rt,[e.renderSlot(a.$slots,"legend",{legend:t.absoluteDataset},void 0,!0)],512)),e.createVNode(_,{show:l.mutableConfig.showTooltip&&l.isTooltip,backgroundColor:t.FINAL_CONFIG.chart.tooltip.backgroundColor,color:t.FINAL_CONFIG.chart.tooltip.color,fontSize:t.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:t.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:t.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:t.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:t.FINAL_CONFIG.chart.tooltip.backgroundOpacity,parent:a.$refs.chart,content:t.tooltipContent,isCustom:t.FINAL_CONFIG.chart.tooltip.customFormat&&typeof t.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...t.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","parent","content","isCustom"]),t.isDataset?(e.openBlock(),e.createBlock(F,{key:7,hideDetails:"",config:{open:l.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color},head:{backgroundColor:t.FINAL_CONFIG.chart.backgroundColor,color:t.FINAL_CONFIG.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(`${l.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[e.createElementVNode("div",Dt,[e.withDirectives(e.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":o[4]||(o[4]=r=>l.showSparklineTable=r)},null,512),[[e.vModelCheckbox,l.showSparklineTable]]),e.createElementVNode("div",{onClick:o[5]||(o[5]=r=>l.showSparklineTable=!l.showSparklineTable),style:{cursor:"pointer"}},[e.createVNode(y,{name:"chartLine",size:20,stroke:t.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),l.showSparklineTable?(e.openBlock(),e.createBlock(C,{key:`sparkline_${l.segregateStep}`,dataset:t.tableSparklineDataset,config:t.tableSparklineConfig},null,8,["dataset","config"])):(e.openBlock(),e.createBlock(N,{key:1,colNames:t.dataTable.colNames,head:t.dataTable.head,body:t.dataTable.body,config:t.dataTable.config,title:`${t.FINAL_CONFIG.chart.title.text}${t.FINAL_CONFIG.chart.title.subtitle.text?` : ${t.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:o[6]||(o[6]=r=>l.mutableConfig.showTable=!1)},{th:e.withCtx(({th:r})=>[e.createElementVNode("div",{innerHTML:r},null,8,Ht)]),td:e.withCtx(({td:r})=>[e.createTextVNode(e.toDisplayString(r),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Y)}const Wt=H._export_sfc(W,[["render",qt],["__scopeId","data-v-185b12a6"]]);exports.default=Wt;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { p as Z } from "./pdf-97UbtKC2.js";
|
|
2
|
-
import { U as J, s as K } from "./usePrinter-
|
|
3
|
-
import { c as U, a as Q, t as j, r as $, p as ee, u as te, O as X, I as M, E as le, T as ae, z as re, U as ie, L as se, V as oe, x as ne, s as ce, d as he, y as ue, b as de, q as ge, n as fe, C as be, R as Ie, W as me, f as Ne, v as _e, w as Fe, e as xe, o as ye, Y as Ae, B as Se } from "./index-
|
|
4
|
-
import { D as Le } from "./DataTable-
|
|
5
|
-
import { _ as Ce } from "./Title-
|
|
6
|
-
import { _ as ke, u as we } from "./Tooltip-
|
|
7
|
-
import { _ as Oe } from "./Shape-
|
|
8
|
-
import ve from "./BaseIcon-
|
|
9
|
-
import Ge from "./vue-ui-table-sparkline-
|
|
10
|
-
import ze from "./vue-ui-skeleton-
|
|
11
|
-
import { S as pe } from "./Slicer-
|
|
12
|
-
import Te from "./vue-ui-accordion-
|
|
13
|
-
import { u as q } from "./useNestedProp-
|
|
2
|
+
import { U as J, s as K } from "./usePrinter-Dda5FBG3.js";
|
|
3
|
+
import { c as U, a as Q, t as j, r as $, p as ee, u as te, O as X, I as M, E as le, T as ae, z as re, U as ie, L as se, V as oe, x as ne, s as ce, d as he, y as ue, b as de, q as ge, n as fe, C as be, R as Ie, W as me, f as Ne, v as _e, w as Fe, e as xe, o as ye, Y as Ae, B as Se } from "./index-ByO3Ywek.js";
|
|
4
|
+
import { D as Le } from "./DataTable-Bza1ed62.js";
|
|
5
|
+
import { _ as Ce } from "./Title-BSpLzDC1.js";
|
|
6
|
+
import { _ as ke, u as we } from "./Tooltip-DI8_Wjjy.js";
|
|
7
|
+
import { _ as Oe } from "./Shape-Bttb-v8s.js";
|
|
8
|
+
import ve from "./BaseIcon-DB1g9sdS.js";
|
|
9
|
+
import Ge from "./vue-ui-table-sparkline-B4f74K6D.js";
|
|
10
|
+
import ze from "./vue-ui-skeleton-BxRSQeuo.js";
|
|
11
|
+
import { S as pe } from "./Slicer-WyjxXfiD.js";
|
|
12
|
+
import Te from "./vue-ui-accordion-CbKHVPHh.js";
|
|
13
|
+
import { u as q } from "./useNestedProp-Da77DnaA.js";
|
|
14
14
|
import { resolveComponent as P, openBlock as r, createElementBlock as i, normalizeClass as T, normalizeStyle as S, createVNode as W, createCommentVNode as c, createBlock as V, createSlots as Me, withCtx as z, renderSlot as G, normalizeProps as Y, guardReactiveProps as E, createElementVNode as d, Fragment as I, renderList as m, toDisplayString as C, withDirectives as Pe, vModelCheckbox as Ve, createTextVNode as Re } from "vue";
|
|
15
15
|
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const He = U(), Be = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ref as c, computed as b, watch as le, onMounted as da, onBeforeUnmount as ha, openBlock as O, createElementBlock as de, normalizeStyle as U, normalizeClass as ya, createVNode as he, createCommentVNode as te, createBlock as A, unref as Y, createSlots as fa, withCtx as m, renderSlot as C, normalizeProps as oe, guardReactiveProps as ue, createElementVNode as Z, toDisplayString as _e, createTextVNode as ga } from "vue";
|
|
2
|
-
import { u as pa, c as ba, t as ma, a as xa, p as E, b as La, z as ye, f as G, d as De, T as ka, o as Ca, e as wa, v as He, w as Sa, n as za, q as $a, r as V, l as Ta } from "./index-
|
|
2
|
+
import { u as pa, c as ba, t as ma, a as xa, p as E, b as La, z as ye, f as G, d as De, T as ka, o as Ca, e as wa, v as He, w as Sa, n as za, q as $a, r as V, l as Ta } from "./index-ByO3Ywek.js";
|
|
3
3
|
import { d as Ma, c as Ra, a as We, t as Oa, l as k, r as fe, b as I, p as Be, u as Ia } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Pa } from "./Tooltip-
|
|
5
|
-
import { L as Fa } from "./Legend-
|
|
6
|
-
import { _ as Ea } from "./Title-
|
|
7
|
-
import { S as Na } from "./Slicer-
|
|
8
|
-
import { u as _a, U as Da } from "./usePrinter-
|
|
9
|
-
import Ha from "./vue-ui-accordion-
|
|
10
|
-
import { D as Wa } from "./DataTable-
|
|
11
|
-
import Ba from "./vue-ui-skeleton-
|
|
12
|
-
import { u as Xe } from "./useNestedProp-
|
|
4
|
+
import { _ as Pa } from "./Tooltip-DI8_Wjjy.js";
|
|
5
|
+
import { L as Fa } from "./Legend-C4cCpb4z.js";
|
|
6
|
+
import { _ as Ea } from "./Title-BSpLzDC1.js";
|
|
7
|
+
import { S as Na } from "./Slicer-WyjxXfiD.js";
|
|
8
|
+
import { u as _a, U as Da } from "./usePrinter-Dda5FBG3.js";
|
|
9
|
+
import Ha from "./vue-ui-accordion-CbKHVPHh.js";
|
|
10
|
+
import { D as Wa } from "./DataTable-Bza1ed62.js";
|
|
11
|
+
import Ba from "./vue-ui-skeleton-BxRSQeuo.js";
|
|
12
|
+
import { u as Xe } from "./useNestedProp-Da77DnaA.js";
|
|
13
13
|
import { _ as Xa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const Ua = ["id"], Aa = ["onClick"], Ya = ["innerHTML"], Za = {
|
|
15
15
|
__name: "vue-ui-xy-canvas",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),s=require("./index-BDKEFvEF.cjs"),c=require("./useResponsive-B3TrDDIG.cjs"),qe=require("./Tooltip-COgv-iii.cjs"),Ue=require("./Legend-BEMGbN0s.cjs"),Xe=require("./Title-XRMcJkna.cjs"),Ae=require("./Slicer-CuwuufTu.cjs"),me=require("./usePrinter-DedM_6px.cjs"),Ye=require("./vue-ui-accordion-BytUYLYl.cjs"),Ze=require("./DataTable-CGX9xKvm.cjs"),Ge=require("./vue-ui-skeleton-rY_nZhMQ.cjs"),be=require("./useNestedProp-Dikfncsl.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Je=["id"],Ke=["onClick"],Qe=["innerHTML"],et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(J,{expose:xe,emit:Le}){const R=J,{vue_ui_xy_canvas:ke}=s.useConfig(),X=l.ref(s.createUid()),D=l.ref(null),C=l.ref(null),O=l.ref(null),i=l.ref(null),g=l.ref(1),z=l.ref(1),_=l.ref(!1),y=l.ref(null),H=l.ref(""),K=l.ref(null),k=l.ref([]),N=l.ref(1),M=l.ref(!0),w=l.ref(!0),A=l.ref(null),Q=l.ref(0),ee=l.ref(0),Y=l.ref(!1),te=l.ref(null),le=l.ref(null),ae=l.ref(null),Z=l.computed(()=>!!R.dataset&&R.dataset.length),t=l.computed(()=>{const e=be.useNestedProp({userConfig:R.config,defaultConfig:ke});return e.theme?{...be.useNestedProp({userConfig:s.themes.vue_ui_xy_canvas[e.theme]||R.config,defaultConfig:e}),customPalette:s.themePalettes[e.theme]||s.palette}:e}),oe=l.ref(t.value.style.chart.aspectRatio),{isPrinting:Ce,isImaging:we,generatePdf:re,generateImage:ue}=me.usePrinter({elementId:`xy_canvas_${X.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),n=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 Se(e){Y.value=e,ee.value+=1}const ne=l.computed(()=>s.convertCustomPalette(t.value.customPalette)),P=l.computed(()=>Math.max(...E.value.filter((e,o)=>!k.value.includes(e.absoluteIndex)).map(e=>e.series.length))),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:z.value,left:g.value*t.value.style.chart.paddingProportions.left,top:z.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:z.value-z.value*t.value.style.chart.paddingProportions.bottom,width:e,height:z.value-z.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function se(e,o){return e/o}function ze({hasAutoScale:e,series:o,min:r,max:d,scale:h,yOffset:p,individualHeight:v,stackIndex:m=null}){return o.map((L,j)=>{const S=h.min<0?Math.abs(h.min):0,$=se(L+S,S+h.max);let T,F;e&&(T=Math.abs(h.min),F=se(L+T,h.max+T));let I=0;return m===null?I=a.value.bottom-a.value.height*(e?F:$):I=a.value.bottom-p-v*(e?F:$),{x:a.value.left+a.value.slot*j+a.value.slot/2,y:I,value:L}})}const b=l.computed(()=>{const e=Math.min(...E.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),o=Math.max(...E.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),r=s.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=a.value.bottom-a.value.height*(d/(r.max+d)),p=r.ticks.map(v=>({y:a.value.bottom-a.value.height*((v+d)/(r.max+d)),x:a.value.left-8,value:v}));return{absoluteMin:d,max:o,min:e,scale:r,yLabels:p,zero:h}}),$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}"/>
|
package/package.json
CHANGED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { useCssVars as R, computed as b, onMounted as T, ref as S, openBlock as a, createElementBlock as s, normalizeStyle as w, createElementVNode as f, createTextVNode as N, toDisplayString as r, createCommentVNode as c, unref as p, Fragment as h, renderList as g, normalizeClass as M, createBlock as A } from "vue";
|
|
2
|
-
import { u as P, o as J, e as D, g as K, c as Q, t as Z, r as m, X as ee, s as F } from "./index-BK818aZo.js";
|
|
3
|
-
import { u as H } from "./useNestedProp-hi25rRoY.js";
|
|
4
|
-
import { _ as te } from "./Shape-CCI8C_dI.js";
|
|
5
|
-
import le from "./vue-ui-skeleton-DJtTdfNg.js";
|
|
6
|
-
import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const se = { key: 0 }, oe = { key: 1 }, ue = ["xmlns", "viewBox"], ie = ["id"], ne = ["stop-color"], re = ["stop-color"], ve = ["id"], de = ["stop-color"], ye = ["stop-color"], ce = { key: 0 }, he = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], ge = { key: 1 }, fe = ["x", "y", "font-size", "font-weight", "fill"], pe = ["x", "y", "font-size", "fill"], be = ["x", "y", "font-size", "fill"], me = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], xe = {
|
|
8
|
-
__name: "vue-ui-sparkhistogram",
|
|
9
|
-
props: {
|
|
10
|
-
config: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default() {
|
|
13
|
-
return {};
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
dataset: {
|
|
17
|
-
type: Array,
|
|
18
|
-
default() {
|
|
19
|
-
return [];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
emits: ["selectDatapoint"],
|
|
24
|
-
setup(V, { emit: E }) {
|
|
25
|
-
const v = V;
|
|
26
|
-
R((l) => ({
|
|
27
|
-
"34a5ebe4": O.value
|
|
28
|
-
}));
|
|
29
|
-
const { vue_ui_sparkhistogram: I } = P(), z = b(() => !!v.dataset && v.dataset.length);
|
|
30
|
-
T(() => {
|
|
31
|
-
J(v.dataset) ? D({
|
|
32
|
-
componentName: "VueUiSparkHistogram",
|
|
33
|
-
type: "dataset"
|
|
34
|
-
}) : v.dataset.forEach((l, u) => {
|
|
35
|
-
K({
|
|
36
|
-
datasetObject: l,
|
|
37
|
-
requiredAttributes: ["value"]
|
|
38
|
-
}).forEach((t) => {
|
|
39
|
-
D({
|
|
40
|
-
componentName: "VueUiSparkHistogram",
|
|
41
|
-
type: "datasetSerieAttribute",
|
|
42
|
-
property: t,
|
|
43
|
-
index: u
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
const x = S(Q()), e = b(() => {
|
|
49
|
-
const l = H({
|
|
50
|
-
userConfig: v.config,
|
|
51
|
-
defaultConfig: I
|
|
52
|
-
});
|
|
53
|
-
return l.theme ? {
|
|
54
|
-
...H({
|
|
55
|
-
userConfig: Z.vue_ui_sparkhistogram[l.theme] || v.config,
|
|
56
|
-
defaultConfig: l
|
|
57
|
-
})
|
|
58
|
-
} : l;
|
|
59
|
-
}), d = b(() => {
|
|
60
|
-
const l = e.value.style.layout.height, u = e.value.style.layout.width, t = e.value.style.layout.padding.top, o = l - e.value.style.layout.padding.bottom, y = e.value.style.layout.padding.left, _ = u - e.value.style.layout.padding.right, k = t + (l - t - e.value.style.layout.padding.bottom) / 2, C = l - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom, $ = u - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
61
|
-
return {
|
|
62
|
-
bottom: o,
|
|
63
|
-
centerY: k,
|
|
64
|
-
drawingHeight: C,
|
|
65
|
-
drawingWidth: $,
|
|
66
|
-
height: l,
|
|
67
|
-
left: y,
|
|
68
|
-
right: _,
|
|
69
|
-
top: t,
|
|
70
|
-
width: u
|
|
71
|
-
};
|
|
72
|
-
}), W = b(() => Math.max(...v.dataset.map((l) => Math.abs(l.value || 0))));
|
|
73
|
-
function B(l) {
|
|
74
|
-
return Math.abs(l) / W.value;
|
|
75
|
-
}
|
|
76
|
-
const n = b(() => v.dataset.map((l, u) => {
|
|
77
|
-
const t = B(l.value || 0), o = d.value.drawingHeight * t, y = d.value.drawingWidth / v.dataset.length, _ = y * (e.value.style.bars.gap / 100), k = y - _, C = d.value.centerY - o / 2, $ = d.value.left + (_ / 2 + u * y), X = d.value.left + u * y, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), j = l.value >= 0 ? `${e.value.style.bars.colors.positive}${m[L]}` : `${e.value.style.bars.colors.negative}${m[L]}`, Y = l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, q = l.value >= 0 ? `url(#gradient_positive_${u}_${x.value})` : `url(#gradient_negative_${u}_${x.value})`, G = $ + k / 2;
|
|
78
|
-
return {
|
|
79
|
-
...l,
|
|
80
|
-
color: j,
|
|
81
|
-
gradient: q,
|
|
82
|
-
height: o,
|
|
83
|
-
intensity: L,
|
|
84
|
-
proportion: t,
|
|
85
|
-
stroke: Y,
|
|
86
|
-
textAnchor: G,
|
|
87
|
-
trapX: X,
|
|
88
|
-
unitWidth: y,
|
|
89
|
-
width: k,
|
|
90
|
-
x: $,
|
|
91
|
-
y: C
|
|
92
|
-
};
|
|
93
|
-
})), i = S(null);
|
|
94
|
-
function U(l, u) {
|
|
95
|
-
E("selectDatapoint", { datapoint: l, index: u });
|
|
96
|
-
}
|
|
97
|
-
const O = b(() => `${e.value.style.animation.speedMs}ms`);
|
|
98
|
-
return (l, u) => (a(), s("div", {
|
|
99
|
-
style: w(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
100
|
-
onMouseleave: u[1] || (u[1] = (t) => i.value = null)
|
|
101
|
-
}, [
|
|
102
|
-
e.value.style.title.text ? (a(), s("div", {
|
|
103
|
-
key: 0,
|
|
104
|
-
style: w(`width:calc(100% - 12px);background:${e.value.style.backgroundColor};margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
|
|
105
|
-
}, [
|
|
106
|
-
f("div", {
|
|
107
|
-
style: w(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
108
|
-
}, [
|
|
109
|
-
N(r(e.value.style.title.text) + " ", 1),
|
|
110
|
-
i.value !== null ? (a(), s("span", se, "- " + r(n.value[i.value].timeLabel || "") + " " + r(e.value.style.labels.value.prefix) + r(isNaN(n.value[i.value].value) ? "" : ": " + Number(n.value[i.value].value.toFixed(e.value.style.labels.value.rounding)).toLocaleString()) + r(e.value.style.labels.value.suffix), 1)) : c("", !0),
|
|
111
|
-
N(),
|
|
112
|
-
![void 0, null].includes(i.value) && ![null, void 0].includes(n.value[i.value].valueLabel) ? (a(), s("span", oe, "(" + r(n.value[i.value].valueLabel || 0) + ")", 1)) : c("", !0)
|
|
113
|
-
], 4),
|
|
114
|
-
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
115
|
-
key: 0,
|
|
116
|
-
style: w(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
117
|
-
}, r(e.value.style.title.subtitle.text), 5)) : c("", !0)
|
|
118
|
-
], 4)) : c("", !0),
|
|
119
|
-
z.value ? (a(), s("svg", {
|
|
120
|
-
key: 1,
|
|
121
|
-
xmlns: p(ee),
|
|
122
|
-
viewBox: `0 0 ${d.value.width} ${d.value.height}`,
|
|
123
|
-
style: { overflow: "visible" }
|
|
124
|
-
}, [
|
|
125
|
-
f("defs", null, [
|
|
126
|
-
(a(!0), s(h, null, g(n.value, (t, o) => (a(), s("radialGradient", {
|
|
127
|
-
id: `gradient_positive_${o}_${x.value}`,
|
|
128
|
-
cy: "50%",
|
|
129
|
-
cx: "50%",
|
|
130
|
-
r: "50%",
|
|
131
|
-
fx: "50%",
|
|
132
|
-
fy: "50%"
|
|
133
|
-
}, [
|
|
134
|
-
f("stop", {
|
|
135
|
-
offset: "0%",
|
|
136
|
-
"stop-color": `${p(F)(e.value.style.bars.colors.positive, 0.05)}${p(m)[t.intensity]}`
|
|
137
|
-
}, null, 8, ne),
|
|
138
|
-
f("stop", {
|
|
139
|
-
offset: "100%",
|
|
140
|
-
"stop-color": `${e.value.style.bars.colors.positive}${p(m)[t.intensity]}`
|
|
141
|
-
}, null, 8, re)
|
|
142
|
-
], 8, ie))), 256)),
|
|
143
|
-
(a(!0), s(h, null, g(n.value, (t, o) => (a(), s("radialGradient", {
|
|
144
|
-
id: `gradient_negative_${o}_${x.value}`,
|
|
145
|
-
cy: "50%",
|
|
146
|
-
cx: "50%",
|
|
147
|
-
r: "50%",
|
|
148
|
-
fx: "50%",
|
|
149
|
-
fy: "50%"
|
|
150
|
-
}, [
|
|
151
|
-
f("stop", {
|
|
152
|
-
offset: "0%",
|
|
153
|
-
"stop-color": `${p(F)(e.value.style.bars.colors.negative, 0.05)}${p(m)[t.intensity]}`
|
|
154
|
-
}, null, 8, de),
|
|
155
|
-
f("stop", {
|
|
156
|
-
offset: "100%",
|
|
157
|
-
"stop-color": `${e.value.style.bars.colors.negative}${p(m)[t.intensity]}`
|
|
158
|
-
}, null, 8, ye)
|
|
159
|
-
], 8, ve))), 256))
|
|
160
|
-
]),
|
|
161
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", ce, [
|
|
162
|
-
(a(!0), s(h, null, g(n.value, (t, o) => (a(), s("rect", {
|
|
163
|
-
x: t.x,
|
|
164
|
-
y: t.y,
|
|
165
|
-
height: t.height,
|
|
166
|
-
width: t.width,
|
|
167
|
-
fill: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
168
|
-
stroke: t.stroke,
|
|
169
|
-
"stroke-width": e.value.style.bars.strokeWidth,
|
|
170
|
-
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
171
|
-
class: M({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
172
|
-
}, null, 10, he))), 256))
|
|
173
|
-
])) : (a(), s("g", ge, [
|
|
174
|
-
(a(!0), s(h, null, g(n.value, (t, o) => (a(), A(te, {
|
|
175
|
-
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
176
|
-
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
177
|
-
shape: e.value.style.bars.shape,
|
|
178
|
-
radius: t.height * 0.4,
|
|
179
|
-
class: M({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
180
|
-
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
181
|
-
])),
|
|
182
|
-
(a(!0), s(h, null, g(n.value, (t, o) => (a(), s("text", {
|
|
183
|
-
"text-anchor": "middle",
|
|
184
|
-
x: t.textAnchor,
|
|
185
|
-
y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
|
|
186
|
-
"font-size": e.value.style.labels.value.fontSize,
|
|
187
|
-
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
188
|
-
fill: e.value.style.labels.value.color
|
|
189
|
-
}, r(e.value.style.labels.value.prefix) + r(isNaN(t.value) ? "" : Number(t.value.toFixed(e.value.style.labels.value.rounding)).toLocaleString()) + r(e.value.style.labels.value.suffix), 9, fe))), 256)),
|
|
190
|
-
(a(!0), s(h, null, g(n.value, (t, o) => (a(), s("g", null, [
|
|
191
|
-
t.valueLabel ? (a(), s("text", {
|
|
192
|
-
key: 0,
|
|
193
|
-
x: t.textAnchor,
|
|
194
|
-
y: t.y + t.height + e.value.style.labels.valueLabel.fontSize,
|
|
195
|
-
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
196
|
-
"text-anchor": "middle",
|
|
197
|
-
fill: e.value.style.labels.valueLabel.color
|
|
198
|
-
}, r(t.valueLabel), 9, pe)) : c("", !0)
|
|
199
|
-
]))), 256)),
|
|
200
|
-
(a(!0), s(h, null, g(n.value, (t, o) => (a(), s("g", null, [
|
|
201
|
-
t.timeLabel ? (a(), s("text", {
|
|
202
|
-
key: 0,
|
|
203
|
-
x: t.textAnchor,
|
|
204
|
-
y: d.value.height - e.value.style.labels.timeLabel.fontSize / 2,
|
|
205
|
-
"font-size": e.value.style.labels.timeLabel.fontSize,
|
|
206
|
-
fill: e.value.style.labels.timeLabel.color,
|
|
207
|
-
"text-anchor": "middle"
|
|
208
|
-
}, r(t.timeLabel), 9, be)) : c("", !0)
|
|
209
|
-
]))), 256)),
|
|
210
|
-
(a(!0), s(h, null, g(n.value, (t, o) => (a(), s("g", null, [
|
|
211
|
-
f("rect", {
|
|
212
|
-
height: d.value.height,
|
|
213
|
-
width: t.unitWidth,
|
|
214
|
-
fill: "transparent",
|
|
215
|
-
x: t.trapX,
|
|
216
|
-
y: 0,
|
|
217
|
-
onMouseover: (y) => i.value = o,
|
|
218
|
-
onMouseleave: u[0] || (u[0] = (y) => i.value = null),
|
|
219
|
-
stroke: i.value !== null && i.value === o ? e.value.style.selector.stroke : "",
|
|
220
|
-
"stroke-width": i.value !== null && i.value === o ? e.value.style.selector.strokeWidth : 0,
|
|
221
|
-
rx: e.value.style.selector.borderRadius,
|
|
222
|
-
"stroke-dasharray": e.value.style.selector.strokeDasharray,
|
|
223
|
-
onClick: () => U(t, o)
|
|
224
|
-
}, null, 40, me)
|
|
225
|
-
]))), 256))
|
|
226
|
-
], 8, ue)) : c("", !0),
|
|
227
|
-
z.value ? c("", !0) : (a(), A(le, {
|
|
228
|
-
key: 2,
|
|
229
|
-
config: {
|
|
230
|
-
type: "sparkHistogram",
|
|
231
|
-
style: {
|
|
232
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
233
|
-
sparkHistogram: {
|
|
234
|
-
color: "#CCCCCC"
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}, null, 8, ["config"]))
|
|
239
|
-
], 36));
|
|
240
|
-
}
|
|
241
|
-
}, ze = /* @__PURE__ */ ae(xe, [["__scopeId", "data-v-7aed7086"]]);
|
|
242
|
-
export {
|
|
243
|
-
ze as default
|
|
244
|
-
};
|