Last active
September 11, 2015 01:03
-
-
Save cmackay/4c4603a3a462b4eb9bd9 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> | |
console.log("you are now rocking with d3", d3); | |
var svg = d3.select('body') | |
.append('svg') | |
.attr('width', 800) | |
.attr('height', 600); | |
svg.append('rect') | |
.attr('width', 100) | |
.attr('height', 100) | |
.attr('fill', 'blue'); | |
svg.append('circle') | |
.attr('cx', 26) | |
.attr('cy', 128) | |
.attr('r', 20) | |
</script> | |
</body> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment