# Upgrade ui\_gauge Library

**URL:** <https://discourse.nodered.org/t/upgrade-ui-gauge-library/4255>\
**Category:** Dashboard\
**Created:** [24 October 2018 10:14 UTC](https://discourse.nodered.org/t/upgrade-ui-gauge-library/4255 "2018-10-24T10:14:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohessel](https://avatars.discourse-cdn.com/v4/letter/o/a9a28c/32.png) [@ohessel](https://discourse.nodered.org/u/ohessel)\
**Post date:** [24 October 2018 10:14 UTC](https://discourse.nodered.org/t/upgrade-ui-gauge-library/4255/1 "2018-10-24T10:14:12Z")

</div>

Hi there,  
are you thinking of updating the underlying lib for gauges?

I'm looking for the possibility to configure more than 3 sectors in the gauge.

The latest [https://github.com/toorshia/justgage](https://github.com/toorshia/justgage) would be from September 26, 2016. - release 1.2.9, currently there's 1.2.2 integrated.

best,  
Oliver

---

<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:** [24 October 2018 10:51 UTC](https://discourse.nodered.org/t/upgrade-ui-gauge-library/4255/2 "2018-10-24T10:51:05Z")

</div>

Well the latest on npm is still 1.2.2 so not really easy. 🙂  
Also there are currently no plans to add extra segments to the configuration ui.

---

<div class="post-metadata">

**Author:** ![ohessel](https://avatars.discourse-cdn.com/v4/letter/o/a9a28c/32.png) [@ohessel](https://discourse.nodered.org/u/ohessel)\
**Post date:** [24 October 2018 15:30 UTC](https://discourse.nodered.org/t/upgrade-ui-gauge-library/4255/3 "2018-10-24T15:30:19Z")

</div>

Thanks for the info, I contacted the maintainer what he thinks about updating his npm package.

More segments should be possible by passing the config directly to justgage - as your documentation suggests:

> The gauge options can accept any of the [Justgage parameters](https://github.com/toorshia/justgage/blob/master/justgage.js#L42) for example:
> 
> {"options":{"pointer":false,"gaugeWidthScale":1.5}}  
> {"options":{"pointer":true,"gaugeWidthScale":0.4,"reverse":true}}

> <https://github.com/node-red/node-red-dashboard/blob/master/config-fields.md>

---

<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:** [24 October 2018 16:04 UTC](https://discourse.nodered.org/t/upgrade-ui-gauge-library/4255/4 "2018-10-24T16:04:07Z")

</div>

cool - worth a try - let us know how you get on with both.
