Extending coreplot to draw Gauge Chart and Perot Charts? - ios

Is there a way to extend coreplot library to create Gauge chart and Perot Chart? Could someone please point me in the right direction.Or is there any other library available to achieve the same.

Subclass CPTPlot and create a custom plot types. Look at the existing plots to see the required structure. The most important parts are the data loading and drawing methods.

Related

iOS Charts graphing a line from a function

I am using the iOS-charts library in (Swift 3) to plot my data into a scatter chart. I can do this part easily but now I am trying to get a non-linear best fit line to display too. Does the charts library have any easy functions for finding a best fit line, and if not how do I create a line from a function if a have to derive the best fit line function myself. I know how to create a line graph from data points but do not know if charts allows you to make one from a function. An example of what I'm trying to do is above. Any help is appreciated thanks.
Link to iOS-charts
http://www.appcoda.com/ios-charts-api-tutorial/

Multilevel drilldown in piechart

I am working on a project where i need to show data in a pie chart.
I need multilevel drill down in it i.e. about 5-6 levels.
Can anyone please share a sample code of how to do it?
I tried doing it in Highcharts as well as Amcharts.
But couldn't figure out how to get it done.
Thanks in advance.
in amcharts you might use related set of concentric donut charts with center looking like pie and outer looking like concentric circles. Search amcharts for nested donut charts.

How to achieve customizations in core plot -scatter plot?

I am working on core Plot library in ios.I was able to add mutliple scatter plots to graph.I am not able to achieve following customizations(Pls refer attached image):
Need to connect multiple Y-axis points and draw a vertical line.
On X-axis,need to add number of tasks(Custom UI views) for every month.
Thanks for any help you can give.
Use a third scatter plot to draw the vertical lines.
Don't add subviews to the Core Plot hosting view. Add them to the hosting view's superview. You can use the plot space to find the coordinates along the x-axis to anchor your custom views.

How to add labels that are related to particular slice for Pie Chart using coreGraphics iOS

I am drawing Pie Chart with Slices based on Array. I need to display specific label
related to each slice outside pie chart.
Please suggest any approach to this to implement this.
Thanks in Advance.
Lakshmi
Don't reinvent the wheel. This is a great framework for graphs that has a pie chart in it with all kinds of options for labels: https://github.com/core-plot/core-plot/wiki/Example-Graphs

What can I use to implement a doughnut chart in iOS?

I'm looking for a free iOS component that allows me to draw a doughnut chart with text in the center. So far I've only used Code Plot, but that is a full pie chart.
I'm attaching an example of the requirement.
Any help will be much appreciated.
I suggest searching on cocoacontrols.com. They have lots of open source controls for iOS and Mac. I didn't se any specifically called "doughnut chart" but some of the pie charts controls might offer that option.
In fact, it seems that this one does include what you're calling a doughnut chart. It doesn't look like it has built-in support for a label in the middle, but it does create a ring-shaped chart like you want.
You could also always create a pie chart and then put a view on top of it that is transparent except for a white circle in the middle, and then put a label on top of that.
Getting a little more complex you could modify the CorePlot control and add a filled CAShapeLayer to it.
Another option is to create svg chart and use UIWebView to display it. With svg chart, you get much more flexibility with libraries like highcharts and d3js. Here's an example with donut chart:
http://vida.io/documents/Byh8tTakzB59oGa9f
You can embed the link or save svg and display in UIWebView. Saving svg works offline.

Resources