import{M as c,r as d,N as u,C as p,o as f,c as x,O as _,_ as y}from"./index.82404a61.js";const h=c({__name:"foot",props:["data"],setup(s){const{data:{xData:a,colorList:n,yData:o,defaultData:i}}=s,r=d(null);console.log("data",a);const l=()=>{const t=_(r.value);window.addEventListener("resize",()=>{t.resize()}),t.setOption({grid:{left:"5%",right:"5%",bottom:"5%",top:"10%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(e){return e[0].name+"<br/><span style='display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgba(36,207,233,0.9)'></span>"+e[0].seriesName+" : "+e[0].value}},xAxis:{type:"value",axisLine:{lineStyle:{color:"#6E8098"}},splitLine:{show:!1}},yAxis:[{type:"category",inverse:!0,axisLabel:{show:!0,textStyle:{}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},data:a},{type:"category",inverse:!0,axisTick:"none",axisLine:"none",show:!0,axisLabel:{textStyle:{color:"#000",fontSize:"12"},formatter:function(e){return e+" %"}},data:o}],series:[{name:"\u5B8C\u6210\u7387",type:"bar",zlevel:1,itemStyle:{normal:{barBorderRadius:0,color:e=>n[e.dataIndex]}},barWidth:20,data:o},{name:"\u80CC\u666F",type:"bar",barWidth:20,barGap:"-100%",data:i,itemStyle:{normal:{color:"#EEF5FF",barBorderRadius:0}}}]})};return u(()=>{}),p(()=>{l()}),(t,e)=>(f(),x("div",{ref_key:"assetEchart",ref:r,class:"asset_echart"},null,512))}});const m=y(h,[["__scopeId","data-v-1bd553a4"]]);export{m as default};