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

How to customize the range of chart axis?

Platform: Xamarin.Forms |
Control: SfChart |
Published Date: May 11, 2015 |
Last Revised Date: March 6, 2018

Essential chart for Xamarin.Forms supports setting custom range for chart axis. By default, an axis range is calculated automatically based on the data source of the chart. You can set the Minimum and Maximum properties of ChartAxis to customize the range. This is not applicable for CategoryAxis. The following code example illustrates this,

 

C#

 

 

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Stephen
Dec 29, 2020

Once you have set the Minimum or Maximum, how do you clear that setting?

Reply
Suyamburaja Jayakumar [Syncfusion]
Dec 30, 2020

Hi Stephen,

You can clear this Minimum and Maximum value by setting double.Nan or Null to this as per below code snippet

C#: axis.Maximum = double.NaN; axis.Minimum = double.NaN; // or axis.Maximum = null; axis.Minimum = null;

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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