antvis / antvis/G2Plot

🐛 [BUG] 多个图表渲染 label 不显示

Open
#3,229 1 comment 0 reactions 0 assignees View on GitHub
Bug
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]

> Please provide a link by forking these links [G2Plot](https://codesandbox.io/s/g2plot-issue-template-gzfdq?file=/index.ts) or GitHub repo, a minimal reproduction.

* _Required_ **Link to minimal reproduction**:

https://codesandbox.io/s/crazy-sid-46nmm3?file=/index.ts

### 📷 Step to reproduce

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

image

* **G2Plot Version**: 2.4.17
* **Platform**: mac os 12.2.1

测试发现是配置了 layout: [{ type: "hide-overlap" }],去掉 label 就全部显示了

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and inspect the chart configuration containing layout: [{ type: "hide-overlap" }]. Reproduce the behavior in G2Plot 2.4.17, comparing label rendering with and without that layout. Done means labels render correctly for multiple charts while the hide-overlap configuration is present.

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.