@icode-run/base-chart
v1.0.7
Published
```jsx render=true import BarChart from 'base-component/BarChart';
Downloads
8
Readme
BarChart
import BarChart from 'base-component/BarChart';
<BarChart
className={''}
global={{}}
style={{height: '300px'}}
dimensionConfig={[
{
"autoDimensions":false,
"structureType":"string",
"dimensions":[
{"label":"安徽","value":"安徽"},
{"label":"浙江","value":"浙江"}
],
"dataKeyName":"shippingOrderListQuery",
"dataTitle":"获取司机列表数据",
"structureKeyName":"fromProvince",
"structureTitle":"省(发货地)"
}
]}
measureConfig={[
{
"keyName":"taxFreight",
"title":"打包费用",
"structureType":"number",
"collectType":"总和",
"chartType":"bar",
"stack":"",
"unit":"",
"math":""
}
]}
chartType={'bar'}
setState={(payload) => {
console.log('setState', payload);
}}
onFetch={(payload) => {
console.log('setState', payload);
}}
data={[
{fromProvince: '浙江', taxFreight: 20},
{fromProvince: '浙江', taxFreight: 20},
{fromProvince: '浙江', taxFreight: 20},
{fromProvince: '安徽', taxFreight: 50},
{fromProvince: '浙江', taxFreight: 30},
{fromProvince: '安徽', taxFreight: 5},
]}
isLoading={false}
>
</BarChart>