hi i am trying to draw some bar graphes based on some numbers. Just wondering if there is a library out there that can make my life easier.
Thanks
hi i am trying to draw some bar graphes based on some numbers. Just wondering if there is a library out there that can make my life easier.
Thanks
If it is cocos2d like in ur tag, here it is..
Under any CCLayer, overwrite the draw function.. Means you declare your own draw function.. Note that the line drawn will be at z:0.
If you have any other addchild on the layer, make sure that their z are less than 0.. Meaning.. [self addChild:spr z:-1]; Else you will not see the line..
Here's the codes:
-(void)draw{
glColor4f(0.8, 1.0, 0.8, 1.0);
glLineWidth(10.0f);
drawLine(xStartPoint,yStartPoint,xEndPoint,yEndPoint);
}
refer this site for full objective c coding for drawing bar graphs: -http://bertmcdowell.com/?page_id=606