antvis / antvis/G2Plot

🐛 [BUG]可滚动柱状图设置minColumnWidth后没有撑开父容器,造成柱子之间重叠

Open
#3,002 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

### 🐛 Bug description [Please make everyone to understand it]
在带滚动条柱状图示例中,当设置 minColumnWidth 大于 34 时,屏幕上展示的柱子不会撑开父容器,造成柱子之间挤压重叠
[代码示例](https://codesandbox.io/s/smoosh-water-didtj?file=/index.ts)

### 🏞 Expected result
期望可以通过设置minColumnWidth,来改变柱子的宽度,撑开父容器的宽度,并且不会造成柱子之间的挤压重叠
### 🚑 Any additional [like screenshots]
![image](https://user-images.githubusercontent.com/15188182/143836986-60f96167-f4f9-483c-85d6-a850463068a3.png)

* **G2Plot Version**: 2.3.40

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the linked CodeSandbox with G2Plot 2.3.40, focusing on the scrollable bar chart and minColumnWidth above 34. Trace the chart behavior that determines the parent width and column spacing. Done means the configured column width expands the parent container and the displayed columns no longer overlap.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.