Skip to content

Instantly share code, notes, and snippets.

@noahgibbs
Created March 1, 2013 18: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 noahgibbs/5066497 to your computer and use it in GitHub Desktop.
Save noahgibbs/5066497 to your computer and use it in GitHub Desktop.
<!doctype html>
<script src="http://code.shutterstock.com/rickshaw/vendor/d3.v2.js"></script>
<script src="http://code.shutterstock.com/rickshaw/rickshaw.min.js"></script>
<div id="chart"></div>
<script>
var graph = new Rickshaw.Graph( {
element: document.querySelector("#chart"),
width: 500,
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 },
{ x: 5, y: 40 },
{ x: 6, y: 70 },
{ x: 7, y: 20 }
]
}]
});
graph.render();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment