alexa
menu

MAUI Toolkit

  • User Guide
  • Demos
  • Support

    Show / Hide Table of Contents

    Class SfSparkChart

    Represents the base class for all Spark Charts and provides common behaviors and control flow.

    Inheritance
    System.Object
    SfSparkChart
    SfSparkAreaChart
    SfSparkColumnChart
    SfSparkLineChart
    SfSparkWinLossChart
    Implements
    Microsoft.Maui.IContentView
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Namespace: Syncfusion.Maui.Toolkit.SparkCharts
    Assembly: Syncfusion.Maui.Toolkit.dll
    Syntax
    public abstract class SfSparkChart : View, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

    Constructors

    SfSparkChart()

    Initializes a new instance of the SfSparkChart class.

    Declaration
    public SfSparkChart()

    Fields

    AxisLineStyleProperty

    Identifies the AxisLineStyle bindable property.

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

    AxisOriginProperty

    Identifies the AxisOrigin bindable property.

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

    AxisTypeProperty

    Identifies the AxisType bindable property.

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

    ItemsSourceProperty

    Identifies the ItemsSource bindable property.

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

    MaximumYValueProperty

    Identifies the MaximumYValue bindable property.

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

    MinimumYValueProperty

    Identifies the MinimumYValue bindable property.

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

    PaddingProperty

    Identifies the Padding bindable property.

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

    RangeBandEndProperty

    Identifies the RangeBandEnd bindable property.

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

    The identifier for the RangeBandEnd bindable property determines the end value of the range band in y-axis.

    RangeBandFillProperty

    Identifies the RangeBandFill bindable property.

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

    The identifier for the RangeBandFill bindable property specifies the range band color applied to the sparkchart.

    RangeBandStartProperty

    Identifies the RangeBandStart bindable property.

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

    The identifier for the RangeBandStart bindable property determines the start value of the range band in y-axis.

    ShowAxisProperty

    Identifies the ShowAxis bindable property.

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

    StrokeProperty

    Identifies the Stroke bindable property.

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

    XBindingPathProperty

    Identifies the XBindingPath bindable property.

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

    YBindingPathProperty

    Identifies the YBindingPath bindable property.

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

    Properties

    AxisLineStyle

    Gets or sets the line style for axis.

    Declaration
    public SparkChartLineStyle AxisLineStyle { get; set; }
    Property Value
    Type
    SparkChartLineStyle

    AxisOrigin

    Gets or sets the value to configure axis orgin.

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

    AxisType

    Gets or sets how the spark chart interprets X-axis values.

    Declaration
    public SparkChartAxisType AxisType { get; set; }
    Property Value
    Type
    SparkChartAxisType

    ItemsSource

    Gets or sets the collection used to generate the _content of the chart.

    Declaration
    public object ItemsSource { get; set; }
    Property Value
    Type
    System.Object

    MaximumYValue

    Gets or sets the maximum value for the Y-axis.

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

    MinimumYValue

    Gets or sets the minimum value for the Y-axis.

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

    Padding

    Gets or sets the padding for the chart line, area, column or win-loss.

    Declaration
    public Thickness Padding { get; set; }
    Property Value
    Type
    Microsoft.Maui.Thickness

    RangeBandEnd

    Gets or sets the end Y value of the highlighted range band.

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

    It accepts System.Double values and the default value is double.NaN.

    RangeBandFill

    Gets or sets the fill brush used to render the range band.

    Declaration
    public Brush RangeBandFill { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    This property takes Microsoft.Maui.Controls.Brush values and the default value is #E7E0EC".

    RangeBandStart

    Gets or sets the start Y value of the highlighted range band.

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

    It accepts System.Double values and the default value is double.NaN.

    ShowAxis

    Gets or sets the flag to visible axis.

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

    Stroke

    Gets or sets the brush used to draw the stroke for the chart line, area, column or win-loss.

    Declaration
    public Brush Stroke { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.Brush

    XBindingPath

    Gets or sets the path to the property used for X-axis values.

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

    YBindingPath

    Gets or sets the path to the property used for Y-axis values.

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

    Methods

    OnBindingContextChanged()

    Declaration
    protected override void OnBindingContextChanged()

    Implements

    Microsoft.Maui.IContentView
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IPadding
    Microsoft.Maui.ICrossPlatformLayout
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved