Skip to content

Instantly share code, notes, and snippets.

@mmcfarland
Last active December 13, 2015 20:18
Show Gist options
  • Save mmcfarland/4968878 to your computer and use it in GitHub Desktop.
Save mmcfarland/4968878 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 Test</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script type="text/javascript">
var dataset = [5,10,15,20,25];
d3.select("body").selectAll("p").data(dataset)
.enter()
.append("p")
.text(function(d) {return d};);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment