Merge branch 'master' of http://github.com/nealie/dygraphs
[dygraphs.git] / tests / resize.html
1 <html>
2 <head>
3 <title>resize the window</title>
4 <!--[if IE]>
5 <script type="text/javascript" src="../excanvas.js"></script>
6 <![endif]-->
7 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
8 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
9 <script type="text/javascript" src="../dygraph-canvas.js"></script>
10 <script type="text/javascript" src="../dygraph.js"></script>
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <div id="div_g" style="width:95%; height:95%"></div>
15
16 <script type="text/javascript">
17 g = new Dygraph(
18 document.getElementById("div_g"),
19 NoisyData, {
20 rollPeriod: 7,
21 errorBars: true
22 }
23 );
24
25 window.onresize = function() {
26 g.resize();
27 }
28 </script>
29 </body>
30 </html>