Page 1 of 1

GetAxis().GetBottom().GetLabels().GetItem(0)

Posted: Tue Sep 18, 2007 2:08 pm
by 9532119
I want to read current BottomLabel items and save it into my CString variables.

I use VC++.

m_ctlChart[/img].GetAxis().GetBottom().GetLabels().GetItem(0);
m_ctlChart[/img].GetAxis().GetBottom().GetLabels().GetItem(1);


Is it right?
My chart has some labels in bottom axis.
But my code can NOT find the label item.

Posted: Tue Sep 18, 2007 2:17 pm
by narcis
Hi moeri,

This can also be used when using custom labels as you can see in the example at All Features\Welcome!\Axes\Labels\Custom labels in the features demo, available at TeeChart's program group.

If you are not using custom labels then you can retrieve the labels values at the OnGetAxisLabels or OnGetNextAxisLabel events.