title: Using JFreeChart to display recent changes in a time series
body: <p>How can I use <a href="http://www.jfree.org/jfreechart/" rel="noreferrer"><code>JFreeChart</code></a> to display just the most recent data in a continually updated time series?</p>
  
  <p>Addenda: A complete, working example that incorporates the accepted answer is shown <a href="https://stackoverflow.com/a/5048863/230513">here</a>. See also this <a href="https://stackoverflow.com/a/15521956/230513">variation</a> having two series. See also this <a href="https://stackoverflow.com/q/31902373/230513"><em>Q&amp;A</em></a> regarding <code>setTimeBase()</code>.</p>