Не обновляется график

See this sample for how to display new data dynamically.

No one is forcing you to have to pass your data through a file to get it into a Graph.
You can append your new data to a File as it arrives, and also add the new data to a ChartData afterwards.