Chart does not auto-zoom out after dataset updates

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ptd26
Posts: 27
Joined: Sun Nov 08, 2009 10:12 am
antibot: No, of course not.

Chart does not auto-zoom out after dataset updates

Post by ptd26 » Mon Aug 16, 2010 9:24 am

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?

ptd26
Posts: 27
Joined: Sun Nov 08, 2009 10:12 am
antibot: No, of course not.

Re: Chart does not auto-zoom out after dataset updates

Post by ptd26 » Wed Aug 18, 2010 2:52 am

I had implemented my own dataset classes and forgot to call fireDataSetUpdate(). It's working now.

Locked