skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PieSeries

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

Inheritance
System.Object
RadControlBase
PresenterBase
ChartElementPresenter
ChartSeries
PieSeries
DoughnutSeries
Inherited Members
ChartSeries.SeriesAnimationProperty
ChartSeries.PointAnimationProperty
ChartSeries.ShowLabelsProperty
ChartSeries.IsSelectedProperty
ChartSeries.AllowSelectProperty
ChartSeries.TrackBallTemplateProperty
ChartSeries.TrackBallInfoTemplateProperty
ChartSeries.ItemsSourceProperty
ChartSeries.ClipToPlotAreaProperty
ChartSeries.DisplayNameProperty
ChartSeries.TooltipTemplateProperty
ChartSeries.LabelConnectorsSettingsProperty
ChartSeries.PlaySeriesAnimation()
ChartSeries.PlayPointAnimations()
ChartSeries.OnPlaySeriesAnimation(Boolean)
ChartSeries.GetDataPointLabels(DataPoint)
ChartSeries.HitTest(Rect)
ChartSeries.HitTestDataPoints(Rect)
ChartSeries.HitTestElements(Rect)
ChartSeries.HitTestElementsCore(Rect)
ChartSeries.HitTestDataPointsCore(Rect)
ChartSeries.OnVisibilityChanged()
ChartSeries.OnDetached(RadChartBase)
ChartSeries.SeriesAnimation
ChartSeries.PointAnimation
ChartSeries.LabelDefinitions
ChartSeries.ShowLabels
ChartSeries.IsSelected
ChartSeries.AllowSelect
ChartSeries.TrackBallTemplate
ChartSeries.TrackBallInfoTemplate
ChartSeries.DisplayName
ChartSeries.TooltipTemplate
ChartSeries.ClipToPlotArea
ChartSeries.ItemsSource
ChartSeries.LabelConnectorsSettings
ChartSeries.SeriesAnimationCompleted
ChartSeries.PointAnimationsCompleted
ChartSeries.DataBindingComplete
ChartElementPresenter.OnPropertyChanged(DependencyPropertyChangedEventArgs)
ChartElementPresenter.ZIndex
ChartElementPresenter.Chart
PresenterBase.InfinitySize
PresenterBase.InfinityPoint
PresenterBase.IChartElementPresenter.MeasureContent(ChartNode, Object)
PresenterBase.IChartElementPresenter.MeasureVisual(ChartNode, RadSize)
PresenterBase.RefreshNode(ChartNode)
PresenterBase.InvalidatePalette()
PresenterBase.MeasureNodeOverride(ChartNode, Object)
PresenterBase.RefreshNodeCore(ChartNode)
PresenterBase.CreateContentPresenter(Object, DataTemplate)
PresenterBase.OnInitialized(EventArgs)
PresenterBase.IChartElementPresenter.IsVisible
PresenterBase.RenderSurface
RadControlBase.OnUnloaded(Object, RoutedEventArgs)
RadControlBase.IsLoaded
RadControlBase.IsTemplateApplied
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll

Syntax

public class PieSeries : ChartSeries, IChartElementPresenterWithMargin, IChartSeries, IChartElementPresenter, ISeries

Constructors

PieSeries()

Initializes a new instance of the PieSeries class.

Declaration
public PieSeries()

Fields

DefaultSliceStyleProperty

Identifies the DefaultSliceStyle property.

Declaration
public static readonly DependencyProperty DefaultSliceStyleProperty
Field Value
System.Windows.DependencyProperty

LegendSettingsProperty

Identifies the LegendSettings property.

Declaration
public static readonly DependencyProperty LegendSettingsProperty
Field Value
System.Windows.DependencyProperty

RadiusFactorProperty

Identifies the RadiusFactor property.

Declaration
public static readonly DependencyProperty RadiusFactorProperty
Field Value
System.Windows.DependencyProperty

SelectedPointOffsetProperty

Identifies the SelectedPointOffset property.

Declaration
public static readonly DependencyProperty SelectedPointOffsetProperty
Field Value
System.Windows.DependencyProperty

SliceStyleSelectorProperty

Identifies the System.Windows.Controls.StyleSelector property.

Declaration
public static readonly DependencyProperty SliceStyleSelectorProperty
Field Value
System.Windows.DependencyProperty

ValueBindingProperty

Identifies the ValueBinding property.

Declaration
public static readonly DependencyProperty ValueBindingProperty
Field Value
System.Windows.DependencyProperty

Properties

AngleRange

Gets or sets the angle range that define the pie.

Declaration
public AngleRange AngleRange { get; set; }
Property Value
AngleRange

DataPoints

Gets the collection of data points associated with the series.

Declaration
public ElementCollection<PieDataPoint> DataPoints { get; }
Property Value
ElementCollection<PieDataPoint>

DefaultSliceStyle

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

Declaration
public Style DefaultSliceStyle { get; set; }
Property Value
System.Windows.Style

LabelFormat

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

Declaration
public string LabelFormat { get; set; }
Property Value
System.String

LegendSettings

Gets or sets the legend settings.

Declaration
public DataPointLegendSettings LegendSettings { get; set; }
Property Value
DataPointLegendSettings

RadiusFactor

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

Declaration
public double RadiusFactor { get; set; }
Property Value
System.Double

The default value is 1.

Remarks

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

SelectedPointOffset

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.

Declaration
public double SelectedPointOffset { get; set; }
Property Value
System.Double

SliceStyles

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

Declaration
public ObservableCollection<Style> SliceStyles { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<System.Windows.Style>

SliceStyleSelector

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

Declaration
public StyleSelector SliceStyleSelector { get; set; }
Property Value
System.Windows.Controls.StyleSelector

ValueBinding

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

Declaration
public DataPointBinding ValueBinding { get; set; }
Property Value
DataPointBinding

Methods

GetLabelConnector(ChartSeriesLabelPositionInfo)

Gets the points which build the label connector polyline.

Declaration
protected override List<Point> GetLabelConnector(ChartSeriesLabelPositionInfo info)
Parameters
ChartSeriesLabelPositionInfo info

Returns
System.Collections.Generic.List<System.Windows.Point>

Overrides
ChartSeries.GetLabelConnector(ChartSeriesLabelPositionInfo)

GetValueAggregateFunction()

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

Declaration
protected virtual ChartAggregateFunction GetValueAggregateFunction()
Returns
ChartAggregateFunction

OnApplyTemplate()

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

Declaration
public override void OnApplyTemplate()
Overrides
ChartSeries.OnApplyTemplate()

OnAttached()

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

Declaration
protected override void OnAttached()
Overrides
ChartSeries.OnAttached()

OnCreateAutomationPeer()

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

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer

The type-specific System.Windows.Automation.Peers.AutomationPeer implementation.

OnLoaded(Object, RoutedEventArgs)

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

Declaration
protected override void OnLoaded(object sender, RoutedEventArgs e)
Parameters
System.Object sender

System.Windows.RoutedEventArgs e

Overrides
ChartSeries.OnLoaded(Object, RoutedEventArgs)

OnMouseLeave(MouseEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.

Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

The System.Windows.Input.MouseEventArgs that contains the event data.

OnMouseMove(MouseEventArgs)

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

Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs e

The System.Windows.Input.MouseEventArgs that contains the event data.

OnPlayPointAnimations(Boolean)

Fired when Point animations are about to be played.

Declaration
protected override void OnPlayPointAnimations(bool hidePointsOnLoad)
Parameters
System.Boolean hidePointsOnLoad

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

Overrides
ChartSeries.OnPlayPointAnimations(Boolean)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.