echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] 在堆叠柱状图的barMinHeight设置后有高度但是不会占据实际空间,会和其他堆叠柱状图重叠

Open renqiankun opened this issue 2 years ago • 4 comments

Version

5.5.1

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/axis-align-with-tick-tgv48g

Steps to Reproduce

实例 https://codesandbox.io/p/sandbox/axis-align-with-tick-tgv48g

Current Behavior

堆叠柱状图设置barMinHeight后 不占据实际高度,会和其他bar重叠,在5.2.2版本可以, 之后的版本都不行

Expected Behavior

设置的minHeight会占据实际位置,不会和其他bar重叠

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

renqiankun avatar Nov 07 '24 02:11 renqiankun

Seems to be introduced since v5.3.0

Ovilia avatar Nov 07 '24 06:11 Ovilia

easy workaround until fixed Replace barMinHeight with data pre-processing + tooltip formatting Demo image

helgasoft avatar Nov 07 '24 20:11 helgasoft

easy workaround until fixed Replace barMinHeight with data pre-processing + tooltip formatting Demo image

这种方式是使用数据撑开高度, 不能设置堆叠柱状态固定一个高度

renqiankun avatar Nov 08 '24 01:11 renqiankun

I have a fix with unit tests for this (since 5.3.0 the stacked bar layout no longer passes the extra height from barMinHeight on to the bars stacked above) and will open a PR against release shortly.

adityajai119 avatar Nov 09 '26 18:11 adityajai119