Graphics Reference
In-Depth Information
Figure 8-9: Using the same data, you can create a circular layout.
Just like x and y values, visual attributes can also be set to data attributes.
• Node radius set to number of e-mails per node
.attr("r", function(d) {return
Math.sqrt(d.numEmail)*2; })
• Line width set to link weight
.attr("stroke-width", function(d) {return d.weight
*0.2; })
 
Search WWH ::




Custom Search