# Dashboard 2 gauge linear mode dynmic properties

**URL:** https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045
**Category:** Dashboard
**Created:** [1 February 2025 12:38 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045 "2025-02-01T12:38:12Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [1 February 2025 12:38 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/1 "2025-02-01T12:38:12Z")

</div>

Using gauge linear nodewith ticks. Updating ticks via dynamic properties updates the number values, but the bar does not update the new tick values (1000-\>200, tick changes, but color bar does not change).

Node setting:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c15a7df807ed4c4517ae2a239f4b48ea8b0d8d6.png)

Result after dynamic update:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/9/f9dc176b168a912f4bfab81c265146affe06a8b9.png)

---

<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: [1 February 2025 12:48 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/2 "2025-02-01T12:48:27Z")

</div>

Known. Not a bug just not described how to do it properly. See here [Using dynamic properties issue · Issue #9 · hotNipi/node-red-dashboard-2-ui-gauge-linear · GitHub](https://github.com/hotNipi/node-red-dashboard-2-ui-gauge-linear/issues/9)

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [1 February 2025 14:26 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/3 "2025-02-01T14:26:11Z")

</div>

One downside is, that it is not possible to set the tick values and colors e.g once per day or so. If the page is reloaded, the static values are present until the values are set dynamically again. So the latest values set dynamically are not persistent.  
Basically it would require to set the ticks, colors etc dynamically alongside with the payload value.

---

<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: [1 February 2025 15:16 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/4 "2025-02-01T15:16:37Z")

</div>

Whatever way it is, the thing you actually wanted is that it is actually in configuration what is proper at current moment. That moment is under your control and the dashboard gives to you all the tools to fire out the config when you need.

None of solutions can be perfect in that sense.

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [1 February 2025 15:26 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/5 "2025-02-01T15:26:12Z")

</div>

I wanted to point it out in case somebody else tries it out.  
In the current status, whenever the page is loaded the ticks and color bars would need to be set again dynamically. In contrast, the actual value is stored. Let's say the value is written once per day, even after reload it would be visible. Only after a full deployment in node red it would be gone which is obvious.  
So the current usecase for dynamic ticks and colors is rather limited. I just didn't expect it to behave like that..

---

<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: [5 February 2025 16:35 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/6 "2025-02-05T16:35:36Z")

</div>

You may try v0.1.6

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [5 February 2025 17:45 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/7 "2025-02-05T17:45:32Z")

</div>

I just updated to 0.1.6  
I now get these crumbled ticks and NaN values, the bars seem to be fine:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/72cfa6b04f01c30487331233279c8cd31aab2426.png)

On all bars the ticks are aligne to the left most position, except for the max tick, which is aligned to the far right.

The issue only seems to be with the dynamically set bars. The bars that are not using dynamic settings are still fine.

JFYI: I did not change anything to my workflow. Also after sending dynamic values again, nothing changes.

Thanks for looking into this. I wasn't expecting any change.

Edit:  
I deployed my workflow again and even then the ticks are messed up, even without dynamically setting anything. But only to the gauges that previously used dynamic properties. I'm still trying to find out why or what the difference is here. Somewhat strange so far.

---

<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: [5 February 2025 17:53 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/8 "2025-02-05T17:53:01Z")

</div>

Thanks. Will look over. Something I did miss for sure

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [5 February 2025 17:56 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/9 "2025-02-05T17:56:31Z")

</div>

I just created a new gauge and connected that. Seems to work.  
The gauges I used previously do not work.

Seems to be connected with the update somehow.

Edit:

I just only deployed again and the ticks are aligned to the left side again.  
So it works with a new gauge after first deployment. But after second deployment of the workflow it gets mixed up.

Are you able to reproduce it? Otherwise I may set up a sample workflow.

---

<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: [5 February 2025 18:20 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/10 "2025-02-05T18:20:24Z")

</div>

I'm away but I'll look asap.

---

<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: [5 February 2025 19:26 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/11 "2025-02-05T19:26:21Z")

</div>

> [@NodyRed](#):
>
> Are you able to reproduce it?

No. It works for me as expected

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [5 February 2025 20:00 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/12 "2025-02-05T20:00:17Z")

</div>

I created a sample flow, can you check it?

---

<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: [5 February 2025 20:07 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/13 "2025-02-05T20:07:28Z")

</div>

Something is wrong, can't import the flow

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

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [5 February 2025 20:11 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/14 "2025-02-05T20:11:46Z")

</div>

Exported again

---

<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: [5 February 2025 20:41 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/15 "2025-02-05T20:41:39Z")

</div>

Ok. problem exits. Reveals when updating min or max or both.  
I think fixing it will introduce breaking change...

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [5 February 2025 20:43 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/16 "2025-02-05T20:43:28Z")

</div>

Would it help if I remove min/max from the dynamic setting for now?  
I just added it to have everything in one place, but min and max do not change in my case currently.

---

<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: [5 February 2025 20:44 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/17 "2025-02-05T20:44:17Z")

</div>

It works if you dont change the min and max

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [5 February 2025 20:46 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/18 "2025-02-05T20:46:40Z")

</div>

Ok, right seems to work if min/max have never changed before. I'll try to restart node-red if that does not help for now I will exchange the nodes.  
Thanks for the support.

---

<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: [6 February 2025 13:40 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/19 "2025-02-06T13:40:04Z")

</div>

v0.1.7 available

---

<div class="post-metadata">

### Author: ![NodyRed](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NodyRed](https://discourse.nodered.org/u/NodyRed)
#### Post date: [6 February 2025 16:03 UTC](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045/20 "2025-02-06T16:03:28Z")

</div>

Working here. Thanks for the great update!

[Next page](https://discourse.nodered.org/t/dashboard-2-gauge-linear-mode-dynmic-properties/95045.md?page=2)
