When you detect a change in orientation, you need to resize your CPTGraphHostingView , and then call reloadData on all the graphs in your graph. Something like that:
-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { self.hostingView.frame = CGRectMake( ); for (CPTPlot *p in self.graph.allPlots) { [p reloadData]; } }
You may also need to correct the marks and marks on your axes, as well as fill in the Arifka chart to accommodate the new size of the hosting view.
source share