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.

Format number in Y-axis

Thread ID:

Created:

Updated:

Platform:

Replies:

130851 Jun 7,2017 03:04 AM Jun 12,2017 08:37 AM Xamarin.Android 3
loading
Tags: SfChart
Kenny
Asked On June 7, 2017 03:04 AM

I want to ask how to format number just in Y-axis. I need something like this 1,000,000 in Y-axis. Is it possible to format number in just one axis ? 

Saravana Pandian Murugan [Syncfusion]
Replied On June 8, 2017 07:26 AM

 Hi Kenny, 
  
Thanks for using Syncfusion products. 
  
You can achieve this requirement by using LabelFormat property of ChartAxis which will set the format for that particular axis alone. Please find the code snippet below. 
  
Code Example: 
  
 
NumericalAxis secondaryAxis = new NumericalAxis(); 
  
secondaryAxis.LabelStyle.LabelFormat = "#,##0,000"; 
  
chart.SecondaryAxis = secondaryAxis; 
  
  
We have attached sample for your reference which can be downloaded from the below location. 
  
  
Please check the sample and let us know if you need further assistance on this. 
  
Regards, 
Saravana Pandian M. 


Kenny
Replied On June 9, 2017 04:31 AM

Thank you very much Mr. / Ms. Saravana Pandian M. This solve my question.

Saravana Pandian Murugan [Syncfusion]
Replied On June 12, 2017 08:37 AM

Hi Kenny,

Thanks for the update. We are glad to know that the given solution worked. Please let us know if you need further assistance on this.

Regards,
Saravana Pandian M.


CONFIRMATION

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.

;