# Smart Labels

Since the official **Q1 2014** release all series exposed by the **RadCartesianChart** and the **RadPieChart** controls support smart labels. The term "smart labels" refers to labels positioned in such a way that they do not overlap one another. This positioning strategy is helpful when the series has large number of data points with visualized labels. You can take advantage of this functionality through the **SmartLabelsStrategy** property of the charting components. It is of type **ChartSmartLabelsStrategyBase** and gets or sets the object that controls the positioning of the labels.

## Using Smart Labels in RadCartesianChart

In order to enable a smart label strategy in a **RadCartesianChart** you can utilize the **ChartSmartLabelsStrategy**.

```XAML
<telerik:RadCartesianChart.SmartLabelsStrategy>
    <telerik:ChartSmartLabelsStrategy />
</telerik:RadCartesianChart.SmartLabelsStrategy>
```

Let's say that you have line series with large number of data points and visualized labels:

![Telerik UI for WPF RadChartView line series with overlapping labels before smart labels are enabled](https://www.telerik.com/products/wpf/documentation/assets/2e89a5ba3fd4d1f30dcb5c34f3d30a5a/radchartview-disabled-smart-labels.png)

As you can see the labels are hard to read in such cases. The smart label strategy is designed to improve the readability of the labels. Once enabled, the labels will be rearranged so that each label is clearly visible.

![Telerik UI for WPF RadChartView line series with rearranged labels after smart labels are enabled](https://www.telerik.com/products/wpf/documentation/assets/2086f1ee6e61883e1c7f3aaff7b0ae46/radchartview-enabled-smart-labels.png)

You can find this feature demonstrated in our [WPFdemos](https://demos.telerik.com/wpf/) ChartView -> SmartLabels example.

## Using Smart Labels in RadPieChart

In order to enable a smart label strategy in a **RadPieChart** you can utilize the **PieChartSmartLabelsStrategy**.

```XAML
<telerik:RadPieChart.SmartLabelsStrategy>
    <telerik:PieChartSmartLabelsStrategy/>
</telerik:RadPieChart.SmartLabelsStrategy>
```

Let's say that you have **PieSeries** with small slices and visualized labels

![Telerik UI for WPF RadPieChart with overlapping labels before smart labels are enabled](https://www.telerik.com/products/wpf/documentation/assets/b42a68e2e389f4dbd6b9691e52c6014e/radchartview-features-smart-labels-disabled.png)

This smart labels strategy exposes the **DisplayMode** property. It is an enumeration of type **PieChartLabelsDisplayMode** and adjusts the positioning algorithm of the labels. It provides the following members:

* **Basic** - this is the default value and it positions the labels inside the **PieSeries** so that they do not overlap one another.
  ![Telerik UI for WPF RadPieChart smart labels positioned inside pie slices with Basic display mode](https://www.telerik.com/products/wpf/documentation/assets/5d6a6441163e8c72d8c91209de4b1a00/radchartview-features-smart-labels-basic.png)

* **Outside** - this value positions the labels outside the slices.
  ![Telerik UI for WPF RadPieChart smart labels positioned outside pie slices](https://www.telerik.com/products/wpf/documentation/assets/0ba4586e940db2f9c32187f7deb6b9fa/radchartview-features-smart-labels-outside.png)

* **Spider** - this value positions the labels outside the slices and aligns them by the first symbol of the labels.
  ![Telerik UI for WPF RadPieChart smart labels aligned by their first character with Spider display mode](https://www.telerik.com/products/wpf/documentation/assets/592243fcd3eb9116ce0450d20f319ac9/radchartview-features-smart-labels-spider.png)

* **SpiderAlignedOutwards** - this value positions the labels outside the slices and aligns them by the last symbol of the labels.
  ![Telerik UI for WPF RadPieChart smart labels aligned by their last character with SpiderAlignedOutwards display mode](https://www.telerik.com/products/wpf/documentation/assets/22d69c0bcb8d037f75f592eeb9e1b3b5/radchartview-features-smart-labels-spider-outside.png)

* **SpiderUnaligned** - this value positions the labels outside the slices and does not align them.
  ![Telerik UI for WPF RadPieChart unaligned smart labels positioned outside pie slices](https://www.telerik.com/products/wpf/documentation/assets/a5f0997d04a3dca762a113d2ce573447/radchartview-features-smart-labels-unaligned.png)

> important In order to visualize the connections between the labels and the corresponding data points, you can take advantage of the **LabelConnectorsSettings** property of the chart series.
