Skip to content

Instantly share code, notes, and snippets.

@cmackay
Last active September 11, 2015 01:03
Show Gist options
  • Save cmackay/4c4603a3a462b4eb9bd9 to your computer and use it in GitHub Desktop.
Save cmackay/4c4603a3a462b4eb9bd9 to your computer and use it in GitHub Desktop.
fresh block

block builder test

<!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