# Chart and Gauge from Dashboard 2.0

**URL:** https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374
**Category:** Dashboard
**Tags:** chart, mqtt, dashboard-2
**Created:** [23 August 2024 15:24 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374 "2024-08-23T15:24:26Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Longhorn1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/longhorn1988/32/89864_2.png) [@Longhorn1988](https://discourse.nodered.org/u/Longhorn1988)
#### Post date: [23 August 2024 15:24 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/1 "2024-08-23T15:24:26Z")

</div>

Hi everyone,  
I need some help. I want to use a chart / gauge for my input (MQTT), but it did not work when I linked it to the chart / gauge! Do I need something more?  
thanks for ur help 🙂  
Masih

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

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [23 August 2024 15:36 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/2 "2024-08-23T15:36:40Z")

</div>

Show us what is coming out of the mqtt node (send it to a debug node obviously) and how you have configured the chart

---

<div class="post-metadata">

### Author: ![Longhorn1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/longhorn1988/32/89864_2.png) [@Longhorn1988](https://discourse.nodered.org/u/Longhorn1988)
#### Post date: [23 August 2024 16:07 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/3 "2024-08-23T16:07:00Z")

</div>

Sure! This is my MQTT setting:

 ![Screenshot_20240823_180403_Chrome](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/0/3029eab800d4e1fae332292601ce0c4a39505e98.jpeg)

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [23 August 2024 16:22 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/4 "2024-08-23T16:22:44Z")

</div>

> [@Longhorn1988](#):
>
> Sure! This is my MQTT setting:

You were asked to show us what you have coming out of the mqtt node, and also how you have configured the chart.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [23 August 2024 16:43 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/5 "2024-08-23T16:43:34Z")

</div>

But also please note the comment on the mqtt node in yellow.

---

<div class="post-metadata">

### Author: ![Longhorn1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/longhorn1988/32/89864_2.png) [@Longhorn1988](https://discourse.nodered.org/u/Longhorn1988)
#### Post date: [23 August 2024 17:13 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/6 "2024-08-23T17:13:13Z")

</div>

Do you mean this?

 ![Screenshot_20240823_191105_Chrome](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/3/431b5a87d9ad9135bfaef70a6be1886744df7367.jpeg)

The yellow part is not more yellow.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [23 August 2024 17:24 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/7 "2024-08-23T17:24:43Z")

</div>

This bit  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/12763493aa511672febb831488a0318aede0c656.png)

Then, if it is still not working when fed into a gauge, connect a Debug node to the MQTT and show us what it shows.

Also, as I suspect you are just starting with node-red, I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

### Author: ![Longhorn1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/longhorn1988/32/89864_2.png) [@Longhorn1988](https://discourse.nodered.org/u/Longhorn1988)
#### Post date: [23 August 2024 19:16 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/8 "2024-08-23T19:16:23Z")

</div>

Thanks . I will watch them. this is my Code 🙂  
[flows (19).json](https://discourse.nodered.org/uploads/short-url/z21u8LqW5N8wxfl5MCgAoDOBRYc.json) (410 Bytes)

---

<div class="post-metadata">

### Author: ![Longhorn1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/longhorn1988/32/89864_2.png) [@Longhorn1988](https://discourse.nodered.org/u/Longhorn1988)
#### Post date: [23 August 2024 19:29 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/9 "2024-08-23T19:29:28Z")

</div>

This code includes Dashboard (version 1) and Dashboard 2.0. Dashboard 1 it works but Dashboard 2.0 it does not work!

[flows (20).json](https://discourse.nodered.org/uploads/short-url/lomt80APyZfeC4TEeDqTpwlmmZx.json) (2.7 KB)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [23 August 2024 21:00 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/10 "2024-08-23T21:00:40Z")

</div>

All you have posted is the chart node.

Also see this post for the preferred method of posting flows here - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

Please also do what I you have been asked to do several times, which is to add a debug node to the MQTT node and show us what it gives.

---

<div class="post-metadata">

### Author: ![Longhorn1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/longhorn1988/32/89864_2.png) [@Longhorn1988](https://discourse.nodered.org/u/Longhorn1988)
#### Post date: [23 August 2024 21:05 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/11 "2024-08-23T21:05:10Z")

</div>

I did it but it dosent show any message..

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

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [23 August 2024 21:08 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/12 "2024-08-23T21:08:31Z")

</div>

It is still showing the blue dot, you have not deployed it.

---

<div class="post-metadata">

### Author: ![Longhorn1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/longhorn1988/32/89864_2.png) [@Longhorn1988](https://discourse.nodered.org/u/Longhorn1988)
#### Post date: [23 August 2024 21:11 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/13 "2024-08-23T21:11:07Z")

</div>

I did deploy it..  
I dont know what i do more ?

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

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [23 August 2024 21:13 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/14 "2024-08-23T21:13:36Z")

</div>

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

You need to click the Deploy button, it is red so there are nodes not deployed. Really, watch the videos and then come back if you still have problems.

---

<div class="post-metadata">

### Author: ![Longhorn1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/longhorn1988/32/89864_2.png) [@Longhorn1988](https://discourse.nodered.org/u/Longhorn1988)
#### Post date: [23 August 2024 21:22 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/15 "2024-08-23T21:22:01Z")

</div>

Many thanks.. I found the problem..  
That made my night!

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/4/24528b2238cb30fb76b3e3d1d941e858ab122d2a.png)

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [23 August 2024 21:47 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/16 "2024-08-23T21:47:33Z")

</div>

The Chart node expects a `number`, whilst you are sending a `string`.

Are you using an older version of Dashboard than v1.15.0 ?  
If you are, please update it, and try again, as I recall that the dashboard was recently updated to accept either a `string` or a `number`

---

<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: [22 September 2024 21:48 UTC](https://discourse.nodered.org/t/chart-and-gauge-from-dashboard-2-0/90374/17 "2024-09-22T21:48:08Z")

</div>

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