playing with svg layout

by Ryan

JavaScript

var svg = d3.select("body").append("svg")
	.attr("width", 500)
	.attr("height", 400);

// bind the topo data to the svg/g/path elements
var path = svg.append("g")
	.append("rect")
        .attr("width", 100)
        .attr("height", 100);