add spacing test
[dygraphs.git] / tests / spacing.html
CommitLineData
fd2a2ee2
DV
1<html>
2 <head>
3 <title>spacing</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.js"></script>
9 <script type="text/javascript" src="data.js"></script>
10 </head>
11 <body>
12 <p>Wide</p>
13 <div id="g" style="width:600px; height:300px;"></div>
14
15 <p>Narrow</p>
16 <div id="g2" style="width:300px; height:200px;"></div>
17
18 <script type="text/javascript">
19 g = new DateGraph(
20 document.getElementById("g"),
21 data, null, {
22 rollPeriod: 7
23 }
24 );
25 g2 = new DateGraph(
26 document.getElementById("g2"),
27 data, null, {
28 rollPeriod: 7,
29 }
30 );
31 </script>
32 </body>
33</html>