开发者

Are there any examples for how to draw a line chart in Core Plot on the iPhone?

开发者 https://www.devze.com 2023-01-01 17:28 出处:网络
Is there some sample code or a tutorial out there about h开发者_运维问答ow to draw a line chart using the Core Plot framework?I can\'t find anything using Google.I\'ve created a Core Plot \"Hello Worl

Is there some sample code or a tutorial out there about h开发者_运维问答ow to draw a line chart using the Core Plot framework? I can't find anything using Google.


I've created a Core Plot "Hello World" with an x^2 graph here: http://recycled-parts.blogspot.com/2011/08/coreplot-hello-world.html

Hope this helps!


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).

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号