INNER CODE UNIT · JavaScript
mouseleave
KeepSafe/dexcount-gradle-plugin · src/main/resources/com/getkeepsafe/dexcount/chart-builder.js:144
function mouseleave(d) {
// Hide the breadcrumb trail
d3.select("#trail").style("visibility", "hidden");
// Deactivate all segments during transition.
d3.selectAll("path").on("mouseover", null);
// Transition each segment to full opacity and then reactivate it.
d3.selectAll("path")
.transition()
.duration(1000)
.style("opacity", 1)
.each("end", function () {
d3.select(this).on("mouseover", mouseover);
});
d3.select("#count").text(data.value);
}