import{u as r}from"./useECharts-XZ1IwN24.js";import{d as s,r as i,aw as l,h as n,o as c,aG as p}from"./index-9PRMimni.js";const u=s({__name:"Percent",props:{width:{type:String,default:"100%"},height:{type:String,default:"320px"}},setup(e){const t=i(null),{setOptions:a}=r(t),o={tooltip:{trigger:"axis",backgroundColor:"rgba(73,81,92,.95)",borderWidth:0,textStyle:{color:"#fff"},axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["当月销售额","月均销售额"],right:20,top:10},grid:{left:"1%",right:"2%",bottom:"1%",top:"12%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!0,axisTick:{show:!1},data:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]}],yAxis:[{name:"单位:元",type:"value",axisLabel:{color:"#666"},nameTextStyle:{color:"#333",align:"left"},splitLine:{lineStyle:{type:"solid",color:"#E9E9E9"}},axisLine:{show:!1},axisTick:{show:!1}}],series:[{name:"当月销售额",type:"line",areaStyle:{color:"#3DB2FF"},emphasis:{focus:"series"},data:[820,932,1002,901,954,934,1290,1360,1450,1400,1350,1320]},{name:"月均销售额",type:"line",areaStyle:{color:"#78DEC7"},emphasis:{focus:"series"},data:[620,712,802,701,734,734,1090,1160,1250,1220,1150,1120]}]};return l(()=>{a(o)}),(h,d)=>(c(),n("div",{ref_key:"chartRef",ref:t,style:p({height:e.height,width:e.width})},null,4))}});export{u as _};
