I have multiple energy meter kWh counters recorded from which i build via spread() hourly consumption values and I add them then via a transform to a total energy counter.
This works fine and the total kWh of all meters are shown correctly.
Then I tried to color all bars which are positive in green and all which are negative in red via threshold color, but for some reason it does not work.
It colors allways all in the same color, depending on the threshold value:
Not sure if it has something to do with it, but I noticed that it shows all bars very thin and with a gap (as if there are other bars still active) when I hide all other bars execept of the total one.
The size of the bars only change back to normal if i activate the replace all option, even that should be that same from my understanding as if I turn all others invisible via hide in area:
It is the same when I calculate my fields without transform actions.
It does not color the bars for some reason, but it fills the regions if I chose that option.
Hello, I am encountering the same issue.
I upgraded from Grafana 8.4.1 to 9.1.7 and the color schemes in all my bar charts stopped working and only show a single color.
I tried to reproduce it using TestDB Data source while deploying Grafana v.8.4.1 on Docker but not able to reproduce it.
In my case I selected the CSV File from the TestDB Data source and while using Bar chart and it shows the green color as default (as based on the threshold value).
I will suggest that if you can reproduce it by creating a test env. where version 8.4.1 is running and after update to 9.1.7 then please share the step by step instructions (will also prefer to use Data source like a TestDB or a CSV file as easy to reproduce).
Then share it with us.
If you cannot able to reproduce the issue with TestDB and only happens in your selected Data source then share a detailed screencast.