Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jguru

macrumors member
Original poster
Apr 10, 2008
43
0
Alright so one of the tasks that my application needs to do is generate graphs on the fly based on the data that is sitting in SQLLite DB.

Is there any help/tutorial/comments/suggestions on how to approach this problem?

I am guessing that I would need to use OpenGL to render the graphs but is there any generic API that I can use?

Thanks
 

HiRez

macrumors 603
Jan 6, 2004
6,250
2,576
Western US
I don't know the best way to go about it, but in addition to OpenGL you could also use Quartz, which is probably better suited to, and easier for, drawing pretty 2D graphs than OpenGL. Quartz gives you automatic antialiasing, Bézier path primitives with various corner joints, shadows, gradients, clipping areas, etc. It should be fairly easy to map point values from a database to x, y shape points on the screen.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.