Skip to content

Instantly share code, notes, and snippets.

@peterbsmyth
Created August 29, 2015 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbsmyth/607f05bb0ac5eb65286d to your computer and use it in GitHub Desktop.
Save peterbsmyth/607f05bb0ac5eb65286d to your computer and use it in GitHub Desktop.
demoing building blocks

hello markdown

<!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 svg = d3.select("body")
.append("svg")
.attr("width",300).attr("height",300);
svg.append("rect")
.attr({
x: 0,
y: 0,
width: 110,
height: 58,
fill: "steelblue"
});
console.log("you are now rocking with d3", d3);
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment