tags:

views:

69

answers:

2

I'm looking for some very simple to develop line graph library. However, all the examples seem quite complicated. I have a database with two main fields, date and value.

Can anyone point me at or provide me with an example of code which will do just that ?

+2  A: 

I've used the CorePlot library with success. Here is a really good tutorial on how to use it.

willcodejavaforfood
@Jules - And the problem with that is...?
willcodejavaforfood
@Jules - So unless someone provides you with the exact code to plot a graph from date and value (not specifying their types) you are not interested? :)
willcodejavaforfood
Perhaps you could let me know WHY that tutorial is not good for you, what you've tried and what your problem is with whatever you have tried?
willcodejavaforfood
"So unless someone provides you with the exact code" not at all, but I'd like to find an example which looks close to what I want before I spend too much time working on something.
Jules
Note that the Switch On The Code example uses an older version of the framework. I'd actually recommend using one of the example applications that ship with the framework as the basis for a new application. The CPTestApp-iPhone should be a good starting point, because it shows how to do a simple line chart from X,Y data.
Brad Larson
@Jules - Simply look inside the `examples` directory within the source code you downloaded for the Core Plot framework. All of the various examples should be there.
Brad Larson
A: 

There's example code for line graphs in Apple's Accelerometer sample app.

hotpaw2