Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacked Area Chart has one series draw out of proportion. #4886

Open
blogcraft opened this issue Dec 20, 2024 · 4 comments
Open

Stacked Area Chart has one series draw out of proportion. #4886

blogcraft opened this issue Dec 20, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@blogcraft
Copy link

blogcraft commented Dec 20, 2024

Description

I have a Stacked Area Chart with n Series. But for some reason some series just go nuts when drawn in screen.

Steps to Reproduce

  1. Create a Stacked Area chart
  2. Add 3 series with data
  3. show them together

Expected Behavior

Chart should visually represent the data

Actual Behavior

Chart don't represent the data.

Screenshots

Just C Series (looks good):
image

A + B Series (still ok).
image

But add B + C (and C gets mad!)
image

All Combined:
image

Reproduction Link

https://jsfiddle.net/jysntgfr/

@blogcraft blogcraft added the bug Something isn't working label Dec 20, 2024
@Kalavida
Copy link

Kalavida commented Jan 5, 2025

I would like to work on this, if no one has picked this up yet

@Kalavida
Copy link

Kalavida commented Jan 7, 2025

Hey @blogcraft by the looks of it the chart is behaving unexpectedly due to mismatch in the number of entries for the chart B. Some timestamps seems to be missing once you fill those up it should behave as expected.
Missing values: 1688097600000, 1672455600000, 1675134000000
Do let me know if you face any issues even after adding the missing values!

@blogcraft
Copy link
Author

@Kalavida Thanks for the response.

It is true that some data is missing, and it is ok to be missing. I can't just invent a value, not even 0. the thing is that the behaviour is inconsistent, and it should not act as it currently does. The behaviour should be that is there is no data in a date them not show a value.

@Kalavida
Copy link

Kalavida commented Jan 8, 2025

@blogcraft I'm not sure if stacked charts would fit your usecase then, could you explain more on what your use case is and what you expect to see on the graph when values are missing? This could help in defining the behaviour for these cases if it fits for these kinds of charts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants