Patrick-Jun opened a new issue #13006:
URL: https://github.com/apache/incubator-echarts/issues/13006
### Version
4.8.0
### Steps to reproduce
step 1:label使用`\n`换行:formatter: '{b}\n{c}'
step 2:给label文字定义行高:lineHeigt: 18
以下是完整配置:
``` javascript
let data = [
{name: '中央环保督察', value: 100},
{name: '大气污染防治', value: 300},
{name: '水污染防治', value: 1},
{name: '土壤污染防治', value: 1},
{name: '自然生态保护', value: 100},
{name: '其他', value: 54},
]
option = {
grid: {
top: 16,
left: 0,
right: 0,
bottom: 0,
containLabel: true
},
color: ['#36C977', '#FFCC37', '#F65546', '#00A2FF', '#4B79FF',
'#A56FFF'],
// backgroundColor: '#fff',
series: [
{
name: '数据',
type: 'pie',
radius: [39.2, 52],
clockwise: false, // 逆时针
hoverAnimation: false,
avoidLabelOverlap: true,
minAngle: 5,
data: data,
label: {
fontSize: 12,
color: '#333333',
position: 'outer',
alignTo: 'edge',
margin: 0,
lineHeight: 18, // 设置了行高后,换行的标签可能会出现重叠
formatter: '{b}\n{c}(个)',
},
labelLine: {
lineStyle: {
width: 1,
opacity: 0.5,
color: '#B2B2B2'
}
},
itemStyle: {
borderColor: '#fff',
borderWidth: 1
}
}
]
};
```
### What is expected?
label不重叠
### What is actually happening?
相邻数据较小时,label会重叠
---
开启`avoidLabelOverlapin`,也是会重叠的。查了许多,也看过 issue ,这个重叠问题目前还是无法解决。

[相似issue:](https://github.com/apache/incubator-echarts/issues/11828)
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]