Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OSD - latest version
Describe the issue:
When the dashboard is loaded it does not show any legend.
when a filter is applied and it has no data in the bar visualization then it shows no results.
Now after the filter is removed. the visualization shows the legend.
This should not happen.
It should hide the legend.