This is a basic example of using CSV and AJAX. AJAX is used to request the data and it is returned in CSV format. The JSON data is then evaluated and a chart created using it.
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.