Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SFOHLCSeries

    Show / Hide Table of Contents

    Class SFOHLCSeries

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

    Inheritance
    System.Object
    SFSeries
    SFCartesianSeries
    SFFinancialSeries
    SFOHLCSeries
    SFCandleSeries
    Inherited Members
    SFFinancialSeries.AnimationForSegment(SFChartSegment)
    SFFinancialSeries.OnAttachedToChart()
    SFFinancialSeries.OnDetachedFromChart()
    SFFinancialSeries.OnBindingPathChanged()
    SFFinancialSeries.SeriesName
    SFFinancialSeries.High
    SFFinancialSeries.Low
    SFFinancialSeries.Open
    SFFinancialSeries.Close
    SFFinancialSeries.Spacing
    SFFinancialSeries.Width
    SFFinancialSeries.BearFillColor
    SFFinancialSeries.BullFillColor
    SFCartesianSeries.DrawInContext(CGContext)
    SFCartesianSeries.FindNearestChartPoint(Single, Single)
    SFCartesianSeries.FindNearestChartPoints(Single, Single)
    SFCartesianSeries.GetCardinalSpline(List<Double>, IList<Double>)
    SFCartesianSeries.CalculateControlPoints(Double, Double, Double, Double, Double, Double)
    SFCartesianSeries.CalculateControlPoints(Double, Double, Double, Double, Double, Double, Double)
    SFCartesianSeries.GetMonotonicSpline(List<Double>, IList<Double>, Double[])
    SFCartesianSeries.GetDataPoints(RectangleF)
    SFCartesianSeries.GetDataPoints(Double, Double, Double, Double)
    SFCartesianSeries.IsTransposed
    SFCartesianSeries.Trendlines
    SFCartesianSeries.XAxis
    SFCartesianSeries.YAxis
    SFCartesianSeries.ShowTrackballInfo
    SFCartesianSeries.ActualXAxis
    SFCartesianSeries.ActualYAxis
    SFSeries.InvalidateRender()
    SFSeries.Animate()
    SFSeries.CreateRenderer()
    SFSeries.InsertDataPointAtIndex(nint)
    SFSeries.RemoveDataPointAtIndex(nint)
    SFSeries.ReloadData()
    SFSeries.DrawLayer(CALayer, CGContext)
    SFSeries.DataPointIndexAtPoint(CGPoint)
    SFSeries.DrawMarker(CGContext, Double, Double, Int32)
    SFSeries.DrawLabel(NSString, CGContext, Double, Double, Int32)
    SFSeries.DrawConnectorLine(CGContext, Double, Double, Double, Double, NSColor, Int32)
    SFSeries.GeneratePoints(String[], IList<Double>[])
    SFSeries.ScheduleUpdateArea()
    SFSeries.GetSelectionColor()
    SFSeries.GetGradientStartPoint(SFChartSegment)
    SFSeries.GetGradientEndPoint(SFChartSegment)
    SFSeries.SetIndividualPoint(Int32, Object, Boolean)
    SFSeries.ClearUnUsedDataMarkerLabels(Int32)
    SFSeries.SeriesContainsPoint(CGPoint)
    SFSeries.SetStrokeWidth(SFChartSegment)
    SFSeries.SuspendNotification()
    SFSeries.ResumeNotification()
    SFSeries.EnableTooltip
    SFSeries.LegendIcon
    SFSeries.EnableDataPointSelection
    SFSeries.Visible
    SFSeries.VisibleOnLegend
    SFSeries.LayerFrame
    SFSeries.ListenPropertyChange
    SFSeries.DataMarker
    SFSeries.EnableAnimation
    SFSeries.AnimationDuration
    SFSeries.IsSelected
    SFSeries.SelectedDataPointIndex
    SFSeries.SelectedDataPointColor
    SFSeries.DataCount
    SFSeries.Name
    SFSeries.Color
    SFSeries.Alpha
    SFSeries.Label
    SFSeries.ItemsSource
    SFSeries.XBindingPath
    SFSeries.ColorModel
    SFSeries.XRange
    SFSeries.YRange
    SFSeries.Segments
    SFSeries.DataMarkerLabelCreated
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public class SFOHLCSeries : SFFinancialSeries
    Remarks

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

    Constructors

    SFOHLCSeries()

    Declaration
    public SFOHLCSeries()

    Properties

    LineWidth

    Gets or sets the value that defines the width of the segment.

    Declaration
    public nfloat LineWidth { get; set; }
    Property Value
    Type Description
    System.nfloat

    Methods

    CreateSegment()

    Create the SFFinancialSegment.

    Declaration
    protected override SFChartSegment CreateSegment()
    Returns
    Type Description
    SFChartSegment

    Returns a segment.

    Overrides
    SFCartesianSeries.CreateSegment()

    CreateSegment(Double[], Boolean, Boolean)

    Add the SFFinancialSegment into the Segments collection.

    Declaration
    protected virtual void CreateSegment(double[] values, bool isBull, bool isFill)
    Parameters
    Type Name Description
    System.Double[] values

    The values.

    System.Boolean isBull

    The Boolean

    System.Boolean isFill

    The Boolean value.

    CreateSegments()

    Creates the segments of SFFinancialSeries.

    Declaration
    public override void CreateSegments()
    Overrides
    SFCartesianSeries.CreateSegments()

    SetFillColor(SFChartSegment)

    Declaration
    protected override void SetFillColor(SFChartSegment segment)
    Parameters
    Type Name Description
    SFChartSegment segment
    Overrides
    SFSeries.SetFillColor(SFChartSegment)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved