I’m trying to draw a static graph based on an Array of Numbers. This graph should be nice smooth sinus-like. The bottom values should be always zero, the upper values are specified in an Array of Numbers.

I’ve been trying to achieve this effect with curveTo(), but without any luck.
EDIT: Values are like: 10, 15, 40, 28, 5, 2, 27 etc.
Can anyone help please?
curveTo() draws only quadratic Bezier curves, which essentially are parabolas segments. Hence, you have to conceive some tricky algorithm if you want to draw a sine with variable amplitude.
I suggest that you should draw your curve with straight line segments. It will require quite a lot of iterations in a loop, but is a very simple approach one can code in just few minutes. Do you really need something more elaborate?
Alternatively, have a look at http://code.google.com/p/bezier/ : their demo is cool.
If you want to create something that can not be easily defined with a single equation, you may want to look at Lagrange approximation: it interpolates given points into a smooth function.
EDIT Lagrange approximation example
The code below draws the following:
Approximator class