antvis / antvis/G2Plot

🐛 [BUG] 折线图canvas模式折线下边沿的label不显示

Open
#2,727 3 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Bug description [Please make everyone to understand it]
折线图canvas模式下线下label不显示,并且SVG和canvas下表现不一致(当图例的容器宽度比较小,label的文本多,部分label会往挤到下面,这个时候会触发)
canvas下
![image](https://user-images.githubusercontent.com/20167817/126885954-b7972eb7-7b29-4ada-80cf-f17138b5e8a1.png)
svg下( svg下展示了所有数据,我觉得这个因该是正确的)
![image](https://user-images.githubusercontent.com/20167817/126885945-25d17b59-e341-4d41-9cec-f8b41afe4840.png)

### 💻 Link to minimal reproduction
https://codesandbox.io/s/stupefied-forest-c5dqm
### 📷 Step to reproduce
### 🏞 Expected result
应该和svg下表现一致
### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and compare the line-chart label layout in canvas and SVG modes, especially when the legend container is narrow and labels wrap. Done means the canvas rendering displays the same lower-edge labels as SVG in that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
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.