Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / annual_runoff_condition.bb2896ef.js
import{_ as i}from"./barChart.0f07440b.js";import{_,o as l,c as d,l as f,n as m}from"./index.82404a61.js";const u={class:"annual_runoff_condition"},p={__name:"annual_runoff_condition",props:{data:{type:Array,default:()=>[]},targetAnnualRunoffTotalControlRate:{type:String,default:""}},setup(s){const c=s,{data:e,targetAnnualRunoffTotalControlRate:t}=c,o=e.map(a=>a.value*1>0?a.value*1:0),n=Math.ceil(Math.max(...o)/100)*100,r={xAxisData:e.map(a=>a.name),yAxisOption:{min:0,max:n>t?n:t*1+10},seriesData:[{type:"bar",name:"\u8FBE\u6807\u7387",barWidth:16,barMinHeight:2,itemStyle:{color:"#73c0de"},data:o,markLine:{symbol:"none",label:{show:!!t,position:"middle",formatter:"\u76EE\u6807\u5E74\u5F84\u6D41\u603B\u91CF\u63A7\u5236\u7387\uFF1A{c}%",color:"red",fontWeight:"bold"},lineStyle:{color:"red",width:2},data:[{name:"\u76EE\u6807\u5E74\u5F84\u6D41\u603B\u91CF\u63A7\u5236\u7387",yAxis:t*1}]}}]};return(a,h)=>(l(),d("div",u,[r.xAxisData.length?(l(),f(i,{key:0,echartData:r,yAxisName:"\u767E\u5206\u6BD4/%",ref:"barChartRef",legend:{show:!1},grid:{left:"3%",right:"7%",top:"15%",bottom:"3%",containLabel:!0}},null,512)):m("",!0)]))}},b=_(p,[["__scopeId","data-v-bc110675"]]);export{b as default};