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 ranges

Thread ID:

Created:

Updated:

Platform:

Replies:

67757 Aug 29,2007 11:44 AM Sep 4,2007 07:14 PM ASP.NET Web Forms (Classic) 3
loading
Tags: Chart
Brandon Erickson
Asked On August 29, 2007 11:44 AM

Hello I am using a Histogram chart with the DrawHistogramNormalDistribution property set to true. What I was wondering is, how can I set the ranges on the X and Y axis? As it is now, they change per each amount of data I send it. I would like to have a constant throughout both, or to be able to set it myself.

Any ways I can do this?

Sarathi D [Syncfusion]
Replied On August 29, 2007 08:40 PM

Hi Brandon,

Please use the below code snippet to set the X and Y axis ranges programmatically.

//To set X axis Range
MinMaxInfo mx = new MinMaxInfo(20, 700, 50);
this.chartControl1.PrimaryXAxis.Range = mx;

//To set Y axis Range
MinMaxInfo my= new MinMaxInfo(1, 20, 2);
this.chartControl1.PrimaryYAxis.Range = my;

Please try this and let me know if you have any difficulties.


Regards,
Sarathi

Brandon Erickson
Replied On August 30, 2007 10:03 AM

thank you, that worked :)

Sarathi D [Syncfusion]
Replied On September 4, 2007 07:14 PM

Hi Brandon,

Thank you for the update. Please let me know if you have any further queries.

Regards,
Sarathi

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.

;