INNER CODE UNIT · JavaScript

mouseover

KeepSafe/dexcount-gradle-plugin · src/main/resources/com/getkeepsafe/dexcount/chart-builder.js:126

function mouseover(d) {
    d3.select("#count").text(d.value);

    var sequenceArray = getAncestors(d);
    updateBreadcrumbs(sequenceArray, "");

    // Fade all the segments.
    d3.selectAll("path").style("opacity", 0.3);

    // Then highlight only those that are an ancestor of the current segment.
    vis.selectAll("path")
        .filter(function (node) {
            return (sequenceArray.indexOf(node) >= 0);
        })
        .style("opacity", 1);
}

// Restore everything to full opacity when moving off the visualization.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…