iphone - How to show Pie Chart , Bar Chart and Line graph in single view in ios -


I have to show graph charts in the iPad, which is something like the image below. Please tell me some tips on how to do this

I have referenced from the tutorial.

Here I can see that he has used different view controller to do three graphs. I want it in a visual controller.

Enter image details here

< Div class = "itemprop =" text ">

SingleView application, create new projects of drag and drop, using the necessary core plot, also drag these three view controllers into your project.

See the three found administrators

  1. CPDPieChartViewController 2. CPDBarGraphViewController 3. CPDScatterPlotViewConntroller   

The subclasses do them instead of UIView in & lt in them; UIViewController & gt; Usage & lt; UIView & gt; 1 CPDPieChartView 2. CPDBarGraphView 3. CPDScatterPlotView

and remove the code related to the UIViewController-like method inside their implementation file. (Zero) viewDidAppear and unwanted synthesized objects and instead add initwithframe method <. P> Main ViewController Imports inside Ur Projects these three times viewed classes

  - (zero) viewDidLoad {CPDPieChartView * CPDPieChartViewObj = [[CPDPieChartView alloc] initWithFrame: CGRectmake (giving proper frame)] ; [CPDPEArtViewage InitPlot]; CPDBarGraphView * CPDBarGraphViewObj = [[CPDBarGraphView alloc] initWithFrame: CGRactMake (give correct frame)]; [CPDBrowsWebowsInitPlots]; CPDScatterPlotView * CPDScatterPlotViewObj = [[CPDScatterPlotView alloc] initWithFrame: CGRactMake (give proper frame)]; [CPDScatterPlotViewObj initPlot]; [Self.view addSubview: CPDPieChartViewObj]; [Self.view addSubview: CPDBarGraphViewObj]; [Self.view addSubview: CPDScatterPlotViewObj]; }    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -