Merge branch 'master' of github.com:danvk/dygraphs
[dygraphs.git] / tests / resize.html
... / ...
CommitLineData
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:100%; height:100%"></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>