menu

MAUI

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

    Show / Hide Table of Contents

    Class FinancialSeriesBase

    An abstract class in the chart API that serves as a base for candle and OHLC (Open-High-Low-Close) series. It provides common options and functionality for these types of financial chart series.

    Inheritance
    System.Object
    ChartSeries
    CartesianSeries
    FinancialSeriesBase
    HiLoOpenCloseSeries
    Inherited Members
    CartesianSeries.ActualXAxis
    CartesianSeries.ActualYAxis
    CartesianSeries.DataLabelSettings
    CartesianSeries.DataLabelSettingsProperty
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Rect)
    CartesianSeries.Label
    CartesianSeries.LabelProperty
    CartesianSeries.OnBindingContextChanged()
    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.OnParentSet()
    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.Charts
    Assembly: Syncfusion.Maui.Charts.dll
    Syntax
    public abstract class FinancialSeriesBase : CartesianSeries, IDatapointSelectionDependent, ITooltipDependent, IDataTemplateDependent

    Constructors

    FinancialSeriesBase()

    Declaration
    public FinancialSeriesBase()

    Fields

    BearishFillProperty

    Identifies the BearishFill bindable property.

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

    BullishFillProperty

    Identifies the BullishFill bindable property.

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

    CloseProperty

    Identifies the Close bindable property.

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

    HighProperty

    Identifies the High bindable property.

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

    LowProperty

    Identifies the Low bindable property.

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

    OpenProperty

    Identifies the Open bindable property.

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

    SpacingProperty

    Identifies the Spacing bindable property.

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

    WidthProperty

    Identifies the Width bindable property.

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

    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
    Microsoft.Maui.Controls.Brush

    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
    Microsoft.Maui.Controls.Brush

    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 empty.

    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 empty.

    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 empty.

    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 empty.

    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 values between 0 and 1, and its default 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 values between 0 and 1, and default 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