add back Dygraph.floatFormat
[dygraphs.git] / tests / resize.html
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 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
10 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
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>
16 <div id="div_g" style="width:95%; height:95%"></div>
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>