Skip to content

Instantly share code, notes, and snippets.

@nicerobot
Created November 26, 2012 02:36
Show Gist options
  • Save nicerobot/4146289 to your computer and use it in GitHub Desktop.
Save nicerobot/4146289 to your computer and use it in GitHub Desktop.
First test :Gish
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/2.10.0/d3.v2.min.js"></script>
<script src="index.js"></script>
</head>
<body>
</body>
</html>
$(function() {
d3.select('body').selectAll('div')
.data(['test',':Gish'])
.enter().append('div')
.text(function(d,i) {return d;});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment