INNER CODE UNIT · JavaScript

updateBreadcrumbs

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

function updateBreadcrumbs(nodeArray, percentageString) {
    var g = d3.select("#trail")
        .selectAll("g")
        .data(nodeArray, function (d) {
            return d.name + d.depth;
        });

    // Add breadcrumb and label for entering nodes.
    var entering = g.enter().append("svg:g");

    entering.append("svg:polygon")
        .attr("points", breadcrumbPoints)
        .style("fill", function (d) {
            return d.color;
        });

    entering.append("svg:text")
        .attr("x", (b.w + b.t) / 2)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…