[]
        
(Showing Draft Content)

C1.Blazor.Chart.TrendLine

TrendLine Class

Represents a trend line for FlexChart and FinancialChart.

Inheritance
TrendLine
Namespace: C1.Blazor.Chart
Assembly: C1.Blazor.Chart.dll
Syntax
public class TrendLine : Series, IComponent, IHandleEvent, IHandleAfterRender, 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.

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.

GetChartType()

Gets the chart type.

GetRegressionStatistics()

Gets statistical information about the regression.

GetValues(int)

Gets the array of data values.

OnDataSourceChanged()

Fires when data source was changed.