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

2

2

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.

Navigable answered 29/5, 2010 at 8:30 Comment(0)
A
2

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.

Aristocratic answered 29/5, 2010 at 12:12 Comment(0)
S
6

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!

Sequin answered 19/8, 2011 at 20:39 Comment(1)
This post is no longer available publicly @mondousage.Traitor
A
2

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.

Aristocratic answered 29/5, 2010 at 12:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.