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!
How to turn off X axis optimizing?
Re: How to turn off X axis optimizing?
Got it.
Added this:
VerticalNumberAxis vna = (VerticalNumberAxis)plot.getVerticalAxis();
vna.setAutoRangeIncludesZero(true);
Thanks!
Added this:
VerticalNumberAxis vna = (VerticalNumberAxis)plot.getVerticalAxis();
vna.setAutoRangeIncludesZero(true);
Thanks!