We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LabelClicked event not firing when LabelRotationAngle is other than 0 degrees

Thread ID:





149572 Dec 1,2019 12:49 AM UTC Dec 2,2019 10:43 AM UTC Xamarin.Forms 1
Tags: SfChart
Asked On December 1, 2019 12:49 AM UTC

If the label is rotated by 45 or 90 degrees, the LabelClicked event is not firing. It seems that the "bounding box" of the label is not rotated with the text so the label is not clickable. This creates an inconsistent user experience in the app when the user expects the label to be clickable, but on the charts where label rotation is necessary to make the text more legible, the expected behavior is missing. 

Hemalatha Marikumar [Syncfusion]
Replied On December 2, 2019 10:43 AM UTC

Hi Dragan,


Greetings from Syncfusion.


We validated your query and were unable to reproduce the reported issue at our end. We suspected that touch was not recognized on the axis label due to its limited size when set the LabelRotationAngle. However, with the help of the ChartAxis’s LabelStyle’s Margin properties, you can resolve this issue as per the code snippet below.


Code Snippet [C#]:


CategoryAxis primaryAxis = new CategoryAxis();

primaryAxis.LabelClicked += PrimaryAxis_LabelClicked;

primaryAxis.LabelRotationAngle = 45;

primaryAxis.LabelStyle.MarginBottom = 8;

primaryAxis.LabelStyle.MarginLeft = 8;

primaryAxis.LabelStyle.MarginTop = 8;

primaryAxis.LabelStyle.MarginRight = 8;

chart1.PrimaryAxis = primaryAxis;



And we have prepared a sample based on your requirement and you can download the sample from the below link.




Please refer below UG link to know more about axis label customization.




Please let us know if need any further assistance.



Hemalatha M.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon