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.
Sample: https://www.syncfusion.com/downloads/support/forum/149572/ze/149572_AxisLabelClicked-1693113970.zip
Please
refer below UG link to know more about axis label customization.
https://help.syncfusion.com/xamarin-android/sfchart/axis#label-customization
Please
let us know if need any further assistance.
Regards,
Hemalatha
M.