all tests pass
[dygraphs.git] / tests / resize.html
CommitLineData
54425b14 1<!DOCTYPE html>
5d2e822f
DV
2<html>
3 <head>
10494b48 4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5d2e822f
DV
5 <title>resize the window</title>
6 <!--[if IE]>
a2b2c3a1 7 <script type="text/javascript" src="../excanvas.js"></script>
5d2e822f 8 <![endif]-->
d37dca40
DV
9 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
10 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
5d2e822f
DV
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 </head>
15 <body>
c6f45033 16 <div id="div_g" style="width:95%; height:95%"></div>
5d2e822f
DV
17
18 <script type="text/javascript">
19 g = new Dygraph(
20 document.getElementById("div_g"),
21 NoisyData, {
22 rollPeriod: 7,
23 errorBars: true
24 }
25 );
26
27 window.onresize = function() {
28 g.resize();
29 }
30 </script>
31 </body>
32</html>