import{u as r}from"./useECharts-XZ1IwN24.js";import{d as o,r as s,aw as i,h as l,o as u,aG as h}from"./index-9PRMimni.js";const p=o({__name:"VisitSource",props:{width:{type:String,default:"100%"},height:{type:String,default:"320px"}},setup(e){const a={title:{text:"访问来源",subtext:"全站来源统计",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"访问来源",type:"pie",radius:"50%",data:[{value:1048,name:"搜索引擎"},{value:735,name:"直接访问"},{value:580,name:"邮件营销"},{value:484,name:"联盟广告"},{value:300,name:"视频广告"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},t=s(null),{setOptions:n}=r(t);return i(()=>{n(a)}),(m,c)=>(u(),l("div",{ref_key:"chartRef",ref:t,style:h({height:e.height,width:e.width})},null,4))}});export{p as _};
