# Increase size of gauge text

**URL:** <https://discourse.nodered.org/t/increase-size-of-gauge-text/13119>\
**Category:** Dashboard\
**Created:** [10 July 2019 17:03 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119 "2019-07-10T17:03:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![HYPER](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@HYPER](https://discourse.nodered.org/u/HYPER)\
**Post date:** [10 July 2019 17:03 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/1 "2019-07-10T17:03:57Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8d4f7cc2ceac5ac6fd4744d7dab85475938ab620.png)  
The size of the "0, PSIG, 250" text is very small compared to the size of the gauge. Is there a way to increase this? Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [10 July 2019 19:19 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/2 "2019-07-10T19:19:20Z")

</div>

The way to do this kind of adjustments is shown here [Dynamic label in gauge node](https://discourse.nodered.org/t/dynamic-label-in-gauge-node/13068/7)

The parameters you need to change can be found here [https://github.com/toorshia/justgage/blob/master/justgage.js#L42](https://github.com/toorshia/justgage/blob/master/justgage.js#L42)  
`// configurable parameters`

There is a lot you can configure so try and enjoy.

---

<div class="post-metadata">

**Author:** ![HYPER](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@HYPER](https://discourse.nodered.org/u/HYPER)\
**Post date:** [10 July 2019 23:31 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/3 "2019-07-10T23:31:02Z")

</div>

I think I understand the example, but I can't figure our which parameter affects text size.

---

<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:** [11 July 2019 01:52 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/4 "2019-07-11T01:52:54Z")

</div>

Looking at that list I would guess labelMinFontSize

---

<div class="post-metadata">

**Author:** ![HYPER](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@HYPER](https://discourse.nodered.org/u/HYPER)\
**Post date:** [11 July 2019 23:14 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/5 "2019-07-11T23:14:02Z")

</div>

How should the switch and gauge node be configured for those parameters? I'm struggling to picture how the flow should look.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [12 July 2019 07:32 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/6 "2019-07-12T07:32:02Z")

</div>

Here is the example with comments.

```auto
[{"id":"e24c988b.699b78","type":"change","z":"15462191.80250e","name":"","rules":[{"t":"set","p":"ui_control.options.minLabelMinFontSize","pt":"msg","to":"16","tot":"num"},{"t":"set","p":"ui_control.options.maxLabelMinFontSize","pt":"msg","to":"16","tot":"num"},{"t":"set","p":"ui_control.options.labelMinFontSize","pt":"msg","to":"16","tot":"str"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":340,"wires":[["8c14a7d9.681bb8"]]},{"id":"8c14a7d9.681bb8","type":"ui_gauge","z":"15462191.80250e","name":"","group":"39b7a5c6.1e9a8a","order":0,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{value|number:2}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"3","seg2":"7","x":690,"y":400,"wires":[]},{"id":"22d7d976.1fa2c6","type":"inject","z":"15462191.80250e","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":390,"y":400,"wires":[["f0bfbde4.1a8cf"]]},{"id":"f97cda05.dde058","type":"ui_ui_control","z":"15462191.80250e","name":"","x":180,"y":200,"wires":[["95ef6d63.e77fd"]]},{"id":"2d8d8dd6.8c2a82","type":"comment","z":"15462191.80250e","name":"To send options when dashboard connects","info":"","x":270,"y":160,"wires":[]},{"id":"95ef6d63.e77fd","type":"delay","z":"15462191.80250e","name":"","pauseType":"delay","timeout":"40","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":320,"y":260,"wires":[["e24c988b.699b78"]]},{"id":"250f93b0.a9b97c","type":"comment","z":"15462191.80250e","name":"Let gauge to be initialized before change any options","info":"There will be browser errors otherwise ","x":460,"y":220,"wires":[]},{"id":"d94b0f1f.2a6f6","type":"comment","z":"15462191.80250e","name":"Change the options","info":"gauge scales according to predefined card size\ndefined font sizes are not absolute values but minimum values\nFor example if you make your gauge smaller, the changed font sizes may happen to be too large and will overlap.\n\nminLabelMinFontSize - minimum size of min field // number\nmaxLabelMinFontSize - minimum size of max field // number\nlabelMinFontSize - minimum size of units field // numbert\n\ndelete msg.payload cos it does not contain proper value","x":520,"y":300,"wires":[]},{"id":"f0bfbde4.1a8cf","type":"function","z":"15462191.80250e","name":"random","func":"msg.payload = Math.random()*10\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":400,"wires":[["8c14a7d9.681bb8"]]},{"id":"a651e851.2a2a28","type":"comment","z":"15462191.80250e","name":"generate random value","info":"","x":470,"y":440,"wires":[]},{"id":"39b7a5c6.1e9a8a","type":"ui_group","z":"","name":"Default","tab":"ad12ad91.ab672","disp":true,"width":"6","collapse":false},{"id":"ad12ad91.ab672","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![HYPER](https://avatars.discourse-cdn.com/v4/letter/h/f08c70/32.png) [@HYPER](https://discourse.nodered.org/u/HYPER)\
**Post date:** [12 July 2019 16:08 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/7 "2019-07-12T16:08:21Z")

</div>

Ah that makes much more sense now. I didn't realize the ui control node was required.  
Thanks so much!

---

<div class="post-metadata">

**Author:** ![sumiBoss](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@sumiBoss](https://discourse.nodered.org/u/sumiBoss)\
**Post date:** [17 December 2020 08:50 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/8 "2020-12-17T08:50:10Z")

</div>

Hello,

I'm pretty new to Node-RED but I'm trying to do the same thing - change the size of gauge text. I'm not really sure how I can use your solution? Do I add a template node or a control node and paste it into message payload or is it done in another way? Could you please explain how to use the solution you provided.

Thanks a lot in advance!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 December 2020 10:43 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/9 "2020-12-17T10:43:09Z")

</div>

Did you import the example flow that @hotNipi provided and look at the comments he put in it?

If you don't understand some part of that flow, please describe what part you don't understand.

[UPDATE] you might be interesteed in this: [[Announce] node-red-contrib-ui-artless-gauge 0.3.0](https://discourse.nodered.org/t/announce-node-red-contrib-ui-artless-gauge-0-3-0/37633)

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [28 September 2021 18:07 UTC](https://discourse.nodered.org/t/increase-size-of-gauge-text/13119/10 "2021-09-28T18:07:08Z")

</div>

I'm having a problem increasing value font size. I used this -

{ "ui\_control": { "options": { "pointer": true,"valueMinFontSize": 40 }, "seg1": 15, "seg2": 30, "max": 45 } }

Widget is set to 4x4 so there should be room for it to be bigger ?

All other settings there work except font size, what am I doing wrong please ?
