Scrolling line chart
Posted: Fri Jan 16, 2026 11:12 pm
Hi,
I have been looking at the enviroment monitor demo which is close to what I am looking for. The bit I am not happy with is the line chart as when it is full it carries on showing new data but the x axis compresses so over time it will get unreadable.
I would like to have a scrolling chart of the last x samples, I changed the x axis autoscale to "no" but that just meant that as soon as the chart was full it stopped showing live data.
I have a thought that to do what i require I need to write the data to a FIFO buffer and then write the contents to the chart.
This seems like a lot of work and possibly will make the display very slow so I wondered if I am on the right lines or if anyone has any better solution.
Regards,
Bob
I have been looking at the enviroment monitor demo which is close to what I am looking for. The bit I am not happy with is the line chart as when it is full it carries on showing new data but the x axis compresses so over time it will get unreadable.
I would like to have a scrolling chart of the last x samples, I changed the x axis autoscale to "no" but that just meant that as soon as the chart was full it stopped showing live data.
I have a thought that to do what i require I need to write the data to a FIFO buffer and then write the contents to the chart.
This seems like a lot of work and possibly will make the display very slow so I wondered if I am on the right lines or if anyone has any better solution.
Regards,
Bob