Made map legend follow mouse cursor around.

Updated d3.