Class
PieSeries

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

Definition

Namespace:Telerik.UI.Xaml.Controls.Chart

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class PieSeries : ChartSeries, IChartSeries, IChartElementPresenter, IElementPresenter

Inheritance: objectRadControlPresenterBaseChartElementPresenterChartSeriesPieSeries

Derived Classes: DoughnutSeries

Implements: IChartElementPresenterIChartSeriesIElementPresenter

Inherited Members ChartSeries.IsSelectedPropertyChartSeries.AllowSelectPropertyChartSeries.ShowLabelsPropertyChartSeries.ItemsSourcePropertyChartSeries.ClipToPlotAreaPropertyChartSeries.IsSelectedBindingPropertyChartSeries.PaletteIndexPropertyChartSeries.HitTest(Rect)ChartSeries.HitTestDataPoints(Rect)ChartSeries.HitTestElementsCore(Rect, bool, bool)ChartSeries.SelectRectPoints(ref Rect)ChartSeries.HitTestDataPointsCore(Rect)ChartSeries.GetDataPointLabels(DataPoint)ChartSeries.ApplyTemplateCore()ChartSeries.OnTemplateApplied()ChartSeries.OnAttached()ChartSeries.OnDetached(RadChartBase)ChartSeries.IsSelectedChartSeries.AllowSelectChartSeries.PaletteIndexChartSeries.LabelDefinitionsChartSeries.IsSelectedBindingChartSeries.ShowLabelsChartSeries.DisplayNameChartSeries.ClipToPlotAreaChartSeries.ItemsSourceChartSeries.ActualPaletteIndexChartSeries.DataBindingCompleteChartElementPresenter.ZIndexChartElementPresenter.ChartPresenterBase.InfinitySizePresenterBase.InfinityPointPresenterBase.RefreshNode(object)PresenterBase.InvalidatePalette()PresenterBase.MeasureNodeOverride(Node, object)PresenterBase.RefreshNodeCore(Node)PresenterBase.CreateContentPresenter(object, DataTemplate)PresenterBase.RenderSurfacePresenterBase.CompositorPresenterBase.ContainerVisualRootRadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.OnApplyTemplate()RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

PieSeries()

Initializes a new instance of the PieSeries class.

Declaration

cs-api-definition
public PieSeries()

Fields

AngleRangeProperty

Identifies the AngleRange property.

Declaration

cs-api-definition
public static readonly DependencyProperty AngleRangeProperty

Field Value

DependencyProperty

DefaultSegmentStyleProperty

Identifies the DefaultSegmentStyle property.

Declaration

cs-api-definition
public static readonly DependencyProperty DefaultSegmentStyleProperty

Field Value

DependencyProperty

HighlightBrushProperty

Identifies the HighlightBrush property.

Declaration

cs-api-definition
public static readonly DependencyProperty HighlightBrushProperty

Field Value

DependencyProperty

HighlightInnerRadiusFactorProperty

Identifies the HighlightInnerRadiusFactor property.

Declaration

cs-api-definition
public static readonly DependencyProperty HighlightInnerRadiusFactorProperty

Field Value

DependencyProperty

IsVisibleInLegendBindingProperty

Identifies the IsVisibleInLegendBinding property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsVisibleInLegendBindingProperty

Field Value

DependencyProperty

LegendTitleBindingProperty

Identifies the LegendTitleBinding property.

Declaration

cs-api-definition
public static readonly DependencyProperty LegendTitleBindingProperty

Field Value

DependencyProperty

RadiusFactorProperty

Identifies the RadiusFactor property.

Declaration

cs-api-definition
public static readonly DependencyProperty RadiusFactorProperty

Field Value

DependencyProperty

SegmentStyleSelectorProperty

Identifies the SegmentStyleSelector property.

Declaration

cs-api-definition
public static readonly DependencyProperty SegmentStyleSelectorProperty

Field Value

DependencyProperty

SelectedPointOffsetProperty

Identifies the SelectedPointOffset property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedPointOffsetProperty

Field Value

DependencyProperty

ValueBindingProperty

Identifies the ValueBinding property.

Declaration

cs-api-definition
public static readonly DependencyProperty ValueBindingProperty

Field Value

DependencyProperty

Properties

AngleRange

Gets or sets the angle range that define the pie.

Declaration

cs-api-definition
public AngleRange AngleRange { get; set; }

Property Value

AngleRange

DataPoints

Gets the collection of data points associated with the series.

Declaration

cs-api-definition
public ElementCollection<PieDataPoint> DataPoints { get; }

Property Value

ElementCollection<PieDataPoint>

DefaultSegmentStyle

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

Declaration

cs-api-definition
public Style DefaultSegmentStyle { get; set; }

Property Value

Style

HighlightBrush

Gets or sets the brush used to render the semi-filled ellipse over the series.

Declaration

cs-api-definition
public Brush HighlightBrush { get; set; }

Property Value

Brush

HighlightInnerRadiusFactor

Gets or sets the scale ([0,1]) that defines the radius of the overlay UI that represents the highlight effect of the series.

Declaration

cs-api-definition
public double HighlightInnerRadiusFactor { get; set; }

Property Value

double

IsVisibleInLegendBinding

Gets or sets the binding that will be used by any attached legend whether to add the item in the legend.

Declaration

cs-api-definition
public DataPointBinding IsVisibleInLegendBinding { get; set; }

Property Value

DataPointBinding

LegendTitleBinding

Gets or sets the binding that will be used by any attached legend to display legend item title.

Declaration

cs-api-definition
public DataPointBinding LegendTitleBinding { get; set; }

Property Value

DataPointBinding

RadiusFactor

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

Declaration

cs-api-definition
public double RadiusFactor { get; set; }

Property Value

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.

SegmentStyleSelector

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

Declaration

cs-api-definition
public StyleSelector SegmentStyleSelector { get; set; }

Property Value

StyleSelector

SegmentStyles

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

Declaration

cs-api-definition
public ObservableCollection<Style> SegmentStyles { get; }

Property Value

ObservableCollection<Style>

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

cs-api-definition
public double SelectedPointOffset { get; set; }

Property Value

double

ValueBinding

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

Declaration

cs-api-definition
public DataPointBinding ValueBinding { get; set; }

Property Value

DataPointBinding

Methods

HitTestDataPointsCore(Rect, bool)

Performs the core logic behind the HitTestDataPoints method.

Declaration

cs-api-definition
protected override IEnumerable<DataPoint> HitTestDataPointsCore(Rect touchRect, bool includeAllDataPoints)

Parameters

touchRect

Rect

The touch rectangle.

includeAllDataPoints

bool

True to return all data points in the touch rectangle.

Returns

IEnumerable<DataPoint>

Overrides ChartSeries.HitTestDataPointsCore(Rect, bool)

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides ChartSeries.OnCreateAutomationPeer()