AnnotationXY's location/shape

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
jmartins
Posts: 2
Joined: Wed Feb 22, 2017 2:00 am

AnnotationXY's location/shape

Post by jmartins » Wed Feb 22, 2017 2:27 am

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.

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: AnnotationXY's location/shape

Post by ArctionPasi » Wed Feb 22, 2017 4:30 pm

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
LightningChart Support Team, PT

jmartins
Posts: 2
Joined: Wed Feb 22, 2017 2:00 am

Re: AnnotationXY's location/shape

Post by jmartins » Thu Feb 23, 2017 4:47 am

Thank you, that's exactly what I need.

Post Reply