Echarts饼图每一份中间留白色(关注我, 帮你解决前端疑难杂症,)

option = {
tooltip: {
trigger: ‘item’,
formatter: “{a}
{b} : {c} ({d}%)”
},
series: [{
name: ‘库存情况’,
type: ‘pie’,
radius: ‘68%’,
center: [‘50%’, ‘50%’],
clockwise: false,
data: [{
value: 45,
name: ‘CARD’
}, {
value: 25,
name: ‘SSD’
}, {
value: 15,
name: ‘U盘’
}, {
value: 8,
name: ‘嵌入式’
}, {
value: 7,
name: ‘FLASH’
}],
label: {
normal: {
textStyle: {
color: ‘#999’,
fontSize: 14,
}
}
},
labelLine: {
normal: {
show: false
}
},
itemStyle: { // 此配置
normal: {
borderWidth: 4,
borderColor: ‘#ffffff’,
},
emphasis: {
borderWidth: 0,
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: ‘rgba(0, 0, 0, 0.5)’
}
}
}],
color: [
‘#00acee’,
‘#52cdd5’,
‘#79d9f1’,
‘#a7e7ff’,
‘#c8efff’
],
backgroundColor: ‘#fff’
};

你可能感兴趣的:(Echarts饼图每一份中间留白色(关注我, 帮你解决前端疑难杂症,))