Im having a bit of trouble figuring out how to specify placement for
the labels of different series in the legend "list".
I want to do this because I have five series with quite long descriptions,
this leads to four of them getting a new line in the legend and two shearing.
This would look a lot better if I was able to specify that every item in the
legend should appear on a line of it's own.
Any idèas?
Formating legend in BarChart (new line for each series)
You have to use a LegendTitle; create whith the plot of your chart and with ColumnArrangement
Code: Select all
LegendTitle legend = new LegendTitle(chart.getPlot(),new ColumnArrangement(), new ColumnArrangement(),
legend.setPosition(RectangleEdge.BOTTOM);
chart.addSubtitle(legend);