Problems resizing window when SetAutomatic(false)
Posted: 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
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