Articles in this section
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:

 

Macintosh HD:Users:syncfusionChart:svn:WorkArea:SFChart.Xamarin:Document:KB:DataMarkerAngle:labelAngle.png

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied