# Chart update speed for real time electronic signals/ communication engineering related

**URL:** <https://discourse.nodered.org/t/chart-update-speed-for-real-time-electronic-signals-communication-engineering-related/60497>\
**Category:** Dashboard\
**Tags:** chart\
**Created:** [29 March 2022 14:47 UTC](https://discourse.nodered.org/t/chart-update-speed-for-real-time-electronic-signals-communication-engineering-related/60497 "2022-03-29T14:47:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hishamjz](https://avatars.discourse-cdn.com/v4/letter/h/c0e974/32.png) [@Hishamjz](https://discourse.nodered.org/u/Hishamjz)\
**Post date:** [29 March 2022 14:47 UTC](https://discourse.nodered.org/t/chart-update-speed-for-real-time-electronic-signals-communication-engineering-related/60497/1 "2022-03-29T14:47:29Z")

</div>

Hello everyone:

I am using Node-red for my bachelor thesis. I have a MQTT service linked to my flow which transfers electronic signal samples recieved from a small antenna to my PC and through MQTT to Node-Red.While Using a for loop to transfer the signal digital samples from the array in my code through Mosquitto Broker library to Node-Red.  
I am able to receive the message samples with no problem in my debug node, however, my laptop freezes when I try to depict those samples using a chart, and the chart updates very slowly.  
Is Node-Red suitable for this kind of projects? I might need to send more than 10k samples in the future but for now I reduced the number to 1000 for testing purposes, and still getting this error. (Anyone who works in communication would know that even 10k samples is a small number, and that one might need to send dozens of samples in real-time to analyze a real-time signal)

And if Node-Red isn't the best place to do so, anyone knows about alternatives?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![davidz](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@davidz](https://discourse.nodered.org/u/davidz)\
**Post date:** [29 March 2022 16:49 UTC](https://discourse.nodered.org/t/chart-update-speed-for-real-time-electronic-signals-communication-engineering-related/60497/2 "2022-03-29T16:49:37Z")

</div>

This is a well-known problem with Node-RED chart. The chart uses and old chart.js (please correct me if I am wrong) library, which is extremely slow.  
Not sure if upgrading to Chart.js 3.0 or higher can solve the problem easily.

Alternatively, there is a post about using U-plot instead of the chart node to draw the signal faster:

> [@u-Plot charts simple live data example](https://discourse.nodered.org/t/u-plot-charts-simple-live-data-example/45453):
>
> You'll need to download the needed files from here [GitHub - leeoniya/uPlot: chart_with_upwards_trend A small, fast chart for time series, lines, areas, ohlc & bars](https://github.com/leeoniya/uPlot) and then serve them from your static folder. If performance matters and you are ready for a bit of JavaScript struggle, It is the way to go. Here's the starting point [{"id":"d03aad8c.fcdf9","type":"ui\_template","z":"c0ddb509.b04f48","group":"304730.1de8e8d","name":"chart","order":1,"width":"15","height":"8","format":"\<script src=\"/uplot/uPlot.iife.mi…

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 March 2022 20:18 UTC](https://discourse.nodered.org/t/chart-update-speed-for-real-time-electronic-signals-communication-engineering-related/60497/3 "2022-03-29T20:18:15Z")

</div>

Or bypass Dashboard altogether if you need maximum performance. uibuilder will let you have a minimal UI (or something really grand if you prefer 😀 ) and you can simply include one of the more performant chart libraries. Dashboard does a lot of work behind the scenes to try and make things as simple as possible for people who don't know any HTML.

---

<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:** [28 April 2022 20:18 UTC](https://discourse.nodered.org/t/chart-update-speed-for-real-time-electronic-signals-communication-engineering-related/60497/4 "2022-04-28T20:18:26Z")

</div>

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