User (Legacy) Posted July 15, 2004 Report Share Posted July 15, 2004 Is there any way to capture point label clicks and determine which point that the clicked label is associated with? I can get a click event when a label is clicked. However, PaintInfo and HitTest calls on the coordinates I get from the click return -1. I can't tell which label it is or which point (in my case, which pie slice) it's associated with. And I can't get coordinate information about point labels. Is there another approach I could take? Quote Link to comment Share on other sites More sharing options...
Software FX Posted July 16, 2004 Report Share Posted July 16, 2004 Use Axis.PixelToValue to determine the logical value in the axis that corresponds to the mouse position. -- FP Software FX Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted July 16, 2004 Author Report Share Posted July 16, 2004 By doing that, I can get the coordinates in relation to the graph's axis, but it doesn't seem that I can use that to reliably determine which label was clicked on. Let's say I have pie slices A, B, and C. Also, I've got labels 1, 2, and 3, which point to pie slices A, B, and C, respectively. If the users clicks on a point on label 2 which happens to be closer to pie slice A than pie slice B, then how can any code I write reliably determine that the user meant to select slice B when clicking on that part of label 2? "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:8g2OIr0aEHA.3080@webserver3.softwarefx.com... > Use Axis.PixelToValue to determine the logical value in the axis that > corresponds to the mouse position. > > -- > FP > Software FX > > Quote Link to comment Share on other sites More sharing options...
Software FX Posted July 16, 2004 Report Share Posted July 16, 2004 So this is a Pie chart. What point labels are you referring to ? Where do you want to trap the click ? Can you attach a screenshot pointing out where you want to get the click ? -- FP Software FX 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.