Skip to content

Instantly share code, notes, and snippets.

@alexbrey
Created February 2, 2013 21:02
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 alexbrey/4699221 to your computer and use it in GitHub Desktop.
Save alexbrey/4699221 to your computer and use it in GitHub Desktop.
Visualizing page data from a book
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
</style>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var width = 960,
height = 500;
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment