Set this for drawCallback
[dygraphs.git] / tests / resize.html
CommitLineData
54425b14 1<!DOCTYPE html>
5d2e822f
DV
2<html>
3 <head>
4 <title>resize the window</title>
7e5ddc94
DV
5 <!--
6 For production (minified) code, use:
7 <script type="text/javascript" src="dygraph-combined.js"></script>
8 -->
9 <script type="text/javascript" src="../dygraph-dev.js"></script>
10
5d2e822f 11 <script type="text/javascript" src="data.js"></script>
9da323b3 12 <style type="text/css">
4b4d1a63
DV
13 #div_g {
14 position: absolute;
15 left: 10px;
16 right: 10px;
17 top: 40px;
18 bottom: 10px;
9da323b3
DV
19 }
20 </style>
5d2e822f
DV
21 </head>
22 <body>
4b4d1a63
DV
23 <p>Resize the window. The dygraph will resize with it.</p>
24 <div id="div_g"></div>
5d2e822f
DV
25
26 <script type="text/javascript">
27 g = new Dygraph(
28 document.getElementById("div_g"),
29 NoisyData, {
30 rollPeriod: 7,
31 errorBars: true
32 }
33 );
5d2e822f
DV
34 </script>
35 </body>
36</html>