New to Telerik UI for WPF? Start a free 30-day trial

Represents a chart series that visualize data points using arcs that form a pie.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public class PieSeries : ChartSeries, IChartElementPresenter

Inheritance: objectRadControlBasePresenterBaseChartElementPresenterChartSeriesPieSeries...

Derived Classes: DoughnutSeries

Implements: IChartElementPresenter

Inherited Members ChartSeries.SeriesAnimationPropertyChartSeries.PointAnimationPropertyChartSeries.IsSelectedPropertyChartSeries.AllowSelectPropertyChartSeries.TrackBallTemplatePropertyChartSeries.TrackBallInfoTemplatePropertyChartSeries.ItemsSourcePropertyChartSeries.ClipToPlotAreaPropertyChartSeries.DisplayNamePropertyChartSeries.TooltipTemplatePropertyChartSeries.LabelConnectorsSettingsPropertyChartSeries.ShowLabelsPropertyChartSeries.PlaySeriesAnimation()ChartSeries.PlayPointAnimations()ChartSeries.OnPlaySeriesAnimation(bool)ChartSeries.HitTest(Rect)ChartSeries.HitTestDataPoints(Rect)ChartSeries.HitTestElements(Rect)ChartSeries.HitTestElementsCore(Rect)ChartSeries.HitTestDataPointsCore(Rect)ChartSeries.OnVisibilityChanged()ChartSeries.OnDetached(RadChartBase)ChartSeries.GetDataPointLabels(DataPoint)ChartSeries.SeriesAnimationChartSeries.PointAnimationChartSeries.IsSelectedChartSeries.AllowSelectChartSeries.TrackBallTemplateChartSeries.TrackBallInfoTemplateChartSeries.DisplayNameChartSeries.TooltipTemplateChartSeries.ClipToPlotAreaChartSeries.ItemsSourceChartSeries.LabelConnectorsSettingsChartSeries.LabelDefinitionsChartSeries.ShowLabelsChartSeries.SeriesAnimationCompletedChartSeries.PointAnimationsCompletedChartSeries.DataBindingCompleteChartElementPresenter.OnPropertyChanged(DependencyPropertyChangedEventArgs)ChartElementPresenter.ZIndexChartElementPresenter.ChartPresenterBase.InfinitySizePresenterBase.InfinityPointPresenterBase.RefreshNode(ChartNode)PresenterBase.InvalidatePalette()PresenterBase.MeasureNodeOverride(ChartNode, object)PresenterBase.RefreshNodeCore(ChartNode)PresenterBase.CreateContentPresenter(object, DataTemplate)PresenterBase.OnInitialized(EventArgs)PresenterBase.RenderSurfaceRadControlBase.OnUnloaded(object, RoutedEventArgs)RadControlBase.IsLoadedRadControlBase.IsTemplateApplied...

Constructors

Initializes a new instance of the PieSeries class.

C#
public PieSeries()

Fields

DefaultSliceStyleProperty

DependencyProperty

Identifies the DefaultSliceStyle property.

C#
public static readonly DependencyProperty DefaultSliceStyleProperty

LegendSettingsProperty

DependencyProperty

Identifies the LegendSettings property.

C#
public static readonly DependencyProperty LegendSettingsProperty

RadiusFactorProperty

DependencyProperty

Identifies the RadiusFactor property.

C#
public static readonly DependencyProperty RadiusFactorProperty

SelectedPointOffsetProperty

DependencyProperty

Identifies the SelectedPointOffset property.

C#
public static readonly DependencyProperty SelectedPointOffsetProperty

SliceStyleSelectorProperty

DependencyProperty

Identifies the StyleSelector property.

C#
public static readonly DependencyProperty SliceStyleSelectorProperty

ValueBindingProperty

DependencyProperty

Identifies the ValueBinding property.

C#
public static readonly DependencyProperty ValueBindingProperty

Properties

Gets or sets the angle range that define the pie.

C#
public AngleRange AngleRange { get; set; }

Gets the collection of data points associated with the series.

C#
public ElementCollection<PieDataPoint> DataPoints { get; }

Gets or sets the Style instance that defines the default appearance of each Path presenting a pie slice.

C#
public Style DefaultSliceStyle { get; set; }

Gets or sets the string used to format the default label (that is the Percent value) of each data point. Defaults to 'p0'.

C#
public string LabelFormat { get; set; }

Gets or sets the legend settings.

C#
public DataPointLegendSettings LegendSettings { get; set; }

Gets or sets the radius factor used to calculate the radius of the visual series.

C#
public double RadiusFactor { get; set; }
Property Value:

The default value is 1.

This value is usually within the (0,1) range but it is possible to oversize the series by setting a value greater than 1.

Gets or sets the offset applied to a PieDataPoint which is currently selected. This value is applied only if the point's OffsetFromCenter property is 0.

C#
public double SelectedPointOffset { get; set; }

Gets the collection storing a Style instance for each segment present on the chart.

C#
public ObservableCollection<Style> SliceStyles { get; }

SliceStyleSelector

StyleSelector

Gets or sets the StyleSelector instance used to select the appropriate style for a PieDataPoint.

C#
public StyleSelector SliceStyleSelector { get; set; }

Gets or sets the binding that will be used to fill the Value member of the contained data points.

C#
[TypeConverter(typeof(StringToDataPointBindingConverter))]
public DataPointBinding ValueBinding { get; set; }

Methods

Gets the points which build the label connector polyline.

C#
protected override List<Point> GetLabelConnector(ChartSeriesLabelPositionInfo info)
Parameters:infoChartSeriesLabelPositionInfoReturns:

List<Point>

Overrides: ChartSeries.GetLabelConnector(ChartSeriesLabelPositionInfo)

When overridden in a derived class, this method returns the function used to calculate the aggregate values for the Value property.

C#
protected virtual ChartAggregateFunction GetValueAggregateFunction()
Returns:

ChartAggregateFunction

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

C#
public override void OnApplyTemplate()

Overrides: ChartSeries.OnApplyTemplate()

Occurs when the presenter has been successfully attached to its owning RadChartBase instance.

C#
protected override void OnAttached()

Overrides: ChartSeries.OnAttached()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Occurs when a System.Windows.FrameworkElement has been constructed and added to the object tree.

C#
protected override void OnLoaded(object sender, RoutedEventArgs e)
Parameters:senderobjecteRoutedEventArgs

Overrides: ChartSeries.OnLoaded(object, RoutedEventArgs)

Invoked when an unhandled attached event is raised on this element. Implement this method to add class handling for this event.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs that contains the event data.

Invoked when an unhandled attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs that contains the event data.

Fired when Point animations are about to be played.

C#
protected override void OnPlayPointAnimations(bool hidePointsOnLoad)
Parameters:hidePointsOnLoadbool

When true, the animated element is collapsed until the start of the animation.

Overrides: ChartSeries.OnPlayPointAnimations(bool)