import{h as m}from"./system.1703796278973.js";import{i as _}from"./index.1703796278973314.js";import{d as r,k as l,m as u,p as h,o as f,x,z as o,V as v,G as y,H as b}from"./vue.1703796278973.js";import{_ as g}from"./_plugin-vue_export-helper.1703796278973.js";import"./comm.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const w=t=>(y("data-v-4df02749"),t=t(),b(),t),k={class:"data-overview"},S=w(()=>o("div",{class:"header"},[o("div",{class:"header-title"},"设备地域分布")],-1)),E=r({name:"EquipmentRegionDistribution"}),R=r({...E,setup(t){const i=l({}),p=m();let e=null;const n=(s=[],d=[])=>{const a=i.value;if(a){e=_(a);const c={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["Forest","Steppe","Desert","Wetland"]},grid:{top:"10%",left:"3%",right:"4%",bottom:"8%",containLabel:!0},xAxis:[{type:"category",axisTick:{show:!1},data:["2012","2013","2014","2015","2016"]}],yAxis:[{type:"value"}],series:[{name:"Forest",type:"bar",barGap:"30%",emphasis:{focus:"series"},barWidth:20,data:[320,332,301,334,390]},{name:"Steppe",type:"bar",barGap:"30%",emphasis:{focus:"series"},barWidth:20,data:[220,182,191,234,290]}]};v(()=>{e.setOption(c),window.addEventListener("resize",function(){e.resize()})})}};return u(()=>p.collapsed,s=>{setTimeout(()=>{e.resize()},300)}),h(()=>{n()}),(s,d)=>(f(),x("div",k,[S,o("div",{ref_key:"chartRef",ref:i,style:{width:"100%","min-height":"300px"}},null,512)]))}});const J=g(R,[["__scopeId","data-v-4df02749"]]);export{J as default};
