menu

MAUI Toolkit

  • User Guide
  • Demos
  • Support
Class FinancialSeriesBase - MAUI-ToolKit API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FinancialSeriesBase

    Represents an abstract base class for financial chart series such as Candle and OHLC (Open-High-Low-Close).

    Inheritance
    System.Object
    ChartSeries
    CartesianSeries
    FinancialSeriesBase
    HiLoOpenCloseSeries
    Inherited Members
    CartesianSeries.ActualXAxis
    CartesianSeries.ActualYAxis
    CartesianSeries.DataLabelSettings
    CartesianSeries.DataLabelSettingsProperty
    CartesianSeries.EmptyPointMode
    CartesianSeries.EmptyPointModeProperty
    CartesianSeries.EmptyPointSettings
    CartesianSeries.EmptyPointSettingsProperty
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Rect)
    CartesianSeries.Label
    CartesianSeries.LabelProperty
    CartesianSeries.OnParentSet()
    CartesianSeries.ShowTrackballLabel
    CartesianSeries.ShowTrackballLabelProperty
    CartesianSeries.TrackballLabelTemplate
    CartesianSeries.TrackballLabelTemplateProperty
    CartesianSeries.XAxisName
    CartesianSeries.XAxisNameProperty
    CartesianSeries.YAxisName
    CartesianSeries.YAxisNameProperty
    ChartSeries.CreateAnimation(Action<Double>)
    ChartSeries.CreateSegment()
    ChartSeries.DrawDataLabel(ICanvas, Brush, String, PointF, Int32)
    ChartSeries.DrawSeries(ICanvas, ReadOnlyObservableCollection<ChartSegment>, RectF)
    ChartSeries.EnableAnimation
    ChartSeries.EnableAnimationProperty
    ChartSeries.EnableTooltip
    ChartSeries.EnableTooltipProperty
    ChartSeries.Fill
    ChartSeries.FillProperty
    ChartSeries.GetDataPointIndex(Single, Single)
    ChartSeries.IsVisible
    ChartSeries.IsVisibleOnLegend
    ChartSeries.IsVisibleOnLegendProperty
    ChartSeries.IsVisibleProperty
    ChartSeries.ItemsSource
    ChartSeries.ItemsSourceProperty
    ChartSeries.LabelContext
    ChartSeries.LabelContextProperty
    ChartSeries.LabelTemplate
    ChartSeries.LabelTemplateProperty
    ChartSeries.LegendIcon
    ChartSeries.LegendIconProperty
    ChartSeries.ListenPropertyChange
    ChartSeries.ListenPropertyChangeProperty
    ChartSeries.Opacity
    ChartSeries.OpacityProperty
    ChartSeries.PaletteBrushes
    ChartSeries.PaletteBrushesProperty
    ChartSeries.SelectionBehavior
    ChartSeries.SelectionBehaviorProperty
    ChartSeries.ShowDataLabels
    ChartSeries.ShowDataLabelsProperty
    ChartSeries.TooltipTemplate
    ChartSeries.TooltipTemplateProperty
    ChartSeries.XBindingPath
    ChartSeries.XBindingPathProperty
    ChartSeries.XRange
    ChartSeries.YRange
    Namespace: Syncfusion.Maui.Toolkit.Charts
    Assembly: Syncfusion.Maui.Toolkit.dll
    Syntax
    public abstract class FinancialSeriesBase : CartesianSeries, IDatapointSelectionDependent, ITooltipDependent, IDataTemplateDependent

    Constructors

    FinancialSeriesBase()

    Initializes a new instance of the FinancialSeriesBase class.

    Declaration
    public FinancialSeriesBase()

    Fields

    BearishFillProperty

    Identifies the BearishFill bindable property.

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

    The BearishFill property determines the fill color of the bearish points of the financial series.

    BullishFillProperty

    Identifies the BullishFill bindable property.

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

    The BullishFill property determines the fill color to the bullish points of the financial series.

    CloseProperty

    Identifies the Close bindable property.

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

    The Close property represents the close value of a data point in a financial series.

    HighProperty

    Identifies the High bindable property.

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

    The High property represents the maximum value of a data point in a financial series.

    LowProperty

    Identifies the Low bindable property.

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

    The Low property represents the minimum value of a data point in a financial series.

    OpenProperty

    Identifies the Open bindable property.

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

    The Open property represents the open value of a data point in a financial series.

    SpacingProperty

    Identifies the Spacing bindable property.

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

    The Spacing property indicate spacing between the data points across the series.

    WidthProperty

    Identifies the Width bindable property.

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

    The Width property indicates the width of the data points across the series.

    Properties

    BearishFill

    Gets or sets the brush to be used for bearish points in a financial chart. It is typically used in conjunction with a CandleSeries or HiLoOpenCloseSeries series to visually represent negative price movements or bearish market conditions.

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

    It accepts the Microsoft.Maui.Controls.Brush values

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:CandleSeries ItemsSource="{Binding Data}"
                                 XBindingPath="XValue"
                                 High="High"
                                 Low="Low"
                                 Open="Open"
                                 Close="Close"
                                 BearishFill="Orange"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        CandleSeries candleSeries = new CandleSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              High="High",
              Low="Low"
              Open="Open"
              Close="Close",
              BearishFill = Colors.Orange,
        };
    
        chart.Series.Add(candleSeries);

    BullishFill

    Gets or sets the brush to be used for bullish points in a financial chart. It is typically used in conjunction with a CandleSeries or HiLoOpenCloseSeries series to visually represent positive price movements or bullish market conditions.

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

    It accepts the Microsoft.Maui.Controls.Brush values

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:CandleSeries ItemsSource="{Binding Data}"
                                 XBindingPath="XValue"
                                 High="High"
                                 Low="Low"
                                 Open="Open"
                                 Close="Close"
                                 BullishFill="Blue"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        CandleSeries candleSeries = new CandleSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              High="High",
              Low="Low"
              Open="Open"
              Close="Close",
              BullishFill = Colors.Blue,
        };
    
        chart.Series.Add(candleSeries);

    Close

    Gets or sets a path value on the source object to serve a close value to the series.

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

    The string that represents the property name for the y (close) plotting data, and its default value is string.Empty.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:CandleSeries ItemsSource="{Binding Data}"
                                 XBindingPath="XValue"
                                 High="High"
                                 Low="Low"
                                 Open="Open"
                                 Close="Close"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        CandleSeries candleSeries = new CandleSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              High="High",
              Low="Low"
              Open="Open"
              Close="Close",
        };
    
        chart.Series.Add(candleSeries);

    High

    Gets or sets a path value on the source object to serve a high value to the series.

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

    The string that represents the property name for the y (high) plotting data, and its default value is string.Empty>.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:CandleSeries ItemsSource="{Binding Data}"
                                 XBindingPath="XValue"
                                 High="High"
                                 Low="Low"
                                 Open="Open"
                                 Close="Close"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        CandleSeries candleSeries = new CandleSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              High="High",
              Low="Low"
              Open="Open"
              Close="Close",
        };
    
        chart.Series.Add(candleSeries);

    Low

    Gets or sets a path value on the source object to serve a low value to the series.

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

    The string that represents the property name for the y (low) plotting data, and its default value is string.Empty.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:CandleSeries ItemsSource="{Binding Data}"
                                 XBindingPath="XValue"
                                 High="High"
                                 Low="Low"
                                 Open="Open"
                                 Close="Close"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        CandleSeries candleSeries = new CandleSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              High="High",
              Low="Low"
              Open="Open"
              Close="Close",
        };
    
        chart.Series.Add(candleSeries);

    Open

    Gets or sets a path value on the source object to serve a open value to the series.

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

    The string that represents the property name for the y (open) plotting data, and its default value is string.Empty.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:CandleSeries ItemsSource="{Binding Data}"
                                 XBindingPath="XValue"
                                 High="High"
                                 Low="Low"
                                 Open="Open"
                                 Close="Close"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        CandleSeries candleSeries = new CandleSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              High="High",
              Low="Low"
              Open="Open"
              Close="Close",
        };
    
        chart.Series.Add(candleSeries);

    Spacing

    Gets or sets a value to indicate spacing between the data points across the series.

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

    It accepts double values ranging from 0 to 1, where the default value is 0.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:CandleSeries ItemsSource="{Binding Data}"
                                 XBindingPath="XValue"
                                 High="High"
                                 Low="Low"
                                 Open="Open"
                                 Close="Close"
                                 Spacing="0.3"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        CandleSeries candleSeries = new CandleSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              High = "High"
              Low = "Low"
              Open = "Open"
              Close = "Close"
              Spacing = 0.3,
        };
    
        chart.Series.Add(candleSeries);

    Width

    Gets or sets a value to change the width of the data points across the series.

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

    It accepts double values ranging from 0 to 1, where the default value is 0.8.

    Examples
    • Xaml
    • C#
        <chart:SfCartesianChart>
    
        <!-- ... Eliminated for simplicity-->
    
             <chart:CandleSeries ItemsSource="{Binding Data}"
                                 XBindingPath="XValue"
                                 High="High"
                                 Low="Low"
                                 Open="Open"
                                 Close="Close"
                                 Width="0.5"/>
    
        </chart:SfCartesianChart>
        SfCartesianChart chart = new SfCartesianChart();
        ViewModel viewModel = new ViewModel();
    
        // Eliminated for simplicity
    
        CandleSeries candleSeries = new CandleSeries()
        {
              ItemsSource = viewModel.Data,
              XBindingPath = "XValue",
              High="High",
              Low="Low"
              Open="Open"
              Close="Close",
              Width = 0.5,
        };
    
        chart.Series.Add(candleSeries);
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved