Charting for WPF Programmer's Guide

PieSeries.DetachedPiecesList Property

See Also
 


Gets or sets the position of detached pieces.

Namespace: MindFusion.Charting.Wpf
Assembly: Charting

 Syntax

C#  Copy Code

public IList DetachedPiecesList { get; set; }

Visual Basic  Copy Code

Public Property DetachedPiecesList As IList

 Property Value

A list with numbers that correspond to the distance at which the piece is detached. Default value is an empty list.

 Remarks

Use the property to specify which pieces in the pie at what distance should be detached. Put zero-s at the place of the other pieces.

 Example

The following code shows how to detach the third and fifth piece in a pie with 6 values.

C#  Copy Code

series.Data = new double[] { 26, 33, 27, 17, 20, 18 };
series.DetachedPiecesList = new double[] { 0, 0, 10, 0, 20, 0 };

 See Also