series: [
{
name: seriesName,
type: 'pie',
radius: ['30%', '60%'],
avoidLabelOverlap: true,//这个开启就可以了,避免标签重叠的意思
label: {
normal: {
show: true,
position: 'outside'
},
emphasis: {
show: true,
textStyle: {
fontSize: '10',
fontWeight: 'bold'
}
}
},
labelLine: {
normal: {
show: true,
length: 5,
length2: 2,
lineStyle: {
color: '#333'
}
}
},
data: seriesData
}
],
Echarts指示线当中解决文字重叠
最新推荐文章于 2023-07-24 14:56:29 发布