- Home
- Forum
- Xamarin.Forms
- Formatting labels on axes
Formatting labels on axes
Hi Steen,
Thanks for using Syncfusion Products.
We can achieve your requirement by using LabelFormat property of ChartAxis as shown in the below code snippet.
CodeSnippet:
|
[XAML] : <chart:DateTimeAxis.LabelStyle> <chart:ChartAxisLabelStyle LabelFormat = "dd MMM"></chart:ChartAxisLabelStyle> </chart:DateTimeAxis.LabelStyle [C#] : DateTimeAxis dateTimeAxis = new DateTimeAxis(); dateTimeAxis.LabelStyle.LabelFormat = "dd MMM "; |
Please let us know if you require further assistance on this.
Thanks,
Magesh Kumar K
Hi Steen,
We are glad to let you know that we have achieved your requirement by using a
workaround. In this sample, we have written custom renderer for each platform
for formatting individual labels in axis. We will provide this support in
control level in any of our upcoming volume release.
Please find the workaround sample
from the following attachment.
Sample: http://www.syncfusion.com/downloads/support/directtrac/118215/CustomAxisLabelFormat-1084686580.zip
Note: While customizing individual axis labels in custom renderer for
iOS, we faced an error while deploying it to an iPhone device. We have also
fixed that error. Please replace the below attached Syncfusion.SfChart.iOS.dll
in your “../lib/1.3/ios-unified” and “../lib/1.3/ios“paths in order to run the
application on iPhone device.
Dll: http://www.syncfusion.com/downloads/support/directtrac/118215/Xamarian.iOS_Assemblies-83160372.zip
Please let us know if you require further assistance on this.
Thanks,
Magesh Kumar K
We have created incident #135846 on behalf of you for this reported requirement. Our support engineer will assist you through incident under your Direct Trac account. So we request you to follow with the incident for further details.
Our Direct Trac support system can be accessed from the following link:
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let us know if you require further assistance on this.
Thanks,
Magesh Kumar K
We have logged this as a feature request in our database. We will implement this feature in upcoming volume 2 service pack 2 release and it is estimated to be rolled in the end of August, 2016.
- 7 Replies
- 5 Participants
-
SS Steen Steiniche
- Feb 12, 2015 09:25 AM UTC
- Aug 18, 2016 07:08 AM UTC