[]
Serializable, Comparable<DisplayUnit>, ConstableUse this enum with IAxis.setDisplayUnit(DisplayUnit) to scale the values shown on a chart axis and its display unit label. Use Custom together with the custom display unit settings on the axis when you need a unit value that is not represented by the built-in options.
worksheet.getRange("A1:B3").setValue(new Object[][] {
{"Month", "Sales"},
{"Jan", 1200},
{"Feb", 1800}
});
IShape shape = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 220);
shape.getChart().getSeriesCollection().add(worksheet.getRange("A1:B3"), RowCol.Columns, true, true);
IAxis valueAxis = shape.getChart().getAxes().item(AxisType.Value);
valueAxis.setDisplayUnit(DisplayUnit.Hundreds);
Enum.EnumDesc<E extends Enum<E>>static DisplayUnitstatic DisplayUnit[]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