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

side-by-side Y axes

Thread ID:





62977 Jun 26,2007 03:48 PM UTC Jul 17,2007 04:55 AM UTC WinForms 5
Tags: Chart
Kamen Yotov
Asked On June 26, 2007 03:48 PM UTC

if i add a second y axis and set the layout mode of the y axes to side-by-side, the primary axis appears below the added (secondary) axis.

is there an easy way to reverse that (i.e. to make the primary axis appear on top)?

Rashidha F [Syncfusion]
Replied On June 27, 2007 11:50 AM UTC

Hi Kamen,

Thanks for using Syncfusion Project.

If your intention is to display the Primary axes at top means, please use Axes location and size properties in the chartcontrol.

The following code which illustrates how to change the Axes location and size in chartControl.

this.chartControl1.PrimaryYAxis.AutoSize = false;
this.chartControl1.PrimaryYAxis.Size = new SizeF(0, (this.chartControl1.ChartArea.RenderBounds.Height / 4 - this.chartControl1.ChartArea.RenderBounds.Height / 12));
this.chartControl1.PrimaryYAxis.LocationType = ChartAxisLocationType.Set;
this.chartControl1.PrimaryYAxis.Location = new PointF(this.chartControl1.PrimaryXAxis.Location.X-30, (this.chartControl1.ChartArea.RenderBounds.Bottom -323));

Please let me know if this helps.

Thanks and Regards,

Kamen Yotov
Replied On June 28, 2007 02:27 PM UTC

this seems to assume that you know how big the chart is... i am looking for a more general switch.

Rashidha F [Syncfusion]
Replied On June 29, 2007 01:24 AM UTC

Hi Kamen,

Thanks for using syncfusion products.

I am afraid that this feature is not currently supported by Essential Chart. Thanks for suggesting this valuable feature of "Add support to display primary y-axis at top in chartContol" to enhance our product. We have logged it as a feature request and notified our development team.

We will implement this feature in our forthcoming new version releases or service pack releases. We usually have a timeframe of at least three months between releases. The feature implementation would also greatly depend on the factors like product design, code compatibility and complexity. We will get back to you once the feature is implemented.

Thank you for your patience.


Kamen Yotov
Replied On July 17, 2007 03:57 AM UTC

It seems that if I remove the axes from the chart and then add them in the order I want them to appear it works fine.

This is a good work-around of the problem, which does not require source code changes on your part. I am including it here just as a benefit of others who might ask this question in the future.

Rashidha F [Syncfusion]
Replied On July 17, 2007 04:55 AM UTC

Hi Kamen,

Thanks for the update.

Glad to hear that this requirement has been achieved on your side.

Thank you for your continued interest in Syncfusion products.



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