It works great while you are ordering the elements correctly. In the example here, I used an absolute positioned DIV on top of the SVG element (move the mouse around the output window to see the movement of the DIV). (This code uses Raphael , not D3, but the results will be the same).
source share