antvis / antvis/G2Plot

🐛 [BUG] labels are partially obscured when the values approach the maximum of the y-axis on the chart

Open
#3,612 0 comments 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

### labels are partially obscured when the values approach the maximum of the y-axis on the chart
> [minimal reproduction.](https://codesandbox.io/s/trusting-thunder-8fh374)
### 📷 Step to reproduce

### 🏞 Expected result
### 🚑 Any additional [like screenshots]
![image](https://github.com/antvis/G2Plot/assets/13815865/ce384ca6-23e9-431a-8f00-3f220a2f9e7b)

* **G2Plot Version**:
"@ant-design/charts": "^1.4.2",
"@ant-design/plots": "^1.2.5",
"@antv/g2plot": "^2.4.31",
* **Platform**:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Contributor guide

Open the contributing guide

Research direction

Start with the minimal reproduction in the linked CodeSandbox and inspect how chart labels render when values approach the maximum y-axis value. Reproduce the clipping in the listed G2Plot or Ant Design Charts versions, then verify that labels remain fully visible near the axis maximum without regressing normal chart rendering.

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.