Class DoughnutSeries
Represents a doughnut chart. This chart is similar to PieSeries except the DoughnutSeries contains a hole at the center of the series. To render doughnut 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 DoughnutSeries : PieSeries
Remarks
DoughnutSeries requires ItemsSource, XBindingPath and YBindingPath properties to be set to render the chart.
Constructors
DoughnutSeries()
Declaration
public DoughnutSeries()
Properties
CapStyle
Gets or sets the cap style for doughnut series.
Declaration
public DoughnutCapStyle CapStyle { get; set; }
Property Value
Type | Description |
---|---|
DoughnutCapStyle | The cap style. |
CenterView
Gets or sets the view to be added to the center of the doughnut series.
Declaration
public View CenterView { get; set; }
Property Value
Type | Description |
---|---|
Android.Views.View | The center view. |
DoughnutCoefficient
Gets or sets the value that resides between 0 to 1, handles the inner radius of the doughnut series.
Declaration
public double DoughnutCoefficient { get; set; }
Property Value
Type |
---|
System.Double |
InnerRadius
Gets the inner radius of the doughnut series.
Declaration
public float InnerRadius { get; }
Property Value
Type | Description |
---|---|
System.Single | The inner radius. |
IsStackedDoughnut
Gets or sets a value indicating whether this DoughnutSeries is stacked doughnut.
Declaration
public bool IsStackedDoughnut { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
MaximumValue
Gets or sets the maximum value for the doughnut circle.
Declaration
public double MaximumValue { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The gap radius. |
Spacing
Gets or sets the gap radius.
Declaration
public double Spacing { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The gap radius. |
TrackBorderColor
Gets or sets the color of the track border.
Declaration
public Color TrackBorderColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the track border. |
TrackBorderWidth
Gets or sets the width of the track border.
Declaration
public double TrackBorderWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the track border. |
TrackColor
Gets or sets the color of the track.
Declaration
public Color TrackColor { get; set; }
Property Value
Type | Description |
---|---|
Android.Graphics.Color | The color of the track. |
Methods
CreateSegment()
Declaration
protected override ChartSegment CreateSegment()
Returns
Type |
---|
ChartSegment |
Overrides
OnAttachedToChart()
Declaration
protected override void OnAttachedToChart()
Overrides
OnDetachedFromChart()
Declaration
protected override void OnDetachedFromChart()