Sunday, 15 September 2013

Creating and storing new points on a core plot graph

Creating and storing new points on a core plot graph

So far I have made a graph with core plot and I now need to put the data
points in. My biggest problem is I am getting new data, about every 10 or
so minutes. I don't want to overload the app so I have configured the
graph to just show 10 at a time, but the user will be able to scroll to
see more. Here's where my question is. I need to add a number to an array
every time I receive more data. Is this possible? Am I going to have to
physically make 1,000 objects in an array and set them each? This would
seem like a cumbersome process and it seem like their would be another
simpler way. This leads me to my next problem. I will need to start
erasing data after 1,000 or so data points have been made. Will this mean
I will have to physically alter each point one back? Or if it is possible
to add new points automatically without making 1,000 separate objects for
an array, could I just dump the last one and make a new one? Sorry if this
seems really complicated. I am not looking for tons of code, just an idea
to make new objects in an array and saving them, without actually adding
1,000 separate objects. If you need, I can upload my graph (I have not
done it because its pretty big, but if it will help add a comment)
Cheers

No comments:

Post a Comment