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

后端 未结 2 1522
挽巷
挽巷 2020-12-18 13:15

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.

相关标签:
2条回答
  • 2020-12-18 13:37

    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 讨论(0)
  • 2020-12-18 13:43

    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!

    0 讨论(0)
提交回复
热议问题