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
close icon

Format number in Y-axis

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 ? 

3 Replies

SP Saravana Pandian Murugan Syncfusion Team June 8, 2017 11:26 AM UTC

 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. 



KE Kenny June 9, 2017 08:31 AM UTC

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


SP Saravana Pandian Murugan Syncfusion Team June 12, 2017 12:37 PM UTC

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.


Loader.
Live Chat Icon For mobile
Up arrow icon