Jump to content
Software FX Community

Converting absolute location to point index


Dinosaur
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...