menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HiLoOpenCloseSeries - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HiLoOpenCloseSeries

    To render an OHLC chart, create an instance of the HiLoOpenCloseSeries class and add it to Series collection property and set the required properties.

    Inheritance
    System.Object
    ChartSeries
    CartesianSeries
    FinancialSeriesBase
    HiLoOpenCloseSeries
    CandleSeries
    Inherited Members
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.GetDataPoints(Rectangle)
    CartesianSeries.IsTransposed
    CartesianSeries.IsTransposedProperty
    CartesianSeries.OnBindingContextChanged()
    CartesianSeries.OnParentSet()
    CartesianSeries.ShowTrackballInfo
    CartesianSeries.ShowTrackballInfoProperty
    CartesianSeries.TrackballLabelTemplate
    CartesianSeries.TrackballLabelTemplateProperty
    CartesianSeries.Trendlines
    CartesianSeries.TrendlinesProperty
    CartesianSeries.XAxis
    CartesianSeries.XAxisProperty
    CartesianSeries.YAxis
    CartesianSeries.YAxisProperty
    ChartSeries.Animate()
    ChartSeries.AnimationDuration
    ChartSeries.AnimationDurationProperty
    ChartSeries.Color
    ChartSeries.ColorModel
    ChartSeries.ColorModelProperty
    ChartSeries.ColorProperty
    ChartSeries.DataMarker
    ChartSeries.DataMarkerLabelCreated
    ChartSeries.DataMarkerProperty
    ChartSeries.EnableAnimation
    ChartSeries.EnableAnimationProperty
    ChartSeries.EnableDataPointSelection
    ChartSeries.EnableDataPointSelectionProperty
    ChartSeries.EnableTooltip
    ChartSeries.EnableTooltipProperty
    ChartSeries.GetDataPointIndex(Single, Single)
    ChartSeries.IsSelected
    ChartSeries.IsVisible
    ChartSeries.IsVisibleOnLegend
    ChartSeries.IsVisibleOnLegendProperty
    ChartSeries.IsVisibleProperty
    ChartSeries.ItemsSource
    ChartSeries.ItemsSourceProperty
    ChartSeries.Label
    ChartSeries.LabelProperty
    ChartSeries.LegendIcon
    ChartSeries.LegendIconProperty
    ChartSeries.ListenPropertyChange
    ChartSeries.ListenPropertyChangeProperty
    ChartSeries.Opacity
    ChartSeries.OpacityProperty
    ChartSeries.ResumeNotification()
    ChartSeries.SelectedDataPointColor
    ChartSeries.SelectedDataPointColorProperty
    ChartSeries.SelectedDataPointIndex
    ChartSeries.SelectedDataPointIndexProperty
    ChartSeries.StrokeWidth
    ChartSeries.StrokeWidthProperty
    ChartSeries.SuspendNotification()
    ChartSeries.TooltipTemplate
    ChartSeries.TooltipTemplateProperty
    ChartSeries.XBindingPath
    ChartSeries.XBindingPathProperty
    FinancialSeriesBase.BearFillColor
    FinancialSeriesBase.BearFillColorProperty
    FinancialSeriesBase.BullFillColor
    FinancialSeriesBase.BullFillColorProperty
    FinancialSeriesBase.Close
    FinancialSeriesBase.CloseProperty
    FinancialSeriesBase.GetChartDataPoints()
    FinancialSeriesBase.High
    FinancialSeriesBase.HighProperty
    FinancialSeriesBase.Low
    FinancialSeriesBase.LowProperty
    FinancialSeriesBase.Name
    FinancialSeriesBase.NameProperty
    FinancialSeriesBase.Open
    FinancialSeriesBase.OpenProperty
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public class HiLoOpenCloseSeries : FinancialSeriesBase, IThemeElement
    Remarks

    HiLoOpenCloseSeries requires ItemsSource, XBindingPath, High, Low, Open and Close properties to be set to render the chart. This series also requires x-axis and y-axis to be explicitly set either using PrimaryAxis and SecondaryAxis or XAxis and YAxis.

    Examples
    SfChart chart = new SfChart();
    chart.PrimaryAxis = new NumericalAxis();
    chart.SecondaryAxis = new NumericalAxis();
    HiLoOpenCloseSeries series = new HiLoOpenCloseSeries();
    ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
    {
      new ChartDataPoint(1, 30,35,20,25),
      new ChartDataPoint(2, 90,100,10,20),
      new ChartDataPoint(3, 20,90,10,80),
      new ChartDataPoint(5, 10,0,80,70)
    };
    series.ItemsSource = Data;
    chart.Series.Add(series);

    Constructors

    HiLoOpenCloseSeries()

    Declaration
    public HiLoOpenCloseSeries()

    Fields

    SpacingProperty

    Gets or sets the value that defines the space between the segments. This is a bindable property.

    Declaration
    public static readonly BindableProperty SpacingProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    WidthProperty

    Gets or sets the value that defines the width of the segments. This is a bindable property.

    Declaration
    public static readonly BindableProperty WidthProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    Spacing

    Gets or sets the value that defines the space between the segments. This is a bindable property.

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

    This property takes the double value.

    Width

    Gets or sets the width of the segment to customize the appearance of series. This is a bindable property.

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

    This property takes the double value.

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