apache / apache/echarts

[Bug] Stacked chart going beyond 100%

Open
#20,722 1 comment 0 reactions 0 assignees View on GitHub
bug en topic: stack
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
15h 17m
Merged PRs (30d)
5

Description

### Version

5.6.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=bar-stack-normalization&code=PTAEBUAsFMCdtAZ0gewK4BsAmoB2KAXUAIwV2gHMBDAgSwDcF6qM1pFRbdRYqB3ACI0qAKADGKXIiK9Bw0AF5QAbRGgVANgA0oAAw6AzLoBMh3QEZDBgCyGAnPtAGjh47oC6WtStuhrADn8dcwNTUHMLYJsdBx1jF1BjCM9vZWtHdOD_MPM7S0ToxNinBINkr3VlbT848zC3fPMAVl9cx2cM8tSwx39QmMjQO0K64pCEkLd3EXcAbhERZX9ba2ttU3NrFyaXUz2tCK1rfc2tJuMVrViIpMCj_aDTINtTWNtzdYOg5t1frT2AOzaJqffz6fqmF5HLRg9wAOgAZihYABRKhiSAACm4CgAfKAAN7eWRCAhUOEABzQyExylwOkcjIZzL0DPcAEp5gBfTkLCRSFAYaBwjAoCiYgk8fikqigHl8yTSUAEQgsGWKFRzERI2CgTFCoi0DW6WacUAAHilcjJyg8IuguAoBEgpoA1K7aOzCd4DUg0ABbY3zdQ6vW-gBWQdAkctJOE9sdzrdrvDXqJ6nUiADoFdSjjNvD7mUtC16i53hVZIwMsp1KxWf9vPL_KVFFgtBwSnToCFCIIAC5wn9ibQKJAB0P9BWUBTB00p-piIQVf657oRFz5i2iIg4LR2BrVOoXN4AOQAWSotAwoAAglhTxVQKfbwiEdfaDQEPfH2eAGodtAKB3g-T6ngAytAVCwBioAoo6XDQL-6jLEcaz_AcWz6Ds-j7Bs-jHBhpznJc1wmOYdyEU8GHPBhbwHJ8FEHPOfyAsCoLgvsUK2GCMxwv6VAUpi2JUP60A6IgHZeni3rqPABBoLA3DduouCieJ3jqAQACeFLQIOp7ENByEZtI6IANYGZWLAmYu0EAOods6BkaLoACktk9lQpAYIOKmmagfCDgQsBsE-GagDqAkEAQcCDpiFLQaJiDSfil7OnCsDoLgWAJUl_qIHCzCsAgABUk66F6YARDmz4eZpcrhaAWDCIO-ZUMoklYPCAlCZiWA6FgUmKLiDVaaq1bCMoQ3dRaSi6KAAD8eigIOOBgNZk02jN0wRey3ibhuvIiDOdCSBq3ZChQDpYH5DW7kKYixVg54oFg-mRSwu4HU-bYdk-2m3gAHrQiB3RFOl6QZxVsKeP3eEDwOg-DGaQx9p5iF-FDItpnktWSg7KAkF6SI-z7gLDOinvZ0CgeTkBoGTp4AGLtkz4E0OzaC4Keu2Nd4u7tuwG6zEAA

### Steps to Reproduce

I used the example for stacked chart and included the data I am currently working with on it.

### Current Behavior

Its having a maximum of 1.2

### Expected Behavior

IT should be 100% stacked, which means 1.0

![Image](https://github.com/user-attachments/assets/1934dddc-4efa-46ff-b56b-3ce90fb5dc97)

### Environment

```markdown
- OS: windows
- Browser: chrome
- Framework: official sandbox
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Research direction

Open the linked minimal reproduction for the bar-stack-normalization example and confirm that the stacked chart reaches 1.2 instead of 1.0. Trace the normalization behavior behind that example, then verify that the chart is limited to a 100% stack and reproduce the result in the reported Chrome environment.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.