Created
September 7, 2011 18:36
-
-
Save teeler/1201343 to your computer and use it in GitHub Desktop.
Stream demo
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> | |
<title>Streamgraph</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.29.1"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.29.1"></script> | |
<script type="text/javascript" src="tech.js"></script> | |
<link type="text/css" rel="stylesheet" href="http://mbostock.github.com/d3/ex/button.css"/> | |
<link type="text/css" rel="stylesheet" href="http://mbostock.github.com/d3/ex/stream.css"/> | |
</head> | |
<body> | |
<div id="chart"> | |
<p id="symbol"></p> | |
</div> | |
<button onclick='transition(data_vol)'>Vol</button> | |
<button onclick='transition(data_highlow)'>High-low</button> | |
<button onclick='transition(data_open)'>Open</button> | |
<script type="text/javascript" src="stream.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment