-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix stacked area hide show bug #7668
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
Conversation
src/traces/scatter/plot.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're making _ownFill and _nextFill null, the if checks will always fail. So, let's delete them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camdecoster Tragically, _ownFill and _ownfill, as well as _nextFill and _nexttrace, are separate variables. 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, fair enough. I have words about this, but I won't include them here publicly.
...ide/show operations in legend
bcd7e49 to
44bc554
Compare
Uh oh!
There was an error while loading. Please reload this page.
Closes #7660
Fixes issue where some traces in stacked area charts were not rendering their fill correctly after certain sequences of hide/show operations in the legend.
Steps to test
Reproduce existing issue
- The orange trace should be missing a fill. This is the bug.
Screenshot 2025年12月08日 at 5 47 23 PMConfirm that this PR fixes the issue
- In the Codepen, replace the plotly.js script
- Repeat the steps under (2) above
- All trace fills should render normally.
Screenshot 2025年12月08日 at 5 49 23 PMsrcwith the build for this branch from the CI: https://output.circle-artifacts.com/output/job/c4caeb45-0a0b-4e23-97b6-ebb26b8561c8/artifacts/0/dist/plotly.js