Class ChartBase
Represents a class that supports the actions performed in the designer.
Namespace: Com.Syncfusion.Charts
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public abstract class ChartBase : FrameLayout
Constructors
ChartBase(Context)
Declaration
public ChartBase(Context context)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context |
ChartBase(Context, IAttributeSet)
Declaration
public ChartBase(Context context, IAttributeSet attribute)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | |
Android.Util.IAttributeSet | attribute |
ChartBase(Context, IAttributeSet, Int32)
Declaration
public ChartBase(Context context, IAttributeSet attribute, int defaultStyleAttribute)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | |
Android.Util.IAttributeSet | attribute | |
System.Int32 | defaultStyleAttribute |
ChartBase(Context, IAttributeSet, Int32, Int32)
Declaration
public ChartBase(Context context, IAttributeSet attribute, int defaultStyleAttribute, int defaultStyleResource)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | |
Android.Util.IAttributeSet | attribute | |
System.Int32 | defaultStyleAttribute | |
System.Int32 | defaultStyleResource |
ChartBase(IntPtr, JniHandleOwnership)
Declaration
public ChartBase(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | javaReference | |
Android.Runtime.JniHandleOwnership | transfer |
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 Color AreaBackgroundColor { get; set; }
Property Value
Type |
---|
Android.Graphics.Color |
AreaBorderColor
Gets or sets the Border color of the Plotting area.
Declaration
public Color AreaBorderColor { get; set; }
Property Value
Type |
---|
Android.Graphics.Color |
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
ColorModel
Gets or sets the palette collection to fill the series interior. By default, it is Metro.
Declaration
public ChartColorModel ColorModel { get; set; }
Property Value
Type |
---|
ChartColorModel |
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 ChartAxis PrimaryAxis { get; set; }
Property Value
Type |
---|
ChartAxis |
SecondaryAxis
Gets or sets the vertical axis defined for the chart.
Declaration
public RangeAxisBase SecondaryAxis { get; set; }
Property Value
Type |
---|
RangeAxisBase |
Series
Gets or sets the collection of series to be added to the chart.
Declaration
public ChartSeriesCollection Series { get; set; }
Property Value
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 Color SeriesSelectionColor { get; set; }
Property Value
Type |
---|
Android.Graphics.Color |
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
Title
Gets the title for the chart.
Declaration
public ChartTitle Title { get; }
Property Value
Type |
---|
ChartTitle |
Methods
OnMeasureChart()
Declaration
protected virtual void OnMeasureChart()
RedrawChart()
Declaration
public void RedrawChart()
ReloadChart()
Declaration
public void ReloadChart()
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()
ValueToPoint(ChartAxis, Double)
Declaration
public float ValueToPoint(ChartAxis axis, double value)
Parameters
Type | Name | Description |
---|---|---|
ChartAxis | axis | |
System.Double | value |
Returns
Type |
---|
System.Single |
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> |