title: Mouse events and brush in D3
body: <p>I'm currently attempting to customize the example of a time serie chart found at <a href="http://nvd3.com/ghpages/lineWithFocus.html" rel="noreferrer">http://nvd3.com/ghpages/lineWithFocus.html</a>. This is implemented using nvd3, a library on top of d3. I would like to have tooltips for data points as in the top graph but would also like be able to select a range in the <em>same</em> graph like in the bottom "view finder" graph in the example.</p>
  
  <p>To that end, I've added a "brush" to the example of a basic line chart (see <a href="http://nvd3.com/ghpages/line.html" rel="noreferrer">http://nvd3.com/ghpages/line.html</a>). The range selection works like a charm, however, tooltips for data points don't work anymore, except for points which are just out of the range of the axes. It seems, that the data points lying in the brush area don't get the mouse events anymore and that the brush absorbs them all.</p>
  
  <p>What needs to be changed that the data points of the lines receive mouse events (in particular mouseover, I don't care about click)?</p>
  
  <p>An attempt would be to catch all events using</p>
  
  <pre><code>d3.select(window).on("...", function) 
  </code></pre>
  
  <p>and then trigger some "mouseover" event over data points if applicable. How could this be achieved (I don't wan't go through all data points and then check which one is closest to the mouseevent...)? Is there a more straightforward way?</p>