| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"> |
| 5 | <title>resize the window</title> |
| 6 | <!--[if IE]> |
| 7 | <script type="text/javascript" src="../excanvas.js"></script> |
| 8 | <![endif]--> |
| 9 | <script type="text/javascript" src="../strftime/strftime-min.js"></script> |
| 10 | <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script> |
| 11 | <script type="text/javascript" src="../dygraph-canvas.js"></script> |
| 12 | <script type="text/javascript" src="../dygraph.js"></script> |
| 13 | <script type="text/javascript" src="data.js"></script> |
| 14 | <style type="text/css"> |
| 15 | html, body { |
| 16 | height: 100%; |
| 17 | } |
| 18 | </style> |
| 19 | </head> |
| 20 | <body> |
| 21 | <div id="div_g" style="width:95%; height:95%"></div> |
| 22 | |
| 23 | <script type="text/javascript"> |
| 24 | g = new Dygraph( |
| 25 | document.getElementById("div_g"), |
| 26 | NoisyData, { |
| 27 | rollPeriod: 7, |
| 28 | errorBars: true |
| 29 | } |
| 30 | ); |
| 31 | |
| 32 | window.onresize = function() { |
| 33 | g.resize(); |
| 34 | } |
| 35 | </script> |
| 36 | </body> |
| 37 | </html> |