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

axis ranges

Thread ID:





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

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 30, 2007 12:40 AM UTC

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.


Brandon Erickson
Replied On August 30, 2007 02:03 PM UTC

thank you, that worked :)

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

Hi Brandon,

Thank you for the update. Please let me know if you have any further 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

This page will automatically be redirected to the 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