resizing test
[dygraphs.git] / tests / resize.html
CommitLineData
5d2e822f
DV
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="../dygraph-combined.js"></script>
8 <script type="text/javascript" src="../dygraph-canvas.js"></script>
9 <script type="text/javascript" src="../dygraph.js"></script>
10 <script type="text/javascript" src="data.js"></script>
11 </head>
12 <body>
13 <div id="div_g" style="width:100%; height:100%"></div>
14
15 <script type="text/javascript">
16 g = new Dygraph(
17 document.getElementById("div_g"),
18 NoisyData, {
19 rollPeriod: 7,
20 errorBars: true
21 }
22 );
23
24 window.onresize = function() {
25 g.resize();
26 }
27 </script>
28 </body>
29</html>