Chart does not auto-zoom out after dataset updates
Chart does not auto-zoom out after dataset updates
I created a JFreeChart which has periodic updates to the dataset after the chart is created. That part works fine, the chart correctly updates with new data. Problem is that eventually, it starts plotting off the chart. I tried adding in the RestoreAutoBounds() from ChartPanel class right after I update the dataset, but unfortunately that did not seem to help. Any ideas on how to fix this issue?
Re: Chart does not auto-zoom out after dataset updates
I had implemented my own dataset classes and forgot to call fireDataSetUpdate(). It's working now.