1
votes

I need to dinamically update a scatterplot graph with realtime data. The data are speed (Y axis) depending on time (X axis). As soon as I have new speed data, I add data to the datasource array then call [graph reloadData] to update the graph. And this is good, but how to automatically make the graph scrolling on x axis in order that the new data is always on screen?

Thanks.

1

1 Answers

2
votes

Solution found: need to update this property ((CPTXYPlotSpace *)graph.defaultPlotSpace).xRange