tags:

views:

1707

answers:

4

Hello all,

I want to draw a piechart in my application. Do anyone know any code or tutorial to help me out. I found some in the following link http://rajeev.name/blog/2009/01/18/drawing-pie-charts-using-iphone-sdk/

but if there is any other more efficient way to do it, I want to learn it.

A: 

KeepEdge offers an iPhone charting/graphing API:

http://www.keepedge.com/products/iphone%5Fcharting/

You can also check the source code of AppMobile, which has a pie chart embedded inside it:

http://github.com/omz/AppSales-Mobile/tree/master

Joe V
A: 

I'm not sure if you know how to do pie charts on other platforms, but there really are some basic techniques that you should be aware of and understand, before embarking on creating pie charts on ANY platform.

See here for a pretty good discussion. There are many more out there, if you want to learn more.

Applying that to the iPhone isn't going to be child's play, but it's not too hard either. If you are looking for a library to do the work for you, look around and you'd probably find something to give you a head start.

mahboudz
+2  A: 

If you're interested in something very simple (but that I think looks pretty good), you can check out my PieChartView class: http://www.tempura.org/rants/2010/07/pie-charts-on-ios/

Dain Kaplan
A: 

there is new, nice Pie Chart 3D library. 3D charts which you can rotate and scale with fingers + protocol for getting information about tapped slice

http://iphone.orpi.pl/?p=20

plusz