crosshair.x = Math.max(0, Math.min(e.pageX - offset.left, plot.width()));