[]
Serializable, Comparable<TrendlineType>, ConstableUse this enum with ITrendline.setType(TrendlineType) to choose the mathematical model used to fit a trendline to a data series, such as linear, logarithmic, polynomial, power, exponential, or moving-average analysis.
worksheet.getRange("A1:B5").setValue(new Object[][] {
{"Month", "Sales"}, {"Jan", 10}, {"Feb", 15}, {"Mar", 18}, {"Apr", 24}
});
IShape shape = worksheet.getShapes().addChart(ChartType.ColumnClustered, 20, 20, 300, 200);
shape.getChart().getSeriesCollection().add(worksheet.getRange("A1:B5"), RowCol.Columns, true, true);
ITrendline trendline = shape.getChart().getSeriesCollection().get(0).getTrendlines().add();
trendline.setType(TrendlineType.Linear);
Enum.EnumDesc<E extends Enum<E>>static TrendlineTypestatic TrendlineType[]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