Xamarin.Forms

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

    Show / Hide Table of Contents

    Class ChartBase

    Inheritance
    System.Object
    SfView
    ChartBase
    SFChart
    Inherited Members
    SfView.SetNeedsDisplay()
    SfView.SetNeedsLayout()
    SfView.GetCenter()
    SfView.BringSubviewToFront(NSView)
    SfView.WillRemoveSubview(NSView)
    SfView.InsertSubview(NSView, Int32)
    SfView.LayoutSubviews()
    SfView.Draw(CGRect)
    SfView.WillMoveToSuperview(NSView)
    SfView.Layout()
    SfView.DrawRect(CGRect)
    SfView.ViewWillMoveToSuperview(NSView)
    SfView.IsDescendantOfView(NSView)
    SfView.TouchesBegan(NSSet, NSEvent)
    SfView.TouchesMoved(NSSet, NSEvent)
    SfView.TouchesCancelled(NSSet, NSEvent)
    SfView.TouchesEnded(NSSet, NSEvent)
    SfView.TouchesBeganWithEvent(NSEvent)
    SfView.TouchesMovedWithEvent(NSEvent)
    SfView.TouchesCancelledWithEvent(NSEvent)
    SfView.TouchesEndedWithEvent(NSEvent)
    SfView.WillMoveToWindow(NSWindow)
    SfView.ViewWillMoveToWindow(NSWindow)
    SfView.BackgroundColor
    SfView.Alpha
    SfView.Center
    SfView.WantsDefaultClipping
    SfView.IsFlipped
    Namespace: Syncfusion.MacOS.Charts.SfChart
    Assembly: Syncfusion.SfChart.XForms.macOS.dll
    Syntax
    public class ChartBase : SfView

    Constructors

    ChartBase()

    Initializes a new instance of the ChartBase class.

    Declaration
    public ChartBase()

    ChartBase(IntPtr)

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

    Properties

    Annotations

    Gets or sets the collection of annotations to be added to the chart.

    Declaration
    public ChartAnnotationCollection Annotations { get; set; }
    Property Value
    Type Description
    ChartAnnotationCollection

    The annotations.

    AreaBackgroundColor

    Gets or sets the color to the Background of the chart area.

    Declaration
    public NSColor AreaBackgroundColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    AreaBorderColor

    Gets or sets the Border color of the Plotting area.

    Declaration
    public NSColor AreaBorderColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    AreaBorderWidth

    Gets or sets the Border width of the Plotting area.

    Declaration
    public float AreaBorderWidth { get; set; }
    Property Value
    Type Description
    System.Single

    Axes

    Gets the Axes collection.

    Declaration
    public ChartAxisCollection Axes { get; }
    Property Value
    Type Description
    ChartAxisCollection
    Remarks

    Clear method does not support for Axes collection.

    Behaviors

    Gets or sets the collection of behaviors to be added to the chart.

    Declaration
    public ChartBehaviorCollection Behaviors { get; set; }
    Property Value
    Type Description
    ChartBehaviorCollection

    ColorModel

    Gets or sets the palette collection to fill the series interior. By default, it is Metro.

    Declaration
    public SFChartColorModel ColorModel { get; set; }
    Property Value
    Type Description
    SFChartColorModel

    EnableSeriesSelection

    Gets or sets a value indicating whether to allow the series selection.

    Declaration
    public bool EnableSeriesSelection { get; set; }
    Property Value
    Type Description
    System.Boolean

    PrimaryAxis

    Gets or sets the horizontal axis defined for the chart.

    Declaration
    public SFAxis PrimaryAxis { get; set; }
    Property Value
    Type Description
    SFAxis

    SecondaryAxis

    Gets or sets the vertical axis defined for the chart.

    Declaration
    public SFRangeAxisBase SecondaryAxis { get; set; }
    Property Value
    Type Description
    SFRangeAxisBase

    Series

    Gets or sets the collection of series to be added to the chart.

    Declaration
    public ChartSeriesCollection Series { get; set; }
    Property Value
    Type Description
    ChartSeriesCollection

    SeriesBounds

    Gets the actual rendering bounds of chart series to customize the chart. This is Readonly property.

    Declaration
    public RectangleF SeriesBounds { get; }
    Property Value
    Type Description
    System.Drawing.RectangleF

    SeriesSelectionColor

    Gets or sets the color to the selected series.

    Declaration
    public NSColor SeriesSelectionColor { get; set; }
    Property Value
    Type Description
    AppKit.NSColor

    SideBySideSeriesPlacement

    Gets or sets a value indicating whether the ChartBase series should be placed side by side.

    Declaration
    public bool SideBySideSeriesPlacement { get; set; }
    Property Value
    Type Description
    System.Boolean

    TechnicalIndicators

    Gets or sets the collection of indicators to be added to the chart.

    Declaration
    public ChartTechnicalIndicatorCollection TechnicalIndicators { get; set; }
    Property Value
    Type Description
    ChartTechnicalIndicatorCollection

    Title

    Gets the title for the chart.

    Declaration
    public SFChartTitle Title { get; }
    Property Value
    Type Description
    SFChartTitle

    Methods

    CreateNativeChartAnnotation(ChartAnnotation)

    Creates the native chart annotation.

    Declaration
    protected virtual ChartAnnotation CreateNativeChartAnnotation(ChartAnnotation formAnnotation)
    Parameters
    Type Name Description
    ChartAnnotation formAnnotation

    Form annotation.

    Returns
    Type Description
    ChartAnnotation

    The native chart annotation.

    CreateNativeChartSeries(ChartSeries)

    Creates native chart series.

    Declaration
    protected virtual SFSeries CreateNativeChartSeries(ChartSeries formSeries)
    Parameters
    Type Name Description
    ChartSeries formSeries

    Form series.

    Returns
    Type Description
    SFSeries

    The native chart series.

    ResumeSeriesNotification()

    Processes the data that is added to the data source after the SuspendSeriesNotification is called.

    Declaration
    public void ResumeSeriesNotification()

    SuspendSeriesNotification()

    Suspends all the series from updating the data till ResumeSeriesNotification is called. This is specifically used when you need to append the collection of data.

    Declaration
    public void SuspendSeriesNotification()

    Events

    AnnotationClicked

    The event is raised when annotation is clicked.

    Declaration
    public event EventHandler<ChartAnnotationClickedEventArgs> AnnotationClicked
    Event Type
    Type Description
    System.EventHandler<ChartAnnotationClickedEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved