Accepted answer

In your function more_info, d3.js will magically pass the parameters d (data) and i (index) from that specific circle element. Assuming you've put all the 'extra data' into your data variable which you bound to the circle elements, you can get that data in your more_info function. All you need to do is add the parameters like so:

function more_info (d, i) {

Related Query