Using JFreeChart to display recent changes in a time series
问题 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() . 回答1: You can also eliminate the zero by first advanceTime() , then appendData . (swap the way they are doing it in the example). 回答2: The JFreeChart class DynamicTimeSeriesCollection is a good choice. Addendum: As noted