Last active
August 29, 2015 14:28
-
-
Save hironow/4f4683093e415cb60176 to your computer and use it in GitHub Desktop.
D3 Test
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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
rect { | |
fill: #333; | |
} | |
</style> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> | |
<script> | |
var svg = d3.select('body').append('svg') | |
.attr('width', 500) | |
.attr('height', 500); | |
var svg.select(this).selctAll('rect') | |
.data([1, 2, 3]) | |
.enter().append('rect'); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment