Created
August 27, 2012 10:11
-
-
Save lwiechec/3487147 to your computer and use it in GitHub Desktop.
testing Rickshaw with D3
This file contains 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> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
</head> | |
<body> | |
<script type="text/javascript" src="https://raw.github.com/shutterstock/rickshaw/master/vendor/d3.min.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/shutterstock/rickshaw/master/vendor/d3.layout.min.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/shutterstock/rickshaw/master/rickshaw.min.js"></script> | |
<div id="chart"> | |
<script> | |
var data = [ { x: 0, y: 40 }, { x: 1, y: 49 }, { x: 2, y: 17 }, { x: 3, y: 42 } ]; | |
var graph = new Rickshaw.Graph( { | |
element: document.querySelector("#chart"), | |
width: 580, | |
height: 250, | |
series: [ { | |
color: 'steelblue', | |
data: data | |
} ] | |
} ); | |
graph.render(); | |
</script> | |
</body> | |
</html> |
This file contains 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
identifier | size | isLocal | |
---|---|---|---|
ident1 | 200 | true | |
ident2 | 300 | true | |
ident3 | 400 | true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment