import{j as n}from"./main-634.js";import{ai as p,aj as m,ah as u,ak as c,al as d,am as x,ao as y,an as f}from"./bf-170-113.js";import"./bf-25-81.js";import"./bf-247-269.js";import"./bf-400-72.js";import"./bf-438-114.js";u([c,d,x,y,f]);function B({dataList:i,field:g,title:b,viewType:r}){const l=i.map(e=>e.value),s=i.map(e=>e.label),a={type:"category",data:s,axisTick:{alignWithLabel:!0}},t={type:"value"};r==="vBar"&&(a.type="value",delete a.data,t.type="category",t.data=s);const o={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:a,yAxis:t,series:[{name:"Total",type:"bar",barWidth:"60%",data:l}]};return n.jsx(p,{echarts:m,option:o,notMerge:!0,lazyUpdate:!0})}export{B as default};
