# Adding and Positioning Labels

## Content



With FlexPie chart, you can configure the arrangement and display properties for data labels depending on what suits your needs the best. By default, the data labels are not displayed on the chart, however, you can enable them by setting the **Position** and **Content** properties of DataLabel class. Here, the **Position** property sets position of the data labels by accepting values from the **PieLabelPosition** enumeration and the **Content** property gets or sets content for the data labels.

The example code below uses the Position and Content properties to enable data labels and set their position.

**xml**

```xml
<c1:C1FlexPie.DataLabel> <c1:PieDataLabel Content="{}{y}" Position="Circular"/>
</c1:C1FlexPie.DataLabel>
```

### Code

```html
flexPie.DataLabel.Content = "{}{y}";
flexPie.DataLabel.Position = C1.Chart.PieLabelPosition.Circular;
```

![](https://cdn.mescius.io/document-site-files/images/8ba28e07-1633-4a6a-9114-13b9f1f04eed/images/flexpie_datalabelposition.png)