I would like to arrange multiple legends (or subtitles) along the right edge of a plot. Adding a second legend using the following code results in the 2 legends side by side, rather than on top of each other.
Code: Select all
LegendTitle lt = new LegendTitle(new LegendLikePlotAnnotation());
lt.setFrame(new BlockBorder(Color.BLACK));
lt.setPosition(RectangleEdge.RIGHT);
chart.addLegend(lt);