score:2

Accepted answer

I recommend triggering your tool tip using a mouse over event. Like this:

var bars = barGroup.selectAll("rect")
        .data(csvData)
        .enter()
        .append("rect")
        .on("mouseover", function(){
            //run your tool tip code.
        });

Related Query

More Query from same tag