Barchart disappears when legend is clicked

  • What Grafana version and what operating system are you using?

  • Grafana version: Grafana v11.1.0-70724 (89f6845739)

  • Data source type: LOKI

  • User OS & Browser: Windows & Chrome

  • What are you trying to achieve?
    Trying to plot a bar chart with some fields extracted from the logs. Use legends to isolate/filter bars.

  • How are you trying to achieve it?
    From the selected Loki logs, I have applied Extract Fields, Convert to Type and Sort By transformations. Interval (time type) is on x-axis, am plotting count of rows in db table. I have table name as legend.

ex table is of the form
count | interval | table_name | x1 | x2 | x3…
20000 | 02-2024 | table_1 | str_1 | str_2 | …

  • What happened?
    On clicking the legend, the chart disappears completely, on clicking the legend again it comes back on. Please refer to the screenshots

  • What did you expect to happen?
    On clicking the legend, Only the particular field containing the selected value should get displayed

Am new to grafana, so any help is appreciated… Thanks