Using Titles of Axes

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Rogier
Newbie
Newbie
Posts: 9
Joined: Tue Jan 04, 2005 5:00 am
Contact:

Using Titles of Axes

Post by Rogier » Wed Jan 05, 2005 4:45 pm

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]

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Thu Jan 06, 2005 7:44 am

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, ...
Marjan Slatinek,
http://www.steema.com

Rogier
Newbie
Newbie
Posts: 9
Joined: Tue Jan 04, 2005 5:00 am
Contact:

Post by Rogier » Thu Jan 06, 2005 9:33 am

Thanks!

Post Reply