If you try to draw yourself, you should use Path functions to draw in context in Quartz
CGContextBeginPath(context); CGContextMoveToPoint(context, startX, startY); CGContextAddLineToPoint(context, nextX, nextY);
There are many code examples for handling context and drawing in quartz.
But there are probably some libraries to make it easier to draw graphs ... someone else would have to help you with this, not a cup of tea :)
Pieter
source share