Xamarin.Android

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

    Show / Hide Table of Contents

    Class BarSeries

    Represents a bar chart. To render bar chart, create an instance of this class and add it to Series collection property and set the required properties.

    Inheritance
    System.Object
    ChartSeries
    CartesianSeries
    XyDataSeries
    BarSeries
    Inherited Members
    XyDataSeries.OnBindingPathChanged()
    XyDataSeries.YBindingPath
    CartesianSeries.OnAttachedToChart()
    CartesianSeries.FindNearestChartPoint(Single, Single)
    CartesianSeries.FindNearestChartPoints(Single, Single)
    CartesianSeries.GetCardinalSpline(List<Double>, IList<Double>)
    CartesianSeries.CalculateControlPoints(Double, Double, Double, Double, Double, Double)
    CartesianSeries.CalculateControlPoints(Double, Double, Double, Double, Double, Double, Double)
    CartesianSeries.GetMonotonicSpline(List<Double>, IList<Double>, Double[])
    CartesianSeries.GetDataPoints(RectangleF)
    CartesianSeries.GetDataPoints(Double, Double, Double, Double)
    CartesianSeries.Trendlines
    CartesianSeries.XAxis
    CartesianSeries.YAxis
    CartesianSeries.Transposed
    CartesianSeries.ShowTrackballInfo
    CartesianSeries.ActualXAxis
    CartesianSeries.ActualYAxis
    ChartSeries.GeneratePoints(String[], IList<Double>[])
    ChartSeries.ScheduleUpdateArea()
    ChartSeries.GetSelectionColor()
    ChartSeries.GetGradientStartPoint(ChartSegment)
    ChartSeries.GetGradientEndPoint(ChartSegment)
    ChartSeries.SetIndividualPoint(Int32, Object, Boolean)
    ChartSeries.ClearUnUsedDataMarkerLabels(Int32)
    ChartSeries.SeriesContainsPoint(PointF)
    ChartSeries.GetDataPointIndex(Single, Single)
    ChartSeries.InvalidateRender()
    ChartSeries.OnDetachedFromChart()
    ChartSeries.SetFillColor(ChartSegment)
    ChartSeries.SetStrokeWidth(ChartSegment)
    ChartSeries.SuspendNotification()
    ChartSeries.ResumeNotification()
    ChartSeries.DrawDataMarker(Int32, Canvas, Paint, Paint, Single, Single)
    ChartSeries.DrawDataMarkerLabel(Int32, Canvas, String, Single, Single)
    ChartSeries.OnTouchMove(MotionEvent)
    ChartSeries.Animate()
    ChartSeries.GetView()
    ChartSeries.ListenPropertyChange
    ChartSeries.DataMarker
    ChartSeries.EnableAnimation
    ChartSeries.AnimationDuration
    ChartSeries.IsSelected
    ChartSeries.SelectedDataPointIndex
    ChartSeries.DataPointSelectionEnabled
    ChartSeries.SelectedDataPointColor
    ChartSeries.DataCount
    ChartSeries.Name
    ChartSeries.Color
    ChartSeries.StrokeWidth
    ChartSeries.Alpha
    ChartSeries.LegendIcon
    ChartSeries.Label
    ChartSeries.TooltipEnabled
    ChartSeries.ItemsSource
    ChartSeries.XBindingPath
    ChartSeries.ColorModel
    ChartSeries.XRange
    ChartSeries.YRange
    ChartSeries.Segments
    ChartSeries.Chart
    ChartSeries.VisibilityOnLegend
    ChartSeries.Visibility
    ChartSeries.DataMarkerLabelCreated
    Namespace: Com.Syncfusion.Charts
    Assembly: Syncfusion.SfChart.Android.dll
    Syntax
    public class BarSeries : XyDataSeries
    Remarks

    BarSeries is the transposed version of ColumnSeries. Unlike other cartesian chart types, to plot BarSeries, x-axis will be rendered vertically and y-axis will be rendered horizontally. Hence, it is not possible to plot other chart types along with BarSeries. Multiple BarSeries can be added in a single SfChart. BarSeries requires ItemsSource, XBindingPath and YBindingPath properties to be set to render the chart. This series also requires x-axis and y-axis to be explicitly set either using PrimaryAxis and SecondaryAxis or XAxis and YAxis.

    Constructors

    BarSeries()

    Initializes a new instance of the BarSeries class.

    Declaration
    public BarSeries()

    Properties

    CornerRadius

    Gets or sets the value to draw rounded corners of the segments by using ChartCornerRadius.

    Declaration
    public ChartCornerRadius CornerRadius { get; set; }
    Property Value
    Type Description
    ChartCornerRadius

    DataMarkerPosition

    Gets or sets the position of the data markers in series.

    Declaration
    public DataMarkerPosition DataMarkerPosition { get; set; }
    Property Value
    Type Description
    DataMarkerPosition

    Spacing

    Gets or sets the spacing between the segments.

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

    StrokeColor

    Gets or sets the color for the series stroke.

    Declaration
    public Color StrokeColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    Width

    Gets or sets the width of the segments.

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

    Methods

    CreateSegment()

    Create the BarSegment.

    Declaration
    protected override ChartSegment CreateSegment()
    Returns
    Type Description
    ChartSegment

    Returns a segment.

    Overrides
    CartesianSeries.CreateSegment()

    CreateSegments()

    Creates the segments of BarSeries.

    Declaration
    protected override void CreateSegments()
    Overrides
    CartesianSeries.CreateSegments()
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved