Class PieSeries
Represents a chart series that visualize data points using arcs that form a pie.
Inherited Members
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll
Syntax
public class PieSeries : ChartSeries, IChartElementPresenterWithMargin, IChartSeries, IChartElementPresenter, ISeries
Constructors
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 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 StyleSelector instance used to select the appropriate style for a PieDataPoint.
Declaration
public StyleSelector SliceStyleSelector { get; set; }
Property Value
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
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
OnAttached()
Occurs when the presenter has been successfully attached to its owning RadChartBase instance.
Declaration
protected override void OnAttached()
Overrides
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
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. |