Page 1 of 1

how to set position relative to the x and y axis of a chart

Posted: Tue Mar 27, 2007 2:47 pm
by 9533281
I am using the TeeChart.ocx from Visual C++ 6.0
and use a AnnotationTool on a chart.


how can I set the AnnotationTool position after a resize of the chart,
that the AnnotationTool is placed always at the same position relative to the x and y axis?

Best Regards
Werner Mosimann

Posted: Tue Mar 27, 2007 2:56 pm
by narcis
Hi Werner,

You can use annotations like shown here but setting its position to axes coordinates, for example:

Code: Select all

	long X = m_Chart1.GetAxis().GetLeft().GetPosition();
	long Y = m_Chart1.GetAxis().GetBottom().GetPosition();