Screenshot
Description
In the charts section, clicking on ‘Inv’ is not displaying any results
If there is nothing to display should there be a message stating this for better usability
Comment From: dosubot[bot]
When clicking on 'Inv' in the charts section and no legends are selected, it likely results in no data points to display, hence no output. For better usability, there should indeed be a message indicating no results. Superset uses a NoResultsComponent
to show a message when no results are returned. This component displays: "No results were returned for this query. If you expected results to be returned, ensure any filters are configured properly and the datasource contains data for the selected time range" [1][2].
To continue talking to Dosu, mention @dosu.
Comment From: rusackas
I'm unable to reproduce this. If there are no series selected, the Inverse button selects everything, as I'd expect. Tried it on line and pie charts. Let me know if I'm missing a repro step.
https://github.com/user-attachments/assets/c3c0acc0-3c9a-4d84-80dd-087349ce40ca
Comment From: praveer38
So the issue is basically the opposite of that. If all the legends are selected and we click on 'Inv', we'd get an empty chart with no data. In that case, we're requesting to have a message that says something like there's no data on the chart since no legends are selected.
Comment From: rusackas
Sorry this seems to have slipped back under the radar. Is this still an issue that you're facing in current versions (i.e. 4.1.2 or newer)? I'm not sure if any changes have been made in this area since the issue was reported.
Comment From: rusackas
This does seem to still be the case, but it'd be a feature addition, and personally I don't think is a bug.
I'll cc @kasiazjc to see if there's any design input here... and maybe @kgabryje knows a good way to hotwire that into the dashboard context for any charts with no data/results available, so we don't have to go adding it to each and every chart type.