# Dashboard 2.0 Gauge Label

**URL:** <https://discourse.nodered.org/t/dashboard-2-0-gauge-label/98097>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [12 July 2025 10:06 UTC](https://discourse.nodered.org/t/dashboard-2-0-gauge-label/98097 "2025-07-12T10:06:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rewegit](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rewegit/32/4778_2.png) [@rewegit](https://discourse.nodered.org/u/rewegit)\
**Post date:** [12 July 2025 10:06 UTC](https://discourse.nodered.org/t/dashboard-2-0-gauge-label/98097/1 "2025-07-12T10:06:33Z")

</div>

I'm just taking my first steps with Dashboard 2.0.

I have a question about the gauge.

How can I transfer the label from msg.topic? {{mag.topic}} does not work for me.

How else can I proceed?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [12 July 2025 11:02 UTC](https://discourse.nodered.org/t/dashboard-2-0-gauge-label/98097/2 "2025-07-12T11:02:02Z")

</div>

[https://dashboard.flowfuse.com/nodes/widgets/ui-gauge.html#dynamic-properties](https://dashboard.flowfuse.com/nodes/widgets/ui-gauge.html#dynamic-properties)

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [12 July 2025 11:52 UTC](https://discourse.nodered.org/t/dashboard-2-0-gauge-label/98097/3 "2025-07-12T11:52:04Z")

</div>

> [@rewegit](#):
>
> How can I transfer the label from msg.topic? {{mag.topic}} does not work for me.

You have to pass in the value as ui\_update.label (eg:ui\_update.label=msg.topic and then send that into the gauge node)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [12 July 2025 13:51 UTC](https://discourse.nodered.org/t/dashboard-2-0-gauge-label/98097/4 "2025-07-12T13:51:57Z")

</div>

The gauge widget was modified in dashboard v1.25.0 so that you can format the gauge value using Jsonata, eg `$round(payload, 1)`

Unfortunately the same change was not applied to the label field. If it had been, you could have set the label using  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/baf605ee69ff2f6b7a1ca6dcdbf4490acd913d1f.png)

And the gauge might display something like this, without a preceding change node.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/6/56a69e2c68aa5afdb962e66716253d1a1dc0e8a3.png)

---

<div class="post-metadata">

**Author:** ![rewegit](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rewegit/32/4778_2.png) [@rewegit](https://discourse.nodered.org/u/rewegit)\
**Post date:** [12 July 2025 18:15 UTC](https://discourse.nodered.org/t/dashboard-2-0-gauge-label/98097/5 "2025-07-12T18:15:25Z")

</div>

Yes, it would be good to extend the JSONata option to other properties.  
But I can also live with the dynamic properties.

---

<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:** [26 July 2025 18:16 UTC](https://discourse.nodered.org/t/dashboard-2-0-gauge-label/98097/6 "2025-07-26T18:16:12Z")

</div>

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