Page 1 of 1

Problems resizing window when SetAutomatic(false)

Posted: Thu Dec 17, 2009 1:36 pm
by 15053905
Hi,
I am working with TeeChart Pro 8 ActiveX.

I am setting my own labels and the increment for the left label by myself.
I have 11 labels on the axis.
For this to be effective so I can see in the chart the text I assigned to the labels I realized that I must have in my code:

m_Chart.GetAxis().GetLeft().GetLabels().SetAutomatic(false);

This works fine.
When I resize the window containing the chart to a small size the labels overlap each other and the number of labels shown is not reduced.

Adding the line:
m_Chart.GetAxis().GetLeft().GetLabels().SetSeparation(100);

seems to have no effect. Different values for the separation value make no difference.

The only way to avoid the overlap and reduce the number of displayed labels is to set:
SetAutomatic(false)

But this puts me back in the beginning when I don't see the text that I assined to the labels.

So how can I see my own labels and be able to resize the window without labels overlap?

Thanks

Re: Problems resizing window when SetAutomatic(false)

Posted: Thu Dec 17, 2009 4:25 pm
by narcis
Hi yvb,

Most options available to avoid custom labels overlapping were discussed here. Please notice this is quite a long thread (has several pages) and what you are looking for may not appear in the first posts. However, several possibilities were discussed there and it covers a lot of ground on that area. Also notice this is a TeeChart for .NET thread but same principles apply to other TeeChart versions.

Hope this helps!