Priya,
Using setInterval() you can call functions at specified intervals. Making the JSON call inside the setInterval() method would fetch the data at a fixed interval of time.
Please take a look at this link for making a JSON call inside setInterval() method.
____________
Indranil Deo,
Team CanvasJS