Skip to content

Instantly share code, notes, and snippets.

@teeler
Created September 7, 2011 18:36
Show Gist options
  • Save teeler/1201343 to your computer and use it in GitHub Desktop.
Save teeler/1201343 to your computer and use it in GitHub Desktop.
Stream demo
<!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