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 axis

Thread ID:





84602 Jul 1,2009 01:37 PM UTC Oct 20,2010 07:26 AM UTC WinForms 6
Tags: Chart
Paul Wallace
Asked On July 1, 2009 01:37 PM UTC

I have a chart with 4 series, each with their own Y axis - each series is a different measurement. I use the legend tick boxes to show or hide individual series and allow the user to select whether the y axes are SideBySide or Stacked.

I use the LegendItem CheckedChanged event to hide the series' axis when the series is hidden, using the code below:

private void chartControl_LegendItem_CheckedChanged(object sender, EventArgs e)
for (int i = 0 ; i < _chart.Legend.Items.Length ; i++)
_chart.Series[i].YAxis.IsVisible = _chart.Legend.Items[i].IsChecked;

However, when a series, and its axis is hidden, a blank area is left, as shown in the attached image.

I have two questions:

1) How can I hide the blank area?
2) Is it possible to adjust how much vertical space (percentage?) is taken by each axis when they are shown SideBySide? Or is it a fixed percentage, i.e. 4 axes = 25% per axis.



Manimala S [Syncfusion]
Replied On July 2, 2009 09:22 AM UTC

Hi Paul,

Thanks for using Essential Chart.

We can set the vertical spacing for the axis using the "RealLength" property of the axis. Here is the Code snippet.

axis.AutoSize = false;
axis.RealLength = ((int)(axis.Range.Delta / axis.Range.Interval) * 25);

And for removing empty space, sorry currently we don't have a direct property to remove the empty space, if any of the axis is removed in multiple axis. But we have a workaround to achieve this with the help of "RealLength" property of the axis.

I have created a sample to demonstrate this. Kindly, get the sample from the following link.


Kindly let me know if it works.


Paul Wallace
Replied On July 2, 2009 12:50 PM UTC

Yes, that helped me do what I wanted.


Palak Jain
Replied On March 18, 2010 02:31 PM UTC

I am doing the same thing. Can I have a look at the sample?


Jaffersathick B [Syncfusion]
Replied On March 24, 2010 06:07 AM UTC

Hi Palak Jain,

Thank you for your interest in Syncfusion products.

Sorry for the delay in getting back to you. We will have a follow up of for this forum in the Direct Trac incident id #66081.


Dennis Kuhn
Replied On October 19, 2010 08:01 PM UTC

Hello, I have the same Problem, can you please send me your sample?

Vijayabharathi K [Syncfusion]
Replied On October 20, 2010 07:26 AM UTC

Hi Dennis,

Thank you for your interest in Syncfusion products.

Please find the sample attached, which demonstrate the Multiple Y-axis with legend checkbox quires.

Let me know if you have any other concerns.

Vijayabharathi K



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

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