function fadeOut(speed) {
        d3.select(this)
            .transition()
            .duration(speed / 8)
            .delay(speed - (speed / 8) * 2)
            .style('opacity', 0);
    }
// Transition text from full opacity to zero opacity to create fade-out effect.
Transition text from full opacity to zero opacity to create fade-out effect.
Transition text from full opacity to zero opacity to create fade - out effect .
function fadeOut(speed) {
        d3.select(this)
            .transition()
            .duration(speed / 8)
            .delay(speed - (speed / 8) * 2)
            .style('opacity', 0);
    }
function fadeOut ( speed ) { d3 . select ( this ) . transition ( ) . duration ( speed / 8 ) . delay ( speed - ( speed / 8 ) * 2 ) . style ( 'opacity' , 0 ) ; }
Transition text from full opacity to zero opacity to create fade-out effect.
Transition text from full opacity to zero opacity to create fade - out effect .