Position of Custom-Axis (TeeChart 8.0.0.3)

TeeChart for ActiveX, COM and ASP
Post Reply
ipcsystems
Newbie
Newbie
Posts: 9
Joined: Tue Nov 15, 2005 5:00 am

Position of Custom-Axis (TeeChart 8.0.0.3)

Post by ipcsystems » Wed Feb 13, 2008 12:24 pm

Hallo,

I have a TChart with the Left and two Custom Axis on my form. I want that the Size of the Custom Axis are always the same and the size of the Left Axis shoult be changed on Form_Resize.
How can I realize this?

Thanks and greetings from Bavaria/Germany

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Feb 14, 2008 12:45 pm

Hi ipcsystems,

It is difficult to achieve what you request as there's no option for setting axes size, available properties are read-only.

I'll send you an example trying to do something like what you request but the calculations are not perfect and the same should be done for custom axes.

Anyway, we recommend you to use 2 charts for that, one with the axes you don't want to change and the other for the axes that should be resized. Then you could align both chart's bottom axes doing something like this:

Code: Select all

  { align the bottom axis... }
  Chart2.BottomAxis.SetMinMax(Series1.XValues.MinValue,Series1.XValues.MaxValue);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply