apache / apache/echarts

[Bug] textStyle is invalid when formatter and richText renderMode are being used in the tooltip

Open
#20,240 3 comments 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.5.0

### Link to Minimal Reproduction

PYBwLglsB2AEC8sDeAoWsA2BTA5l6AJgFzJrqxigkBEARsGJQLbUA0Z6BAhmFyQNrVA8IaBEFWoBdMgF926SsAyQQJVOQoAnCDjzqA8tBrQYWNh1hcMAdy4BPAM4BlABbBLAYRhh8YEmHUBXLFlyEGA7CEgYEgAzf2gAY0joAApwAEpSNXR1LDB_dTh

### Steps to Reproduce

use richText renderMode
use formatter
add textStyle

tooltip: {
renderMode: "richText",
formatter: Data: {c},
textStyle: {
fontSize: 60,
fontWeight: "500",
fontFamily: "My-Custom-Font",
},
},

### Current Behavior

![223350153-d20ebfc0-7823-42b8-b66b-89664ba09559](https://github.com/user-attachments/assets/d989f356-f69c-4e68-b3f5-64e761745b13)

### Expected Behavior

![223353773-b1a05017-011e-49a0-a79f-e87ad9d3fdf3](https://github.com/user-attachments/assets/21d6b23f-7c14-4086-9c3f-34505e857b65)

### Environment

```markdown
- OS: macOS Ventura
- Browser:
- Framework: React / React native
```

### Any additional comments?

I have used the same chart option for tooltip in react native framework also, but the result is same as web (as mentioned above).

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.