var f=(o,i,s)=>new Promise((c,a)=>{var l=t=>{try{r(s.next(t))}catch(n){a(n)}},e=t=>{try{r(s.throw(t))}catch(n){a(n)}},r=t=>t.done?c(t.value):Promise.resolve(t.value).then(l,e);r((s=s.apply(o,i)).next())});import x from"./Box.a0684c06.js";import{u as d}from"./useECharts.7e254417.js";import{f as h}from"./other.a0e0a1bb.js";import{u as m}from"./visualization.b0d62ae5.js";import{c as p}from"./colors.d19e85ff.js";import{_ as y,d as g,q as v,r as E,aA as b,E as B,P as w,o as S,i as A,s as C,h as _}from"./index.600742c0.js";import"ant-design-vue";const D=g({components:{Box:x},setup(){const o=v({x_axis:[],series:[]}),i=E(null),s=m(),{setOptions:c}=d(i);function a(){return f(this,null,function*(){const e=yield h({year:s.getYear});o.x_axis=e.x_axis,o.series=e.series,l()})}const l=()=>{const e={legendData:[],series:[]};o.series.forEach(({name:r,data:t},n)=>{const u=p[n%p.length];e.legendData.push(r),e.series.push({name:r,data:t,type:"line",symbol:"none",itemStyle:{color:u.itemColor}})}),c({grid:{left:"2%",right:"2%",top:"10%",bottom:"2%",containLabel:!0},legend:{data:e.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:o.x_axis,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:e.series})};return b(()=>{a()}),B(()=>s.getYear,()=>a()),{chartRef:i}}}),L={class:"h-full flex flex-col"},$={class:"flex-1",ref:"chartRef"};function k(o,i,s,c,a,l){const e=w("Box");return S(),A(e,{title:"\u7A3B\u867E\u4EA7\u4E1A"},{default:C(()=>[_("div",L,[_("div",$,null,512)])]),_:1})}var Y=y(D,[["render",k],["__scopeId","data-v-3cea5c5c"]]);export{Y as default};