Graph generation on iPhone
Anyone have experience with drawing graphs on the iPhone? Looks like GraphKit isn't an option, so it's up to the programmer to either write his own library (using OpenGL, I guess), or an existing library. I can't seem to find any libraries that are confirmed to work on the iPhone.
If you've written your own how did you go about it (opengl, quartz, etc), or if you used a library which one?
如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

评论(6)

You can check out the PowerPlot library which is an iOS native library. It is the only choice (to my knowledge) that not only has the "usual" assortment of charts, but also graphs (with nodes and connections) among the views. It is not based on OpenGL, but on Quartz. It also does not target the desktop version of MacOS, focusing specifically on iOS.
Licensing policy is dual license - developers can choose GPLv3 or a commercial one.

I have tried to plot a graph using Quartz 2D . It looks more like a drawing. But I am fixing the axes and plotting the coordinates according to the axes. But the problem is I want to make the graph user interactive. Each coordinate on the graph will further have to drill down showing the details of the coordinate. So how can I make the coordinates interactive .

I've done graphs in an application before using Quartz2D. Since the graph was particularly wide, I had to use a CATiledLayer for the view, which I think was what caused more issues than it fixed. The graph looked nice, but in the end, it was just too difficult to deal with. Too many bugs when trying to draw too much of the graph at once, or trying to draw the graph several times in a row quickly as the user changes between different views.
At this point, my suggestion would be to try something in OpenGL, though I don't know how you'd go about achieving it, since line drawing is pretty basic on the iPhone in OpenGL.


Ive used coreplot...got an appstore app with it...not thrilled about its use. Its very customizable, maybe TOO customizable. It gave me quite a bit of trouble setting it up and i still have problems with is. Id like to know how Roambi.com does their porting from excel, it looks pretty good. MSOffice4mac should just come out with a direct port to iphone
发布评论
需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。