I am using Core Plot 1.0. I have successfully made an XY scatter plot in my tabbed app. However when I leave the tab with the graph, enter different data, and go back to the tab with the new graph, both graphs appear. I have seen some commands like [graph reloadData] but that option didnt come up. Perhaps that’s from another version. So can anyone help me clear one graph to get ready to display another? Do I need to place a command in the viewdidload method or something similar? Thanks in advance!
Share
The graph has a
-reloadDatamethod. You call this to have all plots in the graph refresh their entire dataset. You can call-reloadDataon individual plots, too, if you only need to update some of them. Call this method from the main thread in your app when the new data is available to the datasource.