alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class MovingAverageTrendline

    Represents a moving average trendline that calculates and displays a moving average curve. The moving average trendline smooths data by creating a series of averages over a specified period. This implementation follows the dart trendline.dart logic for moving average calculation.

    Inheritance
    System.Object
    ChartTrendline
    MovingAverageTrendline
    Inherited Members
    ChartTrendline.BackwardForecast
    ChartTrendline.BackwardForecastProperty
    ChartTrendline.EnableTooltip
    ChartTrendline.EnableTooltipProperty
    ChartTrendline.ForwardForecast
    ChartTrendline.ForwardForecastProperty
    ChartTrendline.IsVisible
    ChartTrendline.IsVisibleProperty
    ChartTrendline.Label
    ChartTrendline.LabelProperty
    ChartTrendline.MarkerSettings
    ChartTrendline.MarkerSettingsProperty
    ChartTrendline.OnBindingContextChanged()
    ChartTrendline.Opacity
    ChartTrendline.OpacityProperty
    ChartTrendline.ShowMarkers
    ChartTrendline.ShowMarkersProperty
    ChartTrendline.ShowTrackballLabel
    ChartTrendline.ShowTrackballLabelProperty
    ChartTrendline.Stroke
    ChartTrendline.StrokeDashArray
    ChartTrendline.StrokeDashArrayProperty
    ChartTrendline.StrokeProperty
    ChartTrendline.StrokeWidth
    ChartTrendline.StrokeWidthProperty
    ChartTrendline.TooltipTemplate
    ChartTrendline.TooltipTemplateProperty
    ChartTrendline.TrackballLabelTemplate
    ChartTrendline.TrackballLabelTemplateProperty
    Namespace: Syncfusion.Maui.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public class MovingAverageTrendline : ChartTrendline, ITooltipDependent, IMarkerDependent, ICartesianLegendDependent

    Constructors

    MovingAverageTrendline()

    Declaration
    public MovingAverageTrendline()

    Fields

    PeriodProperty

    Identifies the Period bindable property.

    Declaration
    public static readonly BindableProperty PeriodProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    Period

    Gets or sets the period (number of data points) for the moving average calculation. Valid range is 2 to the number of data points minus 1. Higher periods provide smoother curves but with more lag.

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

    The period of the moving average (default is 2).

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved