Commit | Line | Data |
---|---|---|
54425b14 | 1 | <!DOCTYPE html> |
fd2a2ee2 DV |
2 | <html> |
3 | <head> | |
93a5bb4c | 4 | <link rel="stylesheet" href="../css/dygraph.css"> |
fd2a2ee2 | 5 | <title>spacing</title> |
7e5ddc94 DV |
6 | <!-- |
7 | For production (minified) code, use: | |
8 | <script type="text/javascript" src="dygraph-combined.js"></script> | |
9 | --> | |
fbd6834a | 10 | <script type="text/javascript" src="../dist/dygraph.js"></script> |
7e5ddc94 | 11 | |
fd2a2ee2 DV |
12 | <script type="text/javascript" src="data.js"></script> |
13 | </head> | |
14 | <body> | |
15 | <p>Wide</p> | |
d16579a0 | 16 | <div id="div_g" style="width:800px; height:300px;"></div> |
fd2a2ee2 DV |
17 | |
18 | <p>Narrow</p> | |
d16579a0 | 19 | <div id="div_g2" style="width:300px; height:200px;"></div> |
fd2a2ee2 DV |
20 | |
21 | <script type="text/javascript"> | |
285a6bda | 22 | g = new Dygraph( |
d16579a0 | 23 | document.getElementById("div_g"), |
285a6bda | 24 | data, { |
32988383 | 25 | rollPeriod: 7, |
2b66af4f DV |
26 | axes: { |
27 | y: { | |
28 | pixelsPerLabel: 20 | |
29 | } | |
30 | } | |
fd2a2ee2 DV |
31 | } |
32 | ); | |
285a6bda | 33 | g2 = new Dygraph( |
d16579a0 | 34 | document.getElementById("div_g2"), |
285a6bda | 35 | data, { |
fd2a2ee2 | 36 | rollPeriod: 7, |
2b66af4f DV |
37 | axes: { |
38 | y: { | |
39 | pixelsPerLabel: 20 | |
40 | } | |
41 | } | |
fd2a2ee2 DV |
42 | } |
43 | ); | |
44 | </script> | |
45 | </body> | |
46 | </html> |