menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TrendlineBase - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TrendlineBase

    Inheritance
    System.Object
    TrendlineBase
    Trendline
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.UWP.dll
    Syntax
    public abstract class TrendlineBase : Control

    Constructors

    TrendlineBase()

    Declaration
    public TrendlineBase()

    Fields

    BackwardForecastProperty

    The DependencyProperty for BackwardForecast property.

    Declaration
    public static readonly DependencyProperty BackwardForecastProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ForwardForecastProperty

    The DependencyProperty for ForwardForecast property.

    Declaration
    public static readonly DependencyProperty ForwardForecastProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    IsTrendlineVisibleProperty

    The DependencyProperty for IsTrendlineVisible property.

    Declaration
    public static readonly DependencyProperty IsTrendlineVisibleProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    LabelProperty

    The DependencyProperty for Label property.

    Declaration
    public static readonly DependencyProperty LabelProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    LegendIconProperty

    The DependencyProperty for LegendIcon property.

    Declaration
    public static readonly DependencyProperty LegendIconProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    LegendIconTemplateProperty

    The DependencyProperty for LegendIconTemplate property.

    Declaration
    public static readonly DependencyProperty LegendIconTemplateProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    PolynomialOrderProperty

    The DependencyProperty for PolynomialOrder property.

    Declaration
    public static readonly DependencyProperty PolynomialOrderProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    StrokeDashArrayProperty

    The DependencyProperty for StrokeDashArray property.

    Declaration
    public static readonly DependencyProperty StrokeDashArrayProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    StrokeProperty

    The DependencyProperty for Stroke property.

    Declaration
    public static readonly DependencyProperty StrokeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    StrokeThicknessProperty

    The DependencyProperty for StrokeThickness property.

    Declaration
    public static readonly DependencyProperty StrokeThicknessProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    TypeProperty

    The DependencyProperty for Type property.

    Declaration
    public static readonly DependencyProperty TypeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    VisibilityOnLegendProperty

    The DependencyProperty for VisibilityOnLegend property.

    Declaration
    public static readonly DependencyProperty VisibilityOnLegendProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    BackwardForecast

    Gets or sets the range of trend to be estimated from the past.

    Declaration
    public double BackwardForecast { get; set; }
    Property Value
    Type Description
    System.Double

    The double value.

    ForwardForecast

    Gets or sets the range of trend to be estimated from the future.

    Declaration
    public double ForwardForecast { get; set; }
    Property Value
    Type Description
    System.Double

    The double value.

    Intercept

    Gets or sets the intercept.

    Declaration
    public double Intercept { get; }
    Property Value
    Type
    System.Double

    IsTrendlineVisible

    Gets or sets a value indicating whether the Trendline is visible.

    Declaration
    public bool IsTrendlineVisible { get; set; }
    Property Value
    Type Description
    System.Boolean

    if its true, trendline will be visible.

    Label

    Gets or sets the label that will be displayed in the associated legend item.

    Declaration
    public string Label { get; set; }
    Property Value
    Type
    System.String

    LegendIcon

    Gets or sets the type of icon to be displayed in legend item.

    Declaration
    public ChartLegendIcon LegendIcon { get; set; }
    Property Value
    Type Description
    ChartLegendIcon

    The value can be Circle, Rectangle, etc. See ChartLegendIcon.

    Remarks

    By default, the icon shape will represent the series type.

    LegendIconTemplate

    Gets or sets the custom template for the legend icons.

    Declaration
    public DataTemplate LegendIconTemplate { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.DataTemplate

    Windows.UI.Xaml.DataTemplate.

    PolynomialOrder

    Gets or sets the Polynomial Order for the polynomial trendline, it calculate the order based equation..

    Declaration
    public int PolynomialOrder { get; set; }
    Property Value
    Type Description
    System.Int32

    It accepts integer value ranging from 2 to 6.

    PolynomialSlopes

    Gets or sets the polynomial slopes.

    Declaration
    public double[] PolynomialSlopes { get; }
    Property Value
    Type
    System.Double[]

    Slope

    Gets or sets the slope.

    Declaration
    public double Slope { get; }
    Property Value
    Type
    System.Double

    Stroke

    Gets or sets the brush to paint the stroke of the trendline.

    Declaration
    public Brush Stroke { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    The Windows.UI.Xaml.Media.Brush value.

    StrokeDashArray

    Gets or sets a collection of Double values that indicates the pattern of dashes and gaps that is used to outline shapes.

    Declaration
    public DoubleCollection StrokeDashArray { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Media.DoubleCollection

    StrokeThickness

    Gets or sets the thickness for the trendline.

    Declaration
    public double StrokeThickness { get; set; }
    Property Value
    Type
    System.Double

    Type

    Gets or sets the type of the trendline.

    Declaration
    public TrendlineType Type { get; set; }
    Property Value
    Type Description
    TrendlineType

    TrendlineType.

    VisibilityOnLegend

    Gets or sets a value that determines whether to create a legend item for this trendline.

    Declaration
    public Visibility VisibilityOnLegend { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Visibility

    Windows.UI.Xaml.Visibility

    Remarks

    By default, legend will be visible for this trendline.

    Methods

    Clone()

    Clone the trendline

    Declaration
    public DependencyObject Clone()
    Returns
    Type
    Windows.UI.Xaml.DependencyObject

    CloneTrendline(DependencyObject)

    Declaration
    protected virtual DependencyObject CloneTrendline(DependencyObject obj)
    Parameters
    Type Name Description
    Windows.UI.Xaml.DependencyObject obj
    Returns
    Type
    Windows.UI.Xaml.DependencyObject

    GetBezierControlPoints(ChartPoint, ChartPoint, Double, Double, out ChartPoint, out ChartPoint)

    Returns the controlPoints of the curve

    Declaration
    protected void GetBezierControlPoints(ChartPoint point1, ChartPoint point2, double ys1, double ys2, out ChartPoint controlPoint1, out ChartPoint controlPoint2)
    Parameters
    Type Name Description
    ChartPoint point1
    ChartPoint point2
    System.Double ys1
    System.Double ys2
    ChartPoint controlPoint1
    ChartPoint controlPoint2

    NaturalSpline(List<Double>, List<Double>, out Double[])

    Coefficient Of Natural Spline Segment

    Declaration
    protected void NaturalSpline(List<double> xValues, List<double> yValues, out double[] ys2)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.Double> xValues
    System.Collections.Generic.List<System.Double> yValues
    System.Double[] ys2

    OnApplyTemplate()

    Invoke to render trendline.

    Declaration
    protected override void OnApplyTemplate()

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved