I am using Grafana version 8.5.10 on Windows 10 (but the same on Grafana 9.3.6), Sql Server as data source.
I have a difference between legend (and tootltip) colors and plot colors on Time Series Panel. The colors are different and the right ones are the colors of the plot:
If I re-render the plot (reload page, reload dashboard, close and reopen the corresponding row) all the colors adjust in the right way:
Then if I change the plot in some way (changing time span, changing some dashboard variable values that are included in the queries ect.) the plot changes again its colors in a wrong way.
I have a set of different queries and no Transforms.
The colors scheme selected is “Classic palette”.
I think the problem is in the assignment of the colors on classic palette when there are multiple queries and some can be empty.
If I manually disable the queries that are empty then the time series always behaves correctly.
It seems that the colors on legend and tooltip are assigned wrongly assuming that the empty queries have some values, but the colors of the plot are correctly assigned based only on the query that actually have values.
Thanks