MarvelSQ opened a new issue #10024: 雷达图name使用富文本,tooltip会显示多余样式名称‘{a|....}’
URL: https://github.com/apache/incubator-echarts/issues/10024
### Version
4.2.1-rc.2
### Reproduction link
[https://echarts.baidu.com/examples/editor.html?c=radar](https://echarts.baidu.com/examples/editor.html?c=radar)
### Steps to reproduce
复制option到在线编辑器中
```javascript
const option = {
title: {
text: '基础雷达图'
},
tooltip: {},
legend: {
data: ['预算分配(Allocated Budget)', '实际开销(Actual Spending)']
},
radar: {
// shape: 'circle',
name: {
textStyle: {
color: '#fff',
backgroundColor: '#999',
borderRadius: 3,
padding: [3, 5]
},
formatter:'{a|{value}}',
rich:{
a:{
align:'center'
}
}
},
indicator: [
{ name: '销售\n(sales)', max: 6500},
{ name: '管理\n(Administration)', max: 16000},
{ name: '信息\n技术(Information Techology)', max: 30000},
{ name: '客服\n(Customer Support)', max: 38000},
{ name: '研发\n(Development)', max: 52000},
{ name: '市场\n(Marketing)', max: 25000}
]
},
series: [{
name: '预算 vs 开销(Budget vs spending)',
type: 'radar',
// areaStyle: {normal: {}},
data : [
{
value : [4300, 10000, 28000, 35000, 50000, 19000],
name : '预算分配(Allocated Budget)'
},
{
value : [5000, 14000, 28000, 31000, 42000, 21000],
name : '实际开销(Actual Spending)'
}
]
}]
};
```
### What is expected?
tooltip中不存在样式名称
预算分配(Allocated Budget)
销售(sales):123
管理(Administration):123
...
### What is actually happening?
tooltip 类别名称出现样式名称
预算分配(Allocated Budget)
{a|销售(sales)}:123
{a|管理(Administration)}:123
...

<!-- 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 GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]