Page 1 of 1

Position of Custom-Axis (TeeChart 8.0.0.3)

Posted: Wed Feb 13, 2008 12:24 pm
by 9529221
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

Posted: Thu Feb 14, 2008 12:45 pm
by narcis
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);