Skip to content

Instantly share code, notes, and snippets.

@dwtkns
Created February 7, 2013 13:00
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 dwtkns/4730760 to your computer and use it in GitHub Desktop.
Save dwtkns/4730760 to your computer and use it in GitHub Desktop.
{
"libraries": [
"d3"
],
"mode": "javascript",
"layout": "fullscreen mode (horizontal)",
"resolution": "reset"
}
div {
font-size: 30px;
}
<div id="container">
<div>One</div>
<div>Two</div>
<div>Three</div>
<div>Four</div>
</div>
//d3.select("#container")
// .select("div")
// .text("hello")
//d3.select("#container")
// .append("div")
// .text("NEW DIV!!!")
//----
//var dataset = [11,22,33,44];
//d3.select("#container")
// .selectAll("div")
// .data(dataset)
// .text( function(d) { return d } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment