apache / apache/echarts

[Bug] tooltip setting rich and formatter is invalid

Open
#21,540 1 comment 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.3.2

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=area-basic

### Steps to Reproduce

配置项设置 tooltip:{
trigger:"axis",
renderMode: "richText",
rich: {
a:{
color:'#fff'
}
},
formatter:'{a|测试样式}',
},

### Current Behavior

Image
tooltip样式未修改

### Expected Behavior

tooltip样式修改为红色

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

设置tooltip的formatter与rich属性,结果没有生效rich样式。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.