I know it's been a while, but I wanted to update this thread with how I ended up getting this to work best on iOS and Android...
I use the QML charts, and am dynamically updating them by doing a 'remove' followed by and 'append'. I have 4 charts, 3 of which have a single series, and one which has 2 series.
I define the each series at Chart creation, the populate the entire series with data from a MySQL DB... then as new data is added to the DB, I do this for each series ( as appropriate ):
series1.remove(0);
series1.append(incomingData.msec,incomingData.dataPoint);
series1.remove(0);
series1.append(incomingData.msec,incomingData.dataPoint);
To copy to clipboard, switch view to plain text mode
This removes the first item from the series (the oldest), and appends the newest item as the last in the series... works like a charm.
I was originally destroying and recreating each series... which worked, but this way is cleaner and is less effort.
I would assume that since I can do this via QML, you could do it via C++.
--Sam
Bookmarks