views:

7445

answers:

9

Anyone have experience with drawing graphs on the iPhone? Looks like GraphKit isn't an option, so it's up to the programmer to either write his own library (using OpenGL, I guess), or an existing library. I can't seem to find any libraries that are confirmed to work on the iPhone.

If you've written your own how did you go about it (opengl, quartz, etc), or if you used a library which one?

+8  A: 

I have been keeping my eye on this one:

core-plot

but I haven't yet tried it. Though it seams like it has potential.

chris.

PyjamaSam
+1  A: 

I've done graphs in an application before using Quartz2D. Since the graph was particularly wide, I had to use a CATiledLayer for the view, which I think was what caused more issues than it fixed. The graph looked nice, but in the end, it was just too difficult to deal with. Too many bugs when trying to draw too much of the graph at once, or trying to draw the graph several times in a row quickly as the user changes between different views.

At this point, my suggestion would be to try something in OpenGL, though I don't know how you'd go about achieving it, since line drawing is pretty basic on the iPhone in OpenGL.

Ed Marty
A: 

I have tried to plot a graph using Quartz 2D . It looks more like a drawing. But I am fixing the axes and plotting the coordinates according to the axes. But the problem is I want to make the graph user interactive. Each coordinate on the graph will further have to drill down showing the details of the coordinate. So how can I make the coordinates interactive .

+1  A: 

Sweet and simple to use. Straighforward iPhone way: http://code.google.com/p/s7graphview/

Aleks N.
A: 

For developers looking for a very basic chart have a look at http://github.com/duivesteyn-enterprises/deSimpleChart.

norskben
A: 

Heres the code i wrote for a very simple graph which i used to show several seconds of accelerometer data.

http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/

hope it helps

Seb Kade
A: 

If you're into HTML5 and Canvas, this looks pretty sweet: http://www.rgraph.net/

mullagatawny
A: 

hi-

Try:

http://www.vvi.com/apps/vvidget

thanks!-

-lance

lbland
A: 

Ive used coreplot...got an appstore app with it...not thrilled about its use. Its very customizable, maybe TOO customizable. It gave me quite a bit of trouble setting it up and i still have problems with is. Id like to know how Roambi.com does their porting from excel, it looks pretty good. MSOffice4mac should just come out with a direct port to iphone

Mars