-
Grafana version: v10.2.3 via webapp
-
Goal: a simple bar chart showing two histograms overlaid
-
How: histogram panel is too limiting so i’m doing the bucketing myself in SQL and displaying using a bar chart panel. The SQL outputs three numerical columns, one of the rounded bucket variable, and two of the two counts-per-bucket. I’m applying only a names transformation, everything else is in the SQL, and the problem is still present even if i remove that transformation.
-
Problem: the legend displays the name and color of just one of the two counts-per-bucket series, and also the name and color of the bucket variable itself, which of course is not shown directly and does not need a color—it’s just the X-axis
-
What I expected: the legend would display the name and color of the two counts-per-bucket series that form the two sets of bars in the chart
Raw table view output:
Bar chart panel as it’s displaying now:
How can I fix the legend? Thanks!