Page 1 of 1

Annotation move with while moving Yaxis

Posted: Mon Jan 12, 2015 4:46 am
by PKS
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 !! :)

Re: Annotation move with while moving Yaxis

Posted: Mon Jan 12, 2015 8:39 pm
by ArctionPasi
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 ;)