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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LabelFormat string inconsistent across platforms

Thread ID:





117618 Nov 17,2014 03:04 PM UTC Nov 18,2014 06:53 AM UTC Xamarin.Forms 1
Tags: SfChart
Steen Steiniche
Asked On November 17, 2014 03:04 PM UTC

When using the LabelStyle.LabelFormat string to format values in chart labels, the result is not consistent across platforms. For example, I have tried the following:

ChartDataMarker dataMarker = new ChartDataMarker();
dataMarker.LabelStyle.LabelFormat = "N1"

On Windows Phone, a value of, say, 16.4993 gives the result "16.5". On Android, however, the result is "N16". I have not tried on iOS.

What format strings must I use to have a consistent output across platforms?


Suresh B [Syncfusion]
Replied On November 18, 2014 06:53 AM UTC

Hi Steen,

We have analyzed your requirement and you can achieve this by using the below code snippet to set the consistent LabelFormat for all the platform.

Code snippet [C#]:

Label Format:
dataMarker.LabelStyle.LabelFormat = "#,###.##";

We have prepared a sample based on this. Please find the sample in the following location.


Please let us know if you require further assistance on this.

Suresh B


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

or the page will be automatically redirected to 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