# Ui\_gauge is there a way to colour sectors from centre (zero)

**URL:** <https://discourse.nodered.org/t/ui-gauge-is-there-a-way-to-colour-sectors-from-centre-zero/56293>\
**Category:** Dashboard\
**Created:** [8 January 2022 11:30 UTC](https://discourse.nodered.org/t/ui-gauge-is-there-a-way-to-colour-sectors-from-centre-zero/56293 "2022-01-08T11:30:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![affinite](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@affinite](https://discourse.nodered.org/u/affinite)\
**Post date:** [8 January 2022 11:30 UTC](https://discourse.nodered.org/t/ui-gauge-is-there-a-way-to-colour-sectors-from-centre-zero/56293/1 "2022-01-08T11:30:58Z")

</div>

Hi  
I'm trying to format a ui-gauge to display a range of values (of electrical current) from -30 to +30.  
I'd like the gauge to show a red coloured arc starting from centre zero when the value is negative and a green arc when the value is positive. The default behaviour is for the colour sector to start at the gauge min

Is there way to change behaviour of ui\_gauge so that coloured sectors start from a center zero rather than value min?  
I've looked through the reference for `msg.ui_control` but cant find what Im looking for.  
Many Thanks  
NR V1.2.9

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 January 2022 12:18 UTC](https://discourse.nodered.org/t/ui-gauge-is-there-a-way-to-colour-sectors-from-centre-zero/56293/2 "2022-01-08T12:18:46Z")

</div>

Hi - no that is not possible with the standard gauge - but I think the artless gauge can do it - [node-red-contrib-ui-artless-gauge (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-ui-artless-gauge)

---

<div class="post-metadata">

**Author:** ![affinite](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@affinite](https://discourse.nodered.org/u/affinite)\
**Post date:** [8 January 2022 12:32 UTC](https://discourse.nodered.org/t/ui-gauge-is-there-a-way-to-colour-sectors-from-centre-zero/56293/3 "2022-01-08T12:32:30Z")

</div>

dceejay  
Thanks for taking the time to respond. I'll try the artless

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 February 2022 12:32 UTC](https://discourse.nodered.org/t/ui-gauge-is-there-a-way-to-colour-sectors-from-centre-zero/56293/4 "2022-02-07T12:32:53Z")

</div>

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