要做这样一个饼状图,但是数值小的部分,半径太小了,几乎看不见了,不懂这个代码。。。。请大家帮忙调整下,谢谢
配置项如下
option = {
backgroundColor: '#2c343c',
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
visualMap: {
show: false,
min: 0,
max: 0,
inRange: {
colorLightness: [0, 1]
}
},
series: [{
name: '数量分布',
type: 'pie',
radius: '50%',
center: ['50%', '50%'],
data: [{
value: 3,
name: '总经理'
}, {
value: 3,
name: '销售总监'
}, {
value: 1,
name: '副总经理'
},{
value: 1,
name: '技术总监'
},{
value: 5,
name: '技术人员'
},{
value: 17,
name: '销售人员'
},{
value: 4,
name: '职务不明确'
},{
value: 13,
name: '其他(无反馈)'
},
].sort(function(a, b) {
return a.value - b.value
}),
roseType: 'area',
label: {
normal: {
textStyle: {
color: 'rgba(255, 255, 255, 0.3)'
}
}
},
labelLine: {
normal: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.3)'
},
smooth: 0.1,
length: 80,
length2: 10
}
},
itemStyle: {
normal: {
color: '#42408a',
shadowBlur: 50,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}]
};