antvis / antvis/G2

[Bug]: 柱状堆叠图设置柱子的最小高度时,堆叠以上的柱子不会按照最小高度来堆叠而是按照原本的数据高度来堆叠

Open
#6,731 2 comments 1 reaction 0 assignees View on GitHub
bug 🐛
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

柱状堆叠图设置柱子的最小高度时,堆叠以上的柱子不会按照最小高度来堆叠而是按照原本的数据高度来堆叠

![Image](https://github.com/user-attachments/assets/7d6f632b-bb15-44e2-bea1-8520f26a93ab)
以上图片的商城柱设置了最小高度,堆叠之后有重合,没有按照最小的高度来堆叠展示。

### Reproduction link / 复现链接

_No response_

### Steps to Reproduce the Bug or Issue / 重现步骤

_No response_

### Version / 版本

5.2.12

### OS / 操作系统

- [x] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

Open the contributing guide

Research direction

No reproduction link, steps, files, or tests are provided. Start by reproducing the stacked bar chart in G2 5.2.12 with a minimum bar height, then inspect the stacking behavior for segments above the minimum-height segment. Done means stacked bars no longer overlap and each segment is positioned using the displayed minimum height.

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.