mySelection.on( eventName ) in D3.js

Retrieve the event listener for an event type.

Arguments

nametypedescription
eventName String Name of the event, e.g. ‘click’ or ‘mouseover’.
Return Type
Selection

Description

For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-on.

See Also