antvis / antvis/F2

自定义Tooltip内容 如何实现文本两行展示?

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

Description

f2:4.0.44
```
{
console.log(111, record);
const { name, value } = record;
return (




);
}}
/>
```
flexDirection: 'column'这种能实现两行但是辅助线会盖到tooltip里的文字上,求助怎么实现

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by tracing the Tooltip component and its customText and crosshair rendering paths, then reproduce the supplied two-line example. Done means the tooltip displays both lines without the crosshair covering its text.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.