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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LabelFormat of SfChart Axis is not working with "### ### ### ##0.000".

Thread ID:





147952 Sep 29,2019 05:06 AM UTC Oct 7,2019 06:23 AM UTC Xamarin.Forms 5
Tags: SfChart
Nguyen Khoa Lu
Asked On September 29, 2019 05:06 AM UTC

It only used ",". When I using space character, it has been error

Muneesh Kumar G [Syncfusion]
Replied On September 30, 2019 06:53 AM UTC

Hi Nguyen, 
Thanks for using Syncfusion products.  
We have analyzed your requirement and would like to explain you that in source level, we have used the DecimalFormat method to format the axis labels. So, given format of yours is not a correct one. Please refer the below link for supportable labels formats in android.  
Reference link –  
Code snippet [C#]: 
    <chart:NumericalAxis > 
            <chart:ChartAxisLabelStyle LabelFormat="###,###.###" /> 
Or please provide the details on how you want to format the labels. Please get back to us for further assistance. 
Muneesh Kumar G. 

Nguyen Khoa Lu
Replied On September 30, 2019 09:37 AM UTC

Thanks for answer, now I want format the number: 123456789 to 123.456.789,00 How to?

Muneesh Kumar G [Syncfusion]
Replied On October 3, 2019 08:58 AM UTC

Hi Nguyen, 
We have analysed your requirement and you can achieve this requirement by modifying the LabelContent in the LabelCreated event of ChartAxis. Please refer the below code. 
Code snippet[XAML]: 
    <chart:NumericalAxis LabelCreated="NumericalAxis_LabelCreated"> 
Code snippet[C#]: 
private void NumericalAxis_LabelCreated(object sender, ChartAxisLabelEventArgs e) 
    double value = Convert.ToDouble(e.LabelContent); 
    e.LabelContent = value.ToString("C", new CultureInfo("vi-VN")); 
Please let us know if you have any other queries.   
Muneesh Kumar G. 

Nguyen Khoa Lu
Replied On October 5, 2019 01:37 AM UTC

Thanks for your answer, I did it 3 day ago. Thanks again!

Hemalatha Marikumar [Syncfusion]
Replied On October 7, 2019 06:23 AM UTC

Hi Nguyen, 
Thanks for your update.  
Please let us know if you need any further assistance. 
Hemalatha M. 


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

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

Live Chat Icon For mobile
Live Chat Icon