antvis / antvis/G2Plot

柱状图开启滚动条(scrollbar),如果轴标签显示数量(tickCount)太少的话,会造成标签没有均匀分布,只显示前边部分,后边部分不显示🐛 [BUG]

Open
#3,358 0 comments 1 reaction 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]
柱状图开启滚动条(scrollbar),如果轴标签显示数量(tickCount)太少的话,会造成标签没有均匀分布,只显示前边部分,后边部分不显示🐛

> 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**:

### 📷 Step to reproduce
![image](https://user-images.githubusercontent.com/109719618/191195994-098842cd-d84f-43ca-94c9-d382da7890eb.png)

复现链接:https://codesandbox.io/s/great-browser-xhrgs0?file=/index.ts

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

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

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and G2Plot version 2.4.20, using a bar chart with scrollbar enabled and a small tickCount. Trace how axis labels are laid out when scrolling, then verify that labels remain distributed across the full data range rather than appearing only at the beginning.

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.