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

Version 3.46.0 causes Area Chart Gradient to "Glitch" when Hiding / Showing Data Series #4271

Closed
Thimows opened this issue Feb 26, 2024 · 5 comments · Fixed by #4272, #4352, younginnovations/iatipublisher#1494 or sgkens/velvetvoid#11 · May be fixed by Sheitak/weather-graphics-monitoring#643
Labels
bug Something isn't working

Comments

@Thimows
Copy link

Thimows commented Feb 26, 2024

Description

When hiding or showing certain series in an Area chart, the gradient of the series starts to glitch and causes artifacts within the gradient of the series.

Steps to Reproduce

  1. Visit this codepen that renders a basic Area chart with 2 series: https://codepen.io/thimows/pen/WNmVyWb
  2. Use the legend to hide / show certain series
  3. You will notice that hiding/showing series is glitchy and causes artifacts in the gradient of the series.

Expected Behavior

The chart animates smoothly as seen on version 3.45.2 and below

Actual Behavior

The charts renders correctly, but hiding/showing data series is very glitchy and causes artifacts in the gradient of the series

Screenshots

Link to reproduce: https://codepen.io/thimows/pen/WNmVyWb

2024-02-26.om.17.07.45.mov
@Thimows Thimows added the bug Something isn't working label Feb 26, 2024
@rosco54
Copy link
Contributor

rosco54 commented Feb 27, 2024

Looking at this now. Just noting, as a clue to what might be going on, that it doesn't appear when the stroke curve is set to straight line.

@rosco54 rosco54 mentioned this issue Feb 27, 2024
5 tasks
@Thimows
Copy link
Author

Thimows commented Feb 27, 2024

@rosco54 Thanks so much!

@Thimows
Copy link
Author

Thimows commented Mar 19, 2024

@rosco54 Sorry to bother, but it seems like this is still happening on version 3.48.0 when the data series contains null values as you can see in the updated codepen: https://codepen.io/thimows/pen/WNmVyWb

Is it possible that this edge case is not accounted for?

@rosco54
Copy link
Contributor

rosco54 commented Mar 20, 2024 via email

@rosco54
Copy link
Contributor

rosco54 commented Mar 20, 2024

@junedchhipa @Thimows this issue exists in all revisions since at least 3.40.0, so I'm not treating it as high priority for me, although I will probably not be able to resist pushing further with it. Just don't expect a PR on this one from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment