Created
June 14, 2012 05:01
-
-
Save dreid/2928069 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<doctype !html> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<script src="https://raw.github.com/mbostock/d3/master/d3.v2.min.js"></script> | |
<script src="https://raw.github.com/shutterstock/rickshaw/master/rickshaw.min.js"></script> | |
<div id="chart"></div> | |
<script> | |
var graph = new Rickshaw.Graph( { | |
element: document.querySelector("#chart"), | |
width: 300, | |
height: 200, | |
series: [{ | |
color: 'steelblue', | |
data: [ | |
{ x: 0, y: 40 }, | |
{ x: 1, y: 49 }, | |
{ x: 2, y: 38 }, | |
{ x: 3, y: 30 }, | |
{ x: 4, y: 32 } ] | |
}] | |
}); | |
graph.render(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you please fix the broken link to d3.js, using http://d3js.org/d3.v2.min.js ?