FJWMorris Posted April 10, 2008 Report Share Posted April 10, 2008 Hi, I currently have 2 graph controls and I would like to have them so that the y-axis's themselves and not the controls are aligned. I am having issues doing this as the positioning of the y-axis within the controls depends upon the length of the y-axis label. Is there anyway to fix the position of the yaxis within its relative control. I also have an example image available if this would help explain my problem Thanks Quote Link to comment Share on other sites More sharing options...
PDyer Posted April 11, 2008 Report Share Posted April 11, 2008 I am not sure, Do you need to use the same scale for both charts? Have you consider using panes? Please post an image for better idea of what you want to do. Quote Link to comment Share on other sites More sharing options...
FJWMorris Posted April 14, 2008 Author Report Share Posted April 14, 2008 Hi, Hopefully the above image will help explain my problem a bit better. Unfortunately I need to use separate controls for each graph to enable me to resize and move them individually, so using panes is not possible. The x-axis's are all identical for each graph and the viewable sections are all set to the same. The problem seems to stem from the labels on the Y-axis being of different lengths. Thanks, Frederick Quote Link to comment Share on other sites More sharing options...
PDyer Posted April 15, 2008 Report Share Posted April 15, 2008 Chart FX by default uses a "floating" margin which changes depending on the Axis labels. In your case, you may try: Chart1.PlotAreaMargin.Left = 100; Quote Link to comment Share on other sites More sharing options...
FJWMorris Posted April 16, 2008 Author Report Share Posted April 16, 2008 Hi,This bit of code was exactly what I was looking for, it worked perfectly. Many Thanks, Frederick Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.