antvis / antvis/G2Plot

🐛 [BUG]分组柱状图,只有一组的情况下显示异常

Open
#3,341 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 [分组柱状图,只有一组的情况下显示异常]

- https://codesandbox.io/s/g2plot-issue-template-forked-fikvrn

### 📷 Step to reproduce
- 分组柱状图,数据data只有一组的情况
- options设置,dodgePadding: 0
- 柱状图无法显示

### 🏞 Expected result
![image](https://user-images.githubusercontent.com/44499686/187614240-656ba4c1-1150-4bcb-b2a3-9f95014ff720.png)

### 🚑 Any additional [like screenshots]

* **G2Plot Version**: 2.3.35
* **Platform**: chrome

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and verify the behavior in Chrome using G2Plot 2.3.35. Exercise a grouped bar chart with one data group and dodgePadding set to 0; done means the bars render as shown in the expected-result image.

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.