2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
In SfChart, you can format the axis labels using the LabelFormat property of the respective axis. This will format all the labels in an axis with the same format. Suppose, if you want to format each label in an axis with different format, this can be done in LabelCreated event. This event will be fired once for each label of that axis. You can get the current label’s content using the LabelContent property in the event argument and format the label and assign the formatted content to the LabelContent property itself. In the following code example, the first label of each month in the DateTimeAxis is formatted with month format and other labels in the same month are formatted with day format. C#
XAML
[C#]
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/CustomAxisLabel1047363945.zip
Output: |
2X faster development
The ultimate Xamarin UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.