@sepetar,
CanvasJS render the charts based on the dataPoints passed to it. To read a CSV file/CSV Data you will have to use an AJAX request and convert the same to CanvasJS supported format. Please refer to this StackOverflow link for more information on AJAX calls.
___________
Indranil Deo,
Team CanvasJS