Graphics Reference
In-Depth Information
Figure 8-8: You can use the same e-mail data set as presented in Chapter
5 to draw this graph in D3.
A circular layout requires only high-school trigonometry to calculate, as
shown here:
// angle and radius for layout assistance
var ang = 2 * Math.PI / graph.nodes.length;
var rad = width / 2.5 ;
// create the links
 
Search WWH ::




Custom Search