d3 Events select current element

If you need to select the current element in d3 on a mouseover for example. D3 makes it very easy. Just use d3.select(this)

d3.select('circle')
.on('mouseover', () => d3.select(this))


Written by Mila

See Also

Bubble Map Radius

Small tip for your bubble maps.

Default Projection Paramameters

What are the default projection params in d3.js

Promises error

Small tip when you hit a async error