Are there any alternatives to Core-Plot for drawing graphs in iPhone SDK?
在iPhone SDK中绘制图形是否有Core-Plot的替代方案?
I am having hard time integrating core-plot in my app. Lot of issues.
我很难在我的应用程序中集成核心情节。很多问题。
Can you please suggest some alternatives to core-plot?
你能否提出一些核心情节的替代方案?
4 个解决方案
#1
18
Some of the alternatives that I found were:
我发现的一些替代方案是:
http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/
http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/
http://www.rgraph.net/
http://www.ivisualization.com/
http://www.ivisualization.com/
http://www.vvi.com/apps/vvidget
http://www.vvi.com/apps/vvidget
http://cocoacontrols.com/platforms/ios/controls/tapku-graph (thanks Sudo for this link)
http://cocoacontrols.com/platforms/ios/controls/tapku-graph(感谢Sudo获取此链接)
http://www.shinobicontrols.com/ (latest addition)
http://www.shinobicontrols.com/(最新补充)
https://github.com/sweetynebhwani/deSimpleChart
https://github.com/sweetynebhwani/deSimpleChart
These links do not work. They are already down:
这些链接不起作用。他们已经失败了:
http://code.google.com/p/s7graphview/
http://code.google.com/p/s7graphview/
I hope this helps.
我希望这有帮助。
#2
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.
如果您打算绘制的内容相对简单,可以使用Quartz并自己绘制图形来获得快速结果。只需子类化UIView并覆盖其drawRect:方法。
A very, very simple example of drawing a square, 10x50 pixels at a fixed position, via Quartz:
一个非常非常简单的例子,通过Quartz在固定位置绘制一个10x50像素的正方形:
- (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);
}
#3
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.
由于OP提出了他的问题,因此有大量新的图表库。 GraphKit,TWRCharts,仅举两例。如果你搜索'graph',CocoaControls列出了更多。所以我想就这个问题收集更多反馈意见。
#4
0
iOSPlot, iOS:Chart, KeepEdge Library, Shinobi Controls
iOSPlot,iOS:图表,KeepEdge库,Shinobi Controls
#1
18
Some of the alternatives that I found were:
我发现的一些替代方案是:
http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/
http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/
http://www.rgraph.net/
http://www.ivisualization.com/
http://www.ivisualization.com/
http://www.vvi.com/apps/vvidget
http://www.vvi.com/apps/vvidget
http://cocoacontrols.com/platforms/ios/controls/tapku-graph (thanks Sudo for this link)
http://cocoacontrols.com/platforms/ios/controls/tapku-graph(感谢Sudo获取此链接)
http://www.shinobicontrols.com/ (latest addition)
http://www.shinobicontrols.com/(最新补充)
https://github.com/sweetynebhwani/deSimpleChart
https://github.com/sweetynebhwani/deSimpleChart
These links do not work. They are already down:
这些链接不起作用。他们已经失败了:
http://code.google.com/p/s7graphview/
http://code.google.com/p/s7graphview/
I hope this helps.
我希望这有帮助。
#2
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.
如果您打算绘制的内容相对简单,可以使用Quartz并自己绘制图形来获得快速结果。只需子类化UIView并覆盖其drawRect:方法。
A very, very simple example of drawing a square, 10x50 pixels at a fixed position, via Quartz:
一个非常非常简单的例子,通过Quartz在固定位置绘制一个10x50像素的正方形:
- (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);
}
#3
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.
由于OP提出了他的问题,因此有大量新的图表库。 GraphKit,TWRCharts,仅举两例。如果你搜索'graph',CocoaControls列出了更多。所以我想就这个问题收集更多反馈意见。
#4
0
iOSPlot, iOS:Chart, KeepEdge Library, Shinobi Controls
iOSPlot,iOS:图表,KeepEdge库,Shinobi Controls