Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoa Graphing/Plotting Framework on iOS [closed]

Looking at adding some data graphing to a new iPhone app in development (ala the Stocks app).

I realize I could buckle down and do some Quartz drawing but I'm hoping that someone somewhere has a tip on a Cocoa graphing framework that works on iOS.

like image 561
Hunter Avatar asked Nov 04 '08 21:11

Hunter


3 Answers

Core Plot

There's a plotting framework in active development on Core Plot.

It works on both Mac and iPhone.

like image 139
Dave DeLong Avatar answered Nov 18 '22 02:11

Dave DeLong


Despite eisernWolf spamming links to his Google Code page, it is actually pretty OK.

Core Plot is by far the more advanced library, and the way you want to go for math type applications.

But if your goal is some simple data visualisation, s7graphview has the following going for it:

  • Much simpler than core plot.
  • Distributed as source code. Just drop the files into your project.
  • It's a good way to learn how some of the Core Animation stuff works.

Also I think the default style is a little nicer than Core Plot.

like image 7
Megasaur Avatar answered Nov 18 '22 01:11

Megasaur


If all you need to do is draw line graphs, take a look at the Seismic example that Apple posted - you can yank large quantities of code from that.

like image 3
wisequark Avatar answered Nov 18 '22 02:11

wisequark