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.

PrimaryYAxis range

Thread ID:





83425 Jun 25,2009 01:31 AM May 12,2010 08:13 AM ASP.NET Web Forms (Classic) 3
Tags: Chart
Ramaa Davanagere
Asked On June 25, 2009 01:31 AM

How do I set the range for the PrimaryYAxis? The max value on the Y axis varies depending on the total cost value.

If total cost value is something like $1 million, I want the Y Axis range to be like $0, $200,000.00, $400,000.00, $600,000.00, $800,000.00 and $1 million.
If the total cost value is $10 million, I want the Y axis range to be $0, $2million, $4million, $6million, $8million ad $10 million.
If the total cost value is $500,000.00, I want the Y axis range to be $0, $100,000.00, $200,000.00,$300,000.00,$400,000.00 and $500,000.00 and so forth.
I always want it to start from $0 (minimum).
What properties do I need to use to achieve this output? Please help.


Manimala S [Syncfusion]
Replied On June 25, 2009 08:41 AM


We can do this by setting the range for the axis dynamically. I have created a simple sample to do this. Kindly get the sample from the following location.


Kindly, let me know if it helps.


Niclas Haner
Replied On May 12, 2010 06:27 AM

I get a server error when trying to access the example. Is this example still available.

Best regards,


Jaffersathick B [Syncfusion]
Replied On May 12, 2010 08:13 AM

Hi Niclas,

Thank you for using syncfusion products.

We suggest you to set the Range value of the PrimaryXAxis according to the points maximum value to achieve the same.

Please refer the following code snippet:


this.chartControl1.PrimaryXAxis.RangeType = ChartAxisRangeType.Set;
// 0 – starting value.
// 50 – End value.
// 10 - Interval
this.chartControl1.PrimaryXAxis.Range = new MinMaxInfo(0, 50, 10);

Please refer the online sample from the following link:


Please refer the Documentation from the following link:

Let me know if you have any other concerns.



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.