Hi,
I am using a TimeSeriesCollection with 4 time series in it. I am adding data in these series periodically(every 1s). Since each series add, refreshes the chart separately, the chart is getting refreshed 4 times than expected. This is resulting in high CPU usage. Is there a way to override the chart refresh, while adding data into the time series so that refresh can be called manually after adding data into all the 4 series?
-Rambabu
Refresh issue in TimeSeriesCollection with multiple series
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Do something like:
Code: Select all
chart.setNotify(false);
// update your dataset here
chart.setNotify(true);
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

