Commit | Line | Data |
---|---|---|
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> | |
285a6bda | 8 | <script type="text/javascript" src="../dygraph-canvas.js"></script> |
fd2a2ee2 DV |
9 | <script type="text/javascript" src="../dygraph.js"></script> |
10 | <script type="text/javascript" src="data.js"></script> | |
11 | </head> | |
12 | <body> | |
13 | <p>Wide</p> | |
32988383 | 14 | <div id="g" style="width:800px; height:300px;"></div> |
fd2a2ee2 DV |
15 | |
16 | <p>Narrow</p> | |
17 | <div id="g2" style="width:300px; height:200px;"></div> | |
18 | ||
19 | <script type="text/javascript"> | |
285a6bda | 20 | g = new Dygraph( |
fd2a2ee2 | 21 | document.getElementById("g"), |
285a6bda | 22 | data, { |
32988383 | 23 | rollPeriod: 7, |
5cb20998 | 24 | pixelsPerYLabel: 20 |
fd2a2ee2 DV |
25 | } |
26 | ); | |
285a6bda | 27 | g2 = new Dygraph( |
fd2a2ee2 | 28 | document.getElementById("g2"), |
285a6bda | 29 | data, { |
fd2a2ee2 | 30 | rollPeriod: 7, |
5cb20998 | 31 | pixelsPerYLabel: 20 |
fd2a2ee2 DV |
32 | } |
33 | ); | |
34 | </script> | |
35 | </body> | |
36 | </html> |