score:0

I think it should look something like this in the force layout:

 var node = svg.selectAll(".node")
    .data(graph.nodes)
    .enter().append("circle")
    .attr("class", function(d) { return d.nodes ? "nonleaf" : "leaf"; })
    .attr("r", 5)
    .call(force.drag);


node.append("title")
    .text(function(d) { return d.count; });

I hope this helps somehow. For me it works like that..


Related Query