[]
Serializable, Comparable<LegendPosition>, ConstableUse this enumeration with ILegend.setPosition(LegendPosition) to place the legend above, below, to the left of, or to the right of the chart, or to use a custom legend position.
worksheet.getRange("A1:C3").setValue(new Object[][] {
{"Region", "Sales", "Cost"},
{"North", 100, 80},
{"South", 120, 90}
});
IShape shape = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 320, 220);
shape.getChart().getSeriesCollection().add(worksheet.getRange("A1:C3"), RowCol.Columns, true, true);
shape.getChart().getLegend().setPosition(LegendPosition.Right);
Enum.EnumDesc<E extends Enum<E>>static LegendPositionstatic LegendPosition[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null