Jump to content
Software FX Community

Converting absolute location to point index


Dinosaur

Recommended Posts

Hi,

I have a graph of 4 series and each on a different pane. When the user clicks anywhere within any pane area, I need to display the y value for all four series based on the x position of the click. The Point member of the HitTestEventArgs class doesn't really help because the hit has to land on a point on any series.

What I need is a translation between the AbsoluteLocation of the hit and the index of the point represented by that hit. Is there any way to achieve this? I though of calculating it myself, but then there's no way to programmatically find out the absolute position of the start of the x-axis either!

Thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...