Gauge indications for negativ to positiv value range

I would like to display the charge/discharge power of my solar battery with a gauge or donut.
To configure the gauge or donut is easy, but what is not working very well is the colouring.

As example for a value range of -3000 to +3000 I would like to have no colouring if value is 0, green from 0 to the actual positiv value and red from 0 to the actual negativ value.
For a donut, I would like to have 0 on top (12 o'clock) and also here same colouring already described. Now 0 is at the bottom (6 o'clock) and colouring always starts at -3000.

How is it possible to achieve this behaviour?

the simple gauge can be set as you desire


the donut does always start from the top - though that could be a nice option to add.

This is not possible with regular gauge.
One and only gauge which has differential mode is node-red-contrib-ui-artless-gauge


Of course it has different graphics and may not suit for your needs. If so, there is not much more options than you'll need to use some other JavaScript library for gauge where differential option is supported.

1 Like

Thanks for your example. It is exactly how I did it, but as you can see, colouring always starts at the lowest value.
Bildschirmfoto 2020-04-08 um 12.15.50

Thanks a lot for the tip to use artless-gauge. I will give it a try.

And it may end up in default gauge one day -

That's exactly what I'm looking for. But it's sad, that there seems to be no progress until now.

There was already a discussion about it, which I didn't found during my search:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.