antvis / antvis/G2Plot

柱状图,X轴设置了字体后,自适应padding右侧会留有空隙

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

Description

* **G2Plot Version**: latest
* **Platform**: Mac, Google
* **Mini Showcase(like screenshots)**:
没有空隙:
![image](https://user-images.githubusercontent.com/24775952/118216750-aaea8880-b4a6-11eb-99bd-5050e4a7788d.png)

有空隙:
![image](https://user-images.githubusercontent.com/24775952/118216794-c190df80-b4a6-11eb-8571-f2fba100cb1c.png)

* **CodePen Link**:
https://codepen.io/yangguansen/pen/KKNPoVr

柱状图,X轴设置了字体后,自适应浏览器宽度时,某些宽度下,右侧会留有空隙

Contributor guide

Open the contributing guide

Research direction

Start by opening the linked CodePen reproduction and comparing the two screenshots at different browser widths. Trace how the bar chart calculates responsive padding when an X-axis font is configured. Done means the right-side gap no longer appears at the affected widths while the chart remains correctly padded.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.