How fast can you update a line chart on the dashboard?

#1

I'm trying to show sensor data as fast as I can ex. 20Hz or 50Hz. Is it possible to update the line chart on the dashboard in realtime? or as soon as the data is transferred to that node?

Thanks!!!

0 Likes

#2

If you wanted something to work very specifically with graphs I think node-red is not your best choice, this is not the main purpose of this.

For sure I mean what is related to handle or display the graphs, it's ok for working with the data.

But wait to someone with more knowledge than me to answer.

Regards

0 Likes

#3

I am a first year newbie, but the short answer is likely, no. I don't think that Node-Red and Real-time should be used in the same context.
A lot also depends on what platform you're running Node-Red on. A raspberry pi, or an 8-Core, water-cooled, overclocked beast of a desktop tower. There is also the speed of the channel the data is coming to you.
But, I'll go with no.

0 Likes

#4

A single sensor in a single dashboard? Why not? Check this testing flow out (generating data at 50 Hz)

[{"id":"965a65ee.ffbde8","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"4b1ea540.52486c","type":"inject","z":"965a65ee.ffbde8","name":"","topic":"","payload":"","payloadType":"date","repeat":"0.02","crontab":"","once":true,"onceDelay":0.1,"x":401.1000061035156,"y":209.00000381469727,"wires":[["987c99ff.3b7ba8"]]},{"id":"987c99ff.3b7ba8","type":"change","z":"965a65ee.ffbde8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload % 10","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":590.1000518798828,"y":210.00000381469727,"wires":[["276469b9.f4dfe6"]]},{"id":"276469b9.f4dfe6","type":"ui_chart","z":"965a65ee.ffbde8","name":"","group":"57e67e8c.ab3ad","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"auto","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"1","removeOlderPoints":"20","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"x":763.1000595092773,"y":209.60000228881836,"wires":[[],[]]},{"id":"57e67e8c.ab3ad","type":"ui_group","z":"","name":"Test","tab":"72729c74.fd5e44","disp":true,"width":"6","collapse":false},{"id":"72729c74.fd5e44","type":"ui_tab","z":"","name":"Sandbox","icon":"dashboard"}]
0 Likes