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.
Inherited Members
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 |
---|
ChartCornerRadius |
DataMarkerPosition
Gets or sets the position of the data markers in series.
Declaration
public DataMarkerPosition DataMarkerPosition { get; set; }
Property Value
Type |
---|
DataMarkerPosition |
Spacing
Gets or sets the spacing between the segments.
Declaration
public double Spacing { get; set; }
Property Value
Type |
---|
System.Double |
StrokeColor
Gets or sets the color for the series stroke.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type |
---|
Android.Graphics.Color |
Width
Gets or sets the width of the segments.
Declaration
public double Width { get; set; }
Property Value
Type |
---|
System.Double |
Methods
CreateSegment()
Create the BarSegment.
Declaration
protected override ChartSegment CreateSegment()
Returns
Type | Description |
---|---|
ChartSegment | Returns a segment. |
Overrides
CreateSegments()
Creates the segments of BarSeries.
Declaration
protected override void CreateSegments()