Page 1 of 1

AnnotationXY's location/shape

Posted: Wed Feb 22, 2017 2:27 am
by jmartins
Hi,
I follow the Scatter, point tracking to implement annotation showing curve values (at the mouse cursor – like tooltips). I use AnnotationStyle = Callout and KeepVisible = true. How can I programmatically change the AnnotationXY's location relative to the tracked-point? because my annotation often looks very odd where the annotation itself is very far from the tracked-point, or sometimes completely hiding the tracked-point. This does not happen when KeepVisible = false. Or if you have other suggestions to overcome the issue.

I'll appreciate any help.

Re: AnnotationXY's location/shape

Posted: Wed Feb 22, 2017 4:30 pm
by ArctionPasi
Hi !

Annotation has lot of properties to control the positioning.

When annotation.LocationCoordinateSystem == RelativeCoordinatesToTarget, you can control the offset with annotation.LocationRelativeOffset.X and Y properties. There's also explanation of the annotations' positioning in the User's Manual, but I'd we'd be happy help here as well :P

Re: AnnotationXY's location/shape

Posted: Thu Feb 23, 2017 4:47 am
by jmartins
Thank you, that's exactly what I need.