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.

Secondary axis interval

Thread ID:

Created:

Updated:

Platform:

Replies:

127786 Dec 8,2016 12:01 PM Dec 9,2016 07:27 AM Xamarin.Android 1
loading
Tags: SfChart
Martin Dusek
Asked On December 8, 2016 12:01 PM

Hi,
I have a chart where interval on secondary axis is too small (too dense). I can't tell absolute value of the interval I want, because I plot temperature and sometimes plotted range is 1 °C and sometimes it is 100 °C. I just want to have interval on secondary axis of half density what it is now. Is it possible?

Also, is it possible to display labels on secondary axis with same precision. Now labels on secondary axis are e.g. 1   .95    .9     .85 and I want 1.00 0.95 0.90 0.85.

Thanks for help.

Martin

Parthiban Sundaram [Syncfusion]
Replied On December 9, 2016 07:27 AM

Hi Martin,

Thanks for using Syncfusion products.

Query 1:

You can achieve this requirement using “MaximumLabels” property as per the following code snippet.  
  
yAxis.MaximumLabels = 2;   
 
 
Maximum Labels: By default, a maximum of 3 labels are displayed for each 100 pixels in axis. The maximum number of labels that should be present within 100 pixels’ length can be customized using the MaximumLabels property of an axis. This property is applicable only for automatic range calculation and it will not work if you set the value for an Interval property of an axis.

Please refer the following link for more details.

Link: https://help.syncfusion.com/xamarin/sfchart/axis#common-axis-features  
Query 2:  
You can achieve this requirement using “LabelFormat” property as per the following code snippet. 
  
yAxis.LabelStyle.LabelFormat = "0.00";   
 
  
We have also prepared a sample based on your recruitment. Please download the sample from following location.  
Regards,
Parthiban S

 
  
  


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.

;