Accepted answer

Its quite simple, you just need to add and svg element inside of your div. And start coding d3.

Give me a moment, I am updating your fiddle.

Update: Here you go

I took the liberty of simplifying/stripping your example to lowest common denominator to reduce confusion.


In the previous fiddle, you will come across issues where all your markers will be selected everytime giving undesired results. So use last update.

Related Query