graph area

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
fredd41
Posts: 113
Joined: Fri Sep 05, 2014 6:46 pm

graph area

Post by fredd41 » Fri Sep 05, 2014 6:58 pm

hi

I have 1 chart with 3 sampledataseries. I have 3 Y-axis. So my chart has 3 stacked graphics.
I want to know where I can get each graphic location coordinates (x,y, width,height).

Each series has a IsMouseOver property.
ViewXY has a IsMouseOverGraphArea.
But where is this property for each graphic in my chart ?

thanks

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

Re: graph area

Post by ArctionPasi » Mon Sep 08, 2014 5:07 am

Hi,

the stack segments have equal height. ViewXY.GetGraphSegmentInfo() returns the first segment top, segment count, segment shift and segment height.
Graph segments
Graph segments
GraphSegments.jpg (58.63 KiB) Viewed 6524 times
When a stacked view is selected, you adjust the vertical space between graph segments by using ViewXY.AxisLayout.StackedYAxesGap property. If there’s a myriad of Y axes defined, you should enable ViewXY.AxisLayout.AutoShrinkYAxesGap property, for automatically decrease the gaps. By doing so, every Y axis gets at least some vertical space to be drawn. Use ViewXY.GetGraphSegmentInfo() method to find out where the graph segment borders are, if you need to have segment specific user interface logic.
LightningChart Support Team, PT

fredd41
Posts: 113
Joined: Fri Sep 05, 2014 6:46 pm

Re: graph area

Post by fredd41 » Mon Sep 08, 2014 12:36 pm

thanks
;)

Post Reply