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.

Change Range of chart in c#c ode

Thread ID:

Created:

Updated:

Platform:

Replies:

95427 Jul 7,2010 12:56 PM Jul 8,2010 01:13 AM Silverlight 1
loading
Tags: Chart
Anthony PALLINI
Asked On July 7, 2010 12:56 PM

Hello,

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 01:13 AM

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#.

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.

Thanks,
Murugavel




RangeCustomizeDemo_fc971e4c.zip

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.

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.

;