Class ChartSeries
Serves as a base class for all types of chart series.
Inheritance
System.Object
ChartSeries
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public abstract class ChartSeries : Object
Constructors
ChartSeries()
Initializes a new instance of the ChartSeries class with default settings.
Declaration
Properties
ActualXAxis
Declaration
public virtual ChartAxis ActualXAxis { get; }
Property Value
ActualYAxis
Declaration
public virtual ChartAxis ActualYAxis { get; }
Property Value
Alpha
Gets or sets float value that indicates series fill color's alpha value.
Declaration
public float Alpha { get; set; }
Property Value
AnimationDuration
Gets or sets double value that represents animation time in view.
Declaration
public double AnimationDuration { get; set; }
Property Value
Chart
Declaration
public ChartBase Chart { get; }
Property Value
Color
Gets or sets color which used to fill the segments in series.
Declaration
public Color Color { get; set; }
Property Value
Type |
Android.Graphics.Color |
ColorModel
Gets or sets ChartColorModel which used to modify series palette.
Declaration
public ChartColorModel ColorModel { get; set; }
Property Value
DataCount
Declaration
protected int DataCount { get; set; }
Property Value
DataMarker
Gets the chart data marker labels.
Declaration
public ChartDataMarker DataMarker { get; }
Property Value
DataPointSelectionEnabled
Gets or sets a value indicating whether to allow the segment selection of the series.
Declaration
public bool DataPointSelectionEnabled { get; set; }
Property Value
EnableAnimation
Gets or sets a value indicating whether to allow series render with animation effects.
Declaration
public bool EnableAnimation { get; set; }
Property Value
IsSelected
Gets a value indicating whether the series is selected or not.
Declaration
public bool IsSelected { get; }
Property Value
ItemsSource
Gets or sets collection of object source which is used to render series in UI.
Declaration
public object ItemsSource { get; set; }
Property Value
Label
Gets or sets the string that used to identify the series in legend item.
Declaration
public string Label { get; set; }
Property Value
LegendIcon
Gets or sets ChartLegendIcon which represents the series icon in legend item.
Declaration
public ChartLegendIcon LegendIcon { get; set; }
Property Value
ListenPropertyChange
Gets or sets a value indicating whether to update individual data in ItemsSource.
Declaration
public bool ListenPropertyChange { get; set; }
Property Value
Name
Gets or sets string value that used to identify series in chart.
Declaration
public string Name { get; set; }
Property Value
Segments
Gets the Segments collection variable declarations.
Declaration
public ObservableCollection<ChartSegment> Segments { get; }
Property Value
Type |
System.Collections.ObjectModel.ObservableCollection<ChartSegment> |
SelectedDataPointColor
Gets or sets the color of the selected segment of the series.
Declaration
public Color SelectedDataPointColor { get; set; }
Property Value
Type |
Android.Graphics.Color |
SelectedDataPointIndex
Gets or sets the index value of current selected data point.
Declaration
public int SelectedDataPointIndex { get; set; }
Property Value
StrokeWidth
Declaration
public float StrokeWidth { get; set; }
Property Value
Gets or sets a value indicating whether to renderer the tooltip.
Declaration
public bool TooltipEnabled { get; set; }
Property Value
Visibility
Gets or sets Visibility that represents the series visibility in SfChart.
Declaration
public Visibility Visibility { get; set; }
Property Value
VisibilityOnLegend
Gets or sets Visibility that represents the series visibility
Declaration
public Visibility VisibilityOnLegend { get; set; }
Property Value
XBindingPath
Gets or sets IList value which used to render series in UI.
Declaration
public string XBindingPath { get; set; }
Property Value
XRange
Declaration
public DoubleRange XRange { get; }
Property Value
YRange
Declaration
public DoubleRange YRange { get; }
Property Value
Methods
Animate()
Method used to animate the series.
Declaration
ClearUnUsedDataMarkerLabels(Int32)
Declaration
protected void ClearUnUsedDataMarkerLabels(int dataCount)
Parameters
Type |
Name |
Description |
System.Int32 |
dataCount |
|
CreateSegment()
Declaration
protected abstract ChartSegment CreateSegment()
Returns
CreateSegments()
Declaration
protected abstract void CreateSegments()
DrawDataMarker(Int32, Canvas, Paint, Paint, Single, Single)
Declaration
protected virtual void DrawDataMarker(int index, Canvas canvas, Paint fillPaint, Paint strokePaint, float pointX, float pointY)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Android.Graphics.Canvas |
canvas |
|
Android.Graphics.Paint |
fillPaint |
|
Android.Graphics.Paint |
strokePaint |
|
System.Single |
pointX |
|
System.Single |
pointY |
|
DrawDataMarkerLabel(Int32, Canvas, String, Single, Single)
Declaration
protected virtual void DrawDataMarkerLabel(int index, Canvas canvas, string dataLabel, float pointX, float pointY)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Android.Graphics.Canvas |
canvas |
|
System.String |
dataLabel |
|
System.Single |
pointX |
|
System.Single |
pointY |
|
GeneratePoints(String[], IList<Double>[])
Declaration
protected void GeneratePoints(string[] yPaths, params IList<double>[] yValueLists)
Parameters
Type |
Name |
Description |
System.String[] |
yPaths |
|
System.Collections.Generic.IList<System.Double>[] |
yValueLists |
|
GetDataPointIndex(Single, Single)
Declaration
public virtual int GetDataPointIndex(float pointX, float pointY)
Parameters
Type |
Name |
Description |
System.Single |
pointX |
|
System.Single |
pointY |
|
Returns
GetGradientEndPoint(ChartSegment)
Declaration
protected virtual PointF GetGradientEndPoint(ChartSegment segment)
Parameters
Returns
Type |
Android.Graphics.PointF |
GetGradientStartPoint(ChartSegment)
Declaration
protected virtual PointF GetGradientStartPoint(ChartSegment segment)
Parameters
Returns
Type |
Android.Graphics.PointF |
GetSelectionColor()
Override this method to set color for selected series.
Declaration
protected virtual Color GetSelectionColor()
Returns
Type |
Description |
Android.Graphics.Color |
The selection color.
|
GetView()
Gets the view for series.
Declaration
protected virtual SeriesRenderer GetView()
Returns
InvalidateRender()
Method used to render this series alone.
Declaration
protected virtual void InvalidateRender()
OnAttachedToChart()
Called when this series added to Chart layout.
Declaration
protected virtual void OnAttachedToChart()
OnBindingPathChanged()
Declaration
protected virtual void OnBindingPathChanged()
OnDetachedFromChart()
Called when this series removed to Chart layout.
Declaration
protected virtual void OnDetachedFromChart()
OnTouchMove(MotionEvent)
Declaration
protected virtual void OnTouchMove(MotionEvent eventArgs)
Parameters
Type |
Name |
Description |
Android.Views.MotionEvent |
eventArgs |
|
ResumeNotification()
Processes the data that is added to the data source after the SuspendNotification is called.
Declaration
public void ResumeNotification()
ScheduleUpdateArea()
Declaration
protected virtual void ScheduleUpdateArea()
SeriesContainsPoint(PointF)
Declaration
public virtual bool SeriesContainsPoint(PointF point)
Parameters
Type |
Name |
Description |
System.Drawing.PointF |
point |
|
Returns
SetFillColor(ChartSegment)
Declaration
protected virtual void SetFillColor(ChartSegment segment)
Parameters
SetIndividualPoint(Int32, Object, Boolean)
Declaration
protected virtual void SetIndividualPoint(int index, object value, bool replace)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Object |
value |
|
System.Boolean |
replace |
|
SetStrokeWidth(ChartSegment)
Declaration
protected virtual void SetStrokeWidth(ChartSegment segment)
Parameters
SuspendNotification()
Suspends the series from updating the series data till ResumeNotification is called. This is specifically used when you need to append the collection of data.
Declaration
public void SuspendNotification()
Events
DataMarkerLabelCreated
The event is called when the data marker label is created.
Declaration
public event EventHandler<ChartSeries.DataMarkerLabelCreatedEventArgs> DataMarkerLabelCreated
Event Type