# Multiple data in Single chart

**URL:** <https://discourse.nodered.org/t/multiple-data-in-single-chart/43118>\
**Category:** Dashboard\
**Created:** [24 March 2021 12:17 UTC](https://discourse.nodered.org/t/multiple-data-in-single-chart/43118 "2021-03-24T12:17:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcsjohnson](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tcsjohnson](https://discourse.nodered.org/u/tcsjohnson)\
**Post date:** [24 March 2021 12:17 UTC](https://discourse.nodered.org/t/multiple-data-in-single-chart/43118/1 "2021-03-24T12:17:58Z")

</div>

hi,

I have 2 readDP from the controller as below

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/9/b9d1324ed19acf40d8492f2c5a157e3266bd4ea5.png)

How should i put this 2 data into single chart?

Can someone teach me and give example?

Thank you

---

<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:** [24 March 2021 12:36 UTC](https://discourse.nodered.org/t/multiple-data-in-single-chart/43118/2 "2021-03-24T12:36:54Z")

</div>

Welcome to the forum.

Show us whet the debug output looks like. If each one has a value in msg.payload then you just need to add a topic value to each and pass them to the chart.

It seems, though, that you are using an unusual install of node red so that may give problems.

If you don't know how to use a Change node to set the topic then I presume you are a complete beginner so 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:** ![tcsjohnson](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tcsjohnson](https://discourse.nodered.org/u/tcsjohnson)\
**Post date:** [25 March 2021 00:32 UTC](https://discourse.nodered.org/t/multiple-data-in-single-chart/43118/3 "2021-03-25T00:32:04Z")

</div>

yes, im completely a beginner on this. I will try to learn it but at the same time how can i use change to change this 2 input profile?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/55ef483d80dc6d65d6681c52d288a01f9aee6d41.jpeg)

thank you

---

<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:** [25 March 2021 09:55 UTC](https://discourse.nodered.org/t/multiple-data-in-single-chart/43118/4 "2021-03-25T09:55:49Z")

</div>

What did you try ?  
add a change node to each path - and in one configure it to set msg.topic to "A" and the the other to "B" - and then feed both outputs into a chart.

---

<div class="post-metadata">

**Author:** ![tcsjohnson](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tcsjohnson](https://discourse.nodered.org/u/tcsjohnson)\
**Post date:** [26 March 2021 02:49 UTC](https://discourse.nodered.org/t/multiple-data-in-single-chart/43118/5 "2021-03-26T02:49:34Z")

</div>

I solve it by using the function to set msg.topic = “‘Temp’ and so on.

Thanks for teaching.

---

<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:** [26 March 2021 07:03 UTC](https://discourse.nodered.org/t/multiple-data-in-single-chart/43118/6 "2021-03-26T07:03:43Z")

</div>

It is more efficient to use a Change node.

---

<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:** [25 April 2021 07:03 UTC](https://discourse.nodered.org/t/multiple-data-in-single-chart/43118/7 "2021-04-25T07:03:52Z")

</div>

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