For displaying live data from database you need to create
1. A PHP service (or any other server side technology) that returns data in JSON format to CanvasJS,
2. HTML page that does AJAX request after certain interval to the server and fetches the data. After getting the data, it will render the updated chart.
Here is a similar example to implement the same in client side.
Also refer this thread.