antvis / antvis/F2

自定义tooltips无法使用

Open
#1,794 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://f2.antv.antgroup.com/examples/area/area/#gradient](https://f2.antv.antgroup.com/examples/area/area/#gradient)

### Steps to reproduce
最新版可复现,官网demo也可复现,随便在一个面积图加
测试自定义tip}/>
就报错了,还有什么方式能自定义Tooltip内容?

| Environment | Info |
|---|---|
| f2 | 5.0.25 |
| System | - |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Start with the linked area/gradient reproduction using F2 5.0.25, then add the shown Tooltip component with showCrosshairs and customText to confirm the error. Investigate the Tooltip custom-content behavior and determine a supported way to render the requested text without an error; done means the reproduction works with custom tooltip content.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.