import{u as e,i as t,a,b as s,c as i,d as r,e as n,f as l,g as o,h as d}from"./echarts.1834885f.js";import{I as p,a as u,o as h,E as c,l as f,m as g,L as y,P as x}from"./vue.56efbdad.js";const m=p({props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},eData:{type:Object,default:()=>({title:{text:"Echart 标题"},tooltip:{},xAxis:{data:["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]},yAxis:{},series:[{name:"销量",type:"bar",data:[5,20,36,10,10,20]}]})}},setup(p){const x=p;e([a,s,i,r,n,l,o,d]);let m=null;const v=u();function w(){null==m||m.resize()}return h((()=>{m=t(v.value),null==m||m.setOption(x.eData),window.addEventListener("resize",w)})),c((()=>{null==m||m.dispose(),window.removeEventListener("resize",w)})),(e,t)=>(f(),g("div",{ref_key:"echartMain",ref:v,style:y({width:p.width,height:p.height})},"雪月测试",4))}}),v=p({setup(e){const t=[];for(let s=0;s<=100;s++){const e=s/100*360,a=5*(1+Math.sin(e/180*Math.PI));t.push([a,e])}const a={title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{},series:[{coordinateSystem:"polar",name:"line",type:"line",data:t}]};return(e,t)=>(f(),x(m,{"e-data":a}))}});export{v as default};
