score:-1

Accepted answer

d3.event has been removed in version 6. Instead, the event is now the first argument in any callback function, with d the second argument.

From the release notes:

Remove d3.event; selection.on now passes events directly to listeners.


Related Query

More Query from same tag