This chart updates itself 20 times a second.New values are appended to the data that's displayed and old values are removed from the data. Careful use is made of local variables - so that the updates are done smoothly.
Setting the ymax to 250 means the scale stays the same - but you can also have a dynamic scale that changes to accommodate the values on the chart.