1、label线配置
label: {
normal: {
formatter: (params) => {
return '{b| ' + params.name + '} ' + '\n' + '{c|' + params.percent.toFixed(2) + '%}'
},
borderWidth: 0,
borderRadius: 4,
padding: [0, -60, 0, -60],
fontSize: 13,
align: 'left',
height:30,
// lineHeight:50,
color: '#3494BD',
rich: {
b: {
fontSize: 12,
lineHeight: 20,
color: '#fff',
padding: [0, -10, -5, 0]
},
c: {
fontSize: 12,
color: '#fff',
padding: [0, 0, -2, 0]
}
}
}
},