I need to make a FadeOut method (similar to jQuery) using D3.js. What I need to do is to set the opacity to 0 using transition()
.
d3.select(#myid).transition().style(opacity, 0);
The problem is that I need a callback to realize when the transition has finished. How can I implement a callback?