Hi, I am using Grafana 8.1.7. I am trying to build a stacked bar chart like this:
The table view for it looks like this:
Bento_Test_3 | Bento | Bento_Test_2 | Bento_Test | device state
4 | 1| 8| 3| Offline
| | | 2| Online
I am looking for a way to set different color for each numeric column dynamically, because I don’t know in advance how many numeric columns there are and what their names are, as they are dynamically generated by a complex sql query.
The description of “Classic palette” option provided in the documentation looks quite suitable:
“Grafana will assign color by looking up a color in a palette by series index”.
But when I try to apply it, it sets different colors only in the legend but all the bars get colored the same way and I don’t get why:
Any idea why it happens? Or perhaps there is another solution for it?
Thank you!