User (Legacy) Posted February 28, 2005 Report Share Posted February 28, 2005 Is there anyway to get the series based on a pixel? I'm trying to handle the tooltips on my own since they don't always display and need to know what series a pixel belongs to. Link to comment Share on other sites More sharing options...
Software FX Posted March 1, 2005 Report Share Posted March 1, 2005 The HitTest method will do just that. Check the docs. for details. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 1, 2005 Author Report Share Posted March 1, 2005 The problem is HitTest doesn't always return correctly. It seems it only returns if the mouse is positioned in the center (or very close) to of the point. I'm using a scatter plot chart and need the tooltips to show immediately. These charts can have hundreds or even thousands of points and the user needs to know what they are without a delay and especially without the need to keep moving the mouse to hit the special point to make the tool tip display. The MarkerSize is set to either 2 if you want to test it. "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:mk4d7ymHFHA.3680@webserver3.softwarefx.com... > The HitTest method will do just that. > > Check the docs. for details. > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 1, 2005 Author Report Share Posted March 1, 2005 Here's what I did. I create a mousemove event for chart1.Controls[0]. In this event I use the HitTest. Here is works very well. if (HitType == HitType.Point) { tooltip.SetTooltip(chart1.Controls[0], chart1.Tag.ToString() ); tooltip.SetTooltip(chart1, ""); } Now I get instant tooltips! "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:mk4d7ymHFHA.3680@webserver3.softwarefx.com... > The HitTest method will do just that. > > Check the docs. for details. > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.