# Adding Labels to Pie Charts

## Content



To change the offset for all Pie slices, use the following code

```csharp
chart.DataContext = new double[] { 1, 2, 3 };
      chart.ChartType = ChartType.Pie;
      chart.Loaded += (s, e) => ((BasePieRenderer)chart.Data.Renderer).Offset = 0.1;
```