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

Change Range of chart in c#c ode

Thread ID:





95427 Jul 7,2010 04:56 PM UTC Jul 8,2010 05:13 AM UTC Silverlight 1
Tags: Chart
Asked On July 7, 2010 04:56 PM UTC


I have to change the range of the Y axis (min/max) of my chart with the c# code.

When i change the range property of my axis it doesn't change my chart. What do i need to do in order to change my axis range ?

Thank in advance,

have a nice day.

Murugavel P [Syncfusion]
Replied On July 8, 2010 05:13 AM UTC

Hi Pallini Anthony,

The IsAutoSetRange property of Chart Axis control must be set as False to initialize the manual range. The following codes illustrate the manual range initialization in C#.


//Initialize manual Range
chart.Areas[0].SecondaryAxis.IsAutoSetRange = false;
chart.Areas[0].SecondaryAxis.Range = new Syncfusion.Windows.Chart.DoubleRange(0, 100);
chart.Areas[0].SecondaryAxis.Interval = 10d;

I have attached the simple sample based on your requirement. Please let me know if you have any queries.




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