Created
September 2, 2015 03:14
-
-
Save anonymous/0eea4ea262aa43d6be71 to your computer and use it in GitHub Desktop.
fresh block
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
</head> | |
<body> | |
<script> | |
var input = 'enjalot buildingblocks'.split(''); | |
var w = window.outerWidth, | |
h = window.outerHeight, | |
svg = d3.select('body').append('svg') | |
.attr('width', w) | |
.attr('height', h); | |
var letters = svg.selectAll('text').data(input); | |
letters.enter().append('text').text(String); | |
</script> | |
</body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment