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

Regarding x axis

Thread ID:





75112 Jul 14,2008 07:41 AM UTC Aug 12,2008 09:20 AM UTC WinForms 1
Tags: Chart
Administrator [Syncfusion]
Asked On July 14, 2008 07:41 AM UTC

I want to set the following X axis scale settings exactly as it is done in MS excel

(1) Category (Y) axis crosses at category number

(2) Number of categories between tick mark labels

(3) Number of categories between tick marks

(4) Value (Y) axis crosses between categories

Plz reply as soon as possible.

Thanks and regards,

J.Nagarajan [Syncfusion]
Replied On August 12, 2008 09:20 AM UTC

Hi Uttreja ,

Sorry for the delay in getting back to you.

You have to set the custom location of the PrimaryXAxis in the LayoutCompleted event, so that the Xaxis should cross the Yaxis value. Please refer to the below code snippet.

this.chartControl1.LayoutCompleted += new EventHandler(chartControl1_LayoutCompleted);
void chartControl1_LayoutCompleted(object sender, EventArgs e)
chartControl1.PrimaryYAxis.Range = new MinMaxInfo(0, 600, 100);
float AxisPosition = this.chartControl1.PrimaryYAxis.GetCoordinateFromValue(updatedAxisPsotion);
chartControl1.PrimaryXAxis.Location = new PointF(chartControl1.PrimaryXAxis.Location.X, AxisPosition);

Here is the working sample.


Please refer to the sample and let me know if this helps.

Currently our chart control does not allow the user to set the number of categories between the tick marks and tick mark labels. We have logged a feature request in this regard and forwarded this to our development team for more analysis. I will get back to you with time frame for this feature on or before 18th August, 2008.

Thanks for your patience.



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