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.
Syncfusion Feedback

Axis Range when IsAutosetRange is set

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,
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
http://help.syncfusion.com/ug_72_new/chartwpf/ChartAxisRange.html

Please let us know if you have further queries

Regards,
K. Saradha Devi

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.

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

;