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.

Lining up charts

Thread ID:

Created:

Updated:

Platform:

Replies:

82116 Jun 2,2009 02:56 PM Jun 8,2009 05:29 AM Windows Forms 3
loading
Tags: Chart
Peggy Giegucz
Asked On June 2, 2009 02:56 PM

I have several charts on a table layout panel that is 1 column by N-rows.

The Y axis of one chart may go from 0-9. The next chart's Y-axis 0-20000.

I need the Y axes of all the charts to line up since the X-axes all represent the same time period.

I can set the ChartAxis.Format to be 00000.00 and they'll line up, but 00100.00 looks bad. #####.00 doesn't seem to help.

I've tried changing PrimaryYAxis.Rectangle as well, but that didn't help either.


Manimala S [Syncfusion]
Replied On June 3, 2009 09:35 AM

Hi Peggy,

To avoid 00100.00 format, just check a condition before assigning the fomat. That is if the value is <100 then assign format as ##.00 and if it is greater than 100 and less than 2000 assign as ###.00. This will align the axis in the same line as well as it will change the format 00100.00.

Kindly, let me know if it helps.

Thanks,
Manimala.

Peggy Giegucz
Replied On June 3, 2009 09:54 AM

OK, but that doesn't fix my bigger problem.

I need to vertically line up multiple charts that have a variety of scales. When they are on the screen, I need the Y-axes to line up.

I've posted an image at http://www.montrosehillsystems.com/plot.jpg that shows the problem.

Manimala S [Syncfusion]
Replied On June 8, 2009 05:29 AM

Hi Peggy,

Thanks for using Essential Chart.

The aligning of the Y-Axis depends on the ChartAreaMargins property of the axis. But in version 4.4.0.51 ChartAreaMargins property is read only and hence we cannot assign values to that at run time. But in latest version it works fine.

I have created a sample in version 7.2.0.20 to demonstrate this.

Kindly, get the sample from the following location.

Sample File

Kindly, upgrade to the latest version 7.2.0.20 from the following link:

http://www.syncfusion.com/downloads/latest-version

Unlock key:

If your Essential Studio license is valid, you will be able to obtain the key to install this version from your Direct-Trac account. For more help on unlock key kindly, contact your Syncfusion Sales Representative or e-mail salessupport@syncfusion.com.

Kindly, let me know if you have any other queries.

Thanks,
Manimala.

CONFIRMATION

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.

;