import{j as n}from"./main-343.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-506-112.js";import"./bf-649-79.js";import"./bf-123-272.js";import"./bf-190-88.js";import"./bf-90-70.js";import"./bf-594-113.js";u([c,d,x,y,f]);function T({dataList:i,field:g,title:b,viewType:r}){const o=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 l={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:o}]};return n.jsx(p,{echarts:m,option:l,notMerge:!0,lazyUpdate:!0})}export{T as default};
