Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SFDoughnutSeries

    Show / Hide Table of Contents

    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
    System.Object
    SFSeries
    SFAccumulationSeries
    SFCircularSeries
    SFPieSeries
    SFDoughnutSeries
    Inherited Members
    SFPieSeries.CreateSegments()
    SFCircularSeries.OnBindingPathChanged()
    SFCircularSeries.GetAngle(Int32)
    SFCircularSeries.ConnectorLineType
    SFCircularSeries.BorderColor
    SFCircularSeries.BorderWidth
    SFCircularSeries.EnableSmartLabels
    SFCircularSeries.CircularCoefficient
    SFCircularSeries.StartAngle
    SFCircularSeries.EndAngle
    SFCircularSeries.GroupMode
    SFCircularSeries.GroupTo
    SFCircularSeries.ShowMarkerAtLineEnd
    SFCircularSeries.ConnectorLinePosition
    SFCircularSeries.DataMarkerPosition
    SFCircularSeries.ExplodeRadius
    SFAccumulationSeries.ExplodeOnTouch
    SFAccumulationSeries.YBindingPath
    SFAccumulationSeries.StrokeColor
    SFAccumulationSeries.ExplodeIndex
    SFAccumulationSeries.ExplodeAll
    SFSeries.InvalidateRender()
    SFSeries.Animate()
    SFSeries.CreateRenderer()
    SFSeries.InsertDataPointAtIndex(nint)
    SFSeries.RemoveDataPointAtIndex(nint)
    SFSeries.ReloadData()
    SFSeries.DrawLayer(CALayer, CGContext)
    SFSeries.DrawInContext(CGContext)
    SFSeries.DataPointIndexAtPoint(CGPoint)
    SFSeries.DrawMarker(CGContext, Double, Double, Int32)
    SFSeries.DrawLabel(NSString, CGContext, Double, Double, Int32)
    SFSeries.DrawConnectorLine(CGContext, Double, Double, Double, Double, NSColor, Int32)
    SFSeries.GeneratePoints(String[], IList<Double>[])
    SFSeries.ScheduleUpdateArea()
    SFSeries.GetSelectionColor()
    SFSeries.GetGradientStartPoint(SFChartSegment)
    SFSeries.GetGradientEndPoint(SFChartSegment)
    SFSeries.SetIndividualPoint(Int32, Object, Boolean)
    SFSeries.ClearUnUsedDataMarkerLabels(Int32)
    SFSeries.SeriesContainsPoint(CGPoint)
    SFSeries.SetFillColor(SFChartSegment)
    SFSeries.SetStrokeWidth(SFChartSegment)
    SFSeries.SuspendNotification()
    SFSeries.ResumeNotification()
    SFSeries.EnableTooltip
    SFSeries.LegendIcon
    SFSeries.EnableDataPointSelection
    SFSeries.Visible
    SFSeries.VisibleOnLegend
    SFSeries.LayerFrame
    SFSeries.ListenPropertyChange
    SFSeries.DataMarker
    SFSeries.EnableAnimation
    SFSeries.AnimationDuration
    SFSeries.IsSelected
    SFSeries.SelectedDataPointIndex
    SFSeries.SelectedDataPointColor
    SFSeries.DataCount
    SFSeries.Name
    SFSeries.Color
    SFSeries.Alpha
    SFSeries.Label
    SFSeries.ItemsSource
    SFSeries.XBindingPath
    SFSeries.ColorModel
    SFSeries.XRange
    SFSeries.YRange
    SFSeries.Segments
    SFSeries.ActualXAxis
    SFSeries.ActualYAxis
    SFSeries.DataMarkerLabelCreated
    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 Description
    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

    true if is stacked doughnut; otherwise, false.

    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 Description
    CoreAnimation.CAAnimation
    Overrides
    SFPieSeries.AnimationForSegment(SFChartSegment)

    CreateSegment()

    Declaration
    protected override SFChartSegment CreateSegment()
    Returns
    Type Description
    SFChartSegment
    Overrides
    SFPieSeries.CreateSegment()

    OnAttachedToChart()

    Declaration
    protected override void OnAttachedToChart()
    Overrides
    SFSeries.OnAttachedToChart()

    OnDetachedFromChart()

    Declaration
    protected override void OnDetachedFromChart()
    Overrides
    SFSeries.OnDetachedFromChart()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved