Class PolynomialTrendline
Represents a polynomial trendline that calculates and displays a polynomial regression curve. The polynomial trendline follows the formula: y = aâ‚€ + aâ‚x + aâ‚‚x² + ... + aâ‚™xâ¿, where n is the order.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class PolynomialTrendline : ChartTrendline, ITooltipDependent, IMarkerDependent, ICartesianLegendDependent
Constructors
PolynomialTrendline()
Declaration
public PolynomialTrendline()
Fields
OrderProperty
Identifies the Order bindable property.
Declaration
public static readonly BindableProperty OrderProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
Order
Gets or sets the order (degree) of the polynomial trendline. Valid range is 2 to 6. Higher orders provide more flexible curve fitting but may lead to overfitting.
Declaration
public int Order { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The order of the polynomial (default is 2 for quadratic). |