How can I use JFreeChart to display just the most recent data in a continually updated time series?
Addenda: A complete, working example that incorporates the accepted answer is shown here. See also this variation having two series. See also this Q&A regarding setTimeBase().
You can also eliminate the zero by first
advanceTime(), thenappendData. (swap the way they are doing it in the example).