@khammad,
It is possible to render chart from a dynamically updating text file. Please take a look at this jsfiddle.
The format of the text file(datapoints.txt) should be as below (representing x and y values):
10 20
15 25
20 15
25 33
30 9
35 15
40 20
__
Priyanka M S
Team CanvasJS