Back to Devexpress

PieSeries.LabelPosition Attached Property

wpf-devexpress-dot-xpf-dot-charts-dot-pieseries-b0cca489.md

latest3.2 KB
Original Source

PieSeries.LabelPosition Attached Property

Gets or sets the label’s position in reference to the 2D Pie (Donut) and 3D Pie (Donut) series point’s slice.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

See GetLabelPosition(SeriesLabel) and SetLabelPosition(SeriesLabel, PieLabelPosition).

Returns

TypeDescription
PieLabelPosition

A PieLabelPosition enumeration value that defines the label position.

|

Example

The following example shows how to position a pie series’s labels in two columns.

xaml
<dxc:PieSeries2D DataSource="{Binding Path=Data}" 
                 ValueDataMember="Value" 
                 ArgumentDataMember="Argument"
                 LabelsVisibility="True">                
    <dxc:PieSeries2D.Label>
        <dxc:SeriesLabel dxc:PieSeries.LabelPosition="TwoColumns"/>
    </dxc:PieSeries2D.Label>
</dxc:PieSeries2D>

The following table lists the API members the code above uses:

MemberDescription
Series.LabelGets or sets the settings of series labels.
SeriesLabelContains settings for series point labels.
Series.LabelsVisibilitySpecifies whether to show labels for a series.
PieSeries.LabelPositionGets or sets the label’s position in reference to the 2D Pie (Donut) and 3D Pie (Donut) series point’s slice.
PieLabelPositionLists the values that are used to specify position of a pie series’s labels.

Use the PieSeries.SetLabelPosition method to specify the pie series label position at runtime.

See Also

PieSeries Class

PieSeries Members

DevExpress.Xpf.Charts Namespace