drawing graphs on iPhone

Discussion in 'Mac Programming' started by jguru, May 12, 2008.

  1. jguru macrumors member

    Joined:
    Apr 10, 2008
    #1
    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
     
  2. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #2
    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.
     

Share This Page