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

て烟熏妆下的殇ゞ 提交于 2019-11-28 02:17:45

问题


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.


回答1:


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.




回答2:


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!



来源:https://stackoverflow.com/questions/2934357/are-there-any-examples-for-how-to-draw-a-line-chart-in-core-plot-on-the-iphone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!