Cake Chart 扇形图插件 项目简介
Cake Chart 是一个 JavaScript 库,用于创建多层的扇形图。示例代码:import CakeChart from 'cake-chart';
const data = {
value: 100,
label: 'SUM = 100',
children: [{
value: 50,
children: [{
value: 10
},
{
value: 20
}]
}, {
value: 30
}, {
value: 20
}]
};
...
render () {
return (
<CakeChart data={data} />
);
}
const data = {
value: 100,
label: 'SUM = 100',
children: [{
value: 50,
children: [{
value: 10
},
{
value: 20
}]
}, {
value: 30
}, {
value: 20
}]
};
...
render () {
return (
<CakeChart data={data} />
);
}