public boolean clickedOnMarker(float x,float y,float pointClickRadius,OverScroller scroller,int duration){
  for (int i=0; i < pointsCountWithinXRange * 2; i+=2) {
    float pointX=getDrawX(xRangePoints[i]);
    float pointY=getDrawY(xRangePoints[i + 1]);
    float xDiff=Math.abs(x - pointX);
    float yDiff=Math.abs(y - pointY);
    if (xDiff < pointClickRadius && yDiff < pointClickRadius) {
      scrollXTo(scroller,pointX,duration);
      return true;
    }
  }
  return false;
}

public boolean clickedOnMarker ( float x , float y , float pointClickRadius , OverScroller scroller , int duration ) { for ( int i = 0 ; i < pointsCountWithinXRange * 2 ; i += 2 ) { float pointX = getDrawX ( xRangePoints [ i ] ) ; float pointY = getDrawY ( xRangePoints [ i + 1 ] ) ; float xDiff = Math . abs ( x - pointX ) ; float yDiff = Math . abs ( y - pointY ) ; if ( xDiff < pointClickRadius && yDiff < pointClickRadius ) { scrollXTo ( scroller , pointX , duration ) ; return true ; } } return false ; }
check if some graph point was clicked and if yes - scroll to it
