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

Thousand separator for NumericalAxis

Thread ID:





118749 Apr 7,2015 07:15 AM Apr 8,2015 02:32 AM Xamarin.Forms 1
Tags: SfChart
Danny Goossens
Asked On April 7, 2015 07:15 AM


I want to have a thousand separator for the NumericalAxis (so "5000" should become "5 000", "1234567" should become "1 234 567")
The example from your demo code "$####" is kind of working because it only adds a dolar sign before the number.  
However, the default formats that do work on C# doesn't seem to have any impact on the axis labels:

Attempt 1
             <chart:ChartAxisLabelStyle LabelFormat="0:n0" />
Attempt 2
             <chart:ChartAxisLabelStyle LabelFormat="{0:n0}" />

Can you please provide me an example?

Kind regards

Magesh Kumar Krishnan [Syncfusion]
Replied On April 8, 2015 02:32 AM

Hi Danny,

Thanks for using Syncfusion products.

We are glad to let you know that your requirement can be achieved by using LabelCreated event in ChartAxis.
LabelCreated event can also use to format the individual label in the Axis. We have prepared a sample based on your requirement. Please find the sample in the below location.

Sample: http://www.syncfusion.com/downloads/support/forum/118749/ChartSample_LabelFormat-2131747634.zip

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

Magesh Kumar K


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.

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.