I'm looking for an explanation on AnnotationXY.SizeScreenCoords. I'm not sure what it represents.
What I do understand:
-Screen coordinates start in the top left of the chart, and increase towards the bottom and right.
What I'm asking:
-What is the max value of the screen coordinates? How can I query this max value? It is not SizeScreenCoords.
Annotation Location ScreenCoordinates questoin
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Annotation Location ScreenCoordinates questoin
Annotation.SizeScreenCoords defines the annotation size in screen coordinates. The size is then not bound to the axis values.
the chart width in pixels is chart.ActualWidth
the chart height in pixels is chart.ActualHeight
ScreenCoordinates are pixels, and they start from the top left of the chart, and continue to bottom right. Y positive direction is downwards.
Remember to set Annotation.Sizing = ScreenCoordinates, otherwise SizeScreenCoords doesn't have any effect.
the chart width in pixels is chart.ActualWidth
the chart height in pixels is chart.ActualHeight
ScreenCoordinates are pixels, and they start from the top left of the chart, and continue to bottom right. Y positive direction is downwards.
Remember to set Annotation.Sizing = ScreenCoordinates, otherwise SizeScreenCoords doesn't have any effect.
LightningChart Support Team, PT