apache / apache/echarts

[Bug] multiple bar overlap

Open
#20,999 1 comment 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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](https://github.com/user-attachments/assets/71bc286f-21a3-400d-bf5d-f090d6a979b3)

### Current Behavior

Using barGap will apply to all bars uniformly.

### Expected Behavior

To apply it to specific bars only.

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.