I was looking into graphing a fairly substantial amount of data. It is bursted across serial.
What I have is 30 values corresponding to remote data sensors. The data for each comes across together, so I have no problem having the data grouped. It is, effectively, in an array of size 30. I've been wanting to place this data in a graph.
The period varies between 1/5 sec and 2 minutes between receptions (its wireless and mobile, so signal strength varies). This eliminates waveform graph as the time isn't constant and there's alot of data(So no random NaN insertion). This leaves me with an XY graph.
Primary interest is with the last 10 minutes or so, with a desire to see up to an hour or two back.
The data is farily similar, and I'm tring to possibly split it into groups of 4 or 5 sets of ordered pairs per graph.
Problems:
1. If data comes in slow enough, everything is ok, but the time needed to synchrounously update the graph(s) often can exceed the time it would take to fully recieve the chunk of data which contains these data points. Thinking asynchrounously is useless, as the graphs need to be reasonably in tune with the most recent data recieved. I can't have the an exponential growth in the delta of time represented on the graph and the time the last bit of data was recieved.
2. I could use some advice on making older data points more sparse to allow for older data to be viewed, but with a sort of 'decay' of old data I don't value that 1/5 second resolution at all.
I'm most concerned with solving problem 1, but random suggestions on 2 are most welcome.