Copyright (c) 2006-, Dan Vanderkam.
http://code.google.com/p/dygraphs/
-The dygraphs JavaScript library produces produces interactive, zoomable charts of time series based on CSV files.
+The dygraphs JavaScript library produces produces interactive, zoomable charts of time series.
Features
- Plots time series without using an external server or Flash
- Interactive zoom
- Adjustable averaging period
- Customizable click-through actions
+- Compatible with the Google Visualization API
Caveats
- Requires Firefox 1.5+ or Safari/WebKit? 1.3+.
<script type="text/javascript" src="dygraph-combined.js"></script>
</head>
<body>
-<div id="graphdiv" style="width:400px; height:300px;"></div>
+<div id="graphdiv"></div>
<script type="text/javascript">
g = new DateGraph(
document.getElementById("graphdiv"), // containing div
- function() { // function or path to CSV file.
- return "20080507,75\n" +
- "20080508,70\n" +
- "20080509,80\n";
- },
- [ "Temperature" ], // names of data series
- {} // additional options (see wiki)
+ "Date,Temperature\n" + // the data series
+ "2008-05-07,75\n" +
+ "2008-05-08,70\n" +
+ "2008-05-09,80\n";
+ }
);
</script>
</body>