Resetting the Axes

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Frank Rossdeutscher

Resetting the Axes

Post by Frank Rossdeutscher » Thu Jun 20, 2002 10:26 am

Hi Folks!

I have a diagram showing my simulation data. Now, the Y Axis is showing, say, a range from 0 - 20. Now, as the simulation continues, I insert a new dataset, exceeding the range of 20. Even though the corresponding axis is set to "autorange", it won't alter itself to the new values. When I right-click and choose zoom/reset, the axis changes properly. So, I'd like to know, whether I can invoke this reset method manually (where is it, is it publically accessible?), or if there is anything I've done wrong, concerning the autorange programming ...

Regards, Frank

David Gilbert

Re: Resetting the Axes

Post by David Gilbert » Thu Jun 20, 2002 11:51 am

Hi Frank,

When you replace the existing dataset with a new one, the axes should update automatically (unless you have switched off auto-range). I let a bug slip into 0.9.0 that nroke this, but it is fixed (or should be) in 0.9.1.

Regards,

DG.

Locked