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 !!
Annotation move with while moving Yaxis
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Annotation move with while moving Yaxis
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
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