menu

Xamarin.Forms

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

    Show / Hide Table of Contents

    Class SFChart

    Inheritance
    System.Object
    SfView
    ChartBase
    SFChart
    Implements
    System.ComponentModel.IComponent
    System.IDisposable
    Inherited Members
    ChartBase.AnnotationClicked
    ChartBase.Annotations
    ChartBase.AreaBackgroundColor
    ChartBase.AreaBorderColor
    ChartBase.AreaBorderWidth
    ChartBase.Axes
    ChartBase.Behaviors
    ChartBase.ColorModel
    ChartBase.CreateNativeChartAnnotation(ChartAnnotation)
    ChartBase.CreateNativeChartSeries(ChartSeries)
    ChartBase.EnableSeriesSelection
    ChartBase.PrimaryAxis
    ChartBase.ResumeSeriesNotification()
    ChartBase.SecondaryAxis
    ChartBase.Series
    ChartBase.SeriesBounds
    ChartBase.SeriesSelectionColor
    ChartBase.SideBySideSeriesPlacement
    ChartBase.SuspendSeriesNotification()
    ChartBase.TechnicalIndicators
    ChartBase.Title
    SfView.Alpha
    SfView.BackgroundColor
    SfView.BringSubviewToFront(NSView)
    SfView.Center
    SfView.DrawRect(CGRect)
    SfView.GetCenter()
    SfView.InsertSubview(NSView, Int32)
    SfView.IsDescendantOfView(NSView)
    SfView.IsFlipped
    SfView.Layout()
    SfView.SetNeedsDisplay()
    SfView.SetNeedsLayout()
    SfView.TouchesBegan(NSSet, NSEvent)
    SfView.TouchesBeganWithEvent(NSEvent)
    SfView.TouchesCancelled(NSSet, NSEvent)
    SfView.TouchesCancelledWithEvent(NSEvent)
    SfView.TouchesEnded(NSSet, NSEvent)
    SfView.TouchesEndedWithEvent(NSEvent)
    SfView.TouchesMoved(NSSet, NSEvent)
    SfView.TouchesMovedWithEvent(NSEvent)
    SfView.ViewWillMoveToSuperview(NSView)
    SfView.ViewWillMoveToWindow(NSWindow)
    SfView.WantsDefaultClipping
    SfView.WillMoveToSuperview(NSView)
    SfView.WillMoveToWindow(NSWindow)
    SfView.WillRemoveSubview(NSView)
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public class SFChart : ChartBase, IComponent, IDisposable

    Constructors

    SFChart()

    Declaration
    public SFChart()

    SFChart(IntPtr)

    Declaration
    public SFChart(IntPtr handle)
    Parameters
    Type Name Description
    System.IntPtr handle

    Properties

    ChartClipRect

    Gets the bounds of the chart.

    Declaration
    public CGRect ChartClipRect { get; }
    Property Value
    Type
    CoreGraphics.CGRect

    Delegate

    Declaration
    public SFChartDelegate Delegate { get; set; }
    Property Value
    Type
    SFChartDelegate

    EdgeInsets

    Gets or sets the inset distances for the SFChart view.

    Declaration
    public NSEdgeInsets EdgeInsets { get; set; }
    Property Value
    Type
    AppKit.NSEdgeInsets

    Legend

    Gets a legend that helps to identify the series in the SFChart.

    Declaration
    public SFChartLegend Legend { get; }
    Property Value
    Type
    SFChartLegend

    SeriesClipRect

    Gets the bounds of the plotting area.

    Declaration
    public CGRect SeriesClipRect { get; }
    Property Value
    Type
    CoreGraphics.CGRect

    Site

    Declaration
    public ISite Site { get; set; }
    Property Value
    Type
    System.ComponentModel.ISite

    Methods

    AddChartBehavior(SFChartBehavior)

    Attaches a chart behavior to the SfChart view.

    Declaration
    public void AddChartBehavior(SFChartBehavior behavior)
    Parameters
    Type Name Description
    SFChartBehavior behavior

    An object whose class descends from the ChartBehavior class. This parameter must not be null..

    AnimateIndicators()

    Declaration
    public void AnimateIndicators()

    AnimateSeries()

    Declaration
    public void AnimateSeries()

    ClearAllIndicators()

    Declaration
    public void ClearAllIndicators()

    ClearChartBehaviors()

    Detaches all chart behavior from the SfChart view.

    Declaration
    public void ClearChartBehaviors()

    CoefficientForValue(Double, SFAxis)

    Declaration
    public double CoefficientForValue(double value, SFAxis axis)
    Parameters
    Type Name Description
    System.Double value
    SFAxis axis
    Returns
    Type
    System.Double

    Draw(CGRect)

    Declaration
    public override void Draw(CGRect rect)
    Parameters
    Type Name Description
    CoreGraphics.CGRect rect
    Overrides
    SfView.Draw(CGRect)

    IndexOfIndicator(SFTechnicalIndicator)

    Declaration
    public nint IndexOfIndicator(SFTechnicalIndicator indicator)
    Parameters
    Type Name Description
    SFTechnicalIndicator indicator
    Returns
    Type
    System.nint

    IndexOfSeries(SFSeries)

    Declaration
    public nint IndexOfSeries(SFSeries series)
    Parameters
    Type Name Description
    SFSeries series
    Returns
    Type
    System.nint

    IndicatorAtIndex(nint)

    Declaration
    public SFTechnicalIndicator IndicatorAtIndex(nint index)
    Parameters
    Type Name Description
    System.nint index
    Returns
    Type
    SFTechnicalIndicator

    InsertDataPointAtIndex(nint, nint)

    Declaration
    public void InsertDataPointAtIndex(nint index, nint seriesIndex)
    Parameters
    Type Name Description
    System.nint index
    System.nint seriesIndex

    InsertDataPointInIndicatorAtIndex(nint, nint)

    Declaration
    public void InsertDataPointInIndicatorAtIndex(nint index, nint indicatorIndex)
    Parameters
    Type Name Description
    System.nint index
    System.nint indicatorIndex

    LayoutSubviews()

    Declaration
    public override void LayoutSubviews()
    Overrides
    SfView.LayoutSubviews()

    MouseDown(NSEvent)

    Declaration
    public override void MouseDown(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    MouseDragged(NSEvent)

    Declaration
    public override void MouseDragged(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    MouseEntered(NSEvent)

    Declaration
    public override void MouseEntered(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    MouseExited(NSEvent)

    Declaration
    public override void MouseExited(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    MouseMoved(NSEvent)

    Declaration
    public override void MouseMoved(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    MouseUp(NSEvent)

    Declaration
    public override void MouseUp(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    PointForValue(Double, SFAxis)

    Declaration
    public double PointForValue(double value, SFAxis axis)
    Parameters
    Type Name Description
    System.Double value
    SFAxis axis
    Returns
    Type
    System.Double

    ReloadData()

    Declaration
    public virtual void ReloadData()

    RemoveChartBehavior(SFChartBehavior)

    Detaches a chart behavior to the SfChart view.

    Declaration
    public void RemoveChartBehavior(SFChartBehavior behavior)
    Parameters
    Type Name Description
    SFChartBehavior behavior

    An object whose class descends from the ChartBehavior class.

    RemoveDataPointAtIndex(nint, nint)

    Declaration
    public void RemoveDataPointAtIndex(nint index, nint seriesIndex)
    Parameters
    Type Name Description
    System.nint index
    System.nint seriesIndex

    RemoveDataPointInIndicatorAtIndex(nint, nint)

    Declaration
    public void RemoveDataPointInIndicatorAtIndex(nint index, nint indicatorIndex)
    Parameters
    Type Name Description
    System.nint index
    System.nint indicatorIndex

    RemoveIndicatorAtIndex(nint)

    Declaration
    public void RemoveIndicatorAtIndex(nint indicatorIndex)
    Parameters
    Type Name Description
    System.nint indicatorIndex

    ScrollWheel(NSEvent)

    Declaration
    public override void ScrollWheel(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    SeriesAtIndex(nint)

    Declaration
    public SFSeries SeriesAtIndex(nint index)
    Parameters
    Type Name Description
    System.nint index
    Returns
    Type
    SFSeries

    ValueForCoefficient(Double, SFAxis)

    Declaration
    public double ValueForCoefficient(double value, SFAxis axis)
    Parameters
    Type Name Description
    System.Double value
    SFAxis axis
    Returns
    Type
    System.Double

    ValueForPoint(CGPoint, SFAxis)

    Declaration
    public double ValueForPoint(CGPoint point, SFAxis axis)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint point
    SFAxis axis
    Returns
    Type
    System.Double

    Events

    Disposed

    Declaration
    public event EventHandler Disposed
    Event Type
    Type
    System.EventHandler

    Implements

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