Class ChartPieType
Represents Pie Chart Type class
Implements
Inherited Members
Namespace: Syncfusion.Windows.Chart
Assembly: Syncfusion.Chart.Wpf.dll
Syntax
public class ChartPieType : ChartType, IDisposable
Remarks
A Pie Chart renders Y values as slices in a pie. These slices are rendered in proportion to the whole which is simply the sum of all the Y values in the series. Consequently, Pie Charts are used to visualize the proportional contribution (in terms of percentage or fraction) of categories of data to the whole data set. The X values in the data series will only be treated as nominal (categorical, qualitative) data. The Pie Chart can display only one DataSeries at a time.
Constructors
ChartPieType()
Declaration
public ChartPieType()
Fields
ExplodedAllProperty
Identifies the ExplodedAll dependency property.
Declaration
public static readonly DependencyProperty ExplodedAllProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ExplodedIndexProperty
Identifies the ExplodedIndex dependency property.
Declaration
public static readonly DependencyProperty ExplodedIndexProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ExplodeRadiusProperty
Identifies the ExplodeRadius dependency property.
Declaration
public static readonly DependencyProperty ExplodeRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PieCoefficientProperty
Identifies the PieCoefficient dependency property.
Declaration
public static readonly DependencyProperty PieCoefficientProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AxesType
Gets axes type that are required for chart to be built.
Declaration
public override ChartAxesType AxesType { get; }
Property Value
Type |
---|
ChartAxesType |
Overrides
Flags
Gets chart type flags. This is a dependency property.
Declaration
protected override ChartType.ChartTypeFlags Flags { get; }
Property Value
Type |
---|
ChartType.ChartTypeFlags |
Overrides
Methods
CalculateSegments(ChartSeries, ChartIndexedDataPoint[])
Calculates the segments.
Declaration
protected override void CalculateSegments(ChartSeries series, ChartIndexedDataPoint[] points)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
Syncfusion.Windows.Chart.ChartIndexedDataPoint[] | points | The points. |
Overrides
CreateAdornments(ChartSeries, ChartIndexedDataPoint[], Double, Double)
Calculates the adornments.
Declaration
protected void CreateAdornments(ChartSeries series, ChartIndexedDataPoint[] points, double sumValues, double coef)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
Syncfusion.Windows.Chart.ChartIndexedDataPoint[] | points | The points. |
System.Double | sumValues | The summary values. |
System.Double | coef | The coefficient. |
CreateSegment(Double, Double, ChartIndexedDataPoint, ChartSeries)
Creates the segment.
Declaration
protected virtual ChartPieSegment CreateSegment(double startAngle, double endAngle, ChartIndexedDataPoint correspondingPoint, ChartSeries series)
Parameters
Type | Name | Description |
---|---|---|
System.Double | startAngle | The start angle. |
System.Double | endAngle | The end angle. |
Syncfusion.Windows.Chart.ChartIndexedDataPoint | correspondingPoint | The corresponding point. |
ChartSeries | series | The series. |
Returns
Type | Description |
---|---|
ChartPieSegment | Returns new ChartPieSegment |
GetExplodedAll(ChartSeries)
Gets the exploded all.
Declaration
public static bool GetExplodedAll(ChartSeries series)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
Returns
Type | Description |
---|---|
System.Boolean | Bool value true to explode all |
GetExplodedIndex(ChartSeries)
Gets the exploded indices.
Declaration
public static int GetExplodedIndex(ChartSeries series)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
Returns
Type | Description |
---|---|
System.Int32 | int exploded index value |
GetExplodeRadius(ChartSeries)
Gets the exploded radius.
Declaration
public static double GetExplodeRadius(ChartSeries series)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
Returns
Type | Description |
---|---|
System.Double | double value explode radius |
GetPieCoefficient(ChartSeries)
Return the double Value from the given DependencyObject
Declaration
public static double GetPieCoefficient(ChartSeries series)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series |
Returns
Type |
---|
System.Double |
IsCompatible(ChartType)
Determines whether the this type is compatible with specified type.
Declaration
public override bool IsCompatible(ChartType type)
Parameters
Type | Name | Description |
---|---|---|
ChartType | type | The type value. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
SetExplodedAll(ChartSeries, Boolean)
Sets the exploded all.
Declaration
public static void SetExplodedAll(ChartSeries series, bool value)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
System.Boolean | value | if set to |
SetExplodedIndex(ChartSeries, Int32)
Sets the exploded indices.
Declaration
public static void SetExplodedIndex(ChartSeries series, int value)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
System.Int32 | value | The value. |
SetExplodeRadius(ChartSeries, Double)
Sets the exploded radius.
Declaration
public static void SetExplodeRadius(ChartSeries series, double value)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
System.Double | value | The value. |
SetPieCoefficient(ChartSeries, Double)
Set PieCoefficient to the Corresponding DependencyObject from the Given value.
Declaration
public static void SetPieCoefficient(ChartSeries series, double value)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | |
System.Double | value |
ToString()
Returns a System.String that represents the current System.Object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current System.Object. |
Overrides
See Also
UpdateSegments(ChartSeries, ChartIndexedDataPoint[])
Calculates the segments.
Declaration
protected override void UpdateSegments(ChartSeries series, ChartIndexedDataPoint[] points)
Parameters
Type | Name | Description |
---|---|---|
ChartSeries | series | The series. |
Syncfusion.Windows.Chart.ChartIndexedDataPoint[] | points | The points. |