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
close icon

Axis Range when IsAutosetRange is set

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?

1 Reply

AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon