Your problem is that you placed your graph outside the for loop and so the data does not display until the for loop completes. If you want to display data as it's being generated, you should use a chart inside the loop. If you want to use a graph, then inside the for loop, build an array with each iteration and wire the graph to that.