参考链接(https://blog.csdn.net/flting1017/article/details/79743598?utm_source=blogxgwz2)
backgroundColor : '#fff',series: [{type: 'pie',radius: ['30%', '60%'],data: [{ value: 20, name: '研究开发' },{ value: 80, name: '验证使用' },],itemStyle: {borderWidth: 5,borderColor: '#fff', //注意,边框颜色要与背景颜色一样;},label: {show: false, //是否在图上显示标签;label: {show: true,formatter: '{d}' + '%',},},};
效果如下:
