Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
455
Cannot select a line series by clicking on the line
posted

Has anyone tried to work around this problem?

In the line chart you can detect a click on a data point using the built-in event, but there is no way to detect a click on a line drawn between two data points.

I submitted a new feature request, but that might take a long time, I am working on workaround ideas, one of them is to allow users to click on an annotation with the series name to select the series, but that might get crowded when we have several line series close together. I appreciate any ideas or suggestions on this issue.

 

Talal

Parents
  • 28496
    Verified Answer
    Offline posted

    i think a workaround would be difficult.  you'd have to handle the chart control's MouseDown, store the point that was clicked, invoke InvalidateLayers on the chart, then in the chart's FillSceneGraph event, loop through all the polylines, and, here's the tricky part, calculate if the clicked point is between two points on a polyline.

Reply Children