We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Click points on Line

Thread ID:





40666 Feb 9,2006 07:48 AM UTC Feb 17,2006 01:42 PM UTC WinForms 4
Tags: Chart
Timo Günther
Asked On February 9, 2006 07:48 AM UTC

Hi there. I have got the following problem: My chart has to deal with several points and it is possible that there will be Lines and/or StepLines on the same chart. If I am clicking the Line, I will add a point to the Line (if I am clicking between two points) or I want to move the point I clicked. Is it possible to get the clicked series and pointIndex of the closest point if i click between points in a StepLine? Also I found out that one can click a Line if Line.Style.Testradius is not used, but this is not working in general (see attachment series[0] between point[0] and point[1]). Is there a way to click onto a line no matter which one and get back the needed information about seriesIndex and pointIndex? Please see the attachment for better understanding. Thanks in advance Timo


Geetha M [Syncfusion]
Replied On February 10, 2006 12:33 PM UTC

Hi Timo, You can get the closest series index and point index of all points of a particular series by increasing the value of HitTestRadius. The following code snippet illusrates this: chartLine2.Style.HitTestRadius = 20; As this property controls the circle around the datapoint, it can be used for a StepLineChart to get the index values. However as in case of Line chart, without specifying the HitTestRadius, you can get the index values by exactly clicking over the line. Please let me know if this helps you. Thanks and Regards, Geetha.

Timo Günther
Replied On February 13, 2006 07:08 AM UTC

Hi, sorry but this didn''t help. The user should click onto a line and then decide what he want to do (because he should only get the context menu when he hit a line). With your code snipet the user can click everywhere onto the chart (if the HitTestRadius property is very high) and he will get the context menu (please see example above). If a Line is close to a StepLine, the Line will be found all the time, not the StepLine. Also the Line is not found everytime. In the Sample above one can see that it is not possible to hit the Line (Series 0) between point 0 and point 1. This is a realy big issue for me, it would be great if you can give me some more hints to solve this thing. Tanks in advance Timo

Geetha M [Syncfusion]
Replied On February 17, 2006 12:54 PM UTC

Hi Timo, We regret for the delayed response. Thanks for the detailed information. I will create a feature request on this and will let you know as soon as it is implemented. Regards, Geetha

Timo Günther
Replied On February 17, 2006 01:42 PM UTC

Hi, thaks a lot, I am looking forward for it. Greetings Timo


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon