--- /dev/null
+<html>
+ <head>
+ <title>resize the window</title>
+ <!--[if IE]>
+ <script type="text/javascript" src="excanvas.js"></script>
+ <![endif]-->
+ <script type="text/javascript" src="../dygraph-combined.js"></script>
+ <script type="text/javascript" src="../dygraph-canvas.js"></script>
+ <script type="text/javascript" src="../dygraph.js"></script>
+ <script type="text/javascript" src="data.js"></script>
+ </head>
+ <body>
+ <div id="div_g" style="width:100%; height:100%"></div>
+
+ <script type="text/javascript">
+ g = new Dygraph(
+ document.getElementById("div_g"),
+ NoisyData, {
+ rollPeriod: 7,
+ errorBars: true
+ }
+ );
+
+ window.onresize = function() {
+ g.resize();
+ }
+ </script>
+ </body>
+</html>