可以查看官方文档:https://www.echartsjs.com/option.html#series-pie
在series中添加代码:
label: {
show:false,
formatter:'{b}\n{c}',
position: 'center',
lineHeight:30,
emphasis: {
show: true,
textStyle: {
fontSize: '20',
fontWeight: 'bold'
}
}
},
结果如下:
参考官网实例:https://echarts.baidu.com/examples/editor.html?c=pie-doughnut