Skip to content

Instantly share code, notes, and snippets.

@micahasmith
Created December 16, 2011 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micahasmith/1484274 to your computer and use it in GitHub Desktop.
Save micahasmith/1484274 to your computer and use it in GitHub Desktop.
d3.js simple example
//grab all divs on the page
//and set their width to 300
d3.selectAll('div')
.attr("width",300)
.attr("height",400);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment