When the labels of my legend are too long and can't fit on a single line, they aren't not centered any more.
Example :
Is there a solution to solve this or is it a bug ?
Centering the labels of the legend when too long
Alas, this is not a solution but a workaround.
You can move labels a little with this code
You can move labels a little with this code
Code: Select all
chart.getLegend().setPadding(new RectangleInsets(UnitType.RELATIVE,0,0.1,0,0));