Category / Section
How to rotate the data marker labels?
1 min read
Data marker’s label can be rotated by setting the angle (in degrees) to the Angle property of DataMarkerLabelStyle.
C#
LineSeries lineSeries = new LineSeries(); lineSeries.DataMarker = new ChartDataMarker(); lineSeries.DataMarker.LabelStyle.Angle = 70;
XAML
<chart:LineSeries.DataMarker> <chart:ChartDataMarker > <chart:ChartDataMarker.LabelStyle> <chart:DataMarkerLabelStyle Angle="70" /> </chart:ChartDataMarker.LabelStyle> </chart:ChartDataMarker> </chart:LineSeries.DataMarker>
Output: