Dinosaur Posted March 29, 2007 Report 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.
Frank Posted March 30, 2007 Report Posted March 30, 2007 Easy: double logicalXPosition = chart.AxisX.PixelToValue(hitTestEventArgs.X);
Recommended Posts
Archived
This topic is now archived and is closed to further replies.