import{M as u,r as x,N as p,C as y,o as _,c as m,m as h,O as S,_ as b}from"./index.82404a61.js";const v=u({__name:"foot",props:["data"],setup(l){const{data:{titleArray:a,xData:r,defaultData:c,yData:d,colorList:n}}=l,s=x(null);r.reduce((t,e)=>t+e.value,0);const f=()=>{const t=S(s.value);window.addEventListener("resize",()=>{t.resize()}),t.setOption({grid:{top:"12%",right:"0%",left:"1.5%",bottom:"8%",containLabel:!0},tooltip:{show:!0,trigger:"axis",axisPointer:{type:"shadow"},textStyle:{fontSize:12},formatter:function(e){let i=`${e[0].name} <br/>`;for(let o of e)i+=`${o.marker} ${o.seriesName} : ${o.value} <br/>`;return i}},legend:{show:!0,itemWidth:14,top:"0",left:"center",data:a,textStyle:{color:"#333333"}},xAxis:[{type:"category",color:"#333333",data:r,axisLabel:{margin:20,color:"#333333",textStyle:{fontSize:14}},axisLine:{lineStyle:{color:"#333333"}},axisTick:{show:!0,lineStyle:{color:"#ddd"}}}],yAxis:[{min:0,show:!1,axisLabel:{color:"#333333",textStyle:{fontSize:16}},axisLine:{lineStyle:{color:"#333333"}},axisTick:{show:!1},splitLine:{lineStyle:{color:"#ddd",type:"dashed"}}}],series:[{name:a[0],type:"bar",data:d,barWidth:"17px",itemStyle:{normal:{color:function(e){return n[e.dataIndex]},barBorderRadius:[0,0,0,0]}}},{name:a[1],type:"bar",data:c,barWidth:"17px",itemStyle:{normal:{color:function(e){return n[e.dataIndex]},barBorderRadius:[0,0,0,0]}}}]})};return p(()=>{}),y(()=>{f()}),(t,e)=>(_(),m("div",null,[h("div",{ref_key:"assetEchart",ref:s,class:"asset_echart"},null,512)]))}});const g=b(v,[["__scopeId","data-v-7600f015"]]);export{g as default};