| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9"> |
| 5 | <title>gadget border</title> |
| 6 | <!--[if IE]> |
| 7 | <script type="text/javascript" src="../excanvas.js"></script> |
| 8 | <![endif]--> |
| 9 | <!-- |
| 10 | For production (minified) code, use: |
| 11 | <script type="text/javascript" src="dygraph-combined.js"></script> |
| 12 | --> |
| 13 | <script type="text/javascript" src="../dygraph-dev.js"></script> |
| 14 | |
| 15 | <script type="text/javascript" src="data.js"></script> |
| 16 | <style type="text/css"> |
| 17 | #bordered { |
| 18 | border: 1px solid red; |
| 19 | } |
| 20 | </style> |
| 21 | </head> |
| 22 | <body> |
| 23 | <p>Hopefully this stays in its border:</p> |
| 24 | <div id="bordered" style="width:600px; height:300px;"></div> |
| 25 | <script type="text/javascript"> |
| 26 | new Dygraph(document.getElementById('bordered'), data, |
| 27 | { |
| 28 | labelsDivStyles: { border: '1px solid black' }, |
| 29 | title: 'Chart Title', |
| 30 | xlabel: 'Date', |
| 31 | ylabel: 'Temperature (F)' |
| 32 | }); |
| 33 | </script> |
| 34 | </body> |
| 35 | </html> |