Dinosaur Posted March 29, 2007 Report Share Posted March 29, 2007 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. Quote Link to comment Share on other sites More sharing options...
Frank Posted March 30, 2007 Report Share Posted March 30, 2007 Easy: double logicalXPosition = chart.AxisX.PixelToValue(hitTestEventArgs.X); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.