Problems resizing window when SetAutomatic(false)

TeeChart for ActiveX, COM and ASP
Post Reply
yvb
Newbie
Newbie
Posts: 18
Joined: Mon Jul 13, 2009 12:00 am

Problems resizing window when SetAutomatic(false)

Post by yvb » Thu Dec 17, 2009 1:36 pm

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

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

Re: Problems resizing window when SetAutomatic(false)

Post by Narcís » Thu Dec 17, 2009 4:25 pm

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!
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