'cause there is not enough space between bar and the top of the chart.
Knows anyone a solutions?
I've the same problem like this
http://www.object-refinery.com/jfreecha ... line_1.png
thx
Matthias
with setValueLabelsVisible not all values displayed ...
Re: with setValueLabelsVisible not all values displayed ...
Hi Matthias,
Unfortunately the auto-range calculation for the axis doesn't know about the value labels, so it doesn't allow any extra room for them. All you can do is manually increase the upper margin for the axis:
ValueAxis axis = myPlot.getRangeAxis();
axis.setUpperMargin(0.10); // ten percent
Regards,
Dave Gilbert
Unfortunately the auto-range calculation for the axis doesn't know about the value labels, so it doesn't allow any extra room for them. All you can do is manually increase the upper margin for the axis:
ValueAxis axis = myPlot.getRangeAxis();
axis.setUpperMargin(0.10); // ten percent
Regards,
Dave Gilbert
Re: with setValueLabelsVisible not all values displayed ...
Thanks David,
i will try that
bye
Matthias
David Gilbert wrote:
>
> Hi Matthias,
>
> Unfortunately the auto-range calculation for the axis doesn't
> know about the value labels, so it doesn't allow any extra
> room for them. All you can do is manually increase the upper
> margin for the axis:
>
> ValueAxis axis = myPlot.getRangeAxis();
> axis.setUpperMargin(0.10); // ten percent
>
> Regards,
>
> Dave Gilbert
i will try that
bye
Matthias
David Gilbert wrote:
>
> Hi Matthias,
>
> Unfortunately the auto-range calculation for the axis doesn't
> know about the value labels, so it doesn't allow any extra
> room for them. All you can do is manually increase the upper
> margin for the axis:
>
> ValueAxis axis = myPlot.getRangeAxis();
> axis.setUpperMargin(0.10); // ten percent
>
> Regards,
>
> Dave Gilbert