support changing renderer options like strokeWidth and add a test
[dygraphs.git] / tests / spacing.html
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="../strftime/strftime-min.js"></script>
8 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
9 <script type="text/javascript" src="../dygraph-canvas.js"></script>
10 <script type="text/javascript" src="../dygraph.js"></script>
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <p>Wide</p>
15 <div id="div_g" style="width:800px; height:300px;"></div>
16
17 <p>Narrow</p>
18 <div id="div_g2" style="width:300px; height:200px;"></div>
19
20 <script type="text/javascript">
21 g = new Dygraph(
22 document.getElementById("div_g"),
23 data, {
24 rollPeriod: 7,
25 pixelsPerYLabel: 20
26 }
27 );
28 g2 = new Dygraph(
29 document.getElementById("div_g2"),
30 data, {
31 rollPeriod: 7,
32 pixelsPerYLabel: 20
33 }
34 );
35 </script>
36 </body>
37 </html>