Use d3's mouse method to get x coordinate