svg.append('circle')
.attr('class', 'points')
.attr("cx", d => x(d.date))
.attr("cy", d => y(d.close))
.attr("r", 10)
.attr("fill", "#364652")
.on('mouseover', (d, i) => {
console.log(this)
})
In the example above - this
returns window, so d3.select(this)
inside of that function is not working, like it did in v3 version examples.
How can i get element, that been hovered with the mouse?