Class SFDoughnutSeries
Represents a doughnut chart. This chart is similar to SFPieSeries except the SFDoughnutSeries 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.
Inheritance
Inherited Members
Namespace: Syncfusion.MacOS.Charts.SfChart
Assembly: Syncfusion.SfChart.XForms.macOS.dll
Syntax
public class SFDoughnutSeries : SFPieSeries
Remarks
SFDoughnutSeries requires ItemsSource, XBindingPath and YBindingPath properties to be set to render the chart.
Constructors
SFDoughnutSeries()
Declaration
public SFDoughnutSeries()
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 NSView CenterView { get; set; }
Property Value
Type | Description |
---|---|
AppKit.NSView | 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 Com.Syncfusion.Charts.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 NSColor TrackBorderColor { get; set; }
Property Value
Type | Description |
---|---|
AppKit.NSColor | 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 NSColor TrackColor { get; set; }
Property Value
Type | Description |
---|---|
AppKit.NSColor | The color of the track. |
Methods
AnimationForSegment(SFChartSegment)
Declaration
protected override CAAnimation AnimationForSegment(SFChartSegment segment)
Parameters
Type | Name | Description |
---|---|---|
SFChartSegment | segment |
Returns
Type |
---|
CoreAnimation.CAAnimation |
Overrides
CreateSegment()
Declaration
protected override SFChartSegment CreateSegment()
Returns
Type |
---|
SFChartSegment |
Overrides
OnAttachedToChart()
Declaration
protected override void OnAttachedToChart()
Overrides
OnDetachedFromChart()
Declaration
protected override void OnDetachedFromChart()