Page 1 of 1

Using Titles of Axes

Posted: Wed Jan 05, 2005 4:45 pm
by 8128465
The question is about the following chart.

Image

I would like to be able to vertically align the titles
of the vertical axes, but I can's seem to get this
done.

Another good alternative would be to be able to
relatively position some annotations inside the
chart, but this also does not seem possible.
Can you help me with this ?

Rogier[/img]

Posted: Thu Jan 06, 2005 7:44 am
by Marjan
Hi.
would like to be able to vertically align the titles of the vertical axes, but I can's seem to get this done.
One simple but effective way to do this is to set each chart right axis label and title size to fixed number of pixels:

Code: Select all

      tChart1.Axes.Right.Labels.CustomSize = 60;
      tChart1.Axes.Right.Title.CustomSize = 20;
      tChart2.Axes.Right.Labels.CustomSize = 60;
      tChart2.Axes.Right.Title.CustomSize = 20;
      tChart3.Axes.Right.Labels.CustomSize = 60;
      tChart3.Axes.Right.Title.CustomSize = 20;
Of course, the above code is only a simple example. You could extend this to automatically calculate the longest axis label and then use this value for Labels.CustomSize, ...

Posted: Thu Jan 06, 2005 9:33 am
by 8128465
Thanks!