Class ChartAnnotation
Namespace: Com.Syncfusion.Charts
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public abstract class ChartAnnotation : Object
Constructors
ChartAnnotation()
Declaration
protected ChartAnnotation()
Properties
CoordinateUnit
Gets or sets the ChartCoordinateUnit enum that represents whether annotation is draw on pixel co-ordinates or axis co-ordinates.
Declaration
public ChartCoordinateUnit CoordinateUnit { get; set; }
Property Value
Type | Description |
---|---|
ChartCoordinateUnit | The co-ordinate point for Annotation. |
Visibility
Gets or sets a value indicating whether the annotation is visible in the chart.
Declaration
public Visibility Visibility { get; set; }
Property Value
Type |
---|
Visibility |
X1
Gets or sets the date time or double that represents x1 position of annotation.
Declaration
public object X1 { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The x1. |
XAxisName
Gets or sets the string value that represents name of the x axis.
Declaration
public string XAxisName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the X Axis. |
Y1
Gets or sets the double that represents y1 position of annotation.
Declaration
public double Y1 { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The y1. |
YAxisName
Gets or sets the string value that represents name of the y axis.
Declaration
public string YAxisName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the Y Axis. |
Methods
Draw(Canvas)
Method used to draw annotation in chart area.
Declaration
protected virtual void Draw(Canvas context)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | context | The context. |
GetView()
Gets the view for annotation.
Declaration
protected virtual ChartAnnotationView GetView()
Returns
Type | Description |
---|---|
ChartAnnotationView | The view. |
Remarks
This is not applicable for ViewAnnotation Class
OnTouchEvent(MotionEvent)
The method is called when annotation is selected.
Declaration
protected virtual void OnTouchEvent(MotionEvent e)
Parameters
Type | Name | Description |
---|---|---|
Android.Views.MotionEvent | e |