PieSeries
Represents a pie chart series that displays data as segments of a circular pie, where each segment represents a data point's proportional value.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class PieSeries : ChartSeries, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IShapedElement, IChartSeries, IChartElementPresenter, IAxisProvider
Inheritance: objectDisposableObjectRadObjectUIChartElementChartSeriesPieSeries...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the PieSeries class.
public PieSeries()
Initializes a new instance of the PieSeries class with the specified value and legend title members.
Fields
Identifies the LabelMode dependency property.
public static readonly RadProperty LabelModeProperty
Identifies the LabelsOffsetFromCenter dependency property.
public static readonly RadProperty LabelsOffsetFromCenterProperty
Identifies the RadiusFactor dependency property.
public static readonly RadProperty RadiusFactorProperty
Properties
Gets or sets the label positioning mode for the pie chart labels.
public PieLabelModes LabelMode { get; set; }
Gets or sets the distance multiplier that determines how far labels are positioned from the center of the pie.
public float LabelsOffsetFromCenter { get; set; }
Gets or sets the name of the data source property that provides legend titles for the pie segments.
[Browsable(true)]
public string LegendTitleMember { get; set; }
Gets the data model that represents the pie series structure and behavior.
public override ChartSeriesModel Model { get; }
Overrides:
Gets or sets a multiplier that determines the final radius of the pie chart relative to its default size.
public float RadiusFactor { get; set; }
Gets or sets the angular range that defines the starting and sweep angles of the pie chart.
public AngleRange Range { get; set; }
Gets or sets the name of the data source property that provides values for the pie segments.
[Browsable(true)]
public string ValueMember { get; set; }
Methods
Binds the data members to the appropriate data point properties.
protected override void BindMembers()
Overrides:
Creates the data model for the pie series and initializes the data point collection.
protected override ChartDataPointCollection CreateModel()
A ChartDataPointCollection containing the pie data points.
Overrides:
Creates a visual element for the specified pie data point.
protected override DataPointElement CreatePointElement(DataPoint point)
The data point for which to create the visual element.
Returns:A DataPointElement representing the pie segment.
Overrides:
Releases the managed resources used by the pie series.
protected override void DisposeManagedResources()
Overrides:
Gets the palette entry for the pie segment at the specified index.
public PaletteEntry GetPieSegmentColors(int i)
The index of the pie segment.
Returns:A PaletteEntry containing the colors for the segment, or null if no palette is available.
Applies the current palette to all pie point elements, setting their background and border colors.
protected override void OnApplyPalette()
Overrides:
Called when the series is attached to a parent chart element.
protected override void OnAttached(UIChartElement parent)
The parent chart element, which must be a PieArea.
Overrides:
Called when the series is detached from its parent chart element.
protected override void OnDettached()
Overrides:
Raises the property changed event and updates the data model.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the property that changed.
Overrides:
Validates that the specified data point is compatible with this pie series.
protected override void ValidatePoint(DataPoint item)
The data point to validate.
Overrides: