apache / apache/superset

Line chart legend resets it's state whenever you scroll down the page

Open
#31,741 13 comments 2 reactions 1 assignee Claimed by @alex241728 View on GitHub
viz:charts:line
Dominant language
Python
Stars
74.8k
Forks
18.3k
Avg merge
2d 7h
Merged PRs (30d)
692

Description

### Bug description

1. Create a dashboard long enough that you have to scroll down
2. Create a line chart with legends on
3. Select any category, using inv or all or only one
4. Scroll down until you can't see the chart anymore
5. Go back to it, the state of the legend will be reset

### Screenshots/recordings

![chart_error_1](https://github.com/user-attachments/assets/d7ba6592-daeb-4e97-a7f9-e35f02068f74)

### 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

- [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.