toggledSelectionForPoint is called even when not tapping on point


Hi experts,

I would like to do extra actions when touching on a point, so I implement the toggleSelectionForPoint delegate. The issue is this delegate is called even when touching somewhere on the chart, not a point. I guess the lib returns the nearest point, it’s good but not realistic and sounds like a bug from QA perspective. I am using Version: 2.2.1 (Premium), released on Jun  6 2013. Do you have any idea?

Thank you, Binh Nguyen


Hi Binh,

This is the expected behaviour, as some of the points can be quite small, only taking up a few pixels.

If you want to get rid of it, then deselect the point in the toggleSelectionForPoint method if the distance between the touch and the point is too much.


HI tkeylly,

You are right, I have the same idea but how to count the distance… 


How would you get the coordinates of the touch? I don’t see it getting passed into the method.