-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Plot] Removing objects from a stacked plot, will not remove them from the legend #5834
Comments
Not a dupe - this is for stacked plots. That one is for overlay plots |
The issue appears to be we're creating at least two versions of a We're listening to the |
Unverified Testathon 1/24/23 When I add plots to a stacked plot, then remove one from the elements pool, that element does get deleted, but the remaining plot gets duplicated in the canvas and legend. Note the two pics below: I added enabledFlag and a Sine Wave Generator to a stacked plot. I then deleted enabledFlag, and in the second picture, notice that enabledFlag is deleted, but now there are 2 Sine Wave Generators in the canvas and legend, but there's only ONE element in the elements pool. |
Verified fixed Testathon 2023-01-24. |
Assigning to @rukmini-bose and @charlesh88 to determine what to do with the current state |
The behavior I commented on happens pretty often. I think we need to fix this. This could be considered data loss– especially if removing one plot is removing the wrong one. |
This needs to be fixed if at all possible, it leads to very confusing and misleading states while editing a stacked plot. |
this should be fixed by #6206 |
Verified fixed 02-02-2023 |
Summary
When you remove an item from a stacked plot, it will continue to be in the legend until you refresh or navigate away and come back. From cursory investigation, these event listeners are never triggered, because they are never fired from series collection.
Definitely needs further investigation.
Expected vs Current Behavior
Items should be removed from the legend, when removed from a stacked plot.
Steps to Reproduce
Environment
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: