score:6

Accepted answer

Replace

group1.on("click",d => console.log(d.value));

with

group1.on("click",(e, d) => console.log(d.value));

Since D3 V6, event is passed as the first argument to the mouse event callbacks


Related Query

More Query from same tag