Fixed length auto update real time chart ploting In QML.
-
Hi,
I want to show sensor's live data coming after every second on a QML chart.
I want to maintain a fixed length 50 points history on graph. So first 50 points will be displayed as it is and then after that I want to remove first point and add the new data to last index.
Possible ways I explored :
- Manual remove , shift the elements and then add last value at last index.
2.Remove first , add last and move x axis.
These both are working but 1st solution requires too much of work to get it done .
And in second scenario the xaxis is a real value so after a point I think it will create problem because my application may run for weeks . I don't know xaxis shifting will be ok or not.
Is there any way we can achieve it efficiently. I know many medical devices developed using QML. Heart rate monitors and other other applications have similar use cases of data plotting.
Thank you.