Dashboard Node "chart" 2 lines from "Infuxdb in" Node

Hi,

I looking for a way to have 2 lines in Node Red dashboard Chart. I can't figure out how to to this.
This are the debugs from the two Nodes that I want in the Chart.

Can someone help me with this.

5-1-2021 16:51:54[node: 259be37c.702ec4]
msg.payload : array[1]
array[1]
0: object
time: "2021-01-05T15:51:37.000Z"
last: 0.04648078918457031

5-1-2021 16:51:54[node: e3d4a561.1cc53]
msg.payload : array[1]
array[1]
0: object
time: "2021-01-05T15:51:37.000Z"
last: 0.10790086364746093

Thanks

From the help info. Multiple series can be shown on the same chart by using a different msg.topic value on each input message.

So each line will; nedd its own msg.topic value.

Hi,
How do I add a msg.topic to my Node "Influx Db in" it has no topic field?

Are you trying to fill a chart with historical data or add real time data? If you are filling with historical data then you need to put everything into one message. There is a link in the help text for the the chart which tells you the format needed.

Edit, back at my computer now, the link is node-red-dashboard/Charts.md at master · node-red/node-red-dashboard · GitHub

Thanks for the info, it works now. I ad a function Node to each output of my Influx Nodes. And then connect them all to one Chart Node.

Function Node Line1

msg.topic = "Line 1"
return msg;

Function Node Line 2

msg.topic = "Line 2"
return msg;

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