Skip to content

Instantly share code, notes, and snippets.

@ahmetkizilay
Created June 23, 2014 19:44
Show Gist options
  • Select an option

  • Save ahmetkizilay/388b9ceeb61130c46c61 to your computer and use it in GitHub Desktop.

Select an option

Save ahmetkizilay/388b9ceeb61130c46c61 to your computer and use it in GitHub Desktop.
empty template for d3.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
background-color: #ededed;
}
svg {
border: 1px solid black;
background-color: white;
}
</style>
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
var width = 400,
height = 400;
var svg = d3.select('body')
.append('svg')
.attr('width', width)
.attr('height', height);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment