Annotation move with while moving Yaxis

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
PKS
Posts: 7
Joined: Fri Jan 09, 2015 11:55 am

Annotation move with while moving Yaxis

Post by PKS » Mon Jan 12, 2015 4:46 am

Hi,

I have multiple yaxis and my annotations are attached with 0th index y axis. my annotation also moved up and down when I move my y axis.
any solution ?
I have a option where I can reset the Y position on axis move event. but i would be very costly in terms of performance.
Do you have any other solution?

Happy Coding !! :)

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

Re: Annotation move with while moving Yaxis

Post by ArctionPasi » Mon Jan 12, 2015 8:39 pm

Hello!

Annotations can be attached to screen coordinates, relative to Target, and in axis values.

You shouldn't need to use axis RangeChanged for repositioning the annotation.
For example, if you have annotation.Style == RectangleArrow, you can set TargetCoordinateSystem = AxisValues (as default). This makes the annotation arrow head follow the axis values.

Set LocationCoordinateSystem = RelativeCoordinatesToTarget, and the text rectangles is positioned related to the target. The relative offset can be set in LocationRelativeOffset property in pixels.

More on annotations and their million properties... take a brief look at http://arction.com/download/lightningch ... manual.pdf, section 5.19, Annotations.

Or just continue with questions here ;)
LightningChart Support Team, PT

Post Reply