Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the alternatives to Core-Plot for drawing graphs in iPhone SDK

Are there any alternatives to Core-Plot for drawing graphs in iPhone SDK?

I am having hard time integrating core-plot in my app. Lot of issues.

Can you please suggest some alternatives to core-plot?

like image 750
meetpd Avatar asked Feb 21 '11 11:02

meetpd


3 Answers

Some of the alternatives that I found were:

http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/

http://www.shinobicontrols.com/ (discontinued)

https://www.scichart.com/ (good alternative to Shinobi)

https://github.com/sweetynebhwani/deSimpleChart

https://github.com/danielgindi/Charts

I hope this helps.

like image 68
meetpd Avatar answered Oct 04 '22 07:10

meetpd


If what you intend to draw is relatively easy, you may get quick results by using Quartz and drawing the graph yourself. Just subclass an UIView and override its drawRect: method.


A very, very simple example of drawing a square, 10x50 pixels at a fixed position, via Quartz:

- (void) drawRect:(CGRect)rect
{
    CGContextRef ctx = UIGraphicsGetCurrentContext();
    CGColorRef red = [[UIColor redColor] CGColor];

    CGRect barRect = CGRectMake(10.f, 20.f, 10.f, 50.f);
    CGContextSetFillColorWithColor(ctx, red);
    CGContextFillRect(ctx, barRect);
}
like image 30
Pascal Avatar answered Oct 04 '22 08:10

Pascal


Since the OP asked his questions, there has been an abundance of new chart libraries. GraphKit, TWRCharts, to name only two. CocoaControls lists a lot more, if you do a search for 'graph'. So I'd like to gather more feedback with regards to this question.

like image 24
DrMickeyLauer Avatar answered Oct 04 '22 06:10

DrMickeyLauer