import{M as y,r as x,N as u,C as h,o as S,c as b,m as _,O as w,_ as g}from"./index.82404a61.js";/* empty css */const v=y({__name:"top",props:["data","bottom","xData","yData","yData2","all","realValue","itemUnit","itemTarget"],setup(c){const{xData:d,bottom:E,yData:f,yData2:m,all:F,realValue:l,itemUnit:e,itemTarget:i,data:{titleArray:a}}=c,s=x(null),p=()=>{const o=w(s.value);window.addEventListener("resize",()=>{o.resize()}),o.setOption({grid:{top:"0%",right:"0%",left:"-10%",bottom:"11%",containLabel:!0},tooltip:{show:!0,trigger:"axis",axisPointer:{type:"shadow"},textStyle:{fontSize:12},formatter:function(t){let n=`${t[0].name} <br/>`;for(let r of t)n+=`${r.marker} ${r.seriesName} : ${r.value} <br/>`;return n}},legend:{show:!1,itemWidth:14,top:"0",left:"center",data:a,textStyle:{color:"#333333"}},xAxis:[{type:"category",color:"#333333",data:d,axisLabel:{margin:10,color:"#333333",textStyle:{fontSize:13}},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]+e,type:"bar",data:f,barWidth:"30px",itemStyle:{normal:{label:{rotate:30,interval:0,show:!0,textStyle:{fontSize:"10px",color:"#4487F5"},formatter:function(t){return l>0?l+e:"0"}},color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#4487F5 "},{offset:1,color:"#A7EFFF "}]},barBorderRadius:[0,0,0,0]}}},{name:a[1]+e,type:"bar",data:m,barWidth:"30px",itemStyle:{normal:{label:{rotate:30,interval:0,show:!0,textStyle:{fontSize:"10px",color:"#4487F5"},formatter:function(t){return i>0?i+e:"0"}},color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#48E38F "},{offset:1,color:"#D1FBE4 "}]},barBorderRadius:[0,0,0,0]}}}]})};return u(()=>{}),h(()=>{p()}),(o,t)=>(S(),b("div",null,[_("div",{ref_key:"assetEchart",ref:s,class:"asset_echart"},null,512)]))}}),L=g(v,[["__scopeId","data-v-5e132e32"]]);export{L as default};