echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] multiple bar overlap

Open Fangtzu1024 opened this issue 7 months ago • 1 comments

Version

5.4.0

Link to Minimal Reproduction

no

Steps to Reproduce

I want to create a bar chart with the x-axis displaying six dates from 2024/01 to 2024/06. For each date, there will be two bars, A and B, or possibly more. Each bar will consist of two overlapping segments: a wider "plan" segment and a narrower "actual" segment, which makes it easier to compare the differences between "plan" and "actual." The barGap parameter applies uniformly across all bars, so it cannot be configured individually. What other methods can be used to achieve this?

Image

Current Behavior

Using barGap will apply to all bars uniformly.

Expected Behavior

To apply it to specific bars only.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Fangtzu1024 avatar May 27 '25 09:05 Fangtzu1024

not-a-bug, this is a how-to question. See #20296 for ideas.

helgasoft avatar May 28 '25 04:05 helgasoft