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.

Axis Range when IsAutosetRange is set

Thread ID:





83401 Jun 24,2009 10:58 PM Jun 25,2009 05:19 AM WPF 1
Tags: Chart
Hemanth Javali
Asked On June 24, 2009 10:58 PM

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 05:19 AM

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.

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.