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

PrimaryYAxis range

Thread ID:





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

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 12:41 PM UTC


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 10:27 AM UTC

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 12:13 PM UTC

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.

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