Annotation tool which follows a curve when scrolled/zoomed
Posted: Tue Feb 15, 2005 11:05 am
Hi !
I would like to know how I could do to draw a text on a curve and to refresh the position of this text when the graph is zoomed or scrolled in order this text to stay a the same X and Y (not in pixels but in axis units) position.
These X and Y co-ordinates are not necessary the coordinates of a point in the series the chart displays.
Exemple : I would like to place the upper left corner of the text box at the pixel of my curve which has the (3.578; 4.587) coordinates in the current graph, relatively to its current axes. If the graph is scrolled, the text must stay at the (3.578; 4.587) coordinates and stack the curve. The pixel corresponding coordinates must be recalculated but how ?
[img]file://c:\chart.jpg[/img]<- Hey how could I send you an image to show you what I want to do ?
Thanks for your reply
I would like to know how I could do to draw a text on a curve and to refresh the position of this text when the graph is zoomed or scrolled in order this text to stay a the same X and Y (not in pixels but in axis units) position.
These X and Y co-ordinates are not necessary the coordinates of a point in the series the chart displays.
Exemple : I would like to place the upper left corner of the text box at the pixel of my curve which has the (3.578; 4.587) coordinates in the current graph, relatively to its current axes. If the graph is scrolled, the text must stay at the (3.578; 4.587) coordinates and stack the curve. The pixel corresponding coordinates must be recalculated but how ?
[img]file://c:\chart.jpg[/img]<- Hey how could I send you an image to show you what I want to do ?
Thanks for your reply