import{j as l}from"./main-40.js";import{ah as m,ai as n,ag as u,aj as c,ak as d,al as x,an as y,am as g}from"./bf-940-87.js";import"./bf-497-146.js";import"./bf-683-113.js";import"./bf-141-80.js";import"./bf-159-119.js";import"./bf-280-123.js";import"./bf-642-124.js";import"./bf-236-125.js";import"./bf-586-70.js";import"./bf-860-126.js";import"./bf-476-127.js";import"./bf-528-128.js";/* empty css          */import"./bf-55-130.js";import"./bf-689-131.js";import"./bf-976-132.js";/* empty css          */import"./bf-547-83.js";u([c,d,x,y,g]);function C({dataList:r,field:f,title:b,viewType:e}){const s=r.map(i=>i.value),o=r.map(i=>i.label),t={type:"category",data:o,axisTick:{alignWithLabel:!0}},a={type:"value"};e==="vBar"&&(t.type="value",delete t.data,a.type="category",a.data=o);const p={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:t,yAxis:a,series:[{name:"Total",type:"bar",barWidth:"60%",data:s}]};return l.jsx(m,{echarts:n,option:p,notMerge:!0,lazyUpdate:!0})}export{C as default};
