@前端学习笔记
南丁格尔玫瑰图之半圆
option = {
legend: {
top: 'top'
},
toolbox: {
show: false
},
series: [
{
name: 'Nightingale Chart',
type: 'pie',
radius: ['10%','70%'],
center: ['50%', '50%'],
startAngle: 0,
roseType: 'area',
itemStyle: {
borderRadius: 8
},
data: [
{ value: 40, name: 'rose 1' },
{ value: 38, name: 'rose 2' },
{ value: 32, name: 'rose 3' },
{ value: 30, name: 'rose 4' },
{ value: 28, name: 'rose 5' },
{ value: 0, itemStyle: {normal: {color: "rgba(0,0,0,0)"}}},
{ value: 0, itemStyle: {normal: {color: "rgba(0,0,0,0)"}}},
{ value: 0, itemStyle: {normal: {color: "rgba(0,0,0,0)"}}},
{ value: 0, itemStyle: {normal: {color: "rgba(0,0,0,0)"}}},
{ value: 0, itemStyle: {normal: {color: "rgba(0,0,0,0)"}}},
]
}
]
};
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/828e9baa23d854277d705029aebd7a8b.png#pic_center)