I have an Android app that collects data, and I need to display that data. A dataset can be several hundred samples, up to tens of thousands. X axis is time. The Y axis can have from 1 to 15 different data sets.
I looked through some graphical libraries such as achartengine, but they all seem to expect your graph to have a fairly compact dataset that fits perfectly on the screen. With samples of 20 thousand. My schedule will be much wider than high. In fact, I never want the Y axis to be higher than the screen, the scale should only be scaled along the X axis.
My perfect interface basically looks like a side view, which you can simply scroll left or right to scroll through a really wide graph. Zoom simply compresses or extends the time scale.
Anyway, my question is, what are the best practices when trying to do something like this? I can find textbooks on graphics, but nothing that specifically addresses this problem. It would seem very wasteful to try to display the entire chart at once. But I want the slide navigation to be smooth. Will drawing the screen simultaneously on the canvas be fast enough for a smooth scrolling? Or do I need to switch to openGL?
Thank.
source
share