menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartSeries - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartSeries

    Serves as a base class for all types of chart series.

    Inheritance
    System.Object
    ChartSeries
    AccumulationSeries
    CartesianSeries
    FinancialTechnicalIndicator
    PolarRadarBaseSeries
    PolarSeries
    Namespace: Com.Syncfusion.Charts
    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
    public ChartSeries()

    Properties

    ActualXAxis

    Declaration
    public virtual ChartAxis ActualXAxis { get; }
    Property Value
    Type
    ChartAxis

    ActualYAxis

    Declaration
    public virtual ChartAxis ActualYAxis { get; }
    Property Value
    Type
    ChartAxis

    Alpha

    Gets or sets float value that indicates series fill color's alpha value.

    Declaration
    public float Alpha { get; set; }
    Property Value
    Type
    System.Single

    AnimationDuration

    Gets or sets double value that represents animation time in view.

    Declaration
    public double AnimationDuration { get; set; }
    Property Value
    Type
    System.Double

    Chart

    Declaration
    public ChartBase Chart { get; }
    Property Value
    Type
    ChartBase

    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
    Type
    ChartColorModel

    DataCount

    Declaration
    protected int DataCount { get; set; }
    Property Value
    Type
    System.Int32

    DataMarker

    Gets the chart data marker labels.

    Declaration
    public ChartDataMarker DataMarker { get; }
    Property Value
    Type
    ChartDataMarker

    DataPointSelectionEnabled

    Gets or sets a value indicating whether to allow the segment selection of the series.

    Declaration
    public bool DataPointSelectionEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    EnableAnimation

    Gets or sets a value indicating whether to allow series render with animation effects.

    Declaration
    public bool EnableAnimation { get; set; }
    Property Value
    Type
    System.Boolean
    Remarks

    This property is not supported for BoxAndWhiskerSeries and ErrorBarSeries

    IsSelected

    Gets a value indicating whether the series is selected or not.

    Declaration
    public bool IsSelected { get; }
    Property Value
    Type
    System.Boolean

    ItemsSource

    Gets or sets collection of object source which is used to render series in UI.

    Declaration
    public object ItemsSource { get; set; }
    Property Value
    Type
    System.Object

    Label

    Gets or sets the string that used to identify the series in legend item.

    Declaration
    public string Label { get; set; }
    Property Value
    Type
    System.String

    LegendIcon

    Gets or sets ChartLegendIcon which represents the series icon in legend item.

    Declaration
    public ChartLegendIcon LegendIcon { get; set; }
    Property Value
    Type
    ChartLegendIcon

    ListenPropertyChange

    Gets or sets a value indicating whether to update individual data in ItemsSource.

    Declaration
    public bool ListenPropertyChange { get; set; }
    Property Value
    Type
    System.Boolean

    Name

    Gets or sets string value that used to identify series in chart.

    Declaration
    public string Name { get; set; }
    Property Value
    Type
    System.String

    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
    Type
    System.Int32

    StrokeWidth

    Declaration
    public float StrokeWidth { get; set; }
    Property Value
    Type
    System.Single

    TooltipEnabled

    Gets or sets a value indicating whether to renderer the tooltip.

    Declaration
    public bool TooltipEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    Visibility

    Gets or sets Visibility that represents the series visibility in SfChart.

    Declaration
    public Visibility Visibility { get; set; }
    Property Value
    Type
    Visibility

    VisibilityOnLegend

    Gets or sets Visibility that represents the series visibility

    Declaration
    public Visibility VisibilityOnLegend { get; set; }
    Property Value
    Type
    Visibility

    XBindingPath

    Gets or sets IList value which used to render series in UI.

    Declaration
    public string XBindingPath { get; set; }
    Property Value
    Type
    System.String

    XRange

    Gets the xAxis range.

    Declaration
    public DoubleRange XRange { get; }
    Property Value
    Type
    DoubleRange

    YRange

    Gets the yAxis range.

    Declaration
    public DoubleRange YRange { get; }
    Property Value
    Type
    DoubleRange

    Methods

    Animate()

    Method used to animate the series.

    Declaration
    public void Animate()

    ClearUnUsedDataMarkerLabels(Int32)

    Declaration
    protected void ClearUnUsedDataMarkerLabels(int dataCount)
    Parameters
    Type Name Description
    System.Int32 dataCount

    CreateSegment()

    Declaration
    protected abstract ChartSegment CreateSegment()
    Returns
    Type
    ChartSegment

    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
    Type
    System.Int32

    GetGradientEndPoint(ChartSegment)

    Declaration
    protected virtual PointF GetGradientEndPoint(ChartSegment segment)
    Parameters
    Type Name Description
    ChartSegment segment
    Returns
    Type
    Android.Graphics.PointF

    GetGradientStartPoint(ChartSegment)

    Declaration
    protected virtual PointF GetGradientStartPoint(ChartSegment segment)
    Parameters
    Type Name Description
    ChartSegment segment
    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
    Type Description
    SeriesRenderer

    The SeriesRenderer.

    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
    Type
    System.Boolean

    SetFillColor(ChartSegment)

    Declaration
    protected virtual void SetFillColor(ChartSegment segment)
    Parameters
    Type Name Description
    ChartSegment segment

    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
    Type Name Description
    ChartSegment segment

    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
    Type
    System.EventHandler<ChartSeries.DataMarkerLabelCreatedEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved