ChartDirector 7.0 (Java Edition)

TrendLayer.setRegressionType


Usage

public void setRegressionType(int regressionType)

Description

Sets the regression type to be used.

Please refer to the description of TrendLayer for the supported regression types.

Arguments

ArgumentDefaultDescription
regressionType(Mandatory)Must be one of the constants LinearRegression, ConstrainedLinearRegression, ExponentialRegression and LogarithmicRegression, or the return value of Chart.PolynomialRegression. They represent linear regression, constrained linear regression, exponential regression, logarithmic regression, and polynomial regression of configurable degree.

Return Value

None