Vertical Scaling

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

Vertical Scaling

Post by Mike Kordik » Wed Apr 18, 2001 7:31 pm

I created a line graph with a data source. I then change the data source and call setDataSource() to update the graph. How do I update the vertical scaling?

Thanks,
Mike

David Gilbert

RE: Vertical Scaling

Post by David Gilbert » Wed Apr 25, 2001 11:54 pm

Mike,

The vertical axis range should be updated automatically, unless you have called myAxis.setAutoRange(false). If this is not happening then it's a bug.

If you have set the AutoRange property to false, then you could call the setMinimumAxisValue() and setMaximumAxisValue() methods (defined in NumberAxis.java) to update the range.

Regards,

DG.

Locked