please follow this link to: http://github.com/mbostock/d3/wiki/Tutorials