Hello,
I'm using an XYLineChart and I send it live data. Is it possible to have the chart only show the latest N values from an XYSeries / XYSeriesCollection? The series is populated in order (x always increasing) if that makes a difference. If possible, I would prefer to leave the "old" data in the XYSeries, as I may want to chart the entire series later on.
-Farrell
Is it possible to have a chart only show the end of a series
Re: Is it possible to have a chart only show the end of a se
A couple of possiblities:
Either implement your own Dataset wrapper that returns only the N latest points even when having more than N.
Or alternatively implement zooming and/or scrolling to your graph so that the view only shows the N latest but you can scroll back to view the older data.
Either implement your own Dataset wrapper that returns only the N latest points even when having more than N.
Or alternatively implement zooming and/or scrolling to your graph so that the view only shows the N latest but you can scroll back to view the older data.