import{u}from"./app-803627bb.js";import{d as f,as as d,p as h,n as y,bj as x,U as r,o as b,c as g,bk as k}from"./index-4789ca0a.js";const D=f({__name:"Line",props:{up:{},down:{},time:{}},setup(i){const o=i,{isDark:s}=d(),l=h(()=>s.value?"dark":"default"),n=y(null),{setOptions:c,getInstance:m,resize:p}=x(n,{theme:l});return c({tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){var t=e[0].name+"<br>";return e.forEach(function(a){t+=a.seriesName+": "+a.value+" KB<br>"}),t}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["上传","下载"]},calculable:!0,animation:!0,animationDuration:1e3,animationEasing:"cubicOut",animationDelay:200,xAxis:[{triggerEvent:!0,type:"category",splitLine:{show:!1},axisTick:{show:!1},data:[]}],yAxis:[{triggerEvent:!0,type:"value",splitLine:{show:!1},axisLabel:{margin:5},axisLine:{show:!0}}],dataZoom:[{type:"slider",show:!1,realtime:!0,startValue:0,endValue:24}],series:[{name:"上传",type:"line",symbolSize:10,symbol:"circle",color:"#53a7ff",smooth:!0,markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[]},{name:"下载",type:"line",symbolSize:10,symbol:"circle",color:"#f56c6c",smooth:!0,markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[]}],addTooltip:!0},{name:"click",callback:e=>{}},{name:"contextmenu",callback:e=>{}},{type:"zrender",name:"click",callback:e=>{}}),r(()=>u().getSidebarStatus,()=>{k(600).then(()=>p())}),r([o.time,o.up,o.down],e=>{const t=m(),a={xAxis:[{data:e[0]}],series:[{data:e[1]},{data:e[2]}]};t.setOption(a)}),(e,t)=>(b(),g("div",{ref_key:"lineChartRef",ref:n,style:{width:"100%",height:"35vh"}},null,512))}});export{D as _};
