@stella,
In the code you have shared(plotCSV.php), there is no update method used to update the data from CSV every 5 minutes. I suggest you to use an update method as provided in the previous jsfiddle and it should work fine in this case.
__
Priyanka M S
Team CanvasJS