Class StackingBarSeries
Represents a stacked bar chart. To render this chart, create an instance of this class and add it to Series collection property and set the required properties.
Inheritance
Inherited Members
Namespace: Com.Syncfusion.Charts
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public class StackingBarSeries : StackingSeriesBase
Remarks
StackingBarSeries is the transposed version of StackingColumnSeries. Unlike other cartesian chart types, to plot StackingBarSeries, 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 StackingBarSeries. Multiple StackingBarSeries can be added in a single SfChart. StackingBarSeries 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
StackingBarSeries()
Initializes a new instance of the StackingBarSeries class.
Declaration
public StackingBarSeries()
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 data marker position.
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 |
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 StackingBarSeries.
Declaration
protected override void CreateSegments()