I’m curious as to why you are using `this` here, instead of passing the element as a parameter?
Régis Kuckaertz

The D3 convention is that callback functions are passed the element’s datum (typically called d), the element’s index (i), and the array of elements (nodes). The element itself is this. This convention is partly inspired by JavaScript array methods such as array.forEach, which passes the callback the element, the index, and the array; it’s also partly inspired by JavaScript DOM event listeners, which set this as the listening element.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.