- Using JSON in jQuery.
- Ajax Tutorials
As Brock says above, then look at: http://www.highcharts.com/
Why reinvent the wheel? Unless you want the experience. Graphing is fun.