score:4

Accepted answer

This is well documented:

d3.event

Stores the current event, if any. This global is registered during an event listener callback with the on operator. The current event is reset after the listener is notified in a finally block. This allows the listener function to have the same form as other operator functions, being passed the current datum d and index i.


Related Query