I am having a problem with my last tick label being cut-off on a horizontal bar chart. I am using the NumberAxis to set the range from 0-1.5 and format the numbers as percent ("0%"). The last value is "150%" and I can't see all of the percent symbol. I can't use setUpperMargin() because this applies the margin inside the graph not out. The requirement is for the graph to end at 150% so increasing the range is not an option. Is there anyway to pad or apply a margin out side off the graph box so this does not happen?
Thanks
Tick label cut-off
Re: Tick label cut-off
Try the setInsets(...) method in the plot class:
Plot plot = myChart.getPlot();
plot.setInsets(myNewInsets);
...to increase the spacing around the outside of the plot area.
Not very elegant, but I can't think of another way to solve the problem (apart from modifying the axis code).
Regards,
DG.
Plot plot = myChart.getPlot();
plot.setInsets(myNewInsets);
...to increase the spacing around the outside of the plot area.
Not very elegant, but I can't think of another way to solve the problem (apart from modifying the axis code).
Regards,
DG.