Skip to content

Instantly share code, notes, and snippets.

@jonobr1
Created February 18, 2011 21:30
Show Gist options
  • Save jonobr1/834444 to your computer and use it in GitHub Desktop.
Save jonobr1/834444 to your computer and use it in GitHub Desktop.
Snippet for Edward co. Eyebeam for DataViz Challenge embed of HTML5 canvas object.
<!-- Place anywhere in the head -->
<style type = "text/css">
canvas {
width: 100%;
height: 759px;
}
#example-vis {
position: absolute;
top: -250px;
left: 0;
width: 100%;
overflow-x: hidden;
overflow-y: visible;
}
#content>div.section {
margin-top: 150px;
}
</style>
<script type = "text/javascript" src = "example/_js/DataVizHomepage.min.js"></script>
<!-- Place right after the <body> tag -->
<div id = "example-vis"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment