[Solved] Custom Axis labels
Posted: Fri Mar 24, 2006 2:14 pm
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?
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?