antvis / antvis/G2Plot

🐛 [BUG]堆叠分组柱状图组内间距和组件间距设置问题

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

demo: https://codesandbox.io/s/g2plot-issue-template-forked-r0qbk5?file=/index.ts)

### 📷 Step to reproduce
组间间距intervalPadding和组内间距dodgePadding都是设置为0,但为什么在页面上还是会有间距呢?
image
image

### 🏞 Expected result
希望可以调整组间间距为0,跟组内间距不冲突。

### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
* **Platform**:mac OS 12.3.1 & Microsoft Edge 版本 100.0.1185.39 (正式版本) (x86_64)

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and inspect the stacked grouped bar chart handling for intervalPadding and dodgePadding. Confirm how both values are applied when set to zero, then verify that the resulting chart has no unintended group or component spacing.

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.