ITrendline

All Implemented Interfaces: com.aspose.slides.IOverridableText

public interface ITrendline extends IOverridableText

Class represents trend line of chart series

Methods

MethodDescription
getTrendlineName()Gets or sets name of the trendline.
setTrendlineName(String value)Gets or sets name of the trendline.
getTrendlineType()Gets or sets type of trend line.
setTrendlineType(int value)Gets or sets type of trend line.
getFormat()Represents the format of the trend line.
setFormat(IFormat value)Represents the format of the trend line.
getBackward()Specifies the number of categories (or units on a scatter chart) that the trend line extends before the data for the series that is being trended.
setBackward(double value)Specifies the number of categories (or units on a scatter chart) that the trend line extends before the data for the series that is being trended.
getForward()Specifies the number of categories (or units on a scatter chart) that the trendline extends after the data for the series that is being trended.
setForward(double value)Specifies the number of categories (or units on a scatter chart) that the trendline extends after the data for the series that is being trended.
getIntercept()Specifies the value where the trendline shall cross the y axis.
setIntercept(double value)Specifies the value where the trendline shall cross the y axis.
getDisplayEquation()Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue).
setDisplayEquation(boolean value)Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue).
getOrder()Specifies the order of the polynomial trend line.
setOrder(byte value)Specifies the order of the polynomial trend line.
getPeriod()Specifies the period of the trend line for a moving average trend line.
setPeriod(byte value)Specifies the period of the trend line for a moving average trend line.
getDisplayRSquaredValue()Specifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation).
setDisplayRSquaredValue(boolean value)Specifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation).
getRelatedLegendEntry()Represents legend entry related with this trendline Read-only ILegendEntryProperties.

getTrendlineName()

public abstract String getTrendlineName()

Gets or sets name of the trendline. Read/write String.

Returns: java.lang.String

setTrendlineName(String value)

public abstract void setTrendlineName(String value)

Gets or sets name of the trendline. Read/write String.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getTrendlineType()

public abstract int getTrendlineType()

Gets or sets type of trend line. Read/write TrendlineType(#getTrendlineType.getTrendlineType/#setTrendlineType(int).setTrendlineType(int)).

Returns: int

setTrendlineType(int value)

public abstract void setTrendlineType(int value)

Gets or sets type of trend line. Read/write TrendlineType(#getTrendlineType.getTrendlineType/#setTrendlineType(int).setTrendlineType(int)).

Parameters:

ParameterTypeDescription
valueint

getFormat()

public abstract IFormat getFormat()

Represents the format of the trend line. Read/write IFormat.

Returns: IFormat

setFormat(IFormat value)

public abstract void setFormat(IFormat value)

Represents the format of the trend line. Read/write IFormat.

Parameters:

ParameterTypeDescription
valueIFormat

getBackward()

public abstract double getBackward()

Specifies the number of categories (or units on a scatter chart) that the trend line extends before the data for the series that is being trended. On scatter and non-scatter charts, the value shall be any nonnegative value. Read/write double.

Returns: double

setBackward(double value)

public abstract void setBackward(double value)

Specifies the number of categories (or units on a scatter chart) that the trend line extends before the data for the series that is being trended. On scatter and non-scatter charts, the value shall be any nonnegative value. Read/write double.

Parameters:

ParameterTypeDescription
valuedouble

getForward()

public abstract double getForward()

Specifies the number of categories (or units on a scatter chart) that the trendline extends after the data for the series that is being trended. On scatter and non-scatter charts, the value shall be any non-negative value. Read/write double.

Returns: double

setForward(double value)

public abstract void setForward(double value)

Specifies the number of categories (or units on a scatter chart) that the trendline extends after the data for the series that is being trended. On scatter and non-scatter charts, the value shall be any non-negative value. Read/write double.

Parameters:

ParameterTypeDescription
valuedouble

getIntercept()

public abstract double getIntercept()

Specifies the value where the trendline shall cross the y axis. This property shall be supported only when the trendline type is exp, linear, or poly. Read/write double.

Returns: double

setIntercept(double value)

public abstract void setIntercept(double value)

Specifies the value where the trendline shall cross the y axis. This property shall be supported only when the trendline type is exp, linear, or poly. Read/write double.

Parameters:

ParameterTypeDescription
valuedouble

getDisplayEquation()

public abstract boolean getDisplayEquation()

Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Read/write boolean.

Returns: boolean

setDisplayEquation(boolean value)

public abstract void setDisplayEquation(boolean value)

Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getOrder()

public abstract byte getOrder()

Specifies the order of the polynomial trend line. It is ignored for other trend line types. Value must be between 2 and 6. Read/write byte.

Returns: byte

setOrder(byte value)

public abstract void setOrder(byte value)

Specifies the order of the polynomial trend line. It is ignored for other trend line types. Value must be between 2 and 6. Read/write byte.

Parameters:

ParameterTypeDescription
valuebyte

getPeriod()

public abstract byte getPeriod()

Specifies the period of the trend line for a moving average trend line. It is ignored for other trend line variants. Value must be between 2 and 255. Read/write byte.

Returns: byte

setPeriod(byte value)

public abstract void setPeriod(byte value)

Specifies the period of the trend line for a moving average trend line. It is ignored for other trend line variants. Value must be between 2 and 255. Read/write byte.

Parameters:

ParameterTypeDescription
valuebyte

getDisplayRSquaredValue()

public abstract boolean getDisplayRSquaredValue()

Specifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation). Read/write boolean.

Returns: boolean

setDisplayRSquaredValue(boolean value)

public abstract void setDisplayRSquaredValue(boolean value)

Specifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation). Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getRelatedLegendEntry()

public abstract ILegendEntryProperties getRelatedLegendEntry()

Represents legend entry related with this trendline Read-only ILegendEntryProperties.

Returns: ILegendEntryProperties