viewxy - get screen coordinates of graphing area

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

viewxy - get screen coordinates of graphing area

Post by greggorob64 » Thu Sep 01, 2016 7:40 pm

I'm trying to find a way (in screen coordinates) to get the entire graphing area.

What i'm doing right now is innefficient: get all all yMin and yMax of all y axis, convert to screen coordinates, and find the lowest and highest values (and do the same for X axes).

Is there a better way?

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

Re: viewxy - get screen coordinates of graphing area

Post by ArctionPasi » Thu Sep 01, 2016 8:06 pm

Yes. Use ViewXY.GetMarginsRect(). :)

Segments info can be read by ViewXY.GetGraphSegmentInfo(), that reveals top and bottom of each segment.
LightningChart Support Team, PT

Post Reply