This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Jason, Do we have a way to get hit test object on a LineSeries? When the mouse moves on a set of LineSeries in the Chart, I want to know which LineSeries it hits. I tried to use hit test and it will not give me the proper HitTestResult.VisualHit object when the mouse pointer points on the line series. Thanks, Gordon |
|
|
Hello Gordon, I will get back to you about this before the end of the week. -Jason Fauchelle |
|
|
Thanks, Jason Gordon |
|
|
Hi Gordon, Thanks for waiting. The easiest way I've found to do this is to listen to mouse move events, and then check Mouse.DirectlyOver. For example, you could attach an event handler to the ChartMouseMove event of a Chart control:
And then in the event handler, do something like this:
Mouse.DirectlyOver gives you the IInputElement where the mouse is. If this is a Path, simply check to see if the DataContext is a LineSeries. This approach will work with all of our line-based charts. Let me know if you have further questions. -Jason Fauchelle |
|
|
thanks Jason. I may be able to put up the tool tips for the line series now. Gordon |
|