# Rotating Data Labels

## Content



To rotate a datalabel for example to 90 degrees, use the following code:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
dataSeries.DataLabel.Style.Rotation = RotationEnum.Rotate90
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
dataSeries.DataLabel.Style.Rotation = RotationEnum.Rotate90;
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Displaying the Data Label as a Percent in Pie Charts](/componentone/docs/win/online-chart2d/chartforwinformstask/displayingthedatalab)