-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Applying a filter and then switching tab on a dashboard results in a blank table chart #10349
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Occassionally the table chart will render when you switch tabs. If it does, switch back to the first tab, change the filter, and switch back to the tab with the table. Eventually you should get the table as a blank box. |
Thanks for reporting! Will investigate. |
Reproduced, I think I found the problem. |
Sorry, I flagged the wrong ticket, i.e. haven't been able to investigate this yet. @ktmud Do you think this might be related to the Table Chart remake? |
FWIW the same thing happens with the world map chart |
@graceguo-supercat is this something you've bumped into (=charts on other tabs not rendering correctly after filter box changes)? |
Here is a video demonstrating the issue: https://drive.google.com/file/d/1bP7IwYiKABOcz4Wgljldjrl6-2eQ8Eqo/view?usp=sharing The table is blank after applying a filter change. The pie chart works as expected. |
Also just wanted to add that this happens in the latest versions of the 3 major browsers (Safari, Chrome, Firefox). I only tested this on a Mac. |
This issue isn't quite fixed for the table chart. If you select a filter with no rows, switch tabs, then the table shows a "No data" message as expected. Now if you switch to the filter tab, change to a filter with data, then switch to the table's tab, the table is blank. Setting "sticky" to false on DataTable resolves this issue: It looks like this can be set in MainPreset.js rather than superset-ui. I'll open a PR to disable the sticky option (but I'm not sure of any consequences for doing this). The world chart doesn't have an issue so this seems fixed. |
I created a PR to disable the sticky header option if you want to go this route: |
This PR was bad so I closed it. It will be a little bit more involved to disable the sticky option (if that were even something we wanted) |
Here's another video running the latest 0.37 branch that shows the existing issue. |
There is also an issue with the height of the render area that I also believe is related to the "sticky" setting. Here's another demo: https://drive.google.com/file/d/1PWUVnpud8N3HIYROns304IEawoEGP1xF/view?usp=sharing |
OK. So the fix doesn't completely work when table height changes. Sticky header is important to user experience, I don't think we should disable it. The problem really is with bootstrap tab switches. I'll try to look for a more robust fix soon. |
If you have a dashboard with tabs, a filter box on the first tab and a table chart on a different tab, when you apply a filter then switch tabs, the table chart will be a blank box. This also affects the world map chart
Expected results
The table chart should render the data as expected.
Actual results
The table is a blank box. If you force refresh the chart from the ellipsis menu, then it will render. Also, if you resize the browser window, it will render.
Screenshots
How to reproduce the bug
Environment
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: