How to turn off X axis optimizing?

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

How to turn off X axis optimizing?

Post by Erich Kilmer » Fri Dec 20, 2002 3:35 pm

Using JFreeChart to build TimeSeries chart and they look really great!
I do have one question. On the X axis are test values between 0.0 - 1.0.
On the Y axis are dates which are working good.
In several of the plots the values are either 0.5 or 1.0.
When the chart displays the X axis ranges from 0.5 to 1.0.
I can understand it doing this since its just optimizing the data but I think my users are going to want to see the X axis range from 0.0 to 1.0.
How do I turn this optimizing off?
TIA!

Erich Kilmer

Re: How to turn off X axis optimizing?

Post by Erich Kilmer » Fri Dec 20, 2002 3:53 pm

Got it.
Added this:
VerticalNumberAxis vna = (VerticalNumberAxis)plot.getVerticalAxis();
vna.setAutoRangeIncludesZero(true);
Thanks!

Locked