有没有关于如何在iPhone上的Core Plot中绘制折线图的示例? [英] Are there any examples for how to draw a line chart in Core Plot on the iPhone?

查看:399
本文介绍了有没有关于如何在iPhone上的Core Plot中绘制折线图的示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一些示例代码或有关如何使用Core Plot框架绘制折线图的教程?我无法使用Google找到任何内容。

Is there some sample code or a tutorial out there about how to draw a line chart using the Core Plot framework? I can't find anything using Google.

推荐答案

如果您已下载框架,请转到已签出版本中的示例目录。这里有几个例子,包括CPTestApp-iPhone(演示线条,条形图和饼图),CPTestApp-iPad(相同,但适用于iPad),StockPlot(下载股票图表并绘制线条图),以及AAPLot(它抓住Apple的股票价格并使用开盘 - 高 - 低 - 关闭图表绘制它)。

If you have downloaded the framework, go to the examples directory within your checked-out version. There are several examples there, including CPTestApp-iPhone (which demonstrates line, bar, and pie charts), CPTestApp-iPad (same, but for the iPad), StockPlot (which downloads stock charts and plots the line graphs for them), and AAPLot (which grabs Apple's stock price and plots it using an open-high-low-close chart).

这些示例在API更改时更新,因此它们可以是被认为可靠的工作来源。

These examples are updated as the API changes, so they can be considered reliable sources to work from.

这篇关于有没有关于如何在iPhone上的Core Plot中绘制折线图的示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆