iOS - Live Updating of Graphs

Mar 2, 2014 at 6:32 PM
When I have a new entry to update on my graphs, after initial draw, I'm not sure I'm using the most efficient method. Thoughts?
await graph.UpdateDataSources ();
((PlotView)View).Model.Update ();
View.SetNeedsDisplay ();
First graph the latest data from the database and set the ItemSource to the new data. Call Model.Update() to update the graph, and then invalidate the view.

It doesn't 'feel correct', wanted to know if anyone else had any thoughts on a better way to do it.
Coordinator
Mar 2, 2014 at 8:43 PM
The PlotView.InvalidatePlot method should do this.
I also recommend testing the version on the fork
https://hg.codeplex.com/forks/objo/issue9625
where touch events are being implemented. I hope to be able to merge fork with default soon.
Mar 6, 2014 at 12:06 AM
((PlotView)View).Model.InvalidatePlot (true);
View.SetNeedsDisplay ();
I still needed to call View.SetNeedsDisplay (); for my view to update. I stayed in default, for my testing.