Thanks to Deepesh Agarwal.
When a timer fires, the program generates a new random value to add to its graphs. For the scrolling graph, the control erases its graph and redraws it shifted to the left. For the non-scrolling graph, the program draws the next line on the right. When this graph is full, the program erases it and starts over. See the code for details.
|