Skip to content

Instantly share code, notes, and snippets.

@arcolife
Created May 15, 2013 21:27
Show Gist options
  • Save arcolife/5587548 to your computer and use it in GitHub Desktop.
Save arcolife/5587548 to your computer and use it in GitHub Desktop.
sample visualization with dygraphs http://dygraphs.com
<html>
<head>
<script type="text/javascript" src="dygraph-combined.js"></script>
</head>
<body>
<div id="graphdiv"></div>
<script type="text/javascript">
g = new Dygraph(
// containing div
document.getElementById("graphdiv"),
// CSV or path to a CSV file.
"Type,Data\n" +
"1,500\n" +
"2,400\n" +
"4,100\n" +
"3,800\n" +
"6,700\n" +
"4,300\n" +
"5,900\n" +
"8,800\n" +
"9,400\n"
);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment