Choose one javascript charting libraries compatible with jQuery and use that to generate chart.
http://www.sitepoint.com/11-best-jquery-charting-libraries/
If you are developing for Moodle prior to 2.9 than you can also use YUI chart library.
Choose one javascript charting libraries compatible with jQuery and use that to generate chart.
http://www.sitepoint.com/11-best-jquery-charting-libraries/
If you are developing for Moodle prior to 2.9 than you can also use YUI chart library.