Skip to content

Instantly share code, notes, and snippets.

@prtksxna
Last active December 30, 2015 05:59
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 prtksxna/7785933 to your computer and use it in GitHub Desktop.
Save prtksxna/7785933 to your computer and use it in GitHub Desktop.
var list = d3.select("ul").selectAll("li").data(DATA.people);
// Declare a constant that can keep all your data
var DATA = {};
DATA.people = [
{
"name": "Prateek",
"superpower": "tree"
},
{
"name": "Chris",
"superpower": "train"
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment