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

LabelFormat string inconsistent across platforms

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?


1 Reply

SB Suresh B Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon