Page 1 of 1

Replacing axis.left by custom axis (axes) & positioning

Posted: Mon Nov 12, 2007 3:33 am
by 9643500
Hi TeeChart Team,

I am developing a chart with multiple axes, among which only 1 axis is visible at any time. This is to make the user think that they are viewing just the same axis all the time. However, I am facing a big problem, since my custom axes that I created and show/hide (in addition to having the default axis.left) cannot be positioned exactly at the same location that the axis.left is located.

I don't know what properties or objects to manipulate to achieve this requirement. I have heard people in this forum discuss about "chart rect", "chart inner region", "chart boundary", "chart title", "axis label" etc., but I really need to understand first what they are and the relationship between them. Which one is the outermost, which one contains the others?

Can you please help me understand these concepts, and suggest me a method to locate my axes precisely?


Thank you.
Huy

Posted: Mon Nov 12, 2007 9:21 am
by narcis
Hi Huy,

Basically there's the chart and its ChartRect. The chart is the whole object panel. ChartRect is the area where series are drawn and is delimited by default axes settings.

Also notice that custom axes don't update margins automatically. You may need to set them as well.

For further information on axis please read Tutorial 4 - Axis Control. You'll find the tutorials at TeeChart's program group.