docs: function(elements, eventPosition) {
  		var x = eventPosition.x;
  		var y = eventPosition.y;
  		var minDistance = Number.POSITIVE_INFINITY;
  		var i, len, nearestElement;
  
  		for (i = 0, len = elements.length; i < len; ++i) {
  			var el = elements[i];
  			if (el && el.hasValue()) {
  				var center = el.getCenterPoint();
  				var d = helpers.distanceBetweenPoints(eventPosition, center);
  
  				if (d < minDistance) {
  					minDistance = d;
  					nearestElement = el;
  				}
  			}
  		}
  
  		if (nearestElement) {
  			var tp = nearestElement.tooltipPosition();
  			x = tp.x;
  			y = tp.y;
  		}
  
  		return {
  			x: x,
  			y: y
  		};
  	}