Skip to content

Instantly share code, notes, and snippets.

@cscheid
Created August 22, 2012 22:47
Show Gist options
  • Save cscheid/3430343 to your computer and use it in GitHub Desktop.
Save cscheid/3430343 to your computer and use it in GitHub Desktop.
Some d3 tests
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.5.0"></script>
</head>
<body><div id="test"></div>
<script>
var names = ["v1",
"v2",
"v3",
"v4",
"v5"];
var legend = d3.select("#test"); //.append("div");
legend.data(names).enter()
.append("div")
.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