Change no-series-defined behavior so that it computes the
[dygraphs.git] / tests / spacing.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
5 <title>spacing</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 <p>Wide</p>
17 <div id="div_g" style="width:800px; height:300px;"></div>
18
19 <p>Narrow</p>
20 <div id="div_g2" style="width:300px; height:200px;"></div>
21
22 <script type="text/javascript">
23 g = new Dygraph(
24 document.getElementById("div_g"),
25 data, {
26 rollPeriod: 7,
27 pixelsPerYLabel: 20
28 }
29 );
30 g2 = new Dygraph(
31 document.getElementById("div_g2"),
32 data, {
33 rollPeriod: 7,
34 pixelsPerYLabel: 20
35 }
36 );
37 </script>
38 </body>
39 </html>