Skip to main content
A newer version of this page is available. .

PieSeriesLabel Class

Stores pie series label settings.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

Declaration

public class PieSeriesLabel :
    SeriesLabel

The following members return PieSeriesLabel objects:

Remarks

Series Point Labels (or series labels, for short) are used to identify particular data points within a series.

Series labels are hidden by default. To display them on a pie chart, create a PieSeriesLabel object and assign it to the PieSeries.Label property. The PieSeriesLabel class provides a set of properties you can use to specify label position and appearance:

  • Position - Specifies whether series labels should be displayed inside pie segments, or they should be pained outside a pie chart and organized into two columns.
  • Indent - Specifies the distance between the edge of a pie segment and its label.
  • TextPattern - Specifies the text pattern for series labels.
  • Style - Allows you to customize label appearance.

Example

This example demonstrates how to add labels to pie chart segments, customize the text pattern, layout and appearance of series labels.

<dxc:PieChartView>
    <dxc:PieChartView.Series>
            <dxc:PieSeries>
              <dxc:PieSeries.Label>
                  <dxc:PieSeriesLabel Position="TwoColums" TextPattern="{}{VP}%" Indent="20">
                      <dxc:PieSeriesLabel.Style>
                          <dxc:PieSeriesLabelStyle ConnectorThickness="2">
                              <dxc:PieSeriesLabelStyle.TextStyle>
                                  <dxc:TextStyle Color="DarkBlue" Size="20"/>
                              </dxc:PieSeriesLabelStyle.TextStyle>
                          </dxc:PieSeriesLabelStyle>
                      </dxc:PieSeriesLabel.Style>
                  </dxc:PieSeriesLabel>
              </dxc:PieSeries.Label>
        </dxc:PieSeries>
    </dxc:PieChartView.Series>
</dxc:PieChartView>

Pie Series Labels

Inheritance

Object
Xamarin.Forms.BindableObject
See Also