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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Axis Range when IsAutosetRange is set

Thread ID:





83401 Jun 25,2009 02:58 AM UTC Jun 25,2009 09:19 AM UTC WPF 1
Tags: Chart
Hemanth Javali
Asked On June 25, 2009 02:58 AM UTC

Is there any way to get the axis ranges the chart uses when "IsAutoSetRange" is set. Axis.Range for both primary and secondary axes are NAN when IsAutosetRange is set.I would like to get the ranges programmatically. Any ideas?

Administrator [Syncfusion]
Replied On June 25, 2009 09:19 AM UTC

Hi Hemanth,

Thanks for using Syncfusion Products.

To get the axis range when AutoSetRange is true, you could use the axis.VisibleRange property.

Please refer to the code snippet given below

DoubleRange range = this.Chart1.Areas[0].PrimaryAxis.VisibleRange;
MessageBox.Show("Start " + range.Start.ToString() +", "+ "End " + range.End.ToString());

To know more about RangeSettings please refer to our online documentation from the below given link

Please let us know if you have further queries

K. Saradha Devi


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.

Please sign in to access our forum

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

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