menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartPieType - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartPieType

    Represents Pie Chart Type class

    Inheritance
    System.Object
    ChartType
    ChartPieType
    ChartDoughnutType
    Implements
    System.IDisposable
    Inherited Members
    ChartType.Calculate(ChartSeries)
    ChartType.CheckFlags(ChartType.ChartTypeFlags)
    ChartType.CreateAdornment(ChartSeries, ChartIndexedDataPoint, Int32)
    ChartType.Dispose()
    ChartType.GetSpacing(ChartArea)
    ChartType.IsIndependent
    ChartType.IsIndexed
    ChartType.IsRotated
    ChartType.IsSideBySide
    ChartType.IsStacked
    ChartType.RequiresAxis
    ChartType.RequiresDataCount
    ChartType.SetSpacing(ChartArea, Double)
    ChartType.SpacingProperty
    ChartType.Update(ChartSeries)
    ChartType.UpdateLastSegments(ChartSeries, ChartIndexedDataPoint[])
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    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
    ChartType.AxesType

    Flags

    Gets chart type flags. This is a dependency property.

    Declaration
    protected override ChartType.ChartTypeFlags Flags { get; }
    Property Value
    Type
    ChartType.ChartTypeFlags
    Overrides
    ChartType.Flags

    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
    ChartType.CalculateSegments(ChartSeries, ChartIndexedDataPoint[])

    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

    true if the type is compatible; otherwise, false.

    Overrides
    ChartType.IsCompatible(ChartType)

    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 true [value].

    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
    System.Object.ToString()
    See Also
    ChartPieType

    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.

    Overrides
    ChartType.UpdateSegments(ChartSeries, ChartIndexedDataPoint[])
    See Also
    ChartPieType

    Implements

    System.IDisposable

    See Also

    ChartPieSegment
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved