Class ChartTrendline
The ChartTrendline class can be used to render trend lines for CartesianSeries expect bar series.
Inheritance
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class ChartTrendline : Element, IThemeElement
Remarks
Trendline Legend items partially supports the customizatio options.
Constructors
ChartTrendline()
Initializes a new instance of the ChartTrendline class.
Declaration
public ChartTrendline()
Fields
BackwardForecastProperty
Gets or sets the backward forecast for the ChartTrendline. This is a bindable property.
Declaration
public static readonly BindableProperty BackwardForecastProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ForwardForecastProperty
Gets or sets the forward forecast for the ChartTrendline. This is a bindable property.
Declaration
public static readonly BindableProperty ForwardForecastProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IsVisibleOnLegendProperty
Gets or sets the value that indicates whether to display information about the ChartTrendline in the legend. This is a bindable property.
Declaration
public static readonly BindableProperty IsVisibleOnLegendProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
IsVisibleProperty
The BindableProperty for IsVisible property.
Declaration
public static readonly BindableProperty IsVisibleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LabelProperty
Gets or sets the text for the ChartTrendline label, which needs to be display in legend item as an identifier. This is a bindable property.
Declaration
public static readonly BindableProperty LabelProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LegendIconProperty
Gets or sets the icon type for the ChartTrendline, which is displayed in legend. This is a bindable property.
Declaration
public static readonly BindableProperty LegendIconProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
PolynomialOrderProperty
Gets or sets the polynomial order for the ChartTrendline. This is a bindable property.
Declaration
public static readonly BindableProperty PolynomialOrderProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeColorProperty
Gets or sets a stroke color for ChartTrendline. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeDashArrayProperty
Gets or sets the dash array for the ChartTrendline. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeDashArrayProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StrokeWidthProperty
Gets or sets the width of the ChartTrendline. This is a bindable property.
Declaration
public static readonly BindableProperty StrokeWidthProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TypeProperty
Gets or sets the type for the ChartTrendline. This is a bindable property.
Declaration
public static readonly BindableProperty TypeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
BackwardForecast
Gets or sets the backward forecast for the ChartTrendline.
Declaration
public double BackwardForecast { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value. |
ForwardForecast
Gets or sets the forward forecast for the ChartTrendline.
Declaration
public double ForwardForecast { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value. |
Intercept
Gets the intercept value of ChartTrendline.
Declaration
public double Intercept { get; }
Property Value
Type |
---|
System.Double |
IsVisible
Gets or sets a value indicating whether the ChartTrendline is visible or not.
Declaration
public bool IsVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | if its |
IsVisibleOnLegend
Gets or sets a value indicating whether to display ChartTrendline legend.
Declaration
public bool IsVisibleOnLegend { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | This property takes the boolean value. |
Label
Gets or sets the text for the ChartTrendline legend label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String | This property takes the string value. |
LegendIcon
Gets or sets the icon type for the ChartTrendline legend.
Declaration
public ChartLegendIcon LegendIcon { get; set; }
Property Value
Type | Description |
---|---|
ChartLegendIcon | This property takes the ChartLegendIcon value. |
PolynomialOrder
Gets or sets the polynomial order for the ChartTrendline.
Declaration
public int PolynomialOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | This property takes the integer type value. |
PolynomialSlopes
Gets the polynomial slopes of ChartTrendline.
Declaration
public double[] PolynomialSlopes { get; }
Property Value
Type |
---|
System.Double[] |
Slope
Gets the slope of the ChartTrendline.
Declaration
public double Slope { get; }
Property Value
Type |
---|
System.Double |
StrokeColor
Gets or sets a stroke color for ChartTrendline. This is a bindable property.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color | This property takes the Xamarin.Forms.Color value. |
StrokeDashArray
Gets or sets the dash array for the ChartTrendline.
Declaration
public double[] StrokeDashArray { get; set; }
Property Value
Type | Description |
---|---|
System.Double[] | This property takes the double array as its value. |
StrokeWidth
Gets or sets the strokewidth of the ChartTrendline.
Declaration
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the double value. |
Type
Gets or sets the type for the ChartTrendline.
Declaration
public ChartTrendlineType Type { get; set; }
Property Value
Type | Description |
---|---|
ChartTrendlineType | This property takes ChartTrendlineType as Value. |
Methods
OnCommonThemeChanged(String, String)
Declaration
public void OnCommonThemeChanged(string oldTheme, string newTheme)
Parameters
Type | Name | Description |
---|---|---|
System.String | oldTheme | |
System.String | newTheme |
OnControlThemeChanged(String, String)
Declaration
public void OnControlThemeChanged(string oldTheme, string newTheme)
Parameters
Type | Name | Description |
---|---|---|
System.String | oldTheme | |
System.String | newTheme |