| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>spacing</title> |
| 5 | <!-- |
| 6 | For production (minified) code, use: |
| 7 | <script type="text/javascript" src="dygraph-combined.js"></script> |
| 8 | --> |
| 9 | <script type="text/javascript" src="../dygraph-dev.js"></script> |
| 10 | |
| 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> |