PieSeries
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:
public class PieSeries : ChartSeries, IChartElementPresenter
Inheritance: objectRadControlBasePresenterBaseChartElementPresenterChartSeriesPieSeries...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the PieSeries class.
public PieSeries()
Fields
DefaultSliceStyleProperty
DependencyProperty
Identifies the DefaultSliceStyle property.
public static readonly DependencyProperty DefaultSliceStyleProperty
LegendSettingsProperty
DependencyProperty
Identifies the LegendSettings property.
public static readonly DependencyProperty LegendSettingsProperty
RadiusFactorProperty
DependencyProperty
Identifies the RadiusFactor property.
public static readonly DependencyProperty RadiusFactorProperty
SelectedPointOffsetProperty
DependencyProperty
Identifies the SelectedPointOffset property.
public static readonly DependencyProperty SelectedPointOffsetProperty
SliceStyleSelectorProperty
DependencyProperty
Identifies the StyleSelector property.
public static readonly DependencyProperty SliceStyleSelectorProperty
ValueBindingProperty
DependencyProperty
Identifies the ValueBinding property.
public static readonly DependencyProperty ValueBindingProperty
Properties
Gets or sets the angle range that define the pie.
public AngleRange AngleRange { get; set; }
Gets the collection of data points associated with the series.
public ElementCollection<PieDataPoint> DataPoints { get; }
DefaultSliceStyle
Style
Gets or sets the Style instance that defines the default appearance of each Path presenting a pie slice.
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'.
public string LabelFormat { get; set; }
Gets or sets the legend settings.
public DataPointLegendSettings LegendSettings { get; set; }
Gets or sets the radius factor used to calculate the radius of the visual series.
public double RadiusFactor { get; set; }
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.
public double SelectedPointOffset { get; set; }
Gets the collection storing a Style instance for each segment present on the chart.
public ObservableCollection<Style> SliceStyles { get; }
SliceStyleSelector
StyleSelector
Gets or sets the StyleSelector instance used to select the appropriate style for a PieDataPoint.
public StyleSelector SliceStyleSelector { get; set; }
Gets or sets the binding that will be used to fill the Value member of the contained data points.
[TypeConverter(typeof(StringToDataPointBindingConverter))]
public DataPointBinding ValueBinding { get; set; }
Methods
Gets the points which build the label connector polyline.
protected override List<Point> GetLabelConnector(ChartSeriesLabelPositionInfo info)
List<Point>
Overrides:
When overridden in a derived class, this method returns the function used to calculate the aggregate values for the Value property.
protected virtual ChartAggregateFunction GetValueAggregateFunction()
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.
public override void OnApplyTemplate()
Overrides:
Occurs when the presenter has been successfully attached to its owning RadChartBase instance.
protected override void OnAttached()
Overrides:
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Occurs when a System.Windows.FrameworkElement has been constructed and added to the object tree.
protected override void OnLoaded(object sender, RoutedEventArgs e)
Overrides:
Invoked when an unhandled �attached event is raised on this element. Implement this method to add class handling for this event.
protected override void OnMouseLeave(MouseEventArgs e)
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.
protected override void OnMouseMove(MouseEventArgs e)
The MouseEventArgs that contains the event data.
Fired when Point animations are about to be played.
protected override void OnPlayPointAnimations(bool hidePointsOnLoad)
When true, the animated element is collapsed until the start of the animation.
Overrides: