import{u as c}from"./app-6cfc96e4.js";import{p as n,r as l,af as e,I as f}from"./index-5df52834.js";const m=Vue.defineComponent({__name:"Bar",setup(p){const{isDark:r}=n(),a=Vue.computed(()=>r.value?"dark":"light"),t=Vue.ref(null),{setOptions:o,resize:i}=l(t,{theme:a});return o({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["watchers","fork","star"]},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{interval:0},data:["2021","2022","2023"],triggerEvent:!0}],yAxis:[{type:"value",triggerEvent:!0}],series:[{name:"watchers",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#e6a23c"},{offset:1,color:"#eebe77"}])},data:[200,320,800]},{name:"fork",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#f56c6c"},{offset:1,color:"#f89898"}])},data:[1600,2460,4500]},{name:"star",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#409EFF"},{offset:1,color:"#53a7ff"}])},data:[1450,3620,7500]}],addTooltip:!0},{name:"click",callback:s=>{}}),Vue.watch(()=>c().getSidebarStatus,()=>{f(600).then(()=>i())}),(s,u)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"barChartRef",ref:t,style:{width:"100%",height:"35vh"}},null,512))}});export{m as _};
