A basic example of AJAX (getting a number)

This is a basic example of using AJAX to request the data from the server to fetch a number. The window.onload function initiates the AJAX request and then the callback function - drawGraph() - takes the response and creates the chart.

[No canvas support]

Note: In October 2013 a new CSV reader was added to RGraph. It makes reading CSV files much easier. You can read about the new CSV reader here.