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

4

22

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?

Suffocate answered 21/2, 2011 at 11:31 Comment(2)
Too late, but check out TapKu library's excellent graph: cocoacontrols.com/platforms/ios/controls/tapku-graphKeffiyeh
@sudorm-rf Unfortunately there is no such thing as Tapku library's graph. Not anymore.Kakalina
S
19

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.

Suffocate answered 22/2, 2011 at 4:59 Comment(4)
original deSimpleChart repo is not available now. Try github.com/duivesteyn-net/deSimpleChartExtroversion
I would rather suggest adding some descriptions or useful code snippets from desired links (which developers can build on) in the answer. As this some of these links are going down, there may be a time when this answer would not be useful because of dead links.Glycerin
@palaniraja: Your link is also dead.Glycerin
@ParthBhatt thanks for the headsup. Found a fork. github.com/sweetynebhwani/deSimpleChartExtroversion
H
3

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);
}
Henden answered 21/2, 2011 at 11:36 Comment(2)
Can you please share a sample code which would create a simple bar chart? Thanks!Suffocate
No problem. This is very simple of course, from there you can look for other Quartz examples if you want to go the do-it-yourself way. :)Henden
E
3

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.

Eberta answered 1/12, 2014 at 9:54 Comment(0)
S
0

iOSPlot, iOS:Chart, KeepEdge Library, Shinobi Controls

Solingen answered 10/3, 2014 at 19:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.