@priya,
Please download the sample project.
1.Database.sql is the database file you need to import it in database.
2.index.php creates Charts using JSON Data from an external source(service.php).
3.service.php extracts data from database, uses JSON to parse the data and send it to index.php.
___
Indranil Deo
Team CanvasJS