Class LinearTrendline
Represents a linear trendline that calculates and displays a linear regression line. The linear trendline follows the formula: y = mx + c, where m is the slope and c is the y-intercept. This class follows the ChartSegment OnLayout/OnDraw pattern for calculation and rendering.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class LinearTrendline : ChartTrendline, ITooltipDependent, IMarkerDependent, ICartesianLegendDependent
Constructors
LinearTrendline()
Declaration
public LinearTrendline()
Fields
InterceptProperty
Identifies the Intercept bindable property.
Declaration
public static readonly BindableProperty InterceptProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
Intercept
Declaration
public double Intercept { get; set; }
Property Value
| Type |
|---|
| System.Double |