Commit | Line | Data |
---|---|---|
54425b14 | 1 | <!DOCTYPE html> |
22c9069e DV |
2 | <html> |
3 | <head> | |
4 | <title>gadget border</title> | |
7e5ddc94 DV |
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 | ||
22c9069e DV |
11 | <script type="text/javascript" src="data.js"></script> |
12 | <style type="text/css"> | |
13 | #bordered { | |
8846615a | 14 | border: 1px solid red; |
22c9069e DV |
15 | } |
16 | </style> | |
17 | </head> | |
18 | <body> | |
19 | <p>Hopefully this stays in its border:</p> | |
20 | <div id="bordered" style="width:600px; height:300px;"></div> | |
21 | <script type="text/javascript"> | |
f6fbf9e0 | 22 | var g = new Dygraph(document.getElementById('bordered'), data, |
8846615a | 23 | { |
86cce9e8 DV |
24 | labelsDivStyles: { border: '1px solid black' }, |
25 | title: 'Chart Title', | |
26 | xlabel: 'Date', | |
27 | ylabel: 'Temperature (F)' | |
8846615a | 28 | }); |
22c9069e DV |
29 | </script> |
30 | </body> | |
31 | </html> |