You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue you're experiencing with the line chart legend resetting its state when scrolling might be related to how Superset manages the visibility of chart components. Superset uses the IntersectionObserver API to determine if a component is in view, which could potentially affect the state of interactive elements like legends when they are scrolled out of view and then back into view [1].
Additionally, the event listeners attached to the line chart component, such as legendselectchanged, legendselectall, and legendinverseselect, are responsible for updating the legend state when interactions occur. However, these handlers might not be preserving the state when the chart is scrolled out of view [2].
To address this issue, you might need to look into how the state of the legend is being managed and consider implementing a mechanism to persist the state across scroll events. This could involve storing the state in a more persistent way, such as in a global state or using local storage, to ensure it is retained when the chart is scrolled back into view.
Hello, same here, any idea how to fix this? Is it already tracked in an other issue maybe? we run superset 4.1.1 and embed charts in a react app with iframe, using chrome latest version
Bug description
Screenshots/recordings
Superset version
4.0.2
Python version
I don't know
Node version
I don't know
Browser
Chrome
Additional context
We are using Apache Druid
Checklist
The text was updated successfully, but these errors were encountered: