Class ChartBase
Inherited Members
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 |
---|
AppKit.NSColor |
AreaBorderColor
Gets or sets the Border color of the Plotting area.
Declaration
public NSColor AreaBorderColor { get; set; }
Property Value
Type |
---|
AppKit.NSColor |
AreaBorderWidth
Gets or sets the Border width of the Plotting area.
Declaration
public float AreaBorderWidth { get; set; }
Property Value
Type |
---|
System.Single |
Axes
Gets the Axes collection.
Declaration
public ChartAxisCollection Axes { get; }
Property Value
Type |
---|
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 |
---|
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 |
---|
SFChartColorModel |
EnableSeriesSelection
Gets or sets a value indicating whether to allow the series selection.
Declaration
public bool EnableSeriesSelection { get; set; }
Property Value
Type |
---|
System.Boolean |
PrimaryAxis
Gets or sets the horizontal axis defined for the chart.
Declaration
public SFAxis PrimaryAxis { get; set; }
Property Value
Type |
---|
SFAxis |
SecondaryAxis
Gets or sets the vertical axis defined for the chart.
Declaration
public SFRangeAxisBase SecondaryAxis { get; set; }
Property Value
Type |
---|
SFRangeAxisBase |
Series
Gets or sets the collection of series to be added to the chart.
Declaration
public ChartSeriesCollection Series { get; set; }
Property Value
Type |
---|
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 |
---|
System.Drawing.RectangleF |
SeriesSelectionColor
Gets or sets the color to the selected series.
Declaration
public NSColor SeriesSelectionColor { get; set; }
Property Value
Type |
---|
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 |
---|
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 |
---|
ChartTechnicalIndicatorCollection |
Title
Gets the title for the chart.
Declaration
public SFChartTitle Title { get; }
Property Value
Type |
---|
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 |
---|
System.EventHandler<ChartAnnotationClickedEventArgs> |