| 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 | <!-- |
| 10 | For production (minified) code, use: |
| 11 | <script type="text/javascript" src="dygraph-combined.js"></script> |
| 12 | --> |
| 13 | <script type="text/javascript" src="../dygraph-dev.js"></script> |
| 14 | |
| 15 | <script type="text/javascript" src="data.js"></script> |
| 16 | <style type="text/css"> |
| 17 | html, body { |
| 18 | height: 100%; |
| 19 | } |
| 20 | </style> |
| 21 | </head> |
| 22 | <body> |
| 23 | <div id="div_g" style="width:95%; height:95%"></div> |
| 24 | |
| 25 | <script type="text/javascript"> |
| 26 | g = new Dygraph( |
| 27 | document.getElementById("div_g"), |
| 28 | NoisyData, { |
| 29 | rollPeriod: 7, |
| 30 | errorBars: true |
| 31 | } |
| 32 | ); |
| 33 | |
| 34 | window.onresize = function() { |
| 35 | g.resize(); |
| 36 | } |
| 37 | </script> |
| 38 | </body> |
| 39 | </html> |