[]
        
(Showing Draft Content)

C1.WPF.Chart.TrendLine

TrendLine Class

Represents a trend line for FlexChart and FinancialChart.

Implements
Namespace: C1.WPF.Chart
Assembly: C1.WPF.FlexChart.4.6.2.dll
Syntax
public class TrendLine : Series, IDisposable
Remarks

A trendline is a line superimposed on a chart revealing the overall direction of data. You may define a different fit type for each @see:TrendLine object that you add to the @see:FlexChart series collection by setting the fitType property.

Constructors

Name Description
TrendLine()

Creates an instance of TrendLine class.

Fields

Name Description
FitTypeProperty

Identifies the FitType dependency property.

MaxXProperty

Identifies the MaxX dependency property.

MinXProperty

Identifies the MinX dependency property.

OrderProperty

Identifies the Order dependency property.

SampleCountProperty

Identifies the SampleCount dependency property.

Properties

Name Description
Coefficients

Gets the coefficients of equation.

FitType

Gets or sets the fit type of trend line.

MaxX

Gets or sets the maximal x-value.

MinX

Gets or sets the minimal x-value.

Order

Gets or sets the order of trend line. The order defines number of terms in polynom equation.

SampleCount

Gets or sets the sample count for function calculation.

Methods

Name Description
Approximate(double)

Approximate y-value by given x.

GetRegressionStatistics()

Gets statistical information about the regression.

GetValues(int)

Gets the array of data values.

OnItemsSourceChanged()

Invoked when items source changes.