Can anyone point me to an example that uses core plot library to draw a curve through N Points as a graph ?
IMPORTANT : I have used core-plot. Unfortunately it just joins your dots with straight lines and not smooth curves.
For achieving this we need to use this method.
the code is in C# to generate control points for a bezier spline.
I converted this code to Objective C and it works brilliantly for me.
http://www.codeproject.com/KB/graphics/BezierSpline.aspx
Make sure that all the arrays used in the code are filled with ‘n’ NSNull objects as the C# code here uses dynamic arrays where we can put values at any index but same cant be done in Objective C unless we have the existing index in the NSMutableArrays.
Here’s the Google Search i did
Here is the Core-Plot’s Own example project: Here
And a Third party Tutorial: Here
Also here is a helpful snippet from the Core-Plot Developers: Here
Hope it helps, btw most people on here will prob tell you to use Google for a simple request like this.
So for future reference when you need an example of an API search in google the following “Insert API Name here” Tutorial, This will usually return at least 1 tutorial in most cases on the first page