code: function triggerClickHoverEvent(eventname, e) {
  
  			var offset = plot.offset();
  			var canvasX = parseInt(e.pageX - offset.left);
  			var canvasY =  parseInt(e.pageY - offset.top);
  			var item = findNearbySlice(canvasX, canvasY);
  
  			if (options.grid.autoHighlight) {
  
  				// clear auto-highlights
  
  				for (var i = 0; i < highlights.length; ++i) {
  					var h = highlights[i];
  					if (h.auto == eventname && !(item && h.series == item.series)) {
  						unhighlight(h.series);
  					}
  				}
  			}
  
  			// highlight the slice
  
  			if (item) {
  				highlight(item.series, eventname);
  			}
  
  			// trigger any hover bind events
  
  			var pos = { pageX: e.pageX, pageY: e.pageY };
  			target.trigger(eventname, [pos, item]);
  		}
docs: trigger click or hover event (they send the same parameters so we share their code)