Class ChartBase
Namespace: Syncfusion.SfChart.iOS
Assembly: Syncfusion.SFChart.iOS.dll
Syntax
public class ChartBase : UIView
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 UIColor AreaBackgroundColor { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
AreaBorderColor
Gets or sets the Border color of the Plotting area.
Declaration
public UIColor AreaBorderColor { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
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 UIColor SeriesSelectionColor { get; set; }
Property Value
| Type |
|---|
| UIKit.UIColor |
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
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> |
LegendItemClicked
Occurs before the legend item is clicked.
Declaration
public event EventHandler<ChartLegendItemClickedEventArgs> LegendItemClicked
Event Type
| Type |
|---|
| System.EventHandler<ChartLegendItemClickedEventArgs> |
LegendItemCreated
Occurs when the legend item is created.
Declaration
public event EventHandler<ChartLegendItemCreatedEventArgs> LegendItemCreated
Event Type
| Type |
|---|
| System.EventHandler<ChartLegendItemCreatedEventArgs> |
SeriesRendered
This event occurs when series is rendered. This helps to identify whether the series rendered.
Declaration
public event EventHandler<EventArgs> SeriesRendered
Event Type
| Type |
|---|
| System.EventHandler<System.EventArgs> |