Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / footLeft.43e48000.js
import{M as f,r as x,N as m,C as y,o as p,c as u,m as h,O as _,_ as S}from"./index.82404a61.js";/* empty css                                                                 */const b=f({__name:"footLeft",props:["data","bottom","xData","yData"],setup(n){const{yData:o,bottom:L,xData:r,data:{titleArray:s,defaultData:g,colorList:c}}=n,i=x(null);console.log("xData",r),console.log("yData",o);const d=()=>{const e=_(i.value);window.addEventListener("resize",()=>{e.resize()}),e.setOption({grid:{top:"0%",right:"0%",left:"-10%",bottom:"10%",containLabel:!0},tooltip:{show:!0,trigger:"axis",axisPointer:{type:"shadow"},textStyle:{fontSize:12},formatter:function(t){let l=`${t[0].name}
              <br/>`;for(let a of t)l+=`${a.marker}
              ${a.seriesName}
                : 
              ${a.value}
              <br/>`;return l}},legend:{show:!1,itemWidth:14,top:"0",left:"center",data:s,textStyle:{color:"#333333"}},xAxis:[{type:"category",color:"#333333",data:r,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:s[0],type:"bar",data:o,barWidth:"30px",itemStyle:{normal:{color:function(t){return c[t.dataIndex]},barBorderRadius:[0,0,0,0]}}}]})};return m(()=>{}),y(()=>{d()}),(e,t)=>(p(),u("div",null,[h("div",{ref_key:"assetEchart",ref:i,class:"asset_echart"},null,512)]))}}),k=S(b,[["__scopeId","data-v-a1c96d54"]]);export{k as default};