We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 25 days ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
您可以使用quartz 2d 自己绘制图表,而不是使用需要互联网连接的核心图或google api。这就是我为我的应用程序所做的。 CorePlot 安装起来有点棘手,而且对于小型项目来说似乎很复杂。
http://buildmobile.com/creating-a-graph- with-quartz-2d-part-3/
自己绘制图表的优点是您可以学习使用 Apple 的标准绘图 api。祝你好运
Instead of using core plot or an google api that needs an internet connection you can draw a graph yourself using quartz 2d. That's what I did for my app. CorePlot was kind of tricky to install and it seems complicated for small projects.
http://buildmobile.com/creating-a-graph-with-quartz-2d-part-3/
The advantage of drawing the graphs yourself is that you learn to use the standard drawing apis from Apple. Good luck
最简单的方法是使用谷歌图表 API,我在所有应用程序中都使用它。
请参阅此处的教程,
http://code.google.com/apis/ Chart/image/docs/making_charts.html
只需发出一个 HTTP 请求,您就可以直接根据您的要求获取图像。
The easiest way is to use google chart api, I use this in all my apps.
see the tutorial here,
http://code.google.com/apis/chart/image/docs/making_charts.html
you will directly get image as per your requirement just by making one HTTP Request.
我使用了Core Plot,它很容易使用,并且几乎所有图表都有示例...
I used Core Plot, it's easy to use and there are samples for almost all the graphs...
如果您想使用 Objective-C 或 Swift 在 iPhone 应用程序中绘制图表,可以使用 SciChart,它支持超过20 种流行的图表类型,包括柱形图和条形图。
scichart 网站上有一些非常好的示例,用于在 Objective-C 和 Swift 中绘制图表类型。
例如:
示例也托管在 Github 上 并且还有 教程 帮助您学习这个强大的工具。
。
声明一下,我是 scichart 项目的技术负责人
If you want to draw graphs in iPhone applications using Objective-C or Swift, you can use SciChart, which supports over 20 popular chart types, including Column and Bar.
There are some really nice examples over at the scichart website for drawing chart types in Objective-C and Swift.
For instance:
Examples are also hosted on Github and there are also tutorials to help you learn this powerful tool.
.
As a disclosure, i am the tech lead on the scichart project