# Simple line graph

**URL:** <https://forum.kirupa.com/t/simple-line-graph/303675>\
**Category:** Uncategorized\
**Created:** [January 25, 2010, 12:41am UTC](https://forum.kirupa.com/t/simple-line-graph/303675 "2010-01-25T00:41:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdulberg](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jdulberg](https://forum.kirupa.com/u/jdulberg)\
**Post date:** [January 25, 2010, 12:41am UTC](https://forum.kirupa.com/t/simple-line-graph/303675/1 "2010-01-25T00:41:47Z")

</div>

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
