Page 1 of 1

[Solved] Custom Axis labels

Posted: Fri Mar 24, 2006 2:14 pm
by 9345036
I have a fastline which represents values over a time axis. Time axis is the bottom axis and represents time values relative to the start time. Additionally I would like to draw absolute daytime to the top axis at the same X position, where the bottom axis is labelled.

To do so I save for every point the curent daytime as a label. For TeeChart 4 I was able to utilize GetAxisLabel() to print the labels to the top axis. The event was fired every time a label was drawn. I filtered for bottom axis and got an event every time when a bottom label was drawn. Then I took the label from the series point and placed a label for the top axis by DrawAxisLabel().

With TeeChart 7 GetAxisLabel() seems to be fired every time, when I add a series point, not only when a label is drawn. Now it is impossible for me to filter events, when really the bottom axis is labelled.

What can I do?

Posted: Fri Mar 24, 2006 2:38 pm
by narcis
Hi to2,

Try using GetNextAxisLabel event.

Posted: Fri Mar 24, 2006 4:02 pm
by 9345036
Well it ist possible to use GetAxisLabel(), but it is important to set Axis->LabelStyle to "Value" before.