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
Position of Custom-Axis (TeeChart 8.0.0.3)
-
- Newbie
- Posts: 9
- Joined: Tue Nov 15, 2005 5:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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 |
Instructions - How to post in this forum |