Class PieSeries
To render a pie chart, create an instance of PieSeries class, and add it to Series collection property and set the required properties.
Inherited Members
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.dll
Syntax
public class PieSeries : CircularSeries, IThemeElement
Remarks
PieSeries requires ItemsSource, XBindingPath and YBindingPath properties to be set to render the chart.
Examples
SfChart chart = new SfChart();
PieSeries series = new PieSeries();
ObservableCollection<ChartDataPoint> Data = new ObservableCollection<ChartDataPoint>
{
new ChartDataPoint("2006",28),
new ChartDataPoint("2007",68),
new ChartDataPoint("2010",38)
};
series.ItemsSource = Data;
chart.Series.Add(series);
Constructors
PieSeries()
Initializes a new instance of the PieSeries class.
Declaration
public PieSeries()