Simple line graph

Hello,

I have an array of 120 numbers that I’d like to plot a simple line chart with. These numbers are on the Y axis and range from 300-1000 while the X axis is time (stored in a separate array).

On a chart of say 800 x 400px, how do I figure out where each data point would be and draw a line from one to the next?

Any suggestions on how to accomplish this?

Thanks a ton!
Jason