Annotation Location ScreenCoordinates questoin

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
TRVRSE
Posts: 21
Joined: Fri May 30, 2014 1:27 pm

Annotation Location ScreenCoordinates questoin

Post by TRVRSE » Fri Jun 27, 2014 8:30 pm

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.

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

Re: Annotation Location ScreenCoordinates questoin

Post by ArctionPasi » Mon Jun 30, 2014 12:54 pm

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

Post Reply